@agrada_digital/pbm 0.0.105 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +18 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var mw=Object.defineProperty;var yw=(he,Ga,mn)=>Ga in he?mw(he,Ga,{enumerable:!0,configurable:!0,writable:!0,value:mn}):he[Ga]=mn;var yd=(he,Ga,mn)=>yw(he,typeof Ga!="symbol"?Ga+"":Ga,mn);(function(he,Ga){"use strict";var mn=typeof document<"u"?document.currentScript:null;function
|
|
1
|
+
var mw=Object.defineProperty;var yw=(he,Ga,mn)=>Ga in he?mw(he,Ga,{enumerable:!0,configurable:!0,writable:!0,value:mn}):he[Ga]=mn;var yd=(he,Ga,mn)=>yw(he,typeof Ga!="symbol"?Ga+"":Ga,mn);(function(he,Ga){"use strict";var mn=typeof document<"u"?document.currentScript:null;function Lg(n){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const i in n)if(i!=="default"){const s=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(l,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}return l.default=n,Object.freeze(l)}const st=Lg(he);function Hg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Xu={exports:{}},Or={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var mw=Object.defineProperty;var yw=(he,Ga,mn)=>Ga in he?mw(he,Ga,{enumerable:!0
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var pd;function qg(){if(pd)return Or;pd=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(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 Or.Fragment=l,Or.jsx=i,Or.jsxs=i,Or}var gd;function Zg(){return gd||(gd=1,Xu.exports=qg()),Xu.exports}var j=Zg(),$u={exports:{}},zr={},Ku={exports:{}},Ju={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var mw=Object.defineProperty;var yw=(he,Ga,mn)=>Ga in he?mw(he,Ga,{enumerable:!0
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var vd;function
|
|
17
|
+
*/var vd;function Yg(){return vd||(vd=1,(function(n){function l(k,X){var re=k.length;k.push(X);e:for(;0<re;){var Ee=re-1>>>1,Le=k[Ee];if(0<o(Le,X))k[Ee]=X,k[re]=Le,re=Ee;else break e}}function i(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var X=k[0],re=k.pop();if(re!==X){k[0]=re;e:for(var Ee=0,Le=k.length,St=Le>>>1;Ee<St;){var Fe=2*(Ee+1)-1,ze=k[Fe],ct=Fe+1,Ut=k[ct];if(0>o(ze,re))ct<Le&&0>o(Ut,ze)?(k[Ee]=Ut,k[ct]=re,Ee=ct):(k[Ee]=ze,k[Fe]=re,Ee=Fe);else if(ct<Le&&0>o(Ut,re))k[Ee]=Ut,k[ct]=re,Ee=ct;else break e}}return X}function o(k,X){var re=k.sortIndex-X.sortIndex;return re!==0?re:k.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],v=[],T=1,w=null,R=3,_=!1,U=!1,A=!1,Z=!1,I=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null;function P(k){for(var X=i(v);X!==null;){if(X.callback===null)s(v);else if(X.startTime<=k)s(v),X.sortIndex=X.expirationTime,l(g,X);else break;X=i(v)}}function L(k){if(A=!1,P(k),!U)if(i(g)!==null)U=!0,Q||(Q=!0,p());else{var X=i(v);X!==null&&le(L,X.startTime-k)}}var Q=!1,ae=-1,xe=5,Ue=-1;function We(){return Z?!0:!(n.unstable_now()-Ue<xe)}function ge(){if(Z=!1,Q){var k=n.unstable_now();Ue=k;var X=!0;try{e:{U=!1,A&&(A=!1,$(ae),ae=-1),_=!0;var re=R;try{t:{for(P(k),w=i(g);w!==null&&!(w.expirationTime>k&&We());){var Ee=w.callback;if(typeof Ee=="function"){w.callback=null,R=w.priorityLevel;var Le=Ee(w.expirationTime<=k);if(k=n.unstable_now(),typeof Le=="function"){w.callback=Le,P(k),X=!0;break t}w===i(g)&&s(g),P(k)}else s(g);w=i(g)}if(w!==null)X=!0;else{var St=i(v);St!==null&&le(L,St.startTime-k),X=!1}}break e}finally{w=null,R=re,_=!1}X=void 0}}finally{X?p():Q=!1}}}var p;if(typeof te=="function")p=function(){te(ge)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,G=Y.port2;Y.port1.onmessage=ge,p=function(){G.postMessage(null)}}else p=function(){I(ge,0)};function le(k,X){ae=I(function(){k(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return R},n.unstable_next=function(k){switch(R){case 1:case 2:case 3:var X=3;break;default:X=R}var re=R;R=X;try{return k()}finally{R=re}},n.unstable_requestPaint=function(){Z=!0},n.unstable_runWithPriority=function(k,X){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var re=R;R=k;try{return X()}finally{R=re}},n.unstable_scheduleCallback=function(k,X,re){var Ee=n.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Ee+re:Ee):re=Ee,k){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=re+Le,k={id:T++,callback:X,priorityLevel:k,startTime:re,expirationTime:Le,sortIndex:-1},re>Ee?(k.sortIndex=re,l(v,k),i(g)===null&&k===i(v)&&(A?($(ae),ae=-1):A=!0,le(L,re-Ee))):(k.sortIndex=Le,l(g,k),U||_||(U=!0,Q||(Q=!0,p()))),k},n.unstable_shouldYield=We,n.unstable_wrapCallback=function(k){var X=R;return function(){var re=R;R=X;try{return k.apply(this,arguments)}finally{R=re}}}})(Ju)),Ju}var bd;function Gg(){return bd||(bd=1,Ku.exports=Yg()),Ku.exports}/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-dom-client.production.js
|
|
20
20
|
*
|
|
@@ -22,19 +22,19 @@ var mw=Object.defineProperty;var yw=(he,Ga,mn)=>Ga in he?mw(he,Ga,{enumerable:!0
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var xd;function
|
|
25
|
+
*/var xd;function Qg(){if(xd)return zr;xd=1;var n=Gg(),l=he,i=Ga;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 v(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,r=t;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(r=u.return,r!==null){a=r;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return g(u),e;if(c===r)return g(u),t;c=c.sibling}throw Error(s(188))}if(a.return!==r.return)a=u,r=c;else{for(var h=!1,y=u.child;y;){if(y===a){h=!0,a=u,r=c;break}if(y===r){h=!0,r=u,a=c;break}y=y.sibling}if(!h){for(y=c.child;y;){if(y===a){h=!0,a=c,r=u;break}if(y===r){h=!0,r=c,a=u;break}y=y.sibling}if(!h)throw Error(s(189))}}if(a.alternate!==r)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,R=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),te=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Ue=Symbol.for("react.activity"),We=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function p(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Symbol.for("react.client.reference");function G(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case I:return"Profiler";case Z:return"StrictMode";case L:return"Suspense";case Q:return"SuspenseList";case Ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case te:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:G(e.type)||"Memo";case xe:t=e._payload,e=e._init;try{return G(e(t))}catch{}}return null}var le=Array.isArray,k=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Ee=[],Le=-1;function St(e){return{current:e}}function Fe(e){0>Le||(e.current=Ee[Le],Ee[Le]=null,Le--)}function ze(e,t){Le++,Ee[Le]=e.current,e.current=t}var ct=St(null),Ut=St(null),Ba=St(null),tl=St(null);function Hl(e,t){switch(ze(Ba,t),ze(Ut,e),ze(ct,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ug(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ug(t),e=og(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Fe(ct),ze(ct,e)}function Va(){Fe(ct),Fe(Ut),Fe(Ba)}function ql(e){e.memoizedState!==null&&ze(tl,e);var t=ct.current,a=og(t,e.type);t!==a&&(ze(Ut,e),ze(ct,a))}function Sn(e){Ut.current===e&&(Fe(ct),Fe(Ut)),tl.current===e&&(Fe(tl),qi._currentValue=re)}var al,Cs;function La(e){if(al===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);al=t&&t[1]||"",Cs=-1<a.stack.indexOf(`
|
|
26
26
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
27
|
`+al+e+Cs}var Ir=!1;function Zl(e,t){if(!e||Ir)return"";Ir=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(D){var M=D}Reflect.construct(e,[],q)}else{try{q.call()}catch(D){M=D}e.call(q.prototype)}}else{try{throw Error()}catch(D){M=D}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(D){if(D&&M&&typeof D.stack=="string")return[D.stack,M.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),h=c[0],y=c[1];if(h&&y){var b=h.split(`
|
|
28
28
|
`),z=y.split(`
|
|
29
29
|
`);for(u=r=0;r<b.length&&!b[r].includes("DetermineComponentFrameRoot");)r++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(r===b.length||u===z.length)for(r=b.length-1,u=z.length-1;1<=r&&0<=u&&b[r]!==z[u];)u--;for(;1<=r&&0<=u;r--,u--)if(b[r]!==z[u]){if(r!==1||u!==1)do if(r--,u--,0>u||b[r]!==z[u]){var V=`
|
|
30
30
|
`+b[r].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=r&&0<=u);break}}}finally{Ir=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?La(a):""}function Es(e,t){switch(e.tag){case 26:case 27:case 5:return La(e.type);case 16:return La("Lazy");case 13:return e.child!==t&&t!==null?La("Suspense Fallback"):La("Suspense");case 19:return La("SuspenseList");case 0:case 15:return Zl(e.type,!1);case 11:return Zl(e.type.render,!1);case 1:return Zl(e.type,!0);case 31:return La("Activity");default:return""}}function Os(e){try{var t="",a=null;do t+=Es(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
31
31
|
Error generating stack: `+r.message+`
|
|
32
|
-
`+r.stack}}var Pr=Object.prototype.hasOwnProperty,zs=n.unstable_scheduleCallback,Yl=n.unstable_cancelCallback,x=n.unstable_shouldYield,E=n.unstable_requestPaint,N=n.unstable_now,W=n.unstable_getCurrentPriorityLevel,J=n.unstable_ImmediatePriority,F=n.unstable_UserBlockingPriority,se=n.unstable_NormalPriority,ge=n.unstable_LowPriority,Ne=n.unstable_IdlePriority,Bt=n.log,da=n.unstable_setDisableYieldValue,gt=null,Vt=null;function ha(e){if(typeof Bt=="function"&&da(e),Vt&&typeof Vt.setStrictMode=="function")try{Vt.setStrictMode(gt,e)}catch{}}var Et=Math.clz32?Math.clz32:tc,ec=Math.log,ks=Math.LN2;function tc(e){return e>>>=0,e===0?32:31-(ec(e)/ks|0)|0}var nl=256,Ns=262144,Ms=4194304;function ll(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 Ds(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var u=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=r&134217727;return y!==0?(r=y&~c,r!==0?u=ll(r):(h&=y,h!==0?u=ll(h):a||(a=y&~e,a!==0&&(u=ll(a))))):(y=r&~c,y!==0?u=ll(y):h!==0?u=ll(h):a||(a=r&~e,a!==0&&(u=ll(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 ei(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function t2(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 Ym(){var e=Ms;return Ms<<=1,(Ms&62914560)===0&&(Ms=4194304),e}function ac(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ti(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function a2(e,t,a,r,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,z=e.hiddenUpdates;for(a=h&~a;0<a;){var V=31-Et(a),q=1<<V;y[V]=0,b[V]=-1;var M=z[V];if(M!==null)for(z[V]=null,V=0;V<M.length;V++){var D=M[V];D!==null&&(D.lane&=-536870913)}a&=~q}r!==0&&Gm(e,r,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Gm(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Et(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Qm(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Et(a),u=1<<r;u&t|e[r]&t&&(e[r]|=t),a&=~u}}function Xm(e,t){var a=t&-t;return a=(a&42)!==0?1:nc(a),(a&(e.suspendedLanes|t))!==0?0:a}function nc(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 lc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $m(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Mp(e.type))}function Km(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var wn=Math.random().toString(36).slice(2),Ot="__reactFiber$"+wn,Yt="__reactProps$"+wn,Gl="__reactContainer$"+wn,rc="__reactEvents$"+wn,n2="__reactListeners$"+wn,l2="__reactHandles$"+wn,Jm="__reactResources$"+wn,ai="__reactMarker$"+wn;function ic(e){delete e[Ot],delete e[Yt],delete e[rc],delete e[n2],delete e[l2]}function Ql(e){var t=e[Ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Gl]||a[Ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=gp(e);e!==null;){if(a=e[Ot])return a;e=gp(e)}return t}e=a,a=e.parentNode}return null}function Xl(e){if(e=e[Ot]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ni(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function $l(e){var t=e[Jm];return t||(t=e[Jm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function At(e){e[ai]=!0}var Fm=new Set,Wm={};function rl(e,t){Kl(e,t),Kl(e+"Capture",t)}function Kl(e,t){for(Wm[e]=t,e=0;e<t.length;e++)Fm.add(t[e])}var r2=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]*$"),Im={},Pm={};function i2(e){return Pr.call(Pm,e)?!0:Pr.call(Im,e)?!1:r2.test(e)?Pm[e]=!0:(Im[e]=!0,!1)}function js(e,t,a){if(i2(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Rs(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 Ja(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function ma(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function e0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s2(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,c=r.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:r.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sc(e){if(!e._valueTracker){var t=e0(e)?"checked":"value";e._valueTracker=s2(e,t,""+e[t])}}function t0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=e0(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Us(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 u2=/[\n"\\]/g;function ya(e){return e.replace(u2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function uc(e,t,a,r,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=""+ma(t)):e.value!==""+ma(t)&&(e.value=""+ma(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?oc(e,h,ma(t)):a!=null?oc(e,h,ma(a)):r!=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=""+ma(y):e.removeAttribute("name")}function a0(e,t,a,r,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)){sc(e);return}a=a!=null?""+ma(a):"",t=t!=null?""+ma(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=y?e.checked:!!r,e.defaultChecked=!!r,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),sc(e)}function oc(e,t,a){t==="number"&&Us(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Jl(e,t,a,r){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&&r&&(e[a].defaultSelected=!0)}else{for(a=""+ma(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function n0(e,t,a){if(t!=null&&(t=""+ma(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ma(a):""}function l0(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(s(92));if(le(r)){if(1<r.length)throw Error(s(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=ma(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),sc(e)}function Fl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var o2=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 r0(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||o2.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function i0(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in t)r=t[u],t.hasOwnProperty(u)&&a[u]!==r&&r0(e,u,r)}else for(var c in t)t.hasOwnProperty(c)&&r0(e,c,t[c])}function cc(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 c2=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"]]),f2=/^[\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 Bs(e){return f2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fa(){}var fc=null;function dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,Il=null;function s0(e){var t=Xl(e);if(t&&(e=t.stateNode)){var a=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(uc(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="'+ya(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var u=r[Yt]||null;if(!u)throw Error(s(90));uc(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&t0(r)}break e;case"textarea":n0(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Jl(e,!!a.multiple,t,!1)}}}var hc=!1;function u0(e,t,a){if(hc)return e(t,a);hc=!0;try{var r=e(t);return r}finally{if(hc=!1,(Wl!==null||Il!==null)&&(Au(),Wl&&(t=Wl,e=Il,Il=Wl=null,s0(t),e)))for(t=0;t<e.length;t++)s0(e[t])}}function li(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Yt]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Wa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mc=!1;if(Wa)try{var ri={};Object.defineProperty(ri,"passive",{get:function(){mc=!0}}),window.addEventListener("test",ri,ri),window.removeEventListener("test",ri,ri)}catch{mc=!1}var An=null,yc=null,Vs=null;function o0(){if(Vs)return Vs;var e,t=yc,a=t.length,r,u="value"in An?An.value:An.textContent,c=u.length;for(e=0;e<a&&t[e]===u[e];e++);var h=a-e;for(r=1;r<=h&&t[a-r]===u[c-r];r++);return Vs=u.slice(e,1<r?1-r:void 0)}function Ls(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 Hs(){return!0}function c0(){return!1}function Gt(e){function t(a,r,u,c,h){this._reactName=a,this._targetInst=u,this.type=r,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)?Hs:c0,this.isPropagationStopped=c0,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=Hs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Hs)},persist:function(){},isPersistent:Hs}),t}var il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qs=Gt(il),ii=w({},il,{view:0,detail:0}),d2=Gt(ii),gc,pc,si,Zs=w({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bc,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!==si&&(si&&e.type==="mousemove"?(gc=e.screenX-si.screenX,pc=e.screenY-si.screenY):pc=gc=0,si=e),gc)},movementY:function(e){return"movementY"in e?e.movementY:pc}}),f0=Gt(Zs),h2=w({},Zs,{dataTransfer:0}),m2=Gt(h2),y2=w({},ii,{relatedTarget:0}),vc=Gt(y2),g2=w({},il,{animationName:0,elapsedTime:0,pseudoElement:0}),p2=Gt(g2),v2=w({},il,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b2=Gt(v2),x2=w({},il,{data:0}),d0=Gt(x2),S2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_2={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"},w2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w2[e])?!!t[e]:!1}function bc(){return A2}var T2=w({},ii,{key:function(e){if(e.key){var t=S2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bc,charCode:function(e){return e.type==="keypress"?Ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C2=Gt(T2),E2=w({},Zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),h0=Gt(E2),O2=w({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bc}),z2=Gt(O2),k2=w({},il,{propertyName:0,elapsedTime:0,pseudoElement:0}),N2=Gt(k2),M2=w({},Zs,{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}),D2=Gt(M2),j2=w({},il,{newState:0,oldState:0}),R2=Gt(j2),U2=[9,13,27,32],xc=Wa&&"CompositionEvent"in window,ui=null;Wa&&"documentMode"in document&&(ui=document.documentMode);var B2=Wa&&"TextEvent"in window&&!ui,m0=Wa&&(!xc||ui&&8<ui&&11>=ui),y0=" ",g0=!1;function p0(e,t){switch(e){case"keyup":return U2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function v0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pl=!1;function V2(e,t){switch(e){case"compositionend":return v0(t);case"keypress":return t.which!==32?null:(g0=!0,y0);case"textInput":return e=t.data,e===y0&&g0?null:e;default:return null}}function L2(e,t){if(Pl)return e==="compositionend"||!xc&&p0(e,t)?(e=o0(),Vs=yc=An=null,Pl=!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 m0&&t.locale!=="ko"?null:t.data;default:return null}}var H2={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 b0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!H2[e.type]:t==="textarea"}function x0(e,t,a,r){Wl?Il?Il.push(r):Il=[r]:Wl=r,t=Nu(t,"onChange"),0<t.length&&(a=new qs("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var oi=null,ci=null;function q2(e){ap(e,0)}function Ys(e){var t=ni(e);if(t0(t))return e}function S0(e,t){if(e==="change")return t}var _0=!1;if(Wa){var Sc;if(Wa){var _c="oninput"in document;if(!_c){var w0=document.createElement("div");w0.setAttribute("oninput","return;"),_c=typeof w0.oninput=="function"}Sc=_c}else Sc=!1;_0=Sc&&(!document.documentMode||9<document.documentMode)}function A0(){oi&&(oi.detachEvent("onpropertychange",T0),ci=oi=null)}function T0(e){if(e.propertyName==="value"&&Ys(ci)){var t=[];x0(t,ci,e,dc(e)),u0(q2,t)}}function Z2(e,t,a){e==="focusin"?(A0(),oi=t,ci=a,oi.attachEvent("onpropertychange",T0)):e==="focusout"&&A0()}function Y2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ys(ci)}function G2(e,t){if(e==="click")return Ys(t)}function Q2(e,t){if(e==="input"||e==="change")return Ys(t)}function X2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ta=typeof Object.is=="function"?Object.is:X2;function fi(e,t){if(ta(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var u=a[r];if(!Pr.call(t,u)||!ta(e[u],t[u]))return!1}return!0}function C0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function E0(e,t){var a=C0(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=C0(a)}}function O0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function z0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Us(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=Us(e.document)}return t}function wc(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 $2=Wa&&"documentMode"in document&&11>=document.documentMode,er=null,Ac=null,di=null,Tc=!1;function k0(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tc||er==null||er!==Us(r)||(r=er,"selectionStart"in r&&wc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),di&&fi(di,r)||(di=r,r=Nu(Ac,"onSelect"),0<r.length&&(t=new qs("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=er)))}function sl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var tr={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},Cc={},N0={};Wa&&(N0=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function ul(e){if(Cc[e])return Cc[e];if(!tr[e])return e;var t=tr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in N0)return Cc[e]=t[a];return e}var M0=ul("animationend"),D0=ul("animationiteration"),j0=ul("animationstart"),K2=ul("transitionrun"),J2=ul("transitionstart"),F2=ul("transitioncancel"),R0=ul("transitionend"),U0=new Map,Ec="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(" ");Ec.push("scrollEnd");function Ea(e,t){U0.set(e,t),rl(t,[e])}var Gs=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)},ga=[],ar=0,Oc=0;function Qs(){for(var e=ar,t=Oc=ar=0;t<e;){var a=ga[t];ga[t++]=null;var r=ga[t];ga[t++]=null;var u=ga[t];ga[t++]=null;var c=ga[t];if(ga[t++]=null,r!==null&&u!==null){var h=r.pending;h===null?u.next=u:(u.next=h.next,h.next=u),r.pending=u}c!==0&&B0(a,u,c)}}function Xs(e,t,a,r){ga[ar++]=e,ga[ar++]=t,ga[ar++]=a,ga[ar++]=r,Oc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function zc(e,t,a,r){return Xs(e,t,a,r),$s(e)}function ol(e,t){return Xs(e,null,null,t),$s(e)}function B0(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.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-Et(a),e=c.hiddenUpdates,r=e[u],r===null?e[u]=[t]:r.push(t),t.lane=a|536870912),c):null}function $s(e){if(50<ji)throw ji=0,Lf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var nr={};function W2(e,t,a,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function aa(e,t,a,r){return new W2(e,t,a,r)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ia(e,t){var a=e.alternate;return a===null?(a=aa(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 V0(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 Ks(e,t,a,r,u,c){var h=0;if(r=e,typeof e=="function")kc(e)&&(h=1);else if(typeof e=="string")h=aw(e,a,ct.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ue:return e=aa(31,a,t,u),e.elementType=Ue,e.lanes=c,e;case A:return cl(a.children,u,c,t);case Z:h=8,u|=24;break;case I:return e=aa(12,a,t,u|2),e.elementType=I,e.lanes=c,e;case L:return e=aa(13,a,t,u),e.elementType=L,e.lanes=c,e;case Q:return e=aa(19,a,t,u),e.elementType=Q,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:h=10;break e;case $:h=9;break e;case P:h=11;break e;case ae:h=14;break e;case xe:h=16,r=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=aa(h,a,t,u),t.elementType=e,t.type=r,t.lanes=c,t}function cl(e,t,a,r){return e=aa(7,e,r,t),e.lanes=a,e}function Nc(e,t,a){return e=aa(6,e,null,t),e.lanes=a,e}function L0(e){var t=aa(18,null,null,0);return t.stateNode=e,t}function Mc(e,t,a){return t=aa(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var H0=new WeakMap;function pa(e,t){if(typeof e=="object"&&e!==null){var a=H0.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Os(t)},H0.set(e,t),t)}return{value:e,source:t,stack:Os(t)}}var lr=[],rr=0,Js=null,hi=0,va=[],ba=0,Tn=null,Ha=1,qa="";function Pa(e,t){lr[rr++]=hi,lr[rr++]=Js,Js=e,hi=t}function q0(e,t,a){va[ba++]=Ha,va[ba++]=qa,va[ba++]=Tn,Tn=e;var r=Ha;e=qa;var u=32-Et(r)-1;r&=~(1<<u),a+=1;var c=32-Et(t)+u;if(30<c){var h=u-u%5;c=(r&(1<<h)-1).toString(32),r>>=h,u-=h,Ha=1<<32-Et(t)+u|a<<u|r,qa=c+e}else Ha=1<<c|a<<u|r,qa=e}function Dc(e){e.return!==null&&(Pa(e,1),q0(e,1,0))}function jc(e){for(;e===Js;)Js=lr[--rr],lr[rr]=null,hi=lr[--rr],lr[rr]=null;for(;e===Tn;)Tn=va[--ba],va[ba]=null,qa=va[--ba],va[ba]=null,Ha=va[--ba],va[ba]=null}function Z0(e,t){va[ba++]=Ha,va[ba++]=qa,va[ba++]=Tn,Ha=t.id,qa=t.overflow,Tn=e}var zt=null,Ie=null,Ce=!1,Cn=null,xa=!1,Rc=Error(s(519));function En(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mi(pa(t,e)),Rc}function Y0(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[Ot]=e,t[Yt]=r,a){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(a=0;a<Ui.length;a++)we(Ui[a],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),a0(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),l0(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||ip(t.textContent,a)?(r.popover!=null&&(we("beforetoggle",t),we("toggle",t)),r.onScroll!=null&&we("scroll",t),r.onScrollEnd!=null&&we("scrollend",t),r.onClick!=null&&(t.onclick=Fa),t=!0):t=!1,t||En(e,!0)}function G0(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 31:case 13:xa=!1;return;case 27:case 3:xa=!0;return;default:zt=zt.return}}function ir(e){if(e!==zt)return!1;if(!Ce)return G0(e),Ce=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ed(e.type,e.memoizedProps)),a=!a),a&&Ie&&En(e),G0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ie=yp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ie=yp(e)}else t===27?(t=Ie,qn(e.type)?(e=rd,rd=null,Ie=e):Ie=t):Ie=zt?_a(e.stateNode.nextSibling):null;return!0}function fl(){Ie=zt=null,Ce=!1}function Uc(){var e=Cn;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),Cn=null),e}function mi(e){Cn===null?Cn=[e]:Cn.push(e)}var Bc=_t(null),dl=null,en=null;function On(e,t,a){ze(Bc,t._currentValue),t._currentValue=a}function tn(e){e._currentValue=Bc.current,Fe(Bc)}function Vc(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Lc(e,t,a,r){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),Vc(c.return,a,e),r||(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),Vc(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 sr(e,t,a,r){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;ta(u.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(u===tl.current){if(h=u.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(qi):e=[qi])}u=u.return}e!==null&&Lc(t,e,a,r),t.flags|=262144}function Fs(e){for(e=e.firstContext;e!==null;){if(!ta(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hl(e){dl=e,en=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return Q0(dl,e)}function Ws(e,t){return dl===null&&hl(e),Q0(e,t)}function Q0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},en===null){if(e===null)throw Error(s(308));en=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else en=en.next=t;return a}var I2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},P2=n.unstable_scheduleCallback,e_=n.unstable_NormalPriority,pt={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new I2,data:new Map,refCount:0}}function yi(e){e.refCount--,e.refCount===0&&P2(e_,function(){e.controller.abort()})}var gi=null,qc=0,ur=0,or=null;function t_(e,t){if(gi===null){var a=gi=[];qc=0,ur=Qf(),or={status:"pending",value:void 0,then:function(r){a.push(r)}}}return qc++,t.then(X0,X0),t}function X0(){if(--qc===0&&gi!==null){or!==null&&(or.status="fulfilled");var e=gi;gi=null,ur=0,or=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function a_(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(r.status="rejected",r.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),r}var $0=k.S;k.S=function(e,t){kg=N(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&t_(e,t),$0!==null&&$0(e,t)};var ml=_t(null);function Zc(){var e=ml.current;return e!==null?e:Je.pooledCache}function Is(e,t){t===null?ze(ml,ml.current):ze(ml,t.pool)}function K0(){var e=Zc();return e===null?null:{parent:pt._currentValue,pool:e}}var cr=Error(s(460)),Yc=Error(s(474)),Ps=Error(s(542)),eu={then:function(){}};function J0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function F0(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Fa,Fa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,I0(e),e;default:if(typeof t.status=="string")t.then(Fa,Fa);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,I0(e),e}throw gl=t,cr}}function yl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(gl=a,cr):a}}var gl=null;function W0(){if(gl===null)throw Error(s(459));var e=gl;return gl=null,e}function I0(e){if(e===cr||e===Ps)throw Error(s(483))}var fr=null,pi=0;function tu(e){var t=pi;return pi+=1,fr===null&&(fr=[]),F0(fr,e,t)}function vi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function au(e,t){throw t.$$typeof===R?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function P0(e){function t(C,_){if(e){var O=C.deletions;O===null?(C.deletions=[_],C.flags|=16):O.push(_)}}function a(C,_){if(!e)return null;for(;_!==null;)t(C,_),_=_.sibling;return null}function r(C){for(var _=new Map;C!==null;)C.key!==null?_.set(C.key,C):_.set(C.index,C),C=C.sibling;return _}function u(C,_){return C=Ia(C,_),C.index=0,C.sibling=null,C}function c(C,_,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<_?(C.flags|=67108866,_):O):(C.flags|=67108866,_)):(C.flags|=1048576,_)}function h(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function y(C,_,O,H){return _===null||_.tag!==6?(_=Nc(O,C.mode,H),_.return=C,_):(_=u(_,O),_.return=C,_)}function b(C,_,O,H){var fe=O.type;return fe===A?V(C,_,O.props.children,H,O.key):_!==null&&(_.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===xe&&yl(fe)===_.type)?(_=u(_,O.props),vi(_,O),_.return=C,_):(_=Ks(O.type,O.key,O.props,null,C.mode,H),vi(_,O),_.return=C,_)}function z(C,_,O,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==O.containerInfo||_.stateNode.implementation!==O.implementation?(_=Mc(O,C.mode,H),_.return=C,_):(_=u(_,O.children||[]),_.return=C,_)}function V(C,_,O,H,fe){return _===null||_.tag!==7?(_=cl(O,C.mode,H,fe),_.return=C,_):(_=u(_,O),_.return=C,_)}function q(C,_,O){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Nc(""+_,C.mode,O),_.return=C,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case S:return O=Ks(_.type,_.key,_.props,null,C.mode,O),vi(O,_),O.return=C,O;case U:return _=Mc(_,C.mode,O),_.return=C,_;case xe:return _=yl(_),q(C,_,O)}if(le(_)||g(_))return _=cl(_,C.mode,O,null),_.return=C,_;if(typeof _.then=="function")return q(C,tu(_),O);if(_.$$typeof===te)return q(C,Ws(C,_),O);au(C,_)}return null}function M(C,_,O,H){var fe=_!==null?_.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return fe!==null?null:y(C,_,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return O.key===fe?b(C,_,O,H):null;case U:return O.key===fe?z(C,_,O,H):null;case xe:return O=yl(O),M(C,_,O,H)}if(le(O)||g(O))return fe!==null?null:V(C,_,O,H,null);if(typeof O.then=="function")return M(C,_,tu(O),H);if(O.$$typeof===te)return M(C,_,Ws(C,O),H);au(C,O)}return null}function D(C,_,O,H,fe){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return C=C.get(O)||null,y(_,C,""+H,fe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case S:return C=C.get(H.key===null?O:H.key)||null,b(_,C,H,fe);case U:return C=C.get(H.key===null?O:H.key)||null,z(_,C,H,fe);case xe:return H=yl(H),D(C,_,O,H,fe)}if(le(H)||g(H))return C=C.get(O)||null,V(_,C,H,fe,null);if(typeof H.then=="function")return D(C,_,O,tu(H),fe);if(H.$$typeof===te)return D(C,_,O,Ws(_,H),fe);au(_,H)}return null}function ie(C,_,O,H){for(var fe=null,Me=null,oe=_,be=_=0,Te=null;oe!==null&&be<O.length;be++){oe.index>be?(Te=oe,oe=null):Te=oe.sibling;var De=M(C,oe,O[be],H);if(De===null){oe===null&&(oe=Te);break}e&&oe&&De.alternate===null&&t(C,oe),_=c(De,_,be),Me===null?fe=De:Me.sibling=De,Me=De,oe=Te}if(be===O.length)return a(C,oe),Ce&&Pa(C,be),fe;if(oe===null){for(;be<O.length;be++)oe=q(C,O[be],H),oe!==null&&(_=c(oe,_,be),Me===null?fe=oe:Me.sibling=oe,Me=oe);return Ce&&Pa(C,be),fe}for(oe=r(oe);be<O.length;be++)Te=D(oe,C,be,O[be],H),Te!==null&&(e&&Te.alternate!==null&&oe.delete(Te.key===null?be:Te.key),_=c(Te,_,be),Me===null?fe=Te:Me.sibling=Te,Me=Te);return e&&oe.forEach(function(Xn){return t(C,Xn)}),Ce&&Pa(C,be),fe}function de(C,_,O,H){if(O==null)throw Error(s(151));for(var fe=null,Me=null,oe=_,be=_=0,Te=null,De=O.next();oe!==null&&!De.done;be++,De=O.next()){oe.index>be?(Te=oe,oe=null):Te=oe.sibling;var Xn=M(C,oe,De.value,H);if(Xn===null){oe===null&&(oe=Te);break}e&&oe&&Xn.alternate===null&&t(C,oe),_=c(Xn,_,be),Me===null?fe=Xn:Me.sibling=Xn,Me=Xn,oe=Te}if(De.done)return a(C,oe),Ce&&Pa(C,be),fe;if(oe===null){for(;!De.done;be++,De=O.next())De=q(C,De.value,H),De!==null&&(_=c(De,_,be),Me===null?fe=De:Me.sibling=De,Me=De);return Ce&&Pa(C,be),fe}for(oe=r(oe);!De.done;be++,De=O.next())De=D(oe,C,be,De.value,H),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?be:De.key),_=c(De,_,be),Me===null?fe=De:Me.sibling=De,Me=De);return e&&oe.forEach(function(hw){return t(C,hw)}),Ce&&Pa(C,be),fe}function Ke(C,_,O,H){if(typeof O=="object"&&O!==null&&O.type===A&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case S:e:{for(var fe=O.key;_!==null;){if(_.key===fe){if(fe=O.type,fe===A){if(_.tag===7){a(C,_.sibling),H=u(_,O.props.children),H.return=C,C=H;break e}}else if(_.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===xe&&yl(fe)===_.type){a(C,_.sibling),H=u(_,O.props),vi(H,O),H.return=C,C=H;break e}a(C,_);break}else t(C,_);_=_.sibling}O.type===A?(H=cl(O.props.children,C.mode,H,O.key),H.return=C,C=H):(H=Ks(O.type,O.key,O.props,null,C.mode,H),vi(H,O),H.return=C,C=H)}return h(C);case U:e:{for(fe=O.key;_!==null;){if(_.key===fe)if(_.tag===4&&_.stateNode.containerInfo===O.containerInfo&&_.stateNode.implementation===O.implementation){a(C,_.sibling),H=u(_,O.children||[]),H.return=C,C=H;break e}else{a(C,_);break}else t(C,_);_=_.sibling}H=Mc(O,C.mode,H),H.return=C,C=H}return h(C);case xe:return O=yl(O),Ke(C,_,O,H)}if(le(O))return ie(C,_,O,H);if(g(O)){if(fe=g(O),typeof fe!="function")throw Error(s(150));return O=fe.call(O),de(C,_,O,H)}if(typeof O.then=="function")return Ke(C,_,tu(O),H);if(O.$$typeof===te)return Ke(C,_,Ws(C,O),H);au(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,_!==null&&_.tag===6?(a(C,_.sibling),H=u(_,O),H.return=C,C=H):(a(C,_),H=Nc(O,C.mode,H),H.return=C,C=H),h(C)):a(C,_)}return function(C,_,O,H){try{pi=0;var fe=Ke(C,_,O,H);return fr=null,fe}catch(oe){if(oe===cr||oe===Ps)throw oe;var Me=aa(29,oe,null,C.mode);return Me.lanes=H,Me.return=C,Me}finally{}}}var pl=P0(!0),ey=P0(!1),zn=!1;function Gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(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 kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Be&2)!==0){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,t=$s(e),B0(e,null,a),t}return Xs(e,r,t,a),$s(e)}function bi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qm(e,a)}}function Xc(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){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:r.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var $c=!1;function xi(){if($c){var e=or;if(e!==null)throw e}}function Si(e,t,a,r){$c=!1;var u=e.updateQueue;zn=!1;var c=u.firstBaseUpdate,h=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var b=y,z=b.next;b.next=null,h===null?c=z:h.next=z,h=b;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==h&&(y===null?V.firstBaseUpdate=z:y.next=z,V.lastBaseUpdate=b))}if(c!==null){var q=u.baseState;h=0,V=z=b=null,y=c;do{var M=y.lane&-536870913,D=M!==y.lane;if(D?(Ae&M)===M:(r&M)===M){M!==0&&M===ur&&($c=!0),V!==null&&(V=V.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ie=e,de=y;M=t;var Ke=a;switch(de.tag){case 1:if(ie=de.payload,typeof ie=="function"){q=ie.call(Ke,q,M);break e}q=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=de.payload,M=typeof ie=="function"?ie.call(Ke,q,M):ie,M==null)break e;q=w({},q,M);break e;case 2:zn=!0}}M=y.callback,M!==null&&(e.flags|=64,D&&(e.flags|=8192),D=u.callbacks,D===null?u.callbacks=[M]:D.push(M))}else D={lane:M,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(z=V=D,b=q):V=V.next=D,h|=M;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;D=y,y=D.next,D.next=null,u.lastBaseUpdate=D,u.shared.pending=null}}while(!0);V===null&&(b=q),u.baseState=b,u.firstBaseUpdate=z,u.lastBaseUpdate=V,c===null&&(u.shared.lanes=0),Un|=h,e.lanes=h,e.memoizedState=q}}function ty(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ay(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ty(a[e],t)}var dr=_t(null),nu=_t(0);function ny(e,t){e=fn,ze(nu,e),ze(dr,t),fn=e|t.baseLanes}function Kc(){ze(nu,fn),ze(dr,dr.current)}function Jc(){fn=nu.current,Fe(dr),Fe(nu)}var na=_t(null),Sa=null;function Mn(e){var t=e.alternate;ze(ft,ft.current&1),ze(na,e),Sa===null&&(t===null||dr.current!==null||t.memoizedState!==null)&&(Sa=e)}function Fc(e){ze(ft,ft.current),ze(na,e),Sa===null&&(Sa=e)}function ly(e){e.tag===22?(ze(ft,ft.current),ze(na,e),Sa===null&&(Sa=e)):Dn()}function Dn(){ze(ft,ft.current),ze(na,na.current)}function la(e){Fe(na),Sa===e&&(Sa=null),Fe(ft)}var ft=_t(0);function lu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||nd(a)||ld(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 an=0,ve=null,Xe=null,vt=null,ru=!1,hr=!1,vl=!1,iu=0,_i=0,mr=null,n_=0;function rt(){throw Error(s(321))}function Wc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ta(e[a],t[a]))return!1;return!0}function Ic(e,t,a,r,u,c){return an=c,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?qy:mf,vl=!1,c=a(r,u),vl=!1,hr&&(c=iy(t,a,r,u)),ry(e),c}function ry(e){k.H=Ti;var t=Xe!==null&&Xe.next!==null;if(an=0,vt=Xe=ve=null,ru=!1,_i=0,mr=null,t)throw Error(s(300));e===null||bt||(e=e.dependencies,e!==null&&Fs(e)&&(bt=!0))}function iy(e,t,a,r){ve=e;var u=0;do{if(hr&&(mr=null),_i=0,hr=!1,25<=u)throw Error(s(301));if(u+=1,vt=Xe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=Zy,c=t(a,r)}while(hr);return c}function l_(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?wi(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(ve.flags|=1024),t}function Pc(){var e=iu!==0;return iu=0,e}function ef(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function tf(e){if(ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ru=!1}an=0,vt=Xe=ve=null,hr=!1,_i=iu=0,mr=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?ve.memoizedState=vt=e:vt=vt.next=e,vt}function dt(){if(Xe===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=vt===null?ve.memoizedState:vt.next;if(t!==null)vt=t,Xe=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},vt===null?ve.memoizedState=vt=e:vt=vt.next=e}return vt}function su(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wi(e){var t=_i;return _i+=1,mr===null&&(mr=[]),e=F0(mr,e,t),t=ve,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?qy:mf),e}function uu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wi(e);if(e.$$typeof===te)return kt(e)}throw Error(s(438,String(e)))}function af(e){var t=null,a=ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=ve.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=su(),ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=We;return t.index++,a}function nn(e,t){return typeof t=="function"?t(e):t}function ou(e){var t=dt();return nf(t,Xe,e)}function nf(e,t,a){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=a;var u=e.baseQueue,c=r.pending;if(c!==null){if(u!==null){var h=u.next;u.next=c.next,c.next=h}t.baseQueue=u=c,r.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var y=h=null,b=null,z=t,V=!1;do{var q=z.lane&-536870913;if(q!==z.lane?(Ae&q)===q:(an&q)===q){var M=z.revertLane;if(M===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),q===ur&&(V=!0);else if((an&M)===M){z=z.next,M===ur&&(V=!0);continue}else q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(y=b=q,h=c):b=b.next=q,ve.lanes|=M,Un|=M;q=z.action,vl&&a(c,q),c=z.hasEagerState?z.eagerState:a(c,q)}else M={lane:q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(y=b=M,h=c):b=b.next=M,ve.lanes|=q,Un|=q;z=z.next}while(z!==null&&z!==t);if(b===null?h=c:b.next=y,!ta(c,e.memoizedState)&&(bt=!0,V&&(a=or,a!==null)))throw a;e.memoizedState=c,e.baseState=h,e.baseQueue=b,r.lastRenderedState=c}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function lf(e){var t=dt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var r=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);ta(c,t.memoizedState)||(bt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function sy(e,t,a){var r=ve,u=dt(),c=Ce;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!ta((Xe||u).memoizedState,a);if(h&&(u.memoizedState=a,bt=!0),u=u.queue,uf(cy.bind(null,r,u,e),[e]),u.getSnapshot!==t||h||vt!==null&&vt.memoizedState.tag&1){if(r.flags|=2048,yr(9,{destroy:void 0},oy.bind(null,r,u,a,t),null),Je===null)throw Error(s(349));c||(an&127)!==0||uy(r,t,a)}return a}function uy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ve.updateQueue,t===null?(t=su(),ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function oy(e,t,a,r){t.value=a,t.getSnapshot=r,fy(t)&&dy(e)}function cy(e,t,a){return a(function(){fy(t)&&dy(e)})}function fy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ta(e,a)}catch{return!0}}function dy(e){var t=ol(e,2);t!==null&&Jt(t,e,2)}function rf(e){var t=Lt();if(typeof e=="function"){var a=e;if(e=a(),vl){ha(!0);try{a()}finally{ha(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:e},t}function hy(e,t,a,r){return e.baseState=a,nf(e,Xe,typeof r=="function"?r:nn)}function r_(e,t,a,r,u){if(du(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)}};k.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,my(t,c)):(c.next=a.next,t.pending=a.next=c)}}function my(e,t){var a=t.action,r=t.payload,u=e.state;if(t.isTransition){var c=k.T,h={};k.T=h;try{var y=a(u,r),b=k.S;b!==null&&b(h,y),yy(e,t,y)}catch(z){sf(e,t,z)}finally{c!==null&&h.types!==null&&(c.types=h.types),k.T=c}}else try{c=a(u,r),yy(e,t,c)}catch(z){sf(e,t,z)}}function yy(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){gy(e,t,r)},function(r){return sf(e,t,r)}):gy(e,t,a)}function gy(e,t,a){t.status="fulfilled",t.value=a,py(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,my(e,a)))}function sf(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,py(t),t=t.next;while(t!==r)}e.action=null}function py(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vy(e,t){return t}function by(e,t){if(Ce){var a=Je.formState;if(a!==null){e:{var r=ve;if(Ce){if(Ie){t:{for(var u=Ie,c=xa;u.nodeType!==8;){if(!c){u=null;break t}if(u=_a(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ie=_a(u.nextSibling),r=u.data==="F!";break e}}En(r)}r=!1}r&&(t=a[0])}}return a=Lt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vy,lastRenderedState:t},a.queue=r,a=Vy.bind(null,ve,r),r.dispatch=a,r=rf(!1),c=hf.bind(null,ve,!1,r.queue),r=Lt(),u={state:t,dispatch:null,action:e,pending:null},r.queue=u,a=r_.bind(null,ve,u,c,a),u.dispatch=a,r.memoizedState=e,[t,a,!1]}function xy(e){var t=dt();return Sy(t,Xe,e)}function Sy(e,t,a){if(t=nf(e,t,vy)[0],e=ou(nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=wi(t)}catch(h){throw h===cr?Ps:h}else r=t;t=dt();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(ve.flags|=2048,yr(9,{destroy:void 0},i_.bind(null,u,a),null)),[r,c,e]}function i_(e,t){e.action=t}function _y(e){var t=dt(),a=Xe;if(a!==null)return Sy(t,a,e);dt(),t=t.memoizedState,a=dt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function yr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=ve.updateQueue,t===null&&(t=su(),ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function wy(){return dt().memoizedState}function cu(e,t,a,r){var u=Lt();ve.flags|=e,u.memoizedState=yr(1|t,{destroy:void 0},a,r===void 0?null:r)}function fu(e,t,a,r){var u=dt();r=r===void 0?null:r;var c=u.memoizedState.inst;Xe!==null&&r!==null&&Wc(r,Xe.memoizedState.deps)?u.memoizedState=yr(t,c,a,r):(ve.flags|=e,u.memoizedState=yr(1|t,c,a,r))}function Ay(e,t){cu(8390656,8,e,t)}function uf(e,t){fu(2048,8,e,t)}function s_(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=su(),ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ty(e){var t=dt().memoizedState;return s_({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Cy(e,t){return fu(4,2,e,t)}function Ey(e,t){return fu(4,4,e,t)}function Oy(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 zy(e,t,a){a=a!=null?a.concat([e]):null,fu(4,4,Oy.bind(null,t,e),a)}function of(){}function ky(e,t){var a=dt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Wc(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Ny(e,t){var a=dt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Wc(t,r[1]))return r[0];if(r=e(),vl){ha(!0);try{e()}finally{ha(!1)}}return a.memoizedState=[r,t],r}function cf(e,t,a){return a===void 0||(an&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Mg(),ve.lanes|=e,Un|=e,a)}function My(e,t,a,r){return ta(a,t)?a:dr.current!==null?(e=cf(e,a,r),ta(e,t)||(bt=!0),e):(an&42)===0||(an&1073741824)!==0&&(Ae&261930)===0?(bt=!0,e.memoizedState=a):(e=Mg(),ve.lanes|=e,Un|=e,t)}function Dy(e,t,a,r,u){var c=X.p;X.p=c!==0&&8>c?c:8;var h=k.T,y={};k.T=y,hf(e,!1,t,a);try{var b=u(),z=k.S;if(z!==null&&z(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var V=a_(b,r);Ai(e,t,V,sa(e))}else Ai(e,t,r,sa(e))}catch(q){Ai(e,t,{then:function(){},status:"rejected",reason:q},sa())}finally{X.p=c,h!==null&&y.types!==null&&(h.types=y.types),k.T=h}}function u_(){}function ff(e,t,a,r){if(e.tag!==5)throw Error(s(476));var u=jy(e).queue;Dy(e,u,t,re,a===null?u_:function(){return Ry(e),a(r)})}function jy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:re},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ry(e){var t=jy(e);t.next===null&&(t=e.alternate.memoizedState),Ai(e,t.next.queue,{},sa())}function df(){return kt(qi)}function Uy(){return dt().memoizedState}function By(){return dt().memoizedState}function o_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=sa();e=kn(a);var r=Nn(t,e,a);r!==null&&(Jt(r,t,a),bi(r,t,a)),t={cache:Hc()},e.payload=t;return}t=t.return}}function c_(e,t,a){var r=sa();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},du(e)?Ly(t,a):(a=zc(e,t,a,r),a!==null&&(Jt(a,e,r),Hy(a,t,r)))}function Vy(e,t,a){var r=sa();Ai(e,t,a,r)}function Ai(e,t,a,r){var u={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(du(e))Ly(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,ta(y,h))return Xs(e,t,u,0),Je===null&&Qs(),!1}catch{}finally{}if(a=zc(e,t,u,r),a!==null)return Jt(a,e,r),Hy(a,t,r),!0}return!1}function hf(e,t,a,r){if(r={lane:2,revertLane:Qf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},du(e)){if(t)throw Error(s(479))}else t=zc(e,a,r,2),t!==null&&Jt(t,e,2)}function du(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Ly(e,t){hr=ru=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Hy(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qm(e,a)}}var Ti={readContext:kt,use:uu,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};Ti.useEffectEvent=rt;var qy={readContext:kt,use:uu,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Ay,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,cu(4194308,4,Oy.bind(null,t,e),a)},useLayoutEffect:function(e,t){return cu(4194308,4,e,t)},useInsertionEffect:function(e,t){cu(4,2,e,t)},useMemo:function(e,t){var a=Lt();t=t===void 0?null:t;var r=e();if(vl){ha(!0);try{e()}finally{ha(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Lt();if(a!==void 0){var u=a(t);if(vl){ha(!0);try{a(t)}finally{ha(!1)}}}else u=t;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=c_.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=rf(e);var t=e.queue,a=Vy.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:of,useDeferredValue:function(e,t){var a=Lt();return cf(a,e,t)},useTransition:function(){var e=rf(!1);return e=Dy.bind(null,ve,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=ve,u=Lt();if(Ce){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Je===null)throw Error(s(349));(Ae&127)!==0||uy(r,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,Ay(cy.bind(null,r,c,e),[e]),r.flags|=2048,yr(9,{destroy:void 0},oy.bind(null,r,c,a,t),null),a},useId:function(){var e=Lt(),t=Je.identifierPrefix;if(Ce){var a=qa,r=Ha;a=(r&~(1<<32-Et(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=iu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=n_++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:df,useFormState:by,useActionState:by,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=hf.bind(null,ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:af,useCacheRefresh:function(){return Lt().memoizedState=o_.bind(null,ve)},useEffectEvent:function(e){var t=Lt(),a={impl:e};return t.memoizedState=a,function(){if((Be&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},mf={readContext:kt,use:uu,useCallback:ky,useContext:kt,useEffect:uf,useImperativeHandle:zy,useInsertionEffect:Cy,useLayoutEffect:Ey,useMemo:Ny,useReducer:ou,useRef:wy,useState:function(){return ou(nn)},useDebugValue:of,useDeferredValue:function(e,t){var a=dt();return My(a,Xe.memoizedState,e,t)},useTransition:function(){var e=ou(nn)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:wi(e),t]},useSyncExternalStore:sy,useId:Uy,useHostTransitionStatus:df,useFormState:xy,useActionState:xy,useOptimistic:function(e,t){var a=dt();return hy(a,Xe,e,t)},useMemoCache:af,useCacheRefresh:By};mf.useEffectEvent=Ty;var Zy={readContext:kt,use:uu,useCallback:ky,useContext:kt,useEffect:uf,useImperativeHandle:zy,useInsertionEffect:Cy,useLayoutEffect:Ey,useMemo:Ny,useReducer:lf,useRef:wy,useState:function(){return lf(nn)},useDebugValue:of,useDeferredValue:function(e,t){var a=dt();return Xe===null?cf(a,e,t):My(a,Xe.memoizedState,e,t)},useTransition:function(){var e=lf(nn)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:wi(e),t]},useSyncExternalStore:sy,useId:Uy,useHostTransitionStatus:df,useFormState:_y,useActionState:_y,useOptimistic:function(e,t){var a=dt();return Xe!==null?hy(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:af,useCacheRefresh:By};Zy.useEffectEvent=Ty;function yf(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:w({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var gf={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=sa(),u=kn(r);u.payload=t,a!=null&&(u.callback=a),t=Nn(e,u,r),t!==null&&(Jt(t,e,r),bi(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=sa(),u=kn(r);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Nn(e,u,r),t!==null&&(Jt(t,e,r),bi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=sa(),r=kn(a);r.tag=2,t!=null&&(r.callback=t),t=Nn(e,r,a),t!==null&&(Jt(t,e,a),bi(t,e,a))}};function Yy(e,t,a,r,u,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,h):t.prototype&&t.prototype.isPureReactComponent?!fi(a,r)||!fi(u,c):!0}function Gy(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&gf.enqueueReplaceState(t,t.state,null)}function bl(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}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 Qy(e){Gs(e)}function Xy(e){console.error(e)}function $y(e){Gs(e)}function hu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Ky(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function pf(e,t,a){return a=kn(a),a.tag=3,a.payload={element:null},a.callback=function(){hu(e,t)},a}function Jy(e){return e=kn(e),e.tag=3,e}function Fy(e,t,a,r){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=r.value;e.payload=function(){return u(c)},e.callback=function(){Ky(t,a,r)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ky(t,a,r),typeof u!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var y=r.stack;this.componentDidCatch(r.value,{componentStack:y!==null?y:""})})}function f_(e,t,a,r,u){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&sr(t,a,u,!0),a=na.current,a!==null){switch(a.tag){case 31:case 13:return Sa===null?Tu():a.alternate===null&&it===0&&(it=3),a.flags&=-257,a.flags|=65536,a.lanes=u,r===eu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Zf(e,r,u)),!1;case 22:return a.flags|=65536,r===eu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Zf(e,r,u)),!1}throw Error(s(435,a.tag))}return Zf(e,r,u),Tu(),!1}if(Ce)return t=na.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,r!==Rc&&(e=Error(s(422),{cause:r}),mi(pa(e,a)))):(r!==Rc&&(t=Error(s(423),{cause:r}),mi(pa(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=pa(r,a),u=pf(e.stateNode,r,u),Xc(e,u),it!==4&&(it=2)),!1;var c=Error(s(520),{cause:r});if(c=pa(c,a),Di===null?Di=[c]:Di.push(c),it!==4&&(it=2),t===null)return!0;r=pa(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=pf(a.stateNode,r,e),Xc(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"&&(Bn===null||!Bn.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Jy(u),Fy(u,e,a,r),Xc(a,u),!1}a=a.return}while(a!==null);return!1}var vf=Error(s(461)),bt=!1;function Nt(e,t,a,r){t.child=e===null?ey(t,null,a,r):pl(t,e.child,a,r)}function Wy(e,t,a,r,u){a=a.render;var c=t.ref;if("ref"in r){var h={};for(var y in r)y!=="ref"&&(h[y]=r[y])}else h=r;return hl(t),r=Ic(e,t,a,h,c,u),y=Pc(),e!==null&&!bt?(ef(e,t,u),ln(e,t,u)):(Ce&&y&&Dc(t),t.flags|=1,Nt(e,t,r,u),t.child)}function Iy(e,t,a,r,u){if(e===null){var c=a.type;return typeof c=="function"&&!kc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Py(e,t,c,r,u)):(e=Ks(a.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Cf(e,u)){var h=c.memoizedProps;if(a=a.compare,a=a!==null?a:fi,a(h,r)&&e.ref===t.ref)return ln(e,t,u)}return t.flags|=1,e=Ia(c,r),e.ref=t.ref,e.return=t,t.child=e}function Py(e,t,a,r,u){if(e!==null){var c=e.memoizedProps;if(fi(c,r)&&e.ref===t.ref)if(bt=!1,t.pendingProps=r=c,Cf(e,u))(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,ln(e,t,u)}return bf(e,t,a,r,u)}function eg(e,t,a,r){var u=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~c}else r=0,t.child=null;return tg(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Is(t,c!==null?c.cachePool:null),c!==null?ny(t,c):Kc(),ly(t);else return r=t.lanes=536870912,tg(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(Is(t,c.cachePool),ny(t,c),Dn(),t.memoizedState=null):(e!==null&&Is(t,null),Kc(),Dn());return Nt(e,t,u,a),t.child}function Ci(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tg(e,t,a,r,u){var c=Zc();return c=c===null?null:{parent:pt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Is(t,null),Kc(),ly(t),e!==null&&sr(e,t,r,!0),t.childLanes=u,null}function mu(e,t){return t=gu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ag(e,t,a){return pl(t,e.child,null,a),e=mu(t,t.pendingProps),e.flags|=2,la(t),t.memoizedState=null,e}function d_(e,t,a){var r=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(r.mode==="hidden")return e=mu(t,r),t.lanes=536870912,Ci(null,e);if(Fc(t),(e=Ie)?(e=mp(e,xa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tn!==null?{id:Ha,overflow:qa}:null,retryLane:536870912,hydrationErrors:null},a=L0(e),a.return=t,t.child=a,zt=t,Ie=null)):e=null,e===null)throw En(t);return t.lanes=536870912,null}return mu(t,r)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Fc(t),u)if(t.flags&256)t.flags&=-257,t=ag(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(bt||sr(e,t,a,!1),u=(a&e.childLanes)!==0,bt||u){if(r=Je,r!==null&&(h=Xm(r,a),h!==0&&h!==c.retryLane))throw c.retryLane=h,ol(e,h),Jt(r,e,h),vf;Tu(),t=ag(e,t,a)}else e=c.treeContext,Ie=_a(h.nextSibling),zt=t,Ce=!0,Cn=null,xa=!1,e!==null&&Z0(t,e),t=mu(t,r),t.flags|=4096;return t}return e=Ia(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yu(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 bf(e,t,a,r,u){return hl(t),a=Ic(e,t,a,r,void 0,u),r=Pc(),e!==null&&!bt?(ef(e,t,u),ln(e,t,u)):(Ce&&r&&Dc(t),t.flags|=1,Nt(e,t,a,u),t.child)}function ng(e,t,a,r,u,c){return hl(t),t.updateQueue=null,a=iy(t,r,a,u),ry(e),r=Pc(),e!==null&&!bt?(ef(e,t,c),ln(e,t,c)):(Ce&&r&&Dc(t),t.flags|=1,Nt(e,t,a,c),t.child)}function lg(e,t,a,r,u){if(hl(t),t.stateNode===null){var c=nr,h=a.contextType;typeof h=="object"&&h!==null&&(c=kt(h)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=gf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},Gc(t),h=a.contextType,c.context=typeof h=="object"&&h!==null?kt(h):nr,c.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(yf(t,a,h,r),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&&gf.enqueueReplaceState(c,c.state,null),Si(t,r,c,u),xi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,b=bl(a,y);c.props=b;var z=c.context,V=a.contextType;h=nr,typeof V=="object"&&V!==null&&(h=kt(V));var q=a.getDerivedStateFromProps;V=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,V||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||z!==h)&&Gy(t,c,r,h),zn=!1;var M=t.memoizedState;c.state=M,Si(t,r,c,u),xi(),z=t.memoizedState,y||M!==z||zn?(typeof q=="function"&&(yf(t,a,q,r),z=t.memoizedState),(b=zn||Yy(t,a,b,r,M,z,h))?(V||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=r,t.memoizedState=z),c.props=r,c.state=z,c.context=h,r=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Qc(e,t),h=t.memoizedProps,V=bl(a,h),c.props=V,q=t.pendingProps,M=c.context,z=a.contextType,b=nr,typeof z=="object"&&z!==null&&(b=kt(z)),y=a.getDerivedStateFromProps,(z=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==q||M!==b)&&Gy(t,c,r,b),zn=!1,M=t.memoizedState,c.state=M,Si(t,r,c,u),xi();var D=t.memoizedState;h!==q||M!==D||zn||e!==null&&e.dependencies!==null&&Fs(e.dependencies)?(typeof y=="function"&&(yf(t,a,y,r),D=t.memoizedState),(V=zn||Yy(t,a,V,r,M,D,b)||e!==null&&e.dependencies!==null&&Fs(e.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,D,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,D,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=r,t.memoizedState=D),c.props=r,c.state=D,c.context=b,r=V):(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),r=!1)}return c=r,yu(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=pl(t,e.child,null,u),t.child=pl(t,null,a,u)):Nt(e,t,a,u),t.memoizedState=c.state,e=t.child):e=ln(e,t,u),e}function rg(e,t,a,r){return fl(),t.flags|=256,Nt(e,t,a,r),t.child}var xf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sf(e){return{baseLanes:e,cachePool:K0()}}function _f(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ia),e}function ig(e,t,a){var r=t.pendingProps,u=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),h&&(u=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(u?Mn(t):Dn(),(e=Ie)?(e=mp(e,xa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tn!==null?{id:Ha,overflow:qa}:null,retryLane:536870912,hydrationErrors:null},a=L0(e),a.return=t,t.child=a,zt=t,Ie=null)):e=null,e===null)throw En(t);return ld(e)?t.lanes=32:t.lanes=536870912,null}var y=r.children;return r=r.fallback,u?(Dn(),u=t.mode,y=gu({mode:"hidden",children:y},u),r=cl(r,u,a,null),y.return=t,r.return=t,y.sibling=r,t.child=y,r=t.child,r.memoizedState=Sf(a),r.childLanes=_f(e,h,a),t.memoizedState=xf,Ci(null,r)):(Mn(t),wf(t,y))}var b=e.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(c)t.flags&256?(Mn(t),t.flags&=-257,t=Af(e,t,a)):t.memoizedState!==null?(Dn(),t.child=e.child,t.flags|=128,t=null):(Dn(),y=r.fallback,u=t.mode,r=gu({mode:"visible",children:r.children},u),y=cl(y,u,a,null),y.flags|=2,r.return=t,y.return=t,r.sibling=y,t.child=r,pl(t,e.child,null,a),r=t.child,r.memoizedState=Sf(a),r.childLanes=_f(e,h,a),t.memoizedState=xf,t=Ci(null,r));else if(Mn(t),ld(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var z=h.dgst;h=z,r=Error(s(419)),r.stack="",r.digest=h,mi({value:r,source:null,stack:null}),t=Af(e,t,a)}else if(bt||sr(e,t,a,!1),h=(a&e.childLanes)!==0,bt||h){if(h=Je,h!==null&&(r=Xm(h,a),r!==0&&r!==b.retryLane))throw b.retryLane=r,ol(e,r),Jt(h,e,r),vf;nd(y)||Tu(),t=Af(e,t,a)}else nd(y)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Ie=_a(y.nextSibling),zt=t,Ce=!0,Cn=null,xa=!1,e!==null&&Z0(t,e),t=wf(t,r.children),t.flags|=4096);return t}return u?(Dn(),y=r.fallback,u=t.mode,b=e.child,z=b.sibling,r=Ia(b,{mode:"hidden",children:r.children}),r.subtreeFlags=b.subtreeFlags&65011712,z!==null?y=Ia(z,y):(y=cl(y,u,a,null),y.flags|=2),y.return=t,r.return=t,r.sibling=y,t.child=r,Ci(null,r),r=t.child,y=e.child.memoizedState,y===null?y=Sf(a):(u=y.cachePool,u!==null?(b=pt._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=K0(),y={baseLanes:y.baseLanes|a,cachePool:u}),r.memoizedState=y,r.childLanes=_f(e,h,a),t.memoizedState=xf,Ci(e.child,r)):(Mn(t),a=e.child,e=a.sibling,a=Ia(a,{mode:"visible",children:r.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 wf(e,t){return t=gu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function gu(e,t){return e=aa(22,e,null,t),e.lanes=0,e}function Af(e,t,a){return pl(t,e.child,null,a),e=wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sg(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vc(e.return,t,a)}function Tf(e,t,a,r,u,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:u,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=r,h.tail=a,h.tailMode=u,h.treeForkCount=c)}function ug(e,t,a){var r=t.pendingProps,u=r.revealOrder,c=r.tail;r=r.children;var h=ft.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,ze(ft,h),Nt(e,t,r,a),r=Ce?hi:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sg(e,a,t);else if(e.tag===19)sg(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&&lu(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Tf(t,!1,u,a,c,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&lu(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Tf(t,!0,a,null,c,r);break;case"together":Tf(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ln(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(sr(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=Ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Cf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fs(e)))}function h_(e,t,a){switch(t.tag){case 3:Hl(t,t.stateNode.containerInfo),On(t,pt,e.memoizedState.cache),fl();break;case 27:case 5:ql(t);break;case 4:Hl(t,t.stateNode.containerInfo);break;case 10:On(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fc(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Mn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?ig(e,t,a):(Mn(t),e=ln(e,t,a),e!==null?e.sibling:null);Mn(t);break;case 19:var u=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(sr(e,t,a,!1),r=(a&t.childLanes)!==0),u){if(r)return ug(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ze(ft,ft.current),r)break;return null;case 22:return t.lanes=0,eg(e,t,a,t.pendingProps);case 24:On(t,pt,e.memoizedState.cache)}return ln(e,t,a)}function og(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)bt=!0;else{if(!Cf(e,a)&&(t.flags&128)===0)return bt=!1,h_(e,t,a);bt=(e.flags&131072)!==0}else bt=!1,Ce&&(t.flags&1048576)!==0&&q0(t,hi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=yl(t.elementType),t.type=e,typeof e=="function")kc(e)?(r=bl(e,r),t.tag=1,t=lg(null,t,e,r,a)):(t.tag=0,t=bf(null,t,e,r,a));else{if(e!=null){var u=e.$$typeof;if(u===P){t.tag=11,t=Wy(null,t,e,r,a);break e}else if(u===ae){t.tag=14,t=Iy(null,t,e,r,a);break e}}throw t=G(e)||e,Error(s(306,t,""))}}return t;case 0:return bf(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,u=bl(r,t.pendingProps),lg(e,t,r,u,a);case 3:e:{if(Hl(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var c=t.memoizedState;u=c.element,Qc(e,t),Si(t,r,null,a);var h=t.memoizedState;if(r=h.cache,On(t,pt,r),r!==c.cache&&Lc(t,[pt],a,!0),xi(),r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=rg(e,t,r,a);break e}else if(r!==u){u=pa(Error(s(424)),t),mi(u),t=rg(e,t,r,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(Ie=_a(e.firstChild),zt=t,Ce=!0,Cn=null,xa=!0,a=ey(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(fl(),r===u){t=ln(e,t,a);break e}Nt(e,t,r,a)}t=t.child}return t;case 26:return yu(e,t),e===null?(a=xp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ce||(a=t.type,e=t.pendingProps,r=Mu(Ba.current).createElement(a),r[Ot]=t,r[Yt]=e,Mt(r,a,e),At(r),t.stateNode=r):t.memoizedState=xp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ql(t),e===null&&Ce&&(r=t.stateNode=pp(t.type,t.pendingProps,Ba.current),zt=t,xa=!0,u=Ie,qn(t.type)?(rd=u,Ie=_a(r.firstChild)):Ie=u),Nt(e,t,t.pendingProps.children,a),yu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((u=r=Ie)&&(r=Y_(r,t.type,t.pendingProps,xa),r!==null?(t.stateNode=r,zt=t,Ie=_a(r.firstChild),xa=!1,u=!0):u=!1),u||En(t)),ql(t),u=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,r=c.children,ed(u,c)?r=null:h!==null&&ed(u,h)&&(t.flags|=32),t.memoizedState!==null&&(u=Ic(e,t,l_,null,null,a),qi._currentValue=u),yu(e,t),Nt(e,t,r,a),t.child;case 6:return e===null&&Ce&&((e=a=Ie)&&(a=G_(a,t.pendingProps,xa),a!==null?(t.stateNode=a,zt=t,Ie=null,e=!0):e=!1),e||En(t)),null;case 13:return ig(e,t,a);case 4:return Hl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pl(t,null,r,a):Nt(e,t,r,a),t.child;case 11:return Wy(e,t,t.type,t.pendingProps,a);case 7:return Nt(e,t,t.pendingProps,a),t.child;case 8:return Nt(e,t,t.pendingProps.children,a),t.child;case 12:return Nt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,On(t,t.type,r.value),Nt(e,t,r.children,a),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,hl(t),u=kt(u),r=r(u),t.flags|=1,Nt(e,t,r,a),t.child;case 14:return Iy(e,t,t.type,t.pendingProps,a);case 15:return Py(e,t,t.type,t.pendingProps,a);case 19:return ug(e,t,a);case 31:return d_(e,t,a);case 22:return eg(e,t,a,t.pendingProps);case 24:return hl(t),r=kt(pt),e===null?(u=Zc(),u===null&&(u=Je,c=Hc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:r,cache:u},Gc(t),On(t,pt,u)):((e.lanes&a)!==0&&(Qc(e,t),Si(t,null,null,a),xi()),u=e.memoizedState,c=t.memoizedState,u.parent!==r?(u={parent:r,cache:r},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),On(t,pt,r)):(r=c.cache,On(t,pt,r),r!==u.cache&&Lc(t,[pt],a,!0))),Nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function rn(e){e.flags|=4}function Ef(e,t,a,r,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(Ug())e.flags|=8192;else throw gl=eu,Yc}else e.flags&=-16777217}function cg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tp(t))if(Ug())e.flags|=8192;else throw gl=eu,Yc}function pu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ym():536870912,e.lanes|=t,br|=t)}function Ei(e,t){if(!Ce)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 r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function m_(e,t,a){var r=t.pendingProps;switch(jc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),tn(pt),Va(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ir(t)?rn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uc())),Pe(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(rn(t),c!==null?(Pe(t),cg(t,c)):(Pe(t),Ef(t,u,null,r,a))):c?c!==e.memoizedState?(rn(t),Pe(t),cg(t,c)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&rn(t),Pe(t),Ef(t,u,e,r,a)),null;case 27:if(_n(t),a=Ba.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&rn(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Pe(t),null}e=ct.current,ir(t)?Y0(t):(e=pp(u,r,a),t.stateNode=e,rn(t))}return Pe(t),null;case 5:if(_n(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&rn(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Pe(t),null}if(c=ct.current,ir(t))Y0(t);else{var h=Mu(Ba.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 r.is=="string"?h.createElement("select",{is:r.is}):h.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?h.createElement(u,{is:r.is}):h.createElement(u)}}c[Ot]=t,c[Yt]=r;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(Mt(c,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&rn(t)}}return Pe(t),Ef(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&rn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=Ba.current,ir(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,u=zt,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[Ot]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||ip(e.nodeValue,a)),e||En(t,!0)}else e=Mu(e).createTextNode(r),e[Ot]=t,t.stateNode=e}return Pe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=ir(t),a!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Ot]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else a=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(la(t),t):(la(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Pe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ir(t),r!==null&&r.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[Ot]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),u=!1}else u=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(la(t),t):(la(t),null)}return la(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==u&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),pu(t,t.updateQueue),Pe(t),null);case 4:return Va(),e===null&&Jf(t.stateNode.containerInfo),Pe(t),null;case 10:return tn(t.type),Pe(t),null;case 19:if(Fe(ft),r=t.memoizedState,r===null)return Pe(t),null;if(u=(t.flags&128)!==0,c=r.rendering,c===null)if(u)Ei(r,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=lu(e),c!==null){for(t.flags|=128,Ei(r,!1),e=c.updateQueue,t.updateQueue=e,pu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)V0(a,e),a=a.sibling;return ze(ft,ft.current&1|2),Ce&&Pa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&N()>_u&&(t.flags|=128,u=!0,Ei(r,!1),t.lanes=4194304)}else{if(!u)if(e=lu(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,pu(t,e),Ei(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!Ce)return Pe(t),null}else 2*N()-r.renderingStartTime>_u&&a!==536870912&&(t.flags|=128,u=!0,Ei(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=N(),e.sibling=null,a=ft.current,ze(ft,u?a&1|2:a&1),Ce&&Pa(t,r.treeForkCount),e):(Pe(t),null);case 22:case 23:return la(t),Jc(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),a=t.updateQueue,a!==null&&pu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&Fe(ml),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),tn(pt),Pe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function y_(e,t){switch(jc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tn(pt),Va(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _n(t),null;case 31:if(t.memoizedState!==null){if(la(t),t.alternate===null)throw Error(s(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(la(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(ft),null;case 4:return Va(),null;case 10:return tn(t.type),null;case 22:case 23:return la(t),Jc(),e!==null&&Fe(ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tn(pt),null;case 25:return null;default:return null}}function fg(e,t){switch(jc(t),t.tag){case 3:tn(pt),Va();break;case 26:case 27:case 5:_n(t);break;case 4:Va();break;case 31:t.memoizedState!==null&&la(t);break;case 13:la(t);break;case 19:Fe(ft);break;case 10:tn(t.type);break;case 22:case 23:la(t),Jc(),e!==null&&Fe(ml);break;case 24:tn(pt)}}function Oi(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var u=r.next;a=u;do{if((a.tag&e)===e){r=void 0;var c=a.create,h=a.inst;r=c(),h.destroy=r}a=a.next}while(a!==u)}}catch(y){Ye(t,t.return,y)}}function jn(e,t,a){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var c=u.next;r=c;do{if((r.tag&e)===e){var h=r.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,u=t;var b=a,z=y;try{z()}catch(V){Ye(u,b,V)}}}r=r.next}while(r!==c)}}catch(V){Ye(t,t.return,V)}}function dg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ay(t,a)}catch(r){Ye(e,e.return,r)}}}function hg(e,t,a){a.props=bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Ye(e,t,r)}}function zi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(u){Ye(e,t,u)}}function Za(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(u){Ye(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){Ye(e,t,u)}else a.current=null}function mg(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(u){Ye(e,e.return,u)}}function Of(e,t,a){try{var r=e.stateNode;B_(r,e.type,a,t),r[Yt]=t}catch(u){Ye(e,e.return,u)}}function yg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qn(e.type)||e.tag===4}function zf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yg(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 kf(e,t,a){var r=e.tag;if(r===5||r===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=Fa));else if(r!==4&&(r===27&&qn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(kf(e,t,a),e=e.sibling;e!==null;)kf(e,t,a),e=e.sibling}function vu(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&qn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(vu(e,t,a),e=e.sibling;e!==null;)vu(e,t,a),e=e.sibling}function gg(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Mt(t,r,a),t[Ot]=e,t[Yt]=a}catch(c){Ye(e,e.return,c)}}var sn=!1,xt=!1,Nf=!1,pg=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function g_(e,t){if(e=e.containerInfo,If=Lu,e=z0(e),wc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var u=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var h=0,y=-1,b=-1,z=0,V=0,q=e,M=null;t:for(;;){for(var D;q!==a||u!==0&&q.nodeType!==3||(y=h+u),q!==c||r!==0&&q.nodeType!==3||(b=h+r),q.nodeType===3&&(h+=q.nodeValue.length),(D=q.firstChild)!==null;)M=q,q=D;for(;;){if(q===e)break t;if(M===a&&++z===u&&(y=h),M===c&&++V===r&&(b=h),(D=q.nextSibling)!==null)break;q=M,M=q.parentNode}q=D}a=y===-1||b===-1?null:{start:y,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(Pf={focusedElem:e,selectionRange:a},Lu=!1,Tt=t;Tt!==null;)if(t=Tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Tt=e;else for(;Tt!==null;){switch(t=Tt,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,r=a.stateNode;try{var ie=bl(a.type,u);e=r.getSnapshotBeforeUpdate(ie,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(de){Ye(a,a.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ad(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ad(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Tt=e;break}Tt=t.return}}function vg(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:on(e,a),r&4&&Oi(5,a);break;case 1:if(on(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Ye(a,a.return,h)}else{var u=bl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ye(a,a.return,h)}}r&64&&dg(a),r&512&&zi(a,a.return);break;case 3:if(on(e,a),r&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{ay(e,t)}catch(h){Ye(a,a.return,h)}}break;case 27:t===null&&r&4&&gg(a);case 26:case 5:on(e,a),t===null&&r&4&&mg(a),r&512&&zi(a,a.return);break;case 12:on(e,a);break;case 31:on(e,a),r&4&&Sg(e,a);break;case 13:on(e,a),r&4&&_g(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=T_.bind(null,a),Q_(e,a))));break;case 22:if(r=a.memoizedState!==null||sn,!r){t=t!==null&&t.memoizedState!==null||xt,u=sn;var c=xt;sn=r,(xt=t)&&!c?cn(e,a,(a.subtreeFlags&8772)!==0):on(e,a),sn=u,xt=c}break;case 30:break;default:on(e,a)}}function bg(e){var t=e.alternate;t!==null&&(e.alternate=null,bg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ic(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 tt=null,Qt=!1;function un(e,t,a){for(a=a.child;a!==null;)xg(e,t,a),a=a.sibling}function xg(e,t,a){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(gt,a)}catch{}switch(a.tag){case 26:xt||Za(a,t),un(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:xt||Za(a,t);var r=tt,u=Qt;qn(a.type)&&(tt=a.stateNode,Qt=!1),un(e,t,a),Vi(a.stateNode),tt=r,Qt=u;break;case 5:xt||Za(a,t);case 6:if(r=tt,u=Qt,tt=null,un(e,t,a),tt=r,Qt=u,tt!==null)if(Qt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(a.stateNode)}catch(c){Ye(a,t,c)}else try{tt.removeChild(a.stateNode)}catch(c){Ye(a,t,c)}break;case 18:tt!==null&&(Qt?(e=tt,dp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Er(e)):dp(tt,a.stateNode));break;case 4:r=tt,u=Qt,tt=a.stateNode.containerInfo,Qt=!0,un(e,t,a),tt=r,Qt=u;break;case 0:case 11:case 14:case 15:jn(2,a,t),xt||jn(4,a,t),un(e,t,a);break;case 1:xt||(Za(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&hg(a,t,r)),un(e,t,a);break;case 21:un(e,t,a);break;case 22:xt=(r=xt)||a.memoizedState!==null,un(e,t,a),xt=r;break;default:un(e,t,a)}}function Sg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Er(e)}catch(a){Ye(t,t.return,a)}}}function _g(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Er(e)}catch(a){Ye(t,t.return,a)}}function p_(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pg),t;default:throw Error(s(435,e.tag))}}function bu(e,t){var a=p_(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var u=C_.bind(null,e,r);r.then(u,u)}})}function Xt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var u=a[r],c=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(qn(y.type)){tt=y.stateNode,Qt=!1;break e}break;case 5:tt=y.stateNode,Qt=!1;break e;case 3:case 4:tt=y.stateNode.containerInfo,Qt=!0;break e}y=y.return}if(tt===null)throw Error(s(160));xg(c,h,u),tt=null,Qt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wg(t,e),t=t.sibling}var Oa=null;function wg(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),$t(e),r&4&&(jn(3,e,e.return),Oi(3,e),jn(5,e,e.return));break;case 1:Xt(t,e),$t(e),r&512&&(xt||a===null||Za(a,a.return)),r&64&&sn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var u=Oa;if(Xt(t,e),$t(e),r&512&&(xt||a===null||Za(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ai]||c[Ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(r),u.head.insertBefore(c,u.querySelector("head > title"))),Mt(c,r,a),c[Ot]=e,At(c),r=c;break e;case"link":var h=wp("link","href",u).get(r+(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(r),Mt(c,r,a),u.head.appendChild(c);break;case"meta":if(h=wp("meta","content",u).get(r+(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(r),Mt(c,r,a),u.head.appendChild(c);break;default:throw Error(s(468,r))}c[Ot]=e,At(c),r=c}e.stateNode=r}else Ap(u,e.type,e.stateNode);else e.stateNode=_p(u,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?Ap(u,e.type,e.stateNode):_p(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Of(e,e.memoizedProps,a.memoizedProps)}break;case 27:Xt(t,e),$t(e),r&512&&(xt||a===null||Za(a,a.return)),a!==null&&r&4&&Of(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Xt(t,e),$t(e),r&512&&(xt||a===null||Za(a,a.return)),e.flags&32){u=e.stateNode;try{Fl(u,"")}catch(ie){Ye(e,e.return,ie)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,Of(e,u,a!==null?a.memoizedProps:u)),r&1024&&(Nf=!0);break;case 6:if(Xt(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(ie){Ye(e,e.return,ie)}}break;case 3:if(Ru=null,u=Oa,Oa=Du(t.containerInfo),Xt(t,e),Oa=u,$t(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Er(t.containerInfo)}catch(ie){Ye(e,e.return,ie)}Nf&&(Nf=!1,Ag(e));break;case 4:r=Oa,Oa=Du(e.stateNode.containerInfo),Xt(t,e),$t(e),Oa=r;break;case 12:Xt(t,e),$t(e);break;case 31:Xt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bu(e,r)));break;case 13:Xt(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Su=N()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bu(e,r)));break;case 22:u=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,z=sn,V=xt;if(sn=z||u,xt=V||b,Xt(t,e),xt=V,sn=z,$t(e),r&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||b||sn||xt||xl(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 q=b.memoizedProps.style,M=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(ie){Ye(b,b.return,ie)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(ie){Ye(b,b.return,ie)}}}else if(t.tag===18){if(a===null){b=t;try{var D=b.stateNode;u?hp(D,!0):hp(b.stateNode,!1)}catch(ie){Ye(b,b.return,ie)}}}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}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,bu(e,a))));break;case 19:Xt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bu(e,r)));break;case 30:break;case 21:break;default:Xt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(yg(r)){a=r;break}r=r.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,c=zf(e);vu(e,c,u);break;case 5:var h=a.stateNode;a.flags&32&&(Fl(h,""),a.flags&=-33);var y=zf(e);vu(e,y,h);break;case 3:case 4:var b=a.stateNode.containerInfo,z=zf(e);kf(e,z,b);break;default:throw Error(s(161))}}catch(V){Ye(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ag(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ag(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function on(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vg(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jn(4,t,t.return),xl(t);break;case 1:Za(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&hg(t,t.return,a),xl(t);break;case 27:Vi(t.stateNode);case 26:case 5:Za(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function cn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,u=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:cn(u,c,a),Oi(4,c);break;case 1:if(cn(u,c,a),r=c,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Ye(r,r.return,z)}if(r=c,u=r.updateQueue,u!==null){var y=r.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)ty(b[u],y)}catch(z){Ye(r,r.return,z)}}a&&h&64&&dg(c),zi(c,c.return);break;case 27:gg(c);case 26:case 5:cn(u,c,a),a&&r===null&&h&4&&mg(c),zi(c,c.return);break;case 12:cn(u,c,a);break;case 31:cn(u,c,a),a&&h&4&&Sg(u,c);break;case 13:cn(u,c,a),a&&h&4&&_g(u,c);break;case 22:c.memoizedState===null&&cn(u,c,a),zi(c,c.return);break;case 30:break;default:cn(u,c,a)}t=t.sibling}}function Mf(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&&yi(a))}function Df(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yi(e))}function za(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tg(e,t,a,r),t=t.sibling}function Tg(e,t,a,r){var u=t.flags;switch(t.tag){case 0:case 11:case 15:za(e,t,a,r),u&2048&&Oi(9,t);break;case 1:za(e,t,a,r);break;case 3:za(e,t,a,r),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yi(e)));break;case 12:if(u&2048){za(e,t,a,r),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){Ye(t,t.return,b)}}else za(e,t,a,r);break;case 31:za(e,t,a,r);break;case 13:za(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?za(e,t,a,r):ki(e,t):c._visibility&2?za(e,t,a,r):(c._visibility|=2,gr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Mf(h,t);break;case 24:za(e,t,a,r),u&2048&&Df(t.alternate,t);break;default:za(e,t,a,r)}}function gr(e,t,a,r,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,y=a,b=r,z=h.flags;switch(h.tag){case 0:case 11:case 15:gr(c,h,y,b,u),Oi(8,h);break;case 23:break;case 22:var V=h.stateNode;h.memoizedState!==null?V._visibility&2?gr(c,h,y,b,u):ki(c,h):(V._visibility|=2,gr(c,h,y,b,u)),u&&z&2048&&Mf(h.alternate,h);break;case 24:gr(c,h,y,b,u),u&&z&2048&&Df(h.alternate,h);break;default:gr(c,h,y,b,u)}t=t.sibling}}function ki(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,u=r.flags;switch(r.tag){case 22:ki(a,r),u&2048&&Mf(r.alternate,r);break;case 24:ki(a,r),u&2048&&Df(r.alternate,r);break;default:ki(a,r)}t=t.sibling}}var Ni=8192;function pr(e,t,a){if(e.subtreeFlags&Ni)for(e=e.child;e!==null;)Cg(e,t,a),e=e.sibling}function Cg(e,t,a){switch(e.tag){case 26:pr(e,t,a),e.flags&Ni&&e.memoizedState!==null&&nw(a,Oa,e.memoizedState,e.memoizedProps);break;case 5:pr(e,t,a);break;case 3:case 4:var r=Oa;Oa=Du(e.stateNode.containerInfo),pr(e,t,a),Oa=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ni,Ni=16777216,pr(e,t,a),Ni=r):pr(e,t,a));break;default:pr(e,t,a)}}function Eg(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 Mi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Tt=r,zg(r,e)}Eg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Og(e),e=e.sibling}function Og(e){switch(e.tag){case 0:case 11:case 15:Mi(e),e.flags&2048&&jn(9,e,e.return);break;case 3:Mi(e);break;case 12:Mi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xu(e)):Mi(e);break;default:Mi(e)}}function xu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Tt=r,zg(r,e)}Eg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jn(8,t,t.return),xu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,xu(t));break;default:xu(t)}e=e.sibling}}function zg(e,t){for(;Tt!==null;){var a=Tt;switch(a.tag){case 0:case 11:case 15:jn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:yi(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Tt=r;else e:for(a=e;Tt!==null;){r=Tt;var u=r.sibling,c=r.return;if(bg(r),r===a){Tt=null;break e}if(u!==null){u.return=c,Tt=u;break e}Tt=c}}}var v_={getCacheForType:function(e){var t=kt(pt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return kt(pt).controller.signal}},b_=typeof WeakMap=="function"?WeakMap:Map,Be=0,Je=null,_e=null,Ae=0,Ze=0,ra=null,Rn=!1,vr=!1,jf=!1,fn=0,it=0,Un=0,Sl=0,Rf=0,ia=0,br=0,Di=null,Kt=null,Uf=!1,Su=0,kg=0,_u=1/0,wu=null,Bn=null,wt=0,Vn=null,xr=null,dn=0,Bf=0,Vf=null,Ng=null,ji=0,Lf=null;function sa(){return(Be&2)!==0&&Ae!==0?Ae&-Ae:k.T!==null?Qf():$m()}function Mg(){if(ia===0)if((Ae&536870912)===0||Ce){var e=Ns;Ns<<=1,(Ns&3932160)===0&&(Ns=262144),ia=e}else ia=536870912;return e=na.current,e!==null&&(e.flags|=32),ia}function Jt(e,t,a){(e===Je&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(Sr(e,0),Ln(e,Ae,ia,!1)),ti(e,a),((Be&2)===0||e!==Je)&&(e===Je&&((Be&2)===0&&(Sl|=a),it===4&&Ln(e,Ae,ia,!1)),Ya(e))}function Dg(e,t,a){if((Be&6)!==0)throw Error(s(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ei(e,t),u=r?__(e,t):qf(e,t,!0),c=r;do{if(u===0){vr&&!r&&Ln(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!x_(a)){u=qf(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=Di;var b=y.current.memoizedState.isDehydrated;if(b&&(Sr(y,h).flags|=256),h=qf(y,h,!1),h!==2){if(jf&&!b){y.errorRecoveryDisabledLanes|=c,Sl|=c,u=4;break e}c=Kt,Kt=u,c!==null&&(Kt===null?Kt=c:Kt.push.apply(Kt,c))}u=h}if(c=!1,u!==2)continue}}if(u===1){Sr(e,0),Ln(e,t,0,!0);break}e:{switch(r=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ln(r,t,ia,!Rn);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Su+300-N(),10<u)){if(Ln(r,t,ia,!Rn),Ds(r,0,!0)!==0)break e;dn=t,r.timeoutHandle=cp(jg.bind(null,r,a,Kt,wu,Uf,t,ia,Sl,br,Rn,c,"Throttled",-0,0),u);break e}jg(r,a,Kt,wu,Uf,t,ia,Sl,br,Rn,c,null,-0,0)}}break}while(!0);Ya(e)}function jg(e,t,a,r,u,c,h,y,b,z,V,q,M,D){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fa},Cg(t,c,q);var ie=(c&62914560)===c?Su-N():(c&4194048)===c?kg-N():0;if(ie=lw(q,ie),ie!==null){dn=c,e.cancelPendingCommit=ie(Zg.bind(null,e,t,c,a,r,u,h,y,b,V,q,null,M,D)),Ln(e,c,h,!z);return}}Zg(e,t,c,a,r,u,h,y,b)}function x_(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 r=0;r<a.length;r++){var u=a[r],c=u.getSnapshot;u=u.value;try{if(!ta(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 Ln(e,t,a,r){t&=~Rf,t&=~Sl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var u=t;0<u;){var c=31-Et(u),h=1<<c;r[c]=-1,u&=~h}a!==0&&Gm(e,a,t)}function Au(){return(Be&6)===0?(Ri(0),!1):!0}function Hf(){if(_e!==null){if(Ze===0)var e=_e.return;else e=_e,en=dl=null,tf(e),fr=null,pi=0,e=_e;for(;e!==null;)fg(e.alternate,e),e=e.return;_e=null}}function Sr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,H_(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dn=0,Hf(),Je=e,_e=a=Ia(e.current,null),Ae=t,Ze=0,ra=null,Rn=!1,vr=ei(e,t),jf=!1,br=ia=Rf=Sl=Un=it=0,Kt=Di=null,Uf=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var u=31-Et(r),c=1<<u;t|=e[u],r&=~c}return fn=t,Qs(),a}function Rg(e,t){ve=null,k.H=Ti,t===cr||t===Ps?(t=W0(),Ze=3):t===Yc?(t=W0(),Ze=4):Ze=t===vf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ra=t,_e===null&&(it=1,hu(e,pa(t,e.current)))}function Ug(){var e=na.current;return e===null?!0:(Ae&4194048)===Ae?Sa===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Sa:!1}function Bg(){var e=k.H;return k.H=Ti,e===null?Ti:e}function Vg(){var e=k.A;return k.A=v_,e}function Tu(){it=4,Rn||(Ae&4194048)!==Ae&&na.current!==null||(vr=!0),(Un&134217727)===0&&(Sl&134217727)===0||Je===null||Ln(Je,Ae,ia,!1)}function qf(e,t,a){var r=Be;Be|=2;var u=Bg(),c=Vg();(Je!==e||Ae!==t)&&(wu=null,Sr(e,t)),t=!1;var h=it;e:do try{if(Ze!==0&&_e!==null){var y=_e,b=ra;switch(Ze){case 8:Hf(),h=6;break e;case 3:case 2:case 9:case 6:na.current===null&&(t=!0);var z=Ze;if(Ze=0,ra=null,_r(e,y,b,z),a&&vr){h=0;break e}break;default:z=Ze,Ze=0,ra=null,_r(e,y,b,z)}}S_(),h=it;break}catch(V){Rg(e,V)}while(!0);return t&&e.shellSuspendCounter++,en=dl=null,Be=r,k.H=u,k.A=c,_e===null&&(Je=null,Ae=0,Qs()),h}function S_(){for(;_e!==null;)Lg(_e)}function __(e,t){var a=Be;Be|=2;var r=Bg(),u=Vg();Je!==e||Ae!==t?(wu=null,_u=N()+500,Sr(e,t)):vr=ei(e,t);e:do try{if(Ze!==0&&_e!==null){t=_e;var c=ra;t:switch(Ze){case 1:Ze=0,ra=null,_r(e,t,c,1);break;case 2:case 9:if(J0(c)){Ze=0,ra=null,Hg(t);break}t=function(){Ze!==2&&Ze!==9||Je!==e||(Ze=7),Ya(e)},c.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:J0(c)?(Ze=0,ra=null,Hg(t)):(Ze=0,ra=null,_r(e,t,c,7));break;case 5:var h=null;switch(_e.tag){case 26:h=_e.memoizedState;case 5:case 27:var y=_e;if(h?Tp(h):y.stateNode.complete){Ze=0,ra=null;var b=y.sibling;if(b!==null)_e=b;else{var z=y.return;z!==null?(_e=z,Cu(z)):_e=null}break t}}Ze=0,ra=null,_r(e,t,c,5);break;case 6:Ze=0,ra=null,_r(e,t,c,6);break;case 8:Hf(),it=6;break e;default:throw Error(s(462))}}w_();break}catch(V){Rg(e,V)}while(!0);return en=dl=null,k.H=r,k.A=u,Be=a,_e!==null?0:(Je=null,Ae=0,Qs(),it)}function w_(){for(;_e!==null&&!x();)Lg(_e)}function Lg(e){var t=og(e.alternate,e,fn);e.memoizedProps=e.pendingProps,t===null?Cu(e):_e=t}function Hg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ng(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=ng(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:tf(t);default:fg(a,t),t=_e=V0(t,fn),t=og(a,t,fn)}e.memoizedProps=e.pendingProps,t===null?Cu(e):_e=t}function _r(e,t,a,r){en=dl=null,tf(t),fr=null,pi=0;var u=t.return;try{if(f_(e,u,t,a,Ae)){it=1,hu(e,pa(a,e.current)),_e=null;return}}catch(c){if(u!==null)throw _e=u,c;it=1,hu(e,pa(a,e.current)),_e=null;return}t.flags&32768?(Ce||r===1?e=!0:vr||(Ae&536870912)!==0?e=!1:(Rn=e=!0,(r===2||r===9||r===3||r===6)&&(r=na.current,r!==null&&r.tag===13&&(r.flags|=16384))),qg(t,e)):Cu(t)}function Cu(e){var t=e;do{if((t.flags&32768)!==0){qg(t,Rn);return}e=t.return;var a=m_(t.alternate,t,fn);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);it===0&&(it=5)}function qg(e,t){do{var a=y_(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);it=6,_e=null}function Zg(e,t,a,r,u,c,h,y,b){e.cancelPendingCommit=null;do Eu();while(wt!==0);if((Be&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Oc,a2(e,a,c,h,y,b),e===Je&&(_e=Je=null,Ae=0),xr=t,Vn=e,dn=a,Bf=c,Vf=u,Ng=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,E_(se,function(){return $g(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=k.T,k.T=null,u=X.p,X.p=2,h=Be,Be|=4;try{g_(e,t,a)}finally{Be=h,X.p=u,k.T=r}}wt=1,Yg(),Gg(),Qg()}}function Yg(){if(wt===1){wt=0;var e=Vn,t=xr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var r=X.p;X.p=2;var u=Be;Be|=4;try{wg(t,e);var c=Pf,h=z0(e.containerInfo),y=c.focusedElem,b=c.selectionRange;if(h!==y&&y&&y.ownerDocument&&O0(y.ownerDocument.documentElement,y)){if(b!==null&&wc(y)){var z=b.start,V=b.end;if(V===void 0&&(V=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(V,y.value.length);else{var q=y.ownerDocument||document,M=q&&q.defaultView||window;if(M.getSelection){var D=M.getSelection(),ie=y.textContent.length,de=Math.min(b.start,ie),Ke=b.end===void 0?de:Math.min(b.end,ie);!D.extend&&de>Ke&&(h=Ke,Ke=de,de=h);var C=E0(y,de),_=E0(y,Ke);if(C&&_&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==_.node||D.focusOffset!==_.offset)){var O=q.createRange();O.setStart(C.node,C.offset),D.removeAllRanges(),de>Ke?(D.addRange(O),D.extend(_.node,_.offset)):(O.setEnd(_.node,_.offset),D.addRange(O))}}}}for(q=[],D=y;D=D.parentNode;)D.nodeType===1&&q.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var H=q[y];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Lu=!!If,Pf=If=null}finally{Be=u,X.p=r,k.T=a}}e.current=t,wt=2}}function Gg(){if(wt===2){wt=0;var e=Vn,t=xr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var r=X.p;X.p=2;var u=Be;Be|=4;try{vg(e,t.alternate,t)}finally{Be=u,X.p=r,k.T=a}}wt=3}}function Qg(){if(wt===4||wt===3){wt=0,E();var e=Vn,t=xr,a=dn,r=Ng;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,xr=Vn=null,Xg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Bn=null),lc(a),t=t.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(gt,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=k.T,u=X.p,X.p=2,k.T=null;try{for(var c=e.onRecoverableError,h=0;h<r.length;h++){var y=r[h];c(y.value,{componentStack:y.stack})}}finally{k.T=t,X.p=u}}(dn&3)!==0&&Eu(),Ya(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Lf?ji++:(ji=0,Lf=e):ji=0,Ri(0)}}function Xg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yi(t)))}function Eu(){return Yg(),Gg(),Qg(),$g()}function $g(){if(wt!==5)return!1;var e=Vn,t=Bf;Bf=0;var a=lc(dn),r=k.T,u=X.p;try{X.p=32>a?32:a,k.T=null,a=Vf,Vf=null;var c=Vn,h=dn;if(wt=0,xr=Vn=null,dn=0,(Be&6)!==0)throw Error(s(331));var y=Be;if(Be|=4,Og(c.current),Tg(c,c.current,h,a),Be=y,Ri(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(gt,c)}catch{}return!0}finally{X.p=u,k.T=r,Xg(e,t)}}function Kg(e,t,a){t=pa(a,t),t=pf(e.stateNode,t,2),e=Nn(e,t,2),e!==null&&(ti(e,2),Ya(e))}function Ye(e,t,a){if(e.tag===3)Kg(e,e,a);else for(;t!==null;){if(t.tag===3){Kg(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bn===null||!Bn.has(r))){e=pa(a,e),a=Jy(2),r=Nn(t,a,2),r!==null&&(Fy(a,r,t,e),ti(r,2),Ya(r));break}}t=t.return}}function Zf(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new b_;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(a)||(jf=!0,u.add(a),e=A_.bind(null,e,t,a),t.then(e,e))}function A_(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Je===e&&(Ae&a)===a&&(it===4||it===3&&(Ae&62914560)===Ae&&300>N()-Su?(Be&2)===0&&Sr(e,0):Rf|=a,br===Ae&&(br=0)),Ya(e)}function Jg(e,t){t===0&&(t=Ym()),e=ol(e,t),e!==null&&(ti(e,t),Ya(e))}function T_(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Jg(e,a)}function C_(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Jg(e,a)}function E_(e,t){return zs(e,t)}var Ou=null,wr=null,Yf=!1,zu=!1,Gf=!1,Hn=0;function Ya(e){e!==wr&&e.next===null&&(wr===null?Ou=wr=e:wr=wr.next=e),zu=!0,Yf||(Yf=!0,z_())}function Ri(e,t){if(!Gf&&zu){Gf=!0;do for(var a=!1,r=Ou;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var c=0;else{var h=r.suspendedLanes,y=r.pingedLanes;c=(1<<31-Et(42|e)+1)-1,c&=u&~(h&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Pg(r,c))}else c=Ae,c=Ds(r,r===Je?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||ei(r,c)||(a=!0,Pg(r,c));r=r.next}while(a);Gf=!1}}function O_(){Fg()}function Fg(){zu=Yf=!1;var e=0;Hn!==0&&L_()&&(e=Hn);for(var t=N(),a=null,r=Ou;r!==null;){var u=r.next,c=Wg(r,t);c===0?(r.next=null,a===null?Ou=u:a.next=u,u===null&&(wr=a)):(a=r,(e!==0||(c&3)!==0)&&(zu=!0)),r=u}wt!==0&&wt!==5||Ri(e),Hn!==0&&(Hn=0)}function Wg(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Et(c),y=1<<h,b=u[h];b===-1?((y&a)===0||(y&r)!==0)&&(u[h]=t2(y,t)):b<=t&&(e.expiredLanes|=y),c&=~y}if(t=Je,a=Ae,a=Ds(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Yl(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ei(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Yl(r),lc(a)){case 2:case 8:a=F;break;case 32:a=se;break;case 268435456:a=Ne;break;default:a=se}return r=Ig.bind(null,e),a=zs(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Yl(r),e.callbackPriority=2,e.callbackNode=null,2}function Ig(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Eu()&&e.callbackNode!==a)return null;var r=Ae;return r=Ds(e,e===Je?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Dg(e,r,t),Wg(e,N()),e.callbackNode!=null&&e.callbackNode===a?Ig.bind(null,e):null)}function Pg(e,t){if(Eu())return null;Dg(e,t,!0)}function z_(){q_(function(){(Be&6)!==0?zs(J,O_):Fg()})}function Qf(){if(Hn===0){var e=ur;e===0&&(e=nl,nl<<=1,(nl&261888)===0&&(nl=256)),Hn=e}return Hn}function ep(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bs(""+e)}function tp(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 k_(e,t,a,r,u){if(t==="submit"&&a&&a.stateNode===u){var c=ep((u[Yt]||null).action),h=r.submitter;h&&(t=(t=h[Yt]||null)?ep(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var y=new qs("action","action",null,r,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Hn!==0){var b=h?tp(u,h):new FormData(u);ff(a,{pending:!0,data:b,method:u.method,action:c},null,b)}}else typeof c=="function"&&(y.preventDefault(),b=h?tp(u,h):new FormData(u),ff(a,{pending:!0,data:b,method:u.method,action:c},c,b))},currentTarget:u}]})}}for(var Xf=0;Xf<Ec.length;Xf++){var $f=Ec[Xf],N_=$f.toLowerCase(),M_=$f[0].toUpperCase()+$f.slice(1);Ea(N_,"on"+M_)}Ea(M0,"onAnimationEnd"),Ea(D0,"onAnimationIteration"),Ea(j0,"onAnimationStart"),Ea("dblclick","onDoubleClick"),Ea("focusin","onFocus"),Ea("focusout","onBlur"),Ea(K2,"onTransitionRun"),Ea(J2,"onTransitionStart"),Ea(F2,"onTransitionCancel"),Ea(R0,"onTransitionEnd"),Kl("onMouseEnter",["mouseout","mouseover"]),Kl("onMouseLeave",["mouseout","mouseover"]),Kl("onPointerEnter",["pointerout","pointerover"]),Kl("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="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(" "),D_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui));function ap(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],u=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var h=r.length-1;0<=h;h--){var y=r[h],b=y.instance,z=y.currentTarget;if(y=y.listener,b!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=z;try{c(u)}catch(V){Gs(V)}u.currentTarget=null,c=b}else for(h=0;h<r.length;h++){if(y=r[h],b=y.instance,z=y.currentTarget,y=y.listener,b!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=z;try{c(u)}catch(V){Gs(V)}u.currentTarget=null,c=b}}}}function we(e,t){var a=t[rc];a===void 0&&(a=t[rc]=new Set);var r=e+"__bubble";a.has(r)||(np(t,e,2,!1),a.add(r))}function Kf(e,t,a){var r=0;t&&(r|=4),np(a,e,r,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function Jf(e){if(!e[ku]){e[ku]=!0,Fm.forEach(function(a){a!=="selectionchange"&&(D_.has(a)||Kf(a,!1,e),Kf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,Kf("selectionchange",!1,t))}}function np(e,t,a,r){switch(Mp(t)){case 2:var u=sw;break;case 8:u=uw;break;default:u=cd}a=u.bind(null,t,a,e),u=void 0,!mc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?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 Ff(e,t,a,r,u){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var h=r.tag;if(h===3||h===4){var y=r.stateNode.containerInfo;if(y===u)break;if(h===4)for(h=r.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=Ql(y),h===null)return;if(b=h.tag,b===5||b===6||b===26||b===27){r=c=h;continue e}y=y.parentNode}}r=r.return}u0(function(){var z=c,V=dc(a),q=[];e:{var M=U0.get(e);if(M!==void 0){var D=qs,ie=e;switch(e){case"keypress":if(Ls(a)===0)break e;case"keydown":case"keyup":D=C2;break;case"focusin":ie="focus",D=vc;break;case"focusout":ie="blur",D=vc;break;case"beforeblur":case"afterblur":D=vc;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":D=f0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=m2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=z2;break;case M0:case D0:case j0:D=p2;break;case R0:D=N2;break;case"scroll":case"scrollend":D=d2;break;case"wheel":D=D2;break;case"copy":case"cut":case"paste":D=b2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=h0;break;case"toggle":case"beforetoggle":D=R2}var de=(t&4)!==0,Ke=!de&&(e==="scroll"||e==="scrollend"),C=de?M!==null?M+"Capture":null:M;de=[];for(var _=z,O;_!==null;){var H=_;if(O=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||O===null||C===null||(H=li(_,C),H!=null&&de.push(Bi(_,H,O))),Ke)break;_=_.return}0<de.length&&(M=new D(M,ie,null,a,V),q.push({event:M,listeners:de}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",M&&a!==fc&&(ie=a.relatedTarget||a.fromElement)&&(Ql(ie)||ie[Gl]))break e;if((D||M)&&(M=V.window===V?V:(M=V.ownerDocument)?M.defaultView||M.parentWindow:window,D?(ie=a.relatedTarget||a.toElement,D=z,ie=ie?Ql(ie):null,ie!==null&&(Ke=f(ie),de=ie.tag,ie!==Ke||de!==5&&de!==27&&de!==6)&&(ie=null)):(D=null,ie=z),D!==ie)){if(de=f0,H="onMouseLeave",C="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(de=h0,H="onPointerLeave",C="onPointerEnter",_="pointer"),Ke=D==null?M:ni(D),O=ie==null?M:ni(ie),M=new de(H,_+"leave",D,a,V),M.target=Ke,M.relatedTarget=O,H=null,Ql(V)===z&&(de=new de(C,_+"enter",ie,a,V),de.target=O,de.relatedTarget=Ke,H=de),Ke=H,D&&ie)t:{for(de=j_,C=D,_=ie,O=0,H=C;H;H=de(H))O++;H=0;for(var fe=_;fe;fe=de(fe))H++;for(;0<O-H;)C=de(C),O--;for(;0<H-O;)_=de(_),H--;for(;O--;){if(C===_||_!==null&&C===_.alternate){de=C;break t}C=de(C),_=de(_)}de=null}else de=null;D!==null&&lp(q,M,D,de,!1),ie!==null&&Ke!==null&&lp(q,Ke,ie,de,!0)}}e:{if(M=z?ni(z):window,D=M.nodeName&&M.nodeName.toLowerCase(),D==="select"||D==="input"&&M.type==="file")var Me=S0;else if(b0(M))if(_0)Me=Q2;else{Me=Y2;var oe=Z2}else D=M.nodeName,!D||D.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?z&&cc(z.elementType)&&(Me=S0):Me=G2;if(Me&&(Me=Me(e,z))){x0(q,Me,a,V);break e}oe&&oe(e,M,z),e==="focusout"&&z&&M.type==="number"&&z.memoizedProps.value!=null&&oc(M,"number",M.value)}switch(oe=z?ni(z):window,e){case"focusin":(b0(oe)||oe.contentEditable==="true")&&(er=oe,Ac=z,di=null);break;case"focusout":di=Ac=er=null;break;case"mousedown":Tc=!0;break;case"contextmenu":case"mouseup":case"dragend":Tc=!1,k0(q,a,V);break;case"selectionchange":if($2)break;case"keydown":case"keyup":k0(q,a,V)}var be;if(xc)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Pl?p0(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Te="onCompositionStart");Te&&(m0&&a.locale!=="ko"&&(Pl||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Pl&&(be=o0()):(An=V,yc="value"in An?An.value:An.textContent,Pl=!0)),oe=Nu(z,Te),0<oe.length&&(Te=new d0(Te,e,null,a,V),q.push({event:Te,listeners:oe}),be?Te.data=be:(be=v0(a),be!==null&&(Te.data=be)))),(be=B2?V2(e,a):L2(e,a))&&(Te=Nu(z,"onBeforeInput"),0<Te.length&&(oe=new d0("onBeforeInput","beforeinput",null,a,V),q.push({event:oe,listeners:Te}),oe.data=be)),k_(q,e,z,a,V)}ap(q,t)})}function Bi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Nu(e,t){for(var a=t+"Capture",r=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=li(e,a),u!=null&&r.unshift(Bi(e,u,c)),u=li(e,t),u!=null&&r.push(Bi(e,u,c))),e.tag===3)return r;e=e.return}return[]}function j_(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lp(e,t,a,r,u){for(var c=t._reactName,h=[];a!==null&&a!==r;){var y=a,b=y.alternate,z=y.stateNode;if(y=y.tag,b!==null&&b===r)break;y!==5&&y!==26&&y!==27||z===null||(b=z,u?(z=li(a,c),z!=null&&h.unshift(Bi(a,z,b))):u||(z=li(a,c),z!=null&&h.push(Bi(a,z,b)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var R_=/\r\n?/g,U_=/\u0000|\uFFFD/g;function rp(e){return(typeof e=="string"?e:""+e).replace(R_,`
|
|
33
|
-
`).replace(U_,"")}function ip(e,t){return t=rp(t),rp(e)===t}function $e(e,t,a,r,u,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Fl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Fl(e,""+r);break;case"className":Rs(e,"class",r);break;case"tabIndex":Rs(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Rs(e,a,r);break;case"style":i0(e,r,c);break;case"data":if(t!=="object"){Rs(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Bs(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="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"&&$e(e,t,"name",u.name,u,null),$e(e,t,"formEncType",u.formEncType,u,null),$e(e,t,"formMethod",u.formMethod,u,null),$e(e,t,"formTarget",u.formTarget,u,null)):($e(e,t,"encType",u.encType,u,null),$e(e,t,"method",u.method,u,null),$e(e,t,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Bs(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Fa);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Bs(""+r),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":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":we("beforetoggle",e),we("toggle",e),js(e,"popover",r);break;case"xlinkActuate":Ja(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Ja(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Ja(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Ja(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Ja(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Ja(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":js(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=c2.get(a)||a,js(e,a,r))}}function Wf(e,t,a,r,u,c){switch(a){case"style":i0(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Fl(e,r):(typeof r=="number"||typeof r=="bigint")&&Fl(e,""+r);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Fa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wm.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[Yt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,u);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):js(e,a,r)}}}function Mt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var r=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var h=a[c];if(h!=null)switch(c){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:$e(e,t,c,h,a,null)}}u&&$e(e,t,"srcSet",a.srcSet,a,null),r&&$e(e,t,"src",a.src,a,null);return;case"input":we("invalid",e);var y=c=h=u=null,b=null,z=null;for(r in a)if(a.hasOwnProperty(r)){var V=a[r];if(V!=null)switch(r){case"name":u=V;break;case"type":h=V;break;case"checked":b=V;break;case"defaultChecked":z=V;break;case"value":c=V;break;case"defaultValue":y=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:$e(e,t,r,V,a,null)}}a0(e,c,y,b,z,h,u,!1);return;case"select":we("invalid",e),r=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":r=y;default:$e(e,t,u,y,a,null)}t=c,a=h,e.multiple=!!r,t!=null?Jl(e,!!r,t,!1):a!=null&&Jl(e,!!r,a,!0);return;case"textarea":we("invalid",e),c=u=r=null;for(h in a)if(a.hasOwnProperty(h)&&(y=a[h],y!=null))switch(h){case"value":r=y;break;case"defaultValue":u=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:$e(e,t,h,y,a,null)}l0(e,r,u,c);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(r=a[b],r!=null))switch(b){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:$e(e,t,b,r,a,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(r=0;r<Ui.length;r++)we(Ui[r],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(r=a[z],r!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:$e(e,t,z,r,a,null)}return;default:if(cc(t)){for(V in a)a.hasOwnProperty(V)&&(r=a[V],r!==void 0&&Wf(e,t,V,r,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(r=a[y],r!=null&&$e(e,t,y,r,a,null))}function B_(e,t,a,r){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,z=null,V=null;for(D in a){var q=a[D];if(a.hasOwnProperty(D)&&q!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":b=q;default:r.hasOwnProperty(D)||$e(e,t,D,null,r,q)}}for(var M in r){var D=r[M];if(q=a[M],r.hasOwnProperty(M)&&(D!=null||q!=null))switch(M){case"type":c=D;break;case"name":u=D;break;case"checked":z=D;break;case"defaultChecked":V=D;break;case"value":h=D;break;case"defaultValue":y=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:D!==q&&$e(e,t,M,D,r,q)}}uc(e,h,y,b,z,V,c,u);return;case"select":D=h=y=M=null;for(c in a)if(b=a[c],a.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":D=b;default:r.hasOwnProperty(c)||$e(e,t,c,null,r,b)}for(u in r)if(c=r[u],b=a[u],r.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&&$e(e,t,u,c,r,b)}t=y,a=h,r=D,M!=null?Jl(e,!!a,M,!1):!!r!=!!a&&(t!=null?Jl(e,!!a,t,!0):Jl(e,!!a,a?[]:"",!1));return;case"textarea":D=M=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!r.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:$e(e,t,y,null,r,u)}for(h in r)if(u=r[h],c=a[h],r.hasOwnProperty(h)&&(u!=null||c!=null))switch(h){case"value":M=u;break;case"defaultValue":D=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&$e(e,t,h,u,r,c)}n0(e,M,D);return;case"option":for(var ie in a)if(M=a[ie],a.hasOwnProperty(ie)&&M!=null&&!r.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:$e(e,t,ie,null,r,M)}for(b in r)if(M=r[b],D=a[b],r.hasOwnProperty(b)&&M!==D&&(M!=null||D!=null))switch(b){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:$e(e,t,b,M,r,D)}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 de in a)M=a[de],a.hasOwnProperty(de)&&M!=null&&!r.hasOwnProperty(de)&&$e(e,t,de,null,r,M);for(z in r)if(M=r[z],D=a[z],r.hasOwnProperty(z)&&M!==D&&(M!=null||D!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:$e(e,t,z,M,r,D)}return;default:if(cc(t)){for(var Ke in a)M=a[Ke],a.hasOwnProperty(Ke)&&M!==void 0&&!r.hasOwnProperty(Ke)&&Wf(e,t,Ke,void 0,r,M);for(V in r)M=r[V],D=a[V],!r.hasOwnProperty(V)||M===D||M===void 0&&D===void 0||Wf(e,t,V,M,r,D);return}}for(var C in a)M=a[C],a.hasOwnProperty(C)&&M!=null&&!r.hasOwnProperty(C)&&$e(e,t,C,null,r,M);for(q in r)M=r[q],D=a[q],!r.hasOwnProperty(q)||M===D||M==null&&D==null||$e(e,t,q,M,r,D)}function sp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function V_(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var u=a[r],c=u.transferSize,h=u.initiatorType,y=u.duration;if(c&&y&&sp(h)){for(h=0,y=u.responseEnd,r+=1;r<a.length;r++){var b=a[r],z=b.startTime;if(z>y)break;var V=b.transferSize,q=b.initiatorType;V&&sp(q)&&(b=b.responseEnd,h+=V*(b<y?1:(y-z)/(b-z)))}if(--r,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 If=null,Pf=null;function Mu(e){return e.nodeType===9?e:e.ownerDocument}function up(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 op(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 ed(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 td=null;function L_(){var e=window.event;return e&&e.type==="popstate"?e===td?!1:(td=e,!0):(td=null,!1)}var cp=typeof setTimeout=="function"?setTimeout:void 0,H_=typeof clearTimeout=="function"?clearTimeout:void 0,fp=typeof Promise=="function"?Promise:void 0,q_=typeof queueMicrotask=="function"?queueMicrotask:typeof fp<"u"?function(e){return fp.resolve(null).then(e).catch(Z_)}:cp;function Z_(e){setTimeout(function(){throw e})}function qn(e){return e==="head"}function dp(e,t){var a=t,r=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(u),Er(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Vi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Vi(a);for(var c=a.firstChild;c;){var h=c.nextSibling,y=c.nodeName;c[ai]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=h}}else a==="body"&&Vi(e.ownerDocument.body);a=u}while(a);Er(t)}function hp(e,t){var a=e;e=0;do{var r=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||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function ad(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ad(a),ic(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Y_(e,t,a,r){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ai])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=_a(e.nextSibling),e===null)break}return null}function G_(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=_a(e.nextSibling),e===null))return null;return e}function mp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_a(e.nextSibling),e===null))return null;return e}function nd(e){return e.data==="$?"||e.data==="$~"}function ld(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Q_(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function _a(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var rd=null;function yp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return _a(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function gp(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 pp(e,t,a){switch(t=Mu(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 Vi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ic(e)}var wa=new Map,vp=new Set;function Du(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var hn=X.d;X.d={f:X_,r:$_,D:K_,C:J_,L:F_,m:W_,X:P_,S:I_,M:ew};function X_(){var e=hn.f(),t=Au();return e||t}function $_(e){var t=Xl(e);t!==null&&t.tag===5&&t.type==="form"?Ry(t):hn.r(e)}var Ar=typeof document>"u"?null:document;function bp(e,t,a){var r=Ar;if(r&&typeof t=="string"&&t){var u=ya(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),vp.has(u)||(vp.add(u),e={rel:e,crossOrigin:a,href:t},r.querySelector(u)===null&&(t=r.createElement("link"),Mt(t,"link",e),At(t),r.head.appendChild(t)))}}function K_(e){hn.D(e),bp("dns-prefetch",e,null)}function J_(e,t){hn.C(e,t),bp("preconnect",e,t)}function F_(e,t,a){hn.L(e,t,a);var r=Ar;if(r&&e&&t){var u='link[rel="preload"][as="'+ya(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+ya(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+ya(a.imageSizes)+'"]')):u+='[href="'+ya(e)+'"]';var c=u;switch(t){case"style":c=Tr(e);break;case"script":c=Cr(e)}wa.has(c)||(e=w({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),wa.set(c,e),r.querySelector(u)!==null||t==="style"&&r.querySelector(Li(c))||t==="script"&&r.querySelector(Hi(c))||(t=r.createElement("link"),Mt(t,"link",e),At(t),r.head.appendChild(t)))}}function W_(e,t){hn.m(e,t);var a=Ar;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+ya(r)+'"][href="'+ya(e)+'"]',c=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cr(e)}if(!wa.has(c)&&(e=w({rel:"modulepreload",href:e},t),wa.set(c,e),a.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Hi(c)))return}r=a.createElement("link"),Mt(r,"link",e),At(r),a.head.appendChild(r)}}}function I_(e,t,a){hn.S(e,t,a);var r=Ar;if(r&&e){var u=$l(r).hoistableStyles,c=Tr(e);t=t||"default";var h=u.get(c);if(!h){var y={loading:0,preload:null};if(h=r.querySelector(Li(c)))y.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},a),(a=wa.get(c))&&id(e,a);var b=h=r.createElement("link");At(b),Mt(b,"link",e),b._p=new Promise(function(z,V){b.onload=z,b.onerror=V}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ju(h,t,r)}h={type:"stylesheet",instance:h,count:1,state:y},u.set(c,h)}}}function P_(e,t){hn.X(e,t);var a=Ar;if(a&&e){var r=$l(a).hoistableScripts,u=Cr(e),c=r.get(u);c||(c=a.querySelector(Hi(u)),c||(e=w({src:e,async:!0},t),(t=wa.get(u))&&sd(e,t),c=a.createElement("script"),At(c),Mt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(u,c))}}function ew(e,t){hn.M(e,t);var a=Ar;if(a&&e){var r=$l(a).hoistableScripts,u=Cr(e),c=r.get(u);c||(c=a.querySelector(Hi(u)),c||(e=w({src:e,async:!0,type:"module"},t),(t=wa.get(u))&&sd(e,t),c=a.createElement("script"),At(c),Mt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(u,c))}}function xp(e,t,a,r){var u=(u=Ba.current)?Du(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=Tr(a.href),a=$l(u).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Tr(a.href);var c=$l(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(Li(e)))&&!c._p&&(h.instance=c,h.state.loading=5),wa.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},wa.set(e,a),c||tw(u,e,a,h.state))),t&&r===null)throw Error(s(528,""));return h}if(t&&r!==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=Cr(a),a=$l(u).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Tr(e){return'href="'+ya(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function Sp(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function tw(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Mt(t,"link",a),At(t),e.head.appendChild(t))}function Cr(e){return'[src="'+ya(e)+'"]'}function Hi(e){return"script[async]"+e}function _p(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ya(a.href)+'"]');if(r)return t.instance=r,At(r),r;var u=w({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),At(r),Mt(r,"style",u),ju(r,a.precedence,e),t.instance=r;case"stylesheet":u=Tr(a.href);var c=e.querySelector(Li(u));if(c)return t.state.loading|=4,t.instance=c,At(c),c;r=Sp(a),(u=wa.get(u))&&id(r,u),c=(e.ownerDocument||e).createElement("link"),At(c);var h=c;return h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),Mt(c,"link",r),t.state.loading|=4,ju(c,a.precedence,e),t.instance=c;case"script":return c=Cr(a.src),(u=e.querySelector(Hi(c)))?(t.instance=u,At(u),u):(r=a,(u=wa.get(c))&&(r=w({},a),sd(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),At(u),Mt(u,"link",r),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&&(r=t.instance,t.state.loading|=4,ju(r,a.precedence,e));return t.instance}function ju(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,c=u,h=0;h<r.length;h++){var y=r[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 id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function sd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ru=null;function wp(e,t,a){if(Ru===null){var r=new Map,u=Ru=new Map;u.set(a,r)}else u=Ru,r=u.get(a),r||(r=new Map,u.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[ai]||c[Ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var y=r.get(h);y?y.push(c):r.set(h,[c])}}return r}function Ap(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function aw(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 Tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function nw(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Tr(r.href),c=t.querySelector(Li(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Uu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,At(c);return}c=t.ownerDocument||t,r=Sp(r),(u=wa.get(u))&&id(r,u),c=c.createElement("link"),At(c);var h=c;h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),Mt(c,"link",r),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=Uu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ud=0;function lw(e,t){return e.stylesheets&&e.count===0&&Vu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&ud===0&&(ud=62500*V_());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>ud?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bu=null;function Vu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bu=new Map,t.forEach(rw,e),Bu=null,Uu.call(e))}function rw(e,t){if(!(t.state.loading&4)){var a=Bu.get(e);if(a)var r=a.get(null);else{a=new Map,Bu.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),r=h)}r&&a.set(null,r)}u=t.instance,h=u.getAttribute("data-precedence"),c=a.get(h)||r,c===r&&a.set(null,u),a.set(h,u),this.count++,r=Uu.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var qi={$$typeof:te,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function iw(e,t,a,r,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=ac(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.hiddenUpdates=ac(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Cp(e,t,a,r,u,c,h,y,b,z,V,q){return e=new iw(e,t,a,h,b,z,V,q,y),t=1,c===!0&&(t|=24),c=aa(3,null,null,t),e.current=c,c.stateNode=e,t=Hc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},Gc(c),e}function Ep(e){return e?(e=nr,e):nr}function Op(e,t,a,r,u,c){u=Ep(u),r.context===null?r.context=u:r.pendingContext=u,r=kn(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=Nn(e,r,t),a!==null&&(Jt(a,e,t),bi(a,e,t))}function zp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function od(e,t){zp(e,t),(e=e.alternate)&&zp(e,t)}function kp(e){if(e.tag===13||e.tag===31){var t=ol(e,67108864);t!==null&&Jt(t,e,67108864),od(e,67108864)}}function Np(e){if(e.tag===13||e.tag===31){var t=sa();t=nc(t);var a=ol(e,t);a!==null&&Jt(a,e,t),od(e,t)}}var Lu=!0;function sw(e,t,a,r){var u=k.T;k.T=null;var c=X.p;try{X.p=2,cd(e,t,a,r)}finally{X.p=c,k.T=u}}function uw(e,t,a,r){var u=k.T;k.T=null;var c=X.p;try{X.p=8,cd(e,t,a,r)}finally{X.p=c,k.T=u}}function cd(e,t,a,r){if(Lu){var u=fd(r);if(u===null)Ff(e,t,r,Hu,a),Dp(e,r);else if(cw(u,e,t,a,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<ow.indexOf(e)){for(;u!==null;){var c=Xl(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=ll(c.pendingLanes);if(h!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var b=1<<31-Et(h);y.entanglements[1]|=b,h&=~b}Ya(c),(Be&6)===0&&(_u=N()+500,Ri(0))}}break;case 31:case 13:y=ol(c,2),y!==null&&Jt(y,c,2),Au(),od(c,2)}if(c=fd(r),c===null&&Ff(e,t,r,Hu,a),c===u)break;u=c}u!==null&&r.stopPropagation()}else Ff(e,t,r,null,a)}}function fd(e){return e=dc(e),dd(e)}var Hu=null;function dd(e){if(Hu=null,e=Ql(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 Hu=e,null}function Mp(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(W()){case J:return 2;case F:return 8;case se:case ge:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var hd=!1,Zn=null,Yn=null,Gn=null,Zi=new Map,Yi=new Map,Qn=[],ow="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 Dp(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":Zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yi.delete(t.pointerId)}}function Gi(e,t,a,r,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[u]},t!==null&&(t=Xl(t),t!==null&&kp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function cw(e,t,a,r,u){switch(t){case"focusin":return Zn=Gi(Zn,e,t,a,r,u),!0;case"dragenter":return Yn=Gi(Yn,e,t,a,r,u),!0;case"mouseover":return Gn=Gi(Gn,e,t,a,r,u),!0;case"pointerover":var c=u.pointerId;return Zi.set(c,Gi(Zi.get(c)||null,e,t,a,r,u)),!0;case"gotpointercapture":return c=u.pointerId,Yi.set(c,Gi(Yi.get(c)||null,e,t,a,r,u)),!0}return!1}function jp(e){var t=Ql(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,Km(e.priority,function(){Np(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Km(e.priority,function(){Np(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 qu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=fd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);fc=r,a.target.dispatchEvent(r),fc=null}else return t=Xl(a),t!==null&&kp(t),e.blockedOn=a,!1;t.shift()}return!0}function Rp(e,t,a){qu(e)&&a.delete(t)}function fw(){hd=!1,Zn!==null&&qu(Zn)&&(Zn=null),Yn!==null&&qu(Yn)&&(Yn=null),Gn!==null&&qu(Gn)&&(Gn=null),Zi.forEach(Rp),Yi.forEach(Rp)}function Zu(e,t){e.blockedOn===t&&(e.blockedOn=null,hd||(hd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,fw)))}var Yu=null;function Up(e){Yu!==e&&(Yu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Yu===e&&(Yu=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],u=e[t+2];if(typeof r!="function"){if(dd(r||a)===null)continue;break}var c=Xl(a);c!==null&&(e.splice(t,3),t-=3,ff(c,{pending:!0,data:u,method:a.method,action:r},r,u))}}))}function Er(e){function t(b){return Zu(b,e)}Zn!==null&&Zu(Zn,e),Yn!==null&&Zu(Yn,e),Gn!==null&&Zu(Gn,e),Zi.forEach(t),Yi.forEach(t);for(var a=0;a<Qn.length;a++){var r=Qn[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Qn.length&&(a=Qn[0],a.blockedOn===null);)jp(a),a.blockedOn===null&&Qn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var u=a[r],c=a[r+1],h=u[Yt]||null;if(typeof c=="function")h||Up(a);else if(h){var y=null;if(c&&c.hasAttribute("formAction")){if(u=c,h=c[Yt]||null)y=h.formAction;else if(dd(u)!==null)continue}else y=h.action;typeof y=="function"?a[r+1]=y:(a.splice(r,3),r-=3),Up(a)}}}function Bp(){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),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function md(e){this._internalRoot=e}Gu.prototype.render=md.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,r=sa();Op(a,r,e,t,null,null)},Gu.prototype.unmount=md.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Op(e.current,2,null,e,null,null),Au(),t[Gl]=null}};function Gu(e){this._internalRoot=e}Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=$m();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Qn.length&&t!==0&&t<Qn[a].priority;a++);Qn.splice(a,0,e),a===0&&jp(e)}};var Vp=l.version;if(Vp!=="19.2.4")throw Error(s(527,Vp,"19.2.4"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var dw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qu.isDisabled&&Qu.supportsFiber)try{gt=Qu.inject(dw),Vt=Qu}catch{}}return zr.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,r="",u=Qy,c=Xy,h=$y;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Cp(e,1,!1,null,null,a,r,null,u,c,h,Bp),e[Gl]=t.current,Jf(e),new md(t)},zr.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var r=!1,u="",c=Qy,h=Xy,y=$y,b=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!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=Cp(e,1,!0,t,a??null,r,u,b,c,h,y,Bp),t.context=Ep(null),a=t.current,r=sa(),r=nc(r),u=kn(r),u.callback=null,Nn(a,u,r),a=r,t.current.lanes=a,ti(t,a),Ya(t),e[Gl]=t.current,Jf(e),new Gu(t)},zr.version="19.2.4",zr}var Sd;function Xp(){if(Sd)return $u.exports;Sd=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(l){console.error(l)}}return n(),$u.exports=Qp(),$u.exports}var $p=Xp();const _d=n=>{let l;const i=new Set,s=(v,T)=>{const w=typeof v=="function"?v(l):v;if(!Object.is(w,l)){const R=l;l=T??(typeof w!="object"||w===null)?w:Object.assign({},l,w),i.forEach(S=>S(l,R))}},o=()=>l,m={setState:s,getState:o,getInitialState:()=>p,subscribe:v=>(i.add(v),()=>i.delete(v))},p=l=n(s,o,m);return m},Fu=(n=>n?_d(n):_d),Kp=n=>n;function Wu(n,l=Kp){const i=he.useSyncExternalStore(n.subscribe,he.useCallback(()=>l(n.getState()),[n,l]),he.useCallback(()=>l(n.getInitialState()),[n,l]));return he.useDebugValue(i),i}const wd=n=>{const l=Fu(n),i=s=>Wu(l,s);return Object.assign(i,l),i},Ad=(n=>n?wd(n):wd),Jp={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"},Qi=Fu(n=>({...Jp,setSecurityNumber:l=>n({securityNumber:l}),setState:l=>n({state:l}),setTargetProduct:l=>n({targetProduct:l}),setAvailableDiscountSelected:l=>n({availableDiscountSelected:l}),setUrlAcceptTerms:l=>n({urlAcceptTerms:l}),setUrlRegisterIndustry:l=>n({urlRegisterIndustry:l}),setIsAuthenticatedShopper:l=>n({isAuthenticatedShopper:l}),setCustomLoginUrl:l=>n({customLoginUrl:l}),setCardID:l=>n({cardID:l})})),Fp=()=>({getState:()=>{const n=Qi.getState(),{setSecurityNumber:l,setState:i,setAvailableDiscountSelected:s,setTargetProduct:o,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:m,setCustomLoginUrl:p,setCardID:v,...T}=n,{quantity:w,productId:R,skuId:S,discountMax:U,netPrice:A,stockBalance:Z,listPrice:I,price:$,...te}=n.targetProduct;return{...T,targetProduct:te}}});function Ft(n){return Wu(Qi,l=>l)}function Wp({originalProductPrice:n}){var o,f;const{targetProduct:l}=Ft(),i=(l==null?void 0:l.listPrice)||n,s=i*(((l==null?void 0:l.discountMax)||0)/100);return j.jsxs(j.Fragment,{children:[(l==null?void 0:l.informativeMessage)&&j.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:l==null?void 0:l.informativeMessage}),j.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:[j.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:j.jsxs("section",{className:"flex items-center gap-2 justify-center-safe",children:[j.jsx("span",{className:"line-through text-sm font-light",children:(o=Number(i))==null?void 0:o.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),(f=Number(i-s))==null?void 0:f.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})]})}),j.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 Iu={exports:{}};/*!
|
|
32
|
+
`+r.stack}}var Pr=Object.prototype.hasOwnProperty,zs=n.unstable_scheduleCallback,Yl=n.unstable_cancelCallback,x=n.unstable_shouldYield,E=n.unstable_requestPaint,N=n.unstable_now,W=n.unstable_getCurrentPriorityLevel,J=n.unstable_ImmediatePriority,F=n.unstable_UserBlockingPriority,se=n.unstable_NormalPriority,pe=n.unstable_LowPriority,Ne=n.unstable_IdlePriority,Bt=n.log,da=n.unstable_setDisableYieldValue,pt=null,Vt=null;function ha(e){if(typeof Bt=="function"&&da(e),Vt&&typeof Vt.setStrictMode=="function")try{Vt.setStrictMode(pt,e)}catch{}}var Et=Math.clz32?Math.clz32:tc,ec=Math.log,ks=Math.LN2;function tc(e){return e>>>=0,e===0?32:31-(ec(e)/ks|0)|0}var nl=256,Ns=262144,Ms=4194304;function ll(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 Ds(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var u=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=r&134217727;return y!==0?(r=y&~c,r!==0?u=ll(r):(h&=y,h!==0?u=ll(h):a||(a=y&~e,a!==0&&(u=ll(a))))):(y=r&~c,y!==0?u=ll(y):h!==0?u=ll(h):a||(a=r&~e,a!==0&&(u=ll(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 ei(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tS(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 Ym(){var e=Ms;return Ms<<=1,(Ms&62914560)===0&&(Ms=4194304),e}function ac(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ti(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function aS(e,t,a,r,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,z=e.hiddenUpdates;for(a=h&~a;0<a;){var V=31-Et(a),q=1<<V;y[V]=0,b[V]=-1;var M=z[V];if(M!==null)for(z[V]=null,V=0;V<M.length;V++){var D=M[V];D!==null&&(D.lane&=-536870913)}a&=~q}r!==0&&Gm(e,r,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Gm(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Et(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Qm(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Et(a),u=1<<r;u&t|e[r]&t&&(e[r]|=t),a&=~u}}function Xm(e,t){var a=t&-t;return a=(a&42)!==0?1:nc(a),(a&(e.suspendedLanes|t))!==0?0:a}function nc(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 lc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $m(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Mg(e.type))}function Km(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var wn=Math.random().toString(36).slice(2),Ot="__reactFiber$"+wn,Yt="__reactProps$"+wn,Gl="__reactContainer$"+wn,rc="__reactEvents$"+wn,nS="__reactListeners$"+wn,lS="__reactHandles$"+wn,Jm="__reactResources$"+wn,ai="__reactMarker$"+wn;function ic(e){delete e[Ot],delete e[Yt],delete e[rc],delete e[nS],delete e[lS]}function Ql(e){var t=e[Ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Gl]||a[Ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=pg(e);e!==null;){if(a=e[Ot])return a;e=pg(e)}return t}e=a,a=e.parentNode}return null}function Xl(e){if(e=e[Ot]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ni(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function $l(e){var t=e[Jm];return t||(t=e[Jm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function At(e){e[ai]=!0}var Fm=new Set,Wm={};function rl(e,t){Kl(e,t),Kl(e+"Capture",t)}function Kl(e,t){for(Wm[e]=t,e=0;e<t.length;e++)Fm.add(t[e])}var rS=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]*$"),Im={},Pm={};function iS(e){return Pr.call(Pm,e)?!0:Pr.call(Im,e)?!1:rS.test(e)?Pm[e]=!0:(Im[e]=!0,!1)}function js(e,t,a){if(iS(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Rs(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 Ja(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function ma(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function e0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sS(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,c=r.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:r.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sc(e){if(!e._valueTracker){var t=e0(e)?"checked":"value";e._valueTracker=sS(e,t,""+e[t])}}function t0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=e0(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Us(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 uS=/[\n"\\]/g;function ya(e){return e.replace(uS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function uc(e,t,a,r,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=""+ma(t)):e.value!==""+ma(t)&&(e.value=""+ma(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?oc(e,h,ma(t)):a!=null?oc(e,h,ma(a)):r!=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=""+ma(y):e.removeAttribute("name")}function a0(e,t,a,r,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)){sc(e);return}a=a!=null?""+ma(a):"",t=t!=null?""+ma(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=y?e.checked:!!r,e.defaultChecked=!!r,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),sc(e)}function oc(e,t,a){t==="number"&&Us(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Jl(e,t,a,r){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&&r&&(e[a].defaultSelected=!0)}else{for(a=""+ma(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function n0(e,t,a){if(t!=null&&(t=""+ma(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ma(a):""}function l0(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(s(92));if(le(r)){if(1<r.length)throw Error(s(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=ma(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),sc(e)}function Fl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var oS=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 r0(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||oS.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function i0(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in t)r=t[u],t.hasOwnProperty(u)&&a[u]!==r&&r0(e,u,r)}else for(var c in t)t.hasOwnProperty(c)&&r0(e,c,t[c])}function cc(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 cS=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"]]),fS=/^[\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 Bs(e){return fS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fa(){}var fc=null;function dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,Il=null;function s0(e){var t=Xl(e);if(t&&(e=t.stateNode)){var a=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(uc(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="'+ya(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var u=r[Yt]||null;if(!u)throw Error(s(90));uc(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&t0(r)}break e;case"textarea":n0(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Jl(e,!!a.multiple,t,!1)}}}var hc=!1;function u0(e,t,a){if(hc)return e(t,a);hc=!0;try{var r=e(t);return r}finally{if(hc=!1,(Wl!==null||Il!==null)&&(Au(),Wl&&(t=Wl,e=Il,Il=Wl=null,s0(t),e)))for(t=0;t<e.length;t++)s0(e[t])}}function li(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Yt]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Wa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mc=!1;if(Wa)try{var ri={};Object.defineProperty(ri,"passive",{get:function(){mc=!0}}),window.addEventListener("test",ri,ri),window.removeEventListener("test",ri,ri)}catch{mc=!1}var An=null,yc=null,Vs=null;function o0(){if(Vs)return Vs;var e,t=yc,a=t.length,r,u="value"in An?An.value:An.textContent,c=u.length;for(e=0;e<a&&t[e]===u[e];e++);var h=a-e;for(r=1;r<=h&&t[a-r]===u[c-r];r++);return Vs=u.slice(e,1<r?1-r:void 0)}function Ls(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 Hs(){return!0}function c0(){return!1}function Gt(e){function t(a,r,u,c,h){this._reactName=a,this._targetInst=u,this.type=r,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)?Hs:c0,this.isPropagationStopped=c0,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=Hs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Hs)},persist:function(){},isPersistent:Hs}),t}var il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qs=Gt(il),ii=w({},il,{view:0,detail:0}),dS=Gt(ii),pc,gc,si,Zs=w({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bc,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!==si&&(si&&e.type==="mousemove"?(pc=e.screenX-si.screenX,gc=e.screenY-si.screenY):gc=pc=0,si=e),pc)},movementY:function(e){return"movementY"in e?e.movementY:gc}}),f0=Gt(Zs),hS=w({},Zs,{dataTransfer:0}),mS=Gt(hS),yS=w({},ii,{relatedTarget:0}),vc=Gt(yS),pS=w({},il,{animationName:0,elapsedTime:0,pseudoElement:0}),gS=Gt(pS),vS=w({},il,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bS=Gt(vS),xS=w({},il,{data:0}),d0=Gt(xS),_S={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SS={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"},wS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function AS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wS[e])?!!t[e]:!1}function bc(){return AS}var TS=w({},ii,{key:function(e){if(e.key){var t=_S[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?SS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bc,charCode:function(e){return e.type==="keypress"?Ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),CS=Gt(TS),ES=w({},Zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),h0=Gt(ES),OS=w({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bc}),zS=Gt(OS),kS=w({},il,{propertyName:0,elapsedTime:0,pseudoElement:0}),NS=Gt(kS),MS=w({},Zs,{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}),DS=Gt(MS),jS=w({},il,{newState:0,oldState:0}),RS=Gt(jS),US=[9,13,27,32],xc=Wa&&"CompositionEvent"in window,ui=null;Wa&&"documentMode"in document&&(ui=document.documentMode);var BS=Wa&&"TextEvent"in window&&!ui,m0=Wa&&(!xc||ui&&8<ui&&11>=ui),y0=" ",p0=!1;function g0(e,t){switch(e){case"keyup":return US.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function v0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pl=!1;function VS(e,t){switch(e){case"compositionend":return v0(t);case"keypress":return t.which!==32?null:(p0=!0,y0);case"textInput":return e=t.data,e===y0&&p0?null:e;default:return null}}function LS(e,t){if(Pl)return e==="compositionend"||!xc&&g0(e,t)?(e=o0(),Vs=yc=An=null,Pl=!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 m0&&t.locale!=="ko"?null:t.data;default:return null}}var HS={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 b0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HS[e.type]:t==="textarea"}function x0(e,t,a,r){Wl?Il?Il.push(r):Il=[r]:Wl=r,t=Nu(t,"onChange"),0<t.length&&(a=new qs("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var oi=null,ci=null;function qS(e){ag(e,0)}function Ys(e){var t=ni(e);if(t0(t))return e}function _0(e,t){if(e==="change")return t}var S0=!1;if(Wa){var _c;if(Wa){var Sc="oninput"in document;if(!Sc){var w0=document.createElement("div");w0.setAttribute("oninput","return;"),Sc=typeof w0.oninput=="function"}_c=Sc}else _c=!1;S0=_c&&(!document.documentMode||9<document.documentMode)}function A0(){oi&&(oi.detachEvent("onpropertychange",T0),ci=oi=null)}function T0(e){if(e.propertyName==="value"&&Ys(ci)){var t=[];x0(t,ci,e,dc(e)),u0(qS,t)}}function ZS(e,t,a){e==="focusin"?(A0(),oi=t,ci=a,oi.attachEvent("onpropertychange",T0)):e==="focusout"&&A0()}function YS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ys(ci)}function GS(e,t){if(e==="click")return Ys(t)}function QS(e,t){if(e==="input"||e==="change")return Ys(t)}function XS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ta=typeof Object.is=="function"?Object.is:XS;function fi(e,t){if(ta(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var u=a[r];if(!Pr.call(t,u)||!ta(e[u],t[u]))return!1}return!0}function C0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function E0(e,t){var a=C0(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=C0(a)}}function O0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function z0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Us(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=Us(e.document)}return t}function wc(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 $S=Wa&&"documentMode"in document&&11>=document.documentMode,er=null,Ac=null,di=null,Tc=!1;function k0(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tc||er==null||er!==Us(r)||(r=er,"selectionStart"in r&&wc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),di&&fi(di,r)||(di=r,r=Nu(Ac,"onSelect"),0<r.length&&(t=new qs("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=er)))}function sl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var tr={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},Cc={},N0={};Wa&&(N0=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function ul(e){if(Cc[e])return Cc[e];if(!tr[e])return e;var t=tr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in N0)return Cc[e]=t[a];return e}var M0=ul("animationend"),D0=ul("animationiteration"),j0=ul("animationstart"),KS=ul("transitionrun"),JS=ul("transitionstart"),FS=ul("transitioncancel"),R0=ul("transitionend"),U0=new Map,Ec="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(" ");Ec.push("scrollEnd");function Ea(e,t){U0.set(e,t),rl(t,[e])}var Gs=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)},pa=[],ar=0,Oc=0;function Qs(){for(var e=ar,t=Oc=ar=0;t<e;){var a=pa[t];pa[t++]=null;var r=pa[t];pa[t++]=null;var u=pa[t];pa[t++]=null;var c=pa[t];if(pa[t++]=null,r!==null&&u!==null){var h=r.pending;h===null?u.next=u:(u.next=h.next,h.next=u),r.pending=u}c!==0&&B0(a,u,c)}}function Xs(e,t,a,r){pa[ar++]=e,pa[ar++]=t,pa[ar++]=a,pa[ar++]=r,Oc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function zc(e,t,a,r){return Xs(e,t,a,r),$s(e)}function ol(e,t){return Xs(e,null,null,t),$s(e)}function B0(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.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-Et(a),e=c.hiddenUpdates,r=e[u],r===null?e[u]=[t]:r.push(t),t.lane=a|536870912),c):null}function $s(e){if(50<ji)throw ji=0,Lf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var nr={};function WS(e,t,a,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function aa(e,t,a,r){return new WS(e,t,a,r)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ia(e,t){var a=e.alternate;return a===null?(a=aa(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 V0(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 Ks(e,t,a,r,u,c){var h=0;if(r=e,typeof e=="function")kc(e)&&(h=1);else if(typeof e=="string")h=aw(e,a,ct.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ue:return e=aa(31,a,t,u),e.elementType=Ue,e.lanes=c,e;case A:return cl(a.children,u,c,t);case Z:h=8,u|=24;break;case I:return e=aa(12,a,t,u|2),e.elementType=I,e.lanes=c,e;case L:return e=aa(13,a,t,u),e.elementType=L,e.lanes=c,e;case Q:return e=aa(19,a,t,u),e.elementType=Q,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:h=10;break e;case $:h=9;break e;case P:h=11;break e;case ae:h=14;break e;case xe:h=16,r=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=aa(h,a,t,u),t.elementType=e,t.type=r,t.lanes=c,t}function cl(e,t,a,r){return e=aa(7,e,r,t),e.lanes=a,e}function Nc(e,t,a){return e=aa(6,e,null,t),e.lanes=a,e}function L0(e){var t=aa(18,null,null,0);return t.stateNode=e,t}function Mc(e,t,a){return t=aa(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var H0=new WeakMap;function ga(e,t){if(typeof e=="object"&&e!==null){var a=H0.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Os(t)},H0.set(e,t),t)}return{value:e,source:t,stack:Os(t)}}var lr=[],rr=0,Js=null,hi=0,va=[],ba=0,Tn=null,Ha=1,qa="";function Pa(e,t){lr[rr++]=hi,lr[rr++]=Js,Js=e,hi=t}function q0(e,t,a){va[ba++]=Ha,va[ba++]=qa,va[ba++]=Tn,Tn=e;var r=Ha;e=qa;var u=32-Et(r)-1;r&=~(1<<u),a+=1;var c=32-Et(t)+u;if(30<c){var h=u-u%5;c=(r&(1<<h)-1).toString(32),r>>=h,u-=h,Ha=1<<32-Et(t)+u|a<<u|r,qa=c+e}else Ha=1<<c|a<<u|r,qa=e}function Dc(e){e.return!==null&&(Pa(e,1),q0(e,1,0))}function jc(e){for(;e===Js;)Js=lr[--rr],lr[rr]=null,hi=lr[--rr],lr[rr]=null;for(;e===Tn;)Tn=va[--ba],va[ba]=null,qa=va[--ba],va[ba]=null,Ha=va[--ba],va[ba]=null}function Z0(e,t){va[ba++]=Ha,va[ba++]=qa,va[ba++]=Tn,Ha=t.id,qa=t.overflow,Tn=e}var zt=null,Ie=null,Ce=!1,Cn=null,xa=!1,Rc=Error(s(519));function En(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mi(ga(t,e)),Rc}function Y0(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[Ot]=e,t[Yt]=r,a){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(a=0;a<Ui.length;a++)we(Ui[a],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),a0(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),l0(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||ig(t.textContent,a)?(r.popover!=null&&(we("beforetoggle",t),we("toggle",t)),r.onScroll!=null&&we("scroll",t),r.onScrollEnd!=null&&we("scrollend",t),r.onClick!=null&&(t.onclick=Fa),t=!0):t=!1,t||En(e,!0)}function G0(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 31:case 13:xa=!1;return;case 27:case 3:xa=!0;return;default:zt=zt.return}}function ir(e){if(e!==zt)return!1;if(!Ce)return G0(e),Ce=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ed(e.type,e.memoizedProps)),a=!a),a&&Ie&&En(e),G0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ie=yg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ie=yg(e)}else t===27?(t=Ie,qn(e.type)?(e=rd,rd=null,Ie=e):Ie=t):Ie=zt?Sa(e.stateNode.nextSibling):null;return!0}function fl(){Ie=zt=null,Ce=!1}function Uc(){var e=Cn;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),Cn=null),e}function mi(e){Cn===null?Cn=[e]:Cn.push(e)}var Bc=St(null),dl=null,en=null;function On(e,t,a){ze(Bc,t._currentValue),t._currentValue=a}function tn(e){e._currentValue=Bc.current,Fe(Bc)}function Vc(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Lc(e,t,a,r){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),Vc(c.return,a,e),r||(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),Vc(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 sr(e,t,a,r){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;ta(u.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(u===tl.current){if(h=u.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(qi):e=[qi])}u=u.return}e!==null&&Lc(t,e,a,r),t.flags|=262144}function Fs(e){for(e=e.firstContext;e!==null;){if(!ta(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hl(e){dl=e,en=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return Q0(dl,e)}function Ws(e,t){return dl===null&&hl(e),Q0(e,t)}function Q0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},en===null){if(e===null)throw Error(s(308));en=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else en=en.next=t;return a}var IS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},PS=n.unstable_scheduleCallback,e2=n.unstable_NormalPriority,gt={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new IS,data:new Map,refCount:0}}function yi(e){e.refCount--,e.refCount===0&&PS(e2,function(){e.controller.abort()})}var pi=null,qc=0,ur=0,or=null;function t2(e,t){if(pi===null){var a=pi=[];qc=0,ur=Qf(),or={status:"pending",value:void 0,then:function(r){a.push(r)}}}return qc++,t.then(X0,X0),t}function X0(){if(--qc===0&&pi!==null){or!==null&&(or.status="fulfilled");var e=pi;pi=null,ur=0,or=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function a2(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(r.status="rejected",r.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),r}var $0=k.S;k.S=function(e,t){kp=N(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&t2(e,t),$0!==null&&$0(e,t)};var ml=St(null);function Zc(){var e=ml.current;return e!==null?e:Je.pooledCache}function Is(e,t){t===null?ze(ml,ml.current):ze(ml,t.pool)}function K0(){var e=Zc();return e===null?null:{parent:gt._currentValue,pool:e}}var cr=Error(s(460)),Yc=Error(s(474)),Ps=Error(s(542)),eu={then:function(){}};function J0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function F0(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Fa,Fa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,I0(e),e;default:if(typeof t.status=="string")t.then(Fa,Fa);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,I0(e),e}throw pl=t,cr}}function yl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(pl=a,cr):a}}var pl=null;function W0(){if(pl===null)throw Error(s(459));var e=pl;return pl=null,e}function I0(e){if(e===cr||e===Ps)throw Error(s(483))}var fr=null,gi=0;function tu(e){var t=gi;return gi+=1,fr===null&&(fr=[]),F0(fr,e,t)}function vi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function au(e,t){throw t.$$typeof===R?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function P0(e){function t(C,S){if(e){var O=C.deletions;O===null?(C.deletions=[S],C.flags|=16):O.push(S)}}function a(C,S){if(!e)return null;for(;S!==null;)t(C,S),S=S.sibling;return null}function r(C){for(var S=new Map;C!==null;)C.key!==null?S.set(C.key,C):S.set(C.index,C),C=C.sibling;return S}function u(C,S){return C=Ia(C,S),C.index=0,C.sibling=null,C}function c(C,S,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<S?(C.flags|=67108866,S):O):(C.flags|=67108866,S)):(C.flags|=1048576,S)}function h(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function y(C,S,O,H){return S===null||S.tag!==6?(S=Nc(O,C.mode,H),S.return=C,S):(S=u(S,O),S.return=C,S)}function b(C,S,O,H){var fe=O.type;return fe===A?V(C,S,O.props.children,H,O.key):S!==null&&(S.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===xe&&yl(fe)===S.type)?(S=u(S,O.props),vi(S,O),S.return=C,S):(S=Ks(O.type,O.key,O.props,null,C.mode,H),vi(S,O),S.return=C,S)}function z(C,S,O,H){return S===null||S.tag!==4||S.stateNode.containerInfo!==O.containerInfo||S.stateNode.implementation!==O.implementation?(S=Mc(O,C.mode,H),S.return=C,S):(S=u(S,O.children||[]),S.return=C,S)}function V(C,S,O,H,fe){return S===null||S.tag!==7?(S=cl(O,C.mode,H,fe),S.return=C,S):(S=u(S,O),S.return=C,S)}function q(C,S,O){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=Nc(""+S,C.mode,O),S.return=C,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _:return O=Ks(S.type,S.key,S.props,null,C.mode,O),vi(O,S),O.return=C,O;case U:return S=Mc(S,C.mode,O),S.return=C,S;case xe:return S=yl(S),q(C,S,O)}if(le(S)||p(S))return S=cl(S,C.mode,O,null),S.return=C,S;if(typeof S.then=="function")return q(C,tu(S),O);if(S.$$typeof===te)return q(C,Ws(C,S),O);au(C,S)}return null}function M(C,S,O,H){var fe=S!==null?S.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return fe!==null?null:y(C,S,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _:return O.key===fe?b(C,S,O,H):null;case U:return O.key===fe?z(C,S,O,H):null;case xe:return O=yl(O),M(C,S,O,H)}if(le(O)||p(O))return fe!==null?null:V(C,S,O,H,null);if(typeof O.then=="function")return M(C,S,tu(O),H);if(O.$$typeof===te)return M(C,S,Ws(C,O),H);au(C,O)}return null}function D(C,S,O,H,fe){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return C=C.get(O)||null,y(S,C,""+H,fe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case _:return C=C.get(H.key===null?O:H.key)||null,b(S,C,H,fe);case U:return C=C.get(H.key===null?O:H.key)||null,z(S,C,H,fe);case xe:return H=yl(H),D(C,S,O,H,fe)}if(le(H)||p(H))return C=C.get(O)||null,V(S,C,H,fe,null);if(typeof H.then=="function")return D(C,S,O,tu(H),fe);if(H.$$typeof===te)return D(C,S,O,Ws(S,H),fe);au(S,H)}return null}function ie(C,S,O,H){for(var fe=null,Me=null,oe=S,be=S=0,Te=null;oe!==null&&be<O.length;be++){oe.index>be?(Te=oe,oe=null):Te=oe.sibling;var De=M(C,oe,O[be],H);if(De===null){oe===null&&(oe=Te);break}e&&oe&&De.alternate===null&&t(C,oe),S=c(De,S,be),Me===null?fe=De:Me.sibling=De,Me=De,oe=Te}if(be===O.length)return a(C,oe),Ce&&Pa(C,be),fe;if(oe===null){for(;be<O.length;be++)oe=q(C,O[be],H),oe!==null&&(S=c(oe,S,be),Me===null?fe=oe:Me.sibling=oe,Me=oe);return Ce&&Pa(C,be),fe}for(oe=r(oe);be<O.length;be++)Te=D(oe,C,be,O[be],H),Te!==null&&(e&&Te.alternate!==null&&oe.delete(Te.key===null?be:Te.key),S=c(Te,S,be),Me===null?fe=Te:Me.sibling=Te,Me=Te);return e&&oe.forEach(function(Xn){return t(C,Xn)}),Ce&&Pa(C,be),fe}function de(C,S,O,H){if(O==null)throw Error(s(151));for(var fe=null,Me=null,oe=S,be=S=0,Te=null,De=O.next();oe!==null&&!De.done;be++,De=O.next()){oe.index>be?(Te=oe,oe=null):Te=oe.sibling;var Xn=M(C,oe,De.value,H);if(Xn===null){oe===null&&(oe=Te);break}e&&oe&&Xn.alternate===null&&t(C,oe),S=c(Xn,S,be),Me===null?fe=Xn:Me.sibling=Xn,Me=Xn,oe=Te}if(De.done)return a(C,oe),Ce&&Pa(C,be),fe;if(oe===null){for(;!De.done;be++,De=O.next())De=q(C,De.value,H),De!==null&&(S=c(De,S,be),Me===null?fe=De:Me.sibling=De,Me=De);return Ce&&Pa(C,be),fe}for(oe=r(oe);!De.done;be++,De=O.next())De=D(oe,C,be,De.value,H),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?be:De.key),S=c(De,S,be),Me===null?fe=De:Me.sibling=De,Me=De);return e&&oe.forEach(function(hw){return t(C,hw)}),Ce&&Pa(C,be),fe}function Ke(C,S,O,H){if(typeof O=="object"&&O!==null&&O.type===A&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case _:e:{for(var fe=O.key;S!==null;){if(S.key===fe){if(fe=O.type,fe===A){if(S.tag===7){a(C,S.sibling),H=u(S,O.props.children),H.return=C,C=H;break e}}else if(S.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===xe&&yl(fe)===S.type){a(C,S.sibling),H=u(S,O.props),vi(H,O),H.return=C,C=H;break e}a(C,S);break}else t(C,S);S=S.sibling}O.type===A?(H=cl(O.props.children,C.mode,H,O.key),H.return=C,C=H):(H=Ks(O.type,O.key,O.props,null,C.mode,H),vi(H,O),H.return=C,C=H)}return h(C);case U:e:{for(fe=O.key;S!==null;){if(S.key===fe)if(S.tag===4&&S.stateNode.containerInfo===O.containerInfo&&S.stateNode.implementation===O.implementation){a(C,S.sibling),H=u(S,O.children||[]),H.return=C,C=H;break e}else{a(C,S);break}else t(C,S);S=S.sibling}H=Mc(O,C.mode,H),H.return=C,C=H}return h(C);case xe:return O=yl(O),Ke(C,S,O,H)}if(le(O))return ie(C,S,O,H);if(p(O)){if(fe=p(O),typeof fe!="function")throw Error(s(150));return O=fe.call(O),de(C,S,O,H)}if(typeof O.then=="function")return Ke(C,S,tu(O),H);if(O.$$typeof===te)return Ke(C,S,Ws(C,O),H);au(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,S!==null&&S.tag===6?(a(C,S.sibling),H=u(S,O),H.return=C,C=H):(a(C,S),H=Nc(O,C.mode,H),H.return=C,C=H),h(C)):a(C,S)}return function(C,S,O,H){try{gi=0;var fe=Ke(C,S,O,H);return fr=null,fe}catch(oe){if(oe===cr||oe===Ps)throw oe;var Me=aa(29,oe,null,C.mode);return Me.lanes=H,Me.return=C,Me}finally{}}}var gl=P0(!0),ey=P0(!1),zn=!1;function Gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(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 kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Be&2)!==0){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,t=$s(e),B0(e,null,a),t}return Xs(e,r,t,a),$s(e)}function bi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qm(e,a)}}function Xc(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){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:r.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var $c=!1;function xi(){if($c){var e=or;if(e!==null)throw e}}function _i(e,t,a,r){$c=!1;var u=e.updateQueue;zn=!1;var c=u.firstBaseUpdate,h=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var b=y,z=b.next;b.next=null,h===null?c=z:h.next=z,h=b;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==h&&(y===null?V.firstBaseUpdate=z:y.next=z,V.lastBaseUpdate=b))}if(c!==null){var q=u.baseState;h=0,V=z=b=null,y=c;do{var M=y.lane&-536870913,D=M!==y.lane;if(D?(Ae&M)===M:(r&M)===M){M!==0&&M===ur&&($c=!0),V!==null&&(V=V.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ie=e,de=y;M=t;var Ke=a;switch(de.tag){case 1:if(ie=de.payload,typeof ie=="function"){q=ie.call(Ke,q,M);break e}q=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=de.payload,M=typeof ie=="function"?ie.call(Ke,q,M):ie,M==null)break e;q=w({},q,M);break e;case 2:zn=!0}}M=y.callback,M!==null&&(e.flags|=64,D&&(e.flags|=8192),D=u.callbacks,D===null?u.callbacks=[M]:D.push(M))}else D={lane:M,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(z=V=D,b=q):V=V.next=D,h|=M;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;D=y,y=D.next,D.next=null,u.lastBaseUpdate=D,u.shared.pending=null}}while(!0);V===null&&(b=q),u.baseState=b,u.firstBaseUpdate=z,u.lastBaseUpdate=V,c===null&&(u.shared.lanes=0),Un|=h,e.lanes=h,e.memoizedState=q}}function ty(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ay(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ty(a[e],t)}var dr=St(null),nu=St(0);function ny(e,t){e=fn,ze(nu,e),ze(dr,t),fn=e|t.baseLanes}function Kc(){ze(nu,fn),ze(dr,dr.current)}function Jc(){fn=nu.current,Fe(dr),Fe(nu)}var na=St(null),_a=null;function Mn(e){var t=e.alternate;ze(ft,ft.current&1),ze(na,e),_a===null&&(t===null||dr.current!==null||t.memoizedState!==null)&&(_a=e)}function Fc(e){ze(ft,ft.current),ze(na,e),_a===null&&(_a=e)}function ly(e){e.tag===22?(ze(ft,ft.current),ze(na,e),_a===null&&(_a=e)):Dn()}function Dn(){ze(ft,ft.current),ze(na,na.current)}function la(e){Fe(na),_a===e&&(_a=null),Fe(ft)}var ft=St(0);function lu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||nd(a)||ld(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 an=0,ve=null,Xe=null,vt=null,ru=!1,hr=!1,vl=!1,iu=0,Si=0,mr=null,n2=0;function rt(){throw Error(s(321))}function Wc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ta(e[a],t[a]))return!1;return!0}function Ic(e,t,a,r,u,c){return an=c,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?qy:mf,vl=!1,c=a(r,u),vl=!1,hr&&(c=iy(t,a,r,u)),ry(e),c}function ry(e){k.H=Ti;var t=Xe!==null&&Xe.next!==null;if(an=0,vt=Xe=ve=null,ru=!1,Si=0,mr=null,t)throw Error(s(300));e===null||bt||(e=e.dependencies,e!==null&&Fs(e)&&(bt=!0))}function iy(e,t,a,r){ve=e;var u=0;do{if(hr&&(mr=null),Si=0,hr=!1,25<=u)throw Error(s(301));if(u+=1,vt=Xe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=Zy,c=t(a,r)}while(hr);return c}function l2(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?wi(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(ve.flags|=1024),t}function Pc(){var e=iu!==0;return iu=0,e}function ef(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function tf(e){if(ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ru=!1}an=0,vt=Xe=ve=null,hr=!1,Si=iu=0,mr=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?ve.memoizedState=vt=e:vt=vt.next=e,vt}function dt(){if(Xe===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=vt===null?ve.memoizedState:vt.next;if(t!==null)vt=t,Xe=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},vt===null?ve.memoizedState=vt=e:vt=vt.next=e}return vt}function su(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wi(e){var t=Si;return Si+=1,mr===null&&(mr=[]),e=F0(mr,e,t),t=ve,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?qy:mf),e}function uu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wi(e);if(e.$$typeof===te)return kt(e)}throw Error(s(438,String(e)))}function af(e){var t=null,a=ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=ve.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=su(),ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=We;return t.index++,a}function nn(e,t){return typeof t=="function"?t(e):t}function ou(e){var t=dt();return nf(t,Xe,e)}function nf(e,t,a){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=a;var u=e.baseQueue,c=r.pending;if(c!==null){if(u!==null){var h=u.next;u.next=c.next,c.next=h}t.baseQueue=u=c,r.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var y=h=null,b=null,z=t,V=!1;do{var q=z.lane&-536870913;if(q!==z.lane?(Ae&q)===q:(an&q)===q){var M=z.revertLane;if(M===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),q===ur&&(V=!0);else if((an&M)===M){z=z.next,M===ur&&(V=!0);continue}else q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(y=b=q,h=c):b=b.next=q,ve.lanes|=M,Un|=M;q=z.action,vl&&a(c,q),c=z.hasEagerState?z.eagerState:a(c,q)}else M={lane:q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(y=b=M,h=c):b=b.next=M,ve.lanes|=q,Un|=q;z=z.next}while(z!==null&&z!==t);if(b===null?h=c:b.next=y,!ta(c,e.memoizedState)&&(bt=!0,V&&(a=or,a!==null)))throw a;e.memoizedState=c,e.baseState=h,e.baseQueue=b,r.lastRenderedState=c}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function lf(e){var t=dt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var r=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);ta(c,t.memoizedState)||(bt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function sy(e,t,a){var r=ve,u=dt(),c=Ce;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!ta((Xe||u).memoizedState,a);if(h&&(u.memoizedState=a,bt=!0),u=u.queue,uf(cy.bind(null,r,u,e),[e]),u.getSnapshot!==t||h||vt!==null&&vt.memoizedState.tag&1){if(r.flags|=2048,yr(9,{destroy:void 0},oy.bind(null,r,u,a,t),null),Je===null)throw Error(s(349));c||(an&127)!==0||uy(r,t,a)}return a}function uy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ve.updateQueue,t===null?(t=su(),ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function oy(e,t,a,r){t.value=a,t.getSnapshot=r,fy(t)&&dy(e)}function cy(e,t,a){return a(function(){fy(t)&&dy(e)})}function fy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ta(e,a)}catch{return!0}}function dy(e){var t=ol(e,2);t!==null&&Jt(t,e,2)}function rf(e){var t=Lt();if(typeof e=="function"){var a=e;if(e=a(),vl){ha(!0);try{a()}finally{ha(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:e},t}function hy(e,t,a,r){return e.baseState=a,nf(e,Xe,typeof r=="function"?r:nn)}function r2(e,t,a,r,u){if(du(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)}};k.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,my(t,c)):(c.next=a.next,t.pending=a.next=c)}}function my(e,t){var a=t.action,r=t.payload,u=e.state;if(t.isTransition){var c=k.T,h={};k.T=h;try{var y=a(u,r),b=k.S;b!==null&&b(h,y),yy(e,t,y)}catch(z){sf(e,t,z)}finally{c!==null&&h.types!==null&&(c.types=h.types),k.T=c}}else try{c=a(u,r),yy(e,t,c)}catch(z){sf(e,t,z)}}function yy(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){py(e,t,r)},function(r){return sf(e,t,r)}):py(e,t,a)}function py(e,t,a){t.status="fulfilled",t.value=a,gy(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,my(e,a)))}function sf(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,gy(t),t=t.next;while(t!==r)}e.action=null}function gy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vy(e,t){return t}function by(e,t){if(Ce){var a=Je.formState;if(a!==null){e:{var r=ve;if(Ce){if(Ie){t:{for(var u=Ie,c=xa;u.nodeType!==8;){if(!c){u=null;break t}if(u=Sa(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ie=Sa(u.nextSibling),r=u.data==="F!";break e}}En(r)}r=!1}r&&(t=a[0])}}return a=Lt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vy,lastRenderedState:t},a.queue=r,a=Vy.bind(null,ve,r),r.dispatch=a,r=rf(!1),c=hf.bind(null,ve,!1,r.queue),r=Lt(),u={state:t,dispatch:null,action:e,pending:null},r.queue=u,a=r2.bind(null,ve,u,c,a),u.dispatch=a,r.memoizedState=e,[t,a,!1]}function xy(e){var t=dt();return _y(t,Xe,e)}function _y(e,t,a){if(t=nf(e,t,vy)[0],e=ou(nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=wi(t)}catch(h){throw h===cr?Ps:h}else r=t;t=dt();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(ve.flags|=2048,yr(9,{destroy:void 0},i2.bind(null,u,a),null)),[r,c,e]}function i2(e,t){e.action=t}function Sy(e){var t=dt(),a=Xe;if(a!==null)return _y(t,a,e);dt(),t=t.memoizedState,a=dt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function yr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=ve.updateQueue,t===null&&(t=su(),ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function wy(){return dt().memoizedState}function cu(e,t,a,r){var u=Lt();ve.flags|=e,u.memoizedState=yr(1|t,{destroy:void 0},a,r===void 0?null:r)}function fu(e,t,a,r){var u=dt();r=r===void 0?null:r;var c=u.memoizedState.inst;Xe!==null&&r!==null&&Wc(r,Xe.memoizedState.deps)?u.memoizedState=yr(t,c,a,r):(ve.flags|=e,u.memoizedState=yr(1|t,c,a,r))}function Ay(e,t){cu(8390656,8,e,t)}function uf(e,t){fu(2048,8,e,t)}function s2(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=su(),ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ty(e){var t=dt().memoizedState;return s2({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Cy(e,t){return fu(4,2,e,t)}function Ey(e,t){return fu(4,4,e,t)}function Oy(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 zy(e,t,a){a=a!=null?a.concat([e]):null,fu(4,4,Oy.bind(null,t,e),a)}function of(){}function ky(e,t){var a=dt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Wc(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Ny(e,t){var a=dt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Wc(t,r[1]))return r[0];if(r=e(),vl){ha(!0);try{e()}finally{ha(!1)}}return a.memoizedState=[r,t],r}function cf(e,t,a){return a===void 0||(an&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Mp(),ve.lanes|=e,Un|=e,a)}function My(e,t,a,r){return ta(a,t)?a:dr.current!==null?(e=cf(e,a,r),ta(e,t)||(bt=!0),e):(an&42)===0||(an&1073741824)!==0&&(Ae&261930)===0?(bt=!0,e.memoizedState=a):(e=Mp(),ve.lanes|=e,Un|=e,t)}function Dy(e,t,a,r,u){var c=X.p;X.p=c!==0&&8>c?c:8;var h=k.T,y={};k.T=y,hf(e,!1,t,a);try{var b=u(),z=k.S;if(z!==null&&z(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var V=a2(b,r);Ai(e,t,V,sa(e))}else Ai(e,t,r,sa(e))}catch(q){Ai(e,t,{then:function(){},status:"rejected",reason:q},sa())}finally{X.p=c,h!==null&&y.types!==null&&(h.types=y.types),k.T=h}}function u2(){}function ff(e,t,a,r){if(e.tag!==5)throw Error(s(476));var u=jy(e).queue;Dy(e,u,t,re,a===null?u2:function(){return Ry(e),a(r)})}function jy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:re},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ry(e){var t=jy(e);t.next===null&&(t=e.alternate.memoizedState),Ai(e,t.next.queue,{},sa())}function df(){return kt(qi)}function Uy(){return dt().memoizedState}function By(){return dt().memoizedState}function o2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=sa();e=kn(a);var r=Nn(t,e,a);r!==null&&(Jt(r,t,a),bi(r,t,a)),t={cache:Hc()},e.payload=t;return}t=t.return}}function c2(e,t,a){var r=sa();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},du(e)?Ly(t,a):(a=zc(e,t,a,r),a!==null&&(Jt(a,e,r),Hy(a,t,r)))}function Vy(e,t,a){var r=sa();Ai(e,t,a,r)}function Ai(e,t,a,r){var u={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(du(e))Ly(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,ta(y,h))return Xs(e,t,u,0),Je===null&&Qs(),!1}catch{}finally{}if(a=zc(e,t,u,r),a!==null)return Jt(a,e,r),Hy(a,t,r),!0}return!1}function hf(e,t,a,r){if(r={lane:2,revertLane:Qf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},du(e)){if(t)throw Error(s(479))}else t=zc(e,a,r,2),t!==null&&Jt(t,e,2)}function du(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Ly(e,t){hr=ru=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Hy(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qm(e,a)}}var Ti={readContext:kt,use:uu,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};Ti.useEffectEvent=rt;var qy={readContext:kt,use:uu,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Ay,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,cu(4194308,4,Oy.bind(null,t,e),a)},useLayoutEffect:function(e,t){return cu(4194308,4,e,t)},useInsertionEffect:function(e,t){cu(4,2,e,t)},useMemo:function(e,t){var a=Lt();t=t===void 0?null:t;var r=e();if(vl){ha(!0);try{e()}finally{ha(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Lt();if(a!==void 0){var u=a(t);if(vl){ha(!0);try{a(t)}finally{ha(!1)}}}else u=t;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=c2.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=rf(e);var t=e.queue,a=Vy.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:of,useDeferredValue:function(e,t){var a=Lt();return cf(a,e,t)},useTransition:function(){var e=rf(!1);return e=Dy.bind(null,ve,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=ve,u=Lt();if(Ce){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Je===null)throw Error(s(349));(Ae&127)!==0||uy(r,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,Ay(cy.bind(null,r,c,e),[e]),r.flags|=2048,yr(9,{destroy:void 0},oy.bind(null,r,c,a,t),null),a},useId:function(){var e=Lt(),t=Je.identifierPrefix;if(Ce){var a=qa,r=Ha;a=(r&~(1<<32-Et(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=iu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=n2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:df,useFormState:by,useActionState:by,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=hf.bind(null,ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:af,useCacheRefresh:function(){return Lt().memoizedState=o2.bind(null,ve)},useEffectEvent:function(e){var t=Lt(),a={impl:e};return t.memoizedState=a,function(){if((Be&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},mf={readContext:kt,use:uu,useCallback:ky,useContext:kt,useEffect:uf,useImperativeHandle:zy,useInsertionEffect:Cy,useLayoutEffect:Ey,useMemo:Ny,useReducer:ou,useRef:wy,useState:function(){return ou(nn)},useDebugValue:of,useDeferredValue:function(e,t){var a=dt();return My(a,Xe.memoizedState,e,t)},useTransition:function(){var e=ou(nn)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:wi(e),t]},useSyncExternalStore:sy,useId:Uy,useHostTransitionStatus:df,useFormState:xy,useActionState:xy,useOptimistic:function(e,t){var a=dt();return hy(a,Xe,e,t)},useMemoCache:af,useCacheRefresh:By};mf.useEffectEvent=Ty;var Zy={readContext:kt,use:uu,useCallback:ky,useContext:kt,useEffect:uf,useImperativeHandle:zy,useInsertionEffect:Cy,useLayoutEffect:Ey,useMemo:Ny,useReducer:lf,useRef:wy,useState:function(){return lf(nn)},useDebugValue:of,useDeferredValue:function(e,t){var a=dt();return Xe===null?cf(a,e,t):My(a,Xe.memoizedState,e,t)},useTransition:function(){var e=lf(nn)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:wi(e),t]},useSyncExternalStore:sy,useId:Uy,useHostTransitionStatus:df,useFormState:Sy,useActionState:Sy,useOptimistic:function(e,t){var a=dt();return Xe!==null?hy(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:af,useCacheRefresh:By};Zy.useEffectEvent=Ty;function yf(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:w({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var pf={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=sa(),u=kn(r);u.payload=t,a!=null&&(u.callback=a),t=Nn(e,u,r),t!==null&&(Jt(t,e,r),bi(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=sa(),u=kn(r);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Nn(e,u,r),t!==null&&(Jt(t,e,r),bi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=sa(),r=kn(a);r.tag=2,t!=null&&(r.callback=t),t=Nn(e,r,a),t!==null&&(Jt(t,e,a),bi(t,e,a))}};function Yy(e,t,a,r,u,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,h):t.prototype&&t.prototype.isPureReactComponent?!fi(a,r)||!fi(u,c):!0}function Gy(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&pf.enqueueReplaceState(t,t.state,null)}function bl(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}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 Qy(e){Gs(e)}function Xy(e){console.error(e)}function $y(e){Gs(e)}function hu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Ky(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function gf(e,t,a){return a=kn(a),a.tag=3,a.payload={element:null},a.callback=function(){hu(e,t)},a}function Jy(e){return e=kn(e),e.tag=3,e}function Fy(e,t,a,r){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=r.value;e.payload=function(){return u(c)},e.callback=function(){Ky(t,a,r)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ky(t,a,r),typeof u!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var y=r.stack;this.componentDidCatch(r.value,{componentStack:y!==null?y:""})})}function f2(e,t,a,r,u){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&sr(t,a,u,!0),a=na.current,a!==null){switch(a.tag){case 31:case 13:return _a===null?Tu():a.alternate===null&&it===0&&(it=3),a.flags&=-257,a.flags|=65536,a.lanes=u,r===eu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Zf(e,r,u)),!1;case 22:return a.flags|=65536,r===eu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Zf(e,r,u)),!1}throw Error(s(435,a.tag))}return Zf(e,r,u),Tu(),!1}if(Ce)return t=na.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,r!==Rc&&(e=Error(s(422),{cause:r}),mi(ga(e,a)))):(r!==Rc&&(t=Error(s(423),{cause:r}),mi(ga(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=ga(r,a),u=gf(e.stateNode,r,u),Xc(e,u),it!==4&&(it=2)),!1;var c=Error(s(520),{cause:r});if(c=ga(c,a),Di===null?Di=[c]:Di.push(c),it!==4&&(it=2),t===null)return!0;r=ga(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=gf(a.stateNode,r,e),Xc(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"&&(Bn===null||!Bn.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Jy(u),Fy(u,e,a,r),Xc(a,u),!1}a=a.return}while(a!==null);return!1}var vf=Error(s(461)),bt=!1;function Nt(e,t,a,r){t.child=e===null?ey(t,null,a,r):gl(t,e.child,a,r)}function Wy(e,t,a,r,u){a=a.render;var c=t.ref;if("ref"in r){var h={};for(var y in r)y!=="ref"&&(h[y]=r[y])}else h=r;return hl(t),r=Ic(e,t,a,h,c,u),y=Pc(),e!==null&&!bt?(ef(e,t,u),ln(e,t,u)):(Ce&&y&&Dc(t),t.flags|=1,Nt(e,t,r,u),t.child)}function Iy(e,t,a,r,u){if(e===null){var c=a.type;return typeof c=="function"&&!kc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Py(e,t,c,r,u)):(e=Ks(a.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Cf(e,u)){var h=c.memoizedProps;if(a=a.compare,a=a!==null?a:fi,a(h,r)&&e.ref===t.ref)return ln(e,t,u)}return t.flags|=1,e=Ia(c,r),e.ref=t.ref,e.return=t,t.child=e}function Py(e,t,a,r,u){if(e!==null){var c=e.memoizedProps;if(fi(c,r)&&e.ref===t.ref)if(bt=!1,t.pendingProps=r=c,Cf(e,u))(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,ln(e,t,u)}return bf(e,t,a,r,u)}function ep(e,t,a,r){var u=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~c}else r=0,t.child=null;return tp(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Is(t,c!==null?c.cachePool:null),c!==null?ny(t,c):Kc(),ly(t);else return r=t.lanes=536870912,tp(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(Is(t,c.cachePool),ny(t,c),Dn(),t.memoizedState=null):(e!==null&&Is(t,null),Kc(),Dn());return Nt(e,t,u,a),t.child}function Ci(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tp(e,t,a,r,u){var c=Zc();return c=c===null?null:{parent:gt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Is(t,null),Kc(),ly(t),e!==null&&sr(e,t,r,!0),t.childLanes=u,null}function mu(e,t){return t=pu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ap(e,t,a){return gl(t,e.child,null,a),e=mu(t,t.pendingProps),e.flags|=2,la(t),t.memoizedState=null,e}function d2(e,t,a){var r=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(r.mode==="hidden")return e=mu(t,r),t.lanes=536870912,Ci(null,e);if(Fc(t),(e=Ie)?(e=mg(e,xa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tn!==null?{id:Ha,overflow:qa}:null,retryLane:536870912,hydrationErrors:null},a=L0(e),a.return=t,t.child=a,zt=t,Ie=null)):e=null,e===null)throw En(t);return t.lanes=536870912,null}return mu(t,r)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Fc(t),u)if(t.flags&256)t.flags&=-257,t=ap(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(bt||sr(e,t,a,!1),u=(a&e.childLanes)!==0,bt||u){if(r=Je,r!==null&&(h=Xm(r,a),h!==0&&h!==c.retryLane))throw c.retryLane=h,ol(e,h),Jt(r,e,h),vf;Tu(),t=ap(e,t,a)}else e=c.treeContext,Ie=Sa(h.nextSibling),zt=t,Ce=!0,Cn=null,xa=!1,e!==null&&Z0(t,e),t=mu(t,r),t.flags|=4096;return t}return e=Ia(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yu(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 bf(e,t,a,r,u){return hl(t),a=Ic(e,t,a,r,void 0,u),r=Pc(),e!==null&&!bt?(ef(e,t,u),ln(e,t,u)):(Ce&&r&&Dc(t),t.flags|=1,Nt(e,t,a,u),t.child)}function np(e,t,a,r,u,c){return hl(t),t.updateQueue=null,a=iy(t,r,a,u),ry(e),r=Pc(),e!==null&&!bt?(ef(e,t,c),ln(e,t,c)):(Ce&&r&&Dc(t),t.flags|=1,Nt(e,t,a,c),t.child)}function lp(e,t,a,r,u){if(hl(t),t.stateNode===null){var c=nr,h=a.contextType;typeof h=="object"&&h!==null&&(c=kt(h)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=pf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},Gc(t),h=a.contextType,c.context=typeof h=="object"&&h!==null?kt(h):nr,c.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(yf(t,a,h,r),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&&pf.enqueueReplaceState(c,c.state,null),_i(t,r,c,u),xi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,b=bl(a,y);c.props=b;var z=c.context,V=a.contextType;h=nr,typeof V=="object"&&V!==null&&(h=kt(V));var q=a.getDerivedStateFromProps;V=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,V||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||z!==h)&&Gy(t,c,r,h),zn=!1;var M=t.memoizedState;c.state=M,_i(t,r,c,u),xi(),z=t.memoizedState,y||M!==z||zn?(typeof q=="function"&&(yf(t,a,q,r),z=t.memoizedState),(b=zn||Yy(t,a,b,r,M,z,h))?(V||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=r,t.memoizedState=z),c.props=r,c.state=z,c.context=h,r=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Qc(e,t),h=t.memoizedProps,V=bl(a,h),c.props=V,q=t.pendingProps,M=c.context,z=a.contextType,b=nr,typeof z=="object"&&z!==null&&(b=kt(z)),y=a.getDerivedStateFromProps,(z=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==q||M!==b)&&Gy(t,c,r,b),zn=!1,M=t.memoizedState,c.state=M,_i(t,r,c,u),xi();var D=t.memoizedState;h!==q||M!==D||zn||e!==null&&e.dependencies!==null&&Fs(e.dependencies)?(typeof y=="function"&&(yf(t,a,y,r),D=t.memoizedState),(V=zn||Yy(t,a,V,r,M,D,b)||e!==null&&e.dependencies!==null&&Fs(e.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,D,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,D,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=r,t.memoizedState=D),c.props=r,c.state=D,c.context=b,r=V):(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),r=!1)}return c=r,yu(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=gl(t,e.child,null,u),t.child=gl(t,null,a,u)):Nt(e,t,a,u),t.memoizedState=c.state,e=t.child):e=ln(e,t,u),e}function rp(e,t,a,r){return fl(),t.flags|=256,Nt(e,t,a,r),t.child}var xf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _f(e){return{baseLanes:e,cachePool:K0()}}function Sf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ia),e}function ip(e,t,a){var r=t.pendingProps,u=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),h&&(u=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(u?Mn(t):Dn(),(e=Ie)?(e=mg(e,xa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tn!==null?{id:Ha,overflow:qa}:null,retryLane:536870912,hydrationErrors:null},a=L0(e),a.return=t,t.child=a,zt=t,Ie=null)):e=null,e===null)throw En(t);return ld(e)?t.lanes=32:t.lanes=536870912,null}var y=r.children;return r=r.fallback,u?(Dn(),u=t.mode,y=pu({mode:"hidden",children:y},u),r=cl(r,u,a,null),y.return=t,r.return=t,y.sibling=r,t.child=y,r=t.child,r.memoizedState=_f(a),r.childLanes=Sf(e,h,a),t.memoizedState=xf,Ci(null,r)):(Mn(t),wf(t,y))}var b=e.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(c)t.flags&256?(Mn(t),t.flags&=-257,t=Af(e,t,a)):t.memoizedState!==null?(Dn(),t.child=e.child,t.flags|=128,t=null):(Dn(),y=r.fallback,u=t.mode,r=pu({mode:"visible",children:r.children},u),y=cl(y,u,a,null),y.flags|=2,r.return=t,y.return=t,r.sibling=y,t.child=r,gl(t,e.child,null,a),r=t.child,r.memoizedState=_f(a),r.childLanes=Sf(e,h,a),t.memoizedState=xf,t=Ci(null,r));else if(Mn(t),ld(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var z=h.dgst;h=z,r=Error(s(419)),r.stack="",r.digest=h,mi({value:r,source:null,stack:null}),t=Af(e,t,a)}else if(bt||sr(e,t,a,!1),h=(a&e.childLanes)!==0,bt||h){if(h=Je,h!==null&&(r=Xm(h,a),r!==0&&r!==b.retryLane))throw b.retryLane=r,ol(e,r),Jt(h,e,r),vf;nd(y)||Tu(),t=Af(e,t,a)}else nd(y)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Ie=Sa(y.nextSibling),zt=t,Ce=!0,Cn=null,xa=!1,e!==null&&Z0(t,e),t=wf(t,r.children),t.flags|=4096);return t}return u?(Dn(),y=r.fallback,u=t.mode,b=e.child,z=b.sibling,r=Ia(b,{mode:"hidden",children:r.children}),r.subtreeFlags=b.subtreeFlags&65011712,z!==null?y=Ia(z,y):(y=cl(y,u,a,null),y.flags|=2),y.return=t,r.return=t,r.sibling=y,t.child=r,Ci(null,r),r=t.child,y=e.child.memoizedState,y===null?y=_f(a):(u=y.cachePool,u!==null?(b=gt._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=K0(),y={baseLanes:y.baseLanes|a,cachePool:u}),r.memoizedState=y,r.childLanes=Sf(e,h,a),t.memoizedState=xf,Ci(e.child,r)):(Mn(t),a=e.child,e=a.sibling,a=Ia(a,{mode:"visible",children:r.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 wf(e,t){return t=pu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function pu(e,t){return e=aa(22,e,null,t),e.lanes=0,e}function Af(e,t,a){return gl(t,e.child,null,a),e=wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sp(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vc(e.return,t,a)}function Tf(e,t,a,r,u,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:u,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=r,h.tail=a,h.tailMode=u,h.treeForkCount=c)}function up(e,t,a){var r=t.pendingProps,u=r.revealOrder,c=r.tail;r=r.children;var h=ft.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,ze(ft,h),Nt(e,t,r,a),r=Ce?hi:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sp(e,a,t);else if(e.tag===19)sp(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&&lu(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Tf(t,!1,u,a,c,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&lu(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Tf(t,!0,a,null,c,r);break;case"together":Tf(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ln(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(sr(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=Ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Cf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fs(e)))}function h2(e,t,a){switch(t.tag){case 3:Hl(t,t.stateNode.containerInfo),On(t,gt,e.memoizedState.cache),fl();break;case 27:case 5:ql(t);break;case 4:Hl(t,t.stateNode.containerInfo);break;case 10:On(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fc(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Mn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?ip(e,t,a):(Mn(t),e=ln(e,t,a),e!==null?e.sibling:null);Mn(t);break;case 19:var u=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(sr(e,t,a,!1),r=(a&t.childLanes)!==0),u){if(r)return up(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ze(ft,ft.current),r)break;return null;case 22:return t.lanes=0,ep(e,t,a,t.pendingProps);case 24:On(t,gt,e.memoizedState.cache)}return ln(e,t,a)}function op(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)bt=!0;else{if(!Cf(e,a)&&(t.flags&128)===0)return bt=!1,h2(e,t,a);bt=(e.flags&131072)!==0}else bt=!1,Ce&&(t.flags&1048576)!==0&&q0(t,hi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=yl(t.elementType),t.type=e,typeof e=="function")kc(e)?(r=bl(e,r),t.tag=1,t=lp(null,t,e,r,a)):(t.tag=0,t=bf(null,t,e,r,a));else{if(e!=null){var u=e.$$typeof;if(u===P){t.tag=11,t=Wy(null,t,e,r,a);break e}else if(u===ae){t.tag=14,t=Iy(null,t,e,r,a);break e}}throw t=G(e)||e,Error(s(306,t,""))}}return t;case 0:return bf(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,u=bl(r,t.pendingProps),lp(e,t,r,u,a);case 3:e:{if(Hl(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var c=t.memoizedState;u=c.element,Qc(e,t),_i(t,r,null,a);var h=t.memoizedState;if(r=h.cache,On(t,gt,r),r!==c.cache&&Lc(t,[gt],a,!0),xi(),r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=rp(e,t,r,a);break e}else if(r!==u){u=ga(Error(s(424)),t),mi(u),t=rp(e,t,r,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(Ie=Sa(e.firstChild),zt=t,Ce=!0,Cn=null,xa=!0,a=ey(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(fl(),r===u){t=ln(e,t,a);break e}Nt(e,t,r,a)}t=t.child}return t;case 26:return yu(e,t),e===null?(a=xg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ce||(a=t.type,e=t.pendingProps,r=Mu(Ba.current).createElement(a),r[Ot]=t,r[Yt]=e,Mt(r,a,e),At(r),t.stateNode=r):t.memoizedState=xg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ql(t),e===null&&Ce&&(r=t.stateNode=gg(t.type,t.pendingProps,Ba.current),zt=t,xa=!0,u=Ie,qn(t.type)?(rd=u,Ie=Sa(r.firstChild)):Ie=u),Nt(e,t,t.pendingProps.children,a),yu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((u=r=Ie)&&(r=Y2(r,t.type,t.pendingProps,xa),r!==null?(t.stateNode=r,zt=t,Ie=Sa(r.firstChild),xa=!1,u=!0):u=!1),u||En(t)),ql(t),u=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,r=c.children,ed(u,c)?r=null:h!==null&&ed(u,h)&&(t.flags|=32),t.memoizedState!==null&&(u=Ic(e,t,l2,null,null,a),qi._currentValue=u),yu(e,t),Nt(e,t,r,a),t.child;case 6:return e===null&&Ce&&((e=a=Ie)&&(a=G2(a,t.pendingProps,xa),a!==null?(t.stateNode=a,zt=t,Ie=null,e=!0):e=!1),e||En(t)),null;case 13:return ip(e,t,a);case 4:return Hl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gl(t,null,r,a):Nt(e,t,r,a),t.child;case 11:return Wy(e,t,t.type,t.pendingProps,a);case 7:return Nt(e,t,t.pendingProps,a),t.child;case 8:return Nt(e,t,t.pendingProps.children,a),t.child;case 12:return Nt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,On(t,t.type,r.value),Nt(e,t,r.children,a),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,hl(t),u=kt(u),r=r(u),t.flags|=1,Nt(e,t,r,a),t.child;case 14:return Iy(e,t,t.type,t.pendingProps,a);case 15:return Py(e,t,t.type,t.pendingProps,a);case 19:return up(e,t,a);case 31:return d2(e,t,a);case 22:return ep(e,t,a,t.pendingProps);case 24:return hl(t),r=kt(gt),e===null?(u=Zc(),u===null&&(u=Je,c=Hc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:r,cache:u},Gc(t),On(t,gt,u)):((e.lanes&a)!==0&&(Qc(e,t),_i(t,null,null,a),xi()),u=e.memoizedState,c=t.memoizedState,u.parent!==r?(u={parent:r,cache:r},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),On(t,gt,r)):(r=c.cache,On(t,gt,r),r!==u.cache&&Lc(t,[gt],a,!0))),Nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function rn(e){e.flags|=4}function Ef(e,t,a,r,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(Up())e.flags|=8192;else throw pl=eu,Yc}else e.flags&=-16777217}function cp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tg(t))if(Up())e.flags|=8192;else throw pl=eu,Yc}function gu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ym():536870912,e.lanes|=t,br|=t)}function Ei(e,t){if(!Ce)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 r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function m2(e,t,a){var r=t.pendingProps;switch(jc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),tn(gt),Va(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ir(t)?rn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uc())),Pe(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(rn(t),c!==null?(Pe(t),cp(t,c)):(Pe(t),Ef(t,u,null,r,a))):c?c!==e.memoizedState?(rn(t),Pe(t),cp(t,c)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&rn(t),Pe(t),Ef(t,u,e,r,a)),null;case 27:if(Sn(t),a=Ba.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&rn(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Pe(t),null}e=ct.current,ir(t)?Y0(t):(e=gg(u,r,a),t.stateNode=e,rn(t))}return Pe(t),null;case 5:if(Sn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&rn(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Pe(t),null}if(c=ct.current,ir(t))Y0(t);else{var h=Mu(Ba.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 r.is=="string"?h.createElement("select",{is:r.is}):h.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?h.createElement(u,{is:r.is}):h.createElement(u)}}c[Ot]=t,c[Yt]=r;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(Mt(c,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&rn(t)}}return Pe(t),Ef(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&rn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=Ba.current,ir(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,u=zt,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[Ot]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||ig(e.nodeValue,a)),e||En(t,!0)}else e=Mu(e).createTextNode(r),e[Ot]=t,t.stateNode=e}return Pe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=ir(t),a!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Ot]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else a=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(la(t),t):(la(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Pe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ir(t),r!==null&&r.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[Ot]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),u=!1}else u=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(la(t),t):(la(t),null)}return la(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==u&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),gu(t,t.updateQueue),Pe(t),null);case 4:return Va(),e===null&&Jf(t.stateNode.containerInfo),Pe(t),null;case 10:return tn(t.type),Pe(t),null;case 19:if(Fe(ft),r=t.memoizedState,r===null)return Pe(t),null;if(u=(t.flags&128)!==0,c=r.rendering,c===null)if(u)Ei(r,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=lu(e),c!==null){for(t.flags|=128,Ei(r,!1),e=c.updateQueue,t.updateQueue=e,gu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)V0(a,e),a=a.sibling;return ze(ft,ft.current&1|2),Ce&&Pa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&N()>Su&&(t.flags|=128,u=!0,Ei(r,!1),t.lanes=4194304)}else{if(!u)if(e=lu(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,gu(t,e),Ei(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!Ce)return Pe(t),null}else 2*N()-r.renderingStartTime>Su&&a!==536870912&&(t.flags|=128,u=!0,Ei(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=N(),e.sibling=null,a=ft.current,ze(ft,u?a&1|2:a&1),Ce&&Pa(t,r.treeForkCount),e):(Pe(t),null);case 22:case 23:return la(t),Jc(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),a=t.updateQueue,a!==null&&gu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&Fe(ml),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),tn(gt),Pe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function y2(e,t){switch(jc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tn(gt),Va(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Sn(t),null;case 31:if(t.memoizedState!==null){if(la(t),t.alternate===null)throw Error(s(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(la(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(ft),null;case 4:return Va(),null;case 10:return tn(t.type),null;case 22:case 23:return la(t),Jc(),e!==null&&Fe(ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tn(gt),null;case 25:return null;default:return null}}function fp(e,t){switch(jc(t),t.tag){case 3:tn(gt),Va();break;case 26:case 27:case 5:Sn(t);break;case 4:Va();break;case 31:t.memoizedState!==null&&la(t);break;case 13:la(t);break;case 19:Fe(ft);break;case 10:tn(t.type);break;case 22:case 23:la(t),Jc(),e!==null&&Fe(ml);break;case 24:tn(gt)}}function Oi(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var u=r.next;a=u;do{if((a.tag&e)===e){r=void 0;var c=a.create,h=a.inst;r=c(),h.destroy=r}a=a.next}while(a!==u)}}catch(y){Ye(t,t.return,y)}}function jn(e,t,a){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var c=u.next;r=c;do{if((r.tag&e)===e){var h=r.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,u=t;var b=a,z=y;try{z()}catch(V){Ye(u,b,V)}}}r=r.next}while(r!==c)}}catch(V){Ye(t,t.return,V)}}function dp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ay(t,a)}catch(r){Ye(e,e.return,r)}}}function hp(e,t,a){a.props=bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Ye(e,t,r)}}function zi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(u){Ye(e,t,u)}}function Za(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(u){Ye(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){Ye(e,t,u)}else a.current=null}function mp(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(u){Ye(e,e.return,u)}}function Of(e,t,a){try{var r=e.stateNode;B2(r,e.type,a,t),r[Yt]=t}catch(u){Ye(e,e.return,u)}}function yp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qn(e.type)||e.tag===4}function zf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yp(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 kf(e,t,a){var r=e.tag;if(r===5||r===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=Fa));else if(r!==4&&(r===27&&qn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(kf(e,t,a),e=e.sibling;e!==null;)kf(e,t,a),e=e.sibling}function vu(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&qn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(vu(e,t,a),e=e.sibling;e!==null;)vu(e,t,a),e=e.sibling}function pp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Mt(t,r,a),t[Ot]=e,t[Yt]=a}catch(c){Ye(e,e.return,c)}}var sn=!1,xt=!1,Nf=!1,gp=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function p2(e,t){if(e=e.containerInfo,If=Lu,e=z0(e),wc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var u=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var h=0,y=-1,b=-1,z=0,V=0,q=e,M=null;t:for(;;){for(var D;q!==a||u!==0&&q.nodeType!==3||(y=h+u),q!==c||r!==0&&q.nodeType!==3||(b=h+r),q.nodeType===3&&(h+=q.nodeValue.length),(D=q.firstChild)!==null;)M=q,q=D;for(;;){if(q===e)break t;if(M===a&&++z===u&&(y=h),M===c&&++V===r&&(b=h),(D=q.nextSibling)!==null)break;q=M,M=q.parentNode}q=D}a=y===-1||b===-1?null:{start:y,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(Pf={focusedElem:e,selectionRange:a},Lu=!1,Tt=t;Tt!==null;)if(t=Tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Tt=e;else for(;Tt!==null;){switch(t=Tt,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,r=a.stateNode;try{var ie=bl(a.type,u);e=r.getSnapshotBeforeUpdate(ie,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(de){Ye(a,a.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ad(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ad(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Tt=e;break}Tt=t.return}}function vp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:on(e,a),r&4&&Oi(5,a);break;case 1:if(on(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Ye(a,a.return,h)}else{var u=bl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ye(a,a.return,h)}}r&64&&dp(a),r&512&&zi(a,a.return);break;case 3:if(on(e,a),r&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{ay(e,t)}catch(h){Ye(a,a.return,h)}}break;case 27:t===null&&r&4&&pp(a);case 26:case 5:on(e,a),t===null&&r&4&&mp(a),r&512&&zi(a,a.return);break;case 12:on(e,a);break;case 31:on(e,a),r&4&&_p(e,a);break;case 13:on(e,a),r&4&&Sp(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=T2.bind(null,a),Q2(e,a))));break;case 22:if(r=a.memoizedState!==null||sn,!r){t=t!==null&&t.memoizedState!==null||xt,u=sn;var c=xt;sn=r,(xt=t)&&!c?cn(e,a,(a.subtreeFlags&8772)!==0):on(e,a),sn=u,xt=c}break;case 30:break;default:on(e,a)}}function bp(e){var t=e.alternate;t!==null&&(e.alternate=null,bp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ic(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 tt=null,Qt=!1;function un(e,t,a){for(a=a.child;a!==null;)xp(e,t,a),a=a.sibling}function xp(e,t,a){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(pt,a)}catch{}switch(a.tag){case 26:xt||Za(a,t),un(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:xt||Za(a,t);var r=tt,u=Qt;qn(a.type)&&(tt=a.stateNode,Qt=!1),un(e,t,a),Vi(a.stateNode),tt=r,Qt=u;break;case 5:xt||Za(a,t);case 6:if(r=tt,u=Qt,tt=null,un(e,t,a),tt=r,Qt=u,tt!==null)if(Qt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(a.stateNode)}catch(c){Ye(a,t,c)}else try{tt.removeChild(a.stateNode)}catch(c){Ye(a,t,c)}break;case 18:tt!==null&&(Qt?(e=tt,dg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Er(e)):dg(tt,a.stateNode));break;case 4:r=tt,u=Qt,tt=a.stateNode.containerInfo,Qt=!0,un(e,t,a),tt=r,Qt=u;break;case 0:case 11:case 14:case 15:jn(2,a,t),xt||jn(4,a,t),un(e,t,a);break;case 1:xt||(Za(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&hp(a,t,r)),un(e,t,a);break;case 21:un(e,t,a);break;case 22:xt=(r=xt)||a.memoizedState!==null,un(e,t,a),xt=r;break;default:un(e,t,a)}}function _p(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Er(e)}catch(a){Ye(t,t.return,a)}}}function Sp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Er(e)}catch(a){Ye(t,t.return,a)}}function g2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gp),t;default:throw Error(s(435,e.tag))}}function bu(e,t){var a=g2(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var u=C2.bind(null,e,r);r.then(u,u)}})}function Xt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var u=a[r],c=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(qn(y.type)){tt=y.stateNode,Qt=!1;break e}break;case 5:tt=y.stateNode,Qt=!1;break e;case 3:case 4:tt=y.stateNode.containerInfo,Qt=!0;break e}y=y.return}if(tt===null)throw Error(s(160));xp(c,h,u),tt=null,Qt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wp(t,e),t=t.sibling}var Oa=null;function wp(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),$t(e),r&4&&(jn(3,e,e.return),Oi(3,e),jn(5,e,e.return));break;case 1:Xt(t,e),$t(e),r&512&&(xt||a===null||Za(a,a.return)),r&64&&sn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var u=Oa;if(Xt(t,e),$t(e),r&512&&(xt||a===null||Za(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ai]||c[Ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(r),u.head.insertBefore(c,u.querySelector("head > title"))),Mt(c,r,a),c[Ot]=e,At(c),r=c;break e;case"link":var h=wg("link","href",u).get(r+(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(r),Mt(c,r,a),u.head.appendChild(c);break;case"meta":if(h=wg("meta","content",u).get(r+(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(r),Mt(c,r,a),u.head.appendChild(c);break;default:throw Error(s(468,r))}c[Ot]=e,At(c),r=c}e.stateNode=r}else Ag(u,e.type,e.stateNode);else e.stateNode=Sg(u,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?Ag(u,e.type,e.stateNode):Sg(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Of(e,e.memoizedProps,a.memoizedProps)}break;case 27:Xt(t,e),$t(e),r&512&&(xt||a===null||Za(a,a.return)),a!==null&&r&4&&Of(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Xt(t,e),$t(e),r&512&&(xt||a===null||Za(a,a.return)),e.flags&32){u=e.stateNode;try{Fl(u,"")}catch(ie){Ye(e,e.return,ie)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,Of(e,u,a!==null?a.memoizedProps:u)),r&1024&&(Nf=!0);break;case 6:if(Xt(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(ie){Ye(e,e.return,ie)}}break;case 3:if(Ru=null,u=Oa,Oa=Du(t.containerInfo),Xt(t,e),Oa=u,$t(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Er(t.containerInfo)}catch(ie){Ye(e,e.return,ie)}Nf&&(Nf=!1,Ap(e));break;case 4:r=Oa,Oa=Du(e.stateNode.containerInfo),Xt(t,e),$t(e),Oa=r;break;case 12:Xt(t,e),$t(e);break;case 31:Xt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bu(e,r)));break;case 13:Xt(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(_u=N()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bu(e,r)));break;case 22:u=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,z=sn,V=xt;if(sn=z||u,xt=V||b,Xt(t,e),xt=V,sn=z,$t(e),r&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||b||sn||xt||xl(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 q=b.memoizedProps.style,M=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(ie){Ye(b,b.return,ie)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(ie){Ye(b,b.return,ie)}}}else if(t.tag===18){if(a===null){b=t;try{var D=b.stateNode;u?hg(D,!0):hg(b.stateNode,!1)}catch(ie){Ye(b,b.return,ie)}}}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}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,bu(e,a))));break;case 19:Xt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bu(e,r)));break;case 30:break;case 21:break;default:Xt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(yp(r)){a=r;break}r=r.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,c=zf(e);vu(e,c,u);break;case 5:var h=a.stateNode;a.flags&32&&(Fl(h,""),a.flags&=-33);var y=zf(e);vu(e,y,h);break;case 3:case 4:var b=a.stateNode.containerInfo,z=zf(e);kf(e,z,b);break;default:throw Error(s(161))}}catch(V){Ye(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ap(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ap(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function on(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vp(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jn(4,t,t.return),xl(t);break;case 1:Za(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&hp(t,t.return,a),xl(t);break;case 27:Vi(t.stateNode);case 26:case 5:Za(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function cn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,u=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:cn(u,c,a),Oi(4,c);break;case 1:if(cn(u,c,a),r=c,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Ye(r,r.return,z)}if(r=c,u=r.updateQueue,u!==null){var y=r.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)ty(b[u],y)}catch(z){Ye(r,r.return,z)}}a&&h&64&&dp(c),zi(c,c.return);break;case 27:pp(c);case 26:case 5:cn(u,c,a),a&&r===null&&h&4&&mp(c),zi(c,c.return);break;case 12:cn(u,c,a);break;case 31:cn(u,c,a),a&&h&4&&_p(u,c);break;case 13:cn(u,c,a),a&&h&4&&Sp(u,c);break;case 22:c.memoizedState===null&&cn(u,c,a),zi(c,c.return);break;case 30:break;default:cn(u,c,a)}t=t.sibling}}function Mf(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&&yi(a))}function Df(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yi(e))}function za(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tp(e,t,a,r),t=t.sibling}function Tp(e,t,a,r){var u=t.flags;switch(t.tag){case 0:case 11:case 15:za(e,t,a,r),u&2048&&Oi(9,t);break;case 1:za(e,t,a,r);break;case 3:za(e,t,a,r),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yi(e)));break;case 12:if(u&2048){za(e,t,a,r),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){Ye(t,t.return,b)}}else za(e,t,a,r);break;case 31:za(e,t,a,r);break;case 13:za(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?za(e,t,a,r):ki(e,t):c._visibility&2?za(e,t,a,r):(c._visibility|=2,pr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Mf(h,t);break;case 24:za(e,t,a,r),u&2048&&Df(t.alternate,t);break;default:za(e,t,a,r)}}function pr(e,t,a,r,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,y=a,b=r,z=h.flags;switch(h.tag){case 0:case 11:case 15:pr(c,h,y,b,u),Oi(8,h);break;case 23:break;case 22:var V=h.stateNode;h.memoizedState!==null?V._visibility&2?pr(c,h,y,b,u):ki(c,h):(V._visibility|=2,pr(c,h,y,b,u)),u&&z&2048&&Mf(h.alternate,h);break;case 24:pr(c,h,y,b,u),u&&z&2048&&Df(h.alternate,h);break;default:pr(c,h,y,b,u)}t=t.sibling}}function ki(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,u=r.flags;switch(r.tag){case 22:ki(a,r),u&2048&&Mf(r.alternate,r);break;case 24:ki(a,r),u&2048&&Df(r.alternate,r);break;default:ki(a,r)}t=t.sibling}}var Ni=8192;function gr(e,t,a){if(e.subtreeFlags&Ni)for(e=e.child;e!==null;)Cp(e,t,a),e=e.sibling}function Cp(e,t,a){switch(e.tag){case 26:gr(e,t,a),e.flags&Ni&&e.memoizedState!==null&&nw(a,Oa,e.memoizedState,e.memoizedProps);break;case 5:gr(e,t,a);break;case 3:case 4:var r=Oa;Oa=Du(e.stateNode.containerInfo),gr(e,t,a),Oa=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ni,Ni=16777216,gr(e,t,a),Ni=r):gr(e,t,a));break;default:gr(e,t,a)}}function Ep(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 Mi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Tt=r,zp(r,e)}Ep(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Op(e),e=e.sibling}function Op(e){switch(e.tag){case 0:case 11:case 15:Mi(e),e.flags&2048&&jn(9,e,e.return);break;case 3:Mi(e);break;case 12:Mi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xu(e)):Mi(e);break;default:Mi(e)}}function xu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Tt=r,zp(r,e)}Ep(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jn(8,t,t.return),xu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,xu(t));break;default:xu(t)}e=e.sibling}}function zp(e,t){for(;Tt!==null;){var a=Tt;switch(a.tag){case 0:case 11:case 15:jn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:yi(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Tt=r;else e:for(a=e;Tt!==null;){r=Tt;var u=r.sibling,c=r.return;if(bp(r),r===a){Tt=null;break e}if(u!==null){u.return=c,Tt=u;break e}Tt=c}}}var v2={getCacheForType:function(e){var t=kt(gt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return kt(gt).controller.signal}},b2=typeof WeakMap=="function"?WeakMap:Map,Be=0,Je=null,Se=null,Ae=0,Ze=0,ra=null,Rn=!1,vr=!1,jf=!1,fn=0,it=0,Un=0,_l=0,Rf=0,ia=0,br=0,Di=null,Kt=null,Uf=!1,_u=0,kp=0,Su=1/0,wu=null,Bn=null,wt=0,Vn=null,xr=null,dn=0,Bf=0,Vf=null,Np=null,ji=0,Lf=null;function sa(){return(Be&2)!==0&&Ae!==0?Ae&-Ae:k.T!==null?Qf():$m()}function Mp(){if(ia===0)if((Ae&536870912)===0||Ce){var e=Ns;Ns<<=1,(Ns&3932160)===0&&(Ns=262144),ia=e}else ia=536870912;return e=na.current,e!==null&&(e.flags|=32),ia}function Jt(e,t,a){(e===Je&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(_r(e,0),Ln(e,Ae,ia,!1)),ti(e,a),((Be&2)===0||e!==Je)&&(e===Je&&((Be&2)===0&&(_l|=a),it===4&&Ln(e,Ae,ia,!1)),Ya(e))}function Dp(e,t,a){if((Be&6)!==0)throw Error(s(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ei(e,t),u=r?S2(e,t):qf(e,t,!0),c=r;do{if(u===0){vr&&!r&&Ln(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!x2(a)){u=qf(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=Di;var b=y.current.memoizedState.isDehydrated;if(b&&(_r(y,h).flags|=256),h=qf(y,h,!1),h!==2){if(jf&&!b){y.errorRecoveryDisabledLanes|=c,_l|=c,u=4;break e}c=Kt,Kt=u,c!==null&&(Kt===null?Kt=c:Kt.push.apply(Kt,c))}u=h}if(c=!1,u!==2)continue}}if(u===1){_r(e,0),Ln(e,t,0,!0);break}e:{switch(r=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ln(r,t,ia,!Rn);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=_u+300-N(),10<u)){if(Ln(r,t,ia,!Rn),Ds(r,0,!0)!==0)break e;dn=t,r.timeoutHandle=cg(jp.bind(null,r,a,Kt,wu,Uf,t,ia,_l,br,Rn,c,"Throttled",-0,0),u);break e}jp(r,a,Kt,wu,Uf,t,ia,_l,br,Rn,c,null,-0,0)}}break}while(!0);Ya(e)}function jp(e,t,a,r,u,c,h,y,b,z,V,q,M,D){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fa},Cp(t,c,q);var ie=(c&62914560)===c?_u-N():(c&4194048)===c?kp-N():0;if(ie=lw(q,ie),ie!==null){dn=c,e.cancelPendingCommit=ie(Zp.bind(null,e,t,c,a,r,u,h,y,b,V,q,null,M,D)),Ln(e,c,h,!z);return}}Zp(e,t,c,a,r,u,h,y,b)}function x2(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 r=0;r<a.length;r++){var u=a[r],c=u.getSnapshot;u=u.value;try{if(!ta(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 Ln(e,t,a,r){t&=~Rf,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var u=t;0<u;){var c=31-Et(u),h=1<<c;r[c]=-1,u&=~h}a!==0&&Gm(e,a,t)}function Au(){return(Be&6)===0?(Ri(0),!1):!0}function Hf(){if(Se!==null){if(Ze===0)var e=Se.return;else e=Se,en=dl=null,tf(e),fr=null,gi=0,e=Se;for(;e!==null;)fp(e.alternate,e),e=e.return;Se=null}}function _r(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,H2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dn=0,Hf(),Je=e,Se=a=Ia(e.current,null),Ae=t,Ze=0,ra=null,Rn=!1,vr=ei(e,t),jf=!1,br=ia=Rf=_l=Un=it=0,Kt=Di=null,Uf=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var u=31-Et(r),c=1<<u;t|=e[u],r&=~c}return fn=t,Qs(),a}function Rp(e,t){ve=null,k.H=Ti,t===cr||t===Ps?(t=W0(),Ze=3):t===Yc?(t=W0(),Ze=4):Ze=t===vf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ra=t,Se===null&&(it=1,hu(e,ga(t,e.current)))}function Up(){var e=na.current;return e===null?!0:(Ae&4194048)===Ae?_a===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===_a:!1}function Bp(){var e=k.H;return k.H=Ti,e===null?Ti:e}function Vp(){var e=k.A;return k.A=v2,e}function Tu(){it=4,Rn||(Ae&4194048)!==Ae&&na.current!==null||(vr=!0),(Un&134217727)===0&&(_l&134217727)===0||Je===null||Ln(Je,Ae,ia,!1)}function qf(e,t,a){var r=Be;Be|=2;var u=Bp(),c=Vp();(Je!==e||Ae!==t)&&(wu=null,_r(e,t)),t=!1;var h=it;e:do try{if(Ze!==0&&Se!==null){var y=Se,b=ra;switch(Ze){case 8:Hf(),h=6;break e;case 3:case 2:case 9:case 6:na.current===null&&(t=!0);var z=Ze;if(Ze=0,ra=null,Sr(e,y,b,z),a&&vr){h=0;break e}break;default:z=Ze,Ze=0,ra=null,Sr(e,y,b,z)}}_2(),h=it;break}catch(V){Rp(e,V)}while(!0);return t&&e.shellSuspendCounter++,en=dl=null,Be=r,k.H=u,k.A=c,Se===null&&(Je=null,Ae=0,Qs()),h}function _2(){for(;Se!==null;)Lp(Se)}function S2(e,t){var a=Be;Be|=2;var r=Bp(),u=Vp();Je!==e||Ae!==t?(wu=null,Su=N()+500,_r(e,t)):vr=ei(e,t);e:do try{if(Ze!==0&&Se!==null){t=Se;var c=ra;t:switch(Ze){case 1:Ze=0,ra=null,Sr(e,t,c,1);break;case 2:case 9:if(J0(c)){Ze=0,ra=null,Hp(t);break}t=function(){Ze!==2&&Ze!==9||Je!==e||(Ze=7),Ya(e)},c.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:J0(c)?(Ze=0,ra=null,Hp(t)):(Ze=0,ra=null,Sr(e,t,c,7));break;case 5:var h=null;switch(Se.tag){case 26:h=Se.memoizedState;case 5:case 27:var y=Se;if(h?Tg(h):y.stateNode.complete){Ze=0,ra=null;var b=y.sibling;if(b!==null)Se=b;else{var z=y.return;z!==null?(Se=z,Cu(z)):Se=null}break t}}Ze=0,ra=null,Sr(e,t,c,5);break;case 6:Ze=0,ra=null,Sr(e,t,c,6);break;case 8:Hf(),it=6;break e;default:throw Error(s(462))}}w2();break}catch(V){Rp(e,V)}while(!0);return en=dl=null,k.H=r,k.A=u,Be=a,Se!==null?0:(Je=null,Ae=0,Qs(),it)}function w2(){for(;Se!==null&&!x();)Lp(Se)}function Lp(e){var t=op(e.alternate,e,fn);e.memoizedProps=e.pendingProps,t===null?Cu(e):Se=t}function Hp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=np(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=np(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:tf(t);default:fp(a,t),t=Se=V0(t,fn),t=op(a,t,fn)}e.memoizedProps=e.pendingProps,t===null?Cu(e):Se=t}function Sr(e,t,a,r){en=dl=null,tf(t),fr=null,gi=0;var u=t.return;try{if(f2(e,u,t,a,Ae)){it=1,hu(e,ga(a,e.current)),Se=null;return}}catch(c){if(u!==null)throw Se=u,c;it=1,hu(e,ga(a,e.current)),Se=null;return}t.flags&32768?(Ce||r===1?e=!0:vr||(Ae&536870912)!==0?e=!1:(Rn=e=!0,(r===2||r===9||r===3||r===6)&&(r=na.current,r!==null&&r.tag===13&&(r.flags|=16384))),qp(t,e)):Cu(t)}function Cu(e){var t=e;do{if((t.flags&32768)!==0){qp(t,Rn);return}e=t.return;var a=m2(t.alternate,t,fn);if(a!==null){Se=a;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);it===0&&(it=5)}function qp(e,t){do{var a=y2(e.alternate,e);if(a!==null){a.flags&=32767,Se=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=a}while(e!==null);it=6,Se=null}function Zp(e,t,a,r,u,c,h,y,b){e.cancelPendingCommit=null;do Eu();while(wt!==0);if((Be&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Oc,aS(e,a,c,h,y,b),e===Je&&(Se=Je=null,Ae=0),xr=t,Vn=e,dn=a,Bf=c,Vf=u,Np=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,E2(se,function(){return $p(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=k.T,k.T=null,u=X.p,X.p=2,h=Be,Be|=4;try{p2(e,t,a)}finally{Be=h,X.p=u,k.T=r}}wt=1,Yp(),Gp(),Qp()}}function Yp(){if(wt===1){wt=0;var e=Vn,t=xr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var r=X.p;X.p=2;var u=Be;Be|=4;try{wp(t,e);var c=Pf,h=z0(e.containerInfo),y=c.focusedElem,b=c.selectionRange;if(h!==y&&y&&y.ownerDocument&&O0(y.ownerDocument.documentElement,y)){if(b!==null&&wc(y)){var z=b.start,V=b.end;if(V===void 0&&(V=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(V,y.value.length);else{var q=y.ownerDocument||document,M=q&&q.defaultView||window;if(M.getSelection){var D=M.getSelection(),ie=y.textContent.length,de=Math.min(b.start,ie),Ke=b.end===void 0?de:Math.min(b.end,ie);!D.extend&&de>Ke&&(h=Ke,Ke=de,de=h);var C=E0(y,de),S=E0(y,Ke);if(C&&S&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==S.node||D.focusOffset!==S.offset)){var O=q.createRange();O.setStart(C.node,C.offset),D.removeAllRanges(),de>Ke?(D.addRange(O),D.extend(S.node,S.offset)):(O.setEnd(S.node,S.offset),D.addRange(O))}}}}for(q=[],D=y;D=D.parentNode;)D.nodeType===1&&q.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var H=q[y];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Lu=!!If,Pf=If=null}finally{Be=u,X.p=r,k.T=a}}e.current=t,wt=2}}function Gp(){if(wt===2){wt=0;var e=Vn,t=xr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var r=X.p;X.p=2;var u=Be;Be|=4;try{vp(e,t.alternate,t)}finally{Be=u,X.p=r,k.T=a}}wt=3}}function Qp(){if(wt===4||wt===3){wt=0,E();var e=Vn,t=xr,a=dn,r=Np;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,xr=Vn=null,Xp(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Bn=null),lc(a),t=t.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(pt,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=k.T,u=X.p,X.p=2,k.T=null;try{for(var c=e.onRecoverableError,h=0;h<r.length;h++){var y=r[h];c(y.value,{componentStack:y.stack})}}finally{k.T=t,X.p=u}}(dn&3)!==0&&Eu(),Ya(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Lf?ji++:(ji=0,Lf=e):ji=0,Ri(0)}}function Xp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yi(t)))}function Eu(){return Yp(),Gp(),Qp(),$p()}function $p(){if(wt!==5)return!1;var e=Vn,t=Bf;Bf=0;var a=lc(dn),r=k.T,u=X.p;try{X.p=32>a?32:a,k.T=null,a=Vf,Vf=null;var c=Vn,h=dn;if(wt=0,xr=Vn=null,dn=0,(Be&6)!==0)throw Error(s(331));var y=Be;if(Be|=4,Op(c.current),Tp(c,c.current,h,a),Be=y,Ri(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(pt,c)}catch{}return!0}finally{X.p=u,k.T=r,Xp(e,t)}}function Kp(e,t,a){t=ga(a,t),t=gf(e.stateNode,t,2),e=Nn(e,t,2),e!==null&&(ti(e,2),Ya(e))}function Ye(e,t,a){if(e.tag===3)Kp(e,e,a);else for(;t!==null;){if(t.tag===3){Kp(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bn===null||!Bn.has(r))){e=ga(a,e),a=Jy(2),r=Nn(t,a,2),r!==null&&(Fy(a,r,t,e),ti(r,2),Ya(r));break}}t=t.return}}function Zf(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new b2;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(a)||(jf=!0,u.add(a),e=A2.bind(null,e,t,a),t.then(e,e))}function A2(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Je===e&&(Ae&a)===a&&(it===4||it===3&&(Ae&62914560)===Ae&&300>N()-_u?(Be&2)===0&&_r(e,0):Rf|=a,br===Ae&&(br=0)),Ya(e)}function Jp(e,t){t===0&&(t=Ym()),e=ol(e,t),e!==null&&(ti(e,t),Ya(e))}function T2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Jp(e,a)}function C2(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Jp(e,a)}function E2(e,t){return zs(e,t)}var Ou=null,wr=null,Yf=!1,zu=!1,Gf=!1,Hn=0;function Ya(e){e!==wr&&e.next===null&&(wr===null?Ou=wr=e:wr=wr.next=e),zu=!0,Yf||(Yf=!0,z2())}function Ri(e,t){if(!Gf&&zu){Gf=!0;do for(var a=!1,r=Ou;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var c=0;else{var h=r.suspendedLanes,y=r.pingedLanes;c=(1<<31-Et(42|e)+1)-1,c&=u&~(h&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Pp(r,c))}else c=Ae,c=Ds(r,r===Je?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||ei(r,c)||(a=!0,Pp(r,c));r=r.next}while(a);Gf=!1}}function O2(){Fp()}function Fp(){zu=Yf=!1;var e=0;Hn!==0&&L2()&&(e=Hn);for(var t=N(),a=null,r=Ou;r!==null;){var u=r.next,c=Wp(r,t);c===0?(r.next=null,a===null?Ou=u:a.next=u,u===null&&(wr=a)):(a=r,(e!==0||(c&3)!==0)&&(zu=!0)),r=u}wt!==0&&wt!==5||Ri(e),Hn!==0&&(Hn=0)}function Wp(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Et(c),y=1<<h,b=u[h];b===-1?((y&a)===0||(y&r)!==0)&&(u[h]=tS(y,t)):b<=t&&(e.expiredLanes|=y),c&=~y}if(t=Je,a=Ae,a=Ds(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Yl(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ei(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Yl(r),lc(a)){case 2:case 8:a=F;break;case 32:a=se;break;case 268435456:a=Ne;break;default:a=se}return r=Ip.bind(null,e),a=zs(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Yl(r),e.callbackPriority=2,e.callbackNode=null,2}function Ip(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Eu()&&e.callbackNode!==a)return null;var r=Ae;return r=Ds(e,e===Je?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Dp(e,r,t),Wp(e,N()),e.callbackNode!=null&&e.callbackNode===a?Ip.bind(null,e):null)}function Pp(e,t){if(Eu())return null;Dp(e,t,!0)}function z2(){q2(function(){(Be&6)!==0?zs(J,O2):Fp()})}function Qf(){if(Hn===0){var e=ur;e===0&&(e=nl,nl<<=1,(nl&261888)===0&&(nl=256)),Hn=e}return Hn}function eg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bs(""+e)}function tg(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 k2(e,t,a,r,u){if(t==="submit"&&a&&a.stateNode===u){var c=eg((u[Yt]||null).action),h=r.submitter;h&&(t=(t=h[Yt]||null)?eg(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var y=new qs("action","action",null,r,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Hn!==0){var b=h?tg(u,h):new FormData(u);ff(a,{pending:!0,data:b,method:u.method,action:c},null,b)}}else typeof c=="function"&&(y.preventDefault(),b=h?tg(u,h):new FormData(u),ff(a,{pending:!0,data:b,method:u.method,action:c},c,b))},currentTarget:u}]})}}for(var Xf=0;Xf<Ec.length;Xf++){var $f=Ec[Xf],N2=$f.toLowerCase(),M2=$f[0].toUpperCase()+$f.slice(1);Ea(N2,"on"+M2)}Ea(M0,"onAnimationEnd"),Ea(D0,"onAnimationIteration"),Ea(j0,"onAnimationStart"),Ea("dblclick","onDoubleClick"),Ea("focusin","onFocus"),Ea("focusout","onBlur"),Ea(KS,"onTransitionRun"),Ea(JS,"onTransitionStart"),Ea(FS,"onTransitionCancel"),Ea(R0,"onTransitionEnd"),Kl("onMouseEnter",["mouseout","mouseover"]),Kl("onMouseLeave",["mouseout","mouseover"]),Kl("onPointerEnter",["pointerout","pointerover"]),Kl("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="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(" "),D2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui));function ag(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],u=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var h=r.length-1;0<=h;h--){var y=r[h],b=y.instance,z=y.currentTarget;if(y=y.listener,b!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=z;try{c(u)}catch(V){Gs(V)}u.currentTarget=null,c=b}else for(h=0;h<r.length;h++){if(y=r[h],b=y.instance,z=y.currentTarget,y=y.listener,b!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=z;try{c(u)}catch(V){Gs(V)}u.currentTarget=null,c=b}}}}function we(e,t){var a=t[rc];a===void 0&&(a=t[rc]=new Set);var r=e+"__bubble";a.has(r)||(ng(t,e,2,!1),a.add(r))}function Kf(e,t,a){var r=0;t&&(r|=4),ng(a,e,r,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function Jf(e){if(!e[ku]){e[ku]=!0,Fm.forEach(function(a){a!=="selectionchange"&&(D2.has(a)||Kf(a,!1,e),Kf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,Kf("selectionchange",!1,t))}}function ng(e,t,a,r){switch(Mg(t)){case 2:var u=sw;break;case 8:u=uw;break;default:u=cd}a=u.bind(null,t,a,e),u=void 0,!mc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?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 Ff(e,t,a,r,u){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var h=r.tag;if(h===3||h===4){var y=r.stateNode.containerInfo;if(y===u)break;if(h===4)for(h=r.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=Ql(y),h===null)return;if(b=h.tag,b===5||b===6||b===26||b===27){r=c=h;continue e}y=y.parentNode}}r=r.return}u0(function(){var z=c,V=dc(a),q=[];e:{var M=U0.get(e);if(M!==void 0){var D=qs,ie=e;switch(e){case"keypress":if(Ls(a)===0)break e;case"keydown":case"keyup":D=CS;break;case"focusin":ie="focus",D=vc;break;case"focusout":ie="blur",D=vc;break;case"beforeblur":case"afterblur":D=vc;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":D=f0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=mS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=zS;break;case M0:case D0:case j0:D=gS;break;case R0:D=NS;break;case"scroll":case"scrollend":D=dS;break;case"wheel":D=DS;break;case"copy":case"cut":case"paste":D=bS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=h0;break;case"toggle":case"beforetoggle":D=RS}var de=(t&4)!==0,Ke=!de&&(e==="scroll"||e==="scrollend"),C=de?M!==null?M+"Capture":null:M;de=[];for(var S=z,O;S!==null;){var H=S;if(O=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||O===null||C===null||(H=li(S,C),H!=null&&de.push(Bi(S,H,O))),Ke)break;S=S.return}0<de.length&&(M=new D(M,ie,null,a,V),q.push({event:M,listeners:de}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",M&&a!==fc&&(ie=a.relatedTarget||a.fromElement)&&(Ql(ie)||ie[Gl]))break e;if((D||M)&&(M=V.window===V?V:(M=V.ownerDocument)?M.defaultView||M.parentWindow:window,D?(ie=a.relatedTarget||a.toElement,D=z,ie=ie?Ql(ie):null,ie!==null&&(Ke=f(ie),de=ie.tag,ie!==Ke||de!==5&&de!==27&&de!==6)&&(ie=null)):(D=null,ie=z),D!==ie)){if(de=f0,H="onMouseLeave",C="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(de=h0,H="onPointerLeave",C="onPointerEnter",S="pointer"),Ke=D==null?M:ni(D),O=ie==null?M:ni(ie),M=new de(H,S+"leave",D,a,V),M.target=Ke,M.relatedTarget=O,H=null,Ql(V)===z&&(de=new de(C,S+"enter",ie,a,V),de.target=O,de.relatedTarget=Ke,H=de),Ke=H,D&&ie)t:{for(de=j2,C=D,S=ie,O=0,H=C;H;H=de(H))O++;H=0;for(var fe=S;fe;fe=de(fe))H++;for(;0<O-H;)C=de(C),O--;for(;0<H-O;)S=de(S),H--;for(;O--;){if(C===S||S!==null&&C===S.alternate){de=C;break t}C=de(C),S=de(S)}de=null}else de=null;D!==null&&lg(q,M,D,de,!1),ie!==null&&Ke!==null&&lg(q,Ke,ie,de,!0)}}e:{if(M=z?ni(z):window,D=M.nodeName&&M.nodeName.toLowerCase(),D==="select"||D==="input"&&M.type==="file")var Me=_0;else if(b0(M))if(S0)Me=QS;else{Me=YS;var oe=ZS}else D=M.nodeName,!D||D.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?z&&cc(z.elementType)&&(Me=_0):Me=GS;if(Me&&(Me=Me(e,z))){x0(q,Me,a,V);break e}oe&&oe(e,M,z),e==="focusout"&&z&&M.type==="number"&&z.memoizedProps.value!=null&&oc(M,"number",M.value)}switch(oe=z?ni(z):window,e){case"focusin":(b0(oe)||oe.contentEditable==="true")&&(er=oe,Ac=z,di=null);break;case"focusout":di=Ac=er=null;break;case"mousedown":Tc=!0;break;case"contextmenu":case"mouseup":case"dragend":Tc=!1,k0(q,a,V);break;case"selectionchange":if($S)break;case"keydown":case"keyup":k0(q,a,V)}var be;if(xc)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Pl?g0(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Te="onCompositionStart");Te&&(m0&&a.locale!=="ko"&&(Pl||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Pl&&(be=o0()):(An=V,yc="value"in An?An.value:An.textContent,Pl=!0)),oe=Nu(z,Te),0<oe.length&&(Te=new d0(Te,e,null,a,V),q.push({event:Te,listeners:oe}),be?Te.data=be:(be=v0(a),be!==null&&(Te.data=be)))),(be=BS?VS(e,a):LS(e,a))&&(Te=Nu(z,"onBeforeInput"),0<Te.length&&(oe=new d0("onBeforeInput","beforeinput",null,a,V),q.push({event:oe,listeners:Te}),oe.data=be)),k2(q,e,z,a,V)}ag(q,t)})}function Bi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Nu(e,t){for(var a=t+"Capture",r=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=li(e,a),u!=null&&r.unshift(Bi(e,u,c)),u=li(e,t),u!=null&&r.push(Bi(e,u,c))),e.tag===3)return r;e=e.return}return[]}function j2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lg(e,t,a,r,u){for(var c=t._reactName,h=[];a!==null&&a!==r;){var y=a,b=y.alternate,z=y.stateNode;if(y=y.tag,b!==null&&b===r)break;y!==5&&y!==26&&y!==27||z===null||(b=z,u?(z=li(a,c),z!=null&&h.unshift(Bi(a,z,b))):u||(z=li(a,c),z!=null&&h.push(Bi(a,z,b)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var R2=/\r\n?/g,U2=/\u0000|\uFFFD/g;function rg(e){return(typeof e=="string"?e:""+e).replace(R2,`
|
|
33
|
+
`).replace(U2,"")}function ig(e,t){return t=rg(t),rg(e)===t}function $e(e,t,a,r,u,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Fl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Fl(e,""+r);break;case"className":Rs(e,"class",r);break;case"tabIndex":Rs(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Rs(e,a,r);break;case"style":i0(e,r,c);break;case"data":if(t!=="object"){Rs(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Bs(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="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"&&$e(e,t,"name",u.name,u,null),$e(e,t,"formEncType",u.formEncType,u,null),$e(e,t,"formMethod",u.formMethod,u,null),$e(e,t,"formTarget",u.formTarget,u,null)):($e(e,t,"encType",u.encType,u,null),$e(e,t,"method",u.method,u,null),$e(e,t,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Bs(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Fa);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Bs(""+r),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":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":we("beforetoggle",e),we("toggle",e),js(e,"popover",r);break;case"xlinkActuate":Ja(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Ja(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Ja(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Ja(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Ja(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Ja(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":js(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=cS.get(a)||a,js(e,a,r))}}function Wf(e,t,a,r,u,c){switch(a){case"style":i0(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Fl(e,r):(typeof r=="number"||typeof r=="bigint")&&Fl(e,""+r);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Fa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wm.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[Yt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,u);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):js(e,a,r)}}}function Mt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var r=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var h=a[c];if(h!=null)switch(c){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:$e(e,t,c,h,a,null)}}u&&$e(e,t,"srcSet",a.srcSet,a,null),r&&$e(e,t,"src",a.src,a,null);return;case"input":we("invalid",e);var y=c=h=u=null,b=null,z=null;for(r in a)if(a.hasOwnProperty(r)){var V=a[r];if(V!=null)switch(r){case"name":u=V;break;case"type":h=V;break;case"checked":b=V;break;case"defaultChecked":z=V;break;case"value":c=V;break;case"defaultValue":y=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:$e(e,t,r,V,a,null)}}a0(e,c,y,b,z,h,u,!1);return;case"select":we("invalid",e),r=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":r=y;default:$e(e,t,u,y,a,null)}t=c,a=h,e.multiple=!!r,t!=null?Jl(e,!!r,t,!1):a!=null&&Jl(e,!!r,a,!0);return;case"textarea":we("invalid",e),c=u=r=null;for(h in a)if(a.hasOwnProperty(h)&&(y=a[h],y!=null))switch(h){case"value":r=y;break;case"defaultValue":u=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:$e(e,t,h,y,a,null)}l0(e,r,u,c);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(r=a[b],r!=null))switch(b){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:$e(e,t,b,r,a,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(r=0;r<Ui.length;r++)we(Ui[r],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(r=a[z],r!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:$e(e,t,z,r,a,null)}return;default:if(cc(t)){for(V in a)a.hasOwnProperty(V)&&(r=a[V],r!==void 0&&Wf(e,t,V,r,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(r=a[y],r!=null&&$e(e,t,y,r,a,null))}function B2(e,t,a,r){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,z=null,V=null;for(D in a){var q=a[D];if(a.hasOwnProperty(D)&&q!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":b=q;default:r.hasOwnProperty(D)||$e(e,t,D,null,r,q)}}for(var M in r){var D=r[M];if(q=a[M],r.hasOwnProperty(M)&&(D!=null||q!=null))switch(M){case"type":c=D;break;case"name":u=D;break;case"checked":z=D;break;case"defaultChecked":V=D;break;case"value":h=D;break;case"defaultValue":y=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:D!==q&&$e(e,t,M,D,r,q)}}uc(e,h,y,b,z,V,c,u);return;case"select":D=h=y=M=null;for(c in a)if(b=a[c],a.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":D=b;default:r.hasOwnProperty(c)||$e(e,t,c,null,r,b)}for(u in r)if(c=r[u],b=a[u],r.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&&$e(e,t,u,c,r,b)}t=y,a=h,r=D,M!=null?Jl(e,!!a,M,!1):!!r!=!!a&&(t!=null?Jl(e,!!a,t,!0):Jl(e,!!a,a?[]:"",!1));return;case"textarea":D=M=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!r.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:$e(e,t,y,null,r,u)}for(h in r)if(u=r[h],c=a[h],r.hasOwnProperty(h)&&(u!=null||c!=null))switch(h){case"value":M=u;break;case"defaultValue":D=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&$e(e,t,h,u,r,c)}n0(e,M,D);return;case"option":for(var ie in a)if(M=a[ie],a.hasOwnProperty(ie)&&M!=null&&!r.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:$e(e,t,ie,null,r,M)}for(b in r)if(M=r[b],D=a[b],r.hasOwnProperty(b)&&M!==D&&(M!=null||D!=null))switch(b){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:$e(e,t,b,M,r,D)}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 de in a)M=a[de],a.hasOwnProperty(de)&&M!=null&&!r.hasOwnProperty(de)&&$e(e,t,de,null,r,M);for(z in r)if(M=r[z],D=a[z],r.hasOwnProperty(z)&&M!==D&&(M!=null||D!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:$e(e,t,z,M,r,D)}return;default:if(cc(t)){for(var Ke in a)M=a[Ke],a.hasOwnProperty(Ke)&&M!==void 0&&!r.hasOwnProperty(Ke)&&Wf(e,t,Ke,void 0,r,M);for(V in r)M=r[V],D=a[V],!r.hasOwnProperty(V)||M===D||M===void 0&&D===void 0||Wf(e,t,V,M,r,D);return}}for(var C in a)M=a[C],a.hasOwnProperty(C)&&M!=null&&!r.hasOwnProperty(C)&&$e(e,t,C,null,r,M);for(q in r)M=r[q],D=a[q],!r.hasOwnProperty(q)||M===D||M==null&&D==null||$e(e,t,q,M,r,D)}function sg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function V2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var u=a[r],c=u.transferSize,h=u.initiatorType,y=u.duration;if(c&&y&&sg(h)){for(h=0,y=u.responseEnd,r+=1;r<a.length;r++){var b=a[r],z=b.startTime;if(z>y)break;var V=b.transferSize,q=b.initiatorType;V&&sg(q)&&(b=b.responseEnd,h+=V*(b<y?1:(y-z)/(b-z)))}if(--r,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 If=null,Pf=null;function Mu(e){return e.nodeType===9?e:e.ownerDocument}function ug(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 og(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 ed(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 td=null;function L2(){var e=window.event;return e&&e.type==="popstate"?e===td?!1:(td=e,!0):(td=null,!1)}var cg=typeof setTimeout=="function"?setTimeout:void 0,H2=typeof clearTimeout=="function"?clearTimeout:void 0,fg=typeof Promise=="function"?Promise:void 0,q2=typeof queueMicrotask=="function"?queueMicrotask:typeof fg<"u"?function(e){return fg.resolve(null).then(e).catch(Z2)}:cg;function Z2(e){setTimeout(function(){throw e})}function qn(e){return e==="head"}function dg(e,t){var a=t,r=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(u),Er(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Vi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Vi(a);for(var c=a.firstChild;c;){var h=c.nextSibling,y=c.nodeName;c[ai]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=h}}else a==="body"&&Vi(e.ownerDocument.body);a=u}while(a);Er(t)}function hg(e,t){var a=e;e=0;do{var r=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||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function ad(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ad(a),ic(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Y2(e,t,a,r){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ai])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=Sa(e.nextSibling),e===null)break}return null}function G2(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Sa(e.nextSibling),e===null))return null;return e}function mg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Sa(e.nextSibling),e===null))return null;return e}function nd(e){return e.data==="$?"||e.data==="$~"}function ld(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Q2(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Sa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var rd=null;function yg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Sa(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function pg(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 gg(e,t,a){switch(t=Mu(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 Vi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ic(e)}var wa=new Map,vg=new Set;function Du(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var hn=X.d;X.d={f:X2,r:$2,D:K2,C:J2,L:F2,m:W2,X:P2,S:I2,M:ew};function X2(){var e=hn.f(),t=Au();return e||t}function $2(e){var t=Xl(e);t!==null&&t.tag===5&&t.type==="form"?Ry(t):hn.r(e)}var Ar=typeof document>"u"?null:document;function bg(e,t,a){var r=Ar;if(r&&typeof t=="string"&&t){var u=ya(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),vg.has(u)||(vg.add(u),e={rel:e,crossOrigin:a,href:t},r.querySelector(u)===null&&(t=r.createElement("link"),Mt(t,"link",e),At(t),r.head.appendChild(t)))}}function K2(e){hn.D(e),bg("dns-prefetch",e,null)}function J2(e,t){hn.C(e,t),bg("preconnect",e,t)}function F2(e,t,a){hn.L(e,t,a);var r=Ar;if(r&&e&&t){var u='link[rel="preload"][as="'+ya(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+ya(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+ya(a.imageSizes)+'"]')):u+='[href="'+ya(e)+'"]';var c=u;switch(t){case"style":c=Tr(e);break;case"script":c=Cr(e)}wa.has(c)||(e=w({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),wa.set(c,e),r.querySelector(u)!==null||t==="style"&&r.querySelector(Li(c))||t==="script"&&r.querySelector(Hi(c))||(t=r.createElement("link"),Mt(t,"link",e),At(t),r.head.appendChild(t)))}}function W2(e,t){hn.m(e,t);var a=Ar;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+ya(r)+'"][href="'+ya(e)+'"]',c=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cr(e)}if(!wa.has(c)&&(e=w({rel:"modulepreload",href:e},t),wa.set(c,e),a.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Hi(c)))return}r=a.createElement("link"),Mt(r,"link",e),At(r),a.head.appendChild(r)}}}function I2(e,t,a){hn.S(e,t,a);var r=Ar;if(r&&e){var u=$l(r).hoistableStyles,c=Tr(e);t=t||"default";var h=u.get(c);if(!h){var y={loading:0,preload:null};if(h=r.querySelector(Li(c)))y.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},a),(a=wa.get(c))&&id(e,a);var b=h=r.createElement("link");At(b),Mt(b,"link",e),b._p=new Promise(function(z,V){b.onload=z,b.onerror=V}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ju(h,t,r)}h={type:"stylesheet",instance:h,count:1,state:y},u.set(c,h)}}}function P2(e,t){hn.X(e,t);var a=Ar;if(a&&e){var r=$l(a).hoistableScripts,u=Cr(e),c=r.get(u);c||(c=a.querySelector(Hi(u)),c||(e=w({src:e,async:!0},t),(t=wa.get(u))&&sd(e,t),c=a.createElement("script"),At(c),Mt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(u,c))}}function ew(e,t){hn.M(e,t);var a=Ar;if(a&&e){var r=$l(a).hoistableScripts,u=Cr(e),c=r.get(u);c||(c=a.querySelector(Hi(u)),c||(e=w({src:e,async:!0,type:"module"},t),(t=wa.get(u))&&sd(e,t),c=a.createElement("script"),At(c),Mt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(u,c))}}function xg(e,t,a,r){var u=(u=Ba.current)?Du(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=Tr(a.href),a=$l(u).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Tr(a.href);var c=$l(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(Li(e)))&&!c._p&&(h.instance=c,h.state.loading=5),wa.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},wa.set(e,a),c||tw(u,e,a,h.state))),t&&r===null)throw Error(s(528,""));return h}if(t&&r!==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=Cr(a),a=$l(u).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Tr(e){return'href="'+ya(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function _g(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function tw(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Mt(t,"link",a),At(t),e.head.appendChild(t))}function Cr(e){return'[src="'+ya(e)+'"]'}function Hi(e){return"script[async]"+e}function Sg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ya(a.href)+'"]');if(r)return t.instance=r,At(r),r;var u=w({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),At(r),Mt(r,"style",u),ju(r,a.precedence,e),t.instance=r;case"stylesheet":u=Tr(a.href);var c=e.querySelector(Li(u));if(c)return t.state.loading|=4,t.instance=c,At(c),c;r=_g(a),(u=wa.get(u))&&id(r,u),c=(e.ownerDocument||e).createElement("link"),At(c);var h=c;return h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),Mt(c,"link",r),t.state.loading|=4,ju(c,a.precedence,e),t.instance=c;case"script":return c=Cr(a.src),(u=e.querySelector(Hi(c)))?(t.instance=u,At(u),u):(r=a,(u=wa.get(c))&&(r=w({},a),sd(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),At(u),Mt(u,"link",r),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&&(r=t.instance,t.state.loading|=4,ju(r,a.precedence,e));return t.instance}function ju(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,c=u,h=0;h<r.length;h++){var y=r[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 id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function sd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ru=null;function wg(e,t,a){if(Ru===null){var r=new Map,u=Ru=new Map;u.set(a,r)}else u=Ru,r=u.get(a),r||(r=new Map,u.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[ai]||c[Ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var y=r.get(h);y?y.push(c):r.set(h,[c])}}return r}function Ag(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function aw(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 Tg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function nw(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Tr(r.href),c=t.querySelector(Li(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Uu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,At(c);return}c=t.ownerDocument||t,r=_g(r),(u=wa.get(u))&&id(r,u),c=c.createElement("link"),At(c);var h=c;h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),Mt(c,"link",r),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=Uu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ud=0;function lw(e,t){return e.stylesheets&&e.count===0&&Vu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&ud===0&&(ud=62500*V2());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>ud?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bu=null;function Vu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bu=new Map,t.forEach(rw,e),Bu=null,Uu.call(e))}function rw(e,t){if(!(t.state.loading&4)){var a=Bu.get(e);if(a)var r=a.get(null);else{a=new Map,Bu.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),r=h)}r&&a.set(null,r)}u=t.instance,h=u.getAttribute("data-precedence"),c=a.get(h)||r,c===r&&a.set(null,u),a.set(h,u),this.count++,r=Uu.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var qi={$$typeof:te,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function iw(e,t,a,r,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=ac(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.hiddenUpdates=ac(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Cg(e,t,a,r,u,c,h,y,b,z,V,q){return e=new iw(e,t,a,h,b,z,V,q,y),t=1,c===!0&&(t|=24),c=aa(3,null,null,t),e.current=c,c.stateNode=e,t=Hc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},Gc(c),e}function Eg(e){return e?(e=nr,e):nr}function Og(e,t,a,r,u,c){u=Eg(u),r.context===null?r.context=u:r.pendingContext=u,r=kn(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=Nn(e,r,t),a!==null&&(Jt(a,e,t),bi(a,e,t))}function zg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function od(e,t){zg(e,t),(e=e.alternate)&&zg(e,t)}function kg(e){if(e.tag===13||e.tag===31){var t=ol(e,67108864);t!==null&&Jt(t,e,67108864),od(e,67108864)}}function Ng(e){if(e.tag===13||e.tag===31){var t=sa();t=nc(t);var a=ol(e,t);a!==null&&Jt(a,e,t),od(e,t)}}var Lu=!0;function sw(e,t,a,r){var u=k.T;k.T=null;var c=X.p;try{X.p=2,cd(e,t,a,r)}finally{X.p=c,k.T=u}}function uw(e,t,a,r){var u=k.T;k.T=null;var c=X.p;try{X.p=8,cd(e,t,a,r)}finally{X.p=c,k.T=u}}function cd(e,t,a,r){if(Lu){var u=fd(r);if(u===null)Ff(e,t,r,Hu,a),Dg(e,r);else if(cw(u,e,t,a,r))r.stopPropagation();else if(Dg(e,r),t&4&&-1<ow.indexOf(e)){for(;u!==null;){var c=Xl(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=ll(c.pendingLanes);if(h!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var b=1<<31-Et(h);y.entanglements[1]|=b,h&=~b}Ya(c),(Be&6)===0&&(Su=N()+500,Ri(0))}}break;case 31:case 13:y=ol(c,2),y!==null&&Jt(y,c,2),Au(),od(c,2)}if(c=fd(r),c===null&&Ff(e,t,r,Hu,a),c===u)break;u=c}u!==null&&r.stopPropagation()}else Ff(e,t,r,null,a)}}function fd(e){return e=dc(e),dd(e)}var Hu=null;function dd(e){if(Hu=null,e=Ql(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 Hu=e,null}function Mg(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(W()){case J:return 2;case F:return 8;case se:case pe:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var hd=!1,Zn=null,Yn=null,Gn=null,Zi=new Map,Yi=new Map,Qn=[],ow="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 Dg(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":Zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yi.delete(t.pointerId)}}function Gi(e,t,a,r,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[u]},t!==null&&(t=Xl(t),t!==null&&kg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function cw(e,t,a,r,u){switch(t){case"focusin":return Zn=Gi(Zn,e,t,a,r,u),!0;case"dragenter":return Yn=Gi(Yn,e,t,a,r,u),!0;case"mouseover":return Gn=Gi(Gn,e,t,a,r,u),!0;case"pointerover":var c=u.pointerId;return Zi.set(c,Gi(Zi.get(c)||null,e,t,a,r,u)),!0;case"gotpointercapture":return c=u.pointerId,Yi.set(c,Gi(Yi.get(c)||null,e,t,a,r,u)),!0}return!1}function jg(e){var t=Ql(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,Km(e.priority,function(){Ng(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Km(e.priority,function(){Ng(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 qu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=fd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);fc=r,a.target.dispatchEvent(r),fc=null}else return t=Xl(a),t!==null&&kg(t),e.blockedOn=a,!1;t.shift()}return!0}function Rg(e,t,a){qu(e)&&a.delete(t)}function fw(){hd=!1,Zn!==null&&qu(Zn)&&(Zn=null),Yn!==null&&qu(Yn)&&(Yn=null),Gn!==null&&qu(Gn)&&(Gn=null),Zi.forEach(Rg),Yi.forEach(Rg)}function Zu(e,t){e.blockedOn===t&&(e.blockedOn=null,hd||(hd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,fw)))}var Yu=null;function Ug(e){Yu!==e&&(Yu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Yu===e&&(Yu=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],u=e[t+2];if(typeof r!="function"){if(dd(r||a)===null)continue;break}var c=Xl(a);c!==null&&(e.splice(t,3),t-=3,ff(c,{pending:!0,data:u,method:a.method,action:r},r,u))}}))}function Er(e){function t(b){return Zu(b,e)}Zn!==null&&Zu(Zn,e),Yn!==null&&Zu(Yn,e),Gn!==null&&Zu(Gn,e),Zi.forEach(t),Yi.forEach(t);for(var a=0;a<Qn.length;a++){var r=Qn[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Qn.length&&(a=Qn[0],a.blockedOn===null);)jg(a),a.blockedOn===null&&Qn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var u=a[r],c=a[r+1],h=u[Yt]||null;if(typeof c=="function")h||Ug(a);else if(h){var y=null;if(c&&c.hasAttribute("formAction")){if(u=c,h=c[Yt]||null)y=h.formAction;else if(dd(u)!==null)continue}else y=h.action;typeof y=="function"?a[r+1]=y:(a.splice(r,3),r-=3),Ug(a)}}}function Bg(){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),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function md(e){this._internalRoot=e}Gu.prototype.render=md.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,r=sa();Og(a,r,e,t,null,null)},Gu.prototype.unmount=md.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Og(e.current,2,null,e,null,null),Au(),t[Gl]=null}};function Gu(e){this._internalRoot=e}Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=$m();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Qn.length&&t!==0&&t<Qn[a].priority;a++);Qn.splice(a,0,e),a===0&&jg(e)}};var Vg=l.version;if(Vg!=="19.2.4")throw Error(s(527,Vg,"19.2.4"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var dw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qu.isDisabled&&Qu.supportsFiber)try{pt=Qu.inject(dw),Vt=Qu}catch{}}return zr.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,r="",u=Qy,c=Xy,h=$y;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Cg(e,1,!1,null,null,a,r,null,u,c,h,Bg),e[Gl]=t.current,Jf(e),new md(t)},zr.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var r=!1,u="",c=Qy,h=Xy,y=$y,b=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!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=Cg(e,1,!0,t,a??null,r,u,b,c,h,y,Bg),t.context=Eg(null),a=t.current,r=sa(),r=nc(r),u=kn(r),u.callback=null,Nn(a,u,r),a=r,t.current.lanes=a,ti(t,a),Ya(t),e[Gl]=t.current,Jf(e),new Gu(t)},zr.version="19.2.4",zr}var _d;function Xg(){if(_d)return $u.exports;_d=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(l){console.error(l)}}return n(),$u.exports=Qg(),$u.exports}var $g=Xg();const Sd=n=>{let l;const i=new Set,s=(v,T)=>{const w=typeof v=="function"?v(l):v;if(!Object.is(w,l)){const R=l;l=T??(typeof w!="object"||w===null)?w:Object.assign({},l,w),i.forEach(_=>_(l,R))}},o=()=>l,m={setState:s,getState:o,getInitialState:()=>g,subscribe:v=>(i.add(v),()=>i.delete(v))},g=l=n(s,o,m);return m},Fu=(n=>n?Sd(n):Sd),Kg=n=>n;function Wu(n,l=Kg){const i=he.useSyncExternalStore(n.subscribe,he.useCallback(()=>l(n.getState()),[n,l]),he.useCallback(()=>l(n.getInitialState()),[n,l]));return he.useDebugValue(i),i}const wd=n=>{const l=Fu(n),i=s=>Wu(l,s);return Object.assign(i,l),i},Ad=(n=>n?wd(n):wd),Jg={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"},Qi=Fu(n=>({...Jg,setSecurityNumber:l=>n({securityNumber:l}),setState:l=>n({state:l}),setTargetProduct:l=>n({targetProduct:l}),setAvailableDiscountSelected:l=>n({availableDiscountSelected:l}),setUrlAcceptTerms:l=>n({urlAcceptTerms:l}),setUrlRegisterIndustry:l=>n({urlRegisterIndustry:l}),setIsAuthenticatedShopper:l=>n({isAuthenticatedShopper:l}),setCustomLoginUrl:l=>n({customLoginUrl:l}),setCardID:l=>n({cardID:l})})),Fg=()=>({getState:()=>{const n=Qi.getState(),{setSecurityNumber:l,setState:i,setAvailableDiscountSelected:s,setTargetProduct:o,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:m,setCustomLoginUrl:g,setCardID:v,...T}=n,{quantity:w,productId:R,skuId:_,discountMax:U,netPrice:A,stockBalance:Z,listPrice:I,price:$,...te}=n.targetProduct;return{...T,targetProduct:te}}});function Ft(n){return Wu(Qi,l=>l)}function Wg({originalProductPrice:n}){var o,f;const{targetProduct:l}=Ft(),i=(l==null?void 0:l.listPrice)||n,s=i*(((l==null?void 0:l.discountMax)||0)/100);return j.jsxs(j.Fragment,{children:[(l==null?void 0:l.informativeMessage)&&j.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:l==null?void 0:l.informativeMessage}),j.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:[j.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:j.jsxs("section",{className:"flex items-center gap-2 justify-center-safe",children:[j.jsx("span",{className:"line-through text-sm font-light",children:(o=Number(i))==null?void 0:o.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),(f=Number(i-s))==null?void 0:f.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})]})}),j.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 Iu={exports:{}};/*!
|
|
34
34
|
Copyright (c) 2018 Jed Watson.
|
|
35
35
|
Licensed under the MIT License (MIT), see
|
|
36
36
|
http://jedwatson.github.io/classnames
|
|
37
|
-
*/var Td;function Ip(){return Td||(Td=1,(function(n){(function(){var l={}.hasOwnProperty;function i(){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 i.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)l.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?(i.default=i,n.exports=i):window.classNames=i})()})(Iu)),Iu.exports}var Pp=Ip();const Ht=Hp(Pp);function Pu({children:n,variant:l}){return j.jsx("main",{className:Ht({"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":l==="main","w-full h-auto relative":l==="simple"}),"data-testid":"test_id_container","data-variant":l,id:"container_pbm",children:n})}function $n(n){return j.jsx("h2",{className:Ht("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 Kn(n){return j.jsx("p",{className:Ht("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 ev(){const{targetProduct:n}=Ft();return j.jsx("footer",{className:"w-full h-auto relative",id:"footer_pbm",children:j.jsxs("section",{className:Ht("flex items-center w-full h-auto gap-4",{"justify-center":n==null?void 0:n.industryLogo,"justify-start":!(n!=null&&n.industryLogo)}),children:[j.jsxs("section",{className:"w-4/5 h-auto",children:[j.jsx($n,{children:"Economize com o benefício do laboratório."}),j.jsx(Kn,{children:"Este produto tem preço exclusivo para clientes cadastrados no programa."})]}),(n==null?void 0:n.industryLogo)&&j.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 ke;(function(n){n.assertEqual=o=>{};function l(o){}n.assertIs=l;function i(o){throw new Error}n.assertNever=i,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})(ke||(ke={}));var Cd;(function(n){n.mergeShapes=(l,i)=>({...l,...i})})(Cd||(Cd={}));const ue=ke.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),yn=n=>{switch(typeof n){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return Number.isNaN(n)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(n)?ue.array:n===null?ue.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?ue.promise:typeof Map<"u"&&n instanceof Map?ue.map:typeof Set<"u"&&n instanceof Set?ue.set:typeof Date<"u"&&n instanceof Date?ue.date:ue.object;default:return ue.unknown}},K=ke.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 Qa extends Error{get errors(){return this.issues}constructor(l){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=l}format(l){const i=l||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(i(d));else{let m=s,p=0;for(;p<d.path.length;){const v=d.path[p];p===d.path.length-1?(m[v]=m[v]||{_errors:[]},m[v]._errors.push(i(d))):m[v]=m[v]||{_errors:[]},m=m[v],p++}}};return o(this),s}static assert(l){if(!(l instanceof Qa))throw new Error(`Not a ZodError: ${l}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ke.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(l=i=>i.message){const i={},s=[];for(const o of this.issues)if(o.path.length>0){const f=o.path[0];i[f]=i[f]||[],i[f].push(l(o))}else s.push(l(o));return{formErrors:s,fieldErrors:i}}get formErrors(){return this.flatten()}}Qa.create=n=>new Qa(n);const eo=(n,l)=>{let i;switch(n.code){case K.invalid_type:n.received===ue.undefined?i="Required":i=`Expected ${n.expected}, received ${n.received}`;break;case K.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(n.expected,ke.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:i=`Unrecognized key(s) in object: ${ke.joinValues(n.keys,", ")}`;break;case K.invalid_union:i="Invalid input";break;case K.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ke.joinValues(n.options)}`;break;case K.invalid_enum_value:i=`Invalid enum value. Expected ${ke.joinValues(n.options)}, received '${n.received}'`;break;case K.invalid_arguments:i="Invalid function arguments";break;case K.invalid_return_type:i="Invalid function return type";break;case K.invalid_date:i="Invalid date";break;case K.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(i=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?i=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?i=`Invalid input: must end with "${n.validation.endsWith}"`:ke.assertNever(n.validation):n.validation!=="regex"?i=`Invalid ${n.validation}`:i="Invalid";break;case K.too_small:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:i="Invalid input";break;case K.too_big:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?i=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:i="Invalid input";break;case K.custom:i="Invalid input";break;case K.invalid_intersection_types:i="Intersection results could not be merged";break;case K.not_multiple_of:i=`Number must be a multiple of ${n.multipleOf}`;break;case K.not_finite:i="Number must be finite";break;default:i=l.defaultError,ke.assertNever(n)}return{message:i}};let tv=eo;function av(){return tv}const nv=n=>{const{data:l,path:i,errorMaps:s,issueData:o}=n,f=[...i,...o.path||[]],d={...o,path:f};if(o.message!==void 0)return{...o,path:f,message:o.message};let m="";const p=s.filter(v=>!!v).slice().reverse();for(const v of p)m=v(d,{data:l,defaultError:m}).message;return{...o,path:f,message:m}};function ee(n,l){const i=av(),s=nv({issueData:l,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,i,i===eo?void 0:eo].filter(o=>!!o)});n.common.issues.push(s)}class Wt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(l,i){const s=[];for(const o of i){if(o.status==="aborted")return me;o.status==="dirty"&&l.dirty(),s.push(o.value)}return{status:l.value,value:s}}static async mergeObjectAsync(l,i){const s=[];for(const o of i){const f=await o.key,d=await o.value;s.push({key:f,value:d})}return Wt.mergeObjectSync(l,s)}static mergeObjectSync(l,i){const s={};for(const o of i){const{key:f,value:d}=o;if(f.status==="aborted"||d.status==="aborted")return me;f.status==="dirty"&&l.dirty(),d.status==="dirty"&&l.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||o.alwaysSet)&&(s[f.value]=d.value)}return{status:l.value,value:s}}}const me=Object.freeze({status:"aborted"}),kr=n=>({status:"dirty",value:n}),ua=n=>({status:"valid",value:n}),Ed=n=>n.status==="aborted",Od=n=>n.status==="dirty",_l=n=>n.status==="valid",Xi=n=>typeof Promise<"u"&&n instanceof Promise;var ce;(function(n){n.errToObj=l=>typeof l=="string"?{message:l}:l||{},n.toString=l=>typeof l=="string"?l:l==null?void 0:l.message})(ce||(ce={}));class gn{constructor(l,i,s,o){this._cachedPath=[],this.parent=l,this.data=i,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 zd=(n,l)=>{if(_l(l))return{success:!0,data:l.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 i=new Qa(n.common.issues);return this._error=i,this._error}}};function Se(n){if(!n)return{};const{errorMap:l,invalid_type_error:i,required_error:s,description:o}=n;if(l&&(i||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return l?{errorMap:l,description:o}:{errorMap:(d,m)=>{const{message:p}=n;return d.code==="invalid_enum_value"?{message:p??m.defaultError}:typeof m.data>"u"?{message:p??s??m.defaultError}:d.code!=="invalid_type"?{message:m.defaultError}:{message:p??i??m.defaultError}},description:o}}class Oe{get description(){return this._def.description}_getType(l){return yn(l.data)}_getOrReturnCtx(l,i){return i||{common:l.parent.common,data:l.data,parsedType:yn(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}_processInputParams(l){return{status:new Wt,ctx:{common:l.parent.common,data:l.data,parsedType:yn(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}}_parseSync(l){const i=this._parse(l);if(Xi(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(l){const i=this._parse(l);return Promise.resolve(i)}parse(l,i){const s=this.safeParse(l,i);if(s.success)return s.data;throw s.error}safeParse(l,i){const s={common:{issues:[],async:(i==null?void 0:i.async)??!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:yn(l)},o=this._parseSync({data:l,path:s.path,parent:s});return zd(s,o)}"~validate"(l){var s,o;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:yn(l)};if(!this["~standard"].async)try{const f=this._parseSync({data:l,path:[],parent:i});return _l(f)?{value:f.value}:{issues:i.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),i.common={issues:[],async:!0}}return this._parseAsync({data:l,path:[],parent:i}).then(f=>_l(f)?{value:f.value}:{issues:i.common.issues})}async parseAsync(l,i){const s=await this.safeParseAsync(l,i);if(s.success)return s.data;throw s.error}async safeParseAsync(l,i){const s={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:yn(l)},o=this._parse({data:l,path:s.path,parent:s}),f=await(Xi(o)?o:Promise.resolve(o));return zd(s,f)}refine(l,i){const s=o=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(o):i;return this._refinement((o,f)=>{const d=l(o),m=()=>f.addIssue({code:K.custom,...s(o)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(m(),!1)):d?!0:(m(),!1)})}refinement(l,i){return this._refinement((s,o)=>l(s)?!0:(o.addIssue(typeof i=="function"?i(s,o):i),!1))}_refinement(l){return new Tl({schema:this,typeName:ye.ZodEffects,effect:{type:"refinement",refinement:l}})}superRefine(l){return this._refinement(l)}constructor(l){this.spa=this.safeParseAsync,this._def=l,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:i=>this["~validate"](i)}}optional(){return bn.create(this,this._def)}nullable(){return Cl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ka.create(this)}promise(){return Fi.create(this,this._def)}or(l){return Ki.create([this,l],this._def)}and(l){return Ji.create(this,l,this._def)}transform(l){return new Tl({...Se(this._def),schema:this,typeName:ye.ZodEffects,effect:{type:"transform",transform:l}})}default(l){const i=typeof l=="function"?l:()=>l;return new no({...Se(this._def),innerType:this,defaultValue:i,typeName:ye.ZodDefault})}brand(){return new Cv({typeName:ye.ZodBranded,type:this,...Se(this._def)})}catch(l){const i=typeof l=="function"?l:()=>l;return new lo({...Se(this._def),innerType:this,catchValue:i,typeName:ye.ZodCatch})}describe(l){const i=this.constructor;return new i({...this._def,description:l})}pipe(l){return ro.create(this,l)}readonly(){return io.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const lv=/^c[^\s-]{8,}$/i,rv=/^[0-9a-z]+$/,iv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sv=/^[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,uv=/^[a-z0-9_-]{21}$/i,ov=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cv=/^[-+]?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)?)??$/,fv=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,dv="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let to;const hv=/^(?:(?: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])$/,mv=/^(?:(?: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])$/,yv=/^(([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]))$/,gv=/^(([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])$/,pv=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vv=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kd="((\\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])))",bv=new RegExp(`^${kd}$`);function Nd(n){let l="[0-5]\\d";n.precision?l=`${l}\\.\\d{${n.precision}}`:n.precision==null&&(l=`${l}(\\.\\d+)?`);const i=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${l})${i}`}function xv(n){return new RegExp(`^${Nd(n)}$`)}function Sv(n){let l=`${kd}T${Nd(n)}`;const i=[];return i.push(n.local?"Z?":"Z"),n.offset&&i.push("([+-]\\d{2}:?\\d{2})"),l=`${l}(${i.join("|")})`,new RegExp(`^${l}$`)}function _v(n,l){return!!((l==="v4"||!l)&&hv.test(n)||(l==="v6"||!l)&&yv.test(n))}function wv(n,l){if(!ov.test(n))return!1;try{const[i]=n.split(".");if(!i)return!1;const s=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.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||l&&o.alg!==l)}catch{return!1}}function Av(n,l){return!!((l==="v4"||!l)&&mv.test(n)||(l==="v6"||!l)&&gv.test(n))}class pn extends Oe{_parse(l){if(this._def.coerce&&(l.data=String(l.data)),this._getType(l)!==ue.string){const f=this._getOrReturnCtx(l);return ee(f,{code:K.invalid_type,expected:ue.string,received:f.parsedType}),me}const s=new Wt;let o;for(const f of this._def.checks)if(f.kind==="min")l.data.length<f.value&&(o=this._getOrReturnCtx(l,o),ee(o,{code:K.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")l.data.length>f.value&&(o=this._getOrReturnCtx(l,o),ee(o,{code:K.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const d=l.data.length>f.value,m=l.data.length<f.value;(d||m)&&(o=this._getOrReturnCtx(l,o),d?ee(o,{code:K.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&ee(o,{code:K.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")fv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"email",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")to||(to=new RegExp(dv,"u")),to.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"emoji",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")sv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"uuid",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")uv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"nanoid",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")lv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"cuid",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")rv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"cuid2",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")iv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"ulid",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(l.data)}catch{o=this._getOrReturnCtx(l,o),ee(o,{validation:"url",code:K.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"regex",code:K.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?l.data=l.data.trim():f.kind==="includes"?l.data.includes(f.value,f.position)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?l.data=l.data.toLowerCase():f.kind==="toUpperCase"?l.data=l.data.toUpperCase():f.kind==="startsWith"?l.data.startsWith(f.value)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?l.data.endsWith(f.value)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?Sv(f).test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?bv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?xv(f).test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?cv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"duration",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?_v(l.data,f.version)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"ip",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?wv(l.data,f.alg)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"jwt",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?Av(l.data,f.version)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"cidr",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?pv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"base64",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?vv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"base64url",code:K.invalid_string,message:f.message}),s.dirty()):ke.assertNever(f);return{status:s.value,value:l.data}}_regex(l,i,s){return this.refinement(o=>l.test(o),{validation:i,code:K.invalid_string,...ce.errToObj(s)})}_addCheck(l){return new pn({...this._def,checks:[...this._def.checks,l]})}email(l){return this._addCheck({kind:"email",...ce.errToObj(l)})}url(l){return this._addCheck({kind:"url",...ce.errToObj(l)})}emoji(l){return this._addCheck({kind:"emoji",...ce.errToObj(l)})}uuid(l){return this._addCheck({kind:"uuid",...ce.errToObj(l)})}nanoid(l){return this._addCheck({kind:"nanoid",...ce.errToObj(l)})}cuid(l){return this._addCheck({kind:"cuid",...ce.errToObj(l)})}cuid2(l){return this._addCheck({kind:"cuid2",...ce.errToObj(l)})}ulid(l){return this._addCheck({kind:"ulid",...ce.errToObj(l)})}base64(l){return this._addCheck({kind:"base64",...ce.errToObj(l)})}base64url(l){return this._addCheck({kind:"base64url",...ce.errToObj(l)})}jwt(l){return this._addCheck({kind:"jwt",...ce.errToObj(l)})}ip(l){return this._addCheck({kind:"ip",...ce.errToObj(l)})}cidr(l){return this._addCheck({kind:"cidr",...ce.errToObj(l)})}datetime(l){return typeof l=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:l}):this._addCheck({kind:"datetime",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,offset:(l==null?void 0:l.offset)??!1,local:(l==null?void 0:l.local)??!1,...ce.errToObj(l==null?void 0:l.message)})}date(l){return this._addCheck({kind:"date",message:l})}time(l){return typeof l=="string"?this._addCheck({kind:"time",precision:null,message:l}):this._addCheck({kind:"time",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,...ce.errToObj(l==null?void 0:l.message)})}duration(l){return this._addCheck({kind:"duration",...ce.errToObj(l)})}regex(l,i){return this._addCheck({kind:"regex",regex:l,...ce.errToObj(i)})}includes(l,i){return this._addCheck({kind:"includes",value:l,position:i==null?void 0:i.position,...ce.errToObj(i==null?void 0:i.message)})}startsWith(l,i){return this._addCheck({kind:"startsWith",value:l,...ce.errToObj(i)})}endsWith(l,i){return this._addCheck({kind:"endsWith",value:l,...ce.errToObj(i)})}min(l,i){return this._addCheck({kind:"min",value:l,...ce.errToObj(i)})}max(l,i){return this._addCheck({kind:"max",value:l,...ce.errToObj(i)})}length(l,i){return this._addCheck({kind:"length",value:l,...ce.errToObj(i)})}nonempty(l){return this.min(1,ce.errToObj(l))}trim(){return new pn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new pn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new pn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(l=>l.kind==="datetime")}get isDate(){return!!this._def.checks.find(l=>l.kind==="date")}get isTime(){return!!this._def.checks.find(l=>l.kind==="time")}get isDuration(){return!!this._def.checks.find(l=>l.kind==="duration")}get isEmail(){return!!this._def.checks.find(l=>l.kind==="email")}get isURL(){return!!this._def.checks.find(l=>l.kind==="url")}get isEmoji(){return!!this._def.checks.find(l=>l.kind==="emoji")}get isUUID(){return!!this._def.checks.find(l=>l.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(l=>l.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(l=>l.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(l=>l.kind==="cuid2")}get isULID(){return!!this._def.checks.find(l=>l.kind==="ulid")}get isIP(){return!!this._def.checks.find(l=>l.kind==="ip")}get isCIDR(){return!!this._def.checks.find(l=>l.kind==="cidr")}get isBase64(){return!!this._def.checks.find(l=>l.kind==="base64")}get isBase64url(){return!!this._def.checks.find(l=>l.kind==="base64url")}get minLength(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxLength(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}}pn.create=n=>new pn({checks:[],typeName:ye.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...Se(n)});function Tv(n,l){const i=(n.toString().split(".")[1]||"").length,s=(l.toString().split(".")[1]||"").length,o=i>s?i:s,f=Number.parseInt(n.toFixed(o).replace(".","")),d=Number.parseInt(l.toFixed(o).replace(".",""));return f%d/10**o}class Nr extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(l){if(this._def.coerce&&(l.data=Number(l.data)),this._getType(l)!==ue.number){const f=this._getOrReturnCtx(l);return ee(f,{code:K.invalid_type,expected:ue.number,received:f.parsedType}),me}let s;const o=new Wt;for(const f of this._def.checks)f.kind==="int"?ke.isInteger(l.data)||(s=this._getOrReturnCtx(l,s),ee(s,{code:K.invalid_type,expected:"integer",received:"float",message:f.message}),o.dirty()):f.kind==="min"?(f.inclusive?l.data<f.value:l.data<=f.value)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?l.data>f.value:l.data>=f.value)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="multipleOf"?Tv(l.data,f.value)!==0&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):f.kind==="finite"?Number.isFinite(l.data)||(s=this._getOrReturnCtx(l,s),ee(s,{code:K.not_finite,message:f.message}),o.dirty()):ke.assertNever(f);return{status:o.value,value:l.data}}gte(l,i){return this.setLimit("min",l,!0,ce.toString(i))}gt(l,i){return this.setLimit("min",l,!1,ce.toString(i))}lte(l,i){return this.setLimit("max",l,!0,ce.toString(i))}lt(l,i){return this.setLimit("max",l,!1,ce.toString(i))}setLimit(l,i,s,o){return new Nr({...this._def,checks:[...this._def.checks,{kind:l,value:i,inclusive:s,message:ce.toString(o)}]})}_addCheck(l){return new Nr({...this._def,checks:[...this._def.checks,l]})}int(l){return this._addCheck({kind:"int",message:ce.toString(l)})}positive(l){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(l)})}negative(l){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(l)})}multipleOf(l,i){return this._addCheck({kind:"multipleOf",value:l,message:ce.toString(i)})}finite(l){return this._addCheck({kind:"finite",message:ce.toString(l)})}safe(l){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(l)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(l)})}get minValue(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxValue(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}get isInt(){return!!this._def.checks.find(l=>l.kind==="int"||l.kind==="multipleOf"&&ke.isInteger(l.value))}get isFinite(){let l=null,i=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(i===null||s.value>i)&&(i=s.value):s.kind==="max"&&(l===null||s.value<l)&&(l=s.value)}return Number.isFinite(i)&&Number.isFinite(l)}}Nr.create=n=>new Nr({checks:[],typeName:ye.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Se(n)});class Mr extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(l){if(this._def.coerce)try{l.data=BigInt(l.data)}catch{return this._getInvalidInput(l)}if(this._getType(l)!==ue.bigint)return this._getInvalidInput(l);let s;const o=new Wt;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?l.data<f.value:l.data<=f.value)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?l.data>f.value:l.data>=f.value)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="multipleOf"?l.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):ke.assertNever(f);return{status:o.value,value:l.data}}_getInvalidInput(l){const i=this._getOrReturnCtx(l);return ee(i,{code:K.invalid_type,expected:ue.bigint,received:i.parsedType}),me}gte(l,i){return this.setLimit("min",l,!0,ce.toString(i))}gt(l,i){return this.setLimit("min",l,!1,ce.toString(i))}lte(l,i){return this.setLimit("max",l,!0,ce.toString(i))}lt(l,i){return this.setLimit("max",l,!1,ce.toString(i))}setLimit(l,i,s,o){return new Mr({...this._def,checks:[...this._def.checks,{kind:l,value:i,inclusive:s,message:ce.toString(o)}]})}_addCheck(l){return new Mr({...this._def,checks:[...this._def.checks,l]})}positive(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(l)})}negative(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(l)})}multipleOf(l,i){return this._addCheck({kind:"multipleOf",value:l,message:ce.toString(i)})}get minValue(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxValue(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}}Mr.create=n=>new Mr({checks:[],typeName:ye.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...Se(n)});class Md extends Oe{_parse(l){if(this._def.coerce&&(l.data=!!l.data),this._getType(l)!==ue.boolean){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.boolean,received:s.parsedType}),me}return ua(l.data)}}Md.create=n=>new Md({typeName:ye.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Se(n)});class $i extends Oe{_parse(l){if(this._def.coerce&&(l.data=new Date(l.data)),this._getType(l)!==ue.date){const f=this._getOrReturnCtx(l);return ee(f,{code:K.invalid_type,expected:ue.date,received:f.parsedType}),me}if(Number.isNaN(l.data.getTime())){const f=this._getOrReturnCtx(l);return ee(f,{code:K.invalid_date}),me}const s=new Wt;let o;for(const f of this._def.checks)f.kind==="min"?l.data.getTime()<f.value&&(o=this._getOrReturnCtx(l,o),ee(o,{code:K.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?l.data.getTime()>f.value&&(o=this._getOrReturnCtx(l,o),ee(o,{code:K.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):ke.assertNever(f);return{status:s.value,value:new Date(l.data.getTime())}}_addCheck(l){return new $i({...this._def,checks:[...this._def.checks,l]})}min(l,i){return this._addCheck({kind:"min",value:l.getTime(),message:ce.toString(i)})}max(l,i){return this._addCheck({kind:"max",value:l.getTime(),message:ce.toString(i)})}get minDate(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l!=null?new Date(l):null}get maxDate(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l!=null?new Date(l):null}}$i.create=n=>new $i({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:ye.ZodDate,...Se(n)});class Dd extends Oe{_parse(l){if(this._getType(l)!==ue.symbol){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.symbol,received:s.parsedType}),me}return ua(l.data)}}Dd.create=n=>new Dd({typeName:ye.ZodSymbol,...Se(n)});class jd extends Oe{_parse(l){if(this._getType(l)!==ue.undefined){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.undefined,received:s.parsedType}),me}return ua(l.data)}}jd.create=n=>new jd({typeName:ye.ZodUndefined,...Se(n)});class Rd extends Oe{_parse(l){if(this._getType(l)!==ue.null){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.null,received:s.parsedType}),me}return ua(l.data)}}Rd.create=n=>new Rd({typeName:ye.ZodNull,...Se(n)});class Ud extends Oe{constructor(){super(...arguments),this._any=!0}_parse(l){return ua(l.data)}}Ud.create=n=>new Ud({typeName:ye.ZodAny,...Se(n)});class Bd extends Oe{constructor(){super(...arguments),this._unknown=!0}_parse(l){return ua(l.data)}}Bd.create=n=>new Bd({typeName:ye.ZodUnknown,...Se(n)});class vn extends Oe{_parse(l){const i=this._getOrReturnCtx(l);return ee(i,{code:K.invalid_type,expected:ue.never,received:i.parsedType}),me}}vn.create=n=>new vn({typeName:ye.ZodNever,...Se(n)});class Vd extends Oe{_parse(l){if(this._getType(l)!==ue.undefined){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.void,received:s.parsedType}),me}return ua(l.data)}}Vd.create=n=>new Vd({typeName:ye.ZodVoid,...Se(n)});class ka extends Oe{_parse(l){const{ctx:i,status:s}=this._processInputParams(l),o=this._def;if(i.parsedType!==ue.array)return ee(i,{code:K.invalid_type,expected:ue.array,received:i.parsedType}),me;if(o.exactLength!==null){const d=i.data.length>o.exactLength.value,m=i.data.length<o.exactLength.value;(d||m)&&(ee(i,{code:d?K.too_big:K.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&&i.data.length<o.minLength.value&&(ee(i,{code:K.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&i.data.length>o.maxLength.value&&(ee(i,{code:K.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),i.common.async)return Promise.all([...i.data].map((d,m)=>o.type._parseAsync(new gn(i,d,i.path,m)))).then(d=>Wt.mergeArray(s,d));const f=[...i.data].map((d,m)=>o.type._parseSync(new gn(i,d,i.path,m)));return Wt.mergeArray(s,f)}get element(){return this._def.type}min(l,i){return new ka({...this._def,minLength:{value:l,message:ce.toString(i)}})}max(l,i){return new ka({...this._def,maxLength:{value:l,message:ce.toString(i)}})}length(l,i){return new ka({...this._def,exactLength:{value:l,message:ce.toString(i)}})}nonempty(l){return this.min(1,l)}}ka.create=(n,l)=>new ka({type:n,minLength:null,maxLength:null,exactLength:null,typeName:ye.ZodArray,...Se(l)});function wl(n){if(n instanceof ht){const l={};for(const i in n.shape){const s=n.shape[i];l[i]=bn.create(wl(s))}return new ht({...n._def,shape:()=>l})}else return n instanceof ka?new ka({...n._def,type:wl(n.element)}):n instanceof bn?bn.create(wl(n.unwrap())):n instanceof Cl?Cl.create(wl(n.unwrap())):n instanceof Jn?Jn.create(n.items.map(l=>wl(l))):n}class ht extends Oe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const l=this._def.shape(),i=ke.objectKeys(l);return this._cached={shape:l,keys:i},this._cached}_parse(l){if(this._getType(l)!==ue.object){const v=this._getOrReturnCtx(l);return ee(v,{code:K.invalid_type,expected:ue.object,received:v.parsedType}),me}const{status:s,ctx:o}=this._processInputParams(l),{shape:f,keys:d}=this._getCached(),m=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(const v in o.data)d.includes(v)||m.push(v);const p=[];for(const v of d){const T=f[v],w=o.data[v];p.push({key:{status:"valid",value:v},value:T._parse(new gn(o,w,o.path,v)),alwaysSet:v in o.data})}if(this._def.catchall instanceof vn){const v=this._def.unknownKeys;if(v==="passthrough")for(const T of m)p.push({key:{status:"valid",value:T},value:{status:"valid",value:o.data[T]}});else if(v==="strict")m.length>0&&(ee(o,{code:K.unrecognized_keys,keys:m}),s.dirty());else if(v!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const v=this._def.catchall;for(const T of m){const w=o.data[T];p.push({key:{status:"valid",value:T},value:v._parse(new gn(o,w,o.path,T)),alwaysSet:T in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const v=[];for(const T of p){const w=await T.key,R=await T.value;v.push({key:w,value:R,alwaysSet:T.alwaysSet})}return v}).then(v=>Wt.mergeObjectSync(s,v)):Wt.mergeObjectSync(s,p)}get shape(){return this._def.shape()}strict(l){return ce.errToObj,new ht({...this._def,unknownKeys:"strict",...l!==void 0?{errorMap:(i,s)=>{var f,d;const o=((d=(f=this._def).errorMap)==null?void 0:d.call(f,i,s).message)??s.defaultError;return i.code==="unrecognized_keys"?{message:ce.errToObj(l).message??o}:{message:o}}}:{}})}strip(){return new ht({...this._def,unknownKeys:"strip"})}passthrough(){return new ht({...this._def,unknownKeys:"passthrough"})}extend(l){return new ht({...this._def,shape:()=>({...this._def.shape(),...l})})}merge(l){return new ht({unknownKeys:l._def.unknownKeys,catchall:l._def.catchall,shape:()=>({...this._def.shape(),...l._def.shape()}),typeName:ye.ZodObject})}setKey(l,i){return this.augment({[l]:i})}catchall(l){return new ht({...this._def,catchall:l})}pick(l){const i={};for(const s of ke.objectKeys(l))l[s]&&this.shape[s]&&(i[s]=this.shape[s]);return new ht({...this._def,shape:()=>i})}omit(l){const i={};for(const s of ke.objectKeys(this.shape))l[s]||(i[s]=this.shape[s]);return new ht({...this._def,shape:()=>i})}deepPartial(){return wl(this)}partial(l){const i={};for(const s of ke.objectKeys(this.shape)){const o=this.shape[s];l&&!l[s]?i[s]=o:i[s]=o.optional()}return new ht({...this._def,shape:()=>i})}required(l){const i={};for(const s of ke.objectKeys(this.shape))if(l&&!l[s])i[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof bn;)f=f._def.innerType;i[s]=f}return new ht({...this._def,shape:()=>i})}keyof(){return Zd(ke.objectKeys(this.shape))}}ht.create=(n,l)=>new ht({shape:()=>n,unknownKeys:"strip",catchall:vn.create(),typeName:ye.ZodObject,...Se(l)}),ht.strictCreate=(n,l)=>new ht({shape:()=>n,unknownKeys:"strict",catchall:vn.create(),typeName:ye.ZodObject,...Se(l)}),ht.lazycreate=(n,l)=>new ht({shape:n,unknownKeys:"strip",catchall:vn.create(),typeName:ye.ZodObject,...Se(l)});class Ki extends Oe{_parse(l){const{ctx:i}=this._processInputParams(l),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 i.common.issues.push(...m.ctx.common.issues),m.result;const d=f.map(m=>new Qa(m.ctx.common.issues));return ee(i,{code:K.invalid_union,unionErrors:d}),me}if(i.common.async)return Promise.all(s.map(async f=>{const d={...i,common:{...i.common,issues:[]},parent:null};return{result:await f._parseAsync({data:i.data,path:i.path,parent:d}),ctx:d}})).then(o);{let f;const d=[];for(const p of s){const v={...i,common:{...i.common,issues:[]},parent:null},T=p._parseSync({data:i.data,path:i.path,parent:v});if(T.status==="valid")return T;T.status==="dirty"&&!f&&(f={result:T,ctx:v}),v.common.issues.length&&d.push(v.common.issues)}if(f)return i.common.issues.push(...f.ctx.common.issues),f.result;const m=d.map(p=>new Qa(p));return ee(i,{code:K.invalid_union,unionErrors:m}),me}}get options(){return this._def.options}}Ki.create=(n,l)=>new Ki({options:n,typeName:ye.ZodUnion,...Se(l)});function ao(n,l){const i=yn(n),s=yn(l);if(n===l)return{valid:!0,data:n};if(i===ue.object&&s===ue.object){const o=ke.objectKeys(l),f=ke.objectKeys(n).filter(m=>o.indexOf(m)!==-1),d={...n,...l};for(const m of f){const p=ao(n[m],l[m]);if(!p.valid)return{valid:!1};d[m]=p.data}return{valid:!0,data:d}}else if(i===ue.array&&s===ue.array){if(n.length!==l.length)return{valid:!1};const o=[];for(let f=0;f<n.length;f++){const d=n[f],m=l[f],p=ao(d,m);if(!p.valid)return{valid:!1};o.push(p.data)}return{valid:!0,data:o}}else return i===ue.date&&s===ue.date&&+n==+l?{valid:!0,data:n}:{valid:!1}}class Ji extends Oe{_parse(l){const{status:i,ctx:s}=this._processInputParams(l),o=(f,d)=>{if(Ed(f)||Ed(d))return me;const m=ao(f.value,d.value);return m.valid?((Od(f)||Od(d))&&i.dirty(),{status:i.value,value:m.data}):(ee(s,{code:K.invalid_intersection_types}),me)};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}))}}Ji.create=(n,l,i)=>new Ji({left:n,right:l,typeName:ye.ZodIntersection,...Se(i)});class Jn extends Oe{_parse(l){const{status:i,ctx:s}=this._processInputParams(l);if(s.parsedType!==ue.array)return ee(s,{code:K.invalid_type,expected:ue.array,received:s.parsedType}),me;if(s.data.length<this._def.items.length)return ee(s,{code:K.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&s.data.length>this._def.items.length&&(ee(s,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const f=[...s.data].map((d,m)=>{const p=this._def.items[m]||this._def.rest;return p?p._parse(new gn(s,d,s.path,m)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>Wt.mergeArray(i,d)):Wt.mergeArray(i,f)}get items(){return this._def.items}rest(l){return new Jn({...this._def,rest:l})}}Jn.create=(n,l)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jn({items:n,typeName:ye.ZodTuple,rest:null,...Se(l)})};class Ld extends Oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(l){const{status:i,ctx:s}=this._processInputParams(l);if(s.parsedType!==ue.map)return ee(s,{code:K.invalid_type,expected:ue.map,received:s.parsedType}),me;const o=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([m,p],v)=>({key:o._parse(new gn(s,m,s.path,[v,"key"])),value:f._parse(new gn(s,p,s.path,[v,"value"]))}));if(s.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const p of d){const v=await p.key,T=await p.value;if(v.status==="aborted"||T.status==="aborted")return me;(v.status==="dirty"||T.status==="dirty")&&i.dirty(),m.set(v.value,T.value)}return{status:i.value,value:m}})}else{const m=new Map;for(const p of d){const v=p.key,T=p.value;if(v.status==="aborted"||T.status==="aborted")return me;(v.status==="dirty"||T.status==="dirty")&&i.dirty(),m.set(v.value,T.value)}return{status:i.value,value:m}}}}Ld.create=(n,l,i)=>new Ld({valueType:l,keyType:n,typeName:ye.ZodMap,...Se(i)});class Dr extends Oe{_parse(l){const{status:i,ctx:s}=this._processInputParams(l);if(s.parsedType!==ue.set)return ee(s,{code:K.invalid_type,expected:ue.set,received:s.parsedType}),me;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(ee(s,{code:K.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),i.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(ee(s,{code:K.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),i.dirty());const f=this._def.valueType;function d(p){const v=new Set;for(const T of p){if(T.status==="aborted")return me;T.status==="dirty"&&i.dirty(),v.add(T.value)}return{status:i.value,value:v}}const m=[...s.data.values()].map((p,v)=>f._parse(new gn(s,p,s.path,v)));return s.common.async?Promise.all(m).then(p=>d(p)):d(m)}min(l,i){return new Dr({...this._def,minSize:{value:l,message:ce.toString(i)}})}max(l,i){return new Dr({...this._def,maxSize:{value:l,message:ce.toString(i)}})}size(l,i){return this.min(l,i).max(l,i)}nonempty(l){return this.min(1,l)}}Dr.create=(n,l)=>new Dr({valueType:n,minSize:null,maxSize:null,typeName:ye.ZodSet,...Se(l)});class Hd extends Oe{get schema(){return this._def.getter()}_parse(l){const{ctx:i}=this._processInputParams(l);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}Hd.create=(n,l)=>new Hd({getter:n,typeName:ye.ZodLazy,...Se(l)});class qd extends Oe{_parse(l){if(l.data!==this._def.value){const i=this._getOrReturnCtx(l);return ee(i,{received:i.data,code:K.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:l.data}}get value(){return this._def.value}}qd.create=(n,l)=>new qd({value:n,typeName:ye.ZodLiteral,...Se(l)});function Zd(n,l){return new Al({values:n,typeName:ye.ZodEnum,...Se(l)})}class Al extends Oe{_parse(l){if(typeof l.data!="string"){const i=this._getOrReturnCtx(l),s=this._def.values;return ee(i,{expected:ke.joinValues(s),received:i.parsedType,code:K.invalid_type}),me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(l.data)){const i=this._getOrReturnCtx(l),s=this._def.values;return ee(i,{received:i.data,code:K.invalid_enum_value,options:s}),me}return ua(l.data)}get options(){return this._def.values}get enum(){const l={};for(const i of this._def.values)l[i]=i;return l}get Values(){const l={};for(const i of this._def.values)l[i]=i;return l}get Enum(){const l={};for(const i of this._def.values)l[i]=i;return l}extract(l,i=this._def){return Al.create(l,{...this._def,...i})}exclude(l,i=this._def){return Al.create(this.options.filter(s=>!l.includes(s)),{...this._def,...i})}}Al.create=Zd;class Yd extends Oe{_parse(l){const i=ke.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(l);if(s.parsedType!==ue.string&&s.parsedType!==ue.number){const o=ke.objectValues(i);return ee(s,{expected:ke.joinValues(o),received:s.parsedType,code:K.invalid_type}),me}if(this._cache||(this._cache=new Set(ke.getValidEnumValues(this._def.values))),!this._cache.has(l.data)){const o=ke.objectValues(i);return ee(s,{received:s.data,code:K.invalid_enum_value,options:o}),me}return ua(l.data)}get enum(){return this._def.values}}Yd.create=(n,l)=>new Yd({values:n,typeName:ye.ZodNativeEnum,...Se(l)});class Fi extends Oe{unwrap(){return this._def.type}_parse(l){const{ctx:i}=this._processInputParams(l);if(i.parsedType!==ue.promise&&i.common.async===!1)return ee(i,{code:K.invalid_type,expected:ue.promise,received:i.parsedType}),me;const s=i.parsedType===ue.promise?i.data:Promise.resolve(i.data);return ua(s.then(o=>this._def.type.parseAsync(o,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Fi.create=(n,l)=>new Fi({type:n,typeName:ye.ZodPromise,...Se(l)});class Tl extends Oe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ye.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(l){const{status:i,ctx:s}=this._processInputParams(l),o=this._def.effect||null,f={addIssue:d=>{ee(s,d),d.fatal?i.abort():i.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(i.value==="aborted")return me;const p=await this._def.schema._parseAsync({data:m,path:s.path,parent:s});return p.status==="aborted"?me:p.status==="dirty"||i.value==="dirty"?kr(p.value):p});{if(i.value==="aborted")return me;const m=this._def.schema._parseSync({data:d,path:s.path,parent:s});return m.status==="aborted"?me:m.status==="dirty"||i.value==="dirty"?kr(m.value):m}}if(o.type==="refinement"){const d=m=>{const p=o.refinement(m,f);if(s.common.async)return Promise.resolve(p);if(p 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"?me:(m.status==="dirty"&&i.dirty(),d(m.value),{status:i.value,value:m.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(m=>m.status==="aborted"?me:(m.status==="dirty"&&i.dirty(),d(m.value).then(()=>({status:i.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(!_l(d))return me;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:i.value,value:m}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>_l(d)?Promise.resolve(o.transform(d.value,f)).then(m=>({status:i.value,value:m})):me);ke.assertNever(o)}}Tl.create=(n,l,i)=>new Tl({schema:n,typeName:ye.ZodEffects,effect:l,...Se(i)}),Tl.createWithPreprocess=(n,l,i)=>new Tl({schema:l,effect:{type:"preprocess",transform:n},typeName:ye.ZodEffects,...Se(i)});class bn extends Oe{_parse(l){return this._getType(l)===ue.undefined?ua(void 0):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}bn.create=(n,l)=>new bn({innerType:n,typeName:ye.ZodOptional,...Se(l)});class Cl extends Oe{_parse(l){return this._getType(l)===ue.null?ua(null):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}Cl.create=(n,l)=>new Cl({innerType:n,typeName:ye.ZodNullable,...Se(l)});class no extends Oe{_parse(l){const{ctx:i}=this._processInputParams(l);let s=i.data;return i.parsedType===ue.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}no.create=(n,l)=>new no({innerType:n,typeName:ye.ZodDefault,defaultValue:typeof l.default=="function"?l.default:()=>l.default,...Se(l)});class lo extends Oe{_parse(l){const{ctx:i}=this._processInputParams(l),s={...i,common:{...i.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Xi(o)?o.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Qa(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Qa(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}lo.create=(n,l)=>new lo({innerType:n,typeName:ye.ZodCatch,catchValue:typeof l.catch=="function"?l.catch:()=>l.catch,...Se(l)});class Gd extends Oe{_parse(l){if(this._getType(l)!==ue.nan){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.nan,received:s.parsedType}),me}return{status:"valid",value:l.data}}}Gd.create=n=>new Gd({typeName:ye.ZodNaN,...Se(n)});class Cv extends Oe{_parse(l){const{ctx:i}=this._processInputParams(l),s=i.data;return this._def.type._parse({data:s,path:i.path,parent:i})}unwrap(){return this._def.type}}class ro extends Oe{_parse(l){const{status:i,ctx:s}=this._processInputParams(l);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"?me:f.status==="dirty"?(i.dirty(),kr(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"?me:o.status==="dirty"?(i.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(l,i){return new ro({in:l,out:i,typeName:ye.ZodPipeline})}}class io extends Oe{_parse(l){const i=this._def.innerType._parse(l),s=o=>(_l(o)&&(o.value=Object.freeze(o.value)),o);return Xi(i)?i.then(o=>s(o)):s(i)}unwrap(){return this._def.innerType}}io.create=(n,l)=>new io({innerType:n,typeName:ye.ZodReadonly,...Se(l)});var ye;(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"})(ye||(ye={}));const Qd=pn.create;vn.create,ka.create;const Ev=ht.create;Ki.create,Ji.create,Jn.create,Al.create,Fi.create,bn.create,Cl.create;const Ov=Ev({securityNumber:Qd({required_error:"CPF é obrigatório."}).refine(n=>n.replace(/\D/g,"").length>=11,"CPF deve conter no mínimo 11 caracteres.").refine(n=>{const l=n.replace(/\D/g,"");return!!Number(l)},"CPF deve conter apenas números."),coupon:Qd({required_error:"Cupom / ID do Cartão obrigatório."}).optional()}),zv=n=>{const l=n.replace(/\D/g,"");if(l.length<=11)return l.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")},kv=n=>({acceptance:"isInvalid","industry registration":"isRegistered",active:"isActivated"})[n];/*! js-cookie v3.0.5 | MIT */function Wi(n){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var s in i)n[s]=i[s]}return n}var Nv={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 so(n,l){function i(o,f,d){if(!(typeof document>"u")){d=Wi({},l,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 p in d)d[p]&&(m+="; "+p,d[p]!==!0&&(m+="="+d[p].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 p=f[m].split("="),v=p.slice(1).join("=");try{var T=decodeURIComponent(p[0]);if(d[T]=n.read(v,T),o===T)break}catch{}}return o?d[o]:d}}return Object.create({set:i,get:s,remove:function(o,f){i(o,"",Wi({},f,{expires:-1}))},withAttributes:function(o){return so(this.converter,Wi({},this.attributes,o))},withConverter:function(o){return so(Wi({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(n)}})}var jr=so(Nv,{path:"/"});const uo={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"https://pbm.santoremedio.alinhaops.com.br/api/v1",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"},Na=n=>{var l;if(typeof{url:mn&&mn.tagName.toUpperCase()==="SCRIPT"&&mn.src||new URL("index.js",document.baseURI).href}<"u")return uo==null?void 0:uo[n];if(typeof process<"u")return(l=process.env)==null?void 0:l[n]},Xd=async({document:n,products:l})=>{const i=Na("VITE_API_URL");if(!i)throw new Error("API URL is not defined in environment variables");const s=jr.get("pbm-token");if(!s)throw new Error("Token is not defined in cookies or is expired");const f=await(await fetch(`${i}/products/benefitByDocument`,{method:"POST",headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"},body:JSON.stringify({consumer:{document:n},products:l})})).json();if(!f.success)throw new Error(f.message||"Failed to fetch document validation");return f};function oa(n){return j.jsx("button",{...n,className:Ht("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 Rr=n=>n.type==="checkbox",Fn=n=>n instanceof Date,qt=n=>n==null;const $d=n=>typeof n=="object";var ut=n=>!qt(n)&&!Array.isArray(n)&&$d(n)&&!Fn(n),Mv=n=>ut(n)&&n.target?Rr(n.target)?n.target.checked:n.target.value:n,Kd=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,Dv=(n,l)=>n.has(Kd(l)),jv=n=>{const l=n.constructor&&n.constructor.prototype;return ut(l)&&l.hasOwnProperty("isPrototypeOf")},oo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function St(n){if(n instanceof Date)return new Date(n);const l=typeof FileList<"u"&&n instanceof FileList;if(oo&&(n instanceof Blob||l))return n;const i=Array.isArray(n);if(!i&&!(ut(n)&&jv(n)))return n;const s=i?[]:Object.create(Object.getPrototypeOf(n));for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(s[o]=St(n[o]));return s}var Ii=n=>/^\w*$/.test(n),at=n=>n===void 0,co=n=>Array.isArray(n)?n.filter(Boolean):[],fo=n=>co(n.replace(/["|']|\]/g,"").split(/\.|\[/)),ne=(n,l,i)=>{if(!l||!ut(n))return i;const s=(Ii(l)?[l]:fo(l)).reduce((o,f)=>qt(o)?o:o[f],n);return at(s)||s===n?at(n[l])?i:n[l]:s},Ma=n=>typeof n=="boolean",Aa=n=>typeof n=="function",Ge=(n,l,i)=>{let s=-1;const o=Ii(l)?[l]:fo(l),f=o.length,d=f-1;for(;++s<f;){const m=o[s];let p=i;if(s!==d){const v=n[m];p=ut(v)||Array.isArray(v)?v:isNaN(+o[s+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;n[m]=p,n=n[m]}};const El={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Ta={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ca={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ho="form",Jd="root",Rv=he.createContext(null);Rv.displayName="HookFormControlContext";var Uv=(n,l,i,s=!0)=>{const o={defaultValues:l._defaultValues};for(const f in n)Object.defineProperty(o,f,{get:()=>{const d=f;return l._proxyFormState[d]!==Ta.all&&(l._proxyFormState[d]=!s||Ta.all),n[d]}});return o};const Bv=typeof window<"u"?he.useLayoutEffect:he.useEffect;var jt=n=>typeof n=="string",Vv=(n,l,i,s,o)=>jt(n)?(s&&l.watch.add(n),ne(i,n,o)):Array.isArray(n)?n.map(f=>(s&&l.watch.add(f),ne(i,f))):(s&&(l.watchAll=!0),i),mo=n=>qt(n)||!$d(n);function xn(n,l,i=new WeakSet){if(mo(n)||mo(l))return Object.is(n,l);if(Fn(n)&&Fn(l))return Object.is(n.getTime(),l.getTime());const s=Object.keys(n),o=Object.keys(l);if(s.length!==o.length)return!1;if(i.has(n)||i.has(l))return!0;i.add(n),i.add(l);for(const f of s){const d=n[f];if(!o.includes(f))return!1;if(f!=="ref"){const m=l[f];if(Fn(d)&&Fn(m)||ut(d)&&ut(m)||Array.isArray(d)&&Array.isArray(m)?!xn(d,m,i):!Object.is(d,m))return!1}}return!0}const Lv=he.createContext(null);Lv.displayName="HookFormContext";var yo=(n,l,i,s,o)=>l?{...i[n],types:{...i[n]&&i[n].types?i[n].types:{},[s]:o||!0}}:{},Ur=n=>Array.isArray(n)?n:[n],Fd=()=>{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 Wd(n,l){const i={};for(const s in n)if(n.hasOwnProperty(s)){const o=n[s],f=l[s];if(o&&ut(o)&&f){const d=Wd(o,f);ut(d)&&(i[s]=d)}else n[s]&&(i[s]=f)}return i}var Rt=n=>ut(n)&&!Object.keys(n).length,go=n=>n.type==="file",Pi=n=>{if(!oo)return!1;const l=n?n.ownerDocument:0;return n instanceof(l&&l.defaultView?l.defaultView.HTMLElement:HTMLElement)},Id=n=>n.type==="select-multiple",po=n=>n.type==="radio",Hv=n=>po(n)||Rr(n),vo=n=>Pi(n)&&n.isConnected;function qv(n,l){const i=l.slice(0,-1).length;let s=0;for(;s<i;)n=at(n)?s++:n[l[s++]];return n}function Zv(n){for(const l in n)if(n.hasOwnProperty(l)&&!at(n[l]))return!1;return!0}function mt(n,l){const i=Array.isArray(l)?l:Ii(l)?[l]:fo(l),s=i.length===1?n:qv(n,i),o=i.length-1,f=i[o];return s&&delete s[f],o!==0&&(ut(s)&&Rt(s)||Array.isArray(s)&&Zv(s))&&mt(n,i.slice(0,-1)),n}var Yv=n=>{for(const l in n)if(Aa(n[l]))return!0;return!1};function Pd(n){return Array.isArray(n)||ut(n)&&!Yv(n)}function bo(n,l={}){for(const i in n){const s=n[i];Pd(s)?(l[i]=Array.isArray(s)?[]:{},bo(s,l[i])):at(s)||(l[i]=!0)}return l}function Ol(n,l,i){i||(i=bo(l));for(const s in n){const o=n[s];if(Pd(o))at(l)||mo(i[s])?i[s]=bo(o,Array.isArray(o)?[]:{}):Ol(o,qt(l)?{}:l[s],i[s]);else{const f=l[s];i[s]=!xn(o,f)}}return i}const eh={value:!1,isValid:!1},th={value:!0,isValid:!0};var ah=n=>{if(Array.isArray(n)){if(n.length>1){const l=n.filter(i=>i&&i.checked&&!i.disabled).map(i=>i.value);return{value:l,isValid:!!l.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!at(n[0].attributes.value)?at(n[0].value)||n[0].value===""?th:{value:n[0].value,isValid:!0}:th:eh}return eh},nh=(n,{valueAsNumber:l,valueAsDate:i,setValueAs:s})=>at(n)?n:l?n===""?NaN:n&&+n:i&&jt(n)?new Date(n):s?s(n):n;const lh={isValid:!1,value:null};var rh=n=>Array.isArray(n)?n.reduce((l,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:l,lh):lh;function ih(n){const l=n.ref;return go(l)?l.files:po(l)?rh(n.refs).value:Id(l)?[...l.selectedOptions].map(({value:i})=>i):Rr(l)?ah(n.refs).value:nh(at(l.value)?n.ref.value:l.value,n)}var Gv=(n,l,i,s)=>{const o={};for(const f of n){const d=ne(l,f);d&&Ge(o,f,d._f)}return{criteriaMode:i,names:[...n],fields:o,shouldUseNativeValidation:s}},es=n=>n instanceof RegExp,Br=n=>at(n)?n:es(n)?n.source:ut(n)?es(n.value)?n.value.source:n.value:n,sh=n=>({isOnSubmit:!n||n===Ta.onSubmit,isOnBlur:n===Ta.onBlur,isOnChange:n===Ta.onChange,isOnAll:n===Ta.all,isOnTouch:n===Ta.onTouched});const uh="AsyncFunction";var Qv=n=>!!n&&!!n.validate&&!!(Aa(n.validate)&&n.validate.constructor.name===uh||ut(n.validate)&&Object.values(n.validate).find(l=>l.constructor.name===uh)),Xv=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),oh=(n,l,i)=>!i&&(l.watchAll||l.watch.has(n)||[...l.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const Vr=(n,l,i,s)=>{for(const o of i||Object.keys(n)){const f=ne(n,o);if(f){const{_f:d,...m}=f;if(d){if(d.refs&&d.refs[0]&&l(d.refs[0],o)&&!s)return!0;if(d.ref&&l(d.ref,d.name)&&!s)return!0;if(Vr(m,l))break}else if(ut(m)&&Vr(m,l))break}}};function ch(n,l,i){const s=ne(n,i);if(s||Ii(i))return{error:s,name:i};const o=i.split(".");for(;o.length;){const f=o.join("."),d=ne(l,f),m=ne(n,f);if(d&&!Array.isArray(d)&&i!==f)return{name:i};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:i}}var $v=(n,l,i,s)=>{i(n);const{name:o,...f}=n;return Rt(f)||Object.keys(f).length>=Object.keys(l).length||Object.keys(f).find(d=>l[d]===(!s||Ta.all))},Kv=(n,l,i)=>!n||!l||n===l||Ur(n).some(s=>s&&(i?s===l:s.startsWith(l)||l.startsWith(s))),Jv=(n,l,i,s,o)=>o.isOnAll?!1:!i&&o.isOnTouch?!(l||n):(i?s.isOnBlur:o.isOnBlur)?!n:(i?s.isOnChange:o.isOnChange)?n:!0,Fv=(n,l)=>!co(ne(n,l)).length&&mt(n,l),Wv=(n,l,i)=>{const s=Ur(ne(n,i));return Ge(s,Jd,l[i]),Ge(n,i,s),n};function fh(n,l,i="validate"){if(jt(n)||Array.isArray(n)&&n.every(jt)||Ma(n)&&!n)return{type:i,message:jt(n)?n:"",ref:l}}var zl=n=>ut(n)&&!es(n)?n:{value:n,message:""},dh=async(n,l,i,s,o,f)=>{const{ref:d,refs:m,required:p,maxLength:v,minLength:T,min:w,max:R,pattern:S,validate:U,name:A,valueAsNumber:Z,mount:I}=n._f,$=ne(i,A);if(!I||l.has(A))return{};const te=m?m[0]:d,P=g=>{o&&te.reportValidity&&(te.setCustomValidity(Ma(g)?"":g||""),te.reportValidity())},L={},Q=po(d),ae=Rr(d),xe=Q||ae,Ue=(Z||go(d))&&at(d.value)&&at($)||Pi(d)&&d.value===""||$===""||Array.isArray($)&&!$.length,We=yo.bind(null,A,s,L),pe=(g,Y,G,le=Ca.maxLength,k=Ca.minLength)=>{const X=g?Y:G;L[A]={type:g?le:k,message:X,ref:d,...We(g?le:k,X)}};if(f?!Array.isArray($)||!$.length:p&&(!xe&&(Ue||qt($))||Ma($)&&!$||ae&&!ah(m).isValid||Q&&!rh(m).isValid)){const{value:g,message:Y}=jt(p)?{value:!!p,message:p}:zl(p);if(g&&(L[A]={type:Ca.required,message:Y,ref:te,...We(Ca.required,Y)},!s))return P(Y),L}if(!Ue&&(!qt(w)||!qt(R))){let g,Y;const G=zl(R),le=zl(w);if(!qt($)&&!isNaN($)){const k=d.valueAsNumber||$&&+$;qt(G.value)||(g=k>G.value),qt(le.value)||(Y=k<le.value)}else{const k=d.valueAsDate||new Date($),X=Le=>new Date(new Date().toDateString()+" "+Le),re=d.type=="time",Ee=d.type=="week";jt(G.value)&&$&&(g=re?X($)>X(G.value):Ee?$>G.value:k>new Date(G.value)),jt(le.value)&&$&&(Y=re?X($)<X(le.value):Ee?$<le.value:k<new Date(le.value))}if((g||Y)&&(pe(!!g,G.message,le.message,Ca.max,Ca.min),!s))return P(L[A].message),L}if((v||T)&&!Ue&&(jt($)||f&&Array.isArray($))){const g=zl(v),Y=zl(T),G=!qt(g.value)&&$.length>+g.value,le=!qt(Y.value)&&$.length<+Y.value;if((G||le)&&(pe(G,g.message,Y.message),!s))return P(L[A].message),L}if(S&&!Ue&&jt($)){const{value:g,message:Y}=zl(S);if(es(g)&&!$.match(g)&&(L[A]={type:Ca.pattern,message:Y,ref:d,...We(Ca.pattern,Y)},!s))return P(Y),L}if(U){if(Aa(U)){const g=await U($,i),Y=fh(g,te);if(Y&&(L[A]={...Y,...We(Ca.validate,Y.message)},!s))return P(Y.message),L}else if(ut(U)){let g={};for(const Y in U){if(!Rt(g)&&!s)break;const G=fh(await U[Y]($,i),te,Y);G&&(g={...G,...We(Y,G.message)},P(G.message),s&&(L[A]=g))}if(!Rt(g)&&(L[A]={ref:te,...g},!s))return L}}return P(!0),L};const Iv={mode:Ta.onSubmit,reValidateMode:Ta.onChange,shouldFocusError:!0};function Pv(n={}){let l={...Iv,...n},i={submitCount:0,isDirty:!1,isReady:!1,isLoading:Aa(l.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:l.errors||{},disabled:l.disabled||!1},s={},o=ut(l.defaultValues)||ut(l.values)?St(l.defaultValues||l.values)||{}:{},f=l.shouldUnregister?{}:St(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},p,v=0;const T={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},w={...T};let R={...w};const S={array:Fd(),state:Fd()},U=l.criteriaMode===Ta.all,A=x=>E=>{clearTimeout(v),v=setTimeout(x,E)},Z=async x=>{if(!d.keepIsValid&&!l.disabled&&(w.isValid||R.isValid||x)){let E;l.resolver?(E=Rt((await xe()).errors),I()):E=await pe({fields:s,onlyCheckValid:!0,eventType:El.VALID}),E!==i.isValid&&S.state.next({isValid:E})}},I=(x,E)=>{!l.disabled&&(w.isValidating||w.validatingFields||R.isValidating||R.validatingFields)&&((x||Array.from(m.mount)).forEach(N=>{N&&(E?Ge(i.validatingFields,N,E):mt(i.validatingFields,N))}),S.state.next({validatingFields:i.validatingFields,isValidating:!Rt(i.validatingFields)}))},$=(x,E=[],N,W,J=!0,F=!0)=>{if(W&&N&&!l.disabled){if(d.action=!0,F&&Array.isArray(ne(s,x))){const se=N(ne(s,x),W.argA,W.argB);J&&Ge(s,x,se)}if(F&&Array.isArray(ne(i.errors,x))){const se=N(ne(i.errors,x),W.argA,W.argB);J&&Ge(i.errors,x,se),Fv(i.errors,x)}if((w.touchedFields||R.touchedFields)&&F&&Array.isArray(ne(i.touchedFields,x))){const se=N(ne(i.touchedFields,x),W.argA,W.argB);J&&Ge(i.touchedFields,x,se)}if(w.dirtyFields||R.dirtyFields){const se=Ol(o,f),ge=Kd(x);Ge(i.dirtyFields,ge,ne(se,ge))}S.state.next({name:x,isDirty:Y(x,E),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else Ge(f,x,E)},te=(x,E)=>{Ge(i.errors,x,E),S.state.next({errors:i.errors})},P=x=>{i.errors=x,S.state.next({errors:i.errors,isValid:!1})},L=(x,E,N,W)=>{const J=ne(s,x);if(J){const F=ne(f,x,at(N)?ne(o,x):N);at(F)||W&&W.defaultChecked||E?Ge(f,x,E?F:ih(J._f)):k(x,F),d.mount&&!d.action&&Z()}},Q=(x,E,N,W,J)=>{let F=!1,se=!1;const ge={name:x};if(!l.disabled){if(!N||W){(w.isDirty||R.isDirty)&&(se=i.isDirty,i.isDirty=ge.isDirty=Y(),F=se!==ge.isDirty);const Ne=xn(ne(o,x),E);se=!!ne(i.dirtyFields,x),Ne?mt(i.dirtyFields,x):Ge(i.dirtyFields,x,!0),ge.dirtyFields=i.dirtyFields,F=F||(w.dirtyFields||R.dirtyFields)&&se!==!Ne}if(N){const Ne=ne(i.touchedFields,x);Ne||(Ge(i.touchedFields,x,N),ge.touchedFields=i.touchedFields,F=F||(w.touchedFields||R.touchedFields)&&Ne!==N)}F&&J&&S.state.next(ge)}return F?ge:{}},ae=(x,E,N,W)=>{const J=ne(i.errors,x),F=(w.isValid||R.isValid)&&Ma(E)&&i.isValid!==E;if(l.delayError&&N?(p=A(()=>te(x,N)),p(l.delayError)):(clearTimeout(v),p=null,N?Ge(i.errors,x,N):mt(i.errors,x)),(N?!xn(J,N):J)||!Rt(W)||F){const se={...W,...F&&Ma(E)?{isValid:E}:{},errors:i.errors,name:x};i={...i,...se},S.state.next(se)}},xe=async x=>(I(x,!0),await l.resolver(f,l.context,Gv(x||m.mount,s,l.criteriaMode,l.shouldUseNativeValidation))),Ue=async x=>{const{errors:E}=await xe(x);if(I(x),x)for(const N of x){const W=ne(E,N);W?Ge(i.errors,N,W):mt(i.errors,N)}else i.errors=E;return E},We=async({name:x,eventType:E})=>{if(n.validate){const N=await n.validate({formValues:f,formState:i,name:x,eventType:E});if(ut(N))for(const W in N)N[W]&&Ut(`${ho}.${W}`,{message:jt(N.message)?N.message:"",type:Ca.validate});else jt(N)||!N?Ut(ho,{message:N||"",type:Ca.validate}):ct(ho);return N}return!0},pe=async({fields:x,onlyCheckValid:E,name:N,eventType:W,context:J={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(J.runRootValidation=!0,!await We({name:N,eventType:W})&&(J.valid=!1,E)))return J.valid;for(const F in x){const se=x[F];if(se){const{_f:ge,...Ne}=se;if(ge){const Bt=m.array.has(ge.name),da=se._f&&Qv(se._f);da&&w.validatingFields&&I([ge.name],!0);const gt=await dh(se,m.disabled,f,U,l.shouldUseNativeValidation&&!E,Bt);if(da&&w.validatingFields&&I([ge.name]),gt[ge.name]&&(J.valid=!1,E)||(!E&&(ne(gt,ge.name)?Bt?Wv(i.errors,gt,ge.name):Ge(i.errors,ge.name,gt[ge.name]):mt(i.errors,ge.name)),n.shouldUseNativeValidation&>[ge.name]))break}!Rt(Ne)&&await pe({context:J,onlyCheckValid:E,fields:Ne,name:F,eventType:W})}}return J.valid},g=()=>{for(const x of m.unMount){const E=ne(s,x);E&&(E._f.refs?E._f.refs.every(N=>!vo(N)):!vo(E._f.ref))&&Va(x)}m.unMount=new Set},Y=(x,E)=>!l.disabled&&(x&&E&&Ge(f,x,E),!xn(Fe(),o)),G=(x,E,N)=>Vv(x,m,{...d.mount?f:at(E)?o:jt(x)?{[x]:E}:E},N,E),le=x=>co(ne(d.mount?f:o,x,l.shouldUnregister?ne(o,x,[]):[])),k=(x,E,N={})=>{const W=ne(s,x);let J=E;if(W){const F=W._f;F&&(!F.disabled&&Ge(f,x,nh(E,F)),J=Pi(F.ref)&&qt(E)?"":E,Id(F.ref)?[...F.ref.options].forEach(se=>se.selected=J.includes(se.value)):F.refs?Rr(F.ref)?F.refs.forEach(se=>{(!se.defaultChecked||!se.disabled)&&(Array.isArray(J)?se.checked=!!J.find(ge=>ge===se.value):se.checked=J===se.value||!!J)}):F.refs.forEach(se=>se.checked=se.value===J):go(F.ref)?F.ref.value="":(F.ref.value=J,F.ref.type||S.state.next({name:x,values:St(f)})))}(N.shouldDirty||N.shouldTouch)&&Q(x,J,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&_t(x)},X=(x,E,N)=>{for(const W in E){if(!E.hasOwnProperty(W))return;const J=E[W],F=x+"."+W,se=ne(s,F);(m.array.has(x)||ut(J)||se&&!se._f)&&!Fn(J)?X(F,J,N):k(F,J,N)}},re=(x,E,N={})=>{const W=ne(s,x),J=m.array.has(x),F=St(E);Ge(f,x,F),J?(S.array.next({name:x,values:St(f)}),(w.isDirty||w.dirtyFields||R.isDirty||R.dirtyFields)&&N.shouldDirty&&S.state.next({name:x,dirtyFields:Ol(o,f),isDirty:Y(x,F)})):W&&!W._f&&!qt(F)?X(x,F,N):k(x,F,N),oh(x,m)?S.state.next({...i,name:x,values:St(f)}):S.state.next({name:d.mount?x:void 0,values:St(f)})},Ee=async x=>{d.mount=!0;const E=x.target;let N=E.name,W=!0;const J=ne(s,N),F=Ne=>{W=Number.isNaN(Ne)||Fn(Ne)&&isNaN(Ne.getTime())||xn(Ne,ne(f,N,Ne))},se=sh(l.mode),ge=sh(l.reValidateMode);if(J){let Ne,Bt;const da=E.type?ih(J._f):Mv(x),gt=x.type===El.BLUR||x.type===El.FOCUS_OUT,Vt=!Xv(J._f)&&!n.validate&&!l.resolver&&!ne(i.errors,N)&&!J._f.deps||Jv(gt,ne(i.touchedFields,N),i.isSubmitted,ge,se),ha=oh(N,m,gt);Ge(f,N,da),gt?(!E||!E.readOnly)&&(J._f.onBlur&&J._f.onBlur(x),p&&p(0)):J._f.onChange&&J._f.onChange(x);const Et=Q(N,da,gt),ec=!Rt(Et)||ha;if(!gt&&S.state.next({name:N,type:x.type,values:St(f)}),Vt)return(w.isValid||R.isValid)&&(l.mode==="onBlur"?gt&&Z():gt||Z()),ec&&S.state.next({name:N,...ha?{}:Et});if(!l.resolver&&n.validate&&await We({name:N,eventType:x.type}),!gt&&ha&&S.state.next({...i}),l.resolver){const{errors:ks}=await xe([N]);if(I([N]),F(da),W){const tc=ch(i.errors,s,N),nl=ch(ks,s,tc.name||N);Ne=nl.error,N=nl.name,Bt=Rt(ks)}}else I([N],!0),Ne=(await dh(J,m.disabled,f,U,l.shouldUseNativeValidation))[N],I([N]),F(da),W&&(Ne?Bt=!1:(w.isValid||R.isValid)&&(Bt=await pe({fields:s,onlyCheckValid:!0,name:N,eventType:x.type})));W&&(J._f.deps&&(!Array.isArray(J._f.deps)||J._f.deps.length>0)&&_t(J._f.deps),ae(N,Bt,Ne,Et))}},Le=(x,E)=>{if(ne(i.errors,E)&&x.focus)return x.focus(),1},_t=async(x,E={})=>{let N,W;const J=Ur(x);if(l.resolver){const F=await Ue(at(x)?x:J);N=Rt(F),W=x?!J.some(se=>ne(F,se)):N}else x?(W=(await Promise.all(J.map(async F=>{const se=ne(s,F);return await pe({fields:se&&se._f?{[F]:se}:se,eventType:El.TRIGGER})}))).every(Boolean),!(!W&&!i.isValid)&&Z()):W=N=await pe({fields:s,name:x,eventType:El.TRIGGER});return S.state.next({...!jt(x)||(w.isValid||R.isValid)&&N!==i.isValid?{}:{name:x},...l.resolver||!x?{isValid:N}:{},errors:i.errors}),E.shouldFocus&&!W&&Vr(s,Le,x?J:m.mount),W},Fe=(x,E)=>{let N={...d.mount?f:o};return E&&(N=Wd(E.dirtyFields?i.dirtyFields:i.touchedFields,N)),at(x)?N:jt(x)?ne(N,x):x.map(W=>ne(N,W))},ze=(x,E)=>({invalid:!!ne((E||i).errors,x),isDirty:!!ne((E||i).dirtyFields,x),error:ne((E||i).errors,x),isValidating:!!ne(i.validatingFields,x),isTouched:!!ne((E||i).touchedFields,x)}),ct=x=>{const E=x?Ur(x):void 0;E==null||E.forEach(N=>mt(i.errors,N)),E?E.forEach(N=>{S.state.next({name:N,errors:i.errors})}):S.state.next({errors:{}})},Ut=(x,E,N)=>{const W=(ne(s,x,{_f:{}})._f||{}).ref,J=ne(i.errors,x)||{},{ref:F,message:se,type:ge,...Ne}=J;Ge(i.errors,x,{...Ne,...E,ref:W}),S.state.next({name:x,errors:i.errors,isValid:!1}),N&&N.shouldFocus&&W&&W.focus&&W.focus()},Ba=(x,E)=>Aa(x)?S.state.subscribe({next:N=>"values"in N&&x(G(void 0,E),N)}):G(x,E,!0),tl=x=>S.state.subscribe({next:E=>{Kv(x.name,E.name,x.exact)&&$v(E,x.formState||w,Pr,x.reRenderRoot)&&x.callback({values:{...f},...i,...E,defaultValues:o})}}).unsubscribe,Hl=x=>(d.mount=!0,R={...R,...x.formState},tl({...x,formState:{...T,...x.formState}})),Va=(x,E={})=>{for(const N of x?Ur(x):m.mount)m.mount.delete(N),m.array.delete(N),E.keepValue||(mt(s,N),mt(f,N)),!E.keepError&&mt(i.errors,N),!E.keepDirty&&mt(i.dirtyFields,N),!E.keepTouched&&mt(i.touchedFields,N),!E.keepIsValidating&&mt(i.validatingFields,N),!l.shouldUnregister&&!E.keepDefaultValue&&mt(o,N);S.state.next({values:St(f)}),S.state.next({...i,...E.keepDirty?{isDirty:Y()}:{}}),!E.keepIsValid&&Z()},ql=({disabled:x,name:E})=>{if(Ma(x)&&d.mount||x||m.disabled.has(E)){const J=m.disabled.has(E)!==!!x;x?m.disabled.add(E):m.disabled.delete(E),J&&d.mount&&!d.action&&Z()}},_n=(x,E={})=>{let N=ne(s,x);const W=Ma(E.disabled)||Ma(l.disabled);return Ge(s,x,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:x}},name:x,mount:!0,...E}}),m.mount.add(x),N?ql({disabled:Ma(E.disabled)?E.disabled:l.disabled,name:x}):L(x,!0,E.value),{...W?{disabled:E.disabled||l.disabled}:{},...l.progressive?{required:!!E.required,min:Br(E.min),max:Br(E.max),minLength:Br(E.minLength),maxLength:Br(E.maxLength),pattern:Br(E.pattern)}:{},name:x,onChange:Ee,onBlur:Ee,ref:J=>{if(J){_n(x,E),N=ne(s,x);const F=at(J.value)&&J.querySelectorAll&&J.querySelectorAll("input,select,textarea")[0]||J,se=Hv(F),ge=N._f.refs||[];if(se?ge.find(Ne=>Ne===F):F===N._f.ref)return;Ge(s,x,{_f:{...N._f,...se?{refs:[...ge.filter(vo),F,...Array.isArray(ne(o,x))?[{}]:[]],ref:{type:F.type,name:x}}:{ref:F}}}),L(x,!1,void 0,F)}else N=ne(s,x,{}),N._f&&(N._f.mount=!1),(l.shouldUnregister||E.shouldUnregister)&&!(Dv(m.array,x)&&d.action)&&m.unMount.add(x)}}},al=()=>l.shouldFocusError&&Vr(s,Le,m.mount),Cs=x=>{Ma(x)&&(S.state.next({disabled:x}),Vr(s,(E,N)=>{const W=ne(s,N);W&&(E.disabled=W._f.disabled||x,Array.isArray(W._f.refs)&&W._f.refs.forEach(J=>{J.disabled=W._f.disabled||x}))},0,!1))},La=(x,E)=>async N=>{let W;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let J=St(f);if(S.state.next({isSubmitting:!0}),l.resolver){const{errors:F,values:se}=await xe();I(),i.errors=F,J=St(se)}else await pe({fields:s,eventType:El.SUBMIT});if(m.disabled.size)for(const F of m.disabled)mt(J,F);if(mt(i.errors,Jd),Rt(i.errors)){S.state.next({errors:{}});try{await x(J,N)}catch(F){W=F}}else E&&await E({...i.errors},N),al(),setTimeout(al);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Rt(i.errors)&&!W,submitCount:i.submitCount+1,errors:i.errors}),W)throw W},Ir=(x,E={})=>{ne(s,x)&&(at(E.defaultValue)?re(x,St(ne(o,x))):(re(x,E.defaultValue),Ge(o,x,St(E.defaultValue))),E.keepTouched||mt(i.touchedFields,x),E.keepDirty||(mt(i.dirtyFields,x),i.isDirty=E.defaultValue?Y(x,St(ne(o,x))):Y()),E.keepError||(mt(i.errors,x),w.isValid&&Z()),S.state.next({...i}))},Zl=(x,E={})=>{const N=x?St(x):o,W=St(N),J=Rt(x),F=J?o:W;if(E.keepDefaultValues||(o=N),!E.keepValues){if(E.keepDirtyValues){const se=new Set([...m.mount,...Object.keys(Ol(o,f))]);for(const ge of Array.from(se)){const Ne=ne(i.dirtyFields,ge),Bt=ne(f,ge),da=ne(F,ge);Ne&&!at(Bt)?Ge(F,ge,Bt):!Ne&&!at(da)&&re(ge,da)}}else{if(oo&&at(x))for(const se of m.mount){const ge=ne(s,se);if(ge&&ge._f){const Ne=Array.isArray(ge._f.refs)?ge._f.refs[0]:ge._f.ref;if(Pi(Ne)){const Bt=Ne.closest("form");if(Bt){Bt.reset();break}}}}if(E.keepFieldsRef)for(const se of m.mount)re(se,ne(F,se));else s={}}f=l.shouldUnregister?E.keepDefaultValues?St(o):{}:St(F),S.array.next({values:{...F}}),S.state.next({values:{...F}})}m={mount:E.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!w.isValid||!!E.keepIsValid||!!E.keepDirtyValues||!l.shouldUnregister&&!Rt(F),d.watch=!!l.shouldUnregister,d.keepIsValid=!!E.keepIsValid,d.action=!1,E.keepErrors||(i.errors={}),S.state.next({submitCount:E.keepSubmitCount?i.submitCount:0,isDirty:J?!1:E.keepDirty?i.isDirty:!!(E.keepDefaultValues&&!xn(x,o)),isSubmitted:E.keepIsSubmitted?i.isSubmitted:!1,dirtyFields:J?{}:E.keepDirtyValues?E.keepDefaultValues&&f?Ol(o,f):i.dirtyFields:E.keepDefaultValues&&x?Ol(o,x):E.keepDirty?i.dirtyFields:{},touchedFields:E.keepTouched?i.touchedFields:{},errors:E.keepErrors?i.errors:{},isSubmitSuccessful:E.keepIsSubmitSuccessful?i.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Es=(x,E)=>Zl(Aa(x)?x(f):x,{...l.resetOptions,...E}),Os=(x,E={})=>{const N=ne(s,x),W=N&&N._f;if(W){const J=W.refs?W.refs[0]:W.ref;J.focus&&setTimeout(()=>{J.focus(),E.shouldSelect&&Aa(J.select)&&J.select()})}},Pr=x=>{i={...i,...x}},Yl={control:{register:_n,unregister:Va,getFieldState:ze,handleSubmit:La,setError:Ut,_subscribe:tl,_runSchema:xe,_updateIsValidating:I,_focusError:al,_getWatch:G,_getDirty:Y,_setValid:Z,_setFieldArray:$,_setDisabledField:ql,_setErrors:P,_getFieldArray:le,_reset:Zl,_resetDefaultValues:()=>Aa(l.defaultValues)&&l.defaultValues().then(x=>{Es(x,l.resetOptions),S.state.next({isLoading:!1})}),_removeUnmounted:g,_disableForm:Cs,_subjects:S,_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 i},get _options(){return l},set _options(x){l={...l,...x}}},subscribe:Hl,trigger:_t,register:_n,handleSubmit:La,watch:Ba,setValue:re,getValues:Fe,reset:Es,resetField:Ir,clearErrors:ct,unregister:Va,setError:Ut,setFocus:Os,getFieldState:ze};return{...Yl,formControl:Yl}}function eb(n={}){const l=he.useRef(void 0),i=he.useRef(void 0),[s,o]=he.useState({isDirty:!1,isValidating:!1,isLoading:Aa(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:Aa(n.defaultValues)?void 0:n.defaultValues});if(!l.current)if(n.formControl)l.current={...n.formControl,formState:s},n.defaultValues&&!Aa(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...m}=Pv(n);l.current={...m,formState:s}}const f=l.current.control;return f._options=n,Bv(()=>{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]),he.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),he.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),he.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),he.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),he.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),he.useEffect(()=>{var d;n.values&&!xn(n.values,i.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((d=f._options.resetOptions)===null||d===void 0)&&d.keepIsValid||f._setValid(),i.current=n.values,o(m=>({...m}))):f._resetDefaultValues()},[f,n.values]),he.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()}),l.current.formState=he.useMemo(()=>Uv(s,f),[f,s]),l.current}const hh=(n,l,i)=>{if(n&&"reportValidity"in n){const s=ne(i,l);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},xo=(n,l)=>{for(const i in l.fields){const s=l.fields[i];s&&s.ref&&"reportValidity"in s.ref?hh(s.ref,i,n):s&&s.refs&&s.refs.forEach(o=>hh(o,i,n))}},mh=(n,l)=>{l.shouldUseNativeValidation&&xo(n,l);const i={};for(const s in n){const o=ne(l.fields,s),f=Object.assign(n[s]||{},{ref:o&&o.ref});if(tb(l.names||Object.keys(n),s)){const d=Object.assign({},ne(i,s));Ge(d,"root",f),Ge(i,s,d)}else Ge(i,s,f)}return i},tb=(n,l)=>{const i=yh(l);return n.some(s=>yh(s).match(`^${i}\\.\\d+`))};function yh(n){return n.replace(/\]|\[/g,"")}function gh(n,l,i){function s(m,p){var v;Object.defineProperty(m,"_zod",{value:m._zod??{},enumerable:!1}),(v=m._zod).traits??(v.traits=new Set),m._zod.traits.add(n),l(m,p);for(const T in d.prototype)T in m||Object.defineProperty(m,T,{value:d.prototype[T].bind(m)});m._zod.constr=d,m._zod.def=p}const o=(i==null?void 0:i.Parent)??Object;class f extends o{}Object.defineProperty(f,"name",{value:n});function d(m){var p;const v=i!=null&&i.Parent?new f:this;s(v,m),(p=v._zod).deferred??(p.deferred=[]);for(const T of v._zod.deferred)T();return v}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>{var p,v;return i!=null&&i.Parent&&m instanceof i.Parent?!0:(v=(p=m==null?void 0:m._zod)==null?void 0:p.traits)==null?void 0:v.has(n)}}),Object.defineProperty(d,"name",{value:n}),d}class ab extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const nb={};function ph(n){return nb}function lb(n,l){return typeof l=="bigint"?l.toString():l}const vh=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function ts(n){return typeof n=="string"?n:n==null?void 0:n.message}function bh(n,l,i){var o,f,d,m,p,v;const s={...n,path:n.path??[]};if(!n.message){const T=ts((d=(f=(o=n.inst)==null?void 0:o._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,n))??ts((m=l==null?void 0:l.error)==null?void 0:m.call(l,n))??ts((p=i.customError)==null?void 0:p.call(i,n))??ts((v=i.localeError)==null?void 0:v.call(i,n))??"Invalid input";s.message=T}return delete s.inst,delete s.continue,l!=null&&l.reportInput||delete s.input,s}const xh=(n,l)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:l,enumerable:!1}),Object.defineProperty(n,"message",{get(){return JSON.stringify(l,lb,2)},enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},rb=gh("$ZodError",xh),Sh=gh("$ZodError",xh,{Parent:Error}),ib=(n=>(l,i,s,o)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=l._zod.run({value:i,issues:[]},f);if(d instanceof Promise)throw new ab;if(d.issues.length){const m=new((o==null?void 0:o.Err)??n)(d.issues.map(p=>bh(p,f,ph())));throw vh(m,o==null?void 0:o.callee),m}return d.value})(Sh),sb=(n=>async(l,i,s,o)=>{const f=s?Object.assign(s,{async:!0}):{async:!0};let d=l._zod.run({value:i,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(p=>bh(p,f,ph())));throw vh(m,o==null?void 0:o.callee),m}return d.value})(Sh);function _h(n,l){try{var i=n()}catch(s){return l(s)}return i&&i.then?i.then(void 0,l):i}function ub(n,l){for(var i={};n.length;){var s=n[0],o=s.code,f=s.message,d=s.path.join(".");if(!i[d])if("unionErrors"in s){var m=s.unionErrors[0].errors[0];i[d]={message:m.message,type:m.code}}else i[d]={message:f,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(T){return T.errors.forEach(function(w){return n.push(w)})}),l){var p=i[d].types,v=p&&p[s.code];i[d]=yo(d,l,i,o,v?[].concat(v,s.message):s.message)}n.shift()}return i}function ob(n,l){for(var i={};n.length;){var s=n[0],o=s.code,f=s.message,d=s.path.join(".");if(!i[d])if(s.code==="invalid_union"&&s.errors.length>0){var m=s.errors[0][0];i[d]={message:m.message,type:m.code}}else i[d]={message:f,type:o};if(s.code==="invalid_union"&&s.errors.forEach(function(T){return T.forEach(function(w){return n.push(w)})}),l){var p=i[d].types,v=p&&p[s.code];i[d]=yo(d,l,i,o,v?[].concat(v,s.message):s.message)}n.shift()}return i}function cb(n,l,i){if(i===void 0&&(i={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(n))return function(s,o,f){try{return Promise.resolve(_h(function(){return Promise.resolve(n[i.mode==="sync"?"parse":"parseAsync"](s,l)).then(function(d){return f.shouldUseNativeValidation&&xo({},f),{errors:{},values:i.raw?Object.assign({},s):d}})},function(d){if((function(m){return Array.isArray(m==null?void 0:m.issues)})(d))return{values:{},errors:mh(ub(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(_h(function(){return Promise.resolve((i.mode==="sync"?ib:sb)(n,s,l)).then(function(d){return f.shouldUseNativeValidation&&xo({},f),{errors:{},values:i.raw?Object.assign({},s):d}})},function(d){if((function(m){return m instanceof rb})(d))return{values:{},errors:mh(ob(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")}/**
|
|
37
|
+
*/var Td;function Ig(){return Td||(Td=1,(function(n){(function(){var l={}.hasOwnProperty;function i(){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 i.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)l.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?(i.default=i,n.exports=i):window.classNames=i})()})(Iu)),Iu.exports}var Pg=Ig();const Ht=Hg(Pg);function Pu({children:n,variant:l}){return j.jsx("main",{className:Ht({"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":l==="main","w-full h-auto relative":l==="simple"}),"data-testid":"test_id_container","data-variant":l,id:"container_pbm",children:n})}function $n(n){return j.jsx("h2",{className:Ht("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 Kn(n){return j.jsx("p",{className:Ht("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 ev(){const{targetProduct:n}=Ft();return j.jsx("footer",{className:"w-full h-auto relative",id:"footer_pbm",children:j.jsxs("section",{className:Ht("flex items-center w-full h-auto gap-4",{"justify-center":n==null?void 0:n.industryLogo,"justify-start":!(n!=null&&n.industryLogo)}),children:[j.jsxs("section",{className:"w-4/5 h-auto",children:[j.jsx($n,{children:"Economize com o benefício do laboratório."}),j.jsx(Kn,{children:"Este produto tem preço exclusivo para clientes cadastrados no programa."})]}),(n==null?void 0:n.industryLogo)&&j.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 ke;(function(n){n.assertEqual=o=>{};function l(o){}n.assertIs=l;function i(o){throw new Error}n.assertNever=i,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})(ke||(ke={}));var Cd;(function(n){n.mergeShapes=(l,i)=>({...l,...i})})(Cd||(Cd={}));const ue=ke.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),yn=n=>{switch(typeof n){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return Number.isNaN(n)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(n)?ue.array:n===null?ue.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?ue.promise:typeof Map<"u"&&n instanceof Map?ue.map:typeof Set<"u"&&n instanceof Set?ue.set:typeof Date<"u"&&n instanceof Date?ue.date:ue.object;default:return ue.unknown}},K=ke.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 Qa extends Error{get errors(){return this.issues}constructor(l){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=l}format(l){const i=l||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(i(d));else{let m=s,g=0;for(;g<d.path.length;){const v=d.path[g];g===d.path.length-1?(m[v]=m[v]||{_errors:[]},m[v]._errors.push(i(d))):m[v]=m[v]||{_errors:[]},m=m[v],g++}}};return o(this),s}static assert(l){if(!(l instanceof Qa))throw new Error(`Not a ZodError: ${l}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ke.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(l=i=>i.message){const i={},s=[];for(const o of this.issues)if(o.path.length>0){const f=o.path[0];i[f]=i[f]||[],i[f].push(l(o))}else s.push(l(o));return{formErrors:s,fieldErrors:i}}get formErrors(){return this.flatten()}}Qa.create=n=>new Qa(n);const eo=(n,l)=>{let i;switch(n.code){case K.invalid_type:n.received===ue.undefined?i="Required":i=`Expected ${n.expected}, received ${n.received}`;break;case K.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(n.expected,ke.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:i=`Unrecognized key(s) in object: ${ke.joinValues(n.keys,", ")}`;break;case K.invalid_union:i="Invalid input";break;case K.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ke.joinValues(n.options)}`;break;case K.invalid_enum_value:i=`Invalid enum value. Expected ${ke.joinValues(n.options)}, received '${n.received}'`;break;case K.invalid_arguments:i="Invalid function arguments";break;case K.invalid_return_type:i="Invalid function return type";break;case K.invalid_date:i="Invalid date";break;case K.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(i=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?i=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?i=`Invalid input: must end with "${n.validation.endsWith}"`:ke.assertNever(n.validation):n.validation!=="regex"?i=`Invalid ${n.validation}`:i="Invalid";break;case K.too_small:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:i="Invalid input";break;case K.too_big:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?i=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:i="Invalid input";break;case K.custom:i="Invalid input";break;case K.invalid_intersection_types:i="Intersection results could not be merged";break;case K.not_multiple_of:i=`Number must be a multiple of ${n.multipleOf}`;break;case K.not_finite:i="Number must be finite";break;default:i=l.defaultError,ke.assertNever(n)}return{message:i}};let tv=eo;function av(){return tv}const nv=n=>{const{data:l,path:i,errorMaps:s,issueData:o}=n,f=[...i,...o.path||[]],d={...o,path:f};if(o.message!==void 0)return{...o,path:f,message:o.message};let m="";const g=s.filter(v=>!!v).slice().reverse();for(const v of g)m=v(d,{data:l,defaultError:m}).message;return{...o,path:f,message:m}};function ee(n,l){const i=av(),s=nv({issueData:l,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,i,i===eo?void 0:eo].filter(o=>!!o)});n.common.issues.push(s)}class Wt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(l,i){const s=[];for(const o of i){if(o.status==="aborted")return me;o.status==="dirty"&&l.dirty(),s.push(o.value)}return{status:l.value,value:s}}static async mergeObjectAsync(l,i){const s=[];for(const o of i){const f=await o.key,d=await o.value;s.push({key:f,value:d})}return Wt.mergeObjectSync(l,s)}static mergeObjectSync(l,i){const s={};for(const o of i){const{key:f,value:d}=o;if(f.status==="aborted"||d.status==="aborted")return me;f.status==="dirty"&&l.dirty(),d.status==="dirty"&&l.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||o.alwaysSet)&&(s[f.value]=d.value)}return{status:l.value,value:s}}}const me=Object.freeze({status:"aborted"}),kr=n=>({status:"dirty",value:n}),ua=n=>({status:"valid",value:n}),Ed=n=>n.status==="aborted",Od=n=>n.status==="dirty",Sl=n=>n.status==="valid",Xi=n=>typeof Promise<"u"&&n instanceof Promise;var ce;(function(n){n.errToObj=l=>typeof l=="string"?{message:l}:l||{},n.toString=l=>typeof l=="string"?l:l==null?void 0:l.message})(ce||(ce={}));class pn{constructor(l,i,s,o){this._cachedPath=[],this.parent=l,this.data=i,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 zd=(n,l)=>{if(Sl(l))return{success:!0,data:l.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 i=new Qa(n.common.issues);return this._error=i,this._error}}};function _e(n){if(!n)return{};const{errorMap:l,invalid_type_error:i,required_error:s,description:o}=n;if(l&&(i||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return l?{errorMap:l,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??i??m.defaultError}},description:o}}class Oe{get description(){return this._def.description}_getType(l){return yn(l.data)}_getOrReturnCtx(l,i){return i||{common:l.parent.common,data:l.data,parsedType:yn(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}_processInputParams(l){return{status:new Wt,ctx:{common:l.parent.common,data:l.data,parsedType:yn(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}}_parseSync(l){const i=this._parse(l);if(Xi(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(l){const i=this._parse(l);return Promise.resolve(i)}parse(l,i){const s=this.safeParse(l,i);if(s.success)return s.data;throw s.error}safeParse(l,i){const s={common:{issues:[],async:(i==null?void 0:i.async)??!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:yn(l)},o=this._parseSync({data:l,path:s.path,parent:s});return zd(s,o)}"~validate"(l){var s,o;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:yn(l)};if(!this["~standard"].async)try{const f=this._parseSync({data:l,path:[],parent:i});return Sl(f)?{value:f.value}:{issues:i.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),i.common={issues:[],async:!0}}return this._parseAsync({data:l,path:[],parent:i}).then(f=>Sl(f)?{value:f.value}:{issues:i.common.issues})}async parseAsync(l,i){const s=await this.safeParseAsync(l,i);if(s.success)return s.data;throw s.error}async safeParseAsync(l,i){const s={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:yn(l)},o=this._parse({data:l,path:s.path,parent:s}),f=await(Xi(o)?o:Promise.resolve(o));return zd(s,f)}refine(l,i){const s=o=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(o):i;return this._refinement((o,f)=>{const d=l(o),m=()=>f.addIssue({code:K.custom,...s(o)});return typeof Promise<"u"&&d instanceof Promise?d.then(g=>g?!0:(m(),!1)):d?!0:(m(),!1)})}refinement(l,i){return this._refinement((s,o)=>l(s)?!0:(o.addIssue(typeof i=="function"?i(s,o):i),!1))}_refinement(l){return new Tl({schema:this,typeName:ye.ZodEffects,effect:{type:"refinement",refinement:l}})}superRefine(l){return this._refinement(l)}constructor(l){this.spa=this.safeParseAsync,this._def=l,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:i=>this["~validate"](i)}}optional(){return bn.create(this,this._def)}nullable(){return Cl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ka.create(this)}promise(){return Fi.create(this,this._def)}or(l){return Ki.create([this,l],this._def)}and(l){return Ji.create(this,l,this._def)}transform(l){return new Tl({..._e(this._def),schema:this,typeName:ye.ZodEffects,effect:{type:"transform",transform:l}})}default(l){const i=typeof l=="function"?l:()=>l;return new no({..._e(this._def),innerType:this,defaultValue:i,typeName:ye.ZodDefault})}brand(){return new Cv({typeName:ye.ZodBranded,type:this,..._e(this._def)})}catch(l){const i=typeof l=="function"?l:()=>l;return new lo({..._e(this._def),innerType:this,catchValue:i,typeName:ye.ZodCatch})}describe(l){const i=this.constructor;return new i({...this._def,description:l})}pipe(l){return ro.create(this,l)}readonly(){return io.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const lv=/^c[^\s-]{8,}$/i,rv=/^[0-9a-z]+$/,iv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sv=/^[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,uv=/^[a-z0-9_-]{21}$/i,ov=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cv=/^[-+]?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)?)??$/,fv=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,dv="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let to;const hv=/^(?:(?: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])$/,mv=/^(?:(?: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])$/,yv=/^(([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]))$/,pv=/^(([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])$/,gv=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vv=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kd="((\\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])))",bv=new RegExp(`^${kd}$`);function Nd(n){let l="[0-5]\\d";n.precision?l=`${l}\\.\\d{${n.precision}}`:n.precision==null&&(l=`${l}(\\.\\d+)?`);const i=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${l})${i}`}function xv(n){return new RegExp(`^${Nd(n)}$`)}function _v(n){let l=`${kd}T${Nd(n)}`;const i=[];return i.push(n.local?"Z?":"Z"),n.offset&&i.push("([+-]\\d{2}:?\\d{2})"),l=`${l}(${i.join("|")})`,new RegExp(`^${l}$`)}function Sv(n,l){return!!((l==="v4"||!l)&&hv.test(n)||(l==="v6"||!l)&&yv.test(n))}function wv(n,l){if(!ov.test(n))return!1;try{const[i]=n.split(".");if(!i)return!1;const s=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.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||l&&o.alg!==l)}catch{return!1}}function Av(n,l){return!!((l==="v4"||!l)&&mv.test(n)||(l==="v6"||!l)&&pv.test(n))}class gn extends Oe{_parse(l){if(this._def.coerce&&(l.data=String(l.data)),this._getType(l)!==ue.string){const f=this._getOrReturnCtx(l);return ee(f,{code:K.invalid_type,expected:ue.string,received:f.parsedType}),me}const s=new Wt;let o;for(const f of this._def.checks)if(f.kind==="min")l.data.length<f.value&&(o=this._getOrReturnCtx(l,o),ee(o,{code:K.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")l.data.length>f.value&&(o=this._getOrReturnCtx(l,o),ee(o,{code:K.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const d=l.data.length>f.value,m=l.data.length<f.value;(d||m)&&(o=this._getOrReturnCtx(l,o),d?ee(o,{code:K.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&ee(o,{code:K.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")fv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"email",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")to||(to=new RegExp(dv,"u")),to.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"emoji",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")sv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"uuid",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")uv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"nanoid",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")lv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"cuid",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")rv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"cuid2",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")iv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"ulid",code:K.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(l.data)}catch{o=this._getOrReturnCtx(l,o),ee(o,{validation:"url",code:K.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"regex",code:K.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?l.data=l.data.trim():f.kind==="includes"?l.data.includes(f.value,f.position)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?l.data=l.data.toLowerCase():f.kind==="toUpperCase"?l.data=l.data.toUpperCase():f.kind==="startsWith"?l.data.startsWith(f.value)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?l.data.endsWith(f.value)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?_v(f).test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?bv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?xv(f).test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{code:K.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?cv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"duration",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?Sv(l.data,f.version)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"ip",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?wv(l.data,f.alg)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"jwt",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?Av(l.data,f.version)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"cidr",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?gv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"base64",code:K.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?vv.test(l.data)||(o=this._getOrReturnCtx(l,o),ee(o,{validation:"base64url",code:K.invalid_string,message:f.message}),s.dirty()):ke.assertNever(f);return{status:s.value,value:l.data}}_regex(l,i,s){return this.refinement(o=>l.test(o),{validation:i,code:K.invalid_string,...ce.errToObj(s)})}_addCheck(l){return new gn({...this._def,checks:[...this._def.checks,l]})}email(l){return this._addCheck({kind:"email",...ce.errToObj(l)})}url(l){return this._addCheck({kind:"url",...ce.errToObj(l)})}emoji(l){return this._addCheck({kind:"emoji",...ce.errToObj(l)})}uuid(l){return this._addCheck({kind:"uuid",...ce.errToObj(l)})}nanoid(l){return this._addCheck({kind:"nanoid",...ce.errToObj(l)})}cuid(l){return this._addCheck({kind:"cuid",...ce.errToObj(l)})}cuid2(l){return this._addCheck({kind:"cuid2",...ce.errToObj(l)})}ulid(l){return this._addCheck({kind:"ulid",...ce.errToObj(l)})}base64(l){return this._addCheck({kind:"base64",...ce.errToObj(l)})}base64url(l){return this._addCheck({kind:"base64url",...ce.errToObj(l)})}jwt(l){return this._addCheck({kind:"jwt",...ce.errToObj(l)})}ip(l){return this._addCheck({kind:"ip",...ce.errToObj(l)})}cidr(l){return this._addCheck({kind:"cidr",...ce.errToObj(l)})}datetime(l){return typeof l=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:l}):this._addCheck({kind:"datetime",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,offset:(l==null?void 0:l.offset)??!1,local:(l==null?void 0:l.local)??!1,...ce.errToObj(l==null?void 0:l.message)})}date(l){return this._addCheck({kind:"date",message:l})}time(l){return typeof l=="string"?this._addCheck({kind:"time",precision:null,message:l}):this._addCheck({kind:"time",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,...ce.errToObj(l==null?void 0:l.message)})}duration(l){return this._addCheck({kind:"duration",...ce.errToObj(l)})}regex(l,i){return this._addCheck({kind:"regex",regex:l,...ce.errToObj(i)})}includes(l,i){return this._addCheck({kind:"includes",value:l,position:i==null?void 0:i.position,...ce.errToObj(i==null?void 0:i.message)})}startsWith(l,i){return this._addCheck({kind:"startsWith",value:l,...ce.errToObj(i)})}endsWith(l,i){return this._addCheck({kind:"endsWith",value:l,...ce.errToObj(i)})}min(l,i){return this._addCheck({kind:"min",value:l,...ce.errToObj(i)})}max(l,i){return this._addCheck({kind:"max",value:l,...ce.errToObj(i)})}length(l,i){return this._addCheck({kind:"length",value:l,...ce.errToObj(i)})}nonempty(l){return this.min(1,ce.errToObj(l))}trim(){return new gn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new gn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new gn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(l=>l.kind==="datetime")}get isDate(){return!!this._def.checks.find(l=>l.kind==="date")}get isTime(){return!!this._def.checks.find(l=>l.kind==="time")}get isDuration(){return!!this._def.checks.find(l=>l.kind==="duration")}get isEmail(){return!!this._def.checks.find(l=>l.kind==="email")}get isURL(){return!!this._def.checks.find(l=>l.kind==="url")}get isEmoji(){return!!this._def.checks.find(l=>l.kind==="emoji")}get isUUID(){return!!this._def.checks.find(l=>l.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(l=>l.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(l=>l.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(l=>l.kind==="cuid2")}get isULID(){return!!this._def.checks.find(l=>l.kind==="ulid")}get isIP(){return!!this._def.checks.find(l=>l.kind==="ip")}get isCIDR(){return!!this._def.checks.find(l=>l.kind==="cidr")}get isBase64(){return!!this._def.checks.find(l=>l.kind==="base64")}get isBase64url(){return!!this._def.checks.find(l=>l.kind==="base64url")}get minLength(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxLength(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}}gn.create=n=>new gn({checks:[],typeName:ye.ZodString,coerce:(n==null?void 0:n.coerce)??!1,..._e(n)});function Tv(n,l){const i=(n.toString().split(".")[1]||"").length,s=(l.toString().split(".")[1]||"").length,o=i>s?i:s,f=Number.parseInt(n.toFixed(o).replace(".","")),d=Number.parseInt(l.toFixed(o).replace(".",""));return f%d/10**o}class Nr extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(l){if(this._def.coerce&&(l.data=Number(l.data)),this._getType(l)!==ue.number){const f=this._getOrReturnCtx(l);return ee(f,{code:K.invalid_type,expected:ue.number,received:f.parsedType}),me}let s;const o=new Wt;for(const f of this._def.checks)f.kind==="int"?ke.isInteger(l.data)||(s=this._getOrReturnCtx(l,s),ee(s,{code:K.invalid_type,expected:"integer",received:"float",message:f.message}),o.dirty()):f.kind==="min"?(f.inclusive?l.data<f.value:l.data<=f.value)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?l.data>f.value:l.data>=f.value)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="multipleOf"?Tv(l.data,f.value)!==0&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):f.kind==="finite"?Number.isFinite(l.data)||(s=this._getOrReturnCtx(l,s),ee(s,{code:K.not_finite,message:f.message}),o.dirty()):ke.assertNever(f);return{status:o.value,value:l.data}}gte(l,i){return this.setLimit("min",l,!0,ce.toString(i))}gt(l,i){return this.setLimit("min",l,!1,ce.toString(i))}lte(l,i){return this.setLimit("max",l,!0,ce.toString(i))}lt(l,i){return this.setLimit("max",l,!1,ce.toString(i))}setLimit(l,i,s,o){return new Nr({...this._def,checks:[...this._def.checks,{kind:l,value:i,inclusive:s,message:ce.toString(o)}]})}_addCheck(l){return new Nr({...this._def,checks:[...this._def.checks,l]})}int(l){return this._addCheck({kind:"int",message:ce.toString(l)})}positive(l){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(l)})}negative(l){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(l)})}multipleOf(l,i){return this._addCheck({kind:"multipleOf",value:l,message:ce.toString(i)})}finite(l){return this._addCheck({kind:"finite",message:ce.toString(l)})}safe(l){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(l)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(l)})}get minValue(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxValue(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}get isInt(){return!!this._def.checks.find(l=>l.kind==="int"||l.kind==="multipleOf"&&ke.isInteger(l.value))}get isFinite(){let l=null,i=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(i===null||s.value>i)&&(i=s.value):s.kind==="max"&&(l===null||s.value<l)&&(l=s.value)}return Number.isFinite(i)&&Number.isFinite(l)}}Nr.create=n=>new Nr({checks:[],typeName:ye.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,..._e(n)});class Mr extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(l){if(this._def.coerce)try{l.data=BigInt(l.data)}catch{return this._getInvalidInput(l)}if(this._getType(l)!==ue.bigint)return this._getInvalidInput(l);let s;const o=new Wt;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?l.data<f.value:l.data<=f.value)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?l.data>f.value:l.data>=f.value)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="multipleOf"?l.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(l,s),ee(s,{code:K.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):ke.assertNever(f);return{status:o.value,value:l.data}}_getInvalidInput(l){const i=this._getOrReturnCtx(l);return ee(i,{code:K.invalid_type,expected:ue.bigint,received:i.parsedType}),me}gte(l,i){return this.setLimit("min",l,!0,ce.toString(i))}gt(l,i){return this.setLimit("min",l,!1,ce.toString(i))}lte(l,i){return this.setLimit("max",l,!0,ce.toString(i))}lt(l,i){return this.setLimit("max",l,!1,ce.toString(i))}setLimit(l,i,s,o){return new Mr({...this._def,checks:[...this._def.checks,{kind:l,value:i,inclusive:s,message:ce.toString(o)}]})}_addCheck(l){return new Mr({...this._def,checks:[...this._def.checks,l]})}positive(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(l)})}negative(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(l)})}multipleOf(l,i){return this._addCheck({kind:"multipleOf",value:l,message:ce.toString(i)})}get minValue(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxValue(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}}Mr.create=n=>new Mr({checks:[],typeName:ye.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,..._e(n)});class Md extends Oe{_parse(l){if(this._def.coerce&&(l.data=!!l.data),this._getType(l)!==ue.boolean){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.boolean,received:s.parsedType}),me}return ua(l.data)}}Md.create=n=>new Md({typeName:ye.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,..._e(n)});class $i extends Oe{_parse(l){if(this._def.coerce&&(l.data=new Date(l.data)),this._getType(l)!==ue.date){const f=this._getOrReturnCtx(l);return ee(f,{code:K.invalid_type,expected:ue.date,received:f.parsedType}),me}if(Number.isNaN(l.data.getTime())){const f=this._getOrReturnCtx(l);return ee(f,{code:K.invalid_date}),me}const s=new Wt;let o;for(const f of this._def.checks)f.kind==="min"?l.data.getTime()<f.value&&(o=this._getOrReturnCtx(l,o),ee(o,{code:K.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?l.data.getTime()>f.value&&(o=this._getOrReturnCtx(l,o),ee(o,{code:K.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):ke.assertNever(f);return{status:s.value,value:new Date(l.data.getTime())}}_addCheck(l){return new $i({...this._def,checks:[...this._def.checks,l]})}min(l,i){return this._addCheck({kind:"min",value:l.getTime(),message:ce.toString(i)})}max(l,i){return this._addCheck({kind:"max",value:l.getTime(),message:ce.toString(i)})}get minDate(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l!=null?new Date(l):null}get maxDate(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l!=null?new Date(l):null}}$i.create=n=>new $i({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:ye.ZodDate,..._e(n)});class Dd extends Oe{_parse(l){if(this._getType(l)!==ue.symbol){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.symbol,received:s.parsedType}),me}return ua(l.data)}}Dd.create=n=>new Dd({typeName:ye.ZodSymbol,..._e(n)});class jd extends Oe{_parse(l){if(this._getType(l)!==ue.undefined){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.undefined,received:s.parsedType}),me}return ua(l.data)}}jd.create=n=>new jd({typeName:ye.ZodUndefined,..._e(n)});class Rd extends Oe{_parse(l){if(this._getType(l)!==ue.null){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.null,received:s.parsedType}),me}return ua(l.data)}}Rd.create=n=>new Rd({typeName:ye.ZodNull,..._e(n)});class Ud extends Oe{constructor(){super(...arguments),this._any=!0}_parse(l){return ua(l.data)}}Ud.create=n=>new Ud({typeName:ye.ZodAny,..._e(n)});class Bd extends Oe{constructor(){super(...arguments),this._unknown=!0}_parse(l){return ua(l.data)}}Bd.create=n=>new Bd({typeName:ye.ZodUnknown,..._e(n)});class vn extends Oe{_parse(l){const i=this._getOrReturnCtx(l);return ee(i,{code:K.invalid_type,expected:ue.never,received:i.parsedType}),me}}vn.create=n=>new vn({typeName:ye.ZodNever,..._e(n)});class Vd extends Oe{_parse(l){if(this._getType(l)!==ue.undefined){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.void,received:s.parsedType}),me}return ua(l.data)}}Vd.create=n=>new Vd({typeName:ye.ZodVoid,..._e(n)});class ka extends Oe{_parse(l){const{ctx:i,status:s}=this._processInputParams(l),o=this._def;if(i.parsedType!==ue.array)return ee(i,{code:K.invalid_type,expected:ue.array,received:i.parsedType}),me;if(o.exactLength!==null){const d=i.data.length>o.exactLength.value,m=i.data.length<o.exactLength.value;(d||m)&&(ee(i,{code:d?K.too_big:K.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&&i.data.length<o.minLength.value&&(ee(i,{code:K.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&i.data.length>o.maxLength.value&&(ee(i,{code:K.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),i.common.async)return Promise.all([...i.data].map((d,m)=>o.type._parseAsync(new pn(i,d,i.path,m)))).then(d=>Wt.mergeArray(s,d));const f=[...i.data].map((d,m)=>o.type._parseSync(new pn(i,d,i.path,m)));return Wt.mergeArray(s,f)}get element(){return this._def.type}min(l,i){return new ka({...this._def,minLength:{value:l,message:ce.toString(i)}})}max(l,i){return new ka({...this._def,maxLength:{value:l,message:ce.toString(i)}})}length(l,i){return new ka({...this._def,exactLength:{value:l,message:ce.toString(i)}})}nonempty(l){return this.min(1,l)}}ka.create=(n,l)=>new ka({type:n,minLength:null,maxLength:null,exactLength:null,typeName:ye.ZodArray,..._e(l)});function wl(n){if(n instanceof ht){const l={};for(const i in n.shape){const s=n.shape[i];l[i]=bn.create(wl(s))}return new ht({...n._def,shape:()=>l})}else return n instanceof ka?new ka({...n._def,type:wl(n.element)}):n instanceof bn?bn.create(wl(n.unwrap())):n instanceof Cl?Cl.create(wl(n.unwrap())):n instanceof Jn?Jn.create(n.items.map(l=>wl(l))):n}class ht extends Oe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const l=this._def.shape(),i=ke.objectKeys(l);return this._cached={shape:l,keys:i},this._cached}_parse(l){if(this._getType(l)!==ue.object){const v=this._getOrReturnCtx(l);return ee(v,{code:K.invalid_type,expected:ue.object,received:v.parsedType}),me}const{status:s,ctx:o}=this._processInputParams(l),{shape:f,keys:d}=this._getCached(),m=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(const v in o.data)d.includes(v)||m.push(v);const g=[];for(const v of d){const T=f[v],w=o.data[v];g.push({key:{status:"valid",value:v},value:T._parse(new pn(o,w,o.path,v)),alwaysSet:v in o.data})}if(this._def.catchall instanceof vn){const v=this._def.unknownKeys;if(v==="passthrough")for(const T of m)g.push({key:{status:"valid",value:T},value:{status:"valid",value:o.data[T]}});else if(v==="strict")m.length>0&&(ee(o,{code:K.unrecognized_keys,keys:m}),s.dirty());else if(v!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const v=this._def.catchall;for(const T of m){const w=o.data[T];g.push({key:{status:"valid",value:T},value:v._parse(new pn(o,w,o.path,T)),alwaysSet:T in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const v=[];for(const T of g){const w=await T.key,R=await T.value;v.push({key:w,value:R,alwaysSet:T.alwaysSet})}return v}).then(v=>Wt.mergeObjectSync(s,v)):Wt.mergeObjectSync(s,g)}get shape(){return this._def.shape()}strict(l){return ce.errToObj,new ht({...this._def,unknownKeys:"strict",...l!==void 0?{errorMap:(i,s)=>{var f,d;const o=((d=(f=this._def).errorMap)==null?void 0:d.call(f,i,s).message)??s.defaultError;return i.code==="unrecognized_keys"?{message:ce.errToObj(l).message??o}:{message:o}}}:{}})}strip(){return new ht({...this._def,unknownKeys:"strip"})}passthrough(){return new ht({...this._def,unknownKeys:"passthrough"})}extend(l){return new ht({...this._def,shape:()=>({...this._def.shape(),...l})})}merge(l){return new ht({unknownKeys:l._def.unknownKeys,catchall:l._def.catchall,shape:()=>({...this._def.shape(),...l._def.shape()}),typeName:ye.ZodObject})}setKey(l,i){return this.augment({[l]:i})}catchall(l){return new ht({...this._def,catchall:l})}pick(l){const i={};for(const s of ke.objectKeys(l))l[s]&&this.shape[s]&&(i[s]=this.shape[s]);return new ht({...this._def,shape:()=>i})}omit(l){const i={};for(const s of ke.objectKeys(this.shape))l[s]||(i[s]=this.shape[s]);return new ht({...this._def,shape:()=>i})}deepPartial(){return wl(this)}partial(l){const i={};for(const s of ke.objectKeys(this.shape)){const o=this.shape[s];l&&!l[s]?i[s]=o:i[s]=o.optional()}return new ht({...this._def,shape:()=>i})}required(l){const i={};for(const s of ke.objectKeys(this.shape))if(l&&!l[s])i[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof bn;)f=f._def.innerType;i[s]=f}return new ht({...this._def,shape:()=>i})}keyof(){return Zd(ke.objectKeys(this.shape))}}ht.create=(n,l)=>new ht({shape:()=>n,unknownKeys:"strip",catchall:vn.create(),typeName:ye.ZodObject,..._e(l)}),ht.strictCreate=(n,l)=>new ht({shape:()=>n,unknownKeys:"strict",catchall:vn.create(),typeName:ye.ZodObject,..._e(l)}),ht.lazycreate=(n,l)=>new ht({shape:n,unknownKeys:"strip",catchall:vn.create(),typeName:ye.ZodObject,..._e(l)});class Ki extends Oe{_parse(l){const{ctx:i}=this._processInputParams(l),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 i.common.issues.push(...m.ctx.common.issues),m.result;const d=f.map(m=>new Qa(m.ctx.common.issues));return ee(i,{code:K.invalid_union,unionErrors:d}),me}if(i.common.async)return Promise.all(s.map(async f=>{const d={...i,common:{...i.common,issues:[]},parent:null};return{result:await f._parseAsync({data:i.data,path:i.path,parent:d}),ctx:d}})).then(o);{let f;const d=[];for(const g of s){const v={...i,common:{...i.common,issues:[]},parent:null},T=g._parseSync({data:i.data,path:i.path,parent:v});if(T.status==="valid")return T;T.status==="dirty"&&!f&&(f={result:T,ctx:v}),v.common.issues.length&&d.push(v.common.issues)}if(f)return i.common.issues.push(...f.ctx.common.issues),f.result;const m=d.map(g=>new Qa(g));return ee(i,{code:K.invalid_union,unionErrors:m}),me}}get options(){return this._def.options}}Ki.create=(n,l)=>new Ki({options:n,typeName:ye.ZodUnion,..._e(l)});function ao(n,l){const i=yn(n),s=yn(l);if(n===l)return{valid:!0,data:n};if(i===ue.object&&s===ue.object){const o=ke.objectKeys(l),f=ke.objectKeys(n).filter(m=>o.indexOf(m)!==-1),d={...n,...l};for(const m of f){const g=ao(n[m],l[m]);if(!g.valid)return{valid:!1};d[m]=g.data}return{valid:!0,data:d}}else if(i===ue.array&&s===ue.array){if(n.length!==l.length)return{valid:!1};const o=[];for(let f=0;f<n.length;f++){const d=n[f],m=l[f],g=ao(d,m);if(!g.valid)return{valid:!1};o.push(g.data)}return{valid:!0,data:o}}else return i===ue.date&&s===ue.date&&+n==+l?{valid:!0,data:n}:{valid:!1}}class Ji extends Oe{_parse(l){const{status:i,ctx:s}=this._processInputParams(l),o=(f,d)=>{if(Ed(f)||Ed(d))return me;const m=ao(f.value,d.value);return m.valid?((Od(f)||Od(d))&&i.dirty(),{status:i.value,value:m.data}):(ee(s,{code:K.invalid_intersection_types}),me)};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}))}}Ji.create=(n,l,i)=>new Ji({left:n,right:l,typeName:ye.ZodIntersection,..._e(i)});class Jn extends Oe{_parse(l){const{status:i,ctx:s}=this._processInputParams(l);if(s.parsedType!==ue.array)return ee(s,{code:K.invalid_type,expected:ue.array,received:s.parsedType}),me;if(s.data.length<this._def.items.length)return ee(s,{code:K.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&s.data.length>this._def.items.length&&(ee(s,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const f=[...s.data].map((d,m)=>{const g=this._def.items[m]||this._def.rest;return g?g._parse(new pn(s,d,s.path,m)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>Wt.mergeArray(i,d)):Wt.mergeArray(i,f)}get items(){return this._def.items}rest(l){return new Jn({...this._def,rest:l})}}Jn.create=(n,l)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jn({items:n,typeName:ye.ZodTuple,rest:null,..._e(l)})};class Ld extends Oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(l){const{status:i,ctx:s}=this._processInputParams(l);if(s.parsedType!==ue.map)return ee(s,{code:K.invalid_type,expected:ue.map,received:s.parsedType}),me;const o=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([m,g],v)=>({key:o._parse(new pn(s,m,s.path,[v,"key"])),value:f._parse(new pn(s,g,s.path,[v,"value"]))}));if(s.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const g of d){const v=await g.key,T=await g.value;if(v.status==="aborted"||T.status==="aborted")return me;(v.status==="dirty"||T.status==="dirty")&&i.dirty(),m.set(v.value,T.value)}return{status:i.value,value:m}})}else{const m=new Map;for(const g of d){const v=g.key,T=g.value;if(v.status==="aborted"||T.status==="aborted")return me;(v.status==="dirty"||T.status==="dirty")&&i.dirty(),m.set(v.value,T.value)}return{status:i.value,value:m}}}}Ld.create=(n,l,i)=>new Ld({valueType:l,keyType:n,typeName:ye.ZodMap,..._e(i)});class Dr extends Oe{_parse(l){const{status:i,ctx:s}=this._processInputParams(l);if(s.parsedType!==ue.set)return ee(s,{code:K.invalid_type,expected:ue.set,received:s.parsedType}),me;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(ee(s,{code:K.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),i.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(ee(s,{code:K.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),i.dirty());const f=this._def.valueType;function d(g){const v=new Set;for(const T of g){if(T.status==="aborted")return me;T.status==="dirty"&&i.dirty(),v.add(T.value)}return{status:i.value,value:v}}const m=[...s.data.values()].map((g,v)=>f._parse(new pn(s,g,s.path,v)));return s.common.async?Promise.all(m).then(g=>d(g)):d(m)}min(l,i){return new Dr({...this._def,minSize:{value:l,message:ce.toString(i)}})}max(l,i){return new Dr({...this._def,maxSize:{value:l,message:ce.toString(i)}})}size(l,i){return this.min(l,i).max(l,i)}nonempty(l){return this.min(1,l)}}Dr.create=(n,l)=>new Dr({valueType:n,minSize:null,maxSize:null,typeName:ye.ZodSet,..._e(l)});class Hd extends Oe{get schema(){return this._def.getter()}_parse(l){const{ctx:i}=this._processInputParams(l);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}Hd.create=(n,l)=>new Hd({getter:n,typeName:ye.ZodLazy,..._e(l)});class qd extends Oe{_parse(l){if(l.data!==this._def.value){const i=this._getOrReturnCtx(l);return ee(i,{received:i.data,code:K.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:l.data}}get value(){return this._def.value}}qd.create=(n,l)=>new qd({value:n,typeName:ye.ZodLiteral,..._e(l)});function Zd(n,l){return new Al({values:n,typeName:ye.ZodEnum,..._e(l)})}class Al extends Oe{_parse(l){if(typeof l.data!="string"){const i=this._getOrReturnCtx(l),s=this._def.values;return ee(i,{expected:ke.joinValues(s),received:i.parsedType,code:K.invalid_type}),me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(l.data)){const i=this._getOrReturnCtx(l),s=this._def.values;return ee(i,{received:i.data,code:K.invalid_enum_value,options:s}),me}return ua(l.data)}get options(){return this._def.values}get enum(){const l={};for(const i of this._def.values)l[i]=i;return l}get Values(){const l={};for(const i of this._def.values)l[i]=i;return l}get Enum(){const l={};for(const i of this._def.values)l[i]=i;return l}extract(l,i=this._def){return Al.create(l,{...this._def,...i})}exclude(l,i=this._def){return Al.create(this.options.filter(s=>!l.includes(s)),{...this._def,...i})}}Al.create=Zd;class Yd extends Oe{_parse(l){const i=ke.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(l);if(s.parsedType!==ue.string&&s.parsedType!==ue.number){const o=ke.objectValues(i);return ee(s,{expected:ke.joinValues(o),received:s.parsedType,code:K.invalid_type}),me}if(this._cache||(this._cache=new Set(ke.getValidEnumValues(this._def.values))),!this._cache.has(l.data)){const o=ke.objectValues(i);return ee(s,{received:s.data,code:K.invalid_enum_value,options:o}),me}return ua(l.data)}get enum(){return this._def.values}}Yd.create=(n,l)=>new Yd({values:n,typeName:ye.ZodNativeEnum,..._e(l)});class Fi extends Oe{unwrap(){return this._def.type}_parse(l){const{ctx:i}=this._processInputParams(l);if(i.parsedType!==ue.promise&&i.common.async===!1)return ee(i,{code:K.invalid_type,expected:ue.promise,received:i.parsedType}),me;const s=i.parsedType===ue.promise?i.data:Promise.resolve(i.data);return ua(s.then(o=>this._def.type.parseAsync(o,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Fi.create=(n,l)=>new Fi({type:n,typeName:ye.ZodPromise,..._e(l)});class Tl extends Oe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ye.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(l){const{status:i,ctx:s}=this._processInputParams(l),o=this._def.effect||null,f={addIssue:d=>{ee(s,d),d.fatal?i.abort():i.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(i.value==="aborted")return me;const g=await this._def.schema._parseAsync({data:m,path:s.path,parent:s});return g.status==="aborted"?me:g.status==="dirty"||i.value==="dirty"?kr(g.value):g});{if(i.value==="aborted")return me;const m=this._def.schema._parseSync({data:d,path:s.path,parent:s});return m.status==="aborted"?me:m.status==="dirty"||i.value==="dirty"?kr(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"?me:(m.status==="dirty"&&i.dirty(),d(m.value),{status:i.value,value:m.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(m=>m.status==="aborted"?me:(m.status==="dirty"&&i.dirty(),d(m.value).then(()=>({status:i.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(!Sl(d))return me;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:i.value,value:m}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>Sl(d)?Promise.resolve(o.transform(d.value,f)).then(m=>({status:i.value,value:m})):me);ke.assertNever(o)}}Tl.create=(n,l,i)=>new Tl({schema:n,typeName:ye.ZodEffects,effect:l,..._e(i)}),Tl.createWithPreprocess=(n,l,i)=>new Tl({schema:l,effect:{type:"preprocess",transform:n},typeName:ye.ZodEffects,..._e(i)});class bn extends Oe{_parse(l){return this._getType(l)===ue.undefined?ua(void 0):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}bn.create=(n,l)=>new bn({innerType:n,typeName:ye.ZodOptional,..._e(l)});class Cl extends Oe{_parse(l){return this._getType(l)===ue.null?ua(null):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}Cl.create=(n,l)=>new Cl({innerType:n,typeName:ye.ZodNullable,..._e(l)});class no extends Oe{_parse(l){const{ctx:i}=this._processInputParams(l);let s=i.data;return i.parsedType===ue.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}no.create=(n,l)=>new no({innerType:n,typeName:ye.ZodDefault,defaultValue:typeof l.default=="function"?l.default:()=>l.default,..._e(l)});class lo extends Oe{_parse(l){const{ctx:i}=this._processInputParams(l),s={...i,common:{...i.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Xi(o)?o.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Qa(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Qa(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}lo.create=(n,l)=>new lo({innerType:n,typeName:ye.ZodCatch,catchValue:typeof l.catch=="function"?l.catch:()=>l.catch,..._e(l)});class Gd extends Oe{_parse(l){if(this._getType(l)!==ue.nan){const s=this._getOrReturnCtx(l);return ee(s,{code:K.invalid_type,expected:ue.nan,received:s.parsedType}),me}return{status:"valid",value:l.data}}}Gd.create=n=>new Gd({typeName:ye.ZodNaN,..._e(n)});class Cv extends Oe{_parse(l){const{ctx:i}=this._processInputParams(l),s=i.data;return this._def.type._parse({data:s,path:i.path,parent:i})}unwrap(){return this._def.type}}class ro extends Oe{_parse(l){const{status:i,ctx:s}=this._processInputParams(l);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"?me:f.status==="dirty"?(i.dirty(),kr(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"?me:o.status==="dirty"?(i.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(l,i){return new ro({in:l,out:i,typeName:ye.ZodPipeline})}}class io extends Oe{_parse(l){const i=this._def.innerType._parse(l),s=o=>(Sl(o)&&(o.value=Object.freeze(o.value)),o);return Xi(i)?i.then(o=>s(o)):s(i)}unwrap(){return this._def.innerType}}io.create=(n,l)=>new io({innerType:n,typeName:ye.ZodReadonly,..._e(l)});var ye;(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"})(ye||(ye={}));const Qd=gn.create;vn.create,ka.create;const Ev=ht.create;Ki.create,Ji.create,Jn.create,Al.create,Fi.create,bn.create,Cl.create;const Ov=Ev({securityNumber:Qd({required_error:"CPF é obrigatório."}).refine(n=>n.replace(/\D/g,"").length>=11,"CPF deve conter no mínimo 11 caracteres.").refine(n=>{const l=n.replace(/\D/g,"");return!!Number(l)},"CPF deve conter apenas números."),coupon:Qd({required_error:"Cupom / ID do Cartão obrigatório."}).optional()}),zv=n=>{const l=n.replace(/\D/g,"");if(l.length<=11)return l.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")},kv=n=>({acceptance:"isInvalid","industry registration":"isRegistered",active:"isActivated"})[n];/*! js-cookie v3.0.5 | MIT */function Wi(n){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var s in i)n[s]=i[s]}return n}var Nv={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 so(n,l){function i(o,f,d){if(!(typeof document>"u")){d=Wi({},l,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("="),v=g.slice(1).join("=");try{var T=decodeURIComponent(g[0]);if(d[T]=n.read(v,T),o===T)break}catch{}}return o?d[o]:d}}return Object.create({set:i,get:s,remove:function(o,f){i(o,"",Wi({},f,{expires:-1}))},withAttributes:function(o){return so(this.converter,Wi({},this.attributes,o))},withConverter:function(o){return so(Wi({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(n)}})}var jr=so(Nv,{path:"/"});const uo={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"https://pbm.santoremedio.alinhaops.com.br/api/v1",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"},Na=n=>{var l;if(typeof{url:mn&&mn.tagName.toUpperCase()==="SCRIPT"&&mn.src||new URL("index.js",document.baseURI).href}<"u")return uo==null?void 0:uo[n];if(typeof process<"u")return(l=process.env)==null?void 0:l[n]},Xd=async({document:n,products:l})=>{const i=Na("VITE_API_URL");if(!i)throw new Error("API URL is not defined in environment variables");const s=jr.get("pbm-token");if(!s)throw new Error("Token is not defined in cookies or is expired");const f=await(await fetch(`${i}/products/benefitByDocument`,{method:"POST",headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"},body:JSON.stringify({consumer:{document:n},products:l})})).json();if(!f.success)throw new Error(f.message||"Failed to fetch document validation");return f};function oa(n){return j.jsx("button",{...n,className:Ht("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 Rr=n=>n.type==="checkbox",Fn=n=>n instanceof Date,qt=n=>n==null;const $d=n=>typeof n=="object";var ut=n=>!qt(n)&&!Array.isArray(n)&&$d(n)&&!Fn(n),Mv=n=>ut(n)&&n.target?Rr(n.target)?n.target.checked:n.target.value:n,Kd=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,Dv=(n,l)=>n.has(Kd(l)),jv=n=>{const l=n.constructor&&n.constructor.prototype;return ut(l)&&l.hasOwnProperty("isPrototypeOf")},oo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function _t(n){if(n instanceof Date)return new Date(n);const l=typeof FileList<"u"&&n instanceof FileList;if(oo&&(n instanceof Blob||l))return n;const i=Array.isArray(n);if(!i&&!(ut(n)&&jv(n)))return n;const s=i?[]:Object.create(Object.getPrototypeOf(n));for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(s[o]=_t(n[o]));return s}var Ii=n=>/^\w*$/.test(n),at=n=>n===void 0,co=n=>Array.isArray(n)?n.filter(Boolean):[],fo=n=>co(n.replace(/["|']|\]/g,"").split(/\.|\[/)),ne=(n,l,i)=>{if(!l||!ut(n))return i;const s=(Ii(l)?[l]:fo(l)).reduce((o,f)=>qt(o)?o:o[f],n);return at(s)||s===n?at(n[l])?i:n[l]:s},Ma=n=>typeof n=="boolean",Aa=n=>typeof n=="function",Ge=(n,l,i)=>{let s=-1;const o=Ii(l)?[l]:fo(l),f=o.length,d=f-1;for(;++s<f;){const m=o[s];let g=i;if(s!==d){const v=n[m];g=ut(v)||Array.isArray(v)?v:isNaN(+o[s+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;n[m]=g,n=n[m]}};const El={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Ta={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ca={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ho="form",Jd="root",Rv=he.createContext(null);Rv.displayName="HookFormControlContext";var Uv=(n,l,i,s=!0)=>{const o={defaultValues:l._defaultValues};for(const f in n)Object.defineProperty(o,f,{get:()=>{const d=f;return l._proxyFormState[d]!==Ta.all&&(l._proxyFormState[d]=!s||Ta.all),n[d]}});return o};const Bv=typeof window<"u"?he.useLayoutEffect:he.useEffect;var jt=n=>typeof n=="string",Vv=(n,l,i,s,o)=>jt(n)?(s&&l.watch.add(n),ne(i,n,o)):Array.isArray(n)?n.map(f=>(s&&l.watch.add(f),ne(i,f))):(s&&(l.watchAll=!0),i),mo=n=>qt(n)||!$d(n);function xn(n,l,i=new WeakSet){if(mo(n)||mo(l))return Object.is(n,l);if(Fn(n)&&Fn(l))return Object.is(n.getTime(),l.getTime());const s=Object.keys(n),o=Object.keys(l);if(s.length!==o.length)return!1;if(i.has(n)||i.has(l))return!0;i.add(n),i.add(l);for(const f of s){const d=n[f];if(!o.includes(f))return!1;if(f!=="ref"){const m=l[f];if(Fn(d)&&Fn(m)||ut(d)&&ut(m)||Array.isArray(d)&&Array.isArray(m)?!xn(d,m,i):!Object.is(d,m))return!1}}return!0}const Lv=he.createContext(null);Lv.displayName="HookFormContext";var yo=(n,l,i,s,o)=>l?{...i[n],types:{...i[n]&&i[n].types?i[n].types:{},[s]:o||!0}}:{},Ur=n=>Array.isArray(n)?n:[n],Fd=()=>{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 Wd(n,l){const i={};for(const s in n)if(n.hasOwnProperty(s)){const o=n[s],f=l[s];if(o&&ut(o)&&f){const d=Wd(o,f);ut(d)&&(i[s]=d)}else n[s]&&(i[s]=f)}return i}var Rt=n=>ut(n)&&!Object.keys(n).length,po=n=>n.type==="file",Pi=n=>{if(!oo)return!1;const l=n?n.ownerDocument:0;return n instanceof(l&&l.defaultView?l.defaultView.HTMLElement:HTMLElement)},Id=n=>n.type==="select-multiple",go=n=>n.type==="radio",Hv=n=>go(n)||Rr(n),vo=n=>Pi(n)&&n.isConnected;function qv(n,l){const i=l.slice(0,-1).length;let s=0;for(;s<i;)n=at(n)?s++:n[l[s++]];return n}function Zv(n){for(const l in n)if(n.hasOwnProperty(l)&&!at(n[l]))return!1;return!0}function mt(n,l){const i=Array.isArray(l)?l:Ii(l)?[l]:fo(l),s=i.length===1?n:qv(n,i),o=i.length-1,f=i[o];return s&&delete s[f],o!==0&&(ut(s)&&Rt(s)||Array.isArray(s)&&Zv(s))&&mt(n,i.slice(0,-1)),n}var Yv=n=>{for(const l in n)if(Aa(n[l]))return!0;return!1};function Pd(n){return Array.isArray(n)||ut(n)&&!Yv(n)}function bo(n,l={}){for(const i in n){const s=n[i];Pd(s)?(l[i]=Array.isArray(s)?[]:{},bo(s,l[i])):at(s)||(l[i]=!0)}return l}function Ol(n,l,i){i||(i=bo(l));for(const s in n){const o=n[s];if(Pd(o))at(l)||mo(i[s])?i[s]=bo(o,Array.isArray(o)?[]:{}):Ol(o,qt(l)?{}:l[s],i[s]);else{const f=l[s];i[s]=!xn(o,f)}}return i}const eh={value:!1,isValid:!1},th={value:!0,isValid:!0};var ah=n=>{if(Array.isArray(n)){if(n.length>1){const l=n.filter(i=>i&&i.checked&&!i.disabled).map(i=>i.value);return{value:l,isValid:!!l.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!at(n[0].attributes.value)?at(n[0].value)||n[0].value===""?th:{value:n[0].value,isValid:!0}:th:eh}return eh},nh=(n,{valueAsNumber:l,valueAsDate:i,setValueAs:s})=>at(n)?n:l?n===""?NaN:n&&+n:i&&jt(n)?new Date(n):s?s(n):n;const lh={isValid:!1,value:null};var rh=n=>Array.isArray(n)?n.reduce((l,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:l,lh):lh;function ih(n){const l=n.ref;return po(l)?l.files:go(l)?rh(n.refs).value:Id(l)?[...l.selectedOptions].map(({value:i})=>i):Rr(l)?ah(n.refs).value:nh(at(l.value)?n.ref.value:l.value,n)}var Gv=(n,l,i,s)=>{const o={};for(const f of n){const d=ne(l,f);d&&Ge(o,f,d._f)}return{criteriaMode:i,names:[...n],fields:o,shouldUseNativeValidation:s}},es=n=>n instanceof RegExp,Br=n=>at(n)?n:es(n)?n.source:ut(n)?es(n.value)?n.value.source:n.value:n,sh=n=>({isOnSubmit:!n||n===Ta.onSubmit,isOnBlur:n===Ta.onBlur,isOnChange:n===Ta.onChange,isOnAll:n===Ta.all,isOnTouch:n===Ta.onTouched});const uh="AsyncFunction";var Qv=n=>!!n&&!!n.validate&&!!(Aa(n.validate)&&n.validate.constructor.name===uh||ut(n.validate)&&Object.values(n.validate).find(l=>l.constructor.name===uh)),Xv=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),oh=(n,l,i)=>!i&&(l.watchAll||l.watch.has(n)||[...l.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const Vr=(n,l,i,s)=>{for(const o of i||Object.keys(n)){const f=ne(n,o);if(f){const{_f:d,...m}=f;if(d){if(d.refs&&d.refs[0]&&l(d.refs[0],o)&&!s)return!0;if(d.ref&&l(d.ref,d.name)&&!s)return!0;if(Vr(m,l))break}else if(ut(m)&&Vr(m,l))break}}};function ch(n,l,i){const s=ne(n,i);if(s||Ii(i))return{error:s,name:i};const o=i.split(".");for(;o.length;){const f=o.join("."),d=ne(l,f),m=ne(n,f);if(d&&!Array.isArray(d)&&i!==f)return{name:i};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:i}}var $v=(n,l,i,s)=>{i(n);const{name:o,...f}=n;return Rt(f)||Object.keys(f).length>=Object.keys(l).length||Object.keys(f).find(d=>l[d]===(!s||Ta.all))},Kv=(n,l,i)=>!n||!l||n===l||Ur(n).some(s=>s&&(i?s===l:s.startsWith(l)||l.startsWith(s))),Jv=(n,l,i,s,o)=>o.isOnAll?!1:!i&&o.isOnTouch?!(l||n):(i?s.isOnBlur:o.isOnBlur)?!n:(i?s.isOnChange:o.isOnChange)?n:!0,Fv=(n,l)=>!co(ne(n,l)).length&&mt(n,l),Wv=(n,l,i)=>{const s=Ur(ne(n,i));return Ge(s,Jd,l[i]),Ge(n,i,s),n};function fh(n,l,i="validate"){if(jt(n)||Array.isArray(n)&&n.every(jt)||Ma(n)&&!n)return{type:i,message:jt(n)?n:"",ref:l}}var zl=n=>ut(n)&&!es(n)?n:{value:n,message:""},dh=async(n,l,i,s,o,f)=>{const{ref:d,refs:m,required:g,maxLength:v,minLength:T,min:w,max:R,pattern:_,validate:U,name:A,valueAsNumber:Z,mount:I}=n._f,$=ne(i,A);if(!I||l.has(A))return{};const te=m?m[0]:d,P=p=>{o&&te.reportValidity&&(te.setCustomValidity(Ma(p)?"":p||""),te.reportValidity())},L={},Q=go(d),ae=Rr(d),xe=Q||ae,Ue=(Z||po(d))&&at(d.value)&&at($)||Pi(d)&&d.value===""||$===""||Array.isArray($)&&!$.length,We=yo.bind(null,A,s,L),ge=(p,Y,G,le=Ca.maxLength,k=Ca.minLength)=>{const X=p?Y:G;L[A]={type:p?le:k,message:X,ref:d,...We(p?le:k,X)}};if(f?!Array.isArray($)||!$.length:g&&(!xe&&(Ue||qt($))||Ma($)&&!$||ae&&!ah(m).isValid||Q&&!rh(m).isValid)){const{value:p,message:Y}=jt(g)?{value:!!g,message:g}:zl(g);if(p&&(L[A]={type:Ca.required,message:Y,ref:te,...We(Ca.required,Y)},!s))return P(Y),L}if(!Ue&&(!qt(w)||!qt(R))){let p,Y;const G=zl(R),le=zl(w);if(!qt($)&&!isNaN($)){const k=d.valueAsNumber||$&&+$;qt(G.value)||(p=k>G.value),qt(le.value)||(Y=k<le.value)}else{const k=d.valueAsDate||new Date($),X=Le=>new Date(new Date().toDateString()+" "+Le),re=d.type=="time",Ee=d.type=="week";jt(G.value)&&$&&(p=re?X($)>X(G.value):Ee?$>G.value:k>new Date(G.value)),jt(le.value)&&$&&(Y=re?X($)<X(le.value):Ee?$<le.value:k<new Date(le.value))}if((p||Y)&&(ge(!!p,G.message,le.message,Ca.max,Ca.min),!s))return P(L[A].message),L}if((v||T)&&!Ue&&(jt($)||f&&Array.isArray($))){const p=zl(v),Y=zl(T),G=!qt(p.value)&&$.length>+p.value,le=!qt(Y.value)&&$.length<+Y.value;if((G||le)&&(ge(G,p.message,Y.message),!s))return P(L[A].message),L}if(_&&!Ue&&jt($)){const{value:p,message:Y}=zl(_);if(es(p)&&!$.match(p)&&(L[A]={type:Ca.pattern,message:Y,ref:d,...We(Ca.pattern,Y)},!s))return P(Y),L}if(U){if(Aa(U)){const p=await U($,i),Y=fh(p,te);if(Y&&(L[A]={...Y,...We(Ca.validate,Y.message)},!s))return P(Y.message),L}else if(ut(U)){let p={};for(const Y in U){if(!Rt(p)&&!s)break;const G=fh(await U[Y]($,i),te,Y);G&&(p={...G,...We(Y,G.message)},P(G.message),s&&(L[A]=p))}if(!Rt(p)&&(L[A]={ref:te,...p},!s))return L}}return P(!0),L};const Iv={mode:Ta.onSubmit,reValidateMode:Ta.onChange,shouldFocusError:!0};function Pv(n={}){let l={...Iv,...n},i={submitCount:0,isDirty:!1,isReady:!1,isLoading:Aa(l.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:l.errors||{},disabled:l.disabled||!1},s={},o=ut(l.defaultValues)||ut(l.values)?_t(l.defaultValues||l.values)||{}:{},f=l.shouldUnregister?{}:_t(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,v=0;const T={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},w={...T};let R={...w};const _={array:Fd(),state:Fd()},U=l.criteriaMode===Ta.all,A=x=>E=>{clearTimeout(v),v=setTimeout(x,E)},Z=async x=>{if(!d.keepIsValid&&!l.disabled&&(w.isValid||R.isValid||x)){let E;l.resolver?(E=Rt((await xe()).errors),I()):E=await ge({fields:s,onlyCheckValid:!0,eventType:El.VALID}),E!==i.isValid&&_.state.next({isValid:E})}},I=(x,E)=>{!l.disabled&&(w.isValidating||w.validatingFields||R.isValidating||R.validatingFields)&&((x||Array.from(m.mount)).forEach(N=>{N&&(E?Ge(i.validatingFields,N,E):mt(i.validatingFields,N))}),_.state.next({validatingFields:i.validatingFields,isValidating:!Rt(i.validatingFields)}))},$=(x,E=[],N,W,J=!0,F=!0)=>{if(W&&N&&!l.disabled){if(d.action=!0,F&&Array.isArray(ne(s,x))){const se=N(ne(s,x),W.argA,W.argB);J&&Ge(s,x,se)}if(F&&Array.isArray(ne(i.errors,x))){const se=N(ne(i.errors,x),W.argA,W.argB);J&&Ge(i.errors,x,se),Fv(i.errors,x)}if((w.touchedFields||R.touchedFields)&&F&&Array.isArray(ne(i.touchedFields,x))){const se=N(ne(i.touchedFields,x),W.argA,W.argB);J&&Ge(i.touchedFields,x,se)}if(w.dirtyFields||R.dirtyFields){const se=Ol(o,f),pe=Kd(x);Ge(i.dirtyFields,pe,ne(se,pe))}_.state.next({name:x,isDirty:Y(x,E),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else Ge(f,x,E)},te=(x,E)=>{Ge(i.errors,x,E),_.state.next({errors:i.errors})},P=x=>{i.errors=x,_.state.next({errors:i.errors,isValid:!1})},L=(x,E,N,W)=>{const J=ne(s,x);if(J){const F=ne(f,x,at(N)?ne(o,x):N);at(F)||W&&W.defaultChecked||E?Ge(f,x,E?F:ih(J._f)):k(x,F),d.mount&&!d.action&&Z()}},Q=(x,E,N,W,J)=>{let F=!1,se=!1;const pe={name:x};if(!l.disabled){if(!N||W){(w.isDirty||R.isDirty)&&(se=i.isDirty,i.isDirty=pe.isDirty=Y(),F=se!==pe.isDirty);const Ne=xn(ne(o,x),E);se=!!ne(i.dirtyFields,x),Ne?mt(i.dirtyFields,x):Ge(i.dirtyFields,x,!0),pe.dirtyFields=i.dirtyFields,F=F||(w.dirtyFields||R.dirtyFields)&&se!==!Ne}if(N){const Ne=ne(i.touchedFields,x);Ne||(Ge(i.touchedFields,x,N),pe.touchedFields=i.touchedFields,F=F||(w.touchedFields||R.touchedFields)&&Ne!==N)}F&&J&&_.state.next(pe)}return F?pe:{}},ae=(x,E,N,W)=>{const J=ne(i.errors,x),F=(w.isValid||R.isValid)&&Ma(E)&&i.isValid!==E;if(l.delayError&&N?(g=A(()=>te(x,N)),g(l.delayError)):(clearTimeout(v),g=null,N?Ge(i.errors,x,N):mt(i.errors,x)),(N?!xn(J,N):J)||!Rt(W)||F){const se={...W,...F&&Ma(E)?{isValid:E}:{},errors:i.errors,name:x};i={...i,...se},_.state.next(se)}},xe=async x=>(I(x,!0),await l.resolver(f,l.context,Gv(x||m.mount,s,l.criteriaMode,l.shouldUseNativeValidation))),Ue=async x=>{const{errors:E}=await xe(x);if(I(x),x)for(const N of x){const W=ne(E,N);W?Ge(i.errors,N,W):mt(i.errors,N)}else i.errors=E;return E},We=async({name:x,eventType:E})=>{if(n.validate){const N=await n.validate({formValues:f,formState:i,name:x,eventType:E});if(ut(N))for(const W in N)N[W]&&Ut(`${ho}.${W}`,{message:jt(N.message)?N.message:"",type:Ca.validate});else jt(N)||!N?Ut(ho,{message:N||"",type:Ca.validate}):ct(ho);return N}return!0},ge=async({fields:x,onlyCheckValid:E,name:N,eventType:W,context:J={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(J.runRootValidation=!0,!await We({name:N,eventType:W})&&(J.valid=!1,E)))return J.valid;for(const F in x){const se=x[F];if(se){const{_f:pe,...Ne}=se;if(pe){const Bt=m.array.has(pe.name),da=se._f&&Qv(se._f);da&&w.validatingFields&&I([pe.name],!0);const pt=await dh(se,m.disabled,f,U,l.shouldUseNativeValidation&&!E,Bt);if(da&&w.validatingFields&&I([pe.name]),pt[pe.name]&&(J.valid=!1,E)||(!E&&(ne(pt,pe.name)?Bt?Wv(i.errors,pt,pe.name):Ge(i.errors,pe.name,pt[pe.name]):mt(i.errors,pe.name)),n.shouldUseNativeValidation&&pt[pe.name]))break}!Rt(Ne)&&await ge({context:J,onlyCheckValid:E,fields:Ne,name:F,eventType:W})}}return J.valid},p=()=>{for(const x of m.unMount){const E=ne(s,x);E&&(E._f.refs?E._f.refs.every(N=>!vo(N)):!vo(E._f.ref))&&Va(x)}m.unMount=new Set},Y=(x,E)=>!l.disabled&&(x&&E&&Ge(f,x,E),!xn(Fe(),o)),G=(x,E,N)=>Vv(x,m,{...d.mount?f:at(E)?o:jt(x)?{[x]:E}:E},N,E),le=x=>co(ne(d.mount?f:o,x,l.shouldUnregister?ne(o,x,[]):[])),k=(x,E,N={})=>{const W=ne(s,x);let J=E;if(W){const F=W._f;F&&(!F.disabled&&Ge(f,x,nh(E,F)),J=Pi(F.ref)&&qt(E)?"":E,Id(F.ref)?[...F.ref.options].forEach(se=>se.selected=J.includes(se.value)):F.refs?Rr(F.ref)?F.refs.forEach(se=>{(!se.defaultChecked||!se.disabled)&&(Array.isArray(J)?se.checked=!!J.find(pe=>pe===se.value):se.checked=J===se.value||!!J)}):F.refs.forEach(se=>se.checked=se.value===J):po(F.ref)?F.ref.value="":(F.ref.value=J,F.ref.type||_.state.next({name:x,values:_t(f)})))}(N.shouldDirty||N.shouldTouch)&&Q(x,J,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&St(x)},X=(x,E,N)=>{for(const W in E){if(!E.hasOwnProperty(W))return;const J=E[W],F=x+"."+W,se=ne(s,F);(m.array.has(x)||ut(J)||se&&!se._f)&&!Fn(J)?X(F,J,N):k(F,J,N)}},re=(x,E,N={})=>{const W=ne(s,x),J=m.array.has(x),F=_t(E);Ge(f,x,F),J?(_.array.next({name:x,values:_t(f)}),(w.isDirty||w.dirtyFields||R.isDirty||R.dirtyFields)&&N.shouldDirty&&_.state.next({name:x,dirtyFields:Ol(o,f),isDirty:Y(x,F)})):W&&!W._f&&!qt(F)?X(x,F,N):k(x,F,N),oh(x,m)?_.state.next({...i,name:x,values:_t(f)}):_.state.next({name:d.mount?x:void 0,values:_t(f)})},Ee=async x=>{d.mount=!0;const E=x.target;let N=E.name,W=!0;const J=ne(s,N),F=Ne=>{W=Number.isNaN(Ne)||Fn(Ne)&&isNaN(Ne.getTime())||xn(Ne,ne(f,N,Ne))},se=sh(l.mode),pe=sh(l.reValidateMode);if(J){let Ne,Bt;const da=E.type?ih(J._f):Mv(x),pt=x.type===El.BLUR||x.type===El.FOCUS_OUT,Vt=!Xv(J._f)&&!n.validate&&!l.resolver&&!ne(i.errors,N)&&!J._f.deps||Jv(pt,ne(i.touchedFields,N),i.isSubmitted,pe,se),ha=oh(N,m,pt);Ge(f,N,da),pt?(!E||!E.readOnly)&&(J._f.onBlur&&J._f.onBlur(x),g&&g(0)):J._f.onChange&&J._f.onChange(x);const Et=Q(N,da,pt),ec=!Rt(Et)||ha;if(!pt&&_.state.next({name:N,type:x.type,values:_t(f)}),Vt)return(w.isValid||R.isValid)&&(l.mode==="onBlur"?pt&&Z():pt||Z()),ec&&_.state.next({name:N,...ha?{}:Et});if(!l.resolver&&n.validate&&await We({name:N,eventType:x.type}),!pt&&ha&&_.state.next({...i}),l.resolver){const{errors:ks}=await xe([N]);if(I([N]),F(da),W){const tc=ch(i.errors,s,N),nl=ch(ks,s,tc.name||N);Ne=nl.error,N=nl.name,Bt=Rt(ks)}}else I([N],!0),Ne=(await dh(J,m.disabled,f,U,l.shouldUseNativeValidation))[N],I([N]),F(da),W&&(Ne?Bt=!1:(w.isValid||R.isValid)&&(Bt=await ge({fields:s,onlyCheckValid:!0,name:N,eventType:x.type})));W&&(J._f.deps&&(!Array.isArray(J._f.deps)||J._f.deps.length>0)&&St(J._f.deps),ae(N,Bt,Ne,Et))}},Le=(x,E)=>{if(ne(i.errors,E)&&x.focus)return x.focus(),1},St=async(x,E={})=>{let N,W;const J=Ur(x);if(l.resolver){const F=await Ue(at(x)?x:J);N=Rt(F),W=x?!J.some(se=>ne(F,se)):N}else x?(W=(await Promise.all(J.map(async F=>{const se=ne(s,F);return await ge({fields:se&&se._f?{[F]:se}:se,eventType:El.TRIGGER})}))).every(Boolean),!(!W&&!i.isValid)&&Z()):W=N=await ge({fields:s,name:x,eventType:El.TRIGGER});return _.state.next({...!jt(x)||(w.isValid||R.isValid)&&N!==i.isValid?{}:{name:x},...l.resolver||!x?{isValid:N}:{},errors:i.errors}),E.shouldFocus&&!W&&Vr(s,Le,x?J:m.mount),W},Fe=(x,E)=>{let N={...d.mount?f:o};return E&&(N=Wd(E.dirtyFields?i.dirtyFields:i.touchedFields,N)),at(x)?N:jt(x)?ne(N,x):x.map(W=>ne(N,W))},ze=(x,E)=>({invalid:!!ne((E||i).errors,x),isDirty:!!ne((E||i).dirtyFields,x),error:ne((E||i).errors,x),isValidating:!!ne(i.validatingFields,x),isTouched:!!ne((E||i).touchedFields,x)}),ct=x=>{const E=x?Ur(x):void 0;E==null||E.forEach(N=>mt(i.errors,N)),E?E.forEach(N=>{_.state.next({name:N,errors:i.errors})}):_.state.next({errors:{}})},Ut=(x,E,N)=>{const W=(ne(s,x,{_f:{}})._f||{}).ref,J=ne(i.errors,x)||{},{ref:F,message:se,type:pe,...Ne}=J;Ge(i.errors,x,{...Ne,...E,ref:W}),_.state.next({name:x,errors:i.errors,isValid:!1}),N&&N.shouldFocus&&W&&W.focus&&W.focus()},Ba=(x,E)=>Aa(x)?_.state.subscribe({next:N=>"values"in N&&x(G(void 0,E),N)}):G(x,E,!0),tl=x=>_.state.subscribe({next:E=>{Kv(x.name,E.name,x.exact)&&$v(E,x.formState||w,Pr,x.reRenderRoot)&&x.callback({values:{...f},...i,...E,defaultValues:o})}}).unsubscribe,Hl=x=>(d.mount=!0,R={...R,...x.formState},tl({...x,formState:{...T,...x.formState}})),Va=(x,E={})=>{for(const N of x?Ur(x):m.mount)m.mount.delete(N),m.array.delete(N),E.keepValue||(mt(s,N),mt(f,N)),!E.keepError&&mt(i.errors,N),!E.keepDirty&&mt(i.dirtyFields,N),!E.keepTouched&&mt(i.touchedFields,N),!E.keepIsValidating&&mt(i.validatingFields,N),!l.shouldUnregister&&!E.keepDefaultValue&&mt(o,N);_.state.next({values:_t(f)}),_.state.next({...i,...E.keepDirty?{isDirty:Y()}:{}}),!E.keepIsValid&&Z()},ql=({disabled:x,name:E})=>{if(Ma(x)&&d.mount||x||m.disabled.has(E)){const J=m.disabled.has(E)!==!!x;x?m.disabled.add(E):m.disabled.delete(E),J&&d.mount&&!d.action&&Z()}},Sn=(x,E={})=>{let N=ne(s,x);const W=Ma(E.disabled)||Ma(l.disabled);return Ge(s,x,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:x}},name:x,mount:!0,...E}}),m.mount.add(x),N?ql({disabled:Ma(E.disabled)?E.disabled:l.disabled,name:x}):L(x,!0,E.value),{...W?{disabled:E.disabled||l.disabled}:{},...l.progressive?{required:!!E.required,min:Br(E.min),max:Br(E.max),minLength:Br(E.minLength),maxLength:Br(E.maxLength),pattern:Br(E.pattern)}:{},name:x,onChange:Ee,onBlur:Ee,ref:J=>{if(J){Sn(x,E),N=ne(s,x);const F=at(J.value)&&J.querySelectorAll&&J.querySelectorAll("input,select,textarea")[0]||J,se=Hv(F),pe=N._f.refs||[];if(se?pe.find(Ne=>Ne===F):F===N._f.ref)return;Ge(s,x,{_f:{...N._f,...se?{refs:[...pe.filter(vo),F,...Array.isArray(ne(o,x))?[{}]:[]],ref:{type:F.type,name:x}}:{ref:F}}}),L(x,!1,void 0,F)}else N=ne(s,x,{}),N._f&&(N._f.mount=!1),(l.shouldUnregister||E.shouldUnregister)&&!(Dv(m.array,x)&&d.action)&&m.unMount.add(x)}}},al=()=>l.shouldFocusError&&Vr(s,Le,m.mount),Cs=x=>{Ma(x)&&(_.state.next({disabled:x}),Vr(s,(E,N)=>{const W=ne(s,N);W&&(E.disabled=W._f.disabled||x,Array.isArray(W._f.refs)&&W._f.refs.forEach(J=>{J.disabled=W._f.disabled||x}))},0,!1))},La=(x,E)=>async N=>{let W;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let J=_t(f);if(_.state.next({isSubmitting:!0}),l.resolver){const{errors:F,values:se}=await xe();I(),i.errors=F,J=_t(se)}else await ge({fields:s,eventType:El.SUBMIT});if(m.disabled.size)for(const F of m.disabled)mt(J,F);if(mt(i.errors,Jd),Rt(i.errors)){_.state.next({errors:{}});try{await x(J,N)}catch(F){W=F}}else E&&await E({...i.errors},N),al(),setTimeout(al);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Rt(i.errors)&&!W,submitCount:i.submitCount+1,errors:i.errors}),W)throw W},Ir=(x,E={})=>{ne(s,x)&&(at(E.defaultValue)?re(x,_t(ne(o,x))):(re(x,E.defaultValue),Ge(o,x,_t(E.defaultValue))),E.keepTouched||mt(i.touchedFields,x),E.keepDirty||(mt(i.dirtyFields,x),i.isDirty=E.defaultValue?Y(x,_t(ne(o,x))):Y()),E.keepError||(mt(i.errors,x),w.isValid&&Z()),_.state.next({...i}))},Zl=(x,E={})=>{const N=x?_t(x):o,W=_t(N),J=Rt(x),F=J?o:W;if(E.keepDefaultValues||(o=N),!E.keepValues){if(E.keepDirtyValues){const se=new Set([...m.mount,...Object.keys(Ol(o,f))]);for(const pe of Array.from(se)){const Ne=ne(i.dirtyFields,pe),Bt=ne(f,pe),da=ne(F,pe);Ne&&!at(Bt)?Ge(F,pe,Bt):!Ne&&!at(da)&&re(pe,da)}}else{if(oo&&at(x))for(const se of m.mount){const pe=ne(s,se);if(pe&&pe._f){const Ne=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(Pi(Ne)){const Bt=Ne.closest("form");if(Bt){Bt.reset();break}}}}if(E.keepFieldsRef)for(const se of m.mount)re(se,ne(F,se));else s={}}f=l.shouldUnregister?E.keepDefaultValues?_t(o):{}:_t(F),_.array.next({values:{...F}}),_.state.next({values:{...F}})}m={mount:E.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!w.isValid||!!E.keepIsValid||!!E.keepDirtyValues||!l.shouldUnregister&&!Rt(F),d.watch=!!l.shouldUnregister,d.keepIsValid=!!E.keepIsValid,d.action=!1,E.keepErrors||(i.errors={}),_.state.next({submitCount:E.keepSubmitCount?i.submitCount:0,isDirty:J?!1:E.keepDirty?i.isDirty:!!(E.keepDefaultValues&&!xn(x,o)),isSubmitted:E.keepIsSubmitted?i.isSubmitted:!1,dirtyFields:J?{}:E.keepDirtyValues?E.keepDefaultValues&&f?Ol(o,f):i.dirtyFields:E.keepDefaultValues&&x?Ol(o,x):E.keepDirty?i.dirtyFields:{},touchedFields:E.keepTouched?i.touchedFields:{},errors:E.keepErrors?i.errors:{},isSubmitSuccessful:E.keepIsSubmitSuccessful?i.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Es=(x,E)=>Zl(Aa(x)?x(f):x,{...l.resetOptions,...E}),Os=(x,E={})=>{const N=ne(s,x),W=N&&N._f;if(W){const J=W.refs?W.refs[0]:W.ref;J.focus&&setTimeout(()=>{J.focus(),E.shouldSelect&&Aa(J.select)&&J.select()})}},Pr=x=>{i={...i,...x}},Yl={control:{register:Sn,unregister:Va,getFieldState:ze,handleSubmit:La,setError:Ut,_subscribe:tl,_runSchema:xe,_updateIsValidating:I,_focusError:al,_getWatch:G,_getDirty:Y,_setValid:Z,_setFieldArray:$,_setDisabledField:ql,_setErrors:P,_getFieldArray:le,_reset:Zl,_resetDefaultValues:()=>Aa(l.defaultValues)&&l.defaultValues().then(x=>{Es(x,l.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:p,_disableForm:Cs,_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 i},get _options(){return l},set _options(x){l={...l,...x}}},subscribe:Hl,trigger:St,register:Sn,handleSubmit:La,watch:Ba,setValue:re,getValues:Fe,reset:Es,resetField:Ir,clearErrors:ct,unregister:Va,setError:Ut,setFocus:Os,getFieldState:ze};return{...Yl,formControl:Yl}}function eb(n={}){const l=he.useRef(void 0),i=he.useRef(void 0),[s,o]=he.useState({isDirty:!1,isValidating:!1,isLoading:Aa(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:Aa(n.defaultValues)?void 0:n.defaultValues});if(!l.current)if(n.formControl)l.current={...n.formControl,formState:s},n.defaultValues&&!Aa(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...m}=Pv(n);l.current={...m,formState:s}}const f=l.current.control;return f._options=n,Bv(()=>{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]),he.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),he.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),he.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),he.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),he.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),he.useEffect(()=>{var d;n.values&&!xn(n.values,i.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((d=f._options.resetOptions)===null||d===void 0)&&d.keepIsValid||f._setValid(),i.current=n.values,o(m=>({...m}))):f._resetDefaultValues()},[f,n.values]),he.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()}),l.current.formState=he.useMemo(()=>Uv(s,f),[f,s]),l.current}const hh=(n,l,i)=>{if(n&&"reportValidity"in n){const s=ne(i,l);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},xo=(n,l)=>{for(const i in l.fields){const s=l.fields[i];s&&s.ref&&"reportValidity"in s.ref?hh(s.ref,i,n):s&&s.refs&&s.refs.forEach(o=>hh(o,i,n))}},mh=(n,l)=>{l.shouldUseNativeValidation&&xo(n,l);const i={};for(const s in n){const o=ne(l.fields,s),f=Object.assign(n[s]||{},{ref:o&&o.ref});if(tb(l.names||Object.keys(n),s)){const d=Object.assign({},ne(i,s));Ge(d,"root",f),Ge(i,s,d)}else Ge(i,s,f)}return i},tb=(n,l)=>{const i=yh(l);return n.some(s=>yh(s).match(`^${i}\\.\\d+`))};function yh(n){return n.replace(/\]|\[/g,"")}function ph(n,l,i){function s(m,g){var v;Object.defineProperty(m,"_zod",{value:m._zod??{},enumerable:!1}),(v=m._zod).traits??(v.traits=new Set),m._zod.traits.add(n),l(m,g);for(const T in d.prototype)T in m||Object.defineProperty(m,T,{value:d.prototype[T].bind(m)});m._zod.constr=d,m._zod.def=g}const o=(i==null?void 0:i.Parent)??Object;class f extends o{}Object.defineProperty(f,"name",{value:n});function d(m){var g;const v=i!=null&&i.Parent?new f:this;s(v,m),(g=v._zod).deferred??(g.deferred=[]);for(const T of v._zod.deferred)T();return v}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>{var g,v;return i!=null&&i.Parent&&m instanceof i.Parent?!0:(v=(g=m==null?void 0:m._zod)==null?void 0:g.traits)==null?void 0:v.has(n)}}),Object.defineProperty(d,"name",{value:n}),d}class ab extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const nb={};function gh(n){return nb}function lb(n,l){return typeof l=="bigint"?l.toString():l}const vh=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function ts(n){return typeof n=="string"?n:n==null?void 0:n.message}function bh(n,l,i){var o,f,d,m,g,v;const s={...n,path:n.path??[]};if(!n.message){const T=ts((d=(f=(o=n.inst)==null?void 0:o._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,n))??ts((m=l==null?void 0:l.error)==null?void 0:m.call(l,n))??ts((g=i.customError)==null?void 0:g.call(i,n))??ts((v=i.localeError)==null?void 0:v.call(i,n))??"Invalid input";s.message=T}return delete s.inst,delete s.continue,l!=null&&l.reportInput||delete s.input,s}const xh=(n,l)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:l,enumerable:!1}),Object.defineProperty(n,"message",{get(){return JSON.stringify(l,lb,2)},enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},rb=ph("$ZodError",xh),_h=ph("$ZodError",xh,{Parent:Error}),ib=(n=>(l,i,s,o)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=l._zod.run({value:i,issues:[]},f);if(d instanceof Promise)throw new ab;if(d.issues.length){const m=new((o==null?void 0:o.Err)??n)(d.issues.map(g=>bh(g,f,gh())));throw vh(m,o==null?void 0:o.callee),m}return d.value})(_h),sb=(n=>async(l,i,s,o)=>{const f=s?Object.assign(s,{async:!0}):{async:!0};let d=l._zod.run({value:i,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=>bh(g,f,gh())));throw vh(m,o==null?void 0:o.callee),m}return d.value})(_h);function Sh(n,l){try{var i=n()}catch(s){return l(s)}return i&&i.then?i.then(void 0,l):i}function ub(n,l){for(var i={};n.length;){var s=n[0],o=s.code,f=s.message,d=s.path.join(".");if(!i[d])if("unionErrors"in s){var m=s.unionErrors[0].errors[0];i[d]={message:m.message,type:m.code}}else i[d]={message:f,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(T){return T.errors.forEach(function(w){return n.push(w)})}),l){var g=i[d].types,v=g&&g[s.code];i[d]=yo(d,l,i,o,v?[].concat(v,s.message):s.message)}n.shift()}return i}function ob(n,l){for(var i={};n.length;){var s=n[0],o=s.code,f=s.message,d=s.path.join(".");if(!i[d])if(s.code==="invalid_union"&&s.errors.length>0){var m=s.errors[0][0];i[d]={message:m.message,type:m.code}}else i[d]={message:f,type:o};if(s.code==="invalid_union"&&s.errors.forEach(function(T){return T.forEach(function(w){return n.push(w)})}),l){var g=i[d].types,v=g&&g[s.code];i[d]=yo(d,l,i,o,v?[].concat(v,s.message):s.message)}n.shift()}return i}function cb(n,l,i){if(i===void 0&&(i={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(n))return function(s,o,f){try{return Promise.resolve(Sh(function(){return Promise.resolve(n[i.mode==="sync"?"parse":"parseAsync"](s,l)).then(function(d){return f.shouldUseNativeValidation&&xo({},f),{errors:{},values:i.raw?Object.assign({},s):d}})},function(d){if((function(m){return Array.isArray(m==null?void 0:m.issues)})(d))return{values:{},errors:mh(ub(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(Sh(function(){return Promise.resolve((i.mode==="sync"?ib:sb)(n,s,l)).then(function(d){return f.shouldUseNativeValidation&&xo({},f),{errors:{},values:i.raw?Object.assign({},s):d}})},function(d){if((function(m){return m instanceof rb})(d))return{values:{},errors:mh(ob(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")}/**
|
|
38
38
|
* @license lucide-react v0.518.0 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
@@ -49,7 +49,7 @@ Error generating stack: `+r.message+`
|
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the ISC license.
|
|
51
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const yb=he.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:f,iconNode:d,...m},
|
|
52
|
+
*/const yb=he.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:f,iconNode:d,...m},g)=>he.createElement("svg",{ref:g,...mb,width:l,height:l,stroke:n,strokeWidth:s?Number(i)*24/Number(l):i,className:Ah("lucide",o),...!f&&!hb(m)&&{"aria-hidden":"true"},...m},[...d.map(([v,T])=>he.createElement(v,T)),...Array.isArray(f)?f:[f]]));/**
|
|
53
53
|
* @license lucide-react v0.518.0 - ISC
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
@@ -59,7 +59,7 @@ Error generating stack: `+r.message+`
|
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/const
|
|
62
|
+
*/const _o=as("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
63
63
|
* @license lucide-react v0.518.0 - ISC
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
@@ -69,19 +69,19 @@ Error generating stack: `+r.message+`
|
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/const
|
|
72
|
+
*/const pb=as("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"}]]);/**
|
|
73
73
|
* @license lucide-react v0.518.0 - ISC
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const Ch=as("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"}]]),Eh={ErrorMessage:"Erro ao aplicar o benefício"},_o=Ad(n=>({...Eh,setErrorMessage:l=>n({ErrorMessage:l}),resetErrorMessage:()=>n({ErrorMessage:Eh.ErrorMessage})}));function pb({startTransition:n}){const l=Ft(),[i,s]=he.useState(!1),{setErrorMessage:o}=_o(),{handleSubmit:f,register:d,setValue:m,clearErrors:p,unregister:v,formState:{errors:T}}=eb({resolver:cb(Ov),mode:"onSubmit",defaultValues:{securityNumber:l.securityNumber||"",coupon:""}}),w=async S=>{try{if(l.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!l.targetProduct.productId){console.error("PBMLOG: Product ID is not defined!");return}if(!l.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}const U={productId:l.targetProduct.productId,ean:l.targetProduct.ean,requestedQuantity:1,listPrice:l.targetProduct.listPrice,netPrice:l.targetProduct.netPrice??l.targetProduct.listPrice},A=await Xd({document:S.securityNumber.replace(/\D/g,""),products:[U]});if(A.success){const Z=kv(A.data.product[0].statusCustomer);if(l.setSecurityNumber(S.securityNumber),l.setState(Z),Z==="isInvalid"){l.setUrlAcceptTerms(A.data.product[0].urlAcceptTerm||void 0);return}if(Z==="isRegistered"){l.setUrlRegisterIndustry(A.data.product[0].informativeLink);return}if(!Z){o(A.data.product[0].informativeText),l.setState("isError");return}}}catch(U){console.error("PBMLOG: Error validating document -",U)}},R=async S=>{i||m("coupon",void 0,{shouldValidate:!1}),i&&S.coupon!=null&&l.setCardID(S.coupon),n(async()=>{await w(S)})};return j.jsxs(j.Fragment,{children:[j.jsxs("form",{onSubmit:f(R),className:Ht("w-full h-auto flex items-center justify-center mb-0 transition-all duration-150",{"mb-4":T.securityNumber||T.coupon&&i,"gap-2":i}),id:"form_security_number_pbm",children:[j.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:[j.jsx("input",{type:"text",className:Ht("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":T.securityNumber,"rounded-lg":i}),style:{"--tw-outline-color":T.securityNumber?void 0:"var(--pbm-secondary)"},placeholder:"Digite seu CPF aqui...",required:!0,maxLength:14,...d("securityNumber",{onChange:S=>{const U=zv(S.target.value);m("securityNumber",U,{shouldValidate:!0})}}),defaultValue:l.securityNumber||"",id:"input_security_number_pbm"}),T.securityNumber&&j.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"security_number_form_error",children:T.securityNumber.message})]}),j.jsx(he.Activity,{mode:i?"visible":"hidden",children:j.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:[j.jsx("input",{type:"text",className:Ht("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":T.coupon,"rounded-lg":i}),style:{"--tw-outline-color":T.coupon?void 0:"var(--pbm-secondary)"},placeholder:"Cupom / ID do Cartão",...d("coupon",{required:i?"Cupom / ID do Cartão obrigatório.":!1,shouldUnregister:!i,onChange:S=>{m("coupon",S.target.value,{shouldValidate:i})}}),id:"input_coupon_pbm"}),T.coupon&&j.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",children:T.coupon.message})]})}),j.jsx("button",{type:"submit",className:Ht("w-1/5 h-10 rounded-e-lg flex items-center justify-center cursor-pointer",{"rounded-lg":i}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",children:j.jsx(So,{size:24,color:"white",strokeWidth:2})})]}),j.jsxs("section",{className:"flex items-center-safe justify-between",children:[j.jsxs(oa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>{const S=!i;s(S),S||(v("coupon"),p("coupon"))},id:"check_benefits_button",children:[j.jsx("span",{children:i?"Não possui Cupom / ID do Cartão??":"Possui Cupom / ID do Cartão?"}),j.jsx(So,{size:16,className:Ht({"rotate-0":!i,"rotate-180":i})})]}),j.jsxs(oa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>l.setState("isPreview"),id:"check_benefits_button",children:[j.jsx("span",{children:"Consultar Benefícios"}),j.jsx(So,{size:16})]})]})]})}function Oh({textColor:n}){return j.jsxs("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:[j.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"}),j.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 vb=async({products:n})=>{const l=Na("VITE_API_URL");if(!l)throw new Error("API URL is not defined in environment variables");const i=jr.get("pbm-token");if(!i)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${l}/products/genericBenefit`,{method:"POST",headers:{Authorization:`Bearer ${i}`,"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},zh={modal:{id:"",open:!1,label:"",url:""}},Lr=Ad(n=>({...zh,setModal:l=>n({modal:l}),resetModal:()=>n({modal:zh.modal})}));function bb({size:n}){return j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:j.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 xb({size:n}){return j.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:[j.jsx("circle",{cx:250,cy:250,r:237.45,fill:"#fff"}),j.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 kh={CheckON:bb,CheckOFF:xb};function Sb({data:n,onChange:l,checked:i}){const{setAvailableDiscountSelected:s,state:o,isAuthenticatedShopper:f}=Ft(),{setModal:d}=Lr(),m="unity_quantity_"+n.authorizedQuantity,p=n.discountPercentual/100,v=n.grossPrice*p,T=v*n.authorizedQuantity,w=n.grossPrice*n.authorizedQuantity-T,R=he.useCallback(()=>{if(i){const U=A=>Math.round(A*100)/100;s({discount:{total:U(T),unit:U(v)},quantity:n.authorizedQuantity,totalPrice:U(w),grossPrice:n.grossPrice})}},[i,n.authorizedQuantity,s,T,w,v]);he.useEffect(()=>{R()},[R]);const S=()=>{if(!f&&o==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}l()};return j.jsxs("label",{htmlFor:m,className:Ht("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":!i&&o==="isActivated"}),style:{borderColor:i?"var(--pbm-primary)":void 0,backgroundColor:i?"color-mix(in srgb, var(--pbm-primary), transparent 90%)":void 0},id:"label_benefits_"+m,children:[j.jsx("input",{type:"radio",name:"benefits_discount",id:m,className:"hidden",checked:i,onChange:S,disabled:o==="isPreview"}),j.jsx("span",{style:{color:"var(--pbm-primary)"},children:i?j.jsx(kh.CheckON,{size:20}):j.jsx(kh.CheckOFF,{size:20})}),j.jsxs("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},children:[n.authorizedQuantity,"un"]}),j.jsxs("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",children:[j.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:[T.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"]}),j.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 _b(){var R;const[n,l]=he.useTransition(),{securityNumber:i,setState:s,state:o,targetProduct:f,customLoginUrl:d,isAuthenticatedShopper:m}=Ft(),[p,v]=he.useState(null),[T,w]=he.useState();return he.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 S=async()=>{try{const A={productId:Number(f.productId),ean:f.ean,requestedQuantity:1,listPrice:f.listPrice,netPrice:f.price},Z=await vb({products:[A]});Z.success&&Z.data?w(Z.data):w(void 0)}catch(A){w(void 0),console.error(A)}},U=async()=>{if(!i){console.error("PBMLOG: Document is not defined");return}try{const A={productId:Number(f.productId),ean:f.ean,requestedQuantity:1,listPrice:f.listPrice,netPrice:f.price},Z=await Xd({document:i,products:[A]});Z.success&&Z.data?w(Z.data.product):w(void 0)}catch(A){w(void 0),console.error(A)}};l(async()=>{o==="isActivated"?await U():await S()})},[]),n?j.jsx(Oh,{textColor:"var(--pbm-text)"}):T!=null&&T.length&&((R=T[0])==null?void 0:R.statusCode)==null&&o==="isActivated"?j.jsx("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:j.jsx("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",children:T[0].informativeText})}):j.jsxs("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",children:[j.jsx($n,{children:"Descontos disponíveis:"}),j.jsxs("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:S=>S.preventDefault(),children:[!T&&j.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."}),T&&T.map((S,U)=>{const A="unity_quantity_"+S.authorizedQuantity;return j.jsx(Sb,{data:S,checked:p===A,onChange:()=>v(A)},U)})]}),o==="isPreview"&&j.jsxs(oa,{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"," ",j.jsx("span",{className:"underline",children:"insira seu cpf para utilizar os benefícios"})]}),o==="isActivated"&&j.jsxs(j.Fragment,{children:[!m&&j.jsx(oa,{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:j.jsx("span",{className:"underline",children:"Por favor, faça o Login para aproveitar os benefícios!"})}),j.jsx(oa,{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:j.jsx("span",{className:"underline",children:"Deseja editar o cpf digitado?"})})]})]})}function wb({textColor:n}){const{urlAcceptTerms:l}=Ft(),{setModal:i}=Lr(),s=()=>{l&&i({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:l})};return j.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:[j.jsx($n,{className:"w-full",textColor:n,children:"CPF não cadastrado."}),j.jsxs(Kn,{className:"w-full",textColor:n,children:["Conclua seu cadastro para habilitar o benefício. ",j.jsx("br",{}),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."]}),j.jsx(oa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Aceitar os termos"})]})}function Ab({textColor:n}){const{urlRegisterIndustry:l}=Ft(),{setModal:i}=Lr(),s=()=>{l&&i({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:l})};return j.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:[j.jsx($n,{className:"w-full",textColor:n,children:"Ops, seu CPF ainda não está habilitado para este produto."}),j.jsx(Kn,{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."}),j.jsx(oa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Ativar CPF"})]})}const Nh=()=>{const{ErrorMessage:n}=_o(),{setState:l}=Ft();return j.jsxs(Pu,{variant:"main",children:[j.jsx($n,{children:"Erro ao Aplicar o Benefício"}),j.jsx(Kn,{textAlign:"center",children:n}),j.jsxs(oa,{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:i=>i.currentTarget.style.filter="brightness(0.8)",onMouseOut:i=>i.currentTarget.style.filter="none",onClick:()=>l("isEmpty"),id:"check_benefits_button",children:[j.jsx("span",{children:"Tentar novamente"}),j.jsx(gb,{size:16})]})]})},Tb=n=>n===void 0?"":"?"+Object.keys(n).map(l=>l+"="+n[l]).join("&");function Cb(n){const{setState:l}=Ft();return j.jsx("a",{...n,target:n.target||"_self",href:typeof n.href=="string"?n.href:n.href.pathname+Tb(n.href.param),className:Ht("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:i=>i.currentTarget.style.backgroundColor="var(--pbm-secondary)",onMouseOut:i=>i.currentTarget.style.backgroundColor="var(--pbm-primary)","data-testid":"test_id_link",id:"link_pbm",onClick:()=>l("isEmpty"),children:n.children})}const Eb=({ID:n})=>{const{customLoginUrl:l}=Ft(),{modal:i,setModal:s}=Lr();return j.jsxs("main",{className:Ht("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":i.id===n&&i.open,"opacity-0 pointer-events-none":i.id!=n||!i.open}),children:[j.jsx("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1})}),j.jsxs("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",children:[j.jsx($n,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",children:"Opa! Parece que você não está Logado"}),j.jsxs(Kn,{className:"mb-2",textAlign:"center",children:["Para aproveitar os benefícios é necessário realizar o ",j.jsx("strong",{children:"Login"})," ou ",j.jsx("strong",{children:"Cadastro"})," no site!"]}),j.jsxs("section",{className:"flex items-center-safe justify-center-safe gap-4",children:[j.jsx(oa,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),children:"Seguir sem Benefícios"}),j.jsx(Cb,{href:l||"/login",children:"Aproveitar Benefícios"})]})]})]})};function Mh(n){var l,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(l=0;l<o;l++)n[l]&&(i=Mh(n[l]))&&(s&&(s+=" "),s+=i)}else for(i in n)n[i]&&(s&&(s+=" "),s+=i);return s}function Dh(){for(var n,l,i=0,s="",o=arguments.length;i<o;i++)(n=arguments[i])&&(l=Mh(n))&&(s&&(s+=" "),s+=l);return s}function Ob(n,l,i=void 0){const s={};for(const o in n){const f=n[o];let d="",m=!0;for(let p=0;p<f.length;p+=1){const v=f[p];v&&(d+=(m===!0?"":" ")+l(v),m=!1,i&&i[v]&&(d+=" "+i[v]))}s[o]=d}return s}function Wn(n,...l){const i=new URL(`https://mui.com/production-error/?code=${n}`);return l.forEach(s=>i.searchParams.append("args[]",s)),`Minified MUI error #${n}; visit ${i} for the full message.`}const zb="$$material";function wo(){return wo=Object.assign?Object.assign.bind():function(n){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var s in i)({}).hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},wo.apply(null,arguments)}function kb(n){if(n.sheet)return n.sheet;for(var l=0;l<document.styleSheets.length;l++)if(document.styleSheets[l].ownerNode===n)return document.styleSheets[l]}function Nb(n){var l=document.createElement("style");return l.setAttribute("data-emotion",n.key),n.nonce!==void 0&&l.setAttribute("nonce",n.nonce),l.appendChild(document.createTextNode("")),l.setAttribute("data-s",""),l}var Mb=(function(){function n(i){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=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var l=n.prototype;return l.hydrate=function(s){s.forEach(this._insertTag)},l.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Nb(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var f=kb(o);try{f.insertRule(s,f.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(s));this.ctr++},l.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})(),Dt="-ms-",ns="-moz-",je="-webkit-",jh="comm",Ao="rule",To="decl",Db="@import",Rh="@keyframes",jb="@layer",Rb=Math.abs,ls=String.fromCharCode,Ub=Object.assign;function Bb(n,l){return Ct(n,0)^45?(((l<<2^Ct(n,0))<<2^Ct(n,1))<<2^Ct(n,2))<<2^Ct(n,3):0}function Uh(n){return n.trim()}function Vb(n,l){return(n=l.exec(n))?n[0]:n}function Re(n,l,i){return n.replace(l,i)}function Co(n,l){return n.indexOf(l)}function Ct(n,l){return n.charCodeAt(l)|0}function Hr(n,l,i){return n.slice(l,i)}function Da(n){return n.length}function Eo(n){return n.length}function rs(n,l){return l.push(n),n}function Lb(n,l){return n.map(l).join("")}var is=1,kl=1,Bh=0,Zt=0,yt=0,Nl="";function ss(n,l,i,s,o,f,d){return{value:n,root:l,parent:i,type:s,props:o,children:f,line:is,column:kl,length:d,return:""}}function qr(n,l){return Ub(ss("",null,null,"",null,null,0),n,{length:-n.length},l)}function Hb(){return yt}function qb(){return yt=Zt>0?Ct(Nl,--Zt):0,kl--,yt===10&&(kl=1,is--),yt}function It(){return yt=Zt<Bh?Ct(Nl,Zt++):0,kl++,yt===10&&(kl=1,is++),yt}function ja(){return Ct(Nl,Zt)}function us(){return Zt}function Zr(n,l){return Hr(Nl,n,l)}function Yr(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 Vh(n){return is=kl=1,Bh=Da(Nl=n),Zt=0,[]}function Lh(n){return Nl="",n}function os(n){return Uh(Zr(Zt-1,Oo(n===91?n+2:n===40?n+1:n)))}function Zb(n){for(;(yt=ja())&&yt<33;)It();return Yr(n)>2||Yr(yt)>3?"":" "}function Yb(n,l){for(;--l&&It()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Zr(n,us()+(l<6&&ja()==32&&It()==32))}function Oo(n){for(;It();)switch(yt){case n:return Zt;case 34:case 39:n!==34&&n!==39&&Oo(yt);break;case 40:n===41&&Oo(n);break;case 92:It();break}return Zt}function Gb(n,l){for(;It()&&n+yt!==57;)if(n+yt===84&&ja()===47)break;return"/*"+Zr(l,Zt-1)+"*"+ls(n===47?n:It())}function Qb(n){for(;!Yr(ja());)It();return Zr(n,Zt)}function Xb(n){return Lh(cs("",null,null,null,[""],n=Vh(n),0,[0],n))}function cs(n,l,i,s,o,f,d,m,p){for(var v=0,T=0,w=d,R=0,S=0,U=0,A=1,Z=1,I=1,$=0,te="",P=o,L=f,Q=s,ae=te;Z;)switch(U=$,$=It()){case 40:if(U!=108&&Ct(ae,w-1)==58){Co(ae+=Re(os($),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:ae+=os($);break;case 9:case 10:case 13:case 32:ae+=Zb(U);break;case 92:ae+=Yb(us()-1,7);continue;case 47:switch(ja()){case 42:case 47:rs($b(Gb(It(),us()),l,i),p);break;default:ae+="/"}break;case 123*A:m[v++]=Da(ae)*I;case 125*A:case 59:case 0:switch($){case 0:case 125:Z=0;case 59+T:I==-1&&(ae=Re(ae,/\f/g,"")),S>0&&Da(ae)-w&&rs(S>32?qh(ae+";",s,i,w-1):qh(Re(ae," ","")+";",s,i,w-2),p);break;case 59:ae+=";";default:if(rs(Q=Hh(ae,l,i,v,T,o,m,te,P=[],L=[],w),f),$===123)if(T===0)cs(ae,l,Q,Q,P,f,w,m,L);else switch(R===99&&Ct(ae,3)===110?100:R){case 100:case 108:case 109:case 115:cs(n,Q,Q,s&&rs(Hh(n,Q,Q,0,0,o,m,te,o,P=[],w),L),o,L,w,m,s?P:L);break;default:cs(ae,Q,Q,Q,[""],L,0,m,L)}}v=T=S=0,A=I=1,te=ae="",w=d;break;case 58:w=1+Da(ae),S=U;default:if(A<1){if($==123)--A;else if($==125&&A++==0&&qb()==125)continue}switch(ae+=ls($),$*A){case 38:I=T>0?1:(ae+="\f",-1);break;case 44:m[v++]=(Da(ae)-1)*I,I=1;break;case 64:ja()===45&&(ae+=os(It())),R=ja(),T=w=Da(te=ae+=Qb(us())),$++;break;case 45:U===45&&Da(ae)==2&&(A=0)}}return f}function Hh(n,l,i,s,o,f,d,m,p,v,T){for(var w=o-1,R=o===0?f:[""],S=Eo(R),U=0,A=0,Z=0;U<s;++U)for(var I=0,$=Hr(n,w+1,w=Rb(A=d[U])),te=n;I<S;++I)(te=Uh(A>0?R[I]+" "+$:Re($,/&\f/g,R[I])))&&(p[Z++]=te);return ss(n,l,i,o===0?Ao:m,p,v,T)}function $b(n,l,i){return ss(n,l,i,jh,ls(Hb()),Hr(n,2,-2),0)}function qh(n,l,i,s){return ss(n,l,i,To,Hr(n,0,s),Hr(n,s+1,-1),s)}function Ml(n,l){for(var i="",s=Eo(n),o=0;o<s;o++)i+=l(n[o],o,n,l)||"";return i}function Kb(n,l,i,s){switch(n.type){case jb:if(n.children.length)break;case Db:case To:return n.return=n.return||n.value;case jh:return"";case Rh:return n.return=n.value+"{"+Ml(n.children,s)+"}";case Ao:n.value=n.props.join(",")}return Da(i=Ml(n.children,s))?n.return=n.value+"{"+i+"}":""}function Jb(n){var l=Eo(n);return function(i,s,o,f){for(var d="",m=0;m<l;m++)d+=n[m](i,s,o,f)||"";return d}}function Fb(n){return function(l){l.root||(l=l.return)&&n(l)}}function Zh(n){var l=Object.create(null);return function(i){return l[i]===void 0&&(l[i]=n(i)),l[i]}}var Wb=function(l,i,s){for(var o=0,f=0;o=f,f=ja(),o===38&&f===12&&(i[s]=1),!Yr(f);)It();return Zr(l,Zt)},Ib=function(l,i){var s=-1,o=44;do switch(Yr(o)){case 0:o===38&&ja()===12&&(i[s]=1),l[s]+=Wb(Zt-1,i,s);break;case 2:l[s]+=os(o);break;case 4:if(o===44){l[++s]=ja()===58?"&\f":"",i[s]=l[s].length;break}default:l[s]+=ls(o)}while(o=It());return l},Pb=function(l,i){return Lh(Ib(Vh(l),i))},Yh=new WeakMap,e1=function(l){if(!(l.type!=="rule"||!l.parent||l.length<1)){for(var i=l.value,s=l.parent,o=l.column===s.column&&l.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(l.props.length===1&&i.charCodeAt(0)!==58&&!Yh.get(s))&&!o){Yh.set(l,!0);for(var f=[],d=Pb(i,f),m=s.props,p=0,v=0;p<d.length;p++)for(var T=0;T<m.length;T++,v++)l.props[v]=f[p]?d[p].replace(/&\f/g,m[T]):m[T]+" "+d[p]}}},t1=function(l){if(l.type==="decl"){var i=l.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(l.return="",l.value="")}};function Gh(n,l){switch(Bb(n,l)){case 5103:return je+"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 je+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return je+n+ns+n+Dt+n+n;case 6828:case 4268:return je+n+Dt+n+n;case 6165:return je+n+Dt+"flex-"+n+n;case 5187:return je+n+Re(n,/(\w+).+(:[^]+)/,je+"box-$1$2"+Dt+"flex-$1$2")+n;case 5443:return je+n+Dt+"flex-item-"+Re(n,/flex-|-self/,"")+n;case 4675:return je+n+Dt+"flex-line-pack"+Re(n,/align-content|flex-|-self/,"")+n;case 5548:return je+n+Dt+Re(n,"shrink","negative")+n;case 5292:return je+n+Dt+Re(n,"basis","preferred-size")+n;case 6060:return je+"box-"+Re(n,"-grow","")+je+n+Dt+Re(n,"grow","positive")+n;case 4554:return je+Re(n,/([^-])(transform)/g,"$1"+je+"$2")+n;case 6187:return Re(Re(Re(n,/(zoom-|grab)/,je+"$1"),/(image-set)/,je+"$1"),n,"")+n;case 5495:case 3959:return Re(n,/(image-set\([^]*)/,je+"$1$`$1");case 4968:return Re(Re(n,/(.+:)(flex-)?(.*)/,je+"box-pack:$3"+Dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+je+n+n;case 4095:case 3583:case 4068:case 2532:return Re(n,/(.+)-inline(.+)/,je+"$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(Da(n)-1-l>6)switch(Ct(n,l+1)){case 109:if(Ct(n,l+4)!==45)break;case 102:return Re(n,/(.+:)(.+)-([^]+)/,"$1"+je+"$2-$3$1"+ns+(Ct(n,l+3)==108?"$3":"$2-$3"))+n;case 115:return~Co(n,"stretch")?Gh(Re(n,"stretch","fill-available"),l)+n:n}break;case 4949:if(Ct(n,l+1)!==115)break;case 6444:switch(Ct(n,Da(n)-3-(~Co(n,"!important")&&10))){case 107:return Re(n,":",":"+je)+n;case 101:return Re(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+je+(Ct(n,14)===45?"inline-":"")+"box$3$1"+je+"$2$3$1"+Dt+"$2box$3")+n}break;case 5936:switch(Ct(n,l+11)){case 114:return je+n+Dt+Re(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return je+n+Dt+Re(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return je+n+Dt+Re(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return je+n+Dt+n+n}return n}var a1=function(l,i,s,o){if(l.length>-1&&!l.return)switch(l.type){case To:l.return=Gh(l.value,l.length);break;case Rh:return Ml([qr(l,{value:Re(l.value,"@","@"+je)})],o);case Ao:if(l.length)return Lb(l.props,function(f){switch(Vb(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ml([qr(l,{props:[Re(f,/:(read-\w+)/,":"+ns+"$1")]})],o);case"::placeholder":return Ml([qr(l,{props:[Re(f,/:(plac\w+)/,":"+je+"input-$1")]}),qr(l,{props:[Re(f,/:(plac\w+)/,":"+ns+"$1")]}),qr(l,{props:[Re(f,/:(plac\w+)/,Dt+"input-$1")]})],o)}return""})}},n1=[a1],l1=function(l){var i=l.key;if(i==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(A){var Z=A.getAttribute("data-emotion");Z.indexOf(" ")!==-1&&(document.head.appendChild(A),A.setAttribute("data-s",""))})}var o=l.stylisPlugins||n1,f={},d,m=[];d=l.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(A){for(var Z=A.getAttribute("data-emotion").split(" "),I=1;I<Z.length;I++)f[Z[I]]=!0;m.push(A)});var p,v=[e1,t1];{var T,w=[Kb,Fb(function(A){T.insert(A)})],R=Jb(v.concat(o,w)),S=function(Z){return Ml(Xb(Z),R)};p=function(Z,I,$,te){T=$,S(Z?Z+"{"+I.styles+"}":I.styles),te&&(U.inserted[I.name]=!0)}}var U={key:i,sheet:new Mb({key:i,container:d,nonce:l.nonce,speedy:l.speedy,prepend:l.prepend,insertionPoint:l.insertionPoint}),nonce:l.nonce,inserted:f,registered:{},insert:p};return U.sheet.hydrate(m),U},zo={exports:{}},Ve={};/** @license React v16.13.1
|
|
77
|
+
*/const Ch=as("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"}]]),Eh={ErrorMessage:"Erro ao aplicar o benefício"},So=Ad(n=>({...Eh,setErrorMessage:l=>n({ErrorMessage:l}),resetErrorMessage:()=>n({ErrorMessage:Eh.ErrorMessage})}));function gb({startTransition:n}){const l=Ft(),[i,s]=he.useState(!1),{setErrorMessage:o}=So(),{handleSubmit:f,register:d,setValue:m,clearErrors:g,unregister:v,formState:{errors:T}}=eb({resolver:cb(Ov),mode:"onSubmit",defaultValues:{securityNumber:l.securityNumber||"",coupon:""}}),w=async _=>{try{if(l.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!l.targetProduct.productId){console.error("PBMLOG: Product ID is not defined!");return}if(!l.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}const U={productId:l.targetProduct.productId,ean:l.targetProduct.ean,requestedQuantity:1,listPrice:l.targetProduct.listPrice,netPrice:l.targetProduct.netPrice??l.targetProduct.listPrice},A=await Xd({document:_.securityNumber.replace(/\D/g,""),products:[U]});if(A.success){const Z=kv(A.data.product[0].statusCustomer);if(l.setSecurityNumber(_.securityNumber),l.setState(Z),Z==="isInvalid"){l.setUrlAcceptTerms(A.data.product[0].urlAcceptTerm||void 0);return}if(Z==="isRegistered"){l.setUrlRegisterIndustry(A.data.product[0].informativeLink);return}if(!Z){o(A.data.product[0].informativeText),l.setState("isError");return}}}catch(U){console.error("PBMLOG: Error validating document -",U)}},R=async _=>{i||m("coupon",void 0,{shouldValidate:!1}),i&&_.coupon!=null&&l.setCardID(_.coupon),n(async()=>{await w(_)})};return j.jsxs(j.Fragment,{children:[j.jsxs("form",{onSubmit:f(R),className:Ht("w-full h-auto flex items-center justify-center mb-0 transition-all duration-150",{"mb-4":T.securityNumber||T.coupon&&i,"gap-2":i}),id:"form_security_number_pbm",children:[j.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:[j.jsx("input",{type:"text",className:Ht("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":T.securityNumber,"rounded-lg":i}),style:{"--tw-outline-color":T.securityNumber?void 0:"var(--pbm-secondary)"},placeholder:"Digite seu CPF aqui...",required:!0,maxLength:14,...d("securityNumber",{onChange:_=>{const U=zv(_.target.value);m("securityNumber",U,{shouldValidate:!0})}}),defaultValue:l.securityNumber||"",id:"input_security_number_pbm"}),T.securityNumber&&j.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"security_number_form_error",children:T.securityNumber.message})]}),j.jsx(he.Activity,{mode:i?"visible":"hidden",children:j.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:[j.jsx("input",{type:"text",className:Ht("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":T.coupon,"rounded-lg":i}),style:{"--tw-outline-color":T.coupon?void 0:"var(--pbm-secondary)"},placeholder:"Cupom / ID do Cartão",...d("coupon",{required:i?"Cupom / ID do Cartão obrigatório.":!1,shouldUnregister:!i,onChange:_=>{m("coupon",_.target.value,{shouldValidate:i})}}),id:"input_coupon_pbm"}),T.coupon&&j.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",children:T.coupon.message})]})}),j.jsx("button",{type:"submit",className:Ht("w-1/5 h-10 rounded-e-lg flex items-center justify-center cursor-pointer",{"rounded-lg":i}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",children:j.jsx(_o,{size:24,color:"white",strokeWidth:2})})]}),j.jsxs("section",{className:"flex items-center-safe justify-between",children:[j.jsxs(oa,{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 _=!i;s(_),_||(v("coupon"),g("coupon"))},id:"check_benefits_button",children:[j.jsx("span",{children:i?"Não possui Cupom / ID do Cartão??":"Possui Cupom / ID do Cartão?"}),j.jsx(_o,{size:16,className:Ht({"rotate-0":!i,"rotate-180":i})})]}),j.jsxs(oa,{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:()=>l.setState("isPreview"),id:"check_benefits_button",children:[j.jsx("span",{children:"Consultar Benefícios"}),j.jsx(_o,{size:16})]})]})]})}function Oh({textColor:n}){return j.jsxs("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:[j.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"}),j.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 vb=async({products:n})=>{const l=Na("VITE_API_URL");if(!l)throw new Error("API URL is not defined in environment variables");const i=jr.get("pbm-token");if(!i)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${l}/products/genericBenefit`,{method:"POST",headers:{Authorization:`Bearer ${i}`,"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},zh={modal:{id:"",open:!1,label:"",url:""}},Lr=Ad(n=>({...zh,setModal:l=>n({modal:l}),resetModal:()=>n({modal:zh.modal})}));function bb({size:n}){return j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:j.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 xb({size:n}){return j.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:[j.jsx("circle",{cx:250,cy:250,r:237.45,fill:"#fff"}),j.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 kh={CheckON:bb,CheckOFF:xb};function _b({data:n,onChange:l,checked:i}){const{setAvailableDiscountSelected:s,state:o,isAuthenticatedShopper:f}=Ft(),{setModal:d}=Lr(),m="unity_quantity_"+n.authorizedQuantity,g=n.discountPercentual/100,v=n.grossPrice*g,T=v*n.authorizedQuantity,w=n.grossPrice*n.authorizedQuantity-T,R=he.useCallback(()=>{if(i){const U=A=>Math.round(A*100)/100;s({discount:{total:U(T),unit:U(v)},quantity:n.authorizedQuantity,totalPrice:U(w),grossPrice:n.grossPrice})}},[i,n.authorizedQuantity,s,T,w,v]);he.useEffect(()=>{R()},[R]);const _=()=>{if(!f&&o==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}l()};return j.jsxs("label",{htmlFor:m,className:Ht("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":!i&&o==="isActivated"}),style:{borderColor:i?"var(--pbm-primary)":void 0,backgroundColor:i?"color-mix(in srgb, var(--pbm-primary), transparent 90%)":void 0},id:"label_benefits_"+m,children:[j.jsx("input",{type:"radio",name:"benefits_discount",id:m,className:"hidden",checked:i,onChange:_,disabled:o==="isPreview"}),j.jsx("span",{style:{color:"var(--pbm-primary)"},children:i?j.jsx(kh.CheckON,{size:20}):j.jsx(kh.CheckOFF,{size:20})}),j.jsxs("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},children:[n.authorizedQuantity,"un"]}),j.jsxs("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",children:[j.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:[T.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"]}),j.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 Sb(){var R;const[n,l]=he.useTransition(),{securityNumber:i,setState:s,state:o,targetProduct:f,customLoginUrl:d,isAuthenticatedShopper:m}=Ft(),[g,v]=he.useState(null),[T,w]=he.useState();return he.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 A={productId:Number(f.productId),ean:f.ean,requestedQuantity:1,listPrice:f.listPrice,netPrice:f.price},Z=await vb({products:[A]});Z.success&&Z.data?w(Z.data):w(void 0)}catch(A){w(void 0),console.error(A)}},U=async()=>{if(!i){console.error("PBMLOG: Document is not defined");return}try{const A={productId:Number(f.productId),ean:f.ean,requestedQuantity:1,listPrice:f.listPrice,netPrice:f.price},Z=await Xd({document:i,products:[A]});Z.success&&Z.data?w(Z.data.product):w(void 0)}catch(A){w(void 0),console.error(A)}};l(async()=>{o==="isActivated"?await U():await _()})},[]),n?j.jsx(Oh,{textColor:"var(--pbm-text)"}):T!=null&&T.length&&((R=T[0])==null?void 0:R.statusCode)==null&&o==="isActivated"?j.jsx("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:j.jsx("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",children:T[0].informativeText})}):j.jsxs("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",children:[j.jsx($n,{children:"Descontos disponíveis:"}),j.jsxs("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:_=>_.preventDefault(),children:[!T&&j.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."}),T&&T.map((_,U)=>{const A="unity_quantity_"+_.authorizedQuantity;return j.jsx(_b,{data:_,checked:g===A,onChange:()=>v(A)},U)})]}),o==="isPreview"&&j.jsxs(oa,{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"," ",j.jsx("span",{className:"underline",children:"insira seu cpf para utilizar os benefícios"})]}),o==="isActivated"&&j.jsxs(j.Fragment,{children:[!m&&j.jsx(oa,{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:j.jsx("span",{className:"underline",children:"Por favor, faça o Login para aproveitar os benefícios!"})}),j.jsx(oa,{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:j.jsx("span",{className:"underline",children:"Deseja editar o cpf digitado?"})})]})]})}function wb({textColor:n}){const{urlAcceptTerms:l}=Ft(),{setModal:i}=Lr(),s=()=>{l&&i({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:l})};return j.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:[j.jsx($n,{className:"w-full",textColor:n,children:"CPF não cadastrado."}),j.jsxs(Kn,{className:"w-full",textColor:n,children:["Conclua seu cadastro para habilitar o benefício. ",j.jsx("br",{}),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."]}),j.jsx(oa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Aceitar os termos"})]})}function Ab({textColor:n}){const{urlRegisterIndustry:l}=Ft(),{setModal:i}=Lr(),s=()=>{l&&i({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:l})};return j.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:[j.jsx($n,{className:"w-full",textColor:n,children:"Ops, seu CPF ainda não está habilitado para este produto."}),j.jsx(Kn,{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."}),j.jsx(oa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Ativar CPF"})]})}const Nh=()=>{const{ErrorMessage:n}=So(),{setState:l}=Ft();return j.jsxs(Pu,{variant:"main",children:[j.jsx($n,{children:"Erro ao Aplicar o Benefício"}),j.jsx(Kn,{textAlign:"center",children:n}),j.jsxs(oa,{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:i=>i.currentTarget.style.filter="brightness(0.8)",onMouseOut:i=>i.currentTarget.style.filter="none",onClick:()=>l("isEmpty"),id:"check_benefits_button",children:[j.jsx("span",{children:"Tentar novamente"}),j.jsx(pb,{size:16})]})]})},Tb=n=>n===void 0?"":"?"+Object.keys(n).map(l=>l+"="+n[l]).join("&");function Cb(n){const{setState:l}=Ft();return j.jsx("a",{...n,target:n.target||"_self",href:typeof n.href=="string"?n.href:n.href.pathname+Tb(n.href.param),className:Ht("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:i=>i.currentTarget.style.backgroundColor="var(--pbm-secondary)",onMouseOut:i=>i.currentTarget.style.backgroundColor="var(--pbm-primary)","data-testid":"test_id_link",id:"link_pbm",onClick:()=>l("isEmpty"),children:n.children})}const Eb=({ID:n})=>{const{customLoginUrl:l}=Ft(),{modal:i,setModal:s}=Lr();return j.jsxs("main",{className:Ht("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":i.id===n&&i.open,"opacity-0 pointer-events-none":i.id!=n||!i.open}),children:[j.jsx("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1})}),j.jsxs("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",children:[j.jsx($n,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",children:"Opa! Parece que você não está Logado"}),j.jsxs(Kn,{className:"mb-2",textAlign:"center",children:["Para aproveitar os benefícios é necessário realizar o ",j.jsx("strong",{children:"Login"})," ou ",j.jsx("strong",{children:"Cadastro"})," no site!"]}),j.jsxs("section",{className:"flex items-center-safe justify-center-safe gap-4",children:[j.jsx(oa,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),children:"Seguir sem Benefícios"}),j.jsx(Cb,{href:l||"/login",children:"Aproveitar Benefícios"})]})]})]})};function Mh(n){var l,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(l=0;l<o;l++)n[l]&&(i=Mh(n[l]))&&(s&&(s+=" "),s+=i)}else for(i in n)n[i]&&(s&&(s+=" "),s+=i);return s}function Dh(){for(var n,l,i=0,s="",o=arguments.length;i<o;i++)(n=arguments[i])&&(l=Mh(n))&&(s&&(s+=" "),s+=l);return s}function Ob(n,l,i=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 v=f[g];v&&(d+=(m===!0?"":" ")+l(v),m=!1,i&&i[v]&&(d+=" "+i[v]))}s[o]=d}return s}function Wn(n,...l){const i=new URL(`https://mui.com/production-error/?code=${n}`);return l.forEach(s=>i.searchParams.append("args[]",s)),`Minified MUI error #${n}; visit ${i} for the full message.`}const zb="$$material";function wo(){return wo=Object.assign?Object.assign.bind():function(n){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var s in i)({}).hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},wo.apply(null,arguments)}function kb(n){if(n.sheet)return n.sheet;for(var l=0;l<document.styleSheets.length;l++)if(document.styleSheets[l].ownerNode===n)return document.styleSheets[l]}function Nb(n){var l=document.createElement("style");return l.setAttribute("data-emotion",n.key),n.nonce!==void 0&&l.setAttribute("nonce",n.nonce),l.appendChild(document.createTextNode("")),l.setAttribute("data-s",""),l}var Mb=(function(){function n(i){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=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var l=n.prototype;return l.hydrate=function(s){s.forEach(this._insertTag)},l.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Nb(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var f=kb(o);try{f.insertRule(s,f.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(s));this.ctr++},l.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})(),Dt="-ms-",ns="-moz-",je="-webkit-",jh="comm",Ao="rule",To="decl",Db="@import",Rh="@keyframes",jb="@layer",Rb=Math.abs,ls=String.fromCharCode,Ub=Object.assign;function Bb(n,l){return Ct(n,0)^45?(((l<<2^Ct(n,0))<<2^Ct(n,1))<<2^Ct(n,2))<<2^Ct(n,3):0}function Uh(n){return n.trim()}function Vb(n,l){return(n=l.exec(n))?n[0]:n}function Re(n,l,i){return n.replace(l,i)}function Co(n,l){return n.indexOf(l)}function Ct(n,l){return n.charCodeAt(l)|0}function Hr(n,l,i){return n.slice(l,i)}function Da(n){return n.length}function Eo(n){return n.length}function rs(n,l){return l.push(n),n}function Lb(n,l){return n.map(l).join("")}var is=1,kl=1,Bh=0,Zt=0,yt=0,Nl="";function ss(n,l,i,s,o,f,d){return{value:n,root:l,parent:i,type:s,props:o,children:f,line:is,column:kl,length:d,return:""}}function qr(n,l){return Ub(ss("",null,null,"",null,null,0),n,{length:-n.length},l)}function Hb(){return yt}function qb(){return yt=Zt>0?Ct(Nl,--Zt):0,kl--,yt===10&&(kl=1,is--),yt}function It(){return yt=Zt<Bh?Ct(Nl,Zt++):0,kl++,yt===10&&(kl=1,is++),yt}function ja(){return Ct(Nl,Zt)}function us(){return Zt}function Zr(n,l){return Hr(Nl,n,l)}function Yr(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 Vh(n){return is=kl=1,Bh=Da(Nl=n),Zt=0,[]}function Lh(n){return Nl="",n}function os(n){return Uh(Zr(Zt-1,Oo(n===91?n+2:n===40?n+1:n)))}function Zb(n){for(;(yt=ja())&&yt<33;)It();return Yr(n)>2||Yr(yt)>3?"":" "}function Yb(n,l){for(;--l&&It()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Zr(n,us()+(l<6&&ja()==32&&It()==32))}function Oo(n){for(;It();)switch(yt){case n:return Zt;case 34:case 39:n!==34&&n!==39&&Oo(yt);break;case 40:n===41&&Oo(n);break;case 92:It();break}return Zt}function Gb(n,l){for(;It()&&n+yt!==57;)if(n+yt===84&&ja()===47)break;return"/*"+Zr(l,Zt-1)+"*"+ls(n===47?n:It())}function Qb(n){for(;!Yr(ja());)It();return Zr(n,Zt)}function Xb(n){return Lh(cs("",null,null,null,[""],n=Vh(n),0,[0],n))}function cs(n,l,i,s,o,f,d,m,g){for(var v=0,T=0,w=d,R=0,_=0,U=0,A=1,Z=1,I=1,$=0,te="",P=o,L=f,Q=s,ae=te;Z;)switch(U=$,$=It()){case 40:if(U!=108&&Ct(ae,w-1)==58){Co(ae+=Re(os($),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:ae+=os($);break;case 9:case 10:case 13:case 32:ae+=Zb(U);break;case 92:ae+=Yb(us()-1,7);continue;case 47:switch(ja()){case 42:case 47:rs($b(Gb(It(),us()),l,i),g);break;default:ae+="/"}break;case 123*A:m[v++]=Da(ae)*I;case 125*A:case 59:case 0:switch($){case 0:case 125:Z=0;case 59+T:I==-1&&(ae=Re(ae,/\f/g,"")),_>0&&Da(ae)-w&&rs(_>32?qh(ae+";",s,i,w-1):qh(Re(ae," ","")+";",s,i,w-2),g);break;case 59:ae+=";";default:if(rs(Q=Hh(ae,l,i,v,T,o,m,te,P=[],L=[],w),f),$===123)if(T===0)cs(ae,l,Q,Q,P,f,w,m,L);else switch(R===99&&Ct(ae,3)===110?100:R){case 100:case 108:case 109:case 115:cs(n,Q,Q,s&&rs(Hh(n,Q,Q,0,0,o,m,te,o,P=[],w),L),o,L,w,m,s?P:L);break;default:cs(ae,Q,Q,Q,[""],L,0,m,L)}}v=T=_=0,A=I=1,te=ae="",w=d;break;case 58:w=1+Da(ae),_=U;default:if(A<1){if($==123)--A;else if($==125&&A++==0&&qb()==125)continue}switch(ae+=ls($),$*A){case 38:I=T>0?1:(ae+="\f",-1);break;case 44:m[v++]=(Da(ae)-1)*I,I=1;break;case 64:ja()===45&&(ae+=os(It())),R=ja(),T=w=Da(te=ae+=Qb(us())),$++;break;case 45:U===45&&Da(ae)==2&&(A=0)}}return f}function Hh(n,l,i,s,o,f,d,m,g,v,T){for(var w=o-1,R=o===0?f:[""],_=Eo(R),U=0,A=0,Z=0;U<s;++U)for(var I=0,$=Hr(n,w+1,w=Rb(A=d[U])),te=n;I<_;++I)(te=Uh(A>0?R[I]+" "+$:Re($,/&\f/g,R[I])))&&(g[Z++]=te);return ss(n,l,i,o===0?Ao:m,g,v,T)}function $b(n,l,i){return ss(n,l,i,jh,ls(Hb()),Hr(n,2,-2),0)}function qh(n,l,i,s){return ss(n,l,i,To,Hr(n,0,s),Hr(n,s+1,-1),s)}function Ml(n,l){for(var i="",s=Eo(n),o=0;o<s;o++)i+=l(n[o],o,n,l)||"";return i}function Kb(n,l,i,s){switch(n.type){case jb:if(n.children.length)break;case Db:case To:return n.return=n.return||n.value;case jh:return"";case Rh:return n.return=n.value+"{"+Ml(n.children,s)+"}";case Ao:n.value=n.props.join(",")}return Da(i=Ml(n.children,s))?n.return=n.value+"{"+i+"}":""}function Jb(n){var l=Eo(n);return function(i,s,o,f){for(var d="",m=0;m<l;m++)d+=n[m](i,s,o,f)||"";return d}}function Fb(n){return function(l){l.root||(l=l.return)&&n(l)}}function Zh(n){var l=Object.create(null);return function(i){return l[i]===void 0&&(l[i]=n(i)),l[i]}}var Wb=function(l,i,s){for(var o=0,f=0;o=f,f=ja(),o===38&&f===12&&(i[s]=1),!Yr(f);)It();return Zr(l,Zt)},Ib=function(l,i){var s=-1,o=44;do switch(Yr(o)){case 0:o===38&&ja()===12&&(i[s]=1),l[s]+=Wb(Zt-1,i,s);break;case 2:l[s]+=os(o);break;case 4:if(o===44){l[++s]=ja()===58?"&\f":"",i[s]=l[s].length;break}default:l[s]+=ls(o)}while(o=It());return l},Pb=function(l,i){return Lh(Ib(Vh(l),i))},Yh=new WeakMap,e1=function(l){if(!(l.type!=="rule"||!l.parent||l.length<1)){for(var i=l.value,s=l.parent,o=l.column===s.column&&l.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(l.props.length===1&&i.charCodeAt(0)!==58&&!Yh.get(s))&&!o){Yh.set(l,!0);for(var f=[],d=Pb(i,f),m=s.props,g=0,v=0;g<d.length;g++)for(var T=0;T<m.length;T++,v++)l.props[v]=f[g]?d[g].replace(/&\f/g,m[T]):m[T]+" "+d[g]}}},t1=function(l){if(l.type==="decl"){var i=l.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(l.return="",l.value="")}};function Gh(n,l){switch(Bb(n,l)){case 5103:return je+"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 je+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return je+n+ns+n+Dt+n+n;case 6828:case 4268:return je+n+Dt+n+n;case 6165:return je+n+Dt+"flex-"+n+n;case 5187:return je+n+Re(n,/(\w+).+(:[^]+)/,je+"box-$1$2"+Dt+"flex-$1$2")+n;case 5443:return je+n+Dt+"flex-item-"+Re(n,/flex-|-self/,"")+n;case 4675:return je+n+Dt+"flex-line-pack"+Re(n,/align-content|flex-|-self/,"")+n;case 5548:return je+n+Dt+Re(n,"shrink","negative")+n;case 5292:return je+n+Dt+Re(n,"basis","preferred-size")+n;case 6060:return je+"box-"+Re(n,"-grow","")+je+n+Dt+Re(n,"grow","positive")+n;case 4554:return je+Re(n,/([^-])(transform)/g,"$1"+je+"$2")+n;case 6187:return Re(Re(Re(n,/(zoom-|grab)/,je+"$1"),/(image-set)/,je+"$1"),n,"")+n;case 5495:case 3959:return Re(n,/(image-set\([^]*)/,je+"$1$`$1");case 4968:return Re(Re(n,/(.+:)(flex-)?(.*)/,je+"box-pack:$3"+Dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+je+n+n;case 4095:case 3583:case 4068:case 2532:return Re(n,/(.+)-inline(.+)/,je+"$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(Da(n)-1-l>6)switch(Ct(n,l+1)){case 109:if(Ct(n,l+4)!==45)break;case 102:return Re(n,/(.+:)(.+)-([^]+)/,"$1"+je+"$2-$3$1"+ns+(Ct(n,l+3)==108?"$3":"$2-$3"))+n;case 115:return~Co(n,"stretch")?Gh(Re(n,"stretch","fill-available"),l)+n:n}break;case 4949:if(Ct(n,l+1)!==115)break;case 6444:switch(Ct(n,Da(n)-3-(~Co(n,"!important")&&10))){case 107:return Re(n,":",":"+je)+n;case 101:return Re(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+je+(Ct(n,14)===45?"inline-":"")+"box$3$1"+je+"$2$3$1"+Dt+"$2box$3")+n}break;case 5936:switch(Ct(n,l+11)){case 114:return je+n+Dt+Re(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return je+n+Dt+Re(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return je+n+Dt+Re(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return je+n+Dt+n+n}return n}var a1=function(l,i,s,o){if(l.length>-1&&!l.return)switch(l.type){case To:l.return=Gh(l.value,l.length);break;case Rh:return Ml([qr(l,{value:Re(l.value,"@","@"+je)})],o);case Ao:if(l.length)return Lb(l.props,function(f){switch(Vb(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ml([qr(l,{props:[Re(f,/:(read-\w+)/,":"+ns+"$1")]})],o);case"::placeholder":return Ml([qr(l,{props:[Re(f,/:(plac\w+)/,":"+je+"input-$1")]}),qr(l,{props:[Re(f,/:(plac\w+)/,":"+ns+"$1")]}),qr(l,{props:[Re(f,/:(plac\w+)/,Dt+"input-$1")]})],o)}return""})}},n1=[a1],l1=function(l){var i=l.key;if(i==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(A){var Z=A.getAttribute("data-emotion");Z.indexOf(" ")!==-1&&(document.head.appendChild(A),A.setAttribute("data-s",""))})}var o=l.stylisPlugins||n1,f={},d,m=[];d=l.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(A){for(var Z=A.getAttribute("data-emotion").split(" "),I=1;I<Z.length;I++)f[Z[I]]=!0;m.push(A)});var g,v=[e1,t1];{var T,w=[Kb,Fb(function(A){T.insert(A)})],R=Jb(v.concat(o,w)),_=function(Z){return Ml(Xb(Z),R)};g=function(Z,I,$,te){T=$,_(Z?Z+"{"+I.styles+"}":I.styles),te&&(U.inserted[I.name]=!0)}}var U={key:i,sheet:new Mb({key:i,container:d,nonce:l.nonce,speedy:l.speedy,prepend:l.prepend,insertionPoint:l.insertionPoint}),nonce:l.nonce,inserted:f,registered:{},insert:g};return U.sheet.hydrate(m),U},zo={exports:{}},Ve={};/** @license React v16.13.1
|
|
78
78
|
* react-is.production.min.js
|
|
79
79
|
*
|
|
80
80
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the MIT license found in the
|
|
83
83
|
* LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/var Qh;function r1(){if(Qh)return Ve;Qh=1;var n=typeof Symbol=="function"&&Symbol.for,l=n?Symbol.for("react.element"):60103,i=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,p=n?Symbol.for("react.async_mode"):60111,v=n?Symbol.for("react.concurrent_mode"):60111,T=n?Symbol.for("react.forward_ref"):60112,w=n?Symbol.for("react.suspense"):60113,R=n?Symbol.for("react.suspense_list"):60120,S=n?Symbol.for("react.memo"):60115,U=n?Symbol.for("react.lazy"):60116,A=n?Symbol.for("react.block"):60121,Z=n?Symbol.for("react.fundamental"):60117,I=n?Symbol.for("react.responder"):60118,$=n?Symbol.for("react.scope"):60119;function te(L){if(typeof L=="object"&&L!==null){var Q=L.$$typeof;switch(Q){case l:switch(L=L.type,L){case p:case v:case s:case f:case o:case w:return L;default:switch(L=L&&L.$$typeof,L){case m:case T:case U:case S:case d:return L;default:return Q}}case i:return Q}}}function P(L){return te(L)===v}return Ve.AsyncMode=p,Ve.ConcurrentMode=v,Ve.ContextConsumer=m,Ve.ContextProvider=d,Ve.Element=l,Ve.ForwardRef=T,Ve.Fragment=s,Ve.Lazy=U,Ve.Memo=S,Ve.Portal=i,Ve.Profiler=f,Ve.StrictMode=o,Ve.Suspense=w,Ve.isAsyncMode=function(L){return P(L)||te(L)===p},Ve.isConcurrentMode=P,Ve.isContextConsumer=function(L){return te(L)===m},Ve.isContextProvider=function(L){return te(L)===d},Ve.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===l},Ve.isForwardRef=function(L){return te(L)===T},Ve.isFragment=function(L){return te(L)===s},Ve.isLazy=function(L){return te(L)===U},Ve.isMemo=function(L){return te(L)===S},Ve.isPortal=function(L){return te(L)===i},Ve.isProfiler=function(L){return te(L)===f},Ve.isStrictMode=function(L){return te(L)===o},Ve.isSuspense=function(L){return te(L)===w},Ve.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===s||L===v||L===f||L===o||L===w||L===R||typeof L=="object"&&L!==null&&(L.$$typeof===U||L.$$typeof===S||L.$$typeof===d||L.$$typeof===m||L.$$typeof===T||L.$$typeof===Z||L.$$typeof===I||L.$$typeof===$||L.$$typeof===A)},Ve.typeOf=te,Ve}var Xh;function i1(){return Xh||(Xh=1,zo.exports=r1()),zo.exports}var ko,$h;function s1(){if($h)return ko;$h=1;var n=i1(),l={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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(U){return n.isMemo(U)?o:f[U.$$typeof]||l}var m=Object.defineProperty,p=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,T=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,R=Object.prototype;function S(U,A,Z){if(typeof A!="string"){if(R){var I=w(A);I&&I!==R&&S(U,I,Z)}var $=p(A);v&&($=$.concat(v(A)));for(var te=d(U),P=d(A),L=0;L<$.length;++L){var Q=$[L];if(!i[Q]&&!(Z&&Z[Q])&&!(P&&P[Q])&&!(te&&te[Q])){var ae=T(A,Q);try{m(U,Q,ae)}catch{}}}}return U}return ko=S,ko}s1();var u1=!0;function Kh(n,l,i){var s="";return i.split(" ").forEach(function(o){n[o]!==void 0?l.push(n[o]+";"):o&&(s+=o+" ")}),s}var No=function(l,i,s){var o=l.key+"-"+i.name;(s===!1||u1===!1)&&l.registered[o]===void 0&&(l.registered[o]=i.styles)},Jh=function(l,i,s){No(l,i,s);var o=l.key+"-"+i.name;if(l.inserted[i.name]===void 0){var f=i;do l.insert(i===f?"."+o:"",f,l.sheet,!0),f=f.next;while(f!==void 0)}};function o1(n){for(var l=0,i,s=0,o=n.length;o>=4;++s,o-=4)i=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,l=(i&65535)*1540483477+((i>>>16)*59797<<16)^(l&65535)*1540483477+((l>>>16)*59797<<16);switch(o){case 3:l^=(n.charCodeAt(s+2)&255)<<16;case 2:l^=(n.charCodeAt(s+1)&255)<<8;case 1:l^=n.charCodeAt(s)&255,l=(l&65535)*1540483477+((l>>>16)*59797<<16)}return l^=l>>>13,l=(l&65535)*1540483477+((l>>>16)*59797<<16),((l^l>>>15)>>>0).toString(36)}var c1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f1=/[A-Z]|^ms/g,d1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fh=function(l){return l.charCodeAt(1)===45},Wh=function(l){return l!=null&&typeof l!="boolean"},Mo=Zh(function(n){return Fh(n)?n:n.replace(f1,"-$&").toLowerCase()}),Ih=function(l,i){switch(l){case"animation":case"animationName":if(typeof i=="string")return i.replace(d1,function(s,o,f){return Ra={name:o,styles:f,next:Ra},o})}return c1[l]!==1&&!Fh(l)&&typeof i=="number"&&i!==0?i+"px":i};function Gr(n,l,i){if(i==null)return"";var s=i;if(s.__emotion_styles!==void 0)return s;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return Ra={name:o.name,styles:o.styles,next:Ra},o.name;var f=i;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)Ra={name:d.name,styles:d.styles,next:Ra},d=d.next;var m=f.styles+";";return m}return h1(n,l,i)}case"function":{if(n!==void 0){var p=Ra,v=i(n);return Ra=p,Gr(n,l,v)}break}}var T=i;if(l==null)return T;var w=l[T];return w!==void 0?w:T}function h1(n,l,i){var s="";if(Array.isArray(i))for(var o=0;o<i.length;o++)s+=Gr(n,l,i[o])+";";else for(var f in i){var d=i[f];if(typeof d!="object"){var m=d;l!=null&&l[m]!==void 0?s+=f+"{"+l[m]+"}":Wh(m)&&(s+=Mo(f)+":"+Ih(f,m)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(l==null||l[d[0]]===void 0))for(var p=0;p<d.length;p++)Wh(d[p])&&(s+=Mo(f)+":"+Ih(f,d[p])+";");else{var v=Gr(n,l,d);switch(f){case"animation":case"animationName":{s+=Mo(f)+":"+v+";";break}default:s+=f+"{"+v+"}"}}}return s}var Ph=/label:\s*([^\s;{]+)\s*(;|$)/g,Ra;function fs(n,l,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,o="";Ra=void 0;var f=n[0];if(f==null||f.raw===void 0)s=!1,o+=Gr(i,l,f);else{var d=f;o+=d[0]}for(var m=1;m<n.length;m++)if(o+=Gr(i,l,n[m]),s){var p=f;o+=p[m]}Ph.lastIndex=0;for(var v="",T;(T=Ph.exec(o))!==null;)v+="-"+T[1];var w=o1(o)+v;return{name:w,styles:o,next:Ra}}var m1=function(l){return l()},y1=st.useInsertionEffect?st.useInsertionEffect:!1,em=y1||m1,tm=st.createContext(typeof HTMLElement<"u"?l1({key:"css"}):null);tm.Provider;var am=function(l){return he.forwardRef(function(i,s){var o=he.useContext(tm);return l(i,o,s)})},nm=st.createContext({}),Do={}.hasOwnProperty,jo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g1=function(l,i){var s={};for(var o in i)Do.call(i,o)&&(s[o]=i[o]);return s[jo]=l,s},p1=function(l){var i=l.cache,s=l.serialized,o=l.isStringTag;return No(i,s,o),em(function(){return Jh(i,s,o)}),null},v1=am(function(n,l,i){var s=n.css;typeof s=="string"&&l.registered[s]!==void 0&&(s=l.registered[s]);var o=n[jo],f=[s],d="";typeof n.className=="string"?d=Kh(l.registered,f,n.className):n.className!=null&&(d=n.className+" ");var m=fs(f,void 0,st.useContext(nm));d+=l.key+"-"+m.name;var p={};for(var v in n)Do.call(n,v)&&v!=="css"&&v!==jo&&(p[v]=n[v]);return p.className=d,i&&(p.ref=i),st.createElement(st.Fragment,null,st.createElement(p1,{cache:l,serialized:m,isStringTag:typeof o=="string"}),st.createElement(o,p))}),b1=v1,lm=function(l,i){var s=arguments;if(i==null||!Do.call(i,"css"))return st.createElement.apply(void 0,s);var o=s.length,f=new Array(o);f[0]=b1,f[1]=g1(l,i);for(var d=2;d<o;d++)f[d]=s[d];return st.createElement.apply(null,f)};(function(n){var l;l||(l=n.JSX||(n.JSX={}))})(lm||(lm={}));function Ro(){for(var n=arguments.length,l=new Array(n),i=0;i<n;i++)l[i]=arguments[i];return fs(l)}function rm(){var n=Ro.apply(void 0,arguments),l="animation-"+n.name;return{name:l,styles:"@keyframes "+l+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var x1=/^((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)-.*))$/,S1=Zh(function(n){return x1.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),_1=S1,w1=function(l){return l!=="theme"},im=function(l){return typeof l=="string"&&l.charCodeAt(0)>96?_1:w1},sm=function(l,i,s){var o;if(i){var f=i.shouldForwardProp;o=l.__emotion_forwardProp&&f?function(d){return l.__emotion_forwardProp(d)&&f(d)}:f}return typeof o!="function"&&s&&(o=l.__emotion_forwardProp),o},A1=function(l){var i=l.cache,s=l.serialized,o=l.isStringTag;return No(i,s,o),em(function(){return Jh(i,s,o)}),null},T1=function n(l,i){var s=l.__emotion_real===l,o=s&&l.__emotion_base||l,f,d;i!==void 0&&(f=i.label,d=i.target);var m=sm(l,i,s),p=m||im(o),v=!p("as");return function(){var T=arguments,w=s&&l.__emotion_styles!==void 0?l.__emotion_styles.slice(0):[];if(f!==void 0&&w.push("label:"+f+";"),T[0]==null||T[0].raw===void 0)w.push.apply(w,T);else{var R=T[0];w.push(R[0]);for(var S=T.length,U=1;U<S;U++)w.push(T[U],R[U])}var A=am(function(Z,I,$){var te=v&&Z.as||o,P="",L=[],Q=Z;if(Z.theme==null){Q={};for(var ae in Z)Q[ae]=Z[ae];Q.theme=st.useContext(nm)}typeof Z.className=="string"?P=Kh(I.registered,L,Z.className):Z.className!=null&&(P=Z.className+" ");var xe=fs(w.concat(L),I.registered,Q);P+=I.key+"-"+xe.name,d!==void 0&&(P+=" "+d);var Ue=v&&m===void 0?im(te):p,We={};for(var pe in Z)v&&pe==="as"||Ue(pe)&&(We[pe]=Z[pe]);return We.className=P,$&&(We.ref=$),st.createElement(st.Fragment,null,st.createElement(A1,{cache:I,serialized:xe,isStringTag:typeof te=="string"}),st.createElement(te,We))});return A.displayName=f!==void 0?f:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",A.defaultProps=l.defaultProps,A.__emotion_real=A,A.__emotion_base=o,A.__emotion_styles=w,A.__emotion_forwardProp=m,Object.defineProperty(A,"toString",{value:function(){return"."+d}}),A.withComponent=function(Z,I){var $=n(Z,wo({},i,I,{shouldForwardProp:sm(A,I,!0)}));return $.apply(void 0,w)},A}},C1=["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"],Uo=T1.bind(null);C1.forEach(function(n){Uo[n]=Uo(n)});function E1(n,l){return Uo(n,l)}function O1(n,l){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=l(n.__emotion_styles))}const um=[];function In(n){return um[0]=n,fs(um)}var Bo={exports:{}},Qe={};/**
|
|
84
|
+
*/var Qh;function r1(){if(Qh)return Ve;Qh=1;var n=typeof Symbol=="function"&&Symbol.for,l=n?Symbol.for("react.element"):60103,i=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,v=n?Symbol.for("react.concurrent_mode"):60111,T=n?Symbol.for("react.forward_ref"):60112,w=n?Symbol.for("react.suspense"):60113,R=n?Symbol.for("react.suspense_list"):60120,_=n?Symbol.for("react.memo"):60115,U=n?Symbol.for("react.lazy"):60116,A=n?Symbol.for("react.block"):60121,Z=n?Symbol.for("react.fundamental"):60117,I=n?Symbol.for("react.responder"):60118,$=n?Symbol.for("react.scope"):60119;function te(L){if(typeof L=="object"&&L!==null){var Q=L.$$typeof;switch(Q){case l:switch(L=L.type,L){case g:case v:case s:case f:case o:case w:return L;default:switch(L=L&&L.$$typeof,L){case m:case T:case U:case _:case d:return L;default:return Q}}case i:return Q}}}function P(L){return te(L)===v}return Ve.AsyncMode=g,Ve.ConcurrentMode=v,Ve.ContextConsumer=m,Ve.ContextProvider=d,Ve.Element=l,Ve.ForwardRef=T,Ve.Fragment=s,Ve.Lazy=U,Ve.Memo=_,Ve.Portal=i,Ve.Profiler=f,Ve.StrictMode=o,Ve.Suspense=w,Ve.isAsyncMode=function(L){return P(L)||te(L)===g},Ve.isConcurrentMode=P,Ve.isContextConsumer=function(L){return te(L)===m},Ve.isContextProvider=function(L){return te(L)===d},Ve.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===l},Ve.isForwardRef=function(L){return te(L)===T},Ve.isFragment=function(L){return te(L)===s},Ve.isLazy=function(L){return te(L)===U},Ve.isMemo=function(L){return te(L)===_},Ve.isPortal=function(L){return te(L)===i},Ve.isProfiler=function(L){return te(L)===f},Ve.isStrictMode=function(L){return te(L)===o},Ve.isSuspense=function(L){return te(L)===w},Ve.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===s||L===v||L===f||L===o||L===w||L===R||typeof L=="object"&&L!==null&&(L.$$typeof===U||L.$$typeof===_||L.$$typeof===d||L.$$typeof===m||L.$$typeof===T||L.$$typeof===Z||L.$$typeof===I||L.$$typeof===$||L.$$typeof===A)},Ve.typeOf=te,Ve}var Xh;function i1(){return Xh||(Xh=1,zo.exports=r1()),zo.exports}var ko,$h;function s1(){if($h)return ko;$h=1;var n=i1(),l={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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(U){return n.isMemo(U)?o:f[U.$$typeof]||l}var m=Object.defineProperty,g=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,T=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,R=Object.prototype;function _(U,A,Z){if(typeof A!="string"){if(R){var I=w(A);I&&I!==R&&_(U,I,Z)}var $=g(A);v&&($=$.concat(v(A)));for(var te=d(U),P=d(A),L=0;L<$.length;++L){var Q=$[L];if(!i[Q]&&!(Z&&Z[Q])&&!(P&&P[Q])&&!(te&&te[Q])){var ae=T(A,Q);try{m(U,Q,ae)}catch{}}}}return U}return ko=_,ko}s1();var u1=!0;function Kh(n,l,i){var s="";return i.split(" ").forEach(function(o){n[o]!==void 0?l.push(n[o]+";"):o&&(s+=o+" ")}),s}var No=function(l,i,s){var o=l.key+"-"+i.name;(s===!1||u1===!1)&&l.registered[o]===void 0&&(l.registered[o]=i.styles)},Jh=function(l,i,s){No(l,i,s);var o=l.key+"-"+i.name;if(l.inserted[i.name]===void 0){var f=i;do l.insert(i===f?"."+o:"",f,l.sheet,!0),f=f.next;while(f!==void 0)}};function o1(n){for(var l=0,i,s=0,o=n.length;o>=4;++s,o-=4)i=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,l=(i&65535)*1540483477+((i>>>16)*59797<<16)^(l&65535)*1540483477+((l>>>16)*59797<<16);switch(o){case 3:l^=(n.charCodeAt(s+2)&255)<<16;case 2:l^=(n.charCodeAt(s+1)&255)<<8;case 1:l^=n.charCodeAt(s)&255,l=(l&65535)*1540483477+((l>>>16)*59797<<16)}return l^=l>>>13,l=(l&65535)*1540483477+((l>>>16)*59797<<16),((l^l>>>15)>>>0).toString(36)}var c1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f1=/[A-Z]|^ms/g,d1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fh=function(l){return l.charCodeAt(1)===45},Wh=function(l){return l!=null&&typeof l!="boolean"},Mo=Zh(function(n){return Fh(n)?n:n.replace(f1,"-$&").toLowerCase()}),Ih=function(l,i){switch(l){case"animation":case"animationName":if(typeof i=="string")return i.replace(d1,function(s,o,f){return Ra={name:o,styles:f,next:Ra},o})}return c1[l]!==1&&!Fh(l)&&typeof i=="number"&&i!==0?i+"px":i};function Gr(n,l,i){if(i==null)return"";var s=i;if(s.__emotion_styles!==void 0)return s;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return Ra={name:o.name,styles:o.styles,next:Ra},o.name;var f=i;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)Ra={name:d.name,styles:d.styles,next:Ra},d=d.next;var m=f.styles+";";return m}return h1(n,l,i)}case"function":{if(n!==void 0){var g=Ra,v=i(n);return Ra=g,Gr(n,l,v)}break}}var T=i;if(l==null)return T;var w=l[T];return w!==void 0?w:T}function h1(n,l,i){var s="";if(Array.isArray(i))for(var o=0;o<i.length;o++)s+=Gr(n,l,i[o])+";";else for(var f in i){var d=i[f];if(typeof d!="object"){var m=d;l!=null&&l[m]!==void 0?s+=f+"{"+l[m]+"}":Wh(m)&&(s+=Mo(f)+":"+Ih(f,m)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(l==null||l[d[0]]===void 0))for(var g=0;g<d.length;g++)Wh(d[g])&&(s+=Mo(f)+":"+Ih(f,d[g])+";");else{var v=Gr(n,l,d);switch(f){case"animation":case"animationName":{s+=Mo(f)+":"+v+";";break}default:s+=f+"{"+v+"}"}}}return s}var Ph=/label:\s*([^\s;{]+)\s*(;|$)/g,Ra;function fs(n,l,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,o="";Ra=void 0;var f=n[0];if(f==null||f.raw===void 0)s=!1,o+=Gr(i,l,f);else{var d=f;o+=d[0]}for(var m=1;m<n.length;m++)if(o+=Gr(i,l,n[m]),s){var g=f;o+=g[m]}Ph.lastIndex=0;for(var v="",T;(T=Ph.exec(o))!==null;)v+="-"+T[1];var w=o1(o)+v;return{name:w,styles:o,next:Ra}}var m1=function(l){return l()},y1=st.useInsertionEffect?st.useInsertionEffect:!1,em=y1||m1,tm=st.createContext(typeof HTMLElement<"u"?l1({key:"css"}):null);tm.Provider;var am=function(l){return he.forwardRef(function(i,s){var o=he.useContext(tm);return l(i,o,s)})},nm=st.createContext({}),Do={}.hasOwnProperty,jo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p1=function(l,i){var s={};for(var o in i)Do.call(i,o)&&(s[o]=i[o]);return s[jo]=l,s},g1=function(l){var i=l.cache,s=l.serialized,o=l.isStringTag;return No(i,s,o),em(function(){return Jh(i,s,o)}),null},v1=am(function(n,l,i){var s=n.css;typeof s=="string"&&l.registered[s]!==void 0&&(s=l.registered[s]);var o=n[jo],f=[s],d="";typeof n.className=="string"?d=Kh(l.registered,f,n.className):n.className!=null&&(d=n.className+" ");var m=fs(f,void 0,st.useContext(nm));d+=l.key+"-"+m.name;var g={};for(var v in n)Do.call(n,v)&&v!=="css"&&v!==jo&&(g[v]=n[v]);return g.className=d,i&&(g.ref=i),st.createElement(st.Fragment,null,st.createElement(g1,{cache:l,serialized:m,isStringTag:typeof o=="string"}),st.createElement(o,g))}),b1=v1,lm=function(l,i){var s=arguments;if(i==null||!Do.call(i,"css"))return st.createElement.apply(void 0,s);var o=s.length,f=new Array(o);f[0]=b1,f[1]=p1(l,i);for(var d=2;d<o;d++)f[d]=s[d];return st.createElement.apply(null,f)};(function(n){var l;l||(l=n.JSX||(n.JSX={}))})(lm||(lm={}));function Ro(){for(var n=arguments.length,l=new Array(n),i=0;i<n;i++)l[i]=arguments[i];return fs(l)}function rm(){var n=Ro.apply(void 0,arguments),l="animation-"+n.name;return{name:l,styles:"@keyframes "+l+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var x1=/^((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)-.*))$/,_1=Zh(function(n){return x1.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),S1=_1,w1=function(l){return l!=="theme"},im=function(l){return typeof l=="string"&&l.charCodeAt(0)>96?S1:w1},sm=function(l,i,s){var o;if(i){var f=i.shouldForwardProp;o=l.__emotion_forwardProp&&f?function(d){return l.__emotion_forwardProp(d)&&f(d)}:f}return typeof o!="function"&&s&&(o=l.__emotion_forwardProp),o},A1=function(l){var i=l.cache,s=l.serialized,o=l.isStringTag;return No(i,s,o),em(function(){return Jh(i,s,o)}),null},T1=function n(l,i){var s=l.__emotion_real===l,o=s&&l.__emotion_base||l,f,d;i!==void 0&&(f=i.label,d=i.target);var m=sm(l,i,s),g=m||im(o),v=!g("as");return function(){var T=arguments,w=s&&l.__emotion_styles!==void 0?l.__emotion_styles.slice(0):[];if(f!==void 0&&w.push("label:"+f+";"),T[0]==null||T[0].raw===void 0)w.push.apply(w,T);else{var R=T[0];w.push(R[0]);for(var _=T.length,U=1;U<_;U++)w.push(T[U],R[U])}var A=am(function(Z,I,$){var te=v&&Z.as||o,P="",L=[],Q=Z;if(Z.theme==null){Q={};for(var ae in Z)Q[ae]=Z[ae];Q.theme=st.useContext(nm)}typeof Z.className=="string"?P=Kh(I.registered,L,Z.className):Z.className!=null&&(P=Z.className+" ");var xe=fs(w.concat(L),I.registered,Q);P+=I.key+"-"+xe.name,d!==void 0&&(P+=" "+d);var Ue=v&&m===void 0?im(te):g,We={};for(var ge in Z)v&&ge==="as"||Ue(ge)&&(We[ge]=Z[ge]);return We.className=P,$&&(We.ref=$),st.createElement(st.Fragment,null,st.createElement(A1,{cache:I,serialized:xe,isStringTag:typeof te=="string"}),st.createElement(te,We))});return A.displayName=f!==void 0?f:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",A.defaultProps=l.defaultProps,A.__emotion_real=A,A.__emotion_base=o,A.__emotion_styles=w,A.__emotion_forwardProp=m,Object.defineProperty(A,"toString",{value:function(){return"."+d}}),A.withComponent=function(Z,I){var $=n(Z,wo({},i,I,{shouldForwardProp:sm(A,I,!0)}));return $.apply(void 0,w)},A}},C1=["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"],Uo=T1.bind(null);C1.forEach(function(n){Uo[n]=Uo(n)});function E1(n,l){return Uo(n,l)}function O1(n,l){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=l(n.__emotion_styles))}const um=[];function In(n){return um[0]=n,fs(um)}var Bo={exports:{}},Qe={};/**
|
|
85
85
|
* @license React
|
|
86
86
|
* react-is.production.js
|
|
87
87
|
*
|
|
@@ -89,14 +89,14 @@ Error generating stack: `+r.message+`
|
|
|
89
89
|
*
|
|
90
90
|
* This source code is licensed under the MIT license found in the
|
|
91
91
|
* LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/var om;function z1(){if(om)return Qe;om=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=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"),p=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),R=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function U(A){if(typeof A=="object"&&A!==null){var Z=A.$$typeof;switch(Z){case n:switch(A=A.type,A){case i:case o:case s:case p:case v:case R:return A;default:switch(A=A&&A.$$typeof,A){case d:case m:case w:case T:return A;case f:return A;default:return Z}}case l:return Z}}}return Qe.ContextConsumer=f,Qe.ContextProvider=d,Qe.Element=n,Qe.ForwardRef=m,Qe.Fragment=i,Qe.Lazy=w,Qe.Memo=T,Qe.Portal=l,Qe.Profiler=o,Qe.StrictMode=s,Qe.Suspense=p,Qe.SuspenseList=v,Qe.isContextConsumer=function(A){return U(A)===f},Qe.isContextProvider=function(A){return U(A)===d},Qe.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},Qe.isForwardRef=function(A){return U(A)===m},Qe.isFragment=function(A){return U(A)===i},Qe.isLazy=function(A){return U(A)===w},Qe.isMemo=function(A){return U(A)===T},Qe.isPortal=function(A){return U(A)===l},Qe.isProfiler=function(A){return U(A)===o},Qe.isStrictMode=function(A){return U(A)===s},Qe.isSuspense=function(A){return U(A)===p},Qe.isSuspenseList=function(A){return U(A)===v},Qe.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===i||A===o||A===s||A===p||A===v||typeof A=="object"&&A!==null&&(A.$$typeof===w||A.$$typeof===T||A.$$typeof===d||A.$$typeof===f||A.$$typeof===m||A.$$typeof===S||A.getModuleId!==void 0)},Qe.typeOf=U,Qe}var cm;function k1(){return cm||(cm=1,Bo.exports=z1()),Bo.exports}var fm=k1();function Xa(n){if(typeof n!="object"||n===null)return!1;const l=Object.getPrototypeOf(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function dm(n){if(st.isValidElement(n)||fm.isValidElementType(n)||!Xa(n))return n;const l={};return Object.keys(n).forEach(i=>{l[i]=dm(n[i])}),l}function Pt(n,l,i={clone:!0}){const s=i.clone?{...n}:n;return Xa(n)&&Xa(l)&&Object.keys(l).forEach(o=>{st.isValidElement(l[o])||fm.isValidElementType(l[o])?s[o]=l[o]:Xa(l[o])&&Object.prototype.hasOwnProperty.call(n,o)&&Xa(n[o])?s[o]=Pt(n[o],l[o],i):i.clone?s[o]=Xa(l[o])?dm(l[o]):l[o]:s[o]=l[o]}),s}const N1=n=>{const l=Object.keys(n).map(i=>({key:i,val:n[i]}))||[];return l.sort((i,s)=>i.val-s.val),l.reduce((i,s)=>({...i,[s.key]:s.val}),{})};function M1(n){const{values:l={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:s=5,...o}=n,f=N1(l),d=Object.keys(f);function m(R){return`@media (min-width:${typeof l[R]=="number"?l[R]:R}${i})`}function p(R){return`@media (max-width:${(typeof l[R]=="number"?l[R]:R)-s/100}${i})`}function v(R,S){const U=d.indexOf(S);return`@media (min-width:${typeof l[R]=="number"?l[R]:R}${i}) and (max-width:${(U!==-1&&typeof l[d[U]]=="number"?l[d[U]]:S)-s/100}${i})`}function T(R){return d.indexOf(R)+1<d.length?v(R,d[d.indexOf(R)+1]):m(R)}function w(R){const S=d.indexOf(R);return S===0?m(d[1]):S===d.length-1?p(d[S]):v(R,d[d.indexOf(R)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:m,down:p,between:v,only:T,not:w,unit:i,...o}}function hm(n,l){if(!n.containerQueries)return l;const i=Object.keys(l).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 i.length?i.reduce((s,o)=>{const f=l[o];return delete s[o],s[o]=f,s},{...l}):l}function D1(n,l){return l==="@"||l.startsWith("@")&&(n.some(i=>l.startsWith(`@${i}`))||!!l.match(/^@\d/))}function j1(n,l){const i=l.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,s,o]=i,f=Number.isNaN(+s)?s||0:+s;return n.containerQueries(o).up(f)}function R1(n){const l=(f,d)=>f.replace("@media",d?`@container ${d}`:"@container");function i(f,d){f.up=(...m)=>l(n.breakpoints.up(...m),d),f.down=(...m)=>l(n.breakpoints.down(...m),d),f.between=(...m)=>l(n.breakpoints.between(...m),d),f.only=(...m)=>l(n.breakpoints.only(...m),d),f.not=(...m)=>{const p=l(n.breakpoints.not(...m),d);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const s={},o=f=>(i(s,f),s);return i(o),{...n,containerQueries:o}}const U1={borderRadius:4};function Qr(n,l){return l?Pt(n,l,{clone:!1}):n}const ds={xs:0,sm:600,md:900,lg:1200,xl:1536},mm={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${ds[n]}px)`},B1={containerQueries:n=>({up:l=>{let i=typeof l=="number"?l:ds[l]||l;return typeof i=="number"&&(i=`${i}px`),n?`@container ${n} (min-width:${i})`:`@container (min-width:${i})`}})};function $a(n,l,i){const s=n.theme||{};if(Array.isArray(l)){const f=s.breakpoints||mm;return l.reduce((d,m,p)=>(d[f.up(f.keys[p])]=i(l[p]),d),{})}if(typeof l=="object"){const f=s.breakpoints||mm;return Object.keys(l).reduce((d,m)=>{if(D1(f.keys,m)){const p=j1(s.containerQueries?s:B1,m);p&&(d[p]=i(l[m],m))}else if(Object.keys(f.values||ds).includes(m)){const p=f.up(m);d[p]=i(l[m],m)}else{const p=m;d[p]=l[p]}return d},{})}return i(l)}function V1(n={}){var i;return((i=n.keys)==null?void 0:i.reduce((s,o)=>{const f=n.up(o);return s[f]={},s},{}))||{}}function ym(n,l){return n.reduce((i,s)=>{const o=i[s];return(!o||Object.keys(o).length===0)&&delete i[s],i},l)}function gm(n){if(typeof n!="string")throw new Error(Wn(7));return n.charAt(0).toUpperCase()+n.slice(1)}function hs(n,l,i=!0){if(!l||typeof l!="string")return null;if(n&&n.vars&&i){const s=`vars.${l}`.split(".").reduce((o,f)=>o&&o[f]?o[f]:null,n);if(s!=null)return s}return l.split(".").reduce((s,o)=>s&&s[o]!=null?s[o]:null,n)}function ms(n,l,i,s=i){let o;return typeof n=="function"?o=n(i):Array.isArray(n)?o=n[i]||s:o=hs(n,i)||s,l&&(o=l(o,s,n)),o}function ot(n){const{prop:l,cssProperty:i=n.prop,themeKey:s,transform:o}=n,f=d=>{if(d[l]==null)return null;const m=d[l],p=d.theme,v=hs(p,s)||{};return $a(d,m,w=>{let R=ms(v,o,w);return w===R&&typeof w=="string"&&(R=ms(v,o,`${l}${w==="default"?"":gm(w)}`,w)),i===!1?R:{[i]:R}})};return f.propTypes={},f.filterProps=[l],f}function L1(n){const l={};return i=>(l[i]===void 0&&(l[i]=n(i)),l[i])}const H1={m:"margin",p:"padding"},q1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Z1=L1(n=>{if(n.length>2)if(pm[n])n=pm[n];else return[n];const[l,i]=n.split(""),s=H1[l],o=q1[i]||"";return Array.isArray(o)?o.map(f=>s+f):[s+o]}),Vo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Lo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vo,...Lo];function Xr(n,l,i,s){const o=hs(n,l,!0)??i;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 Ho(n){return Xr(n,"spacing",8)}function $r(n,l){return typeof l=="string"||l==null?l:n(l)}function Y1(n,l){return i=>n.reduce((s,o)=>(s[o]=$r(l,i),s),{})}function G1(n,l,i,s){if(!l.includes(i))return null;const o=Z1(i),f=Y1(o,s),d=n[i];return $a(n,d,f)}function vm(n,l){const i=Ho(n.theme);return Object.keys(n).map(s=>G1(n,l,s,i)).reduce(Qr,{})}function nt(n){return vm(n,Vo)}nt.propTypes={},nt.filterProps=Vo;function lt(n){return vm(n,Lo)}lt.propTypes={},lt.filterProps=Lo;function bm(n=8,l=Ho({spacing:n})){if(n.mui)return n;const i=(...s)=>(s.length===0?[1]:s).map(f=>{const d=l(f);return typeof d=="number"?`${d}px`:d}).join(" ");return i.mui=!0,i}function ys(...n){const l=n.reduce((s,o)=>(o.filterProps.forEach(f=>{s[f]=o}),s),{}),i=s=>Object.keys(s).reduce((o,f)=>l[f]?Qr(o,l[f](s)):o,{});return i.propTypes={},i.filterProps=n.reduce((s,o)=>s.concat(o.filterProps),[]),i}function ca(n){return typeof n!="number"?n:`${n}px solid`}function fa(n,l){return ot({prop:n,themeKey:"borders",transform:l})}const Q1=fa("border",ca),X1=fa("borderTop",ca),$1=fa("borderRight",ca),K1=fa("borderBottom",ca),J1=fa("borderLeft",ca),F1=fa("borderColor"),W1=fa("borderTopColor"),I1=fa("borderRightColor"),P1=fa("borderBottomColor"),ex=fa("borderLeftColor"),tx=fa("outline",ca),ax=fa("outlineColor"),gs=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const l=Xr(n.theme,"shape.borderRadius",4),i=s=>({borderRadius:$r(l,s)});return $a(n,n.borderRadius,i)}return null};gs.propTypes={},gs.filterProps=["borderRadius"],ys(Q1,X1,$1,K1,J1,F1,W1,I1,P1,ex,gs,tx,ax);const ps=n=>{if(n.gap!==void 0&&n.gap!==null){const l=Xr(n.theme,"spacing",8),i=s=>({gap:$r(l,s)});return $a(n,n.gap,i)}return null};ps.propTypes={},ps.filterProps=["gap"];const vs=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const l=Xr(n.theme,"spacing",8),i=s=>({columnGap:$r(l,s)});return $a(n,n.columnGap,i)}return null};vs.propTypes={},vs.filterProps=["columnGap"];const bs=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const l=Xr(n.theme,"spacing",8),i=s=>({rowGap:$r(l,s)});return $a(n,n.rowGap,i)}return null};bs.propTypes={},bs.filterProps=["rowGap"];const nx=ot({prop:"gridColumn"}),lx=ot({prop:"gridRow"}),rx=ot({prop:"gridAutoFlow"}),ix=ot({prop:"gridAutoColumns"}),sx=ot({prop:"gridAutoRows"}),ux=ot({prop:"gridTemplateColumns"}),ox=ot({prop:"gridTemplateRows"}),cx=ot({prop:"gridTemplateAreas"}),fx=ot({prop:"gridArea"});ys(ps,vs,bs,nx,lx,rx,ix,sx,ux,ox,cx,fx);function Dl(n,l){return l==="grey"?l:n}const dx=ot({prop:"color",themeKey:"palette",transform:Dl}),hx=ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Dl}),mx=ot({prop:"backgroundColor",themeKey:"palette",transform:Dl});ys(dx,hx,mx);function ea(n){return n<=1&&n!==0?`${n*100}%`:n}const yx=ot({prop:"width",transform:ea}),qo=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const l=i=>{var o,f,d,m,p;const s=((d=(f=(o=n.theme)==null?void 0:o.breakpoints)==null?void 0:f.values)==null?void 0:d[i])||ds[i];return s?((p=(m=n.theme)==null?void 0:m.breakpoints)==null?void 0:p.unit)!=="px"?{maxWidth:`${s}${n.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:ea(i)}};return $a(n,n.maxWidth,l)}return null};qo.filterProps=["maxWidth"];const gx=ot({prop:"minWidth",transform:ea}),px=ot({prop:"height",transform:ea}),vx=ot({prop:"maxHeight",transform:ea}),bx=ot({prop:"minHeight",transform:ea});ot({prop:"size",cssProperty:"width",transform:ea}),ot({prop:"size",cssProperty:"height",transform:ea});const xx=ot({prop:"boxSizing"});ys(yx,qo,gx,px,vx,bx,xx);const xs={border:{themeKey:"borders",transform:ca},borderTop:{themeKey:"borders",transform:ca},borderRight:{themeKey:"borders",transform:ca},borderBottom:{themeKey:"borders",transform:ca},borderLeft:{themeKey:"borders",transform:ca},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ca},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gs},color:{themeKey:"palette",transform:Dl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Dl},backgroundColor:{themeKey:"palette",transform:Dl},p:{style:lt},pt:{style:lt},pr:{style:lt},pb:{style:lt},pl:{style:lt},px:{style:lt},py:{style:lt},padding:{style:lt},paddingTop:{style:lt},paddingRight:{style:lt},paddingBottom:{style:lt},paddingLeft:{style:lt},paddingX:{style:lt},paddingY:{style:lt},paddingInline:{style:lt},paddingInlineStart:{style:lt},paddingInlineEnd:{style:lt},paddingBlock:{style:lt},paddingBlockStart:{style:lt},paddingBlockEnd:{style:lt},m:{style:nt},mt:{style:nt},mr:{style:nt},mb:{style:nt},ml:{style:nt},mx:{style:nt},my:{style:nt},margin:{style:nt},marginTop:{style:nt},marginRight:{style:nt},marginBottom:{style:nt},marginLeft:{style:nt},marginX:{style:nt},marginY:{style:nt},marginInline:{style:nt},marginInlineStart:{style:nt},marginInlineEnd:{style:nt},marginBlock:{style:nt},marginBlockStart:{style:nt},marginBlockEnd:{style:nt},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:ps},rowGap:{style:bs},columnGap:{style:vs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ea},maxWidth:{style:qo},minWidth:{transform:ea},height:{transform:ea},maxHeight:{transform:ea},minHeight:{transform:ea},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 Sx(...n){const l=n.reduce((s,o)=>s.concat(Object.keys(o)),[]),i=new Set(l);return n.every(s=>i.size===Object.keys(s).length)}function _x(n,l){return typeof n=="function"?n(l):n}function wx(){function n(i,s,o,f){const d={[i]:s,theme:o},m=f[i];if(!m)return{[i]:s};const{cssProperty:p=i,themeKey:v,transform:T,style:w}=m;if(s==null)return null;if(v==="typography"&&s==="inherit")return{[i]:s};const R=hs(o,v)||{};return w?w(d):$a(d,s,U=>{let A=ms(R,T,U);return U===A&&typeof U=="string"&&(A=ms(R,T,`${i}${U==="default"?"":gm(U)}`,U)),p===!1?A:{[p]:A}})}function l(i){const{sx:s,theme:o={},nested:f}=i||{};if(!s)return null;const d=o.unstable_sxConfig??xs;function m(p){let v=p;if(typeof p=="function")v=p(o);else if(typeof p!="object")return p;if(!v)return null;const T=V1(o.breakpoints),w=Object.keys(T);let R=T;return Object.keys(v).forEach(S=>{const U=_x(v[S],o);if(U!=null)if(typeof U=="object")if(d[S])R=Qr(R,n(S,U,o,d));else{const A=$a({theme:o},U,Z=>({[S]:Z}));Sx(A,U)?R[S]=l({sx:U,theme:o,nested:!0}):R=Qr(R,A)}else R=Qr(R,n(S,U,o,d))}),!f&&o.modularCssLayers?{"@layer sx":hm(o,ym(w,R))}:hm(o,ym(w,R))}return Array.isArray(s)?s.map(m):m(s)}return l}const jl=wx();jl.filterProps=["sx"];function Ax(n,l){var s;const i=this;if(i.vars){if(!((s=i.colorSchemes)!=null&&s[n])||typeof i.getColorSchemeSelector!="function")return{};let o=i.getColorSchemeSelector(n);return o==="&"?l:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:l})}return i.palette.mode===n?l:{}}function xm(n={},...l){const{breakpoints:i={},palette:s={},spacing:o,shape:f={},...d}=n,m=M1(i),p=bm(o);let v=Pt({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:p,shape:{...U1,...f}},d);return v=R1(v),v.applyStyles=Ax,v=l.reduce((T,w)=>Pt(T,w),v),v.unstable_sxConfig={...xs,...d==null?void 0:d.unstable_sxConfig},v.unstable_sx=function(w){return jl({sx:w,theme:this})},v}const Sm=n=>n,Tx=(()=>{let n=Sm;return{configure(l){n=l},generate(l){return n(l)},reset(){n=Sm}}})(),Cx={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 _m(n,l,i="Mui"){const s=Cx[l];return s?`${i}-${s}`:`${Tx.generate(n)}-${l}`}function Ex(n,l,i="Mui"){const s={};return l.forEach(o=>{s[o]=_m(n,o,i)}),s}function wm(n){const{variants:l,...i}=n,s={variants:l,style:In(i),isProcessed:!0};return s.style===i||l&&l.forEach(o=>{typeof o.style!="function"&&(o.style=In(o.style))}),s}const Ox=xm();function Zo(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function Pn(n,l){return l&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${l}{${String(n.styles)}}`),n}function zx(n){return n?(l,i)=>i[n]:null}function kx(n,l,i){n.theme=Dx(n.theme)?i:n.theme[l]||n.theme}function Ss(n,l,i){const s=typeof l=="function"?l(n):l;if(Array.isArray(s))return s.flatMap(o=>Ss(n,o,i));if(Array.isArray(s==null?void 0:s.variants)){let o;if(s.isProcessed)o=i?Pn(s.style,i):s.style;else{const{variants:f,...d}=s;o=i?Pn(In(d),i):d}return Am(n,s.variants,[o],i)}return s!=null&&s.isProcessed?i?Pn(In(s.style),i):s.style:i?Pn(In(s),i):s}function Am(n,l,i=[],s=void 0){var f;let o;e:for(let d=0;d<l.length;d+=1){const m=l[d];if(typeof m.props=="function"){if(o??(o={...n,...n.ownerState,ownerState:n.ownerState}),!m.props(o))continue}else for(const p in m.props)if(n[p]!==m.props[p]&&((f=n.ownerState)==null?void 0:f[p])!==m.props[p])continue e;typeof m.style=="function"?(o??(o={...n,...n.ownerState,ownerState:n.ownerState}),i.push(s?Pn(In(m.style(o)),s):m.style(o))):i.push(s?Pn(In(m.style),s):m.style)}return i}function Nx(n={}){const{themeId:l,defaultTheme:i=Ox,rootShouldForwardProp:s=Zo,slotShouldForwardProp:o=Zo}=n;function f(m){kx(m,l,i)}return(m,p={})=>{O1(m,Q=>Q.filter(ae=>ae!==jl));const{name:v,slot:T,skipVariantsResolver:w,skipSx:R,overridesResolver:S=zx(Rx(T)),...U}=p,A=v&&v.startsWith("Mui")||T?"components":"custom",Z=w!==void 0?w:T&&T!=="Root"&&T!=="root"||!1,I=R||!1;let $=Zo;T==="Root"||T==="root"?$=s:T?$=o:jx(m)&&($=void 0);const te=E1(m,{shouldForwardProp:$,label:Mx(),...U}),P=Q=>{if(Q.__emotion_real===Q)return Q;if(typeof Q=="function")return function(xe){return Ss(xe,Q,xe.theme.modularCssLayers?A:void 0)};if(Xa(Q)){const ae=wm(Q);return function(Ue){return ae.variants?Ss(Ue,ae,Ue.theme.modularCssLayers?A:void 0):Ue.theme.modularCssLayers?Pn(ae.style,A):ae.style}}return Q},L=(...Q)=>{const ae=[],xe=Q.map(P),Ue=[];if(ae.push(f),v&&S&&Ue.push(function(Y){var X,re;const le=(re=(X=Y.theme.components)==null?void 0:X[v])==null?void 0:re.styleOverrides;if(!le)return null;const k={};for(const Ee in le)k[Ee]=Ss(Y,le[Ee],Y.theme.modularCssLayers?"theme":void 0);return S(Y,k)}),v&&!Z&&Ue.push(function(Y){var k,X;const G=Y.theme,le=(X=(k=G==null?void 0:G.components)==null?void 0:k[v])==null?void 0:X.variants;return le?Am(Y,le,[],Y.theme.modularCssLayers?"theme":void 0):null}),I||Ue.push(jl),Array.isArray(xe[0])){const g=xe.shift(),Y=new Array(ae.length).fill(""),G=new Array(Ue.length).fill("");let le;le=[...Y,...g,...G],le.raw=[...Y,...g.raw,...G],ae.unshift(le)}const We=[...ae,...xe,...Ue],pe=te(...We);return m.muiName&&(pe.muiName=m.muiName),pe};return te.withConfig&&(L.withConfig=te.withConfig),L}}function Mx(n,l){return void 0}function Dx(n){for(const l in n)return!1;return!0}function jx(n){return typeof n=="string"&&n.charCodeAt(0)>96}function Rx(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}function Yo(n,l,i=!1){const s={...l};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=l[f];if(!m)s[f]=d||{};else if(!d)s[f]=m;else{s[f]={...m};for(const p in d)if(Object.prototype.hasOwnProperty.call(d,p)){const v=p;s[f][v]=Yo(d[v],m[v],i)}}}else f==="className"&&i&&l.className?s.className=Dh(n==null?void 0:n.className,l==null?void 0:l.className):f==="style"&&i&&l.style?s.style={...n==null?void 0:n.style,...l==null?void 0:l.style}:s[f]===void 0&&(s[f]=n[f])}return s}function Ux(n,l=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(l,Math.min(n,i))}function Go(n,l=0,i=1){return Ux(n,l,i)}function Bx(n){n=n.slice(1);const l=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let i=n.match(l);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,o)=>o<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function Sn(n){if(n.type)return n;if(n.charAt(0)==="#")return Sn(Bx(n));const l=n.indexOf("("),i=n.substring(0,l);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(Wn(9,n));let s=n.substring(l+1,n.length-1),o;if(i==="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(Wn(10,o))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:i,values:s,colorSpace:o}}const Vx=n=>{const l=Sn(n);return l.values.slice(0,3).map((i,s)=>l.type.includes("hsl")&&s!==0?`${i}%`:i).join(" ")},Kr=(n,l)=>{try{return Vx(n)}catch{return n}};function _s(n){const{type:l,colorSpace:i}=n;let{values:s}=n;return l.includes("rgb")?s=s.map((o,f)=>f<3?parseInt(o,10):o):l.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),l.includes("color")?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${l}(${s})`}function Tm(n){n=Sn(n);const{values:l}=n,i=l[0],s=l[1]/100,o=l[2]/100,f=s*Math.min(o,1-o),d=(v,T=(v+i/30)%12)=>o-f*Math.max(Math.min(T-3,9-T,1),-1);let m="rgb";const p=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(m+="a",p.push(l[3])),_s({type:m,values:p})}function Qo(n){n=Sn(n);let l=n.type==="hsl"||n.type==="hsla"?Sn(Tm(n)).values:n.values;return l=l.map(i=>(n.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*l[0]+.7152*l[1]+.0722*l[2]).toFixed(3))}function Lx(n,l){const i=Qo(n),s=Qo(l);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}function Cm(n,l){return n=Sn(n),l=Go(l),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${l}`:n.values[3]=l,_s(n)}function el(n,l,i){try{return Cm(n,l)}catch{return n}}function ws(n,l){if(n=Sn(n),l=Go(l),n.type.includes("hsl"))n.values[2]*=1-l;else if(n.type.includes("rgb")||n.type.includes("color"))for(let i=0;i<3;i+=1)n.values[i]*=1-l;return _s(n)}function He(n,l,i){try{return ws(n,l)}catch{return n}}function As(n,l){if(n=Sn(n),l=Go(l),n.type.includes("hsl"))n.values[2]+=(100-n.values[2])*l;else if(n.type.includes("rgb"))for(let i=0;i<3;i+=1)n.values[i]+=(255-n.values[i])*l;else if(n.type.includes("color"))for(let i=0;i<3;i+=1)n.values[i]+=(1-n.values[i])*l;return _s(n)}function qe(n,l,i){try{return As(n,l)}catch{return n}}function Hx(n,l=.15){return Qo(n)>.5?ws(n,l):As(n,l)}function Ts(n,l,i){try{return Hx(n,l)}catch{return n}}const qx=st.createContext(void 0);function Zx(n){const{theme:l,name:i,props:s}=n;if(!l||!l.components||!l.components[i])return s;const o=l.components[i];return o.defaultProps?Yo(o.defaultProps,s,l.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Yo(o,s,l.components.mergeClassNameAndStyle):s}function Yx({props:n,name:l}){const i=st.useContext(qx);return Zx({props:n,name:l,theme:{components:i}})}const Em={theme:void 0};function Gx(n){let l,i;return function(o){let f=l;return(f===void 0||o.theme!==i)&&(Em.theme=o.theme,f=wm(n(Em)),l=f,i=o.theme),f}}function Qx(n=""){function l(...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}${l(...s.slice(1))})`:`, ${o}`}return(s,...o)=>`var(--${n?`${n}-`:""}${s}${l(...o)})`}const Om=(n,l,i,s=[])=>{let o=n;l.forEach((f,d)=>{d===l.length-1?Array.isArray(o)?o[Number(f)]=i:o&&typeof o=="object"&&(o[f]=i):o&&typeof o=="object"&&(o[f]||(o[f]=s.includes(f)?[]:{}),o=o[f])})},Xx=(n,l,i)=>{function s(o,f=[],d=[]){Object.entries(o).forEach(([m,p])=>{(!i||i&&!i([...f,m]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?s(p,[...f,m],Array.isArray(p)?[...d,m]:d):l([...f,m],p,d))})}s(n)},$x=(n,l)=>typeof l=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>n.includes(s))||n[n.length-1].toLowerCase().includes("opacity")?l:`${l}px`:l;function Xo(n,l){const{prefix:i,shouldSkipGeneratingVar:s}=l||{},o={},f={},d={};return Xx(n,(m,p,v)=>{if((typeof p=="string"||typeof p=="number")&&(!s||!s(m,p))){const T=`--${i?`${i}-`:""}${m.join("-")}`,w=$x(m,p);Object.assign(o,{[T]:w}),Om(f,m,`var(${T})`,v),Om(d,m,`var(${T}, ${w})`,v)}},m=>m[0]==="vars"),{css:o,vars:f,varsWithDefaults:d}}function Kx(n,l={}){const{getSelector:i=I,disableCssColorScheme:s,colorSchemeSelector:o,enableContrastVars:f}=l,{colorSchemes:d={},components:m,defaultColorScheme:p="light",...v}=n,{vars:T,css:w,varsWithDefaults:R}=Xo(v,l);let S=R;const U={},{[p]:A,...Z}=d;if(Object.entries(Z||{}).forEach(([P,L])=>{const{vars:Q,css:ae,varsWithDefaults:xe}=Xo(L,l);S=Pt(S,xe),U[P]={css:ae,vars:Q}}),A){const{css:P,vars:L,varsWithDefaults:Q}=Xo(A,l);S=Pt(S,Q),U[p]={css:P,vars:L}}function I(P,L){var ae,xe;let Q=o;if(o==="class"&&(Q=".%s"),o==="data"&&(Q="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(Q=`[${o}="%s"]`),P){if(Q==="media")return n.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${((xe=(ae=d[P])==null?void 0:ae.palette)==null?void 0:xe.mode)||P})`]:{":root":L}};if(Q)return n.defaultColorScheme===P?`:root, ${Q.replace("%s",String(P))}`:Q.replace("%s",String(P))}return":root"}return{vars:S,generateThemeVars:()=>{let P={...T};return Object.entries(U).forEach(([,{vars:L}])=>{P=Pt(P,L)}),P},generateStyleSheets:()=>{var Ue,We;const P=[],L=n.defaultColorScheme||"light";function Q(pe,g){Object.keys(g).length&&P.push(typeof pe=="string"?{[pe]:{...g}}:pe)}Q(i(void 0,{...w}),w);const{[L]:ae,...xe}=U;if(ae){const{css:pe}=ae,g=(We=(Ue=d[L])==null?void 0:Ue.palette)==null?void 0:We.mode,Y=!s&&g?{colorScheme:g,...pe}:{...pe};Q(i(L,{...Y}),Y)}return Object.entries(xe).forEach(([pe,{css:g}])=>{var le,k;const Y=(k=(le=d[pe])==null?void 0:le.palette)==null?void 0:k.mode,G=!s&&Y?{colorScheme:Y,...g}:{...g};Q(i(pe,{...G}),G)}),f&&P.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)"}}),P}}}function Jx(n){return function(i){return n==="media"?`@media (prefers-color-scheme: ${i})`:n?n.startsWith("data-")&&!n.includes("%s")?`[${n}="${i}"] &`:n==="class"?`.${i} &`:n==="data"?`[data-${i}] &`:`${n.replace("%s",i)} &`:"&"}}const Jr={black:"#000",white:"#fff"},Fx={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"},Rl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ul={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Fr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Bl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Vl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ll={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function zm(){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:Jr.white,default:Jr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const km=zm();function Nm(){return{text:{primary:Jr.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:Jr.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 $o=Nm();function Mm(n,l,i,s){const o=s.light||s,f=s.dark||s*1.5;n[l]||(n.hasOwnProperty(i)?n[l]=n[i]:l==="light"?n.light=As(n.main,o):l==="dark"&&(n.dark=ws(n.main,f)))}function Dm(n,l,i,s,o){const f=o.light||o,d=o.dark||o*1.5;l[i]||(l.hasOwnProperty(s)?l[i]=l[s]:i==="light"?l.light=`color-mix(in ${n}, ${l.main}, #fff ${(f*100).toFixed(0)}%)`:i==="dark"&&(l.dark=`color-mix(in ${n}, ${l.main}, #000 ${(d*100).toFixed(0)}%)`))}function Wx(n="light"){return n==="dark"?{main:Bl[200],light:Bl[50],dark:Bl[400]}:{main:Bl[700],light:Bl[400],dark:Bl[800]}}function Ix(n="light"){return n==="dark"?{main:Rl[200],light:Rl[50],dark:Rl[400]}:{main:Rl[500],light:Rl[300],dark:Rl[700]}}function Px(n="light"){return n==="dark"?{main:Ul[500],light:Ul[300],dark:Ul[700]}:{main:Ul[700],light:Ul[400],dark:Ul[800]}}function eS(n="light"){return n==="dark"?{main:Vl[400],light:Vl[300],dark:Vl[700]}:{main:Vl[700],light:Vl[500],dark:Vl[900]}}function tS(n="light"){return n==="dark"?{main:Ll[400],light:Ll[300],dark:Ll[700]}:{main:Ll[800],light:Ll[500],dark:Ll[900]}}function aS(n="light"){return n==="dark"?{main:Fr[400],light:Fr[300],dark:Fr[700]}:{main:"#ed6c02",light:Fr[500],dark:Fr[900]}}function nS(n){return`oklch(from ${n} var(--__l) 0 h / var(--__a))`}function Ko(n){const{mode:l="light",contrastThreshold:i=3,tonalOffset:s=.2,colorSpace:o,...f}=n,d=n.primary||Wx(l),m=n.secondary||Ix(l),p=n.error||Px(l),v=n.info||eS(l),T=n.success||tS(l),w=n.warning||aS(l);function R(Z){return o?nS(Z):Lx(Z,$o.text.primary)>=i?$o.text.primary:km.text.primary}const S=({color:Z,name:I,mainShade:$=500,lightShade:te=300,darkShade:P=700})=>{if(Z={...Z},!Z.main&&Z[$]&&(Z.main=Z[$]),!Z.hasOwnProperty("main"))throw new Error(Wn(11,I?` (${I})`:"",$));if(typeof Z.main!="string")throw new Error(Wn(12,I?` (${I})`:"",JSON.stringify(Z.main)));return o?(Dm(o,Z,"light",te,s),Dm(o,Z,"dark",P,s)):(Mm(Z,"light",te,s),Mm(Z,"dark",P,s)),Z.contrastText||(Z.contrastText=R(Z.main)),Z};let U;return l==="light"?U=zm():l==="dark"&&(U=Nm()),Pt({common:{...Jr},mode:l,primary:S({color:d,name:"primary"}),secondary:S({color:m,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:p,name:"error"}),warning:S({color:w,name:"warning"}),info:S({color:v,name:"info"}),success:S({color:T,name:"success"}),grey:Fx,contrastThreshold:i,getContrastText:R,augmentColor:S,tonalOffset:s,...U},f)}function lS(n){const l={};return Object.entries(n).forEach(s=>{const[o,f]=s;typeof f=="object"&&(l[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||""}`)}),l}function rS(n,l){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...l}}function iS(n){return Math.round(n*1e5)/1e5}const jm={textTransform:"uppercase"},Rm='"Roboto", "Helvetica", "Arial", sans-serif';function sS(n,l){const{fontFamily:i=Rm,fontSize:s=14,fontWeightLight:o=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:m=700,htmlFontSize:p=16,allVariants:v,pxToRem:T,...w}=typeof l=="function"?l(n):l,R=s/14,S=T||(Z=>`${Z/p*R}rem`),U=(Z,I,$,te,P)=>({fontFamily:i,fontWeight:Z,fontSize:S(I),lineHeight:$,...i===Rm?{letterSpacing:`${iS(te/I)}em`}:{},...P,...v}),A={h1:U(o,96,1.167,-1.5),h2:U(o,60,1.2,-.5),h3:U(f,48,1.167,0),h4:U(f,34,1.235,.25),h5:U(f,24,1.334,0),h6:U(d,20,1.6,.15),subtitle1:U(f,16,1.75,.15),subtitle2:U(d,14,1.57,.1),body1:U(f,16,1.5,.15),body2:U(f,14,1.43,.15),button:U(d,14,1.75,.4,jm),caption:U(f,12,1.66,.4),overline:U(f,12,2.66,1,jm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pt({htmlFontSize:p,pxToRem:S,fontFamily:i,fontSize:s,fontWeightLight:o,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:m,...A},w,{clone:!1})}const uS=.2,oS=.14,cS=.12;function et(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${uS})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${oS})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${cS})`].join(",")}const fS=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],dS={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)"},hS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Um(n){return`${Math.round(n)}ms`}function mS(n){if(!n)return 0;const l=n/36;return Math.min(Math.round((4+15*l**.25+l/5)*10),3e3)}function yS(n){const l={...dS,...n.easing},i={...hS,...n.duration};return{getAutoHeightDuration:mS,create:(o=["all"],f={})=>{const{duration:d=i.standard,easing:m=l.easeInOut,delay:p=0,...v}=f;return(Array.isArray(o)?o:[o]).map(T=>`${T} ${typeof d=="string"?d:Um(d)} ${m} ${typeof p=="string"?p:Um(p)}`).join(",")},...n,easing:l,duration:i}}const gS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function pS(n){return Xa(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function Bm(n={}){const l={...n};function i(s){const o=Object.entries(s);for(let f=0;f<o.length;f++){const[d,m]=o[f];!pS(m)||d.startsWith("unstable_")?delete s[d]:Xa(m)&&(s[d]={...m},i(s[d]))}}return i(l),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
92
|
+
*/var om;function z1(){if(om)return Qe;om=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=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"),v=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),R=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function U(A){if(typeof A=="object"&&A!==null){var Z=A.$$typeof;switch(Z){case n:switch(A=A.type,A){case i:case o:case s:case g:case v:case R:return A;default:switch(A=A&&A.$$typeof,A){case d:case m:case w:case T:return A;case f:return A;default:return Z}}case l:return Z}}}return Qe.ContextConsumer=f,Qe.ContextProvider=d,Qe.Element=n,Qe.ForwardRef=m,Qe.Fragment=i,Qe.Lazy=w,Qe.Memo=T,Qe.Portal=l,Qe.Profiler=o,Qe.StrictMode=s,Qe.Suspense=g,Qe.SuspenseList=v,Qe.isContextConsumer=function(A){return U(A)===f},Qe.isContextProvider=function(A){return U(A)===d},Qe.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},Qe.isForwardRef=function(A){return U(A)===m},Qe.isFragment=function(A){return U(A)===i},Qe.isLazy=function(A){return U(A)===w},Qe.isMemo=function(A){return U(A)===T},Qe.isPortal=function(A){return U(A)===l},Qe.isProfiler=function(A){return U(A)===o},Qe.isStrictMode=function(A){return U(A)===s},Qe.isSuspense=function(A){return U(A)===g},Qe.isSuspenseList=function(A){return U(A)===v},Qe.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===i||A===o||A===s||A===g||A===v||typeof A=="object"&&A!==null&&(A.$$typeof===w||A.$$typeof===T||A.$$typeof===d||A.$$typeof===f||A.$$typeof===m||A.$$typeof===_||A.getModuleId!==void 0)},Qe.typeOf=U,Qe}var cm;function k1(){return cm||(cm=1,Bo.exports=z1()),Bo.exports}var fm=k1();function Xa(n){if(typeof n!="object"||n===null)return!1;const l=Object.getPrototypeOf(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function dm(n){if(st.isValidElement(n)||fm.isValidElementType(n)||!Xa(n))return n;const l={};return Object.keys(n).forEach(i=>{l[i]=dm(n[i])}),l}function Pt(n,l,i={clone:!0}){const s=i.clone?{...n}:n;return Xa(n)&&Xa(l)&&Object.keys(l).forEach(o=>{st.isValidElement(l[o])||fm.isValidElementType(l[o])?s[o]=l[o]:Xa(l[o])&&Object.prototype.hasOwnProperty.call(n,o)&&Xa(n[o])?s[o]=Pt(n[o],l[o],i):i.clone?s[o]=Xa(l[o])?dm(l[o]):l[o]:s[o]=l[o]}),s}const N1=n=>{const l=Object.keys(n).map(i=>({key:i,val:n[i]}))||[];return l.sort((i,s)=>i.val-s.val),l.reduce((i,s)=>({...i,[s.key]:s.val}),{})};function M1(n){const{values:l={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:s=5,...o}=n,f=N1(l),d=Object.keys(f);function m(R){return`@media (min-width:${typeof l[R]=="number"?l[R]:R}${i})`}function g(R){return`@media (max-width:${(typeof l[R]=="number"?l[R]:R)-s/100}${i})`}function v(R,_){const U=d.indexOf(_);return`@media (min-width:${typeof l[R]=="number"?l[R]:R}${i}) and (max-width:${(U!==-1&&typeof l[d[U]]=="number"?l[d[U]]:_)-s/100}${i})`}function T(R){return d.indexOf(R)+1<d.length?v(R,d[d.indexOf(R)+1]):m(R)}function w(R){const _=d.indexOf(R);return _===0?m(d[1]):_===d.length-1?g(d[_]):v(R,d[d.indexOf(R)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:m,down:g,between:v,only:T,not:w,unit:i,...o}}function hm(n,l){if(!n.containerQueries)return l;const i=Object.keys(l).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 i.length?i.reduce((s,o)=>{const f=l[o];return delete s[o],s[o]=f,s},{...l}):l}function D1(n,l){return l==="@"||l.startsWith("@")&&(n.some(i=>l.startsWith(`@${i}`))||!!l.match(/^@\d/))}function j1(n,l){const i=l.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,s,o]=i,f=Number.isNaN(+s)?s||0:+s;return n.containerQueries(o).up(f)}function R1(n){const l=(f,d)=>f.replace("@media",d?`@container ${d}`:"@container");function i(f,d){f.up=(...m)=>l(n.breakpoints.up(...m),d),f.down=(...m)=>l(n.breakpoints.down(...m),d),f.between=(...m)=>l(n.breakpoints.between(...m),d),f.only=(...m)=>l(n.breakpoints.only(...m),d),f.not=(...m)=>{const g=l(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=>(i(s,f),s);return i(o),{...n,containerQueries:o}}const U1={borderRadius:4};function Qr(n,l){return l?Pt(n,l,{clone:!1}):n}const ds={xs:0,sm:600,md:900,lg:1200,xl:1536},mm={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${ds[n]}px)`},B1={containerQueries:n=>({up:l=>{let i=typeof l=="number"?l:ds[l]||l;return typeof i=="number"&&(i=`${i}px`),n?`@container ${n} (min-width:${i})`:`@container (min-width:${i})`}})};function $a(n,l,i){const s=n.theme||{};if(Array.isArray(l)){const f=s.breakpoints||mm;return l.reduce((d,m,g)=>(d[f.up(f.keys[g])]=i(l[g]),d),{})}if(typeof l=="object"){const f=s.breakpoints||mm;return Object.keys(l).reduce((d,m)=>{if(D1(f.keys,m)){const g=j1(s.containerQueries?s:B1,m);g&&(d[g]=i(l[m],m))}else if(Object.keys(f.values||ds).includes(m)){const g=f.up(m);d[g]=i(l[m],m)}else{const g=m;d[g]=l[g]}return d},{})}return i(l)}function V1(n={}){var i;return((i=n.keys)==null?void 0:i.reduce((s,o)=>{const f=n.up(o);return s[f]={},s},{}))||{}}function ym(n,l){return n.reduce((i,s)=>{const o=i[s];return(!o||Object.keys(o).length===0)&&delete i[s],i},l)}function pm(n){if(typeof n!="string")throw new Error(Wn(7));return n.charAt(0).toUpperCase()+n.slice(1)}function hs(n,l,i=!0){if(!l||typeof l!="string")return null;if(n&&n.vars&&i){const s=`vars.${l}`.split(".").reduce((o,f)=>o&&o[f]?o[f]:null,n);if(s!=null)return s}return l.split(".").reduce((s,o)=>s&&s[o]!=null?s[o]:null,n)}function ms(n,l,i,s=i){let o;return typeof n=="function"?o=n(i):Array.isArray(n)?o=n[i]||s:o=hs(n,i)||s,l&&(o=l(o,s,n)),o}function ot(n){const{prop:l,cssProperty:i=n.prop,themeKey:s,transform:o}=n,f=d=>{if(d[l]==null)return null;const m=d[l],g=d.theme,v=hs(g,s)||{};return $a(d,m,w=>{let R=ms(v,o,w);return w===R&&typeof w=="string"&&(R=ms(v,o,`${l}${w==="default"?"":pm(w)}`,w)),i===!1?R:{[i]:R}})};return f.propTypes={},f.filterProps=[l],f}function L1(n){const l={};return i=>(l[i]===void 0&&(l[i]=n(i)),l[i])}const H1={m:"margin",p:"padding"},q1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Z1=L1(n=>{if(n.length>2)if(gm[n])n=gm[n];else return[n];const[l,i]=n.split(""),s=H1[l],o=q1[i]||"";return Array.isArray(o)?o.map(f=>s+f):[s+o]}),Vo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Lo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vo,...Lo];function Xr(n,l,i,s){const o=hs(n,l,!0)??i;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 Ho(n){return Xr(n,"spacing",8)}function $r(n,l){return typeof l=="string"||l==null?l:n(l)}function Y1(n,l){return i=>n.reduce((s,o)=>(s[o]=$r(l,i),s),{})}function G1(n,l,i,s){if(!l.includes(i))return null;const o=Z1(i),f=Y1(o,s),d=n[i];return $a(n,d,f)}function vm(n,l){const i=Ho(n.theme);return Object.keys(n).map(s=>G1(n,l,s,i)).reduce(Qr,{})}function nt(n){return vm(n,Vo)}nt.propTypes={},nt.filterProps=Vo;function lt(n){return vm(n,Lo)}lt.propTypes={},lt.filterProps=Lo;function bm(n=8,l=Ho({spacing:n})){if(n.mui)return n;const i=(...s)=>(s.length===0?[1]:s).map(f=>{const d=l(f);return typeof d=="number"?`${d}px`:d}).join(" ");return i.mui=!0,i}function ys(...n){const l=n.reduce((s,o)=>(o.filterProps.forEach(f=>{s[f]=o}),s),{}),i=s=>Object.keys(s).reduce((o,f)=>l[f]?Qr(o,l[f](s)):o,{});return i.propTypes={},i.filterProps=n.reduce((s,o)=>s.concat(o.filterProps),[]),i}function ca(n){return typeof n!="number"?n:`${n}px solid`}function fa(n,l){return ot({prop:n,themeKey:"borders",transform:l})}const Q1=fa("border",ca),X1=fa("borderTop",ca),$1=fa("borderRight",ca),K1=fa("borderBottom",ca),J1=fa("borderLeft",ca),F1=fa("borderColor"),W1=fa("borderTopColor"),I1=fa("borderRightColor"),P1=fa("borderBottomColor"),ex=fa("borderLeftColor"),tx=fa("outline",ca),ax=fa("outlineColor"),ps=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const l=Xr(n.theme,"shape.borderRadius",4),i=s=>({borderRadius:$r(l,s)});return $a(n,n.borderRadius,i)}return null};ps.propTypes={},ps.filterProps=["borderRadius"],ys(Q1,X1,$1,K1,J1,F1,W1,I1,P1,ex,ps,tx,ax);const gs=n=>{if(n.gap!==void 0&&n.gap!==null){const l=Xr(n.theme,"spacing",8),i=s=>({gap:$r(l,s)});return $a(n,n.gap,i)}return null};gs.propTypes={},gs.filterProps=["gap"];const vs=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const l=Xr(n.theme,"spacing",8),i=s=>({columnGap:$r(l,s)});return $a(n,n.columnGap,i)}return null};vs.propTypes={},vs.filterProps=["columnGap"];const bs=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const l=Xr(n.theme,"spacing",8),i=s=>({rowGap:$r(l,s)});return $a(n,n.rowGap,i)}return null};bs.propTypes={},bs.filterProps=["rowGap"];const nx=ot({prop:"gridColumn"}),lx=ot({prop:"gridRow"}),rx=ot({prop:"gridAutoFlow"}),ix=ot({prop:"gridAutoColumns"}),sx=ot({prop:"gridAutoRows"}),ux=ot({prop:"gridTemplateColumns"}),ox=ot({prop:"gridTemplateRows"}),cx=ot({prop:"gridTemplateAreas"}),fx=ot({prop:"gridArea"});ys(gs,vs,bs,nx,lx,rx,ix,sx,ux,ox,cx,fx);function Dl(n,l){return l==="grey"?l:n}const dx=ot({prop:"color",themeKey:"palette",transform:Dl}),hx=ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Dl}),mx=ot({prop:"backgroundColor",themeKey:"palette",transform:Dl});ys(dx,hx,mx);function ea(n){return n<=1&&n!==0?`${n*100}%`:n}const yx=ot({prop:"width",transform:ea}),qo=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const l=i=>{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[i])||ds[i];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:ea(i)}};return $a(n,n.maxWidth,l)}return null};qo.filterProps=["maxWidth"];const px=ot({prop:"minWidth",transform:ea}),gx=ot({prop:"height",transform:ea}),vx=ot({prop:"maxHeight",transform:ea}),bx=ot({prop:"minHeight",transform:ea});ot({prop:"size",cssProperty:"width",transform:ea}),ot({prop:"size",cssProperty:"height",transform:ea});const xx=ot({prop:"boxSizing"});ys(yx,qo,px,gx,vx,bx,xx);const xs={border:{themeKey:"borders",transform:ca},borderTop:{themeKey:"borders",transform:ca},borderRight:{themeKey:"borders",transform:ca},borderBottom:{themeKey:"borders",transform:ca},borderLeft:{themeKey:"borders",transform:ca},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ca},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ps},color:{themeKey:"palette",transform:Dl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Dl},backgroundColor:{themeKey:"palette",transform:Dl},p:{style:lt},pt:{style:lt},pr:{style:lt},pb:{style:lt},pl:{style:lt},px:{style:lt},py:{style:lt},padding:{style:lt},paddingTop:{style:lt},paddingRight:{style:lt},paddingBottom:{style:lt},paddingLeft:{style:lt},paddingX:{style:lt},paddingY:{style:lt},paddingInline:{style:lt},paddingInlineStart:{style:lt},paddingInlineEnd:{style:lt},paddingBlock:{style:lt},paddingBlockStart:{style:lt},paddingBlockEnd:{style:lt},m:{style:nt},mt:{style:nt},mr:{style:nt},mb:{style:nt},ml:{style:nt},mx:{style:nt},my:{style:nt},margin:{style:nt},marginTop:{style:nt},marginRight:{style:nt},marginBottom:{style:nt},marginLeft:{style:nt},marginX:{style:nt},marginY:{style:nt},marginInline:{style:nt},marginInlineStart:{style:nt},marginInlineEnd:{style:nt},marginBlock:{style:nt},marginBlockStart:{style:nt},marginBlockEnd:{style:nt},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:gs},rowGap:{style:bs},columnGap:{style:vs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ea},maxWidth:{style:qo},minWidth:{transform:ea},height:{transform:ea},maxHeight:{transform:ea},minHeight:{transform:ea},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 _x(...n){const l=n.reduce((s,o)=>s.concat(Object.keys(o)),[]),i=new Set(l);return n.every(s=>i.size===Object.keys(s).length)}function Sx(n,l){return typeof n=="function"?n(l):n}function wx(){function n(i,s,o,f){const d={[i]:s,theme:o},m=f[i];if(!m)return{[i]:s};const{cssProperty:g=i,themeKey:v,transform:T,style:w}=m;if(s==null)return null;if(v==="typography"&&s==="inherit")return{[i]:s};const R=hs(o,v)||{};return w?w(d):$a(d,s,U=>{let A=ms(R,T,U);return U===A&&typeof U=="string"&&(A=ms(R,T,`${i}${U==="default"?"":pm(U)}`,U)),g===!1?A:{[g]:A}})}function l(i){const{sx:s,theme:o={},nested:f}=i||{};if(!s)return null;const d=o.unstable_sxConfig??xs;function m(g){let v=g;if(typeof g=="function")v=g(o);else if(typeof g!="object")return g;if(!v)return null;const T=V1(o.breakpoints),w=Object.keys(T);let R=T;return Object.keys(v).forEach(_=>{const U=Sx(v[_],o);if(U!=null)if(typeof U=="object")if(d[_])R=Qr(R,n(_,U,o,d));else{const A=$a({theme:o},U,Z=>({[_]:Z}));_x(A,U)?R[_]=l({sx:U,theme:o,nested:!0}):R=Qr(R,A)}else R=Qr(R,n(_,U,o,d))}),!f&&o.modularCssLayers?{"@layer sx":hm(o,ym(w,R))}:hm(o,ym(w,R))}return Array.isArray(s)?s.map(m):m(s)}return l}const jl=wx();jl.filterProps=["sx"];function Ax(n,l){var s;const i=this;if(i.vars){if(!((s=i.colorSchemes)!=null&&s[n])||typeof i.getColorSchemeSelector!="function")return{};let o=i.getColorSchemeSelector(n);return o==="&"?l:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:l})}return i.palette.mode===n?l:{}}function xm(n={},...l){const{breakpoints:i={},palette:s={},spacing:o,shape:f={},...d}=n,m=M1(i),g=bm(o);let v=Pt({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:g,shape:{...U1,...f}},d);return v=R1(v),v.applyStyles=Ax,v=l.reduce((T,w)=>Pt(T,w),v),v.unstable_sxConfig={...xs,...d==null?void 0:d.unstable_sxConfig},v.unstable_sx=function(w){return jl({sx:w,theme:this})},v}const _m=n=>n,Tx=(()=>{let n=_m;return{configure(l){n=l},generate(l){return n(l)},reset(){n=_m}}})(),Cx={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 Sm(n,l,i="Mui"){const s=Cx[l];return s?`${i}-${s}`:`${Tx.generate(n)}-${l}`}function Ex(n,l,i="Mui"){const s={};return l.forEach(o=>{s[o]=Sm(n,o,i)}),s}function wm(n){const{variants:l,...i}=n,s={variants:l,style:In(i),isProcessed:!0};return s.style===i||l&&l.forEach(o=>{typeof o.style!="function"&&(o.style=In(o.style))}),s}const Ox=xm();function Zo(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function Pn(n,l){return l&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${l}{${String(n.styles)}}`),n}function zx(n){return n?(l,i)=>i[n]:null}function kx(n,l,i){n.theme=Dx(n.theme)?i:n.theme[l]||n.theme}function _s(n,l,i){const s=typeof l=="function"?l(n):l;if(Array.isArray(s))return s.flatMap(o=>_s(n,o,i));if(Array.isArray(s==null?void 0:s.variants)){let o;if(s.isProcessed)o=i?Pn(s.style,i):s.style;else{const{variants:f,...d}=s;o=i?Pn(In(d),i):d}return Am(n,s.variants,[o],i)}return s!=null&&s.isProcessed?i?Pn(In(s.style),i):s.style:i?Pn(In(s),i):s}function Am(n,l,i=[],s=void 0){var f;let o;e:for(let d=0;d<l.length;d+=1){const m=l[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}),i.push(s?Pn(In(m.style(o)),s):m.style(o))):i.push(s?Pn(In(m.style),s):m.style)}return i}function Nx(n={}){const{themeId:l,defaultTheme:i=Ox,rootShouldForwardProp:s=Zo,slotShouldForwardProp:o=Zo}=n;function f(m){kx(m,l,i)}return(m,g={})=>{O1(m,Q=>Q.filter(ae=>ae!==jl));const{name:v,slot:T,skipVariantsResolver:w,skipSx:R,overridesResolver:_=zx(Rx(T)),...U}=g,A=v&&v.startsWith("Mui")||T?"components":"custom",Z=w!==void 0?w:T&&T!=="Root"&&T!=="root"||!1,I=R||!1;let $=Zo;T==="Root"||T==="root"?$=s:T?$=o:jx(m)&&($=void 0);const te=E1(m,{shouldForwardProp:$,label:Mx(),...U}),P=Q=>{if(Q.__emotion_real===Q)return Q;if(typeof Q=="function")return function(xe){return _s(xe,Q,xe.theme.modularCssLayers?A:void 0)};if(Xa(Q)){const ae=wm(Q);return function(Ue){return ae.variants?_s(Ue,ae,Ue.theme.modularCssLayers?A:void 0):Ue.theme.modularCssLayers?Pn(ae.style,A):ae.style}}return Q},L=(...Q)=>{const ae=[],xe=Q.map(P),Ue=[];if(ae.push(f),v&&_&&Ue.push(function(Y){var X,re;const le=(re=(X=Y.theme.components)==null?void 0:X[v])==null?void 0:re.styleOverrides;if(!le)return null;const k={};for(const Ee in le)k[Ee]=_s(Y,le[Ee],Y.theme.modularCssLayers?"theme":void 0);return _(Y,k)}),v&&!Z&&Ue.push(function(Y){var k,X;const G=Y.theme,le=(X=(k=G==null?void 0:G.components)==null?void 0:k[v])==null?void 0:X.variants;return le?Am(Y,le,[],Y.theme.modularCssLayers?"theme":void 0):null}),I||Ue.push(jl),Array.isArray(xe[0])){const p=xe.shift(),Y=new Array(ae.length).fill(""),G=new Array(Ue.length).fill("");let le;le=[...Y,...p,...G],le.raw=[...Y,...p.raw,...G],ae.unshift(le)}const We=[...ae,...xe,...Ue],ge=te(...We);return m.muiName&&(ge.muiName=m.muiName),ge};return te.withConfig&&(L.withConfig=te.withConfig),L}}function Mx(n,l){return void 0}function Dx(n){for(const l in n)return!1;return!0}function jx(n){return typeof n=="string"&&n.charCodeAt(0)>96}function Rx(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}function Yo(n,l,i=!1){const s={...l};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=l[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 v=g;s[f][v]=Yo(d[v],m[v],i)}}}else f==="className"&&i&&l.className?s.className=Dh(n==null?void 0:n.className,l==null?void 0:l.className):f==="style"&&i&&l.style?s.style={...n==null?void 0:n.style,...l==null?void 0:l.style}:s[f]===void 0&&(s[f]=n[f])}return s}function Ux(n,l=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(l,Math.min(n,i))}function Go(n,l=0,i=1){return Ux(n,l,i)}function Bx(n){n=n.slice(1);const l=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let i=n.match(l);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,o)=>o<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function _n(n){if(n.type)return n;if(n.charAt(0)==="#")return _n(Bx(n));const l=n.indexOf("("),i=n.substring(0,l);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(Wn(9,n));let s=n.substring(l+1,n.length-1),o;if(i==="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(Wn(10,o))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:i,values:s,colorSpace:o}}const Vx=n=>{const l=_n(n);return l.values.slice(0,3).map((i,s)=>l.type.includes("hsl")&&s!==0?`${i}%`:i).join(" ")},Kr=(n,l)=>{try{return Vx(n)}catch{return n}};function Ss(n){const{type:l,colorSpace:i}=n;let{values:s}=n;return l.includes("rgb")?s=s.map((o,f)=>f<3?parseInt(o,10):o):l.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),l.includes("color")?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${l}(${s})`}function Tm(n){n=_n(n);const{values:l}=n,i=l[0],s=l[1]/100,o=l[2]/100,f=s*Math.min(o,1-o),d=(v,T=(v+i/30)%12)=>o-f*Math.max(Math.min(T-3,9-T,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(l[3])),Ss({type:m,values:g})}function Qo(n){n=_n(n);let l=n.type==="hsl"||n.type==="hsla"?_n(Tm(n)).values:n.values;return l=l.map(i=>(n.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*l[0]+.7152*l[1]+.0722*l[2]).toFixed(3))}function Lx(n,l){const i=Qo(n),s=Qo(l);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}function Cm(n,l){return n=_n(n),l=Go(l),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${l}`:n.values[3]=l,Ss(n)}function el(n,l,i){try{return Cm(n,l)}catch{return n}}function ws(n,l){if(n=_n(n),l=Go(l),n.type.includes("hsl"))n.values[2]*=1-l;else if(n.type.includes("rgb")||n.type.includes("color"))for(let i=0;i<3;i+=1)n.values[i]*=1-l;return Ss(n)}function He(n,l,i){try{return ws(n,l)}catch{return n}}function As(n,l){if(n=_n(n),l=Go(l),n.type.includes("hsl"))n.values[2]+=(100-n.values[2])*l;else if(n.type.includes("rgb"))for(let i=0;i<3;i+=1)n.values[i]+=(255-n.values[i])*l;else if(n.type.includes("color"))for(let i=0;i<3;i+=1)n.values[i]+=(1-n.values[i])*l;return Ss(n)}function qe(n,l,i){try{return As(n,l)}catch{return n}}function Hx(n,l=.15){return Qo(n)>.5?ws(n,l):As(n,l)}function Ts(n,l,i){try{return Hx(n,l)}catch{return n}}const qx=st.createContext(void 0);function Zx(n){const{theme:l,name:i,props:s}=n;if(!l||!l.components||!l.components[i])return s;const o=l.components[i];return o.defaultProps?Yo(o.defaultProps,s,l.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Yo(o,s,l.components.mergeClassNameAndStyle):s}function Yx({props:n,name:l}){const i=st.useContext(qx);return Zx({props:n,name:l,theme:{components:i}})}const Em={theme:void 0};function Gx(n){let l,i;return function(o){let f=l;return(f===void 0||o.theme!==i)&&(Em.theme=o.theme,f=wm(n(Em)),l=f,i=o.theme),f}}function Qx(n=""){function l(...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}${l(...s.slice(1))})`:`, ${o}`}return(s,...o)=>`var(--${n?`${n}-`:""}${s}${l(...o)})`}const Om=(n,l,i,s=[])=>{let o=n;l.forEach((f,d)=>{d===l.length-1?Array.isArray(o)?o[Number(f)]=i:o&&typeof o=="object"&&(o[f]=i):o&&typeof o=="object"&&(o[f]||(o[f]=s.includes(f)?[]:{}),o=o[f])})},Xx=(n,l,i)=>{function s(o,f=[],d=[]){Object.entries(o).forEach(([m,g])=>{(!i||i&&!i([...f,m]))&&g!=null&&(typeof g=="object"&&Object.keys(g).length>0?s(g,[...f,m],Array.isArray(g)?[...d,m]:d):l([...f,m],g,d))})}s(n)},$x=(n,l)=>typeof l=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>n.includes(s))||n[n.length-1].toLowerCase().includes("opacity")?l:`${l}px`:l;function Xo(n,l){const{prefix:i,shouldSkipGeneratingVar:s}=l||{},o={},f={},d={};return Xx(n,(m,g,v)=>{if((typeof g=="string"||typeof g=="number")&&(!s||!s(m,g))){const T=`--${i?`${i}-`:""}${m.join("-")}`,w=$x(m,g);Object.assign(o,{[T]:w}),Om(f,m,`var(${T})`,v),Om(d,m,`var(${T}, ${w})`,v)}},m=>m[0]==="vars"),{css:o,vars:f,varsWithDefaults:d}}function Kx(n,l={}){const{getSelector:i=I,disableCssColorScheme:s,colorSchemeSelector:o,enableContrastVars:f}=l,{colorSchemes:d={},components:m,defaultColorScheme:g="light",...v}=n,{vars:T,css:w,varsWithDefaults:R}=Xo(v,l);let _=R;const U={},{[g]:A,...Z}=d;if(Object.entries(Z||{}).forEach(([P,L])=>{const{vars:Q,css:ae,varsWithDefaults:xe}=Xo(L,l);_=Pt(_,xe),U[P]={css:ae,vars:Q}}),A){const{css:P,vars:L,varsWithDefaults:Q}=Xo(A,l);_=Pt(_,Q),U[g]={css:P,vars:L}}function I(P,L){var ae,xe;let Q=o;if(o==="class"&&(Q=".%s"),o==="data"&&(Q="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(Q=`[${o}="%s"]`),P){if(Q==="media")return n.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${((xe=(ae=d[P])==null?void 0:ae.palette)==null?void 0:xe.mode)||P})`]:{":root":L}};if(Q)return n.defaultColorScheme===P?`:root, ${Q.replace("%s",String(P))}`:Q.replace("%s",String(P))}return":root"}return{vars:_,generateThemeVars:()=>{let P={...T};return Object.entries(U).forEach(([,{vars:L}])=>{P=Pt(P,L)}),P},generateStyleSheets:()=>{var Ue,We;const P=[],L=n.defaultColorScheme||"light";function Q(ge,p){Object.keys(p).length&&P.push(typeof ge=="string"?{[ge]:{...p}}:ge)}Q(i(void 0,{...w}),w);const{[L]:ae,...xe}=U;if(ae){const{css:ge}=ae,p=(We=(Ue=d[L])==null?void 0:Ue.palette)==null?void 0:We.mode,Y=!s&&p?{colorScheme:p,...ge}:{...ge};Q(i(L,{...Y}),Y)}return Object.entries(xe).forEach(([ge,{css:p}])=>{var le,k;const Y=(k=(le=d[ge])==null?void 0:le.palette)==null?void 0:k.mode,G=!s&&Y?{colorScheme:Y,...p}:{...p};Q(i(ge,{...G}),G)}),f&&P.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)"}}),P}}}function Jx(n){return function(i){return n==="media"?`@media (prefers-color-scheme: ${i})`:n?n.startsWith("data-")&&!n.includes("%s")?`[${n}="${i}"] &`:n==="class"?`.${i} &`:n==="data"?`[data-${i}] &`:`${n.replace("%s",i)} &`:"&"}}const Jr={black:"#000",white:"#fff"},Fx={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"},Rl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ul={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Fr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Bl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Vl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ll={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function zm(){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:Jr.white,default:Jr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const km=zm();function Nm(){return{text:{primary:Jr.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:Jr.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 $o=Nm();function Mm(n,l,i,s){const o=s.light||s,f=s.dark||s*1.5;n[l]||(n.hasOwnProperty(i)?n[l]=n[i]:l==="light"?n.light=As(n.main,o):l==="dark"&&(n.dark=ws(n.main,f)))}function Dm(n,l,i,s,o){const f=o.light||o,d=o.dark||o*1.5;l[i]||(l.hasOwnProperty(s)?l[i]=l[s]:i==="light"?l.light=`color-mix(in ${n}, ${l.main}, #fff ${(f*100).toFixed(0)}%)`:i==="dark"&&(l.dark=`color-mix(in ${n}, ${l.main}, #000 ${(d*100).toFixed(0)}%)`))}function Wx(n="light"){return n==="dark"?{main:Bl[200],light:Bl[50],dark:Bl[400]}:{main:Bl[700],light:Bl[400],dark:Bl[800]}}function Ix(n="light"){return n==="dark"?{main:Rl[200],light:Rl[50],dark:Rl[400]}:{main:Rl[500],light:Rl[300],dark:Rl[700]}}function Px(n="light"){return n==="dark"?{main:Ul[500],light:Ul[300],dark:Ul[700]}:{main:Ul[700],light:Ul[400],dark:Ul[800]}}function e_(n="light"){return n==="dark"?{main:Vl[400],light:Vl[300],dark:Vl[700]}:{main:Vl[700],light:Vl[500],dark:Vl[900]}}function t_(n="light"){return n==="dark"?{main:Ll[400],light:Ll[300],dark:Ll[700]}:{main:Ll[800],light:Ll[500],dark:Ll[900]}}function a_(n="light"){return n==="dark"?{main:Fr[400],light:Fr[300],dark:Fr[700]}:{main:"#ed6c02",light:Fr[500],dark:Fr[900]}}function n_(n){return`oklch(from ${n} var(--__l) 0 h / var(--__a))`}function Ko(n){const{mode:l="light",contrastThreshold:i=3,tonalOffset:s=.2,colorSpace:o,...f}=n,d=n.primary||Wx(l),m=n.secondary||Ix(l),g=n.error||Px(l),v=n.info||e_(l),T=n.success||t_(l),w=n.warning||a_(l);function R(Z){return o?n_(Z):Lx(Z,$o.text.primary)>=i?$o.text.primary:km.text.primary}const _=({color:Z,name:I,mainShade:$=500,lightShade:te=300,darkShade:P=700})=>{if(Z={...Z},!Z.main&&Z[$]&&(Z.main=Z[$]),!Z.hasOwnProperty("main"))throw new Error(Wn(11,I?` (${I})`:"",$));if(typeof Z.main!="string")throw new Error(Wn(12,I?` (${I})`:"",JSON.stringify(Z.main)));return o?(Dm(o,Z,"light",te,s),Dm(o,Z,"dark",P,s)):(Mm(Z,"light",te,s),Mm(Z,"dark",P,s)),Z.contrastText||(Z.contrastText=R(Z.main)),Z};let U;return l==="light"?U=zm():l==="dark"&&(U=Nm()),Pt({common:{...Jr},mode:l,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:v,name:"info"}),success:_({color:T,name:"success"}),grey:Fx,contrastThreshold:i,getContrastText:R,augmentColor:_,tonalOffset:s,...U},f)}function l_(n){const l={};return Object.entries(n).forEach(s=>{const[o,f]=s;typeof f=="object"&&(l[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||""}`)}),l}function r_(n,l){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...l}}function i_(n){return Math.round(n*1e5)/1e5}const jm={textTransform:"uppercase"},Rm='"Roboto", "Helvetica", "Arial", sans-serif';function s_(n,l){const{fontFamily:i=Rm,fontSize:s=14,fontWeightLight:o=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:m=700,htmlFontSize:g=16,allVariants:v,pxToRem:T,...w}=typeof l=="function"?l(n):l,R=s/14,_=T||(Z=>`${Z/g*R}rem`),U=(Z,I,$,te,P)=>({fontFamily:i,fontWeight:Z,fontSize:_(I),lineHeight:$,...i===Rm?{letterSpacing:`${i_(te/I)}em`}:{},...P,...v}),A={h1:U(o,96,1.167,-1.5),h2:U(o,60,1.2,-.5),h3:U(f,48,1.167,0),h4:U(f,34,1.235,.25),h5:U(f,24,1.334,0),h6:U(d,20,1.6,.15),subtitle1:U(f,16,1.75,.15),subtitle2:U(d,14,1.57,.1),body1:U(f,16,1.5,.15),body2:U(f,14,1.43,.15),button:U(d,14,1.75,.4,jm),caption:U(f,12,1.66,.4),overline:U(f,12,2.66,1,jm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pt({htmlFontSize:g,pxToRem:_,fontFamily:i,fontSize:s,fontWeightLight:o,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:m,...A},w,{clone:!1})}const u_=.2,o_=.14,c_=.12;function et(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${u_})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${o_})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${c_})`].join(",")}const f_=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],d_={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)"},h_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Um(n){return`${Math.round(n)}ms`}function m_(n){if(!n)return 0;const l=n/36;return Math.min(Math.round((4+15*l**.25+l/5)*10),3e3)}function y_(n){const l={...d_,...n.easing},i={...h_,...n.duration};return{getAutoHeightDuration:m_,create:(o=["all"],f={})=>{const{duration:d=i.standard,easing:m=l.easeInOut,delay:g=0,...v}=f;return(Array.isArray(o)?o:[o]).map(T=>`${T} ${typeof d=="string"?d:Um(d)} ${m} ${typeof g=="string"?g:Um(g)}`).join(",")},...n,easing:l,duration:i}}const p_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function g_(n){return Xa(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function Bm(n={}){const l={...n};function i(s){const o=Object.entries(s);for(let f=0;f<o.length;f++){const[d,m]=o[f];!g_(m)||d.startsWith("unstable_")?delete s[d]:Xa(m)&&(s[d]={...m},i(s[d]))}}return i(l),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
93
93
|
|
|
94
94
|
const theme = ${JSON.stringify(l,null,2)};
|
|
95
95
|
|
|
96
96
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
97
97
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
98
98
|
|
|
99
|
-
export default theme;`}function Vm(n){return typeof n=="number"?`${(n*100).toFixed(0)}%`:`calc((${n}) * 100%)`}const vS=n=>{if(!Number.isNaN(+n))return+n;const l=n.match(/\d*\.?\d+/g);if(!l)return 0;let i=0;for(let s=0;s<l.length;s+=1)i+=+l[s];return i};function bS(n){Object.assign(n,{alpha(l,i){const s=this||n;return s.colorSpace?`oklch(from ${l} l c h / ${typeof i=="string"?`calc(${i})`:i})`:s.vars?`rgba(${l.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof i=="string"?`calc(${i})`:i})`:Cm(l,vS(i))},lighten(l,i){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${l}, #fff ${Vm(i)})`:As(l,i)},darken(l,i){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${l}, #000 ${Vm(i)})`:ws(l,i)}})}function Jo(n={},...l){const{breakpoints:i,mixins:s={},spacing:o,palette:f={},transitions:d={},typography:m={},shape:p,colorSpace:v,...T}=n;if(n.vars&&n.generateThemeVars===void 0)throw new Error(Wn(20));const w=Ko({...f,colorSpace:v}),R=xm(n);let S=Pt(R,{mixins:rS(R.breakpoints,s),palette:w,shadows:fS.slice(),typography:sS(w,m),transitions:yS(d),zIndex:{...gS}});return S=Pt(S,T),S=l.reduce((U,A)=>Pt(U,A),S),S.unstable_sxConfig={...xs,...T==null?void 0:T.unstable_sxConfig},S.unstable_sx=function(A){return jl({sx:A,theme:this})},S.toRuntimeSource=Bm,bS(S),S}function xS(n){let l;return n<1?l=5.11916*n**2:l=4.5*Math.log(n+1)+2,Math.round(l*10)/1e3}const SS=[...Array(25)].map((n,l)=>{if(l===0)return"none";const i=xS(l);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function Lm(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function Hm(n){return n==="dark"?SS:[]}function _S(n){const{palette:l={mode:"light"},opacity:i,overlays:s,colorSpace:o,...f}=n,d=Ko({...l,colorSpace:o});return{palette:d,opacity:{...Lm(d.mode),...i},overlays:s||Hm(d.mode),...f}}function wS(n){var l;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((l=n[1])!=null&&l.match(/(mode|contrastThreshold|tonalOffset)/))}const AS=n=>[...[...Array(25)].map((l,i)=>`--${n?`${n}-`:""}overlays-${i}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],TS=n=>(l,i)=>{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===l){if(l==="dark"){const d={};return AS(n.cssVarPrefix).forEach(m=>{d[m]=i[m],delete i[m]}),f==="media"?{[s]:i,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",l)]:d,[`${s}, ${f.replace("%s",l)}`]:i}:{[s]:{...i,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(l))}`}else if(l){if(f==="media")return{[`@media (prefers-color-scheme: ${String(l)})`]:{[s]:i}};if(f)return f.replace("%s",String(l))}return s};function CS(n,l){l.forEach(i=>{n[i]||(n[i]={})})}function B(n,l,i){!n[l]&&i&&(n[l]=i)}function Wr(n){return typeof n!="string"||!n.startsWith("hsl")?n:Tm(n)}function Ka(n,l){`${l}Channel`in n||(n[`${l}Channel`]=Kr(Wr(n[l])))}function ES(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const Ua=n=>{try{return n()}catch{}},OS=(n="mui")=>Qx(n);function Fo(n,l,i,s,o){if(!i)return;i=i===!0?{}:i;const f=o==="dark"?"dark":"light";if(!s){l[o]=_S({...i,palette:{mode:f,...i==null?void 0:i.palette},colorSpace:n});return}const{palette:d,...m}=Jo({...s,palette:{mode:f,...i==null?void 0:i.palette},colorSpace:n});return l[o]={...i,palette:d,opacity:{...Lm(f),...i==null?void 0:i.opacity},overlays:(i==null?void 0:i.overlays)||Hm(f)},m}function zS(n={},...l){const{colorSchemes:i={light:!0},defaultColorScheme:s,disableCssColorScheme:o=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:m=wS,colorSchemeSelector:p=i.light&&i.dark?"media":void 0,rootSelector:v=":root",...T}=n,w=Object.keys(i)[0],R=s||(i.light&&w!=="light"?"light":w),S=OS(f),{[R]:U,light:A,dark:Z,...I}=i,$={...I};let te=U;if((R==="dark"&&!("dark"in i)||R==="light"&&!("light"in i))&&(te=!0),!te)throw new Error(Wn(21,R));let P;d&&(P="oklch");const L=Fo(P,$,te,T,R);A&&!$.light&&Fo(P,$,A,void 0,"light"),Z&&!$.dark&&Fo(P,$,Z,void 0,"dark");let Q={defaultColorScheme:R,...L,cssVarPrefix:f,colorSchemeSelector:p,rootSelector:v,getCssVar:S,colorSchemes:$,font:{...lS(L.typography),...L.font},spacing:ES(T.spacing)};Object.keys(Q.colorSchemes).forEach(pe=>{const g=Q.colorSchemes[pe].palette,Y=le=>{const k=le.split("-"),X=k[1],re=k[2];return S(le,g[X][re])};g.mode==="light"&&(B(g.common,"background","#fff"),B(g.common,"onBackground","#000")),g.mode==="dark"&&(B(g.common,"background","#000"),B(g.common,"onBackground","#fff"));function G(le,k,X){if(P){let re;return le===el&&(re=`transparent ${((1-X)*100).toFixed(0)}%`),le===He&&(re=`#000 ${(X*100).toFixed(0)}%`),le===qe&&(re=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${P}, ${k}, ${re})`}return le(k,X)}if(CS(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){B(g.Alert,"errorColor",G(He,d?S("palette-error-light"):g.error.light,.6)),B(g.Alert,"infoColor",G(He,d?S("palette-info-light"):g.info.light,.6)),B(g.Alert,"successColor",G(He,d?S("palette-success-light"):g.success.light,.6)),B(g.Alert,"warningColor",G(He,d?S("palette-warning-light"):g.warning.light,.6)),B(g.Alert,"errorFilledBg",Y("palette-error-main")),B(g.Alert,"infoFilledBg",Y("palette-info-main")),B(g.Alert,"successFilledBg",Y("palette-success-main")),B(g.Alert,"warningFilledBg",Y("palette-warning-main")),B(g.Alert,"errorFilledColor",Ua(()=>g.getContrastText(g.error.main))),B(g.Alert,"infoFilledColor",Ua(()=>g.getContrastText(g.info.main))),B(g.Alert,"successFilledColor",Ua(()=>g.getContrastText(g.success.main))),B(g.Alert,"warningFilledColor",Ua(()=>g.getContrastText(g.warning.main))),B(g.Alert,"errorStandardBg",G(qe,d?S("palette-error-light"):g.error.light,.9)),B(g.Alert,"infoStandardBg",G(qe,d?S("palette-info-light"):g.info.light,.9)),B(g.Alert,"successStandardBg",G(qe,d?S("palette-success-light"):g.success.light,.9)),B(g.Alert,"warningStandardBg",G(qe,d?S("palette-warning-light"):g.warning.light,.9)),B(g.Alert,"errorIconColor",Y("palette-error-main")),B(g.Alert,"infoIconColor",Y("palette-info-main")),B(g.Alert,"successIconColor",Y("palette-success-main")),B(g.Alert,"warningIconColor",Y("palette-warning-main")),B(g.AppBar,"defaultBg",Y("palette-grey-100")),B(g.Avatar,"defaultBg",Y("palette-grey-400")),B(g.Button,"inheritContainedBg",Y("palette-grey-300")),B(g.Button,"inheritContainedHoverBg",Y("palette-grey-A100")),B(g.Chip,"defaultBorder",Y("palette-grey-400")),B(g.Chip,"defaultAvatarColor",Y("palette-grey-700")),B(g.Chip,"defaultIconColor",Y("palette-grey-700")),B(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),B(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),B(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),B(g.LinearProgress,"primaryBg",G(qe,d?S("palette-primary-main"):g.primary.main,.62)),B(g.LinearProgress,"secondaryBg",G(qe,d?S("palette-secondary-main"):g.secondary.main,.62)),B(g.LinearProgress,"errorBg",G(qe,d?S("palette-error-main"):g.error.main,.62)),B(g.LinearProgress,"infoBg",G(qe,d?S("palette-info-main"):g.info.main,.62)),B(g.LinearProgress,"successBg",G(qe,d?S("palette-success-main"):g.success.main,.62)),B(g.LinearProgress,"warningBg",G(qe,d?S("palette-warning-light"):g.warning.main,.62)),B(g.Skeleton,"bg",P?G(el,d?S("palette-text-primary"):g.text.primary,.11):`rgba(${Y("palette-text-primaryChannel")} / 0.11)`),B(g.Slider,"primaryTrack",G(qe,d?S("palette-primary-main"):g.primary.main,.62)),B(g.Slider,"secondaryTrack",G(qe,d?S("palette-secondary-main"):g.secondary.main,.62)),B(g.Slider,"errorTrack",G(qe,d?S("palette-error-main"):g.error.main,.62)),B(g.Slider,"infoTrack",G(qe,d?S("palette-info-main"):g.info.main,.62)),B(g.Slider,"successTrack",G(qe,d?S("palette-success-main"):g.success.main,.62)),B(g.Slider,"warningTrack",G(qe,d?S("palette-warning-main"):g.warning.main,.62));const le=P?G(He,d?S("palette-background-default"):g.background.default,.6825):Ts(g.background.default,.8);B(g.SnackbarContent,"bg",le),B(g.SnackbarContent,"color",Ua(()=>P?$o.text.primary:g.getContrastText(le))),B(g.SpeedDialAction,"fabHoverBg",Ts(g.background.paper,.15)),B(g.StepConnector,"border",Y("palette-grey-400")),B(g.StepContent,"border",Y("palette-grey-400")),B(g.Switch,"defaultColor",Y("palette-common-white")),B(g.Switch,"defaultDisabledColor",Y("palette-grey-100")),B(g.Switch,"primaryDisabledColor",G(qe,d?S("palette-primary-main"):g.primary.main,.62)),B(g.Switch,"secondaryDisabledColor",G(qe,d?S("palette-secondary-main"):g.secondary.main,.62)),B(g.Switch,"errorDisabledColor",G(qe,d?S("palette-error-main"):g.error.main,.62)),B(g.Switch,"infoDisabledColor",G(qe,d?S("palette-info-main"):g.info.main,.62)),B(g.Switch,"successDisabledColor",G(qe,d?S("palette-success-main"):g.success.main,.62)),B(g.Switch,"warningDisabledColor",G(qe,d?S("palette-warning-main"):g.warning.main,.62)),B(g.TableCell,"border",G(qe,el(d?S("palette-divider"):g.divider,1),.88)),B(g.Tooltip,"bg",G(el,d?S("palette-grey-700"):g.grey[700],.92))}if(g.mode==="dark"){B(g.Alert,"errorColor",G(qe,d?S("palette-error-light"):g.error.light,.6)),B(g.Alert,"infoColor",G(qe,d?S("palette-info-light"):g.info.light,.6)),B(g.Alert,"successColor",G(qe,d?S("palette-success-light"):g.success.light,.6)),B(g.Alert,"warningColor",G(qe,d?S("palette-warning-light"):g.warning.light,.6)),B(g.Alert,"errorFilledBg",Y("palette-error-dark")),B(g.Alert,"infoFilledBg",Y("palette-info-dark")),B(g.Alert,"successFilledBg",Y("palette-success-dark")),B(g.Alert,"warningFilledBg",Y("palette-warning-dark")),B(g.Alert,"errorFilledColor",Ua(()=>g.getContrastText(g.error.dark))),B(g.Alert,"infoFilledColor",Ua(()=>g.getContrastText(g.info.dark))),B(g.Alert,"successFilledColor",Ua(()=>g.getContrastText(g.success.dark))),B(g.Alert,"warningFilledColor",Ua(()=>g.getContrastText(g.warning.dark))),B(g.Alert,"errorStandardBg",G(He,d?S("palette-error-light"):g.error.light,.9)),B(g.Alert,"infoStandardBg",G(He,d?S("palette-info-light"):g.info.light,.9)),B(g.Alert,"successStandardBg",G(He,d?S("palette-success-light"):g.success.light,.9)),B(g.Alert,"warningStandardBg",G(He,d?S("palette-warning-light"):g.warning.light,.9)),B(g.Alert,"errorIconColor",Y("palette-error-main")),B(g.Alert,"infoIconColor",Y("palette-info-main")),B(g.Alert,"successIconColor",Y("palette-success-main")),B(g.Alert,"warningIconColor",Y("palette-warning-main")),B(g.AppBar,"defaultBg",Y("palette-grey-900")),B(g.AppBar,"darkBg",Y("palette-background-paper")),B(g.AppBar,"darkColor",Y("palette-text-primary")),B(g.Avatar,"defaultBg",Y("palette-grey-600")),B(g.Button,"inheritContainedBg",Y("palette-grey-800")),B(g.Button,"inheritContainedHoverBg",Y("palette-grey-700")),B(g.Chip,"defaultBorder",Y("palette-grey-700")),B(g.Chip,"defaultAvatarColor",Y("palette-grey-300")),B(g.Chip,"defaultIconColor",Y("palette-grey-300")),B(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),B(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),B(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),B(g.LinearProgress,"primaryBg",G(He,d?S("palette-primary-main"):g.primary.main,.5)),B(g.LinearProgress,"secondaryBg",G(He,d?S("palette-secondary-main"):g.secondary.main,.5)),B(g.LinearProgress,"errorBg",G(He,d?S("palette-error-main"):g.error.main,.5)),B(g.LinearProgress,"infoBg",G(He,d?S("palette-info-main"):g.info.main,.5)),B(g.LinearProgress,"successBg",G(He,d?S("palette-success-main"):g.success.main,.5)),B(g.LinearProgress,"warningBg",G(He,d?S("palette-warning-main"):g.warning.main,.5)),B(g.Skeleton,"bg",P?G(el,d?S("palette-text-primary"):g.text.primary,.13):`rgba(${Y("palette-text-primaryChannel")} / 0.13)`),B(g.Slider,"primaryTrack",G(He,d?S("palette-primary-main"):g.primary.main,.5)),B(g.Slider,"secondaryTrack",G(He,d?S("palette-secondary-main"):g.secondary.main,.5)),B(g.Slider,"errorTrack",G(He,d?S("palette-error-main"):g.error.main,.5)),B(g.Slider,"infoTrack",G(He,d?S("palette-info-main"):g.info.main,.5)),B(g.Slider,"successTrack",G(He,d?S("palette-success-main"):g.success.main,.5)),B(g.Slider,"warningTrack",G(He,d?S("palette-warning-light"):g.warning.main,.5));const le=P?G(qe,d?S("palette-background-default"):g.background.default,.985):Ts(g.background.default,.98);B(g.SnackbarContent,"bg",le),B(g.SnackbarContent,"color",Ua(()=>P?km.text.primary:g.getContrastText(le))),B(g.SpeedDialAction,"fabHoverBg",Ts(g.background.paper,.15)),B(g.StepConnector,"border",Y("palette-grey-600")),B(g.StepContent,"border",Y("palette-grey-600")),B(g.Switch,"defaultColor",Y("palette-grey-300")),B(g.Switch,"defaultDisabledColor",Y("palette-grey-600")),B(g.Switch,"primaryDisabledColor",G(He,d?S("palette-primary-main"):g.primary.main,.55)),B(g.Switch,"secondaryDisabledColor",G(He,d?S("palette-secondary-main"):g.secondary.main,.55)),B(g.Switch,"errorDisabledColor",G(He,d?S("palette-error-main"):g.error.main,.55)),B(g.Switch,"infoDisabledColor",G(He,d?S("palette-info-main"):g.info.main,.55)),B(g.Switch,"successDisabledColor",G(He,d?S("palette-success-main"):g.success.main,.55)),B(g.Switch,"warningDisabledColor",G(He,d?S("palette-warning-light"):g.warning.main,.55)),B(g.TableCell,"border",G(He,el(d?S("palette-divider"):g.divider,1),.68)),B(g.Tooltip,"bg",G(el,d?S("palette-grey-700"):g.grey[700],.92))}Ka(g.background,"default"),Ka(g.background,"paper"),Ka(g.common,"background"),Ka(g.common,"onBackground"),Ka(g,"divider"),Object.keys(g).forEach(le=>{const k=g[le];le!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&B(g[le],"mainChannel",Kr(Wr(k.main))),k.light&&B(g[le],"lightChannel",Kr(Wr(k.light))),k.dark&&B(g[le],"darkChannel",Kr(Wr(k.dark))),k.contrastText&&B(g[le],"contrastTextChannel",Kr(Wr(k.contrastText))),le==="text"&&(Ka(g[le],"primary"),Ka(g[le],"secondary")),le==="action"&&(k.active&&Ka(g[le],"active"),k.selected&&Ka(g[le],"selected")))})}),Q=l.reduce((pe,g)=>Pt(pe,g),Q);const ae={prefix:f,disableCssColorScheme:o,shouldSkipGeneratingVar:m,getSelector:TS(Q),enableContrastVars:d},{vars:xe,generateThemeVars:Ue,generateStyleSheets:We}=Kx(Q,ae);return Q.vars=xe,Object.entries(Q.colorSchemes[Q.defaultColorScheme]).forEach(([pe,g])=>{Q[pe]=g}),Q.generateThemeVars=Ue,Q.generateStyleSheets=We,Q.generateSpacing=function(){return bm(T.spacing,Ho(this))},Q.getColorSchemeSelector=Jx(p),Q.spacing=Q.generateSpacing(),Q.shouldSkipGeneratingVar=m,Q.unstable_sxConfig={...xs,...T==null?void 0:T.unstable_sxConfig},Q.unstable_sx=function(g){return jl({sx:g,theme:this})},Q.toRuntimeSource=Bm,Q}function qm(n,l,i){n.colorSchemes&&i&&(n.colorSchemes[l]={...i!==!0&&i,palette:Ko({...i===!0?{}:i.palette,mode:l})})}function kS(n={},...l){const{palette:i,cssVariables:s=!1,colorSchemes:o=i?void 0:{light:!0},defaultColorScheme:f=i==null?void 0:i.mode,...d}=n,m=f||"light",p=o==null?void 0:o[m],v={...o,...i?{[m]:{...typeof p!="boolean"&&p,palette:i}}:void 0};if(s===!1){if(!("colorSchemes"in n))return Jo(n,...l);let T=i;"palette"in n||v[m]&&(v[m]!==!0?T=v[m].palette:m==="dark"&&(T={mode:"dark"}));const w=Jo({...n,palette:T},...l);return w.defaultColorScheme=m,w.colorSchemes=v,w.palette.mode==="light"&&(w.colorSchemes.light={...v.light!==!0&&v.light,palette:w.palette},qm(w,"dark",v.dark)),w.palette.mode==="dark"&&(w.colorSchemes.dark={...v.dark!==!0&&v.dark,palette:w.palette},qm(w,"light",v.light)),w}return!i&&!("light"in v)&&m==="light"&&(v.light=!0),zS({...d,colorSchemes:v,defaultColorScheme:m,...typeof s!="boolean"&&s},...l)}function NS(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function MS(n){return parseFloat(n)}const DS=kS();function jS(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const RS=Nx({themeId:zb,defaultTheme:DS,rootShouldForwardProp:n=>jS(n)&&n!=="classes"}),US=Gx;function BS(n){return Yx(n)}function VS(n){return _m("MuiSkeleton",n)}Ex("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const LS=n=>{const{classes:l,variant:i,animation:s,hasChildren:o,width:f,height:d}=n;return Ob({root:["root",i,s,o&&"withChildren",o&&!f&&"fitContent",o&&!d&&"heightAuto"]},VS,l)},Wo=rm`
|
|
99
|
+
export default theme;`}function Vm(n){return typeof n=="number"?`${(n*100).toFixed(0)}%`:`calc((${n}) * 100%)`}const v_=n=>{if(!Number.isNaN(+n))return+n;const l=n.match(/\d*\.?\d+/g);if(!l)return 0;let i=0;for(let s=0;s<l.length;s+=1)i+=+l[s];return i};function b_(n){Object.assign(n,{alpha(l,i){const s=this||n;return s.colorSpace?`oklch(from ${l} l c h / ${typeof i=="string"?`calc(${i})`:i})`:s.vars?`rgba(${l.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof i=="string"?`calc(${i})`:i})`:Cm(l,v_(i))},lighten(l,i){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${l}, #fff ${Vm(i)})`:As(l,i)},darken(l,i){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${l}, #000 ${Vm(i)})`:ws(l,i)}})}function Jo(n={},...l){const{breakpoints:i,mixins:s={},spacing:o,palette:f={},transitions:d={},typography:m={},shape:g,colorSpace:v,...T}=n;if(n.vars&&n.generateThemeVars===void 0)throw new Error(Wn(20));const w=Ko({...f,colorSpace:v}),R=xm(n);let _=Pt(R,{mixins:r_(R.breakpoints,s),palette:w,shadows:f_.slice(),typography:s_(w,m),transitions:y_(d),zIndex:{...p_}});return _=Pt(_,T),_=l.reduce((U,A)=>Pt(U,A),_),_.unstable_sxConfig={...xs,...T==null?void 0:T.unstable_sxConfig},_.unstable_sx=function(A){return jl({sx:A,theme:this})},_.toRuntimeSource=Bm,b_(_),_}function x_(n){let l;return n<1?l=5.11916*n**2:l=4.5*Math.log(n+1)+2,Math.round(l*10)/1e3}const __=[...Array(25)].map((n,l)=>{if(l===0)return"none";const i=x_(l);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function Lm(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function Hm(n){return n==="dark"?__:[]}function S_(n){const{palette:l={mode:"light"},opacity:i,overlays:s,colorSpace:o,...f}=n,d=Ko({...l,colorSpace:o});return{palette:d,opacity:{...Lm(d.mode),...i},overlays:s||Hm(d.mode),...f}}function w_(n){var l;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((l=n[1])!=null&&l.match(/(mode|contrastThreshold|tonalOffset)/))}const A_=n=>[...[...Array(25)].map((l,i)=>`--${n?`${n}-`:""}overlays-${i}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],T_=n=>(l,i)=>{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===l){if(l==="dark"){const d={};return A_(n.cssVarPrefix).forEach(m=>{d[m]=i[m],delete i[m]}),f==="media"?{[s]:i,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",l)]:d,[`${s}, ${f.replace("%s",l)}`]:i}:{[s]:{...i,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(l))}`}else if(l){if(f==="media")return{[`@media (prefers-color-scheme: ${String(l)})`]:{[s]:i}};if(f)return f.replace("%s",String(l))}return s};function C_(n,l){l.forEach(i=>{n[i]||(n[i]={})})}function B(n,l,i){!n[l]&&i&&(n[l]=i)}function Wr(n){return typeof n!="string"||!n.startsWith("hsl")?n:Tm(n)}function Ka(n,l){`${l}Channel`in n||(n[`${l}Channel`]=Kr(Wr(n[l])))}function E_(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const Ua=n=>{try{return n()}catch{}},O_=(n="mui")=>Qx(n);function Fo(n,l,i,s,o){if(!i)return;i=i===!0?{}:i;const f=o==="dark"?"dark":"light";if(!s){l[o]=S_({...i,palette:{mode:f,...i==null?void 0:i.palette},colorSpace:n});return}const{palette:d,...m}=Jo({...s,palette:{mode:f,...i==null?void 0:i.palette},colorSpace:n});return l[o]={...i,palette:d,opacity:{...Lm(f),...i==null?void 0:i.opacity},overlays:(i==null?void 0:i.overlays)||Hm(f)},m}function z_(n={},...l){const{colorSchemes:i={light:!0},defaultColorScheme:s,disableCssColorScheme:o=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:m=w_,colorSchemeSelector:g=i.light&&i.dark?"media":void 0,rootSelector:v=":root",...T}=n,w=Object.keys(i)[0],R=s||(i.light&&w!=="light"?"light":w),_=O_(f),{[R]:U,light:A,dark:Z,...I}=i,$={...I};let te=U;if((R==="dark"&&!("dark"in i)||R==="light"&&!("light"in i))&&(te=!0),!te)throw new Error(Wn(21,R));let P;d&&(P="oklch");const L=Fo(P,$,te,T,R);A&&!$.light&&Fo(P,$,A,void 0,"light"),Z&&!$.dark&&Fo(P,$,Z,void 0,"dark");let Q={defaultColorScheme:R,...L,cssVarPrefix:f,colorSchemeSelector:g,rootSelector:v,getCssVar:_,colorSchemes:$,font:{...l_(L.typography),...L.font},spacing:E_(T.spacing)};Object.keys(Q.colorSchemes).forEach(ge=>{const p=Q.colorSchemes[ge].palette,Y=le=>{const k=le.split("-"),X=k[1],re=k[2];return _(le,p[X][re])};p.mode==="light"&&(B(p.common,"background","#fff"),B(p.common,"onBackground","#000")),p.mode==="dark"&&(B(p.common,"background","#000"),B(p.common,"onBackground","#fff"));function G(le,k,X){if(P){let re;return le===el&&(re=`transparent ${((1-X)*100).toFixed(0)}%`),le===He&&(re=`#000 ${(X*100).toFixed(0)}%`),le===qe&&(re=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${P}, ${k}, ${re})`}return le(k,X)}if(C_(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){B(p.Alert,"errorColor",G(He,d?_("palette-error-light"):p.error.light,.6)),B(p.Alert,"infoColor",G(He,d?_("palette-info-light"):p.info.light,.6)),B(p.Alert,"successColor",G(He,d?_("palette-success-light"):p.success.light,.6)),B(p.Alert,"warningColor",G(He,d?_("palette-warning-light"):p.warning.light,.6)),B(p.Alert,"errorFilledBg",Y("palette-error-main")),B(p.Alert,"infoFilledBg",Y("palette-info-main")),B(p.Alert,"successFilledBg",Y("palette-success-main")),B(p.Alert,"warningFilledBg",Y("palette-warning-main")),B(p.Alert,"errorFilledColor",Ua(()=>p.getContrastText(p.error.main))),B(p.Alert,"infoFilledColor",Ua(()=>p.getContrastText(p.info.main))),B(p.Alert,"successFilledColor",Ua(()=>p.getContrastText(p.success.main))),B(p.Alert,"warningFilledColor",Ua(()=>p.getContrastText(p.warning.main))),B(p.Alert,"errorStandardBg",G(qe,d?_("palette-error-light"):p.error.light,.9)),B(p.Alert,"infoStandardBg",G(qe,d?_("palette-info-light"):p.info.light,.9)),B(p.Alert,"successStandardBg",G(qe,d?_("palette-success-light"):p.success.light,.9)),B(p.Alert,"warningStandardBg",G(qe,d?_("palette-warning-light"):p.warning.light,.9)),B(p.Alert,"errorIconColor",Y("palette-error-main")),B(p.Alert,"infoIconColor",Y("palette-info-main")),B(p.Alert,"successIconColor",Y("palette-success-main")),B(p.Alert,"warningIconColor",Y("palette-warning-main")),B(p.AppBar,"defaultBg",Y("palette-grey-100")),B(p.Avatar,"defaultBg",Y("palette-grey-400")),B(p.Button,"inheritContainedBg",Y("palette-grey-300")),B(p.Button,"inheritContainedHoverBg",Y("palette-grey-A100")),B(p.Chip,"defaultBorder",Y("palette-grey-400")),B(p.Chip,"defaultAvatarColor",Y("palette-grey-700")),B(p.Chip,"defaultIconColor",Y("palette-grey-700")),B(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),B(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),B(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),B(p.LinearProgress,"primaryBg",G(qe,d?_("palette-primary-main"):p.primary.main,.62)),B(p.LinearProgress,"secondaryBg",G(qe,d?_("palette-secondary-main"):p.secondary.main,.62)),B(p.LinearProgress,"errorBg",G(qe,d?_("palette-error-main"):p.error.main,.62)),B(p.LinearProgress,"infoBg",G(qe,d?_("palette-info-main"):p.info.main,.62)),B(p.LinearProgress,"successBg",G(qe,d?_("palette-success-main"):p.success.main,.62)),B(p.LinearProgress,"warningBg",G(qe,d?_("palette-warning-light"):p.warning.main,.62)),B(p.Skeleton,"bg",P?G(el,d?_("palette-text-primary"):p.text.primary,.11):`rgba(${Y("palette-text-primaryChannel")} / 0.11)`),B(p.Slider,"primaryTrack",G(qe,d?_("palette-primary-main"):p.primary.main,.62)),B(p.Slider,"secondaryTrack",G(qe,d?_("palette-secondary-main"):p.secondary.main,.62)),B(p.Slider,"errorTrack",G(qe,d?_("palette-error-main"):p.error.main,.62)),B(p.Slider,"infoTrack",G(qe,d?_("palette-info-main"):p.info.main,.62)),B(p.Slider,"successTrack",G(qe,d?_("palette-success-main"):p.success.main,.62)),B(p.Slider,"warningTrack",G(qe,d?_("palette-warning-main"):p.warning.main,.62));const le=P?G(He,d?_("palette-background-default"):p.background.default,.6825):Ts(p.background.default,.8);B(p.SnackbarContent,"bg",le),B(p.SnackbarContent,"color",Ua(()=>P?$o.text.primary:p.getContrastText(le))),B(p.SpeedDialAction,"fabHoverBg",Ts(p.background.paper,.15)),B(p.StepConnector,"border",Y("palette-grey-400")),B(p.StepContent,"border",Y("palette-grey-400")),B(p.Switch,"defaultColor",Y("palette-common-white")),B(p.Switch,"defaultDisabledColor",Y("palette-grey-100")),B(p.Switch,"primaryDisabledColor",G(qe,d?_("palette-primary-main"):p.primary.main,.62)),B(p.Switch,"secondaryDisabledColor",G(qe,d?_("palette-secondary-main"):p.secondary.main,.62)),B(p.Switch,"errorDisabledColor",G(qe,d?_("palette-error-main"):p.error.main,.62)),B(p.Switch,"infoDisabledColor",G(qe,d?_("palette-info-main"):p.info.main,.62)),B(p.Switch,"successDisabledColor",G(qe,d?_("palette-success-main"):p.success.main,.62)),B(p.Switch,"warningDisabledColor",G(qe,d?_("palette-warning-main"):p.warning.main,.62)),B(p.TableCell,"border",G(qe,el(d?_("palette-divider"):p.divider,1),.88)),B(p.Tooltip,"bg",G(el,d?_("palette-grey-700"):p.grey[700],.92))}if(p.mode==="dark"){B(p.Alert,"errorColor",G(qe,d?_("palette-error-light"):p.error.light,.6)),B(p.Alert,"infoColor",G(qe,d?_("palette-info-light"):p.info.light,.6)),B(p.Alert,"successColor",G(qe,d?_("palette-success-light"):p.success.light,.6)),B(p.Alert,"warningColor",G(qe,d?_("palette-warning-light"):p.warning.light,.6)),B(p.Alert,"errorFilledBg",Y("palette-error-dark")),B(p.Alert,"infoFilledBg",Y("palette-info-dark")),B(p.Alert,"successFilledBg",Y("palette-success-dark")),B(p.Alert,"warningFilledBg",Y("palette-warning-dark")),B(p.Alert,"errorFilledColor",Ua(()=>p.getContrastText(p.error.dark))),B(p.Alert,"infoFilledColor",Ua(()=>p.getContrastText(p.info.dark))),B(p.Alert,"successFilledColor",Ua(()=>p.getContrastText(p.success.dark))),B(p.Alert,"warningFilledColor",Ua(()=>p.getContrastText(p.warning.dark))),B(p.Alert,"errorStandardBg",G(He,d?_("palette-error-light"):p.error.light,.9)),B(p.Alert,"infoStandardBg",G(He,d?_("palette-info-light"):p.info.light,.9)),B(p.Alert,"successStandardBg",G(He,d?_("palette-success-light"):p.success.light,.9)),B(p.Alert,"warningStandardBg",G(He,d?_("palette-warning-light"):p.warning.light,.9)),B(p.Alert,"errorIconColor",Y("palette-error-main")),B(p.Alert,"infoIconColor",Y("palette-info-main")),B(p.Alert,"successIconColor",Y("palette-success-main")),B(p.Alert,"warningIconColor",Y("palette-warning-main")),B(p.AppBar,"defaultBg",Y("palette-grey-900")),B(p.AppBar,"darkBg",Y("palette-background-paper")),B(p.AppBar,"darkColor",Y("palette-text-primary")),B(p.Avatar,"defaultBg",Y("palette-grey-600")),B(p.Button,"inheritContainedBg",Y("palette-grey-800")),B(p.Button,"inheritContainedHoverBg",Y("palette-grey-700")),B(p.Chip,"defaultBorder",Y("palette-grey-700")),B(p.Chip,"defaultAvatarColor",Y("palette-grey-300")),B(p.Chip,"defaultIconColor",Y("palette-grey-300")),B(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),B(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),B(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),B(p.LinearProgress,"primaryBg",G(He,d?_("palette-primary-main"):p.primary.main,.5)),B(p.LinearProgress,"secondaryBg",G(He,d?_("palette-secondary-main"):p.secondary.main,.5)),B(p.LinearProgress,"errorBg",G(He,d?_("palette-error-main"):p.error.main,.5)),B(p.LinearProgress,"infoBg",G(He,d?_("palette-info-main"):p.info.main,.5)),B(p.LinearProgress,"successBg",G(He,d?_("palette-success-main"):p.success.main,.5)),B(p.LinearProgress,"warningBg",G(He,d?_("palette-warning-main"):p.warning.main,.5)),B(p.Skeleton,"bg",P?G(el,d?_("palette-text-primary"):p.text.primary,.13):`rgba(${Y("palette-text-primaryChannel")} / 0.13)`),B(p.Slider,"primaryTrack",G(He,d?_("palette-primary-main"):p.primary.main,.5)),B(p.Slider,"secondaryTrack",G(He,d?_("palette-secondary-main"):p.secondary.main,.5)),B(p.Slider,"errorTrack",G(He,d?_("palette-error-main"):p.error.main,.5)),B(p.Slider,"infoTrack",G(He,d?_("palette-info-main"):p.info.main,.5)),B(p.Slider,"successTrack",G(He,d?_("palette-success-main"):p.success.main,.5)),B(p.Slider,"warningTrack",G(He,d?_("palette-warning-light"):p.warning.main,.5));const le=P?G(qe,d?_("palette-background-default"):p.background.default,.985):Ts(p.background.default,.98);B(p.SnackbarContent,"bg",le),B(p.SnackbarContent,"color",Ua(()=>P?km.text.primary:p.getContrastText(le))),B(p.SpeedDialAction,"fabHoverBg",Ts(p.background.paper,.15)),B(p.StepConnector,"border",Y("palette-grey-600")),B(p.StepContent,"border",Y("palette-grey-600")),B(p.Switch,"defaultColor",Y("palette-grey-300")),B(p.Switch,"defaultDisabledColor",Y("palette-grey-600")),B(p.Switch,"primaryDisabledColor",G(He,d?_("palette-primary-main"):p.primary.main,.55)),B(p.Switch,"secondaryDisabledColor",G(He,d?_("palette-secondary-main"):p.secondary.main,.55)),B(p.Switch,"errorDisabledColor",G(He,d?_("palette-error-main"):p.error.main,.55)),B(p.Switch,"infoDisabledColor",G(He,d?_("palette-info-main"):p.info.main,.55)),B(p.Switch,"successDisabledColor",G(He,d?_("palette-success-main"):p.success.main,.55)),B(p.Switch,"warningDisabledColor",G(He,d?_("palette-warning-light"):p.warning.main,.55)),B(p.TableCell,"border",G(He,el(d?_("palette-divider"):p.divider,1),.68)),B(p.Tooltip,"bg",G(el,d?_("palette-grey-700"):p.grey[700],.92))}Ka(p.background,"default"),Ka(p.background,"paper"),Ka(p.common,"background"),Ka(p.common,"onBackground"),Ka(p,"divider"),Object.keys(p).forEach(le=>{const k=p[le];le!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&B(p[le],"mainChannel",Kr(Wr(k.main))),k.light&&B(p[le],"lightChannel",Kr(Wr(k.light))),k.dark&&B(p[le],"darkChannel",Kr(Wr(k.dark))),k.contrastText&&B(p[le],"contrastTextChannel",Kr(Wr(k.contrastText))),le==="text"&&(Ka(p[le],"primary"),Ka(p[le],"secondary")),le==="action"&&(k.active&&Ka(p[le],"active"),k.selected&&Ka(p[le],"selected")))})}),Q=l.reduce((ge,p)=>Pt(ge,p),Q);const ae={prefix:f,disableCssColorScheme:o,shouldSkipGeneratingVar:m,getSelector:T_(Q),enableContrastVars:d},{vars:xe,generateThemeVars:Ue,generateStyleSheets:We}=Kx(Q,ae);return Q.vars=xe,Object.entries(Q.colorSchemes[Q.defaultColorScheme]).forEach(([ge,p])=>{Q[ge]=p}),Q.generateThemeVars=Ue,Q.generateStyleSheets=We,Q.generateSpacing=function(){return bm(T.spacing,Ho(this))},Q.getColorSchemeSelector=Jx(g),Q.spacing=Q.generateSpacing(),Q.shouldSkipGeneratingVar=m,Q.unstable_sxConfig={...xs,...T==null?void 0:T.unstable_sxConfig},Q.unstable_sx=function(p){return jl({sx:p,theme:this})},Q.toRuntimeSource=Bm,Q}function qm(n,l,i){n.colorSchemes&&i&&(n.colorSchemes[l]={...i!==!0&&i,palette:Ko({...i===!0?{}:i.palette,mode:l})})}function k_(n={},...l){const{palette:i,cssVariables:s=!1,colorSchemes:o=i?void 0:{light:!0},defaultColorScheme:f=i==null?void 0:i.mode,...d}=n,m=f||"light",g=o==null?void 0:o[m],v={...o,...i?{[m]:{...typeof g!="boolean"&&g,palette:i}}:void 0};if(s===!1){if(!("colorSchemes"in n))return Jo(n,...l);let T=i;"palette"in n||v[m]&&(v[m]!==!0?T=v[m].palette:m==="dark"&&(T={mode:"dark"}));const w=Jo({...n,palette:T},...l);return w.defaultColorScheme=m,w.colorSchemes=v,w.palette.mode==="light"&&(w.colorSchemes.light={...v.light!==!0&&v.light,palette:w.palette},qm(w,"dark",v.dark)),w.palette.mode==="dark"&&(w.colorSchemes.dark={...v.dark!==!0&&v.dark,palette:w.palette},qm(w,"light",v.light)),w}return!i&&!("light"in v)&&m==="light"&&(v.light=!0),z_({...d,colorSchemes:v,defaultColorScheme:m,...typeof s!="boolean"&&s},...l)}function N_(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function M_(n){return parseFloat(n)}const D_=k_();function j_(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const R_=Nx({themeId:zb,defaultTheme:D_,rootShouldForwardProp:n=>j_(n)&&n!=="classes"}),U_=Gx;function B_(n){return Yx(n)}function V_(n){return Sm("MuiSkeleton",n)}Ex("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const L_=n=>{const{classes:l,variant:i,animation:s,hasChildren:o,width:f,height:d}=n;return Ob({root:["root",i,s,o&&"withChildren",o&&!f&&"fitContent",o&&!d&&"heightAuto"]},V_,l)},Wo=rm`
|
|
100
100
|
0% {
|
|
101
101
|
opacity: 1;
|
|
102
102
|
}
|
|
@@ -121,15 +121,15 @@ export default theme;`}function Vm(n){return typeof n=="number"?`${(n*100).toFix
|
|
|
121
121
|
100% {
|
|
122
122
|
transform: translateX(100%);
|
|
123
123
|
}
|
|
124
|
-
`,
|
|
124
|
+
`,H_=typeof Wo!="string"?Ro`
|
|
125
125
|
animation: ${Wo} 2s ease-in-out 0.5s infinite;
|
|
126
|
-
`:null,
|
|
126
|
+
`:null,q_=typeof Io!="string"?Ro`
|
|
127
127
|
&::after {
|
|
128
128
|
animation: ${Io} 2s linear 0.5s infinite;
|
|
129
129
|
}
|
|
130
|
-
`:null,
|
|
130
|
+
`:null,Z_=R_("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,l)=>{const{ownerState:i}=n;return[l.root,l[i.variant],i.animation!==!1&&l[i.animation],i.hasChildren&&l.withChildren,i.hasChildren&&!i.width&&l.fitContent,i.hasChildren&&!i.height&&l.heightAuto]}})(U_(({theme:n})=>{const l=N_(n.shape.borderRadius)||"px",i=M_(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:`${i}${l}/${Math.round(i/.6*10)/10}${l}`,"&: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:H_||{animation:`${Wo} 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(
|
|
131
131
|
90deg,
|
|
132
132
|
transparent,
|
|
133
133
|
${(n.vars||n).palette.action.hover},
|
|
134
134
|
transparent
|
|
135
|
-
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:qS||{"&::after":{animation:`${Io} 2s linear 0.5s infinite`}}}]}})),YS=st.forwardRef(function(l,i){const s=BS({props:l,name:"MuiSkeleton"}),{animation:o="pulse",className:f,component:d="span",height:m,style:p,variant:v="text",width:T,...w}=s,R={...s,animation:o,component:d,variant:v,hasChildren:!!w.children},S=LS(R);return j.jsx(ZS,{as:d,ref:i,className:Dh(S.root,f),ownerState:R,...w,style:{width:T,height:m,...p}})}),GS=n=>Number(String(n).replace(",",".")),Po={santo_remedio:{client_id:Na("VITE_KEYCLOAK_CLIENTID_SANTOREMEDIO"),client_secret:Na("VITE_KEYCLOAK_SECRET_SANTOREMEDIO"),client_realm:Na("VITE_KEYCLOAK_REALM_SANTOREMEDIO")}},QS=async({tenant_id:n})=>{var f,d,m;const l=new URLSearchParams({grant_type:Na("VITE_KEYCLOAK_GRANT_TYPE")||"",client_id:((f=Po[n])==null?void 0:f.client_id)||"",client_secret:((d=Po[n])==null?void 0:d.client_secret)||"",scope:Na("VITE_KEYCLOAK_SCOPE")||""}),s=await(await fetch(`${Na("VITE_KEYCLOAK_BASEURL")}/realms/${(m=Po[n])==null?void 0:m.client_realm}/protocol/openid-connect/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},credentials:"include",body:l.toString()})).json();if(!s.access_token)throw new Error("Authorization failed");return jr.set("pbm-token",s.access_token,{secure:!0,sameSite:"Strict",expires:s.expires_in/86400}),s},XS=async({PRODUCT_EAN:n})=>{const l=Na("VITE_API_URL"),i=jr.get("pbm-token");if(!i)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${l}/products/ean/${n}`,{method:"GET",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"}})).json();if(!o.success)throw new Error(o.message||"Failed to fetch authorization");return o},$S=async n=>{const l=Na("VITE_API_URL"),i=jr.get("pbm-token");if(!i)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${l}/products/program-verification/${n}`,{method:"GET",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"}})).json();if(!o.success)throw new Error(o.message||"Failed to fetch authorization");return o},KS={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0"},JS=Fu(n=>({...KS,setTheme:l=>n(i=>({...i,...l}))}));function Zm(n){return Wu(JS,(l=>l))}const FS=n=>{const{setTargetProduct:l,targetProduct:i,setIsAuthenticatedShopper:s,setCustomLoginUrl:o}=Ft(),{setTheme:f}=Zm(),[d,m]=he.useState(!1),[p,v]=he.useState(!1),[T,w]=he.useState(!0),R=async()=>{try{const A=await QS({tenant_id:n.tenant_id});return A.access_token||console.error("PBMLOG: Authorization failed!"),A.access_token!==void 0}catch(A){return console.error("Error fetching authorization:",A),!1}},S=async()=>{if(!n.eanProduct)return console.error("PBMLOG: Ean is not defined."),w(!1),!1;try{const A=await $S(n.eanProduct);if(A.success){const Z=A.data,I=Z.ean==n.eanProduct&&Z.showModule;return v(I),I}}catch(A){console.error(A)}return!1},U=async()=>{try{if(!n.eanProduct){console.error("PBMLOG: Ean is not defined."),w(!1);return}const A=await XS({PRODUCT_EAN:n.eanProduct});if(A.success&&A.data){w(!0);const{pbm:Z,sku:I,...$}=A.data;l({...i,...$,productId:Number($.productId),informativeMessage:Z.informativeMessage??"",discountMax:Z.discountMax??0,industryLogo:Z.imageLink??void 0,ean:n.eanProduct}),s(n.isAuthenticatedShopper),o(n.customLoginUrl)}else w(!1)}catch(A){console.error(A),w(!1)}};return he.useEffect(()=>{let A=!0;return(async()=>{n.theme&&f(n.theme),!(!await R()||!A||!await S()||!A)&&(await U(),A&&m(!0))})(),()=>{A=!1}},[n.eanProduct,n.tenant_id]),{IsReady:d,IsValid:p,EanProductExist:T}};function WS(){const[n,l]=he.useState(!1),{setState:i}=Ft(),{resetModal:s,modal:o}=Lr(),f=o.open&&o.id==="iframe_pbm";he.useEffect(()=>{f&&l(!1)},[f,o.url]);const d=()=>{o.url&&window.open(o.url,"_blank","noopener,noreferrer")},m=()=>{i("isEmpty"),s()};if(o.url)return j.jsxs("main",{className:Ht("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:[j.jsx("div",{className:"bg-black/40 inset-0 absolute backdrop-blur-sm",onClick:m}),j.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:[j.jsx(oa,{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"}),j.jsx(oa,{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"})]}),j.jsx("div",{className:"w-[90%] md:w-4/5 h-[60vh] bg-zinc-900 z-10 overflow-hidden relative shadow-2xl",children:n?j.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center p-8 text-center bg-zinc-900",children:[j.jsx("div",{className:"bg-yellow-500/10 p-4 rounded-full mb-4 animate-pulse",children:j.jsx(Ch,{size:48,className:"text-yellow-500"})}),j.jsx($n,{textColor:"white",textSize:"20px",textAlign:"center",className:"mb-2",children:"Não foi possível carregar o conteúdo"}),j.jsx(Kn,{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."}),j.jsxs(oa,{onClick:d,className:"flex items-center gap-2 w-auto px-8 h-12 shadow-xl shadow-emerald-500/20",children:[j.jsx(Th,{size:18}),"Abrir em nova janela"]})]}):j.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:()=>l(!0)})}),j.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:[j.jsxs("div",{className:"flex items-center gap-2",children:[j.jsx(Ch,{size:18,className:"text-yellow-500 shrink-0"}),j.jsxs(Kn,{textColor:"white",className:"text-[10px] md:text-xs",children:[j.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."]})]}),j.jsxs("button",{onClick:d,className:"text-white/60 hover:text-white text-[11px] underline flex items-center gap-1 transition-colors cursor-pointer",children:[j.jsx(Th,{size:14})," Abrir em nova aba"]})]})]})}function IS(n){const{state:l}=Ft(),{IsReady:i,EanProductExist:s,IsValid:o}=FS(n),{setErrorMessage:f}=_o(),d=Zm(),[m,p]=he.useTransition(),v=GS(n.originalProductPrice);if(o)return i?s?j.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:[j.jsxs(Pu,{variant:"main",children:[j.jsx(Wp,{originalProductPrice:v||0}),j.jsx(Pu,{variant:"simple",children:m?j.jsx(Oh,{}):j.jsxs(j.Fragment,{children:[l==="isEmpty"&&j.jsx(pb,{startTransition:p}),l==="isInvalid"&&j.jsx(wb,{}),l==="isRegistered"&&j.jsx(Ab,{}),(l==="isActivated"||l==="isPreview")&&j.jsx(_b,{}),l==="isError"&&j.jsx(Nh,{})]})}),j.jsx(ev,{})]}),j.jsx(Eb,{ID:"ShopperIsNotAuthenticated"}),j.jsx(WS,{})]}):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),j.jsx("div",{id:"pbm-library-root",children:j.jsx(Nh,{})})):j.jsx(YS,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358})}const PS='/*! 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-ease: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-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-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-gray-700:oklch(37.3% .034 259.733);--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;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--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{.\\@container{container-type:inline-size}.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-6{margin-bottom:calc(var(--spacing) * 6)}.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{width:calc(var(--spacing) * 1)}.w-1\\/5{width:20%}.w-3xs{width:var(--container-3xs)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-8{width:calc(var(--spacing) * 8)}.w-11{width:calc(var(--spacing) * 11)}.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{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.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}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.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{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.rounded-ss-2xl{border-start-start-radius:var(--radius-2xl)}.rounded-e-lg{border-start-end-radius:var(--radius-lg);border-end-end-radius:var(--radius-lg)}.rounded-se-2xl{border-start-end-radius:var(--radius-2xl)}.rounded-ee-2xl{border-end-end-radius:var(--radius-2xl)}.rounded-es-2xl{border-end-start-radius:var(--radius-2xl)}.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-2{border-style:var(--tw-border-style);border-width:2px}.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-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.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-100{border-color:var(--color-gray-100)}.border-gray-300{border-color:var(--color-gray-300)}.border-white{border-color:var(--color-white)}.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-yellow-500{border-color:var(--color-yellow-500)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-zinc-400{border-color:var(--color-zinc-400)}.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)}}.border-t-gray-700{border-top-color:var(--color-gray-700)}.bg-black{background-color:var(--color-black)}.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{background-color:var(--color-yellow-500)}.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{background-color:var(--color-zinc-300)}.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-800{background-color:var(--color-zinc-800)}.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-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0{padding-block:calc(var(--spacing) * 0)}.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-red-500{color:var(--color-red-500)}.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)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.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{--tw-shadow-color:oklch(69.6% .17 162.48)}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-500{--tw-shadow-color:color-mix(in oklab, var(--color-emerald-500) var(--tw-shadow-alpha), transparent)}}.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)}.blur{--tw-blur:blur(8px);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,)}.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{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.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-ease{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=Fp();class e2 extends HTMLElement{constructor(){super();yd(this,"root",null);yd(this,"props",{originalProductPrice:0,tenant_id:"",eanProduct:"",isAuthenticatedShopper:!1,customLoginUrl:"/login"});this.attachShadow({mode:"open"})}static get observedAttributes(){return["originalproductprice","clientid","eanproduct","isauthenticatedshopper","customloginurl","theme"]}updatePropsFromAttributes(){const i=this.getAttribute("originalproductprice"),s=this.getAttribute("tenant_id"),o=this.getAttribute("eanproduct"),f=this.getAttribute("isauthenticatedshopper"),d=this.getAttribute("customloginurl"),m=this.getAttribute("theme");if(f!==null&&(this.props.isAuthenticatedShopper=f==="true"),d!==null&&(this.props.customLoginUrl=d===""?"/login":d),i!==null&&(this.props.originalProductPrice=i),s!==null&&(this.props.tenant_id=s),o!==null&&(this.props.eanProduct=o,o&&Qi.getState().setTargetProduct({ean:o,quantity:1})),m!==null)try{this.props.theme=JSON.parse(m)}catch(p){console.error("PBMLOG: Error parsing theme attribute -",p)}}connectedCallback(){this.updatePropsFromAttributes(),this.mount()}attributeChangedCallback(i,s,o){if(i==="originalproductprice"&&(this.props.originalProductPrice=parseFloat(o)),i==="tenant_id"&&(this.props.tenant_id=o),i==="eanproduct"&&(this.props.eanProduct=o,o&&Qi.getState().setTargetProduct({ean:o,quantity:1})),i==="isauthenticatedshopper"&&(this.props.isAuthenticatedShopper=o==="true"),i==="customloginurl"&&(this.props.customLoginUrl=o===""?"/login":o),i==="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 i=this.shadowRoot;if(!(!i&&(this.attachShadow({mode:"open"}),i=this.shadowRoot,!i))){if(!i.querySelector("#pbm-shadow-root")){const s=document.createElement("div");s.id="pbm-shadow-root";const o=document.createElement("style");o.textContent=PS,i.appendChild(o),i.appendChild(s),this.root=$p.createRoot(s)}this.root&&this.root.render(j.jsx(IS,{...this.props}))}}}customElements.define("pbm-component",e2)})(React,ReactDOM);
|
|
135
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:q_||{"&::after":{animation:`${Io} 2s linear 0.5s infinite`}}}]}})),Y_=st.forwardRef(function(l,i){const s=B_({props:l,name:"MuiSkeleton"}),{animation:o="pulse",className:f,component:d="span",height:m,style:g,variant:v="text",width:T,...w}=s,R={...s,animation:o,component:d,variant:v,hasChildren:!!w.children},_=L_(R);return j.jsx(Z_,{as:d,ref:i,className:Dh(_.root,f),ownerState:R,...w,style:{width:T,height:m,...g}})}),G_=n=>Number(String(n).replace(",",".")),Po={santo_remedio:{client_id:Na("VITE_KEYCLOAK_CLIENTID_SANTOREMEDIO"),client_secret:Na("VITE_KEYCLOAK_SECRET_SANTOREMEDIO"),client_realm:Na("VITE_KEYCLOAK_REALM_SANTOREMEDIO")}},Q_=async({tenant_id:n})=>{var f,d,m;const l=new URLSearchParams({grant_type:Na("VITE_KEYCLOAK_GRANT_TYPE")||"",client_id:((f=Po[n])==null?void 0:f.client_id)||"",client_secret:((d=Po[n])==null?void 0:d.client_secret)||"",scope:Na("VITE_KEYCLOAK_SCOPE")||""}),s=await(await fetch(`${Na("VITE_KEYCLOAK_BASEURL")}/realms/${(m=Po[n])==null?void 0:m.client_realm}/protocol/openid-connect/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},credentials:"include",body:l.toString()})).json();if(!s.access_token)throw new Error("Authorization failed");return jr.set("pbm-token",s.access_token,{secure:!0,sameSite:"Strict",expires:s.expires_in/86400}),s},X_=async({PRODUCT_EAN:n})=>{const l=Na("VITE_API_URL"),i=jr.get("pbm-token");if(!i)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${l}/products/ean/${n}`,{method:"GET",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"}})).json();if(!o.success)throw new Error(o.message||"Failed to fetch authorization");return o},$_=async n=>{const l=Na("VITE_API_URL"),i=jr.get("pbm-token");if(!i)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${l}/products/program-verification/${n}`,{method:"GET",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"}})).json();if(!o.success)throw new Error(o.message||"Failed to fetch authorization");return o},K_={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0"},J_=Fu(n=>({...K_,setTheme:l=>n(i=>({...i,...l}))}));function Zm(n){return Wu(J_,(l=>l))}const F_=n=>{const{setTargetProduct:l,targetProduct:i,setIsAuthenticatedShopper:s,setCustomLoginUrl:o}=Ft(),{setTheme:f}=Zm(),[d,m]=he.useState(!1),[g,v]=he.useState(!1),[T,w]=he.useState(!0),R=async()=>{try{const A=await Q_({tenant_id:n.tenant_id});return A.access_token||console.error("PBMLOG: Authorization failed!"),A.access_token!==void 0}catch(A){return console.error("Error fetching authorization:",A),!1}},_=async()=>{if(!n.ean_product)return console.error("PBMLOG: Ean is not defined."),w(!1),!1;try{const A=await $_(n.ean_product);if(A.success){const Z=A.data,I=Z.ean==n.ean_product&&Z.showModule;return v(I),I}}catch(A){console.error(A)}return!1},U=async()=>{try{if(!n.ean_product){console.error("PBMLOG: Ean is not defined."),w(!1);return}const A=await X_({PRODUCT_EAN:n.ean_product});if(A.success&&A.data){w(!0);const{pbm:Z,sku:I,...$}=A.data;l({...i,...$,productId:Number($.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(A){console.error(A),w(!1)}};return he.useEffect(()=>{let A=!0;return(async()=>{n.theme&&f(n.theme),!(!await R()||!A||!await _()||!A)&&(await U(),A&&m(!0))})(),()=>{A=!1}},[n.ean_product,n.tenant_id]),{IsReady:d,IsValid:g,EanProductExist:T}};function W_(){const[n,l]=he.useState(!1),{setState:i}=Ft(),{resetModal:s,modal:o}=Lr(),f=o.open&&o.id==="iframe_pbm";he.useEffect(()=>{f&&l(!1)},[f,o.url]);const d=()=>{o.url&&window.open(o.url,"_blank","noopener,noreferrer")},m=()=>{i("isEmpty"),s()};if(o.url)return j.jsxs("main",{className:Ht("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:[j.jsx("div",{className:"bg-black/40 inset-0 absolute backdrop-blur-sm",onClick:m}),j.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:[j.jsx(oa,{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"}),j.jsx(oa,{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"})]}),j.jsx("div",{className:"w-[90%] md:w-4/5 h-[60vh] bg-zinc-900 z-10 overflow-hidden relative shadow-2xl",children:n?j.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center p-8 text-center bg-zinc-900",children:[j.jsx("div",{className:"bg-yellow-500/10 p-4 rounded-full mb-4 animate-pulse",children:j.jsx(Ch,{size:48,className:"text-yellow-500"})}),j.jsx($n,{textColor:"white",textSize:"20px",textAlign:"center",className:"mb-2",children:"Não foi possível carregar o conteúdo"}),j.jsx(Kn,{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."}),j.jsxs(oa,{onClick:d,className:"flex items-center gap-2 w-auto px-8 h-12 shadow-xl shadow-emerald-500/20",children:[j.jsx(Th,{size:18}),"Abrir em nova janela"]})]}):j.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:()=>l(!0)})}),j.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:[j.jsxs("div",{className:"flex items-center gap-2",children:[j.jsx(Ch,{size:18,className:"text-yellow-500 shrink-0"}),j.jsxs(Kn,{textColor:"white",className:"text-[10px] md:text-xs",children:[j.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."]})]}),j.jsxs("button",{onClick:d,className:"text-white/60 hover:text-white text-[11px] underline flex items-center gap-1 transition-colors cursor-pointer",children:[j.jsx(Th,{size:14})," Abrir em nova aba"]})]})]})}function I_(n){const{state:l}=Ft(),{IsReady:i,EanProductExist:s,IsValid:o}=F_(n),{setErrorMessage:f}=So(),d=Zm(),[m,g]=he.useTransition(),v=G_(n.original_product_price);if(o)return i?s?j.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:[j.jsxs(Pu,{variant:"main",children:[j.jsx(Wg,{originalProductPrice:v||0}),j.jsx(Pu,{variant:"simple",children:m?j.jsx(Oh,{}):j.jsxs(j.Fragment,{children:[l==="isEmpty"&&j.jsx(gb,{startTransition:g}),l==="isInvalid"&&j.jsx(wb,{}),l==="isRegistered"&&j.jsx(Ab,{}),(l==="isActivated"||l==="isPreview")&&j.jsx(Sb,{}),l==="isError"&&j.jsx(Nh,{})]})}),j.jsx(ev,{})]}),j.jsx(Eb,{ID:"ShopperIsNotAuthenticated"}),j.jsx(W_,{})]}):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),j.jsx("div",{id:"pbm-library-root",children:j.jsx(Nh,{})})):j.jsx(Y_,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358})}const P_='/*! 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-ease: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-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-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-gray-700:oklch(37.3% .034 259.733);--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;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--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{.\\@container{container-type:inline-size}.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-6{margin-bottom:calc(var(--spacing) * 6)}.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{width:calc(var(--spacing) * 1)}.w-1\\/5{width:20%}.w-3xs{width:var(--container-3xs)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-8{width:calc(var(--spacing) * 8)}.w-11{width:calc(var(--spacing) * 11)}.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{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.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}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.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{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.rounded-ss-2xl{border-start-start-radius:var(--radius-2xl)}.rounded-e-lg{border-start-end-radius:var(--radius-lg);border-end-end-radius:var(--radius-lg)}.rounded-se-2xl{border-start-end-radius:var(--radius-2xl)}.rounded-ee-2xl{border-end-end-radius:var(--radius-2xl)}.rounded-es-2xl{border-end-start-radius:var(--radius-2xl)}.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-2{border-style:var(--tw-border-style);border-width:2px}.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-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.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-100{border-color:var(--color-gray-100)}.border-gray-300{border-color:var(--color-gray-300)}.border-white{border-color:var(--color-white)}.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-yellow-500{border-color:var(--color-yellow-500)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-zinc-400{border-color:var(--color-zinc-400)}.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)}}.border-t-gray-700{border-top-color:var(--color-gray-700)}.bg-black{background-color:var(--color-black)}.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{background-color:var(--color-yellow-500)}.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{background-color:var(--color-zinc-300)}.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-800{background-color:var(--color-zinc-800)}.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-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0{padding-block:calc(var(--spacing) * 0)}.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-red-500{color:var(--color-red-500)}.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)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.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{--tw-shadow-color:oklch(69.6% .17 162.48)}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-500{--tw-shadow-color:color-mix(in oklab, var(--color-emerald-500) var(--tw-shadow-alpha), transparent)}}.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)}.blur{--tw-blur:blur(8px);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,)}.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{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.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-ease{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=Fg();class eS extends HTMLElement{constructor(){super();yd(this,"root",null);yd(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 i=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),i!==null&&(this.props.original_product_price=parseFloat(i)),s!==null&&(this.props.tenant_id=s),o!==null&&(this.props.ean_product=o,o&&Qi.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(i,s,o){if(i==="original_product_price"&&(this.props.original_product_price=parseFloat(o)),i==="tenant_id"&&(this.props.tenant_id=o),i==="ean_product"&&(this.props.ean_product=o,o&&Qi.getState().setTargetProduct({ean:o,quantity:1})),i==="is_authenticated_shopper"&&(this.props.is_authenticated_shopper=o==="true"),i==="custom_login_url"&&(this.props.custom_login_url=o===""?"/login":o),i==="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 i=this.shadowRoot;if(!(!i&&(this.attachShadow({mode:"open"}),i=this.shadowRoot,!i))){if(!i.querySelector("#pbm-shadow-root")){const s=document.createElement("div");s.id="pbm-shadow-root";const o=document.createElement("style");o.textContent=P_,i.appendChild(o),i.appendChild(s),this.root=$g.createRoot(s)}this.root&&this.root.render(j.jsx(I_,{...this.props}))}}}customElements.define("pbm-component",eS)})(React,ReactDOM);
|