Plugin Directory

Changeset 2973631


Ignore:
Timestamp:
10/02/2023 04:12:58 AM (3 years ago)
Author:
onecommerce
Message:

Hotfix plugin version 2.10.5

Location:
transcy/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • transcy/trunk/assets/dist/js/index.js

    r2968586 r2973631  
    3838`).replace(zY,"")}function u0(e,t,n){if(t=qk(t),qk(e)!==t&&n)throw Error(ke(425))}function Hy(){}var Bx=null,Vx=null;function Ux(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hx=typeof setTimeout=="function"?setTimeout:void 0,jY=typeof clearTimeout=="function"?clearTimeout:void 0,Gk=typeof Promise=="function"?Promise:void 0,BY=typeof queueMicrotask=="function"?queueMicrotask:typeof Gk<"u"?function(e){return Gk.resolve(null).then(e).catch(VY)}:Hx;function VY(e){setTimeout(function(){throw e})}function xS(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),km(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);km(t)}function eu(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==="$?")break;if(t==="/$")return null}}return e}function Kk(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var fh=Math.random().toString(36).slice(2),Ko="__reactFiber$"+fh,Am="__reactProps$"+fh,Qs="__reactContainer$"+fh,Wx="__reactEvents$"+fh,UY="__reactListeners$"+fh,HY="__reactHandles$"+fh;function nc(e){var t=e[Ko];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qs]||n[Ko]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kk(e);e!==null;){if(n=e[Ko])return n;e=Kk(e)}return t}e=n,n=e.parentNode}return null}function Eg(e){return e=e[Ko]||e[Qs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ke(33))}function z_(e){return e[Am]||null}var qx=[],Ud=-1;function _u(e){return{current:e}}function Mn(e){0>Ud||(e.current=qx[Ud],qx[Ud]=null,Ud--)}function Tn(e,t){Ud++,qx[Ud]=e.current,e.current=t}var cu={},pi=_u(cu),Ki=_u(!1),Cc=cu;function Nf(e,t){var n=e.type.contextTypes;if(!n)return cu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Yi(e){return e=e.childContextTypes,e!=null}function Wy(){Mn(Ki),Mn(pi)}function Yk(e,t,n){if(pi.current!==cu)throw Error(ke(168));Tn(pi,t),Tn(Ki,n)}function vI(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ke(108,PK(e)||"Unknown",i));return Gn({},n,r)}function qy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cu,Cc=pi.current,Tn(pi,e),Tn(Ki,Ki.current),!0}function Zk(e,t,n){var r=e.stateNode;if(!r)throw Error(ke(169));n?(e=vI(e,t,Cc),r.__reactInternalMemoizedMergedChildContext=e,Mn(Ki),Mn(pi),Tn(pi,e)):Mn(Ki),Tn(Ki,n)}var Ls=null,j_=!1,CS=!1;function yI(e){Ls===null?Ls=[e]:Ls.push(e)}function WY(e){j_=!0,yI(e)}function bu(){if(!CS&&Ls!==null){CS=!0;var e=0,t=_n;try{var n=Ls;for(_n=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ls=null,j_=!1}catch(i){throw Ls!==null&&(Ls=Ls.slice(e+1)),UA(g5,bu),i}finally{_n=t,CS=!1}}return null}var Hd=[],Wd=0,Gy=null,Ky=0,za=[],ja=0,Ec=null,Fs=1,$s="";function Ku(e,t){Hd[Wd++]=Ky,Hd[Wd++]=Gy,Gy=e,Ky=t}function _I(e,t,n){za[ja++]=Fs,za[ja++]=$s,za[ja++]=Ec,Ec=e;var r=Fs;e=$s;var i=32-bo(r)-1;r&=~(1<<i),n+=1;var a=32-bo(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Fs=1<<32-bo(t)+i|n<<i|r,$s=a+e}else Fs=1<<a|n<<i|r,$s=e}function E5(e){e.return!==null&&(Ku(e,1),_I(e,1,0))}function k5(e){for(;e===Gy;)Gy=Hd[--Wd],Hd[Wd]=null,Ky=Hd[--Wd],Hd[Wd]=null;for(;e===Ec;)Ec=za[--ja],za[ja]=null,$s=za[--ja],za[ja]=null,Fs=za[--ja],za[ja]=null}var ha=null,da=null,zn=!1,po=null;function bI(e,t){var n=Va(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Qk(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ha=e,da=eu(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ha=e,da=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ec!==null?{id:Fs,overflow:$s}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Va(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ha=e,da=null,!0):!1;default:return!1}}function Gx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Kx(e){if(zn){var t=da;if(t){var n=t;if(!Qk(e,t)){if(Gx(e))throw Error(ke(418));t=eu(n.nextSibling);var r=ha;t&&Qk(e,t)?bI(r,n):(e.flags=e.flags&-4097|2,zn=!1,ha=e)}}else{if(Gx(e))throw Error(ke(418));e.flags=e.flags&-4097|2,zn=!1,ha=e}}}function Xk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ha=e}function c0(e){if(e!==ha)return!1;if(!zn)return Xk(e),zn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ux(e.type,e.memoizedProps)),t&&(t=da)){if(Gx(e))throw SI(),Error(ke(418));for(;t;)bI(e,t),t=eu(t.nextSibling)}if(Xk(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ke(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){da=eu(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}da=null}}else da=ha?eu(e.stateNode.nextSibling):null;return!0}function SI(){for(var e=da;e;)e=eu(e.nextSibling)}function Ff(){da=ha=null,zn=!1}function T5(e){po===null?po=[e]:po.push(e)}var qY=al.ReactCurrentBatchConfig;function lo(e,t){if(e&&e.defaultProps){t=Gn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Yy=_u(null),Zy=null,qd=null,P5=null;function O5(){P5=qd=Zy=null}function R5(e){var t=Yy.current;Mn(Yy),e._currentValue=t}function Yx(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _f(e,t){Zy=e,P5=qd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Gi=!0),e.firstContext=null)}function Ga(e){var t=e._currentValue;if(P5!==e)if(e={context:e,memoizedValue:t,next:null},qd===null){if(Zy===null)throw Error(ke(308));qd=e,Zy.dependencies={lanes:0,firstContext:e}}else qd=qd.next=e;return t}var rc=null;function A5(e){rc===null?rc=[e]:rc.push(e)}function wI(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,A5(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xs(e,r)}function Xs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nl=!1;function I5(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xI(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tu(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,en&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xs(e,n)}return i=r.interleaved,i===null?(t.next=t,A5(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xs(e,n)}function X0(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,v5(e,n)}}function Jk(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qy(e,t,n,r){var i=e.updateQueue;Nl=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=l))}if(a!==null){var h=i.baseState;o=0,f=c=l=null,s=a;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,m=s;switch(p=t,v=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){h=y.call(v,h,p);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,p=typeof y=="function"?y.call(v,h,p):y,p==null)break e;h=Gn({},h,p);break e;case 2:Nl=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(c=f=v,l=h):f=f.next=v,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Tc|=o,e.lanes=o,e.memoizedState=h}}function e7(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(ke(191,i));i.call(r)}}}var CI=new wA.Component().refs;function Zx(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Gn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var B_={isMounted:function(e){return(e=e._reactInternals)?Nc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ai(),i=ru(e),a=Vs(r,i);a.payload=t,n!=null&&(a.callback=n),t=tu(e,a,i),t!==null&&(So(t,e,i,r),X0(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ai(),i=ru(e),a=Vs(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=tu(e,a,i),t!==null&&(So(t,e,i,r),X0(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ai(),r=ru(e),i=Vs(n,r);i.tag=2,t!=null&&(i.callback=t),t=tu(e,i,r),t!==null&&(So(t,e,r,n),X0(t,e,r))}};function t7(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Pm(n,r)||!Pm(i,a):!0}function EI(e,t,n){var r=!1,i=cu,a=t.contextType;return typeof a=="object"&&a!==null?a=Ga(a):(i=Yi(t)?Cc:pi.current,r=t.contextTypes,a=(r=r!=null)?Nf(e,i):cu),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=B_,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function n7(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&B_.enqueueReplaceState(t,t.state,null)}function Qx(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=CI,I5(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ga(a):(a=Yi(t)?Cc:pi.current,i.context=Nf(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Zx(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&B_.enqueueReplaceState(i,i.state,null),Qy(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function lp(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ke(309));var r=n.stateNode}if(!r)throw Error(ke(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;s===CI&&(s=i.refs={}),o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(ke(284));if(!n._owner)throw Error(ke(290,e))}return e}function d0(e,t){throw e=Object.prototype.toString.call(t),Error(ke(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function r7(e){var t=e._init;return t(e._payload)}function kI(e){function t(b,S){if(e){var C=b.deletions;C===null?(b.deletions=[S],b.flags|=16):C.push(S)}}function n(b,S){if(!e)return null;for(;S!==null;)t(b,S),S=S.sibling;return null}function r(b,S){for(b=new Map;S!==null;)S.key!==null?b.set(S.key,S):b.set(S.index,S),S=S.sibling;return b}function i(b,S){return b=iu(b,S),b.index=0,b.sibling=null,b}function a(b,S,C){return b.index=C,e?(C=b.alternate,C!==null?(C=C.index,C<S?(b.flags|=2,S):C):(b.flags|=2,S)):(b.flags|=1048576,S)}function o(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,S,C,E){return S===null||S.tag!==6?(S=AS(C,b.mode,E),S.return=b,S):(S=i(S,C),S.return=b,S)}function l(b,S,C,E){var R=C.type;return R===$d?f(b,S,C.props.children,E,C.key):S!==null&&(S.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Dl&&r7(R)===S.type)?(E=i(S,C.props),E.ref=lp(b,S,C),E.return=b,E):(E=iy(C.type,C.key,C.props,null,b.mode,E),E.ref=lp(b,S,C),E.return=b,E)}function c(b,S,C,E){return S===null||S.tag!==4||S.stateNode.containerInfo!==C.containerInfo||S.stateNode.implementation!==C.implementation?(S=IS(C,b.mode,E),S.return=b,S):(S=i(S,C.children||[]),S.return=b,S)}function f(b,S,C,E,R){return S===null||S.tag!==7?(S=fc(C,b.mode,E,R),S.return=b,S):(S=i(S,C),S.return=b,S)}function h(b,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return S=AS(""+S,b.mode,C),S.return=b,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case e0:return C=iy(S.type,S.key,S.props,null,b.mode,C),C.ref=lp(b,null,S),C.return=b,C;case Fd:return S=IS(S,b.mode,C),S.return=b,S;case Dl:var E=S._init;return h(b,E(S._payload),C)}if(Ip(S)||rp(S))return S=fc(S,b.mode,C,null),S.return=b,S;d0(b,S)}return null}function p(b,S,C,E){var R=S!==null?S.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return R!==null?null:s(b,S,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case e0:return C.key===R?l(b,S,C,E):null;case Fd:return C.key===R?c(b,S,C,E):null;case Dl:return R=C._init,p(b,S,R(C._payload),E)}if(Ip(C)||rp(C))return R!==null?null:f(b,S,C,E,null);d0(b,C)}return null}function v(b,S,C,E,R){if(typeof E=="string"&&E!==""||typeof E=="number")return b=b.get(C)||null,s(S,b,""+E,R);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case e0:return b=b.get(E.key===null?C:E.key)||null,l(S,b,E,R);case Fd:return b=b.get(E.key===null?C:E.key)||null,c(S,b,E,R);case Dl:var A=E._init;return v(b,S,C,A(E._payload),R)}if(Ip(E)||rp(E))return b=b.get(C)||null,f(S,b,E,R,null);d0(S,E)}return null}function y(b,S,C,E){for(var R=null,A=null,I=S,M=S=0,F=null;I!==null&&M<C.length;M++){I.index>M?(F=I,I=null):F=I.sibling;var z=p(b,I,C[M],E);if(z===null){I===null&&(I=F);break}e&&I&&z.alternate===null&&t(b,I),S=a(z,S,M),A===null?R=z:A.sibling=z,A=z,I=F}if(M===C.length)return n(b,I),zn&&Ku(b,M),R;if(I===null){for(;M<C.length;M++)I=h(b,C[M],E),I!==null&&(S=a(I,S,M),A===null?R=I:A.sibling=I,A=I);return zn&&Ku(b,M),R}for(I=r(b,I);M<C.length;M++)F=v(I,b,M,C[M],E),F!==null&&(e&&F.alternate!==null&&I.delete(F.key===null?M:F.key),S=a(F,S,M),A===null?R=F:A.sibling=F,A=F);return e&&I.forEach(function(Y){return t(b,Y)}),zn&&Ku(b,M),R}function m(b,S,C,E){var R=rp(C);if(typeof R!="function")throw Error(ke(150));if(C=R.call(C),C==null)throw Error(ke(151));for(var A=R=null,I=S,M=S=0,F=null,z=C.next();I!==null&&!z.done;M++,z=C.next()){I.index>M?(F=I,I=null):F=I.sibling;var Y=p(b,I,z.value,E);if(Y===null){I===null&&(I=F);break}e&&I&&Y.alternate===null&&t(b,I),S=a(Y,S,M),A===null?R=Y:A.sibling=Y,A=Y,I=F}if(z.done)return n(b,I),zn&&Ku(b,M),R;if(I===null){for(;!z.done;M++,z=C.next())z=h(b,z.value,E),z!==null&&(S=a(z,S,M),A===null?R=z:A.sibling=z,A=z);return zn&&Ku(b,M),R}for(I=r(b,I);!z.done;M++,z=C.next())z=v(I,b,M,z.value,E),z!==null&&(e&&z.alternate!==null&&I.delete(z.key===null?M:z.key),S=a(z,S,M),A===null?R=z:A.sibling=z,A=z);return e&&I.forEach(function(W){return t(b,W)}),zn&&Ku(b,M),R}function _(b,S,C,E){if(typeof C=="object"&&C!==null&&C.type===$d&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case e0:e:{for(var R=C.key,A=S;A!==null;){if(A.key===R){if(R=C.type,R===$d){if(A.tag===7){n(b,A.sibling),S=i(A,C.props.children),S.return=b,b=S;break e}}else if(A.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Dl&&r7(R)===A.type){n(b,A.sibling),S=i(A,C.props),S.ref=lp(b,A,C),S.return=b,b=S;break e}n(b,A);break}else t(b,A);A=A.sibling}C.type===$d?(S=fc(C.props.children,b.mode,E,C.key),S.return=b,b=S):(E=iy(C.type,C.key,C.props,null,b.mode,E),E.ref=lp(b,S,C),E.return=b,b=E)}return o(b);case Fd:e:{for(A=C.key;S!==null;){if(S.key===A)if(S.tag===4&&S.stateNode.containerInfo===C.containerInfo&&S.stateNode.implementation===C.implementation){n(b,S.sibling),S=i(S,C.children||[]),S.return=b,b=S;break e}else{n(b,S);break}else t(b,S);S=S.sibling}S=IS(C,b.mode,E),S.return=b,b=S}return o(b);case Dl:return A=C._init,_(b,S,A(C._payload),E)}if(Ip(C))return y(b,S,C,E);if(rp(C))return m(b,S,C,E);d0(b,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,S!==null&&S.tag===6?(n(b,S.sibling),S=i(S,C),S.return=b,b=S):(n(b,S),S=AS(C,b.mode,E),S.return=b,b=S),o(b)):n(b,S)}return _}var $f=kI(!0),TI=kI(!1),kg={},ts=_u(kg),Im=_u(kg),Lm=_u(kg);function ic(e){if(e===kg)throw Error(ke(174));return e}function L5(e,t){switch(Tn(Lm,t),Tn(Im,e),Tn(ts,kg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ox(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ox(t,e)}Mn(ts),Tn(ts,t)}function zf(){Mn(ts),Mn(Im),Mn(Lm)}function PI(e){ic(Lm.current);var t=ic(ts.current),n=Ox(t,e.type);t!==n&&(Tn(Im,e),Tn(ts,n))}function M5(e){Im.current===e&&(Mn(ts),Mn(Im))}var Hn=_u(0);function Xy(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 ES=[];function D5(){for(var e=0;e<ES.length;e++)ES[e]._workInProgressVersionPrimary=null;ES.length=0}var J0=al.ReactCurrentDispatcher,kS=al.ReactCurrentBatchConfig,kc=0,qn=null,Cr=null,zr=null,Jy=!1,Yp=!1,Mm=0,GY=0;function oi(){throw Error(ke(321))}function N5(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ko(e[n],t[n]))return!1;return!0}function F5(e,t,n,r,i,a){if(kc=a,qn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,J0.current=e===null||e.memoizedState===null?QY:XY,e=n(r,i),Yp){a=0;do{if(Yp=!1,Mm=0,25<=a)throw Error(ke(301));a+=1,zr=Cr=null,t.updateQueue=null,J0.current=JY,e=n(r,i)}while(Yp)}if(J0.current=e1,t=Cr!==null&&Cr.next!==null,kc=0,zr=Cr=qn=null,Jy=!1,t)throw Error(ke(300));return e}function $5(){var e=Mm!==0;return Mm=0,e}function Vo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zr===null?qn.memoizedState=zr=e:zr=zr.next=e,zr}function Ka(){if(Cr===null){var e=qn.alternate;e=e!==null?e.memoizedState:null}else e=Cr.next;var t=zr===null?qn.memoizedState:zr.next;if(t!==null)zr=t,Cr=e;else{if(e===null)throw Error(ke(310));Cr=e,e={memoizedState:Cr.memoizedState,baseState:Cr.baseState,baseQueue:Cr.baseQueue,queue:Cr.queue,next:null},zr===null?qn.memoizedState=zr=e:zr=zr.next=e}return zr}function Dm(e,t){return typeof t=="function"?t(e):t}function TS(e){var t=Ka(),n=t.queue;if(n===null)throw Error(ke(311));n.lastRenderedReducer=e;var r=Cr,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var s=o=null,l=null,c=a;do{var f=c.lane;if((kc&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=h,o=r):l=l.next=h,qn.lanes|=f,Tc|=f}c=c.next}while(c!==null&&c!==a);l===null?o=r:l.next=s,ko(r,t.memoizedState)||(Gi=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,qn.lanes|=a,Tc|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function PS(e){var t=Ka(),n=t.queue;if(n===null)throw Error(ke(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);ko(a,t.memoizedState)||(Gi=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function OI(){}function RI(e,t){var n=qn,r=Ka(),i=t(),a=!ko(r.memoizedState,i);if(a&&(r.memoizedState=i,Gi=!0),r=r.queue,z5(LI.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||zr!==null&&zr.memoizedState.tag&1){if(n.flags|=2048,Nm(9,II.bind(null,n,r,i,t),void 0,null),Br===null)throw Error(ke(349));kc&30||AI(n,t,i)}return i}function AI(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qn.updateQueue,t===null?(t={lastEffect:null,stores:null},qn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function II(e,t,n,r){t.value=n,t.getSnapshot=r,MI(t)&&DI(e)}function LI(e,t,n){return n(function(){MI(t)&&DI(e)})}function MI(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ko(e,n)}catch{return!0}}function DI(e){var t=Xs(e,1);t!==null&&So(t,e,1,-1)}function i7(e){var t=Vo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dm,lastRenderedState:e},t.queue=e,e=e.dispatch=ZY.bind(null,qn,e),[t.memoizedState,e]}function Nm(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=qn.updateQueue,t===null?(t={lastEffect:null,stores:null},qn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function NI(){return Ka().memoizedState}function ey(e,t,n,r){var i=Vo();qn.flags|=e,i.memoizedState=Nm(1|t,n,void 0,r===void 0?null:r)}function V_(e,t,n,r){var i=Ka();r=r===void 0?null:r;var a=void 0;if(Cr!==null){var o=Cr.memoizedState;if(a=o.destroy,r!==null&&N5(r,o.deps)){i.memoizedState=Nm(t,n,a,r);return}}qn.flags|=e,i.memoizedState=Nm(1|t,n,a,r)}function a7(e,t){return ey(8390656,8,e,t)}function z5(e,t){return V_(2048,8,e,t)}function FI(e,t){return V_(4,2,e,t)}function $I(e,t){return V_(4,4,e,t)}function zI(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jI(e,t,n){return n=n!=null?n.concat([e]):null,V_(4,4,zI.bind(null,t,e),n)}function j5(){}function BI(e,t){var n=Ka();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&N5(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function VI(e,t){var n=Ka();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&N5(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function UI(e,t,n){return kc&21?(ko(n,t)||(n=qA(),qn.lanes|=n,Tc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Gi=!0),e.memoizedState=n)}function KY(e,t){var n=_n;_n=n!==0&&4>n?n:4,e(!0);var r=kS.transition;kS.transition={};try{e(!1),t()}finally{_n=n,kS.transition=r}}function HI(){return Ka().memoizedState}function YY(e,t,n){var r=ru(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},WI(e))qI(t,n);else if(n=wI(e,t,n,r),n!==null){var i=Ai();So(n,e,r,i),GI(n,t,r)}}function ZY(e,t,n){var r=ru(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(WI(e))qI(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ko(s,o)){var l=t.interleaved;l===null?(i.next=i,A5(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=wI(e,t,i,r),n!==null&&(i=Ai(),So(n,e,r,i),GI(n,t,r))}}function WI(e){var t=e.alternate;return e===qn||t!==null&&t===qn}function qI(e,t){Yp=Jy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function GI(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,v5(e,n)}}var e1={readContext:Ga,useCallback:oi,useContext:oi,useEffect:oi,useImperativeHandle:oi,useInsertionEffect:oi,useLayoutEffect:oi,useMemo:oi,useReducer:oi,useRef:oi,useState:oi,useDebugValue:oi,useDeferredValue:oi,useTransition:oi,useMutableSource:oi,useSyncExternalStore:oi,useId:oi,unstable_isNewReconciler:!1},QY={readContext:Ga,useCallback:function(e,t){return Vo().memoizedState=[e,t===void 0?null:t],e},useContext:Ga,useEffect:a7,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ey(4194308,4,zI.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ey(4194308,4,e,t)},useInsertionEffect:function(e,t){return ey(4,2,e,t)},useMemo:function(e,t){var n=Vo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=YY.bind(null,qn,e),[r.memoizedState,e]},useRef:function(e){var t=Vo();return e={current:e},t.memoizedState=e},useState:i7,useDebugValue:j5,useDeferredValue:function(e){return Vo().memoizedState=e},useTransition:function(){var e=i7(!1),t=e[0];return e=KY.bind(null,e[1]),Vo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qn,i=Vo();if(zn){if(n===void 0)throw Error(ke(407));n=n()}else{if(n=t(),Br===null)throw Error(ke(349));kc&30||AI(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,a7(LI.bind(null,r,a,e),[e]),r.flags|=2048,Nm(9,II.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Vo(),t=Br.identifierPrefix;if(zn){var n=$s,r=Fs;n=(r&~(1<<32-bo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mm++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=GY++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},XY={readContext:Ga,useCallback:BI,useContext:Ga,useEffect:z5,useImperativeHandle:jI,useInsertionEffect:FI,useLayoutEffect:$I,useMemo:VI,useReducer:TS,useRef:NI,useState:function(){return TS(Dm)},useDebugValue:j5,useDeferredValue:function(e){var t=Ka();return UI(t,Cr.memoizedState,e)},useTransition:function(){var e=TS(Dm)[0],t=Ka().memoizedState;return[e,t]},useMutableSource:OI,useSyncExternalStore:RI,useId:HI,unstable_isNewReconciler:!1},JY={readContext:Ga,useCallback:BI,useContext:Ga,useEffect:z5,useImperativeHandle:jI,useInsertionEffect:FI,useLayoutEffect:$I,useMemo:VI,useReducer:PS,useRef:NI,useState:function(){return PS(Dm)},useDebugValue:j5,useDeferredValue:function(e){var t=Ka();return Cr===null?t.memoizedState=e:UI(t,Cr.memoizedState,e)},useTransition:function(){var e=PS(Dm)[0],t=Ka().memoizedState;return[e,t]},useMutableSource:OI,useSyncExternalStore:RI,useId:HI,unstable_isNewReconciler:!1};function jf(e,t){try{var n="",r=t;do n+=TK(r),r=r.return;while(r);var i=n}catch(a){i=`
    3939Error generating stack: `+a.message+`
    40 `+a.stack}return{value:e,source:t,stack:i,digest:null}}function OS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eZ=typeof WeakMap=="function"?WeakMap:Map;function KI(e,t,n){n=Vs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){n1||(n1=!0,l3=r),Xx(e,t)},n}function YI(e,t,n){n=Vs(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Xx(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Xx(e,t),typeof r!="function"&&(nu===null?nu=new Set([this]):nu.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function o7(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eZ;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pZ.bind(null,e,t,n),t.then(e,e))}function s7(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function l7(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vs(-1,1),t.tag=2,tu(n,t,1))),n.lanes|=1),e)}var tZ=al.ReactCurrentOwner,Gi=!1;function ki(e,t,n,r){t.child=e===null?TI(t,null,n,r):$f(t,e.child,n,r)}function u7(e,t,n,r,i){n=n.render;var a=t.ref;return _f(t,i),r=F5(e,t,n,r,a,i),n=$5(),e!==null&&!Gi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Js(e,t,i)):(zn&&n&&E5(t),t.flags|=1,ki(e,t,r,i),t.child)}function c7(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!K5(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,ZI(e,t,a,r,i)):(e=iy(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Pm,n(o,r)&&e.ref===t.ref)return Js(e,t,i)}return t.flags|=1,e=iu(a,r),e.ref=t.ref,e.return=t,t.child=e}function ZI(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Pm(a,r)&&e.ref===t.ref)if(Gi=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Gi=!0);else return t.lanes=e.lanes,Js(e,t,i)}return Jx(e,t,n,r,i)}function QI(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tn(Kd,ca),ca|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tn(Kd,ca),ca|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Tn(Kd,ca),ca|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Tn(Kd,ca),ca|=r;return ki(e,t,i,n),t.child}function XI(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Jx(e,t,n,r,i){var a=Yi(n)?Cc:pi.current;return a=Nf(t,a),_f(t,i),n=F5(e,t,n,r,a,i),r=$5(),e!==null&&!Gi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Js(e,t,i)):(zn&&r&&E5(t),t.flags|=1,ki(e,t,n,i),t.child)}function d7(e,t,n,r,i){if(Yi(n)){var a=!0;qy(t)}else a=!1;if(_f(t,i),t.stateNode===null)ty(e,t),EI(t,n,r),Qx(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ga(c):(c=Yi(n)?Cc:pi.current,c=Nf(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==c)&&n7(t,o,r,c),Nl=!1;var p=t.memoizedState;o.state=p,Qy(t,r,o,i),l=t.memoizedState,s!==r||p!==l||Ki.current||Nl?(typeof f=="function"&&(Zx(t,n,f,r),l=t.memoizedState),(s=Nl||t7(t,n,s,r,p,l,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,xI(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:lo(t.type,s),o.props=c,h=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ga(l):(l=Yi(n)?Cc:pi.current,l=Nf(t,l));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==h||p!==l)&&n7(t,o,r,l),Nl=!1,p=t.memoizedState,o.state=p,Qy(t,r,o,i);var y=t.memoizedState;s!==h||p!==y||Ki.current||Nl?(typeof v=="function"&&(Zx(t,n,v,r),y=t.memoizedState),(c=Nl||t7(t,n,c,r,p,y,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return e3(e,t,n,r,a,i)}function e3(e,t,n,r,i,a){XI(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Zk(t,n,!1),Js(e,t,a);r=t.stateNode,tZ.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=$f(t,e.child,null,a),t.child=$f(t,null,s,a)):ki(e,t,s,a),t.memoizedState=r.state,i&&Zk(t,n,!0),t.child}function JI(e){var t=e.stateNode;t.pendingContext?Yk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yk(e,t.context,!1),L5(e,t.containerInfo)}function f7(e,t,n,r,i){return Ff(),T5(i),t.flags|=256,ki(e,t,n,r),t.child}var t3={dehydrated:null,treeContext:null,retryLane:0};function n3(e){return{baseLanes:e,cachePool:null,transitions:null}}function eL(e,t,n){var r=t.pendingProps,i=Hn.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Tn(Hn,i&1),e===null)return Kx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=W_(o,r,0,null),e=fc(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=n3(n),t.memoizedState=t3,e):B5(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return nZ(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=iu(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=iu(s,a):(a=fc(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?n3(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=t3,r}return a=e.child,e=a.sibling,r=iu(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function B5(e,t){return t=W_({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function f0(e,t,n,r){return r!==null&&T5(r),$f(t,e.child,null,n),e=B5(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nZ(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=OS(Error(ke(422))),f0(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=W_({mode:"visible",children:r.children},i,0,null),a=fc(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&$f(t,e.child,null,o),t.child.memoizedState=n3(o),t.memoizedState=t3,a);if(!(t.mode&1))return f0(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(ke(419)),r=OS(a,r,void 0),f0(e,t,o,r)}if(s=(o&e.childLanes)!==0,Gi||s){if(r=Br,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Xs(e,i),So(r,e,i,-1))}return G5(),r=OS(Error(ke(421))),f0(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=mZ.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,da=eu(i.nextSibling),ha=t,zn=!0,po=null,e!==null&&(za[ja++]=Fs,za[ja++]=$s,za[ja++]=Ec,Fs=e.id,$s=e.overflow,Ec=t),t=B5(t,r.children),t.flags|=4096,t)}function h7(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yx(e.return,t,n)}function RS(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function tL(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ki(e,t,r.children,n),r=Hn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&h7(e,n,t);else if(e.tag===19)h7(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Tn(Hn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Xy(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),RS(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Xy(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}RS(t,!0,n,null,a);break;case"together":RS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ty(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Js(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ke(153));if(t.child!==null){for(e=t.child,n=iu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=iu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rZ(e,t,n){switch(t.tag){case 3:JI(t),Ff();break;case 5:PI(t);break;case 1:Yi(t.type)&&qy(t);break;case 4:L5(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Tn(Yy,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Tn(Hn,Hn.current&1),t.flags|=128,null):n&t.child.childLanes?eL(e,t,n):(Tn(Hn,Hn.current&1),e=Js(e,t,n),e!==null?e.sibling:null);Tn(Hn,Hn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tL(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Tn(Hn,Hn.current),r)break;return null;case 22:case 23:return t.lanes=0,QI(e,t,n)}return Js(e,t,n)}var nL,r3,rL,iL;nL=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};r3=function(){};rL=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ic(ts.current);var a=null;switch(n){case"input":i=Ex(e,i),r=Ex(e,r),a=[];break;case"select":i=Gn({},i,{value:void 0}),r=Gn({},r,{value:void 0}),a=[];break;case"textarea":i=Px(e,i),r=Px(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Hy)}Rx(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Sm.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Sm.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&In("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};iL=function(e,t,n,r){n!==r&&(t.flags|=4)};function up(e,t){if(!zn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function si(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function iZ(e,t,n){var r=t.pendingProps;switch(k5(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return si(t),null;case 1:return Yi(t.type)&&Wy(),si(t),null;case 3:return r=t.stateNode,zf(),Mn(Ki),Mn(pi),D5(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(c0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,po!==null&&(d3(po),po=null))),r3(e,t),si(t),null;case 5:M5(t);var i=ic(Lm.current);if(n=t.type,e!==null&&t.stateNode!=null)rL(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ke(166));return si(t),null}if(e=ic(ts.current),c0(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ko]=t,r[Am]=a,e=(t.mode&1)!==0,n){case"dialog":In("cancel",r),In("close",r);break;case"iframe":case"object":case"embed":In("load",r);break;case"video":case"audio":for(i=0;i<Mp.length;i++)In(Mp[i],r);break;case"source":In("error",r);break;case"img":case"image":case"link":In("error",r),In("load",r);break;case"details":In("toggle",r);break;case"input":wk(r,a),In("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},In("invalid",r);break;case"textarea":Ck(r,a),In("invalid",r)}Rx(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&u0(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&u0(r.textContent,s,e),i=["children",""+s]):Sm.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&In("scroll",r)}switch(n){case"input":t0(r),xk(r,a,!0);break;case"textarea":t0(r),Ek(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Hy)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=AA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ko]=t,e[Am]=r,nL(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ax(n,r),n){case"dialog":In("cancel",e),In("close",e),i=r;break;case"iframe":case"object":case"embed":In("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mp.length;i++)In(Mp[i],e);i=r;break;case"source":In("error",e),i=r;break;case"img":case"image":case"link":In("error",e),In("load",e),i=r;break;case"details":In("toggle",e),i=r;break;case"input":wk(e,r),i=Ex(e,r),In("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Gn({},r,{value:void 0}),In("invalid",e);break;case"textarea":Ck(e,r),i=Px(e,r),In("invalid",e);break;default:i=r}Rx(n,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?MA(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&IA(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&wm(e,l):typeof l=="number"&&wm(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Sm.hasOwnProperty(a)?l!=null&&a==="onScroll"&&In("scroll",e):l!=null&&d5(e,a,l,o))}switch(n){case"input":t0(e),xk(e,r,!1);break;case"textarea":t0(e),Ek(e);break;case"option":r.value!=null&&e.setAttribute("value",""+uu(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?mf(e,!!r.multiple,a,!1):r.defaultValue!=null&&mf(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Hy)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return si(t),null;case 6:if(e&&t.stateNode!=null)iL(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ke(166));if(n=ic(Lm.current),ic(ts.current),c0(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ko]=t,(a=r.nodeValue!==n)&&(e=ha,e!==null))switch(e.tag){case 3:u0(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&u0(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ko]=t,t.stateNode=r}return si(t),null;case 13:if(Mn(Hn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(zn&&da!==null&&t.mode&1&&!(t.flags&128))SI(),Ff(),t.flags|=98560,a=!1;else if(a=c0(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(ke(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(ke(317));a[Ko]=t}else Ff(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;si(t),a=!1}else po!==null&&(d3(po),po=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Hn.current&1?Tr===0&&(Tr=3):G5())),t.updateQueue!==null&&(t.flags|=4),si(t),null);case 4:return zf(),r3(e,t),e===null&&Om(t.stateNode.containerInfo),si(t),null;case 10:return R5(t.type._context),si(t),null;case 17:return Yi(t.type)&&Wy(),si(t),null;case 19:if(Mn(Hn),a=t.memoizedState,a===null)return si(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)up(a,!1);else{if(Tr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Xy(e),o!==null){for(t.flags|=128,up(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tn(Hn,Hn.current&1|2),t.child}e=e.sibling}a.tail!==null&&or()>Bf&&(t.flags|=128,r=!0,up(a,!1),t.lanes=4194304)}else{if(!r)if(e=Xy(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),up(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!zn)return si(t),null}else 2*or()-a.renderingStartTime>Bf&&n!==1073741824&&(t.flags|=128,r=!0,up(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=or(),t.sibling=null,n=Hn.current,Tn(Hn,r?n&1|2:n&1),t):(si(t),null);case 22:case 23:return q5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ca&1073741824&&(si(t),t.subtreeFlags&6&&(t.flags|=8192)):si(t),null;case 24:return null;case 25:return null}throw Error(ke(156,t.tag))}function aZ(e,t){switch(k5(t),t.tag){case 1:return Yi(t.type)&&Wy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zf(),Mn(Ki),Mn(pi),D5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return M5(t),null;case 13:if(Mn(Hn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ke(340));Ff()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mn(Hn),null;case 4:return zf(),null;case 10:return R5(t.type._context),null;case 22:case 23:return q5(),null;case 24:return null;default:return null}}var h0=!1,ci=!1,oZ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Gd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xn(e,t,r)}else n.current=null}function i3(e,t,n){try{n()}catch(r){Xn(e,t,r)}}var p7=!1;function sZ(e,t){if(Bx=By,e=lI(),C5(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var v;h!==n||i!==0&&h.nodeType!==3||(s=o+i),h!==a||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(v=h.firstChild)!==null;)p=h,h=v;for(;;){if(h===e)break t;if(p===n&&++c===i&&(s=o),p===a&&++f===r&&(l=o),(v=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vx={focusedElem:e,selectionRange:n},By=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,_=y.memoizedState,b=t.stateNode,S=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:lo(t.type,m),_);b.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ke(163))}}catch(E){Xn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return y=p7,p7=!1,y}function Zp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&i3(t,n,a)}i=i.next}while(i!==r)}}function U_(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function a3(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function aL(e){var t=e.alternate;t!==null&&(e.alternate=null,aL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ko],delete t[Am],delete t[Wx],delete t[UY],delete t[HY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oL(e){return e.tag===5||e.tag===3||e.tag===4}function m7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oL(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function o3(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hy));else if(r!==4&&(e=e.child,e!==null))for(o3(e,t,n),e=e.sibling;e!==null;)o3(e,t,n),e=e.sibling}function s3(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(s3(e,t,n),e=e.sibling;e!==null;)s3(e,t,n),e=e.sibling}var Yr=null,co=!1;function Tl(e,t,n){for(n=n.child;n!==null;)sL(e,t,n),n=n.sibling}function sL(e,t,n){if(es&&typeof es.onCommitFiberUnmount=="function")try{es.onCommitFiberUnmount(D_,n)}catch{}switch(n.tag){case 5:ci||Gd(n,t);case 6:var r=Yr,i=co;Yr=null,Tl(e,t,n),Yr=r,co=i,Yr!==null&&(co?(e=Yr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Yr.removeChild(n.stateNode));break;case 18:Yr!==null&&(co?(e=Yr,n=n.stateNode,e.nodeType===8?xS(e.parentNode,n):e.nodeType===1&&xS(e,n),km(e)):xS(Yr,n.stateNode));break;case 4:r=Yr,i=co,Yr=n.stateNode.containerInfo,co=!0,Tl(e,t,n),Yr=r,co=i;break;case 0:case 11:case 14:case 15:if(!ci&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&i3(n,t,o),i=i.next}while(i!==r)}Tl(e,t,n);break;case 1:if(!ci&&(Gd(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Xn(n,t,s)}Tl(e,t,n);break;case 21:Tl(e,t,n);break;case 22:n.mode&1?(ci=(r=ci)||n.memoizedState!==null,Tl(e,t,n),ci=r):Tl(e,t,n);break;default:Tl(e,t,n)}}function g7(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oZ),t.forEach(function(r){var i=gZ.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function oo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Yr=s.stateNode,co=!1;break e;case 3:Yr=s.stateNode.containerInfo,co=!0;break e;case 4:Yr=s.stateNode.containerInfo,co=!0;break e}s=s.return}if(Yr===null)throw Error(ke(160));sL(a,o,i),Yr=null,co=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Xn(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lL(t,e),t=t.sibling}function lL(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(oo(t,e),zo(e),r&4){try{Zp(3,e,e.return),U_(3,e)}catch(m){Xn(e,e.return,m)}try{Zp(5,e,e.return)}catch(m){Xn(e,e.return,m)}}break;case 1:oo(t,e),zo(e),r&512&&n!==null&&Gd(n,n.return);break;case 5:if(oo(t,e),zo(e),r&512&&n!==null&&Gd(n,n.return),e.flags&32){var i=e.stateNode;try{wm(i,"")}catch(m){Xn(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&OA(i,a),Ax(s,o);var c=Ax(s,a);for(o=0;o<l.length;o+=2){var f=l[o],h=l[o+1];f==="style"?MA(i,h):f==="dangerouslySetInnerHTML"?IA(i,h):f==="children"?wm(i,h):d5(i,f,h,c)}switch(s){case"input":kx(i,a);break;case"textarea":RA(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var v=a.value;v!=null?mf(i,!!a.multiple,v,!1):p!==!!a.multiple&&(a.defaultValue!=null?mf(i,!!a.multiple,a.defaultValue,!0):mf(i,!!a.multiple,a.multiple?[]:"",!1))}i[Am]=a}catch(m){Xn(e,e.return,m)}}break;case 6:if(oo(t,e),zo(e),r&4){if(e.stateNode===null)throw Error(ke(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){Xn(e,e.return,m)}}break;case 3:if(oo(t,e),zo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{km(t.containerInfo)}catch(m){Xn(e,e.return,m)}break;case 4:oo(t,e),zo(e);break;case 13:oo(t,e),zo(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(H5=or())),r&4&&g7(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ci=(c=ci)||f,oo(t,e),ci=c):oo(t,e),zo(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(qe=e,f=e.child;f!==null;){for(h=qe=f;qe!==null;){switch(p=qe,v=p.child,p.tag){case 0:case 11:case 14:case 15:Zp(4,p,p.return);break;case 1:Gd(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Xn(r,n,m)}}break;case 5:Gd(p,p.return);break;case 22:if(p.memoizedState!==null){y7(h);continue}}v!==null?(v.return=p,qe=v):y7(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=h.stateNode,l=h.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=LA("display",o))}catch(m){Xn(e,e.return,m)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(m){Xn(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:oo(t,e),zo(e),r&4&&g7(e);break;case 21:break;default:oo(t,e),zo(e)}}function zo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(oL(n)){var r=n;break e}n=n.return}throw Error(ke(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(wm(i,""),r.flags&=-33);var a=m7(e);s3(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=m7(e);o3(e,s,o);break;default:throw Error(ke(161))}}catch(l){Xn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lZ(e,t,n){qe=e,uL(e)}function uL(e,t,n){for(var r=(e.mode&1)!==0;qe!==null;){var i=qe,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||h0;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||ci;s=h0;var c=ci;if(h0=o,(ci=l)&&!c)for(qe=i;qe!==null;)o=qe,l=o.child,o.tag===22&&o.memoizedState!==null?_7(i):l!==null?(l.return=o,qe=l):_7(i);for(;a!==null;)qe=a,uL(a),a=a.sibling;qe=i,h0=s,ci=c}v7(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,qe=a):v7(e)}}function v7(e){for(;qe!==null;){var t=qe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ci||U_(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ci)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:lo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&e7(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}e7(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&km(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ke(163))}ci||t.flags&512&&a3(t)}catch(p){Xn(t,t.return,p)}}if(t===e){qe=null;break}if(n=t.sibling,n!==null){n.return=t.return,qe=n;break}qe=t.return}}function y7(e){for(;qe!==null;){var t=qe;if(t===e){qe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,qe=n;break}qe=t.return}}function _7(e){for(;qe!==null;){var t=qe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{U_(4,t)}catch(l){Xn(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Xn(t,i,l)}}var a=t.return;try{a3(t)}catch(l){Xn(t,a,l)}break;case 5:var o=t.return;try{a3(t)}catch(l){Xn(t,o,l)}}}catch(l){Xn(t,t.return,l)}if(t===e){qe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,qe=s;break}qe=t.return}}var uZ=Math.ceil,t1=al.ReactCurrentDispatcher,V5=al.ReactCurrentOwner,Ha=al.ReactCurrentBatchConfig,en=0,Br=null,vr=null,Qr=0,ca=0,Kd=_u(0),Tr=0,Fm=null,Tc=0,H_=0,U5=0,Qp=null,Hi=null,H5=0,Bf=1/0,Is=null,n1=!1,l3=null,nu=null,p0=!1,Gl=null,r1=0,Xp=0,u3=null,ny=-1,ry=0;function Ai(){return en&6?or():ny!==-1?ny:ny=or()}function ru(e){return e.mode&1?en&2&&Qr!==0?Qr&-Qr:qY.transition!==null?(ry===0&&(ry=qA()),ry):(e=_n,e!==0||(e=window.event,e=e===void 0?16:JA(e.type)),e):1}function So(e,t,n,r){if(50<Xp)throw Xp=0,u3=null,Error(ke(185));xg(e,n,r),(!(en&2)||e!==Br)&&(e===Br&&(!(en&2)&&(H_|=n),Tr===4&&Ul(e,Qr)),Zi(e,r),n===1&&en===0&&!(t.mode&1)&&(Bf=or()+500,j_&&bu()))}function Zi(e,t){var n=e.callbackNode;qK(e,t);var r=jy(e,e===Br?Qr:0);if(r===0)n!==null&&Pk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Pk(n),t===1)e.tag===0?WY(b7.bind(null,e)):yI(b7.bind(null,e)),BY(function(){!(en&6)&&bu()}),n=null;else{switch(GA(r)){case 1:n=g5;break;case 4:n=HA;break;case 16:n=zy;break;case 536870912:n=WA;break;default:n=zy}n=vL(n,cL.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cL(e,t){if(ny=-1,ry=0,en&6)throw Error(ke(327));var n=e.callbackNode;if(bf()&&e.callbackNode!==n)return null;var r=jy(e,e===Br?Qr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=i1(e,r);else{t=r;var i=en;en|=2;var a=fL();(Br!==e||Qr!==t)&&(Is=null,Bf=or()+500,dc(e,t));do try{fZ();break}catch(s){dL(e,s)}while(1);O5(),t1.current=a,en=i,vr!==null?t=0:(Br=null,Qr=0,t=Tr)}if(t!==0){if(t===2&&(i=Nx(e),i!==0&&(r=i,t=c3(e,i))),t===1)throw n=Fm,dc(e,0),Ul(e,r),Zi(e,or()),n;if(t===6)Ul(e,r);else{if(i=e.current.alternate,!(r&30)&&!cZ(i)&&(t=i1(e,r),t===2&&(a=Nx(e),a!==0&&(r=a,t=c3(e,a))),t===1))throw n=Fm,dc(e,0),Ul(e,r),Zi(e,or()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ke(345));case 2:Yu(e,Hi,Is);break;case 3:if(Ul(e,r),(r&130023424)===r&&(t=H5+500-or(),10<t)){if(jy(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ai(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hx(Yu.bind(null,e,Hi,Is),t);break}Yu(e,Hi,Is);break;case 4:if(Ul(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-bo(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=or()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uZ(r/1960))-r,10<r){e.timeoutHandle=Hx(Yu.bind(null,e,Hi,Is),r);break}Yu(e,Hi,Is);break;case 5:Yu(e,Hi,Is);break;default:throw Error(ke(329))}}}return Zi(e,or()),e.callbackNode===n?cL.bind(null,e):null}function c3(e,t){var n=Qp;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),e=i1(e,t),e!==2&&(t=Hi,Hi=n,t!==null&&d3(t)),e}function d3(e){Hi===null?Hi=e:Hi.push.apply(Hi,e)}function cZ(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!ko(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Ul(e,t){for(t&=~U5,t&=~H_,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bo(t),r=1<<n;e[n]=-1,t&=~r}}function b7(e){if(en&6)throw Error(ke(327));bf();var t=jy(e,0);if(!(t&1))return Zi(e,or()),null;var n=i1(e,t);if(e.tag!==0&&n===2){var r=Nx(e);r!==0&&(t=r,n=c3(e,r))}if(n===1)throw n=Fm,dc(e,0),Ul(e,t),Zi(e,or()),n;if(n===6)throw Error(ke(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yu(e,Hi,Is),Zi(e,or()),null}function W5(e,t){var n=en;en|=1;try{return e(t)}finally{en=n,en===0&&(Bf=or()+500,j_&&bu())}}function Pc(e){Gl!==null&&Gl.tag===0&&!(en&6)&&bf();var t=en;en|=1;var n=Ha.transition,r=_n;try{if(Ha.transition=null,_n=1,e)return e()}finally{_n=r,Ha.transition=n,en=t,!(en&6)&&bu()}}function q5(){ca=Kd.current,Mn(Kd)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jY(n)),vr!==null)for(n=vr.return;n!==null;){var r=n;switch(k5(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Wy();break;case 3:zf(),Mn(Ki),Mn(pi),D5();break;case 5:M5(r);break;case 4:zf();break;case 13:Mn(Hn);break;case 19:Mn(Hn);break;case 10:R5(r.type._context);break;case 22:case 23:q5()}n=n.return}if(Br=e,vr=e=iu(e.current,null),Qr=ca=t,Tr=0,Fm=null,U5=H_=Tc=0,Hi=Qp=null,rc!==null){for(t=0;t<rc.length;t++)if(n=rc[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}rc=null}return e}function dL(e,t){do{var n=vr;try{if(O5(),J0.current=e1,Jy){for(var r=qn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Jy=!1}if(kc=0,zr=Cr=qn=null,Yp=!1,Mm=0,V5.current=null,n===null||n.return===null){Tr=1,Fm=t,vr=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Qr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=s,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=s7(o);if(v!==null){v.flags&=-257,l7(v,o,s,a,t),v.mode&1&&o7(a,c,t),t=v,l=c;var y=t.updateQueue;if(y===null){var m=new Set;m.add(l),t.updateQueue=m}else y.add(l);break e}else{if(!(t&1)){o7(a,c,t),G5();break e}l=Error(ke(426))}}else if(zn&&s.mode&1){var _=s7(o);if(_!==null){!(_.flags&65536)&&(_.flags|=256),l7(_,o,s,a,t),T5(jf(l,s));break e}}a=l=jf(l,s),Tr!==4&&(Tr=2),Qp===null?Qp=[a]:Qp.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var b=KI(a,l,t);Jk(a,b);break e;case 1:s=l;var S=a.type,C=a.stateNode;if(!(a.flags&128)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(nu===null||!nu.has(C)))){a.flags|=65536,t&=-t,a.lanes|=t;var E=YI(a,s,t);Jk(a,E);break e}}a=a.return}while(a!==null)}pL(n)}catch(R){t=R,vr===n&&n!==null&&(vr=n=n.return);continue}break}while(1)}function fL(){var e=t1.current;return t1.current=e1,e===null?e1:e}function G5(){(Tr===0||Tr===3||Tr===2)&&(Tr=4),Br===null||!(Tc&268435455)&&!(H_&268435455)||Ul(Br,Qr)}function i1(e,t){var n=en;en|=2;var r=fL();(Br!==e||Qr!==t)&&(Is=null,dc(e,t));do try{dZ();break}catch(i){dL(e,i)}while(1);if(O5(),en=n,t1.current=r,vr!==null)throw Error(ke(261));return Br=null,Qr=0,Tr}function dZ(){for(;vr!==null;)hL(vr)}function fZ(){for(;vr!==null&&!FK();)hL(vr)}function hL(e){var t=gL(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?pL(e):vr=t,V5.current=null}function pL(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aZ(n,t),n!==null){n.flags&=32767,vr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Tr=6,vr=null;return}}else if(n=iZ(n,t,ca),n!==null){vr=n;return}if(t=t.sibling,t!==null){vr=t;return}vr=t=e}while(t!==null);Tr===0&&(Tr=5)}function Yu(e,t,n){var r=_n,i=Ha.transition;try{Ha.transition=null,_n=1,hZ(e,t,n,r)}finally{Ha.transition=i,_n=r}return null}function hZ(e,t,n,r){do bf();while(Gl!==null);if(en&6)throw Error(ke(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ke(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(GK(e,a),e===Br&&(vr=Br=null,Qr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||p0||(p0=!0,vL(zy,function(){return bf(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Ha.transition,Ha.transition=null;var o=_n;_n=1;var s=en;en|=4,V5.current=null,sZ(e,n),lL(n,e),LY(Vx),By=!!Bx,Vx=Bx=null,e.current=n,lZ(n),$K(),en=s,_n=o,Ha.transition=a}else e.current=n;if(p0&&(p0=!1,Gl=e,r1=i),a=e.pendingLanes,a===0&&(nu=null),BK(n.stateNode),Zi(e,or()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(n1)throw n1=!1,e=l3,l3=null,e;return r1&1&&e.tag!==0&&bf(),a=e.pendingLanes,a&1?e===u3?Xp++:(Xp=0,u3=e):Xp=0,bu(),null}function bf(){if(Gl!==null){var e=GA(r1),t=Ha.transition,n=_n;try{if(Ha.transition=null,_n=16>e?16:e,Gl===null)var r=!1;else{if(e=Gl,Gl=null,r1=0,en&6)throw Error(ke(331));var i=en;for(en|=4,qe=e.current;qe!==null;){var a=qe,o=a.child;if(qe.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(qe=c;qe!==null;){var f=qe;switch(f.tag){case 0:case 11:case 15:Zp(8,f,a)}var h=f.child;if(h!==null)h.return=f,qe=h;else for(;qe!==null;){f=qe;var p=f.sibling,v=f.return;if(aL(f),f===c){qe=null;break}if(p!==null){p.return=v,qe=p;break}qe=v}}}var y=a.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var _=m.sibling;m.sibling=null,m=_}while(m!==null)}}qe=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,qe=o;else e:for(;qe!==null;){if(a=qe,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Zp(9,a,a.return)}var b=a.sibling;if(b!==null){b.return=a.return,qe=b;break e}qe=a.return}}var S=e.current;for(qe=S;qe!==null;){o=qe;var C=o.child;if(o.subtreeFlags&2064&&C!==null)C.return=o,qe=C;else e:for(o=S;qe!==null;){if(s=qe,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:U_(9,s)}}catch(R){Xn(s,s.return,R)}if(s===o){qe=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,qe=E;break e}qe=s.return}}if(en=i,bu(),es&&typeof es.onPostCommitFiberRoot=="function")try{es.onPostCommitFiberRoot(D_,e)}catch{}r=!0}return r}finally{_n=n,Ha.transition=t}}return!1}function S7(e,t,n){t=jf(n,t),t=KI(e,t,1),e=tu(e,t,1),t=Ai(),e!==null&&(xg(e,1,t),Zi(e,t))}function Xn(e,t,n){if(e.tag===3)S7(e,e,n);else for(;t!==null;){if(t.tag===3){S7(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nu===null||!nu.has(r))){e=jf(n,e),e=YI(t,e,1),t=tu(t,e,1),e=Ai(),t!==null&&(xg(t,1,e),Zi(t,e));break}}t=t.return}}function pZ(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ai(),e.pingedLanes|=e.suspendedLanes&n,Br===e&&(Qr&n)===n&&(Tr===4||Tr===3&&(Qr&130023424)===Qr&&500>or()-H5?dc(e,0):U5|=n),Zi(e,t)}function mL(e,t){t===0&&(e.mode&1?(t=i0,i0<<=1,!(i0&130023424)&&(i0=4194304)):t=1);var n=Ai();e=Xs(e,t),e!==null&&(xg(e,t,n),Zi(e,n))}function mZ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mL(e,n)}function gZ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ke(314))}r!==null&&r.delete(t),mL(e,n)}var gL;gL=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ki.current)Gi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gi=!1,rZ(e,t,n);Gi=!!(e.flags&131072)}else Gi=!1,zn&&t.flags&1048576&&_I(t,Ky,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ty(e,t),e=t.pendingProps;var i=Nf(t,pi.current);_f(t,n),i=F5(null,t,r,e,i,n);var a=$5();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yi(r)?(a=!0,qy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,I5(t),i.updater=B_,t.stateNode=i,i._reactInternals=t,Qx(t,r,e,n),t=e3(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&E5(t),ki(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ty(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yZ(r),e=lo(r,e),i){case 0:t=Jx(null,t,r,e,n);break e;case 1:t=d7(null,t,r,e,n);break e;case 11:t=u7(null,t,r,e,n);break e;case 14:t=c7(null,t,r,lo(r.type,e),n);break e}throw Error(ke(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lo(r,i),Jx(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lo(r,i),d7(e,t,r,i,n);case 3:e:{if(JI(t),e===null)throw Error(ke(387));r=t.pendingProps,a=t.memoizedState,i=a.element,xI(e,t),Qy(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=jf(Error(ke(423)),t),t=f7(e,t,r,n,i);break e}else if(r!==i){i=jf(Error(ke(424)),t),t=f7(e,t,r,n,i);break e}else for(da=eu(t.stateNode.containerInfo.firstChild),ha=t,zn=!0,po=null,n=TI(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ff(),r===i){t=Js(e,t,n);break e}ki(e,t,r,n)}t=t.child}return t;case 5:return PI(t),e===null&&Kx(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Ux(r,i)?o=null:a!==null&&Ux(r,a)&&(t.flags|=32),XI(e,t),ki(e,t,o,n),t.child;case 6:return e===null&&Kx(t),null;case 13:return eL(e,t,n);case 4:return L5(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$f(t,null,r,n):ki(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lo(r,i),u7(e,t,r,i,n);case 7:return ki(e,t,t.pendingProps,n),t.child;case 8:return ki(e,t,t.pendingProps.children,n),t.child;case 12:return ki(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Tn(Yy,r._currentValue),r._currentValue=o,a!==null)if(ko(a.value,o)){if(a.children===i.children&&!Ki.current){t=Js(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Vs(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Yx(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ke(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Yx(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}ki(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_f(t,n),i=Ga(i),r=r(i),t.flags|=1,ki(e,t,r,n),t.child;case 14:return r=t.type,i=lo(r,t.pendingProps),i=lo(r.type,i),c7(e,t,r,i,n);case 15:return ZI(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lo(r,i),ty(e,t),t.tag=1,Yi(r)?(e=!0,qy(t)):e=!1,_f(t,n),EI(t,r,i),Qx(t,r,i,n),e3(null,t,r,!0,e,n);case 19:return tL(e,t,n);case 22:return QI(e,t,n)}throw Error(ke(156,t.tag))};function vL(e,t){return UA(e,t)}function vZ(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Va(e,t,n,r){return new vZ(e,t,n,r)}function K5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yZ(e){if(typeof e=="function")return K5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===h5)return 11;if(e===p5)return 14}return 2}function iu(e,t){var n=e.alternate;return n===null?(n=Va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function iy(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")K5(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $d:return fc(n.children,i,a,t);case f5:o=8,i|=8;break;case Sx:return e=Va(12,n,t,i|2),e.elementType=Sx,e.lanes=a,e;case wx:return e=Va(13,n,t,i),e.elementType=wx,e.lanes=a,e;case xx:return e=Va(19,n,t,i),e.elementType=xx,e.lanes=a,e;case kA:return W_(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case CA:o=10;break e;case EA:o=9;break e;case h5:o=11;break e;case p5:o=14;break e;case Dl:o=16,r=null;break e}throw Error(ke(130,e==null?e:typeof e,""))}return t=Va(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function fc(e,t,n,r){return e=Va(7,e,r,t),e.lanes=n,e}function W_(e,t,n,r){return e=Va(22,e,r,t),e.elementType=kA,e.lanes=n,e.stateNode={isHidden:!1},e}function AS(e,t,n){return e=Va(6,e,null,t),e.lanes=n,e}function IS(e,t,n){return t=Va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _Z(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fS(0),this.expirationTimes=fS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fS(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Y5(e,t,n,r,i,a,o,s,l){return e=new _Z(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},I5(a),e}function bZ(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fd,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function yL(e){if(!e)return cu;e=e._reactInternals;e:{if(Nc(e)!==e||e.tag!==1)throw Error(ke(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Yi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ke(171))}if(e.tag===1){var n=e.type;if(Yi(n))return vI(e,n,t)}return t}function _L(e,t,n,r,i,a,o,s,l){return e=Y5(n,r,!0,e,i,a,o,s,l),e.context=yL(null),n=e.current,r=Ai(),i=ru(n),a=Vs(r,i),a.callback=t??null,tu(n,a,i),e.current.lanes=i,xg(e,i,r),Zi(e,r),e}function q_(e,t,n,r){var i=t.current,a=Ai(),o=ru(i);return n=yL(n),t.context===null?t.context=n:t.pendingContext=n,t=Vs(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tu(i,t,o),e!==null&&(So(e,i,o,a),X0(e,i,o)),o}function a1(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function w7(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Z5(e,t){w7(e,t),(e=e.alternate)&&w7(e,t)}function SZ(){return null}var bL=typeof reportError=="function"?reportError:function(e){console.error(e)};function Q5(e){this._internalRoot=e}G_.prototype.render=Q5.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ke(409));q_(e,t,null,null)};G_.prototype.unmount=Q5.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pc(function(){q_(null,e,null,null)}),t[Qs]=null}};function G_(e){this._internalRoot=e}G_.prototype.unstable_scheduleHydration=function(e){if(e){var t=ZA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vl.length&&t!==0&&t<Vl[n].priority;n++);Vl.splice(n,0,e),n===0&&XA(e)}};function X5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function K_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function x7(){}function wZ(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var c=a1(o);a.call(c)}}var o=_L(t,r,e,0,null,!1,!1,"",x7);return e._reactRootContainer=o,e[Qs]=o.current,Om(e.nodeType===8?e.parentNode:e),Pc(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=a1(l);s.call(c)}}var l=Y5(e,0,!1,null,null,!1,!1,"",x7);return e._reactRootContainer=l,e[Qs]=l.current,Om(e.nodeType===8?e.parentNode:e),Pc(function(){q_(t,l,n,r)}),l}function Y_(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=a1(o);s.call(l)}}q_(t,o,e,i)}else o=wZ(n,t,e,i,r);return a1(o)}KA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lp(t.pendingLanes);n!==0&&(v5(t,n|1),Zi(t,or()),!(en&6)&&(Bf=or()+500,bu()))}break;case 13:Pc(function(){var r=Xs(e,1);if(r!==null){var i=Ai();So(r,e,1,i)}}),Z5(e,1)}};y5=function(e){if(e.tag===13){var t=Xs(e,134217728);if(t!==null){var n=Ai();So(t,e,134217728,n)}Z5(e,134217728)}};YA=function(e){if(e.tag===13){var t=ru(e),n=Xs(e,t);if(n!==null){var r=Ai();So(n,e,t,r)}Z5(e,t)}};ZA=function(){return _n};QA=function(e,t){var n=_n;try{return _n=e,t()}finally{_n=n}};Lx=function(e,t,n){switch(t){case"input":if(kx(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=z_(r);if(!i)throw Error(ke(90));PA(r),kx(r,i)}}}break;case"textarea":RA(e,n);break;case"select":t=n.value,t!=null&&mf(e,!!n.multiple,t,!1)}};FA=W5;$A=Pc;var xZ={usingClientEntryPoint:!1,Events:[Eg,Vd,z_,DA,NA,W5]},cp={findFiberByHostInstance:nc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},CZ={bundleType:cp.bundleType,version:cp.version,rendererPackageName:cp.rendererPackageName,rendererConfig:cp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:al.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=BA(e),e===null?null:e.stateNode},findFiberByHostInstance:cp.findFiberByHostInstance||SZ,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var m0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!m0.isDisabled&&m0.supportsFiber)try{D_=m0.inject(CZ),es=m0}catch{}}ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xZ;ba.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!X5(t))throw Error(ke(200));return bZ(e,t,null,n)};ba.createRoot=function(e,t){if(!X5(e))throw Error(ke(299));var n=!1,r="",i=bL;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Y5(e,1,!1,null,null,n,!1,r,i),e[Qs]=t.current,Om(e.nodeType===8?e.parentNode:e),new Q5(t)};ba.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ke(188)):(e=Object.keys(e).join(","),Error(ke(268,e)));return e=BA(t),e=e===null?null:e.stateNode,e};ba.flushSync=function(e){return Pc(e)};ba.hydrate=function(e,t,n){if(!K_(t))throw Error(ke(200));return Y_(null,e,t,!0,n)};ba.hydrateRoot=function(e,t,n){if(!X5(e))throw Error(ke(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=bL;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=_L(t,null,e,1,n??null,i,!1,a,o),e[Qs]=t.current,Om(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new G_(t)};ba.render=function(e,t,n){if(!K_(t))throw Error(ke(200));return Y_(null,e,t,!1,n)};ba.unmountComponentAtNode=function(e){if(!K_(e))throw Error(ke(40));return e._reactRootContainer?(Pc(function(){Y_(null,null,e,!1,function(){e._reactRootContainer=null,e[Qs]=null})}),!0):!1};ba.unstable_batchedUpdates=W5;ba.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!K_(n))throw Error(ke(200));if(e==null||e._reactInternals===void 0)throw Error(ke(38));return Y_(e,t,n,!1,r)};ba.version="18.2.0-next-9e3b772b8-20220608";function SL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SL)}catch(e){console.error(e)}}SL(),_A.exports=ba;var Yo=_A.exports,C7=Yo;_x.createRoot=C7.createRoot,_x.hydrateRoot=C7.hydrateRoot;function EZ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function kZ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var TZ=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kZ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=EZ(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),li="-ms-",o1="-moz-",un="-webkit-",wL="comm",J5="rule",e4="decl",PZ="@import",xL="@keyframes",OZ="@layer",RZ=Math.abs,Z_=String.fromCharCode,AZ=Object.assign;function IZ(e,t){return Zr(e,0)^45?(((t<<2^Zr(e,0))<<2^Zr(e,1))<<2^Zr(e,2))<<2^Zr(e,3):0}function CL(e){return e.trim()}function LZ(e,t){return(e=t.exec(e))?e[0]:e}function dn(e,t,n){return e.replace(t,n)}function f3(e,t){return e.indexOf(t)}function Zr(e,t){return e.charCodeAt(t)|0}function $m(e,t,n){return e.slice(t,n)}function Wo(e){return e.length}function t4(e){return e.length}function g0(e,t){return t.push(e),e}function MZ(e,t){return e.map(t).join("")}var Q_=1,Vf=1,EL=0,ea=0,gr=0,hh="";function X_(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Q_,column:Vf,length:o,return:""}}function dp(e,t){return AZ(X_("",null,null,"",null,null,0),e,{length:-e.length},t)}function DZ(){return gr}function NZ(){return gr=ea>0?Zr(hh,--ea):0,Vf--,gr===10&&(Vf=1,Q_--),gr}function pa(){return gr=ea<EL?Zr(hh,ea++):0,Vf++,gr===10&&(Vf=1,Q_++),gr}function ns(){return Zr(hh,ea)}function ay(){return ea}function Tg(e,t){return $m(hh,e,t)}function zm(e){switch(e){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 kL(e){return Q_=Vf=1,EL=Wo(hh=e),ea=0,[]}function TL(e){return hh="",e}function oy(e){return CL(Tg(ea-1,h3(e===91?e+2:e===40?e+1:e)))}function FZ(e){for(;(gr=ns())&&gr<33;)pa();return zm(e)>2||zm(gr)>3?"":" "}function $Z(e,t){for(;--t&&pa()&&!(gr<48||gr>102||gr>57&&gr<65||gr>70&&gr<97););return Tg(e,ay()+(t<6&&ns()==32&&pa()==32))}function h3(e){for(;pa();)switch(gr){case e:return ea;case 34:case 39:e!==34&&e!==39&&h3(gr);break;case 40:e===41&&h3(e);break;case 92:pa();break}return ea}function zZ(e,t){for(;pa()&&e+gr!==47+10;)if(e+gr===42+42&&ns()===47)break;return"/*"+Tg(t,ea-1)+"*"+Z_(e===47?e:pa())}function jZ(e){for(;!zm(ns());)pa();return Tg(e,ea)}function BZ(e){return TL(sy("",null,null,null,[""],e=kL(e),0,[0],e))}function sy(e,t,n,r,i,a,o,s,l){for(var c=0,f=0,h=o,p=0,v=0,y=0,m=1,_=1,b=1,S=0,C="",E=i,R=a,A=r,I=C;_;)switch(y=S,S=pa()){case 40:if(y!=108&&Zr(I,h-1)==58){f3(I+=dn(oy(S),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=oy(S);break;case 9:case 10:case 13:case 32:I+=FZ(y);break;case 92:I+=$Z(ay()-1,7);continue;case 47:switch(ns()){case 42:case 47:g0(VZ(zZ(pa(),ay()),t,n),l);break;default:I+="/"}break;case 123*m:s[c++]=Wo(I)*b;case 125*m:case 59:case 0:switch(S){case 0:case 125:_=0;case 59+f:b==-1&&(I=dn(I,/\f/g,"")),v>0&&Wo(I)-h&&g0(v>32?k7(I+";",r,n,h-1):k7(dn(I," ","")+";",r,n,h-2),l);break;case 59:I+=";";default:if(g0(A=E7(I,t,n,c,f,i,s,C,E=[],R=[],h),a),S===123)if(f===0)sy(I,t,A,A,E,a,h,s,R);else switch(p===99&&Zr(I,3)===110?100:p){case 100:case 108:case 109:case 115:sy(e,A,A,r&&g0(E7(e,A,A,0,0,i,s,C,i,E=[],h),R),i,R,h,s,r?E:R);break;default:sy(I,A,A,A,[""],R,0,s,R)}}c=f=v=0,m=b=1,C=I="",h=o;break;case 58:h=1+Wo(I),v=y;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&NZ()==125)continue}switch(I+=Z_(S),S*m){case 38:b=f>0?1:(I+="\f",-1);break;case 44:s[c++]=(Wo(I)-1)*b,b=1;break;case 64:ns()===45&&(I+=oy(pa())),p=ns(),f=h=Wo(C=I+=jZ(ay())),S++;break;case 45:y===45&&Wo(I)==2&&(m=0)}}return a}function E7(e,t,n,r,i,a,o,s,l,c,f){for(var h=i-1,p=i===0?a:[""],v=t4(p),y=0,m=0,_=0;y<r;++y)for(var b=0,S=$m(e,h+1,h=RZ(m=o[y])),C=e;b<v;++b)(C=CL(m>0?p[b]+" "+S:dn(S,/&\f/g,p[b])))&&(l[_++]=C);return X_(e,t,n,i===0?J5:s,l,c,f)}function VZ(e,t,n){return X_(e,t,n,wL,Z_(DZ()),$m(e,2,-2),0)}function k7(e,t,n,r){return X_(e,t,n,e4,$m(e,0,r),$m(e,r+1,-1),r)}function Sf(e,t){for(var n="",r=t4(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function UZ(e,t,n,r){switch(e.type){case OZ:if(e.children.length)break;case PZ:case e4:return e.return=e.return||e.value;case wL:return"";case xL:return e.return=e.value+"{"+Sf(e.children,r)+"}";case J5:e.value=e.props.join(",")}return Wo(n=Sf(e.children,r))?e.return=e.value+"{"+n+"}":""}function HZ(e){var t=t4(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function WZ(e){return function(t){t.root||(t=t.return)&&e(t)}}var T7=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function PL(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qZ=function(t,n,r){for(var i=0,a=0;i=a,a=ns(),i===38&&a===12&&(n[r]=1),!zm(a);)pa();return Tg(t,ea)},GZ=function(t,n){var r=-1,i=44;do switch(zm(i)){case 0:i===38&&ns()===12&&(n[r]=1),t[r]+=qZ(ea-1,n,r);break;case 2:t[r]+=oy(i);break;case 4:if(i===44){t[++r]=ns()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Z_(i)}while(i=pa());return t},KZ=function(t,n){return TL(GZ(kL(t),n))},P7=new WeakMap,YZ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!P7.get(r))&&!i){P7.set(t,!0);for(var a=[],o=KZ(n,a),s=r.props,l=0,c=0;l<o.length;l++)for(var f=0;f<s.length;f++,c++)t.props[c]=a[l]?o[l].replace(/&\f/g,s[f]):s[f]+" "+o[l]}}},ZZ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function OL(e,t){switch(IZ(e,t)){case 5103:return un+"print-"+e+e;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 un+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return un+e+o1+e+li+e+e;case 6828:case 4268:return un+e+li+e+e;case 6165:return un+e+li+"flex-"+e+e;case 5187:return un+e+dn(e,/(\w+).+(:[^]+)/,un+"box-$1$2"+li+"flex-$1$2")+e;case 5443:return un+e+li+"flex-item-"+dn(e,/flex-|-self/,"")+e;case 4675:return un+e+li+"flex-line-pack"+dn(e,/align-content|flex-|-self/,"")+e;case 5548:return un+e+li+dn(e,"shrink","negative")+e;case 5292:return un+e+li+dn(e,"basis","preferred-size")+e;case 6060:return un+"box-"+dn(e,"-grow","")+un+e+li+dn(e,"grow","positive")+e;case 4554:return un+dn(e,/([^-])(transform)/g,"$1"+un+"$2")+e;case 6187:return dn(dn(dn(e,/(zoom-|grab)/,un+"$1"),/(image-set)/,un+"$1"),e,"")+e;case 5495:case 3959:return dn(e,/(image-set\([^]*)/,un+"$1$`$1");case 4968:return dn(dn(e,/(.+:)(flex-)?(.*)/,un+"box-pack:$3"+li+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+un+e+e;case 4095:case 3583:case 4068:case 2532:return dn(e,/(.+)-inline(.+)/,un+"$1$2")+e;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(Wo(e)-1-t>6)switch(Zr(e,t+1)){case 109:if(Zr(e,t+4)!==45)break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+o1+(Zr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~f3(e,"stretch")?OL(dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zr(e,t+1)!==115)break;case 6444:switch(Zr(e,Wo(e)-3-(~f3(e,"!important")&&10))){case 107:return dn(e,":",":"+un)+e;case 101:return dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+un+(Zr(e,14)===45?"inline-":"")+"box$3$1"+un+"$2$3$1"+li+"$2box$3")+e}break;case 5936:switch(Zr(e,t+11)){case 114:return un+e+li+dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+li+dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+li+dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return un+e+li+e+e}return e}var QZ=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case e4:t.return=OL(t.value,t.length);break;case xL:return Sf([dp(t,{value:dn(t.value,"@","@"+un)})],i);case J5:if(t.length)return MZ(t.props,function(a){switch(LZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sf([dp(t,{props:[dn(a,/:(read-\w+)/,":"+o1+"$1")]})],i);case"::placeholder":return Sf([dp(t,{props:[dn(a,/:(plac\w+)/,":"+un+"input-$1")]}),dp(t,{props:[dn(a,/:(plac\w+)/,":"+o1+"$1")]}),dp(t,{props:[dn(a,/:(plac\w+)/,li+"input-$1")]})],i)}return""})}},XZ=[QZ],JZ=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var _=m.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||XZ,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var _=m.getAttribute("data-emotion").split(" "),b=1;b<_.length;b++)a[_[b]]=!0;s.push(m)});var l,c=[YZ,ZZ];{var f,h=[UZ,WZ(function(m){f.insert(m)})],p=HZ(c.concat(i,h)),v=function(_){return Sf(BZ(_),p)};l=function(_,b,S,C){f=S,v(_?_+"{"+b.styles+"}":b.styles),C&&(y.inserted[b.name]=!0)}}var y={key:n,sheet:new TZ({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return y.sheet.hydrate(s),y};function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Je.apply(this,arguments)}var RL={exports:{}},bn={};/** @license React v16.13.1
     40`+a.stack}return{value:e,source:t,stack:i,digest:null}}function OS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eZ=typeof WeakMap=="function"?WeakMap:Map;function KI(e,t,n){n=Vs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){n1||(n1=!0,lC=r),Xx(e,t)},n}function YI(e,t,n){n=Vs(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Xx(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Xx(e,t),typeof r!="function"&&(nu===null?nu=new Set([this]):nu.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function o7(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eZ;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pZ.bind(null,e,t,n),t.then(e,e))}function s7(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function l7(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vs(-1,1),t.tag=2,tu(n,t,1))),n.lanes|=1),e)}var tZ=al.ReactCurrentOwner,Gi=!1;function ki(e,t,n,r){t.child=e===null?TI(t,null,n,r):$f(t,e.child,n,r)}function u7(e,t,n,r,i){n=n.render;var a=t.ref;return _f(t,i),r=F5(e,t,n,r,a,i),n=$5(),e!==null&&!Gi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Js(e,t,i)):(zn&&n&&E5(t),t.flags|=1,ki(e,t,r,i),t.child)}function c7(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!K5(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,ZI(e,t,a,r,i)):(e=iy(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Pm,n(o,r)&&e.ref===t.ref)return Js(e,t,i)}return t.flags|=1,e=iu(a,r),e.ref=t.ref,e.return=t,t.child=e}function ZI(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Pm(a,r)&&e.ref===t.ref)if(Gi=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Gi=!0);else return t.lanes=e.lanes,Js(e,t,i)}return Jx(e,t,n,r,i)}function QI(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tn(Kd,ca),ca|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tn(Kd,ca),ca|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Tn(Kd,ca),ca|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Tn(Kd,ca),ca|=r;return ki(e,t,i,n),t.child}function XI(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Jx(e,t,n,r,i){var a=Yi(n)?Cc:pi.current;return a=Nf(t,a),_f(t,i),n=F5(e,t,n,r,a,i),r=$5(),e!==null&&!Gi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Js(e,t,i)):(zn&&r&&E5(t),t.flags|=1,ki(e,t,n,i),t.child)}function d7(e,t,n,r,i){if(Yi(n)){var a=!0;qy(t)}else a=!1;if(_f(t,i),t.stateNode===null)ty(e,t),EI(t,n,r),Qx(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ga(c):(c=Yi(n)?Cc:pi.current,c=Nf(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==c)&&n7(t,o,r,c),Nl=!1;var p=t.memoizedState;o.state=p,Qy(t,r,o,i),l=t.memoizedState,s!==r||p!==l||Ki.current||Nl?(typeof f=="function"&&(Zx(t,n,f,r),l=t.memoizedState),(s=Nl||t7(t,n,s,r,p,l,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,xI(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:lo(t.type,s),o.props=c,h=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ga(l):(l=Yi(n)?Cc:pi.current,l=Nf(t,l));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==h||p!==l)&&n7(t,o,r,l),Nl=!1,p=t.memoizedState,o.state=p,Qy(t,r,o,i);var y=t.memoizedState;s!==h||p!==y||Ki.current||Nl?(typeof v=="function"&&(Zx(t,n,v,r),y=t.memoizedState),(c=Nl||t7(t,n,c,r,p,y,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return eC(e,t,n,r,a,i)}function eC(e,t,n,r,i,a){XI(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Zk(t,n,!1),Js(e,t,a);r=t.stateNode,tZ.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=$f(t,e.child,null,a),t.child=$f(t,null,s,a)):ki(e,t,s,a),t.memoizedState=r.state,i&&Zk(t,n,!0),t.child}function JI(e){var t=e.stateNode;t.pendingContext?Yk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yk(e,t.context,!1),L5(e,t.containerInfo)}function f7(e,t,n,r,i){return Ff(),T5(i),t.flags|=256,ki(e,t,n,r),t.child}var tC={dehydrated:null,treeContext:null,retryLane:0};function nC(e){return{baseLanes:e,cachePool:null,transitions:null}}function eL(e,t,n){var r=t.pendingProps,i=Hn.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Tn(Hn,i&1),e===null)return Kx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=W_(o,r,0,null),e=fc(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=nC(n),t.memoizedState=tC,e):B5(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return nZ(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=iu(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=iu(s,a):(a=fc(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?nC(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=tC,r}return a=e.child,e=a.sibling,r=iu(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function B5(e,t){return t=W_({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function f0(e,t,n,r){return r!==null&&T5(r),$f(t,e.child,null,n),e=B5(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nZ(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=OS(Error(ke(422))),f0(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=W_({mode:"visible",children:r.children},i,0,null),a=fc(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&$f(t,e.child,null,o),t.child.memoizedState=nC(o),t.memoizedState=tC,a);if(!(t.mode&1))return f0(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(ke(419)),r=OS(a,r,void 0),f0(e,t,o,r)}if(s=(o&e.childLanes)!==0,Gi||s){if(r=Br,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Xs(e,i),So(r,e,i,-1))}return G5(),r=OS(Error(ke(421))),f0(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=mZ.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,da=eu(i.nextSibling),ha=t,zn=!0,po=null,e!==null&&(za[ja++]=Fs,za[ja++]=$s,za[ja++]=Ec,Fs=e.id,$s=e.overflow,Ec=t),t=B5(t,r.children),t.flags|=4096,t)}function h7(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yx(e.return,t,n)}function RS(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function tL(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ki(e,t,r.children,n),r=Hn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&h7(e,n,t);else if(e.tag===19)h7(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Tn(Hn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Xy(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),RS(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Xy(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}RS(t,!0,n,null,a);break;case"together":RS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ty(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Js(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ke(153));if(t.child!==null){for(e=t.child,n=iu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=iu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rZ(e,t,n){switch(t.tag){case 3:JI(t),Ff();break;case 5:PI(t);break;case 1:Yi(t.type)&&qy(t);break;case 4:L5(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Tn(Yy,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Tn(Hn,Hn.current&1),t.flags|=128,null):n&t.child.childLanes?eL(e,t,n):(Tn(Hn,Hn.current&1),e=Js(e,t,n),e!==null?e.sibling:null);Tn(Hn,Hn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tL(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Tn(Hn,Hn.current),r)break;return null;case 22:case 23:return t.lanes=0,QI(e,t,n)}return Js(e,t,n)}var nL,rC,rL,iL;nL=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};rC=function(){};rL=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ic(ts.current);var a=null;switch(n){case"input":i=Ex(e,i),r=Ex(e,r),a=[];break;case"select":i=Gn({},i,{value:void 0}),r=Gn({},r,{value:void 0}),a=[];break;case"textarea":i=Px(e,i),r=Px(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Hy)}Rx(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Sm.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Sm.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&In("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};iL=function(e,t,n,r){n!==r&&(t.flags|=4)};function up(e,t){if(!zn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function si(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function iZ(e,t,n){var r=t.pendingProps;switch(k5(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return si(t),null;case 1:return Yi(t.type)&&Wy(),si(t),null;case 3:return r=t.stateNode,zf(),Mn(Ki),Mn(pi),D5(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(c0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,po!==null&&(dC(po),po=null))),rC(e,t),si(t),null;case 5:M5(t);var i=ic(Lm.current);if(n=t.type,e!==null&&t.stateNode!=null)rL(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ke(166));return si(t),null}if(e=ic(ts.current),c0(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ko]=t,r[Am]=a,e=(t.mode&1)!==0,n){case"dialog":In("cancel",r),In("close",r);break;case"iframe":case"object":case"embed":In("load",r);break;case"video":case"audio":for(i=0;i<Mp.length;i++)In(Mp[i],r);break;case"source":In("error",r);break;case"img":case"image":case"link":In("error",r),In("load",r);break;case"details":In("toggle",r);break;case"input":wk(r,a),In("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},In("invalid",r);break;case"textarea":Ck(r,a),In("invalid",r)}Rx(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&u0(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&u0(r.textContent,s,e),i=["children",""+s]):Sm.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&In("scroll",r)}switch(n){case"input":t0(r),xk(r,a,!0);break;case"textarea":t0(r),Ek(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Hy)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=AA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ko]=t,e[Am]=r,nL(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ax(n,r),n){case"dialog":In("cancel",e),In("close",e),i=r;break;case"iframe":case"object":case"embed":In("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mp.length;i++)In(Mp[i],e);i=r;break;case"source":In("error",e),i=r;break;case"img":case"image":case"link":In("error",e),In("load",e),i=r;break;case"details":In("toggle",e),i=r;break;case"input":wk(e,r),i=Ex(e,r),In("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Gn({},r,{value:void 0}),In("invalid",e);break;case"textarea":Ck(e,r),i=Px(e,r),In("invalid",e);break;default:i=r}Rx(n,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?MA(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&IA(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&wm(e,l):typeof l=="number"&&wm(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Sm.hasOwnProperty(a)?l!=null&&a==="onScroll"&&In("scroll",e):l!=null&&d5(e,a,l,o))}switch(n){case"input":t0(e),xk(e,r,!1);break;case"textarea":t0(e),Ek(e);break;case"option":r.value!=null&&e.setAttribute("value",""+uu(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?mf(e,!!r.multiple,a,!1):r.defaultValue!=null&&mf(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Hy)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return si(t),null;case 6:if(e&&t.stateNode!=null)iL(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ke(166));if(n=ic(Lm.current),ic(ts.current),c0(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ko]=t,(a=r.nodeValue!==n)&&(e=ha,e!==null))switch(e.tag){case 3:u0(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&u0(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ko]=t,t.stateNode=r}return si(t),null;case 13:if(Mn(Hn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(zn&&da!==null&&t.mode&1&&!(t.flags&128))SI(),Ff(),t.flags|=98560,a=!1;else if(a=c0(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(ke(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(ke(317));a[Ko]=t}else Ff(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;si(t),a=!1}else po!==null&&(dC(po),po=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Hn.current&1?Tr===0&&(Tr=3):G5())),t.updateQueue!==null&&(t.flags|=4),si(t),null);case 4:return zf(),rC(e,t),e===null&&Om(t.stateNode.containerInfo),si(t),null;case 10:return R5(t.type._context),si(t),null;case 17:return Yi(t.type)&&Wy(),si(t),null;case 19:if(Mn(Hn),a=t.memoizedState,a===null)return si(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)up(a,!1);else{if(Tr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Xy(e),o!==null){for(t.flags|=128,up(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tn(Hn,Hn.current&1|2),t.child}e=e.sibling}a.tail!==null&&or()>Bf&&(t.flags|=128,r=!0,up(a,!1),t.lanes=4194304)}else{if(!r)if(e=Xy(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),up(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!zn)return si(t),null}else 2*or()-a.renderingStartTime>Bf&&n!==1073741824&&(t.flags|=128,r=!0,up(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=or(),t.sibling=null,n=Hn.current,Tn(Hn,r?n&1|2:n&1),t):(si(t),null);case 22:case 23:return q5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ca&1073741824&&(si(t),t.subtreeFlags&6&&(t.flags|=8192)):si(t),null;case 24:return null;case 25:return null}throw Error(ke(156,t.tag))}function aZ(e,t){switch(k5(t),t.tag){case 1:return Yi(t.type)&&Wy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zf(),Mn(Ki),Mn(pi),D5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return M5(t),null;case 13:if(Mn(Hn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ke(340));Ff()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mn(Hn),null;case 4:return zf(),null;case 10:return R5(t.type._context),null;case 22:case 23:return q5(),null;case 24:return null;default:return null}}var h0=!1,ci=!1,oZ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Gd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xn(e,t,r)}else n.current=null}function iC(e,t,n){try{n()}catch(r){Xn(e,t,r)}}var p7=!1;function sZ(e,t){if(Bx=By,e=lI(),C5(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var v;h!==n||i!==0&&h.nodeType!==3||(s=o+i),h!==a||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(v=h.firstChild)!==null;)p=h,h=v;for(;;){if(h===e)break t;if(p===n&&++c===i&&(s=o),p===a&&++f===r&&(l=o),(v=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vx={focusedElem:e,selectionRange:n},By=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,_=y.memoizedState,b=t.stateNode,S=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:lo(t.type,m),_);b.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ke(163))}}catch(E){Xn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return y=p7,p7=!1,y}function Zp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&iC(t,n,a)}i=i.next}while(i!==r)}}function U_(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function aC(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function aL(e){var t=e.alternate;t!==null&&(e.alternate=null,aL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ko],delete t[Am],delete t[Wx],delete t[UY],delete t[HY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oL(e){return e.tag===5||e.tag===3||e.tag===4}function m7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oL(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function oC(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hy));else if(r!==4&&(e=e.child,e!==null))for(oC(e,t,n),e=e.sibling;e!==null;)oC(e,t,n),e=e.sibling}function sC(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sC(e,t,n),e=e.sibling;e!==null;)sC(e,t,n),e=e.sibling}var Yr=null,co=!1;function Tl(e,t,n){for(n=n.child;n!==null;)sL(e,t,n),n=n.sibling}function sL(e,t,n){if(es&&typeof es.onCommitFiberUnmount=="function")try{es.onCommitFiberUnmount(D_,n)}catch{}switch(n.tag){case 5:ci||Gd(n,t);case 6:var r=Yr,i=co;Yr=null,Tl(e,t,n),Yr=r,co=i,Yr!==null&&(co?(e=Yr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Yr.removeChild(n.stateNode));break;case 18:Yr!==null&&(co?(e=Yr,n=n.stateNode,e.nodeType===8?xS(e.parentNode,n):e.nodeType===1&&xS(e,n),km(e)):xS(Yr,n.stateNode));break;case 4:r=Yr,i=co,Yr=n.stateNode.containerInfo,co=!0,Tl(e,t,n),Yr=r,co=i;break;case 0:case 11:case 14:case 15:if(!ci&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&iC(n,t,o),i=i.next}while(i!==r)}Tl(e,t,n);break;case 1:if(!ci&&(Gd(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Xn(n,t,s)}Tl(e,t,n);break;case 21:Tl(e,t,n);break;case 22:n.mode&1?(ci=(r=ci)||n.memoizedState!==null,Tl(e,t,n),ci=r):Tl(e,t,n);break;default:Tl(e,t,n)}}function g7(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oZ),t.forEach(function(r){var i=gZ.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function oo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Yr=s.stateNode,co=!1;break e;case 3:Yr=s.stateNode.containerInfo,co=!0;break e;case 4:Yr=s.stateNode.containerInfo,co=!0;break e}s=s.return}if(Yr===null)throw Error(ke(160));sL(a,o,i),Yr=null,co=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Xn(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lL(t,e),t=t.sibling}function lL(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(oo(t,e),zo(e),r&4){try{Zp(3,e,e.return),U_(3,e)}catch(m){Xn(e,e.return,m)}try{Zp(5,e,e.return)}catch(m){Xn(e,e.return,m)}}break;case 1:oo(t,e),zo(e),r&512&&n!==null&&Gd(n,n.return);break;case 5:if(oo(t,e),zo(e),r&512&&n!==null&&Gd(n,n.return),e.flags&32){var i=e.stateNode;try{wm(i,"")}catch(m){Xn(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&OA(i,a),Ax(s,o);var c=Ax(s,a);for(o=0;o<l.length;o+=2){var f=l[o],h=l[o+1];f==="style"?MA(i,h):f==="dangerouslySetInnerHTML"?IA(i,h):f==="children"?wm(i,h):d5(i,f,h,c)}switch(s){case"input":kx(i,a);break;case"textarea":RA(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var v=a.value;v!=null?mf(i,!!a.multiple,v,!1):p!==!!a.multiple&&(a.defaultValue!=null?mf(i,!!a.multiple,a.defaultValue,!0):mf(i,!!a.multiple,a.multiple?[]:"",!1))}i[Am]=a}catch(m){Xn(e,e.return,m)}}break;case 6:if(oo(t,e),zo(e),r&4){if(e.stateNode===null)throw Error(ke(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){Xn(e,e.return,m)}}break;case 3:if(oo(t,e),zo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{km(t.containerInfo)}catch(m){Xn(e,e.return,m)}break;case 4:oo(t,e),zo(e);break;case 13:oo(t,e),zo(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(H5=or())),r&4&&g7(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ci=(c=ci)||f,oo(t,e),ci=c):oo(t,e),zo(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(qe=e,f=e.child;f!==null;){for(h=qe=f;qe!==null;){switch(p=qe,v=p.child,p.tag){case 0:case 11:case 14:case 15:Zp(4,p,p.return);break;case 1:Gd(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Xn(r,n,m)}}break;case 5:Gd(p,p.return);break;case 22:if(p.memoizedState!==null){y7(h);continue}}v!==null?(v.return=p,qe=v):y7(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=h.stateNode,l=h.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=LA("display",o))}catch(m){Xn(e,e.return,m)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(m){Xn(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:oo(t,e),zo(e),r&4&&g7(e);break;case 21:break;default:oo(t,e),zo(e)}}function zo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(oL(n)){var r=n;break e}n=n.return}throw Error(ke(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(wm(i,""),r.flags&=-33);var a=m7(e);sC(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=m7(e);oC(e,s,o);break;default:throw Error(ke(161))}}catch(l){Xn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lZ(e,t,n){qe=e,uL(e)}function uL(e,t,n){for(var r=(e.mode&1)!==0;qe!==null;){var i=qe,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||h0;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||ci;s=h0;var c=ci;if(h0=o,(ci=l)&&!c)for(qe=i;qe!==null;)o=qe,l=o.child,o.tag===22&&o.memoizedState!==null?_7(i):l!==null?(l.return=o,qe=l):_7(i);for(;a!==null;)qe=a,uL(a),a=a.sibling;qe=i,h0=s,ci=c}v7(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,qe=a):v7(e)}}function v7(e){for(;qe!==null;){var t=qe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ci||U_(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ci)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:lo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&e7(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}e7(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&km(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ke(163))}ci||t.flags&512&&aC(t)}catch(p){Xn(t,t.return,p)}}if(t===e){qe=null;break}if(n=t.sibling,n!==null){n.return=t.return,qe=n;break}qe=t.return}}function y7(e){for(;qe!==null;){var t=qe;if(t===e){qe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,qe=n;break}qe=t.return}}function _7(e){for(;qe!==null;){var t=qe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{U_(4,t)}catch(l){Xn(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Xn(t,i,l)}}var a=t.return;try{aC(t)}catch(l){Xn(t,a,l)}break;case 5:var o=t.return;try{aC(t)}catch(l){Xn(t,o,l)}}}catch(l){Xn(t,t.return,l)}if(t===e){qe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,qe=s;break}qe=t.return}}var uZ=Math.ceil,t1=al.ReactCurrentDispatcher,V5=al.ReactCurrentOwner,Ha=al.ReactCurrentBatchConfig,en=0,Br=null,vr=null,Qr=0,ca=0,Kd=_u(0),Tr=0,Fm=null,Tc=0,H_=0,U5=0,Qp=null,Hi=null,H5=0,Bf=1/0,Is=null,n1=!1,lC=null,nu=null,p0=!1,Gl=null,r1=0,Xp=0,uC=null,ny=-1,ry=0;function Ai(){return en&6?or():ny!==-1?ny:ny=or()}function ru(e){return e.mode&1?en&2&&Qr!==0?Qr&-Qr:qY.transition!==null?(ry===0&&(ry=qA()),ry):(e=_n,e!==0||(e=window.event,e=e===void 0?16:JA(e.type)),e):1}function So(e,t,n,r){if(50<Xp)throw Xp=0,uC=null,Error(ke(185));xg(e,n,r),(!(en&2)||e!==Br)&&(e===Br&&(!(en&2)&&(H_|=n),Tr===4&&Ul(e,Qr)),Zi(e,r),n===1&&en===0&&!(t.mode&1)&&(Bf=or()+500,j_&&bu()))}function Zi(e,t){var n=e.callbackNode;qK(e,t);var r=jy(e,e===Br?Qr:0);if(r===0)n!==null&&Pk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Pk(n),t===1)e.tag===0?WY(b7.bind(null,e)):yI(b7.bind(null,e)),BY(function(){!(en&6)&&bu()}),n=null;else{switch(GA(r)){case 1:n=g5;break;case 4:n=HA;break;case 16:n=zy;break;case 536870912:n=WA;break;default:n=zy}n=vL(n,cL.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cL(e,t){if(ny=-1,ry=0,en&6)throw Error(ke(327));var n=e.callbackNode;if(bf()&&e.callbackNode!==n)return null;var r=jy(e,e===Br?Qr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=i1(e,r);else{t=r;var i=en;en|=2;var a=fL();(Br!==e||Qr!==t)&&(Is=null,Bf=or()+500,dc(e,t));do try{fZ();break}catch(s){dL(e,s)}while(1);O5(),t1.current=a,en=i,vr!==null?t=0:(Br=null,Qr=0,t=Tr)}if(t!==0){if(t===2&&(i=Nx(e),i!==0&&(r=i,t=cC(e,i))),t===1)throw n=Fm,dc(e,0),Ul(e,r),Zi(e,or()),n;if(t===6)Ul(e,r);else{if(i=e.current.alternate,!(r&30)&&!cZ(i)&&(t=i1(e,r),t===2&&(a=Nx(e),a!==0&&(r=a,t=cC(e,a))),t===1))throw n=Fm,dc(e,0),Ul(e,r),Zi(e,or()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ke(345));case 2:Yu(e,Hi,Is);break;case 3:if(Ul(e,r),(r&130023424)===r&&(t=H5+500-or(),10<t)){if(jy(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ai(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hx(Yu.bind(null,e,Hi,Is),t);break}Yu(e,Hi,Is);break;case 4:if(Ul(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-bo(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=or()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uZ(r/1960))-r,10<r){e.timeoutHandle=Hx(Yu.bind(null,e,Hi,Is),r);break}Yu(e,Hi,Is);break;case 5:Yu(e,Hi,Is);break;default:throw Error(ke(329))}}}return Zi(e,or()),e.callbackNode===n?cL.bind(null,e):null}function cC(e,t){var n=Qp;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),e=i1(e,t),e!==2&&(t=Hi,Hi=n,t!==null&&dC(t)),e}function dC(e){Hi===null?Hi=e:Hi.push.apply(Hi,e)}function cZ(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!ko(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Ul(e,t){for(t&=~U5,t&=~H_,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bo(t),r=1<<n;e[n]=-1,t&=~r}}function b7(e){if(en&6)throw Error(ke(327));bf();var t=jy(e,0);if(!(t&1))return Zi(e,or()),null;var n=i1(e,t);if(e.tag!==0&&n===2){var r=Nx(e);r!==0&&(t=r,n=cC(e,r))}if(n===1)throw n=Fm,dc(e,0),Ul(e,t),Zi(e,or()),n;if(n===6)throw Error(ke(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yu(e,Hi,Is),Zi(e,or()),null}function W5(e,t){var n=en;en|=1;try{return e(t)}finally{en=n,en===0&&(Bf=or()+500,j_&&bu())}}function Pc(e){Gl!==null&&Gl.tag===0&&!(en&6)&&bf();var t=en;en|=1;var n=Ha.transition,r=_n;try{if(Ha.transition=null,_n=1,e)return e()}finally{_n=r,Ha.transition=n,en=t,!(en&6)&&bu()}}function q5(){ca=Kd.current,Mn(Kd)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jY(n)),vr!==null)for(n=vr.return;n!==null;){var r=n;switch(k5(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Wy();break;case 3:zf(),Mn(Ki),Mn(pi),D5();break;case 5:M5(r);break;case 4:zf();break;case 13:Mn(Hn);break;case 19:Mn(Hn);break;case 10:R5(r.type._context);break;case 22:case 23:q5()}n=n.return}if(Br=e,vr=e=iu(e.current,null),Qr=ca=t,Tr=0,Fm=null,U5=H_=Tc=0,Hi=Qp=null,rc!==null){for(t=0;t<rc.length;t++)if(n=rc[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}rc=null}return e}function dL(e,t){do{var n=vr;try{if(O5(),J0.current=e1,Jy){for(var r=qn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Jy=!1}if(kc=0,zr=Cr=qn=null,Yp=!1,Mm=0,V5.current=null,n===null||n.return===null){Tr=1,Fm=t,vr=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Qr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=s,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=s7(o);if(v!==null){v.flags&=-257,l7(v,o,s,a,t),v.mode&1&&o7(a,c,t),t=v,l=c;var y=t.updateQueue;if(y===null){var m=new Set;m.add(l),t.updateQueue=m}else y.add(l);break e}else{if(!(t&1)){o7(a,c,t),G5();break e}l=Error(ke(426))}}else if(zn&&s.mode&1){var _=s7(o);if(_!==null){!(_.flags&65536)&&(_.flags|=256),l7(_,o,s,a,t),T5(jf(l,s));break e}}a=l=jf(l,s),Tr!==4&&(Tr=2),Qp===null?Qp=[a]:Qp.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var b=KI(a,l,t);Jk(a,b);break e;case 1:s=l;var S=a.type,C=a.stateNode;if(!(a.flags&128)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(nu===null||!nu.has(C)))){a.flags|=65536,t&=-t,a.lanes|=t;var E=YI(a,s,t);Jk(a,E);break e}}a=a.return}while(a!==null)}pL(n)}catch(R){t=R,vr===n&&n!==null&&(vr=n=n.return);continue}break}while(1)}function fL(){var e=t1.current;return t1.current=e1,e===null?e1:e}function G5(){(Tr===0||Tr===3||Tr===2)&&(Tr=4),Br===null||!(Tc&268435455)&&!(H_&268435455)||Ul(Br,Qr)}function i1(e,t){var n=en;en|=2;var r=fL();(Br!==e||Qr!==t)&&(Is=null,dc(e,t));do try{dZ();break}catch(i){dL(e,i)}while(1);if(O5(),en=n,t1.current=r,vr!==null)throw Error(ke(261));return Br=null,Qr=0,Tr}function dZ(){for(;vr!==null;)hL(vr)}function fZ(){for(;vr!==null&&!FK();)hL(vr)}function hL(e){var t=gL(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?pL(e):vr=t,V5.current=null}function pL(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aZ(n,t),n!==null){n.flags&=32767,vr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Tr=6,vr=null;return}}else if(n=iZ(n,t,ca),n!==null){vr=n;return}if(t=t.sibling,t!==null){vr=t;return}vr=t=e}while(t!==null);Tr===0&&(Tr=5)}function Yu(e,t,n){var r=_n,i=Ha.transition;try{Ha.transition=null,_n=1,hZ(e,t,n,r)}finally{Ha.transition=i,_n=r}return null}function hZ(e,t,n,r){do bf();while(Gl!==null);if(en&6)throw Error(ke(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ke(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(GK(e,a),e===Br&&(vr=Br=null,Qr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||p0||(p0=!0,vL(zy,function(){return bf(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Ha.transition,Ha.transition=null;var o=_n;_n=1;var s=en;en|=4,V5.current=null,sZ(e,n),lL(n,e),LY(Vx),By=!!Bx,Vx=Bx=null,e.current=n,lZ(n),$K(),en=s,_n=o,Ha.transition=a}else e.current=n;if(p0&&(p0=!1,Gl=e,r1=i),a=e.pendingLanes,a===0&&(nu=null),BK(n.stateNode),Zi(e,or()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(n1)throw n1=!1,e=lC,lC=null,e;return r1&1&&e.tag!==0&&bf(),a=e.pendingLanes,a&1?e===uC?Xp++:(Xp=0,uC=e):Xp=0,bu(),null}function bf(){if(Gl!==null){var e=GA(r1),t=Ha.transition,n=_n;try{if(Ha.transition=null,_n=16>e?16:e,Gl===null)var r=!1;else{if(e=Gl,Gl=null,r1=0,en&6)throw Error(ke(331));var i=en;for(en|=4,qe=e.current;qe!==null;){var a=qe,o=a.child;if(qe.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(qe=c;qe!==null;){var f=qe;switch(f.tag){case 0:case 11:case 15:Zp(8,f,a)}var h=f.child;if(h!==null)h.return=f,qe=h;else for(;qe!==null;){f=qe;var p=f.sibling,v=f.return;if(aL(f),f===c){qe=null;break}if(p!==null){p.return=v,qe=p;break}qe=v}}}var y=a.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var _=m.sibling;m.sibling=null,m=_}while(m!==null)}}qe=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,qe=o;else e:for(;qe!==null;){if(a=qe,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Zp(9,a,a.return)}var b=a.sibling;if(b!==null){b.return=a.return,qe=b;break e}qe=a.return}}var S=e.current;for(qe=S;qe!==null;){o=qe;var C=o.child;if(o.subtreeFlags&2064&&C!==null)C.return=o,qe=C;else e:for(o=S;qe!==null;){if(s=qe,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:U_(9,s)}}catch(R){Xn(s,s.return,R)}if(s===o){qe=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,qe=E;break e}qe=s.return}}if(en=i,bu(),es&&typeof es.onPostCommitFiberRoot=="function")try{es.onPostCommitFiberRoot(D_,e)}catch{}r=!0}return r}finally{_n=n,Ha.transition=t}}return!1}function S7(e,t,n){t=jf(n,t),t=KI(e,t,1),e=tu(e,t,1),t=Ai(),e!==null&&(xg(e,1,t),Zi(e,t))}function Xn(e,t,n){if(e.tag===3)S7(e,e,n);else for(;t!==null;){if(t.tag===3){S7(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nu===null||!nu.has(r))){e=jf(n,e),e=YI(t,e,1),t=tu(t,e,1),e=Ai(),t!==null&&(xg(t,1,e),Zi(t,e));break}}t=t.return}}function pZ(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ai(),e.pingedLanes|=e.suspendedLanes&n,Br===e&&(Qr&n)===n&&(Tr===4||Tr===3&&(Qr&130023424)===Qr&&500>or()-H5?dc(e,0):U5|=n),Zi(e,t)}function mL(e,t){t===0&&(e.mode&1?(t=i0,i0<<=1,!(i0&130023424)&&(i0=4194304)):t=1);var n=Ai();e=Xs(e,t),e!==null&&(xg(e,t,n),Zi(e,n))}function mZ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mL(e,n)}function gZ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ke(314))}r!==null&&r.delete(t),mL(e,n)}var gL;gL=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ki.current)Gi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gi=!1,rZ(e,t,n);Gi=!!(e.flags&131072)}else Gi=!1,zn&&t.flags&1048576&&_I(t,Ky,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ty(e,t),e=t.pendingProps;var i=Nf(t,pi.current);_f(t,n),i=F5(null,t,r,e,i,n);var a=$5();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yi(r)?(a=!0,qy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,I5(t),i.updater=B_,t.stateNode=i,i._reactInternals=t,Qx(t,r,e,n),t=eC(null,t,r,!0,a,n)):(t.tag=0,zn&&a&&E5(t),ki(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ty(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yZ(r),e=lo(r,e),i){case 0:t=Jx(null,t,r,e,n);break e;case 1:t=d7(null,t,r,e,n);break e;case 11:t=u7(null,t,r,e,n);break e;case 14:t=c7(null,t,r,lo(r.type,e),n);break e}throw Error(ke(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lo(r,i),Jx(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lo(r,i),d7(e,t,r,i,n);case 3:e:{if(JI(t),e===null)throw Error(ke(387));r=t.pendingProps,a=t.memoizedState,i=a.element,xI(e,t),Qy(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=jf(Error(ke(423)),t),t=f7(e,t,r,n,i);break e}else if(r!==i){i=jf(Error(ke(424)),t),t=f7(e,t,r,n,i);break e}else for(da=eu(t.stateNode.containerInfo.firstChild),ha=t,zn=!0,po=null,n=TI(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ff(),r===i){t=Js(e,t,n);break e}ki(e,t,r,n)}t=t.child}return t;case 5:return PI(t),e===null&&Kx(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Ux(r,i)?o=null:a!==null&&Ux(r,a)&&(t.flags|=32),XI(e,t),ki(e,t,o,n),t.child;case 6:return e===null&&Kx(t),null;case 13:return eL(e,t,n);case 4:return L5(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$f(t,null,r,n):ki(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lo(r,i),u7(e,t,r,i,n);case 7:return ki(e,t,t.pendingProps,n),t.child;case 8:return ki(e,t,t.pendingProps.children,n),t.child;case 12:return ki(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Tn(Yy,r._currentValue),r._currentValue=o,a!==null)if(ko(a.value,o)){if(a.children===i.children&&!Ki.current){t=Js(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Vs(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Yx(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ke(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Yx(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}ki(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_f(t,n),i=Ga(i),r=r(i),t.flags|=1,ki(e,t,r,n),t.child;case 14:return r=t.type,i=lo(r,t.pendingProps),i=lo(r.type,i),c7(e,t,r,i,n);case 15:return ZI(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lo(r,i),ty(e,t),t.tag=1,Yi(r)?(e=!0,qy(t)):e=!1,_f(t,n),EI(t,r,i),Qx(t,r,i,n),eC(null,t,r,!0,e,n);case 19:return tL(e,t,n);case 22:return QI(e,t,n)}throw Error(ke(156,t.tag))};function vL(e,t){return UA(e,t)}function vZ(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Va(e,t,n,r){return new vZ(e,t,n,r)}function K5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yZ(e){if(typeof e=="function")return K5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===h5)return 11;if(e===p5)return 14}return 2}function iu(e,t){var n=e.alternate;return n===null?(n=Va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function iy(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")K5(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $d:return fc(n.children,i,a,t);case f5:o=8,i|=8;break;case Sx:return e=Va(12,n,t,i|2),e.elementType=Sx,e.lanes=a,e;case wx:return e=Va(13,n,t,i),e.elementType=wx,e.lanes=a,e;case xx:return e=Va(19,n,t,i),e.elementType=xx,e.lanes=a,e;case kA:return W_(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case CA:o=10;break e;case EA:o=9;break e;case h5:o=11;break e;case p5:o=14;break e;case Dl:o=16,r=null;break e}throw Error(ke(130,e==null?e:typeof e,""))}return t=Va(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function fc(e,t,n,r){return e=Va(7,e,r,t),e.lanes=n,e}function W_(e,t,n,r){return e=Va(22,e,r,t),e.elementType=kA,e.lanes=n,e.stateNode={isHidden:!1},e}function AS(e,t,n){return e=Va(6,e,null,t),e.lanes=n,e}function IS(e,t,n){return t=Va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _Z(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fS(0),this.expirationTimes=fS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fS(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Y5(e,t,n,r,i,a,o,s,l){return e=new _Z(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Va(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},I5(a),e}function bZ(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fd,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function yL(e){if(!e)return cu;e=e._reactInternals;e:{if(Nc(e)!==e||e.tag!==1)throw Error(ke(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Yi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ke(171))}if(e.tag===1){var n=e.type;if(Yi(n))return vI(e,n,t)}return t}function _L(e,t,n,r,i,a,o,s,l){return e=Y5(n,r,!0,e,i,a,o,s,l),e.context=yL(null),n=e.current,r=Ai(),i=ru(n),a=Vs(r,i),a.callback=t??null,tu(n,a,i),e.current.lanes=i,xg(e,i,r),Zi(e,r),e}function q_(e,t,n,r){var i=t.current,a=Ai(),o=ru(i);return n=yL(n),t.context===null?t.context=n:t.pendingContext=n,t=Vs(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tu(i,t,o),e!==null&&(So(e,i,o,a),X0(e,i,o)),o}function a1(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function w7(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Z5(e,t){w7(e,t),(e=e.alternate)&&w7(e,t)}function SZ(){return null}var bL=typeof reportError=="function"?reportError:function(e){console.error(e)};function Q5(e){this._internalRoot=e}G_.prototype.render=Q5.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ke(409));q_(e,t,null,null)};G_.prototype.unmount=Q5.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pc(function(){q_(null,e,null,null)}),t[Qs]=null}};function G_(e){this._internalRoot=e}G_.prototype.unstable_scheduleHydration=function(e){if(e){var t=ZA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vl.length&&t!==0&&t<Vl[n].priority;n++);Vl.splice(n,0,e),n===0&&XA(e)}};function X5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function K_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function x7(){}function wZ(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var c=a1(o);a.call(c)}}var o=_L(t,r,e,0,null,!1,!1,"",x7);return e._reactRootContainer=o,e[Qs]=o.current,Om(e.nodeType===8?e.parentNode:e),Pc(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=a1(l);s.call(c)}}var l=Y5(e,0,!1,null,null,!1,!1,"",x7);return e._reactRootContainer=l,e[Qs]=l.current,Om(e.nodeType===8?e.parentNode:e),Pc(function(){q_(t,l,n,r)}),l}function Y_(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=a1(o);s.call(l)}}q_(t,o,e,i)}else o=wZ(n,t,e,i,r);return a1(o)}KA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lp(t.pendingLanes);n!==0&&(v5(t,n|1),Zi(t,or()),!(en&6)&&(Bf=or()+500,bu()))}break;case 13:Pc(function(){var r=Xs(e,1);if(r!==null){var i=Ai();So(r,e,1,i)}}),Z5(e,1)}};y5=function(e){if(e.tag===13){var t=Xs(e,134217728);if(t!==null){var n=Ai();So(t,e,134217728,n)}Z5(e,134217728)}};YA=function(e){if(e.tag===13){var t=ru(e),n=Xs(e,t);if(n!==null){var r=Ai();So(n,e,t,r)}Z5(e,t)}};ZA=function(){return _n};QA=function(e,t){var n=_n;try{return _n=e,t()}finally{_n=n}};Lx=function(e,t,n){switch(t){case"input":if(kx(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=z_(r);if(!i)throw Error(ke(90));PA(r),kx(r,i)}}}break;case"textarea":RA(e,n);break;case"select":t=n.value,t!=null&&mf(e,!!n.multiple,t,!1)}};FA=W5;$A=Pc;var xZ={usingClientEntryPoint:!1,Events:[Eg,Vd,z_,DA,NA,W5]},cp={findFiberByHostInstance:nc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},CZ={bundleType:cp.bundleType,version:cp.version,rendererPackageName:cp.rendererPackageName,rendererConfig:cp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:al.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=BA(e),e===null?null:e.stateNode},findFiberByHostInstance:cp.findFiberByHostInstance||SZ,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var m0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!m0.isDisabled&&m0.supportsFiber)try{D_=m0.inject(CZ),es=m0}catch{}}ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xZ;ba.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!X5(t))throw Error(ke(200));return bZ(e,t,null,n)};ba.createRoot=function(e,t){if(!X5(e))throw Error(ke(299));var n=!1,r="",i=bL;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Y5(e,1,!1,null,null,n,!1,r,i),e[Qs]=t.current,Om(e.nodeType===8?e.parentNode:e),new Q5(t)};ba.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ke(188)):(e=Object.keys(e).join(","),Error(ke(268,e)));return e=BA(t),e=e===null?null:e.stateNode,e};ba.flushSync=function(e){return Pc(e)};ba.hydrate=function(e,t,n){if(!K_(t))throw Error(ke(200));return Y_(null,e,t,!0,n)};ba.hydrateRoot=function(e,t,n){if(!X5(e))throw Error(ke(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=bL;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=_L(t,null,e,1,n??null,i,!1,a,o),e[Qs]=t.current,Om(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new G_(t)};ba.render=function(e,t,n){if(!K_(t))throw Error(ke(200));return Y_(null,e,t,!1,n)};ba.unmountComponentAtNode=function(e){if(!K_(e))throw Error(ke(40));return e._reactRootContainer?(Pc(function(){Y_(null,null,e,!1,function(){e._reactRootContainer=null,e[Qs]=null})}),!0):!1};ba.unstable_batchedUpdates=W5;ba.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!K_(n))throw Error(ke(200));if(e==null||e._reactInternals===void 0)throw Error(ke(38));return Y_(e,t,n,!1,r)};ba.version="18.2.0-next-9e3b772b8-20220608";function SL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SL)}catch(e){console.error(e)}}SL(),_A.exports=ba;var Yo=_A.exports,C7=Yo;_x.createRoot=C7.createRoot,_x.hydrateRoot=C7.hydrateRoot;function EZ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function kZ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var TZ=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kZ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=EZ(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),li="-ms-",o1="-moz-",un="-webkit-",wL="comm",J5="rule",e4="decl",PZ="@import",xL="@keyframes",OZ="@layer",RZ=Math.abs,Z_=String.fromCharCode,AZ=Object.assign;function IZ(e,t){return Zr(e,0)^45?(((t<<2^Zr(e,0))<<2^Zr(e,1))<<2^Zr(e,2))<<2^Zr(e,3):0}function CL(e){return e.trim()}function LZ(e,t){return(e=t.exec(e))?e[0]:e}function dn(e,t,n){return e.replace(t,n)}function fC(e,t){return e.indexOf(t)}function Zr(e,t){return e.charCodeAt(t)|0}function $m(e,t,n){return e.slice(t,n)}function Wo(e){return e.length}function t4(e){return e.length}function g0(e,t){return t.push(e),e}function MZ(e,t){return e.map(t).join("")}var Q_=1,Vf=1,EL=0,ea=0,gr=0,hh="";function X_(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Q_,column:Vf,length:o,return:""}}function dp(e,t){return AZ(X_("",null,null,"",null,null,0),e,{length:-e.length},t)}function DZ(){return gr}function NZ(){return gr=ea>0?Zr(hh,--ea):0,Vf--,gr===10&&(Vf=1,Q_--),gr}function pa(){return gr=ea<EL?Zr(hh,ea++):0,Vf++,gr===10&&(Vf=1,Q_++),gr}function ns(){return Zr(hh,ea)}function ay(){return ea}function Tg(e,t){return $m(hh,e,t)}function zm(e){switch(e){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 kL(e){return Q_=Vf=1,EL=Wo(hh=e),ea=0,[]}function TL(e){return hh="",e}function oy(e){return CL(Tg(ea-1,hC(e===91?e+2:e===40?e+1:e)))}function FZ(e){for(;(gr=ns())&&gr<33;)pa();return zm(e)>2||zm(gr)>3?"":" "}function $Z(e,t){for(;--t&&pa()&&!(gr<48||gr>102||gr>57&&gr<65||gr>70&&gr<97););return Tg(e,ay()+(t<6&&ns()==32&&pa()==32))}function hC(e){for(;pa();)switch(gr){case e:return ea;case 34:case 39:e!==34&&e!==39&&hC(gr);break;case 40:e===41&&hC(e);break;case 92:pa();break}return ea}function zZ(e,t){for(;pa()&&e+gr!==47+10;)if(e+gr===42+42&&ns()===47)break;return"/*"+Tg(t,ea-1)+"*"+Z_(e===47?e:pa())}function jZ(e){for(;!zm(ns());)pa();return Tg(e,ea)}function BZ(e){return TL(sy("",null,null,null,[""],e=kL(e),0,[0],e))}function sy(e,t,n,r,i,a,o,s,l){for(var c=0,f=0,h=o,p=0,v=0,y=0,m=1,_=1,b=1,S=0,C="",E=i,R=a,A=r,I=C;_;)switch(y=S,S=pa()){case 40:if(y!=108&&Zr(I,h-1)==58){fC(I+=dn(oy(S),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=oy(S);break;case 9:case 10:case 13:case 32:I+=FZ(y);break;case 92:I+=$Z(ay()-1,7);continue;case 47:switch(ns()){case 42:case 47:g0(VZ(zZ(pa(),ay()),t,n),l);break;default:I+="/"}break;case 123*m:s[c++]=Wo(I)*b;case 125*m:case 59:case 0:switch(S){case 0:case 125:_=0;case 59+f:b==-1&&(I=dn(I,/\f/g,"")),v>0&&Wo(I)-h&&g0(v>32?k7(I+";",r,n,h-1):k7(dn(I," ","")+";",r,n,h-2),l);break;case 59:I+=";";default:if(g0(A=E7(I,t,n,c,f,i,s,C,E=[],R=[],h),a),S===123)if(f===0)sy(I,t,A,A,E,a,h,s,R);else switch(p===99&&Zr(I,3)===110?100:p){case 100:case 108:case 109:case 115:sy(e,A,A,r&&g0(E7(e,A,A,0,0,i,s,C,i,E=[],h),R),i,R,h,s,r?E:R);break;default:sy(I,A,A,A,[""],R,0,s,R)}}c=f=v=0,m=b=1,C=I="",h=o;break;case 58:h=1+Wo(I),v=y;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&NZ()==125)continue}switch(I+=Z_(S),S*m){case 38:b=f>0?1:(I+="\f",-1);break;case 44:s[c++]=(Wo(I)-1)*b,b=1;break;case 64:ns()===45&&(I+=oy(pa())),p=ns(),f=h=Wo(C=I+=jZ(ay())),S++;break;case 45:y===45&&Wo(I)==2&&(m=0)}}return a}function E7(e,t,n,r,i,a,o,s,l,c,f){for(var h=i-1,p=i===0?a:[""],v=t4(p),y=0,m=0,_=0;y<r;++y)for(var b=0,S=$m(e,h+1,h=RZ(m=o[y])),C=e;b<v;++b)(C=CL(m>0?p[b]+" "+S:dn(S,/&\f/g,p[b])))&&(l[_++]=C);return X_(e,t,n,i===0?J5:s,l,c,f)}function VZ(e,t,n){return X_(e,t,n,wL,Z_(DZ()),$m(e,2,-2),0)}function k7(e,t,n,r){return X_(e,t,n,e4,$m(e,0,r),$m(e,r+1,-1),r)}function Sf(e,t){for(var n="",r=t4(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function UZ(e,t,n,r){switch(e.type){case OZ:if(e.children.length)break;case PZ:case e4:return e.return=e.return||e.value;case wL:return"";case xL:return e.return=e.value+"{"+Sf(e.children,r)+"}";case J5:e.value=e.props.join(",")}return Wo(n=Sf(e.children,r))?e.return=e.value+"{"+n+"}":""}function HZ(e){var t=t4(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function WZ(e){return function(t){t.root||(t=t.return)&&e(t)}}var T7=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function PL(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qZ=function(t,n,r){for(var i=0,a=0;i=a,a=ns(),i===38&&a===12&&(n[r]=1),!zm(a);)pa();return Tg(t,ea)},GZ=function(t,n){var r=-1,i=44;do switch(zm(i)){case 0:i===38&&ns()===12&&(n[r]=1),t[r]+=qZ(ea-1,n,r);break;case 2:t[r]+=oy(i);break;case 4:if(i===44){t[++r]=ns()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Z_(i)}while(i=pa());return t},KZ=function(t,n){return TL(GZ(kL(t),n))},P7=new WeakMap,YZ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!P7.get(r))&&!i){P7.set(t,!0);for(var a=[],o=KZ(n,a),s=r.props,l=0,c=0;l<o.length;l++)for(var f=0;f<s.length;f++,c++)t.props[c]=a[l]?o[l].replace(/&\f/g,s[f]):s[f]+" "+o[l]}}},ZZ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function OL(e,t){switch(IZ(e,t)){case 5103:return un+"print-"+e+e;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 un+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return un+e+o1+e+li+e+e;case 6828:case 4268:return un+e+li+e+e;case 6165:return un+e+li+"flex-"+e+e;case 5187:return un+e+dn(e,/(\w+).+(:[^]+)/,un+"box-$1$2"+li+"flex-$1$2")+e;case 5443:return un+e+li+"flex-item-"+dn(e,/flex-|-self/,"")+e;case 4675:return un+e+li+"flex-line-pack"+dn(e,/align-content|flex-|-self/,"")+e;case 5548:return un+e+li+dn(e,"shrink","negative")+e;case 5292:return un+e+li+dn(e,"basis","preferred-size")+e;case 6060:return un+"box-"+dn(e,"-grow","")+un+e+li+dn(e,"grow","positive")+e;case 4554:return un+dn(e,/([^-])(transform)/g,"$1"+un+"$2")+e;case 6187:return dn(dn(dn(e,/(zoom-|grab)/,un+"$1"),/(image-set)/,un+"$1"),e,"")+e;case 5495:case 3959:return dn(e,/(image-set\([^]*)/,un+"$1$`$1");case 4968:return dn(dn(e,/(.+:)(flex-)?(.*)/,un+"box-pack:$3"+li+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+un+e+e;case 4095:case 3583:case 4068:case 2532:return dn(e,/(.+)-inline(.+)/,un+"$1$2")+e;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(Wo(e)-1-t>6)switch(Zr(e,t+1)){case 109:if(Zr(e,t+4)!==45)break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+o1+(Zr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fC(e,"stretch")?OL(dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zr(e,t+1)!==115)break;case 6444:switch(Zr(e,Wo(e)-3-(~fC(e,"!important")&&10))){case 107:return dn(e,":",":"+un)+e;case 101:return dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+un+(Zr(e,14)===45?"inline-":"")+"box$3$1"+un+"$2$3$1"+li+"$2box$3")+e}break;case 5936:switch(Zr(e,t+11)){case 114:return un+e+li+dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+li+dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+li+dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return un+e+li+e+e}return e}var QZ=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case e4:t.return=OL(t.value,t.length);break;case xL:return Sf([dp(t,{value:dn(t.value,"@","@"+un)})],i);case J5:if(t.length)return MZ(t.props,function(a){switch(LZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sf([dp(t,{props:[dn(a,/:(read-\w+)/,":"+o1+"$1")]})],i);case"::placeholder":return Sf([dp(t,{props:[dn(a,/:(plac\w+)/,":"+un+"input-$1")]}),dp(t,{props:[dn(a,/:(plac\w+)/,":"+o1+"$1")]}),dp(t,{props:[dn(a,/:(plac\w+)/,li+"input-$1")]})],i)}return""})}},XZ=[QZ],JZ=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var _=m.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||XZ,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var _=m.getAttribute("data-emotion").split(" "),b=1;b<_.length;b++)a[_[b]]=!0;s.push(m)});var l,c=[YZ,ZZ];{var f,h=[UZ,WZ(function(m){f.insert(m)})],p=HZ(c.concat(i,h)),v=function(_){return Sf(BZ(_),p)};l=function(_,b,S,C){f=S,v(_?_+"{"+b.styles+"}":b.styles),C&&(y.inserted[b.name]=!0)}}var y={key:n,sheet:new TZ({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return y.sheet.hydrate(s),y};function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Je.apply(this,arguments)}var RL={exports:{}},bn={};/** @license React v16.13.1
    4141 * react-is.production.min.js
    4242 *
     
    4545 * This source code is licensed under the MIT license found in the
    4646 * LICENSE file in the root directory of this source tree.
    47  */var Vr=typeof Symbol=="function"&&Symbol.for,n4=Vr?Symbol.for("react.element"):60103,r4=Vr?Symbol.for("react.portal"):60106,J_=Vr?Symbol.for("react.fragment"):60107,eb=Vr?Symbol.for("react.strict_mode"):60108,tb=Vr?Symbol.for("react.profiler"):60114,nb=Vr?Symbol.for("react.provider"):60109,rb=Vr?Symbol.for("react.context"):60110,i4=Vr?Symbol.for("react.async_mode"):60111,ib=Vr?Symbol.for("react.concurrent_mode"):60111,ab=Vr?Symbol.for("react.forward_ref"):60112,ob=Vr?Symbol.for("react.suspense"):60113,eQ=Vr?Symbol.for("react.suspense_list"):60120,sb=Vr?Symbol.for("react.memo"):60115,lb=Vr?Symbol.for("react.lazy"):60116,tQ=Vr?Symbol.for("react.block"):60121,nQ=Vr?Symbol.for("react.fundamental"):60117,rQ=Vr?Symbol.for("react.responder"):60118,iQ=Vr?Symbol.for("react.scope"):60119;function wa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case n4:switch(e=e.type,e){case i4:case ib:case J_:case tb:case eb:case ob:return e;default:switch(e=e&&e.$$typeof,e){case rb:case ab:case lb:case sb:case nb:return e;default:return t}}case r4:return t}}}function AL(e){return wa(e)===ib}bn.AsyncMode=i4;bn.ConcurrentMode=ib;bn.ContextConsumer=rb;bn.ContextProvider=nb;bn.Element=n4;bn.ForwardRef=ab;bn.Fragment=J_;bn.Lazy=lb;bn.Memo=sb;bn.Portal=r4;bn.Profiler=tb;bn.StrictMode=eb;bn.Suspense=ob;bn.isAsyncMode=function(e){return AL(e)||wa(e)===i4};bn.isConcurrentMode=AL;bn.isContextConsumer=function(e){return wa(e)===rb};bn.isContextProvider=function(e){return wa(e)===nb};bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===n4};bn.isForwardRef=function(e){return wa(e)===ab};bn.isFragment=function(e){return wa(e)===J_};bn.isLazy=function(e){return wa(e)===lb};bn.isMemo=function(e){return wa(e)===sb};bn.isPortal=function(e){return wa(e)===r4};bn.isProfiler=function(e){return wa(e)===tb};bn.isStrictMode=function(e){return wa(e)===eb};bn.isSuspense=function(e){return wa(e)===ob};bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===J_||e===ib||e===tb||e===eb||e===ob||e===eQ||typeof e=="object"&&e!==null&&(e.$$typeof===lb||e.$$typeof===sb||e.$$typeof===nb||e.$$typeof===rb||e.$$typeof===ab||e.$$typeof===nQ||e.$$typeof===rQ||e.$$typeof===iQ||e.$$typeof===tQ)};bn.typeOf=wa;RL.exports=bn;var aQ=RL.exports,IL=aQ,oQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sQ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},LL={};LL[IL.ForwardRef]=oQ;LL[IL.Memo]=sQ;var lQ=!0;function ML(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var a4=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||lQ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},o4=function(t,n,r){a4(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function uQ(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cQ={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,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},dQ=/[A-Z]|^ms/g,fQ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DL=function(t){return t.charCodeAt(1)===45},O7=function(t){return t!=null&&typeof t!="boolean"},LS=PL(function(e){return DL(e)?e:e.replace(dQ,"-$&").toLowerCase()}),R7=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fQ,function(r,i,a){return qo={name:i,styles:a,next:qo},i})}return cQ[t]!==1&&!DL(t)&&typeof n=="number"&&n!==0?n+"px":n};function jm(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return qo={name:n.name,styles:n.styles,next:qo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)qo={name:r.name,styles:r.styles,next:qo},r=r.next;var i=n.styles+";";return i}return hQ(e,t,n)}case"function":{if(e!==void 0){var a=qo,o=n(e);return qo=a,jm(e,t,o)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function hQ(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=jm(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=a+"{"+t[o]+"}":O7(o)&&(r+=LS(a)+":"+R7(a,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)O7(o[s])&&(r+=LS(a)+":"+R7(a,o[s])+";");else{var l=jm(e,t,o);switch(a){case"animation":case"animationName":{r+=LS(a)+":"+l+";";break}default:r+=a+"{"+l+"}"}}}return r}var A7=/label:\s*([^\s;\n{]+)\s*(;|$)/g,qo,ub=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";qo=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=jm(r,n,o)):a+=o[0];for(var s=1;s<t.length;s++)a+=jm(r,n,t[s]),i&&(a+=o[s]);A7.lastIndex=0;for(var l="",c;(c=A7.exec(a))!==null;)l+="-"+c[1];var f=uQ(a)+l;return{name:f,styles:a,next:qo}},pQ=function(t){return t()},NL=yx["useInsertionEffect"]?yx["useInsertionEffect"]:!1,FL=NL||pQ,I7=NL||w.useLayoutEffect,s4={}.hasOwnProperty,$L=w.createContext(typeof HTMLElement<"u"?JZ({key:"css"}):null);$L.Provider;var l4=function(t){return w.forwardRef(function(n,r){var i=w.useContext($L);return t(n,i,r)})},Uf=w.createContext({}),mQ=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Je({},t,n)},gQ=T7(function(e){return T7(function(t){return mQ(e,t)})}),vQ=function(t){var n=w.useContext(Uf);return t.theme!==n&&(n=gQ(n)(t.theme)),w.createElement(Uf.Provider,{value:n},t.children)},p3="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yQ=function(t,n){var r={};for(var i in n)s4.call(n,i)&&(r[i]=n[i]);return r[p3]=t,r},_Q=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return a4(n,r,i),FL(function(){return o4(n,r,i)}),null},bQ=l4(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[p3],a=[r],o="";typeof e.className=="string"?o=ML(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=ub(a,void 0,w.useContext(Uf));o+=t.key+"-"+s.name;var l={};for(var c in e)s4.call(e,c)&&c!=="css"&&c!==p3&&(l[c]=e[c]);return l.ref=n,l.className=o,w.createElement(w.Fragment,null,w.createElement(_Q,{cache:t,serialized:s,isStringTag:typeof i=="string"}),w.createElement(i,l))}),SQ=bQ,ut=function(t,n){var r=arguments;if(n==null||!s4.call(n,"css"))return w.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=SQ,a[1]=yQ(t,n);for(var o=2;o<i;o++)a[o]=r[o];return w.createElement.apply(null,a)},cb=l4(function(e,t){var n=e.styles,r=ub([n],void 0,w.useContext(Uf)),i=w.useRef();return I7(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),I7(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&o4(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});function u4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ub(t)}var Ro=function(){var t=u4.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},zL=String.raw,jL=zL`
     47 */var Vr=typeof Symbol=="function"&&Symbol.for,n4=Vr?Symbol.for("react.element"):60103,r4=Vr?Symbol.for("react.portal"):60106,J_=Vr?Symbol.for("react.fragment"):60107,eb=Vr?Symbol.for("react.strict_mode"):60108,tb=Vr?Symbol.for("react.profiler"):60114,nb=Vr?Symbol.for("react.provider"):60109,rb=Vr?Symbol.for("react.context"):60110,i4=Vr?Symbol.for("react.async_mode"):60111,ib=Vr?Symbol.for("react.concurrent_mode"):60111,ab=Vr?Symbol.for("react.forward_ref"):60112,ob=Vr?Symbol.for("react.suspense"):60113,eQ=Vr?Symbol.for("react.suspense_list"):60120,sb=Vr?Symbol.for("react.memo"):60115,lb=Vr?Symbol.for("react.lazy"):60116,tQ=Vr?Symbol.for("react.block"):60121,nQ=Vr?Symbol.for("react.fundamental"):60117,rQ=Vr?Symbol.for("react.responder"):60118,iQ=Vr?Symbol.for("react.scope"):60119;function wa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case n4:switch(e=e.type,e){case i4:case ib:case J_:case tb:case eb:case ob:return e;default:switch(e=e&&e.$$typeof,e){case rb:case ab:case lb:case sb:case nb:return e;default:return t}}case r4:return t}}}function AL(e){return wa(e)===ib}bn.AsyncMode=i4;bn.ConcurrentMode=ib;bn.ContextConsumer=rb;bn.ContextProvider=nb;bn.Element=n4;bn.ForwardRef=ab;bn.Fragment=J_;bn.Lazy=lb;bn.Memo=sb;bn.Portal=r4;bn.Profiler=tb;bn.StrictMode=eb;bn.Suspense=ob;bn.isAsyncMode=function(e){return AL(e)||wa(e)===i4};bn.isConcurrentMode=AL;bn.isContextConsumer=function(e){return wa(e)===rb};bn.isContextProvider=function(e){return wa(e)===nb};bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===n4};bn.isForwardRef=function(e){return wa(e)===ab};bn.isFragment=function(e){return wa(e)===J_};bn.isLazy=function(e){return wa(e)===lb};bn.isMemo=function(e){return wa(e)===sb};bn.isPortal=function(e){return wa(e)===r4};bn.isProfiler=function(e){return wa(e)===tb};bn.isStrictMode=function(e){return wa(e)===eb};bn.isSuspense=function(e){return wa(e)===ob};bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===J_||e===ib||e===tb||e===eb||e===ob||e===eQ||typeof e=="object"&&e!==null&&(e.$$typeof===lb||e.$$typeof===sb||e.$$typeof===nb||e.$$typeof===rb||e.$$typeof===ab||e.$$typeof===nQ||e.$$typeof===rQ||e.$$typeof===iQ||e.$$typeof===tQ)};bn.typeOf=wa;RL.exports=bn;var aQ=RL.exports,IL=aQ,oQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sQ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},LL={};LL[IL.ForwardRef]=oQ;LL[IL.Memo]=sQ;var lQ=!0;function ML(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var a4=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||lQ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},o4=function(t,n,r){a4(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function uQ(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cQ={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,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},dQ=/[A-Z]|^ms/g,fQ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DL=function(t){return t.charCodeAt(1)===45},O7=function(t){return t!=null&&typeof t!="boolean"},LS=PL(function(e){return DL(e)?e:e.replace(dQ,"-$&").toLowerCase()}),R7=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fQ,function(r,i,a){return qo={name:i,styles:a,next:qo},i})}return cQ[t]!==1&&!DL(t)&&typeof n=="number"&&n!==0?n+"px":n};function jm(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return qo={name:n.name,styles:n.styles,next:qo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)qo={name:r.name,styles:r.styles,next:qo},r=r.next;var i=n.styles+";";return i}return hQ(e,t,n)}case"function":{if(e!==void 0){var a=qo,o=n(e);return qo=a,jm(e,t,o)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function hQ(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=jm(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=a+"{"+t[o]+"}":O7(o)&&(r+=LS(a)+":"+R7(a,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)O7(o[s])&&(r+=LS(a)+":"+R7(a,o[s])+";");else{var l=jm(e,t,o);switch(a){case"animation":case"animationName":{r+=LS(a)+":"+l+";";break}default:r+=a+"{"+l+"}"}}}return r}var A7=/label:\s*([^\s;\n{]+)\s*(;|$)/g,qo,ub=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";qo=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=jm(r,n,o)):a+=o[0];for(var s=1;s<t.length;s++)a+=jm(r,n,t[s]),i&&(a+=o[s]);A7.lastIndex=0;for(var l="",c;(c=A7.exec(a))!==null;)l+="-"+c[1];var f=uQ(a)+l;return{name:f,styles:a,next:qo}},pQ=function(t){return t()},NL=yx["useInsertionEffect"]?yx["useInsertionEffect"]:!1,FL=NL||pQ,I7=NL||w.useLayoutEffect,s4={}.hasOwnProperty,$L=w.createContext(typeof HTMLElement<"u"?JZ({key:"css"}):null);$L.Provider;var l4=function(t){return w.forwardRef(function(n,r){var i=w.useContext($L);return t(n,i,r)})},Uf=w.createContext({}),mQ=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Je({},t,n)},gQ=T7(function(e){return T7(function(t){return mQ(e,t)})}),vQ=function(t){var n=w.useContext(Uf);return t.theme!==n&&(n=gQ(n)(t.theme)),w.createElement(Uf.Provider,{value:n},t.children)},pC="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yQ=function(t,n){var r={};for(var i in n)s4.call(n,i)&&(r[i]=n[i]);return r[pC]=t,r},_Q=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return a4(n,r,i),FL(function(){return o4(n,r,i)}),null},bQ=l4(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[pC],a=[r],o="";typeof e.className=="string"?o=ML(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=ub(a,void 0,w.useContext(Uf));o+=t.key+"-"+s.name;var l={};for(var c in e)s4.call(e,c)&&c!=="css"&&c!==pC&&(l[c]=e[c]);return l.ref=n,l.className=o,w.createElement(w.Fragment,null,w.createElement(_Q,{cache:t,serialized:s,isStringTag:typeof i=="string"}),w.createElement(i,l))}),SQ=bQ,ut=function(t,n){var r=arguments;if(n==null||!s4.call(n,"css"))return w.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=SQ,a[1]=yQ(t,n);for(var o=2;o<i;o++)a[o]=r[o];return w.createElement.apply(null,a)},cb=l4(function(e,t){var n=e.styles,r=ub([n],void 0,w.useContext(Uf)),i=w.useRef();return I7(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),I7(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&o4(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});function u4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ub(t)}var Ro=function(){var t=u4.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},zL=String.raw,jL=zL`
    4848  :root,
    4949  :host {
     
    324324
    325325      ${jL}
    326     `});function CQ(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function lr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=w.createContext(o);s.displayName=t;function l(){var c;const f=w.useContext(s);if(!f&&n){const h=new Error(a??CQ(r,i));throw h.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,h,l),h}return f}return[s.Provider,l,s]}var[EQ,kQ]=lr({strict:!1,name:"PortalManagerContext"});function BL(e){const{children:t,zIndex:n}=e;return T.jsx(EQ,{value:{zIndex:n},children:t})}BL.displayName="PortalManager";var rs=globalThis!=null&&globalThis.document?w.useLayoutEffect:w.useEffect,[VL,TQ]=lr({strict:!1,name:"PortalContext"}),c4="chakra-portal",PQ=".chakra-portal",OQ=e=>T.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),RQ=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=w.useState(null),a=w.useRef(null),[,o]=w.useState({});w.useEffect(()=>o({}),[]);const s=TQ(),l=kQ();rs(()=>{if(!r)return;const f=r.ownerDocument,h=t?s??f.body:f.body;if(!h)return;a.current=f.createElement("div"),a.current.className=c4,h.appendChild(a.current),o({});const p=a.current;return()=>{h.contains(p)&&h.removeChild(p)}},[r]);const c=l!=null&&l.zIndex?T.jsx(OQ,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return a.current?Yo.createPortal(T.jsx(VL,{value:a.current,children:c}),a.current):T.jsx("span",{ref:f=>{f&&i(f)}})},AQ=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,a=i??(typeof window<"u"?document.body:void 0),o=w.useMemo(()=>{const l=i==null?void 0:i.ownerDocument.createElement("div");return l&&(l.className=c4),l},[i]),[,s]=w.useState({});return rs(()=>s({}),[]),rs(()=>{if(!(!o||!a))return a.appendChild(o),()=>{a.removeChild(o)}},[o,a]),a&&o?Yo.createPortal(T.jsx(VL,{value:r?o:null,children:t}),o):null};function ph(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?T.jsx(AQ,{containerRef:n,...r}):T.jsx(RQ,{...r})}ph.className=c4;ph.selector=PQ;ph.displayName="Portal";function ol(){const e=w.useContext(Uf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var d4=w.createContext({});d4.displayName="ColorModeContext";function db(){const e=w.useContext(d4);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function L7(e,t){const{colorMode:n}=db();return n==="dark"?t:e}var v0={light:"chakra-ui-light",dark:"chakra-ui-dark"};function IQ(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?v0.dark:v0.light),document.body.classList.remove(r?v0.light:v0.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),a=o=>{r(o.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var LQ="chakra-ui-color-mode";function MQ(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var DQ=MQ(LQ),M7=()=>{};function D7(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function UL(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:o=DQ}=e,s=i==="dark"?"dark":"light",[l,c]=w.useState(()=>D7(o,s)),[f,h]=w.useState(()=>D7(o)),{getSystemTheme:p,setClassName:v,setDataset:y,addListener:m}=w.useMemo(()=>IQ({preventTransition:a}),[a]),_=i==="system"&&!l?f:l,b=w.useCallback(E=>{const R=E==="system"?p():E;c(R),v(R==="dark"),y(R),o.set(R)},[o,p,v,y]);rs(()=>{i==="system"&&h(p())},[]),w.useEffect(()=>{const E=o.get();if(E){b(E);return}if(i==="system"){b("system");return}b(s)},[o,s,i,b]);const S=w.useCallback(()=>{b(_==="dark"?"light":"dark")},[_,b]);w.useEffect(()=>{if(r)return m(b)},[r,m,b]);const C=w.useMemo(()=>({colorMode:t??_,toggleColorMode:t?M7:S,setColorMode:t?M7:b,forced:t!==void 0}),[_,S,b,t]);return T.jsx(d4.Provider,{value:C,children:n})}UL.displayName="ColorModeProvider";function NQ(){const e=db(),t=ol();return{...e,theme:t}}function FQ(e,t,n){var r,i;if(t==null)return t;const a=o=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[o]};return(i=(r=a(t))!=null?r:a(n))!=null?i:n}function $Q(e,t,n){var r,i;if(t==null)return t;const a=o=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[o])==null?void 0:l.value};return(i=(r=a(t))!=null?r:a(n))!=null?i:n}function zQ(e,t,n){const r=ol();return HL(e,t,n)(r)}function HL(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return a=>{const o=i.filter(Boolean),s=r.map((l,c)=>{var f,h;if(e==="breakpoints")return FQ(a,l,(f=o[c])!=null?f:l);const p=`${e}.${l}`;return $Q(a,p,(h=o[c])!=null?h:l)});return Array.isArray(t)?s:s[0]}}var At=(...e)=>e.filter(Boolean).join(" ");function Qi(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function fa(e,...t){return jQ(e)?e(...t):e}var jQ=e=>typeof e=="function",cn=e=>e?"":void 0,MS=e=>e?!0:void 0;function xn(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function WL(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var s1={exports:{}};s1.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",f="[object Boolean]",h="[object Date]",p="[object Error]",v="[object Function]",y="[object GeneratorFunction]",m="[object Map]",_="[object Number]",b="[object Null]",S="[object Object]",C="[object Proxy]",E="[object RegExp]",R="[object Set]",A="[object String]",I="[object Undefined]",M="[object WeakMap]",F="[object ArrayBuffer]",z="[object DataView]",Y="[object Float32Array]",W="[object Float64Array]",q="[object Int8Array]",ae="[object Int16Array]",ee="[object Int32Array]",ce="[object Uint8Array]",ue="[object Uint8ClampedArray]",J="[object Uint16Array]",me="[object Uint32Array]",we=/[\\^$.*+?()[\]{}|]/g,Ce=/^\[object .+?Constructor\]$/,Ee=/^(?:0|[1-9]\d*)$/,xe={};xe[Y]=xe[W]=xe[q]=xe[ae]=xe[ee]=xe[ce]=xe[ue]=xe[J]=xe[me]=!0,xe[s]=xe[l]=xe[F]=xe[f]=xe[z]=xe[h]=xe[p]=xe[v]=xe[m]=xe[_]=xe[S]=xe[E]=xe[R]=xe[A]=xe[M]=!1;var ye=typeof Wi=="object"&&Wi&&Wi.Object===Object&&Wi,Le=typeof self=="object"&&self&&self.Object===Object&&self,Ae=ye||Le||Function("return this")(),it=t&&!t.nodeType&&t,Ye=it&&!0&&e&&!e.nodeType&&e,nt=Ye&&Ye.exports===it,wt=nt&&ye.process,Dt=function(){try{var j=Ye&&Ye.require&&Ye.require("util").types;return j||wt&&wt.binding&&wt.binding("util")}catch{}}(),Nt=Dt&&Dt.isTypedArray;function Sn(j,G,ne){switch(ne.length){case 0:return j.call(G);case 1:return j.call(G,ne[0]);case 2:return j.call(G,ne[0],ne[1]);case 3:return j.call(G,ne[0],ne[1],ne[2])}return j.apply(G,ne)}function Yt(j,G){for(var ne=-1,Ve=Array(j);++ne<j;)Ve[ne]=G(ne);return Ve}function Te(j){return function(G){return j(G)}}function yt(j,G){return j==null?void 0:j[G]}function B(j,G){return function(ne){return j(G(ne))}}var X=Array.prototype,oe=Function.prototype,Se=Object.prototype,_e=Ae["__core-js_shared__"],ge=oe.toString,Ie=Se.hasOwnProperty,Ft=function(){var j=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),Ge=Se.toString,Kn=ge.call(Object),Dn=RegExp("^"+ge.call(Ie).replace(we,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rn=nt?Ae.Buffer:void 0,ur=Ae.Symbol,ti=Ae.Uint8Array,Yn=rn?rn.allocUnsafe:void 0,ni=B(Object.getPrototypeOf,Object),Ur=Object.create,te=Se.propertyIsEnumerable,ie=X.splice,he=ur?ur.toStringTag:void 0,Me=function(){try{var j=cl(Object,"defineProperty");return j({},"",{}),j}catch{}}(),st=rn?rn.isBuffer:void 0,et=Math.max,Ze=Date.now,De=cl(Ae,"Map"),Oe=cl(Object,"create"),gt=function(){function j(){}return function(G){if(!aa(G))return{};if(Ur)return Ur(G);j.prototype=G;var ne=new j;return j.prototype=void 0,ne}}();function It(j){var G=-1,ne=j==null?0:j.length;for(this.clear();++G<ne;){var Ve=j[G];this.set(Ve[0],Ve[1])}}function mt(){this.__data__=Oe?Oe(null):{},this.size=0}function Tt(j){var G=this.has(j)&&delete this.__data__[j];return this.size-=G?1:0,G}function $t(j){var G=this.__data__;if(Oe){var ne=G[j];return ne===r?void 0:ne}return Ie.call(G,j)?G[j]:void 0}function cr(j){var G=this.__data__;return Oe?G[j]!==void 0:Ie.call(G,j)}function Rn(j,G){var ne=this.__data__;return this.size+=this.has(j)?0:1,ne[j]=Oe&&G===void 0?r:G,this}It.prototype.clear=mt,It.prototype.delete=Tt,It.prototype.get=$t,It.prototype.has=cr,It.prototype.set=Rn;function An(j){var G=-1,ne=j==null?0:j.length;for(this.clear();++G<ne;){var Ve=j[G];this.set(Ve[0],Ve[1])}}function dr(){this.__data__=[],this.size=0}function fr(j){var G=this.__data__,ne=ia(G,j);if(ne<0)return!1;var Ve=G.length-1;return ne==Ve?G.pop():ie.call(G,ne,1),--this.size,!0}function jn(j){var G=this.__data__,ne=ia(G,j);return ne<0?void 0:G[ne][1]}function na(j){return ia(this.__data__,j)>-1}function vi(j,G){var ne=this.__data__,Ve=ia(ne,j);return Ve<0?(++this.size,ne.push([j,G])):ne[Ve][1]=G,this}An.prototype.clear=dr,An.prototype.delete=fr,An.prototype.get=jn,An.prototype.has=na,An.prototype.set=vi;function hr(j){var G=-1,ne=j==null?0:j.length;for(this.clear();++G<ne;){var Ve=j[G];this.set(Ve[0],Ve[1])}}function ra(){this.size=0,this.__data__={hash:new It,map:new(De||An),string:new It}}function Zt(j){var G=Ca(this,j).delete(j);return this.size-=G?1:0,G}function Hr(j){return Ca(this,j).get(j)}function yi(j){return Ca(this,j).has(j)}function _i(j,G){var ne=Ca(this,j),Ve=ne.size;return ne.set(j,G),this.size+=ne.size==Ve?0:1,this}hr.prototype.clear=ra,hr.prototype.delete=Zt,hr.prototype.get=Hr,hr.prototype.has=yi,hr.prototype.set=_i;function an(j){var G=this.__data__=new An(j);this.size=G.size}function Ja(){this.__data__=new An,this.size=0}function ll(j){var G=this.__data__,ne=G.delete(j);return this.size=G.size,ne}function ms(j){return this.__data__.get(j)}function ku(j){return this.__data__.has(j)}function Ph(j,G){var ne=this.__data__;if(ne instanceof An){var Ve=ne.__data__;if(!De||Ve.length<n-1)return Ve.push([j,G]),this.size=++ne.size,this;ne=this.__data__=new hr(Ve)}return ne.set(j,G),this.size=ne.size,this}an.prototype.clear=Ja,an.prototype.delete=ll,an.prototype.get=ms,an.prototype.has=ku,an.prototype.set=Ph;function Oh(j,G){var ne=hl(j),Ve=!ne&&Lu(j),Lt=!ne&&!Ve&&Xc(j),on=!ne&&!Ve&&!Lt&&ed(j),_t=ne||Ve||Lt||on,Et=_t?Yt(j.length,String):[],Qt=Et.length;for(var Wr in j)(G||Ie.call(j,Wr))&&!(_t&&(Wr=="length"||Lt&&(Wr=="offset"||Wr=="parent")||on&&(Wr=="buffer"||Wr=="byteLength"||Wr=="byteOffset")||qc(Wr,Qt)))&&Et.push(Wr);return Et}function Lo(j,G,ne){(ne!==void 0&&!_s(j[G],ne)||ne===void 0&&!(G in j))&&Tu(j,G,ne)}function Rh(j,G,ne){var Ve=j[G];(!(Ie.call(j,G)&&_s(Ve,ne))||ne===void 0&&!(G in j))&&Tu(j,G,ne)}function ia(j,G){for(var ne=j.length;ne--;)if(_s(j[ne][0],G))return ne;return-1}function Tu(j,G,ne){G=="__proto__"&&Me?Me(j,G,{configurable:!0,enumerable:!0,value:ne,writable:!0}):j[G]=ne}var Ah=ys();function ul(j){return j==null?j===void 0?I:b:he&&he in Object(j)?Mo(j):dl(j)}function Pu(j){return bs(j)&&ul(j)==s}function jc(j){if(!aa(j)||Iu(j))return!1;var G=Mu(j)?Dn:Ce;return G.test(Qc(j))}function Fi(j){return bs(j)&&Jc(j.length)&&!!xe[ul(j)]}function Bc(j){if(!aa(j))return Kc(j);var G=eo(j),ne=[];for(var Ve in j)Ve=="constructor"&&(G||!Ie.call(j,Ve))||ne.push(Ve);return ne}function xa(j,G,ne,Ve,Lt){j!==G&&Ah(G,function(on,_t){if(Lt||(Lt=new an),aa(on))Ou(j,G,_t,ne,xa,Ve,Lt);else{var Et=Ve?Ve(fl(j,_t),on,_t+"",j,G,Lt):void 0;Et===void 0&&(Et=on),Lo(j,_t,Et)}},nd)}function Ou(j,G,ne,Ve,Lt,on,_t){var Et=fl(j,ne),Qt=fl(G,ne),Wr=_t.get(Qt);if(Wr){Lo(j,ne,Wr);return}var br=on?on(Et,Qt,ne+"",j,G,_t):void 0,Sr=br===void 0;if(Sr){var vl=hl(Qt),yl=!vl&&Xc(Qt),Du=!vl&&!yl&&ed(Qt);br=Qt,vl||yl||Du?hl(Et)?br=Et:Mh(Et)?br=Lh(Et):yl?(Sr=!1,br=Uc(Qt,!0)):Du?(Sr=!1,br=gs(Qt,!0)):br=[]:Dh(Qt)||Lu(Qt)?(br=Et,Lu(Et)?br=td(Et):(!aa(Et)||Mu(Et))&&(br=Ru(Qt))):Sr=!1}Sr&&(_t.set(Qt,br),Lt(br,Qt,Ve,on,_t),_t.delete(Qt)),Lo(j,ne,br)}function Ih(j,G){return Yc(to(j,G,ml),j+"")}var Vc=Me?function(j,G){return Me(j,"toString",{configurable:!0,enumerable:!1,value:Be(G),writable:!0})}:ml;function Uc(j,G){if(G)return j.slice();var ne=j.length,Ve=Yn?Yn(ne):new j.constructor(ne);return j.copy(Ve),Ve}function Hc(j){var G=new j.constructor(j.byteLength);return new ti(G).set(new ti(j)),G}function gs(j,G){var ne=G?Hc(j.buffer):j.buffer;return new j.constructor(ne,j.byteOffset,j.length)}function Lh(j,G){var ne=-1,Ve=j.length;for(G||(G=Array(Ve));++ne<Ve;)G[ne]=j[ne];return G}function Wc(j,G,ne,Ve){var Lt=!ne;ne||(ne={});for(var on=-1,_t=G.length;++on<_t;){var Et=G[on],Qt=Ve?Ve(ne[Et],j[Et],Et,ne,j):void 0;Qt===void 0&&(Qt=j[Et]),Lt?Tu(ne,Et,Qt):Rh(ne,Et,Qt)}return ne}function vs(j){return Ih(function(G,ne){var Ve=-1,Lt=ne.length,on=Lt>1?ne[Lt-1]:void 0,_t=Lt>2?ne[2]:void 0;for(on=j.length>3&&typeof on=="function"?(Lt--,on):void 0,_t&&Gc(ne[0],ne[1],_t)&&(on=Lt<3?void 0:on,Lt=1),G=Object(G);++Ve<Lt;){var Et=ne[Ve];Et&&j(G,Et,Ve,on)}return G})}function ys(j){return function(G,ne,Ve){for(var Lt=-1,on=Object(G),_t=Ve(G),Et=_t.length;Et--;){var Qt=_t[j?Et:++Lt];if(ne(on[Qt],Qt,on)===!1)break}return G}}function Ca(j,G){var ne=j.__data__;return Au(G)?ne[typeof G=="string"?"string":"hash"]:ne.map}function cl(j,G){var ne=yt(j,G);return jc(ne)?ne:void 0}function Mo(j){var G=Ie.call(j,he),ne=j[he];try{j[he]=void 0;var Ve=!0}catch{}var Lt=Ge.call(j);return Ve&&(G?j[he]=ne:delete j[he]),Lt}function Ru(j){return typeof j.constructor=="function"&&!eo(j)?gt(ni(j)):{}}function qc(j,G){var ne=typeof j;return G=G??o,!!G&&(ne=="number"||ne!="symbol"&&Ee.test(j))&&j>-1&&j%1==0&&j<G}function Gc(j,G,ne){if(!aa(ne))return!1;var Ve=typeof G;return(Ve=="number"?pl(ne)&&qc(G,ne.length):Ve=="string"&&G in ne)?_s(ne[G],j):!1}function Au(j){var G=typeof j;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?j!=="__proto__":j===null}function Iu(j){return!!Ft&&Ft in j}function eo(j){var G=j&&j.constructor,ne=typeof G=="function"&&G.prototype||Se;return j===ne}function Kc(j){var G=[];if(j!=null)for(var ne in Object(j))G.push(ne);return G}function dl(j){return Ge.call(j)}function to(j,G,ne){return G=et(G===void 0?j.length-1:G,0),function(){for(var Ve=arguments,Lt=-1,on=et(Ve.length-G,0),_t=Array(on);++Lt<on;)_t[Lt]=Ve[G+Lt];Lt=-1;for(var Et=Array(G+1);++Lt<G;)Et[Lt]=Ve[Lt];return Et[G]=ne(_t),Sn(j,this,Et)}}function fl(j,G){if(!(G==="constructor"&&typeof j[G]=="function")&&G!="__proto__")return j[G]}var Yc=Zc(Vc);function Zc(j){var G=0,ne=0;return function(){var Ve=Ze(),Lt=a-(Ve-ne);if(ne=Ve,Lt>0){if(++G>=i)return arguments[0]}else G=0;return j.apply(void 0,arguments)}}function Qc(j){if(j!=null){try{return ge.call(j)}catch{}try{return j+""}catch{}}return""}function _s(j,G){return j===G||j!==j&&G!==G}var Lu=Pu(function(){return arguments}())?Pu:function(j){return bs(j)&&Ie.call(j,"callee")&&!te.call(j,"callee")},hl=Array.isArray;function pl(j){return j!=null&&Jc(j.length)&&!Mu(j)}function Mh(j){return bs(j)&&pl(j)}var Xc=st||gl;function Mu(j){if(!aa(j))return!1;var G=ul(j);return G==v||G==y||G==c||G==C}function Jc(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=o}function aa(j){var G=typeof j;return j!=null&&(G=="object"||G=="function")}function bs(j){return j!=null&&typeof j=="object"}function Dh(j){if(!bs(j)||ul(j)!=S)return!1;var G=ni(j);if(G===null)return!0;var ne=Ie.call(G,"constructor")&&G.constructor;return typeof ne=="function"&&ne instanceof ne&&ge.call(ne)==Kn}var ed=Nt?Te(Nt):Fi;function td(j){return Wc(j,nd(j))}function nd(j){return pl(j)?Oh(j,!0):Bc(j)}var mn=vs(function(j,G,ne,Ve){xa(j,G,ne,Ve)});function Be(j){return function(){return j}}function ml(j){return j}function gl(){return!1}e.exports=mn})(s1,s1.exports);var BQ=s1.exports;const Ua=vu(BQ);var VQ=e=>/!(important)?$/.test(e),N7=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,UQ=(e,t)=>n=>{const r=String(t),i=VQ(r),a=N7(r),o=e?`${e}.${a}`:a;let s=Qi(n.__cssMap)&&o in n.__cssMap?n.__cssMap[o].varRef:t;return s=N7(s),i?`${s} !important`:s};function f4(e){const{scale:t,transform:n,compose:r}=e;return(a,o)=>{var s;const l=UQ(t,a)(o);let c=(s=n==null?void 0:n(l,o))!=null?s:l;return r&&(c=r(c,o)),c}}var y0=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Aa(e,t){return n=>{const r={property:n,scale:e};return r.transform=f4({scale:e,transform:t}),r}}var HQ=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function WQ(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:HQ(t),transform:n?f4({scale:n,compose:r}):r}}var qL=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function qQ(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...qL].join(" ")}function GQ(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...qL].join(" ")}var KQ={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},YQ={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function ZQ(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var QQ={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},m3={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},XQ=new Set(Object.values(m3)),g3=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),JQ=e=>e.trim();function eX(e,t){if(e==null||g3.has(e))return e;if(!(v3(e)||g3.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=i==null?void 0:i[1],o=i==null?void 0:i[2];if(!a||!o)return e;const s=a.includes("-gradient")?a:`${a}-gradient`,[l,...c]=o.split(",").map(JQ).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const f=l in m3?m3[l]:l;c.unshift(f);const h=c.map(p=>{if(XQ.has(p))return p;const v=p.indexOf(" "),[y,m]=v!==-1?[p.substr(0,v),p.substr(v+1)]:[p],_=v3(m)?m:m&&m.split(" "),b=`colors.${y}`,S=b in t.__cssMap?t.__cssMap[b].varRef:y;return _?[S,...Array.isArray(_)?_:[_]].join(" "):S});return`${s}(${h.join(", ")})`}var v3=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),tX=(e,t)=>eX(e,t??{});function nX(e){return/^var\(--.+\)$/.test(e)}var rX=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},jo=e=>t=>`${e}(${t})`,tn={filter(e){return e!=="auto"?e:KQ},backdropFilter(e){return e!=="auto"?e:YQ},ring(e){return ZQ(tn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?qQ():e==="auto-gpu"?GQ():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=rX(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(nX(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:tX,blur:jo("blur"),opacity:jo("opacity"),brightness:jo("brightness"),contrast:jo("contrast"),dropShadow:jo("drop-shadow"),grayscale:jo("grayscale"),hueRotate:jo("hue-rotate"),invert:jo("invert"),saturate:jo("saturate"),sepia:jo("sepia"),bgImage(e){return e==null||v3(e)||g3.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=QQ[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},K={borderWidths:Aa("borderWidths"),borderStyles:Aa("borderStyles"),colors:Aa("colors"),borders:Aa("borders"),gradients:Aa("gradients",tn.gradient),radii:Aa("radii",tn.px),space:Aa("space",y0(tn.vh,tn.px)),spaceT:Aa("space",y0(tn.vh,tn.px)),degreeT(e){return{property:e,transform:tn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:f4({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Aa("sizes",y0(tn.vh,tn.px)),sizesT:Aa("sizes",y0(tn.vh,tn.fraction)),shadows:Aa("shadows"),logical:WQ,blur:Aa("blur",tn.blur)},ly={background:K.colors("background"),backgroundColor:K.colors("backgroundColor"),backgroundImage:K.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:tn.bgClip},bgSize:K.prop("backgroundSize"),bgPosition:K.prop("backgroundPosition"),bg:K.colors("background"),bgColor:K.colors("backgroundColor"),bgPos:K.prop("backgroundPosition"),bgRepeat:K.prop("backgroundRepeat"),bgAttachment:K.prop("backgroundAttachment"),bgGradient:K.gradients("backgroundImage"),bgClip:{transform:tn.bgClip}};Object.assign(ly,{bgImage:ly.backgroundImage,bgImg:ly.backgroundImage});var ln={border:K.borders("border"),borderWidth:K.borderWidths("borderWidth"),borderStyle:K.borderStyles("borderStyle"),borderColor:K.colors("borderColor"),borderRadius:K.radii("borderRadius"),borderTop:K.borders("borderTop"),borderBlockStart:K.borders("borderBlockStart"),borderTopLeftRadius:K.radii("borderTopLeftRadius"),borderStartStartRadius:K.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:K.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:K.radii("borderTopRightRadius"),borderStartEndRadius:K.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:K.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:K.borders("borderRight"),borderInlineEnd:K.borders("borderInlineEnd"),borderBottom:K.borders("borderBottom"),borderBlockEnd:K.borders("borderBlockEnd"),borderBottomLeftRadius:K.radii("borderBottomLeftRadius"),borderBottomRightRadius:K.radii("borderBottomRightRadius"),borderLeft:K.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:K.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:K.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:K.borders(["borderLeft","borderRight"]),borderInline:K.borders("borderInline"),borderY:K.borders(["borderTop","borderBottom"]),borderBlock:K.borders("borderBlock"),borderTopWidth:K.borderWidths("borderTopWidth"),borderBlockStartWidth:K.borderWidths("borderBlockStartWidth"),borderTopColor:K.colors("borderTopColor"),borderBlockStartColor:K.colors("borderBlockStartColor"),borderTopStyle:K.borderStyles("borderTopStyle"),borderBlockStartStyle:K.borderStyles("borderBlockStartStyle"),borderBottomWidth:K.borderWidths("borderBottomWidth"),borderBlockEndWidth:K.borderWidths("borderBlockEndWidth"),borderBottomColor:K.colors("borderBottomColor"),borderBlockEndColor:K.colors("borderBlockEndColor"),borderBottomStyle:K.borderStyles("borderBottomStyle"),borderBlockEndStyle:K.borderStyles("borderBlockEndStyle"),borderLeftWidth:K.borderWidths("borderLeftWidth"),borderInlineStartWidth:K.borderWidths("borderInlineStartWidth"),borderLeftColor:K.colors("borderLeftColor"),borderInlineStartColor:K.colors("borderInlineStartColor"),borderLeftStyle:K.borderStyles("borderLeftStyle"),borderInlineStartStyle:K.borderStyles("borderInlineStartStyle"),borderRightWidth:K.borderWidths("borderRightWidth"),borderInlineEndWidth:K.borderWidths("borderInlineEndWidth"),borderRightColor:K.colors("borderRightColor"),borderInlineEndColor:K.colors("borderInlineEndColor"),borderRightStyle:K.borderStyles("borderRightStyle"),borderInlineEndStyle:K.borderStyles("borderInlineEndStyle"),borderTopRadius:K.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:K.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:K.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:K.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ln,{rounded:ln.borderRadius,roundedTop:ln.borderTopRadius,roundedTopLeft:ln.borderTopLeftRadius,roundedTopRight:ln.borderTopRightRadius,roundedTopStart:ln.borderStartStartRadius,roundedTopEnd:ln.borderStartEndRadius,roundedBottom:ln.borderBottomRadius,roundedBottomLeft:ln.borderBottomLeftRadius,roundedBottomRight:ln.borderBottomRightRadius,roundedBottomStart:ln.borderEndStartRadius,roundedBottomEnd:ln.borderEndEndRadius,roundedLeft:ln.borderLeftRadius,roundedRight:ln.borderRightRadius,roundedStart:ln.borderInlineStartRadius,roundedEnd:ln.borderInlineEndRadius,borderStart:ln.borderInlineStart,borderEnd:ln.borderInlineEnd,borderTopStartRadius:ln.borderStartStartRadius,borderTopEndRadius:ln.borderStartEndRadius,borderBottomStartRadius:ln.borderEndStartRadius,borderBottomEndRadius:ln.borderEndEndRadius,borderStartRadius:ln.borderInlineStartRadius,borderEndRadius:ln.borderInlineEndRadius,borderStartWidth:ln.borderInlineStartWidth,borderEndWidth:ln.borderInlineEndWidth,borderStartColor:ln.borderInlineStartColor,borderEndColor:ln.borderInlineEndColor,borderStartStyle:ln.borderInlineStartStyle,borderEndStyle:ln.borderInlineEndStyle});var iX={color:K.colors("color"),textColor:K.colors("color"),fill:K.colors("fill"),stroke:K.colors("stroke")},y3={boxShadow:K.shadows("boxShadow"),mixBlendMode:!0,blendMode:K.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:K.prop("backgroundBlendMode"),opacity:!0};Object.assign(y3,{shadow:y3.boxShadow});var aX={filter:{transform:tn.filter},blur:K.blur("--chakra-blur"),brightness:K.propT("--chakra-brightness",tn.brightness),contrast:K.propT("--chakra-contrast",tn.contrast),hueRotate:K.degreeT("--chakra-hue-rotate"),invert:K.propT("--chakra-invert",tn.invert),saturate:K.propT("--chakra-saturate",tn.saturate),dropShadow:K.propT("--chakra-drop-shadow",tn.dropShadow),backdropFilter:{transform:tn.backdropFilter},backdropBlur:K.blur("--chakra-backdrop-blur"),backdropBrightness:K.propT("--chakra-backdrop-brightness",tn.brightness),backdropContrast:K.propT("--chakra-backdrop-contrast",tn.contrast),backdropHueRotate:K.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:K.propT("--chakra-backdrop-invert",tn.invert),backdropSaturate:K.propT("--chakra-backdrop-saturate",tn.saturate)},l1={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:tn.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:K.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:K.space("gap"),rowGap:K.space("rowGap"),columnGap:K.space("columnGap")};Object.assign(l1,{flexDir:l1.flexDirection});var GL={gridGap:K.space("gridGap"),gridColumnGap:K.space("gridColumnGap"),gridRowGap:K.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},oX={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:tn.outline},outlineOffset:!0,outlineColor:K.colors("outlineColor")},Ma={width:K.sizesT("width"),inlineSize:K.sizesT("inlineSize"),height:K.sizes("height"),blockSize:K.sizes("blockSize"),boxSize:K.sizes(["width","height"]),minWidth:K.sizes("minWidth"),minInlineSize:K.sizes("minInlineSize"),minHeight:K.sizes("minHeight"),minBlockSize:K.sizes("minBlockSize"),maxWidth:K.sizes("maxWidth"),maxInlineSize:K.sizes("maxInlineSize"),maxHeight:K.sizes("maxHeight"),maxBlockSize:K.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:K.propT("float",tn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ma,{w:Ma.width,h:Ma.height,minW:Ma.minWidth,maxW:Ma.maxWidth,minH:Ma.minHeight,maxH:Ma.maxHeight,overscroll:Ma.overscrollBehavior,overscrollX:Ma.overscrollBehaviorX,overscrollY:Ma.overscrollBehaviorY});var sX={listStyleType:!0,listStylePosition:!0,listStylePos:K.prop("listStylePosition"),listStyleImage:!0,listStyleImg:K.prop("listStyleImage")};function lX(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var uX=e=>{const t=new WeakMap;return(r,i,a,o)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(i))return s.get(i);const l=e(r,i,a,o);return s.set(i,l),l}},cX=uX(lX),dX={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},fX={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},DS=(e,t,n)=>{const r={},i=cX(e,t,{});for(const a in i)a in n&&n[a]!=null||(r[a]=i[a]);return r},hX={srOnly:{transform(e){return e===!0?dX:e==="focusable"?fX:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>DS(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>DS(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>DS(t,e,n)}},Jp={position:!0,pos:K.prop("position"),zIndex:K.prop("zIndex","zIndices"),inset:K.spaceT("inset"),insetX:K.spaceT(["left","right"]),insetInline:K.spaceT("insetInline"),insetY:K.spaceT(["top","bottom"]),insetBlock:K.spaceT("insetBlock"),top:K.spaceT("top"),insetBlockStart:K.spaceT("insetBlockStart"),bottom:K.spaceT("bottom"),insetBlockEnd:K.spaceT("insetBlockEnd"),left:K.spaceT("left"),insetInlineStart:K.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:K.spaceT("right"),insetInlineEnd:K.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Jp,{insetStart:Jp.insetInlineStart,insetEnd:Jp.insetInlineEnd});var pX={ring:{transform:tn.ring},ringColor:K.colors("--chakra-ring-color"),ringOffset:K.prop("--chakra-ring-offset-width"),ringOffsetColor:K.colors("--chakra-ring-offset-color"),ringInset:K.prop("--chakra-ring-inset")},Ln={margin:K.spaceT("margin"),marginTop:K.spaceT("marginTop"),marginBlockStart:K.spaceT("marginBlockStart"),marginRight:K.spaceT("marginRight"),marginInlineEnd:K.spaceT("marginInlineEnd"),marginBottom:K.spaceT("marginBottom"),marginBlockEnd:K.spaceT("marginBlockEnd"),marginLeft:K.spaceT("marginLeft"),marginInlineStart:K.spaceT("marginInlineStart"),marginX:K.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:K.spaceT("marginInline"),marginY:K.spaceT(["marginTop","marginBottom"]),marginBlock:K.spaceT("marginBlock"),padding:K.space("padding"),paddingTop:K.space("paddingTop"),paddingBlockStart:K.space("paddingBlockStart"),paddingRight:K.space("paddingRight"),paddingBottom:K.space("paddingBottom"),paddingBlockEnd:K.space("paddingBlockEnd"),paddingLeft:K.space("paddingLeft"),paddingInlineStart:K.space("paddingInlineStart"),paddingInlineEnd:K.space("paddingInlineEnd"),paddingX:K.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:K.space("paddingInline"),paddingY:K.space(["paddingTop","paddingBottom"]),paddingBlock:K.space("paddingBlock")};Object.assign(Ln,{m:Ln.margin,mt:Ln.marginTop,mr:Ln.marginRight,me:Ln.marginInlineEnd,marginEnd:Ln.marginInlineEnd,mb:Ln.marginBottom,ml:Ln.marginLeft,ms:Ln.marginInlineStart,marginStart:Ln.marginInlineStart,mx:Ln.marginX,my:Ln.marginY,p:Ln.padding,pt:Ln.paddingTop,py:Ln.paddingY,px:Ln.paddingX,pb:Ln.paddingBottom,pl:Ln.paddingLeft,ps:Ln.paddingInlineStart,paddingStart:Ln.paddingInlineStart,pr:Ln.paddingRight,pe:Ln.paddingInlineEnd,paddingEnd:Ln.paddingInlineEnd});var mX={textDecorationColor:K.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:K.shadows("textShadow")},gX={clipPath:!0,transform:K.propT("transform",tn.transform),transformOrigin:!0,translateX:K.spaceT("--chakra-translate-x"),translateY:K.spaceT("--chakra-translate-y"),skewX:K.degreeT("--chakra-skew-x"),skewY:K.degreeT("--chakra-skew-y"),scaleX:K.prop("--chakra-scale-x"),scaleY:K.prop("--chakra-scale-y"),scale:K.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:K.degreeT("--chakra-rotate")},vX={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:K.prop("transitionDuration","transition.duration"),transitionProperty:K.prop("transitionProperty","transition.property"),transitionTimingFunction:K.prop("transitionTimingFunction","transition.easing")},yX={fontFamily:K.prop("fontFamily","fonts"),fontSize:K.prop("fontSize","fontSizes",tn.px),fontWeight:K.prop("fontWeight","fontWeights"),lineHeight:K.prop("lineHeight","lineHeights"),letterSpacing:K.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},_X={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:K.spaceT("scrollMargin"),scrollMarginTop:K.spaceT("scrollMarginTop"),scrollMarginBottom:K.spaceT("scrollMarginBottom"),scrollMarginLeft:K.spaceT("scrollMarginLeft"),scrollMarginRight:K.spaceT("scrollMarginRight"),scrollMarginX:K.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:K.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:K.spaceT("scrollPadding"),scrollPaddingTop:K.spaceT("scrollPaddingTop"),scrollPaddingBottom:K.spaceT("scrollPaddingBottom"),scrollPaddingLeft:K.spaceT("scrollPaddingLeft"),scrollPaddingRight:K.spaceT("scrollPaddingRight"),scrollPaddingX:K.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:K.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function KL(e){return Qi(e)&&e.reference?e.reference:String(e)}var fb=(e,...t)=>t.map(KL).join(` ${e} `).replace(/calc/g,""),F7=(...e)=>`calc(${fb("+",...e)})`,$7=(...e)=>`calc(${fb("-",...e)})`,_3=(...e)=>`calc(${fb("*",...e)})`,z7=(...e)=>`calc(${fb("/",...e)})`,j7=e=>{const t=KL(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:_3(t,-1)},Ju=Object.assign(e=>({add:(...t)=>Ju(F7(e,...t)),subtract:(...t)=>Ju($7(e,...t)),multiply:(...t)=>Ju(_3(e,...t)),divide:(...t)=>Ju(z7(e,...t)),negate:()=>Ju(j7(e)),toString:()=>e.toString()}),{add:F7,subtract:$7,multiply:_3,divide:z7,negate:j7});function bX(e,t="-"){return e.replace(/\s+/g,t)}function SX(e){const t=bX(e.toString());return xX(wX(t))}function wX(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function xX(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function CX(e,t=""){return[t,e].filter(Boolean).join("-")}function EX(e,t){return`var(${e}${t?`, ${t}`:""})`}function kX(e,t=""){return SX(`--${CX(e,t)}`)}function tt(e,t,n){const r=kX(e,n);return{variable:r,reference:EX(r,t)}}function TX(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,a]=r;n[i]=tt(`${e}-${i}`,a);continue}n[r]=tt(`${e}-${r}`)}return n}function PX(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function OX(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function b3(e){if(e==null)return e;const{unitless:t}=OX(e);return t||typeof e=="number"?`${e}px`:e}var YL=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,h4=e=>Object.fromEntries(Object.entries(e).sort(YL));function B7(e){const t=h4(e);return Object.assign(Object.values(t),t)}function RX(e){const t=Object.keys(h4(e));return new Set(t)}function V7(e){var t;if(!e)return e;e=(t=b3(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function Dp(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${b3(e)})`),t&&n.push("and",`(max-width: ${b3(t)})`),n.join(" ")}function AX(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=B7(e),r=Object.entries(e).sort(YL).map(([o,s],l,c)=>{var f;let[,h]=(f=c[l+1])!=null?f:[];return h=parseFloat(h)>0?V7(h):void 0,{_minW:V7(s),breakpoint:o,minW:s,maxW:h,maxWQuery:Dp(null,h),minWQuery:Dp(s),minMaxQuery:Dp(s,h)}}),i=RX(e),a=Array.from(i.values());return{keys:i,normalized:n,isResponsive(o){const s=Object.keys(o);return s.length>0&&s.every(l=>i.has(l))},asObject:h4(e),asArray:B7(e),details:r,get(o){return r.find(s=>s.breakpoint===o)},media:[null,...n.map(o=>Dp(o)).slice(1)],toArrayValue(o){if(!Qi(o))throw new Error("toArrayValue: value must be an object");const s=a.map(l=>{var c;return(c=o[l])!=null?c:null});for(;PX(s)===null;)s.pop();return s},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((s,l,c)=>{const f=a[c];return f!=null&&l!=null&&(s[f]=l),s},{})}}}var Gr={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Pl=e=>ZL(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Rs=e=>ZL(t=>e(t,"~ &"),"[data-peer]",".peer"),ZL=(e,...t)=>t.map(e).join(", "),hb={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Pl(Gr.hover),_peerHover:Rs(Gr.hover),_groupFocus:Pl(Gr.focus),_peerFocus:Rs(Gr.focus),_groupFocusVisible:Pl(Gr.focusVisible),_peerFocusVisible:Rs(Gr.focusVisible),_groupActive:Pl(Gr.active),_peerActive:Rs(Gr.active),_groupDisabled:Pl(Gr.disabled),_peerDisabled:Rs(Gr.disabled),_groupInvalid:Pl(Gr.invalid),_peerInvalid:Rs(Gr.invalid),_groupChecked:Pl(Gr.checked),_peerChecked:Rs(Gr.checked),_groupFocusWithin:Pl(Gr.focusWithin),_peerFocusWithin:Rs(Gr.focusWithin),_peerPlaceholderShown:Rs(Gr.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},QL=Object.keys(hb);function U7(e,t){return tt(String(e).replace(/\./g,"-"),void 0,t)}function IX(e,t){let n={};const r={};for(const[i,a]of Object.entries(e)){const{isSemantic:o,value:s}=a,{variable:l,reference:c}=U7(i,t==null?void 0:t.cssVarPrefix);if(!o){if(i.startsWith("space")){const p=i.split("."),[v,...y]=p,m=`${v}.-${y.join(".")}`,_=Ju.negate(s),b=Ju.negate(c);r[m]={value:_,var:l,varRef:b}}n[l]=s,r[i]={value:s,var:l,varRef:c};continue}const f=p=>{const y=[String(i).split(".")[0],p].join(".");if(!e[y])return p;const{reference:_}=U7(y,t==null?void 0:t.cssVarPrefix);return _},h=Qi(s)?s:{default:s};n=Ua(n,Object.entries(h).reduce((p,[v,y])=>{var m,_;if(!y)return p;const b=f(`${y}`);if(v==="default")return p[l]=b,p;const S=(_=(m=hb)==null?void 0:m[v])!=null?_:v;return p[S]={[l]:b},p},{})),r[i]={value:c,var:l,varRef:c}}return{cssVars:n,cssMap:r}}function LX(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function MX(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function DX(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function H7(e,t,n={}){const{stop:r,getKey:i}=n;function a(o,s=[]){var l;if(DX(o)||Array.isArray(o)){const c={};for(const[f,h]of Object.entries(o)){const p=(l=i==null?void 0:i(f))!=null?l:f,v=[...s,p];if(r!=null&&r(o,v))return t(o,s);c[p]=a(h,v)}return c}return t(o,s)}return a(e)}var NX=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function FX(e){return MX(e,NX)}function $X(e){return e.semanticTokens}function zX(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}var jX=e=>QL.includes(e)||e==="default";function BX({tokens:e,semanticTokens:t}){const n={};return H7(e,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!1,value:r})}),H7(t,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(jX)}),n}function VX(e){var t;const n=zX(e),r=FX(n),i=$X(n),a=BX({tokens:r,semanticTokens:i}),o=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=IX(a,{cssVarPrefix:o});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:AX(n.breakpoints)}),n}var p4=Ua({},ly,ln,iX,l1,Ma,aX,pX,oX,GL,hX,Jp,y3,Ln,_X,yX,mX,gX,sX,vX);Object.assign({},Ln,Ma,l1,GL,Jp);var UX=[...Object.keys(p4),...QL],HX={...p4,...hb},WX=e=>e in HX,qX=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,a={};for(const o in e){let s=fa(e[o],t);if(s==null)continue;if(s=Qi(s)&&n(s)?r(s):s,!Array.isArray(s)){a[o]=s;continue}const l=s.slice(0,i.length).length;for(let c=0;c<l;c+=1){const f=i==null?void 0:i[c];if(!f){a[o]=s[c];continue}a[f]=a[f]||{},s[c]!=null&&(a[f][o]=s[c])}}return a};function GX(e){const t=[];let n="",r=!1;for(let i=0;i<e.length;i++){const a=e[i];a==="("?(r=!0,n+=a):a===")"?(r=!1,n+=a):a===","&&!r?(t.push(n),n=""):n+=a}return n=n.trim(),n&&t.push(n),t}function KX(e){return/^var\(--.+\)$/.test(e)}var YX=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!KX(t),ZX=(e,t)=>{var n,r;if(t==null)return t;const i=l=>{var c,f;return(f=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:f.varRef},a=l=>{var c;return(c=i(l))!=null?c:l},[o,s]=GX(t);return t=(r=(n=i(o))!=null?n:a(s))!=null?r:a(t),t};function QX(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(a,o=!1)=>{var s,l,c;const f=fa(a,r),h=qX(f)(r);let p={};for(let v in h){const y=h[v];let m=fa(y,r);v in n&&(v=n[v]),YX(v,m)&&(m=ZX(r,m));let _=t[v];if(_===!0&&(_={property:v}),Qi(m)){p[v]=(s=p[v])!=null?s:{},p[v]=Ua({},p[v],i(m,!0));continue}let b=(c=(l=_==null?void 0:_.transform)==null?void 0:l.call(_,m,r,f))!=null?c:m;b=_!=null&&_.processResult?i(b,!0):b;const S=fa(_==null?void 0:_.property,r);if(!o&&(_!=null&&_.static)){const C=fa(_.static,r);p=Ua({},p,C)}if(S&&Array.isArray(S)){for(const C of S)p[C]=b;continue}if(S){S==="&"&&Qi(b)?p=Ua({},p,b):p[S]=b;continue}if(Qi(b)){p=Ua({},p,b);continue}p[v]=b}return p};return i}var XL=e=>t=>QX({theme:t,pseudos:hb,configs:p4})(e);function On(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function XX(e,t){if(Array.isArray(e))return e;if(Qi(e))return t(e);if(e!=null)return[e]}function JX(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function eJ(e){const t=e.__breakpoints;return function(r,i,a,o){var s,l;if(!t)return;const c={},f=XX(a,t.toArrayValue);if(!f)return c;const h=f.length,p=h===1,v=!!r.parts;for(let y=0;y<h;y++){const m=t.details[y],_=t.details[JX(f,y)],b=Dp(m.minW,_==null?void 0:_._minW),S=fa((s=r[i])==null?void 0:s[f[y]],o);if(S){if(v){(l=r.parts)==null||l.forEach(C=>{Ua(c,{[C]:p?S[C]:{[b]:S[C]}})});continue}if(!v){p?Ua(c,S):c[b]=S;continue}c[b]=S}}return c}}function tJ(e){return t=>{var n;const{variant:r,size:i,theme:a}=t,o=eJ(a);return Ua({},fa((n=e.baseStyle)!=null?n:{},t),o(e,"sizes",i,t),o(e,"variants",r,t))}}function _r(e){return LX(e,["styleConfig","size","variant","colorScheme"])}var nJ=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function rJ(e){return Qi(e)?nJ.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var iJ={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},aJ={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},oJ={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},sJ={property:iJ,easing:aJ,duration:oJ},lJ=sJ,uJ={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},cJ=uJ,dJ={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},fJ=dJ,hJ={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},pJ=hJ,mJ={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},gJ=mJ,vJ={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},yJ=vJ,_J={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},bJ=_J,SJ={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},wJ=SJ,xJ={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},JL=xJ,eM={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},CJ={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},EJ={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},kJ={...eM,...CJ,container:EJ},tM=kJ,TJ={breakpoints:pJ,zIndices:cJ,radii:yJ,blur:wJ,colors:gJ,...JL,sizes:tM,shadows:bJ,space:eM,borders:fJ,transition:lJ},{defineMultiStyleConfig:PJ,definePartsStyle:Np}=On(["stepper","step","title","description","indicator","separator","icon","number"]),Ds=tt("stepper-indicator-size"),Yd=tt("stepper-icon-size"),Zd=tt("stepper-title-font-size"),Fp=tt("stepper-description-font-size"),fp=tt("stepper-accent-color"),OJ=Np(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[fp.variable]:`colors.${e}.500`,_dark:{[fp.variable]:`colors.${e}.200`}},title:{fontSize:Zd.reference,fontWeight:"medium"},description:{fontSize:Fp.reference,color:"chakra-subtle-text"},number:{fontSize:Zd.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Yd.reference,height:Yd.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ds.reference,height:Ds.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:fp.reference},"&[data-status=complete]":{bg:fp.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:fp.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ds.reference} - 8px)`,top:`calc(${Ds.reference} + 4px)`,insetStart:`calc(${Ds.reference} / 2 - 1px)`}}})),RJ=PJ({baseStyle:OJ,sizes:{xs:Np({stepper:{[Ds.variable]:"sizes.4",[Yd.variable]:"sizes.3",[Zd.variable]:"fontSizes.xs",[Fp.variable]:"fontSizes.xs"}}),sm:Np({stepper:{[Ds.variable]:"sizes.6",[Yd.variable]:"sizes.4",[Zd.variable]:"fontSizes.sm",[Fp.variable]:"fontSizes.xs"}}),md:Np({stepper:{[Ds.variable]:"sizes.8",[Yd.variable]:"sizes.5",[Zd.variable]:"fontSizes.md",[Fp.variable]:"fontSizes.sm"}}),lg:Np({stepper:{[Ds.variable]:"sizes.10",[Yd.variable]:"sizes.6",[Zd.variable]:"fontSizes.lg",[Fp.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function pn(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...f){r();for(const h of f)t[h]=l(h);return pn(e,t)}function a(...f){for(const h of f)h in t||(t[h]=l(h));return pn(e,t)}function o(){return Object.fromEntries(Object.entries(t).map(([h,p])=>[h,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([h,p])=>[h,p.className]))}function l(f){const v=`chakra-${(["container","root"].includes(f??"")?[e]:[e,f]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>f}}return{parts:i,toPart:l,extend:a,selectors:o,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var AJ=pn("accordion").parts("root","container","button","panel").extend("icon"),IJ=pn("alert").parts("title","description","container").extend("icon","spinner"),LJ=pn("avatar").parts("label","badge","container").extend("excessLabel","group"),MJ=pn("breadcrumb").parts("link","item","container").extend("separator");pn("button").parts();var DJ=pn("checkbox").parts("control","icon","container").extend("label");pn("progress").parts("track","filledTrack").extend("label");var NJ=pn("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),FJ=pn("editable").parts("preview","input","textarea"),$J=pn("form").parts("container","requiredIndicator","helperText"),zJ=pn("formError").parts("text","icon"),jJ=pn("input").parts("addon","field","element","group"),BJ=pn("list").parts("container","item","icon"),VJ=pn("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),UJ=pn("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),HJ=pn("numberinput").parts("root","field","stepperGroup","stepper");pn("pininput").parts("field");var WJ=pn("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),qJ=pn("progress").parts("label","filledTrack","track"),GJ=pn("radio").parts("container","control","label"),KJ=pn("select").parts("field","icon"),YJ=pn("slider").parts("container","track","thumb","filledTrack","mark"),ZJ=pn("stat").parts("container","label","helpText","number","icon"),QJ=pn("switch").parts("container","track","thumb"),XJ=pn("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),JJ=pn("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),eee=pn("tag").parts("container","label","closeButton"),tee=pn("card").parts("container","header","body","footer");function ac(e,t,n){return Math.min(Math.max(e,n),t)}class nee extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var $p=nee;function m4(e){if(typeof e!="string")throw new $p(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=cee.test(e)?aee(e):e;const n=oee.exec(t);if(n){const o=Array.from(n).slice(1);return[...o.slice(0,3).map(s=>parseInt(Bm(s,2),16)),parseInt(Bm(o[3]||"f",2),16)/255]}const r=see.exec(t);if(r){const o=Array.from(r).slice(1);return[...o.slice(0,3).map(s=>parseInt(s,16)),parseInt(o[3]||"ff",16)/255]}const i=lee.exec(t);if(i){const o=Array.from(i).slice(1);return[...o.slice(0,3).map(s=>parseInt(s,10)),parseFloat(o[3]||"1")]}const a=uee.exec(t);if(a){const[o,s,l,c]=Array.from(a).slice(1).map(parseFloat);if(ac(0,100,s)!==s)throw new $p(e);if(ac(0,100,l)!==l)throw new $p(e);return[...dee(o,s,l),Number.isNaN(c)?1:c]}throw new $p(e)}function ree(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const W7=e=>parseInt(e.replace(/_/g,""),36),iee="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=W7(t.substring(0,3)),r=W7(t.substring(3)).toString(16);let i="";for(let a=0;a<6-r.length;a++)i+="0";return e[n]=`${i}${r}`,e},{});function aee(e){const t=e.toLowerCase().trim(),n=iee[ree(t)];if(!n)throw new $p(e);return`#${n}`}const Bm=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),oee=new RegExp(`^#${Bm("([a-f0-9])",3)}([a-f0-9])?$`,"i"),see=new RegExp(`^#${Bm("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),lee=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Bm(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),uee=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,cee=/^[a-z]+$/i,q7=e=>Math.round(e*255),dee=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(q7);const i=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),o=a*(1-Math.abs(i%2-1));let s=0,l=0,c=0;i>=0&&i<1?(s=a,l=o):i>=1&&i<2?(s=o,l=a):i>=2&&i<3?(l=a,c=o):i>=3&&i<4?(l=o,c=a):i>=4&&i<5?(s=o,c=a):i>=5&&i<6&&(s=a,c=o);const f=r-a/2,h=s+f,p=l+f,v=c+f;return[h,p,v].map(q7)};function fee(e,t,n,r){return`rgba(${ac(0,255,e).toFixed()}, ${ac(0,255,t).toFixed()}, ${ac(0,255,n).toFixed()}, ${parseFloat(ac(0,1,r).toFixed(3))})`}function hee(e,t){const[n,r,i,a]=m4(e);return fee(n,r,i,a-t)}function pee(e){const[t,n,r,i]=m4(e);let a=o=>{const s=ac(0,255,o).toString(16);return s.length===1?`0${s}`:s};return`#${a(t)}${a(n)}${a(r)}${i<1?a(Math.round(i*255)):""}`}function mee(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var gee=e=>Object.keys(e).length===0,Oi=(e,t,n)=>{const r=mee(e,`colors.${t}`,t);try{return pee(r),r}catch{return n??"#000000"}},vee=e=>{const[t,n,r]=m4(e);return(t*299+n*587+r*114)/1e3},yee=e=>t=>{const n=Oi(t,e);return vee(n)<128?"dark":"light"},_ee=e=>t=>yee(e)(t)==="dark",Hf=(e,t)=>n=>{const r=Oi(n,e);return hee(r,1-t)};function G7(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
     326    `});function CQ(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function lr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=w.createContext(o);s.displayName=t;function l(){var c;const f=w.useContext(s);if(!f&&n){const h=new Error(a??CQ(r,i));throw h.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,h,l),h}return f}return[s.Provider,l,s]}var[EQ,kQ]=lr({strict:!1,name:"PortalManagerContext"});function BL(e){const{children:t,zIndex:n}=e;return T.jsx(EQ,{value:{zIndex:n},children:t})}BL.displayName="PortalManager";var rs=globalThis!=null&&globalThis.document?w.useLayoutEffect:w.useEffect,[VL,TQ]=lr({strict:!1,name:"PortalContext"}),c4="chakra-portal",PQ=".chakra-portal",OQ=e=>T.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),RQ=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=w.useState(null),a=w.useRef(null),[,o]=w.useState({});w.useEffect(()=>o({}),[]);const s=TQ(),l=kQ();rs(()=>{if(!r)return;const f=r.ownerDocument,h=t?s??f.body:f.body;if(!h)return;a.current=f.createElement("div"),a.current.className=c4,h.appendChild(a.current),o({});const p=a.current;return()=>{h.contains(p)&&h.removeChild(p)}},[r]);const c=l!=null&&l.zIndex?T.jsx(OQ,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return a.current?Yo.createPortal(T.jsx(VL,{value:a.current,children:c}),a.current):T.jsx("span",{ref:f=>{f&&i(f)}})},AQ=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,a=i??(typeof window<"u"?document.body:void 0),o=w.useMemo(()=>{const l=i==null?void 0:i.ownerDocument.createElement("div");return l&&(l.className=c4),l},[i]),[,s]=w.useState({});return rs(()=>s({}),[]),rs(()=>{if(!(!o||!a))return a.appendChild(o),()=>{a.removeChild(o)}},[o,a]),a&&o?Yo.createPortal(T.jsx(VL,{value:r?o:null,children:t}),o):null};function ph(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?T.jsx(AQ,{containerRef:n,...r}):T.jsx(RQ,{...r})}ph.className=c4;ph.selector=PQ;ph.displayName="Portal";function ol(){const e=w.useContext(Uf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var d4=w.createContext({});d4.displayName="ColorModeContext";function db(){const e=w.useContext(d4);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function L7(e,t){const{colorMode:n}=db();return n==="dark"?t:e}var v0={light:"chakra-ui-light",dark:"chakra-ui-dark"};function IQ(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?v0.dark:v0.light),document.body.classList.remove(r?v0.light:v0.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),a=o=>{r(o.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var LQ="chakra-ui-color-mode";function MQ(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var DQ=MQ(LQ),M7=()=>{};function D7(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function UL(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:o=DQ}=e,s=i==="dark"?"dark":"light",[l,c]=w.useState(()=>D7(o,s)),[f,h]=w.useState(()=>D7(o)),{getSystemTheme:p,setClassName:v,setDataset:y,addListener:m}=w.useMemo(()=>IQ({preventTransition:a}),[a]),_=i==="system"&&!l?f:l,b=w.useCallback(E=>{const R=E==="system"?p():E;c(R),v(R==="dark"),y(R),o.set(R)},[o,p,v,y]);rs(()=>{i==="system"&&h(p())},[]),w.useEffect(()=>{const E=o.get();if(E){b(E);return}if(i==="system"){b("system");return}b(s)},[o,s,i,b]);const S=w.useCallback(()=>{b(_==="dark"?"light":"dark")},[_,b]);w.useEffect(()=>{if(r)return m(b)},[r,m,b]);const C=w.useMemo(()=>({colorMode:t??_,toggleColorMode:t?M7:S,setColorMode:t?M7:b,forced:t!==void 0}),[_,S,b,t]);return T.jsx(d4.Provider,{value:C,children:n})}UL.displayName="ColorModeProvider";function NQ(){const e=db(),t=ol();return{...e,theme:t}}function FQ(e,t,n){var r,i;if(t==null)return t;const a=o=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[o]};return(i=(r=a(t))!=null?r:a(n))!=null?i:n}function $Q(e,t,n){var r,i;if(t==null)return t;const a=o=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[o])==null?void 0:l.value};return(i=(r=a(t))!=null?r:a(n))!=null?i:n}function zQ(e,t,n){const r=ol();return HL(e,t,n)(r)}function HL(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return a=>{const o=i.filter(Boolean),s=r.map((l,c)=>{var f,h;if(e==="breakpoints")return FQ(a,l,(f=o[c])!=null?f:l);const p=`${e}.${l}`;return $Q(a,p,(h=o[c])!=null?h:l)});return Array.isArray(t)?s:s[0]}}var At=(...e)=>e.filter(Boolean).join(" ");function Qi(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function fa(e,...t){return jQ(e)?e(...t):e}var jQ=e=>typeof e=="function",cn=e=>e?"":void 0,MS=e=>e?!0:void 0;function xn(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function WL(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var s1={exports:{}};s1.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",f="[object Boolean]",h="[object Date]",p="[object Error]",v="[object Function]",y="[object GeneratorFunction]",m="[object Map]",_="[object Number]",b="[object Null]",S="[object Object]",C="[object Proxy]",E="[object RegExp]",R="[object Set]",A="[object String]",I="[object Undefined]",M="[object WeakMap]",F="[object ArrayBuffer]",z="[object DataView]",Y="[object Float32Array]",W="[object Float64Array]",q="[object Int8Array]",ae="[object Int16Array]",ee="[object Int32Array]",ce="[object Uint8Array]",ue="[object Uint8ClampedArray]",J="[object Uint16Array]",me="[object Uint32Array]",we=/[\\^$.*+?()[\]{}|]/g,Ce=/^\[object .+?Constructor\]$/,Ee=/^(?:0|[1-9]\d*)$/,xe={};xe[Y]=xe[W]=xe[q]=xe[ae]=xe[ee]=xe[ce]=xe[ue]=xe[J]=xe[me]=!0,xe[s]=xe[l]=xe[F]=xe[f]=xe[z]=xe[h]=xe[p]=xe[v]=xe[m]=xe[_]=xe[S]=xe[E]=xe[R]=xe[A]=xe[M]=!1;var ye=typeof Wi=="object"&&Wi&&Wi.Object===Object&&Wi,Le=typeof self=="object"&&self&&self.Object===Object&&self,Ae=ye||Le||Function("return this")(),it=t&&!t.nodeType&&t,Ye=it&&!0&&e&&!e.nodeType&&e,nt=Ye&&Ye.exports===it,wt=nt&&ye.process,Dt=function(){try{var j=Ye&&Ye.require&&Ye.require("util").types;return j||wt&&wt.binding&&wt.binding("util")}catch{}}(),Nt=Dt&&Dt.isTypedArray;function Sn(j,G,ne){switch(ne.length){case 0:return j.call(G);case 1:return j.call(G,ne[0]);case 2:return j.call(G,ne[0],ne[1]);case 3:return j.call(G,ne[0],ne[1],ne[2])}return j.apply(G,ne)}function Yt(j,G){for(var ne=-1,Ve=Array(j);++ne<j;)Ve[ne]=G(ne);return Ve}function Te(j){return function(G){return j(G)}}function yt(j,G){return j==null?void 0:j[G]}function B(j,G){return function(ne){return j(G(ne))}}var X=Array.prototype,oe=Function.prototype,Se=Object.prototype,_e=Ae["__core-js_shared__"],ge=oe.toString,Ie=Se.hasOwnProperty,Ft=function(){var j=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),Ge=Se.toString,Kn=ge.call(Object),Dn=RegExp("^"+ge.call(Ie).replace(we,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rn=nt?Ae.Buffer:void 0,ur=Ae.Symbol,ti=Ae.Uint8Array,Yn=rn?rn.allocUnsafe:void 0,ni=B(Object.getPrototypeOf,Object),Ur=Object.create,te=Se.propertyIsEnumerable,ie=X.splice,he=ur?ur.toStringTag:void 0,Me=function(){try{var j=cl(Object,"defineProperty");return j({},"",{}),j}catch{}}(),st=rn?rn.isBuffer:void 0,et=Math.max,Ze=Date.now,De=cl(Ae,"Map"),Oe=cl(Object,"create"),gt=function(){function j(){}return function(G){if(!aa(G))return{};if(Ur)return Ur(G);j.prototype=G;var ne=new j;return j.prototype=void 0,ne}}();function It(j){var G=-1,ne=j==null?0:j.length;for(this.clear();++G<ne;){var Ve=j[G];this.set(Ve[0],Ve[1])}}function mt(){this.__data__=Oe?Oe(null):{},this.size=0}function Tt(j){var G=this.has(j)&&delete this.__data__[j];return this.size-=G?1:0,G}function $t(j){var G=this.__data__;if(Oe){var ne=G[j];return ne===r?void 0:ne}return Ie.call(G,j)?G[j]:void 0}function cr(j){var G=this.__data__;return Oe?G[j]!==void 0:Ie.call(G,j)}function Rn(j,G){var ne=this.__data__;return this.size+=this.has(j)?0:1,ne[j]=Oe&&G===void 0?r:G,this}It.prototype.clear=mt,It.prototype.delete=Tt,It.prototype.get=$t,It.prototype.has=cr,It.prototype.set=Rn;function An(j){var G=-1,ne=j==null?0:j.length;for(this.clear();++G<ne;){var Ve=j[G];this.set(Ve[0],Ve[1])}}function dr(){this.__data__=[],this.size=0}function fr(j){var G=this.__data__,ne=ia(G,j);if(ne<0)return!1;var Ve=G.length-1;return ne==Ve?G.pop():ie.call(G,ne,1),--this.size,!0}function jn(j){var G=this.__data__,ne=ia(G,j);return ne<0?void 0:G[ne][1]}function na(j){return ia(this.__data__,j)>-1}function vi(j,G){var ne=this.__data__,Ve=ia(ne,j);return Ve<0?(++this.size,ne.push([j,G])):ne[Ve][1]=G,this}An.prototype.clear=dr,An.prototype.delete=fr,An.prototype.get=jn,An.prototype.has=na,An.prototype.set=vi;function hr(j){var G=-1,ne=j==null?0:j.length;for(this.clear();++G<ne;){var Ve=j[G];this.set(Ve[0],Ve[1])}}function ra(){this.size=0,this.__data__={hash:new It,map:new(De||An),string:new It}}function Zt(j){var G=Ca(this,j).delete(j);return this.size-=G?1:0,G}function Hr(j){return Ca(this,j).get(j)}function yi(j){return Ca(this,j).has(j)}function _i(j,G){var ne=Ca(this,j),Ve=ne.size;return ne.set(j,G),this.size+=ne.size==Ve?0:1,this}hr.prototype.clear=ra,hr.prototype.delete=Zt,hr.prototype.get=Hr,hr.prototype.has=yi,hr.prototype.set=_i;function an(j){var G=this.__data__=new An(j);this.size=G.size}function Ja(){this.__data__=new An,this.size=0}function ll(j){var G=this.__data__,ne=G.delete(j);return this.size=G.size,ne}function ms(j){return this.__data__.get(j)}function ku(j){return this.__data__.has(j)}function Ph(j,G){var ne=this.__data__;if(ne instanceof An){var Ve=ne.__data__;if(!De||Ve.length<n-1)return Ve.push([j,G]),this.size=++ne.size,this;ne=this.__data__=new hr(Ve)}return ne.set(j,G),this.size=ne.size,this}an.prototype.clear=Ja,an.prototype.delete=ll,an.prototype.get=ms,an.prototype.has=ku,an.prototype.set=Ph;function Oh(j,G){var ne=hl(j),Ve=!ne&&Lu(j),Lt=!ne&&!Ve&&Xc(j),on=!ne&&!Ve&&!Lt&&ed(j),_t=ne||Ve||Lt||on,Et=_t?Yt(j.length,String):[],Qt=Et.length;for(var Wr in j)(G||Ie.call(j,Wr))&&!(_t&&(Wr=="length"||Lt&&(Wr=="offset"||Wr=="parent")||on&&(Wr=="buffer"||Wr=="byteLength"||Wr=="byteOffset")||qc(Wr,Qt)))&&Et.push(Wr);return Et}function Lo(j,G,ne){(ne!==void 0&&!_s(j[G],ne)||ne===void 0&&!(G in j))&&Tu(j,G,ne)}function Rh(j,G,ne){var Ve=j[G];(!(Ie.call(j,G)&&_s(Ve,ne))||ne===void 0&&!(G in j))&&Tu(j,G,ne)}function ia(j,G){for(var ne=j.length;ne--;)if(_s(j[ne][0],G))return ne;return-1}function Tu(j,G,ne){G=="__proto__"&&Me?Me(j,G,{configurable:!0,enumerable:!0,value:ne,writable:!0}):j[G]=ne}var Ah=ys();function ul(j){return j==null?j===void 0?I:b:he&&he in Object(j)?Mo(j):dl(j)}function Pu(j){return bs(j)&&ul(j)==s}function jc(j){if(!aa(j)||Iu(j))return!1;var G=Mu(j)?Dn:Ce;return G.test(Qc(j))}function Fi(j){return bs(j)&&Jc(j.length)&&!!xe[ul(j)]}function Bc(j){if(!aa(j))return Kc(j);var G=eo(j),ne=[];for(var Ve in j)Ve=="constructor"&&(G||!Ie.call(j,Ve))||ne.push(Ve);return ne}function xa(j,G,ne,Ve,Lt){j!==G&&Ah(G,function(on,_t){if(Lt||(Lt=new an),aa(on))Ou(j,G,_t,ne,xa,Ve,Lt);else{var Et=Ve?Ve(fl(j,_t),on,_t+"",j,G,Lt):void 0;Et===void 0&&(Et=on),Lo(j,_t,Et)}},nd)}function Ou(j,G,ne,Ve,Lt,on,_t){var Et=fl(j,ne),Qt=fl(G,ne),Wr=_t.get(Qt);if(Wr){Lo(j,ne,Wr);return}var br=on?on(Et,Qt,ne+"",j,G,_t):void 0,Sr=br===void 0;if(Sr){var vl=hl(Qt),yl=!vl&&Xc(Qt),Du=!vl&&!yl&&ed(Qt);br=Qt,vl||yl||Du?hl(Et)?br=Et:Mh(Et)?br=Lh(Et):yl?(Sr=!1,br=Uc(Qt,!0)):Du?(Sr=!1,br=gs(Qt,!0)):br=[]:Dh(Qt)||Lu(Qt)?(br=Et,Lu(Et)?br=td(Et):(!aa(Et)||Mu(Et))&&(br=Ru(Qt))):Sr=!1}Sr&&(_t.set(Qt,br),Lt(br,Qt,Ve,on,_t),_t.delete(Qt)),Lo(j,ne,br)}function Ih(j,G){return Yc(to(j,G,ml),j+"")}var Vc=Me?function(j,G){return Me(j,"toString",{configurable:!0,enumerable:!1,value:Be(G),writable:!0})}:ml;function Uc(j,G){if(G)return j.slice();var ne=j.length,Ve=Yn?Yn(ne):new j.constructor(ne);return j.copy(Ve),Ve}function Hc(j){var G=new j.constructor(j.byteLength);return new ti(G).set(new ti(j)),G}function gs(j,G){var ne=G?Hc(j.buffer):j.buffer;return new j.constructor(ne,j.byteOffset,j.length)}function Lh(j,G){var ne=-1,Ve=j.length;for(G||(G=Array(Ve));++ne<Ve;)G[ne]=j[ne];return G}function Wc(j,G,ne,Ve){var Lt=!ne;ne||(ne={});for(var on=-1,_t=G.length;++on<_t;){var Et=G[on],Qt=Ve?Ve(ne[Et],j[Et],Et,ne,j):void 0;Qt===void 0&&(Qt=j[Et]),Lt?Tu(ne,Et,Qt):Rh(ne,Et,Qt)}return ne}function vs(j){return Ih(function(G,ne){var Ve=-1,Lt=ne.length,on=Lt>1?ne[Lt-1]:void 0,_t=Lt>2?ne[2]:void 0;for(on=j.length>3&&typeof on=="function"?(Lt--,on):void 0,_t&&Gc(ne[0],ne[1],_t)&&(on=Lt<3?void 0:on,Lt=1),G=Object(G);++Ve<Lt;){var Et=ne[Ve];Et&&j(G,Et,Ve,on)}return G})}function ys(j){return function(G,ne,Ve){for(var Lt=-1,on=Object(G),_t=Ve(G),Et=_t.length;Et--;){var Qt=_t[j?Et:++Lt];if(ne(on[Qt],Qt,on)===!1)break}return G}}function Ca(j,G){var ne=j.__data__;return Au(G)?ne[typeof G=="string"?"string":"hash"]:ne.map}function cl(j,G){var ne=yt(j,G);return jc(ne)?ne:void 0}function Mo(j){var G=Ie.call(j,he),ne=j[he];try{j[he]=void 0;var Ve=!0}catch{}var Lt=Ge.call(j);return Ve&&(G?j[he]=ne:delete j[he]),Lt}function Ru(j){return typeof j.constructor=="function"&&!eo(j)?gt(ni(j)):{}}function qc(j,G){var ne=typeof j;return G=G??o,!!G&&(ne=="number"||ne!="symbol"&&Ee.test(j))&&j>-1&&j%1==0&&j<G}function Gc(j,G,ne){if(!aa(ne))return!1;var Ve=typeof G;return(Ve=="number"?pl(ne)&&qc(G,ne.length):Ve=="string"&&G in ne)?_s(ne[G],j):!1}function Au(j){var G=typeof j;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?j!=="__proto__":j===null}function Iu(j){return!!Ft&&Ft in j}function eo(j){var G=j&&j.constructor,ne=typeof G=="function"&&G.prototype||Se;return j===ne}function Kc(j){var G=[];if(j!=null)for(var ne in Object(j))G.push(ne);return G}function dl(j){return Ge.call(j)}function to(j,G,ne){return G=et(G===void 0?j.length-1:G,0),function(){for(var Ve=arguments,Lt=-1,on=et(Ve.length-G,0),_t=Array(on);++Lt<on;)_t[Lt]=Ve[G+Lt];Lt=-1;for(var Et=Array(G+1);++Lt<G;)Et[Lt]=Ve[Lt];return Et[G]=ne(_t),Sn(j,this,Et)}}function fl(j,G){if(!(G==="constructor"&&typeof j[G]=="function")&&G!="__proto__")return j[G]}var Yc=Zc(Vc);function Zc(j){var G=0,ne=0;return function(){var Ve=Ze(),Lt=a-(Ve-ne);if(ne=Ve,Lt>0){if(++G>=i)return arguments[0]}else G=0;return j.apply(void 0,arguments)}}function Qc(j){if(j!=null){try{return ge.call(j)}catch{}try{return j+""}catch{}}return""}function _s(j,G){return j===G||j!==j&&G!==G}var Lu=Pu(function(){return arguments}())?Pu:function(j){return bs(j)&&Ie.call(j,"callee")&&!te.call(j,"callee")},hl=Array.isArray;function pl(j){return j!=null&&Jc(j.length)&&!Mu(j)}function Mh(j){return bs(j)&&pl(j)}var Xc=st||gl;function Mu(j){if(!aa(j))return!1;var G=ul(j);return G==v||G==y||G==c||G==C}function Jc(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=o}function aa(j){var G=typeof j;return j!=null&&(G=="object"||G=="function")}function bs(j){return j!=null&&typeof j=="object"}function Dh(j){if(!bs(j)||ul(j)!=S)return!1;var G=ni(j);if(G===null)return!0;var ne=Ie.call(G,"constructor")&&G.constructor;return typeof ne=="function"&&ne instanceof ne&&ge.call(ne)==Kn}var ed=Nt?Te(Nt):Fi;function td(j){return Wc(j,nd(j))}function nd(j){return pl(j)?Oh(j,!0):Bc(j)}var mn=vs(function(j,G,ne,Ve){xa(j,G,ne,Ve)});function Be(j){return function(){return j}}function ml(j){return j}function gl(){return!1}e.exports=mn})(s1,s1.exports);var BQ=s1.exports;const Ua=vu(BQ);var VQ=e=>/!(important)?$/.test(e),N7=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,UQ=(e,t)=>n=>{const r=String(t),i=VQ(r),a=N7(r),o=e?`${e}.${a}`:a;let s=Qi(n.__cssMap)&&o in n.__cssMap?n.__cssMap[o].varRef:t;return s=N7(s),i?`${s} !important`:s};function f4(e){const{scale:t,transform:n,compose:r}=e;return(a,o)=>{var s;const l=UQ(t,a)(o);let c=(s=n==null?void 0:n(l,o))!=null?s:l;return r&&(c=r(c,o)),c}}var y0=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Aa(e,t){return n=>{const r={property:n,scale:e};return r.transform=f4({scale:e,transform:t}),r}}var HQ=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function WQ(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:HQ(t),transform:n?f4({scale:n,compose:r}):r}}var qL=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function qQ(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...qL].join(" ")}function GQ(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...qL].join(" ")}var KQ={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},YQ={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function ZQ(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var QQ={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},mC={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},XQ=new Set(Object.values(mC)),gC=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),JQ=e=>e.trim();function eX(e,t){if(e==null||gC.has(e))return e;if(!(vC(e)||gC.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=i==null?void 0:i[1],o=i==null?void 0:i[2];if(!a||!o)return e;const s=a.includes("-gradient")?a:`${a}-gradient`,[l,...c]=o.split(",").map(JQ).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const f=l in mC?mC[l]:l;c.unshift(f);const h=c.map(p=>{if(XQ.has(p))return p;const v=p.indexOf(" "),[y,m]=v!==-1?[p.substr(0,v),p.substr(v+1)]:[p],_=vC(m)?m:m&&m.split(" "),b=`colors.${y}`,S=b in t.__cssMap?t.__cssMap[b].varRef:y;return _?[S,...Array.isArray(_)?_:[_]].join(" "):S});return`${s}(${h.join(", ")})`}var vC=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),tX=(e,t)=>eX(e,t??{});function nX(e){return/^var\(--.+\)$/.test(e)}var rX=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},jo=e=>t=>`${e}(${t})`,tn={filter(e){return e!=="auto"?e:KQ},backdropFilter(e){return e!=="auto"?e:YQ},ring(e){return ZQ(tn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?qQ():e==="auto-gpu"?GQ():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=rX(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(nX(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:tX,blur:jo("blur"),opacity:jo("opacity"),brightness:jo("brightness"),contrast:jo("contrast"),dropShadow:jo("drop-shadow"),grayscale:jo("grayscale"),hueRotate:jo("hue-rotate"),invert:jo("invert"),saturate:jo("saturate"),sepia:jo("sepia"),bgImage(e){return e==null||vC(e)||gC.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=QQ[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},K={borderWidths:Aa("borderWidths"),borderStyles:Aa("borderStyles"),colors:Aa("colors"),borders:Aa("borders"),gradients:Aa("gradients",tn.gradient),radii:Aa("radii",tn.px),space:Aa("space",y0(tn.vh,tn.px)),spaceT:Aa("space",y0(tn.vh,tn.px)),degreeT(e){return{property:e,transform:tn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:f4({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Aa("sizes",y0(tn.vh,tn.px)),sizesT:Aa("sizes",y0(tn.vh,tn.fraction)),shadows:Aa("shadows"),logical:WQ,blur:Aa("blur",tn.blur)},ly={background:K.colors("background"),backgroundColor:K.colors("backgroundColor"),backgroundImage:K.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:tn.bgClip},bgSize:K.prop("backgroundSize"),bgPosition:K.prop("backgroundPosition"),bg:K.colors("background"),bgColor:K.colors("backgroundColor"),bgPos:K.prop("backgroundPosition"),bgRepeat:K.prop("backgroundRepeat"),bgAttachment:K.prop("backgroundAttachment"),bgGradient:K.gradients("backgroundImage"),bgClip:{transform:tn.bgClip}};Object.assign(ly,{bgImage:ly.backgroundImage,bgImg:ly.backgroundImage});var ln={border:K.borders("border"),borderWidth:K.borderWidths("borderWidth"),borderStyle:K.borderStyles("borderStyle"),borderColor:K.colors("borderColor"),borderRadius:K.radii("borderRadius"),borderTop:K.borders("borderTop"),borderBlockStart:K.borders("borderBlockStart"),borderTopLeftRadius:K.radii("borderTopLeftRadius"),borderStartStartRadius:K.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:K.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:K.radii("borderTopRightRadius"),borderStartEndRadius:K.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:K.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:K.borders("borderRight"),borderInlineEnd:K.borders("borderInlineEnd"),borderBottom:K.borders("borderBottom"),borderBlockEnd:K.borders("borderBlockEnd"),borderBottomLeftRadius:K.radii("borderBottomLeftRadius"),borderBottomRightRadius:K.radii("borderBottomRightRadius"),borderLeft:K.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:K.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:K.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:K.borders(["borderLeft","borderRight"]),borderInline:K.borders("borderInline"),borderY:K.borders(["borderTop","borderBottom"]),borderBlock:K.borders("borderBlock"),borderTopWidth:K.borderWidths("borderTopWidth"),borderBlockStartWidth:K.borderWidths("borderBlockStartWidth"),borderTopColor:K.colors("borderTopColor"),borderBlockStartColor:K.colors("borderBlockStartColor"),borderTopStyle:K.borderStyles("borderTopStyle"),borderBlockStartStyle:K.borderStyles("borderBlockStartStyle"),borderBottomWidth:K.borderWidths("borderBottomWidth"),borderBlockEndWidth:K.borderWidths("borderBlockEndWidth"),borderBottomColor:K.colors("borderBottomColor"),borderBlockEndColor:K.colors("borderBlockEndColor"),borderBottomStyle:K.borderStyles("borderBottomStyle"),borderBlockEndStyle:K.borderStyles("borderBlockEndStyle"),borderLeftWidth:K.borderWidths("borderLeftWidth"),borderInlineStartWidth:K.borderWidths("borderInlineStartWidth"),borderLeftColor:K.colors("borderLeftColor"),borderInlineStartColor:K.colors("borderInlineStartColor"),borderLeftStyle:K.borderStyles("borderLeftStyle"),borderInlineStartStyle:K.borderStyles("borderInlineStartStyle"),borderRightWidth:K.borderWidths("borderRightWidth"),borderInlineEndWidth:K.borderWidths("borderInlineEndWidth"),borderRightColor:K.colors("borderRightColor"),borderInlineEndColor:K.colors("borderInlineEndColor"),borderRightStyle:K.borderStyles("borderRightStyle"),borderInlineEndStyle:K.borderStyles("borderInlineEndStyle"),borderTopRadius:K.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:K.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:K.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:K.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ln,{rounded:ln.borderRadius,roundedTop:ln.borderTopRadius,roundedTopLeft:ln.borderTopLeftRadius,roundedTopRight:ln.borderTopRightRadius,roundedTopStart:ln.borderStartStartRadius,roundedTopEnd:ln.borderStartEndRadius,roundedBottom:ln.borderBottomRadius,roundedBottomLeft:ln.borderBottomLeftRadius,roundedBottomRight:ln.borderBottomRightRadius,roundedBottomStart:ln.borderEndStartRadius,roundedBottomEnd:ln.borderEndEndRadius,roundedLeft:ln.borderLeftRadius,roundedRight:ln.borderRightRadius,roundedStart:ln.borderInlineStartRadius,roundedEnd:ln.borderInlineEndRadius,borderStart:ln.borderInlineStart,borderEnd:ln.borderInlineEnd,borderTopStartRadius:ln.borderStartStartRadius,borderTopEndRadius:ln.borderStartEndRadius,borderBottomStartRadius:ln.borderEndStartRadius,borderBottomEndRadius:ln.borderEndEndRadius,borderStartRadius:ln.borderInlineStartRadius,borderEndRadius:ln.borderInlineEndRadius,borderStartWidth:ln.borderInlineStartWidth,borderEndWidth:ln.borderInlineEndWidth,borderStartColor:ln.borderInlineStartColor,borderEndColor:ln.borderInlineEndColor,borderStartStyle:ln.borderInlineStartStyle,borderEndStyle:ln.borderInlineEndStyle});var iX={color:K.colors("color"),textColor:K.colors("color"),fill:K.colors("fill"),stroke:K.colors("stroke")},yC={boxShadow:K.shadows("boxShadow"),mixBlendMode:!0,blendMode:K.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:K.prop("backgroundBlendMode"),opacity:!0};Object.assign(yC,{shadow:yC.boxShadow});var aX={filter:{transform:tn.filter},blur:K.blur("--chakra-blur"),brightness:K.propT("--chakra-brightness",tn.brightness),contrast:K.propT("--chakra-contrast",tn.contrast),hueRotate:K.degreeT("--chakra-hue-rotate"),invert:K.propT("--chakra-invert",tn.invert),saturate:K.propT("--chakra-saturate",tn.saturate),dropShadow:K.propT("--chakra-drop-shadow",tn.dropShadow),backdropFilter:{transform:tn.backdropFilter},backdropBlur:K.blur("--chakra-backdrop-blur"),backdropBrightness:K.propT("--chakra-backdrop-brightness",tn.brightness),backdropContrast:K.propT("--chakra-backdrop-contrast",tn.contrast),backdropHueRotate:K.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:K.propT("--chakra-backdrop-invert",tn.invert),backdropSaturate:K.propT("--chakra-backdrop-saturate",tn.saturate)},l1={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:tn.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:K.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:K.space("gap"),rowGap:K.space("rowGap"),columnGap:K.space("columnGap")};Object.assign(l1,{flexDir:l1.flexDirection});var GL={gridGap:K.space("gridGap"),gridColumnGap:K.space("gridColumnGap"),gridRowGap:K.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},oX={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:tn.outline},outlineOffset:!0,outlineColor:K.colors("outlineColor")},Ma={width:K.sizesT("width"),inlineSize:K.sizesT("inlineSize"),height:K.sizes("height"),blockSize:K.sizes("blockSize"),boxSize:K.sizes(["width","height"]),minWidth:K.sizes("minWidth"),minInlineSize:K.sizes("minInlineSize"),minHeight:K.sizes("minHeight"),minBlockSize:K.sizes("minBlockSize"),maxWidth:K.sizes("maxWidth"),maxInlineSize:K.sizes("maxInlineSize"),maxHeight:K.sizes("maxHeight"),maxBlockSize:K.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:K.propT("float",tn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ma,{w:Ma.width,h:Ma.height,minW:Ma.minWidth,maxW:Ma.maxWidth,minH:Ma.minHeight,maxH:Ma.maxHeight,overscroll:Ma.overscrollBehavior,overscrollX:Ma.overscrollBehaviorX,overscrollY:Ma.overscrollBehaviorY});var sX={listStyleType:!0,listStylePosition:!0,listStylePos:K.prop("listStylePosition"),listStyleImage:!0,listStyleImg:K.prop("listStyleImage")};function lX(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var uX=e=>{const t=new WeakMap;return(r,i,a,o)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(i))return s.get(i);const l=e(r,i,a,o);return s.set(i,l),l}},cX=uX(lX),dX={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},fX={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},DS=(e,t,n)=>{const r={},i=cX(e,t,{});for(const a in i)a in n&&n[a]!=null||(r[a]=i[a]);return r},hX={srOnly:{transform(e){return e===!0?dX:e==="focusable"?fX:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>DS(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>DS(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>DS(t,e,n)}},Jp={position:!0,pos:K.prop("position"),zIndex:K.prop("zIndex","zIndices"),inset:K.spaceT("inset"),insetX:K.spaceT(["left","right"]),insetInline:K.spaceT("insetInline"),insetY:K.spaceT(["top","bottom"]),insetBlock:K.spaceT("insetBlock"),top:K.spaceT("top"),insetBlockStart:K.spaceT("insetBlockStart"),bottom:K.spaceT("bottom"),insetBlockEnd:K.spaceT("insetBlockEnd"),left:K.spaceT("left"),insetInlineStart:K.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:K.spaceT("right"),insetInlineEnd:K.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Jp,{insetStart:Jp.insetInlineStart,insetEnd:Jp.insetInlineEnd});var pX={ring:{transform:tn.ring},ringColor:K.colors("--chakra-ring-color"),ringOffset:K.prop("--chakra-ring-offset-width"),ringOffsetColor:K.colors("--chakra-ring-offset-color"),ringInset:K.prop("--chakra-ring-inset")},Ln={margin:K.spaceT("margin"),marginTop:K.spaceT("marginTop"),marginBlockStart:K.spaceT("marginBlockStart"),marginRight:K.spaceT("marginRight"),marginInlineEnd:K.spaceT("marginInlineEnd"),marginBottom:K.spaceT("marginBottom"),marginBlockEnd:K.spaceT("marginBlockEnd"),marginLeft:K.spaceT("marginLeft"),marginInlineStart:K.spaceT("marginInlineStart"),marginX:K.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:K.spaceT("marginInline"),marginY:K.spaceT(["marginTop","marginBottom"]),marginBlock:K.spaceT("marginBlock"),padding:K.space("padding"),paddingTop:K.space("paddingTop"),paddingBlockStart:K.space("paddingBlockStart"),paddingRight:K.space("paddingRight"),paddingBottom:K.space("paddingBottom"),paddingBlockEnd:K.space("paddingBlockEnd"),paddingLeft:K.space("paddingLeft"),paddingInlineStart:K.space("paddingInlineStart"),paddingInlineEnd:K.space("paddingInlineEnd"),paddingX:K.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:K.space("paddingInline"),paddingY:K.space(["paddingTop","paddingBottom"]),paddingBlock:K.space("paddingBlock")};Object.assign(Ln,{m:Ln.margin,mt:Ln.marginTop,mr:Ln.marginRight,me:Ln.marginInlineEnd,marginEnd:Ln.marginInlineEnd,mb:Ln.marginBottom,ml:Ln.marginLeft,ms:Ln.marginInlineStart,marginStart:Ln.marginInlineStart,mx:Ln.marginX,my:Ln.marginY,p:Ln.padding,pt:Ln.paddingTop,py:Ln.paddingY,px:Ln.paddingX,pb:Ln.paddingBottom,pl:Ln.paddingLeft,ps:Ln.paddingInlineStart,paddingStart:Ln.paddingInlineStart,pr:Ln.paddingRight,pe:Ln.paddingInlineEnd,paddingEnd:Ln.paddingInlineEnd});var mX={textDecorationColor:K.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:K.shadows("textShadow")},gX={clipPath:!0,transform:K.propT("transform",tn.transform),transformOrigin:!0,translateX:K.spaceT("--chakra-translate-x"),translateY:K.spaceT("--chakra-translate-y"),skewX:K.degreeT("--chakra-skew-x"),skewY:K.degreeT("--chakra-skew-y"),scaleX:K.prop("--chakra-scale-x"),scaleY:K.prop("--chakra-scale-y"),scale:K.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:K.degreeT("--chakra-rotate")},vX={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:K.prop("transitionDuration","transition.duration"),transitionProperty:K.prop("transitionProperty","transition.property"),transitionTimingFunction:K.prop("transitionTimingFunction","transition.easing")},yX={fontFamily:K.prop("fontFamily","fonts"),fontSize:K.prop("fontSize","fontSizes",tn.px),fontWeight:K.prop("fontWeight","fontWeights"),lineHeight:K.prop("lineHeight","lineHeights"),letterSpacing:K.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},_X={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:K.spaceT("scrollMargin"),scrollMarginTop:K.spaceT("scrollMarginTop"),scrollMarginBottom:K.spaceT("scrollMarginBottom"),scrollMarginLeft:K.spaceT("scrollMarginLeft"),scrollMarginRight:K.spaceT("scrollMarginRight"),scrollMarginX:K.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:K.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:K.spaceT("scrollPadding"),scrollPaddingTop:K.spaceT("scrollPaddingTop"),scrollPaddingBottom:K.spaceT("scrollPaddingBottom"),scrollPaddingLeft:K.spaceT("scrollPaddingLeft"),scrollPaddingRight:K.spaceT("scrollPaddingRight"),scrollPaddingX:K.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:K.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function KL(e){return Qi(e)&&e.reference?e.reference:String(e)}var fb=(e,...t)=>t.map(KL).join(` ${e} `).replace(/calc/g,""),F7=(...e)=>`calc(${fb("+",...e)})`,$7=(...e)=>`calc(${fb("-",...e)})`,_C=(...e)=>`calc(${fb("*",...e)})`,z7=(...e)=>`calc(${fb("/",...e)})`,j7=e=>{const t=KL(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:_C(t,-1)},Ju=Object.assign(e=>({add:(...t)=>Ju(F7(e,...t)),subtract:(...t)=>Ju($7(e,...t)),multiply:(...t)=>Ju(_C(e,...t)),divide:(...t)=>Ju(z7(e,...t)),negate:()=>Ju(j7(e)),toString:()=>e.toString()}),{add:F7,subtract:$7,multiply:_C,divide:z7,negate:j7});function bX(e,t="-"){return e.replace(/\s+/g,t)}function SX(e){const t=bX(e.toString());return xX(wX(t))}function wX(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function xX(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function CX(e,t=""){return[t,e].filter(Boolean).join("-")}function EX(e,t){return`var(${e}${t?`, ${t}`:""})`}function kX(e,t=""){return SX(`--${CX(e,t)}`)}function tt(e,t,n){const r=kX(e,n);return{variable:r,reference:EX(r,t)}}function TX(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,a]=r;n[i]=tt(`${e}-${i}`,a);continue}n[r]=tt(`${e}-${r}`)}return n}function PX(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function OX(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function bC(e){if(e==null)return e;const{unitless:t}=OX(e);return t||typeof e=="number"?`${e}px`:e}var YL=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,h4=e=>Object.fromEntries(Object.entries(e).sort(YL));function B7(e){const t=h4(e);return Object.assign(Object.values(t),t)}function RX(e){const t=Object.keys(h4(e));return new Set(t)}function V7(e){var t;if(!e)return e;e=(t=bC(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function Dp(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${bC(e)})`),t&&n.push("and",`(max-width: ${bC(t)})`),n.join(" ")}function AX(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=B7(e),r=Object.entries(e).sort(YL).map(([o,s],l,c)=>{var f;let[,h]=(f=c[l+1])!=null?f:[];return h=parseFloat(h)>0?V7(h):void 0,{_minW:V7(s),breakpoint:o,minW:s,maxW:h,maxWQuery:Dp(null,h),minWQuery:Dp(s),minMaxQuery:Dp(s,h)}}),i=RX(e),a=Array.from(i.values());return{keys:i,normalized:n,isResponsive(o){const s=Object.keys(o);return s.length>0&&s.every(l=>i.has(l))},asObject:h4(e),asArray:B7(e),details:r,get(o){return r.find(s=>s.breakpoint===o)},media:[null,...n.map(o=>Dp(o)).slice(1)],toArrayValue(o){if(!Qi(o))throw new Error("toArrayValue: value must be an object");const s=a.map(l=>{var c;return(c=o[l])!=null?c:null});for(;PX(s)===null;)s.pop();return s},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((s,l,c)=>{const f=a[c];return f!=null&&l!=null&&(s[f]=l),s},{})}}}var Gr={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Pl=e=>ZL(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Rs=e=>ZL(t=>e(t,"~ &"),"[data-peer]",".peer"),ZL=(e,...t)=>t.map(e).join(", "),hb={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Pl(Gr.hover),_peerHover:Rs(Gr.hover),_groupFocus:Pl(Gr.focus),_peerFocus:Rs(Gr.focus),_groupFocusVisible:Pl(Gr.focusVisible),_peerFocusVisible:Rs(Gr.focusVisible),_groupActive:Pl(Gr.active),_peerActive:Rs(Gr.active),_groupDisabled:Pl(Gr.disabled),_peerDisabled:Rs(Gr.disabled),_groupInvalid:Pl(Gr.invalid),_peerInvalid:Rs(Gr.invalid),_groupChecked:Pl(Gr.checked),_peerChecked:Rs(Gr.checked),_groupFocusWithin:Pl(Gr.focusWithin),_peerFocusWithin:Rs(Gr.focusWithin),_peerPlaceholderShown:Rs(Gr.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},QL=Object.keys(hb);function U7(e,t){return tt(String(e).replace(/\./g,"-"),void 0,t)}function IX(e,t){let n={};const r={};for(const[i,a]of Object.entries(e)){const{isSemantic:o,value:s}=a,{variable:l,reference:c}=U7(i,t==null?void 0:t.cssVarPrefix);if(!o){if(i.startsWith("space")){const p=i.split("."),[v,...y]=p,m=`${v}.-${y.join(".")}`,_=Ju.negate(s),b=Ju.negate(c);r[m]={value:_,var:l,varRef:b}}n[l]=s,r[i]={value:s,var:l,varRef:c};continue}const f=p=>{const y=[String(i).split(".")[0],p].join(".");if(!e[y])return p;const{reference:_}=U7(y,t==null?void 0:t.cssVarPrefix);return _},h=Qi(s)?s:{default:s};n=Ua(n,Object.entries(h).reduce((p,[v,y])=>{var m,_;if(!y)return p;const b=f(`${y}`);if(v==="default")return p[l]=b,p;const S=(_=(m=hb)==null?void 0:m[v])!=null?_:v;return p[S]={[l]:b},p},{})),r[i]={value:c,var:l,varRef:c}}return{cssVars:n,cssMap:r}}function LX(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function MX(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function DX(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function H7(e,t,n={}){const{stop:r,getKey:i}=n;function a(o,s=[]){var l;if(DX(o)||Array.isArray(o)){const c={};for(const[f,h]of Object.entries(o)){const p=(l=i==null?void 0:i(f))!=null?l:f,v=[...s,p];if(r!=null&&r(o,v))return t(o,s);c[p]=a(h,v)}return c}return t(o,s)}return a(e)}var NX=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function FX(e){return MX(e,NX)}function $X(e){return e.semanticTokens}function zX(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}var jX=e=>QL.includes(e)||e==="default";function BX({tokens:e,semanticTokens:t}){const n={};return H7(e,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!1,value:r})}),H7(t,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(jX)}),n}function VX(e){var t;const n=zX(e),r=FX(n),i=$X(n),a=BX({tokens:r,semanticTokens:i}),o=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=IX(a,{cssVarPrefix:o});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:AX(n.breakpoints)}),n}var p4=Ua({},ly,ln,iX,l1,Ma,aX,pX,oX,GL,hX,Jp,yC,Ln,_X,yX,mX,gX,sX,vX);Object.assign({},Ln,Ma,l1,GL,Jp);var UX=[...Object.keys(p4),...QL],HX={...p4,...hb},WX=e=>e in HX,qX=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,a={};for(const o in e){let s=fa(e[o],t);if(s==null)continue;if(s=Qi(s)&&n(s)?r(s):s,!Array.isArray(s)){a[o]=s;continue}const l=s.slice(0,i.length).length;for(let c=0;c<l;c+=1){const f=i==null?void 0:i[c];if(!f){a[o]=s[c];continue}a[f]=a[f]||{},s[c]!=null&&(a[f][o]=s[c])}}return a};function GX(e){const t=[];let n="",r=!1;for(let i=0;i<e.length;i++){const a=e[i];a==="("?(r=!0,n+=a):a===")"?(r=!1,n+=a):a===","&&!r?(t.push(n),n=""):n+=a}return n=n.trim(),n&&t.push(n),t}function KX(e){return/^var\(--.+\)$/.test(e)}var YX=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!KX(t),ZX=(e,t)=>{var n,r;if(t==null)return t;const i=l=>{var c,f;return(f=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:f.varRef},a=l=>{var c;return(c=i(l))!=null?c:l},[o,s]=GX(t);return t=(r=(n=i(o))!=null?n:a(s))!=null?r:a(t),t};function QX(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(a,o=!1)=>{var s,l,c;const f=fa(a,r),h=qX(f)(r);let p={};for(let v in h){const y=h[v];let m=fa(y,r);v in n&&(v=n[v]),YX(v,m)&&(m=ZX(r,m));let _=t[v];if(_===!0&&(_={property:v}),Qi(m)){p[v]=(s=p[v])!=null?s:{},p[v]=Ua({},p[v],i(m,!0));continue}let b=(c=(l=_==null?void 0:_.transform)==null?void 0:l.call(_,m,r,f))!=null?c:m;b=_!=null&&_.processResult?i(b,!0):b;const S=fa(_==null?void 0:_.property,r);if(!o&&(_!=null&&_.static)){const C=fa(_.static,r);p=Ua({},p,C)}if(S&&Array.isArray(S)){for(const C of S)p[C]=b;continue}if(S){S==="&"&&Qi(b)?p=Ua({},p,b):p[S]=b;continue}if(Qi(b)){p=Ua({},p,b);continue}p[v]=b}return p};return i}var XL=e=>t=>QX({theme:t,pseudos:hb,configs:p4})(e);function On(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function XX(e,t){if(Array.isArray(e))return e;if(Qi(e))return t(e);if(e!=null)return[e]}function JX(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function eJ(e){const t=e.__breakpoints;return function(r,i,a,o){var s,l;if(!t)return;const c={},f=XX(a,t.toArrayValue);if(!f)return c;const h=f.length,p=h===1,v=!!r.parts;for(let y=0;y<h;y++){const m=t.details[y],_=t.details[JX(f,y)],b=Dp(m.minW,_==null?void 0:_._minW),S=fa((s=r[i])==null?void 0:s[f[y]],o);if(S){if(v){(l=r.parts)==null||l.forEach(C=>{Ua(c,{[C]:p?S[C]:{[b]:S[C]}})});continue}if(!v){p?Ua(c,S):c[b]=S;continue}c[b]=S}}return c}}function tJ(e){return t=>{var n;const{variant:r,size:i,theme:a}=t,o=eJ(a);return Ua({},fa((n=e.baseStyle)!=null?n:{},t),o(e,"sizes",i,t),o(e,"variants",r,t))}}function _r(e){return LX(e,["styleConfig","size","variant","colorScheme"])}var nJ=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function rJ(e){return Qi(e)?nJ.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var iJ={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},aJ={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},oJ={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},sJ={property:iJ,easing:aJ,duration:oJ},lJ=sJ,uJ={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},cJ=uJ,dJ={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},fJ=dJ,hJ={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},pJ=hJ,mJ={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},gJ=mJ,vJ={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},yJ=vJ,_J={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},bJ=_J,SJ={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},wJ=SJ,xJ={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},JL=xJ,eM={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},CJ={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},EJ={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},kJ={...eM,...CJ,container:EJ},tM=kJ,TJ={breakpoints:pJ,zIndices:cJ,radii:yJ,blur:wJ,colors:gJ,...JL,sizes:tM,shadows:bJ,space:eM,borders:fJ,transition:lJ},{defineMultiStyleConfig:PJ,definePartsStyle:Np}=On(["stepper","step","title","description","indicator","separator","icon","number"]),Ds=tt("stepper-indicator-size"),Yd=tt("stepper-icon-size"),Zd=tt("stepper-title-font-size"),Fp=tt("stepper-description-font-size"),fp=tt("stepper-accent-color"),OJ=Np(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[fp.variable]:`colors.${e}.500`,_dark:{[fp.variable]:`colors.${e}.200`}},title:{fontSize:Zd.reference,fontWeight:"medium"},description:{fontSize:Fp.reference,color:"chakra-subtle-text"},number:{fontSize:Zd.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Yd.reference,height:Yd.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ds.reference,height:Ds.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:fp.reference},"&[data-status=complete]":{bg:fp.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:fp.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ds.reference} - 8px)`,top:`calc(${Ds.reference} + 4px)`,insetStart:`calc(${Ds.reference} / 2 - 1px)`}}})),RJ=PJ({baseStyle:OJ,sizes:{xs:Np({stepper:{[Ds.variable]:"sizes.4",[Yd.variable]:"sizes.3",[Zd.variable]:"fontSizes.xs",[Fp.variable]:"fontSizes.xs"}}),sm:Np({stepper:{[Ds.variable]:"sizes.6",[Yd.variable]:"sizes.4",[Zd.variable]:"fontSizes.sm",[Fp.variable]:"fontSizes.xs"}}),md:Np({stepper:{[Ds.variable]:"sizes.8",[Yd.variable]:"sizes.5",[Zd.variable]:"fontSizes.md",[Fp.variable]:"fontSizes.sm"}}),lg:Np({stepper:{[Ds.variable]:"sizes.10",[Yd.variable]:"sizes.6",[Zd.variable]:"fontSizes.lg",[Fp.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function pn(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...f){r();for(const h of f)t[h]=l(h);return pn(e,t)}function a(...f){for(const h of f)h in t||(t[h]=l(h));return pn(e,t)}function o(){return Object.fromEntries(Object.entries(t).map(([h,p])=>[h,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([h,p])=>[h,p.className]))}function l(f){const v=`chakra-${(["container","root"].includes(f??"")?[e]:[e,f]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>f}}return{parts:i,toPart:l,extend:a,selectors:o,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var AJ=pn("accordion").parts("root","container","button","panel").extend("icon"),IJ=pn("alert").parts("title","description","container").extend("icon","spinner"),LJ=pn("avatar").parts("label","badge","container").extend("excessLabel","group"),MJ=pn("breadcrumb").parts("link","item","container").extend("separator");pn("button").parts();var DJ=pn("checkbox").parts("control","icon","container").extend("label");pn("progress").parts("track","filledTrack").extend("label");var NJ=pn("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),FJ=pn("editable").parts("preview","input","textarea"),$J=pn("form").parts("container","requiredIndicator","helperText"),zJ=pn("formError").parts("text","icon"),jJ=pn("input").parts("addon","field","element","group"),BJ=pn("list").parts("container","item","icon"),VJ=pn("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),UJ=pn("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),HJ=pn("numberinput").parts("root","field","stepperGroup","stepper");pn("pininput").parts("field");var WJ=pn("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),qJ=pn("progress").parts("label","filledTrack","track"),GJ=pn("radio").parts("container","control","label"),KJ=pn("select").parts("field","icon"),YJ=pn("slider").parts("container","track","thumb","filledTrack","mark"),ZJ=pn("stat").parts("container","label","helpText","number","icon"),QJ=pn("switch").parts("container","track","thumb"),XJ=pn("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),JJ=pn("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),eee=pn("tag").parts("container","label","closeButton"),tee=pn("card").parts("container","header","body","footer");function ac(e,t,n){return Math.min(Math.max(e,n),t)}class nee extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var $p=nee;function m4(e){if(typeof e!="string")throw new $p(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=cee.test(e)?aee(e):e;const n=oee.exec(t);if(n){const o=Array.from(n).slice(1);return[...o.slice(0,3).map(s=>parseInt(Bm(s,2),16)),parseInt(Bm(o[3]||"f",2),16)/255]}const r=see.exec(t);if(r){const o=Array.from(r).slice(1);return[...o.slice(0,3).map(s=>parseInt(s,16)),parseInt(o[3]||"ff",16)/255]}const i=lee.exec(t);if(i){const o=Array.from(i).slice(1);return[...o.slice(0,3).map(s=>parseInt(s,10)),parseFloat(o[3]||"1")]}const a=uee.exec(t);if(a){const[o,s,l,c]=Array.from(a).slice(1).map(parseFloat);if(ac(0,100,s)!==s)throw new $p(e);if(ac(0,100,l)!==l)throw new $p(e);return[...dee(o,s,l),Number.isNaN(c)?1:c]}throw new $p(e)}function ree(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const W7=e=>parseInt(e.replace(/_/g,""),36),iee="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=W7(t.substring(0,3)),r=W7(t.substring(3)).toString(16);let i="";for(let a=0;a<6-r.length;a++)i+="0";return e[n]=`${i}${r}`,e},{});function aee(e){const t=e.toLowerCase().trim(),n=iee[ree(t)];if(!n)throw new $p(e);return`#${n}`}const Bm=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),oee=new RegExp(`^#${Bm("([a-f0-9])",3)}([a-f0-9])?$`,"i"),see=new RegExp(`^#${Bm("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),lee=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Bm(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),uee=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,cee=/^[a-z]+$/i,q7=e=>Math.round(e*255),dee=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(q7);const i=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),o=a*(1-Math.abs(i%2-1));let s=0,l=0,c=0;i>=0&&i<1?(s=a,l=o):i>=1&&i<2?(s=o,l=a):i>=2&&i<3?(l=a,c=o):i>=3&&i<4?(l=o,c=a):i>=4&&i<5?(s=o,c=a):i>=5&&i<6&&(s=a,c=o);const f=r-a/2,h=s+f,p=l+f,v=c+f;return[h,p,v].map(q7)};function fee(e,t,n,r){return`rgba(${ac(0,255,e).toFixed()}, ${ac(0,255,t).toFixed()}, ${ac(0,255,n).toFixed()}, ${parseFloat(ac(0,1,r).toFixed(3))})`}function hee(e,t){const[n,r,i,a]=m4(e);return fee(n,r,i,a-t)}function pee(e){const[t,n,r,i]=m4(e);let a=o=>{const s=ac(0,255,o).toString(16);return s.length===1?`0${s}`:s};return`#${a(t)}${a(n)}${a(r)}${i<1?a(Math.round(i*255)):""}`}function mee(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var gee=e=>Object.keys(e).length===0,Oi=(e,t,n)=>{const r=mee(e,`colors.${t}`,t);try{return pee(r),r}catch{return n??"#000000"}},vee=e=>{const[t,n,r]=m4(e);return(t*299+n*587+r*114)/1e3},yee=e=>t=>{const n=Oi(t,e);return vee(n)<128?"dark":"light"},_ee=e=>t=>yee(e)(t)==="dark",Hf=(e,t)=>n=>{const r=Oi(n,e);return hee(r,1-t)};function G7(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    327327    45deg,
    328328    ${t} 25%,
     
    333333    transparent 75%,
    334334    transparent
    335   )`,backgroundSize:`${e} ${e}`}}var bee=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function See(e){const t=bee();return!e||gee(e)?t:e.string&&e.colors?xee(e.string,e.colors):e.string&&!e.colors?wee(e.string):e.colors&&!e.string?Cee(e.colors):t}function wee(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function xee(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function Cee(e){return e[Math.floor(Math.random()*e.length)]}function at(e,t){return n=>n.colorMode==="dark"?t:e}function g4(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function nM(e){return Qi(e)&&e.reference?e.reference:String(e)}var pb=(e,...t)=>t.map(nM).join(` ${e} `).replace(/calc/g,""),K7=(...e)=>`calc(${pb("+",...e)})`,Y7=(...e)=>`calc(${pb("-",...e)})`,S3=(...e)=>`calc(${pb("*",...e)})`,Z7=(...e)=>`calc(${pb("/",...e)})`,Q7=e=>{const t=nM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:S3(t,-1)},Ns=Object.assign(e=>({add:(...t)=>Ns(K7(e,...t)),subtract:(...t)=>Ns(Y7(e,...t)),multiply:(...t)=>Ns(S3(e,...t)),divide:(...t)=>Ns(Z7(e,...t)),negate:()=>Ns(Q7(e)),toString:()=>e.toString()}),{add:K7,subtract:Y7,multiply:S3,divide:Z7,negate:Q7});function Eee(e){return!Number.isInteger(parseFloat(e.toString()))}function kee(e,t="-"){return e.replace(/\s+/g,t)}function rM(e){const t=kee(e.toString());return t.includes("\\.")?e:Eee(e)?t.replace(".","\\."):e}function Tee(e,t=""){return[t,rM(e)].filter(Boolean).join("-")}function Pee(e,t){return`var(${rM(e)}${t?`, ${t}`:""})`}function Oee(e,t=""){return`--${Tee(e,t)}`}function Rr(e,t){const n=Oee(e,t==null?void 0:t.prefix);return{variable:n,reference:Pee(n,Ree(t==null?void 0:t.fallback))}}function Ree(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:Aee,definePartsStyle:uy}=On(QJ.keys),em=Rr("switch-track-width"),hc=Rr("switch-track-height"),NS=Rr("switch-track-diff"),Iee=Ns.subtract(em,hc),w3=Rr("switch-thumb-x"),hp=Rr("switch-bg"),Lee=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[em.reference],height:[hc.reference],transitionProperty:"common",transitionDuration:"fast",[hp.variable]:"colors.gray.300",_dark:{[hp.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[hp.variable]:`colors.${t}.500`,_dark:{[hp.variable]:`colors.${t}.200`}},bg:hp.reference}},Mee={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[hc.reference],height:[hc.reference],_checked:{transform:`translateX(${w3.reference})`}},Dee=uy(e=>({container:{[NS.variable]:Iee,[w3.variable]:NS.reference,_rtl:{[w3.variable]:Ns(NS).negate().toString()}},track:Lee(e),thumb:Mee})),Nee={sm:uy({container:{[em.variable]:"1.375rem",[hc.variable]:"sizes.3"}}),md:uy({container:{[em.variable]:"1.875rem",[hc.variable]:"sizes.4"}}),lg:uy({container:{[em.variable]:"2.875rem",[hc.variable]:"sizes.6"}})},Fee=Aee({baseStyle:Dee,sizes:Nee,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$ee,definePartsStyle:wf}=On(XJ.keys),zee=wf({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),u1={"&[data-is-numeric=true]":{textAlign:"end"}},jee=wf(e=>{const{colorScheme:t}=e;return{th:{color:at("gray.600","gray.400")(e),borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...u1},td:{borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...u1},caption:{color:at("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Bee=wf(e=>{const{colorScheme:t}=e;return{th:{color:at("gray.600","gray.400")(e),borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...u1},td:{borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...u1},caption:{color:at("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e)},td:{background:at(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Vee={simple:jee,striped:Bee,unstyled:{}},Uee={sm:wf({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:wf({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:wf({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Hee=$ee({baseStyle:zee,variants:Vee,sizes:Uee,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),qi=tt("tabs-color"),mo=tt("tabs-bg"),_0=tt("tabs-border-color"),{defineMultiStyleConfig:Wee,definePartsStyle:is}=On(JJ.keys),qee=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Gee=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Kee=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},Yee={p:4},Zee=is(e=>({root:qee(e),tab:Gee(e),tablist:Kee(e),tabpanel:Yee})),Qee={sm:is({tab:{py:1,px:4,fontSize:"sm"}}),md:is({tab:{fontSize:"md",py:2,px:4}}),lg:is({tab:{fontSize:"lg",py:3,px:4}})},Xee=is(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",a=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[qi.variable]:`colors.${t}.600`,_dark:{[qi.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[mo.variable]:"colors.gray.200",_dark:{[mo.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:qi.reference,bg:mo.reference}}}),Jee=is(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[_0.variable]:"transparent",_selected:{[qi.variable]:`colors.${t}.600`,[_0.variable]:"colors.white",_dark:{[qi.variable]:`colors.${t}.300`,[_0.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:_0.reference},color:qi.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ete=is(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[mo.variable]:"colors.gray.50",_dark:{[mo.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[mo.variable]:"colors.white",[qi.variable]:`colors.${t}.600`,_dark:{[mo.variable]:"colors.gray.800",[qi.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:qi.reference,bg:mo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),tte=is(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Oi(n,`${t}.700`),bg:Oi(n,`${t}.100`)}}}}),nte=is(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[qi.variable]:"colors.gray.600",_dark:{[qi.variable]:"inherit"},_selected:{[qi.variable]:"colors.white",[mo.variable]:`colors.${t}.600`,_dark:{[qi.variable]:"colors.gray.800",[mo.variable]:`colors.${t}.300`}},color:qi.reference,bg:mo.reference}}}),rte=is({}),ite={line:Xee,enclosed:Jee,"enclosed-colored":ete,"soft-rounded":tte,"solid-rounded":nte,unstyled:rte},ate=Wee({baseStyle:Zee,sizes:Qee,variants:ite,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),sr=TX("badge",["bg","color","shadow"]),ote={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:sr.bg.reference,color:sr.color.reference,boxShadow:sr.shadow.reference},ste=e=>{const{colorScheme:t,theme:n}=e,r=Hf(`${t}.500`,.6)(n);return{[sr.bg.variable]:`colors.${t}.500`,[sr.color.variable]:"colors.white",_dark:{[sr.bg.variable]:r,[sr.color.variable]:"colors.whiteAlpha.800"}}},lte=e=>{const{colorScheme:t,theme:n}=e,r=Hf(`${t}.200`,.16)(n);return{[sr.bg.variable]:`colors.${t}.100`,[sr.color.variable]:`colors.${t}.800`,_dark:{[sr.bg.variable]:r,[sr.color.variable]:`colors.${t}.200`}}},ute=e=>{const{colorScheme:t,theme:n}=e,r=Hf(`${t}.200`,.8)(n);return{[sr.color.variable]:`colors.${t}.500`,_dark:{[sr.color.variable]:r},[sr.shadow.variable]:`inset 0 0 0px 1px ${sr.color.reference}`}},cte={solid:ste,subtle:lte,outline:ute},tm={baseStyle:ote,variants:cte,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:dte,definePartsStyle:pc}=On(eee.keys),X7=tt("tag-bg"),J7=tt("tag-color"),FS=tt("tag-shadow"),cy=tt("tag-min-height"),dy=tt("tag-min-width"),fy=tt("tag-font-size"),hy=tt("tag-padding-inline"),fte={fontWeight:"medium",lineHeight:1.2,outline:0,[J7.variable]:sr.color.reference,[X7.variable]:sr.bg.reference,[FS.variable]:sr.shadow.reference,color:J7.reference,bg:X7.reference,boxShadow:FS.reference,borderRadius:"md",minH:cy.reference,minW:dy.reference,fontSize:fy.reference,px:hy.reference,_focusVisible:{[FS.variable]:"shadows.outline"}},hte={lineHeight:1.2,overflow:"visible"},pte={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},mte=pc({container:fte,label:hte,closeButton:pte}),gte={sm:pc({container:{[cy.variable]:"sizes.5",[dy.variable]:"sizes.5",[fy.variable]:"fontSizes.xs",[hy.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:pc({container:{[cy.variable]:"sizes.6",[dy.variable]:"sizes.6",[fy.variable]:"fontSizes.sm",[hy.variable]:"space.2"}}),lg:pc({container:{[cy.variable]:"sizes.8",[dy.variable]:"sizes.8",[fy.variable]:"fontSizes.md",[hy.variable]:"space.3"}})},vte={subtle:pc(e=>{var t;return{container:(t=tm.variants)==null?void 0:t.subtle(e)}}),solid:pc(e=>{var t;return{container:(t=tm.variants)==null?void 0:t.solid(e)}}),outline:pc(e=>{var t;return{container:(t=tm.variants)==null?void 0:t.outline(e)}})},yte=dte({variants:vte,baseStyle:mte,sizes:gte,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:zs,defineMultiStyleConfig:_te}=On(jJ.keys),Qd=tt("input-height"),Xd=tt("input-font-size"),Jd=tt("input-padding"),ef=tt("input-border-radius"),bte=zs({addon:{height:Qd.reference,fontSize:Xd.reference,px:Jd.reference,borderRadius:ef.reference},field:{width:"100%",height:Qd.reference,fontSize:Xd.reference,px:Jd.reference,borderRadius:ef.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ol={lg:{[Xd.variable]:"fontSizes.lg",[Jd.variable]:"space.4",[ef.variable]:"radii.md",[Qd.variable]:"sizes.12"},md:{[Xd.variable]:"fontSizes.md",[Jd.variable]:"space.4",[ef.variable]:"radii.md",[Qd.variable]:"sizes.10"},sm:{[Xd.variable]:"fontSizes.sm",[Jd.variable]:"space.3",[ef.variable]:"radii.sm",[Qd.variable]:"sizes.8"},xs:{[Xd.variable]:"fontSizes.xs",[Jd.variable]:"space.2",[ef.variable]:"radii.sm",[Qd.variable]:"sizes.6"}},Ste={lg:zs({field:Ol.lg,group:Ol.lg}),md:zs({field:Ol.md,group:Ol.md}),sm:zs({field:Ol.sm,group:Ol.sm}),xs:zs({field:Ol.xs,group:Ol.xs})};function v4(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||at("blue.500","blue.300")(e),errorBorderColor:n||at("red.500","red.300")(e)}}var wte=zs(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=v4(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:at("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oi(t,r),boxShadow:`0 0 0 1px ${Oi(t,r)}`},_focusVisible:{zIndex:1,borderColor:Oi(t,n),boxShadow:`0 0 0 1px ${Oi(t,n)}`}},addon:{border:"1px solid",borderColor:at("inherit","whiteAlpha.50")(e),bg:at("gray.100","whiteAlpha.300")(e)}}}),xte=zs(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=v4(e);return{field:{border:"2px solid",borderColor:"transparent",bg:at("gray.100","whiteAlpha.50")(e),_hover:{bg:at("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oi(t,r)},_focusVisible:{bg:"transparent",borderColor:Oi(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:at("gray.100","whiteAlpha.50")(e)}}}),Cte=zs(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=v4(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oi(t,r),boxShadow:`0px 1px 0px 0px ${Oi(t,r)}`},_focusVisible:{borderColor:Oi(t,n),boxShadow:`0px 1px 0px 0px ${Oi(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Ete=zs({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),kte={outline:wte,filled:xte,flushed:Cte,unstyled:Ete},fn=_te({baseStyle:bte,sizes:Ste,variants:kte,defaultProps:{size:"md",variant:"outline"}}),eT,Tte={...(eT=fn.baseStyle)==null?void 0:eT.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},tT,nT,Pte={outline:e=>{var t,n;return(n=(t=fn.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=fn.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=fn.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(nT=(tT=fn.variants)==null?void 0:tT.unstyled.field)!=null?nT:{}},rT,iT,aT,oT,sT,lT,uT,cT,Ote={xs:(iT=(rT=fn.sizes)==null?void 0:rT.xs.field)!=null?iT:{},sm:(oT=(aT=fn.sizes)==null?void 0:aT.sm.field)!=null?oT:{},md:(lT=(sT=fn.sizes)==null?void 0:sT.md.field)!=null?lT:{},lg:(cT=(uT=fn.sizes)==null?void 0:uT.lg.field)!=null?cT:{}},Rte={baseStyle:Tte,sizes:Ote,variants:Pte,defaultProps:{size:"md",variant:"outline"}},b0=Rr("tooltip-bg"),$S=Rr("tooltip-fg"),Ate=Rr("popper-arrow-bg"),Ite={bg:b0.reference,color:$S.reference,[b0.variable]:"colors.gray.700",[$S.variable]:"colors.whiteAlpha.900",_dark:{[b0.variable]:"colors.gray.300",[$S.variable]:"colors.gray.900"},[Ate.variable]:b0.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Lte={baseStyle:Ite},{defineMultiStyleConfig:Mte,definePartsStyle:zp}=On(qJ.keys),Dte=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,a=at(G7(),G7("1rem","rgba(0,0,0,0.1)"))(e),o=at(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
     335  )`,backgroundSize:`${e} ${e}`}}var bee=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function See(e){const t=bee();return!e||gee(e)?t:e.string&&e.colors?xee(e.string,e.colors):e.string&&!e.colors?wee(e.string):e.colors&&!e.string?Cee(e.colors):t}function wee(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function xee(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function Cee(e){return e[Math.floor(Math.random()*e.length)]}function at(e,t){return n=>n.colorMode==="dark"?t:e}function g4(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function nM(e){return Qi(e)&&e.reference?e.reference:String(e)}var pb=(e,...t)=>t.map(nM).join(` ${e} `).replace(/calc/g,""),K7=(...e)=>`calc(${pb("+",...e)})`,Y7=(...e)=>`calc(${pb("-",...e)})`,SC=(...e)=>`calc(${pb("*",...e)})`,Z7=(...e)=>`calc(${pb("/",...e)})`,Q7=e=>{const t=nM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:SC(t,-1)},Ns=Object.assign(e=>({add:(...t)=>Ns(K7(e,...t)),subtract:(...t)=>Ns(Y7(e,...t)),multiply:(...t)=>Ns(SC(e,...t)),divide:(...t)=>Ns(Z7(e,...t)),negate:()=>Ns(Q7(e)),toString:()=>e.toString()}),{add:K7,subtract:Y7,multiply:SC,divide:Z7,negate:Q7});function Eee(e){return!Number.isInteger(parseFloat(e.toString()))}function kee(e,t="-"){return e.replace(/\s+/g,t)}function rM(e){const t=kee(e.toString());return t.includes("\\.")?e:Eee(e)?t.replace(".","\\."):e}function Tee(e,t=""){return[t,rM(e)].filter(Boolean).join("-")}function Pee(e,t){return`var(${rM(e)}${t?`, ${t}`:""})`}function Oee(e,t=""){return`--${Tee(e,t)}`}function Rr(e,t){const n=Oee(e,t==null?void 0:t.prefix);return{variable:n,reference:Pee(n,Ree(t==null?void 0:t.fallback))}}function Ree(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:Aee,definePartsStyle:uy}=On(QJ.keys),em=Rr("switch-track-width"),hc=Rr("switch-track-height"),NS=Rr("switch-track-diff"),Iee=Ns.subtract(em,hc),wC=Rr("switch-thumb-x"),hp=Rr("switch-bg"),Lee=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[em.reference],height:[hc.reference],transitionProperty:"common",transitionDuration:"fast",[hp.variable]:"colors.gray.300",_dark:{[hp.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[hp.variable]:`colors.${t}.500`,_dark:{[hp.variable]:`colors.${t}.200`}},bg:hp.reference}},Mee={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[hc.reference],height:[hc.reference],_checked:{transform:`translateX(${wC.reference})`}},Dee=uy(e=>({container:{[NS.variable]:Iee,[wC.variable]:NS.reference,_rtl:{[wC.variable]:Ns(NS).negate().toString()}},track:Lee(e),thumb:Mee})),Nee={sm:uy({container:{[em.variable]:"1.375rem",[hc.variable]:"sizes.3"}}),md:uy({container:{[em.variable]:"1.875rem",[hc.variable]:"sizes.4"}}),lg:uy({container:{[em.variable]:"2.875rem",[hc.variable]:"sizes.6"}})},Fee=Aee({baseStyle:Dee,sizes:Nee,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$ee,definePartsStyle:wf}=On(XJ.keys),zee=wf({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),u1={"&[data-is-numeric=true]":{textAlign:"end"}},jee=wf(e=>{const{colorScheme:t}=e;return{th:{color:at("gray.600","gray.400")(e),borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...u1},td:{borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...u1},caption:{color:at("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Bee=wf(e=>{const{colorScheme:t}=e;return{th:{color:at("gray.600","gray.400")(e),borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...u1},td:{borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...u1},caption:{color:at("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e)},td:{background:at(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Vee={simple:jee,striped:Bee,unstyled:{}},Uee={sm:wf({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:wf({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:wf({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Hee=$ee({baseStyle:zee,variants:Vee,sizes:Uee,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),qi=tt("tabs-color"),mo=tt("tabs-bg"),_0=tt("tabs-border-color"),{defineMultiStyleConfig:Wee,definePartsStyle:is}=On(JJ.keys),qee=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Gee=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Kee=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},Yee={p:4},Zee=is(e=>({root:qee(e),tab:Gee(e),tablist:Kee(e),tabpanel:Yee})),Qee={sm:is({tab:{py:1,px:4,fontSize:"sm"}}),md:is({tab:{fontSize:"md",py:2,px:4}}),lg:is({tab:{fontSize:"lg",py:3,px:4}})},Xee=is(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",a=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[qi.variable]:`colors.${t}.600`,_dark:{[qi.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[mo.variable]:"colors.gray.200",_dark:{[mo.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:qi.reference,bg:mo.reference}}}),Jee=is(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[_0.variable]:"transparent",_selected:{[qi.variable]:`colors.${t}.600`,[_0.variable]:"colors.white",_dark:{[qi.variable]:`colors.${t}.300`,[_0.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:_0.reference},color:qi.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ete=is(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[mo.variable]:"colors.gray.50",_dark:{[mo.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[mo.variable]:"colors.white",[qi.variable]:`colors.${t}.600`,_dark:{[mo.variable]:"colors.gray.800",[qi.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:qi.reference,bg:mo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),tte=is(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Oi(n,`${t}.700`),bg:Oi(n,`${t}.100`)}}}}),nte=is(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[qi.variable]:"colors.gray.600",_dark:{[qi.variable]:"inherit"},_selected:{[qi.variable]:"colors.white",[mo.variable]:`colors.${t}.600`,_dark:{[qi.variable]:"colors.gray.800",[mo.variable]:`colors.${t}.300`}},color:qi.reference,bg:mo.reference}}}),rte=is({}),ite={line:Xee,enclosed:Jee,"enclosed-colored":ete,"soft-rounded":tte,"solid-rounded":nte,unstyled:rte},ate=Wee({baseStyle:Zee,sizes:Qee,variants:ite,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),sr=TX("badge",["bg","color","shadow"]),ote={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:sr.bg.reference,color:sr.color.reference,boxShadow:sr.shadow.reference},ste=e=>{const{colorScheme:t,theme:n}=e,r=Hf(`${t}.500`,.6)(n);return{[sr.bg.variable]:`colors.${t}.500`,[sr.color.variable]:"colors.white",_dark:{[sr.bg.variable]:r,[sr.color.variable]:"colors.whiteAlpha.800"}}},lte=e=>{const{colorScheme:t,theme:n}=e,r=Hf(`${t}.200`,.16)(n);return{[sr.bg.variable]:`colors.${t}.100`,[sr.color.variable]:`colors.${t}.800`,_dark:{[sr.bg.variable]:r,[sr.color.variable]:`colors.${t}.200`}}},ute=e=>{const{colorScheme:t,theme:n}=e,r=Hf(`${t}.200`,.8)(n);return{[sr.color.variable]:`colors.${t}.500`,_dark:{[sr.color.variable]:r},[sr.shadow.variable]:`inset 0 0 0px 1px ${sr.color.reference}`}},cte={solid:ste,subtle:lte,outline:ute},tm={baseStyle:ote,variants:cte,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:dte,definePartsStyle:pc}=On(eee.keys),X7=tt("tag-bg"),J7=tt("tag-color"),FS=tt("tag-shadow"),cy=tt("tag-min-height"),dy=tt("tag-min-width"),fy=tt("tag-font-size"),hy=tt("tag-padding-inline"),fte={fontWeight:"medium",lineHeight:1.2,outline:0,[J7.variable]:sr.color.reference,[X7.variable]:sr.bg.reference,[FS.variable]:sr.shadow.reference,color:J7.reference,bg:X7.reference,boxShadow:FS.reference,borderRadius:"md",minH:cy.reference,minW:dy.reference,fontSize:fy.reference,px:hy.reference,_focusVisible:{[FS.variable]:"shadows.outline"}},hte={lineHeight:1.2,overflow:"visible"},pte={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},mte=pc({container:fte,label:hte,closeButton:pte}),gte={sm:pc({container:{[cy.variable]:"sizes.5",[dy.variable]:"sizes.5",[fy.variable]:"fontSizes.xs",[hy.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:pc({container:{[cy.variable]:"sizes.6",[dy.variable]:"sizes.6",[fy.variable]:"fontSizes.sm",[hy.variable]:"space.2"}}),lg:pc({container:{[cy.variable]:"sizes.8",[dy.variable]:"sizes.8",[fy.variable]:"fontSizes.md",[hy.variable]:"space.3"}})},vte={subtle:pc(e=>{var t;return{container:(t=tm.variants)==null?void 0:t.subtle(e)}}),solid:pc(e=>{var t;return{container:(t=tm.variants)==null?void 0:t.solid(e)}}),outline:pc(e=>{var t;return{container:(t=tm.variants)==null?void 0:t.outline(e)}})},yte=dte({variants:vte,baseStyle:mte,sizes:gte,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:zs,defineMultiStyleConfig:_te}=On(jJ.keys),Qd=tt("input-height"),Xd=tt("input-font-size"),Jd=tt("input-padding"),ef=tt("input-border-radius"),bte=zs({addon:{height:Qd.reference,fontSize:Xd.reference,px:Jd.reference,borderRadius:ef.reference},field:{width:"100%",height:Qd.reference,fontSize:Xd.reference,px:Jd.reference,borderRadius:ef.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ol={lg:{[Xd.variable]:"fontSizes.lg",[Jd.variable]:"space.4",[ef.variable]:"radii.md",[Qd.variable]:"sizes.12"},md:{[Xd.variable]:"fontSizes.md",[Jd.variable]:"space.4",[ef.variable]:"radii.md",[Qd.variable]:"sizes.10"},sm:{[Xd.variable]:"fontSizes.sm",[Jd.variable]:"space.3",[ef.variable]:"radii.sm",[Qd.variable]:"sizes.8"},xs:{[Xd.variable]:"fontSizes.xs",[Jd.variable]:"space.2",[ef.variable]:"radii.sm",[Qd.variable]:"sizes.6"}},Ste={lg:zs({field:Ol.lg,group:Ol.lg}),md:zs({field:Ol.md,group:Ol.md}),sm:zs({field:Ol.sm,group:Ol.sm}),xs:zs({field:Ol.xs,group:Ol.xs})};function v4(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||at("blue.500","blue.300")(e),errorBorderColor:n||at("red.500","red.300")(e)}}var wte=zs(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=v4(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:at("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oi(t,r),boxShadow:`0 0 0 1px ${Oi(t,r)}`},_focusVisible:{zIndex:1,borderColor:Oi(t,n),boxShadow:`0 0 0 1px ${Oi(t,n)}`}},addon:{border:"1px solid",borderColor:at("inherit","whiteAlpha.50")(e),bg:at("gray.100","whiteAlpha.300")(e)}}}),xte=zs(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=v4(e);return{field:{border:"2px solid",borderColor:"transparent",bg:at("gray.100","whiteAlpha.50")(e),_hover:{bg:at("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oi(t,r)},_focusVisible:{bg:"transparent",borderColor:Oi(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:at("gray.100","whiteAlpha.50")(e)}}}),Cte=zs(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=v4(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Oi(t,r),boxShadow:`0px 1px 0px 0px ${Oi(t,r)}`},_focusVisible:{borderColor:Oi(t,n),boxShadow:`0px 1px 0px 0px ${Oi(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Ete=zs({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),kte={outline:wte,filled:xte,flushed:Cte,unstyled:Ete},fn=_te({baseStyle:bte,sizes:Ste,variants:kte,defaultProps:{size:"md",variant:"outline"}}),eT,Tte={...(eT=fn.baseStyle)==null?void 0:eT.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},tT,nT,Pte={outline:e=>{var t,n;return(n=(t=fn.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=fn.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=fn.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(nT=(tT=fn.variants)==null?void 0:tT.unstyled.field)!=null?nT:{}},rT,iT,aT,oT,sT,lT,uT,cT,Ote={xs:(iT=(rT=fn.sizes)==null?void 0:rT.xs.field)!=null?iT:{},sm:(oT=(aT=fn.sizes)==null?void 0:aT.sm.field)!=null?oT:{},md:(lT=(sT=fn.sizes)==null?void 0:sT.md.field)!=null?lT:{},lg:(cT=(uT=fn.sizes)==null?void 0:uT.lg.field)!=null?cT:{}},Rte={baseStyle:Tte,sizes:Ote,variants:Pte,defaultProps:{size:"md",variant:"outline"}},b0=Rr("tooltip-bg"),$S=Rr("tooltip-fg"),Ate=Rr("popper-arrow-bg"),Ite={bg:b0.reference,color:$S.reference,[b0.variable]:"colors.gray.700",[$S.variable]:"colors.whiteAlpha.900",_dark:{[b0.variable]:"colors.gray.300",[$S.variable]:"colors.gray.900"},[Ate.variable]:b0.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Lte={baseStyle:Ite},{defineMultiStyleConfig:Mte,definePartsStyle:zp}=On(qJ.keys),Dte=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,a=at(G7(),G7("1rem","rgba(0,0,0,0.1)"))(e),o=at(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
    336336    to right,
    337337    transparent 0%,
    338338    ${Oi(n,o)} 50%,
    339339    transparent 100%
    340   )`;return{...!r&&i&&a,...r?{bgImage:s}:{bgColor:o}}},Nte={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Fte=e=>({bg:at("gray.100","whiteAlpha.300")(e)}),$te=e=>({transitionProperty:"common",transitionDuration:"slow",...Dte(e)}),zte=zp(e=>({label:Nte,filledTrack:$te(e),track:Fte(e)})),jte={xs:zp({track:{h:"1"}}),sm:zp({track:{h:"2"}}),md:zp({track:{h:"3"}}),lg:zp({track:{h:"4"}})},Bte=Mte({sizes:jte,baseStyle:zte,defaultProps:{size:"md",colorScheme:"blue"}}),Vte=e=>typeof e=="function";function Ii(e,...t){return Vte(e)?e(...t):e}var{definePartsStyle:py,defineMultiStyleConfig:Ute}=On(DJ.keys),nm=tt("checkbox-size"),Hte=e=>{const{colorScheme:t}=e;return{w:nm.reference,h:nm.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:at(`${t}.500`,`${t}.200`)(e),borderColor:at(`${t}.500`,`${t}.200`)(e),color:at("white","gray.900")(e),_hover:{bg:at(`${t}.600`,`${t}.300`)(e),borderColor:at(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:at("gray.200","transparent")(e),bg:at("gray.200","whiteAlpha.300")(e),color:at("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:at(`${t}.500`,`${t}.200`)(e),borderColor:at(`${t}.500`,`${t}.200`)(e),color:at("white","gray.900")(e)},_disabled:{bg:at("gray.100","whiteAlpha.100")(e),borderColor:at("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:at("red.500","red.300")(e)}}},Wte={_disabled:{cursor:"not-allowed"}},qte={userSelect:"none",_disabled:{opacity:.4}},Gte={transitionProperty:"transform",transitionDuration:"normal"},Kte=py(e=>({icon:Gte,container:Wte,control:Ii(Hte,e),label:qte})),Yte={sm:py({control:{[nm.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:py({control:{[nm.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:py({control:{[nm.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},c1=Ute({baseStyle:Kte,sizes:Yte,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Zte,definePartsStyle:my}=On(GJ.keys),Qte=e=>{var t;const n=(t=Ii(c1.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Xte=my(e=>{var t,n,r,i;return{label:(n=(t=c1).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=c1).baseStyle)==null?void 0:i.call(r,e).container,control:Qte(e)}}),Jte={md:my({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:my({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:my({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},ene=Zte({baseStyle:Xte,sizes:Jte,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tne,definePartsStyle:nne}=On(KJ.keys),S0=tt("select-bg"),dT,rne={...(dT=fn.baseStyle)==null?void 0:dT.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:S0.reference,[S0.variable]:"colors.white",_dark:{[S0.variable]:"colors.gray.700"},"> option, > optgroup":{bg:S0.reference}},ine={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},ane=nne({field:rne,icon:ine}),w0={paddingInlineEnd:"8"},fT,hT,pT,mT,gT,vT,yT,_T,one={lg:{...(fT=fn.sizes)==null?void 0:fT.lg,field:{...(hT=fn.sizes)==null?void 0:hT.lg.field,...w0}},md:{...(pT=fn.sizes)==null?void 0:pT.md,field:{...(mT=fn.sizes)==null?void 0:mT.md.field,...w0}},sm:{...(gT=fn.sizes)==null?void 0:gT.sm,field:{...(vT=fn.sizes)==null?void 0:vT.sm.field,...w0}},xs:{...(yT=fn.sizes)==null?void 0:yT.xs,field:{...(_T=fn.sizes)==null?void 0:_T.xs.field,...w0},icon:{insetEnd:"1"}}},sne=tne({baseStyle:ane,sizes:one,variants:fn.variants,defaultProps:fn.defaultProps}),zS=tt("skeleton-start-color"),jS=tt("skeleton-end-color"),lne={[zS.variable]:"colors.gray.100",[jS.variable]:"colors.gray.400",_dark:{[zS.variable]:"colors.gray.800",[jS.variable]:"colors.gray.600"},background:zS.reference,borderColor:jS.reference,opacity:.7,borderRadius:"sm"},une={baseStyle:lne},BS=tt("skip-link-bg"),cne={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[BS.variable]:"colors.white",_dark:{[BS.variable]:"colors.gray.700"},bg:BS.reference}},dne={baseStyle:cne},{defineMultiStyleConfig:fne,definePartsStyle:mb}=On(YJ.keys),Vm=tt("slider-thumb-size"),Um=tt("slider-track-size"),Hl=tt("slider-bg"),hne=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...g4({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},pne=e=>({...g4({orientation:e.orientation,horizontal:{h:Um.reference},vertical:{w:Um.reference}}),overflow:"hidden",borderRadius:"sm",[Hl.variable]:"colors.gray.200",_dark:{[Hl.variable]:"colors.whiteAlpha.200"},_disabled:{[Hl.variable]:"colors.gray.300",_dark:{[Hl.variable]:"colors.whiteAlpha.300"}},bg:Hl.reference}),mne=e=>{const{orientation:t}=e;return{...g4({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Vm.reference,h:Vm.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},gne=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Hl.variable]:`colors.${t}.500`,_dark:{[Hl.variable]:`colors.${t}.200`},bg:Hl.reference}},vne=mb(e=>({container:hne(e),track:pne(e),thumb:mne(e),filledTrack:gne(e)})),yne=mb({container:{[Vm.variable]:"sizes.4",[Um.variable]:"sizes.1"}}),_ne=mb({container:{[Vm.variable]:"sizes.3.5",[Um.variable]:"sizes.1"}}),bne=mb({container:{[Vm.variable]:"sizes.2.5",[Um.variable]:"sizes.0.5"}}),Sne={lg:yne,md:_ne,sm:bne},wne=fne({baseStyle:vne,sizes:Sne,defaultProps:{size:"md",colorScheme:"blue"}}),ec=Rr("spinner-size"),xne={width:[ec.reference],height:[ec.reference]},Cne={xs:{[ec.variable]:"sizes.3"},sm:{[ec.variable]:"sizes.4"},md:{[ec.variable]:"sizes.6"},lg:{[ec.variable]:"sizes.8"},xl:{[ec.variable]:"sizes.12"}},Ene={baseStyle:xne,sizes:Cne,defaultProps:{size:"md"}},{defineMultiStyleConfig:kne,definePartsStyle:iM}=On(ZJ.keys),Tne={fontWeight:"medium"},Pne={opacity:.8,marginBottom:"2"},One={verticalAlign:"baseline",fontWeight:"semibold"},Rne={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Ane=iM({container:{},label:Tne,helpText:Pne,number:One,icon:Rne}),Ine={md:iM({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Lne=kne({baseStyle:Ane,sizes:Ine,defaultProps:{size:"md"}}),VS=tt("kbd-bg"),Mne={[VS.variable]:"colors.gray.100",_dark:{[VS.variable]:"colors.whiteAlpha.100"},bg:VS.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Dne={baseStyle:Mne},Nne={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Fne={baseStyle:Nne},{defineMultiStyleConfig:$ne,definePartsStyle:zne}=On(BJ.keys),jne={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Bne=zne({icon:jne}),Vne=$ne({baseStyle:Bne}),{defineMultiStyleConfig:Une,definePartsStyle:Hne}=On(VJ.keys),Ho=tt("menu-bg"),US=tt("menu-shadow"),Wne={[Ho.variable]:"#fff",[US.variable]:"shadows.sm",_dark:{[Ho.variable]:"colors.gray.700",[US.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Ho.reference,boxShadow:US.reference},qne={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ho.variable]:"colors.gray.100",_dark:{[Ho.variable]:"colors.whiteAlpha.100"}},_active:{[Ho.variable]:"colors.gray.200",_dark:{[Ho.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ho.variable]:"colors.gray.100",_dark:{[Ho.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ho.reference},Gne={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Kne={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Yne={opacity:.6},Zne={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Qne={transitionProperty:"common",transitionDuration:"normal"},Xne=Hne({button:Qne,list:Wne,item:qne,groupTitle:Gne,icon:Kne,command:Yne,divider:Zne}),Jne=Une({baseStyle:Xne}),{defineMultiStyleConfig:ere,definePartsStyle:x3}=On(UJ.keys),HS=tt("modal-bg"),WS=tt("modal-shadow"),tre={bg:"blackAlpha.600",zIndex:"modal"},nre=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},rre=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[HS.variable]:"colors.white",[WS.variable]:"shadows.lg",_dark:{[HS.variable]:"colors.gray.700",[WS.variable]:"shadows.dark-lg"},bg:HS.reference,boxShadow:WS.reference}},ire={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},are={position:"absolute",top:"2",insetEnd:"3"},ore=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},sre={px:"6",py:"4"},lre=x3(e=>({overlay:tre,dialogContainer:Ii(nre,e),dialog:Ii(rre,e),header:ire,closeButton:are,body:Ii(ore,e),footer:sre}));function so(e){return x3(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var ure={xs:so("xs"),sm:so("sm"),md:so("md"),lg:so("lg"),xl:so("xl"),"2xl":so("2xl"),"3xl":so("3xl"),"4xl":so("4xl"),"5xl":so("5xl"),"6xl":so("6xl"),full:so("full")},cre=ere({baseStyle:lre,sizes:ure,defaultProps:{size:"md"}}),{defineMultiStyleConfig:dre,definePartsStyle:aM}=On(HJ.keys),y4=Rr("number-input-stepper-width"),oM=Rr("number-input-input-padding"),fre=Ns(y4).add("0.5rem").toString(),qS=Rr("number-input-bg"),GS=Rr("number-input-color"),KS=Rr("number-input-border-color"),hre={[y4.variable]:"sizes.6",[oM.variable]:fre},pre=e=>{var t,n;return(n=(t=Ii(fn.baseStyle,e))==null?void 0:t.field)!=null?n:{}},mre={width:y4.reference},gre={borderStart:"1px solid",borderStartColor:KS.reference,color:GS.reference,bg:qS.reference,[GS.variable]:"colors.chakra-body-text",[KS.variable]:"colors.chakra-border-color",_dark:{[GS.variable]:"colors.whiteAlpha.800",[KS.variable]:"colors.whiteAlpha.300"},_active:{[qS.variable]:"colors.gray.200",_dark:{[qS.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},vre=aM(e=>{var t;return{root:hre,field:(t=Ii(pre,e))!=null?t:{},stepperGroup:mre,stepper:gre}});function x0(e){var t,n,r;const i=(t=fn.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},o=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",s=JL.fontSizes[o];return aM({field:{...i.field,paddingInlineEnd:oM.reference,verticalAlign:"top"},stepper:{fontSize:Ns(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var yre={xs:x0("xs"),sm:x0("sm"),md:x0("md"),lg:x0("lg")},_re=dre({baseStyle:vre,sizes:yre,variants:fn.variants,defaultProps:fn.defaultProps}),bT,bre={...(bT=fn.baseStyle)==null?void 0:bT.field,textAlign:"center"},Sre={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},ST,wT,wre={outline:e=>{var t,n,r;return(r=(n=Ii((t=fn.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Ii((t=fn.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Ii((t=fn.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(wT=(ST=fn.variants)==null?void 0:ST.unstyled.field)!=null?wT:{}},xre={baseStyle:bre,sizes:Sre,variants:wre,defaultProps:fn.defaultProps},{defineMultiStyleConfig:Cre,definePartsStyle:Ere}=On(WJ.keys),C0=Rr("popper-bg"),kre=Rr("popper-arrow-bg"),xT=Rr("popper-arrow-shadow-color"),Tre={zIndex:10},Pre={[C0.variable]:"colors.white",bg:C0.reference,[kre.variable]:C0.reference,[xT.variable]:"colors.gray.200",_dark:{[C0.variable]:"colors.gray.700",[xT.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Ore={px:3,py:2,borderBottomWidth:"1px"},Rre={px:3,py:2},Are={px:3,py:2,borderTopWidth:"1px"},Ire={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Lre=Ere({popper:Tre,content:Pre,header:Ore,body:Rre,footer:Are,closeButton:Ire}),Mre=Cre({baseStyle:Lre}),{definePartsStyle:C3,defineMultiStyleConfig:Dre}=On(NJ.keys),YS=tt("drawer-bg"),ZS=tt("drawer-box-shadow");function yd(e){return C3(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Nre={bg:"blackAlpha.600",zIndex:"overlay"},Fre={display:"flex",zIndex:"modal",justifyContent:"center"},$re=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[YS.variable]:"colors.white",[ZS.variable]:"shadows.lg",_dark:{[YS.variable]:"colors.gray.700",[ZS.variable]:"shadows.dark-lg"},bg:YS.reference,boxShadow:ZS.reference}},zre={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},jre={position:"absolute",top:"2",insetEnd:"3"},Bre={px:"6",py:"2",flex:"1",overflow:"auto"},Vre={px:"6",py:"4"},Ure=C3(e=>({overlay:Nre,dialogContainer:Fre,dialog:Ii($re,e),header:zre,closeButton:jre,body:Bre,footer:Vre})),Hre={xs:yd("xs"),sm:yd("md"),md:yd("lg"),lg:yd("2xl"),xl:yd("4xl"),full:yd("full")},Wre=Dre({baseStyle:Ure,sizes:Hre,defaultProps:{size:"xs"}}),{definePartsStyle:qre,defineMultiStyleConfig:Gre}=On(FJ.keys),Kre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Yre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Zre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Qre=qre({preview:Kre,input:Yre,textarea:Zre}),Xre=Gre({baseStyle:Qre}),{definePartsStyle:Jre,defineMultiStyleConfig:eie}=On($J.keys),xf=tt("form-control-color"),tie={marginStart:"1",[xf.variable]:"colors.red.500",_dark:{[xf.variable]:"colors.red.300"},color:xf.reference},nie={mt:"2",[xf.variable]:"colors.gray.600",_dark:{[xf.variable]:"colors.whiteAlpha.600"},color:xf.reference,lineHeight:"normal",fontSize:"sm"},rie=Jre({container:{width:"100%",position:"relative"},requiredIndicator:tie,helperText:nie}),iie=eie({baseStyle:rie}),{definePartsStyle:aie,defineMultiStyleConfig:oie}=On(zJ.keys),Cf=tt("form-error-color"),sie={[Cf.variable]:"colors.red.500",_dark:{[Cf.variable]:"colors.red.300"},color:Cf.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},lie={marginEnd:"0.5em",[Cf.variable]:"colors.red.500",_dark:{[Cf.variable]:"colors.red.300"},color:Cf.reference},uie=aie({text:sie,icon:lie}),cie=oie({baseStyle:uie}),die={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},fie={baseStyle:die},hie={fontFamily:"heading",fontWeight:"bold"},pie={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},mie={baseStyle:hie,sizes:pie,defaultProps:{size:"xl"}},{defineMultiStyleConfig:gie,definePartsStyle:vie}=On(MJ.keys),QS=tt("breadcrumb-link-decor"),yie={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:QS.reference,[QS.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[QS.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},_ie=vie({link:yie}),bie=gie({baseStyle:_ie}),Sie={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},sM=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:at("gray.800","whiteAlpha.900")(e),_hover:{bg:at("gray.100","whiteAlpha.200")(e)},_active:{bg:at("gray.200","whiteAlpha.300")(e)}};const r=Hf(`${t}.200`,.12)(n),i=Hf(`${t}.200`,.24)(n);return{color:at(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:at(`${t}.50`,r)(e)},_active:{bg:at(`${t}.100`,i)(e)}}},wie=e=>{const{colorScheme:t}=e,n=at("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ii(sM,e)}},xie={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Cie=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=at("gray.100","whiteAlpha.200")(e);return{bg:l,color:at("gray.800","whiteAlpha.900")(e),_hover:{bg:at("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:at("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:a=`${n}.600`,activeBg:o=`${n}.700`}=(t=xie[n])!=null?t:{},s=at(r,`${n}.200`)(e);return{bg:s,color:at(i,"gray.800")(e),_hover:{bg:at(a,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:at(o,`${n}.400`)(e)}}},Eie=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:at(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:at(`${t}.700`,`${t}.500`)(e)}}},kie={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Tie={ghost:sM,outline:wie,solid:Cie,link:Eie,unstyled:kie},Pie={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Oie={baseStyle:Sie,variants:Tie,sizes:Pie,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:mc,defineMultiStyleConfig:Rie}=On(tee.keys),d1=tt("card-bg"),Us=tt("card-padding"),lM=tt("card-shadow"),gy=tt("card-radius"),uM=tt("card-border-width","0"),cM=tt("card-border-color"),Aie=mc({container:{[d1.variable]:"colors.chakra-body-bg",backgroundColor:d1.reference,boxShadow:lM.reference,borderRadius:gy.reference,color:"chakra-body-text",borderWidth:uM.reference,borderColor:cM.reference},body:{padding:Us.reference,flex:"1 1 0%"},header:{padding:Us.reference},footer:{padding:Us.reference}}),Iie={sm:mc({container:{[gy.variable]:"radii.base",[Us.variable]:"space.3"}}),md:mc({container:{[gy.variable]:"radii.md",[Us.variable]:"space.5"}}),lg:mc({container:{[gy.variable]:"radii.xl",[Us.variable]:"space.7"}})},Lie={elevated:mc({container:{[lM.variable]:"shadows.base",_dark:{[d1.variable]:"colors.gray.700"}}}),outline:mc({container:{[uM.variable]:"1px",[cM.variable]:"colors.chakra-border-color"}}),filled:mc({container:{[d1.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Us.variable]:0},header:{[Us.variable]:0},footer:{[Us.variable]:0}}},Mie=Rie({baseStyle:Aie,variants:Lie,sizes:Iie,defaultProps:{variant:"elevated",size:"md"}}),rm=Rr("close-button-size"),pp=Rr("close-button-bg"),Die={w:[rm.reference],h:[rm.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[pp.variable]:"colors.blackAlpha.100",_dark:{[pp.variable]:"colors.whiteAlpha.100"}},_active:{[pp.variable]:"colors.blackAlpha.200",_dark:{[pp.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:pp.reference},Nie={lg:{[rm.variable]:"sizes.10",fontSize:"md"},md:{[rm.variable]:"sizes.8",fontSize:"xs"},sm:{[rm.variable]:"sizes.6",fontSize:"2xs"}},Fie={baseStyle:Die,sizes:Nie,defaultProps:{size:"md"}},{variants:$ie,defaultProps:zie}=tm,jie={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:sr.bg.reference,color:sr.color.reference,boxShadow:sr.shadow.reference},Bie={baseStyle:jie,variants:$ie,defaultProps:zie},Vie={w:"100%",mx:"auto",maxW:"prose",px:"4"},Uie={baseStyle:Vie},Hie={opacity:.6,borderColor:"inherit"},Wie={borderStyle:"solid"},qie={borderStyle:"dashed"},Gie={solid:Wie,dashed:qie},Kie={baseStyle:Hie,variants:Gie,defaultProps:{variant:"solid"}},{definePartsStyle:Yie,defineMultiStyleConfig:Zie}=On(AJ.keys),Qie={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Xie={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Jie={pt:"2",px:"4",pb:"5"},eae={fontSize:"1.25em"},tae=Yie({container:Qie,button:Xie,panel:Jie,icon:eae}),nae=Zie({baseStyle:tae}),{definePartsStyle:Pg,defineMultiStyleConfig:rae}=On(IJ.keys),ma=tt("alert-fg"),el=tt("alert-bg"),iae=Pg({container:{bg:el.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ma.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ma.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function _4(e){const{theme:t,colorScheme:n}=e,r=Hf(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var aae=Pg(e=>{const{colorScheme:t}=e,n=_4(e);return{container:{[ma.variable]:`colors.${t}.500`,[el.variable]:n.light,_dark:{[ma.variable]:`colors.${t}.200`,[el.variable]:n.dark}}}}),oae=Pg(e=>{const{colorScheme:t}=e,n=_4(e);return{container:{[ma.variable]:`colors.${t}.500`,[el.variable]:n.light,_dark:{[ma.variable]:`colors.${t}.200`,[el.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ma.reference}}}),sae=Pg(e=>{const{colorScheme:t}=e,n=_4(e);return{container:{[ma.variable]:`colors.${t}.500`,[el.variable]:n.light,_dark:{[ma.variable]:`colors.${t}.200`,[el.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ma.reference}}}),lae=Pg(e=>{const{colorScheme:t}=e;return{container:{[ma.variable]:"colors.white",[el.variable]:`colors.${t}.500`,_dark:{[ma.variable]:"colors.gray.900",[el.variable]:`colors.${t}.200`},color:ma.reference}}}),uae={subtle:aae,"left-accent":oae,"top-accent":sae,solid:lae},cae=rae({baseStyle:iae,variants:uae,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:dM,defineMultiStyleConfig:dae}=On(LJ.keys),Ef=tt("avatar-border-color"),im=tt("avatar-bg"),Hm=tt("avatar-font-size"),Wf=tt("avatar-size"),fae={borderRadius:"full",border:"0.2em solid",borderColor:Ef.reference,[Ef.variable]:"white",_dark:{[Ef.variable]:"colors.gray.800"}},hae={bg:im.reference,fontSize:Hm.reference,width:Wf.reference,height:Wf.reference,lineHeight:"1",[im.variable]:"colors.gray.200",_dark:{[im.variable]:"colors.whiteAlpha.400"}},pae=e=>{const{name:t,theme:n}=e,r=t?See({string:t}):"colors.gray.400",i=_ee(r)(n);let a="white";return i||(a="gray.800"),{bg:im.reference,fontSize:Hm.reference,color:a,borderColor:Ef.reference,verticalAlign:"top",width:Wf.reference,height:Wf.reference,"&:not([data-loaded])":{[im.variable]:r},[Ef.variable]:"colors.white",_dark:{[Ef.variable]:"colors.gray.800"}}},mae={fontSize:Hm.reference,lineHeight:"1"},gae=dM(e=>({badge:Ii(fae,e),excessLabel:Ii(hae,e),container:Ii(pae,e),label:mae}));function Rl(e){const t=e!=="100%"?tM[e]:void 0;return dM({container:{[Wf.variable]:t??e,[Hm.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Wf.variable]:t??e,[Hm.variable]:`calc(${t??e} / 2.5)`}})}var vae={"2xs":Rl(4),xs:Rl(6),sm:Rl(8),md:Rl(12),lg:Rl(16),xl:Rl(24),"2xl":Rl(32),full:Rl("100%")},yae=dae({baseStyle:gae,sizes:vae,defaultProps:{size:"md"}}),_ae={Accordion:nae,Alert:cae,Avatar:yae,Badge:tm,Breadcrumb:bie,Button:Oie,Checkbox:c1,CloseButton:Fie,Code:Bie,Container:Uie,Divider:Kie,Drawer:Wre,Editable:Xre,Form:iie,FormError:cie,FormLabel:fie,Heading:mie,Input:fn,Kbd:Dne,Link:Fne,List:Vne,Menu:Jne,Modal:cre,NumberInput:_re,PinInput:xre,Popover:Mre,Progress:Bte,Radio:ene,Select:sne,Skeleton:une,SkipLink:dne,Slider:wne,Spinner:Ene,Stat:Lne,Switch:Fee,Table:Hee,Tabs:ate,Tag:yte,Textarea:Rte,Tooltip:Lte,Card:Mie,Stepper:RJ},bae={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Sae={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},wae="ltr",xae={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},fM={semanticTokens:bae,direction:wae,...TJ,components:_ae,styles:Sae,config:xae};function jp(e){return typeof e=="function"}function Cae(...e){return t=>e.reduce((n,r)=>r(n),t)}var Eae=e=>function(...n){let r=[...n],i=n[n.length-1];return rJ(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,Cae(...r.map(a=>o=>jp(a)?a(o):Tae(o,a)))(i)},kae=Eae(fM);function Tae(...e){return Ua({},...e,hM)}function hM(e,t,n,r){if((jp(e)||jp(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const a=jp(e)?e(...i):e,o=jp(t)?t(...i):t;return Ua({},a,o,hM)}}function Pae(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Oae=Pae();function Rae(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function Aae(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var Iae=e=>{const t=new WeakMap;return(r,i,a,o)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(i))return s.get(i);const l=e(r,i,a,o);return s.set(i,l),l}},pM=Iae(Aae);function mM(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var gM=e=>mM(e,t=>t!=null);function Lae(e){return typeof e=="function"}function vM(e,...t){return Lae(e)?e(...t):e}function Mae(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var Dae=typeof Element<"u",Nae=typeof Map=="function",Fae=typeof Set=="function",$ae=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function vy(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!vy(e[r],t[r]))return!1;return!0}var a;if(Nae&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!vy(r.value[1],t.get(r.value[0])))return!1;return!0}if(Fae&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if($ae&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Dae&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!vy(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var zae=function(t,n){try{return vy(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const jae=vu(zae);function yM(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:a,colorMode:o}=NQ(),s=e?pM(a,`components.${e}`):void 0,l=r||s,c=Ua({theme:a,colorMode:o},(n=l==null?void 0:l.defaultProps)!=null?n:{},gM(Rae(i,["children"]))),f=w.useRef({});if(l){const p=tJ(l)(c);jae(f.current,p)||(f.current=p)}return f.current}function Xa(e,t={}){return yM(e,t)}function Pr(e,t={}){return yM(e,t)}var Bae=new Set([...UX,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Vae=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Uae(e){return Vae.has(e)||!Bae.has(e)}function Hae(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}function _M(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var Wae=/^((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|download|draggable|encType|enterKeyHint|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|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)-.*))$/,qae=PL(function(e){return Wae.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Gae=qae,Kae=function(t){return t!=="theme"},CT=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Gae:Kae},ET=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Yae=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return a4(n,r,i),FL(function(){return o4(n,r,i)}),null},Zae=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=ET(t,n,r),l=s||CT(i),c=!l("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,v=1;v<p;v++)h.push(f[v],f[0][v])}var y=l4(function(m,_,b){var S=c&&m.as||i,C="",E=[],R=m;if(m.theme==null){R={};for(var A in m)R[A]=m[A];R.theme=w.useContext(Uf)}typeof m.className=="string"?C=ML(_.registered,E,m.className):m.className!=null&&(C=m.className+" ");var I=ub(h.concat(E),_.registered,R);C+=_.key+"-"+I.name,o!==void 0&&(C+=" "+o);var M=c&&s===void 0?CT(S):l,F={};for(var z in m)c&&z==="as"||M(z)&&(F[z]=m[z]);return F.className=C,F.ref=b,w.createElement(w.Fragment,null,w.createElement(Yae,{cache:_,serialized:I,isStringTag:typeof S=="string"}),w.createElement(S,F))});return y.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=h,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+o}}),y.withComponent=function(m,_){return e(m,Je({},n,_,{shouldForwardProp:ET(y,_,!0)})).apply(void 0,h)},y}},Qae=["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"],f1=Zae.bind();Qae.forEach(function(e){f1[e]=f1(e)});var kT,Xae=(kT=f1.default)!=null?kT:f1,Jae=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:i,sx:a,...o}=t,s=mM(o,(h,p)=>WX(p)),l=vM(e,t),c=Hae({},i,l,gM(s),a),f=XL(c)(t.theme);return r?[f,r]:f};function XS(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=Uae);const i=Jae({baseStyle:n}),a=Xae(e,r)(i);return ve.forwardRef(function(l,c){const{colorMode:f,forced:h}=db();return ve.createElement(a,{ref:c,"data-theme":h?f:void 0,...l})})}function eoe(){const e=new Map;return new Proxy(XS,{apply(t,n,r){return XS(...r)},get(t,n){return e.has(n)||e.set(n,XS(n)),e.get(n)}})}var je=eoe();function Xe(e){return w.forwardRef(e)}function bM(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=w.createContext(void 0);i.displayName=r;function a(){var o;const s=w.useContext(i);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(o=Error.captureStackTrace)==null||o.call(Error,l,a),l}return s}return[i.Provider,a,i]}function toe(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=w.useMemo(()=>VX(n),[n]);return T.jsxs(vQ,{theme:i,children:[T.jsx(noe,{root:t}),r]})}function noe({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return T.jsx(cb,{styles:n=>({[t]:n.__cssVars})})}bM({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function roe(e){return bM({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function ioe(){const{colorMode:e}=db();return T.jsx(cb,{styles:t=>{const n=pM(t,"styles.global"),r=vM(n,{theme:t,colorMode:e});return r?XL(r)(t):void 0}})}var b4=w.createContext({getDocument(){return document},getWindow(){return window}});b4.displayName="EnvironmentContext";function aoe({defer:e}={}){const[,t]=w.useReducer(n=>n+1,0);return rs(()=>{e&&t()},[e]),w.useContext(b4)}function SM(e){const{children:t,environment:n,disabled:r}=e,i=w.useRef(null),a=w.useMemo(()=>n||{getDocument:()=>{var s,l;return(l=(s=i.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=i.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[n]),o=!r||!n;return T.jsxs(b4.Provider,{value:a,children:[t,o&&T.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}SM.displayName="EnvironmentProvider";var ooe=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:a=!0,theme:o={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:f}=e,h=T.jsx(SM,{environment:s,disabled:c,children:t});return T.jsx(toe,{theme:o,cssVarsRoot:l,children:T.jsxs(UL,{colorModeManager:n,options:o.config,children:[a?T.jsx(xQ,{scope:i}):T.jsx(wQ,{}),!f&&T.jsx(ioe,{}),r?T.jsx(BL,{zIndex:r,children:h}):h]})})},soe=(e,t)=>e.find(n=>n.id===t);function TT(e,t){const n=wM(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function wM(e,t){for(const[n,r]of Object.entries(e))if(soe(r,t))return n}function loe(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function uoe(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:a,left:o}}function au(e,t=[]){const n=w.useRef(e);return w.useEffect(()=>{n.current=e}),w.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function coe(e,t){const n=au(e);w.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function qf(e,t){const n=w.useRef(!1),r=w.useRef(!1);w.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const xM=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),gb=w.createContext({}),Og=w.createContext(null),vb=typeof document<"u",S4=vb?w.useLayoutEffect:w.useEffect,CM=w.createContext({strict:!1});function doe(e,t,n,r){const{visualElement:i}=w.useContext(gb),a=w.useContext(CM),o=w.useContext(Og),s=w.useContext(xM).reducedMotion,l=w.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;w.useInsertionEffect(()=>{c&&c.update(n,o)});const f=w.useRef(!!window.HandoffAppearAnimations);return S4(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),w.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)}),c}function tf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function foe(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):tf(n)&&(n.current=r))},[t])}function Wm(e){return typeof e=="string"||Array.isArray(e)}function yb(e){return typeof e=="object"&&typeof e.start=="function"}const w4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],x4=["initial",...w4];function _b(e){return yb(e.animate)||x4.some(t=>Wm(e[t]))}function EM(e){return!!(_b(e)||e.variants)}function hoe(e,t){if(_b(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Wm(n)?n:void 0,animate:Wm(r)?r:void 0}}return e.inherit!==!1?t:{}}function poe(e){const{initial:t,animate:n}=hoe(e,w.useContext(gb));return w.useMemo(()=>({initial:t,animate:n}),[PT(t),PT(n)])}function PT(e){return Array.isArray(e)?e.join(" "):e}const OT={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},qm={};for(const e in OT)qm[e]={isEnabled:t=>OT[e].some(n=>!!t[n])};function moe(e){for(const t in e)qm[t]={...qm[t],...e[t]}}const C4=w.createContext({}),kM=w.createContext({}),goe=Symbol.for("motionComponentSymbol");function voe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&moe(e);function a(s,l){let c;const f={...w.useContext(xM),...s,layoutId:yoe(s)},{isStatic:h}=f,p=poe(s),v=r(s,h);if(!h&&vb){p.visualElement=doe(i,v,f,t);const y=w.useContext(kM),m=w.useContext(CM).strict;p.visualElement&&(c=p.visualElement.loadFeatures(f,m,e,y))}return w.createElement(gb.Provider,{value:p},c&&p.visualElement?w.createElement(c,{visualElement:p.visualElement,...f}):null,n(i,s,foe(v,p.visualElement,l),v,h,p.visualElement))}const o=w.forwardRef(a);return o[goe]=i,o}function yoe({layoutId:e}){const t=w.useContext(C4).id;return t&&e!==void 0?t+"-"+e:e}function _oe(e){function t(r,i={}){return voe(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const boe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function E4(e){return typeof e!="string"||e.includes("-")?!1:!!(boe.indexOf(e)>-1||/[A-Z]/.test(e))}const h1={};function Soe(e){Object.assign(h1,e)}const Rg=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fc=new Set(Rg);function TM(e,{layout:t,layoutId:n}){return Fc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!h1[e]||e==="opacity")}const ta=e=>!!(e&&e.getVelocity),woe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xoe=Rg.length;function Coe(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let o=0;o<xoe;o++){const s=Rg[o];if(e[s]!==void 0){const l=woe[s]||s;a+=`${l}(${e[s]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const PM=e=>t=>typeof t=="string"&&t.startsWith(e),OM=PM("--"),E3=PM("var(--"),Eoe=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,koe=(e,t)=>t&&typeof e=="number"?t.transform(e):e,du=(e,t,n)=>Math.min(Math.max(n,e),t),$c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},am={...$c,transform:e=>du(0,1,e)},E0={...$c,default:1},om=e=>Math.round(e*1e5)/1e5,bb=/(-)?([\d]*\.?[\d])+/g,RM=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Toe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ag(e){return typeof e=="string"}const Ig=e=>({test:t=>Ag(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ml=Ig("deg"),as=Ig("%"),ht=Ig("px"),Poe=Ig("vh"),Ooe=Ig("vw"),RT={...as,parse:e=>as.parse(e)/100,transform:e=>as.transform(e*100)},AT={...$c,transform:Math.round},AM={borderWidth:ht,borderTopWidth:ht,borderRightWidth:ht,borderBottomWidth:ht,borderLeftWidth:ht,borderRadius:ht,radius:ht,borderTopLeftRadius:ht,borderTopRightRadius:ht,borderBottomRightRadius:ht,borderBottomLeftRadius:ht,width:ht,maxWidth:ht,height:ht,maxHeight:ht,size:ht,top:ht,right:ht,bottom:ht,left:ht,padding:ht,paddingTop:ht,paddingRight:ht,paddingBottom:ht,paddingLeft:ht,margin:ht,marginTop:ht,marginRight:ht,marginBottom:ht,marginLeft:ht,rotate:Ml,rotateX:Ml,rotateY:Ml,rotateZ:Ml,scale:E0,scaleX:E0,scaleY:E0,scaleZ:E0,skew:Ml,skewX:Ml,skewY:Ml,distance:ht,translateX:ht,translateY:ht,translateZ:ht,x:ht,y:ht,z:ht,perspective:ht,transformPerspective:ht,opacity:am,originX:RT,originY:RT,originZ:ht,zIndex:AT,fillOpacity:am,strokeOpacity:am,numOctaves:AT};function k4(e,t,n,r){const{style:i,vars:a,transform:o,transformOrigin:s}=e;let l=!1,c=!1,f=!0;for(const h in t){const p=t[h];if(OM(h)){a[h]=p;continue}const v=AM[h],y=koe(p,v);if(Fc.has(h)){if(l=!0,o[h]=y,!f)continue;p!==(v.default||0)&&(f=!1)}else h.startsWith("origin")?(c=!0,s[h]=y):i[h]=y}if(t.transform||(l||r?i.transform=Coe(e.transform,n,f,r):i.transform&&(i.transform="none")),c){const{originX:h="50%",originY:p="50%",originZ:v=0}=s;i.transformOrigin=`${h} ${p} ${v}`}}const T4=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function IM(e,t,n){for(const r in t)!ta(t[r])&&!TM(r,n)&&(e[r]=t[r])}function Roe({transformTemplate:e},t,n){return w.useMemo(()=>{const r=T4();return k4(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Aoe(e,t,n){const r=e.style||{},i={};return IM(i,r,e),Object.assign(i,Roe(e,t,n)),e.transformValues?e.transformValues(i):i}function Ioe(e,t,n){const r={},i=Aoe(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Loe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function p1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Loe.has(e)}let LM=e=>!p1(e);function Moe(e){e&&(LM=t=>t.startsWith("on")?!p1(t):e(t))}try{Moe(require("@emotion/is-prop-valid").default)}catch{}function Doe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(LM(i)||n===!0&&p1(i)||!t&&!p1(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function IT(e,t,n){return typeof e=="string"?e:ht.transform(t+n*e)}function Noe(e,t,n){const r=IT(t,e.x,e.width),i=IT(n,e.y,e.height);return`${r} ${i}`}const Foe={offset:"stroke-dashoffset",array:"stroke-dasharray"},$oe={offset:"strokeDashoffset",array:"strokeDasharray"};function zoe(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Foe:$oe;e[a.offset]=ht.transform(-r);const o=ht.transform(t),s=ht.transform(n);e[a.array]=`${o} ${s}`}function P4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...c},f,h,p){if(k4(e,c,f,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:y,dimensions:m}=e;v.transform&&(m&&(y.transform=v.transform),delete v.transform),m&&(i!==void 0||a!==void 0||y.transform)&&(y.transformOrigin=Noe(m,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),o!==void 0&&zoe(v,o,s,l,!1)}const MM=()=>({...T4(),attrs:{}}),O4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function joe(e,t,n,r){const i=w.useMemo(()=>{const a=MM();return P4(a,t,{enableHardwareAcceleration:!1},O4(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};IM(a,e.style,e),i.style={...a,...i.style}}return i}function Boe(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(E4(n)?joe:Ioe)(r,a,o,n),f={...Doe(r,typeof n=="string",e),...l,ref:i},{children:h}=r,p=w.useMemo(()=>ta(h)?h.get():h,[h]);return w.createElement(n,{...f,children:p})}}const R4=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function DM(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const NM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function FM(e,t,n,r){DM(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(NM.has(i)?i:R4(i),t.attrs[i])}function A4(e,t){const{style:n}=e,r={};for(const i in n)(ta(n[i])||t.style&&ta(t.style[i])||TM(i,e))&&(r[i]=n[i]);return r}function $M(e,t){const n=A4(e,t);for(const r in e)if(ta(e[r])||ta(t[r])){const i=Rg.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function I4(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function zM(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const m1=e=>Array.isArray(e),Voe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Uoe=e=>m1(e)?e[e.length-1]||0:e;function yy(e){const t=ta(e)?e.get():e;return Voe(t)?t.toValue():t}function Hoe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:Woe(r,i,a,e),renderState:t()};return n&&(o.mount=s=>n(r,s,o)),o}const jM=e=>(t,n)=>{const r=w.useContext(gb),i=w.useContext(Og),a=()=>Hoe(e,t,r,i);return n?a():zM(a)};function Woe(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=yy(a[p]);let{initial:o,animate:s}=e;const l=_b(e),c=EM(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let f=n?n.initial===!1:!1;f=f||o===!1;const h=f?s:o;return h&&typeof h!="boolean"&&!yb(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const y=I4(e,v);if(!y)return;const{transitionEnd:m,transition:_,...b}=y;for(const S in b){let C=b[S];if(Array.isArray(C)){const E=f?C.length-1:0;C=C[E]}C!==null&&(i[S]=C)}for(const S in m)i[S]=m[S]}),i}const er=e=>e;class LT{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function qoe(e){let t=new LT,n=new LT,r=0,i=!1,a=!1;const o=new WeakSet,s={schedule:(l,c=!1,f=!1)=>{const h=f&&i,p=h?t:n;return c&&o.add(l),p.add(l)&&h&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const f=t.order[c];f(l),o.has(f)&&(s.schedule(f),e())}i=!1,a&&(a=!1,s.process(l))}};return s}const k0=["prepare","read","update","preRender","render","postRender"],Goe=40;function Koe(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=k0.reduce((h,p)=>(h[p]=qoe(()=>n=!0),h),{}),o=h=>a[h].process(i),s=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,Goe),1),i.timestamp=h,i.isProcessing=!0,k0.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,i.isProcessing||e(s)};return{schedule:k0.reduce((h,p)=>{const v=a[p];return h[p]=(y,m=!1,_=!1)=>(n||l(),v.schedule(y,m,_)),h},{}),cancel:h=>k0.forEach(p=>a[p].cancel(h)),state:i,steps:a}}const{schedule:Pn,cancel:tl,state:Fr,steps:JS}=Koe(typeof requestAnimationFrame<"u"?requestAnimationFrame:er,!0),Yoe={useVisualState:jM({scrapeMotionValuesFromProps:$M,createRenderState:MM,onMount:(e,t,{renderState:n,latestValues:r})=>{Pn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Pn.render(()=>{P4(n,r,{enableHardwareAcceleration:!1},O4(t.tagName),e.transformTemplate),FM(t,n)})}})},Zoe={useVisualState:jM({scrapeMotionValuesFromProps:A4,createRenderState:T4})};function Qoe(e,{forwardMotionProps:t=!1},n,r){return{...E4(e)?Yoe:Zoe,preloadedFeatures:n,useRender:Boe(t),createVisualElement:r,Component:e}}function js(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const BM=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Sb(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Xoe=e=>t=>BM(t)&&e(t,Sb(t));function Hs(e,t,n,r){return js(e,t,Xoe(n),r)}const Joe=(e,t)=>n=>t(e(n)),ou=(...e)=>e.reduce(Joe);function VM(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const MT=VM("dragHorizontal"),DT=VM("dragVertical");function UM(e){let t=!1;if(e==="y")t=DT();else if(e==="x")t=MT();else{const n=MT(),r=DT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function HM(){const e=UM(!0);return e?(e(),!1):!0}class Su{constructor(t){this.isMounted=!1,this.node=t}update(){}}function NT(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||HM())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Pn.update(()=>s[r](a,o))};return Hs(e.current,n,i,{passive:!e.getProps()[r]})}class ese extends Su{mount(){this.unmount=ou(NT(this.node,!0),NT(this.node,!1))}unmount(){}}class tse extends Su{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ou(js(this.node.current,"focus",()=>this.onFocus()),js(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const WM=(e,t)=>t?e===t?!0:WM(e,t.parentElement):!1;function ew(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Sb(n))}class nse extends Su{constructor(){super(...arguments),this.removeStartListeners=er,this.removeEndListeners=er,this.removeAccessibleListeners=er,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=Hs(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f}=this.node.getProps();Pn.update(()=>{WM(this.node.current,s.target)?c&&c(s,l):f&&f(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),o=Hs(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ou(a,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||ew("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&Pn.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=js(this.node.current,"keyup",o),ew("down",(s,l)=>{this.startPress(s,l)})},n=js(this.node.current,"keydown",t),r=()=>{this.isPressing&&ew("cancel",(a,o)=>this.cancelPress(a,o))},i=js(this.node.current,"blur",r);this.removeAccessibleListeners=ou(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Pn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!HM()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Pn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Hs(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=js(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ou(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const k3=new WeakMap,tw=new WeakMap,rse=e=>{const t=k3.get(e.target);t&&t(e)},ise=e=>{e.forEach(rse)};function ase({root:e,...t}){const n=e||document;tw.has(n)||tw.set(n,{});const r=tw.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ise,{root:e,...t})),r[i]}function ose(e,t,n){const r=ase(t);return k3.set(e,n),r.observe(e),()=>{k3.delete(e),r.unobserve(e)}}const sse={some:0,all:1};class lse extends Su{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:sse[i]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),p=c?f:h;p&&p(l)};return ose(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(use(t,n))&&this.startObserver()}unmount(){}}function use({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cse={inView:{Feature:lse},tap:{Feature:nse},focus:{Feature:tse},hover:{Feature:ese}};function qM(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function dse(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function fse(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function wb(e,t,n){const r=e.getProps();return I4(r,t,n!==void 0?n:r.custom,dse(e),fse(e))}const hse="framerAppearId",pse="data-"+R4(hse);let mse=er,L4=er;const su=e=>e*1e3,Ws=e=>e/1e3,gse={current:!1},GM=e=>Array.isArray(e)&&typeof e[0]=="number";function KM(e){return!!(!e||typeof e=="string"&&YM[e]||GM(e)||Array.isArray(e)&&e.every(KM))}const Bp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,YM={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bp([0,.65,.55,1]),circOut:Bp([.55,0,1,.45]),backIn:Bp([.31,.01,.66,-.59]),backOut:Bp([.33,1.53,.69,.99])};function ZM(e){if(e)return GM(e)?Bp(e):Array.isArray(e)?e.map(ZM):YM[e]}function vse(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:o="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const f=ZM(s);return Array.isArray(f)&&(c.easing=f),e.animate(c,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function yse(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const QM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_se=1e-7,bse=12;function Sse(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=QM(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>_se&&++s<bse);return o}function Lg(e,t,n,r){if(e===t&&n===r)return er;const i=a=>Sse(a,0,1,e,n);return a=>a===0||a===1?a:QM(i(a),t,r)}const wse=Lg(.42,0,1,1),xse=Lg(0,0,.58,1),XM=Lg(.42,0,.58,1),Cse=e=>Array.isArray(e)&&typeof e[0]!="number",JM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eD=e=>t=>1-e(1-t),tD=e=>1-Math.sin(Math.acos(e)),M4=eD(tD),Ese=JM(M4),nD=Lg(.33,1.53,.69,.99),D4=eD(nD),kse=JM(D4),Tse=e=>(e*=2)<1?.5*D4(e):.5*(2-Math.pow(2,-10*(e-1))),Pse={linear:er,easeIn:wse,easeInOut:XM,easeOut:xse,circIn:tD,circInOut:Ese,circOut:M4,backIn:D4,backInOut:kse,backOut:nD,anticipate:Tse},FT=e=>{if(Array.isArray(e)){L4(e.length===4);const[t,n,r,i]=e;return Lg(t,n,r,i)}else if(typeof e=="string")return Pse[e];return e},N4=(e,t)=>n=>!!(Ag(n)&&Toe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),rD=(e,t,n)=>r=>{if(!Ag(r))return r;const[i,a,o,s]=r.match(bb);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Ose=e=>du(0,255,e),nw={...$c,transform:e=>Math.round(Ose(e))},oc={test:N4("rgb","red"),parse:rD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+nw.transform(e)+", "+nw.transform(t)+", "+nw.transform(n)+", "+om(am.transform(r))+")"};function Rse(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const T3={test:N4("#"),parse:Rse,transform:oc.transform},nf={test:N4("hsl","hue"),parse:rD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+as.transform(om(t))+", "+as.transform(om(n))+", "+om(am.transform(r))+")"},Ei={test:e=>oc.test(e)||T3.test(e)||nf.test(e),parse:e=>oc.test(e)?oc.parse(e):nf.test(e)?nf.parse(e):T3.parse(e),transform:e=>Ag(e)?e:e.hasOwnProperty("red")?oc.transform(e):nf.transform(e)},Wn=(e,t,n)=>-n*e+n*t+e;function rw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ase({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=rw(l,s,e+1/3),a=rw(l,s,e),o=rw(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const iw=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Ise=[T3,oc,nf],Lse=e=>Ise.find(t=>t.test(e));function $T(e){const t=Lse(e);let n=t.parse(e);return t===nf&&(n=Ase(n)),n}const iD=(e,t)=>{const n=$T(e),r=$T(t),i={...n};return a=>(i.red=iw(n.red,r.red,a),i.green=iw(n.green,r.green,a),i.blue=iw(n.blue,r.blue,a),i.alpha=Wn(n.alpha,r.alpha,a),oc.transform(i))};function Mse(e){var t,n;return isNaN(e)&&Ag(e)&&(((t=e.match(bb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(RM))===null||n===void 0?void 0:n.length)||0)>0}const aD={regex:Eoe,countKey:"Vars",token:"${v}",parse:er},oD={regex:RM,countKey:"Colors",token:"${c}",parse:Ei.parse},sD={regex:bb,countKey:"Numbers",token:"${n}",parse:$c.parse};function aw(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function g1(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&aw(n,aD),aw(n,oD),aw(n,sD),n}function lD(e){return g1(e).values}function uD(e){const{values:t,numColors:n,numVars:r,tokenised:i}=g1(e),a=t.length;return o=>{let s=i;for(let l=0;l<a;l++)l<r?s=s.replace(aD.token,o[l]):l<r+n?s=s.replace(oD.token,Ei.transform(o[l])):s=s.replace(sD.token,om(o[l]));return s}}const Dse=e=>typeof e=="number"?0:e;function Nse(e){const t=lD(e);return uD(e)(t.map(Dse))}const fu={test:Mse,parse:lD,createTransformer:uD,getAnimatableNone:Nse},cD=(e,t)=>n=>`${n>0?t:e}`;function dD(e,t){return typeof e=="number"?n=>Wn(e,t,n):Ei.test(e)?iD(e,t):e.startsWith("var(")?cD(e,t):hD(e,t)}const fD=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,o)=>dD(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}},Fse=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=dD(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},hD=(e,t)=>{const n=fu.createTransformer(t),r=g1(e),i=g1(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ou(fD(r.values,i.values),n):cD(e,t)},Gm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zT=(e,t)=>n=>Wn(e,t,n);function $se(e){return typeof e=="number"?zT:typeof e=="string"?Ei.test(e)?iD:hD:Array.isArray(e)?fD:typeof e=="object"?Fse:zT}function zse(e,t,n){const r=[],i=n||$se(e[0]),a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||er:t;s=ou(l,s)}r.push(s)}return r}function pD(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(L4(a===t.length),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=zse(t,r,i),s=o.length,l=c=>{let f=0;if(s>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const h=Gm(e[f],e[f+1],c);return o[f](h)};return n?c=>l(du(e[0],e[a-1],c)):l}function jse(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Gm(0,t,r);e.push(Wn(n,1,i))}}function Bse(e){const t=[0];return jse(t,e.length-1),t}function Vse(e,t){return e.map(n=>n*t)}function Use(e,t){return e.map(()=>t||XM).splice(0,e.length-1)}function v1({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Cse(r)?r.map(FT):FT(r),a={done:!1,value:t[0]},o=Vse(n&&n.length===t.length?n:Bse(t),e),s=pD(o,t,{ease:Array.isArray(i)?i:Use(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function mD(e,t){return t?e*(1e3/t):0}const Hse=5;function gD(e,t,n){const r=Math.max(t-Hse,0);return mD(n-e(r),t-r)}const ow=.001,Wse=.01,jT=10,qse=.05,Gse=1;function Kse({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;mse(e<=su(jT));let o=1-t;o=du(qse,Gse,o),e=du(Wse,jT,Ws(e)),o<1?(i=c=>{const f=c*o,h=f*e,p=f-n,v=P3(c,o),y=Math.exp(-h);return ow-p/v*y},a=c=>{const h=c*o*e,p=h*n+n,v=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-h),m=P3(Math.pow(c,2),o);return(-i(c)+ow>0?-1:1)*((p-v)*y)/m}):(i=c=>{const f=Math.exp(-c*e),h=(c-n)*e+1;return-ow+f*h},a=c=>{const f=Math.exp(-c*e),h=(n-c)*(e*e);return f*h});const s=5/e,l=Zse(i,a,s);if(e=su(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Yse=12;function Zse(e,t,n){let r=n;for(let i=1;i<Yse;i++)r=r-e(r)/t(r);return r}function P3(e,t){return e*Math.sqrt(1-t*t)}const Qse=["duration","bounce"],Xse=["stiffness","damping","mass"];function BT(e,t){return t.some(n=>e[n]!==void 0)}function Jse(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!BT(e,Xse)&&BT(e,Qse)){const n=Kse(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function vD({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:l,mass:c,velocity:f,duration:h,isResolvedFromDuration:p}=Jse(r),v=f?-Ws(f):0,y=l/(2*Math.sqrt(s*c)),m=a-i,_=Ws(Math.sqrt(s/c)),b=Math.abs(m)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let S;if(y<1){const C=P3(_,y);S=E=>{const R=Math.exp(-y*_*E);return a-R*((v+y*_*m)/C*Math.sin(C*E)+m*Math.cos(C*E))}}else if(y===1)S=C=>a-Math.exp(-_*C)*(m+(v+_*m)*C);else{const C=_*Math.sqrt(y*y-1);S=E=>{const R=Math.exp(-y*_*E),A=Math.min(C*E,300);return a-R*((v+y*_*m)*Math.sinh(A)+C*m*Math.cosh(A))/C}}return{calculatedDuration:p&&h||null,next:C=>{const E=S(C);if(p)o.done=C>=h;else{let R=v;C!==0&&(y<1?R=gD(S,C,E):R=0);const A=Math.abs(R)<=n,I=Math.abs(a-E)<=t;o.done=A&&I}return o.value=o.done?a:E,o}}}function VT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:f}){const h=e[0],p={done:!1,value:h},v=M=>s!==void 0&&M<s||l!==void 0&&M>l,y=M=>s===void 0?l:l===void 0||Math.abs(s-M)<Math.abs(l-M)?s:l;let m=n*t;const _=h+m,b=o===void 0?_:o(_);b!==_&&(m=b-h);const S=M=>-m*Math.exp(-M/r),C=M=>b+S(M),E=M=>{const F=S(M),z=C(M);p.done=Math.abs(F)<=c,p.value=p.done?b:z};let R,A;const I=M=>{v(p.value)&&(R=M,A=vD({keyframes:[p.value,y(p.value)],velocity:gD(C,M,p.value),damping:i,stiffness:a,restDelta:c,restSpeed:f}))};return I(0),{calculatedDuration:null,next:M=>{let F=!1;return!A&&R===void 0&&(F=!0,E(M),I(M)),R!==void 0&&M>R?A.next(M-R):(!F&&E(M),p)}}}const ele=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Pn.update(t,!0),stop:()=>tl(t),now:()=>Fr.isProcessing?Fr.timestamp:performance.now()}},UT=2e4;function HT(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<UT;)t+=n,r=e.next(t);return t>=UT?1/0:t}const tle={decay:VT,inertia:VT,tween:v1,keyframes:v1,spring:vD};function y1({autoplay:e=!0,delay:t=0,driver:n=ele,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:h,...p}){let v=1,y=!1,m,_;const b=()=>{_=new Promise(Ce=>{m=Ce})};b();let S;const C=tle[i]||v1;let E;C!==v1&&typeof r[0]!="number"&&(E=pD([0,100],r,{clamp:!1}),r=[0,100]);const R=C({...p,keyframes:r});let A;s==="mirror"&&(A=C({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let I="idle",M=null,F=null,z=null;R.calculatedDuration===null&&a&&(R.calculatedDuration=HT(R));const{calculatedDuration:Y}=R;let W=1/0,q=1/0;Y!==null&&(W=Y+o,q=W*(a+1)-o);let ae=0;const ee=Ce=>{if(F===null)return;v>0&&(F=Math.min(F,Ce)),v<0&&(F=Math.min(Ce-q/v,F)),M!==null?ae=M:ae=Math.round(Ce-F)*v;const Ee=ae-t*(v>=0?1:-1),xe=v>=0?Ee<0:Ee>q;ae=Math.max(Ee,0),I==="finished"&&M===null&&(ae=q);let ye=ae,Le=R;if(a){const nt=ae/W;let wt=Math.floor(nt),Dt=nt%1;!Dt&&nt>=1&&(Dt=1),Dt===1&&wt--,wt=Math.min(wt,a+1);const Nt=!!(wt%2);Nt&&(s==="reverse"?(Dt=1-Dt,o&&(Dt-=o/W)):s==="mirror"&&(Le=A));let Sn=du(0,1,Dt);ae>q&&(Sn=s==="reverse"&&Nt?1:0),ye=Sn*W}const Ae=xe?{done:!1,value:r[0]}:Le.next(ye);E&&(Ae.value=E(Ae.value));let{done:it}=Ae;!xe&&Y!==null&&(it=v>=0?ae>=q:ae<=0);const Ye=M===null&&(I==="finished"||I==="running"&&it);return h&&h(Ae.value),Ye&&J(),Ae},ce=()=>{S&&S.stop(),S=void 0},ue=()=>{I="idle",ce(),m(),b(),F=z=null},J=()=>{I="finished",f&&f(),ce(),m()},me=()=>{if(y)return;S||(S=n(ee));const Ce=S.now();l&&l(),M!==null?F=Ce-M:(!F||I==="finished")&&(F=Ce),I==="finished"&&b(),z=F,M=null,I="running",S.start()};e&&me();const we={then(Ce,Ee){return _.then(Ce,Ee)},get time(){return Ws(ae)},set time(Ce){Ce=su(Ce),ae=Ce,M!==null||!S||v===0?M=Ce:F=S.now()-Ce/v},get duration(){const Ce=R.calculatedDuration===null?HT(R):R.calculatedDuration;return Ws(Ce)},get speed(){return v},set speed(Ce){Ce===v||!S||(v=Ce,we.time=Ws(ae))},get state(){return I},play:me,pause:()=>{I="paused",M=ae},stop:()=>{y=!0,I!=="idle"&&(I="idle",c&&c(),ue())},cancel:()=>{z!==null&&ee(z),ue()},complete:()=>{I="finished"},sample:Ce=>(F=0,ee(Ce))};return we}function nle(e){let t;return()=>(t===void 0&&(t=e()),t)}const rle=nle(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ile=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),T0=10,ale=2e4,ole=(e,t)=>t.type==="spring"||e==="backgroundColor"||!KM(t.ease);function sle(e,t,{onUpdate:n,onComplete:r,...i}){if(!(rle()&&ile.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,s,l;const c=()=>{l=new Promise(S=>{s=S})};c();let{keyframes:f,duration:h=300,ease:p,times:v}=i;if(ole(t,i)){const S=y1({...i,repeat:0,delay:0});let C={done:!1,value:f[0]};const E=[];let R=0;for(;!C.done&&R<ale;)C=S.sample(R),E.push(C.value),R+=T0;v=void 0,f=E,h=R-T0,p="linear"}const y=vse(e.owner.current,t,f,{...i,duration:h,ease:p,times:v});i.syncStart&&(y.startTime=Fr.isProcessing?Fr.timestamp:performance.now());const m=()=>y.cancel(),_=()=>{Pn.update(m),s(),c()};return y.onfinish=()=>{e.set(yse(f,i)),r&&r(),_()},{then(S,C){return l.then(S,C)},attachTimeline(S){return y.timeline=S,y.onfinish=null,er},get time(){return Ws(y.currentTime||0)},set time(S){y.currentTime=su(S)},get speed(){return y.playbackRate},set speed(S){y.playbackRate=S},get duration(){return Ws(h)},play:()=>{o||(y.play(),tl(m))},pause:()=>y.pause(),stop:()=>{if(o=!0,y.playState==="idle")return;const{currentTime:S}=y;if(S){const C=y1({...i,autoplay:!1});e.setWithVelocity(C.sample(S-T0).value,C.sample(S).value,T0)}_()},complete:()=>y.finish(),cancel:_}}function lle({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:er,pause:er,stop:er,then:a=>(a(),Promise.resolve()),cancel:er,complete:er});return t?y1({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const ule={type:"spring",stiffness:500,damping:25,restSpeed:10},cle=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dle={type:"keyframes",duration:.8},fle={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hle=(e,{keyframes:t})=>t.length>2?dle:Fc.has(e)?e.startsWith("scale")?cle(t[1]):ule:fle,O3=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(fu.test(t)||t==="0")&&!t.startsWith("url(")),ple=new Set(["brightness","contrast","saturate","opacity"]);function mle(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(bb)||[];if(!r)return e;const i=n.replace(r,"");let a=ple.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const gle=/([a-z-]*)\(.*?\)/g,R3={...fu,getAnimatableNone:e=>{const t=e.match(gle);return t?t.map(mle).join(" "):e}},vle={...AM,color:Ei,backgroundColor:Ei,outlineColor:Ei,fill:Ei,stroke:Ei,borderColor:Ei,borderTopColor:Ei,borderRightColor:Ei,borderBottomColor:Ei,borderLeftColor:Ei,filter:R3,WebkitFilter:R3},F4=e=>vle[e];function yD(e,t){let n=F4(e);return n!==R3&&(n=fu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _D=e=>/^0[^.\s]+$/.test(e);function yle(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||_D(e)}function _le(e,t,n,r){const i=O3(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const o=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?o:a[c-1]),yle(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(s=a[c]);if(i&&l.length&&s)for(let c=0;c<l.length;c++){const f=l[c];a[f]=yD(t,s)}return a}function ble({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...f}){return!!Object.keys(f).length}function bD(e,t){return e[t]||e.default||e}const $4=(e,t,n,r={})=>i=>{const a=bD(r,e)||{},o=a.delay||r.delay||0;let{elapsed:s=0}=r;s=s-su(o);const l=_le(t,e,n,a),c=l[0],f=l[l.length-1],h=O3(e,c),p=O3(e,f);let v={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:y=>{t.set(y),a.onUpdate&&a.onUpdate(y)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(ble(a)||(v={...v,...hle(e,v)}),v.duration&&(v.duration=su(v.duration)),v.repeatDelay&&(v.repeatDelay=su(v.repeatDelay)),!h||!p||gse.current||a.type===!1)return lle(v);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=sle(t,e,v);if(y)return y}return y1(v)};function _1(e){return!!(ta(e)&&e.add)}const SD=e=>/^\-?\d*\.?\d+$/.test(e);function z4(e,t){e.indexOf(t)===-1&&e.push(t)}function j4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class B4{constructor(){this.subscriptions=[]}add(t){return z4(this.subscriptions,t),()=>j4(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Sle=e=>!isNaN(parseFloat(e));class wle{constructor(t,n={}){this.version="10.16.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:o}=Fr;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,Pn.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Pn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Sle(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new B4);const r=this.events[t].add(n);return t==="change"?()=>{r(),Pn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?mD(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gf(e,t){return new wle(e,t)}const wD=e=>t=>t.test(e),xle={test:e=>e==="auto",parse:e=>e},xD=[$c,ht,as,Ml,Ooe,Poe,xle],mp=e=>xD.find(wD(e)),Cle=[...xD,Ei,fu],Ele=e=>Cle.find(wD(e));function kle(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gf(n))}function Tle(e,t){const n=wb(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const o in a){const s=Uoe(a[o]);kle(e,o,s)}}function Ple(e,t,n){var r,i;const a=Object.keys(t).filter(s=>!e.hasValue(s)),o=a.length;if(o)for(let s=0;s<o;s++){const l=a[s],c=t[l];let f=null;Array.isArray(c)&&(f=c[0]),f===null&&(f=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),f!=null&&(typeof f=="string"&&(SD(f)||_D(f))?f=parseFloat(f):!Ele(f)&&fu.test(c)&&(f=yD(l,c)),e.addValue(l,Gf(f,{owner:e})),n[l]===void 0&&(n[l]=f),f!==null&&e.setBaseTarget(l,f))}}function Ole(e,t){return t?(t[e]||t.default||t).from:void 0}function Rle(e,t,n){const r={};for(const i in e){const a=Ole(i,t);if(a!==void 0)r[i]=a;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function Ale({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function CD(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(a=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const p=e.getValue(h),v=s[h];if(!p||v===void 0||f&&Ale(f,h))continue;const y={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!p.hasAnimated){const _=e.getProps()[pse];_&&(y.elapsed=window.HandoffAppearAnimations(_,h,p,Pn),y.syncStart=!0)}p.start($4(h,p,v,e.shouldReduceMotion&&Fc.has(h)?{type:!1}:y));const m=p.animation;_1(l)&&(l.add(h),m.then(()=>l.remove(h))),c.push(m)}return o&&Promise.all(c).then(()=>{o&&Tle(e,o)}),c}function A3(e,t,n={}){const r=wb(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(CD(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:h}=i;return Ile(e,t,c+l,f,h,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[l,c]=s==="beforeChildren"?[a,o]:[o,a];return l().then(()=>c())}else return Promise.all([a(),o(n.delay)])}function Ile(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(Lle).forEach((c,f)=>{c.notify("AnimationStart",t),o.push(A3(c,t,{...a,delay:n+l(f)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function Lle(e,t){return e.sortNodePosition(t)}function Mle(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>A3(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=A3(e,t,n);else{const i=typeof t=="function"?wb(e,t,n.custom):t;r=Promise.all(CD(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Dle=[...w4].reverse(),Nle=w4.length;function Fle(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Mle(e,n,r)))}function $le(e){let t=Fle(e);const n=jle();let r=!0;const i=(l,c)=>{const f=wb(e,c);if(f){const{transition:h,transitionEnd:p,...v}=f;l={...l,...v,...p}}return l};function a(l){t=l(e)}function o(l,c){const f=e.getProps(),h=e.getVariantContext(!0)||{},p=[],v=new Set;let y={},m=1/0;for(let b=0;b<Nle;b++){const S=Dle[b],C=n[S],E=f[S]!==void 0?f[S]:h[S],R=Wm(E),A=S===c?C.isActive:null;A===!1&&(m=b);let I=E===h[S]&&E!==f[S]&&R;if(I&&r&&e.manuallyAnimateOnMount&&(I=!1),C.protectedKeys={...y},!C.isActive&&A===null||!E&&!C.prevProp||yb(E)||typeof E=="boolean")continue;const M=zle(C.prevProp,E);let F=M||S===c&&C.isActive&&!I&&R||b>m&&R;const z=Array.isArray(E)?E:[E];let Y=z.reduce(i,{});A===!1&&(Y={});const{prevResolvedValues:W={}}=C,q={...W,...Y},ae=ee=>{F=!0,v.delete(ee),C.needsAnimating[ee]=!0};for(const ee in q){const ce=Y[ee],ue=W[ee];y.hasOwnProperty(ee)||(ce!==ue?m1(ce)&&m1(ue)?!qM(ce,ue)||M?ae(ee):C.protectedKeys[ee]=!0:ce!==void 0?ae(ee):v.add(ee):ce!==void 0&&v.has(ee)?ae(ee):C.protectedKeys[ee]=!0)}C.prevProp=E,C.prevResolvedValues=Y,C.isActive&&(y={...y,...Y}),r&&e.blockInitialAnimation&&(F=!1),F&&!I&&p.push(...z.map(ee=>({animation:ee,options:{type:S,...l}})))}if(v.size){const b={};v.forEach(S=>{const C=e.getBaseTarget(S);C!==void 0&&(b[S]=C)}),p.push({animation:b})}let _=!!p.length;return r&&f.initial===!1&&!e.manuallyAnimateOnMount&&(_=!1),r=!1,_?t(p):Promise.resolve()}function s(l,c,f){var h;if(n[l].isActive===c)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var y;return(y=v.animationState)===null||y===void 0?void 0:y.setActive(l,c)}),n[l].isActive=c;const p=o(f,l);for(const v in n)n[v].protectedKeys={};return p}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n}}function zle(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qM(t,e):!1}function Gu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jle(){return{animate:Gu(!0),whileInView:Gu(),whileHover:Gu(),whileTap:Gu(),whileDrag:Gu(),whileFocus:Gu(),exit:Gu()}}class Ble extends Su{constructor(t){super(t),t.animationState||(t.animationState=$le(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),yb(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Vle=0;class Ule extends Su{constructor(){super(...arguments),this.id=Vle++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Hle={animation:{Feature:Ble},exit:{Feature:Ule}},WT=(e,t)=>Math.abs(e-t);function Wle(e,t){const n=WT(e.x,t.x),r=WT(e.y,t.y);return Math.sqrt(n**2+r**2)}class ED{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=lw(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=Wle(c.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:p}=c,{timestamp:v}=Fr;this.history.push({...p,timestamp:v});const{onStart:y,onMove:m}=this.handlers;f||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=sw(f,this.transformPagePoint),Pn.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:p}=this.handlers,v=lw(c.type==="pointercancel"?this.lastMoveEventInfo:sw(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(c,v),p&&p(c,v)},!BM(t))return;this.handlers=n,this.transformPagePoint=r;const i=Sb(t),a=sw(i,this.transformPagePoint),{point:o}=a,{timestamp:s}=Fr;this.history=[{...o,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,lw(a,this.history)),this.removeListeners=ou(Hs(window,"pointermove",this.handlePointerMove),Hs(window,"pointerup",this.handlePointerUp),Hs(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tl(this.updatePoint)}}function sw(e,t){return t?{point:t(e.point)}:e}function qT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lw({point:e},t){return{point:e,delta:qT(e,kD(t)),offset:qT(e,qle(t)),velocity:Gle(t,.1)}}function qle(e){return e[0]}function kD(e){return e[e.length-1]}function Gle(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=kD(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>su(t)));)n--;if(!r)return{x:0,y:0};const a=Ws(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function va(e){return e.max-e.min}function I3(e,t=0,n=.01){return Math.abs(e-t)<=n}function GT(e,t,n,r=.5){e.origin=r,e.originPoint=Wn(t.min,t.max,e.origin),e.scale=va(n)/va(t),(I3(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Wn(n.min,n.max,e.origin)-e.originPoint,(I3(e.translate)||isNaN(e.translate))&&(e.translate=0)}function sm(e,t,n,r){GT(e.x,t.x,n.x,r?r.originX:void 0),GT(e.y,t.y,n.y,r?r.originY:void 0)}function KT(e,t,n){e.min=n.min+t.min,e.max=e.min+va(t)}function Kle(e,t,n){KT(e.x,t.x,n.x),KT(e.y,t.y,n.y)}function YT(e,t,n){e.min=t.min-n.min,e.max=e.min+va(t)}function lm(e,t,n){YT(e.x,t.x,n.x),YT(e.y,t.y,n.y)}function Yle(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Wn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Wn(n,e,r.max):Math.min(e,n)),e}function ZT(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Zle(e,{top:t,left:n,bottom:r,right:i}){return{x:ZT(e.x,n,i),y:ZT(e.y,t,r)}}function QT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Qle(e,t){return{x:QT(e.x,t.x),y:QT(e.y,t.y)}}function Xle(e,t){let n=.5;const r=va(e),i=va(t);return i>r?n=Gm(t.min,t.max-r,e.min):r>i&&(n=Gm(e.min,e.max-i,t.min)),du(0,1,n)}function Jle(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const L3=.35;function eue(e=L3){return e===!1?e=0:e===!0&&(e=L3),{x:XT(e,"left","right"),y:XT(e,"top","bottom")}}function XT(e,t,n){return{min:JT(e,t),max:JT(e,n)}}function JT(e,t){return typeof e=="number"?e:e[t]||0}const eP=()=>({translate:0,scale:1,origin:0,originPoint:0}),rf=()=>({x:eP(),y:eP()}),tP=()=>({min:0,max:0}),pr=()=>({x:tP(),y:tP()});function Uo(e){return[e("x"),e("y")]}function TD({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nue(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function uw(e){return e===void 0||e===1}function M3({scale:e,scaleX:t,scaleY:n}){return!uw(e)||!uw(t)||!uw(n)}function Zu(e){return M3(e)||PD(e)||e.z||e.rotate||e.rotateX||e.rotateY}function PD(e){return nP(e.x)||nP(e.y)}function nP(e){return e&&e!=="0%"}function b1(e,t,n){const r=e-n,i=t*r;return n+i}function rP(e,t,n,r,i){return i!==void 0&&(e=b1(e,i,r)),b1(e,n,r)+t}function D3(e,t=0,n=1,r,i){e.min=rP(e.min,t,n,r,i),e.max=rP(e.max,t,n,r,i)}function OD(e,{x:t,y:n}){D3(e.x,t.translate,t.scale,t.originPoint),D3(e.y,n.translate,n.scale,n.originPoint)}function rue(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&af(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,OD(e,o)),r&&Zu(a.latestValues)&&af(e,a.latestValues))}t.x=iP(t.x),t.y=iP(t.y)}function iP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Fl(e,t){e.min=e.min+t,e.max=e.max+t}function aP(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,o=Wn(e.min,e.max,a);D3(e,t[n],t[r],o,t.scale)}const iue=["x","scaleX","originX"],aue=["y","scaleY","originY"];function af(e,t){aP(e.x,t,iue),aP(e.y,t,aue)}function RD(e,t){return TD(nue(e.getBoundingClientRect(),t))}function oue(e,t,n){const r=RD(e,n),{scroll:i}=t;return i&&(Fl(r.x,i.offset.x),Fl(r.y,i.offset.y)),r}const sue=new WeakMap;class lue{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(Sb(l,"page").point)},a=(l,c)=>{const{drag:f,dragPropagation:h,onDragStart:p}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=UM(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Uo(y=>{let m=this.getAxisMotionValue(y).get()||0;if(as.test(m)){const{projection:_}=this.visualElement;if(_&&_.layout){const b=_.layout.layoutBox[y];b&&(m=va(b)*(parseFloat(m)/100))}}this.originPoint[y]=m}),p&&Pn.update(()=>p(l,c),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(l,c)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:p,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:y}=c;if(h&&this.currentDirection===null){this.currentDirection=uue(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,y),this.updateAxis("y",c.point,y),this.visualElement.render(),v&&v(l,c)},s=(l,c)=>this.stop(l,c);this.panSession=new ED(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Pn.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!P0(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Yle(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&tf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Zle(r.layoutBox,t):this.constraints=!1,this.elastic=eue(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Uo(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=Jle(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!tf(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=oue(r,i.root,this.visualElement.getTransformPagePoint());let o=Qle(i.layout.layoutBox,a);if(n){const s=n(tue(o));this.hasMutatedConstraints=!!s,s&&(o=TD(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Uo(f=>{if(!P0(f,n,this.currentDirection))return;let h=l&&l[f]||{};o&&(h={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,y={type:"inertia",velocity:r?t[f]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(f,y)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start($4(t,r,0,n))}stopAnimation(){Uo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Uo(n=>{const{drag:r}=this.getProps();if(!P0(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Wn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!tf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Uo(o=>{const s=this.getAxisMotionValue(o);if(s){const l=s.get();i[o]=Xle({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Uo(o=>{if(!P0(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];s.set(Wn(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;sue.set(this.visualElement,this);const t=this.visualElement.current,n=Hs(t,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();tf(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=js(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Uo(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=l[f].translate,h.set(h.get()+l[f].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=L3,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function P0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uue(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cue extends Su{constructor(t){super(t),this.removeGroupControls=er,this.removeListeners=er,this.controls=new lue(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||er}unmount(){this.removeGroupControls(),this.removeListeners()}}const oP=e=>(t,n)=>{e&&Pn.update(()=>e(t,n))};class due extends Su{constructor(){super(...arguments),this.removePointerDownListener=er}onPointerDown(t){this.session=new ED(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:oP(t),onStart:oP(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Pn.update(()=>i(a,o))}}}mount(){this.removePointerDownListener=Hs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function AD(){const e=w.useContext(Og);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=w.useId();return w.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function fue(){return hue(w.useContext(Og))}function hue(e){return e===null?!0:e.isPresent}const _y={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gp={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ht.test(e))e=parseFloat(e);else return e;const n=sP(e,t.target.x),r=sP(e,t.target.y);return`${n}% ${r}%`}},pue={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fu.parse(e);if(i.length>5)return r;const a=fu.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=Wn(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),a(i)}};class mue extends ve.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Soe(gue),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),_y.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Pn.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ID(e){const[t,n]=AD(),r=w.useContext(C4);return ve.createElement(mue,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(kM),isPresent:t,safeToRemove:n})}const gue={borderRadius:{...gp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gp,borderTopRightRadius:gp,borderBottomLeftRadius:gp,borderBottomRightRadius:gp,boxShadow:pue},LD=["TopLeft","TopRight","BottomLeft","BottomRight"],vue=LD.length,lP=e=>typeof e=="string"?parseFloat(e):e,uP=e=>typeof e=="number"||ht.test(e);function yue(e,t,n,r,i,a){i?(e.opacity=Wn(0,n.opacity!==void 0?n.opacity:1,_ue(r)),e.opacityExit=Wn(t.opacity!==void 0?t.opacity:1,0,bue(r))):a&&(e.opacity=Wn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<vue;o++){const s=`border${LD[o]}Radius`;let l=cP(t,s),c=cP(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||uP(l)===uP(c)?(e[s]=Math.max(Wn(lP(l),lP(c),r),0),(as.test(c)||as.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Wn(t.rotate||0,n.rotate||0,r))}function cP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const _ue=MD(0,.5,M4),bue=MD(.5,.95,er);function MD(e,t,n){return r=>r<e?0:r>t?1:n(Gm(e,t,r))}function dP(e,t){e.min=t.min,e.max=t.max}function Ia(e,t){dP(e.x,t.x),dP(e.y,t.y)}function fP(e,t,n,r,i){return e-=t,e=b1(e,1/n,r),i!==void 0&&(e=b1(e,1/i,r)),e}function Sue(e,t=0,n=1,r=.5,i,a=e,o=e){if(as.test(t)&&(t=parseFloat(t),t=Wn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Wn(a.min,a.max,r);e===a&&(s-=t),e.min=fP(e.min,t,n,s,i),e.max=fP(e.max,t,n,s,i)}function hP(e,t,[n,r,i],a,o){Sue(e,t[n],t[r],t[i],t.scale,a,o)}const wue=["x","scaleX","originX"],xue=["y","scaleY","originY"];function pP(e,t,n,r){hP(e.x,t,wue,n?n.x:void 0,r?r.x:void 0),hP(e.y,t,xue,n?n.y:void 0,r?r.y:void 0)}function mP(e){return e.translate===0&&e.scale===1}function DD(e){return mP(e.x)&&mP(e.y)}function Cue(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ND(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function gP(e){return va(e.x)/va(e.y)}class Eue{constructor(){this.members=[]}add(t){z4(this.members,t),t.scheduleRender()}remove(t){if(j4(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function vP(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return(o!==1||s!==1)&&(r+=`scale(${o}, ${s})`),r||"none"}const kue=(e,t)=>e.depth-t.depth;class Tue{constructor(){this.children=[],this.isDirty=!1}add(t){z4(this.children,t),this.isDirty=!0}remove(t){j4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kue),this.isDirty=!1,this.children.forEach(t)}}function Pue(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(tl(r),e(a-t))};return Pn.read(r,!0),()=>tl(r)}function Oue(e){window.MotionDebug&&window.MotionDebug.record(e)}function Rue(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Aue(e,t,n){const r=ta(e)?e:Gf(e);return r.start($4("",r,t,n)),r.animation}const yP=["","X","Y","Z"],_P=1e3;let Iue=0;const Qu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function FD({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=Iue++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Qu.totalNodes=Qu.resolvedTargetDeltas=Qu.recalculatedProjection=0,this.nodes.forEach(Due),this.nodes.forEach(jue),this.nodes.forEach(Bue),this.nodes.forEach(Nue),Oue(Qu)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Tue)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new B4),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Rue(o),this.instance=o;const{layoutId:l,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Pue(p,250),_y.hasAnimatedSinceResize&&(_y.hasAnimatedSinceResize=!1,this.nodes.forEach(SP))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeTargetChanged:v,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||f.getDefaultTransition()||que,{onLayoutAnimationStart:_,onLayoutAnimationComplete:b}=f.getProps(),S=!this.targetLayout||!ND(this.targetLayout,y)||v,C=!p&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||p&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,C);const E={...bD(m,"layout"),onPlay:_,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||SP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Vue),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(bP);return}this.isUpdating||this.nodes.forEach($ue),this.isUpdating=!1,this.nodes.forEach(zue),this.nodes.forEach(Lue),this.nodes.forEach(Mue),this.clearAllSnapshots();const s=performance.now();Fr.delta=du(0,1e3/60,s-Fr.timestamp),Fr.timestamp=s,Fr.isProcessing=!0,JS.update.process(Fr),JS.preRender.process(Fr),JS.render.process(Fr),Fr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Fue),this.sharedNodes.forEach(Uue)}scheduleUpdateProjection(){Pn.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Pn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=pr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!DD(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;o&&(s||Zu(this.latestValues)||f)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),Gue(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return pr();const s=o.measureViewportBox(),{scroll:l}=this.root;return l&&(Fl(s.x,l.offset.x),Fl(s.y,l.offset.y)),s}removeElementScroll(o){const s=pr();Ia(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:f,options:h}=c;if(c!==this.root&&f&&h.layoutScroll){if(f.isRoot){Ia(s,o);const{scroll:p}=this.root;p&&(Fl(s.x,-p.offset.x),Fl(s.y,-p.offset.y))}Fl(s.x,f.offset.x),Fl(s.y,f.offset.y)}}return s}applyTransform(o,s=!1){const l=pr();Ia(l,o);for(let c=0;c<this.path.length;c++){const f=this.path[c];!s&&f.options.layoutScroll&&f.scroll&&f!==f.root&&af(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Zu(f.latestValues)&&af(l,f.latestValues)}return Zu(this.latestValues)&&af(l,this.latestValues),l}removeTransform(o){const s=pr();Ia(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Zu(c.latestValues))continue;M3(c.latestValues)&&c.updateSnapshot();const f=pr(),h=c.measurePageBox();Ia(f,h),pP(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,f)}return Zu(this.latestValues)&&pP(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=Fr.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pr(),this.relativeTargetOrigin=pr(),lm(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Ia(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=pr(),this.targetWithTransforms=pr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Kle(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ia(this.target,this.layout.layoutBox),OD(this.target,this.targetDelta)):Ia(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pr(),this.relativeTargetOrigin=pr(),lm(this.relativeTargetOrigin,this.target,v.target),Ia(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qu.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||M3(this.parent.latestValues)||PD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Fr.timestamp&&(c=!1),c)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Ia(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,v=this.treeScale.y;rue(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:y}=s;if(!y){this.projectionTransform&&(this.projectionDelta=rf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=rf(),this.projectionDeltaWithTransform=rf());const m=this.projectionTransform;sm(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=vP(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==p||this.treeScale.y!==v)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Qu.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,s=!1){const l=this.snapshot,c=l?l.latestValues:{},f={...this.latestValues},h=rf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=pr(),v=l?l.source:void 0,y=this.layout?this.layout.source:void 0,m=v!==y,_=this.getStack(),b=!_||_.members.length<=1,S=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(Wue));this.animationProgress=0;let C;this.mixTargetDelta=E=>{const R=E/1e3;wP(h.x,o.x,R),wP(h.y,o.y,R),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lm(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Hue(this.relativeTarget,this.relativeTargetOrigin,p,R),C&&Cue(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=pr()),Ia(C,this.relativeTarget)),m&&(this.animationValues=f,yue(f,c,this.latestValues,R,S,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pn.update(()=>{_y.hasAnimatedSinceResize=!0,this.currentAnimation=Aue(0,_P,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_P),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:f}=o;if(!(!s||!l||!c)){if(this!==o&&this.layout&&c&&$D(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||pr();const h=va(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const p=va(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}Ia(s,l),af(s,f),sm(this.projectionDeltaWithTransform,this.layoutCorrected,s,f)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Eue),this.sharedNodes.get(o).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let f=0;f<yP.length;f++){const h="rotate"+yP[f];l[h]&&(c[h]=l[h],o.setStaticValue(h,0))}o.render();for(const f in c)o.setStaticValue(f,c[f]);o.scheduleRender()}getProjectionStyles(o={}){var s,l;const c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return{visibility:"hidden"};const f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=yy(o.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=yy(o.pointerEvents)||""),this.hasProjected&&!Zu(this.latestValues)&&(m.transform=f?f({},""):"none",this.hasProjected=!1),m}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=vP(this.projectionDeltaWithTransform,this.treeScale,p),f&&(c.transform=f(p,c.transform));const{x:v,y}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${y.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const m in h1){if(p[m]===void 0)continue;const{correct:_,applyTo:b}=h1[m],S=c.transform==="none"?p[m]:_(p[m],h);if(b){const C=b.length;for(let E=0;E<C;E++)c[b[E]]=S}else c[m]=S}return this.options.layoutId&&(c.pointerEvents=h===this?yy(o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(bP),this.root.sharedNodes.clear()}}}function Lue(e){e.updateLayout()}function Mue(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?Uo(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],v=va(p);p.min=r[h].min,p.max=p.min+v}):$D(a,n.layoutBox,r)&&Uo(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],v=va(r[h]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const s=rf();sm(s,r,n.layoutBox);const l=rf();o?sm(l,e.applyTransform(i,!0),n.measuredBox):sm(l,r,n.layoutBox);const c=!DD(s);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:v}=h;if(p&&v){const y=pr();lm(y,n.layoutBox,p.layoutBox);const m=pr();lm(m,r,v.layoutBox),ND(y,m)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Due(e){Qu.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Nue(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fue(e){e.clearSnapshot()}function bP(e){e.clearMeasurements()}function $ue(e){e.isLayoutDirty=!1}function zue(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function SP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jue(e){e.resolveTargetDelta()}function Bue(e){e.calcProjection()}function Vue(e){e.resetRotation()}function Uue(e){e.removeLeadSnapshot()}function wP(e,t,n){e.translate=Wn(t.translate,0,n),e.scale=Wn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xP(e,t,n,r){e.min=Wn(t.min,n.min,r),e.max=Wn(t.max,n.max,r)}function Hue(e,t,n,r){xP(e.x,t.x,n.x,r),xP(e.y,t.y,n.y,r)}function Wue(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const que={duration:.45,ease:[.4,0,.1,1]},CP=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),EP=CP("applewebkit/")&&!CP("chrome/")?Math.round:er;function kP(e){e.min=EP(e.min),e.max=EP(e.max)}function Gue(e){kP(e.x),kP(e.y)}function $D(e,t,n){return e==="position"||e==="preserve-aspect"&&!I3(gP(t),gP(n),.2)}const Kue=FD({attachResizeListener:(e,t)=>js(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cw={current:void 0},zD=FD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cw.current){const e=new Kue({});e.mount(window),e.setOptions({layoutScroll:!0}),cw.current=e}return cw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Yue={pan:{Feature:due},drag:{Feature:cue,ProjectionNode:zD,MeasureLayout:ID}},Zue=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Que(e){const t=Zue.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function N3(e,t,n=1){const[r,i]=Que(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return SD(o)?parseFloat(o):o}else return E3(i)?N3(i,t,n+1):i}function Xue(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!E3(a))return;const o=N3(a,r);o&&i.set(o)});for(const i in t){const a=t[i];if(!E3(a))continue;const o=N3(a,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const Jue=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),jD=e=>Jue.has(e),ece=e=>Object.keys(e).some(jD),TP=e=>e===$c||e===ht,PP=(e,t)=>parseFloat(e.split(", ")[t]),OP=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return PP(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?PP(a[1],e):0}},tce=new Set(["x","y","z"]),nce=Rg.filter(e=>!tce.has(e));function rce(e){const t=[];return nce.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Kf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:OP(4,13),y:OP(5,14)};Kf.translateX=Kf.x;Kf.translateY=Kf.y;const ice=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=Kf[c](r,a)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const f=t.getValue(c);f&&f.jump(s[c]),e[c]=Kf[c](l,a)}),e},ace=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(jD);let a=[],o=!1;const s=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let f=n[l],h=mp(f);const p=t[l];let v;if(m1(p)){const y=p.length,m=p[0]===null?1:0;f=p[m],h=mp(f);for(let _=m;_<y&&p[_]!==null;_++)v?L4(mp(p[_])===v):v=mp(p[_])}else v=mp(p);if(h!==v)if(TP(h)&&TP(v)){const y=c.get();typeof y=="string"&&c.set(parseFloat(y)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&v===ht&&(t[l]=p.map(parseFloat))}else h!=null&&h.transform&&(v!=null&&v.transform)&&(f===0||p===0)?f===0?c.set(v.transform(f)):t[l]=h.transform(p):(o||(a=rce(e),o=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(p))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=ice(t,e,s);return a.length&&a.forEach(([f,h])=>{e.getValue(f).set(h)}),e.render(),vb&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function oce(e,t,n,r){return ece(t)?ace(e,t,n,r):{target:t,transitionEnd:r}}const sce=(e,t,n,r)=>{const i=Xue(e,t,r);return t=i.target,r=i.transitionEnd,oce(e,t,n,r)},F3={current:null},BD={current:!1};function lce(){if(BD.current=!0,!!vb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>F3.current=e.matches;e.addListener(t),t()}else F3.current=!1}function uce(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],o=n[i];if(ta(a))e.addValue(i,a),_1(r)&&r.add(i);else if(ta(o))e.addValue(i,Gf(a,{owner:e})),_1(r)&&r.remove(i);else if(o!==a)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,Gf(s!==void 0?s:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const RP=new WeakMap,VD=Object.keys(qm),cce=VD.length,AP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],dce=x4.length;class fce{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Pn.render(this.render,!1,!0);const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=_b(n),this.isVariantNode=EM(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{});for(const h in f){const p=f[h];s[h]!==void 0&&ta(p)&&(p.set(s[h],!1),_1(c)&&c.add(h))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,RP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),BD.current||lce(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:F3.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){RP.delete(this.current),this.projection&&this.projection.unmount(),tl(this.notifyUpdate),tl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Fc.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Pn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let o,s;for(let l=0;l<cce;l++){const c=VD[l],{isEnabled:f,Feature:h,ProjectionNode:p,MeasureLayout:v}=qm[c];p&&(o=p),f(n)&&(!this.features[c]&&h&&(this.features[c]=new h(this)),v&&(s=v))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:f,dragConstraints:h,layoutScroll:p,layoutRoot:v}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!f||h&&tf(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:p,layoutRoot:v})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<AP.length;r++){const i=AP[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=uce(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<dce;r++){const i=x4[r],a=this.props[i];(Wm(a)||a===!1)&&(n[i]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Gf(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=I4(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ta(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new B4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class UD extends fce{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let o=Rle(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),a){Ple(this,r,o);const s=sce(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function hce(e){return window.getComputedStyle(e)}class pce extends UD{readValueFromInstance(t,n){if(Fc.has(n)){const r=F4(n);return r&&r.default||0}else{const r=hce(t),i=(OM(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return RD(t,n)}build(t,n,r,i){k4(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return A4(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ta(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){DM(t,n,r,i)}}class mce extends UD{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Fc.has(n)){const r=F4(n);return r&&r.default||0}return n=NM.has(n)?n:R4(n),t.getAttribute(n)}measureInstanceViewportBox(){return pr()}scrapeMotionValuesFromProps(t,n){return $M(t,n)}build(t,n,r,i){P4(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){FM(t,n,r,i)}mount(t){this.isSVGTag=O4(t.tagName),super.mount(t)}}const gce=(e,t)=>E4(e)?new mce(t,{enableHardwareAcceleration:!1}):new pce(t,{enableHardwareAcceleration:!0}),vce={layout:{ProjectionNode:zD,MeasureLayout:ID}},yce={...Hle,...cse,...Yue,...vce},wu=_oe((e,t)=>Qoe(e,t,yce,gce));function HD(){const e=w.useRef(!1);return S4(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _ce(){const e=HD(),[t,n]=w.useState(0),r=w.useCallback(()=>{e.current&&n(t+1)},[t]);return[w.useCallback(()=>Pn.postRender(r),[r]),t]}class bce extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Sce({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),i=w.useRef({width:0,height:0,top:0,left:0});return w.useInsertionEffect(()=>{const{width:a,height:o,top:s,left:l}=i.current;if(t||!r.current||!a||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
     340  )`;return{...!r&&i&&a,...r?{bgImage:s}:{bgColor:o}}},Nte={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Fte=e=>({bg:at("gray.100","whiteAlpha.300")(e)}),$te=e=>({transitionProperty:"common",transitionDuration:"slow",...Dte(e)}),zte=zp(e=>({label:Nte,filledTrack:$te(e),track:Fte(e)})),jte={xs:zp({track:{h:"1"}}),sm:zp({track:{h:"2"}}),md:zp({track:{h:"3"}}),lg:zp({track:{h:"4"}})},Bte=Mte({sizes:jte,baseStyle:zte,defaultProps:{size:"md",colorScheme:"blue"}}),Vte=e=>typeof e=="function";function Ii(e,...t){return Vte(e)?e(...t):e}var{definePartsStyle:py,defineMultiStyleConfig:Ute}=On(DJ.keys),nm=tt("checkbox-size"),Hte=e=>{const{colorScheme:t}=e;return{w:nm.reference,h:nm.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:at(`${t}.500`,`${t}.200`)(e),borderColor:at(`${t}.500`,`${t}.200`)(e),color:at("white","gray.900")(e),_hover:{bg:at(`${t}.600`,`${t}.300`)(e),borderColor:at(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:at("gray.200","transparent")(e),bg:at("gray.200","whiteAlpha.300")(e),color:at("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:at(`${t}.500`,`${t}.200`)(e),borderColor:at(`${t}.500`,`${t}.200`)(e),color:at("white","gray.900")(e)},_disabled:{bg:at("gray.100","whiteAlpha.100")(e),borderColor:at("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:at("red.500","red.300")(e)}}},Wte={_disabled:{cursor:"not-allowed"}},qte={userSelect:"none",_disabled:{opacity:.4}},Gte={transitionProperty:"transform",transitionDuration:"normal"},Kte=py(e=>({icon:Gte,container:Wte,control:Ii(Hte,e),label:qte})),Yte={sm:py({control:{[nm.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:py({control:{[nm.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:py({control:{[nm.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},c1=Ute({baseStyle:Kte,sizes:Yte,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Zte,definePartsStyle:my}=On(GJ.keys),Qte=e=>{var t;const n=(t=Ii(c1.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Xte=my(e=>{var t,n,r,i;return{label:(n=(t=c1).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=c1).baseStyle)==null?void 0:i.call(r,e).container,control:Qte(e)}}),Jte={md:my({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:my({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:my({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},ene=Zte({baseStyle:Xte,sizes:Jte,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tne,definePartsStyle:nne}=On(KJ.keys),S0=tt("select-bg"),dT,rne={...(dT=fn.baseStyle)==null?void 0:dT.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:S0.reference,[S0.variable]:"colors.white",_dark:{[S0.variable]:"colors.gray.700"},"> option, > optgroup":{bg:S0.reference}},ine={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},ane=nne({field:rne,icon:ine}),w0={paddingInlineEnd:"8"},fT,hT,pT,mT,gT,vT,yT,_T,one={lg:{...(fT=fn.sizes)==null?void 0:fT.lg,field:{...(hT=fn.sizes)==null?void 0:hT.lg.field,...w0}},md:{...(pT=fn.sizes)==null?void 0:pT.md,field:{...(mT=fn.sizes)==null?void 0:mT.md.field,...w0}},sm:{...(gT=fn.sizes)==null?void 0:gT.sm,field:{...(vT=fn.sizes)==null?void 0:vT.sm.field,...w0}},xs:{...(yT=fn.sizes)==null?void 0:yT.xs,field:{...(_T=fn.sizes)==null?void 0:_T.xs.field,...w0},icon:{insetEnd:"1"}}},sne=tne({baseStyle:ane,sizes:one,variants:fn.variants,defaultProps:fn.defaultProps}),zS=tt("skeleton-start-color"),jS=tt("skeleton-end-color"),lne={[zS.variable]:"colors.gray.100",[jS.variable]:"colors.gray.400",_dark:{[zS.variable]:"colors.gray.800",[jS.variable]:"colors.gray.600"},background:zS.reference,borderColor:jS.reference,opacity:.7,borderRadius:"sm"},une={baseStyle:lne},BS=tt("skip-link-bg"),cne={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[BS.variable]:"colors.white",_dark:{[BS.variable]:"colors.gray.700"},bg:BS.reference}},dne={baseStyle:cne},{defineMultiStyleConfig:fne,definePartsStyle:mb}=On(YJ.keys),Vm=tt("slider-thumb-size"),Um=tt("slider-track-size"),Hl=tt("slider-bg"),hne=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...g4({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},pne=e=>({...g4({orientation:e.orientation,horizontal:{h:Um.reference},vertical:{w:Um.reference}}),overflow:"hidden",borderRadius:"sm",[Hl.variable]:"colors.gray.200",_dark:{[Hl.variable]:"colors.whiteAlpha.200"},_disabled:{[Hl.variable]:"colors.gray.300",_dark:{[Hl.variable]:"colors.whiteAlpha.300"}},bg:Hl.reference}),mne=e=>{const{orientation:t}=e;return{...g4({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Vm.reference,h:Vm.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},gne=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Hl.variable]:`colors.${t}.500`,_dark:{[Hl.variable]:`colors.${t}.200`},bg:Hl.reference}},vne=mb(e=>({container:hne(e),track:pne(e),thumb:mne(e),filledTrack:gne(e)})),yne=mb({container:{[Vm.variable]:"sizes.4",[Um.variable]:"sizes.1"}}),_ne=mb({container:{[Vm.variable]:"sizes.3.5",[Um.variable]:"sizes.1"}}),bne=mb({container:{[Vm.variable]:"sizes.2.5",[Um.variable]:"sizes.0.5"}}),Sne={lg:yne,md:_ne,sm:bne},wne=fne({baseStyle:vne,sizes:Sne,defaultProps:{size:"md",colorScheme:"blue"}}),ec=Rr("spinner-size"),xne={width:[ec.reference],height:[ec.reference]},Cne={xs:{[ec.variable]:"sizes.3"},sm:{[ec.variable]:"sizes.4"},md:{[ec.variable]:"sizes.6"},lg:{[ec.variable]:"sizes.8"},xl:{[ec.variable]:"sizes.12"}},Ene={baseStyle:xne,sizes:Cne,defaultProps:{size:"md"}},{defineMultiStyleConfig:kne,definePartsStyle:iM}=On(ZJ.keys),Tne={fontWeight:"medium"},Pne={opacity:.8,marginBottom:"2"},One={verticalAlign:"baseline",fontWeight:"semibold"},Rne={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Ane=iM({container:{},label:Tne,helpText:Pne,number:One,icon:Rne}),Ine={md:iM({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Lne=kne({baseStyle:Ane,sizes:Ine,defaultProps:{size:"md"}}),VS=tt("kbd-bg"),Mne={[VS.variable]:"colors.gray.100",_dark:{[VS.variable]:"colors.whiteAlpha.100"},bg:VS.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Dne={baseStyle:Mne},Nne={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Fne={baseStyle:Nne},{defineMultiStyleConfig:$ne,definePartsStyle:zne}=On(BJ.keys),jne={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Bne=zne({icon:jne}),Vne=$ne({baseStyle:Bne}),{defineMultiStyleConfig:Une,definePartsStyle:Hne}=On(VJ.keys),Ho=tt("menu-bg"),US=tt("menu-shadow"),Wne={[Ho.variable]:"#fff",[US.variable]:"shadows.sm",_dark:{[Ho.variable]:"colors.gray.700",[US.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Ho.reference,boxShadow:US.reference},qne={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ho.variable]:"colors.gray.100",_dark:{[Ho.variable]:"colors.whiteAlpha.100"}},_active:{[Ho.variable]:"colors.gray.200",_dark:{[Ho.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ho.variable]:"colors.gray.100",_dark:{[Ho.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ho.reference},Gne={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Kne={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Yne={opacity:.6},Zne={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Qne={transitionProperty:"common",transitionDuration:"normal"},Xne=Hne({button:Qne,list:Wne,item:qne,groupTitle:Gne,icon:Kne,command:Yne,divider:Zne}),Jne=Une({baseStyle:Xne}),{defineMultiStyleConfig:ere,definePartsStyle:xC}=On(UJ.keys),HS=tt("modal-bg"),WS=tt("modal-shadow"),tre={bg:"blackAlpha.600",zIndex:"modal"},nre=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},rre=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[HS.variable]:"colors.white",[WS.variable]:"shadows.lg",_dark:{[HS.variable]:"colors.gray.700",[WS.variable]:"shadows.dark-lg"},bg:HS.reference,boxShadow:WS.reference}},ire={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},are={position:"absolute",top:"2",insetEnd:"3"},ore=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},sre={px:"6",py:"4"},lre=xC(e=>({overlay:tre,dialogContainer:Ii(nre,e),dialog:Ii(rre,e),header:ire,closeButton:are,body:Ii(ore,e),footer:sre}));function so(e){return xC(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var ure={xs:so("xs"),sm:so("sm"),md:so("md"),lg:so("lg"),xl:so("xl"),"2xl":so("2xl"),"3xl":so("3xl"),"4xl":so("4xl"),"5xl":so("5xl"),"6xl":so("6xl"),full:so("full")},cre=ere({baseStyle:lre,sizes:ure,defaultProps:{size:"md"}}),{defineMultiStyleConfig:dre,definePartsStyle:aM}=On(HJ.keys),y4=Rr("number-input-stepper-width"),oM=Rr("number-input-input-padding"),fre=Ns(y4).add("0.5rem").toString(),qS=Rr("number-input-bg"),GS=Rr("number-input-color"),KS=Rr("number-input-border-color"),hre={[y4.variable]:"sizes.6",[oM.variable]:fre},pre=e=>{var t,n;return(n=(t=Ii(fn.baseStyle,e))==null?void 0:t.field)!=null?n:{}},mre={width:y4.reference},gre={borderStart:"1px solid",borderStartColor:KS.reference,color:GS.reference,bg:qS.reference,[GS.variable]:"colors.chakra-body-text",[KS.variable]:"colors.chakra-border-color",_dark:{[GS.variable]:"colors.whiteAlpha.800",[KS.variable]:"colors.whiteAlpha.300"},_active:{[qS.variable]:"colors.gray.200",_dark:{[qS.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},vre=aM(e=>{var t;return{root:hre,field:(t=Ii(pre,e))!=null?t:{},stepperGroup:mre,stepper:gre}});function x0(e){var t,n,r;const i=(t=fn.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},o=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",s=JL.fontSizes[o];return aM({field:{...i.field,paddingInlineEnd:oM.reference,verticalAlign:"top"},stepper:{fontSize:Ns(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var yre={xs:x0("xs"),sm:x0("sm"),md:x0("md"),lg:x0("lg")},_re=dre({baseStyle:vre,sizes:yre,variants:fn.variants,defaultProps:fn.defaultProps}),bT,bre={...(bT=fn.baseStyle)==null?void 0:bT.field,textAlign:"center"},Sre={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},ST,wT,wre={outline:e=>{var t,n,r;return(r=(n=Ii((t=fn.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Ii((t=fn.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Ii((t=fn.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(wT=(ST=fn.variants)==null?void 0:ST.unstyled.field)!=null?wT:{}},xre={baseStyle:bre,sizes:Sre,variants:wre,defaultProps:fn.defaultProps},{defineMultiStyleConfig:Cre,definePartsStyle:Ere}=On(WJ.keys),C0=Rr("popper-bg"),kre=Rr("popper-arrow-bg"),xT=Rr("popper-arrow-shadow-color"),Tre={zIndex:10},Pre={[C0.variable]:"colors.white",bg:C0.reference,[kre.variable]:C0.reference,[xT.variable]:"colors.gray.200",_dark:{[C0.variable]:"colors.gray.700",[xT.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Ore={px:3,py:2,borderBottomWidth:"1px"},Rre={px:3,py:2},Are={px:3,py:2,borderTopWidth:"1px"},Ire={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Lre=Ere({popper:Tre,content:Pre,header:Ore,body:Rre,footer:Are,closeButton:Ire}),Mre=Cre({baseStyle:Lre}),{definePartsStyle:CC,defineMultiStyleConfig:Dre}=On(NJ.keys),YS=tt("drawer-bg"),ZS=tt("drawer-box-shadow");function yd(e){return CC(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Nre={bg:"blackAlpha.600",zIndex:"overlay"},Fre={display:"flex",zIndex:"modal",justifyContent:"center"},$re=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[YS.variable]:"colors.white",[ZS.variable]:"shadows.lg",_dark:{[YS.variable]:"colors.gray.700",[ZS.variable]:"shadows.dark-lg"},bg:YS.reference,boxShadow:ZS.reference}},zre={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},jre={position:"absolute",top:"2",insetEnd:"3"},Bre={px:"6",py:"2",flex:"1",overflow:"auto"},Vre={px:"6",py:"4"},Ure=CC(e=>({overlay:Nre,dialogContainer:Fre,dialog:Ii($re,e),header:zre,closeButton:jre,body:Bre,footer:Vre})),Hre={xs:yd("xs"),sm:yd("md"),md:yd("lg"),lg:yd("2xl"),xl:yd("4xl"),full:yd("full")},Wre=Dre({baseStyle:Ure,sizes:Hre,defaultProps:{size:"xs"}}),{definePartsStyle:qre,defineMultiStyleConfig:Gre}=On(FJ.keys),Kre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Yre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Zre={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Qre=qre({preview:Kre,input:Yre,textarea:Zre}),Xre=Gre({baseStyle:Qre}),{definePartsStyle:Jre,defineMultiStyleConfig:eie}=On($J.keys),xf=tt("form-control-color"),tie={marginStart:"1",[xf.variable]:"colors.red.500",_dark:{[xf.variable]:"colors.red.300"},color:xf.reference},nie={mt:"2",[xf.variable]:"colors.gray.600",_dark:{[xf.variable]:"colors.whiteAlpha.600"},color:xf.reference,lineHeight:"normal",fontSize:"sm"},rie=Jre({container:{width:"100%",position:"relative"},requiredIndicator:tie,helperText:nie}),iie=eie({baseStyle:rie}),{definePartsStyle:aie,defineMultiStyleConfig:oie}=On(zJ.keys),Cf=tt("form-error-color"),sie={[Cf.variable]:"colors.red.500",_dark:{[Cf.variable]:"colors.red.300"},color:Cf.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},lie={marginEnd:"0.5em",[Cf.variable]:"colors.red.500",_dark:{[Cf.variable]:"colors.red.300"},color:Cf.reference},uie=aie({text:sie,icon:lie}),cie=oie({baseStyle:uie}),die={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},fie={baseStyle:die},hie={fontFamily:"heading",fontWeight:"bold"},pie={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},mie={baseStyle:hie,sizes:pie,defaultProps:{size:"xl"}},{defineMultiStyleConfig:gie,definePartsStyle:vie}=On(MJ.keys),QS=tt("breadcrumb-link-decor"),yie={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:QS.reference,[QS.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[QS.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},_ie=vie({link:yie}),bie=gie({baseStyle:_ie}),Sie={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},sM=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:at("gray.800","whiteAlpha.900")(e),_hover:{bg:at("gray.100","whiteAlpha.200")(e)},_active:{bg:at("gray.200","whiteAlpha.300")(e)}};const r=Hf(`${t}.200`,.12)(n),i=Hf(`${t}.200`,.24)(n);return{color:at(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:at(`${t}.50`,r)(e)},_active:{bg:at(`${t}.100`,i)(e)}}},wie=e=>{const{colorScheme:t}=e,n=at("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ii(sM,e)}},xie={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Cie=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=at("gray.100","whiteAlpha.200")(e);return{bg:l,color:at("gray.800","whiteAlpha.900")(e),_hover:{bg:at("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:at("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:a=`${n}.600`,activeBg:o=`${n}.700`}=(t=xie[n])!=null?t:{},s=at(r,`${n}.200`)(e);return{bg:s,color:at(i,"gray.800")(e),_hover:{bg:at(a,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:at(o,`${n}.400`)(e)}}},Eie=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:at(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:at(`${t}.700`,`${t}.500`)(e)}}},kie={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Tie={ghost:sM,outline:wie,solid:Cie,link:Eie,unstyled:kie},Pie={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Oie={baseStyle:Sie,variants:Tie,sizes:Pie,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:mc,defineMultiStyleConfig:Rie}=On(tee.keys),d1=tt("card-bg"),Us=tt("card-padding"),lM=tt("card-shadow"),gy=tt("card-radius"),uM=tt("card-border-width","0"),cM=tt("card-border-color"),Aie=mc({container:{[d1.variable]:"colors.chakra-body-bg",backgroundColor:d1.reference,boxShadow:lM.reference,borderRadius:gy.reference,color:"chakra-body-text",borderWidth:uM.reference,borderColor:cM.reference},body:{padding:Us.reference,flex:"1 1 0%"},header:{padding:Us.reference},footer:{padding:Us.reference}}),Iie={sm:mc({container:{[gy.variable]:"radii.base",[Us.variable]:"space.3"}}),md:mc({container:{[gy.variable]:"radii.md",[Us.variable]:"space.5"}}),lg:mc({container:{[gy.variable]:"radii.xl",[Us.variable]:"space.7"}})},Lie={elevated:mc({container:{[lM.variable]:"shadows.base",_dark:{[d1.variable]:"colors.gray.700"}}}),outline:mc({container:{[uM.variable]:"1px",[cM.variable]:"colors.chakra-border-color"}}),filled:mc({container:{[d1.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Us.variable]:0},header:{[Us.variable]:0},footer:{[Us.variable]:0}}},Mie=Rie({baseStyle:Aie,variants:Lie,sizes:Iie,defaultProps:{variant:"elevated",size:"md"}}),rm=Rr("close-button-size"),pp=Rr("close-button-bg"),Die={w:[rm.reference],h:[rm.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[pp.variable]:"colors.blackAlpha.100",_dark:{[pp.variable]:"colors.whiteAlpha.100"}},_active:{[pp.variable]:"colors.blackAlpha.200",_dark:{[pp.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:pp.reference},Nie={lg:{[rm.variable]:"sizes.10",fontSize:"md"},md:{[rm.variable]:"sizes.8",fontSize:"xs"},sm:{[rm.variable]:"sizes.6",fontSize:"2xs"}},Fie={baseStyle:Die,sizes:Nie,defaultProps:{size:"md"}},{variants:$ie,defaultProps:zie}=tm,jie={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:sr.bg.reference,color:sr.color.reference,boxShadow:sr.shadow.reference},Bie={baseStyle:jie,variants:$ie,defaultProps:zie},Vie={w:"100%",mx:"auto",maxW:"prose",px:"4"},Uie={baseStyle:Vie},Hie={opacity:.6,borderColor:"inherit"},Wie={borderStyle:"solid"},qie={borderStyle:"dashed"},Gie={solid:Wie,dashed:qie},Kie={baseStyle:Hie,variants:Gie,defaultProps:{variant:"solid"}},{definePartsStyle:Yie,defineMultiStyleConfig:Zie}=On(AJ.keys),Qie={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Xie={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Jie={pt:"2",px:"4",pb:"5"},eae={fontSize:"1.25em"},tae=Yie({container:Qie,button:Xie,panel:Jie,icon:eae}),nae=Zie({baseStyle:tae}),{definePartsStyle:Pg,defineMultiStyleConfig:rae}=On(IJ.keys),ma=tt("alert-fg"),el=tt("alert-bg"),iae=Pg({container:{bg:el.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ma.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ma.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function _4(e){const{theme:t,colorScheme:n}=e,r=Hf(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var aae=Pg(e=>{const{colorScheme:t}=e,n=_4(e);return{container:{[ma.variable]:`colors.${t}.500`,[el.variable]:n.light,_dark:{[ma.variable]:`colors.${t}.200`,[el.variable]:n.dark}}}}),oae=Pg(e=>{const{colorScheme:t}=e,n=_4(e);return{container:{[ma.variable]:`colors.${t}.500`,[el.variable]:n.light,_dark:{[ma.variable]:`colors.${t}.200`,[el.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ma.reference}}}),sae=Pg(e=>{const{colorScheme:t}=e,n=_4(e);return{container:{[ma.variable]:`colors.${t}.500`,[el.variable]:n.light,_dark:{[ma.variable]:`colors.${t}.200`,[el.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ma.reference}}}),lae=Pg(e=>{const{colorScheme:t}=e;return{container:{[ma.variable]:"colors.white",[el.variable]:`colors.${t}.500`,_dark:{[ma.variable]:"colors.gray.900",[el.variable]:`colors.${t}.200`},color:ma.reference}}}),uae={subtle:aae,"left-accent":oae,"top-accent":sae,solid:lae},cae=rae({baseStyle:iae,variants:uae,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:dM,defineMultiStyleConfig:dae}=On(LJ.keys),Ef=tt("avatar-border-color"),im=tt("avatar-bg"),Hm=tt("avatar-font-size"),Wf=tt("avatar-size"),fae={borderRadius:"full",border:"0.2em solid",borderColor:Ef.reference,[Ef.variable]:"white",_dark:{[Ef.variable]:"colors.gray.800"}},hae={bg:im.reference,fontSize:Hm.reference,width:Wf.reference,height:Wf.reference,lineHeight:"1",[im.variable]:"colors.gray.200",_dark:{[im.variable]:"colors.whiteAlpha.400"}},pae=e=>{const{name:t,theme:n}=e,r=t?See({string:t}):"colors.gray.400",i=_ee(r)(n);let a="white";return i||(a="gray.800"),{bg:im.reference,fontSize:Hm.reference,color:a,borderColor:Ef.reference,verticalAlign:"top",width:Wf.reference,height:Wf.reference,"&:not([data-loaded])":{[im.variable]:r},[Ef.variable]:"colors.white",_dark:{[Ef.variable]:"colors.gray.800"}}},mae={fontSize:Hm.reference,lineHeight:"1"},gae=dM(e=>({badge:Ii(fae,e),excessLabel:Ii(hae,e),container:Ii(pae,e),label:mae}));function Rl(e){const t=e!=="100%"?tM[e]:void 0;return dM({container:{[Wf.variable]:t??e,[Hm.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Wf.variable]:t??e,[Hm.variable]:`calc(${t??e} / 2.5)`}})}var vae={"2xs":Rl(4),xs:Rl(6),sm:Rl(8),md:Rl(12),lg:Rl(16),xl:Rl(24),"2xl":Rl(32),full:Rl("100%")},yae=dae({baseStyle:gae,sizes:vae,defaultProps:{size:"md"}}),_ae={Accordion:nae,Alert:cae,Avatar:yae,Badge:tm,Breadcrumb:bie,Button:Oie,Checkbox:c1,CloseButton:Fie,Code:Bie,Container:Uie,Divider:Kie,Drawer:Wre,Editable:Xre,Form:iie,FormError:cie,FormLabel:fie,Heading:mie,Input:fn,Kbd:Dne,Link:Fne,List:Vne,Menu:Jne,Modal:cre,NumberInput:_re,PinInput:xre,Popover:Mre,Progress:Bte,Radio:ene,Select:sne,Skeleton:une,SkipLink:dne,Slider:wne,Spinner:Ene,Stat:Lne,Switch:Fee,Table:Hee,Tabs:ate,Tag:yte,Textarea:Rte,Tooltip:Lte,Card:Mie,Stepper:RJ},bae={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Sae={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},wae="ltr",xae={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},fM={semanticTokens:bae,direction:wae,...TJ,components:_ae,styles:Sae,config:xae};function jp(e){return typeof e=="function"}function Cae(...e){return t=>e.reduce((n,r)=>r(n),t)}var Eae=e=>function(...n){let r=[...n],i=n[n.length-1];return rJ(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,Cae(...r.map(a=>o=>jp(a)?a(o):Tae(o,a)))(i)},kae=Eae(fM);function Tae(...e){return Ua({},...e,hM)}function hM(e,t,n,r){if((jp(e)||jp(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const a=jp(e)?e(...i):e,o=jp(t)?t(...i):t;return Ua({},a,o,hM)}}function Pae(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Oae=Pae();function Rae(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function Aae(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var Iae=e=>{const t=new WeakMap;return(r,i,a,o)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(i))return s.get(i);const l=e(r,i,a,o);return s.set(i,l),l}},pM=Iae(Aae);function mM(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var gM=e=>mM(e,t=>t!=null);function Lae(e){return typeof e=="function"}function vM(e,...t){return Lae(e)?e(...t):e}function Mae(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var Dae=typeof Element<"u",Nae=typeof Map=="function",Fae=typeof Set=="function",$ae=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function vy(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!vy(e[r],t[r]))return!1;return!0}var a;if(Nae&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!vy(r.value[1],t.get(r.value[0])))return!1;return!0}if(Fae&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if($ae&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Dae&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!vy(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var zae=function(t,n){try{return vy(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const jae=vu(zae);function yM(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:a,colorMode:o}=NQ(),s=e?pM(a,`components.${e}`):void 0,l=r||s,c=Ua({theme:a,colorMode:o},(n=l==null?void 0:l.defaultProps)!=null?n:{},gM(Rae(i,["children"]))),f=w.useRef({});if(l){const p=tJ(l)(c);jae(f.current,p)||(f.current=p)}return f.current}function Xa(e,t={}){return yM(e,t)}function Pr(e,t={}){return yM(e,t)}var Bae=new Set([...UX,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Vae=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Uae(e){return Vae.has(e)||!Bae.has(e)}function Hae(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}function _M(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var Wae=/^((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|download|draggable|encType|enterKeyHint|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|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)-.*))$/,qae=PL(function(e){return Wae.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Gae=qae,Kae=function(t){return t!=="theme"},CT=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Gae:Kae},ET=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Yae=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return a4(n,r,i),FL(function(){return o4(n,r,i)}),null},Zae=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=ET(t,n,r),l=s||CT(i),c=!l("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,v=1;v<p;v++)h.push(f[v],f[0][v])}var y=l4(function(m,_,b){var S=c&&m.as||i,C="",E=[],R=m;if(m.theme==null){R={};for(var A in m)R[A]=m[A];R.theme=w.useContext(Uf)}typeof m.className=="string"?C=ML(_.registered,E,m.className):m.className!=null&&(C=m.className+" ");var I=ub(h.concat(E),_.registered,R);C+=_.key+"-"+I.name,o!==void 0&&(C+=" "+o);var M=c&&s===void 0?CT(S):l,F={};for(var z in m)c&&z==="as"||M(z)&&(F[z]=m[z]);return F.className=C,F.ref=b,w.createElement(w.Fragment,null,w.createElement(Yae,{cache:_,serialized:I,isStringTag:typeof S=="string"}),w.createElement(S,F))});return y.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=h,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+o}}),y.withComponent=function(m,_){return e(m,Je({},n,_,{shouldForwardProp:ET(y,_,!0)})).apply(void 0,h)},y}},Qae=["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"],f1=Zae.bind();Qae.forEach(function(e){f1[e]=f1(e)});var kT,Xae=(kT=f1.default)!=null?kT:f1,Jae=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:i,sx:a,...o}=t,s=mM(o,(h,p)=>WX(p)),l=vM(e,t),c=Hae({},i,l,gM(s),a),f=XL(c)(t.theme);return r?[f,r]:f};function XS(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=Uae);const i=Jae({baseStyle:n}),a=Xae(e,r)(i);return ve.forwardRef(function(l,c){const{colorMode:f,forced:h}=db();return ve.createElement(a,{ref:c,"data-theme":h?f:void 0,...l})})}function eoe(){const e=new Map;return new Proxy(XS,{apply(t,n,r){return XS(...r)},get(t,n){return e.has(n)||e.set(n,XS(n)),e.get(n)}})}var je=eoe();function Xe(e){return w.forwardRef(e)}function bM(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=w.createContext(void 0);i.displayName=r;function a(){var o;const s=w.useContext(i);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(o=Error.captureStackTrace)==null||o.call(Error,l,a),l}return s}return[i.Provider,a,i]}function toe(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=w.useMemo(()=>VX(n),[n]);return T.jsxs(vQ,{theme:i,children:[T.jsx(noe,{root:t}),r]})}function noe({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return T.jsx(cb,{styles:n=>({[t]:n.__cssVars})})}bM({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function roe(e){return bM({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function ioe(){const{colorMode:e}=db();return T.jsx(cb,{styles:t=>{const n=pM(t,"styles.global"),r=vM(n,{theme:t,colorMode:e});return r?XL(r)(t):void 0}})}var b4=w.createContext({getDocument(){return document},getWindow(){return window}});b4.displayName="EnvironmentContext";function aoe({defer:e}={}){const[,t]=w.useReducer(n=>n+1,0);return rs(()=>{e&&t()},[e]),w.useContext(b4)}function SM(e){const{children:t,environment:n,disabled:r}=e,i=w.useRef(null),a=w.useMemo(()=>n||{getDocument:()=>{var s,l;return(l=(s=i.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=i.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[n]),o=!r||!n;return T.jsxs(b4.Provider,{value:a,children:[t,o&&T.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}SM.displayName="EnvironmentProvider";var ooe=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:a=!0,theme:o={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:f}=e,h=T.jsx(SM,{environment:s,disabled:c,children:t});return T.jsx(toe,{theme:o,cssVarsRoot:l,children:T.jsxs(UL,{colorModeManager:n,options:o.config,children:[a?T.jsx(xQ,{scope:i}):T.jsx(wQ,{}),!f&&T.jsx(ioe,{}),r?T.jsx(BL,{zIndex:r,children:h}):h]})})},soe=(e,t)=>e.find(n=>n.id===t);function TT(e,t){const n=wM(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function wM(e,t){for(const[n,r]of Object.entries(e))if(soe(r,t))return n}function loe(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function uoe(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:a,left:o}}function au(e,t=[]){const n=w.useRef(e);return w.useEffect(()=>{n.current=e}),w.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function coe(e,t){const n=au(e);w.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function qf(e,t){const n=w.useRef(!1),r=w.useRef(!1);w.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const xM=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),gb=w.createContext({}),Og=w.createContext(null),vb=typeof document<"u",S4=vb?w.useLayoutEffect:w.useEffect,CM=w.createContext({strict:!1});function doe(e,t,n,r){const{visualElement:i}=w.useContext(gb),a=w.useContext(CM),o=w.useContext(Og),s=w.useContext(xM).reducedMotion,l=w.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;w.useInsertionEffect(()=>{c&&c.update(n,o)});const f=w.useRef(!!window.HandoffAppearAnimations);return S4(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),w.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)}),c}function tf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function foe(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):tf(n)&&(n.current=r))},[t])}function Wm(e){return typeof e=="string"||Array.isArray(e)}function yb(e){return typeof e=="object"&&typeof e.start=="function"}const w4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],x4=["initial",...w4];function _b(e){return yb(e.animate)||x4.some(t=>Wm(e[t]))}function EM(e){return!!(_b(e)||e.variants)}function hoe(e,t){if(_b(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Wm(n)?n:void 0,animate:Wm(r)?r:void 0}}return e.inherit!==!1?t:{}}function poe(e){const{initial:t,animate:n}=hoe(e,w.useContext(gb));return w.useMemo(()=>({initial:t,animate:n}),[PT(t),PT(n)])}function PT(e){return Array.isArray(e)?e.join(" "):e}const OT={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},qm={};for(const e in OT)qm[e]={isEnabled:t=>OT[e].some(n=>!!t[n])};function moe(e){for(const t in e)qm[t]={...qm[t],...e[t]}}const C4=w.createContext({}),kM=w.createContext({}),goe=Symbol.for("motionComponentSymbol");function voe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&moe(e);function a(s,l){let c;const f={...w.useContext(xM),...s,layoutId:yoe(s)},{isStatic:h}=f,p=poe(s),v=r(s,h);if(!h&&vb){p.visualElement=doe(i,v,f,t);const y=w.useContext(kM),m=w.useContext(CM).strict;p.visualElement&&(c=p.visualElement.loadFeatures(f,m,e,y))}return w.createElement(gb.Provider,{value:p},c&&p.visualElement?w.createElement(c,{visualElement:p.visualElement,...f}):null,n(i,s,foe(v,p.visualElement,l),v,h,p.visualElement))}const o=w.forwardRef(a);return o[goe]=i,o}function yoe({layoutId:e}){const t=w.useContext(C4).id;return t&&e!==void 0?t+"-"+e:e}function _oe(e){function t(r,i={}){return voe(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const boe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function E4(e){return typeof e!="string"||e.includes("-")?!1:!!(boe.indexOf(e)>-1||/[A-Z]/.test(e))}const h1={};function Soe(e){Object.assign(h1,e)}const Rg=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fc=new Set(Rg);function TM(e,{layout:t,layoutId:n}){return Fc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!h1[e]||e==="opacity")}const ta=e=>!!(e&&e.getVelocity),woe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xoe=Rg.length;function Coe(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let o=0;o<xoe;o++){const s=Rg[o];if(e[s]!==void 0){const l=woe[s]||s;a+=`${l}(${e[s]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const PM=e=>t=>typeof t=="string"&&t.startsWith(e),OM=PM("--"),EC=PM("var(--"),Eoe=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,koe=(e,t)=>t&&typeof e=="number"?t.transform(e):e,du=(e,t,n)=>Math.min(Math.max(n,e),t),$c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},am={...$c,transform:e=>du(0,1,e)},E0={...$c,default:1},om=e=>Math.round(e*1e5)/1e5,bb=/(-)?([\d]*\.?[\d])+/g,RM=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Toe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ag(e){return typeof e=="string"}const Ig=e=>({test:t=>Ag(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ml=Ig("deg"),as=Ig("%"),ht=Ig("px"),Poe=Ig("vh"),Ooe=Ig("vw"),RT={...as,parse:e=>as.parse(e)/100,transform:e=>as.transform(e*100)},AT={...$c,transform:Math.round},AM={borderWidth:ht,borderTopWidth:ht,borderRightWidth:ht,borderBottomWidth:ht,borderLeftWidth:ht,borderRadius:ht,radius:ht,borderTopLeftRadius:ht,borderTopRightRadius:ht,borderBottomRightRadius:ht,borderBottomLeftRadius:ht,width:ht,maxWidth:ht,height:ht,maxHeight:ht,size:ht,top:ht,right:ht,bottom:ht,left:ht,padding:ht,paddingTop:ht,paddingRight:ht,paddingBottom:ht,paddingLeft:ht,margin:ht,marginTop:ht,marginRight:ht,marginBottom:ht,marginLeft:ht,rotate:Ml,rotateX:Ml,rotateY:Ml,rotateZ:Ml,scale:E0,scaleX:E0,scaleY:E0,scaleZ:E0,skew:Ml,skewX:Ml,skewY:Ml,distance:ht,translateX:ht,translateY:ht,translateZ:ht,x:ht,y:ht,z:ht,perspective:ht,transformPerspective:ht,opacity:am,originX:RT,originY:RT,originZ:ht,zIndex:AT,fillOpacity:am,strokeOpacity:am,numOctaves:AT};function k4(e,t,n,r){const{style:i,vars:a,transform:o,transformOrigin:s}=e;let l=!1,c=!1,f=!0;for(const h in t){const p=t[h];if(OM(h)){a[h]=p;continue}const v=AM[h],y=koe(p,v);if(Fc.has(h)){if(l=!0,o[h]=y,!f)continue;p!==(v.default||0)&&(f=!1)}else h.startsWith("origin")?(c=!0,s[h]=y):i[h]=y}if(t.transform||(l||r?i.transform=Coe(e.transform,n,f,r):i.transform&&(i.transform="none")),c){const{originX:h="50%",originY:p="50%",originZ:v=0}=s;i.transformOrigin=`${h} ${p} ${v}`}}const T4=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function IM(e,t,n){for(const r in t)!ta(t[r])&&!TM(r,n)&&(e[r]=t[r])}function Roe({transformTemplate:e},t,n){return w.useMemo(()=>{const r=T4();return k4(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Aoe(e,t,n){const r=e.style||{},i={};return IM(i,r,e),Object.assign(i,Roe(e,t,n)),e.transformValues?e.transformValues(i):i}function Ioe(e,t,n){const r={},i=Aoe(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Loe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function p1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Loe.has(e)}let LM=e=>!p1(e);function Moe(e){e&&(LM=t=>t.startsWith("on")?!p1(t):e(t))}try{Moe(require("@emotion/is-prop-valid").default)}catch{}function Doe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(LM(i)||n===!0&&p1(i)||!t&&!p1(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function IT(e,t,n){return typeof e=="string"?e:ht.transform(t+n*e)}function Noe(e,t,n){const r=IT(t,e.x,e.width),i=IT(n,e.y,e.height);return`${r} ${i}`}const Foe={offset:"stroke-dashoffset",array:"stroke-dasharray"},$oe={offset:"strokeDashoffset",array:"strokeDasharray"};function zoe(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Foe:$oe;e[a.offset]=ht.transform(-r);const o=ht.transform(t),s=ht.transform(n);e[a.array]=`${o} ${s}`}function P4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...c},f,h,p){if(k4(e,c,f,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:y,dimensions:m}=e;v.transform&&(m&&(y.transform=v.transform),delete v.transform),m&&(i!==void 0||a!==void 0||y.transform)&&(y.transformOrigin=Noe(m,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),o!==void 0&&zoe(v,o,s,l,!1)}const MM=()=>({...T4(),attrs:{}}),O4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function joe(e,t,n,r){const i=w.useMemo(()=>{const a=MM();return P4(a,t,{enableHardwareAcceleration:!1},O4(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};IM(a,e.style,e),i.style={...a,...i.style}}return i}function Boe(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(E4(n)?joe:Ioe)(r,a,o,n),f={...Doe(r,typeof n=="string",e),...l,ref:i},{children:h}=r,p=w.useMemo(()=>ta(h)?h.get():h,[h]);return w.createElement(n,{...f,children:p})}}const R4=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function DM(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const NM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function FM(e,t,n,r){DM(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(NM.has(i)?i:R4(i),t.attrs[i])}function A4(e,t){const{style:n}=e,r={};for(const i in n)(ta(n[i])||t.style&&ta(t.style[i])||TM(i,e))&&(r[i]=n[i]);return r}function $M(e,t){const n=A4(e,t);for(const r in e)if(ta(e[r])||ta(t[r])){const i=Rg.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function I4(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function zM(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const m1=e=>Array.isArray(e),Voe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Uoe=e=>m1(e)?e[e.length-1]||0:e;function yy(e){const t=ta(e)?e.get():e;return Voe(t)?t.toValue():t}function Hoe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:Woe(r,i,a,e),renderState:t()};return n&&(o.mount=s=>n(r,s,o)),o}const jM=e=>(t,n)=>{const r=w.useContext(gb),i=w.useContext(Og),a=()=>Hoe(e,t,r,i);return n?a():zM(a)};function Woe(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=yy(a[p]);let{initial:o,animate:s}=e;const l=_b(e),c=EM(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let f=n?n.initial===!1:!1;f=f||o===!1;const h=f?s:o;return h&&typeof h!="boolean"&&!yb(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const y=I4(e,v);if(!y)return;const{transitionEnd:m,transition:_,...b}=y;for(const S in b){let C=b[S];if(Array.isArray(C)){const E=f?C.length-1:0;C=C[E]}C!==null&&(i[S]=C)}for(const S in m)i[S]=m[S]}),i}const er=e=>e;class LT{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function qoe(e){let t=new LT,n=new LT,r=0,i=!1,a=!1;const o=new WeakSet,s={schedule:(l,c=!1,f=!1)=>{const h=f&&i,p=h?t:n;return c&&o.add(l),p.add(l)&&h&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const f=t.order[c];f(l),o.has(f)&&(s.schedule(f),e())}i=!1,a&&(a=!1,s.process(l))}};return s}const k0=["prepare","read","update","preRender","render","postRender"],Goe=40;function Koe(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=k0.reduce((h,p)=>(h[p]=qoe(()=>n=!0),h),{}),o=h=>a[h].process(i),s=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,Goe),1),i.timestamp=h,i.isProcessing=!0,k0.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,i.isProcessing||e(s)};return{schedule:k0.reduce((h,p)=>{const v=a[p];return h[p]=(y,m=!1,_=!1)=>(n||l(),v.schedule(y,m,_)),h},{}),cancel:h=>k0.forEach(p=>a[p].cancel(h)),state:i,steps:a}}const{schedule:Pn,cancel:tl,state:Fr,steps:JS}=Koe(typeof requestAnimationFrame<"u"?requestAnimationFrame:er,!0),Yoe={useVisualState:jM({scrapeMotionValuesFromProps:$M,createRenderState:MM,onMount:(e,t,{renderState:n,latestValues:r})=>{Pn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Pn.render(()=>{P4(n,r,{enableHardwareAcceleration:!1},O4(t.tagName),e.transformTemplate),FM(t,n)})}})},Zoe={useVisualState:jM({scrapeMotionValuesFromProps:A4,createRenderState:T4})};function Qoe(e,{forwardMotionProps:t=!1},n,r){return{...E4(e)?Yoe:Zoe,preloadedFeatures:n,useRender:Boe(t),createVisualElement:r,Component:e}}function js(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const BM=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Sb(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Xoe=e=>t=>BM(t)&&e(t,Sb(t));function Hs(e,t,n,r){return js(e,t,Xoe(n),r)}const Joe=(e,t)=>n=>t(e(n)),ou=(...e)=>e.reduce(Joe);function VM(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const MT=VM("dragHorizontal"),DT=VM("dragVertical");function UM(e){let t=!1;if(e==="y")t=DT();else if(e==="x")t=MT();else{const n=MT(),r=DT();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function HM(){const e=UM(!0);return e?(e(),!1):!0}class Su{constructor(t){this.isMounted=!1,this.node=t}update(){}}function NT(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||HM())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Pn.update(()=>s[r](a,o))};return Hs(e.current,n,i,{passive:!e.getProps()[r]})}class ese extends Su{mount(){this.unmount=ou(NT(this.node,!0),NT(this.node,!1))}unmount(){}}class tse extends Su{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ou(js(this.node.current,"focus",()=>this.onFocus()),js(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const WM=(e,t)=>t?e===t?!0:WM(e,t.parentElement):!1;function ew(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Sb(n))}class nse extends Su{constructor(){super(...arguments),this.removeStartListeners=er,this.removeEndListeners=er,this.removeAccessibleListeners=er,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=Hs(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f}=this.node.getProps();Pn.update(()=>{WM(this.node.current,s.target)?c&&c(s,l):f&&f(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),o=Hs(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ou(a,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||ew("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&Pn.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=js(this.node.current,"keyup",o),ew("down",(s,l)=>{this.startPress(s,l)})},n=js(this.node.current,"keydown",t),r=()=>{this.isPressing&&ew("cancel",(a,o)=>this.cancelPress(a,o))},i=js(this.node.current,"blur",r);this.removeAccessibleListeners=ou(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Pn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!HM()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Pn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Hs(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=js(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ou(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const kC=new WeakMap,tw=new WeakMap,rse=e=>{const t=kC.get(e.target);t&&t(e)},ise=e=>{e.forEach(rse)};function ase({root:e,...t}){const n=e||document;tw.has(n)||tw.set(n,{});const r=tw.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ise,{root:e,...t})),r[i]}function ose(e,t,n){const r=ase(t);return kC.set(e,n),r.observe(e),()=>{kC.delete(e),r.unobserve(e)}}const sse={some:0,all:1};class lse extends Su{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:sse[i]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),p=c?f:h;p&&p(l)};return ose(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(use(t,n))&&this.startObserver()}unmount(){}}function use({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cse={inView:{Feature:lse},tap:{Feature:nse},focus:{Feature:tse},hover:{Feature:ese}};function qM(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function dse(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function fse(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function wb(e,t,n){const r=e.getProps();return I4(r,t,n!==void 0?n:r.custom,dse(e),fse(e))}const hse="framerAppearId",pse="data-"+R4(hse);let mse=er,L4=er;const su=e=>e*1e3,Ws=e=>e/1e3,gse={current:!1},GM=e=>Array.isArray(e)&&typeof e[0]=="number";function KM(e){return!!(!e||typeof e=="string"&&YM[e]||GM(e)||Array.isArray(e)&&e.every(KM))}const Bp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,YM={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bp([0,.65,.55,1]),circOut:Bp([.55,0,1,.45]),backIn:Bp([.31,.01,.66,-.59]),backOut:Bp([.33,1.53,.69,.99])};function ZM(e){if(e)return GM(e)?Bp(e):Array.isArray(e)?e.map(ZM):YM[e]}function vse(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:o="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const f=ZM(s);return Array.isArray(f)&&(c.easing=f),e.animate(c,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function yse(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const QM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_se=1e-7,bse=12;function Sse(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=QM(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>_se&&++s<bse);return o}function Lg(e,t,n,r){if(e===t&&n===r)return er;const i=a=>Sse(a,0,1,e,n);return a=>a===0||a===1?a:QM(i(a),t,r)}const wse=Lg(.42,0,1,1),xse=Lg(0,0,.58,1),XM=Lg(.42,0,.58,1),Cse=e=>Array.isArray(e)&&typeof e[0]!="number",JM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eD=e=>t=>1-e(1-t),tD=e=>1-Math.sin(Math.acos(e)),M4=eD(tD),Ese=JM(M4),nD=Lg(.33,1.53,.69,.99),D4=eD(nD),kse=JM(D4),Tse=e=>(e*=2)<1?.5*D4(e):.5*(2-Math.pow(2,-10*(e-1))),Pse={linear:er,easeIn:wse,easeInOut:XM,easeOut:xse,circIn:tD,circInOut:Ese,circOut:M4,backIn:D4,backInOut:kse,backOut:nD,anticipate:Tse},FT=e=>{if(Array.isArray(e)){L4(e.length===4);const[t,n,r,i]=e;return Lg(t,n,r,i)}else if(typeof e=="string")return Pse[e];return e},N4=(e,t)=>n=>!!(Ag(n)&&Toe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),rD=(e,t,n)=>r=>{if(!Ag(r))return r;const[i,a,o,s]=r.match(bb);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Ose=e=>du(0,255,e),nw={...$c,transform:e=>Math.round(Ose(e))},oc={test:N4("rgb","red"),parse:rD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+nw.transform(e)+", "+nw.transform(t)+", "+nw.transform(n)+", "+om(am.transform(r))+")"};function Rse(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const TC={test:N4("#"),parse:Rse,transform:oc.transform},nf={test:N4("hsl","hue"),parse:rD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+as.transform(om(t))+", "+as.transform(om(n))+", "+om(am.transform(r))+")"},Ei={test:e=>oc.test(e)||TC.test(e)||nf.test(e),parse:e=>oc.test(e)?oc.parse(e):nf.test(e)?nf.parse(e):TC.parse(e),transform:e=>Ag(e)?e:e.hasOwnProperty("red")?oc.transform(e):nf.transform(e)},Wn=(e,t,n)=>-n*e+n*t+e;function rw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ase({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=rw(l,s,e+1/3),a=rw(l,s,e),o=rw(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const iw=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Ise=[TC,oc,nf],Lse=e=>Ise.find(t=>t.test(e));function $T(e){const t=Lse(e);let n=t.parse(e);return t===nf&&(n=Ase(n)),n}const iD=(e,t)=>{const n=$T(e),r=$T(t),i={...n};return a=>(i.red=iw(n.red,r.red,a),i.green=iw(n.green,r.green,a),i.blue=iw(n.blue,r.blue,a),i.alpha=Wn(n.alpha,r.alpha,a),oc.transform(i))};function Mse(e){var t,n;return isNaN(e)&&Ag(e)&&(((t=e.match(bb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(RM))===null||n===void 0?void 0:n.length)||0)>0}const aD={regex:Eoe,countKey:"Vars",token:"${v}",parse:er},oD={regex:RM,countKey:"Colors",token:"${c}",parse:Ei.parse},sD={regex:bb,countKey:"Numbers",token:"${n}",parse:$c.parse};function aw(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function g1(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&aw(n,aD),aw(n,oD),aw(n,sD),n}function lD(e){return g1(e).values}function uD(e){const{values:t,numColors:n,numVars:r,tokenised:i}=g1(e),a=t.length;return o=>{let s=i;for(let l=0;l<a;l++)l<r?s=s.replace(aD.token,o[l]):l<r+n?s=s.replace(oD.token,Ei.transform(o[l])):s=s.replace(sD.token,om(o[l]));return s}}const Dse=e=>typeof e=="number"?0:e;function Nse(e){const t=lD(e);return uD(e)(t.map(Dse))}const fu={test:Mse,parse:lD,createTransformer:uD,getAnimatableNone:Nse},cD=(e,t)=>n=>`${n>0?t:e}`;function dD(e,t){return typeof e=="number"?n=>Wn(e,t,n):Ei.test(e)?iD(e,t):e.startsWith("var(")?cD(e,t):hD(e,t)}const fD=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,o)=>dD(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}},Fse=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=dD(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},hD=(e,t)=>{const n=fu.createTransformer(t),r=g1(e),i=g1(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ou(fD(r.values,i.values),n):cD(e,t)},Gm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zT=(e,t)=>n=>Wn(e,t,n);function $se(e){return typeof e=="number"?zT:typeof e=="string"?Ei.test(e)?iD:hD:Array.isArray(e)?fD:typeof e=="object"?Fse:zT}function zse(e,t,n){const r=[],i=n||$se(e[0]),a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||er:t;s=ou(l,s)}r.push(s)}return r}function pD(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(L4(a===t.length),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=zse(t,r,i),s=o.length,l=c=>{let f=0;if(s>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const h=Gm(e[f],e[f+1],c);return o[f](h)};return n?c=>l(du(e[0],e[a-1],c)):l}function jse(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Gm(0,t,r);e.push(Wn(n,1,i))}}function Bse(e){const t=[0];return jse(t,e.length-1),t}function Vse(e,t){return e.map(n=>n*t)}function Use(e,t){return e.map(()=>t||XM).splice(0,e.length-1)}function v1({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Cse(r)?r.map(FT):FT(r),a={done:!1,value:t[0]},o=Vse(n&&n.length===t.length?n:Bse(t),e),s=pD(o,t,{ease:Array.isArray(i)?i:Use(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function mD(e,t){return t?e*(1e3/t):0}const Hse=5;function gD(e,t,n){const r=Math.max(t-Hse,0);return mD(n-e(r),t-r)}const ow=.001,Wse=.01,jT=10,qse=.05,Gse=1;function Kse({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;mse(e<=su(jT));let o=1-t;o=du(qse,Gse,o),e=du(Wse,jT,Ws(e)),o<1?(i=c=>{const f=c*o,h=f*e,p=f-n,v=PC(c,o),y=Math.exp(-h);return ow-p/v*y},a=c=>{const h=c*o*e,p=h*n+n,v=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-h),m=PC(Math.pow(c,2),o);return(-i(c)+ow>0?-1:1)*((p-v)*y)/m}):(i=c=>{const f=Math.exp(-c*e),h=(c-n)*e+1;return-ow+f*h},a=c=>{const f=Math.exp(-c*e),h=(n-c)*(e*e);return f*h});const s=5/e,l=Zse(i,a,s);if(e=su(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Yse=12;function Zse(e,t,n){let r=n;for(let i=1;i<Yse;i++)r=r-e(r)/t(r);return r}function PC(e,t){return e*Math.sqrt(1-t*t)}const Qse=["duration","bounce"],Xse=["stiffness","damping","mass"];function BT(e,t){return t.some(n=>e[n]!==void 0)}function Jse(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!BT(e,Xse)&&BT(e,Qse)){const n=Kse(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function vD({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:l,mass:c,velocity:f,duration:h,isResolvedFromDuration:p}=Jse(r),v=f?-Ws(f):0,y=l/(2*Math.sqrt(s*c)),m=a-i,_=Ws(Math.sqrt(s/c)),b=Math.abs(m)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let S;if(y<1){const C=PC(_,y);S=E=>{const R=Math.exp(-y*_*E);return a-R*((v+y*_*m)/C*Math.sin(C*E)+m*Math.cos(C*E))}}else if(y===1)S=C=>a-Math.exp(-_*C)*(m+(v+_*m)*C);else{const C=_*Math.sqrt(y*y-1);S=E=>{const R=Math.exp(-y*_*E),A=Math.min(C*E,300);return a-R*((v+y*_*m)*Math.sinh(A)+C*m*Math.cosh(A))/C}}return{calculatedDuration:p&&h||null,next:C=>{const E=S(C);if(p)o.done=C>=h;else{let R=v;C!==0&&(y<1?R=gD(S,C,E):R=0);const A=Math.abs(R)<=n,I=Math.abs(a-E)<=t;o.done=A&&I}return o.value=o.done?a:E,o}}}function VT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:f}){const h=e[0],p={done:!1,value:h},v=M=>s!==void 0&&M<s||l!==void 0&&M>l,y=M=>s===void 0?l:l===void 0||Math.abs(s-M)<Math.abs(l-M)?s:l;let m=n*t;const _=h+m,b=o===void 0?_:o(_);b!==_&&(m=b-h);const S=M=>-m*Math.exp(-M/r),C=M=>b+S(M),E=M=>{const F=S(M),z=C(M);p.done=Math.abs(F)<=c,p.value=p.done?b:z};let R,A;const I=M=>{v(p.value)&&(R=M,A=vD({keyframes:[p.value,y(p.value)],velocity:gD(C,M,p.value),damping:i,stiffness:a,restDelta:c,restSpeed:f}))};return I(0),{calculatedDuration:null,next:M=>{let F=!1;return!A&&R===void 0&&(F=!0,E(M),I(M)),R!==void 0&&M>R?A.next(M-R):(!F&&E(M),p)}}}const ele=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Pn.update(t,!0),stop:()=>tl(t),now:()=>Fr.isProcessing?Fr.timestamp:performance.now()}},UT=2e4;function HT(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<UT;)t+=n,r=e.next(t);return t>=UT?1/0:t}const tle={decay:VT,inertia:VT,tween:v1,keyframes:v1,spring:vD};function y1({autoplay:e=!0,delay:t=0,driver:n=ele,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:h,...p}){let v=1,y=!1,m,_;const b=()=>{_=new Promise(Ce=>{m=Ce})};b();let S;const C=tle[i]||v1;let E;C!==v1&&typeof r[0]!="number"&&(E=pD([0,100],r,{clamp:!1}),r=[0,100]);const R=C({...p,keyframes:r});let A;s==="mirror"&&(A=C({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let I="idle",M=null,F=null,z=null;R.calculatedDuration===null&&a&&(R.calculatedDuration=HT(R));const{calculatedDuration:Y}=R;let W=1/0,q=1/0;Y!==null&&(W=Y+o,q=W*(a+1)-o);let ae=0;const ee=Ce=>{if(F===null)return;v>0&&(F=Math.min(F,Ce)),v<0&&(F=Math.min(Ce-q/v,F)),M!==null?ae=M:ae=Math.round(Ce-F)*v;const Ee=ae-t*(v>=0?1:-1),xe=v>=0?Ee<0:Ee>q;ae=Math.max(Ee,0),I==="finished"&&M===null&&(ae=q);let ye=ae,Le=R;if(a){const nt=ae/W;let wt=Math.floor(nt),Dt=nt%1;!Dt&&nt>=1&&(Dt=1),Dt===1&&wt--,wt=Math.min(wt,a+1);const Nt=!!(wt%2);Nt&&(s==="reverse"?(Dt=1-Dt,o&&(Dt-=o/W)):s==="mirror"&&(Le=A));let Sn=du(0,1,Dt);ae>q&&(Sn=s==="reverse"&&Nt?1:0),ye=Sn*W}const Ae=xe?{done:!1,value:r[0]}:Le.next(ye);E&&(Ae.value=E(Ae.value));let{done:it}=Ae;!xe&&Y!==null&&(it=v>=0?ae>=q:ae<=0);const Ye=M===null&&(I==="finished"||I==="running"&&it);return h&&h(Ae.value),Ye&&J(),Ae},ce=()=>{S&&S.stop(),S=void 0},ue=()=>{I="idle",ce(),m(),b(),F=z=null},J=()=>{I="finished",f&&f(),ce(),m()},me=()=>{if(y)return;S||(S=n(ee));const Ce=S.now();l&&l(),M!==null?F=Ce-M:(!F||I==="finished")&&(F=Ce),I==="finished"&&b(),z=F,M=null,I="running",S.start()};e&&me();const we={then(Ce,Ee){return _.then(Ce,Ee)},get time(){return Ws(ae)},set time(Ce){Ce=su(Ce),ae=Ce,M!==null||!S||v===0?M=Ce:F=S.now()-Ce/v},get duration(){const Ce=R.calculatedDuration===null?HT(R):R.calculatedDuration;return Ws(Ce)},get speed(){return v},set speed(Ce){Ce===v||!S||(v=Ce,we.time=Ws(ae))},get state(){return I},play:me,pause:()=>{I="paused",M=ae},stop:()=>{y=!0,I!=="idle"&&(I="idle",c&&c(),ue())},cancel:()=>{z!==null&&ee(z),ue()},complete:()=>{I="finished"},sample:Ce=>(F=0,ee(Ce))};return we}function nle(e){let t;return()=>(t===void 0&&(t=e()),t)}const rle=nle(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ile=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),T0=10,ale=2e4,ole=(e,t)=>t.type==="spring"||e==="backgroundColor"||!KM(t.ease);function sle(e,t,{onUpdate:n,onComplete:r,...i}){if(!(rle()&&ile.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,s,l;const c=()=>{l=new Promise(S=>{s=S})};c();let{keyframes:f,duration:h=300,ease:p,times:v}=i;if(ole(t,i)){const S=y1({...i,repeat:0,delay:0});let C={done:!1,value:f[0]};const E=[];let R=0;for(;!C.done&&R<ale;)C=S.sample(R),E.push(C.value),R+=T0;v=void 0,f=E,h=R-T0,p="linear"}const y=vse(e.owner.current,t,f,{...i,duration:h,ease:p,times:v});i.syncStart&&(y.startTime=Fr.isProcessing?Fr.timestamp:performance.now());const m=()=>y.cancel(),_=()=>{Pn.update(m),s(),c()};return y.onfinish=()=>{e.set(yse(f,i)),r&&r(),_()},{then(S,C){return l.then(S,C)},attachTimeline(S){return y.timeline=S,y.onfinish=null,er},get time(){return Ws(y.currentTime||0)},set time(S){y.currentTime=su(S)},get speed(){return y.playbackRate},set speed(S){y.playbackRate=S},get duration(){return Ws(h)},play:()=>{o||(y.play(),tl(m))},pause:()=>y.pause(),stop:()=>{if(o=!0,y.playState==="idle")return;const{currentTime:S}=y;if(S){const C=y1({...i,autoplay:!1});e.setWithVelocity(C.sample(S-T0).value,C.sample(S).value,T0)}_()},complete:()=>y.finish(),cancel:_}}function lle({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:er,pause:er,stop:er,then:a=>(a(),Promise.resolve()),cancel:er,complete:er});return t?y1({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const ule={type:"spring",stiffness:500,damping:25,restSpeed:10},cle=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dle={type:"keyframes",duration:.8},fle={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hle=(e,{keyframes:t})=>t.length>2?dle:Fc.has(e)?e.startsWith("scale")?cle(t[1]):ule:fle,OC=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(fu.test(t)||t==="0")&&!t.startsWith("url(")),ple=new Set(["brightness","contrast","saturate","opacity"]);function mle(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(bb)||[];if(!r)return e;const i=n.replace(r,"");let a=ple.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const gle=/([a-z-]*)\(.*?\)/g,RC={...fu,getAnimatableNone:e=>{const t=e.match(gle);return t?t.map(mle).join(" "):e}},vle={...AM,color:Ei,backgroundColor:Ei,outlineColor:Ei,fill:Ei,stroke:Ei,borderColor:Ei,borderTopColor:Ei,borderRightColor:Ei,borderBottomColor:Ei,borderLeftColor:Ei,filter:RC,WebkitFilter:RC},F4=e=>vle[e];function yD(e,t){let n=F4(e);return n!==RC&&(n=fu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _D=e=>/^0[^.\s]+$/.test(e);function yle(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||_D(e)}function _le(e,t,n,r){const i=OC(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const o=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?o:a[c-1]),yle(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(s=a[c]);if(i&&l.length&&s)for(let c=0;c<l.length;c++){const f=l[c];a[f]=yD(t,s)}return a}function ble({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...f}){return!!Object.keys(f).length}function bD(e,t){return e[t]||e.default||e}const $4=(e,t,n,r={})=>i=>{const a=bD(r,e)||{},o=a.delay||r.delay||0;let{elapsed:s=0}=r;s=s-su(o);const l=_le(t,e,n,a),c=l[0],f=l[l.length-1],h=OC(e,c),p=OC(e,f);let v={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:y=>{t.set(y),a.onUpdate&&a.onUpdate(y)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(ble(a)||(v={...v,...hle(e,v)}),v.duration&&(v.duration=su(v.duration)),v.repeatDelay&&(v.repeatDelay=su(v.repeatDelay)),!h||!p||gse.current||a.type===!1)return lle(v);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=sle(t,e,v);if(y)return y}return y1(v)};function _1(e){return!!(ta(e)&&e.add)}const SD=e=>/^\-?\d*\.?\d+$/.test(e);function z4(e,t){e.indexOf(t)===-1&&e.push(t)}function j4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class B4{constructor(){this.subscriptions=[]}add(t){return z4(this.subscriptions,t),()=>j4(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Sle=e=>!isNaN(parseFloat(e));class wle{constructor(t,n={}){this.version="10.16.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:o}=Fr;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,Pn.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Pn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Sle(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new B4);const r=this.events[t].add(n);return t==="change"?()=>{r(),Pn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?mD(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gf(e,t){return new wle(e,t)}const wD=e=>t=>t.test(e),xle={test:e=>e==="auto",parse:e=>e},xD=[$c,ht,as,Ml,Ooe,Poe,xle],mp=e=>xD.find(wD(e)),Cle=[...xD,Ei,fu],Ele=e=>Cle.find(wD(e));function kle(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gf(n))}function Tle(e,t){const n=wb(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const o in a){const s=Uoe(a[o]);kle(e,o,s)}}function Ple(e,t,n){var r,i;const a=Object.keys(t).filter(s=>!e.hasValue(s)),o=a.length;if(o)for(let s=0;s<o;s++){const l=a[s],c=t[l];let f=null;Array.isArray(c)&&(f=c[0]),f===null&&(f=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),f!=null&&(typeof f=="string"&&(SD(f)||_D(f))?f=parseFloat(f):!Ele(f)&&fu.test(c)&&(f=yD(l,c)),e.addValue(l,Gf(f,{owner:e})),n[l]===void 0&&(n[l]=f),f!==null&&e.setBaseTarget(l,f))}}function Ole(e,t){return t?(t[e]||t.default||t).from:void 0}function Rle(e,t,n){const r={};for(const i in e){const a=Ole(i,t);if(a!==void 0)r[i]=a;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function Ale({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function CD(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(a=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const p=e.getValue(h),v=s[h];if(!p||v===void 0||f&&Ale(f,h))continue;const y={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!p.hasAnimated){const _=e.getProps()[pse];_&&(y.elapsed=window.HandoffAppearAnimations(_,h,p,Pn),y.syncStart=!0)}p.start($4(h,p,v,e.shouldReduceMotion&&Fc.has(h)?{type:!1}:y));const m=p.animation;_1(l)&&(l.add(h),m.then(()=>l.remove(h))),c.push(m)}return o&&Promise.all(c).then(()=>{o&&Tle(e,o)}),c}function AC(e,t,n={}){const r=wb(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(CD(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:h}=i;return Ile(e,t,c+l,f,h,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[l,c]=s==="beforeChildren"?[a,o]:[o,a];return l().then(()=>c())}else return Promise.all([a(),o(n.delay)])}function Ile(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(Lle).forEach((c,f)=>{c.notify("AnimationStart",t),o.push(AC(c,t,{...a,delay:n+l(f)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function Lle(e,t){return e.sortNodePosition(t)}function Mle(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>AC(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=AC(e,t,n);else{const i=typeof t=="function"?wb(e,t,n.custom):t;r=Promise.all(CD(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Dle=[...w4].reverse(),Nle=w4.length;function Fle(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Mle(e,n,r)))}function $le(e){let t=Fle(e);const n=jle();let r=!0;const i=(l,c)=>{const f=wb(e,c);if(f){const{transition:h,transitionEnd:p,...v}=f;l={...l,...v,...p}}return l};function a(l){t=l(e)}function o(l,c){const f=e.getProps(),h=e.getVariantContext(!0)||{},p=[],v=new Set;let y={},m=1/0;for(let b=0;b<Nle;b++){const S=Dle[b],C=n[S],E=f[S]!==void 0?f[S]:h[S],R=Wm(E),A=S===c?C.isActive:null;A===!1&&(m=b);let I=E===h[S]&&E!==f[S]&&R;if(I&&r&&e.manuallyAnimateOnMount&&(I=!1),C.protectedKeys={...y},!C.isActive&&A===null||!E&&!C.prevProp||yb(E)||typeof E=="boolean")continue;const M=zle(C.prevProp,E);let F=M||S===c&&C.isActive&&!I&&R||b>m&&R;const z=Array.isArray(E)?E:[E];let Y=z.reduce(i,{});A===!1&&(Y={});const{prevResolvedValues:W={}}=C,q={...W,...Y},ae=ee=>{F=!0,v.delete(ee),C.needsAnimating[ee]=!0};for(const ee in q){const ce=Y[ee],ue=W[ee];y.hasOwnProperty(ee)||(ce!==ue?m1(ce)&&m1(ue)?!qM(ce,ue)||M?ae(ee):C.protectedKeys[ee]=!0:ce!==void 0?ae(ee):v.add(ee):ce!==void 0&&v.has(ee)?ae(ee):C.protectedKeys[ee]=!0)}C.prevProp=E,C.prevResolvedValues=Y,C.isActive&&(y={...y,...Y}),r&&e.blockInitialAnimation&&(F=!1),F&&!I&&p.push(...z.map(ee=>({animation:ee,options:{type:S,...l}})))}if(v.size){const b={};v.forEach(S=>{const C=e.getBaseTarget(S);C!==void 0&&(b[S]=C)}),p.push({animation:b})}let _=!!p.length;return r&&f.initial===!1&&!e.manuallyAnimateOnMount&&(_=!1),r=!1,_?t(p):Promise.resolve()}function s(l,c,f){var h;if(n[l].isActive===c)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var y;return(y=v.animationState)===null||y===void 0?void 0:y.setActive(l,c)}),n[l].isActive=c;const p=o(f,l);for(const v in n)n[v].protectedKeys={};return p}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n}}function zle(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qM(t,e):!1}function Gu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jle(){return{animate:Gu(!0),whileInView:Gu(),whileHover:Gu(),whileTap:Gu(),whileDrag:Gu(),whileFocus:Gu(),exit:Gu()}}class Ble extends Su{constructor(t){super(t),t.animationState||(t.animationState=$le(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),yb(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Vle=0;class Ule extends Su{constructor(){super(...arguments),this.id=Vle++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Hle={animation:{Feature:Ble},exit:{Feature:Ule}},WT=(e,t)=>Math.abs(e-t);function Wle(e,t){const n=WT(e.x,t.x),r=WT(e.y,t.y);return Math.sqrt(n**2+r**2)}class ED{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=lw(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=Wle(c.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:p}=c,{timestamp:v}=Fr;this.history.push({...p,timestamp:v});const{onStart:y,onMove:m}=this.handlers;f||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=sw(f,this.transformPagePoint),Pn.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:p}=this.handlers,v=lw(c.type==="pointercancel"?this.lastMoveEventInfo:sw(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(c,v),p&&p(c,v)},!BM(t))return;this.handlers=n,this.transformPagePoint=r;const i=Sb(t),a=sw(i,this.transformPagePoint),{point:o}=a,{timestamp:s}=Fr;this.history=[{...o,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,lw(a,this.history)),this.removeListeners=ou(Hs(window,"pointermove",this.handlePointerMove),Hs(window,"pointerup",this.handlePointerUp),Hs(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tl(this.updatePoint)}}function sw(e,t){return t?{point:t(e.point)}:e}function qT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lw({point:e},t){return{point:e,delta:qT(e,kD(t)),offset:qT(e,qle(t)),velocity:Gle(t,.1)}}function qle(e){return e[0]}function kD(e){return e[e.length-1]}function Gle(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=kD(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>su(t)));)n--;if(!r)return{x:0,y:0};const a=Ws(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function va(e){return e.max-e.min}function IC(e,t=0,n=.01){return Math.abs(e-t)<=n}function GT(e,t,n,r=.5){e.origin=r,e.originPoint=Wn(t.min,t.max,e.origin),e.scale=va(n)/va(t),(IC(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Wn(n.min,n.max,e.origin)-e.originPoint,(IC(e.translate)||isNaN(e.translate))&&(e.translate=0)}function sm(e,t,n,r){GT(e.x,t.x,n.x,r?r.originX:void 0),GT(e.y,t.y,n.y,r?r.originY:void 0)}function KT(e,t,n){e.min=n.min+t.min,e.max=e.min+va(t)}function Kle(e,t,n){KT(e.x,t.x,n.x),KT(e.y,t.y,n.y)}function YT(e,t,n){e.min=t.min-n.min,e.max=e.min+va(t)}function lm(e,t,n){YT(e.x,t.x,n.x),YT(e.y,t.y,n.y)}function Yle(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Wn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Wn(n,e,r.max):Math.min(e,n)),e}function ZT(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Zle(e,{top:t,left:n,bottom:r,right:i}){return{x:ZT(e.x,n,i),y:ZT(e.y,t,r)}}function QT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Qle(e,t){return{x:QT(e.x,t.x),y:QT(e.y,t.y)}}function Xle(e,t){let n=.5;const r=va(e),i=va(t);return i>r?n=Gm(t.min,t.max-r,e.min):r>i&&(n=Gm(e.min,e.max-i,t.min)),du(0,1,n)}function Jle(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const LC=.35;function eue(e=LC){return e===!1?e=0:e===!0&&(e=LC),{x:XT(e,"left","right"),y:XT(e,"top","bottom")}}function XT(e,t,n){return{min:JT(e,t),max:JT(e,n)}}function JT(e,t){return typeof e=="number"?e:e[t]||0}const eP=()=>({translate:0,scale:1,origin:0,originPoint:0}),rf=()=>({x:eP(),y:eP()}),tP=()=>({min:0,max:0}),pr=()=>({x:tP(),y:tP()});function Uo(e){return[e("x"),e("y")]}function TD({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nue(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function uw(e){return e===void 0||e===1}function MC({scale:e,scaleX:t,scaleY:n}){return!uw(e)||!uw(t)||!uw(n)}function Zu(e){return MC(e)||PD(e)||e.z||e.rotate||e.rotateX||e.rotateY}function PD(e){return nP(e.x)||nP(e.y)}function nP(e){return e&&e!=="0%"}function b1(e,t,n){const r=e-n,i=t*r;return n+i}function rP(e,t,n,r,i){return i!==void 0&&(e=b1(e,i,r)),b1(e,n,r)+t}function DC(e,t=0,n=1,r,i){e.min=rP(e.min,t,n,r,i),e.max=rP(e.max,t,n,r,i)}function OD(e,{x:t,y:n}){DC(e.x,t.translate,t.scale,t.originPoint),DC(e.y,n.translate,n.scale,n.originPoint)}function rue(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&af(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,OD(e,o)),r&&Zu(a.latestValues)&&af(e,a.latestValues))}t.x=iP(t.x),t.y=iP(t.y)}function iP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Fl(e,t){e.min=e.min+t,e.max=e.max+t}function aP(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,o=Wn(e.min,e.max,a);DC(e,t[n],t[r],o,t.scale)}const iue=["x","scaleX","originX"],aue=["y","scaleY","originY"];function af(e,t){aP(e.x,t,iue),aP(e.y,t,aue)}function RD(e,t){return TD(nue(e.getBoundingClientRect(),t))}function oue(e,t,n){const r=RD(e,n),{scroll:i}=t;return i&&(Fl(r.x,i.offset.x),Fl(r.y,i.offset.y)),r}const sue=new WeakMap;class lue{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(Sb(l,"page").point)},a=(l,c)=>{const{drag:f,dragPropagation:h,onDragStart:p}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=UM(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Uo(y=>{let m=this.getAxisMotionValue(y).get()||0;if(as.test(m)){const{projection:_}=this.visualElement;if(_&&_.layout){const b=_.layout.layoutBox[y];b&&(m=va(b)*(parseFloat(m)/100))}}this.originPoint[y]=m}),p&&Pn.update(()=>p(l,c),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(l,c)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:p,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:y}=c;if(h&&this.currentDirection===null){this.currentDirection=uue(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,y),this.updateAxis("y",c.point,y),this.visualElement.render(),v&&v(l,c)},s=(l,c)=>this.stop(l,c);this.panSession=new ED(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Pn.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!P0(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Yle(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&tf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Zle(r.layoutBox,t):this.constraints=!1,this.elastic=eue(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Uo(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=Jle(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!tf(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=oue(r,i.root,this.visualElement.getTransformPagePoint());let o=Qle(i.layout.layoutBox,a);if(n){const s=n(tue(o));this.hasMutatedConstraints=!!s,s&&(o=TD(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Uo(f=>{if(!P0(f,n,this.currentDirection))return;let h=l&&l[f]||{};o&&(h={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,y={type:"inertia",velocity:r?t[f]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(f,y)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start($4(t,r,0,n))}stopAnimation(){Uo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Uo(n=>{const{drag:r}=this.getProps();if(!P0(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Wn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!tf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Uo(o=>{const s=this.getAxisMotionValue(o);if(s){const l=s.get();i[o]=Xle({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Uo(o=>{if(!P0(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];s.set(Wn(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;sue.set(this.visualElement,this);const t=this.visualElement.current,n=Hs(t,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();tf(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=js(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Uo(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=l[f].translate,h.set(h.get()+l[f].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=LC,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function P0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uue(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cue extends Su{constructor(t){super(t),this.removeGroupControls=er,this.removeListeners=er,this.controls=new lue(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||er}unmount(){this.removeGroupControls(),this.removeListeners()}}const oP=e=>(t,n)=>{e&&Pn.update(()=>e(t,n))};class due extends Su{constructor(){super(...arguments),this.removePointerDownListener=er}onPointerDown(t){this.session=new ED(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:oP(t),onStart:oP(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Pn.update(()=>i(a,o))}}}mount(){this.removePointerDownListener=Hs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function AD(){const e=w.useContext(Og);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=w.useId();return w.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function fue(){return hue(w.useContext(Og))}function hue(e){return e===null?!0:e.isPresent}const _y={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gp={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ht.test(e))e=parseFloat(e);else return e;const n=sP(e,t.target.x),r=sP(e,t.target.y);return`${n}% ${r}%`}},pue={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fu.parse(e);if(i.length>5)return r;const a=fu.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=Wn(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),a(i)}};class mue extends ve.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Soe(gue),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),_y.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Pn.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ID(e){const[t,n]=AD(),r=w.useContext(C4);return ve.createElement(mue,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(kM),isPresent:t,safeToRemove:n})}const gue={borderRadius:{...gp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gp,borderTopRightRadius:gp,borderBottomLeftRadius:gp,borderBottomRightRadius:gp,boxShadow:pue},LD=["TopLeft","TopRight","BottomLeft","BottomRight"],vue=LD.length,lP=e=>typeof e=="string"?parseFloat(e):e,uP=e=>typeof e=="number"||ht.test(e);function yue(e,t,n,r,i,a){i?(e.opacity=Wn(0,n.opacity!==void 0?n.opacity:1,_ue(r)),e.opacityExit=Wn(t.opacity!==void 0?t.opacity:1,0,bue(r))):a&&(e.opacity=Wn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<vue;o++){const s=`border${LD[o]}Radius`;let l=cP(t,s),c=cP(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||uP(l)===uP(c)?(e[s]=Math.max(Wn(lP(l),lP(c),r),0),(as.test(c)||as.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Wn(t.rotate||0,n.rotate||0,r))}function cP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const _ue=MD(0,.5,M4),bue=MD(.5,.95,er);function MD(e,t,n){return r=>r<e?0:r>t?1:n(Gm(e,t,r))}function dP(e,t){e.min=t.min,e.max=t.max}function Ia(e,t){dP(e.x,t.x),dP(e.y,t.y)}function fP(e,t,n,r,i){return e-=t,e=b1(e,1/n,r),i!==void 0&&(e=b1(e,1/i,r)),e}function Sue(e,t=0,n=1,r=.5,i,a=e,o=e){if(as.test(t)&&(t=parseFloat(t),t=Wn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Wn(a.min,a.max,r);e===a&&(s-=t),e.min=fP(e.min,t,n,s,i),e.max=fP(e.max,t,n,s,i)}function hP(e,t,[n,r,i],a,o){Sue(e,t[n],t[r],t[i],t.scale,a,o)}const wue=["x","scaleX","originX"],xue=["y","scaleY","originY"];function pP(e,t,n,r){hP(e.x,t,wue,n?n.x:void 0,r?r.x:void 0),hP(e.y,t,xue,n?n.y:void 0,r?r.y:void 0)}function mP(e){return e.translate===0&&e.scale===1}function DD(e){return mP(e.x)&&mP(e.y)}function Cue(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ND(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function gP(e){return va(e.x)/va(e.y)}class Eue{constructor(){this.members=[]}add(t){z4(this.members,t),t.scheduleRender()}remove(t){if(j4(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function vP(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return(o!==1||s!==1)&&(r+=`scale(${o}, ${s})`),r||"none"}const kue=(e,t)=>e.depth-t.depth;class Tue{constructor(){this.children=[],this.isDirty=!1}add(t){z4(this.children,t),this.isDirty=!0}remove(t){j4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kue),this.isDirty=!1,this.children.forEach(t)}}function Pue(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(tl(r),e(a-t))};return Pn.read(r,!0),()=>tl(r)}function Oue(e){window.MotionDebug&&window.MotionDebug.record(e)}function Rue(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Aue(e,t,n){const r=ta(e)?e:Gf(e);return r.start($4("",r,t,n)),r.animation}const yP=["","X","Y","Z"],_P=1e3;let Iue=0;const Qu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function FD({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=Iue++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Qu.totalNodes=Qu.resolvedTargetDeltas=Qu.recalculatedProjection=0,this.nodes.forEach(Due),this.nodes.forEach(jue),this.nodes.forEach(Bue),this.nodes.forEach(Nue),Oue(Qu)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Tue)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new B4),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Rue(o),this.instance=o;const{layoutId:l,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Pue(p,250),_y.hasAnimatedSinceResize&&(_y.hasAnimatedSinceResize=!1,this.nodes.forEach(SP))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeTargetChanged:v,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||f.getDefaultTransition()||que,{onLayoutAnimationStart:_,onLayoutAnimationComplete:b}=f.getProps(),S=!this.targetLayout||!ND(this.targetLayout,y)||v,C=!p&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||p&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,C);const E={...bD(m,"layout"),onPlay:_,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||SP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Vue),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(bP);return}this.isUpdating||this.nodes.forEach($ue),this.isUpdating=!1,this.nodes.forEach(zue),this.nodes.forEach(Lue),this.nodes.forEach(Mue),this.clearAllSnapshots();const s=performance.now();Fr.delta=du(0,1e3/60,s-Fr.timestamp),Fr.timestamp=s,Fr.isProcessing=!0,JS.update.process(Fr),JS.preRender.process(Fr),JS.render.process(Fr),Fr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Fue),this.sharedNodes.forEach(Uue)}scheduleUpdateProjection(){Pn.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Pn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=pr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!DD(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;o&&(s||Zu(this.latestValues)||f)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),Gue(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return pr();const s=o.measureViewportBox(),{scroll:l}=this.root;return l&&(Fl(s.x,l.offset.x),Fl(s.y,l.offset.y)),s}removeElementScroll(o){const s=pr();Ia(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:f,options:h}=c;if(c!==this.root&&f&&h.layoutScroll){if(f.isRoot){Ia(s,o);const{scroll:p}=this.root;p&&(Fl(s.x,-p.offset.x),Fl(s.y,-p.offset.y))}Fl(s.x,f.offset.x),Fl(s.y,f.offset.y)}}return s}applyTransform(o,s=!1){const l=pr();Ia(l,o);for(let c=0;c<this.path.length;c++){const f=this.path[c];!s&&f.options.layoutScroll&&f.scroll&&f!==f.root&&af(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Zu(f.latestValues)&&af(l,f.latestValues)}return Zu(this.latestValues)&&af(l,this.latestValues),l}removeTransform(o){const s=pr();Ia(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Zu(c.latestValues))continue;MC(c.latestValues)&&c.updateSnapshot();const f=pr(),h=c.measurePageBox();Ia(f,h),pP(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,f)}return Zu(this.latestValues)&&pP(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=Fr.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pr(),this.relativeTargetOrigin=pr(),lm(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Ia(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=pr(),this.targetWithTransforms=pr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Kle(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ia(this.target,this.layout.layoutBox),OD(this.target,this.targetDelta)):Ia(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pr(),this.relativeTargetOrigin=pr(),lm(this.relativeTargetOrigin,this.target,v.target),Ia(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qu.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||MC(this.parent.latestValues)||PD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Fr.timestamp&&(c=!1),c)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Ia(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,v=this.treeScale.y;rue(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:y}=s;if(!y){this.projectionTransform&&(this.projectionDelta=rf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=rf(),this.projectionDeltaWithTransform=rf());const m=this.projectionTransform;sm(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=vP(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==p||this.treeScale.y!==v)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Qu.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,s=!1){const l=this.snapshot,c=l?l.latestValues:{},f={...this.latestValues},h=rf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=pr(),v=l?l.source:void 0,y=this.layout?this.layout.source:void 0,m=v!==y,_=this.getStack(),b=!_||_.members.length<=1,S=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(Wue));this.animationProgress=0;let C;this.mixTargetDelta=E=>{const R=E/1e3;wP(h.x,o.x,R),wP(h.y,o.y,R),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lm(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Hue(this.relativeTarget,this.relativeTargetOrigin,p,R),C&&Cue(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=pr()),Ia(C,this.relativeTarget)),m&&(this.animationValues=f,yue(f,c,this.latestValues,R,S,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pn.update(()=>{_y.hasAnimatedSinceResize=!0,this.currentAnimation=Aue(0,_P,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_P),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:f}=o;if(!(!s||!l||!c)){if(this!==o&&this.layout&&c&&$D(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||pr();const h=va(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const p=va(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}Ia(s,l),af(s,f),sm(this.projectionDeltaWithTransform,this.layoutCorrected,s,f)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Eue),this.sharedNodes.get(o).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let f=0;f<yP.length;f++){const h="rotate"+yP[f];l[h]&&(c[h]=l[h],o.setStaticValue(h,0))}o.render();for(const f in c)o.setStaticValue(f,c[f]);o.scheduleRender()}getProjectionStyles(o={}){var s,l;const c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return{visibility:"hidden"};const f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=yy(o.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=yy(o.pointerEvents)||""),this.hasProjected&&!Zu(this.latestValues)&&(m.transform=f?f({},""):"none",this.hasProjected=!1),m}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=vP(this.projectionDeltaWithTransform,this.treeScale,p),f&&(c.transform=f(p,c.transform));const{x:v,y}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${y.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const m in h1){if(p[m]===void 0)continue;const{correct:_,applyTo:b}=h1[m],S=c.transform==="none"?p[m]:_(p[m],h);if(b){const C=b.length;for(let E=0;E<C;E++)c[b[E]]=S}else c[m]=S}return this.options.layoutId&&(c.pointerEvents=h===this?yy(o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(bP),this.root.sharedNodes.clear()}}}function Lue(e){e.updateLayout()}function Mue(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?Uo(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],v=va(p);p.min=r[h].min,p.max=p.min+v}):$D(a,n.layoutBox,r)&&Uo(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],v=va(r[h]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const s=rf();sm(s,r,n.layoutBox);const l=rf();o?sm(l,e.applyTransform(i,!0),n.measuredBox):sm(l,r,n.layoutBox);const c=!DD(s);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:v}=h;if(p&&v){const y=pr();lm(y,n.layoutBox,p.layoutBox);const m=pr();lm(m,r,v.layoutBox),ND(y,m)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Due(e){Qu.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Nue(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fue(e){e.clearSnapshot()}function bP(e){e.clearMeasurements()}function $ue(e){e.isLayoutDirty=!1}function zue(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function SP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jue(e){e.resolveTargetDelta()}function Bue(e){e.calcProjection()}function Vue(e){e.resetRotation()}function Uue(e){e.removeLeadSnapshot()}function wP(e,t,n){e.translate=Wn(t.translate,0,n),e.scale=Wn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xP(e,t,n,r){e.min=Wn(t.min,n.min,r),e.max=Wn(t.max,n.max,r)}function Hue(e,t,n,r){xP(e.x,t.x,n.x,r),xP(e.y,t.y,n.y,r)}function Wue(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const que={duration:.45,ease:[.4,0,.1,1]},CP=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),EP=CP("applewebkit/")&&!CP("chrome/")?Math.round:er;function kP(e){e.min=EP(e.min),e.max=EP(e.max)}function Gue(e){kP(e.x),kP(e.y)}function $D(e,t,n){return e==="position"||e==="preserve-aspect"&&!IC(gP(t),gP(n),.2)}const Kue=FD({attachResizeListener:(e,t)=>js(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cw={current:void 0},zD=FD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cw.current){const e=new Kue({});e.mount(window),e.setOptions({layoutScroll:!0}),cw.current=e}return cw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Yue={pan:{Feature:due},drag:{Feature:cue,ProjectionNode:zD,MeasureLayout:ID}},Zue=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Que(e){const t=Zue.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function NC(e,t,n=1){const[r,i]=Que(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return SD(o)?parseFloat(o):o}else return EC(i)?NC(i,t,n+1):i}function Xue(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!EC(a))return;const o=NC(a,r);o&&i.set(o)});for(const i in t){const a=t[i];if(!EC(a))continue;const o=NC(a,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const Jue=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),jD=e=>Jue.has(e),ece=e=>Object.keys(e).some(jD),TP=e=>e===$c||e===ht,PP=(e,t)=>parseFloat(e.split(", ")[t]),OP=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return PP(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?PP(a[1],e):0}},tce=new Set(["x","y","z"]),nce=Rg.filter(e=>!tce.has(e));function rce(e){const t=[];return nce.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Kf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:OP(4,13),y:OP(5,14)};Kf.translateX=Kf.x;Kf.translateY=Kf.y;const ice=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=Kf[c](r,a)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const f=t.getValue(c);f&&f.jump(s[c]),e[c]=Kf[c](l,a)}),e},ace=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(jD);let a=[],o=!1;const s=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let f=n[l],h=mp(f);const p=t[l];let v;if(m1(p)){const y=p.length,m=p[0]===null?1:0;f=p[m],h=mp(f);for(let _=m;_<y&&p[_]!==null;_++)v?L4(mp(p[_])===v):v=mp(p[_])}else v=mp(p);if(h!==v)if(TP(h)&&TP(v)){const y=c.get();typeof y=="string"&&c.set(parseFloat(y)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&v===ht&&(t[l]=p.map(parseFloat))}else h!=null&&h.transform&&(v!=null&&v.transform)&&(f===0||p===0)?f===0?c.set(v.transform(f)):t[l]=h.transform(p):(o||(a=rce(e),o=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(p))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=ice(t,e,s);return a.length&&a.forEach(([f,h])=>{e.getValue(f).set(h)}),e.render(),vb&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function oce(e,t,n,r){return ece(t)?ace(e,t,n,r):{target:t,transitionEnd:r}}const sce=(e,t,n,r)=>{const i=Xue(e,t,r);return t=i.target,r=i.transitionEnd,oce(e,t,n,r)},FC={current:null},BD={current:!1};function lce(){if(BD.current=!0,!!vb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>FC.current=e.matches;e.addListener(t),t()}else FC.current=!1}function uce(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],o=n[i];if(ta(a))e.addValue(i,a),_1(r)&&r.add(i);else if(ta(o))e.addValue(i,Gf(a,{owner:e})),_1(r)&&r.remove(i);else if(o!==a)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,Gf(s!==void 0?s:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const RP=new WeakMap,VD=Object.keys(qm),cce=VD.length,AP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],dce=x4.length;class fce{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Pn.render(this.render,!1,!0);const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=_b(n),this.isVariantNode=EM(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{});for(const h in f){const p=f[h];s[h]!==void 0&&ta(p)&&(p.set(s[h],!1),_1(c)&&c.add(h))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,RP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),BD.current||lce(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:FC.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){RP.delete(this.current),this.projection&&this.projection.unmount(),tl(this.notifyUpdate),tl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Fc.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Pn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let o,s;for(let l=0;l<cce;l++){const c=VD[l],{isEnabled:f,Feature:h,ProjectionNode:p,MeasureLayout:v}=qm[c];p&&(o=p),f(n)&&(!this.features[c]&&h&&(this.features[c]=new h(this)),v&&(s=v))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:f,dragConstraints:h,layoutScroll:p,layoutRoot:v}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!f||h&&tf(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:p,layoutRoot:v})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<AP.length;r++){const i=AP[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=uce(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<dce;r++){const i=x4[r],a=this.props[i];(Wm(a)||a===!1)&&(n[i]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Gf(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=I4(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ta(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new B4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class UD extends fce{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let o=Rle(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),a){Ple(this,r,o);const s=sce(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function hce(e){return window.getComputedStyle(e)}class pce extends UD{readValueFromInstance(t,n){if(Fc.has(n)){const r=F4(n);return r&&r.default||0}else{const r=hce(t),i=(OM(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return RD(t,n)}build(t,n,r,i){k4(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return A4(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ta(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){DM(t,n,r,i)}}class mce extends UD{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Fc.has(n)){const r=F4(n);return r&&r.default||0}return n=NM.has(n)?n:R4(n),t.getAttribute(n)}measureInstanceViewportBox(){return pr()}scrapeMotionValuesFromProps(t,n){return $M(t,n)}build(t,n,r,i){P4(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){FM(t,n,r,i)}mount(t){this.isSVGTag=O4(t.tagName),super.mount(t)}}const gce=(e,t)=>E4(e)?new mce(t,{enableHardwareAcceleration:!1}):new pce(t,{enableHardwareAcceleration:!0}),vce={layout:{ProjectionNode:zD,MeasureLayout:ID}},yce={...Hle,...cse,...Yue,...vce},wu=_oe((e,t)=>Qoe(e,t,yce,gce));function HD(){const e=w.useRef(!1);return S4(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _ce(){const e=HD(),[t,n]=w.useState(0),r=w.useCallback(()=>{e.current&&n(t+1)},[t]);return[w.useCallback(()=>Pn.postRender(r),[r]),t]}class bce extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Sce({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),i=w.useRef({width:0,height:0,top:0,left:0});return w.useInsertionEffect(()=>{const{width:a,height:o,top:s,left:l}=i.current;if(t||!r.current||!a||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
    341341          [data-motion-pop-id="${n}"] {
    342342            position: absolute !important;
     
    346346            left: ${l}px !important;
    347347          }
    348         `),()=>{document.head.removeChild(c)}},[t]),w.createElement(bce,{isPresent:t,childRef:r,sizeRef:i},w.cloneElement(e,{ref:r}))}const dw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=zM(wce),l=w.useId(),c=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:f=>{s.set(f,!0);for(const h of s.values())if(!h)return;r&&r()},register:f=>(s.set(f,!1),()=>s.delete(f))}),a?void 0:[n]);return w.useMemo(()=>{s.forEach((f,h)=>s.set(h,!1))},[n]),w.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),o==="popLayout"&&(e=w.createElement(Sce,{isPresent:n},e)),w.createElement(Og.Provider,{value:c},e)};function wce(){return new Map}function xce(e){return w.useEffect(()=>()=>e(),[])}const Id=e=>e.key||"";function Cce(e,t){e.forEach(n=>{const r=Id(n);t.set(r,n)})}function Ece(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const mh=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const s=w.useContext(C4).forceRender||_ce()[0],l=HD(),c=Ece(e);let f=c;const h=w.useRef(new Map).current,p=w.useRef(f),v=w.useRef(new Map).current,y=w.useRef(!0);if(S4(()=>{y.current=!1,Cce(c,v),p.current=f}),xce(()=>{y.current=!0,v.clear(),h.clear()}),y.current)return w.createElement(w.Fragment,null,f.map(S=>w.createElement(dw,{key:Id(S),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:o},S)));f=[...f];const m=p.current.map(Id),_=c.map(Id),b=m.length;for(let S=0;S<b;S++){const C=m[S];_.indexOf(C)===-1&&!h.has(C)&&h.set(C,void 0)}return o==="wait"&&h.size&&(f=[]),h.forEach((S,C)=>{if(_.indexOf(C)!==-1)return;const E=v.get(C);if(!E)return;const R=m.indexOf(C);let A=S;if(!A){const I=()=>{v.delete(C),h.delete(C);const M=p.current.findIndex(F=>F.key===C);if(p.current.splice(M,1),!h.size){if(p.current=c,l.current===!1)return;s(),r&&r()}};A=w.createElement(dw,{key:Id(E),isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:a,mode:o},E),h.set(C,A)}f.splice(R,0,A)}),f=f.map(S=>{const C=S.key;return h.has(C)?S:w.createElement(dw,{key:Id(S),isPresent:!0,presenceAffectsLayout:a,mode:o},S)}),w.createElement(w.Fragment,null,h.size?f:f.map(S=>w.cloneElement(S)))};var kce={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},WD=w.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:a=!1,position:o="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=kce,toastSpacing:f="0.5rem"}=e,[h,p]=w.useState(s),v=fue();qf(()=>{v||r==null||r()},[v]),qf(()=>{p(s)},[s]);const y=()=>p(null),m=()=>p(s),_=()=>{v&&i()};w.useEffect(()=>{v&&a&&i()},[v,a,i]),coe(_,h);const b=w.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:f,...l}),[l,f]),S=w.useMemo(()=>loe(o),[o]);return T.jsx(wu.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:m,custom:{position:o},style:S,children:T.jsx(je.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:fa(n,{id:t,onClose:_})})})});WD.displayName="ToastComponent";var IP={path:T.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[T.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),T.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),T.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Wt=Xe((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:a=!1,children:o,className:s,__css:l,...c}=e,f=At("chakra-icon",s),h=Xa("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...h},v={ref:t,focusable:a,className:f,__css:p},y=r??IP.viewBox;if(n&&typeof n!="string")return T.jsx(je.svg,{as:n,...v,...c});const m=o??IP.path;return T.jsx(je.svg,{verticalAlign:"middle",viewBox:y,...v,...c,children:m})});Wt.displayName="Icon";var Tce=Wt;function Mg(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,a=w.Children.toArray(e.path),o=Xe((s,l)=>T.jsx(Wt,{ref:l,viewBox:t,...i,...s,children:a.length?a:T.jsx("path",{fill:"currentColor",d:n})}));return o.displayName=r,o}function Pce(e){return T.jsx(Wt,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Oce(e){return T.jsx(Wt,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function LP(e){return T.jsx(Wt,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var Rce=Ro({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Dg=Xe((e,t)=>{const n=Xa("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:a="0.45s",emptyColor:o="transparent",className:s,...l}=_r(e),c=At("chakra-spinner",s),f={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:o,borderLeftColor:o,animation:`${Rce} ${a} linear infinite`,...n};return T.jsx(je.div,{ref:t,__css:f,className:c,...l,children:r&&T.jsx(je.span,{srOnly:!0,children:r})})});Dg.displayName="Spinner";var[Ace,V4]=lr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Ice,U4]=lr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),qD={info:{icon:Oce,colorScheme:"blue"},warning:{icon:LP,colorScheme:"orange"},success:{icon:Pce,colorScheme:"green"},error:{icon:LP,colorScheme:"red"},loading:{icon:Dg,colorScheme:"blue"}};function Lce(e){return qD[e].colorScheme}function Mce(e){return qD[e].icon}var H4=Xe(function(t,n){const r=U4(),{status:i}=V4(),a={display:"inline",...r.description};return T.jsx(je.div,{ref:n,"data-status":i,...t,className:At("chakra-alert__desc",t.className),__css:a})});H4.displayName="AlertDescription";function W4(e){const{status:t}=V4(),n=Mce(t),r=U4(),i=t==="loading"?r.spinner:r.icon;return T.jsx(je.span,{display:"inherit","data-status":t,...e,className:At("chakra-alert__icon",e.className),__css:i,children:e.children||T.jsx(n,{h:"100%",w:"100%"})})}W4.displayName="AlertIcon";var q4=Xe(function(t,n){const r=U4(),{status:i}=V4();return T.jsx(je.div,{ref:n,"data-status":i,...t,className:At("chakra-alert__title",t.className),__css:r.title})});q4.displayName="AlertTitle";var xb=Xe(function(t,n){var r;const{status:i="info",addRole:a=!0,...o}=_r(t),s=(r=t.colorScheme)!=null?r:Lce(i),l=Pr("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return T.jsx(Ace,{value:{status:i},children:T.jsx(Ice,{value:l,children:T.jsx(je.div,{"data-status":i,role:a?"alert":void 0,ref:n,...o,className:At("chakra-alert",t.className),__css:c})})})});xb.displayName="Alert";function Dce(e){return T.jsx(Wt,{focusable:"false","aria-hidden":!0,...e,children:T.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var GD=Xe(function(t,n){const r=Xa("CloseButton",t),{children:i,isDisabled:a,__css:o,...s}=_r(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return T.jsx(je.button,{type:"button","aria-label":"Close",ref:n,disabled:a,__css:{...l,...r,...o},...s,children:i||T.jsx(Dce,{width:"1em",height:"1em"})})});GD.displayName="CloseButton";var Nce={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},um=Fce(Nce);function Fce(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(a=>a())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,a)=>{r(o=>({...o,[a]:o[a].filter(s=>s.id!=i)}))},notify:(i,a)=>{const o=$ce(i,a),{position:s,id:l}=o;return r(c=>{var f,h;const v=s.includes("top")?[o,...(f=c[s])!=null?f:[]]:[...(h=c[s])!=null?h:[],o];return{...c,[s]:v}}),l},update:(i,a)=>{i&&r(o=>{const s={...o},{position:l,index:c}=TT(s,i);return l&&c!==-1&&(s[l][c]={...s[l][c],...a,message:jce(a)}),s})},closeAll:({positions:i}={})=>{r(a=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=a[c].map(f=>({...f,requestClose:!0})),l),{...a}))},close:i=>{r(a=>{const o=wM(a,i);return o?{...a,[o]:a[o].map(s=>s.id==i?{...s,requestClose:!0}:s)}:a})},isActive:i=>!!TT(um.getState(),i).position}}var MP=0;function $ce(e,t={}){var n,r;MP+=1;const i=(n=t.id)!=null?n:MP,a=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>um.removeToast(String(i),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var zce=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:a,onClose:o,description:s,colorScheme:l,icon:c}=e,f=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return T.jsxs(xb,{addRole:!1,status:t,variant:n,id:f==null?void 0:f.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[T.jsx(W4,{children:c}),T.jsxs(je.div,{flex:"1",maxWidth:"100%",children:[i&&T.jsx(q4,{id:f==null?void 0:f.title,children:i}),s&&T.jsx(H4,{id:f==null?void 0:f.description,display:"block",children:s})]}),a&&T.jsx(GD,{size:"sm",onClick:o,position:"absolute",insetEnd:1,top:1})]})};function jce(e={}){const{render:t,toastComponent:n=zce}=e;return i=>typeof t=="function"?t({...i,...e}):T.jsx(n,{...i,...e})}var[Bce,DTe]=lr({name:"ToastOptionsContext",strict:!1}),Vce=e=>{const t=w.useSyncExternalStore(um.subscribe,um.getState,um.getState),{motionVariants:n,component:r=WD,portalProps:i}=e,o=Object.keys(t).map(s=>{const l=t[s];return T.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:uoe(s),children:T.jsx(mh,{initial:!1,children:l.map(c=>T.jsx(r,{motionVariants:n,...c},c.id))})},s)});return T.jsx(ph,{...i,children:o})},Uce=e=>function({children:n,theme:r=e,toastOptions:i,...a}){return T.jsxs(ooe,{theme:r,...a,children:[T.jsx(Bce,{value:i==null?void 0:i.defaultOptions,children:n}),T.jsx(Vce,{...i})]})},Hce=Uce(fM),Wce=Object.defineProperty,qce=(e,t,n)=>t in e?Wce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qn=(e,t,n)=>(qce(e,typeof t!="symbol"?t+"":t,n),n);function DP(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var Gce=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function NP(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function FP(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var $3=typeof window<"u"?w.useLayoutEffect:w.useEffect,S1=e=>e,Kce=class{constructor(){Qn(this,"descendants",new Map),Qn(this,"register",e=>{if(e!=null)return Gce(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Qn(this,"unregister",e=>{this.descendants.delete(e);const t=DP(Array.from(this.descendants.keys()));this.assignIndex(t)}),Qn(this,"destroy",()=>{this.descendants.clear()}),Qn(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Qn(this,"count",()=>this.descendants.size),Qn(this,"enabledCount",()=>this.enabledValues().length),Qn(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),Qn(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Qn(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Qn(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Qn(this,"first",()=>this.item(0)),Qn(this,"firstEnabled",()=>this.enabledItem(0)),Qn(this,"last",()=>this.item(this.descendants.size-1)),Qn(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Qn(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),Qn(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Qn(this,"next",(e,t=!0)=>{const n=NP(e,this.count(),t);return this.item(n)}),Qn(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=NP(r,this.enabledCount(),t);return this.enabledItem(i)}),Qn(this,"prev",(e,t=!0)=>{const n=FP(e,this.count()-1,t);return this.item(n)}),Qn(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=FP(r,this.enabledCount()-1,t);return this.enabledItem(i)}),Qn(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=DP(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function Yce(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Pi(...e){return t=>{e.forEach(n=>{Yce(n,t)})}}function Zce(...e){return w.useMemo(()=>Pi(...e),e)}function Qce(){const e=w.useRef(new Kce);return $3(()=>()=>e.current.destroy()),e.current}var[Xce,KD]=lr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Jce(e){const t=KD(),[n,r]=w.useState(-1),i=w.useRef(null);$3(()=>()=>{i.current&&t.unregister(i.current)},[]),$3(()=>{if(!i.current)return;const o=Number(i.current.dataset.index);n!=o&&!Number.isNaN(o)&&r(o)});const a=S1(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:Pi(a,i)}}function ede(){return[S1(Xce),()=>S1(KD()),()=>Qce(),i=>Jce(i)]}var $P={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},gc={enter:{duration:.2,ease:$P.easeOut},exit:{duration:.1,ease:$P.easeIn}},vc={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},tde={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:vc.enter(gc.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:vc.exit(gc.exit,n),transitionEnd:t==null?void 0:t.exit}}},YD={initial:"exit",animate:"enter",exit:"exit",variants:tde},nde=w.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:a,transition:o,transitionEnd:s,delay:l,...c}=t,f=i||r?"enter":"exit",h=r?i&&r:!0,p={transition:o,transitionEnd:s,delay:l};return T.jsx(mh,{custom:p,children:h&&T.jsx(wu.div,{ref:n,className:At("chakra-fade",a),custom:p,...YD,animate:f,...c})})});nde.displayName="Fade";var rde={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(a=n==null?void 0:n.exit)!=null?a:vc.exit(gc.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:vc.enter(gc.enter,n),transitionEnd:e==null?void 0:e.enter}}},ZD={initial:"exit",animate:"enter",exit:"exit",variants:rde},ide=w.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,initialScale:o=.95,className:s,transition:l,transitionEnd:c,delay:f,...h}=t,p=r?i&&r:!0,v=i||r?"enter":"exit",y={initialScale:o,reverse:a,transition:l,transitionEnd:c,delay:f};return T.jsx(mh,{custom:y,children:p&&T.jsx(wu.div,{ref:n,className:At("chakra-offset-slide",s),...ZD,animate:v,custom:y,...h})})});ide.displayName="ScaleFade";var ade={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,x:e,y:t,transition:(a=n==null?void 0:n.exit)!=null?a:vc.exit(gc.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:vc.enter(gc.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:a})=>{var o;const s={x:t,y:e};return{opacity:0,transition:(o=n==null?void 0:n.exit)!=null?o:vc.exit(gc.exit,a),...i?{...s,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...s,...r==null?void 0:r.exit}}}}},z3={initial:"initial",animate:"enter",exit:"exit",variants:ade},ode=w.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,className:o,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:f,delay:h,...p}=t,v=r?i&&r:!0,y=i||r?"enter":"exit",m={offsetX:s,offsetY:l,reverse:a,transition:c,transitionEnd:f,delay:h};return T.jsx(mh,{custom:m,children:v&&T.jsx(wu.div,{ref:n,className:At("chakra-offset-slide",o),custom:m,...z3,animate:y,...p})})});ode.displayName="SlideFade";var w1=Xe(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:a,...o}=t;return T.jsx("img",{width:r,height:i,ref:n,alt:a,...o})});w1.displayName="NativeImage";function sde(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:a,crossOrigin:o,sizes:s,ignoreFallback:l}=e,[c,f]=w.useState("pending");w.useEffect(()=>{f(n?"loading":"pending")},[n]);const h=w.useRef(),p=w.useCallback(()=>{if(!n)return;v();const y=new Image;y.src=n,o&&(y.crossOrigin=o),r&&(y.srcset=r),s&&(y.sizes=s),t&&(y.loading=t),y.onload=m=>{v(),f("loaded"),i==null||i(m)},y.onerror=m=>{v(),f("failed"),a==null||a(m)},h.current=y},[n,o,r,s,i,a,t]),v=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return rs(()=>{if(!l)return c==="loading"&&p(),()=>{v()}},[c,p,l]),l?"loaded":c}var lde=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function ude(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var xu=Xe(function(t,n){const{fallbackSrc:r,fallback:i,src:a,srcSet:o,align:s,fit:l,loading:c,ignoreFallback:f,crossOrigin:h,fallbackStrategy:p="beforeLoadOrError",referrerPolicy:v,...y}=t,m=r!==void 0||i!==void 0,_=c!=null||f||!m,b=sde({...t,crossOrigin:h,ignoreFallback:_}),S=lde(b,p),C={ref:n,objectFit:l,objectPosition:s,..._?y:ude(y,["onError","onLoad"])};return S?i||T.jsx(je.img,{as:w1,className:"chakra-image__placeholder",src:r,...C}):T.jsx(je.img,{as:w1,src:a,srcSet:o,crossOrigin:h,loading:c,referrerPolicy:v,className:"chakra-image",...C})});xu.displayName="Image";var cde=Xe((e,t)=>T.jsx(je.img,{ref:t,as:w1,className:"chakra-image",...e}));function QD(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}var[NTe,dde]=lr({strict:!1,name:"ButtonGroupContext"});function fde(e){const[t,n]=w.useState(!e);return{ref:w.useCallback(a=>{a&&n(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function j3(e){const{children:t,className:n,...r}=e,i=w.isValidElement(t)?w.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=At("chakra-button__icon",n);return T.jsx(je.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a,children:i})}j3.displayName="ButtonIcon";function B3(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=T.jsx(Dg,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:o,...s}=e,l=At("chakra-button__spinner",a),c=n==="start"?"marginEnd":"marginStart",f=w.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...o}),[o,t,c,r]);return T.jsx(je.div,{className:l,...s,__css:f,children:i})}B3.displayName="ButtonSpinner";var Jr=Xe((e,t)=>{const n=dde(),r=Xa("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:a,isActive:o,children:s,leftIcon:l,rightIcon:c,loadingText:f,iconSpacing:h="0.5rem",type:p,spinner:v,spinnerPlacement:y="start",className:m,as:_,...b}=_r(e),S=w.useMemo(()=>{const A={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:A}}},[r,n]),{ref:C,type:E}=fde(_),R={rightIcon:c,leftIcon:l,iconSpacing:h,children:s};return T.jsxs(je.button,{ref:Zce(t,C),as:_,type:p??E,"data-active":cn(o),"data-loading":cn(a),__css:S,className:At("chakra-button",m),...b,disabled:i||a,children:[a&&y==="start"&&T.jsx(B3,{className:"chakra-button__spinner--start",label:f,placement:"start",spacing:h,children:v}),a?f||T.jsx(je.span,{opacity:0,children:T.jsx(zP,{...R})}):T.jsx(zP,{...R}),a&&y==="end"&&T.jsx(B3,{className:"chakra-button__spinner--end",label:f,placement:"end",spacing:h,children:v})]})});Jr.displayName="Button";function zP(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return T.jsxs(T.Fragment,{children:[t&&T.jsx(j3,{marginEnd:i,children:t}),r,n&&T.jsx(j3,{marginStart:i,children:n})]})}var Km=Xe((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":a,...o}=e,s=n||r,l=w.isValidElement(s)?w.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return T.jsx(Jr,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":a,...o,children:l})});Km.displayName="IconButton";var[FTe,hde]=lr({name:"CheckboxGroupContext",strict:!1});function pde(e){const[t,n]=w.useState(e),[r,i]=w.useState(!1);return e!==t&&(i(!0),n(e)),r}function mde(e){return T.jsx(je.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:T.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function gde(e){return T.jsx(je.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:T.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function vde(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?gde:mde;return n||t?T.jsx(je.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:T.jsx(i,{...r})}):null}var[yde,XD]=lr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[_de,gh]=lr({strict:!1,name:"FormControlContext"});function bde(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:a,...o}=e,s=w.useId(),l=t||`field-${s}`,c=`${l}-label`,f=`${l}-feedback`,h=`${l}-helptext`,[p,v]=w.useState(!1),[y,m]=w.useState(!1),[_,b]=w.useState(!1),S=w.useCallback((I={},M=null)=>({id:h,...I,ref:Pi(M,F=>{F&&m(!0)})}),[h]),C=w.useCallback((I={},M=null)=>({...I,ref:M,"data-focus":cn(_),"data-disabled":cn(i),"data-invalid":cn(r),"data-readonly":cn(a),id:I.id!==void 0?I.id:c,htmlFor:I.htmlFor!==void 0?I.htmlFor:l}),[l,i,_,r,a,c]),E=w.useCallback((I={},M=null)=>({id:f,...I,ref:Pi(M,F=>{F&&v(!0)}),"aria-live":"polite"}),[f]),R=w.useCallback((I={},M=null)=>({...I,...o,ref:M,role:"group"}),[o]),A=w.useCallback((I={},M=null)=>({...I,ref:M,role:"presentation","aria-hidden":!0,children:I.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!i,isFocused:!!_,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:p,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:m,id:l,labelId:c,feedbackId:f,helpTextId:h,htmlProps:o,getHelpTextProps:S,getErrorMessageProps:E,getRootProps:R,getLabelProps:C,getRequiredIndicatorProps:A}}var JD=Xe(function(t,n){const r=Pr("Form",t),i=_r(t),{getRootProps:a,htmlProps:o,...s}=bde(i),l=At("chakra-form-control",t.className);return T.jsx(_de,{value:s,children:T.jsx(yde,{value:r,children:T.jsx(je.div,{...a({},n),className:l,__css:r.container})})})});JD.displayName="FormControl";var Sde=Xe(function(t,n){const r=gh(),i=XD(),a=At("chakra-form__helper-text",t.className);return T.jsx(je.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:a})});Sde.displayName="FormHelperText";var[wde,xde]=lr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),eN=Xe((e,t)=>{const n=Pr("FormError",e),r=_r(e),i=gh();return i!=null&&i.isInvalid?T.jsx(wde,{value:n,children:T.jsx(je.div,{...i==null?void 0:i.getErrorMessageProps(r,t),className:At("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});eN.displayName="FormErrorMessage";var Cde=Xe((e,t)=>{const n=xde(),r=gh();if(!(r!=null&&r.isInvalid))return null;const i=At("chakra-form__error-icon",e.className);return T.jsx(Wt,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:i,children:T.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});Cde.displayName="FormErrorIcon";var tN=Xe(function(t,n){var r;const i=Xa("FormLabel",t),a=_r(t),{className:o,children:s,requiredIndicator:l=T.jsx(nN,{}),optionalIndicator:c=null,...f}=a,h=gh(),p=(r=h==null?void 0:h.getLabelProps(f,n))!=null?r:{ref:n,...f};return T.jsxs(je.label,{...p,className:At("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...i},children:[s,h!=null&&h.isRequired?l:c]})});tN.displayName="FormLabel";var nN=Xe(function(t,n){const r=gh(),i=XD();if(!(r!=null&&r.isRequired))return null;const a=At("chakra-form__required-indicator",t.className);return T.jsx(je.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:a})});nN.displayName="RequiredIndicator";function Ede(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...a}=rN(e);return{...a,disabled:t,readOnly:r,required:i,"aria-invalid":MS(n),"aria-required":MS(i),"aria-readonly":MS(r)}}function rN(e){var t,n,r;const i=gh(),{id:a,disabled:o,readOnly:s,required:l,isRequired:c,isInvalid:f,isReadOnly:h,isDisabled:p,onFocus:v,onBlur:y,...m}=e,_=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&_.push(i.feedbackId),i!=null&&i.hasHelpText&&_.push(i.helpTextId),{...m,"aria-describedby":_.join(" ")||void 0,id:a??(i==null?void 0:i.id),isDisabled:(t=o??p)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=s??h)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=l??c)!=null?r:i==null?void 0:i.isRequired,isInvalid:f??(i==null?void 0:i.isInvalid),onFocus:xn(i==null?void 0:i.onFocus,v),onBlur:xn(i==null?void 0:i.onBlur,y)}}var kde={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};const Tde=()=>typeof document<"u";let jP=!1,Ng=null,Oc=!1,V3=!1;const U3=new Set;function G4(e,t){U3.forEach(n=>n(e,t))}const Pde=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Ode(e){return!(e.metaKey||!Pde&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function BP(e){Oc=!0,Ode(e)&&(Ng="keyboard",G4("keyboard",e))}function _d(e){if(Ng="pointer",e.type==="mousedown"||e.type==="pointerdown"){Oc=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;G4("pointer",e)}}function Rde(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function Ade(e){Rde(e)&&(Oc=!0,Ng="virtual")}function Ide(e){e.target===window||e.target===document||(!Oc&&!V3&&(Ng="virtual",G4("virtual",e)),Oc=!1,V3=!1)}function Lde(){Oc=!1,V3=!0}function VP(){return Ng!=="pointer"}function Mde(){if(!Tde()||jP)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Oc=!0,e.apply(this,n)},document.addEventListener("keydown",BP,!0),document.addEventListener("keyup",BP,!0),document.addEventListener("click",Ade,!0),window.addEventListener("focus",Ide,!0),window.addEventListener("blur",Lde,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_d,!0),document.addEventListener("pointermove",_d,!0),document.addEventListener("pointerup",_d,!0)):(document.addEventListener("mousedown",_d,!0),document.addEventListener("mousemove",_d,!0),document.addEventListener("mouseup",_d,!0)),jP=!0}function Dde(e){Mde(),e(VP());const t=()=>e(VP());return U3.add(t),()=>{U3.delete(t)}}function Nde(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Fde(e={}){const t=rN(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:a,id:o,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:f,isChecked:h,isFocusable:p,onChange:v,isIndeterminate:y,name:m,value:_,tabIndex:b=void 0,"aria-label":S,"aria-labelledby":C,"aria-invalid":E,...R}=e,A=Nde(R,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),I=au(v),M=au(s),F=au(l),[z,Y]=w.useState(!1),[W,q]=w.useState(!1),[ae,ee]=w.useState(!1),[ce,ue]=w.useState(!1);w.useEffect(()=>Dde(Y),[]);const J=w.useRef(null),[me,we]=w.useState(!0),[Ce,Ee]=w.useState(!!f),xe=h!==void 0,ye=xe?h:Ce,Le=w.useCallback(Te=>{if(r||n){Te.preventDefault();return}xe||Ee(ye?Te.target.checked:y?!0:Te.target.checked),I==null||I(Te)},[r,n,ye,xe,y,I]);rs(()=>{J.current&&(J.current.indeterminate=!!y)},[y]),qf(()=>{n&&q(!1)},[n,q]),rs(()=>{const Te=J.current;if(!(Te!=null&&Te.form))return;const yt=()=>{Ee(!!f)};return Te.form.addEventListener("reset",yt),()=>{var B;return(B=Te.form)==null?void 0:B.removeEventListener("reset",yt)}},[]);const Ae=n&&!p,it=w.useCallback(Te=>{Te.key===" "&&ue(!0)},[ue]),Ye=w.useCallback(Te=>{Te.key===" "&&ue(!1)},[ue]);rs(()=>{if(!J.current)return;J.current.checked!==ye&&Ee(J.current.checked)},[J.current]);const nt=w.useCallback((Te={},yt=null)=>{const B=X=>{W&&X.preventDefault(),ue(!0)};return{...Te,ref:yt,"data-active":cn(ce),"data-hover":cn(ae),"data-checked":cn(ye),"data-focus":cn(W),"data-focus-visible":cn(W&&z),"data-indeterminate":cn(y),"data-disabled":cn(n),"data-invalid":cn(a),"data-readonly":cn(r),"aria-hidden":!0,onMouseDown:xn(Te.onMouseDown,B),onMouseUp:xn(Te.onMouseUp,()=>ue(!1)),onMouseEnter:xn(Te.onMouseEnter,()=>ee(!0)),onMouseLeave:xn(Te.onMouseLeave,()=>ee(!1))}},[ce,ye,n,W,z,ae,y,a,r]),wt=w.useCallback((Te={},yt=null)=>({...Te,ref:yt,"data-active":cn(ce),"data-hover":cn(ae),"data-checked":cn(ye),"data-focus":cn(W),"data-focus-visible":cn(W&&z),"data-indeterminate":cn(y),"data-disabled":cn(n),"data-invalid":cn(a),"data-readonly":cn(r)}),[ce,ye,n,W,z,ae,y,a,r]),Dt=w.useCallback((Te={},yt=null)=>({...A,...Te,ref:Pi(yt,B=>{B&&we(B.tagName==="LABEL")}),onClick:xn(Te.onClick,()=>{var B;me||((B=J.current)==null||B.click(),requestAnimationFrame(()=>{var X;(X=J.current)==null||X.focus({preventScroll:!0})}))}),"data-disabled":cn(n),"data-checked":cn(ye),"data-invalid":cn(a)}),[A,n,ye,a,me]),Nt=w.useCallback((Te={},yt=null)=>({...Te,ref:Pi(J,yt),type:"checkbox",name:m,value:_,id:o,tabIndex:b,onChange:xn(Te.onChange,Le),onBlur:xn(Te.onBlur,M,()=>q(!1)),onFocus:xn(Te.onFocus,F,()=>q(!0)),onKeyDown:xn(Te.onKeyDown,it),onKeyUp:xn(Te.onKeyUp,Ye),required:i,checked:ye,disabled:Ae,readOnly:r,"aria-label":S,"aria-labelledby":C,"aria-invalid":E?!!E:a,"aria-describedby":c,"aria-disabled":n,style:kde}),[m,_,o,Le,M,F,it,Ye,i,ye,Ae,r,S,C,E,a,c,n,b]),Sn=w.useCallback((Te={},yt=null)=>({...Te,ref:yt,onMouseDown:xn(Te.onMouseDown,$de),"data-disabled":cn(n),"data-checked":cn(ye),"data-invalid":cn(a)}),[ye,n,a]);return{state:{isInvalid:a,isFocused:W,isChecked:ye,isActive:ce,isHovered:ae,isIndeterminate:y,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:Dt,getCheckboxProps:nt,getIndicatorProps:wt,getInputProps:Nt,getLabelProps:Sn,htmlProps:A}}function $de(e){e.preventDefault(),e.stopPropagation()}var zde={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},jde={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Bde=Ro({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Vde=Ro({from:{opacity:0},to:{opacity:1}}),Ude=Ro({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),K4=Xe(function(t,n){const r=hde(),i={...r,...t},a=Pr("Checkbox",i),o=_r(t),{spacing:s="0.5rem",className:l,children:c,iconColor:f,iconSize:h,icon:p=T.jsx(vde,{}),isChecked:v,isDisabled:y=r==null?void 0:r.isDisabled,onChange:m,inputProps:_,...b}=o;let S=v;r!=null&&r.value&&o.value&&(S=r.value.includes(o.value));let C=m;r!=null&&r.onChange&&o.value&&(C=WL(r.onChange,m));const{state:E,getInputProps:R,getCheckboxProps:A,getLabelProps:I,getRootProps:M}=Fde({...b,isDisabled:y,isChecked:S,onChange:C}),F=pde(E.isChecked),z=w.useMemo(()=>({animation:F?E.isIndeterminate?`${Vde} 20ms linear, ${Ude} 200ms linear`:`${Bde} 200ms linear`:void 0,fontSize:h,color:f,...a.icon}),[f,h,F,E.isIndeterminate,a.icon]),Y=w.cloneElement(p,{__css:z,isIndeterminate:E.isIndeterminate,isChecked:E.isChecked});return T.jsxs(je.label,{__css:{...jde,...a.container},className:At("chakra-checkbox",l),...M(),children:[T.jsx("input",{className:"chakra-checkbox__input",...R(_,n)}),T.jsx(je.span,{__css:{...zde,...a.control},className:"chakra-checkbox__control",...A(),children:Y}),c&&T.jsx(je.span,{className:"chakra-checkbox__label",...I(),__css:{marginStart:s,...a.label},children:c})]})});K4.displayName="Checkbox";function Y4(e,t,n,r){const i=au(n);return w.useEffect(()=>{const a=typeof e=="function"?e():e??document;if(!(!n||!a))return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,i,r)}}function Hde(e){return"current"in e}var iN=()=>typeof window<"u";function Wde(){var e;const t=navigator.userAgentData;return(e=t==null?void 0:t.platform)!=null?e:navigator.platform}var qde=e=>iN()&&e.test(navigator.vendor),Gde=e=>iN()&&e.test(Wde()),Kde=()=>Gde(/mac|iphone|ipad|ipod/i),Yde=()=>Kde()&&qde(/apple/i);function Zde(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var a,o;return(o=(a=t.current)==null?void 0:a.ownerDocument)!=null?o:document};Y4(i,"pointerdown",a=>{if(!Yde()||!r)return;const o=a.target,l=(n??[t]).some(c=>{const f=Hde(c)?c.current:c;return(f==null?void 0:f.contains(o))||f===o});i().activeElement!==o&&l&&(a.preventDefault(),o.focus())})}function aN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var H3="data-focus-lock",oN="data-focus-lock-disabled",Qde="data-no-focus-lock",Xde="data-autofocus-inside",Jde="data-no-autofocus";function efe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tfe(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function sN(e,t){return tfe(t||null,function(n){return e.forEach(function(r){return efe(r,n)})})}var fw={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Zo=function(){return Zo=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Zo.apply(this,arguments)};function lN(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function nfe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function uN(e){return e}function cN(e,t){t===void 0&&(t=uN);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(a),o=n}var l=function(){var f=o;o=[],f.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(f){o.push(f),c()},filter:function(f){return o=o.filter(f),n}}}};return i}function Z4(e,t){return t===void 0&&(t=uN),cN(e,t)}function dN(e){e===void 0&&(e={});var t=cN(null);return t.options=Zo({async:!0,ssr:!1},e),t}var fN=function(e){var t=e.sideCar,n=lN(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,Zo({},n))};fN.isSideCarExport=!0;function rfe(e,t){return e.useMedium(t),fN}var hN=Z4({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),pN=Z4(),ife=Z4(),afe=dN({async:!0}),ofe=[],Q4=w.forwardRef(function(t,n){var r,i=w.useState(),a=i[0],o=i[1],s=w.useRef(),l=w.useRef(!1),c=w.useRef(null),f=t.children,h=t.disabled,p=t.noFocusGuards,v=t.persistentFocus,y=t.crossFrame,m=t.autoFocus;t.allowTextSelection;var _=t.group,b=t.className,S=t.whiteList,C=t.hasPositiveIndices,E=t.shards,R=E===void 0?ofe:E,A=t.as,I=A===void 0?"div":A,M=t.lockProps,F=M===void 0?{}:M,z=t.sideCar,Y=t.returnFocus,W=t.focusOptions,q=t.onActivation,ae=t.onDeactivation,ee=w.useState({}),ce=ee[0],ue=w.useCallback(function(){c.current=c.current||document&&document.activeElement,s.current&&q&&q(s.current),l.current=!0},[q]),J=w.useCallback(function(){l.current=!1,ae&&ae(s.current)},[ae]);w.useEffect(function(){h||(c.current=null)},[]);var me=w.useCallback(function(it){var Ye=c.current;if(Ye&&Ye.focus){var nt=typeof Y=="function"?Y(Ye):Y;if(nt){var wt=typeof nt=="object"?nt:void 0;c.current=null,it?Promise.resolve().then(function(){return Ye.focus(wt)}):Ye.focus(wt)}}},[Y]),we=w.useCallback(function(it){l.current&&hN.useMedium(it)},[]),Ce=pN.useMedium,Ee=w.useCallback(function(it){s.current!==it&&(s.current=it,o(it))},[]),xe=Je((r={},r[oN]=h&&"disabled",r[H3]=_,r),F),ye=p!==!0,Le=ye&&p!=="tail",Ae=sN([n,Ee]);return w.createElement(w.Fragment,null,ye&&[w.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:fw}),C?w.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:fw}):null],!h&&w.createElement(z,{id:ce,sideCar:afe,observed:a,disabled:h,persistentFocus:v,crossFrame:y,autoFocus:m,whiteList:S,shards:R,onActivation:ue,onDeactivation:J,returnFocus:me,focusOptions:W}),w.createElement(I,Je({ref:Ae},xe,{className:b,onBlur:Ce,onFocus:we}),f),Le&&w.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:fw}))});Q4.propTypes={};Q4.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const mN=Q4;function x1(e,t){return x1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},x1(e,t)}function gN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,x1(e,t)}function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function sfe(e,t){if(nl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vN(e){var t=sfe(e,"string");return nl(t)==="symbol"?t:String(t)}function of(e,t,n){return t=vN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lfe(e,t){function n(r){return r.displayName||r.name||"Component"}return function(i){var a=[],o;function s(){o=e(a.map(function(c){return c.props})),t(o)}var l=function(c){gN(f,c);function f(){return c.apply(this,arguments)||this}f.peek=function(){return o};var h=f.prototype;return h.componentDidMount=function(){a.push(this),s()},h.componentDidUpdate=function(){s()},h.componentWillUnmount=function(){var v=a.indexOf(this);a.splice(v,1),s()},h.render=function(){return ve.createElement(i,this.props)},f}(w.PureComponent);return of(l,"displayName","SideEffect("+n(i)+")"),l}}var fs=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},C1=function(e){return Array.isArray(e)?e:[e]},yN=function(e){return Array.isArray(e)?e[0]:e},ufe=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},_N=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},bN=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},cfe=function(e,t){return!e||bN(e)||!ufe(e)&&t(_N(e))},SN=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=cfe(t,SN.bind(void 0,e));return e.set(t,r),r},dfe=function(e,t){return e&&!bN(e)?pfe(e)?t(_N(e)):!1:!0},wN=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=dfe(t,wN.bind(void 0,e));return e.set(t,r),r},xN=function(e){return e.dataset},ffe=function(e){return e.tagName==="BUTTON"},CN=function(e){return e.tagName==="INPUT"},EN=function(e){return CN(e)&&e.type==="radio"},hfe=function(e){return!((CN(e)||ffe(e))&&(e.type==="hidden"||e.disabled))},pfe=function(e){var t=e.getAttribute(Jde);return![!0,"true",""].includes(t)},X4=function(e){var t;return!!(e&&(!((t=xN(e))===null||t===void 0)&&t.focusGuard))},E1=function(e){return!X4(e)},mfe=function(e){return!!e},gfe=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},kN=function(e,t,n){return fs(e).map(function(r,i){return{node:r,index:i,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(gfe)},vfe=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],J4=vfe.join(","),yfe="".concat(J4,", [data-focus-guard]"),TN=function(e,t){return fs((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?yfe:J4)?[r]:[],TN(r))},[])},_fe=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Cb([e.contentDocument.body],t):[e]},Cb=function(e,t){return e.reduce(function(n,r){var i,a=TN(r,t),o=(i=[]).concat.apply(i,a.map(function(s){return _fe(s,t)}));return n.concat(o,r.parentNode?fs(r.parentNode.querySelectorAll(J4)).filter(function(s){return s===r}):[])},[])},bfe=function(e){var t=e.querySelectorAll("[".concat(Xde,"]"));return fs(t).map(function(n){return Cb([n])}).reduce(function(n,r){return n.concat(r)},[])},e6=function(e,t){return fs(e).filter(function(n){return SN(t,n)}).filter(function(n){return hfe(n)})},UP=function(e,t){return t===void 0&&(t=new Map),fs(e).filter(function(n){return wN(t,n)})},W3=function(e,t,n){return kN(e6(Cb(e,n),t),!0,n)},HP=function(e,t){return kN(e6(Cb(e),t),!1)},Sfe=function(e,t){return e6(bfe(e),t)},kf=function(e,t){return e.shadowRoot?kf(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:fs(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?kf(i,t):!1}return kf(n,t)})},wfe=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var a=e[r].compareDocumentPosition(e[i]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(o,s){return!t.has(s)})},PN=function(e){return e.parentNode?PN(e.parentNode):e},t6=function(e){var t=C1(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(H3);return n.push.apply(n,i?wfe(fs(PN(r).querySelectorAll("[".concat(H3,'="').concat(i,'"]:not([').concat(oN,'="disabled"])')))):[r]),n},[])},xfe=function(e){try{return e()}catch{return}},Ym=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ym(t.shadowRoot):t instanceof HTMLIFrameElement&&xfe(function(){return t.contentWindow.document})?Ym(t.contentWindow.document):t}},Cfe=function(e,t){return e===t},Efe=function(e,t){return!!fs(e.querySelectorAll("iframe")).some(function(n){return Cfe(n,t)})},ON=function(e,t){return t===void 0&&(t=Ym(yN(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:t6(e).some(function(n){return kf(n,t)||Efe(n,t)})},kfe=function(e){e===void 0&&(e=document);var t=Ym(e);return t?fs(e.querySelectorAll("[".concat(Qde,"]"))).some(function(n){return kf(n,t)}):!1},Tfe=function(e,t){return t.filter(EN).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},n6=function(e,t){return EN(e)&&e.name?Tfe(e,t):e},Pfe=function(e){var t=new Set;return e.forEach(function(n){return t.add(n6(n,e))}),e.filter(function(n){return t.has(n)})},WP=function(e){return e[0]&&e.length>1?n6(e[0],e):e[0]},qP=function(e,t){return e.length>1?e.indexOf(n6(e[t],e)):t},RN="NEW_FOCUS",Ofe=function(e,t,n,r){var i=e.length,a=e[0],o=e[i-1],s=X4(n);if(!(n&&e.indexOf(n)>=0)){var l=n!==void 0?t.indexOf(n):-1,c=r?t.indexOf(r):l,f=r?e.indexOf(r):-1,h=l-c,p=t.indexOf(a),v=t.indexOf(o),y=Pfe(t),m=n!==void 0?y.indexOf(n):-1,_=m-(r?y.indexOf(r):l),b=qP(e,0),S=qP(e,i-1);if(l===-1||f===-1)return RN;if(!h&&f>=0)return f;if(l<=p&&s&&Math.abs(h)>1)return S;if(l>=v&&s&&Math.abs(h)>1)return b;if(h&&Math.abs(_)>1)return f;if(l<=p)return S;if(l>v)return b;if(h)return Math.abs(h)>1?f:(i+f+h)%i}},Rfe=function(e){return function(t){var n,r=(n=xN(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},Afe=function(e,t,n){var r=e.map(function(a){var o=a.node;return o}),i=UP(r.filter(Rfe(n)));return i&&i.length?WP(i):WP(UP(t))},q3=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&q3(e.parentNode.host||e.parentNode,t),t},hw=function(e,t){for(var n=q3(e),r=q3(t),i=0;i<n.length;i+=1){var a=n[i];if(r.indexOf(a)>=0)return a}return!1},AN=function(e,t,n){var r=C1(e),i=C1(t),a=r[0],o=!1;return i.filter(Boolean).forEach(function(s){o=hw(o||s,s)||o,n.filter(Boolean).forEach(function(l){var c=hw(a,l);c&&(!o||kf(c,o)?o=c:o=hw(c,o))})}),o},Ife=function(e,t){return e.reduce(function(n,r){return n.concat(Sfe(r,t))},[])},Lfe=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(mfe)},Mfe=function(e,t){var n=Ym(C1(e).length>0?document:yN(e).ownerDocument),r=t6(e).filter(E1),i=AN(n||e,e,r),a=new Map,o=HP(r,a),s=W3(r,a).filter(function(v){var y=v.node;return E1(y)});if(!(!s[0]&&(s=o,!s[0]))){var l=HP([i],a).map(function(v){var y=v.node;return y}),c=Lfe(l,s),f=c.map(function(v){var y=v.node;return y}),h=Ofe(f,l,n,t);if(h===RN){var p=Afe(o,f,Ife(r,a));if(p)return{node:p};console.warn("focus-lock: cannot find any node to move focus into");return}return h===void 0?h:c[h]}},Dfe=function(e){var t=t6(e).filter(E1),n=AN(e,e,t),r=new Map,i=W3([n],r,!0),a=W3(t,r).filter(function(o){var s=o.node;return E1(s)}).map(function(o){var s=o.node;return s});return i.map(function(o){var s=o.node,l=o.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:X4(s)}})},Nfe=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},pw=0,mw=!1,IN=function(e,t,n){n===void 0&&(n={});var r=Mfe(e,t);if(!mw&&r){if(pw>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),mw=!0,setTimeout(function(){mw=!1},1);return}pw++,Nfe(r.node,n.focusOptions),pw--}};function r6(e){setTimeout(e,1)}var Ffe=function(){return document&&document.activeElement===document.body},$fe=function(){return Ffe()||kfe()},Tf=null,sf=null,Pf=null,Zm=!1,zfe=function(){return!0},jfe=function(t){return(Tf.whiteList||zfe)(t)},Bfe=function(t,n){Pf={observerNode:t,portaledElement:n}},Vfe=function(t){return Pf&&Pf.portaledElement===t};function GP(e,t,n,r){var i=null,a=e;do{var o=r[a];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var Ufe=function(t){return t&&"current"in t?t.current:t},Hfe=function(t){return t?!!Zm:Zm==="meanwhile"},Wfe=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},qfe=function(t,n){return n.some(function(r){return Wfe(t,r,r)})},k1=function(){var t=!1;if(Tf){var n=Tf,r=n.observed,i=n.persistentFocus,a=n.autoFocus,o=n.shards,s=n.crossFrame,l=n.focusOptions,c=r||Pf&&Pf.portaledElement,f=document&&document.activeElement;if(c){var h=[c].concat(o.map(Ufe).filter(Boolean));if((!f||jfe(f))&&(i||Hfe(s)||!$fe()||!sf&&a)&&(c&&!(ON(h)||f&&qfe(f,h)||Vfe(f))&&(document&&!sf&&f&&!a?(f.blur&&f.blur(),document.body.focus()):(t=IN(h,sf,{focusOptions:l}),Pf={})),Zm=!1,sf=document&&document.activeElement),document){var p=document&&document.activeElement,v=Dfe(h),y=v.map(function(m){var _=m.node;return _}).indexOf(p);y>-1&&(v.filter(function(m){var _=m.guard,b=m.node;return _&&b.dataset.focusAutoGuard}).forEach(function(m){var _=m.node;return _.removeAttribute("tabIndex")}),GP(y,v.length,1,v),GP(y,-1,-1,v))}}}return t},LN=function(t){k1()&&t&&(t.stopPropagation(),t.preventDefault())},i6=function(){return r6(k1)},Gfe=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||Bfe(r,n)},Kfe=function(){return null},MN=function(){Zm="just",r6(function(){Zm="meanwhile"})},Yfe=function(){document.addEventListener("focusin",LN),document.addEventListener("focusout",i6),window.addEventListener("blur",MN)},Zfe=function(){document.removeEventListener("focusin",LN),document.removeEventListener("focusout",i6),window.removeEventListener("blur",MN)};function Qfe(e){return e.filter(function(t){var n=t.disabled;return!n})}function Xfe(e){var t=e.slice(-1)[0];t&&!Tf&&Yfe();var n=Tf,r=n&&t&&t.id===n.id;Tf=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var a=i.id;return a===n.id}).length||n.returnFocus(!t)),t?(sf=null,(!r||n.observed!==t.observed)&&t.onActivation(),k1(),r6(k1)):(Zfe(),sf=null)}hN.assignSyncMedium(Gfe);pN.assignMedium(i6);ife.assignMedium(function(e){return e({moveFocusInside:IN,focusInside:ON})});const Jfe=lfe(Qfe,Xfe)(Kfe);var DN=w.forwardRef(function(t,n){return w.createElement(mN,Je({sideCar:Jfe,ref:n},t))}),NN=mN.propTypes||{};NN.sideCar;aN(NN,["sideCar"]);DN.propTypes={};const KP=DN;function FN(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function $N(e){var t;if(!FN(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function ehe(e){var t,n;return(n=(t=zN(e))==null?void 0:t.defaultView)!=null?n:window}function zN(e){return FN(e)?e.ownerDocument:document}function the(e){return zN(e).activeElement}var jN=e=>e.hasAttribute("tabindex"),nhe=e=>jN(e)&&e.tabIndex===-1;function rhe(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function BN(e){return e.parentElement&&BN(e.parentElement)?!0:e.hidden}function ihe(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function VN(e){if(!$N(e)||BN(e)||rhe(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():ihe(e)?!0:jN(e)}function ahe(e){return e?$N(e)&&VN(e)&&!nhe(e):!1}var ohe=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],she=ohe.join(),lhe=e=>e.offsetWidth>0&&e.offsetHeight>0;function UN(e){const t=Array.from(e.querySelectorAll(she));return t.unshift(e),t.filter(n=>VN(n)&&lhe(n))}var YP,uhe=(YP=KP.default)!=null?YP:KP,HN=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:a,isDisabled:o,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,f=w.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&UN(r.current).length===0&&requestAnimationFrame(()=>{var y;(y=r.current)==null||y.focus()})},[t,r]),h=w.useCallback(()=>{var v;(v=n==null?void 0:n.current)==null||v.focus()},[n]),p=i&&!n;return T.jsx(uhe,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:o,onActivation:f,onDeactivation:h,returnFocus:p,children:a})};HN.displayName="FocusLock";var che=Oae?w.useLayoutEffect:w.useEffect;function ZP(e,t=[]){const n=w.useRef(e);return che(()=>{n.current=e}),w.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function dhe(e,t){const n=w.useId();return w.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function fhe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function WN(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,a=ZP(n),o=ZP(t),[s,l]=w.useState(e.defaultIsOpen||!1),[c,f]=fhe(r,s),h=dhe(i,"disclosure"),p=w.useCallback(()=>{c||l(!1),o==null||o()},[c,o]),v=w.useCallback(()=>{c||l(!0),a==null||a()},[c,a]),y=w.useCallback(()=>{(f?p:v)()},[f,v,p]);return{isOpen:!!f,onOpen:v,onClose:p,onToggle:y,isControlled:c,getButtonProps:(m={})=>({...m,"aria-expanded":f,"aria-controls":h,onClick:Mae(m.onClick,y)}),getDisclosureProps:(m={})=>({...m,hidden:!f,id:h})}}var T1=Xe(function(t,n){const r=Xa("Link",t),{className:i,isExternal:a,...o}=_r(t);return T.jsx(je.a,{target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:n,className:At("chakra-link",i),...o,__css:r})});T1.displayName="Link";var[hhe,qN]=lr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),Eb=Xe(function(t,n){const r=Pr("List",t),{children:i,styleType:a="none",stylePosition:o,spacing:s,...l}=_r(t),c=QD(i),h=s?{["& > *:not(style) ~ *:not(style)"]:{mt:s}}:{};return T.jsx(hhe,{value:r,children:T.jsx(je.ul,{ref:n,listStyleType:a,listStylePosition:o,role:"list",__css:{...r.container,...h},...l,children:c})})});Eb.displayName="List";var phe=Xe((e,t)=>{const{as:n,...r}=e;return T.jsx(Eb,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});phe.displayName="OrderedList";var mhe=Xe(function(t,n){const{as:r,...i}=t;return T.jsx(Eb,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});mhe.displayName="UnorderedList";var GN=Xe(function(t,n){const r=qN();return T.jsx(je.li,{ref:n,...t,__css:r.item})});GN.displayName="ListItem";var KN=Xe(function(t,n){const r=qN();return T.jsx(Wt,{ref:n,role:"presentation",...t,__css:r.icon})});KN.displayName="ListIcon";var a6=Xe(function(t,n){const{templateAreas:r,gap:i,rowGap:a,columnGap:o,column:s,row:l,autoFlow:c,autoRows:f,templateRows:h,autoColumns:p,templateColumns:v,...y}=t,m={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:a,gridColumnGap:o,gridAutoColumns:p,gridColumn:s,gridRow:l,gridAutoFlow:c,gridAutoRows:f,gridTemplateRows:h,gridTemplateColumns:v};return T.jsx(je.div,{ref:n,__css:m,...y})});a6.displayName="Grid";var YN=Object.freeze(["base","sm","md","lg","xl","2xl"]);function kb(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Qi(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function ghe(e,t=YN){const n={};return e.forEach((r,i)=>{const a=t[i];r!=null&&(n[a]=r)}),n}var ZN=Xe(function(t,n){const{columns:r,spacingX:i,spacingY:a,spacing:o,minChildWidth:s,...l}=t,c=ol(),f=s?yhe(s,c):_he(r);return T.jsx(a6,{ref:n,gap:o,columnGap:i,rowGap:a,templateColumns:f,...l})});ZN.displayName="SimpleGrid";function vhe(e){return typeof e=="number"?`${e}px`:e}function yhe(e,t){return kb(e,n=>{const r=HL("sizes",n,vhe(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function _he(e){return kb(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var QN=je("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});QN.displayName="Spacer";var Ot=Xe(function(t,n){const r=Xa("Text",t),{className:i,align:a,decoration:o,casing:s,...l}=_r(t),c=_M({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return T.jsx(je.p,{ref:n,className:At("chakra-text",t.className),...c,...l,__css:r})});Ot.displayName="Text";var o6=e=>T.jsx(je.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});o6.displayName="StackDivider";var XN=e=>T.jsx(je.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});XN.displayName="StackItem";function bhe(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":kb(n,i=>r[i])}}var Fg=Xe((e,t)=>{const{isInline:n,direction:r,align:i,justify:a,spacing:o="0.5rem",wrap:s,children:l,divider:c,className:f,shouldWrapChildren:h,...p}=e,v=n?"row":r??"column",y=w.useMemo(()=>bhe({spacing:o,direction:v}),[o,v]),m=!!c,_=!h&&!m,b=w.useMemo(()=>{const C=QD(l);return _?C:C.map((E,R)=>{const A=typeof E.key<"u"?E.key:R,I=R+1===C.length,F=h?T.jsx(XN,{children:E},A):E;if(!m)return F;const z=w.cloneElement(c,{__css:y}),Y=I?null:z;return T.jsxs(w.Fragment,{children:[F,Y]},A)})},[c,y,m,_,h,l]),S=At("chakra-stack",f);return T.jsx(je.div,{ref:t,display:"flex",alignItems:i,justifyContent:a,flexDirection:v,flexWrap:s,gap:m?void 0:o,className:S,...p,children:b})});Fg.displayName="Stack";var vh=Xe((e,t)=>T.jsx(Fg,{align:"center",...e,direction:"column",ref:t}));vh.displayName="VStack";var $g=Xe((e,t)=>T.jsx(Fg,{align:"center",...e,direction:"row",ref:t}));$g.displayName="HStack";function QP(e){return kb(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Vp=Xe(function(t,n){const{area:r,colSpan:i,colStart:a,colEnd:o,rowEnd:s,rowSpan:l,rowStart:c,...f}=t,h=_M({gridArea:r,gridColumn:QP(i),gridRow:QP(l),gridColumnStart:a,gridColumnEnd:o,gridRowStart:c,gridRowEnd:s});return T.jsx(je.div,{ref:n,__css:h,...f})});Vp.displayName="GridItem";var JN=Xe(function(t,n){const r=Xa("Heading",t),{className:i,...a}=_r(t);return T.jsx(je.h2,{ref:n,className:At("chakra-heading",t.className),...a,__css:r})});JN.displayName="Heading";var $e=je("div");$e.displayName="Box";var eF=Xe(function(t,n){const{size:r,centerContent:i=!0,...a}=t,o=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return T.jsx($e,{ref:n,boxSize:r,__css:{...o,flexShrink:0,flexGrow:0},...a})});eF.displayName="Square";var She=Xe(function(t,n){const{size:r,...i}=t;return T.jsx(eF,{size:r,ref:n,borderRadius:"9999px",...i})});She.displayName="Circle";var hu=je("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});hu.displayName="Center";var whe={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Xe(function(t,n){const{axis:r="both",...i}=t;return T.jsx(je.div,{ref:n,__css:whe[r],...i,position:"absolute"})});var tF=Xe(function(t,n){const{className:r,centerContent:i,...a}=_r(t),o=Xa("Container",t);return T.jsx(je.div,{ref:n,className:At("chakra-container",r),...a,__css:{...o,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});tF.displayName="Container";var nF=Xe(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:a,borderRightWidth:o,borderWidth:s,borderStyle:l,borderColor:c,...f}=Xa("Divider",t),{className:h,orientation:p="horizontal",__css:v,...y}=_r(t),m={vertical:{borderLeftWidth:r||o||s||"1px",height:"100%"},horizontal:{borderBottomWidth:i||a||s||"1px",width:"100%"}};return T.jsx(je.hr,{ref:n,"aria-orientation":p,...y,__css:{...f,border:"0",borderColor:c,borderStyle:l,...m[p],...v},className:At("chakra-divider",h)})});nF.displayName="Divider";var fi=Xe(function(t,n){const{direction:r,align:i,justify:a,wrap:o,basis:s,grow:l,shrink:c,...f}=t,h={display:"flex",flexDirection:r,alignItems:i,justifyContent:a,flexWrap:o,flexBasis:s,flexGrow:l,flexShrink:c};return T.jsx(je.div,{ref:n,__css:h,...f})});fi.displayName="Flex";function xhe(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=aoe(),a=Array.isArray(e)?e:[e];let o=Array.isArray(r)?r:[r];o=o.filter(c=>c!=null);const[s,l]=w.useState(()=>a.map((c,f)=>({media:c,matches:n?!!o[f]:i().matchMedia(c).matches})));return w.useEffect(()=>{const c=i();l(a.map(p=>({media:p,matches:c.matchMedia(p).matches})));const f=a.map(p=>c.matchMedia(p)),h=p=>{l(v=>v.slice().map(y=>y.media===p.media?{...y,matches:p.matches}:y))};return f.forEach(p=>{typeof p.addListener=="function"?p.addListener(h):p.addEventListener("change",h)}),()=>{f.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(h):p.removeEventListener("change",h)})}},[i]),s.map(c=>c.matches)}function Che(e,t,n=YN){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const a=n[i];if(e.hasOwnProperty(a)){r=i;break}i-=1}if(r!==-1){const a=n[r];return e[a]}}function Ehe(e){var t,n;const r=Qi(e)?e:{fallback:e??"base"},a=ol().__breakpoints.details.map(({minMaxQuery:c,breakpoint:f})=>({breakpoint:f,query:c.replace("@media screen and ","")})),o=a.map(c=>c.breakpoint===r.fallback),l=xhe(a.map(c=>c.query),{fallback:o,ssr:r.ssr}).findIndex(c=>c==!0);return(n=(t=a[l])==null?void 0:t.breakpoint)!=null?n:r.fallback}function khe(e,t){var n;const r=Qi(t)?t:{fallback:t??"base"},i=Ehe(r),a=ol();if(!i)return;const o=Array.from(((n=a.__breakpoints)==null?void 0:n.keys)||[]),s=Array.isArray(e)?Object.fromEntries(Object.entries(ghe(e,o)).map(([l,c])=>[l,c])):e;return Che(s,i,o)}function The(e){const t=e.current;if(!t)return!1;const n=the(t);return!n||t.contains(n)?!1:!!ahe(n)}function rF(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,a=n&&!r;qf(()=>{if(!a||The(e))return;const o=(i==null?void 0:i.current)||e.current;let s;if(o)return s=requestAnimationFrame(()=>{o.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[a,e,i])}var Phe={preventScroll:!0,shouldFocus:!1};function Ohe(e,t=Phe){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:a}=t,o=Rhe(e)?e.current:e,s=i&&a,l=w.useRef(s),c=w.useRef(a);rs(()=>{!c.current&&a&&(l.current=s),c.current=a},[a,s]);const f=w.useCallback(()=>{if(!(!a||!o||!l.current)&&(l.current=!1,!o.contains(document.activeElement)))if(n!=null&&n.current)requestAnimationFrame(()=>{var h;(h=n.current)==null||h.focus({preventScroll:r})});else{const h=UN(o);h.length>0&&requestAnimationFrame(()=>{h[0].focus({preventScroll:r})})}},[a,r,o,n]);qf(()=>{f()},[f]),Y4(o,"transitionend",f)}function Rhe(e){return"current"in e}var bd=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),di={arrowShadowColor:bd("--popper-arrow-shadow-color"),arrowSize:bd("--popper-arrow-size","8px"),arrowSizeHalf:bd("--popper-arrow-size-half"),arrowBg:bd("--popper-arrow-bg"),transformOrigin:bd("--popper-transform-origin"),arrowOffset:bd("--popper-arrow-offset")};function Ahe(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var Ihe={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Lhe=e=>Ihe[e],XP={scroll:!0,resize:!0};function Mhe(e){let t;return typeof e=="object"?t={enabled:!0,options:{...XP,...e}}:t={enabled:e,options:XP},t}var Dhe={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},Nhe={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{JP(e)},effect:({state:e})=>()=>{JP(e)}},JP=e=>{e.elements.popper.style.setProperty(di.transformOrigin.var,Lhe(e.placement))},Fhe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{$he(e)}},$he=e=>{var t;if(!e.placement)return;const n=zhe(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:di.arrowSize.varRef,height:di.arrowSize.varRef,zIndex:-1});const r={[di.arrowSizeHalf.var]:`calc(${di.arrowSize.varRef} / 2 - 1px)`,[di.arrowOffset.var]:`calc(${di.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},zhe=e=>{if(e.startsWith("top"))return{property:"bottom",value:di.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:di.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:di.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:di.arrowOffset.varRef}},jhe={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{e9(e)},effect:({state:e})=>()=>{e9(e)}},e9=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=Ahe(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:di.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},Bhe={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Vhe={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Uhe(e,t="ltr"){var n,r;const i=((n=Bhe[e])==null?void 0:n[t])||e;return t==="ltr"?i:(r=Vhe[e])!=null?r:i}var Xi="top",Ya="bottom",Za="right",Ji="left",s6="auto",zg=[Xi,Ya,Za,Ji],Yf="start",Qm="end",Hhe="clippingParents",iF="viewport",vp="popper",Whe="reference",t9=zg.reduce(function(e,t){return e.concat([t+"-"+Yf,t+"-"+Qm])},[]),aF=[].concat(zg,[s6]).reduce(function(e,t){return e.concat([t,t+"-"+Yf,t+"-"+Qm])},[]),qhe="beforeRead",Ghe="read",Khe="afterRead",Yhe="beforeMain",Zhe="main",Qhe="afterMain",Xhe="beforeWrite",Jhe="write",epe="afterWrite",tpe=[qhe,Ghe,Khe,Yhe,Zhe,Qhe,Xhe,Jhe,epe];function ss(e){return e?(e.nodeName||"").toLowerCase():null}function ya(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rc(e){var t=ya(e).Element;return e instanceof t||e instanceof Element}function Wa(e){var t=ya(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function l6(e){if(typeof ShadowRoot>"u")return!1;var t=ya(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function npe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Wa(a)||!ss(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function rpe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,c){return l[c]="",l},{});!Wa(i)||!ss(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const ipe={name:"applyStyles",enabled:!0,phase:"write",fn:npe,effect:rpe,requires:["computeStyles"]};function os(e){return e.split("-")[0]}var yc=Math.max,P1=Math.min,Zf=Math.round;function G3(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function oF(){return!/^((?!chrome|android).)*safari/i.test(G3())}function Qf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Wa(e)&&(i=e.offsetWidth>0&&Zf(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Zf(r.height)/e.offsetHeight||1);var o=Rc(e)?ya(e):window,s=o.visualViewport,l=!oF()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/a,h=r.width/i,p=r.height/a;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function u6(e){var t=Qf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&l6(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rl(e){return ya(e).getComputedStyle(e)}function ape(e){return["table","td","th"].indexOf(ss(e))>=0}function Cu(e){return((Rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tb(e){return ss(e)==="html"?e:e.assignedSlot||e.parentNode||(l6(e)?e.host:null)||Cu(e)}function n9(e){return!Wa(e)||rl(e).position==="fixed"?null:e.offsetParent}function ope(e){var t=/firefox/i.test(G3()),n=/Trident/i.test(G3());if(n&&Wa(e)){var r=rl(e);if(r.position==="fixed")return null}var i=Tb(e);for(l6(i)&&(i=i.host);Wa(i)&&["html","body"].indexOf(ss(i))<0;){var a=rl(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function jg(e){for(var t=ya(e),n=n9(e);n&&ape(n)&&rl(n).position==="static";)n=n9(n);return n&&(ss(n)==="html"||ss(n)==="body"&&rl(n).position==="static")?t:n||ope(e)||t}function c6(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cm(e,t,n){return yc(e,P1(t,n))}function spe(e,t,n){var r=cm(e,t,n);return r>n?n:r}function lF(){return{top:0,right:0,bottom:0,left:0}}function uF(e){return Object.assign({},lF(),e)}function cF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lpe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uF(typeof t!="number"?t:cF(t,zg))};function upe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=os(n.placement),l=c6(s),c=[Ji,Za].indexOf(s)>=0,f=c?"height":"width";if(!(!a||!o)){var h=lpe(i.padding,n),p=u6(a),v=l==="y"?Xi:Ji,y=l==="y"?Ya:Za,m=n.rects.reference[f]+n.rects.reference[l]-o[l]-n.rects.popper[f],_=o[l]-n.rects.reference[l],b=jg(a),S=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,C=m/2-_/2,E=h[v],R=S-p[f]-h[y],A=S/2-p[f]/2+C,I=cm(E,A,R),M=l;n.modifiersData[r]=(t={},t[M]=I,t.centerOffset=I-A,t)}}function cpe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||sF(t.elements.popper,i)&&(t.elements.arrow=i))}const dpe={name:"arrow",enabled:!0,phase:"main",fn:upe,effect:cpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xf(e){return e.split("-")[1]}var fpe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hpe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zf(n*i)/i||0,y:Zf(r*i)/i||0}}function r9(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=o.x,v=p===void 0?0:p,y=o.y,m=y===void 0?0:y,_=typeof f=="function"?f({x:v,y:m}):{x:v,y:m};v=_.x,m=_.y;var b=o.hasOwnProperty("x"),S=o.hasOwnProperty("y"),C=Ji,E=Xi,R=window;if(c){var A=jg(n),I="clientHeight",M="clientWidth";if(A===ya(n)&&(A=Cu(n),rl(A).position!=="static"&&s==="absolute"&&(I="scrollHeight",M="scrollWidth")),A=A,i===Xi||(i===Ji||i===Za)&&a===Qm){E=Ya;var F=h&&A===R&&R.visualViewport?R.visualViewport.height:A[I];m-=F-r.height,m*=l?1:-1}if(i===Ji||(i===Xi||i===Ya)&&a===Qm){C=Za;var z=h&&A===R&&R.visualViewport?R.visualViewport.width:A[M];v-=z-r.width,v*=l?1:-1}}var Y=Object.assign({position:s},c&&fpe),W=f===!0?hpe({x:v,y:m},ya(n)):{x:v,y:m};if(v=W.x,m=W.y,l){var q;return Object.assign({},Y,(q={},q[E]=S?"0":"",q[C]=b?"0":"",q.transform=(R.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",q))}return Object.assign({},Y,(t={},t[E]=S?m+"px":"",t[C]=b?v+"px":"",t.transform="",t))}function ppe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:os(t.placement),variation:Xf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,r9(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,r9(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mpe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ppe,data:{}};var O0={passive:!0};function gpe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=ya(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",n.update,O0)}),s&&l.addEventListener("resize",n.update,O0),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",n.update,O0)}),s&&l.removeEventListener("resize",n.update,O0)}}const vpe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gpe,data:{}};var ype={left:"right",right:"left",bottom:"top",top:"bottom"};function by(e){return e.replace(/left|right|bottom|top/g,function(t){return ype[t]})}var _pe={start:"end",end:"start"};function i9(e){return e.replace(/start|end/g,function(t){return _pe[t]})}function d6(e){var t=ya(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function f6(e){return Qf(Cu(e)).left+d6(e).scrollLeft}function bpe(e,t){var n=ya(e),r=Cu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=oF();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+f6(e),y:l}}function Spe(e){var t,n=Cu(e),r=d6(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=yc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=yc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+f6(e),l=-r.scrollTop;return rl(i||n).direction==="rtl"&&(s+=yc(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function h6(e){var t=rl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function dF(e){return["html","body","#document"].indexOf(ss(e))>=0?e.ownerDocument.body:Wa(e)&&h6(e)?e:dF(Tb(e))}function dm(e,t){var n;t===void 0&&(t=[]);var r=dF(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ya(r),o=i?[a].concat(a.visualViewport||[],h6(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(dm(Tb(o)))}function K3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wpe(e,t){var n=Qf(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function a9(e,t,n){return t===iF?K3(bpe(e,n)):Rc(t)?wpe(t,n):K3(Spe(Cu(e)))}function xpe(e){var t=dm(Tb(e)),n=["absolute","fixed"].indexOf(rl(e).position)>=0,r=n&&Wa(e)?jg(e):e;return Rc(r)?t.filter(function(i){return Rc(i)&&sF(i,r)&&ss(i)!=="body"}):[]}function Cpe(e,t,n,r){var i=t==="clippingParents"?xpe(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var f=a9(e,c,r);return l.top=yc(f.top,l.top),l.right=P1(f.right,l.right),l.bottom=P1(f.bottom,l.bottom),l.left=yc(f.left,l.left),l},a9(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fF(e){var t=e.reference,n=e.element,r=e.placement,i=r?os(r):null,a=r?Xf(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Xi:l={x:o,y:t.y-n.height};break;case Ya:l={x:o,y:t.y+t.height};break;case Za:l={x:t.x+t.width,y:s};break;case Ji:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?c6(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case Yf:l[c]=l[c]-(t[f]/2-n[f]/2);break;case Qm:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function Xm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?Hhe:s,c=n.rootBoundary,f=c===void 0?iF:c,h=n.elementContext,p=h===void 0?vp:h,v=n.altBoundary,y=v===void 0?!1:v,m=n.padding,_=m===void 0?0:m,b=uF(typeof _!="number"?_:cF(_,zg)),S=p===vp?Whe:vp,C=e.rects.popper,E=e.elements[y?S:p],R=Cpe(Rc(E)?E:E.contextElement||Cu(e.elements.popper),l,f,o),A=Qf(e.elements.reference),I=fF({reference:A,element:C,strategy:"absolute",placement:i}),M=K3(Object.assign({},C,I)),F=p===vp?M:A,z={top:R.top-F.top+b.top,bottom:F.bottom-R.bottom+b.bottom,left:R.left-F.left+b.left,right:F.right-R.right+b.right},Y=e.modifiersData.offset;if(p===vp&&Y){var W=Y[i];Object.keys(z).forEach(function(q){var ae=[Za,Ya].indexOf(q)>=0?1:-1,ee=[Xi,Ya].indexOf(q)>=0?"y":"x";z[q]+=W[ee]*ae})}return z}function Epe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?aF:l,f=Xf(r),h=f?s?t9:t9.filter(function(y){return Xf(y)===f}):zg,p=h.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=h);var v=p.reduce(function(y,m){return y[m]=Xm(e,{placement:m,boundary:i,rootBoundary:a,padding:o})[os(m)],y},{});return Object.keys(v).sort(function(y,m){return v[y]-v[m]})}function kpe(e){if(os(e)===s6)return[];var t=by(e);return[i9(e),t,i9(t)]}function Tpe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,m=n.allowedAutoPlacements,_=t.options.placement,b=os(_),S=b===_,C=l||(S||!y?[by(_)]:kpe(_)),E=[_].concat(C).reduce(function(ye,Le){return ye.concat(os(Le)===s6?Epe(t,{placement:Le,boundary:f,rootBoundary:h,padding:c,flipVariations:y,allowedAutoPlacements:m}):Le)},[]),R=t.rects.reference,A=t.rects.popper,I=new Map,M=!0,F=E[0],z=0;z<E.length;z++){var Y=E[z],W=os(Y),q=Xf(Y)===Yf,ae=[Xi,Ya].indexOf(W)>=0,ee=ae?"width":"height",ce=Xm(t,{placement:Y,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),ue=ae?q?Za:Ji:q?Ya:Xi;R[ee]>A[ee]&&(ue=by(ue));var J=by(ue),me=[];if(a&&me.push(ce[W]<=0),s&&me.push(ce[ue]<=0,ce[J]<=0),me.every(function(ye){return ye})){F=Y,M=!1;break}I.set(Y,me)}if(M)for(var we=y?3:1,Ce=function(Le){var Ae=E.find(function(it){var Ye=I.get(it);if(Ye)return Ye.slice(0,Le).every(function(nt){return nt})});if(Ae)return F=Ae,"break"},Ee=we;Ee>0;Ee--){var xe=Ce(Ee);if(xe==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const Ppe={name:"flip",enabled:!0,phase:"main",fn:Tpe,requiresIfExists:["offset"],data:{_skip:!1}};function o9(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s9(e){return[Xi,Za,Ya,Ji].some(function(t){return e[t]>=0})}function Ope(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Xm(t,{elementContext:"reference"}),s=Xm(t,{altBoundary:!0}),l=o9(o,r),c=o9(s,i,a),f=s9(l),h=s9(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Rpe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ope};function Ape(e,t,n){var r=os(e),i=[Ji,Xi].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Ji,Za].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Ipe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=aF.reduce(function(f,h){return f[h]=Ape(h,t.rects,a),f},{}),s=o[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const Lpe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ipe};function Mpe(e){var t=e.state,n=e.name;t.modifiersData[n]=fF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Dpe={name:"popperOffsets",enabled:!0,phase:"read",fn:Mpe,data:{}};function Npe(e){return e==="x"?"y":"x"}function Fpe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,v=p===void 0?!0:p,y=n.tetherOffset,m=y===void 0?0:y,_=Xm(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),b=os(t.placement),S=Xf(t.placement),C=!S,E=c6(b),R=Npe(E),A=t.modifiersData.popperOffsets,I=t.rects.reference,M=t.rects.popper,F=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,z=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(A){if(a){var q,ae=E==="y"?Xi:Ji,ee=E==="y"?Ya:Za,ce=E==="y"?"height":"width",ue=A[E],J=ue+_[ae],me=ue-_[ee],we=v?-M[ce]/2:0,Ce=S===Yf?I[ce]:M[ce],Ee=S===Yf?-M[ce]:-I[ce],xe=t.elements.arrow,ye=v&&xe?u6(xe):{width:0,height:0},Le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lF(),Ae=Le[ae],it=Le[ee],Ye=cm(0,I[ce],ye[ce]),nt=C?I[ce]/2-we-Ye-Ae-z.mainAxis:Ce-Ye-Ae-z.mainAxis,wt=C?-I[ce]/2+we+Ye+it+z.mainAxis:Ee+Ye+it+z.mainAxis,Dt=t.elements.arrow&&jg(t.elements.arrow),Nt=Dt?E==="y"?Dt.clientTop||0:Dt.clientLeft||0:0,Sn=(q=Y==null?void 0:Y[E])!=null?q:0,Yt=ue+nt-Sn-Nt,Te=ue+wt-Sn,yt=cm(v?P1(J,Yt):J,ue,v?yc(me,Te):me);A[E]=yt,W[E]=yt-ue}if(s){var B,X=E==="x"?Xi:Ji,oe=E==="x"?Ya:Za,Se=A[R],_e=R==="y"?"height":"width",ge=Se+_[X],Ie=Se-_[oe],Ft=[Xi,Ji].indexOf(b)!==-1,Ge=(B=Y==null?void 0:Y[R])!=null?B:0,Kn=Ft?ge:Se-I[_e]-M[_e]-Ge+z.altAxis,Dn=Ft?Se+I[_e]+M[_e]-Ge-z.altAxis:Ie,rn=v&&Ft?spe(Kn,Se,Dn):cm(v?Kn:ge,Se,v?Dn:Ie);A[R]=rn,W[R]=rn-Se}t.modifiersData[r]=W}}const $pe={name:"preventOverflow",enabled:!0,phase:"main",fn:Fpe,requiresIfExists:["offset"]};function zpe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jpe(e){return e===ya(e)||!Wa(e)?d6(e):zpe(e)}function Bpe(e){var t=e.getBoundingClientRect(),n=Zf(t.width)/e.offsetWidth||1,r=Zf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Vpe(e,t,n){n===void 0&&(n=!1);var r=Wa(t),i=Wa(t)&&Bpe(t),a=Cu(t),o=Qf(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ss(t)!=="body"||h6(a))&&(s=jpe(t)),Wa(t)?(l=Qf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=f6(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Upe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function Hpe(e){var t=Upe(e);return tpe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Wpe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qpe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var l9={placement:"bottom",modifiers:[],strategy:"absolute"};function u9(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Gpe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?l9:i;return function(s,l,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},l9,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},h=[],p=!1,v={state:f,setOptions:function(b){var S=typeof b=="function"?b(f.options):b;m(),f.options=Object.assign({},a,f.options,S),f.scrollParents={reference:Rc(s)?dm(s):s.contextElement?dm(s.contextElement):[],popper:dm(l)};var C=Hpe(qpe([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(E){return E.enabled}),y(),v.update()},forceUpdate:function(){if(!p){var b=f.elements,S=b.reference,C=b.popper;if(u9(S,C)){f.rects={reference:Vpe(S,jg(C),f.options.strategy==="fixed"),popper:u6(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(z){return f.modifiersData[z.name]=Object.assign({},z.data)});for(var E=0;E<f.orderedModifiers.length;E++){if(f.reset===!0){f.reset=!1,E=-1;continue}var R=f.orderedModifiers[E],A=R.fn,I=R.options,M=I===void 0?{}:I,F=R.name;typeof A=="function"&&(f=A({state:f,options:M,name:F,instance:v})||f)}}}},update:Wpe(function(){return new Promise(function(_){v.forceUpdate(),_(f)})}),destroy:function(){m(),p=!0}};if(!u9(s,l))return v;v.setOptions(c).then(function(_){!p&&c.onFirstUpdate&&c.onFirstUpdate(_)});function y(){f.orderedModifiers.forEach(function(_){var b=_.name,S=_.options,C=S===void 0?{}:S,E=_.effect;if(typeof E=="function"){var R=E({state:f,name:b,instance:v,options:C}),A=function(){};h.push(R||A)}})}function m(){h.forEach(function(_){return _()}),h=[]}return v}}var Kpe=[vpe,Dpe,mpe,ipe,Lpe,Ppe,$pe,dpe,Rpe],Ype=Gpe({defaultModifiers:Kpe});function hF(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:a=8,eventListeners:o=!0,offset:s,gutter:l=8,flip:c=!0,boundary:f="clippingParents",preventOverflow:h=!0,matchWidth:p,direction:v="ltr"}=e,y=w.useRef(null),m=w.useRef(null),_=w.useRef(null),b=Uhe(r,v),S=w.useRef(()=>{}),C=w.useCallback(()=>{var z;!t||!y.current||!m.current||((z=S.current)==null||z.call(S),_.current=Ype(y.current,m.current,{placement:b,modifiers:[jhe,Fhe,Nhe,{...Dhe,enabled:!!p},{name:"eventListeners",...Mhe(o)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:f}},...n??[]],strategy:i}),_.current.forceUpdate(),S.current=_.current.destroy)},[b,t,n,p,o,a,s,l,c,h,f,i]);w.useEffect(()=>()=>{var z;!y.current&&!m.current&&((z=_.current)==null||z.destroy(),_.current=null)},[]);const E=w.useCallback(z=>{y.current=z,C()},[C]),R=w.useCallback((z={},Y=null)=>({...z,ref:Pi(E,Y)}),[E]),A=w.useCallback(z=>{m.current=z,C()},[C]),I=w.useCallback((z={},Y=null)=>({...z,ref:Pi(A,Y),style:{...z.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,A,p]),M=w.useCallback((z={},Y=null)=>{const{size:W,shadowColor:q,bg:ae,style:ee,...ce}=z;return{...ce,ref:Y,"data-popper-arrow":"",style:Zpe(z)}},[]),F=w.useCallback((z={},Y=null)=>({...z,ref:Y,"data-popper-arrow-inner":""}),[]);return{update(){var z;(z=_.current)==null||z.update()},forceUpdate(){var z;(z=_.current)==null||z.forceUpdate()},transformOrigin:di.transformOrigin.varRef,referenceRef:E,popperRef:A,getPopperProps:I,getArrowProps:M,getArrowInnerProps:F,getReferenceProps:R}}function Zpe(e){const{size:t,shadowColor:n,bg:r,style:i}=e,a={...i,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function pF(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,a=au(n),o=au(t),[s,l]=w.useState(e.defaultIsOpen||!1),c=r!==void 0?r:s,f=r!==void 0,h=w.useId(),p=i??`disclosure-${h}`,v=w.useCallback(()=>{f||l(!1),o==null||o()},[f,o]),y=w.useCallback(()=>{f||l(!0),a==null||a()},[f,a]),m=w.useCallback(()=>{c?v():y()},[c,y,v]);function _(S={}){return{...S,"aria-expanded":c,"aria-controls":p,onClick(C){var E;(E=S.onClick)==null||E.call(S,C),m()}}}function b(S={}){return{...S,hidden:!c,id:p}}return{isOpen:c,onOpen:y,onClose:v,onToggle:m,isControlled:f,getButtonProps:_,getDisclosureProps:b}}function Qpe(e){const{ref:t,handler:n,enabled:r=!0}=e,i=au(n),o=w.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;w.useEffect(()=>{if(!r)return;const s=h=>{gw(h,t)&&(o.isPointerDown=!0)},l=h=>{if(o.ignoreEmulatedMouseEvents){o.ignoreEmulatedMouseEvents=!1;return}o.isPointerDown&&n&&gw(h,t)&&(o.isPointerDown=!1,i(h))},c=h=>{o.ignoreEmulatedMouseEvents=!0,n&&o.isPointerDown&&gw(h,t)&&(o.isPointerDown=!1,i(h))},f=mF(t.current);return f.addEventListener("mousedown",s,!0),f.addEventListener("mouseup",l,!0),f.addEventListener("touchstart",s,!0),f.addEventListener("touchend",c,!0),()=>{f.removeEventListener("mousedown",s,!0),f.removeEventListener("mouseup",l,!0),f.removeEventListener("touchstart",s,!0),f.removeEventListener("touchend",c,!0)}},[n,t,i,o,r])}function gw(e,t){var n;const r=e.target;return r&&!mF(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function mF(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function gF(e){const{isOpen:t,ref:n}=e,[r,i]=w.useState(t),[a,o]=w.useState(!1);return w.useEffect(()=>{a||(i(t),o(!0))},[t,a,r]),Y4(()=>n.current,"animationend",()=>{i(t)}),{present:!(t?!1:!r),onComplete(){var l;const c=ehe(n.current),f=new c.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(f)}}}function Xpe(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var[Jpe,$Te,eme,zTe]=ede(),[tme,jTe]=lr({strict:!1,name:"MenuContext"});function nme(e,...t){const n=w.useId(),r=e||n;return w.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}function rme(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function ime(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:i,autoSelect:a=!0,isLazy:o,isOpen:s,defaultIsOpen:l,onClose:c,onOpen:f,placement:h="bottom-start",lazyBehavior:p="unmount",direction:v,computePositionOnMount:y=!1,...m}=e,_=w.useRef(null),b=w.useRef(null),S=eme(),C=w.useCallback(()=>{requestAnimationFrame(()=>{var xe;(xe=_.current)==null||xe.focus({preventScroll:!1})})},[]),E=w.useCallback(()=>{const xe=setTimeout(()=>{var ye;if(i)(ye=i.current)==null||ye.focus();else{const Le=S.firstEnabled();Le&&q(Le.index)}});J.current.add(xe)},[S,i]),R=w.useCallback(()=>{const xe=setTimeout(()=>{const ye=S.lastEnabled();ye&&q(ye.index)});J.current.add(xe)},[S]),A=w.useCallback(()=>{f==null||f(),a?E():C()},[a,E,C,f]),{isOpen:I,onOpen:M,onClose:F,onToggle:z}=pF({isOpen:s,defaultIsOpen:l,onClose:c,onOpen:A});Qpe({enabled:I&&r,ref:_,handler:xe=>{var ye;(ye=b.current)!=null&&ye.contains(xe.target)||F()}});const Y=hF({...m,enabled:I||y,placement:h,direction:v}),[W,q]=w.useState(-1);qf(()=>{I||q(-1)},[I]),rF(_,{focusRef:b,visible:I,shouldFocus:!0});const ae=gF({isOpen:I,ref:_}),[ee,ce]=nme(t,"menu-button","menu-list"),ue=w.useCallback(()=>{M(),C()},[M,C]),J=w.useRef(new Set([]));ame(()=>{J.current.forEach(xe=>clearTimeout(xe)),J.current.clear()});const me=w.useCallback(()=>{M(),E()},[E,M]),we=w.useCallback(()=>{M(),R()},[M,R]),Ce=w.useCallback(()=>{var xe,ye;const Le=rme(_.current),Ae=(xe=_.current)==null?void 0:xe.contains(Le.activeElement);if(!(I&&!Ae))return;const Ye=(ye=S.item(W))==null?void 0:ye.node;Ye==null||Ye.focus()},[I,W,S]),Ee=w.useRef(null);return{openAndFocusMenu:ue,openAndFocusFirstItem:me,openAndFocusLastItem:we,onTransitionEnd:Ce,unstable__animationState:ae,descendants:S,popper:Y,buttonId:ee,menuId:ce,forceUpdate:Y.forceUpdate,orientation:"vertical",isOpen:I,onToggle:z,onOpen:M,onClose:F,menuRef:_,buttonRef:b,focusedIndex:W,closeOnSelect:n,closeOnBlur:r,autoSelect:a,setFocusedIndex:q,isLazy:o,lazyBehavior:p,initialFocusRef:i,rafId:Ee}}function ame(e,t=[]){return w.useEffect(()=>()=>e(),t)}var[ome,sme]=lr({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),vF=e=>{const{children:t}=e,n=Pr("Menu",e),r=_r(e),{direction:i}=ol(),{descendants:a,...o}=ime({...r,direction:i}),s=w.useMemo(()=>o,[o]),{isOpen:l,onClose:c,forceUpdate:f}=s;return T.jsx(Jpe,{value:a,children:T.jsx(tme,{value:s,children:T.jsx(ome,{value:n,children:fa(t,{isOpen:l,onClose:c,forceUpdate:f})})})})};vF.displayName="Menu";var yF=e=>{const{className:t,children:n,...r}=e,i=sme(),a=w.Children.only(n),o=w.isValidElement(a)?w.cloneElement(a,{focusable:"false","aria-hidden":!0,className:At("chakra-menu__icon",a.props.className)}):null,s=At("chakra-menu__icon-wrapper",t);return T.jsx(je.span,{className:s,...r,__css:i.icon,children:o})};yF.displayName="MenuIcon";var lme={slideInBottom:{...z3,custom:{offsetY:16,reverse:!0}},slideInRight:{...z3,custom:{offsetX:16,reverse:!0}},scale:{...ZD,custom:{initialScale:.95,reverse:!0}},none:{}},ume=je(wu.section),cme=e=>lme[e||"none"],_F=w.forwardRef((e,t)=>{const{preset:n,motionProps:r=cme(n),...i}=e;return T.jsx(ume,{ref:t,...r,...i})});_F.displayName="ModalTransition";var dme=Object.defineProperty,fme=(e,t,n)=>t in e?dme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hme=(e,t,n)=>(fme(e,typeof t!="symbol"?t+"":t,n),n),pme=class{constructor(){hme(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},Y3=new pme;function bF(e,t){const[n,r]=w.useState(0);return w.useEffect(()=>{const i=e.current;if(i){if(t){const a=Y3.add(i);r(a)}return()=>{Y3.remove(i),r(0)}}},[t,e]),n}var mme=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Sd=new WeakMap,R0=new WeakMap,A0={},vw=0,SF=function(e){return e&&(e.host||SF(e.parentNode))},gme=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=SF(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vme=function(e,t,n,r){var i=gme(t,Array.isArray(e)?e:[e]);A0[n]||(A0[n]=new WeakMap);var a=A0[n],o=[],s=new Set,l=new Set(i),c=function(h){!h||s.has(h)||(s.add(h),c(h.parentNode))};i.forEach(c);var f=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(s.has(p))f(p);else{var v=p.getAttribute(r),y=v!==null&&v!=="false",m=(Sd.get(p)||0)+1,_=(a.get(p)||0)+1;Sd.set(p,m),a.set(p,_),o.push(p),m===1&&y&&R0.set(p,!0),_===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}})};return f(t),s.clear(),vw++,function(){o.forEach(function(h){var p=Sd.get(h)-1,v=a.get(h)-1;Sd.set(h,p),a.set(h,v),p||(R0.has(h)||h.removeAttribute(r),R0.delete(h)),v||h.removeAttribute(n)}),vw--,vw||(Sd=new WeakMap,Sd=new WeakMap,R0=new WeakMap,A0={})}},yme=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||mme(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),vme(r,i,n,"aria-hidden")):function(){return null}};function _me(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:o=!0,onOverlayClick:s,onEsc:l}=e,c=w.useRef(null),f=w.useRef(null),[h,p,v]=Sme(r,"chakra-modal","chakra-modal--header","chakra-modal--body");bme(c,t&&o);const y=bF(c,t),m=w.useRef(null),_=w.useCallback(F=>{m.current=F.target},[]),b=w.useCallback(F=>{F.key==="Escape"&&(F.stopPropagation(),a&&(n==null||n()),l==null||l())},[a,n,l]),[S,C]=w.useState(!1),[E,R]=w.useState(!1),A=w.useCallback((F={},z=null)=>({role:"dialog",...F,ref:Pi(z,c),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?p:void 0,"aria-describedby":E?v:void 0,onClick:xn(F.onClick,Y=>Y.stopPropagation())}),[v,E,h,p,S]),I=w.useCallback(F=>{F.stopPropagation(),m.current===F.target&&Y3.isTopModal(c.current)&&(i&&(n==null||n()),s==null||s())},[n,i,s]),M=w.useCallback((F={},z=null)=>({...F,ref:Pi(z,f),onClick:xn(F.onClick,I),onKeyDown:xn(F.onKeyDown,b),onMouseDown:xn(F.onMouseDown,_)}),[b,_,I]);return{isOpen:t,onClose:n,headerId:p,bodyId:v,setBodyMounted:R,setHeaderMounted:C,dialogRef:c,overlayRef:f,getDialogProps:A,getDialogContainerProps:M,index:y}}function bme(e,t){const n=e.current;w.useEffect(()=>{if(!(!e.current||!t))return yme(e.current)},[t,e,n])}function Sme(e,...t){const n=w.useId(),r=e||n;return w.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[wme,Pb]=lr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[xme,Jm]=lr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),p6=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:a,initialFocusRef:o,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:h,motionPreset:p,lockFocusAcrossFrames:v,onCloseComplete:y}=t,m=Pr("Modal",t),b={..._me(t),autoFocus:i,trapFocus:a,initialFocusRef:o,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:h,motionPreset:p,lockFocusAcrossFrames:v};return T.jsx(xme,{value:b,children:T.jsx(wme,{value:m,children:T.jsx(mh,{onExitComplete:y,children:b.isOpen&&T.jsx(ph,{...n,children:r})})})})};p6.displayName="Modal";var Sy="right-scroll-bar-position",wy="width-before-scroll-bar",Cme="with-scroll-bars-hidden",Eme="--removed-body-scroll-bar-size",wF=dN(),yw=function(){},Ob=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:yw,onWheelCapture:yw,onTouchMoveCapture:yw}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,v=e.noIsolation,y=e.inert,m=e.allowPinchZoom,_=e.as,b=_===void 0?"div":_,S=e.gapMode,C=lN(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,R=sN([n,t]),A=Zo(Zo({},C),i);return w.createElement(w.Fragment,null,f&&w.createElement(E,{sideCar:wF,removeScrollBar:c,shards:h,noIsolation:v,inert:y,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:S}),o?w.cloneElement(w.Children.only(s),Zo(Zo({},A),{ref:R})):w.createElement(b,Zo({},A,{className:l,ref:R}),s))});Ob.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ob.classNames={fullWidth:wy,zeroRight:Sy};var c9,kme=function(){if(c9)return c9;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tme(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kme();return t&&e.setAttribute("nonce",t),e}function Pme(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ome(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Rme=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Tme())&&(Pme(t,n),Ome(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ame=function(){var e=Rme();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xF=function(){var e=Ame(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Ime={left:0,top:0,right:0,gap:0},_w=function(e){return parseInt(e||"",10)||0},Lme=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[_w(n),_w(r),_w(i)]},Mme=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ime;var t=Lme(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Dme=xF(),Nme=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`
     348        `),()=>{document.head.removeChild(c)}},[t]),w.createElement(bce,{isPresent:t,childRef:r,sizeRef:i},w.cloneElement(e,{ref:r}))}const dw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=zM(wce),l=w.useId(),c=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:f=>{s.set(f,!0);for(const h of s.values())if(!h)return;r&&r()},register:f=>(s.set(f,!1),()=>s.delete(f))}),a?void 0:[n]);return w.useMemo(()=>{s.forEach((f,h)=>s.set(h,!1))},[n]),w.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),o==="popLayout"&&(e=w.createElement(Sce,{isPresent:n},e)),w.createElement(Og.Provider,{value:c},e)};function wce(){return new Map}function xce(e){return w.useEffect(()=>()=>e(),[])}const Id=e=>e.key||"";function Cce(e,t){e.forEach(n=>{const r=Id(n);t.set(r,n)})}function Ece(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const mh=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const s=w.useContext(C4).forceRender||_ce()[0],l=HD(),c=Ece(e);let f=c;const h=w.useRef(new Map).current,p=w.useRef(f),v=w.useRef(new Map).current,y=w.useRef(!0);if(S4(()=>{y.current=!1,Cce(c,v),p.current=f}),xce(()=>{y.current=!0,v.clear(),h.clear()}),y.current)return w.createElement(w.Fragment,null,f.map(S=>w.createElement(dw,{key:Id(S),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:o},S)));f=[...f];const m=p.current.map(Id),_=c.map(Id),b=m.length;for(let S=0;S<b;S++){const C=m[S];_.indexOf(C)===-1&&!h.has(C)&&h.set(C,void 0)}return o==="wait"&&h.size&&(f=[]),h.forEach((S,C)=>{if(_.indexOf(C)!==-1)return;const E=v.get(C);if(!E)return;const R=m.indexOf(C);let A=S;if(!A){const I=()=>{v.delete(C),h.delete(C);const M=p.current.findIndex(F=>F.key===C);if(p.current.splice(M,1),!h.size){if(p.current=c,l.current===!1)return;s(),r&&r()}};A=w.createElement(dw,{key:Id(E),isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:a,mode:o},E),h.set(C,A)}f.splice(R,0,A)}),f=f.map(S=>{const C=S.key;return h.has(C)?S:w.createElement(dw,{key:Id(S),isPresent:!0,presenceAffectsLayout:a,mode:o},S)}),w.createElement(w.Fragment,null,h.size?f:f.map(S=>w.cloneElement(S)))};var kce={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},WD=w.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:a=!1,position:o="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=kce,toastSpacing:f="0.5rem"}=e,[h,p]=w.useState(s),v=fue();qf(()=>{v||r==null||r()},[v]),qf(()=>{p(s)},[s]);const y=()=>p(null),m=()=>p(s),_=()=>{v&&i()};w.useEffect(()=>{v&&a&&i()},[v,a,i]),coe(_,h);const b=w.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:f,...l}),[l,f]),S=w.useMemo(()=>loe(o),[o]);return T.jsx(wu.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:m,custom:{position:o},style:S,children:T.jsx(je.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:fa(n,{id:t,onClose:_})})})});WD.displayName="ToastComponent";var IP={path:T.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[T.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),T.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),T.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Wt=Xe((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:a=!1,children:o,className:s,__css:l,...c}=e,f=At("chakra-icon",s),h=Xa("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...h},v={ref:t,focusable:a,className:f,__css:p},y=r??IP.viewBox;if(n&&typeof n!="string")return T.jsx(je.svg,{as:n,...v,...c});const m=o??IP.path;return T.jsx(je.svg,{verticalAlign:"middle",viewBox:y,...v,...c,children:m})});Wt.displayName="Icon";var Tce=Wt;function Mg(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,a=w.Children.toArray(e.path),o=Xe((s,l)=>T.jsx(Wt,{ref:l,viewBox:t,...i,...s,children:a.length?a:T.jsx("path",{fill:"currentColor",d:n})}));return o.displayName=r,o}function Pce(e){return T.jsx(Wt,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Oce(e){return T.jsx(Wt,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function LP(e){return T.jsx(Wt,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var Rce=Ro({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Dg=Xe((e,t)=>{const n=Xa("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:a="0.45s",emptyColor:o="transparent",className:s,...l}=_r(e),c=At("chakra-spinner",s),f={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:o,borderLeftColor:o,animation:`${Rce} ${a} linear infinite`,...n};return T.jsx(je.div,{ref:t,__css:f,className:c,...l,children:r&&T.jsx(je.span,{srOnly:!0,children:r})})});Dg.displayName="Spinner";var[Ace,V4]=lr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Ice,U4]=lr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),qD={info:{icon:Oce,colorScheme:"blue"},warning:{icon:LP,colorScheme:"orange"},success:{icon:Pce,colorScheme:"green"},error:{icon:LP,colorScheme:"red"},loading:{icon:Dg,colorScheme:"blue"}};function Lce(e){return qD[e].colorScheme}function Mce(e){return qD[e].icon}var H4=Xe(function(t,n){const r=U4(),{status:i}=V4(),a={display:"inline",...r.description};return T.jsx(je.div,{ref:n,"data-status":i,...t,className:At("chakra-alert__desc",t.className),__css:a})});H4.displayName="AlertDescription";function W4(e){const{status:t}=V4(),n=Mce(t),r=U4(),i=t==="loading"?r.spinner:r.icon;return T.jsx(je.span,{display:"inherit","data-status":t,...e,className:At("chakra-alert__icon",e.className),__css:i,children:e.children||T.jsx(n,{h:"100%",w:"100%"})})}W4.displayName="AlertIcon";var q4=Xe(function(t,n){const r=U4(),{status:i}=V4();return T.jsx(je.div,{ref:n,"data-status":i,...t,className:At("chakra-alert__title",t.className),__css:r.title})});q4.displayName="AlertTitle";var xb=Xe(function(t,n){var r;const{status:i="info",addRole:a=!0,...o}=_r(t),s=(r=t.colorScheme)!=null?r:Lce(i),l=Pr("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return T.jsx(Ace,{value:{status:i},children:T.jsx(Ice,{value:l,children:T.jsx(je.div,{"data-status":i,role:a?"alert":void 0,ref:n,...o,className:At("chakra-alert",t.className),__css:c})})})});xb.displayName="Alert";function Dce(e){return T.jsx(Wt,{focusable:"false","aria-hidden":!0,...e,children:T.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var GD=Xe(function(t,n){const r=Xa("CloseButton",t),{children:i,isDisabled:a,__css:o,...s}=_r(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return T.jsx(je.button,{type:"button","aria-label":"Close",ref:n,disabled:a,__css:{...l,...r,...o},...s,children:i||T.jsx(Dce,{width:"1em",height:"1em"})})});GD.displayName="CloseButton";var Nce={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},um=Fce(Nce);function Fce(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(a=>a())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,a)=>{r(o=>({...o,[a]:o[a].filter(s=>s.id!=i)}))},notify:(i,a)=>{const o=$ce(i,a),{position:s,id:l}=o;return r(c=>{var f,h;const v=s.includes("top")?[o,...(f=c[s])!=null?f:[]]:[...(h=c[s])!=null?h:[],o];return{...c,[s]:v}}),l},update:(i,a)=>{i&&r(o=>{const s={...o},{position:l,index:c}=TT(s,i);return l&&c!==-1&&(s[l][c]={...s[l][c],...a,message:jce(a)}),s})},closeAll:({positions:i}={})=>{r(a=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=a[c].map(f=>({...f,requestClose:!0})),l),{...a}))},close:i=>{r(a=>{const o=wM(a,i);return o?{...a,[o]:a[o].map(s=>s.id==i?{...s,requestClose:!0}:s)}:a})},isActive:i=>!!TT(um.getState(),i).position}}var MP=0;function $ce(e,t={}){var n,r;MP+=1;const i=(n=t.id)!=null?n:MP,a=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>um.removeToast(String(i),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var zce=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:a,onClose:o,description:s,colorScheme:l,icon:c}=e,f=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return T.jsxs(xb,{addRole:!1,status:t,variant:n,id:f==null?void 0:f.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[T.jsx(W4,{children:c}),T.jsxs(je.div,{flex:"1",maxWidth:"100%",children:[i&&T.jsx(q4,{id:f==null?void 0:f.title,children:i}),s&&T.jsx(H4,{id:f==null?void 0:f.description,display:"block",children:s})]}),a&&T.jsx(GD,{size:"sm",onClick:o,position:"absolute",insetEnd:1,top:1})]})};function jce(e={}){const{render:t,toastComponent:n=zce}=e;return i=>typeof t=="function"?t({...i,...e}):T.jsx(n,{...i,...e})}var[Bce,DTe]=lr({name:"ToastOptionsContext",strict:!1}),Vce=e=>{const t=w.useSyncExternalStore(um.subscribe,um.getState,um.getState),{motionVariants:n,component:r=WD,portalProps:i}=e,o=Object.keys(t).map(s=>{const l=t[s];return T.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:uoe(s),children:T.jsx(mh,{initial:!1,children:l.map(c=>T.jsx(r,{motionVariants:n,...c},c.id))})},s)});return T.jsx(ph,{...i,children:o})},Uce=e=>function({children:n,theme:r=e,toastOptions:i,...a}){return T.jsxs(ooe,{theme:r,...a,children:[T.jsx(Bce,{value:i==null?void 0:i.defaultOptions,children:n}),T.jsx(Vce,{...i})]})},Hce=Uce(fM),Wce=Object.defineProperty,qce=(e,t,n)=>t in e?Wce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qn=(e,t,n)=>(qce(e,typeof t!="symbol"?t+"":t,n),n);function DP(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var Gce=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function NP(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function FP(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var $C=typeof window<"u"?w.useLayoutEffect:w.useEffect,S1=e=>e,Kce=class{constructor(){Qn(this,"descendants",new Map),Qn(this,"register",e=>{if(e!=null)return Gce(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Qn(this,"unregister",e=>{this.descendants.delete(e);const t=DP(Array.from(this.descendants.keys()));this.assignIndex(t)}),Qn(this,"destroy",()=>{this.descendants.clear()}),Qn(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Qn(this,"count",()=>this.descendants.size),Qn(this,"enabledCount",()=>this.enabledValues().length),Qn(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),Qn(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Qn(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Qn(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Qn(this,"first",()=>this.item(0)),Qn(this,"firstEnabled",()=>this.enabledItem(0)),Qn(this,"last",()=>this.item(this.descendants.size-1)),Qn(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Qn(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),Qn(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Qn(this,"next",(e,t=!0)=>{const n=NP(e,this.count(),t);return this.item(n)}),Qn(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=NP(r,this.enabledCount(),t);return this.enabledItem(i)}),Qn(this,"prev",(e,t=!0)=>{const n=FP(e,this.count()-1,t);return this.item(n)}),Qn(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=FP(r,this.enabledCount()-1,t);return this.enabledItem(i)}),Qn(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=DP(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function Yce(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Pi(...e){return t=>{e.forEach(n=>{Yce(n,t)})}}function Zce(...e){return w.useMemo(()=>Pi(...e),e)}function Qce(){const e=w.useRef(new Kce);return $C(()=>()=>e.current.destroy()),e.current}var[Xce,KD]=lr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Jce(e){const t=KD(),[n,r]=w.useState(-1),i=w.useRef(null);$C(()=>()=>{i.current&&t.unregister(i.current)},[]),$C(()=>{if(!i.current)return;const o=Number(i.current.dataset.index);n!=o&&!Number.isNaN(o)&&r(o)});const a=S1(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:Pi(a,i)}}function ede(){return[S1(Xce),()=>S1(KD()),()=>Qce(),i=>Jce(i)]}var $P={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},gc={enter:{duration:.2,ease:$P.easeOut},exit:{duration:.1,ease:$P.easeIn}},vc={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},tde={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:vc.enter(gc.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:vc.exit(gc.exit,n),transitionEnd:t==null?void 0:t.exit}}},YD={initial:"exit",animate:"enter",exit:"exit",variants:tde},nde=w.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:a,transition:o,transitionEnd:s,delay:l,...c}=t,f=i||r?"enter":"exit",h=r?i&&r:!0,p={transition:o,transitionEnd:s,delay:l};return T.jsx(mh,{custom:p,children:h&&T.jsx(wu.div,{ref:n,className:At("chakra-fade",a),custom:p,...YD,animate:f,...c})})});nde.displayName="Fade";var rde={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(a=n==null?void 0:n.exit)!=null?a:vc.exit(gc.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:vc.enter(gc.enter,n),transitionEnd:e==null?void 0:e.enter}}},ZD={initial:"exit",animate:"enter",exit:"exit",variants:rde},ide=w.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,initialScale:o=.95,className:s,transition:l,transitionEnd:c,delay:f,...h}=t,p=r?i&&r:!0,v=i||r?"enter":"exit",y={initialScale:o,reverse:a,transition:l,transitionEnd:c,delay:f};return T.jsx(mh,{custom:y,children:p&&T.jsx(wu.div,{ref:n,className:At("chakra-offset-slide",s),...ZD,animate:v,custom:y,...h})})});ide.displayName="ScaleFade";var ade={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,x:e,y:t,transition:(a=n==null?void 0:n.exit)!=null?a:vc.exit(gc.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:vc.enter(gc.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:a})=>{var o;const s={x:t,y:e};return{opacity:0,transition:(o=n==null?void 0:n.exit)!=null?o:vc.exit(gc.exit,a),...i?{...s,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...s,...r==null?void 0:r.exit}}}}},zC={initial:"initial",animate:"enter",exit:"exit",variants:ade},ode=w.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,className:o,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:f,delay:h,...p}=t,v=r?i&&r:!0,y=i||r?"enter":"exit",m={offsetX:s,offsetY:l,reverse:a,transition:c,transitionEnd:f,delay:h};return T.jsx(mh,{custom:m,children:v&&T.jsx(wu.div,{ref:n,className:At("chakra-offset-slide",o),custom:m,...zC,animate:y,...p})})});ode.displayName="SlideFade";var w1=Xe(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:a,...o}=t;return T.jsx("img",{width:r,height:i,ref:n,alt:a,...o})});w1.displayName="NativeImage";function sde(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:a,crossOrigin:o,sizes:s,ignoreFallback:l}=e,[c,f]=w.useState("pending");w.useEffect(()=>{f(n?"loading":"pending")},[n]);const h=w.useRef(),p=w.useCallback(()=>{if(!n)return;v();const y=new Image;y.src=n,o&&(y.crossOrigin=o),r&&(y.srcset=r),s&&(y.sizes=s),t&&(y.loading=t),y.onload=m=>{v(),f("loaded"),i==null||i(m)},y.onerror=m=>{v(),f("failed"),a==null||a(m)},h.current=y},[n,o,r,s,i,a,t]),v=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return rs(()=>{if(!l)return c==="loading"&&p(),()=>{v()}},[c,p,l]),l?"loaded":c}var lde=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function ude(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var xu=Xe(function(t,n){const{fallbackSrc:r,fallback:i,src:a,srcSet:o,align:s,fit:l,loading:c,ignoreFallback:f,crossOrigin:h,fallbackStrategy:p="beforeLoadOrError",referrerPolicy:v,...y}=t,m=r!==void 0||i!==void 0,_=c!=null||f||!m,b=sde({...t,crossOrigin:h,ignoreFallback:_}),S=lde(b,p),C={ref:n,objectFit:l,objectPosition:s,..._?y:ude(y,["onError","onLoad"])};return S?i||T.jsx(je.img,{as:w1,className:"chakra-image__placeholder",src:r,...C}):T.jsx(je.img,{as:w1,src:a,srcSet:o,crossOrigin:h,loading:c,referrerPolicy:v,className:"chakra-image",...C})});xu.displayName="Image";var cde=Xe((e,t)=>T.jsx(je.img,{ref:t,as:w1,className:"chakra-image",...e}));function QD(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}var[NTe,dde]=lr({strict:!1,name:"ButtonGroupContext"});function fde(e){const[t,n]=w.useState(!e);return{ref:w.useCallback(a=>{a&&n(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function jC(e){const{children:t,className:n,...r}=e,i=w.isValidElement(t)?w.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=At("chakra-button__icon",n);return T.jsx(je.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a,children:i})}jC.displayName="ButtonIcon";function BC(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=T.jsx(Dg,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:o,...s}=e,l=At("chakra-button__spinner",a),c=n==="start"?"marginEnd":"marginStart",f=w.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...o}),[o,t,c,r]);return T.jsx(je.div,{className:l,...s,__css:f,children:i})}BC.displayName="ButtonSpinner";var Jr=Xe((e,t)=>{const n=dde(),r=Xa("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:a,isActive:o,children:s,leftIcon:l,rightIcon:c,loadingText:f,iconSpacing:h="0.5rem",type:p,spinner:v,spinnerPlacement:y="start",className:m,as:_,...b}=_r(e),S=w.useMemo(()=>{const A={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:A}}},[r,n]),{ref:C,type:E}=fde(_),R={rightIcon:c,leftIcon:l,iconSpacing:h,children:s};return T.jsxs(je.button,{ref:Zce(t,C),as:_,type:p??E,"data-active":cn(o),"data-loading":cn(a),__css:S,className:At("chakra-button",m),...b,disabled:i||a,children:[a&&y==="start"&&T.jsx(BC,{className:"chakra-button__spinner--start",label:f,placement:"start",spacing:h,children:v}),a?f||T.jsx(je.span,{opacity:0,children:T.jsx(zP,{...R})}):T.jsx(zP,{...R}),a&&y==="end"&&T.jsx(BC,{className:"chakra-button__spinner--end",label:f,placement:"end",spacing:h,children:v})]})});Jr.displayName="Button";function zP(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return T.jsxs(T.Fragment,{children:[t&&T.jsx(jC,{marginEnd:i,children:t}),r,n&&T.jsx(jC,{marginStart:i,children:n})]})}var Km=Xe((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":a,...o}=e,s=n||r,l=w.isValidElement(s)?w.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return T.jsx(Jr,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":a,...o,children:l})});Km.displayName="IconButton";var[FTe,hde]=lr({name:"CheckboxGroupContext",strict:!1});function pde(e){const[t,n]=w.useState(e),[r,i]=w.useState(!1);return e!==t&&(i(!0),n(e)),r}function mde(e){return T.jsx(je.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:T.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function gde(e){return T.jsx(je.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:T.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function vde(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?gde:mde;return n||t?T.jsx(je.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:T.jsx(i,{...r})}):null}var[yde,XD]=lr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[_de,gh]=lr({strict:!1,name:"FormControlContext"});function bde(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:a,...o}=e,s=w.useId(),l=t||`field-${s}`,c=`${l}-label`,f=`${l}-feedback`,h=`${l}-helptext`,[p,v]=w.useState(!1),[y,m]=w.useState(!1),[_,b]=w.useState(!1),S=w.useCallback((I={},M=null)=>({id:h,...I,ref:Pi(M,F=>{F&&m(!0)})}),[h]),C=w.useCallback((I={},M=null)=>({...I,ref:M,"data-focus":cn(_),"data-disabled":cn(i),"data-invalid":cn(r),"data-readonly":cn(a),id:I.id!==void 0?I.id:c,htmlFor:I.htmlFor!==void 0?I.htmlFor:l}),[l,i,_,r,a,c]),E=w.useCallback((I={},M=null)=>({id:f,...I,ref:Pi(M,F=>{F&&v(!0)}),"aria-live":"polite"}),[f]),R=w.useCallback((I={},M=null)=>({...I,...o,ref:M,role:"group"}),[o]),A=w.useCallback((I={},M=null)=>({...I,ref:M,role:"presentation","aria-hidden":!0,children:I.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!i,isFocused:!!_,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:p,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:m,id:l,labelId:c,feedbackId:f,helpTextId:h,htmlProps:o,getHelpTextProps:S,getErrorMessageProps:E,getRootProps:R,getLabelProps:C,getRequiredIndicatorProps:A}}var JD=Xe(function(t,n){const r=Pr("Form",t),i=_r(t),{getRootProps:a,htmlProps:o,...s}=bde(i),l=At("chakra-form-control",t.className);return T.jsx(_de,{value:s,children:T.jsx(yde,{value:r,children:T.jsx(je.div,{...a({},n),className:l,__css:r.container})})})});JD.displayName="FormControl";var Sde=Xe(function(t,n){const r=gh(),i=XD(),a=At("chakra-form__helper-text",t.className);return T.jsx(je.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:a})});Sde.displayName="FormHelperText";var[wde,xde]=lr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),eN=Xe((e,t)=>{const n=Pr("FormError",e),r=_r(e),i=gh();return i!=null&&i.isInvalid?T.jsx(wde,{value:n,children:T.jsx(je.div,{...i==null?void 0:i.getErrorMessageProps(r,t),className:At("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});eN.displayName="FormErrorMessage";var Cde=Xe((e,t)=>{const n=xde(),r=gh();if(!(r!=null&&r.isInvalid))return null;const i=At("chakra-form__error-icon",e.className);return T.jsx(Wt,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:i,children:T.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});Cde.displayName="FormErrorIcon";var tN=Xe(function(t,n){var r;const i=Xa("FormLabel",t),a=_r(t),{className:o,children:s,requiredIndicator:l=T.jsx(nN,{}),optionalIndicator:c=null,...f}=a,h=gh(),p=(r=h==null?void 0:h.getLabelProps(f,n))!=null?r:{ref:n,...f};return T.jsxs(je.label,{...p,className:At("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...i},children:[s,h!=null&&h.isRequired?l:c]})});tN.displayName="FormLabel";var nN=Xe(function(t,n){const r=gh(),i=XD();if(!(r!=null&&r.isRequired))return null;const a=At("chakra-form__required-indicator",t.className);return T.jsx(je.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:a})});nN.displayName="RequiredIndicator";function Ede(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...a}=rN(e);return{...a,disabled:t,readOnly:r,required:i,"aria-invalid":MS(n),"aria-required":MS(i),"aria-readonly":MS(r)}}function rN(e){var t,n,r;const i=gh(),{id:a,disabled:o,readOnly:s,required:l,isRequired:c,isInvalid:f,isReadOnly:h,isDisabled:p,onFocus:v,onBlur:y,...m}=e,_=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&_.push(i.feedbackId),i!=null&&i.hasHelpText&&_.push(i.helpTextId),{...m,"aria-describedby":_.join(" ")||void 0,id:a??(i==null?void 0:i.id),isDisabled:(t=o??p)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=s??h)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=l??c)!=null?r:i==null?void 0:i.isRequired,isInvalid:f??(i==null?void 0:i.isInvalid),onFocus:xn(i==null?void 0:i.onFocus,v),onBlur:xn(i==null?void 0:i.onBlur,y)}}var kde={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};const Tde=()=>typeof document<"u";let jP=!1,Ng=null,Oc=!1,VC=!1;const UC=new Set;function G4(e,t){UC.forEach(n=>n(e,t))}const Pde=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Ode(e){return!(e.metaKey||!Pde&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function BP(e){Oc=!0,Ode(e)&&(Ng="keyboard",G4("keyboard",e))}function _d(e){if(Ng="pointer",e.type==="mousedown"||e.type==="pointerdown"){Oc=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;G4("pointer",e)}}function Rde(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function Ade(e){Rde(e)&&(Oc=!0,Ng="virtual")}function Ide(e){e.target===window||e.target===document||(!Oc&&!VC&&(Ng="virtual",G4("virtual",e)),Oc=!1,VC=!1)}function Lde(){Oc=!1,VC=!0}function VP(){return Ng!=="pointer"}function Mde(){if(!Tde()||jP)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Oc=!0,e.apply(this,n)},document.addEventListener("keydown",BP,!0),document.addEventListener("keyup",BP,!0),document.addEventListener("click",Ade,!0),window.addEventListener("focus",Ide,!0),window.addEventListener("blur",Lde,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_d,!0),document.addEventListener("pointermove",_d,!0),document.addEventListener("pointerup",_d,!0)):(document.addEventListener("mousedown",_d,!0),document.addEventListener("mousemove",_d,!0),document.addEventListener("mouseup",_d,!0)),jP=!0}function Dde(e){Mde(),e(VP());const t=()=>e(VP());return UC.add(t),()=>{UC.delete(t)}}function Nde(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Fde(e={}){const t=rN(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:a,id:o,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:f,isChecked:h,isFocusable:p,onChange:v,isIndeterminate:y,name:m,value:_,tabIndex:b=void 0,"aria-label":S,"aria-labelledby":C,"aria-invalid":E,...R}=e,A=Nde(R,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),I=au(v),M=au(s),F=au(l),[z,Y]=w.useState(!1),[W,q]=w.useState(!1),[ae,ee]=w.useState(!1),[ce,ue]=w.useState(!1);w.useEffect(()=>Dde(Y),[]);const J=w.useRef(null),[me,we]=w.useState(!0),[Ce,Ee]=w.useState(!!f),xe=h!==void 0,ye=xe?h:Ce,Le=w.useCallback(Te=>{if(r||n){Te.preventDefault();return}xe||Ee(ye?Te.target.checked:y?!0:Te.target.checked),I==null||I(Te)},[r,n,ye,xe,y,I]);rs(()=>{J.current&&(J.current.indeterminate=!!y)},[y]),qf(()=>{n&&q(!1)},[n,q]),rs(()=>{const Te=J.current;if(!(Te!=null&&Te.form))return;const yt=()=>{Ee(!!f)};return Te.form.addEventListener("reset",yt),()=>{var B;return(B=Te.form)==null?void 0:B.removeEventListener("reset",yt)}},[]);const Ae=n&&!p,it=w.useCallback(Te=>{Te.key===" "&&ue(!0)},[ue]),Ye=w.useCallback(Te=>{Te.key===" "&&ue(!1)},[ue]);rs(()=>{if(!J.current)return;J.current.checked!==ye&&Ee(J.current.checked)},[J.current]);const nt=w.useCallback((Te={},yt=null)=>{const B=X=>{W&&X.preventDefault(),ue(!0)};return{...Te,ref:yt,"data-active":cn(ce),"data-hover":cn(ae),"data-checked":cn(ye),"data-focus":cn(W),"data-focus-visible":cn(W&&z),"data-indeterminate":cn(y),"data-disabled":cn(n),"data-invalid":cn(a),"data-readonly":cn(r),"aria-hidden":!0,onMouseDown:xn(Te.onMouseDown,B),onMouseUp:xn(Te.onMouseUp,()=>ue(!1)),onMouseEnter:xn(Te.onMouseEnter,()=>ee(!0)),onMouseLeave:xn(Te.onMouseLeave,()=>ee(!1))}},[ce,ye,n,W,z,ae,y,a,r]),wt=w.useCallback((Te={},yt=null)=>({...Te,ref:yt,"data-active":cn(ce),"data-hover":cn(ae),"data-checked":cn(ye),"data-focus":cn(W),"data-focus-visible":cn(W&&z),"data-indeterminate":cn(y),"data-disabled":cn(n),"data-invalid":cn(a),"data-readonly":cn(r)}),[ce,ye,n,W,z,ae,y,a,r]),Dt=w.useCallback((Te={},yt=null)=>({...A,...Te,ref:Pi(yt,B=>{B&&we(B.tagName==="LABEL")}),onClick:xn(Te.onClick,()=>{var B;me||((B=J.current)==null||B.click(),requestAnimationFrame(()=>{var X;(X=J.current)==null||X.focus({preventScroll:!0})}))}),"data-disabled":cn(n),"data-checked":cn(ye),"data-invalid":cn(a)}),[A,n,ye,a,me]),Nt=w.useCallback((Te={},yt=null)=>({...Te,ref:Pi(J,yt),type:"checkbox",name:m,value:_,id:o,tabIndex:b,onChange:xn(Te.onChange,Le),onBlur:xn(Te.onBlur,M,()=>q(!1)),onFocus:xn(Te.onFocus,F,()=>q(!0)),onKeyDown:xn(Te.onKeyDown,it),onKeyUp:xn(Te.onKeyUp,Ye),required:i,checked:ye,disabled:Ae,readOnly:r,"aria-label":S,"aria-labelledby":C,"aria-invalid":E?!!E:a,"aria-describedby":c,"aria-disabled":n,style:kde}),[m,_,o,Le,M,F,it,Ye,i,ye,Ae,r,S,C,E,a,c,n,b]),Sn=w.useCallback((Te={},yt=null)=>({...Te,ref:yt,onMouseDown:xn(Te.onMouseDown,$de),"data-disabled":cn(n),"data-checked":cn(ye),"data-invalid":cn(a)}),[ye,n,a]);return{state:{isInvalid:a,isFocused:W,isChecked:ye,isActive:ce,isHovered:ae,isIndeterminate:y,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:Dt,getCheckboxProps:nt,getIndicatorProps:wt,getInputProps:Nt,getLabelProps:Sn,htmlProps:A}}function $de(e){e.preventDefault(),e.stopPropagation()}var zde={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},jde={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Bde=Ro({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Vde=Ro({from:{opacity:0},to:{opacity:1}}),Ude=Ro({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),K4=Xe(function(t,n){const r=hde(),i={...r,...t},a=Pr("Checkbox",i),o=_r(t),{spacing:s="0.5rem",className:l,children:c,iconColor:f,iconSize:h,icon:p=T.jsx(vde,{}),isChecked:v,isDisabled:y=r==null?void 0:r.isDisabled,onChange:m,inputProps:_,...b}=o;let S=v;r!=null&&r.value&&o.value&&(S=r.value.includes(o.value));let C=m;r!=null&&r.onChange&&o.value&&(C=WL(r.onChange,m));const{state:E,getInputProps:R,getCheckboxProps:A,getLabelProps:I,getRootProps:M}=Fde({...b,isDisabled:y,isChecked:S,onChange:C}),F=pde(E.isChecked),z=w.useMemo(()=>({animation:F?E.isIndeterminate?`${Vde} 20ms linear, ${Ude} 200ms linear`:`${Bde} 200ms linear`:void 0,fontSize:h,color:f,...a.icon}),[f,h,F,E.isIndeterminate,a.icon]),Y=w.cloneElement(p,{__css:z,isIndeterminate:E.isIndeterminate,isChecked:E.isChecked});return T.jsxs(je.label,{__css:{...jde,...a.container},className:At("chakra-checkbox",l),...M(),children:[T.jsx("input",{className:"chakra-checkbox__input",...R(_,n)}),T.jsx(je.span,{__css:{...zde,...a.control},className:"chakra-checkbox__control",...A(),children:Y}),c&&T.jsx(je.span,{className:"chakra-checkbox__label",...I(),__css:{marginStart:s,...a.label},children:c})]})});K4.displayName="Checkbox";function Y4(e,t,n,r){const i=au(n);return w.useEffect(()=>{const a=typeof e=="function"?e():e??document;if(!(!n||!a))return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,i,r)}}function Hde(e){return"current"in e}var iN=()=>typeof window<"u";function Wde(){var e;const t=navigator.userAgentData;return(e=t==null?void 0:t.platform)!=null?e:navigator.platform}var qde=e=>iN()&&e.test(navigator.vendor),Gde=e=>iN()&&e.test(Wde()),Kde=()=>Gde(/mac|iphone|ipad|ipod/i),Yde=()=>Kde()&&qde(/apple/i);function Zde(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var a,o;return(o=(a=t.current)==null?void 0:a.ownerDocument)!=null?o:document};Y4(i,"pointerdown",a=>{if(!Yde()||!r)return;const o=a.target,l=(n??[t]).some(c=>{const f=Hde(c)?c.current:c;return(f==null?void 0:f.contains(o))||f===o});i().activeElement!==o&&l&&(a.preventDefault(),o.focus())})}function aN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var HC="data-focus-lock",oN="data-focus-lock-disabled",Qde="data-no-focus-lock",Xde="data-autofocus-inside",Jde="data-no-autofocus";function efe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tfe(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function sN(e,t){return tfe(t||null,function(n){return e.forEach(function(r){return efe(r,n)})})}var fw={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Zo=function(){return Zo=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Zo.apply(this,arguments)};function lN(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function nfe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function uN(e){return e}function cN(e,t){t===void 0&&(t=uN);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(a),o=n}var l=function(){var f=o;o=[],f.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(f){o.push(f),c()},filter:function(f){return o=o.filter(f),n}}}};return i}function Z4(e,t){return t===void 0&&(t=uN),cN(e,t)}function dN(e){e===void 0&&(e={});var t=cN(null);return t.options=Zo({async:!0,ssr:!1},e),t}var fN=function(e){var t=e.sideCar,n=lN(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,Zo({},n))};fN.isSideCarExport=!0;function rfe(e,t){return e.useMedium(t),fN}var hN=Z4({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),pN=Z4(),ife=Z4(),afe=dN({async:!0}),ofe=[],Q4=w.forwardRef(function(t,n){var r,i=w.useState(),a=i[0],o=i[1],s=w.useRef(),l=w.useRef(!1),c=w.useRef(null),f=t.children,h=t.disabled,p=t.noFocusGuards,v=t.persistentFocus,y=t.crossFrame,m=t.autoFocus;t.allowTextSelection;var _=t.group,b=t.className,S=t.whiteList,C=t.hasPositiveIndices,E=t.shards,R=E===void 0?ofe:E,A=t.as,I=A===void 0?"div":A,M=t.lockProps,F=M===void 0?{}:M,z=t.sideCar,Y=t.returnFocus,W=t.focusOptions,q=t.onActivation,ae=t.onDeactivation,ee=w.useState({}),ce=ee[0],ue=w.useCallback(function(){c.current=c.current||document&&document.activeElement,s.current&&q&&q(s.current),l.current=!0},[q]),J=w.useCallback(function(){l.current=!1,ae&&ae(s.current)},[ae]);w.useEffect(function(){h||(c.current=null)},[]);var me=w.useCallback(function(it){var Ye=c.current;if(Ye&&Ye.focus){var nt=typeof Y=="function"?Y(Ye):Y;if(nt){var wt=typeof nt=="object"?nt:void 0;c.current=null,it?Promise.resolve().then(function(){return Ye.focus(wt)}):Ye.focus(wt)}}},[Y]),we=w.useCallback(function(it){l.current&&hN.useMedium(it)},[]),Ce=pN.useMedium,Ee=w.useCallback(function(it){s.current!==it&&(s.current=it,o(it))},[]),xe=Je((r={},r[oN]=h&&"disabled",r[HC]=_,r),F),ye=p!==!0,Le=ye&&p!=="tail",Ae=sN([n,Ee]);return w.createElement(w.Fragment,null,ye&&[w.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:fw}),C?w.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:fw}):null],!h&&w.createElement(z,{id:ce,sideCar:afe,observed:a,disabled:h,persistentFocus:v,crossFrame:y,autoFocus:m,whiteList:S,shards:R,onActivation:ue,onDeactivation:J,returnFocus:me,focusOptions:W}),w.createElement(I,Je({ref:Ae},xe,{className:b,onBlur:Ce,onFocus:we}),f),Le&&w.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:fw}))});Q4.propTypes={};Q4.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const mN=Q4;function x1(e,t){return x1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},x1(e,t)}function gN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,x1(e,t)}function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function sfe(e,t){if(nl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vN(e){var t=sfe(e,"string");return nl(t)==="symbol"?t:String(t)}function of(e,t,n){return t=vN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lfe(e,t){function n(r){return r.displayName||r.name||"Component"}return function(i){var a=[],o;function s(){o=e(a.map(function(c){return c.props})),t(o)}var l=function(c){gN(f,c);function f(){return c.apply(this,arguments)||this}f.peek=function(){return o};var h=f.prototype;return h.componentDidMount=function(){a.push(this),s()},h.componentDidUpdate=function(){s()},h.componentWillUnmount=function(){var v=a.indexOf(this);a.splice(v,1),s()},h.render=function(){return ve.createElement(i,this.props)},f}(w.PureComponent);return of(l,"displayName","SideEffect("+n(i)+")"),l}}var fs=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},C1=function(e){return Array.isArray(e)?e:[e]},yN=function(e){return Array.isArray(e)?e[0]:e},ufe=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},_N=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},bN=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},cfe=function(e,t){return!e||bN(e)||!ufe(e)&&t(_N(e))},SN=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=cfe(t,SN.bind(void 0,e));return e.set(t,r),r},dfe=function(e,t){return e&&!bN(e)?pfe(e)?t(_N(e)):!1:!0},wN=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=dfe(t,wN.bind(void 0,e));return e.set(t,r),r},xN=function(e){return e.dataset},ffe=function(e){return e.tagName==="BUTTON"},CN=function(e){return e.tagName==="INPUT"},EN=function(e){return CN(e)&&e.type==="radio"},hfe=function(e){return!((CN(e)||ffe(e))&&(e.type==="hidden"||e.disabled))},pfe=function(e){var t=e.getAttribute(Jde);return![!0,"true",""].includes(t)},X4=function(e){var t;return!!(e&&(!((t=xN(e))===null||t===void 0)&&t.focusGuard))},E1=function(e){return!X4(e)},mfe=function(e){return!!e},gfe=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},kN=function(e,t,n){return fs(e).map(function(r,i){return{node:r,index:i,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(gfe)},vfe=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],J4=vfe.join(","),yfe="".concat(J4,", [data-focus-guard]"),TN=function(e,t){return fs((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?yfe:J4)?[r]:[],TN(r))},[])},_fe=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Cb([e.contentDocument.body],t):[e]},Cb=function(e,t){return e.reduce(function(n,r){var i,a=TN(r,t),o=(i=[]).concat.apply(i,a.map(function(s){return _fe(s,t)}));return n.concat(o,r.parentNode?fs(r.parentNode.querySelectorAll(J4)).filter(function(s){return s===r}):[])},[])},bfe=function(e){var t=e.querySelectorAll("[".concat(Xde,"]"));return fs(t).map(function(n){return Cb([n])}).reduce(function(n,r){return n.concat(r)},[])},e6=function(e,t){return fs(e).filter(function(n){return SN(t,n)}).filter(function(n){return hfe(n)})},UP=function(e,t){return t===void 0&&(t=new Map),fs(e).filter(function(n){return wN(t,n)})},WC=function(e,t,n){return kN(e6(Cb(e,n),t),!0,n)},HP=function(e,t){return kN(e6(Cb(e),t),!1)},Sfe=function(e,t){return e6(bfe(e),t)},kf=function(e,t){return e.shadowRoot?kf(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:fs(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?kf(i,t):!1}return kf(n,t)})},wfe=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var a=e[r].compareDocumentPosition(e[i]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(o,s){return!t.has(s)})},PN=function(e){return e.parentNode?PN(e.parentNode):e},t6=function(e){var t=C1(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(HC);return n.push.apply(n,i?wfe(fs(PN(r).querySelectorAll("[".concat(HC,'="').concat(i,'"]:not([').concat(oN,'="disabled"])')))):[r]),n},[])},xfe=function(e){try{return e()}catch{return}},Ym=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ym(t.shadowRoot):t instanceof HTMLIFrameElement&&xfe(function(){return t.contentWindow.document})?Ym(t.contentWindow.document):t}},Cfe=function(e,t){return e===t},Efe=function(e,t){return!!fs(e.querySelectorAll("iframe")).some(function(n){return Cfe(n,t)})},ON=function(e,t){return t===void 0&&(t=Ym(yN(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:t6(e).some(function(n){return kf(n,t)||Efe(n,t)})},kfe=function(e){e===void 0&&(e=document);var t=Ym(e);return t?fs(e.querySelectorAll("[".concat(Qde,"]"))).some(function(n){return kf(n,t)}):!1},Tfe=function(e,t){return t.filter(EN).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},n6=function(e,t){return EN(e)&&e.name?Tfe(e,t):e},Pfe=function(e){var t=new Set;return e.forEach(function(n){return t.add(n6(n,e))}),e.filter(function(n){return t.has(n)})},WP=function(e){return e[0]&&e.length>1?n6(e[0],e):e[0]},qP=function(e,t){return e.length>1?e.indexOf(n6(e[t],e)):t},RN="NEW_FOCUS",Ofe=function(e,t,n,r){var i=e.length,a=e[0],o=e[i-1],s=X4(n);if(!(n&&e.indexOf(n)>=0)){var l=n!==void 0?t.indexOf(n):-1,c=r?t.indexOf(r):l,f=r?e.indexOf(r):-1,h=l-c,p=t.indexOf(a),v=t.indexOf(o),y=Pfe(t),m=n!==void 0?y.indexOf(n):-1,_=m-(r?y.indexOf(r):l),b=qP(e,0),S=qP(e,i-1);if(l===-1||f===-1)return RN;if(!h&&f>=0)return f;if(l<=p&&s&&Math.abs(h)>1)return S;if(l>=v&&s&&Math.abs(h)>1)return b;if(h&&Math.abs(_)>1)return f;if(l<=p)return S;if(l>v)return b;if(h)return Math.abs(h)>1?f:(i+f+h)%i}},Rfe=function(e){return function(t){var n,r=(n=xN(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},Afe=function(e,t,n){var r=e.map(function(a){var o=a.node;return o}),i=UP(r.filter(Rfe(n)));return i&&i.length?WP(i):WP(UP(t))},qC=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&qC(e.parentNode.host||e.parentNode,t),t},hw=function(e,t){for(var n=qC(e),r=qC(t),i=0;i<n.length;i+=1){var a=n[i];if(r.indexOf(a)>=0)return a}return!1},AN=function(e,t,n){var r=C1(e),i=C1(t),a=r[0],o=!1;return i.filter(Boolean).forEach(function(s){o=hw(o||s,s)||o,n.filter(Boolean).forEach(function(l){var c=hw(a,l);c&&(!o||kf(c,o)?o=c:o=hw(c,o))})}),o},Ife=function(e,t){return e.reduce(function(n,r){return n.concat(Sfe(r,t))},[])},Lfe=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(mfe)},Mfe=function(e,t){var n=Ym(C1(e).length>0?document:yN(e).ownerDocument),r=t6(e).filter(E1),i=AN(n||e,e,r),a=new Map,o=HP(r,a),s=WC(r,a).filter(function(v){var y=v.node;return E1(y)});if(!(!s[0]&&(s=o,!s[0]))){var l=HP([i],a).map(function(v){var y=v.node;return y}),c=Lfe(l,s),f=c.map(function(v){var y=v.node;return y}),h=Ofe(f,l,n,t);if(h===RN){var p=Afe(o,f,Ife(r,a));if(p)return{node:p};console.warn("focus-lock: cannot find any node to move focus into");return}return h===void 0?h:c[h]}},Dfe=function(e){var t=t6(e).filter(E1),n=AN(e,e,t),r=new Map,i=WC([n],r,!0),a=WC(t,r).filter(function(o){var s=o.node;return E1(s)}).map(function(o){var s=o.node;return s});return i.map(function(o){var s=o.node,l=o.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:X4(s)}})},Nfe=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},pw=0,mw=!1,IN=function(e,t,n){n===void 0&&(n={});var r=Mfe(e,t);if(!mw&&r){if(pw>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),mw=!0,setTimeout(function(){mw=!1},1);return}pw++,Nfe(r.node,n.focusOptions),pw--}};function r6(e){setTimeout(e,1)}var Ffe=function(){return document&&document.activeElement===document.body},$fe=function(){return Ffe()||kfe()},Tf=null,sf=null,Pf=null,Zm=!1,zfe=function(){return!0},jfe=function(t){return(Tf.whiteList||zfe)(t)},Bfe=function(t,n){Pf={observerNode:t,portaledElement:n}},Vfe=function(t){return Pf&&Pf.portaledElement===t};function GP(e,t,n,r){var i=null,a=e;do{var o=r[a];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var Ufe=function(t){return t&&"current"in t?t.current:t},Hfe=function(t){return t?!!Zm:Zm==="meanwhile"},Wfe=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},qfe=function(t,n){return n.some(function(r){return Wfe(t,r,r)})},k1=function(){var t=!1;if(Tf){var n=Tf,r=n.observed,i=n.persistentFocus,a=n.autoFocus,o=n.shards,s=n.crossFrame,l=n.focusOptions,c=r||Pf&&Pf.portaledElement,f=document&&document.activeElement;if(c){var h=[c].concat(o.map(Ufe).filter(Boolean));if((!f||jfe(f))&&(i||Hfe(s)||!$fe()||!sf&&a)&&(c&&!(ON(h)||f&&qfe(f,h)||Vfe(f))&&(document&&!sf&&f&&!a?(f.blur&&f.blur(),document.body.focus()):(t=IN(h,sf,{focusOptions:l}),Pf={})),Zm=!1,sf=document&&document.activeElement),document){var p=document&&document.activeElement,v=Dfe(h),y=v.map(function(m){var _=m.node;return _}).indexOf(p);y>-1&&(v.filter(function(m){var _=m.guard,b=m.node;return _&&b.dataset.focusAutoGuard}).forEach(function(m){var _=m.node;return _.removeAttribute("tabIndex")}),GP(y,v.length,1,v),GP(y,-1,-1,v))}}}return t},LN=function(t){k1()&&t&&(t.stopPropagation(),t.preventDefault())},i6=function(){return r6(k1)},Gfe=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||Bfe(r,n)},Kfe=function(){return null},MN=function(){Zm="just",r6(function(){Zm="meanwhile"})},Yfe=function(){document.addEventListener("focusin",LN),document.addEventListener("focusout",i6),window.addEventListener("blur",MN)},Zfe=function(){document.removeEventListener("focusin",LN),document.removeEventListener("focusout",i6),window.removeEventListener("blur",MN)};function Qfe(e){return e.filter(function(t){var n=t.disabled;return!n})}function Xfe(e){var t=e.slice(-1)[0];t&&!Tf&&Yfe();var n=Tf,r=n&&t&&t.id===n.id;Tf=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var a=i.id;return a===n.id}).length||n.returnFocus(!t)),t?(sf=null,(!r||n.observed!==t.observed)&&t.onActivation(),k1(),r6(k1)):(Zfe(),sf=null)}hN.assignSyncMedium(Gfe);pN.assignMedium(i6);ife.assignMedium(function(e){return e({moveFocusInside:IN,focusInside:ON})});const Jfe=lfe(Qfe,Xfe)(Kfe);var DN=w.forwardRef(function(t,n){return w.createElement(mN,Je({sideCar:Jfe,ref:n},t))}),NN=mN.propTypes||{};NN.sideCar;aN(NN,["sideCar"]);DN.propTypes={};const KP=DN;function FN(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function $N(e){var t;if(!FN(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function ehe(e){var t,n;return(n=(t=zN(e))==null?void 0:t.defaultView)!=null?n:window}function zN(e){return FN(e)?e.ownerDocument:document}function the(e){return zN(e).activeElement}var jN=e=>e.hasAttribute("tabindex"),nhe=e=>jN(e)&&e.tabIndex===-1;function rhe(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function BN(e){return e.parentElement&&BN(e.parentElement)?!0:e.hidden}function ihe(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function VN(e){if(!$N(e)||BN(e)||rhe(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():ihe(e)?!0:jN(e)}function ahe(e){return e?$N(e)&&VN(e)&&!nhe(e):!1}var ohe=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],she=ohe.join(),lhe=e=>e.offsetWidth>0&&e.offsetHeight>0;function UN(e){const t=Array.from(e.querySelectorAll(she));return t.unshift(e),t.filter(n=>VN(n)&&lhe(n))}var YP,uhe=(YP=KP.default)!=null?YP:KP,HN=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:a,isDisabled:o,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,f=w.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&UN(r.current).length===0&&requestAnimationFrame(()=>{var y;(y=r.current)==null||y.focus()})},[t,r]),h=w.useCallback(()=>{var v;(v=n==null?void 0:n.current)==null||v.focus()},[n]),p=i&&!n;return T.jsx(uhe,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:o,onActivation:f,onDeactivation:h,returnFocus:p,children:a})};HN.displayName="FocusLock";var che=Oae?w.useLayoutEffect:w.useEffect;function ZP(e,t=[]){const n=w.useRef(e);return che(()=>{n.current=e}),w.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function dhe(e,t){const n=w.useId();return w.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function fhe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function WN(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,a=ZP(n),o=ZP(t),[s,l]=w.useState(e.defaultIsOpen||!1),[c,f]=fhe(r,s),h=dhe(i,"disclosure"),p=w.useCallback(()=>{c||l(!1),o==null||o()},[c,o]),v=w.useCallback(()=>{c||l(!0),a==null||a()},[c,a]),y=w.useCallback(()=>{(f?p:v)()},[f,v,p]);return{isOpen:!!f,onOpen:v,onClose:p,onToggle:y,isControlled:c,getButtonProps:(m={})=>({...m,"aria-expanded":f,"aria-controls":h,onClick:Mae(m.onClick,y)}),getDisclosureProps:(m={})=>({...m,hidden:!f,id:h})}}var T1=Xe(function(t,n){const r=Xa("Link",t),{className:i,isExternal:a,...o}=_r(t);return T.jsx(je.a,{target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:n,className:At("chakra-link",i),...o,__css:r})});T1.displayName="Link";var[hhe,qN]=lr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),Eb=Xe(function(t,n){const r=Pr("List",t),{children:i,styleType:a="none",stylePosition:o,spacing:s,...l}=_r(t),c=QD(i),h=s?{["& > *:not(style) ~ *:not(style)"]:{mt:s}}:{};return T.jsx(hhe,{value:r,children:T.jsx(je.ul,{ref:n,listStyleType:a,listStylePosition:o,role:"list",__css:{...r.container,...h},...l,children:c})})});Eb.displayName="List";var phe=Xe((e,t)=>{const{as:n,...r}=e;return T.jsx(Eb,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});phe.displayName="OrderedList";var mhe=Xe(function(t,n){const{as:r,...i}=t;return T.jsx(Eb,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});mhe.displayName="UnorderedList";var GN=Xe(function(t,n){const r=qN();return T.jsx(je.li,{ref:n,...t,__css:r.item})});GN.displayName="ListItem";var KN=Xe(function(t,n){const r=qN();return T.jsx(Wt,{ref:n,role:"presentation",...t,__css:r.icon})});KN.displayName="ListIcon";var a6=Xe(function(t,n){const{templateAreas:r,gap:i,rowGap:a,columnGap:o,column:s,row:l,autoFlow:c,autoRows:f,templateRows:h,autoColumns:p,templateColumns:v,...y}=t,m={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:a,gridColumnGap:o,gridAutoColumns:p,gridColumn:s,gridRow:l,gridAutoFlow:c,gridAutoRows:f,gridTemplateRows:h,gridTemplateColumns:v};return T.jsx(je.div,{ref:n,__css:m,...y})});a6.displayName="Grid";var YN=Object.freeze(["base","sm","md","lg","xl","2xl"]);function kb(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Qi(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function ghe(e,t=YN){const n={};return e.forEach((r,i)=>{const a=t[i];r!=null&&(n[a]=r)}),n}var ZN=Xe(function(t,n){const{columns:r,spacingX:i,spacingY:a,spacing:o,minChildWidth:s,...l}=t,c=ol(),f=s?yhe(s,c):_he(r);return T.jsx(a6,{ref:n,gap:o,columnGap:i,rowGap:a,templateColumns:f,...l})});ZN.displayName="SimpleGrid";function vhe(e){return typeof e=="number"?`${e}px`:e}function yhe(e,t){return kb(e,n=>{const r=HL("sizes",n,vhe(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function _he(e){return kb(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var QN=je("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});QN.displayName="Spacer";var Ot=Xe(function(t,n){const r=Xa("Text",t),{className:i,align:a,decoration:o,casing:s,...l}=_r(t),c=_M({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return T.jsx(je.p,{ref:n,className:At("chakra-text",t.className),...c,...l,__css:r})});Ot.displayName="Text";var o6=e=>T.jsx(je.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});o6.displayName="StackDivider";var XN=e=>T.jsx(je.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});XN.displayName="StackItem";function bhe(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":kb(n,i=>r[i])}}var Fg=Xe((e,t)=>{const{isInline:n,direction:r,align:i,justify:a,spacing:o="0.5rem",wrap:s,children:l,divider:c,className:f,shouldWrapChildren:h,...p}=e,v=n?"row":r??"column",y=w.useMemo(()=>bhe({spacing:o,direction:v}),[o,v]),m=!!c,_=!h&&!m,b=w.useMemo(()=>{const C=QD(l);return _?C:C.map((E,R)=>{const A=typeof E.key<"u"?E.key:R,I=R+1===C.length,F=h?T.jsx(XN,{children:E},A):E;if(!m)return F;const z=w.cloneElement(c,{__css:y}),Y=I?null:z;return T.jsxs(w.Fragment,{children:[F,Y]},A)})},[c,y,m,_,h,l]),S=At("chakra-stack",f);return T.jsx(je.div,{ref:t,display:"flex",alignItems:i,justifyContent:a,flexDirection:v,flexWrap:s,gap:m?void 0:o,className:S,...p,children:b})});Fg.displayName="Stack";var vh=Xe((e,t)=>T.jsx(Fg,{align:"center",...e,direction:"column",ref:t}));vh.displayName="VStack";var $g=Xe((e,t)=>T.jsx(Fg,{align:"center",...e,direction:"row",ref:t}));$g.displayName="HStack";function QP(e){return kb(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Vp=Xe(function(t,n){const{area:r,colSpan:i,colStart:a,colEnd:o,rowEnd:s,rowSpan:l,rowStart:c,...f}=t,h=_M({gridArea:r,gridColumn:QP(i),gridRow:QP(l),gridColumnStart:a,gridColumnEnd:o,gridRowStart:c,gridRowEnd:s});return T.jsx(je.div,{ref:n,__css:h,...f})});Vp.displayName="GridItem";var JN=Xe(function(t,n){const r=Xa("Heading",t),{className:i,...a}=_r(t);return T.jsx(je.h2,{ref:n,className:At("chakra-heading",t.className),...a,__css:r})});JN.displayName="Heading";var $e=je("div");$e.displayName="Box";var eF=Xe(function(t,n){const{size:r,centerContent:i=!0,...a}=t,o=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return T.jsx($e,{ref:n,boxSize:r,__css:{...o,flexShrink:0,flexGrow:0},...a})});eF.displayName="Square";var She=Xe(function(t,n){const{size:r,...i}=t;return T.jsx(eF,{size:r,ref:n,borderRadius:"9999px",...i})});She.displayName="Circle";var hu=je("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});hu.displayName="Center";var whe={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Xe(function(t,n){const{axis:r="both",...i}=t;return T.jsx(je.div,{ref:n,__css:whe[r],...i,position:"absolute"})});var tF=Xe(function(t,n){const{className:r,centerContent:i,...a}=_r(t),o=Xa("Container",t);return T.jsx(je.div,{ref:n,className:At("chakra-container",r),...a,__css:{...o,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});tF.displayName="Container";var nF=Xe(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:a,borderRightWidth:o,borderWidth:s,borderStyle:l,borderColor:c,...f}=Xa("Divider",t),{className:h,orientation:p="horizontal",__css:v,...y}=_r(t),m={vertical:{borderLeftWidth:r||o||s||"1px",height:"100%"},horizontal:{borderBottomWidth:i||a||s||"1px",width:"100%"}};return T.jsx(je.hr,{ref:n,"aria-orientation":p,...y,__css:{...f,border:"0",borderColor:c,borderStyle:l,...m[p],...v},className:At("chakra-divider",h)})});nF.displayName="Divider";var fi=Xe(function(t,n){const{direction:r,align:i,justify:a,wrap:o,basis:s,grow:l,shrink:c,...f}=t,h={display:"flex",flexDirection:r,alignItems:i,justifyContent:a,flexWrap:o,flexBasis:s,flexGrow:l,flexShrink:c};return T.jsx(je.div,{ref:n,__css:h,...f})});fi.displayName="Flex";function xhe(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=aoe(),a=Array.isArray(e)?e:[e];let o=Array.isArray(r)?r:[r];o=o.filter(c=>c!=null);const[s,l]=w.useState(()=>a.map((c,f)=>({media:c,matches:n?!!o[f]:i().matchMedia(c).matches})));return w.useEffect(()=>{const c=i();l(a.map(p=>({media:p,matches:c.matchMedia(p).matches})));const f=a.map(p=>c.matchMedia(p)),h=p=>{l(v=>v.slice().map(y=>y.media===p.media?{...y,matches:p.matches}:y))};return f.forEach(p=>{typeof p.addListener=="function"?p.addListener(h):p.addEventListener("change",h)}),()=>{f.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(h):p.removeEventListener("change",h)})}},[i]),s.map(c=>c.matches)}function Che(e,t,n=YN){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const a=n[i];if(e.hasOwnProperty(a)){r=i;break}i-=1}if(r!==-1){const a=n[r];return e[a]}}function Ehe(e){var t,n;const r=Qi(e)?e:{fallback:e??"base"},a=ol().__breakpoints.details.map(({minMaxQuery:c,breakpoint:f})=>({breakpoint:f,query:c.replace("@media screen and ","")})),o=a.map(c=>c.breakpoint===r.fallback),l=xhe(a.map(c=>c.query),{fallback:o,ssr:r.ssr}).findIndex(c=>c==!0);return(n=(t=a[l])==null?void 0:t.breakpoint)!=null?n:r.fallback}function khe(e,t){var n;const r=Qi(t)?t:{fallback:t??"base"},i=Ehe(r),a=ol();if(!i)return;const o=Array.from(((n=a.__breakpoints)==null?void 0:n.keys)||[]),s=Array.isArray(e)?Object.fromEntries(Object.entries(ghe(e,o)).map(([l,c])=>[l,c])):e;return Che(s,i,o)}function The(e){const t=e.current;if(!t)return!1;const n=the(t);return!n||t.contains(n)?!1:!!ahe(n)}function rF(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,a=n&&!r;qf(()=>{if(!a||The(e))return;const o=(i==null?void 0:i.current)||e.current;let s;if(o)return s=requestAnimationFrame(()=>{o.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[a,e,i])}var Phe={preventScroll:!0,shouldFocus:!1};function Ohe(e,t=Phe){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:a}=t,o=Rhe(e)?e.current:e,s=i&&a,l=w.useRef(s),c=w.useRef(a);rs(()=>{!c.current&&a&&(l.current=s),c.current=a},[a,s]);const f=w.useCallback(()=>{if(!(!a||!o||!l.current)&&(l.current=!1,!o.contains(document.activeElement)))if(n!=null&&n.current)requestAnimationFrame(()=>{var h;(h=n.current)==null||h.focus({preventScroll:r})});else{const h=UN(o);h.length>0&&requestAnimationFrame(()=>{h[0].focus({preventScroll:r})})}},[a,r,o,n]);qf(()=>{f()},[f]),Y4(o,"transitionend",f)}function Rhe(e){return"current"in e}var bd=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),di={arrowShadowColor:bd("--popper-arrow-shadow-color"),arrowSize:bd("--popper-arrow-size","8px"),arrowSizeHalf:bd("--popper-arrow-size-half"),arrowBg:bd("--popper-arrow-bg"),transformOrigin:bd("--popper-transform-origin"),arrowOffset:bd("--popper-arrow-offset")};function Ahe(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var Ihe={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Lhe=e=>Ihe[e],XP={scroll:!0,resize:!0};function Mhe(e){let t;return typeof e=="object"?t={enabled:!0,options:{...XP,...e}}:t={enabled:e,options:XP},t}var Dhe={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},Nhe={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{JP(e)},effect:({state:e})=>()=>{JP(e)}},JP=e=>{e.elements.popper.style.setProperty(di.transformOrigin.var,Lhe(e.placement))},Fhe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{$he(e)}},$he=e=>{var t;if(!e.placement)return;const n=zhe(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:di.arrowSize.varRef,height:di.arrowSize.varRef,zIndex:-1});const r={[di.arrowSizeHalf.var]:`calc(${di.arrowSize.varRef} / 2 - 1px)`,[di.arrowOffset.var]:`calc(${di.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},zhe=e=>{if(e.startsWith("top"))return{property:"bottom",value:di.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:di.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:di.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:di.arrowOffset.varRef}},jhe={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{e9(e)},effect:({state:e})=>()=>{e9(e)}},e9=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=Ahe(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:di.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},Bhe={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Vhe={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function Uhe(e,t="ltr"){var n,r;const i=((n=Bhe[e])==null?void 0:n[t])||e;return t==="ltr"?i:(r=Vhe[e])!=null?r:i}var Xi="top",Ya="bottom",Za="right",Ji="left",s6="auto",zg=[Xi,Ya,Za,Ji],Yf="start",Qm="end",Hhe="clippingParents",iF="viewport",vp="popper",Whe="reference",t9=zg.reduce(function(e,t){return e.concat([t+"-"+Yf,t+"-"+Qm])},[]),aF=[].concat(zg,[s6]).reduce(function(e,t){return e.concat([t,t+"-"+Yf,t+"-"+Qm])},[]),qhe="beforeRead",Ghe="read",Khe="afterRead",Yhe="beforeMain",Zhe="main",Qhe="afterMain",Xhe="beforeWrite",Jhe="write",epe="afterWrite",tpe=[qhe,Ghe,Khe,Yhe,Zhe,Qhe,Xhe,Jhe,epe];function ss(e){return e?(e.nodeName||"").toLowerCase():null}function ya(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rc(e){var t=ya(e).Element;return e instanceof t||e instanceof Element}function Wa(e){var t=ya(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function l6(e){if(typeof ShadowRoot>"u")return!1;var t=ya(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function npe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Wa(a)||!ss(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function rpe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,c){return l[c]="",l},{});!Wa(i)||!ss(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const ipe={name:"applyStyles",enabled:!0,phase:"write",fn:npe,effect:rpe,requires:["computeStyles"]};function os(e){return e.split("-")[0]}var yc=Math.max,P1=Math.min,Zf=Math.round;function GC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function oF(){return!/^((?!chrome|android).)*safari/i.test(GC())}function Qf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Wa(e)&&(i=e.offsetWidth>0&&Zf(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Zf(r.height)/e.offsetHeight||1);var o=Rc(e)?ya(e):window,s=o.visualViewport,l=!oF()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/a,h=r.width/i,p=r.height/a;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function u6(e){var t=Qf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&l6(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rl(e){return ya(e).getComputedStyle(e)}function ape(e){return["table","td","th"].indexOf(ss(e))>=0}function Cu(e){return((Rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tb(e){return ss(e)==="html"?e:e.assignedSlot||e.parentNode||(l6(e)?e.host:null)||Cu(e)}function n9(e){return!Wa(e)||rl(e).position==="fixed"?null:e.offsetParent}function ope(e){var t=/firefox/i.test(GC()),n=/Trident/i.test(GC());if(n&&Wa(e)){var r=rl(e);if(r.position==="fixed")return null}var i=Tb(e);for(l6(i)&&(i=i.host);Wa(i)&&["html","body"].indexOf(ss(i))<0;){var a=rl(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function jg(e){for(var t=ya(e),n=n9(e);n&&ape(n)&&rl(n).position==="static";)n=n9(n);return n&&(ss(n)==="html"||ss(n)==="body"&&rl(n).position==="static")?t:n||ope(e)||t}function c6(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cm(e,t,n){return yc(e,P1(t,n))}function spe(e,t,n){var r=cm(e,t,n);return r>n?n:r}function lF(){return{top:0,right:0,bottom:0,left:0}}function uF(e){return Object.assign({},lF(),e)}function cF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lpe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uF(typeof t!="number"?t:cF(t,zg))};function upe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=os(n.placement),l=c6(s),c=[Ji,Za].indexOf(s)>=0,f=c?"height":"width";if(!(!a||!o)){var h=lpe(i.padding,n),p=u6(a),v=l==="y"?Xi:Ji,y=l==="y"?Ya:Za,m=n.rects.reference[f]+n.rects.reference[l]-o[l]-n.rects.popper[f],_=o[l]-n.rects.reference[l],b=jg(a),S=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,C=m/2-_/2,E=h[v],R=S-p[f]-h[y],A=S/2-p[f]/2+C,I=cm(E,A,R),M=l;n.modifiersData[r]=(t={},t[M]=I,t.centerOffset=I-A,t)}}function cpe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||sF(t.elements.popper,i)&&(t.elements.arrow=i))}const dpe={name:"arrow",enabled:!0,phase:"main",fn:upe,effect:cpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xf(e){return e.split("-")[1]}var fpe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hpe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zf(n*i)/i||0,y:Zf(r*i)/i||0}}function r9(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=o.x,v=p===void 0?0:p,y=o.y,m=y===void 0?0:y,_=typeof f=="function"?f({x:v,y:m}):{x:v,y:m};v=_.x,m=_.y;var b=o.hasOwnProperty("x"),S=o.hasOwnProperty("y"),C=Ji,E=Xi,R=window;if(c){var A=jg(n),I="clientHeight",M="clientWidth";if(A===ya(n)&&(A=Cu(n),rl(A).position!=="static"&&s==="absolute"&&(I="scrollHeight",M="scrollWidth")),A=A,i===Xi||(i===Ji||i===Za)&&a===Qm){E=Ya;var F=h&&A===R&&R.visualViewport?R.visualViewport.height:A[I];m-=F-r.height,m*=l?1:-1}if(i===Ji||(i===Xi||i===Ya)&&a===Qm){C=Za;var z=h&&A===R&&R.visualViewport?R.visualViewport.width:A[M];v-=z-r.width,v*=l?1:-1}}var Y=Object.assign({position:s},c&&fpe),W=f===!0?hpe({x:v,y:m},ya(n)):{x:v,y:m};if(v=W.x,m=W.y,l){var q;return Object.assign({},Y,(q={},q[E]=S?"0":"",q[C]=b?"0":"",q.transform=(R.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",q))}return Object.assign({},Y,(t={},t[E]=S?m+"px":"",t[C]=b?v+"px":"",t.transform="",t))}function ppe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:os(t.placement),variation:Xf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,r9(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,r9(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mpe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ppe,data:{}};var O0={passive:!0};function gpe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=ya(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",n.update,O0)}),s&&l.addEventListener("resize",n.update,O0),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",n.update,O0)}),s&&l.removeEventListener("resize",n.update,O0)}}const vpe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gpe,data:{}};var ype={left:"right",right:"left",bottom:"top",top:"bottom"};function by(e){return e.replace(/left|right|bottom|top/g,function(t){return ype[t]})}var _pe={start:"end",end:"start"};function i9(e){return e.replace(/start|end/g,function(t){return _pe[t]})}function d6(e){var t=ya(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function f6(e){return Qf(Cu(e)).left+d6(e).scrollLeft}function bpe(e,t){var n=ya(e),r=Cu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=oF();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+f6(e),y:l}}function Spe(e){var t,n=Cu(e),r=d6(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=yc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=yc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+f6(e),l=-r.scrollTop;return rl(i||n).direction==="rtl"&&(s+=yc(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function h6(e){var t=rl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function dF(e){return["html","body","#document"].indexOf(ss(e))>=0?e.ownerDocument.body:Wa(e)&&h6(e)?e:dF(Tb(e))}function dm(e,t){var n;t===void 0&&(t=[]);var r=dF(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ya(r),o=i?[a].concat(a.visualViewport||[],h6(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(dm(Tb(o)))}function KC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wpe(e,t){var n=Qf(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function a9(e,t,n){return t===iF?KC(bpe(e,n)):Rc(t)?wpe(t,n):KC(Spe(Cu(e)))}function xpe(e){var t=dm(Tb(e)),n=["absolute","fixed"].indexOf(rl(e).position)>=0,r=n&&Wa(e)?jg(e):e;return Rc(r)?t.filter(function(i){return Rc(i)&&sF(i,r)&&ss(i)!=="body"}):[]}function Cpe(e,t,n,r){var i=t==="clippingParents"?xpe(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var f=a9(e,c,r);return l.top=yc(f.top,l.top),l.right=P1(f.right,l.right),l.bottom=P1(f.bottom,l.bottom),l.left=yc(f.left,l.left),l},a9(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fF(e){var t=e.reference,n=e.element,r=e.placement,i=r?os(r):null,a=r?Xf(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Xi:l={x:o,y:t.y-n.height};break;case Ya:l={x:o,y:t.y+t.height};break;case Za:l={x:t.x+t.width,y:s};break;case Ji:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?c6(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case Yf:l[c]=l[c]-(t[f]/2-n[f]/2);break;case Qm:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function Xm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?Hhe:s,c=n.rootBoundary,f=c===void 0?iF:c,h=n.elementContext,p=h===void 0?vp:h,v=n.altBoundary,y=v===void 0?!1:v,m=n.padding,_=m===void 0?0:m,b=uF(typeof _!="number"?_:cF(_,zg)),S=p===vp?Whe:vp,C=e.rects.popper,E=e.elements[y?S:p],R=Cpe(Rc(E)?E:E.contextElement||Cu(e.elements.popper),l,f,o),A=Qf(e.elements.reference),I=fF({reference:A,element:C,strategy:"absolute",placement:i}),M=KC(Object.assign({},C,I)),F=p===vp?M:A,z={top:R.top-F.top+b.top,bottom:F.bottom-R.bottom+b.bottom,left:R.left-F.left+b.left,right:F.right-R.right+b.right},Y=e.modifiersData.offset;if(p===vp&&Y){var W=Y[i];Object.keys(z).forEach(function(q){var ae=[Za,Ya].indexOf(q)>=0?1:-1,ee=[Xi,Ya].indexOf(q)>=0?"y":"x";z[q]+=W[ee]*ae})}return z}function Epe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?aF:l,f=Xf(r),h=f?s?t9:t9.filter(function(y){return Xf(y)===f}):zg,p=h.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=h);var v=p.reduce(function(y,m){return y[m]=Xm(e,{placement:m,boundary:i,rootBoundary:a,padding:o})[os(m)],y},{});return Object.keys(v).sort(function(y,m){return v[y]-v[m]})}function kpe(e){if(os(e)===s6)return[];var t=by(e);return[i9(e),t,i9(t)]}function Tpe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,m=n.allowedAutoPlacements,_=t.options.placement,b=os(_),S=b===_,C=l||(S||!y?[by(_)]:kpe(_)),E=[_].concat(C).reduce(function(ye,Le){return ye.concat(os(Le)===s6?Epe(t,{placement:Le,boundary:f,rootBoundary:h,padding:c,flipVariations:y,allowedAutoPlacements:m}):Le)},[]),R=t.rects.reference,A=t.rects.popper,I=new Map,M=!0,F=E[0],z=0;z<E.length;z++){var Y=E[z],W=os(Y),q=Xf(Y)===Yf,ae=[Xi,Ya].indexOf(W)>=0,ee=ae?"width":"height",ce=Xm(t,{placement:Y,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),ue=ae?q?Za:Ji:q?Ya:Xi;R[ee]>A[ee]&&(ue=by(ue));var J=by(ue),me=[];if(a&&me.push(ce[W]<=0),s&&me.push(ce[ue]<=0,ce[J]<=0),me.every(function(ye){return ye})){F=Y,M=!1;break}I.set(Y,me)}if(M)for(var we=y?3:1,Ce=function(Le){var Ae=E.find(function(it){var Ye=I.get(it);if(Ye)return Ye.slice(0,Le).every(function(nt){return nt})});if(Ae)return F=Ae,"break"},Ee=we;Ee>0;Ee--){var xe=Ce(Ee);if(xe==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const Ppe={name:"flip",enabled:!0,phase:"main",fn:Tpe,requiresIfExists:["offset"],data:{_skip:!1}};function o9(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s9(e){return[Xi,Za,Ya,Ji].some(function(t){return e[t]>=0})}function Ope(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Xm(t,{elementContext:"reference"}),s=Xm(t,{altBoundary:!0}),l=o9(o,r),c=o9(s,i,a),f=s9(l),h=s9(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Rpe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ope};function Ape(e,t,n){var r=os(e),i=[Ji,Xi].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Ji,Za].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Ipe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=aF.reduce(function(f,h){return f[h]=Ape(h,t.rects,a),f},{}),s=o[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const Lpe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ipe};function Mpe(e){var t=e.state,n=e.name;t.modifiersData[n]=fF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Dpe={name:"popperOffsets",enabled:!0,phase:"read",fn:Mpe,data:{}};function Npe(e){return e==="x"?"y":"x"}function Fpe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,v=p===void 0?!0:p,y=n.tetherOffset,m=y===void 0?0:y,_=Xm(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),b=os(t.placement),S=Xf(t.placement),C=!S,E=c6(b),R=Npe(E),A=t.modifiersData.popperOffsets,I=t.rects.reference,M=t.rects.popper,F=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,z=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(A){if(a){var q,ae=E==="y"?Xi:Ji,ee=E==="y"?Ya:Za,ce=E==="y"?"height":"width",ue=A[E],J=ue+_[ae],me=ue-_[ee],we=v?-M[ce]/2:0,Ce=S===Yf?I[ce]:M[ce],Ee=S===Yf?-M[ce]:-I[ce],xe=t.elements.arrow,ye=v&&xe?u6(xe):{width:0,height:0},Le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lF(),Ae=Le[ae],it=Le[ee],Ye=cm(0,I[ce],ye[ce]),nt=C?I[ce]/2-we-Ye-Ae-z.mainAxis:Ce-Ye-Ae-z.mainAxis,wt=C?-I[ce]/2+we+Ye+it+z.mainAxis:Ee+Ye+it+z.mainAxis,Dt=t.elements.arrow&&jg(t.elements.arrow),Nt=Dt?E==="y"?Dt.clientTop||0:Dt.clientLeft||0:0,Sn=(q=Y==null?void 0:Y[E])!=null?q:0,Yt=ue+nt-Sn-Nt,Te=ue+wt-Sn,yt=cm(v?P1(J,Yt):J,ue,v?yc(me,Te):me);A[E]=yt,W[E]=yt-ue}if(s){var B,X=E==="x"?Xi:Ji,oe=E==="x"?Ya:Za,Se=A[R],_e=R==="y"?"height":"width",ge=Se+_[X],Ie=Se-_[oe],Ft=[Xi,Ji].indexOf(b)!==-1,Ge=(B=Y==null?void 0:Y[R])!=null?B:0,Kn=Ft?ge:Se-I[_e]-M[_e]-Ge+z.altAxis,Dn=Ft?Se+I[_e]+M[_e]-Ge-z.altAxis:Ie,rn=v&&Ft?spe(Kn,Se,Dn):cm(v?Kn:ge,Se,v?Dn:Ie);A[R]=rn,W[R]=rn-Se}t.modifiersData[r]=W}}const $pe={name:"preventOverflow",enabled:!0,phase:"main",fn:Fpe,requiresIfExists:["offset"]};function zpe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jpe(e){return e===ya(e)||!Wa(e)?d6(e):zpe(e)}function Bpe(e){var t=e.getBoundingClientRect(),n=Zf(t.width)/e.offsetWidth||1,r=Zf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Vpe(e,t,n){n===void 0&&(n=!1);var r=Wa(t),i=Wa(t)&&Bpe(t),a=Cu(t),o=Qf(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ss(t)!=="body"||h6(a))&&(s=jpe(t)),Wa(t)?(l=Qf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=f6(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Upe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function Hpe(e){var t=Upe(e);return tpe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Wpe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qpe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var l9={placement:"bottom",modifiers:[],strategy:"absolute"};function u9(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Gpe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?l9:i;return function(s,l,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},l9,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},h=[],p=!1,v={state:f,setOptions:function(b){var S=typeof b=="function"?b(f.options):b;m(),f.options=Object.assign({},a,f.options,S),f.scrollParents={reference:Rc(s)?dm(s):s.contextElement?dm(s.contextElement):[],popper:dm(l)};var C=Hpe(qpe([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(E){return E.enabled}),y(),v.update()},forceUpdate:function(){if(!p){var b=f.elements,S=b.reference,C=b.popper;if(u9(S,C)){f.rects={reference:Vpe(S,jg(C),f.options.strategy==="fixed"),popper:u6(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(z){return f.modifiersData[z.name]=Object.assign({},z.data)});for(var E=0;E<f.orderedModifiers.length;E++){if(f.reset===!0){f.reset=!1,E=-1;continue}var R=f.orderedModifiers[E],A=R.fn,I=R.options,M=I===void 0?{}:I,F=R.name;typeof A=="function"&&(f=A({state:f,options:M,name:F,instance:v})||f)}}}},update:Wpe(function(){return new Promise(function(_){v.forceUpdate(),_(f)})}),destroy:function(){m(),p=!0}};if(!u9(s,l))return v;v.setOptions(c).then(function(_){!p&&c.onFirstUpdate&&c.onFirstUpdate(_)});function y(){f.orderedModifiers.forEach(function(_){var b=_.name,S=_.options,C=S===void 0?{}:S,E=_.effect;if(typeof E=="function"){var R=E({state:f,name:b,instance:v,options:C}),A=function(){};h.push(R||A)}})}function m(){h.forEach(function(_){return _()}),h=[]}return v}}var Kpe=[vpe,Dpe,mpe,ipe,Lpe,Ppe,$pe,dpe,Rpe],Ype=Gpe({defaultModifiers:Kpe});function hF(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:a=8,eventListeners:o=!0,offset:s,gutter:l=8,flip:c=!0,boundary:f="clippingParents",preventOverflow:h=!0,matchWidth:p,direction:v="ltr"}=e,y=w.useRef(null),m=w.useRef(null),_=w.useRef(null),b=Uhe(r,v),S=w.useRef(()=>{}),C=w.useCallback(()=>{var z;!t||!y.current||!m.current||((z=S.current)==null||z.call(S),_.current=Ype(y.current,m.current,{placement:b,modifiers:[jhe,Fhe,Nhe,{...Dhe,enabled:!!p},{name:"eventListeners",...Mhe(o)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:f}},...n??[]],strategy:i}),_.current.forceUpdate(),S.current=_.current.destroy)},[b,t,n,p,o,a,s,l,c,h,f,i]);w.useEffect(()=>()=>{var z;!y.current&&!m.current&&((z=_.current)==null||z.destroy(),_.current=null)},[]);const E=w.useCallback(z=>{y.current=z,C()},[C]),R=w.useCallback((z={},Y=null)=>({...z,ref:Pi(E,Y)}),[E]),A=w.useCallback(z=>{m.current=z,C()},[C]),I=w.useCallback((z={},Y=null)=>({...z,ref:Pi(A,Y),style:{...z.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,A,p]),M=w.useCallback((z={},Y=null)=>{const{size:W,shadowColor:q,bg:ae,style:ee,...ce}=z;return{...ce,ref:Y,"data-popper-arrow":"",style:Zpe(z)}},[]),F=w.useCallback((z={},Y=null)=>({...z,ref:Y,"data-popper-arrow-inner":""}),[]);return{update(){var z;(z=_.current)==null||z.update()},forceUpdate(){var z;(z=_.current)==null||z.forceUpdate()},transformOrigin:di.transformOrigin.varRef,referenceRef:E,popperRef:A,getPopperProps:I,getArrowProps:M,getArrowInnerProps:F,getReferenceProps:R}}function Zpe(e){const{size:t,shadowColor:n,bg:r,style:i}=e,a={...i,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function pF(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,a=au(n),o=au(t),[s,l]=w.useState(e.defaultIsOpen||!1),c=r!==void 0?r:s,f=r!==void 0,h=w.useId(),p=i??`disclosure-${h}`,v=w.useCallback(()=>{f||l(!1),o==null||o()},[f,o]),y=w.useCallback(()=>{f||l(!0),a==null||a()},[f,a]),m=w.useCallback(()=>{c?v():y()},[c,y,v]);function _(S={}){return{...S,"aria-expanded":c,"aria-controls":p,onClick(C){var E;(E=S.onClick)==null||E.call(S,C),m()}}}function b(S={}){return{...S,hidden:!c,id:p}}return{isOpen:c,onOpen:y,onClose:v,onToggle:m,isControlled:f,getButtonProps:_,getDisclosureProps:b}}function Qpe(e){const{ref:t,handler:n,enabled:r=!0}=e,i=au(n),o=w.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;w.useEffect(()=>{if(!r)return;const s=h=>{gw(h,t)&&(o.isPointerDown=!0)},l=h=>{if(o.ignoreEmulatedMouseEvents){o.ignoreEmulatedMouseEvents=!1;return}o.isPointerDown&&n&&gw(h,t)&&(o.isPointerDown=!1,i(h))},c=h=>{o.ignoreEmulatedMouseEvents=!0,n&&o.isPointerDown&&gw(h,t)&&(o.isPointerDown=!1,i(h))},f=mF(t.current);return f.addEventListener("mousedown",s,!0),f.addEventListener("mouseup",l,!0),f.addEventListener("touchstart",s,!0),f.addEventListener("touchend",c,!0),()=>{f.removeEventListener("mousedown",s,!0),f.removeEventListener("mouseup",l,!0),f.removeEventListener("touchstart",s,!0),f.removeEventListener("touchend",c,!0)}},[n,t,i,o,r])}function gw(e,t){var n;const r=e.target;return r&&!mF(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function mF(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function gF(e){const{isOpen:t,ref:n}=e,[r,i]=w.useState(t),[a,o]=w.useState(!1);return w.useEffect(()=>{a||(i(t),o(!0))},[t,a,r]),Y4(()=>n.current,"animationend",()=>{i(t)}),{present:!(t?!1:!r),onComplete(){var l;const c=ehe(n.current),f=new c.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(f)}}}function Xpe(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var[Jpe,$Te,eme,zTe]=ede(),[tme,jTe]=lr({strict:!1,name:"MenuContext"});function nme(e,...t){const n=w.useId(),r=e||n;return w.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}function rme(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function ime(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:i,autoSelect:a=!0,isLazy:o,isOpen:s,defaultIsOpen:l,onClose:c,onOpen:f,placement:h="bottom-start",lazyBehavior:p="unmount",direction:v,computePositionOnMount:y=!1,...m}=e,_=w.useRef(null),b=w.useRef(null),S=eme(),C=w.useCallback(()=>{requestAnimationFrame(()=>{var xe;(xe=_.current)==null||xe.focus({preventScroll:!1})})},[]),E=w.useCallback(()=>{const xe=setTimeout(()=>{var ye;if(i)(ye=i.current)==null||ye.focus();else{const Le=S.firstEnabled();Le&&q(Le.index)}});J.current.add(xe)},[S,i]),R=w.useCallback(()=>{const xe=setTimeout(()=>{const ye=S.lastEnabled();ye&&q(ye.index)});J.current.add(xe)},[S]),A=w.useCallback(()=>{f==null||f(),a?E():C()},[a,E,C,f]),{isOpen:I,onOpen:M,onClose:F,onToggle:z}=pF({isOpen:s,defaultIsOpen:l,onClose:c,onOpen:A});Qpe({enabled:I&&r,ref:_,handler:xe=>{var ye;(ye=b.current)!=null&&ye.contains(xe.target)||F()}});const Y=hF({...m,enabled:I||y,placement:h,direction:v}),[W,q]=w.useState(-1);qf(()=>{I||q(-1)},[I]),rF(_,{focusRef:b,visible:I,shouldFocus:!0});const ae=gF({isOpen:I,ref:_}),[ee,ce]=nme(t,"menu-button","menu-list"),ue=w.useCallback(()=>{M(),C()},[M,C]),J=w.useRef(new Set([]));ame(()=>{J.current.forEach(xe=>clearTimeout(xe)),J.current.clear()});const me=w.useCallback(()=>{M(),E()},[E,M]),we=w.useCallback(()=>{M(),R()},[M,R]),Ce=w.useCallback(()=>{var xe,ye;const Le=rme(_.current),Ae=(xe=_.current)==null?void 0:xe.contains(Le.activeElement);if(!(I&&!Ae))return;const Ye=(ye=S.item(W))==null?void 0:ye.node;Ye==null||Ye.focus()},[I,W,S]),Ee=w.useRef(null);return{openAndFocusMenu:ue,openAndFocusFirstItem:me,openAndFocusLastItem:we,onTransitionEnd:Ce,unstable__animationState:ae,descendants:S,popper:Y,buttonId:ee,menuId:ce,forceUpdate:Y.forceUpdate,orientation:"vertical",isOpen:I,onToggle:z,onOpen:M,onClose:F,menuRef:_,buttonRef:b,focusedIndex:W,closeOnSelect:n,closeOnBlur:r,autoSelect:a,setFocusedIndex:q,isLazy:o,lazyBehavior:p,initialFocusRef:i,rafId:Ee}}function ame(e,t=[]){return w.useEffect(()=>()=>e(),t)}var[ome,sme]=lr({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),vF=e=>{const{children:t}=e,n=Pr("Menu",e),r=_r(e),{direction:i}=ol(),{descendants:a,...o}=ime({...r,direction:i}),s=w.useMemo(()=>o,[o]),{isOpen:l,onClose:c,forceUpdate:f}=s;return T.jsx(Jpe,{value:a,children:T.jsx(tme,{value:s,children:T.jsx(ome,{value:n,children:fa(t,{isOpen:l,onClose:c,forceUpdate:f})})})})};vF.displayName="Menu";var yF=e=>{const{className:t,children:n,...r}=e,i=sme(),a=w.Children.only(n),o=w.isValidElement(a)?w.cloneElement(a,{focusable:"false","aria-hidden":!0,className:At("chakra-menu__icon",a.props.className)}):null,s=At("chakra-menu__icon-wrapper",t);return T.jsx(je.span,{className:s,...r,__css:i.icon,children:o})};yF.displayName="MenuIcon";var lme={slideInBottom:{...zC,custom:{offsetY:16,reverse:!0}},slideInRight:{...zC,custom:{offsetX:16,reverse:!0}},scale:{...ZD,custom:{initialScale:.95,reverse:!0}},none:{}},ume=je(wu.section),cme=e=>lme[e||"none"],_F=w.forwardRef((e,t)=>{const{preset:n,motionProps:r=cme(n),...i}=e;return T.jsx(ume,{ref:t,...r,...i})});_F.displayName="ModalTransition";var dme=Object.defineProperty,fme=(e,t,n)=>t in e?dme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hme=(e,t,n)=>(fme(e,typeof t!="symbol"?t+"":t,n),n),pme=class{constructor(){hme(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},YC=new pme;function bF(e,t){const[n,r]=w.useState(0);return w.useEffect(()=>{const i=e.current;if(i){if(t){const a=YC.add(i);r(a)}return()=>{YC.remove(i),r(0)}}},[t,e]),n}var mme=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Sd=new WeakMap,R0=new WeakMap,A0={},vw=0,SF=function(e){return e&&(e.host||SF(e.parentNode))},gme=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=SF(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vme=function(e,t,n,r){var i=gme(t,Array.isArray(e)?e:[e]);A0[n]||(A0[n]=new WeakMap);var a=A0[n],o=[],s=new Set,l=new Set(i),c=function(h){!h||s.has(h)||(s.add(h),c(h.parentNode))};i.forEach(c);var f=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(s.has(p))f(p);else{var v=p.getAttribute(r),y=v!==null&&v!=="false",m=(Sd.get(p)||0)+1,_=(a.get(p)||0)+1;Sd.set(p,m),a.set(p,_),o.push(p),m===1&&y&&R0.set(p,!0),_===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}})};return f(t),s.clear(),vw++,function(){o.forEach(function(h){var p=Sd.get(h)-1,v=a.get(h)-1;Sd.set(h,p),a.set(h,v),p||(R0.has(h)||h.removeAttribute(r),R0.delete(h)),v||h.removeAttribute(n)}),vw--,vw||(Sd=new WeakMap,Sd=new WeakMap,R0=new WeakMap,A0={})}},yme=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||mme(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),vme(r,i,n,"aria-hidden")):function(){return null}};function _me(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:o=!0,onOverlayClick:s,onEsc:l}=e,c=w.useRef(null),f=w.useRef(null),[h,p,v]=Sme(r,"chakra-modal","chakra-modal--header","chakra-modal--body");bme(c,t&&o);const y=bF(c,t),m=w.useRef(null),_=w.useCallback(F=>{m.current=F.target},[]),b=w.useCallback(F=>{F.key==="Escape"&&(F.stopPropagation(),a&&(n==null||n()),l==null||l())},[a,n,l]),[S,C]=w.useState(!1),[E,R]=w.useState(!1),A=w.useCallback((F={},z=null)=>({role:"dialog",...F,ref:Pi(z,c),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?p:void 0,"aria-describedby":E?v:void 0,onClick:xn(F.onClick,Y=>Y.stopPropagation())}),[v,E,h,p,S]),I=w.useCallback(F=>{F.stopPropagation(),m.current===F.target&&YC.isTopModal(c.current)&&(i&&(n==null||n()),s==null||s())},[n,i,s]),M=w.useCallback((F={},z=null)=>({...F,ref:Pi(z,f),onClick:xn(F.onClick,I),onKeyDown:xn(F.onKeyDown,b),onMouseDown:xn(F.onMouseDown,_)}),[b,_,I]);return{isOpen:t,onClose:n,headerId:p,bodyId:v,setBodyMounted:R,setHeaderMounted:C,dialogRef:c,overlayRef:f,getDialogProps:A,getDialogContainerProps:M,index:y}}function bme(e,t){const n=e.current;w.useEffect(()=>{if(!(!e.current||!t))return yme(e.current)},[t,e,n])}function Sme(e,...t){const n=w.useId(),r=e||n;return w.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[wme,Pb]=lr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[xme,Jm]=lr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),p6=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:a,initialFocusRef:o,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:h,motionPreset:p,lockFocusAcrossFrames:v,onCloseComplete:y}=t,m=Pr("Modal",t),b={..._me(t),autoFocus:i,trapFocus:a,initialFocusRef:o,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:h,motionPreset:p,lockFocusAcrossFrames:v};return T.jsx(xme,{value:b,children:T.jsx(wme,{value:m,children:T.jsx(mh,{onExitComplete:y,children:b.isOpen&&T.jsx(ph,{...n,children:r})})})})};p6.displayName="Modal";var Sy="right-scroll-bar-position",wy="width-before-scroll-bar",Cme="with-scroll-bars-hidden",Eme="--removed-body-scroll-bar-size",wF=dN(),yw=function(){},Ob=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:yw,onWheelCapture:yw,onTouchMoveCapture:yw}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,v=e.noIsolation,y=e.inert,m=e.allowPinchZoom,_=e.as,b=_===void 0?"div":_,S=e.gapMode,C=lN(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,R=sN([n,t]),A=Zo(Zo({},C),i);return w.createElement(w.Fragment,null,f&&w.createElement(E,{sideCar:wF,removeScrollBar:c,shards:h,noIsolation:v,inert:y,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:S}),o?w.cloneElement(w.Children.only(s),Zo(Zo({},A),{ref:R})):w.createElement(b,Zo({},A,{className:l,ref:R}),s))});Ob.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ob.classNames={fullWidth:wy,zeroRight:Sy};var c9,kme=function(){if(c9)return c9;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tme(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kme();return t&&e.setAttribute("nonce",t),e}function Pme(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ome(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Rme=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Tme())&&(Pme(t,n),Ome(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ame=function(){var e=Rme();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xF=function(){var e=Ame(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Ime={left:0,top:0,right:0,gap:0},_w=function(e){return parseInt(e||"",10)||0},Lme=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[_w(n),_w(r),_w(i)]},Mme=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ime;var t=Lme(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Dme=xF(),Nme=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`
    349349  .`.concat(Cme,` {
    350350   overflow: hidden `).concat(r,`;
     
    383383    `).concat(Eme,": ").concat(s,`px;
    384384  }
    385 `)},Fme=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,a=w.useMemo(function(){return Mme(i)},[i]);return w.createElement(Dme,{styles:Nme(a,!t,i,n?"":"!important")})},Z3=!1;if(typeof window<"u")try{var I0=Object.defineProperty({},"passive",{get:function(){return Z3=!0,!0}});window.addEventListener("test",I0,I0),window.removeEventListener("test",I0,I0)}catch{Z3=!1}var wd=Z3?{passive:!1}:!1,$me=function(e){return e.tagName==="TEXTAREA"},CF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$me(e)&&n[t]==="visible")},zme=function(e){return CF(e,"overflowY")},jme=function(e){return CF(e,"overflowX")},d9=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=EF(e,r);if(i){var a=kF(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Bme=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Vme=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},EF=function(e,t){return e==="v"?zme(t):jme(t)},kF=function(e,t){return e==="v"?Bme(t):Vme(t)},Ume=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hme=function(e,t,n,r,i){var a=Ume(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,l=t.contains(s),c=!1,f=o>0,h=0,p=0;do{var v=kF(e,s),y=v[0],m=v[1],_=v[2],b=m-_-a*y;(y||b)&&EF(e,s)&&(h+=b,p+=y),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(i&&h===0||!i&&o>h)||!f&&(i&&p===0||!i&&-o>p))&&(c=!0),c},L0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},f9=function(e){return[e.deltaX,e.deltaY]},h9=function(e){return e&&"current"in e?e.current:e},Wme=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qme=function(e){return`
     385`)},Fme=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,a=w.useMemo(function(){return Mme(i)},[i]);return w.createElement(Dme,{styles:Nme(a,!t,i,n?"":"!important")})},ZC=!1;if(typeof window<"u")try{var I0=Object.defineProperty({},"passive",{get:function(){return ZC=!0,!0}});window.addEventListener("test",I0,I0),window.removeEventListener("test",I0,I0)}catch{ZC=!1}var wd=ZC?{passive:!1}:!1,$me=function(e){return e.tagName==="TEXTAREA"},CF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$me(e)&&n[t]==="visible")},zme=function(e){return CF(e,"overflowY")},jme=function(e){return CF(e,"overflowX")},d9=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=EF(e,r);if(i){var a=kF(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Bme=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Vme=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},EF=function(e,t){return e==="v"?zme(t):jme(t)},kF=function(e,t){return e==="v"?Bme(t):Vme(t)},Ume=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hme=function(e,t,n,r,i){var a=Ume(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,l=t.contains(s),c=!1,f=o>0,h=0,p=0;do{var v=kF(e,s),y=v[0],m=v[1],_=v[2],b=m-_-a*y;(y||b)&&EF(e,s)&&(h+=b,p+=y),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(i&&h===0||!i&&o>h)||!f&&(i&&p===0||!i&&-o>p))&&(c=!0),c},L0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},f9=function(e){return[e.deltaX,e.deltaY]},h9=function(e){return e&&"current"in e?e.current:e},Wme=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qme=function(e){return`
    386386  .block-interactivity-`.concat(e,` {pointer-events: none;}
    387387  .allow-interactivity-`).concat(e,` {pointer-events: all;}
    388 `)},Gme=0,xd=[];function Kme(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(Gme++)[0],a=w.useState(xF)[0],o=w.useRef(e);w.useEffect(function(){o.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=nfe([e.lockRef.current],(e.shards||[]).map(h9),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=w.useCallback(function(m,_){if("touches"in m&&m.touches.length===2)return!o.current.allowPinchZoom;var b=L0(m),S=n.current,C="deltaX"in m?m.deltaX:S[0]-b[0],E="deltaY"in m?m.deltaY:S[1]-b[1],R,A=m.target,I=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in m&&I==="h"&&A.type==="range")return!1;var M=d9(I,A);if(!M)return!0;if(M?R=I:(R=I==="v"?"h":"v",M=d9(I,A)),!M)return!1;if(!r.current&&"changedTouches"in m&&(C||E)&&(r.current=R),!R)return!0;var F=r.current||R;return Hme(F,_,m,F==="h"?C:E,!0)},[]),l=w.useCallback(function(m){var _=m;if(!(!xd.length||xd[xd.length-1]!==a)){var b="deltaY"in _?f9(_):L0(_),S=t.current.filter(function(R){return R.name===_.type&&R.target===_.target&&Wme(R.delta,b)})[0];if(S&&S.should){_.cancelable&&_.preventDefault();return}if(!S){var C=(o.current.shards||[]).map(h9).filter(Boolean).filter(function(R){return R.contains(_.target)}),E=C.length>0?s(_,C[0]):!o.current.noIsolation;E&&_.cancelable&&_.preventDefault()}}},[]),c=w.useCallback(function(m,_,b,S){var C={name:m,delta:_,target:b,should:S};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),f=w.useCallback(function(m){n.current=L0(m),r.current=void 0},[]),h=w.useCallback(function(m){c(m.type,f9(m),m.target,s(m,e.lockRef.current))},[]),p=w.useCallback(function(m){c(m.type,L0(m),m.target,s(m,e.lockRef.current))},[]);w.useEffect(function(){return xd.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,wd),document.addEventListener("touchmove",l,wd),document.addEventListener("touchstart",f,wd),function(){xd=xd.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,wd),document.removeEventListener("touchmove",l,wd),document.removeEventListener("touchstart",f,wd)}},[]);var v=e.removeScrollBar,y=e.inert;return w.createElement(w.Fragment,null,y?w.createElement(a,{styles:qme(i)}):null,v?w.createElement(Fme,{gapMode:e.gapMode}):null)}const Yme=rfe(wF,Kme);var TF=w.forwardRef(function(e,t){return w.createElement(Ob,Zo({},e,{ref:t,sideCar:Yme}))});TF.classNames=Ob.classNames;const Zme=TF;function Qme(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:o,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:f,isOpen:h}=Jm(),[p,v]=AD();w.useEffect(()=>{!p&&v&&setTimeout(v)},[p,v]);const y=bF(r,h);return T.jsx(HN,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:f,children:T.jsx(Zme,{removeScrollBar:!c,allowPinchZoom:o,enabled:y===1&&a,forwardProps:!0,children:e.children})})}var m6=Xe((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:a,...o}=e,{getDialogProps:s,getDialogContainerProps:l}=Jm(),c=s(o,t),f=l(i),h=At("chakra-modal__content",n),p=Pb(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:m}=Jm();return T.jsx(Qme,{children:T.jsx(je.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:T.jsx(_F,{preset:m,motionProps:a,className:h,...c,__css:v,children:r})})})});m6.displayName="ModalContent";function PF(e){const{leastDestructiveRef:t,...n}=e;return T.jsx(p6,{...n,initialFocusRef:t})}var OF=Xe((e,t)=>T.jsx(m6,{ref:t,role:"alertdialog",...e})),RF=Xe((e,t)=>{const{className:n,...r}=e,i=At("chakra-modal__footer",n),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...Pb().footer};return T.jsx(je.footer,{ref:t,...r,__css:o,className:i})});RF.displayName="ModalFooter";var Xme=je(wu.div),Rb=Xe((e,t)=>{const{className:n,transition:r,motionProps:i,...a}=e,o=At("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Pb().overlay},{motionPreset:c}=Jm(),h=i||(c==="none"?{}:YD);return T.jsx(Xme,{...h,__css:l,ref:t,className:o,...a})});Rb.displayName="ModalOverlay";var Ab=Xe((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:a}=Jm();w.useEffect(()=>(a(!0),()=>a(!1)),[a]);const o=At("chakra-modal__body",n),s=Pb();return T.jsx(je.div,{ref:t,className:o,id:i,...r,__css:s.body})});Ab.displayName="ModalBody";var[Jme,Ib]=lr({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[ege,AF]=lr({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `});function IF(e){const t=w.Children.only(e.children),{getTriggerProps:n}=Ib();return w.cloneElement(t,n(t.props,t.ref))}IF.displayName="PopoverTrigger";var Cd={click:"click",hover:"hover"};function tge(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:a=!0,autoFocus:o=!0,arrowSize:s,arrowShadowColor:l,trigger:c=Cd.click,openDelay:f=200,closeDelay:h=200,isLazy:p,lazyBehavior:v="unmount",computePositionOnMount:y,...m}=e,{isOpen:_,onClose:b,onOpen:S,onToggle:C}=pF(e),E=w.useRef(null),R=w.useRef(null),A=w.useRef(null),I=w.useRef(!1),M=w.useRef(!1);_&&(M.current=!0);const[F,z]=w.useState(!1),[Y,W]=w.useState(!1),q=w.useId(),ae=i??q,[ee,ce,ue,J]=["popover-trigger","popover-content","popover-header","popover-body"].map(Te=>`${Te}-${ae}`),{referenceRef:me,getArrowProps:we,getPopperProps:Ce,getArrowInnerProps:Ee,forceUpdate:xe}=hF({...m,enabled:_||!!y}),ye=gF({isOpen:_,ref:A});Zde({enabled:_,ref:R}),rF(A,{focusRef:R,visible:_,shouldFocus:a&&c===Cd.click}),Ohe(A,{focusRef:r,visible:_,shouldFocus:o&&c===Cd.click});const Le=Xpe({wasSelected:M.current,enabled:p,mode:v,isSelected:ye.present}),Ae=w.useCallback((Te={},yt=null)=>{const B={...Te,style:{...Te.style,transformOrigin:di.transformOrigin.varRef,[di.arrowSize.var]:s?`${s}px`:void 0,[di.arrowShadowColor.var]:l},ref:Pi(A,yt),children:Le?Te.children:null,id:ce,tabIndex:-1,role:"dialog",onKeyDown:xn(Te.onKeyDown,X=>{n&&X.key==="Escape"&&b()}),onBlur:xn(Te.onBlur,X=>{const oe=p9(X),Se=bw(A.current,oe),_e=bw(R.current,oe);_&&t&&(!Se&&!_e)&&b()}),"aria-labelledby":F?ue:void 0,"aria-describedby":Y?J:void 0};return c===Cd.hover&&(B.role="tooltip",B.onMouseEnter=xn(Te.onMouseEnter,()=>{I.current=!0}),B.onMouseLeave=xn(Te.onMouseLeave,X=>{X.nativeEvent.relatedTarget!==null&&(I.current=!1,setTimeout(()=>b(),h))})),B},[Le,ce,F,ue,Y,J,c,n,b,_,t,h,l,s]),it=w.useCallback((Te={},yt=null)=>Ce({...Te,style:{visibility:_?"visible":"hidden",...Te.style}},yt),[_,Ce]),Ye=w.useCallback((Te,yt=null)=>({...Te,ref:Pi(yt,E,me)}),[E,me]),nt=w.useRef(),wt=w.useRef(),Dt=w.useCallback(Te=>{E.current==null&&me(Te)},[me]),Nt=w.useCallback((Te={},yt=null)=>{const B={...Te,ref:Pi(R,yt,Dt),id:ee,"aria-haspopup":"dialog","aria-expanded":_,"aria-controls":ce};return c===Cd.click&&(B.onClick=xn(Te.onClick,C)),c===Cd.hover&&(B.onFocus=xn(Te.onFocus,()=>{nt.current===void 0&&S()}),B.onBlur=xn(Te.onBlur,X=>{const oe=p9(X),Se=!bw(A.current,oe);_&&t&&Se&&b()}),B.onKeyDown=xn(Te.onKeyDown,X=>{X.key==="Escape"&&b()}),B.onMouseEnter=xn(Te.onMouseEnter,()=>{I.current=!0,nt.current=window.setTimeout(()=>S(),f)}),B.onMouseLeave=xn(Te.onMouseLeave,()=>{I.current=!1,nt.current&&(clearTimeout(nt.current),nt.current=void 0),wt.current=window.setTimeout(()=>{I.current===!1&&b()},h)})),B},[ee,_,ce,c,Dt,C,S,t,b,f,h]);w.useEffect(()=>()=>{nt.current&&clearTimeout(nt.current),wt.current&&clearTimeout(wt.current)},[]);const Sn=w.useCallback((Te={},yt=null)=>({...Te,id:ue,ref:Pi(yt,B=>{z(!!B)})}),[ue]),Yt=w.useCallback((Te={},yt=null)=>({...Te,id:J,ref:Pi(yt,B=>{W(!!B)})}),[J]);return{forceUpdate:xe,isOpen:_,onAnimationComplete:ye.onComplete,onClose:b,getAnchorProps:Ye,getArrowProps:we,getArrowInnerProps:Ee,getPopoverPositionerProps:it,getPopoverProps:Ae,getTriggerProps:Nt,getHeaderProps:Sn,getBodyProps:Yt}}function bw(e,t){return e===t||(e==null?void 0:e.contains(t))}function p9(e){var t;const n=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:n}function LF(e){const t=Pr("Popover",e),{children:n,...r}=_r(e),i=ol(),a=tge({...r,direction:i.direction});return T.jsx(Jme,{value:a,children:T.jsx(ege,{value:t,children:fa(n,{isOpen:a.isOpen,onClose:a.onClose,forceUpdate:a.forceUpdate})})})}LF.displayName="Popover";var Sw=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function MF(e){var t;const{bg:n,bgColor:r,backgroundColor:i,shadow:a,boxShadow:o,shadowColor:s}=e,{getArrowProps:l,getArrowInnerProps:c}=Ib(),f=AF(),h=(t=n??r)!=null?t:i,p=a??o;return T.jsx(je.div,{...l(),className:"chakra-popover__arrow-positioner",children:T.jsx(je.div,{className:At("chakra-popover__arrow",e.className),...c(e),__css:{"--popper-arrow-shadow-color":Sw("colors",s),"--popper-arrow-bg":Sw("colors",h),"--popper-arrow-shadow":Sw("shadows",p),...f.arrow}})})}MF.displayName="PopoverArrow";function nge(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var rge={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},ige=je(wu.section),DF=Xe(function(t,n){const{variants:r=rge,...i}=t,{isOpen:a}=Ib();return T.jsx(ige,{ref:n,variants:nge(r),initial:!1,animate:a?"enter":"exit",...i})});DF.displayName="PopoverTransition";var NF=Xe(function(t,n){const{rootProps:r,motionProps:i,...a}=t,{getPopoverProps:o,getPopoverPositionerProps:s,onAnimationComplete:l}=Ib(),c=AF(),f={position:"relative",display:"flex",flexDirection:"column",...c.content};return T.jsx(je.div,{...s(r),__css:c.popper,className:"chakra-popover__popper",children:T.jsx(DF,{...i,...o(a,n),onAnimationComplete:WL(l,a.onAnimationComplete),className:At("chakra-popover__content",t.className),__css:f})})});NF.displayName="PopoverContent";function age(e,t,n){return(e-t)*100/(n-t)}Ro({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Ro({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var oge=Ro({"0%":{left:"-40%"},"100%":{left:"100%"}}),sge=Ro({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function lge(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:a,isIndeterminate:o,role:s="progressbar"}=e,l=age(t,n,r);return{bind:{"data-indeterminate":o?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":o?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof a=="function"?a(t,l):i})(),role:s},percent:l,value:t}}var[uge,cge]=lr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),dge=Xe((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:a,role:o,...s}=e,l=lge({value:i,min:n,max:r,isIndeterminate:a,role:o}),f={height:"100%",...cge().filledTrack};return T.jsx(je.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:f})}),FF=Xe((e,t)=>{var n;const{value:r,min:i=0,max:a=100,hasStripe:o,isAnimated:s,children:l,borderRadius:c,isIndeterminate:f,"aria-label":h,"aria-labelledby":p,"aria-valuetext":v,title:y,role:m,..._}=_r(e),b=Pr("Progress",e),S=c??((n=b.track)==null?void 0:n.borderRadius),C={animation:`${sge} 1s linear infinite`},A={...!f&&o&&s&&C,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${oge} 1s ease infinite normal none running`}},I={overflow:"hidden",position:"relative",...b.track};return T.jsx(je.div,{ref:t,borderRadius:S,__css:I,..._,children:T.jsxs(uge,{value:b,children:[T.jsx(dge,{"aria-label":h,"aria-labelledby":p,"aria-valuetext":v,min:i,max:a,value:r,isIndeterminate:f,css:A,borderRadius:S,title:y,role:m}),l]})})});FF.displayName="Progress";function fge(){const e=w.useRef(!0);return w.useEffect(()=>{e.current=!1},[]),e.current}function hge(e){const t=w.useRef();return w.useEffect(()=>{t.current=e},[e]),t.current}var pge=je("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Q3=tt("skeleton-start-color"),X3=tt("skeleton-end-color"),mge=Ro({from:{opacity:0},to:{opacity:1}}),gge=Ro({from:{borderColor:Q3.reference,background:Q3.reference},to:{borderColor:X3.reference,background:X3.reference}}),g6=Xe((e,t)=>{const n={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},r=Xa("Skeleton",n),i=fge(),{startColor:a="",endColor:o="",isLoaded:s,fadeDuration:l,speed:c,className:f,fitContent:h,...p}=_r(n),[v,y]=zQ("colors",[a,o]),m=hge(s),_=At("chakra-skeleton",f),b={...v&&{[Q3.variable]:v},...y&&{[X3.variable]:y}};if(s){const S=i||m?"none":`${mge} ${l}s`;return T.jsx(je.div,{ref:t,className:_,__css:{animation:S},...p})}return T.jsx(pge,{ref:t,className:_,...p,__css:{width:h?"fit-content":void 0,...r,...b,_dark:{...r._dark,...b},animation:`${c}s linear infinite alternate ${gge}`}})});g6.displayName="Skeleton";var[vge,yh]=lr({name:"StepContext"}),[yge,Bg]=roe("Stepper"),_ge=Xe(function(t,n){const{orientation:r,status:i,showLastSeparator:a}=yh(),o=Bg();return T.jsx(je.div,{ref:n,"data-status":i,"data-orientation":r,"data-stretch":cn(a),__css:o.step,...t,className:At("chakra-step",t.className)})}),bge=Xe(function(t,n){const r=Pr("Stepper",t),{children:i,index:a,orientation:o="horizontal",showLastSeparator:s=!1,...l}=_r(t),c=w.Children.toArray(i),f=c.length;function h(p){return p<a?"complete":p>a?"incomplete":"active"}return T.jsx(je.div,{ref:n,"aria-label":"Progress","data-orientation":o,...l,__css:r.stepper,className:At("chakra-stepper",t.className),children:T.jsx(yge,{value:r,children:c.map((p,v)=>T.jsx(vge,{value:{index:v,status:h(v),orientation:o,showLastSeparator:s,count:f,isFirst:v===0,isLast:v===f-1},children:p},v))})})});function Sge(e={}){const{index:t=0,count:n}=e,[r,i]=w.useState(t),a=typeof n=="number"?n-1:0,o=r/a;return{activeStep:r,setActiveStep:i,activeStepPercent:o,isActiveStep(s){return s===r},isCompleteStep(s){return s<r},isIncompleteStep(s){return s>r},getStatus(s){return s<r?"complete":s>r?"incomplete":"active"},goToNext(){i(s=>typeof n=="number"?Math.min(n,s+1):s+1)},goToPrevious(){i(s=>Math.max(0,s-1))}}}function wge(e){const{complete:t,incomplete:n,active:r}=e,i=yh();let a=null;switch(i.status){case"complete":a=fa(t,i);break;case"incomplete":a=fa(n,i);break;case"active":a=fa(r,i);break}return a?T.jsx(T.Fragment,{children:a}):null}function xge(e){return T.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:T.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function Cge(e){const{status:t}=yh(),n=Bg(),r=t==="complete"?xge:void 0;return T.jsx(Wt,{as:r,__css:n.icon,...e,className:At("chakra-step__icon",e.className)})}var m9=Xe(function(t,n){const{children:r,...i}=t,{status:a,index:o}=yh(),s=Bg();return T.jsx(je.div,{ref:n,"data-status":a,__css:s.number,...i,className:At("chakra-step__number",t.className),children:r||o+1})});function Ege(e){const{status:t}=yh(),n=Bg();return T.jsx(je.div,{"data-status":t,...e,__css:n.indicator,className:At("chakra-step__indicator",e.className)})}var kge=Xe(function(t,n){const{orientation:r,status:i,isLast:a,showLastSeparator:o}=yh(),s=Bg();return a&&!o?null:T.jsx(je.div,{ref:n,role:"separator","data-orientation":r,"data-status":i,__css:s.separator,...t,className:At("chakra-step__separator",t.className)})}),[Tge,$F]=lr({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tag />" `}),v6=Xe((e,t)=>{const n=Pr("Tag",e),r=_r(e),i={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...n.container};return T.jsx(Tge,{value:n,children:T.jsx(je.span,{ref:t,...r,__css:i})})});v6.displayName="Tag";var Pge=Xe((e,t)=>{const n=$F();return T.jsx(je.span,{ref:t,noOfLines:1,...e,__css:n.label})});Pge.displayName="TagLabel";var Oge=Xe((e,t)=>T.jsx(Wt,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));Oge.displayName="TagLeftIcon";var Rge=Xe((e,t)=>T.jsx(Wt,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));Rge.displayName="TagRightIcon";var zF=e=>T.jsx(Wt,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:T.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});zF.displayName="TagCloseIcon";var Age=Xe((e,t)=>{const{isDisabled:n,children:r,...i}=e,o={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...$F().closeButton};return T.jsx(je.button,{ref:t,"aria-label":"close",...i,type:"button",disabled:n,__css:o,children:r||T.jsx(zF,{})})});Age.displayName="TagCloseButton";class _h{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const eg=typeof window>"u"||"Deno"in window;function Da(){}function Ige(e,t){return typeof e=="function"?e(t):e}function J3(e){return typeof e=="number"&&e>=0&&e!==1/0}function jF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Up(e,t,n){return Vg(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Lge(e,t,n){return Vg(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function $l(e,t,n){return Vg(e)?[{...t,queryKey:e},n]:[e||{},t]}function g9(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(Vg(o)){if(r){if(t.queryHash!==y6(o,t.options))return!1}else if(!O1(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||a&&!a(t))}function v9(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:a}=e;if(Vg(a)){if(!t.options.mutationKey)return!1;if(n){if(sc(t.options.mutationKey)!==sc(a))return!1}else if(!O1(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function y6(e,t){return((t==null?void 0:t.queryKeyHashFn)||sc)(e)}function sc(e){return JSON.stringify(e,(t,n)=>eC(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function O1(e,t){return BF(e,t)}function BF(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!BF(e[n],t[n])):!1}function VF(e,t){if(e===t)return e;const n=y9(e)&&y9(t);if(n||eC(e)&&eC(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),a=i.length,o=n?[]:{};let s=0;for(let l=0;l<a;l++){const c=n?l:i[l];o[c]=VF(e[c],t[c]),o[c]===e[c]&&s++}return r===a&&s===r?e:o}return t}function R1(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function y9(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function eC(e){if(!_9(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!_9(n)||!n.hasOwnProperty("isPrototypeOf"))}function _9(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vg(e){return Array.isArray(e)}function UF(e){return new Promise(t=>{setTimeout(t,e)})}function b9(e){UF(0).then(e)}function Mge(){if(typeof AbortController=="function")return new AbortController}function tC(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?VF(e,t):t}class Dge extends _h{constructor(){super(),this.setup=t=>{if(!eg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const A1=new Dge,S9=["online","offline"];class Nge extends _h{constructor(){super(),this.setup=t=>{if(!eg&&window.addEventListener){const n=()=>t();return S9.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{S9.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const I1=new Nge;function Fge(e){return Math.min(1e3*2**e,3e4)}function Lb(e){return(e??"online")==="online"?I1.isOnline():!0}class HF{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function xy(e){return e instanceof HF}function WF(e){let t=!1,n=0,r=!1,i,a,o;const s=new Promise((_,b)=>{a=_,o=b}),l=_=>{r||(v(new HF(_)),e.abort==null||e.abort())},c=()=>{t=!0},f=()=>{t=!1},h=()=>!A1.isFocused()||e.networkMode!=="always"&&!I1.isOnline(),p=_=>{r||(r=!0,e.onSuccess==null||e.onSuccess(_),i==null||i(),a(_))},v=_=>{r||(r=!0,e.onError==null||e.onError(_),i==null||i(),o(_))},y=()=>new Promise(_=>{i=b=>{const S=r||!h();return S&&_(b),S},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let _;try{_=e.fn()}catch(b){_=Promise.reject(b)}Promise.resolve(_).then(p).catch(b=>{var S,C;if(r)return;const E=(S=e.retry)!=null?S:3,R=(C=e.retryDelay)!=null?C:Fge,A=typeof R=="function"?R(n,b):R,I=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,b);if(t||!I){v(b);return}n++,e.onFail==null||e.onFail(n,b),UF(A).then(()=>{if(h())return y()}).then(()=>{t?v(b):m()})})};return Lb(e.networkMode)?m():y().then(m),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:c,continueRetry:f}}const _6=console;function $ge(){let e=[],t=0,n=f=>{f()},r=f=>{f()};const i=f=>{let h;t++;try{h=f()}finally{t--,t||s()}return h},a=f=>{t?e.push(f):b9(()=>{n(f)})},o=f=>(...h)=>{a(()=>{f(...h)})},s=()=>{const f=e;e=[],f.length&&b9(()=>{r(()=>{f.forEach(h=>{n(h)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f}}}const Jn=$ge();class qF{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),J3(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(eg?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class zge extends qF{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||_6,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||jge(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=tC(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Da).catch(Da):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!jF(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(y=>y.options.queryFn);v&&this.setOptions(v.options)}Array.isArray(this.options.queryKey);const o=Mge(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),f={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(l(f),(r=this.options.behavior)==null||r.onFetch(f),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=f.fetchOptions)==null?void 0:i.meta)){var h;this.dispatch({type:"fetch",meta:(h=f.fetchOptions)==null?void 0:h.meta})}const p=v=>{if(xy(v)&&v.silent||this.dispatch({type:"error",error:v}),!xy(v)){var y,m,_,b;(y=(m=this.cache.config).onError)==null||y.call(m,v,this),(_=(b=this.cache.config).onSettled)==null||_.call(b,this.state.data,v,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=WF({fn:f.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:v=>{var y,m,_,b;if(typeof v>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(v),(y=(m=this.cache.config).onSuccess)==null||y.call(m,v,this),(_=(b=this.cache.config).onSettled)==null||_.call(b,v,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(v,y)=>{this.dispatch({type:"failed",failureCount:v,error:y})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,a;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Lb(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return xy(o)&&o.revert&&this.revertState?{...this.revertState}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Jn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function jge(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class GF extends _h{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const a=n.queryKey,o=(i=n.queryHash)!=null?i:y6(a,n);let s=this.get(o);return s||(s=new zge({cache:this,logger:t.getLogger(),queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Jn.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=$l(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>g9(r,i))}findAll(t,n){const[r]=$l(t,n);return Object.keys(r).length>0?this.queries.filter(i=>g9(r,i)):this.queries}notify(t){Jn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){Jn.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Jn.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class Bge extends qF{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||_6,this.observers=[],this.state=t.state||KF(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var I;return this.retryer=WF({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(M,F)=>{this.dispatch({type:"failed",failureCount:M,error:F})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(I=this.options.retry)!=null?I:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,a,o,s,l,c,f;if(!n){var h,p,v,y;this.dispatch({type:"loading",variables:this.options.variables}),await((h=(p=this.mutationCache.config).onMutate)==null?void 0:h.call(p,this.state.variables,this));const M=await((v=(y=this.options).onMutate)==null?void 0:v.call(y,this.state.variables));M!==this.state.context&&this.dispatch({type:"loading",context:M,variables:this.state.variables})}const I=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,I,this.state.variables,this.state.context,this)),await((a=(o=this.options).onSuccess)==null?void 0:a.call(o,I,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,I,null,this.state.variables,this.state.context,this)),await((c=(f=this.options).onSettled)==null?void 0:c.call(f,I,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:I}),I}catch(I){try{var m,_,b,S,C,E,R,A;throw await((m=(_=this.mutationCache.config).onError)==null?void 0:m.call(_,I,this.state.variables,this.state.context,this)),await((b=(S=this.options).onError)==null?void 0:b.call(S,I,this.state.variables,this.state.context)),await((C=(E=this.mutationCache.config).onSettled)==null?void 0:C.call(E,void 0,I,this.state.variables,this.state.context,this)),await((R=(A=this.options).onSettled)==null?void 0:R.call(A,void 0,I,this.state.variables,this.state.context)),I}finally{this.dispatch({type:"error",error:I})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Lb(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Jn.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function KF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class YF extends _h{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new Bge({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Jn.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>v9(t,n))}findAll(t){return this.mutations.filter(n=>v9(t,n))}notify(t){Jn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Jn.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(Da)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Vge(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,a,o;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,c=l==null?void 0:l.pageParam,f=(l==null?void 0:l.direction)==="forward",h=(l==null?void 0:l.direction)==="backward",p=((a=e.state.data)==null?void 0:a.pages)||[],v=((o=e.state.data)==null?void 0:o.pageParams)||[];let y=v,m=!1;const _=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>{var I;if((I=e.signal)!=null&&I.aborted)m=!0;else{var M;(M=e.signal)==null||M.addEventListener("abort",()=>{m=!0})}return e.signal}})},b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),S=(A,I,M,F)=>(y=F?[I,...y]:[...y,I],F?[M,...A]:[...A,M]),C=(A,I,M,F)=>{if(m)return Promise.reject("Cancelled");if(typeof M>"u"&&!I&&A.length)return Promise.resolve(A);const z={queryKey:e.queryKey,pageParam:M,meta:e.options.meta};_(z);const Y=b(z);return Promise.resolve(Y).then(q=>S(A,M,q,F))};let E;if(!p.length)E=C([]);else if(f){const A=typeof c<"u",I=A?c:w9(e.options,p);E=C(p,A,I)}else if(h){const A=typeof c<"u",I=A?c:Uge(e.options,p);E=C(p,A,I,!0)}else{y=[];const A=typeof e.options.getNextPageParam>"u";E=(s&&p[0]?s(p[0],0,p):!0)?C([],A,v[0]):Promise.resolve(S([],v[0],p[0]));for(let M=1;M<p.length;M++)E=E.then(F=>{if(s&&p[M]?s(p[M],M,p):!0){const Y=A?v[M]:w9(e.options,F);return C(F,A,Y)}return Promise.resolve(S(F,v[M],p[M]))})}return E.then(A=>({pages:A,pageParams:y}))}}}}function w9(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Uge(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Hge{constructor(t={}){this.queryCache=t.queryCache||new GF,this.mutationCache=t.mutationCache||new YF,this.logger=t.logger||_6,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=A1.subscribe(()=>{A1.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=I1.subscribe(()=>{I1.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=$l(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=Up(t,n,r),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),a=i==null?void 0:i.state.data,o=Ige(n,a);if(typeof o>"u")return;const s=Up(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return Jn.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=$l(t,n),i=this.queryCache;Jn.batch(()=>{i.findAll(r).forEach(a=>{i.remove(a)})})}resetQueries(t,n,r){const[i,a]=$l(t,n,r),o=this.queryCache,s={type:"active",...i};return Jn.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(s,a)))}cancelQueries(t,n,r){const[i,a={}]=$l(t,n,r);typeof a.revert>"u"&&(a.revert=!0);const o=Jn.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(a)));return Promise.all(o).then(Da).catch(Da)}invalidateQueries(t,n,r){const[i,a]=$l(t,n,r);return Jn.batch(()=>{var o,s;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(s=i.refetchType)!=null?s:i.type)!=null?o:"active"};return this.refetchQueries(l,a)})}refetchQueries(t,n,r){const[i,a]=$l(t,n,r),o=Jn.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,{...a,cancelRefetch:(c=a==null?void 0:a.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}})}));let s=Promise.all(o).then(Da);return a!=null&&a.throwOnError||(s=s.catch(Da)),s}fetchQuery(t,n,r){const i=Up(t,n,r),a=this.defaultQueryOptions(i);typeof a.retry>"u"&&(a.retry=!1);const o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Da).catch(Da)}fetchInfiniteQuery(t,n,r){const i=Up(t,n,r);return i.behavior=Vge(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Da).catch(Da)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>sc(t)===sc(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>O1(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>sc(t)===sc(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>O1(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=y6(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Wge extends _h{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),x9(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nC(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nC(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),R1(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const a=this.hasListeners();a&&C9(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),a&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return Gge(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Da)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),eg||this.currentResult.isStale||!J3(this.options.staleTime))return;const n=jF(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(eg||this.options.enabled===!1||!J3(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||A1.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,a=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,l=t!==r,c=l?t.state:this.currentQueryInitialState,f=l?this.currentResult:this.previousQueryResult,{state:h}=t;let{dataUpdatedAt:p,error:v,errorUpdatedAt:y,fetchStatus:m,status:_}=h,b=!1,S=!1,C;if(n._optimisticResults){const M=this.hasListeners(),F=!M&&x9(t,n),z=M&&C9(t,r,n,i);(F||z)&&(m=Lb(t.options.networkMode)?"fetching":"paused",p||(_="loading")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.keepPreviousData&&!h.dataUpdatedAt&&f!=null&&f.isSuccess&&_!=="error")C=f.data,p=f.dataUpdatedAt,_=f.status,b=!0;else if(n.select&&typeof h.data<"u")if(a&&h.data===(o==null?void 0:o.data)&&n.select===this.selectFn)C=this.selectResult;else try{this.selectFn=n.select,C=n.select(h.data),C=tC(a==null?void 0:a.data,C,n),this.selectResult=C,this.selectError=null}catch(M){this.selectError=M}else C=h.data;if(typeof n.placeholderData<"u"&&typeof C>"u"&&_==="loading"){let M;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))M=a.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof M<"u")try{M=n.select(M),this.selectError=null}catch(F){this.selectError=F}typeof M<"u"&&(_="success",C=tC(a==null?void 0:a.data,M,n),S=!0)}this.selectError&&(v=this.selectError,C=this.selectResult,y=Date.now(),_="error");const E=m==="fetching",R=_==="loading",A=_==="error";return{status:_,fetchStatus:m,isLoading:R,isSuccess:_==="success",isError:A,isInitialLoading:R&&E,data:C,dataUpdatedAt:p,error:v,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:E,isRefetching:E&&!R,isLoadingError:A&&h.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:S,isPreviousData:b,isRefetchError:A&&h.dataUpdatedAt!==0,isStale:b6(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,R1(r,n))return;this.currentResult=r;const i={cache:!0},a=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const f=c;return this.currentResult[f]!==n[f]&&l.has(f)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!xy(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Jn.batch(()=>{if(t.onSuccess){var n,r,i,a;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(a=this.options).onSettled)==null||i.call(a,this.currentResult.data,null)}else if(t.onError){var o,s,l,c;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:f})=>{f(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function qge(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function x9(e,t){return qge(e,t)||e.state.dataUpdatedAt>0&&nC(e,t,t.refetchOnMount)}function nC(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&b6(e,t)}return!1}function C9(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&b6(e,n)}function b6(e,t){return e.isStaleByTime(t.staleTime)}function Gge(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!R1(e.getCurrentResult(),t)}let Kge=class extends _h{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),R1(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:KF(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Jn.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,a;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(a=this.mutateOptions).onSettled)==null||i.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,s,l,c;(o=(s=this.mutateOptions).onError)==null||o.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(c=this.mutateOptions).onSettled)==null||l.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:f})=>{f(this.currentResult)})})}};var ZF={exports:{}},QF={};/**
     388`)},Gme=0,xd=[];function Kme(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(Gme++)[0],a=w.useState(xF)[0],o=w.useRef(e);w.useEffect(function(){o.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=nfe([e.lockRef.current],(e.shards||[]).map(h9),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=w.useCallback(function(m,_){if("touches"in m&&m.touches.length===2)return!o.current.allowPinchZoom;var b=L0(m),S=n.current,C="deltaX"in m?m.deltaX:S[0]-b[0],E="deltaY"in m?m.deltaY:S[1]-b[1],R,A=m.target,I=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in m&&I==="h"&&A.type==="range")return!1;var M=d9(I,A);if(!M)return!0;if(M?R=I:(R=I==="v"?"h":"v",M=d9(I,A)),!M)return!1;if(!r.current&&"changedTouches"in m&&(C||E)&&(r.current=R),!R)return!0;var F=r.current||R;return Hme(F,_,m,F==="h"?C:E,!0)},[]),l=w.useCallback(function(m){var _=m;if(!(!xd.length||xd[xd.length-1]!==a)){var b="deltaY"in _?f9(_):L0(_),S=t.current.filter(function(R){return R.name===_.type&&R.target===_.target&&Wme(R.delta,b)})[0];if(S&&S.should){_.cancelable&&_.preventDefault();return}if(!S){var C=(o.current.shards||[]).map(h9).filter(Boolean).filter(function(R){return R.contains(_.target)}),E=C.length>0?s(_,C[0]):!o.current.noIsolation;E&&_.cancelable&&_.preventDefault()}}},[]),c=w.useCallback(function(m,_,b,S){var C={name:m,delta:_,target:b,should:S};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),f=w.useCallback(function(m){n.current=L0(m),r.current=void 0},[]),h=w.useCallback(function(m){c(m.type,f9(m),m.target,s(m,e.lockRef.current))},[]),p=w.useCallback(function(m){c(m.type,L0(m),m.target,s(m,e.lockRef.current))},[]);w.useEffect(function(){return xd.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,wd),document.addEventListener("touchmove",l,wd),document.addEventListener("touchstart",f,wd),function(){xd=xd.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,wd),document.removeEventListener("touchmove",l,wd),document.removeEventListener("touchstart",f,wd)}},[]);var v=e.removeScrollBar,y=e.inert;return w.createElement(w.Fragment,null,y?w.createElement(a,{styles:qme(i)}):null,v?w.createElement(Fme,{gapMode:e.gapMode}):null)}const Yme=rfe(wF,Kme);var TF=w.forwardRef(function(e,t){return w.createElement(Ob,Zo({},e,{ref:t,sideCar:Yme}))});TF.classNames=Ob.classNames;const Zme=TF;function Qme(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:o,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:f,isOpen:h}=Jm(),[p,v]=AD();w.useEffect(()=>{!p&&v&&setTimeout(v)},[p,v]);const y=bF(r,h);return T.jsx(HN,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:f,children:T.jsx(Zme,{removeScrollBar:!c,allowPinchZoom:o,enabled:y===1&&a,forwardProps:!0,children:e.children})})}var m6=Xe((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:a,...o}=e,{getDialogProps:s,getDialogContainerProps:l}=Jm(),c=s(o,t),f=l(i),h=At("chakra-modal__content",n),p=Pb(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:m}=Jm();return T.jsx(Qme,{children:T.jsx(je.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:T.jsx(_F,{preset:m,motionProps:a,className:h,...c,__css:v,children:r})})})});m6.displayName="ModalContent";function PF(e){const{leastDestructiveRef:t,...n}=e;return T.jsx(p6,{...n,initialFocusRef:t})}var OF=Xe((e,t)=>T.jsx(m6,{ref:t,role:"alertdialog",...e})),RF=Xe((e,t)=>{const{className:n,...r}=e,i=At("chakra-modal__footer",n),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...Pb().footer};return T.jsx(je.footer,{ref:t,...r,__css:o,className:i})});RF.displayName="ModalFooter";var Xme=je(wu.div),Rb=Xe((e,t)=>{const{className:n,transition:r,motionProps:i,...a}=e,o=At("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Pb().overlay},{motionPreset:c}=Jm(),h=i||(c==="none"?{}:YD);return T.jsx(Xme,{...h,__css:l,ref:t,className:o,...a})});Rb.displayName="ModalOverlay";var Ab=Xe((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:a}=Jm();w.useEffect(()=>(a(!0),()=>a(!1)),[a]);const o=At("chakra-modal__body",n),s=Pb();return T.jsx(je.div,{ref:t,className:o,id:i,...r,__css:s.body})});Ab.displayName="ModalBody";var[Jme,Ib]=lr({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[ege,AF]=lr({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `});function IF(e){const t=w.Children.only(e.children),{getTriggerProps:n}=Ib();return w.cloneElement(t,n(t.props,t.ref))}IF.displayName="PopoverTrigger";var Cd={click:"click",hover:"hover"};function tge(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:a=!0,autoFocus:o=!0,arrowSize:s,arrowShadowColor:l,trigger:c=Cd.click,openDelay:f=200,closeDelay:h=200,isLazy:p,lazyBehavior:v="unmount",computePositionOnMount:y,...m}=e,{isOpen:_,onClose:b,onOpen:S,onToggle:C}=pF(e),E=w.useRef(null),R=w.useRef(null),A=w.useRef(null),I=w.useRef(!1),M=w.useRef(!1);_&&(M.current=!0);const[F,z]=w.useState(!1),[Y,W]=w.useState(!1),q=w.useId(),ae=i??q,[ee,ce,ue,J]=["popover-trigger","popover-content","popover-header","popover-body"].map(Te=>`${Te}-${ae}`),{referenceRef:me,getArrowProps:we,getPopperProps:Ce,getArrowInnerProps:Ee,forceUpdate:xe}=hF({...m,enabled:_||!!y}),ye=gF({isOpen:_,ref:A});Zde({enabled:_,ref:R}),rF(A,{focusRef:R,visible:_,shouldFocus:a&&c===Cd.click}),Ohe(A,{focusRef:r,visible:_,shouldFocus:o&&c===Cd.click});const Le=Xpe({wasSelected:M.current,enabled:p,mode:v,isSelected:ye.present}),Ae=w.useCallback((Te={},yt=null)=>{const B={...Te,style:{...Te.style,transformOrigin:di.transformOrigin.varRef,[di.arrowSize.var]:s?`${s}px`:void 0,[di.arrowShadowColor.var]:l},ref:Pi(A,yt),children:Le?Te.children:null,id:ce,tabIndex:-1,role:"dialog",onKeyDown:xn(Te.onKeyDown,X=>{n&&X.key==="Escape"&&b()}),onBlur:xn(Te.onBlur,X=>{const oe=p9(X),Se=bw(A.current,oe),_e=bw(R.current,oe);_&&t&&(!Se&&!_e)&&b()}),"aria-labelledby":F?ue:void 0,"aria-describedby":Y?J:void 0};return c===Cd.hover&&(B.role="tooltip",B.onMouseEnter=xn(Te.onMouseEnter,()=>{I.current=!0}),B.onMouseLeave=xn(Te.onMouseLeave,X=>{X.nativeEvent.relatedTarget!==null&&(I.current=!1,setTimeout(()=>b(),h))})),B},[Le,ce,F,ue,Y,J,c,n,b,_,t,h,l,s]),it=w.useCallback((Te={},yt=null)=>Ce({...Te,style:{visibility:_?"visible":"hidden",...Te.style}},yt),[_,Ce]),Ye=w.useCallback((Te,yt=null)=>({...Te,ref:Pi(yt,E,me)}),[E,me]),nt=w.useRef(),wt=w.useRef(),Dt=w.useCallback(Te=>{E.current==null&&me(Te)},[me]),Nt=w.useCallback((Te={},yt=null)=>{const B={...Te,ref:Pi(R,yt,Dt),id:ee,"aria-haspopup":"dialog","aria-expanded":_,"aria-controls":ce};return c===Cd.click&&(B.onClick=xn(Te.onClick,C)),c===Cd.hover&&(B.onFocus=xn(Te.onFocus,()=>{nt.current===void 0&&S()}),B.onBlur=xn(Te.onBlur,X=>{const oe=p9(X),Se=!bw(A.current,oe);_&&t&&Se&&b()}),B.onKeyDown=xn(Te.onKeyDown,X=>{X.key==="Escape"&&b()}),B.onMouseEnter=xn(Te.onMouseEnter,()=>{I.current=!0,nt.current=window.setTimeout(()=>S(),f)}),B.onMouseLeave=xn(Te.onMouseLeave,()=>{I.current=!1,nt.current&&(clearTimeout(nt.current),nt.current=void 0),wt.current=window.setTimeout(()=>{I.current===!1&&b()},h)})),B},[ee,_,ce,c,Dt,C,S,t,b,f,h]);w.useEffect(()=>()=>{nt.current&&clearTimeout(nt.current),wt.current&&clearTimeout(wt.current)},[]);const Sn=w.useCallback((Te={},yt=null)=>({...Te,id:ue,ref:Pi(yt,B=>{z(!!B)})}),[ue]),Yt=w.useCallback((Te={},yt=null)=>({...Te,id:J,ref:Pi(yt,B=>{W(!!B)})}),[J]);return{forceUpdate:xe,isOpen:_,onAnimationComplete:ye.onComplete,onClose:b,getAnchorProps:Ye,getArrowProps:we,getArrowInnerProps:Ee,getPopoverPositionerProps:it,getPopoverProps:Ae,getTriggerProps:Nt,getHeaderProps:Sn,getBodyProps:Yt}}function bw(e,t){return e===t||(e==null?void 0:e.contains(t))}function p9(e){var t;const n=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:n}function LF(e){const t=Pr("Popover",e),{children:n,...r}=_r(e),i=ol(),a=tge({...r,direction:i.direction});return T.jsx(Jme,{value:a,children:T.jsx(ege,{value:t,children:fa(n,{isOpen:a.isOpen,onClose:a.onClose,forceUpdate:a.forceUpdate})})})}LF.displayName="Popover";var Sw=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function MF(e){var t;const{bg:n,bgColor:r,backgroundColor:i,shadow:a,boxShadow:o,shadowColor:s}=e,{getArrowProps:l,getArrowInnerProps:c}=Ib(),f=AF(),h=(t=n??r)!=null?t:i,p=a??o;return T.jsx(je.div,{...l(),className:"chakra-popover__arrow-positioner",children:T.jsx(je.div,{className:At("chakra-popover__arrow",e.className),...c(e),__css:{"--popper-arrow-shadow-color":Sw("colors",s),"--popper-arrow-bg":Sw("colors",h),"--popper-arrow-shadow":Sw("shadows",p),...f.arrow}})})}MF.displayName="PopoverArrow";function nge(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var rge={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},ige=je(wu.section),DF=Xe(function(t,n){const{variants:r=rge,...i}=t,{isOpen:a}=Ib();return T.jsx(ige,{ref:n,variants:nge(r),initial:!1,animate:a?"enter":"exit",...i})});DF.displayName="PopoverTransition";var NF=Xe(function(t,n){const{rootProps:r,motionProps:i,...a}=t,{getPopoverProps:o,getPopoverPositionerProps:s,onAnimationComplete:l}=Ib(),c=AF(),f={position:"relative",display:"flex",flexDirection:"column",...c.content};return T.jsx(je.div,{...s(r),__css:c.popper,className:"chakra-popover__popper",children:T.jsx(DF,{...i,...o(a,n),onAnimationComplete:WL(l,a.onAnimationComplete),className:At("chakra-popover__content",t.className),__css:f})})});NF.displayName="PopoverContent";function age(e,t,n){return(e-t)*100/(n-t)}Ro({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Ro({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var oge=Ro({"0%":{left:"-40%"},"100%":{left:"100%"}}),sge=Ro({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function lge(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:a,isIndeterminate:o,role:s="progressbar"}=e,l=age(t,n,r);return{bind:{"data-indeterminate":o?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":o?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof a=="function"?a(t,l):i})(),role:s},percent:l,value:t}}var[uge,cge]=lr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),dge=Xe((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:a,role:o,...s}=e,l=lge({value:i,min:n,max:r,isIndeterminate:a,role:o}),f={height:"100%",...cge().filledTrack};return T.jsx(je.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:f})}),FF=Xe((e,t)=>{var n;const{value:r,min:i=0,max:a=100,hasStripe:o,isAnimated:s,children:l,borderRadius:c,isIndeterminate:f,"aria-label":h,"aria-labelledby":p,"aria-valuetext":v,title:y,role:m,..._}=_r(e),b=Pr("Progress",e),S=c??((n=b.track)==null?void 0:n.borderRadius),C={animation:`${sge} 1s linear infinite`},A={...!f&&o&&s&&C,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${oge} 1s ease infinite normal none running`}},I={overflow:"hidden",position:"relative",...b.track};return T.jsx(je.div,{ref:t,borderRadius:S,__css:I,..._,children:T.jsxs(uge,{value:b,children:[T.jsx(dge,{"aria-label":h,"aria-labelledby":p,"aria-valuetext":v,min:i,max:a,value:r,isIndeterminate:f,css:A,borderRadius:S,title:y,role:m}),l]})})});FF.displayName="Progress";function fge(){const e=w.useRef(!0);return w.useEffect(()=>{e.current=!1},[]),e.current}function hge(e){const t=w.useRef();return w.useEffect(()=>{t.current=e},[e]),t.current}var pge=je("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),QC=tt("skeleton-start-color"),XC=tt("skeleton-end-color"),mge=Ro({from:{opacity:0},to:{opacity:1}}),gge=Ro({from:{borderColor:QC.reference,background:QC.reference},to:{borderColor:XC.reference,background:XC.reference}}),g6=Xe((e,t)=>{const n={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},r=Xa("Skeleton",n),i=fge(),{startColor:a="",endColor:o="",isLoaded:s,fadeDuration:l,speed:c,className:f,fitContent:h,...p}=_r(n),[v,y]=zQ("colors",[a,o]),m=hge(s),_=At("chakra-skeleton",f),b={...v&&{[QC.variable]:v},...y&&{[XC.variable]:y}};if(s){const S=i||m?"none":`${mge} ${l}s`;return T.jsx(je.div,{ref:t,className:_,__css:{animation:S},...p})}return T.jsx(pge,{ref:t,className:_,...p,__css:{width:h?"fit-content":void 0,...r,...b,_dark:{...r._dark,...b},animation:`${c}s linear infinite alternate ${gge}`}})});g6.displayName="Skeleton";var[vge,yh]=lr({name:"StepContext"}),[yge,Bg]=roe("Stepper"),_ge=Xe(function(t,n){const{orientation:r,status:i,showLastSeparator:a}=yh(),o=Bg();return T.jsx(je.div,{ref:n,"data-status":i,"data-orientation":r,"data-stretch":cn(a),__css:o.step,...t,className:At("chakra-step",t.className)})}),bge=Xe(function(t,n){const r=Pr("Stepper",t),{children:i,index:a,orientation:o="horizontal",showLastSeparator:s=!1,...l}=_r(t),c=w.Children.toArray(i),f=c.length;function h(p){return p<a?"complete":p>a?"incomplete":"active"}return T.jsx(je.div,{ref:n,"aria-label":"Progress","data-orientation":o,...l,__css:r.stepper,className:At("chakra-stepper",t.className),children:T.jsx(yge,{value:r,children:c.map((p,v)=>T.jsx(vge,{value:{index:v,status:h(v),orientation:o,showLastSeparator:s,count:f,isFirst:v===0,isLast:v===f-1},children:p},v))})})});function Sge(e={}){const{index:t=0,count:n}=e,[r,i]=w.useState(t),a=typeof n=="number"?n-1:0,o=r/a;return{activeStep:r,setActiveStep:i,activeStepPercent:o,isActiveStep(s){return s===r},isCompleteStep(s){return s<r},isIncompleteStep(s){return s>r},getStatus(s){return s<r?"complete":s>r?"incomplete":"active"},goToNext(){i(s=>typeof n=="number"?Math.min(n,s+1):s+1)},goToPrevious(){i(s=>Math.max(0,s-1))}}}function wge(e){const{complete:t,incomplete:n,active:r}=e,i=yh();let a=null;switch(i.status){case"complete":a=fa(t,i);break;case"incomplete":a=fa(n,i);break;case"active":a=fa(r,i);break}return a?T.jsx(T.Fragment,{children:a}):null}function xge(e){return T.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:T.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function Cge(e){const{status:t}=yh(),n=Bg(),r=t==="complete"?xge:void 0;return T.jsx(Wt,{as:r,__css:n.icon,...e,className:At("chakra-step__icon",e.className)})}var m9=Xe(function(t,n){const{children:r,...i}=t,{status:a,index:o}=yh(),s=Bg();return T.jsx(je.div,{ref:n,"data-status":a,__css:s.number,...i,className:At("chakra-step__number",t.className),children:r||o+1})});function Ege(e){const{status:t}=yh(),n=Bg();return T.jsx(je.div,{"data-status":t,...e,__css:n.indicator,className:At("chakra-step__indicator",e.className)})}var kge=Xe(function(t,n){const{orientation:r,status:i,isLast:a,showLastSeparator:o}=yh(),s=Bg();return a&&!o?null:T.jsx(je.div,{ref:n,role:"separator","data-orientation":r,"data-status":i,__css:s.separator,...t,className:At("chakra-step__separator",t.className)})}),[Tge,$F]=lr({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tag />" `}),v6=Xe((e,t)=>{const n=Pr("Tag",e),r=_r(e),i={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...n.container};return T.jsx(Tge,{value:n,children:T.jsx(je.span,{ref:t,...r,__css:i})})});v6.displayName="Tag";var Pge=Xe((e,t)=>{const n=$F();return T.jsx(je.span,{ref:t,noOfLines:1,...e,__css:n.label})});Pge.displayName="TagLabel";var Oge=Xe((e,t)=>T.jsx(Wt,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));Oge.displayName="TagLeftIcon";var Rge=Xe((e,t)=>T.jsx(Wt,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));Rge.displayName="TagRightIcon";var zF=e=>T.jsx(Wt,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:T.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});zF.displayName="TagCloseIcon";var Age=Xe((e,t)=>{const{isDisabled:n,children:r,...i}=e,o={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...$F().closeButton};return T.jsx(je.button,{ref:t,"aria-label":"close",...i,type:"button",disabled:n,__css:o,children:r||T.jsx(zF,{})})});Age.displayName="TagCloseButton";class _h{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const eg=typeof window>"u"||"Deno"in window;function Da(){}function Ige(e,t){return typeof e=="function"?e(t):e}function JC(e){return typeof e=="number"&&e>=0&&e!==1/0}function jF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Up(e,t,n){return Vg(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Lge(e,t,n){return Vg(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function $l(e,t,n){return Vg(e)?[{...t,queryKey:e},n]:[e||{},t]}function g9(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(Vg(o)){if(r){if(t.queryHash!==y6(o,t.options))return!1}else if(!O1(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||a&&!a(t))}function v9(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:a}=e;if(Vg(a)){if(!t.options.mutationKey)return!1;if(n){if(sc(t.options.mutationKey)!==sc(a))return!1}else if(!O1(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function y6(e,t){return((t==null?void 0:t.queryKeyHashFn)||sc)(e)}function sc(e){return JSON.stringify(e,(t,n)=>e3(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function O1(e,t){return BF(e,t)}function BF(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!BF(e[n],t[n])):!1}function VF(e,t){if(e===t)return e;const n=y9(e)&&y9(t);if(n||e3(e)&&e3(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),a=i.length,o=n?[]:{};let s=0;for(let l=0;l<a;l++){const c=n?l:i[l];o[c]=VF(e[c],t[c]),o[c]===e[c]&&s++}return r===a&&s===r?e:o}return t}function R1(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function y9(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function e3(e){if(!_9(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!_9(n)||!n.hasOwnProperty("isPrototypeOf"))}function _9(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vg(e){return Array.isArray(e)}function UF(e){return new Promise(t=>{setTimeout(t,e)})}function b9(e){UF(0).then(e)}function Mge(){if(typeof AbortController=="function")return new AbortController}function t3(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?VF(e,t):t}class Dge extends _h{constructor(){super(),this.setup=t=>{if(!eg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const A1=new Dge,S9=["online","offline"];class Nge extends _h{constructor(){super(),this.setup=t=>{if(!eg&&window.addEventListener){const n=()=>t();return S9.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{S9.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const I1=new Nge;function Fge(e){return Math.min(1e3*2**e,3e4)}function Lb(e){return(e??"online")==="online"?I1.isOnline():!0}class HF{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function xy(e){return e instanceof HF}function WF(e){let t=!1,n=0,r=!1,i,a,o;const s=new Promise((_,b)=>{a=_,o=b}),l=_=>{r||(v(new HF(_)),e.abort==null||e.abort())},c=()=>{t=!0},f=()=>{t=!1},h=()=>!A1.isFocused()||e.networkMode!=="always"&&!I1.isOnline(),p=_=>{r||(r=!0,e.onSuccess==null||e.onSuccess(_),i==null||i(),a(_))},v=_=>{r||(r=!0,e.onError==null||e.onError(_),i==null||i(),o(_))},y=()=>new Promise(_=>{i=b=>{const S=r||!h();return S&&_(b),S},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let _;try{_=e.fn()}catch(b){_=Promise.reject(b)}Promise.resolve(_).then(p).catch(b=>{var S,C;if(r)return;const E=(S=e.retry)!=null?S:3,R=(C=e.retryDelay)!=null?C:Fge,A=typeof R=="function"?R(n,b):R,I=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,b);if(t||!I){v(b);return}n++,e.onFail==null||e.onFail(n,b),UF(A).then(()=>{if(h())return y()}).then(()=>{t?v(b):m()})})};return Lb(e.networkMode)?m():y().then(m),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:c,continueRetry:f}}const _6=console;function $ge(){let e=[],t=0,n=f=>{f()},r=f=>{f()};const i=f=>{let h;t++;try{h=f()}finally{t--,t||s()}return h},a=f=>{t?e.push(f):b9(()=>{n(f)})},o=f=>(...h)=>{a(()=>{f(...h)})},s=()=>{const f=e;e=[],f.length&&b9(()=>{r(()=>{f.forEach(h=>{n(h)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f}}}const Jn=$ge();class qF{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),JC(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(eg?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class zge extends qF{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||_6,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||jge(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=t3(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Da).catch(Da):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!jF(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(y=>y.options.queryFn);v&&this.setOptions(v.options)}Array.isArray(this.options.queryKey);const o=Mge(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),f={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(l(f),(r=this.options.behavior)==null||r.onFetch(f),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=f.fetchOptions)==null?void 0:i.meta)){var h;this.dispatch({type:"fetch",meta:(h=f.fetchOptions)==null?void 0:h.meta})}const p=v=>{if(xy(v)&&v.silent||this.dispatch({type:"error",error:v}),!xy(v)){var y,m,_,b;(y=(m=this.cache.config).onError)==null||y.call(m,v,this),(_=(b=this.cache.config).onSettled)==null||_.call(b,this.state.data,v,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=WF({fn:f.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:v=>{var y,m,_,b;if(typeof v>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(v),(y=(m=this.cache.config).onSuccess)==null||y.call(m,v,this),(_=(b=this.cache.config).onSettled)==null||_.call(b,v,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(v,y)=>{this.dispatch({type:"failed",failureCount:v,error:y})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,a;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Lb(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return xy(o)&&o.revert&&this.revertState?{...this.revertState}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Jn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function jge(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class GF extends _h{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const a=n.queryKey,o=(i=n.queryHash)!=null?i:y6(a,n);let s=this.get(o);return s||(s=new zge({cache:this,logger:t.getLogger(),queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Jn.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=$l(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>g9(r,i))}findAll(t,n){const[r]=$l(t,n);return Object.keys(r).length>0?this.queries.filter(i=>g9(r,i)):this.queries}notify(t){Jn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){Jn.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Jn.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class Bge extends qF{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||_6,this.observers=[],this.state=t.state||KF(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var I;return this.retryer=WF({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(M,F)=>{this.dispatch({type:"failed",failureCount:M,error:F})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(I=this.options.retry)!=null?I:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,a,o,s,l,c,f;if(!n){var h,p,v,y;this.dispatch({type:"loading",variables:this.options.variables}),await((h=(p=this.mutationCache.config).onMutate)==null?void 0:h.call(p,this.state.variables,this));const M=await((v=(y=this.options).onMutate)==null?void 0:v.call(y,this.state.variables));M!==this.state.context&&this.dispatch({type:"loading",context:M,variables:this.state.variables})}const I=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,I,this.state.variables,this.state.context,this)),await((a=(o=this.options).onSuccess)==null?void 0:a.call(o,I,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,I,null,this.state.variables,this.state.context,this)),await((c=(f=this.options).onSettled)==null?void 0:c.call(f,I,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:I}),I}catch(I){try{var m,_,b,S,C,E,R,A;throw await((m=(_=this.mutationCache.config).onError)==null?void 0:m.call(_,I,this.state.variables,this.state.context,this)),await((b=(S=this.options).onError)==null?void 0:b.call(S,I,this.state.variables,this.state.context)),await((C=(E=this.mutationCache.config).onSettled)==null?void 0:C.call(E,void 0,I,this.state.variables,this.state.context,this)),await((R=(A=this.options).onSettled)==null?void 0:R.call(A,void 0,I,this.state.variables,this.state.context)),I}finally{this.dispatch({type:"error",error:I})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Lb(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Jn.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function KF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class YF extends _h{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new Bge({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Jn.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>v9(t,n))}findAll(t){return this.mutations.filter(n=>v9(t,n))}notify(t){Jn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Jn.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(Da)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Vge(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,a,o;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,c=l==null?void 0:l.pageParam,f=(l==null?void 0:l.direction)==="forward",h=(l==null?void 0:l.direction)==="backward",p=((a=e.state.data)==null?void 0:a.pages)||[],v=((o=e.state.data)==null?void 0:o.pageParams)||[];let y=v,m=!1;const _=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>{var I;if((I=e.signal)!=null&&I.aborted)m=!0;else{var M;(M=e.signal)==null||M.addEventListener("abort",()=>{m=!0})}return e.signal}})},b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),S=(A,I,M,F)=>(y=F?[I,...y]:[...y,I],F?[M,...A]:[...A,M]),C=(A,I,M,F)=>{if(m)return Promise.reject("Cancelled");if(typeof M>"u"&&!I&&A.length)return Promise.resolve(A);const z={queryKey:e.queryKey,pageParam:M,meta:e.options.meta};_(z);const Y=b(z);return Promise.resolve(Y).then(q=>S(A,M,q,F))};let E;if(!p.length)E=C([]);else if(f){const A=typeof c<"u",I=A?c:w9(e.options,p);E=C(p,A,I)}else if(h){const A=typeof c<"u",I=A?c:Uge(e.options,p);E=C(p,A,I,!0)}else{y=[];const A=typeof e.options.getNextPageParam>"u";E=(s&&p[0]?s(p[0],0,p):!0)?C([],A,v[0]):Promise.resolve(S([],v[0],p[0]));for(let M=1;M<p.length;M++)E=E.then(F=>{if(s&&p[M]?s(p[M],M,p):!0){const Y=A?v[M]:w9(e.options,F);return C(F,A,Y)}return Promise.resolve(S(F,v[M],p[M]))})}return E.then(A=>({pages:A,pageParams:y}))}}}}function w9(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Uge(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Hge{constructor(t={}){this.queryCache=t.queryCache||new GF,this.mutationCache=t.mutationCache||new YF,this.logger=t.logger||_6,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=A1.subscribe(()=>{A1.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=I1.subscribe(()=>{I1.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=$l(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=Up(t,n,r),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),a=i==null?void 0:i.state.data,o=Ige(n,a);if(typeof o>"u")return;const s=Up(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return Jn.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=$l(t,n),i=this.queryCache;Jn.batch(()=>{i.findAll(r).forEach(a=>{i.remove(a)})})}resetQueries(t,n,r){const[i,a]=$l(t,n,r),o=this.queryCache,s={type:"active",...i};return Jn.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(s,a)))}cancelQueries(t,n,r){const[i,a={}]=$l(t,n,r);typeof a.revert>"u"&&(a.revert=!0);const o=Jn.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(a)));return Promise.all(o).then(Da).catch(Da)}invalidateQueries(t,n,r){const[i,a]=$l(t,n,r);return Jn.batch(()=>{var o,s;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(s=i.refetchType)!=null?s:i.type)!=null?o:"active"};return this.refetchQueries(l,a)})}refetchQueries(t,n,r){const[i,a]=$l(t,n,r),o=Jn.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,{...a,cancelRefetch:(c=a==null?void 0:a.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}})}));let s=Promise.all(o).then(Da);return a!=null&&a.throwOnError||(s=s.catch(Da)),s}fetchQuery(t,n,r){const i=Up(t,n,r),a=this.defaultQueryOptions(i);typeof a.retry>"u"&&(a.retry=!1);const o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Da).catch(Da)}fetchInfiniteQuery(t,n,r){const i=Up(t,n,r);return i.behavior=Vge(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Da).catch(Da)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>sc(t)===sc(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>O1(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>sc(t)===sc(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>O1(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=y6(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Wge extends _h{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),x9(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return n3(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return n3(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),R1(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const a=this.hasListeners();a&&C9(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),a&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return Gge(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Da)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),eg||this.currentResult.isStale||!JC(this.options.staleTime))return;const n=jF(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(eg||this.options.enabled===!1||!JC(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||A1.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,a=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,l=t!==r,c=l?t.state:this.currentQueryInitialState,f=l?this.currentResult:this.previousQueryResult,{state:h}=t;let{dataUpdatedAt:p,error:v,errorUpdatedAt:y,fetchStatus:m,status:_}=h,b=!1,S=!1,C;if(n._optimisticResults){const M=this.hasListeners(),F=!M&&x9(t,n),z=M&&C9(t,r,n,i);(F||z)&&(m=Lb(t.options.networkMode)?"fetching":"paused",p||(_="loading")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.keepPreviousData&&!h.dataUpdatedAt&&f!=null&&f.isSuccess&&_!=="error")C=f.data,p=f.dataUpdatedAt,_=f.status,b=!0;else if(n.select&&typeof h.data<"u")if(a&&h.data===(o==null?void 0:o.data)&&n.select===this.selectFn)C=this.selectResult;else try{this.selectFn=n.select,C=n.select(h.data),C=t3(a==null?void 0:a.data,C,n),this.selectResult=C,this.selectError=null}catch(M){this.selectError=M}else C=h.data;if(typeof n.placeholderData<"u"&&typeof C>"u"&&_==="loading"){let M;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))M=a.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof M<"u")try{M=n.select(M),this.selectError=null}catch(F){this.selectError=F}typeof M<"u"&&(_="success",C=t3(a==null?void 0:a.data,M,n),S=!0)}this.selectError&&(v=this.selectError,C=this.selectResult,y=Date.now(),_="error");const E=m==="fetching",R=_==="loading",A=_==="error";return{status:_,fetchStatus:m,isLoading:R,isSuccess:_==="success",isError:A,isInitialLoading:R&&E,data:C,dataUpdatedAt:p,error:v,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:E,isRefetching:E&&!R,isLoadingError:A&&h.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:S,isPreviousData:b,isRefetchError:A&&h.dataUpdatedAt!==0,isStale:b6(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,R1(r,n))return;this.currentResult=r;const i={cache:!0},a=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const f=c;return this.currentResult[f]!==n[f]&&l.has(f)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!xy(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Jn.batch(()=>{if(t.onSuccess){var n,r,i,a;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(a=this.options).onSettled)==null||i.call(a,this.currentResult.data,null)}else if(t.onError){var o,s,l,c;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:f})=>{f(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function qge(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function x9(e,t){return qge(e,t)||e.state.dataUpdatedAt>0&&n3(e,t,t.refetchOnMount)}function n3(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&b6(e,t)}return!1}function C9(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&b6(e,n)}function b6(e,t){return e.isStaleByTime(t.staleTime)}function Gge(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!R1(e.getCurrentResult(),t)}let Kge=class extends _h{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),R1(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:KF(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Jn.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,a;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(a=this.mutateOptions).onSettled)==null||i.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,s,l,c;(o=(s=this.mutateOptions).onError)==null||o.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(c=this.mutateOptions).onSettled)==null||l.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:f})=>{f(this.currentResult)})})}};var ZF={exports:{}},QF={};/**
    389389 * @license React
    390390 * use-sync-external-store-shim.production.min.js
     
    394394 * This source code is licensed under the MIT license found in the
    395395 * LICENSE file in the root directory of this source tree.
    396  */var Jf=w;function Yge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zge=typeof Object.is=="function"?Object.is:Yge,Qge=Jf.useState,Xge=Jf.useEffect,Jge=Jf.useLayoutEffect,eve=Jf.useDebugValue;function tve(e,t){var n=t(),r=Qge({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Jge(function(){i.value=n,i.getSnapshot=t,ww(i)&&a({inst:i})},[e,n,t]),Xge(function(){return ww(i)&&a({inst:i}),e(function(){ww(i)&&a({inst:i})})},[e]),eve(n),n}function ww(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zge(e,n)}catch{return!0}}function nve(e,t){return t()}var rve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nve:tve;QF.useSyncExternalStore=Jf.useSyncExternalStore!==void 0?Jf.useSyncExternalStore:rve;ZF.exports=QF;var ive=ZF.exports;const XF=ive.useSyncExternalStore,E9=w.createContext(void 0),JF=w.createContext(!1);function e$(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=E9),window.ReactQueryClientContext):E9)}const t$=({context:e}={})=>{const t=w.useContext(e$(e,w.useContext(JF)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ave=({client:e,children:t,context:n,contextSharing:r=!1})=>{w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=e$(n,r);return w.createElement(JF.Provider,{value:!n&&r},w.createElement(i.Provider,{value:e},t))},n$=w.createContext(!1),ove=()=>w.useContext(n$);n$.Provider;function sve(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const lve=w.createContext(sve()),uve=()=>w.useContext(lve);function r$(e,t){return typeof e=="function"?e(...t):!!e}const cve=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},dve=e=>{w.useEffect(()=>{e.clearReset()},[e])},fve=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r$(n,[e.error,r]),hve=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},pve=(e,t)=>e.isLoading&&e.isFetching&&!t,mve=(e,t,n)=>(e==null?void 0:e.suspense)&&pve(t,n),gve=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function vve(e,t){const n=t$({context:e.context}),r=ove(),i=uve(),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=Jn.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=Jn.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=Jn.batchCalls(a.onSettled)),hve(a),cve(a,i),dve(i);const[o]=w.useState(()=>new t(n,a)),s=o.getOptimisticResult(a);if(XF(w.useCallback(l=>{const c=r?()=>{}:o.subscribe(Jn.batchCalls(l));return o.updateResult(),c},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),w.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),mve(a,s,r))throw gve(a,o,i);if(fve({result:s,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return a.notifyOnChangeProps?s:o.trackResult(s)}function wo(e,t,n){const r=Up(e,t,n);return vve(r,Wge)}function i$(e,t,n){const r=Lge(e,t,n),i=t$({context:r.context}),[a]=w.useState(()=>new Kge(i,r));w.useEffect(()=>{a.setOptions(r)},[a,r]);const o=XF(w.useCallback(l=>a.subscribe(Jn.batchCalls(l)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=w.useCallback((l,c)=>{a.mutate(l,c).catch(yve)},[a]);if(o.error&&r$(a.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function yve(){}var _ve={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const bve=vu(_ve);var Sve=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function k9(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(bve[n[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("-->");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var i=new RegExp(Sve),a=null;(a=i.exec(e))!==null;)if(a[0].trim())if(a[1]){var o=a[1].trim(),s=[o,""];o.indexOf("=")>-1&&(s=o.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var wve=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,xve=/^\s*$/,Cve=Object.create(null);function a$(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var r=[];for(var i in n)r.push(i+'="'+n[i]+'"');return r.length?" "+r.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(a$,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var Eve={parse:function(e,t){t||(t={}),t.components||(t.components=Cve);var n,r=[],i=[],a=-1,o=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");r.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(wve,function(l,c){if(o){if(l!=="</"+n.name+">")return;o=!1}var f,h=l.charAt(1)!=="/",p=l.startsWith("<!--"),v=c+l.length,y=e.charAt(v);if(p){var m=k9(l);return a<0?(r.push(m),r):((f=i[a]).children.push(m),r)}if(h&&(a++,(n=k9(l)).type==="tag"&&t.components[n.name]&&(n.type="component",o=!0),n.voidElement||o||!y||y==="<"||n.children.push({type:"text",content:e.slice(v,e.indexOf("<",v))}),a===0&&r.push(n),(f=i[a-1])&&f.children.push(n),i[a]=n),(!h||n.voidElement)&&(a>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(a--,n=a===-1?r:i[a]),!o&&y!=="<"&&y)){f=a===-1?r:i[a].children;var _=e.indexOf("<",v),b=e.slice(v,_===-1?void 0:_);xve.test(b)&&(b=" "),(_>-1&&a+f.length>=0||b!==" ")&&f.push({type:"text",content:b})}}),r},stringify:function(e){return e.reduce(function(t,n){return t+a$("",n)},"")}};function Cy(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const T9={};function L1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&T9[t[0]]||(typeof t[0]=="string"&&(T9[t[0]]=new Date),Cy(...t))}const o$=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function P9(e,t,n){e.loadNamespaces(t,o$(e,n))}function O9(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,o$(e,r))}function kve(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=t.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function Tve(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(L1("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):kve(e,t,n)}const Pve=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ove={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Rve=e=>Ove[e],Ave=e=>e.replace(Pve,Rve);let rC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ave};function Ive(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rC={...rC,...e}}function s$(){return rC}let l$;function Lve(e){l$=e}function S6(){return l$}function xw(e,t){if(!e)return!1;const n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function Cw(e){if(!e)return[];const t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?lf(t):t}function Mve(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(t=>w.isValidElement(t))}function lf(e){return Array.isArray(e)?e:[e]}function Dve(e,t){const n={...t};return n.props=Object.assign(e.props,t.props),n}function u$(e,t){if(!e)return"";let n="";const r=lf(e),i=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((a,o)=>{if(typeof a=="string")n+=`${a}`;else if(w.isValidElement(a)){const s=Object.keys(a.props).length,l=i.indexOf(a.type)>-1,c=a.props.children;if(!c&&l&&s===0)n+=`<${a.type}/>`;else if(!c&&(!l||s!==0))n+=`<${o}></${o}>`;else if(a.props.i18nIsDynamicList)n+=`<${o}></${o}>`;else if(l&&s===1&&typeof c=="string")n+=`<${a.type}>${c}</${a.type}>`;else{const f=u$(c,t);n+=`<${o}>${f}</${o}>`}}else if(a===null)Cy("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof a=="object"){const{format:s,...l}=a,c=Object.keys(l);if(c.length===1){const f=s?`${c[0]}, ${s}`:c[0];n+=`{{${f}}}`}else Cy("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",a)}else Cy("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",a)}),n}function Nve(e,t,n,r,i,a){if(t==="")return[];const o=r.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(o.map(_=>`<${_}`).join("|")).test(t);if(!e&&!s&&!a)return[t];const l={};function c(_){lf(_).forEach(S=>{typeof S!="string"&&(xw(S)?c(Cw(S)):typeof S=="object"&&!w.isValidElement(S)&&Object.assign(l,S))})}c(e);const f=Eve.parse(`<0>${t}</0>`),h={...l,...i};function p(_,b,S){const C=Cw(_),E=y(C,b.children,S);return Mve(C)&&E.length===0||_.props&&_.props.i18nIsDynamicList?C:E}function v(_,b,S,C,E){_.dummy?(_.children=b,S.push(w.cloneElement(_,{key:C},E?void 0:b))):S.push(...w.Children.map([_],R=>{const A={...R.props};return delete A.i18nIsDynamicList,ve.createElement(R.type,Je({},A,{key:C,ref:R.ref},E?{}:{children:b}))}))}function y(_,b,S){const C=lf(_);return lf(b).reduce((R,A,I)=>{const M=A.children&&A.children[0]&&A.children[0].content&&n.services.interpolator.interpolate(A.children[0].content,h,n.language);if(A.type==="tag"){let F=C[parseInt(A.name,10)];S.length===1&&!F&&(F=S[0][A.name]),F||(F={});const z=Object.keys(A.attrs).length!==0?Dve({props:A.attrs},F):F,Y=w.isValidElement(z),W=Y&&xw(A,!0)&&!A.voidElement,q=s&&typeof z=="object"&&z.dummy&&!Y,ae=typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,A.name);if(typeof z=="string"){const ee=n.services.interpolator.interpolate(z,h,n.language);R.push(ee)}else if(xw(z)||W){const ee=p(z,A,S);v(z,ee,R,I)}else if(q){const ee=y(C,A.children,S);v(z,ee,R,I)}else if(Number.isNaN(parseFloat(A.name)))if(ae){const ee=p(z,A,S);v(z,ee,R,I,A.voidElement)}else if(r.transSupportBasicHtmlNodes&&o.indexOf(A.name)>-1)if(A.voidElement)R.push(w.createElement(A.name,{key:`${A.name}-${I}`}));else{const ee=y(C,A.children,S);R.push(w.createElement(A.name,{key:`${A.name}-${I}`},ee))}else if(A.voidElement)R.push(`<${A.name} />`);else{const ee=y(C,A.children,S);R.push(`<${A.name}>${ee}</${A.name}>`)}else if(typeof z=="object"&&!Y){const ee=A.children[0]?M:null;ee&&R.push(ee)}else v(z,M,R,I,A.children.length!==1||!M)}else if(A.type==="text"){const F=r.transWrapTextNodes,z=a?r.unescape(n.services.interpolator.interpolate(A.content,h,n.language)):n.services.interpolator.interpolate(A.content,h,n.language);F?R.push(w.createElement(F,{key:`${A.name}-${I}`},z)):R.push(z)}return R},[])}const m=y([{dummy:!0,children:e||[]}],f,lf(e||[]));return Cw(m[0])}function Fve(e){let{children:t,count:n,parent:r,i18nKey:i,context:a,tOptions:o={},values:s,defaults:l,components:c,ns:f,i18n:h,t:p,shouldUnescape:v,...y}=e;const m=h||S6();if(!m)return L1("You will need to pass in an i18next instance by using i18nextReactModule"),t;const _=p||m.t.bind(m)||(W=>W);a&&(o.context=a);const b={...s$(),...m.options&&m.options.react};let S=f||_.ns||m.options&&m.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"];const C=u$(t,b),E=l||C||b.transEmptyNodeValue||i,{hashTransKey:R}=b,A=i||(R?R(C||E):C||E),I=s?o.interpolation:{interpolation:{...o.interpolation,prefix:"#$?",suffix:"?$#"}},M={...o,count:n,...s,...I,defaultValue:E,ns:S},F=A?_(A,M):E,z=Nve(c||t,F,m,b,M,v),Y=r!==void 0?r:b.defaultTransParent;return Y?w.createElement(Y,y,z):z}const $ve={type:"3rdParty",init(e){Ive(e.options.react),Lve(e)}},w6=w.createContext();class zve{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function x6(e){let{children:t,count:n,parent:r,i18nKey:i,context:a,tOptions:o={},values:s,defaults:l,components:c,ns:f,i18n:h,t:p,shouldUnescape:v,...y}=e;const{i18n:m,defaultNS:_}=w.useContext(w6)||{},b=h||m||S6(),S=p||b&&b.t.bind(b);return Fve({children:t,count:n,parent:r,i18nKey:i,context:a,tOptions:o,values:s,defaults:l,components:c,ns:f||S&&S.ns||_||b&&b.options&&b.options.defaultNS,i18n:b,t:p,shouldUnescape:v,...y})}const jve=(e,t)=>{const n=w.useRef();return w.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function C6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=w.useContext(w6)||{},a=n||r||S6();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new zve),!a){L1("You will need to pass in an i18next instance by using initReactI18next");const C=(R,A)=>typeof A=="string"?A:A&&typeof A=="object"&&typeof A.defaultValue=="string"?A.defaultValue:Array.isArray(R)?R[R.length-1]:R,E=[C,{},!1];return E.t=C,E.i18n={},E.ready=!1,E}a.options.react&&a.options.react.wait!==void 0&&L1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...s$(),...a.options.react,...t},{useSuspense:s,keyPrefix:l}=o;let c=e||i||a.options&&a.options.defaultNS;c=typeof c=="string"?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const f=(a.isInitialized||a.initializedStoreOnce)&&c.every(C=>Tve(C,a,o));function h(){return a.getFixedT(t.lng||null,o.nsMode==="fallback"?c:c[0],l)}const[p,v]=w.useState(h);let y=c.join();t.lng&&(y=`${t.lng}${y}`);const m=jve(y),_=w.useRef(!0);w.useEffect(()=>{const{bindI18n:C,bindI18nStore:E}=o;_.current=!0,!f&&!s&&(t.lng?O9(a,t.lng,c,()=>{_.current&&v(h)}):P9(a,c,()=>{_.current&&v(h)})),f&&m&&m!==y&&_.current&&v(h);function R(){_.current&&v(h)}return C&&a&&a.on(C,R),E&&a&&a.store.on(E,R),()=>{_.current=!1,C&&a&&C.split(" ").forEach(A=>a.off(A,R)),E&&a&&E.split(" ").forEach(A=>a.store.off(A,R))}},[a,y]);const b=w.useRef(!0);w.useEffect(()=>{_.current&&!b.current&&v(h),b.current=!1},[a,l]);const S=[p,a,f];if(S.t=p,S.i18n=a,S.ready=f,f||!f&&!s)return S;throw new Promise(C=>{t.lng?O9(a,t.lng,c,()=>C()):P9(a,c,()=>C())})}function Bve(e){let{i18n:t,defaultNS:n,children:r}=e;const i=w.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return w.createElement(w6.Provider,{value:i},r)}/**
     396 */var Jf=w;function Yge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zge=typeof Object.is=="function"?Object.is:Yge,Qge=Jf.useState,Xge=Jf.useEffect,Jge=Jf.useLayoutEffect,eve=Jf.useDebugValue;function tve(e,t){var n=t(),r=Qge({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Jge(function(){i.value=n,i.getSnapshot=t,ww(i)&&a({inst:i})},[e,n,t]),Xge(function(){return ww(i)&&a({inst:i}),e(function(){ww(i)&&a({inst:i})})},[e]),eve(n),n}function ww(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zge(e,n)}catch{return!0}}function nve(e,t){return t()}var rve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nve:tve;QF.useSyncExternalStore=Jf.useSyncExternalStore!==void 0?Jf.useSyncExternalStore:rve;ZF.exports=QF;var ive=ZF.exports;const XF=ive.useSyncExternalStore,E9=w.createContext(void 0),JF=w.createContext(!1);function e$(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=E9),window.ReactQueryClientContext):E9)}const t$=({context:e}={})=>{const t=w.useContext(e$(e,w.useContext(JF)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ave=({client:e,children:t,context:n,contextSharing:r=!1})=>{w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=e$(n,r);return w.createElement(JF.Provider,{value:!n&&r},w.createElement(i.Provider,{value:e},t))},n$=w.createContext(!1),ove=()=>w.useContext(n$);n$.Provider;function sve(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const lve=w.createContext(sve()),uve=()=>w.useContext(lve);function r$(e,t){return typeof e=="function"?e(...t):!!e}const cve=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},dve=e=>{w.useEffect(()=>{e.clearReset()},[e])},fve=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r$(n,[e.error,r]),hve=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},pve=(e,t)=>e.isLoading&&e.isFetching&&!t,mve=(e,t,n)=>(e==null?void 0:e.suspense)&&pve(t,n),gve=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function vve(e,t){const n=t$({context:e.context}),r=ove(),i=uve(),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=Jn.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=Jn.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=Jn.batchCalls(a.onSettled)),hve(a),cve(a,i),dve(i);const[o]=w.useState(()=>new t(n,a)),s=o.getOptimisticResult(a);if(XF(w.useCallback(l=>{const c=r?()=>{}:o.subscribe(Jn.batchCalls(l));return o.updateResult(),c},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),w.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),mve(a,s,r))throw gve(a,o,i);if(fve({result:s,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return a.notifyOnChangeProps?s:o.trackResult(s)}function wo(e,t,n){const r=Up(e,t,n);return vve(r,Wge)}function i$(e,t,n){const r=Lge(e,t,n),i=t$({context:r.context}),[a]=w.useState(()=>new Kge(i,r));w.useEffect(()=>{a.setOptions(r)},[a,r]);const o=XF(w.useCallback(l=>a.subscribe(Jn.batchCalls(l)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=w.useCallback((l,c)=>{a.mutate(l,c).catch(yve)},[a]);if(o.error&&r$(a.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function yve(){}var _ve={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const bve=vu(_ve);var Sve=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function k9(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(bve[n[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("-->");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var i=new RegExp(Sve),a=null;(a=i.exec(e))!==null;)if(a[0].trim())if(a[1]){var o=a[1].trim(),s=[o,""];o.indexOf("=")>-1&&(s=o.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var wve=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,xve=/^\s*$/,Cve=Object.create(null);function a$(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var r=[];for(var i in n)r.push(i+'="'+n[i]+'"');return r.length?" "+r.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(a$,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var Eve={parse:function(e,t){t||(t={}),t.components||(t.components=Cve);var n,r=[],i=[],a=-1,o=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");r.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(wve,function(l,c){if(o){if(l!=="</"+n.name+">")return;o=!1}var f,h=l.charAt(1)!=="/",p=l.startsWith("<!--"),v=c+l.length,y=e.charAt(v);if(p){var m=k9(l);return a<0?(r.push(m),r):((f=i[a]).children.push(m),r)}if(h&&(a++,(n=k9(l)).type==="tag"&&t.components[n.name]&&(n.type="component",o=!0),n.voidElement||o||!y||y==="<"||n.children.push({type:"text",content:e.slice(v,e.indexOf("<",v))}),a===0&&r.push(n),(f=i[a-1])&&f.children.push(n),i[a]=n),(!h||n.voidElement)&&(a>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(a--,n=a===-1?r:i[a]),!o&&y!=="<"&&y)){f=a===-1?r:i[a].children;var _=e.indexOf("<",v),b=e.slice(v,_===-1?void 0:_);xve.test(b)&&(b=" "),(_>-1&&a+f.length>=0||b!==" ")&&f.push({type:"text",content:b})}}),r},stringify:function(e){return e.reduce(function(t,n){return t+a$("",n)},"")}};function Cy(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const T9={};function L1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&T9[t[0]]||(typeof t[0]=="string"&&(T9[t[0]]=new Date),Cy(...t))}const o$=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function P9(e,t,n){e.loadNamespaces(t,o$(e,n))}function O9(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,o$(e,r))}function kve(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=t.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function Tve(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(L1("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):kve(e,t,n)}const Pve=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ove={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Rve=e=>Ove[e],Ave=e=>e.replace(Pve,Rve);let r3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ave};function Ive(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r3={...r3,...e}}function s$(){return r3}let l$;function Lve(e){l$=e}function S6(){return l$}function xw(e,t){if(!e)return!1;const n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function Cw(e){if(!e)return[];const t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?lf(t):t}function Mve(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(t=>w.isValidElement(t))}function lf(e){return Array.isArray(e)?e:[e]}function Dve(e,t){const n={...t};return n.props=Object.assign(e.props,t.props),n}function u$(e,t){if(!e)return"";let n="";const r=lf(e),i=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((a,o)=>{if(typeof a=="string")n+=`${a}`;else if(w.isValidElement(a)){const s=Object.keys(a.props).length,l=i.indexOf(a.type)>-1,c=a.props.children;if(!c&&l&&s===0)n+=`<${a.type}/>`;else if(!c&&(!l||s!==0))n+=`<${o}></${o}>`;else if(a.props.i18nIsDynamicList)n+=`<${o}></${o}>`;else if(l&&s===1&&typeof c=="string")n+=`<${a.type}>${c}</${a.type}>`;else{const f=u$(c,t);n+=`<${o}>${f}</${o}>`}}else if(a===null)Cy("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof a=="object"){const{format:s,...l}=a,c=Object.keys(l);if(c.length===1){const f=s?`${c[0]}, ${s}`:c[0];n+=`{{${f}}}`}else Cy("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",a)}else Cy("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",a)}),n}function Nve(e,t,n,r,i,a){if(t==="")return[];const o=r.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(o.map(_=>`<${_}`).join("|")).test(t);if(!e&&!s&&!a)return[t];const l={};function c(_){lf(_).forEach(S=>{typeof S!="string"&&(xw(S)?c(Cw(S)):typeof S=="object"&&!w.isValidElement(S)&&Object.assign(l,S))})}c(e);const f=Eve.parse(`<0>${t}</0>`),h={...l,...i};function p(_,b,S){const C=Cw(_),E=y(C,b.children,S);return Mve(C)&&E.length===0||_.props&&_.props.i18nIsDynamicList?C:E}function v(_,b,S,C,E){_.dummy?(_.children=b,S.push(w.cloneElement(_,{key:C},E?void 0:b))):S.push(...w.Children.map([_],R=>{const A={...R.props};return delete A.i18nIsDynamicList,ve.createElement(R.type,Je({},A,{key:C,ref:R.ref},E?{}:{children:b}))}))}function y(_,b,S){const C=lf(_);return lf(b).reduce((R,A,I)=>{const M=A.children&&A.children[0]&&A.children[0].content&&n.services.interpolator.interpolate(A.children[0].content,h,n.language);if(A.type==="tag"){let F=C[parseInt(A.name,10)];S.length===1&&!F&&(F=S[0][A.name]),F||(F={});const z=Object.keys(A.attrs).length!==0?Dve({props:A.attrs},F):F,Y=w.isValidElement(z),W=Y&&xw(A,!0)&&!A.voidElement,q=s&&typeof z=="object"&&z.dummy&&!Y,ae=typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,A.name);if(typeof z=="string"){const ee=n.services.interpolator.interpolate(z,h,n.language);R.push(ee)}else if(xw(z)||W){const ee=p(z,A,S);v(z,ee,R,I)}else if(q){const ee=y(C,A.children,S);v(z,ee,R,I)}else if(Number.isNaN(parseFloat(A.name)))if(ae){const ee=p(z,A,S);v(z,ee,R,I,A.voidElement)}else if(r.transSupportBasicHtmlNodes&&o.indexOf(A.name)>-1)if(A.voidElement)R.push(w.createElement(A.name,{key:`${A.name}-${I}`}));else{const ee=y(C,A.children,S);R.push(w.createElement(A.name,{key:`${A.name}-${I}`},ee))}else if(A.voidElement)R.push(`<${A.name} />`);else{const ee=y(C,A.children,S);R.push(`<${A.name}>${ee}</${A.name}>`)}else if(typeof z=="object"&&!Y){const ee=A.children[0]?M:null;ee&&R.push(ee)}else v(z,M,R,I,A.children.length!==1||!M)}else if(A.type==="text"){const F=r.transWrapTextNodes,z=a?r.unescape(n.services.interpolator.interpolate(A.content,h,n.language)):n.services.interpolator.interpolate(A.content,h,n.language);F?R.push(w.createElement(F,{key:`${A.name}-${I}`},z)):R.push(z)}return R},[])}const m=y([{dummy:!0,children:e||[]}],f,lf(e||[]));return Cw(m[0])}function Fve(e){let{children:t,count:n,parent:r,i18nKey:i,context:a,tOptions:o={},values:s,defaults:l,components:c,ns:f,i18n:h,t:p,shouldUnescape:v,...y}=e;const m=h||S6();if(!m)return L1("You will need to pass in an i18next instance by using i18nextReactModule"),t;const _=p||m.t.bind(m)||(W=>W);a&&(o.context=a);const b={...s$(),...m.options&&m.options.react};let S=f||_.ns||m.options&&m.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"];const C=u$(t,b),E=l||C||b.transEmptyNodeValue||i,{hashTransKey:R}=b,A=i||(R?R(C||E):C||E),I=s?o.interpolation:{interpolation:{...o.interpolation,prefix:"#$?",suffix:"?$#"}},M={...o,count:n,...s,...I,defaultValue:E,ns:S},F=A?_(A,M):E,z=Nve(c||t,F,m,b,M,v),Y=r!==void 0?r:b.defaultTransParent;return Y?w.createElement(Y,y,z):z}const $ve={type:"3rdParty",init(e){Ive(e.options.react),Lve(e)}},w6=w.createContext();class zve{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function x6(e){let{children:t,count:n,parent:r,i18nKey:i,context:a,tOptions:o={},values:s,defaults:l,components:c,ns:f,i18n:h,t:p,shouldUnescape:v,...y}=e;const{i18n:m,defaultNS:_}=w.useContext(w6)||{},b=h||m||S6(),S=p||b&&b.t.bind(b);return Fve({children:t,count:n,parent:r,i18nKey:i,context:a,tOptions:o,values:s,defaults:l,components:c,ns:f||S&&S.ns||_||b&&b.options&&b.options.defaultNS,i18n:b,t:p,shouldUnescape:v,...y})}const jve=(e,t)=>{const n=w.useRef();return w.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function C6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=w.useContext(w6)||{},a=n||r||S6();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new zve),!a){L1("You will need to pass in an i18next instance by using initReactI18next");const C=(R,A)=>typeof A=="string"?A:A&&typeof A=="object"&&typeof A.defaultValue=="string"?A.defaultValue:Array.isArray(R)?R[R.length-1]:R,E=[C,{},!1];return E.t=C,E.i18n={},E.ready=!1,E}a.options.react&&a.options.react.wait!==void 0&&L1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...s$(),...a.options.react,...t},{useSuspense:s,keyPrefix:l}=o;let c=e||i||a.options&&a.options.defaultNS;c=typeof c=="string"?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const f=(a.isInitialized||a.initializedStoreOnce)&&c.every(C=>Tve(C,a,o));function h(){return a.getFixedT(t.lng||null,o.nsMode==="fallback"?c:c[0],l)}const[p,v]=w.useState(h);let y=c.join();t.lng&&(y=`${t.lng}${y}`);const m=jve(y),_=w.useRef(!0);w.useEffect(()=>{const{bindI18n:C,bindI18nStore:E}=o;_.current=!0,!f&&!s&&(t.lng?O9(a,t.lng,c,()=>{_.current&&v(h)}):P9(a,c,()=>{_.current&&v(h)})),f&&m&&m!==y&&_.current&&v(h);function R(){_.current&&v(h)}return C&&a&&a.on(C,R),E&&a&&a.store.on(E,R),()=>{_.current=!1,C&&a&&C.split(" ").forEach(A=>a.off(A,R)),E&&a&&E.split(" ").forEach(A=>a.store.off(A,R))}},[a,y]);const b=w.useRef(!0);w.useEffect(()=>{_.current&&!b.current&&v(h),b.current=!1},[a,l]);const S=[p,a,f];if(S.t=p,S.i18n=a,S.ready=f,f||!f&&!s)return S;throw new Promise(C=>{t.lng?O9(a,t.lng,c,()=>C()):P9(a,c,()=>C())})}function Bve(e){let{i18n:t,defaultNS:n,children:r}=e;const i=w.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return w.createElement(w6.Provider,{value:i},r)}/**
    397397 * @remix-run/router v1.8.0
    398398 *
     
    403403 *
    404404 * @license MIT
    405  */function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(this,arguments)}var mr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(mr||(mr={}));const R9="popstate";function Vve(e){e===void 0&&(e={});function t(i,a){let{pathname:o="/",search:s="",hash:l=""}=hs(i.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),tg("",{pathname:o,search:s,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){let o=i.document.querySelector("base"),s="";if(o&&o.getAttribute("href")){let l=i.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof a=="string"?a:Ug(a))}function r(i,a){Ac(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Hve(t,n,r,e)}function Ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ac(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Uve(){return Math.random().toString(36).substr(2,8)}function A9(e,t){return{usr:e.state,key:e.key,idx:t}}function tg(e,t,n,r){return n===void 0&&(n=null),$n({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hs(t):t,{state:n,key:t&&t.key||r||Uve()})}function Ug(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function hs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hve(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=mr.Pop,l=null,c=f();c==null&&(c=0,o.replaceState($n({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function h(){s=mr.Pop;let _=f(),b=_==null?null:_-c;c=_,l&&l({action:s,location:m.location,delta:b})}function p(_,b){s=mr.Push;let S=tg(m.location,_,b);n&&n(S,_),c=f()+1;let C=A9(S,c),E=m.createHref(S);try{o.pushState(C,"",E)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(E)}a&&l&&l({action:s,location:m.location,delta:1})}function v(_,b){s=mr.Replace;let S=tg(m.location,_,b);n&&n(S,_),c=f();let C=A9(S,c),E=m.createHref(S);o.replaceState(C,"",E),a&&l&&l({action:s,location:m.location,delta:0})}function y(_){let b=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof _=="string"?_:Ug(_);return Ht(b,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,b)}let m={get action(){return s},get location(){return e(i,o)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(R9,h),l=_,()=>{i.removeEventListener(R9,h),l=null}},createHref(_){return t(i,_)},createURL:y,encodeLocation(_){let b=y(_);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:v,go(_){return o.go(_)}};return m}var ir;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ir||(ir={}));const Wve=new Set(["lazy","caseSensitive","path","id","index","children"]);function qve(e){return e.index===!0}function iC(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if(Ht(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ht(!r[s],'Found a route id collision on id "'+s+`".  Route id's must be globally unique within Data Router usages`),qve(i)){let l=$n({},i,t(i),{id:s});return r[s]=l,l}else{let l=$n({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=iC(i.children,t,o,r)),l}})}function uf(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?hs(t):t,i=Hg(r.pathname||"/",n);if(i==null)return null;let a=c$(e);Gve(a);let o=null;for(let s=0;o==null&&s<a.length;++s)o=n0e(a[s],a0e(i));return o}function c$(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Ht(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=lu([r,l.relativePath]),f=n.concat(l);a.children&&a.children.length>0&&(Ht(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),c$(a.children,t,f,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:e0e(c,a.index),routesMeta:f})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of d$(a.path))i(a,o,l)}),t}function d$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=d$(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Gve(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:t0e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kve=/^:\w+$/,Yve=3,Zve=2,Qve=1,Xve=10,Jve=-2,I9=e=>e==="*";function e0e(e,t){let n=e.split("/"),r=n.length;return n.some(I9)&&(r+=Jve),t&&(r+=Zve),n.filter(i=>!I9(i)).reduce((i,a)=>i+(Kve.test(a)?Yve:a===""?Qve:Xve),r)}function t0e(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function n0e(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o<n.length;++o){let s=n[o],l=o===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=r0e({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!f)return null;Object.assign(r,f.params);let h=s.route;a.push({params:r,pathname:lu([i,f.pathname]),pathnameBase:u0e(lu([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=lu([i,f.pathnameBase]))}return a}function r0e(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=i0e(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,f,h)=>{if(f==="*"){let p=s[h]||"";o=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=o0e(s[h]||"",f),c},{}),pathname:a,pathnameBase:o,pattern:e}}function i0e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ac(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function a0e(e){try{return decodeURI(e)}catch(t){return Ac(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function o0e(e,t){try{return decodeURIComponent(e)}catch(n){return Ac(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Hg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function s0e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?hs(e):e;return{pathname:n?n.startsWith("/")?n:l0e(n,t):t,search:c0e(r),hash:d0e(i)}}function l0e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ew(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function E6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function f$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=hs(e):(i=$n({},e),Ht(!i.pathname||!i.pathname.includes("?"),Ew("?","pathname","search",i)),Ht(!i.pathname||!i.pathname.includes("#"),Ew("#","pathname","hash",i)),Ht(!i.search||!i.search.includes("#"),Ew("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let h=t.length-1;if(o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}s=h>=0?t[h]:"/"}let l=s0e(i,s),c=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const lu=e=>e.join("/").replace(/\/\/+/g,"/"),u0e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),c0e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,d0e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class k6{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function h$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const p$=["post","put","patch","delete"],f0e=new Set(p$),h0e=["get",...p$],p0e=new Set(h0e),m0e=new Set([301,302,303,307,308]),g0e=new Set([307,308]),kw={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v0e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},m$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y0e=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function _0e(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ht(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let te=e.detectErrorBoundary;i=ie=>({hasErrorBoundary:te(ie)})}else i=y0e;let a={},o=iC(e.routes,i,void 0,a),s,l=e.basename||"/",c=$n({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),f=null,h=new Set,p=null,v=null,y=null,m=e.hydrationData!=null,_=uf(o,e.history.location,l),b=null;if(_==null){let te=Na(404,{pathname:e.history.location.pathname}),{matches:ie,route:he}=j9(o);_=ie,b={[he.id]:te}}let S=!_.some(te=>te.route.lazy)&&(!_.some(te=>te.route.loader)||e.hydrationData!=null),C,E={historyAction:e.history.action,location:e.history.location,matches:_,initialized:S,navigation:kw,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},R=mr.Pop,A=!1,I,M=!1,F=!1,z=[],Y=[],W=new Map,q=0,ae=-1,ee=new Map,ce=new Set,ue=new Map,J=new Map,me=new Map,we=!1;function Ce(){return f=e.history.listen(te=>{let{action:ie,location:he,delta:Me}=te;if(we){we=!1;return}Ac(me.size===0||Me!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let st=Dn({currentLocation:E.location,nextLocation:he,historyAction:ie});if(st&&Me!=null){we=!0,e.history.go(Me*-1),Kn(st,{state:"blocked",location:he,proceed(){Kn(st,{state:"proceeding",proceed:void 0,reset:void 0,location:he}),e.history.go(Me)},reset(){let et=new Map(E.blockers);et.set(st,yp),ye({blockers:et})}});return}return Ye(ie,he)}),E.initialized||Ye(mr.Pop,E.location),C}function Ee(){f&&f(),h.clear(),I&&I.abort(),E.fetchers.forEach((te,ie)=>oe(ie)),E.blockers.forEach((te,ie)=>Ge(ie))}function xe(te){return h.add(te),()=>h.delete(te)}function ye(te){E=$n({},E,te),h.forEach(ie=>ie(E))}function Le(te,ie){var he,Me;let st=E.actionData!=null&&E.navigation.formMethod!=null&&fo(E.navigation.formMethod)&&E.navigation.state==="loading"&&((he=te.state)==null?void 0:he._isRedirect)!==!0,et;ie.actionData?Object.keys(ie.actionData).length>0?et=ie.actionData:et=null:st?et=E.actionData:et=null;let Ze=ie.loaderData?z9(E.loaderData,ie.loaderData,ie.matches||[],ie.errors):E.loaderData,De=E.blockers;De.size>0&&(De=new Map(De),De.forEach((gt,It)=>De.set(It,yp)));let Oe=A===!0||E.navigation.formMethod!=null&&fo(E.navigation.formMethod)&&((Me=te.state)==null?void 0:Me._isRedirect)!==!0;s&&(o=s,s=void 0),M||R===mr.Pop||(R===mr.Push?e.history.push(te,te.state):R===mr.Replace&&e.history.replace(te,te.state)),ye($n({},ie,{actionData:et,loaderData:Ze,historyAction:R,location:te,initialized:!0,navigation:kw,revalidation:"idle",restoreScrollPosition:ni(te,ie.matches||E.matches),preventScrollReset:Oe,blockers:De})),R=mr.Pop,A=!1,M=!1,F=!1,z=[],Y=[]}async function Ae(te,ie){if(typeof te=="number"){e.history.go(te);return}let he=aC(E.location,E.matches,l,c.v7_prependBasename,te,ie==null?void 0:ie.fromRouteId,ie==null?void 0:ie.relative),{path:Me,submission:st,error:et}=L9(c.v7_normalizeFormMethod,!1,he,ie),Ze=E.location,De=tg(E.location,Me,ie&&ie.state);De=$n({},De,e.history.encodeLocation(De));let Oe=ie&&ie.replace!=null?ie.replace:void 0,gt=mr.Push;Oe===!0?gt=mr.Replace:Oe===!1||st!=null&&fo(st.formMethod)&&st.formAction===E.location.pathname+E.location.search&&(gt=mr.Replace);let It=ie&&"preventScrollReset"in ie?ie.preventScrollReset===!0:void 0,mt=Dn({currentLocation:Ze,nextLocation:De,historyAction:gt});if(mt){Kn(mt,{state:"blocked",location:De,proceed(){Kn(mt,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),Ae(te,ie)},reset(){let Tt=new Map(E.blockers);Tt.set(mt,yp),ye({blockers:Tt})}});return}return await Ye(gt,De,{submission:st,pendingError:et,preventScrollReset:It,replace:ie&&ie.replace})}function it(){if(B(),ye({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){Ye(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}Ye(R||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function Ye(te,ie,he){I&&I.abort(),I=null,R=te,M=(he&&he.startUninterruptedRevalidation)===!0,Yn(E.location,E.matches),A=(he&&he.preventScrollReset)===!0;let Me=s||o,st=he&&he.overrideNavigation,et=uf(Me,ie,l);if(!et){let Tt=Na(404,{pathname:ie.pathname}),{matches:$t,route:cr}=j9(Me);rn(),Le(ie,{matches:$t,loaderData:{},errors:{[cr.id]:Tt}});return}if(E.initialized&&!F&&C0e(E.location,ie)&&!(he&&he.submission&&fo(he.submission.formMethod))){Le(ie,{matches:et});return}I=new AbortController;let Ze=bp(e.history,ie,I.signal,he&&he.submission),De,Oe;if(he&&he.pendingError)Oe={[cf(et).route.id]:he.pendingError};else if(he&&he.submission&&fo(he.submission.formMethod)){let Tt=await nt(Ze,ie,he.submission,et,{replace:he.replace});if(Tt.shortCircuited)return;De=Tt.pendingActionData,Oe=Tt.pendingActionError,st=M0(ie,he.submission),Ze=new Request(Ze.url,{signal:Ze.signal})}let{shortCircuited:gt,loaderData:It,errors:mt}=await wt(Ze,ie,et,st,he&&he.submission,he&&he.fetcherSubmission,he&&he.replace,De,Oe);gt||(I=null,Le(ie,$n({matches:et},De?{actionData:De}:{},{loaderData:It,errors:mt})))}async function nt(te,ie,he,Me,st){st===void 0&&(st={}),B();let et=O0e(ie,he);ye({navigation:et});let Ze,De=sC(Me,ie);if(!De.route.action&&!De.route.lazy)Ze={type:ir.error,error:Na(405,{method:te.method,pathname:ie.pathname,routeId:De.route.id})};else if(Ze=await _p("action",te,De,Me,a,i,l),te.signal.aborted)return{shortCircuited:!0};if(Of(Ze)){let Oe;return st&&st.replace!=null?Oe=st.replace:Oe=Ze.location===E.location.pathname+E.location.search,await Te(E,Ze,{submission:he,replace:Oe}),{shortCircuited:!0}}if(fm(Ze)){let Oe=cf(Me,De.route.id);return(st&&st.replace)!==!0&&(R=mr.Push),{pendingActionData:{},pendingActionError:{[Oe.route.id]:Ze.error}}}if(lc(Ze))throw Na(400,{type:"defer-action"});return{pendingActionData:{[De.route.id]:Ze.data}}}async function wt(te,ie,he,Me,st,et,Ze,De,Oe){let gt=Me||M0(ie,st),It=st||et||U9(gt),mt=s||o,[Tt,$t]=M9(e.history,E,he,It,ie,F,z,Y,ue,ce,mt,l,De,Oe);if(rn(Zt=>!(he&&he.some(Hr=>Hr.route.id===Zt))||Tt&&Tt.some(Hr=>Hr.route.id===Zt)),ae=++q,Tt.length===0&&$t.length===0){let Zt=ge();return Le(ie,$n({matches:he,loaderData:{},errors:Oe||null},De?{actionData:De}:{},Zt?{fetchers:new Map(E.fetchers)}:{})),{shortCircuited:!0}}if(!M){$t.forEach(Hr=>{let yi=E.fetchers.get(Hr.key),_i=Sp(void 0,yi?yi.data:void 0);E.fetchers.set(Hr.key,_i)});let Zt=De||E.actionData;ye($n({navigation:gt},Zt?Object.keys(Zt).length===0?{actionData:null}:{actionData:Zt}:{},$t.length>0?{fetchers:new Map(E.fetchers)}:{}))}$t.forEach(Zt=>{W.has(Zt.key)&&Se(Zt.key),Zt.controller&&W.set(Zt.key,Zt.controller)});let cr=()=>$t.forEach(Zt=>Se(Zt.key));I&&I.signal.addEventListener("abort",cr);let{results:Rn,loaderResults:An,fetcherResults:dr}=await yt(E.matches,he,Tt,$t,te);if(te.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",cr),$t.forEach(Zt=>W.delete(Zt.key));let fr=B9(Rn);if(fr){if(fr.idx>=Tt.length){let Zt=$t[fr.idx-Tt.length].key;ce.add(Zt)}return await Te(E,fr.result,{replace:Ze}),{shortCircuited:!0}}let{loaderData:jn,errors:na}=$9(E,he,Tt,An,Oe,$t,dr,J);J.forEach((Zt,Hr)=>{Zt.subscribe(yi=>{(yi||Zt.done)&&J.delete(Hr)})});let vi=ge(),hr=Ie(ae),ra=vi||hr||$t.length>0;return $n({loaderData:jn,errors:na},ra?{fetchers:new Map(E.fetchers)}:{})}function Dt(te){return E.fetchers.get(te)||v0e}function Nt(te,ie,he,Me){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(te)&&Se(te);let st=s||o,et=aC(E.location,E.matches,l,c.v7_prependBasename,he,ie,Me==null?void 0:Me.relative),Ze=uf(st,et,l);if(!Ze){X(te,ie,Na(404,{pathname:et}));return}let{path:De,submission:Oe,error:gt}=L9(c.v7_normalizeFormMethod,!0,et,Me);if(gt){X(te,ie,gt);return}let It=sC(Ze,De);if(A=(Me&&Me.preventScrollReset)===!0,Oe&&fo(Oe.formMethod)){Sn(te,ie,De,It,Ze,Oe);return}ue.set(te,{routeId:ie,path:De}),Yt(te,ie,De,It,Ze,Oe)}async function Sn(te,ie,he,Me,st,et){if(B(),ue.delete(te),!Me.route.action&&!Me.route.lazy){let an=Na(405,{method:et.formMethod,pathname:he,routeId:ie});X(te,ie,an);return}let Ze=E.fetchers.get(te),De=R0e(et,Ze);E.fetchers.set(te,De),ye({fetchers:new Map(E.fetchers)});let Oe=new AbortController,gt=bp(e.history,he,Oe.signal,et);W.set(te,Oe);let It=q,mt=await _p("action",gt,Me,st,a,i,l);if(gt.signal.aborted){W.get(te)===Oe&&W.delete(te);return}if(Of(mt))if(W.delete(te),ae>It){let an=Ld(void 0);E.fetchers.set(te,an),ye({fetchers:new Map(E.fetchers)});return}else{ce.add(te);let an=Sp(et);return E.fetchers.set(te,an),ye({fetchers:new Map(E.fetchers)}),Te(E,mt,{submission:et,isFetchActionRedirect:!0})}if(fm(mt)){X(te,ie,mt.error);return}if(lc(mt))throw Na(400,{type:"defer-action"});let Tt=E.navigation.location||E.location,$t=bp(e.history,Tt,Oe.signal),cr=s||o,Rn=E.navigation.state!=="idle"?uf(cr,E.navigation.location,l):E.matches;Ht(Rn,"Didn't find any matches after fetcher action");let An=++q;ee.set(te,An);let dr=Sp(et,mt.data);E.fetchers.set(te,dr);let[fr,jn]=M9(e.history,E,Rn,et,Tt,F,z,Y,ue,ce,cr,l,{[Me.route.id]:mt.data},void 0);jn.filter(an=>an.key!==te).forEach(an=>{let Ja=an.key,ll=E.fetchers.get(Ja),ms=Sp(void 0,ll?ll.data:void 0);E.fetchers.set(Ja,ms),W.has(Ja)&&Se(Ja),an.controller&&W.set(Ja,an.controller)}),ye({fetchers:new Map(E.fetchers)});let na=()=>jn.forEach(an=>Se(an.key));Oe.signal.addEventListener("abort",na);let{results:vi,loaderResults:hr,fetcherResults:ra}=await yt(E.matches,Rn,fr,jn,$t);if(Oe.signal.aborted)return;Oe.signal.removeEventListener("abort",na),ee.delete(te),W.delete(te),jn.forEach(an=>W.delete(an.key));let Zt=B9(vi);if(Zt){if(Zt.idx>=fr.length){let an=jn[Zt.idx-fr.length].key;ce.add(an)}return Te(E,Zt.result)}let{loaderData:Hr,errors:yi}=$9(E,E.matches,fr,hr,void 0,jn,ra,J);if(E.fetchers.has(te)){let an=Ld(mt.data);E.fetchers.set(te,an)}let _i=Ie(An);E.navigation.state==="loading"&&An>ae?(Ht(R,"Expected pending action"),I&&I.abort(),Le(E.navigation.location,{matches:Rn,loaderData:Hr,errors:yi,fetchers:new Map(E.fetchers)})):(ye($n({errors:yi,loaderData:z9(E.loaderData,Hr,Rn,yi)},_i||jn.length>0?{fetchers:new Map(E.fetchers)}:{})),F=!1)}async function Yt(te,ie,he,Me,st,et){let Ze=E.fetchers.get(te),De=Sp(et,Ze?Ze.data:void 0);E.fetchers.set(te,De),ye({fetchers:new Map(E.fetchers)});let Oe=new AbortController,gt=bp(e.history,he,Oe.signal);W.set(te,Oe);let It=q,mt=await _p("loader",gt,Me,st,a,i,l);if(lc(mt)&&(mt=await y$(mt,gt.signal,!0)||mt),W.get(te)===Oe&&W.delete(te),gt.signal.aborted)return;if(Of(mt))if(ae>It){let $t=Ld(void 0);E.fetchers.set(te,$t),ye({fetchers:new Map(E.fetchers)});return}else{ce.add(te),await Te(E,mt);return}if(fm(mt)){let $t=cf(E.matches,ie);E.fetchers.delete(te),ye({fetchers:new Map(E.fetchers),errors:{[$t.route.id]:mt.error}});return}Ht(!lc(mt),"Unhandled fetcher deferred data");let Tt=Ld(mt.data);E.fetchers.set(te,Tt),ye({fetchers:new Map(E.fetchers)})}async function Te(te,ie,he){let{submission:Me,replace:st,isFetchActionRedirect:et}=he===void 0?{}:he;ie.revalidate&&(F=!0);let Ze=tg(te.location,ie.location,$n({_isRedirect:!0},et?{_isFetchActionRedirect:!0}:{}));if(Ht(Ze,"Expected a location on the redirect navigation"),n){let gt=!1;if(ie.reloadDocument)gt=!0;else if(m$.test(ie.location)){const It=e.history.createURL(ie.location);gt=It.origin!==t.location.origin||Hg(It.pathname,l)==null}if(gt){st?t.location.replace(ie.location):t.location.assign(ie.location);return}}I=null;let De=st===!0?mr.Replace:mr.Push,Oe=Me||U9(te.navigation);if(g0e.has(ie.status)&&Oe&&fo(Oe.formMethod))await Ye(De,Ze,{submission:$n({},Oe,{formAction:ie.location}),preventScrollReset:A});else if(et)await Ye(De,Ze,{overrideNavigation:M0(Ze),fetcherSubmission:Oe,preventScrollReset:A});else{let gt=M0(Ze,Oe);await Ye(De,Ze,{overrideNavigation:gt,preventScrollReset:A})}}async function yt(te,ie,he,Me,st){let et=await Promise.all([...he.map(Oe=>_p("loader",st,Oe,ie,a,i,l)),...Me.map(Oe=>Oe.matches&&Oe.match&&Oe.controller?_p("loader",bp(e.history,Oe.path,Oe.controller.signal),Oe.match,Oe.matches,a,i,l):{type:ir.error,error:Na(404,{pathname:Oe.path})})]),Ze=et.slice(0,he.length),De=et.slice(he.length);return await Promise.all([V9(te,he,Ze,Ze.map(()=>st.signal),!1,E.loaderData),V9(te,Me.map(Oe=>Oe.match),De,Me.map(Oe=>Oe.controller?Oe.controller.signal:null),!0)]),{results:et,loaderResults:Ze,fetcherResults:De}}function B(){F=!0,z.push(...rn()),ue.forEach((te,ie)=>{W.has(ie)&&(Y.push(ie),Se(ie))})}function X(te,ie,he){let Me=cf(E.matches,ie);oe(te),ye({errors:{[Me.route.id]:he},fetchers:new Map(E.fetchers)})}function oe(te){let ie=E.fetchers.get(te);W.has(te)&&!(ie&&ie.state==="loading"&&ee.has(te))&&Se(te),ue.delete(te),ee.delete(te),ce.delete(te),E.fetchers.delete(te)}function Se(te){let ie=W.get(te);Ht(ie,"Expected fetch controller: "+te),ie.abort(),W.delete(te)}function _e(te){for(let ie of te){let he=Dt(ie),Me=Ld(he.data);E.fetchers.set(ie,Me)}}function ge(){let te=[],ie=!1;for(let he of ce){let Me=E.fetchers.get(he);Ht(Me,"Expected fetcher: "+he),Me.state==="loading"&&(ce.delete(he),te.push(he),ie=!0)}return _e(te),ie}function Ie(te){let ie=[];for(let[he,Me]of ee)if(Me<te){let st=E.fetchers.get(he);Ht(st,"Expected fetcher: "+he),st.state==="loading"&&(Se(he),ee.delete(he),ie.push(he))}return _e(ie),ie.length>0}function Ft(te,ie){let he=E.blockers.get(te)||yp;return me.get(te)!==ie&&me.set(te,ie),he}function Ge(te){E.blockers.delete(te),me.delete(te)}function Kn(te,ie){let he=E.blockers.get(te)||yp;Ht(he.state==="unblocked"&&ie.state==="blocked"||he.state==="blocked"&&ie.state==="blocked"||he.state==="blocked"&&ie.state==="proceeding"||he.state==="blocked"&&ie.state==="unblocked"||he.state==="proceeding"&&ie.state==="unblocked","Invalid blocker state transition: "+he.state+" -> "+ie.state);let Me=new Map(E.blockers);Me.set(te,ie),ye({blockers:Me})}function Dn(te){let{currentLocation:ie,nextLocation:he,historyAction:Me}=te;if(me.size===0)return;me.size>1&&Ac(!1,"A router only supports one blocker at a time");let st=Array.from(me.entries()),[et,Ze]=st[st.length-1],De=E.blockers.get(et);if(!(De&&De.state==="proceeding")&&Ze({currentLocation:ie,nextLocation:he,historyAction:Me}))return et}function rn(te){let ie=[];return J.forEach((he,Me)=>{(!te||te(Me))&&(he.cancel(),ie.push(Me),J.delete(Me))}),ie}function ur(te,ie,he){if(p=te,y=ie,v=he||null,!m&&E.navigation===kw){m=!0;let Me=ni(E.location,E.matches);Me!=null&&ye({restoreScrollPosition:Me})}return()=>{p=null,y=null,v=null}}function ti(te,ie){return v&&v(te,ie.map(Me=>P0e(Me,E.loaderData)))||te.key}function Yn(te,ie){if(p&&y){let he=ti(te,ie);p[he]=y()}}function ni(te,ie){if(p){let he=ti(te,ie),Me=p[he];if(typeof Me=="number")return Me}return null}function Ur(te){a={},s=iC(te,i,void 0,a)}return C={get basename(){return l},get state(){return E},get routes(){return o},initialize:Ce,subscribe:xe,enableScrollRestoration:ur,navigate:Ae,fetch:Nt,revalidate:it,createHref:te=>e.history.createHref(te),encodeLocation:te=>e.history.encodeLocation(te),getFetcher:Dt,deleteFetcher:oe,dispose:Ee,getBlocker:Ft,deleteBlocker:Ge,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Ur},C}function b0e(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function aC(e,t,n,r,i,a,o){let s,l;if(a!=null&&o!=="path"){s=[];for(let f of t)if(s.push(f),f.route.id===a){l=f;break}}else s=t,l=t[t.length-1];let c=f$(i||".",E6(s).map(f=>f.pathnameBase),Hg(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!T6(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:lu([n,c.pathname])),Ug(c)}function L9(e,t,n,r){if(!r||!b0e(r))return{path:n};if(r.formMethod&&!T0e(r.formMethod))return{path:n,error:Na(405,{method:r.formMethod})};let i=()=>({path:n,error:Na(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=v$(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!fo(o))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,y)=>{let[m,_]=y;return""+v+m+"="+_+`
    406 `},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!fo(o))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Ht(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=oC(r.formData),c=r.formData;else if(r.body instanceof FormData)l=oC(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=F9(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=F9(l)}catch{return i()}let f={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(fo(f.formMethod))return{path:n,submission:f};let h=hs(n);return t&&h.search&&T6(h.search)&&l.append("index",""),h.search="?"+l,{path:Ug(h),submission:f}}function S0e(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function M9(e,t,n,r,i,a,o,s,l,c,f,h,p,v){let y=v?Object.values(v)[0]:p?Object.values(p)[0]:void 0,m=e.createURL(t.location),_=e.createURL(i),b=v?Object.keys(v)[0]:void 0,C=S0e(n,b).filter((R,A)=>{if(R.route.lazy)return!0;if(R.route.loader==null)return!1;if(w0e(t.loaderData,t.matches[A],R)||o.some(F=>F===R.route.id))return!0;let I=t.matches[A],M=R;return D9(R,$n({currentUrl:m,currentParams:I.params,nextUrl:_,nextParams:M.params},r,{actionResult:y,defaultShouldRevalidate:a||m.pathname+m.search===_.pathname+_.search||m.search!==_.search||g$(I,M)}))}),E=[];return l.forEach((R,A)=>{if(!n.some(Y=>Y.route.id===R.routeId))return;let I=uf(f,R.path,h);if(!I){E.push({key:A,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(A),F=sC(I,R.path),z=!1;c.has(A)?z=!1:s.includes(A)?z=!0:M&&M.state!=="idle"&&M.data===void 0?z=a:z=D9(F,$n({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:_,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:a})),z&&E.push({key:A,routeId:R.routeId,path:R.path,matches:I,match:F,controller:new AbortController})}),[C,E]}function w0e(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function g$(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function D9(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function N9(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Ht(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Ac(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Wve.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,$n({},t(i),{lazy:void 0}))}async function _p(e,t,n,r,i,a,o,s){s===void 0&&(s={});let l,c,f,h=y=>{let m,_=new Promise((b,S)=>m=S);return f=()=>m(),t.signal.addEventListener("abort",f),Promise.race([y({request:t,params:n.params,context:s.requestContext}),_])};try{let y=n.route[e];if(n.route.lazy)if(y)c=(await Promise.all([h(y),N9(n.route,a,i)]))[0];else if(await N9(n.route,a,i),y=n.route[e],y)c=await h(y);else if(e==="action"){let m=new URL(t.url),_=m.pathname+m.search;throw Na(405,{method:t.method,pathname:_,routeId:n.route.id})}else return{type:ir.data,data:void 0};else if(y)c=await h(y);else{let m=new URL(t.url),_=m.pathname+m.search;throw Na(404,{pathname:_})}Ht(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){l=ir.error,c=y}finally{f&&t.signal.removeEventListener("abort",f)}if(k0e(c)){let y=c.status;if(m0e.has(y)){let b=c.headers.get("Location");if(Ht(b,"Redirects returned/thrown from loaders/actions must have a Location header"),!m$.test(b))b=aC(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,b);else if(!s.isStaticRequest){let S=new URL(t.url),C=b.startsWith("//")?new URL(S.protocol+b):new URL(b),E=Hg(C.pathname,o)!=null;C.origin===S.origin&&E&&(b=C.pathname+C.search+C.hash)}if(s.isStaticRequest)throw c.headers.set("Location",b),c;return{type:ir.redirect,status:y,location:b,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===ir.error?ir.error:ir.data,response:c};let m,_=c.headers.get("Content-Type");return _&&/\bapplication\/json\b/.test(_)?m=await c.json():m=await c.text(),l===ir.error?{type:l,error:new k6(y,c.statusText,m),headers:c.headers}:{type:ir.data,data:m,statusCode:c.status,headers:c.headers}}if(l===ir.error)return{type:l,error:c};if(E0e(c)){var p,v;return{type:ir.deferred,deferredData:c,statusCode:(p=c.init)==null?void 0:p.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:ir.data,data:c}}function bp(e,t,n,r){let i=e.createURL(v$(t)).toString(),a={signal:n};if(r&&fo(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=oC(r.formData):a.body=r.formData}return new Request(i,a)}function oC(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function F9(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function x0e(e,t,n,r,i){let a={},o=null,s,l=!1,c={};return n.forEach((f,h)=>{let p=t[h].route.id;if(Ht(!Of(f),"Cannot handle redirect results in processLoaderData"),fm(f)){let v=cf(e,p),y=f.error;r&&(y=Object.values(r)[0],r=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=y),a[p]=void 0,l||(l=!0,s=h$(f.error)?f.error.status:500),f.headers&&(c[p]=f.headers)}else lc(f)?(i.set(p,f.deferredData),a[p]=f.deferredData.data):a[p]=f.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(s=f.statusCode),f.headers&&(c[p]=f.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function $9(e,t,n,r,i,a,o,s){let{loaderData:l,errors:c}=x0e(t,n,r,i,s);for(let f=0;f<a.length;f++){let{key:h,match:p,controller:v}=a[f];Ht(o!==void 0&&o[f]!==void 0,"Did not find corresponding fetcher result");let y=o[f];if(!(v&&v.signal.aborted))if(fm(y)){let m=cf(e.matches,p==null?void 0:p.route.id);c&&c[m.route.id]||(c=$n({},c,{[m.route.id]:y.error})),e.fetchers.delete(h)}else if(Of(y))Ht(!1,"Unhandled fetcher revalidation redirect");else if(lc(y))Ht(!1,"Unhandled fetcher deferred data");else{let m=Ld(y.data);e.fetchers.set(h,m)}}return{loaderData:l,errors:c}}function z9(e,t,n,r){let i=$n({},t);for(let a of n){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function cf(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function j9(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Na(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new k6(e||500,o,new Error(s),!0)}function B9(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Of(n))return{result:n,idx:t}}}function v$(e){let t=typeof e=="string"?hs(e):e;return Ug($n({},t,{hash:""}))}function C0e(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function lc(e){return e.type===ir.deferred}function fm(e){return e.type===ir.error}function Of(e){return(e&&e.type)===ir.redirect}function E0e(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function k0e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function T0e(e){return p0e.has(e.toLowerCase())}function fo(e){return f0e.has(e.toLowerCase())}async function V9(e,t,n,r,i,a){for(let o=0;o<n.length;o++){let s=n[o],l=t[o];if(!l)continue;let c=e.find(h=>h.route.id===l.route.id),f=c!=null&&!g$(c,l)&&(a&&a[l.route.id])!==void 0;if(lc(s)&&(i||f)){let h=r[o];Ht(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await y$(s,h,i).then(p=>{p&&(n[o]=p||n[o])})}}}async function y$(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ir.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ir.error,error:i}}return{type:ir.data,data:e.deferredData.data}}}function T6(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function P0e(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function sC(e,t){let n=typeof t=="string"?hs(t).search:t.search;if(e[e.length-1].route.index&&T6(n||""))return e[e.length-1];let r=E6(e);return r[r.length-1]}function U9(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function M0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function O0e(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Sp(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function R0e(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function Ld(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/**
     405 */function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(this,arguments)}var mr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(mr||(mr={}));const R9="popstate";function Vve(e){e===void 0&&(e={});function t(i,a){let{pathname:o="/",search:s="",hash:l=""}=hs(i.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),tg("",{pathname:o,search:s,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){let o=i.document.querySelector("base"),s="";if(o&&o.getAttribute("href")){let l=i.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof a=="string"?a:Ug(a))}function r(i,a){Ac(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Hve(t,n,r,e)}function Ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ac(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Uve(){return Math.random().toString(36).substr(2,8)}function A9(e,t){return{usr:e.state,key:e.key,idx:t}}function tg(e,t,n,r){return n===void 0&&(n=null),$n({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hs(t):t,{state:n,key:t&&t.key||r||Uve()})}function Ug(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function hs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hve(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=mr.Pop,l=null,c=f();c==null&&(c=0,o.replaceState($n({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function h(){s=mr.Pop;let _=f(),b=_==null?null:_-c;c=_,l&&l({action:s,location:m.location,delta:b})}function p(_,b){s=mr.Push;let S=tg(m.location,_,b);n&&n(S,_),c=f()+1;let C=A9(S,c),E=m.createHref(S);try{o.pushState(C,"",E)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(E)}a&&l&&l({action:s,location:m.location,delta:1})}function v(_,b){s=mr.Replace;let S=tg(m.location,_,b);n&&n(S,_),c=f();let C=A9(S,c),E=m.createHref(S);o.replaceState(C,"",E),a&&l&&l({action:s,location:m.location,delta:0})}function y(_){let b=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof _=="string"?_:Ug(_);return Ht(b,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,b)}let m={get action(){return s},get location(){return e(i,o)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(R9,h),l=_,()=>{i.removeEventListener(R9,h),l=null}},createHref(_){return t(i,_)},createURL:y,encodeLocation(_){let b=y(_);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:v,go(_){return o.go(_)}};return m}var ir;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ir||(ir={}));const Wve=new Set(["lazy","caseSensitive","path","id","index","children"]);function qve(e){return e.index===!0}function i3(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if(Ht(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ht(!r[s],'Found a route id collision on id "'+s+`".  Route id's must be globally unique within Data Router usages`),qve(i)){let l=$n({},i,t(i),{id:s});return r[s]=l,l}else{let l=$n({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=i3(i.children,t,o,r)),l}})}function uf(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?hs(t):t,i=Hg(r.pathname||"/",n);if(i==null)return null;let a=c$(e);Gve(a);let o=null;for(let s=0;o==null&&s<a.length;++s)o=n0e(a[s],a0e(i));return o}function c$(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Ht(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=lu([r,l.relativePath]),f=n.concat(l);a.children&&a.children.length>0&&(Ht(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),c$(a.children,t,f,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:e0e(c,a.index),routesMeta:f})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of d$(a.path))i(a,o,l)}),t}function d$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=d$(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Gve(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:t0e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kve=/^:\w+$/,Yve=3,Zve=2,Qve=1,Xve=10,Jve=-2,I9=e=>e==="*";function e0e(e,t){let n=e.split("/"),r=n.length;return n.some(I9)&&(r+=Jve),t&&(r+=Zve),n.filter(i=>!I9(i)).reduce((i,a)=>i+(Kve.test(a)?Yve:a===""?Qve:Xve),r)}function t0e(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function n0e(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o<n.length;++o){let s=n[o],l=o===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=r0e({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!f)return null;Object.assign(r,f.params);let h=s.route;a.push({params:r,pathname:lu([i,f.pathname]),pathnameBase:u0e(lu([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=lu([i,f.pathnameBase]))}return a}function r0e(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=i0e(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,f,h)=>{if(f==="*"){let p=s[h]||"";o=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=o0e(s[h]||"",f),c},{}),pathname:a,pathnameBase:o,pattern:e}}function i0e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ac(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function a0e(e){try{return decodeURI(e)}catch(t){return Ac(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function o0e(e,t){try{return decodeURIComponent(e)}catch(n){return Ac(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Hg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function s0e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?hs(e):e;return{pathname:n?n.startsWith("/")?n:l0e(n,t):t,search:c0e(r),hash:d0e(i)}}function l0e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ew(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function E6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function f$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=hs(e):(i=$n({},e),Ht(!i.pathname||!i.pathname.includes("?"),Ew("?","pathname","search",i)),Ht(!i.pathname||!i.pathname.includes("#"),Ew("#","pathname","hash",i)),Ht(!i.search||!i.search.includes("#"),Ew("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let h=t.length-1;if(o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}s=h>=0?t[h]:"/"}let l=s0e(i,s),c=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const lu=e=>e.join("/").replace(/\/\/+/g,"/"),u0e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),c0e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,d0e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class k6{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function h$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const p$=["post","put","patch","delete"],f0e=new Set(p$),h0e=["get",...p$],p0e=new Set(h0e),m0e=new Set([301,302,303,307,308]),g0e=new Set([307,308]),kw={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v0e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},m$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y0e=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function _0e(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ht(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let te=e.detectErrorBoundary;i=ie=>({hasErrorBoundary:te(ie)})}else i=y0e;let a={},o=i3(e.routes,i,void 0,a),s,l=e.basename||"/",c=$n({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),f=null,h=new Set,p=null,v=null,y=null,m=e.hydrationData!=null,_=uf(o,e.history.location,l),b=null;if(_==null){let te=Na(404,{pathname:e.history.location.pathname}),{matches:ie,route:he}=j9(o);_=ie,b={[he.id]:te}}let S=!_.some(te=>te.route.lazy)&&(!_.some(te=>te.route.loader)||e.hydrationData!=null),C,E={historyAction:e.history.action,location:e.history.location,matches:_,initialized:S,navigation:kw,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},R=mr.Pop,A=!1,I,M=!1,F=!1,z=[],Y=[],W=new Map,q=0,ae=-1,ee=new Map,ce=new Set,ue=new Map,J=new Map,me=new Map,we=!1;function Ce(){return f=e.history.listen(te=>{let{action:ie,location:he,delta:Me}=te;if(we){we=!1;return}Ac(me.size===0||Me!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let st=Dn({currentLocation:E.location,nextLocation:he,historyAction:ie});if(st&&Me!=null){we=!0,e.history.go(Me*-1),Kn(st,{state:"blocked",location:he,proceed(){Kn(st,{state:"proceeding",proceed:void 0,reset:void 0,location:he}),e.history.go(Me)},reset(){let et=new Map(E.blockers);et.set(st,yp),ye({blockers:et})}});return}return Ye(ie,he)}),E.initialized||Ye(mr.Pop,E.location),C}function Ee(){f&&f(),h.clear(),I&&I.abort(),E.fetchers.forEach((te,ie)=>oe(ie)),E.blockers.forEach((te,ie)=>Ge(ie))}function xe(te){return h.add(te),()=>h.delete(te)}function ye(te){E=$n({},E,te),h.forEach(ie=>ie(E))}function Le(te,ie){var he,Me;let st=E.actionData!=null&&E.navigation.formMethod!=null&&fo(E.navigation.formMethod)&&E.navigation.state==="loading"&&((he=te.state)==null?void 0:he._isRedirect)!==!0,et;ie.actionData?Object.keys(ie.actionData).length>0?et=ie.actionData:et=null:st?et=E.actionData:et=null;let Ze=ie.loaderData?z9(E.loaderData,ie.loaderData,ie.matches||[],ie.errors):E.loaderData,De=E.blockers;De.size>0&&(De=new Map(De),De.forEach((gt,It)=>De.set(It,yp)));let Oe=A===!0||E.navigation.formMethod!=null&&fo(E.navigation.formMethod)&&((Me=te.state)==null?void 0:Me._isRedirect)!==!0;s&&(o=s,s=void 0),M||R===mr.Pop||(R===mr.Push?e.history.push(te,te.state):R===mr.Replace&&e.history.replace(te,te.state)),ye($n({},ie,{actionData:et,loaderData:Ze,historyAction:R,location:te,initialized:!0,navigation:kw,revalidation:"idle",restoreScrollPosition:ni(te,ie.matches||E.matches),preventScrollReset:Oe,blockers:De})),R=mr.Pop,A=!1,M=!1,F=!1,z=[],Y=[]}async function Ae(te,ie){if(typeof te=="number"){e.history.go(te);return}let he=a3(E.location,E.matches,l,c.v7_prependBasename,te,ie==null?void 0:ie.fromRouteId,ie==null?void 0:ie.relative),{path:Me,submission:st,error:et}=L9(c.v7_normalizeFormMethod,!1,he,ie),Ze=E.location,De=tg(E.location,Me,ie&&ie.state);De=$n({},De,e.history.encodeLocation(De));let Oe=ie&&ie.replace!=null?ie.replace:void 0,gt=mr.Push;Oe===!0?gt=mr.Replace:Oe===!1||st!=null&&fo(st.formMethod)&&st.formAction===E.location.pathname+E.location.search&&(gt=mr.Replace);let It=ie&&"preventScrollReset"in ie?ie.preventScrollReset===!0:void 0,mt=Dn({currentLocation:Ze,nextLocation:De,historyAction:gt});if(mt){Kn(mt,{state:"blocked",location:De,proceed(){Kn(mt,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),Ae(te,ie)},reset(){let Tt=new Map(E.blockers);Tt.set(mt,yp),ye({blockers:Tt})}});return}return await Ye(gt,De,{submission:st,pendingError:et,preventScrollReset:It,replace:ie&&ie.replace})}function it(){if(B(),ye({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){Ye(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}Ye(R||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function Ye(te,ie,he){I&&I.abort(),I=null,R=te,M=(he&&he.startUninterruptedRevalidation)===!0,Yn(E.location,E.matches),A=(he&&he.preventScrollReset)===!0;let Me=s||o,st=he&&he.overrideNavigation,et=uf(Me,ie,l);if(!et){let Tt=Na(404,{pathname:ie.pathname}),{matches:$t,route:cr}=j9(Me);rn(),Le(ie,{matches:$t,loaderData:{},errors:{[cr.id]:Tt}});return}if(E.initialized&&!F&&C0e(E.location,ie)&&!(he&&he.submission&&fo(he.submission.formMethod))){Le(ie,{matches:et});return}I=new AbortController;let Ze=bp(e.history,ie,I.signal,he&&he.submission),De,Oe;if(he&&he.pendingError)Oe={[cf(et).route.id]:he.pendingError};else if(he&&he.submission&&fo(he.submission.formMethod)){let Tt=await nt(Ze,ie,he.submission,et,{replace:he.replace});if(Tt.shortCircuited)return;De=Tt.pendingActionData,Oe=Tt.pendingActionError,st=M0(ie,he.submission),Ze=new Request(Ze.url,{signal:Ze.signal})}let{shortCircuited:gt,loaderData:It,errors:mt}=await wt(Ze,ie,et,st,he&&he.submission,he&&he.fetcherSubmission,he&&he.replace,De,Oe);gt||(I=null,Le(ie,$n({matches:et},De?{actionData:De}:{},{loaderData:It,errors:mt})))}async function nt(te,ie,he,Me,st){st===void 0&&(st={}),B();let et=O0e(ie,he);ye({navigation:et});let Ze,De=s3(Me,ie);if(!De.route.action&&!De.route.lazy)Ze={type:ir.error,error:Na(405,{method:te.method,pathname:ie.pathname,routeId:De.route.id})};else if(Ze=await _p("action",te,De,Me,a,i,l),te.signal.aborted)return{shortCircuited:!0};if(Of(Ze)){let Oe;return st&&st.replace!=null?Oe=st.replace:Oe=Ze.location===E.location.pathname+E.location.search,await Te(E,Ze,{submission:he,replace:Oe}),{shortCircuited:!0}}if(fm(Ze)){let Oe=cf(Me,De.route.id);return(st&&st.replace)!==!0&&(R=mr.Push),{pendingActionData:{},pendingActionError:{[Oe.route.id]:Ze.error}}}if(lc(Ze))throw Na(400,{type:"defer-action"});return{pendingActionData:{[De.route.id]:Ze.data}}}async function wt(te,ie,he,Me,st,et,Ze,De,Oe){let gt=Me||M0(ie,st),It=st||et||U9(gt),mt=s||o,[Tt,$t]=M9(e.history,E,he,It,ie,F,z,Y,ue,ce,mt,l,De,Oe);if(rn(Zt=>!(he&&he.some(Hr=>Hr.route.id===Zt))||Tt&&Tt.some(Hr=>Hr.route.id===Zt)),ae=++q,Tt.length===0&&$t.length===0){let Zt=ge();return Le(ie,$n({matches:he,loaderData:{},errors:Oe||null},De?{actionData:De}:{},Zt?{fetchers:new Map(E.fetchers)}:{})),{shortCircuited:!0}}if(!M){$t.forEach(Hr=>{let yi=E.fetchers.get(Hr.key),_i=Sp(void 0,yi?yi.data:void 0);E.fetchers.set(Hr.key,_i)});let Zt=De||E.actionData;ye($n({navigation:gt},Zt?Object.keys(Zt).length===0?{actionData:null}:{actionData:Zt}:{},$t.length>0?{fetchers:new Map(E.fetchers)}:{}))}$t.forEach(Zt=>{W.has(Zt.key)&&Se(Zt.key),Zt.controller&&W.set(Zt.key,Zt.controller)});let cr=()=>$t.forEach(Zt=>Se(Zt.key));I&&I.signal.addEventListener("abort",cr);let{results:Rn,loaderResults:An,fetcherResults:dr}=await yt(E.matches,he,Tt,$t,te);if(te.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",cr),$t.forEach(Zt=>W.delete(Zt.key));let fr=B9(Rn);if(fr){if(fr.idx>=Tt.length){let Zt=$t[fr.idx-Tt.length].key;ce.add(Zt)}return await Te(E,fr.result,{replace:Ze}),{shortCircuited:!0}}let{loaderData:jn,errors:na}=$9(E,he,Tt,An,Oe,$t,dr,J);J.forEach((Zt,Hr)=>{Zt.subscribe(yi=>{(yi||Zt.done)&&J.delete(Hr)})});let vi=ge(),hr=Ie(ae),ra=vi||hr||$t.length>0;return $n({loaderData:jn,errors:na},ra?{fetchers:new Map(E.fetchers)}:{})}function Dt(te){return E.fetchers.get(te)||v0e}function Nt(te,ie,he,Me){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(te)&&Se(te);let st=s||o,et=a3(E.location,E.matches,l,c.v7_prependBasename,he,ie,Me==null?void 0:Me.relative),Ze=uf(st,et,l);if(!Ze){X(te,ie,Na(404,{pathname:et}));return}let{path:De,submission:Oe,error:gt}=L9(c.v7_normalizeFormMethod,!0,et,Me);if(gt){X(te,ie,gt);return}let It=s3(Ze,De);if(A=(Me&&Me.preventScrollReset)===!0,Oe&&fo(Oe.formMethod)){Sn(te,ie,De,It,Ze,Oe);return}ue.set(te,{routeId:ie,path:De}),Yt(te,ie,De,It,Ze,Oe)}async function Sn(te,ie,he,Me,st,et){if(B(),ue.delete(te),!Me.route.action&&!Me.route.lazy){let an=Na(405,{method:et.formMethod,pathname:he,routeId:ie});X(te,ie,an);return}let Ze=E.fetchers.get(te),De=R0e(et,Ze);E.fetchers.set(te,De),ye({fetchers:new Map(E.fetchers)});let Oe=new AbortController,gt=bp(e.history,he,Oe.signal,et);W.set(te,Oe);let It=q,mt=await _p("action",gt,Me,st,a,i,l);if(gt.signal.aborted){W.get(te)===Oe&&W.delete(te);return}if(Of(mt))if(W.delete(te),ae>It){let an=Ld(void 0);E.fetchers.set(te,an),ye({fetchers:new Map(E.fetchers)});return}else{ce.add(te);let an=Sp(et);return E.fetchers.set(te,an),ye({fetchers:new Map(E.fetchers)}),Te(E,mt,{submission:et,isFetchActionRedirect:!0})}if(fm(mt)){X(te,ie,mt.error);return}if(lc(mt))throw Na(400,{type:"defer-action"});let Tt=E.navigation.location||E.location,$t=bp(e.history,Tt,Oe.signal),cr=s||o,Rn=E.navigation.state!=="idle"?uf(cr,E.navigation.location,l):E.matches;Ht(Rn,"Didn't find any matches after fetcher action");let An=++q;ee.set(te,An);let dr=Sp(et,mt.data);E.fetchers.set(te,dr);let[fr,jn]=M9(e.history,E,Rn,et,Tt,F,z,Y,ue,ce,cr,l,{[Me.route.id]:mt.data},void 0);jn.filter(an=>an.key!==te).forEach(an=>{let Ja=an.key,ll=E.fetchers.get(Ja),ms=Sp(void 0,ll?ll.data:void 0);E.fetchers.set(Ja,ms),W.has(Ja)&&Se(Ja),an.controller&&W.set(Ja,an.controller)}),ye({fetchers:new Map(E.fetchers)});let na=()=>jn.forEach(an=>Se(an.key));Oe.signal.addEventListener("abort",na);let{results:vi,loaderResults:hr,fetcherResults:ra}=await yt(E.matches,Rn,fr,jn,$t);if(Oe.signal.aborted)return;Oe.signal.removeEventListener("abort",na),ee.delete(te),W.delete(te),jn.forEach(an=>W.delete(an.key));let Zt=B9(vi);if(Zt){if(Zt.idx>=fr.length){let an=jn[Zt.idx-fr.length].key;ce.add(an)}return Te(E,Zt.result)}let{loaderData:Hr,errors:yi}=$9(E,E.matches,fr,hr,void 0,jn,ra,J);if(E.fetchers.has(te)){let an=Ld(mt.data);E.fetchers.set(te,an)}let _i=Ie(An);E.navigation.state==="loading"&&An>ae?(Ht(R,"Expected pending action"),I&&I.abort(),Le(E.navigation.location,{matches:Rn,loaderData:Hr,errors:yi,fetchers:new Map(E.fetchers)})):(ye($n({errors:yi,loaderData:z9(E.loaderData,Hr,Rn,yi)},_i||jn.length>0?{fetchers:new Map(E.fetchers)}:{})),F=!1)}async function Yt(te,ie,he,Me,st,et){let Ze=E.fetchers.get(te),De=Sp(et,Ze?Ze.data:void 0);E.fetchers.set(te,De),ye({fetchers:new Map(E.fetchers)});let Oe=new AbortController,gt=bp(e.history,he,Oe.signal);W.set(te,Oe);let It=q,mt=await _p("loader",gt,Me,st,a,i,l);if(lc(mt)&&(mt=await y$(mt,gt.signal,!0)||mt),W.get(te)===Oe&&W.delete(te),gt.signal.aborted)return;if(Of(mt))if(ae>It){let $t=Ld(void 0);E.fetchers.set(te,$t),ye({fetchers:new Map(E.fetchers)});return}else{ce.add(te),await Te(E,mt);return}if(fm(mt)){let $t=cf(E.matches,ie);E.fetchers.delete(te),ye({fetchers:new Map(E.fetchers),errors:{[$t.route.id]:mt.error}});return}Ht(!lc(mt),"Unhandled fetcher deferred data");let Tt=Ld(mt.data);E.fetchers.set(te,Tt),ye({fetchers:new Map(E.fetchers)})}async function Te(te,ie,he){let{submission:Me,replace:st,isFetchActionRedirect:et}=he===void 0?{}:he;ie.revalidate&&(F=!0);let Ze=tg(te.location,ie.location,$n({_isRedirect:!0},et?{_isFetchActionRedirect:!0}:{}));if(Ht(Ze,"Expected a location on the redirect navigation"),n){let gt=!1;if(ie.reloadDocument)gt=!0;else if(m$.test(ie.location)){const It=e.history.createURL(ie.location);gt=It.origin!==t.location.origin||Hg(It.pathname,l)==null}if(gt){st?t.location.replace(ie.location):t.location.assign(ie.location);return}}I=null;let De=st===!0?mr.Replace:mr.Push,Oe=Me||U9(te.navigation);if(g0e.has(ie.status)&&Oe&&fo(Oe.formMethod))await Ye(De,Ze,{submission:$n({},Oe,{formAction:ie.location}),preventScrollReset:A});else if(et)await Ye(De,Ze,{overrideNavigation:M0(Ze),fetcherSubmission:Oe,preventScrollReset:A});else{let gt=M0(Ze,Oe);await Ye(De,Ze,{overrideNavigation:gt,preventScrollReset:A})}}async function yt(te,ie,he,Me,st){let et=await Promise.all([...he.map(Oe=>_p("loader",st,Oe,ie,a,i,l)),...Me.map(Oe=>Oe.matches&&Oe.match&&Oe.controller?_p("loader",bp(e.history,Oe.path,Oe.controller.signal),Oe.match,Oe.matches,a,i,l):{type:ir.error,error:Na(404,{pathname:Oe.path})})]),Ze=et.slice(0,he.length),De=et.slice(he.length);return await Promise.all([V9(te,he,Ze,Ze.map(()=>st.signal),!1,E.loaderData),V9(te,Me.map(Oe=>Oe.match),De,Me.map(Oe=>Oe.controller?Oe.controller.signal:null),!0)]),{results:et,loaderResults:Ze,fetcherResults:De}}function B(){F=!0,z.push(...rn()),ue.forEach((te,ie)=>{W.has(ie)&&(Y.push(ie),Se(ie))})}function X(te,ie,he){let Me=cf(E.matches,ie);oe(te),ye({errors:{[Me.route.id]:he},fetchers:new Map(E.fetchers)})}function oe(te){let ie=E.fetchers.get(te);W.has(te)&&!(ie&&ie.state==="loading"&&ee.has(te))&&Se(te),ue.delete(te),ee.delete(te),ce.delete(te),E.fetchers.delete(te)}function Se(te){let ie=W.get(te);Ht(ie,"Expected fetch controller: "+te),ie.abort(),W.delete(te)}function _e(te){for(let ie of te){let he=Dt(ie),Me=Ld(he.data);E.fetchers.set(ie,Me)}}function ge(){let te=[],ie=!1;for(let he of ce){let Me=E.fetchers.get(he);Ht(Me,"Expected fetcher: "+he),Me.state==="loading"&&(ce.delete(he),te.push(he),ie=!0)}return _e(te),ie}function Ie(te){let ie=[];for(let[he,Me]of ee)if(Me<te){let st=E.fetchers.get(he);Ht(st,"Expected fetcher: "+he),st.state==="loading"&&(Se(he),ee.delete(he),ie.push(he))}return _e(ie),ie.length>0}function Ft(te,ie){let he=E.blockers.get(te)||yp;return me.get(te)!==ie&&me.set(te,ie),he}function Ge(te){E.blockers.delete(te),me.delete(te)}function Kn(te,ie){let he=E.blockers.get(te)||yp;Ht(he.state==="unblocked"&&ie.state==="blocked"||he.state==="blocked"&&ie.state==="blocked"||he.state==="blocked"&&ie.state==="proceeding"||he.state==="blocked"&&ie.state==="unblocked"||he.state==="proceeding"&&ie.state==="unblocked","Invalid blocker state transition: "+he.state+" -> "+ie.state);let Me=new Map(E.blockers);Me.set(te,ie),ye({blockers:Me})}function Dn(te){let{currentLocation:ie,nextLocation:he,historyAction:Me}=te;if(me.size===0)return;me.size>1&&Ac(!1,"A router only supports one blocker at a time");let st=Array.from(me.entries()),[et,Ze]=st[st.length-1],De=E.blockers.get(et);if(!(De&&De.state==="proceeding")&&Ze({currentLocation:ie,nextLocation:he,historyAction:Me}))return et}function rn(te){let ie=[];return J.forEach((he,Me)=>{(!te||te(Me))&&(he.cancel(),ie.push(Me),J.delete(Me))}),ie}function ur(te,ie,he){if(p=te,y=ie,v=he||null,!m&&E.navigation===kw){m=!0;let Me=ni(E.location,E.matches);Me!=null&&ye({restoreScrollPosition:Me})}return()=>{p=null,y=null,v=null}}function ti(te,ie){return v&&v(te,ie.map(Me=>P0e(Me,E.loaderData)))||te.key}function Yn(te,ie){if(p&&y){let he=ti(te,ie);p[he]=y()}}function ni(te,ie){if(p){let he=ti(te,ie),Me=p[he];if(typeof Me=="number")return Me}return null}function Ur(te){a={},s=i3(te,i,void 0,a)}return C={get basename(){return l},get state(){return E},get routes(){return o},initialize:Ce,subscribe:xe,enableScrollRestoration:ur,navigate:Ae,fetch:Nt,revalidate:it,createHref:te=>e.history.createHref(te),encodeLocation:te=>e.history.encodeLocation(te),getFetcher:Dt,deleteFetcher:oe,dispose:Ee,getBlocker:Ft,deleteBlocker:Ge,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Ur},C}function b0e(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function a3(e,t,n,r,i,a,o){let s,l;if(a!=null&&o!=="path"){s=[];for(let f of t)if(s.push(f),f.route.id===a){l=f;break}}else s=t,l=t[t.length-1];let c=f$(i||".",E6(s).map(f=>f.pathnameBase),Hg(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!T6(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:lu([n,c.pathname])),Ug(c)}function L9(e,t,n,r){if(!r||!b0e(r))return{path:n};if(r.formMethod&&!T0e(r.formMethod))return{path:n,error:Na(405,{method:r.formMethod})};let i=()=>({path:n,error:Na(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=v$(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!fo(o))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,y)=>{let[m,_]=y;return""+v+m+"="+_+`
     406`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!fo(o))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Ht(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=o3(r.formData),c=r.formData;else if(r.body instanceof FormData)l=o3(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=F9(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=F9(l)}catch{return i()}let f={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(fo(f.formMethod))return{path:n,submission:f};let h=hs(n);return t&&h.search&&T6(h.search)&&l.append("index",""),h.search="?"+l,{path:Ug(h),submission:f}}function S0e(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function M9(e,t,n,r,i,a,o,s,l,c,f,h,p,v){let y=v?Object.values(v)[0]:p?Object.values(p)[0]:void 0,m=e.createURL(t.location),_=e.createURL(i),b=v?Object.keys(v)[0]:void 0,C=S0e(n,b).filter((R,A)=>{if(R.route.lazy)return!0;if(R.route.loader==null)return!1;if(w0e(t.loaderData,t.matches[A],R)||o.some(F=>F===R.route.id))return!0;let I=t.matches[A],M=R;return D9(R,$n({currentUrl:m,currentParams:I.params,nextUrl:_,nextParams:M.params},r,{actionResult:y,defaultShouldRevalidate:a||m.pathname+m.search===_.pathname+_.search||m.search!==_.search||g$(I,M)}))}),E=[];return l.forEach((R,A)=>{if(!n.some(Y=>Y.route.id===R.routeId))return;let I=uf(f,R.path,h);if(!I){E.push({key:A,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(A),F=s3(I,R.path),z=!1;c.has(A)?z=!1:s.includes(A)?z=!0:M&&M.state!=="idle"&&M.data===void 0?z=a:z=D9(F,$n({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:_,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:a})),z&&E.push({key:A,routeId:R.routeId,path:R.path,matches:I,match:F,controller:new AbortController})}),[C,E]}function w0e(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function g$(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function D9(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function N9(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Ht(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Ac(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Wve.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,$n({},t(i),{lazy:void 0}))}async function _p(e,t,n,r,i,a,o,s){s===void 0&&(s={});let l,c,f,h=y=>{let m,_=new Promise((b,S)=>m=S);return f=()=>m(),t.signal.addEventListener("abort",f),Promise.race([y({request:t,params:n.params,context:s.requestContext}),_])};try{let y=n.route[e];if(n.route.lazy)if(y)c=(await Promise.all([h(y),N9(n.route,a,i)]))[0];else if(await N9(n.route,a,i),y=n.route[e],y)c=await h(y);else if(e==="action"){let m=new URL(t.url),_=m.pathname+m.search;throw Na(405,{method:t.method,pathname:_,routeId:n.route.id})}else return{type:ir.data,data:void 0};else if(y)c=await h(y);else{let m=new URL(t.url),_=m.pathname+m.search;throw Na(404,{pathname:_})}Ht(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){l=ir.error,c=y}finally{f&&t.signal.removeEventListener("abort",f)}if(k0e(c)){let y=c.status;if(m0e.has(y)){let b=c.headers.get("Location");if(Ht(b,"Redirects returned/thrown from loaders/actions must have a Location header"),!m$.test(b))b=a3(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,b);else if(!s.isStaticRequest){let S=new URL(t.url),C=b.startsWith("//")?new URL(S.protocol+b):new URL(b),E=Hg(C.pathname,o)!=null;C.origin===S.origin&&E&&(b=C.pathname+C.search+C.hash)}if(s.isStaticRequest)throw c.headers.set("Location",b),c;return{type:ir.redirect,status:y,location:b,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===ir.error?ir.error:ir.data,response:c};let m,_=c.headers.get("Content-Type");return _&&/\bapplication\/json\b/.test(_)?m=await c.json():m=await c.text(),l===ir.error?{type:l,error:new k6(y,c.statusText,m),headers:c.headers}:{type:ir.data,data:m,statusCode:c.status,headers:c.headers}}if(l===ir.error)return{type:l,error:c};if(E0e(c)){var p,v;return{type:ir.deferred,deferredData:c,statusCode:(p=c.init)==null?void 0:p.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:ir.data,data:c}}function bp(e,t,n,r){let i=e.createURL(v$(t)).toString(),a={signal:n};if(r&&fo(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=o3(r.formData):a.body=r.formData}return new Request(i,a)}function o3(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function F9(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function x0e(e,t,n,r,i){let a={},o=null,s,l=!1,c={};return n.forEach((f,h)=>{let p=t[h].route.id;if(Ht(!Of(f),"Cannot handle redirect results in processLoaderData"),fm(f)){let v=cf(e,p),y=f.error;r&&(y=Object.values(r)[0],r=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=y),a[p]=void 0,l||(l=!0,s=h$(f.error)?f.error.status:500),f.headers&&(c[p]=f.headers)}else lc(f)?(i.set(p,f.deferredData),a[p]=f.deferredData.data):a[p]=f.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(s=f.statusCode),f.headers&&(c[p]=f.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function $9(e,t,n,r,i,a,o,s){let{loaderData:l,errors:c}=x0e(t,n,r,i,s);for(let f=0;f<a.length;f++){let{key:h,match:p,controller:v}=a[f];Ht(o!==void 0&&o[f]!==void 0,"Did not find corresponding fetcher result");let y=o[f];if(!(v&&v.signal.aborted))if(fm(y)){let m=cf(e.matches,p==null?void 0:p.route.id);c&&c[m.route.id]||(c=$n({},c,{[m.route.id]:y.error})),e.fetchers.delete(h)}else if(Of(y))Ht(!1,"Unhandled fetcher revalidation redirect");else if(lc(y))Ht(!1,"Unhandled fetcher deferred data");else{let m=Ld(y.data);e.fetchers.set(h,m)}}return{loaderData:l,errors:c}}function z9(e,t,n,r){let i=$n({},t);for(let a of n){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function cf(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function j9(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Na(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new k6(e||500,o,new Error(s),!0)}function B9(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Of(n))return{result:n,idx:t}}}function v$(e){let t=typeof e=="string"?hs(e):e;return Ug($n({},t,{hash:""}))}function C0e(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function lc(e){return e.type===ir.deferred}function fm(e){return e.type===ir.error}function Of(e){return(e&&e.type)===ir.redirect}function E0e(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function k0e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function T0e(e){return p0e.has(e.toLowerCase())}function fo(e){return f0e.has(e.toLowerCase())}async function V9(e,t,n,r,i,a){for(let o=0;o<n.length;o++){let s=n[o],l=t[o];if(!l)continue;let c=e.find(h=>h.route.id===l.route.id),f=c!=null&&!g$(c,l)&&(a&&a[l.route.id])!==void 0;if(lc(s)&&(i||f)){let h=r[o];Ht(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await y$(s,h,i).then(p=>{p&&(n[o]=p||n[o])})}}}async function y$(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ir.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ir.error,error:i}}return{type:ir.data,data:e.deferredData.data}}}function T6(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function P0e(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function s3(e,t){let n=typeof t=="string"?hs(t).search:t.search;if(e[e.length-1].route.index&&T6(n||""))return e[e.length-1];let r=E6(e);return r[r.length-1]}function U9(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function M0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function O0e(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Sp(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function R0e(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function Ld(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/**
    407407 * React Router v6.15.0
    408408 *
     
    422422 *
    423423 * @license MIT
    424  */function N1(){return N1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N1.apply(this,arguments)}function lC(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Z0e(e,t){let n=lC(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}function Q0e(e,t){return _0e({basename:t==null?void 0:t.basename,future:N1({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Vve({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||X0e(),routes:e,mapRouteProperties:Y0e}).initialize()}function X0e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=N1({},t,{errors:J0e(t.errors)})),t}function J0e(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new k6(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}var W9;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(W9||(W9={}));var q9;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(q9||(q9={}));function eye(e){let t=w.useRef(lC(e)),n=w.useRef(!1),r=Wg(),i=w.useMemo(()=>Z0e(r.search,n.current?null:t.current),[r.search]),a=qg(),o=w.useCallback((s,l)=>{const c=lC(typeof s=="function"?s(i):s);n.current=!0,a("?"+c,l)},[a,i]);return[i,o]}const tye=new Hge({queryCache:new GF,mutationCache:new YF,defaultOptions:{queries:{refetchOnWindowFocus:!1,cacheTime:1e3*60*60}}}),nye=tt("popper-arrow-bg"),rye={tc:{gray:{50:"#677C96",100:"#F7FAFC",200:"#E2E8F0",300:"#F5F5F5",400:"#ECECEC",500:"#4A5568",550:"#718096",600:"#EDF2F7",700:"#2D3748",800:"#1A202C"},green:{50:"#F0FFF4",100:"#C6F6D5",150:"#F0FDF5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#0A855C",700:"#006B50",800:"#25855A",900:"#18402E"},red:{50:"#FFF1F1",600:"#C53030"},black:{100:"#202223"},blue:{100:"#E6F3FF",500:"#3182CE"},orange:{50:"#FFF7E8"},purple:{50:"#FAF5FF"}}},iye={Text:{baseStyle:{color:"tc.gray.700"}},Icon:{baseStyle:{fill:"tc.gray.700"}},Button:{variants:{"tc-solid-primary":{bg:"tc.green.600",color:"white",_hover:{bg:"tc.green.700",_disabled:{bg:"tc.green.600"}},_loading:{_hover:{bg:"tc.green.700"}}},"tc-outline-primary":{bg:"transparent",color:"tc.green.600",border:"1px solid",borderColor:"tc.green.600",_hover:{bg:"tc.green.50"},_loading:{_hover:{bg:"tc.green.500"}},_active:{bg:"tc.green.100"}}}},Switch:{variants:{tc:{track:{_checked:{bg:"var(--chakra-colors-tc-green-600)"}}}}},Checkbox:{baseStyle:{transition:"none"}},Input:{sizes:{md:{field:{fontSize:"14px"}}},baseStyle:{field:{fontSize:"s",_placeholder:{fontSize:"14px"}}},defaultProps:{focusBorderColor:"blue.200"}},Alert:{variants:{tc:{container:{bg:"black",alignItems:"center",".chakra-alert__icon":{display:"none"},'[aria-label="Close"]':{color:"white",top:"50%",right:"0",transform:"translate(-50%,-50%)"}},title:{color:"white",fontWeight:"normal"}},"tc.error":{container:{bg:"red.100",alignItems:"center",".chakra-alert__icon":{display:"none"},'[aria-label="Close"]':{color:"red.600",top:"50%",right:"0",transform:"translate(-50%,-50%)"}},title:{color:"red.600",fontWeight:"normal"}},"tc.card.info":{container:{bg:"tc.blue.100",borderColor:"blue.400",borderWidth:"1px"}}}},Tooltip:{baseStyle:{bg:"gray.900",borderRadius:"4px",[nye.variable]:"colors.gray.900"}}},aye={body:"'Inter', system-ui, sans-serif",heading:"'Inter', system-ui, sans-serif"},oye={small:" 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",xl:"2px 3px 20px 1px rgba(0, 0, 0, 0.1)"},sye=kae({fonts:aye,colors:rye,shadows:oye,components:iye}),lye={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class F1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||lye,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new F1(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new F1(this.logger,t)}}var Xo=new F1;class $b{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function wp(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function G9(e){return e==null?"":""+e}function uye(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function O6(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function i(){return!e||typeof e=="string"}const a=typeof t!="string"?[].concat(t):t.split(".");for(;a.length>1;){if(i())return{};const o=r(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(a.shift())}}function K9(e,t,n){const{obj:r,k:i}=O6(e,t,Object);r[i]=n}function cye(e,t,n,r){const{obj:i,k:a}=O6(e,t,Object);i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function $1(e,t){const{obj:n,k:r}=O6(e,t);if(n)return n[r]}function dye(e,t,n){const r=$1(e,n);return r!==void 0?r:$1(t,n)}function C$(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):C$(e[r],t[r],n):e[r]=t[r]);return e}function Ed(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function hye(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>fye[t]):e}const pye=[" ",",","?","!",";"];function mye(e,t,n){t=t||"",n=n||"";const r=pye.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(e);if(!a){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function z1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let a=0;a<r.length;++a){if(!i||typeof i[r[a]]=="string"&&a+1<r.length)return;if(i[r[a]]===void 0){let o=2,s=r.slice(a,a+o).join(n),l=i[s];for(;l===void 0&&r.length>a+o;)o++,s=r.slice(a,a+o).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}const c=r.slice(a+o).join(n);return c?z1(l,c,n):void 0}i=i[r[a]]}return i}function j1(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Y9 extends $b{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[t,n];r&&typeof r!="string"&&(s=s.concat(r)),r&&typeof r=="string"&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."));const l=$1(this.data,s);return l||!o||typeof r!="string"?l:z1(this.data&&this.data[t]&&this.data[t][n],r,a)}addResource(t,n,r,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),K9(this.data,s,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(typeof r[a]=="string"||Object.prototype.toString.apply(r[a])==="[object Array]")&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=$1(this.data,s)||{};i?C$(l,r,a):l={...l,...r},K9(this.data,s,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var E$={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,r,i))}),t}};const Z9={};class B1 extends $b{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),uye(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Xo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!mye(t,r,i);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:a};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),t=c.join(i)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(f){const E=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${E}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l}:`${l}${E}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l}:o}const h=this.resolve(t,n);let p=h&&h.res;const v=h&&h.usedKey||o,y=h&&h.exactUsedKey||o,m=Object.prototype.toString.apply(p),_=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject;if(S&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&_.indexOf(m)<0&&!(typeof b=="string"&&m==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,p,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=E,h):E}if(a){const E=m==="[object Array]",R=E?[]:{},A=E?y:v;for(const I in p)if(Object.prototype.hasOwnProperty.call(p,I)){const M=`${A}${a}${I}`;R[I]=this.translate(M,{...n,joinArrays:!1,ns:s}),R[I]===M&&(R[I]=p[I])}p=R}}else if(S&&typeof b=="string"&&m==="[object Array]")p=p.join(b),p&&(p=this.extendTranslation(p,t,n,r));else{let E=!1,R=!1;const A=n.count!==void 0&&typeof n.count!="string",I=B1.hasDefaultValue(n),M=A?this.pluralResolver.getSuffix(c,n.count,n):"",F=n.ordinal&&A?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",z=n[`defaultValue${M}`]||n[`defaultValue${F}`]||n.defaultValue;!this.isValidLookup(p)&&I&&(E=!0,p=z),this.isValidLookup(p)||(R=!0,p=o);const W=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:p,q=I&&z!==p&&this.options.updateMissing;if(R||E||q){if(this.logger.log(q?"updateKey":"missingKey",c,l,o,q?z:p),a){const ue=this.resolve(o,{...n,keySeparator:!1});ue&&ue.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ae=[];const ee=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ee&&ee[0])for(let ue=0;ue<ee.length;ue++)ae.push(ee[ue]);else this.options.saveMissingTo==="all"?ae=this.languageUtils.toResolveHierarchy(n.lng||this.language):ae.push(n.lng||this.language);const ce=(ue,J,me)=>{const we=I&&me!==p?me:W;this.options.missingKeyHandler?this.options.missingKeyHandler(ue,l,J,we,q,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ue,l,J,we,q,n),this.emit("missingKey",ue,l,J,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?ae.forEach(ue=>{this.pluralResolver.getSuffixes(ue,n).forEach(J=>{ce([ue],o+J,n[`defaultValue${J}`]||z)})}):ce(ae,o,z))}p=this.extendTranslation(p,t,n,h,r),R&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${o}`),(R||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,E?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(h.res=p,h):p}extendTranslation(t,n,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const p=t.match(this.interpolator.nestingRegexp);f=p&&p.length}let h=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language,r),c){const p=t.match(this.interpolator.nestingRegexp),v=p&&p.length;f<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,v=new Array(p),y=0;y<p;y++)v[y]=arguments[y];return a&&a[0]===v[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):o.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=typeof s=="string"?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=E$.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,s;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),f=c.key;i=f;let h=c.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",v=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(_=>{this.isValidLookup(r)||(s=_,!Z9[`${m[0]}-${_}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Z9[`${m[0]}-${_}`]=!0,this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(b=>{if(this.isValidLookup(r))return;o=b;const S=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,f,b,_,n);else{let E;p&&(E=this.pluralResolver.getSuffix(b,n.count,n));const R=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(S.push(f+E),n.ordinal&&E.indexOf(A)===0&&S.push(f+E.replace(A,this.options.pluralSeparator)),v&&S.push(f+R)),y){const I=`${f}${this.options.contextSeparator}${n.context}`;S.push(I),p&&(S.push(I+E),n.ordinal&&E.indexOf(A)===0&&S.push(I+E.replace(A,this.options.pluralSeparator)),v&&S.push(I+R))}}let C;for(;C=S.pop();)this.isValidLookup(r)||(a=C,r=this.getResource(b,_,C,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Tw(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Q9{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Xo.create("languageUtils")}getScriptPartFromCode(t){if(t=j1(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=j1(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tw(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tw(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Tw(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&a.indexOf(i)===0)return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let gye=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],vye={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const yye=["v1","v2","v3"],_ye=["v4"],X9={zero:0,one:1,two:2,few:3,many:4,other:5};function bye(){const e={};return gye.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:vye[t.fc]}})}),e}class Sye{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Xo.create("pluralResolver"),(!this.options.compatibilityJSON||_ye.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=bye()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(j1(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>X9[i]-X9[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!yye.includes(this.options.compatibilityJSON)}}function J9(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=dye(e,t,n);return!a&&i&&typeof n=="string"&&(a=z1(e,n,r),a===void 0&&(a=z1(t,n,r))),a}class wye{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Xo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:hye,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Ed(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ed(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Ed(n.nestingPrefix):n.nestingPrefixEscaped||Ed("$t("),this.nestingSuffix=n.nestingSuffix?Ed(n.nestingSuffix):n.nestingSuffixEscaped||Ed(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,i){let a,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(y){return y.replace(/\$/g,"$$$$")}const f=y=>{if(y.indexOf(this.formatSeparator)<0){const S=J9(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...i,...n,interpolationkey:y}):S}const m=y.split(this.formatSeparator),_=m.shift().trim(),b=m.join(this.formatSeparator).trim();return this.format(J9(n,l,_,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...i,...n,interpolationkey:_})};this.resetRegExp();const h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>c(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?c(this.escape(y)):c(y)}].forEach(y=>{for(s=0;a=y.regex.exec(t);){const m=a[1].trim();if(o=f(m),o===void 0)if(typeof h=="function"){const b=h(t,a,i);o=typeof b=="string"?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))o="";else if(p){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=G9(o));const _=y.safeValue(o);if(t=t.replace(a[0],_),p?(y.regex.lastIndex+=o.length,y.regex.lastIndex-=a[0].length):y.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;function s(l,c){const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const h=l.split(new RegExp(`${f}[ ]*{`));let p=`{${h[1]}`;l=h[0],p=this.interpolate(p,o);const v=p.match(/'/g),y=p.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),c&&(o={...c,...o})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${f}${p}`}return delete o.defaultValue,l}for(;i=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=f.shift(),l=f,c=!0}if(a=n(s.call(this,i[1].trim(),o),o),a&&i[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=G9(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),c&&(a=l.reduce((f,h)=>this.format(f,h,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}function xye(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(!o)return;const[s,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=c),c==="false"&&(n[s.trim()]=!1),c==="true"&&(n[s.trim()]=!0),isNaN(c)||(n[s.trim()]=parseInt(c,10))})}return{formatName:t,formatOptions:n}}function kd(e){const t={};return function(r,i,a){const o=i+JSON.stringify(a);let s=t[o];return s||(s=e(j1(i),a),t[o]=s),s(r)}}class Cye{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Xo.create("formatter"),this.options=t,this.formats={number:kd((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return a=>i.format(a)}),currency:kd((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return a=>i.format(a)}),datetime:kd((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return a=>i.format(a)}),relativetime:kd((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return a=>i.format(a,r.range||"day")}),list:kd((n,r)=>{const i=new Intl.ListFormat(n,{...r});return a=>i.format(a)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=kd(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((s,l)=>{const{formatName:c,formatOptions:f}=xye(l);if(this.formats[c]){let h=s;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},v=p.locale||p.lng||i.locale||i.lng||r;h=this.formats[c](s,v,{...f,...i,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}function Eye(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class kye extends $b{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Xo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const a={},o={},s={},l={};return t.forEach(c=>{let f=!0;n.forEach(h=>{const p=`${c}|${h}`;!r.reload&&this.store.hasResourceBundle(c,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,f=!1,o[p]===void 0&&(o[p]=!0),a[p]===void 0&&(a[p]=!0),l[h]===void 0&&(l[h]=!0)))}),f||(s[c]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),a=i[0],o=i[1];n&&this.emit("failedLoading",a,o,n),r&&this.store.addResourceBundle(a,o,r),this.state[t]=n?-1:2;const s={};this.queue.forEach(l=>{cye(l.loaded,[a],o),Eye(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const f=l.loaded[c];f.length&&f.forEach(h=>{s[c][h]===void 0&&(s[c][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:o});return}this.readingCalls++;const s=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(c&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,a*2,o)},a);return}o(c,f)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(f=>s(null,f)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,s),this.loaded(t,o,s)})}saveMissing(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let f;c.length===5?f=c(t,n,r,i,l):f=c(t,n,r,i),f&&typeof f.then=="function"?f.then(h=>s(null,h)).catch(s):s(null,f)}catch(f){s(f)}else c(t,n,r,i,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function eO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function D0(){}function Tye(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class ng extends $b{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=tO(t),this.services={},this.logger=Xo,this.modules={external:[]},Tye(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=eO();this.options={...i,...this.options,...tO(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?Xo.init(a(this.modules.logger),this.options):Xo.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Cye);const h=new Q9(this.options);this.store=new Y9(this.options.resources,this.options);const p=this.services;p.logger=Xo,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new Sye(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=a(f),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new wye(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new kye(a(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),_=1;_<y;_++)m[_-1]=arguments[_];t.emit(v,...m)}),this.modules.languageDetector&&(p.languageDetector=a(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=a(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new B1(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),_=1;_<y;_++)m[_-1]=arguments[_];t.emit(v,...m)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=D0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const l=wp(),c=()=>{const f=(h,p)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D0;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return r();const a=[],o=s=>{if(!s)return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{a.indexOf(c)<0&&a.push(c)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=wp();return t||(t=this.languages),n||(n=this.options.ns),r||(r=D0),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&E$.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=wp();this.emit("languageChanging",t);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?(a(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||a(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,f=>{o(f,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const a=function(o,s){let l;if(typeof s!="object"){for(var c=arguments.length,f=new Array(c>2?c-2:0),h=2;h<c;h++)f[h-2]=arguments[h];l=i.options.overloadTranslationOptionHandler([o,s].concat(f))}else l={...s};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix=l.keyPrefix||r||a.keyPrefix;const p=i.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(o)?v=o.map(y=>`${l.keyPrefix}${p}${y}`):v=l.keyPrefix?`${l.keyPrefix}${p}${o}`:o,i.t(v,l)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(a,t)))}loadNamespaces(t,n){const r=wp();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=wp();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],a=t.filter(o=>i.indexOf(o)<0);return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Q9(eO());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ng(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D0;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new ng(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Y9(this.store.data,i),a.services.resourceStore=a.store),a.translator=new B1(a.services,i),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit(s,...c)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ei=ng.createInstance();ei.createInstance=ng.createInstance;ei.createInstance;ei.dir;ei.init;ei.loadResources;ei.reloadResources;ei.use;ei.changeLanguage;ei.getFixedT;const nO=ei.t;ei.exists;ei.setDefaultNamespace;ei.hasLoadedNamespace;ei.loadNamespaces;ei.loadLanguages;function k$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vN(r.key),r)}}function T$(e,t,n){return t&&rO(e.prototype,t),n&&rO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var P$=[],Pye=P$.forEach,Oye=P$.slice;function Rye(e){return Pye.call(Oye.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var iO=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Aye=function(t,n,r){var i=r||{};i.path=i.path||"/";var a=encodeURIComponent(n),o="".concat(t,"=").concat(a);if(i.maxAge>0){var s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(i.domain){if(!iO.test(i.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(i.domain)}if(i.path){if(!iO.test(i.path))throw new TypeError("option path is invalid");o+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},aO={create:function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+r*60*1e3)),i&&(a.domain=i),document.cookie=Aye(t,encodeURIComponent(n),a)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var a=r[i];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(n)===0)return a.substring(n.length,a.length)}return null},remove:function(t){this.create(t,"",-1)}},Iye={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=aO.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&aO.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Lye={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),a=i.split("&"),o=0;o<a.length;o++){var s=a[o].indexOf("=");if(s>0){var l=a[o].substring(0,s);l===t.lookupQuerystring&&(n=a[o].substring(s+1))}}}return n}},xp=null,oO=function(){if(xp!==null)return xp;try{xp=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{xp=!1}return xp},Mye={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&oO()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&oO()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Cp=null,sO=function(){if(Cp!==null)return Cp;try{Cp=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Cp=!1}return Cp},Dye={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&sO()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&sO()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Nye={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Fye={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},$ye={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},zye={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function jye(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var O$=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k$(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return T$(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=Rye(r,this.options||{},jye()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(a){return a.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Iye),this.addDetector(Lye),this.addDetector(Mye),this.addDetector(Dye),this.addDetector(Nye),this.addDetector(Fye),this.addDetector($ye),this.addDetector(zye)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(a){if(r.detectors[a]){var o=r.detectors[a].lookup(r.options);o&&typeof o=="string"&&(o=[o]),o&&(i=i.concat(o))}}),i=i.map(function(a){return r.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(a){i.detectors[a]&&i.detectors[a].cacheUserLanguage(n,i.options)}))}}]),e}();O$.type="languageDetector";const Bye={sidebar_translation:"Translation",sidebar_translation_language:"Language",sidebar_currency:"Currency",sidebar_pricing:"Pricing",sidebar_billing:"Billing",construction_title:"Unable to access Transcy",construction_subTitle:"It seems you have deactivated or uninstalled the app.<br />Please activate or reinstall to keep localizing your site.",construction_session_title:"Your session has expired",construction_session_subTitle:"Please try accessing Transcy again from<br/>the WordPress admin.",construction_session_primaryButton:"Go to Transcy dashboard",accept:"Accept",product:"Product",image:"Image",pin:"Pin",unpin:"Unpin",remove:"Remove",reset:"Reset",change_save:"Changes saved",save:"Save",cancel:"Cancel",no_result:"No result",available:"Available",default:"Default",tooltip_upgrade_to_use_feature:"<pricingLink>Upgrade</pricingLink> to use this feature.",delete:"Delete",action:"Action",add:"Add",unlimited:"Unlimited",most_popular:"Most Popular",downgrade:"Downgrade",getStarted:"Get started",continue:"Continue",example:"Example",on:"on",got_it:"Got it",upgrade:"Upgrade"},Vye={header_title:"Language",header_subTitle:"Your store's default language:",header_button_primary:"Add target language",header_button_secondary:"Settings",filter_searchBar:"Search",filter_publishStatus:"Publish status",filter_type:"Type",filter_thirdPartyApps:"Third-party apps",filter_publishStatus_published:"Published",filter_publishStatus_unpublished:"Unpublished",filter_type_basic:"Basic",filter_type_advanced:"Advanced",filter_thirdPartyApps_enable:"Enable to translate",filter_thirdPartyApps_disable:"Disable to translate",table_thirdPartyApps_tooltip:"Auto translate content of third-party apps installed in your site.",table_type_tooltip:`You can switch language type
     424 */function N1(){return N1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N1.apply(this,arguments)}function l3(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Z0e(e,t){let n=l3(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}function Q0e(e,t){return _0e({basename:t==null?void 0:t.basename,future:N1({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Vve({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||X0e(),routes:e,mapRouteProperties:Y0e}).initialize()}function X0e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=N1({},t,{errors:J0e(t.errors)})),t}function J0e(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new k6(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}var W9;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(W9||(W9={}));var q9;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(q9||(q9={}));function eye(e){let t=w.useRef(l3(e)),n=w.useRef(!1),r=Wg(),i=w.useMemo(()=>Z0e(r.search,n.current?null:t.current),[r.search]),a=qg(),o=w.useCallback((s,l)=>{const c=l3(typeof s=="function"?s(i):s);n.current=!0,a("?"+c,l)},[a,i]);return[i,o]}const tye=new Hge({queryCache:new GF,mutationCache:new YF,defaultOptions:{queries:{refetchOnWindowFocus:!1,cacheTime:1e3*60*60}}}),nye=tt("popper-arrow-bg"),rye={tc:{gray:{50:"#677C96",100:"#F7FAFC",200:"#E2E8F0",300:"#F5F5F5",400:"#ECECEC",500:"#4A5568",550:"#718096",600:"#EDF2F7",700:"#2D3748",800:"#1A202C"},green:{50:"#F0FFF4",100:"#C6F6D5",150:"#F0FDF5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#0A855C",700:"#006B50",800:"#25855A",900:"#18402E"},red:{50:"#FFF1F1",600:"#C53030"},black:{100:"#202223"},blue:{100:"#E6F3FF",500:"#3182CE"},orange:{50:"#FFF7E8"},purple:{50:"#FAF5FF"}}},iye={Text:{baseStyle:{color:"tc.gray.700"}},Icon:{baseStyle:{fill:"tc.gray.700"}},Button:{variants:{"tc-solid-primary":{bg:"tc.green.600",color:"white",_hover:{bg:"tc.green.700",_disabled:{bg:"tc.green.600"}},_loading:{_hover:{bg:"tc.green.700"}}},"tc-outline-primary":{bg:"transparent",color:"tc.green.600",border:"1px solid",borderColor:"tc.green.600",_hover:{bg:"tc.green.50"},_loading:{_hover:{bg:"tc.green.500"}},_active:{bg:"tc.green.100"}}}},Switch:{variants:{tc:{track:{_checked:{bg:"var(--chakra-colors-tc-green-600)"}}}}},Checkbox:{baseStyle:{transition:"none"}},Input:{sizes:{md:{field:{fontSize:"14px"}}},baseStyle:{field:{fontSize:"s",_placeholder:{fontSize:"14px"}}},defaultProps:{focusBorderColor:"blue.200"}},Alert:{variants:{tc:{container:{bg:"black",alignItems:"center",".chakra-alert__icon":{display:"none"},'[aria-label="Close"]':{color:"white",top:"50%",right:"0",transform:"translate(-50%,-50%)"}},title:{color:"white",fontWeight:"normal"}},"tc.error":{container:{bg:"red.100",alignItems:"center",".chakra-alert__icon":{display:"none"},'[aria-label="Close"]':{color:"red.600",top:"50%",right:"0",transform:"translate(-50%,-50%)"}},title:{color:"red.600",fontWeight:"normal"}},"tc.card.info":{container:{bg:"tc.blue.100",borderColor:"blue.400",borderWidth:"1px"}}}},Tooltip:{baseStyle:{bg:"gray.900",borderRadius:"4px",[nye.variable]:"colors.gray.900"}}},aye={body:"'Inter', system-ui, sans-serif",heading:"'Inter', system-ui, sans-serif"},oye={small:" 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",xl:"2px 3px 20px 1px rgba(0, 0, 0, 0.1)"},sye=kae({fonts:aye,colors:rye,shadows:oye,components:iye}),lye={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class F1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||lye,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new F1(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new F1(this.logger,t)}}var Xo=new F1;class $b{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function wp(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function G9(e){return e==null?"":""+e}function uye(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function O6(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function i(){return!e||typeof e=="string"}const a=typeof t!="string"?[].concat(t):t.split(".");for(;a.length>1;){if(i())return{};const o=r(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(a.shift())}}function K9(e,t,n){const{obj:r,k:i}=O6(e,t,Object);r[i]=n}function cye(e,t,n,r){const{obj:i,k:a}=O6(e,t,Object);i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function $1(e,t){const{obj:n,k:r}=O6(e,t);if(n)return n[r]}function dye(e,t,n){const r=$1(e,n);return r!==void 0?r:$1(t,n)}function C$(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):C$(e[r],t[r],n):e[r]=t[r]);return e}function Ed(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function hye(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>fye[t]):e}const pye=[" ",",","?","!",";"];function mye(e,t,n){t=t||"",n=n||"";const r=pye.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(e);if(!a){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function z1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let a=0;a<r.length;++a){if(!i||typeof i[r[a]]=="string"&&a+1<r.length)return;if(i[r[a]]===void 0){let o=2,s=r.slice(a,a+o).join(n),l=i[s];for(;l===void 0&&r.length>a+o;)o++,s=r.slice(a,a+o).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}const c=r.slice(a+o).join(n);return c?z1(l,c,n):void 0}i=i[r[a]]}return i}function j1(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Y9 extends $b{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[t,n];r&&typeof r!="string"&&(s=s.concat(r)),r&&typeof r=="string"&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."));const l=$1(this.data,s);return l||!o||typeof r!="string"?l:z1(this.data&&this.data[t]&&this.data[t][n],r,a)}addResource(t,n,r,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),K9(this.data,s,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(typeof r[a]=="string"||Object.prototype.toString.apply(r[a])==="[object Array]")&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let l=$1(this.data,s)||{};i?C$(l,r,a):l={...l,...r},K9(this.data,s,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var E$={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,r,i))}),t}};const Z9={};class B1 extends $b{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),uye(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Xo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!mye(t,r,i);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:a};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),t=c.join(i)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(f){const E=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${E}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l}:`${l}${E}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l}:o}const h=this.resolve(t,n);let p=h&&h.res;const v=h&&h.usedKey||o,y=h&&h.exactUsedKey||o,m=Object.prototype.toString.apply(p),_=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject;if(S&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&_.indexOf(m)<0&&!(typeof b=="string"&&m==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,p,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=E,h):E}if(a){const E=m==="[object Array]",R=E?[]:{},A=E?y:v;for(const I in p)if(Object.prototype.hasOwnProperty.call(p,I)){const M=`${A}${a}${I}`;R[I]=this.translate(M,{...n,joinArrays:!1,ns:s}),R[I]===M&&(R[I]=p[I])}p=R}}else if(S&&typeof b=="string"&&m==="[object Array]")p=p.join(b),p&&(p=this.extendTranslation(p,t,n,r));else{let E=!1,R=!1;const A=n.count!==void 0&&typeof n.count!="string",I=B1.hasDefaultValue(n),M=A?this.pluralResolver.getSuffix(c,n.count,n):"",F=n.ordinal&&A?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",z=n[`defaultValue${M}`]||n[`defaultValue${F}`]||n.defaultValue;!this.isValidLookup(p)&&I&&(E=!0,p=z),this.isValidLookup(p)||(R=!0,p=o);const W=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:p,q=I&&z!==p&&this.options.updateMissing;if(R||E||q){if(this.logger.log(q?"updateKey":"missingKey",c,l,o,q?z:p),a){const ue=this.resolve(o,{...n,keySeparator:!1});ue&&ue.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ae=[];const ee=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ee&&ee[0])for(let ue=0;ue<ee.length;ue++)ae.push(ee[ue]);else this.options.saveMissingTo==="all"?ae=this.languageUtils.toResolveHierarchy(n.lng||this.language):ae.push(n.lng||this.language);const ce=(ue,J,me)=>{const we=I&&me!==p?me:W;this.options.missingKeyHandler?this.options.missingKeyHandler(ue,l,J,we,q,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ue,l,J,we,q,n),this.emit("missingKey",ue,l,J,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?ae.forEach(ue=>{this.pluralResolver.getSuffixes(ue,n).forEach(J=>{ce([ue],o+J,n[`defaultValue${J}`]||z)})}):ce(ae,o,z))}p=this.extendTranslation(p,t,n,h,r),R&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${o}`),(R||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,E?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(h.res=p,h):p}extendTranslation(t,n,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const p=t.match(this.interpolator.nestingRegexp);f=p&&p.length}let h=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language,r),c){const p=t.match(this.interpolator.nestingRegexp),v=p&&p.length;f<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,v=new Array(p),y=0;y<p;y++)v[y]=arguments[y];return a&&a[0]===v[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):o.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,l=typeof s=="string"?[s]:s;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=E$.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,s;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),f=c.key;i=f;let h=c.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",v=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(_=>{this.isValidLookup(r)||(s=_,!Z9[`${m[0]}-${_}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Z9[`${m[0]}-${_}`]=!0,this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(b=>{if(this.isValidLookup(r))return;o=b;const S=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,f,b,_,n);else{let E;p&&(E=this.pluralResolver.getSuffix(b,n.count,n));const R=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(S.push(f+E),n.ordinal&&E.indexOf(A)===0&&S.push(f+E.replace(A,this.options.pluralSeparator)),v&&S.push(f+R)),y){const I=`${f}${this.options.contextSeparator}${n.context}`;S.push(I),p&&(S.push(I+E),n.ordinal&&E.indexOf(A)===0&&S.push(I+E.replace(A,this.options.pluralSeparator)),v&&S.push(I+R))}}let C;for(;C=S.pop();)this.isValidLookup(r)||(a=C,r=this.getResource(b,_,C,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Tw(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Q9{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Xo.create("languageUtils")}getScriptPartFromCode(t){if(t=j1(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=j1(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tw(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tw(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Tw(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&a.indexOf(i)===0)return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let gye=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],vye={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const yye=["v1","v2","v3"],_ye=["v4"],X9={zero:0,one:1,two:2,few:3,many:4,other:5};function bye(){const e={};return gye.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:vye[t.fc]}})}),e}class Sye{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Xo.create("pluralResolver"),(!this.options.compatibilityJSON||_ye.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=bye()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(j1(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>X9[i]-X9[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!yye.includes(this.options.compatibilityJSON)}}function J9(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=dye(e,t,n);return!a&&i&&typeof n=="string"&&(a=z1(e,n,r),a===void 0&&(a=z1(t,n,r))),a}class wye{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Xo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:hye,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Ed(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ed(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Ed(n.nestingPrefix):n.nestingPrefixEscaped||Ed("$t("),this.nestingSuffix=n.nestingSuffix?Ed(n.nestingSuffix):n.nestingSuffixEscaped||Ed(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,i){let a,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(y){return y.replace(/\$/g,"$$$$")}const f=y=>{if(y.indexOf(this.formatSeparator)<0){const S=J9(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...i,...n,interpolationkey:y}):S}const m=y.split(this.formatSeparator),_=m.shift().trim(),b=m.join(this.formatSeparator).trim();return this.format(J9(n,l,_,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...i,...n,interpolationkey:_})};this.resetRegExp();const h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>c(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?c(this.escape(y)):c(y)}].forEach(y=>{for(s=0;a=y.regex.exec(t);){const m=a[1].trim();if(o=f(m),o===void 0)if(typeof h=="function"){const b=h(t,a,i);o=typeof b=="string"?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))o="";else if(p){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=G9(o));const _=y.safeValue(o);if(t=t.replace(a[0],_),p?(y.regex.lastIndex+=o.length,y.regex.lastIndex-=a[0].length):y.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;function s(l,c){const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const h=l.split(new RegExp(`${f}[ ]*{`));let p=`{${h[1]}`;l=h[0],p=this.interpolate(p,o);const v=p.match(/'/g),y=p.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),c&&(o={...c,...o})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${f}${p}`}return delete o.defaultValue,l}for(;i=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=f.shift(),l=f,c=!0}if(a=n(s.call(this,i[1].trim(),o),o),a&&i[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=G9(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),c&&(a=l.reduce((f,h)=>this.format(f,h,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}function xye(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(!o)return;const[s,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=c),c==="false"&&(n[s.trim()]=!1),c==="true"&&(n[s.trim()]=!0),isNaN(c)||(n[s.trim()]=parseInt(c,10))})}return{formatName:t,formatOptions:n}}function kd(e){const t={};return function(r,i,a){const o=i+JSON.stringify(a);let s=t[o];return s||(s=e(j1(i),a),t[o]=s),s(r)}}class Cye{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Xo.create("formatter"),this.options=t,this.formats={number:kd((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return a=>i.format(a)}),currency:kd((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return a=>i.format(a)}),datetime:kd((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return a=>i.format(a)}),relativetime:kd((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return a=>i.format(a,r.range||"day")}),list:kd((n,r)=>{const i=new Intl.ListFormat(n,{...r});return a=>i.format(a)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=kd(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((s,l)=>{const{formatName:c,formatOptions:f}=xye(l);if(this.formats[c]){let h=s;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},v=p.locale||p.lng||i.locale||i.lng||r;h=this.formats[c](s,v,{...f,...i,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}function Eye(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class kye extends $b{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Xo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const a={},o={},s={},l={};return t.forEach(c=>{let f=!0;n.forEach(h=>{const p=`${c}|${h}`;!r.reload&&this.store.hasResourceBundle(c,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,f=!1,o[p]===void 0&&(o[p]=!0),a[p]===void 0&&(a[p]=!0),l[h]===void 0&&(l[h]=!0)))}),f||(s[c]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),a=i[0],o=i[1];n&&this.emit("failedLoading",a,o,n),r&&this.store.addResourceBundle(a,o,r),this.state[t]=n?-1:2;const s={};this.queue.forEach(l=>{cye(l.loaded,[a],o),Eye(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const f=l.loaded[c];f.length&&f.forEach(h=>{s[c][h]===void 0&&(s[c][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:o});return}this.readingCalls++;const s=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(c&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,a*2,o)},a);return}o(c,f)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(f=>s(null,f)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,s),this.loaded(t,o,s)})}saveMissing(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let f;c.length===5?f=c(t,n,r,i,l):f=c(t,n,r,i),f&&typeof f.then=="function"?f.then(h=>s(null,h)).catch(s):s(null,f)}catch(f){s(f)}else c(t,n,r,i,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function eO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function D0(){}function Tye(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class ng extends $b{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=tO(t),this.services={},this.logger=Xo,this.modules={external:[]},Tye(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=eO();this.options={...i,...this.options,...tO(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?Xo.init(a(this.modules.logger),this.options):Xo.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Cye);const h=new Q9(this.options);this.store=new Y9(this.options.resources,this.options);const p=this.services;p.logger=Xo,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new Sye(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=a(f),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new wye(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new kye(a(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),_=1;_<y;_++)m[_-1]=arguments[_];t.emit(v,...m)}),this.modules.languageDetector&&(p.languageDetector=a(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=a(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new B1(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),_=1;_<y;_++)m[_-1]=arguments[_];t.emit(v,...m)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=D0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const l=wp(),c=()=>{const f=(h,p)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D0;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return r();const a=[],o=s=>{if(!s)return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{a.indexOf(c)<0&&a.push(c)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=wp();return t||(t=this.languages),n||(n=this.options.ns),r||(r=D0),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&E$.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=wp();this.emit("languageChanging",t);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?(a(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||a(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,f=>{o(f,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const a=function(o,s){let l;if(typeof s!="object"){for(var c=arguments.length,f=new Array(c>2?c-2:0),h=2;h<c;h++)f[h-2]=arguments[h];l=i.options.overloadTranslationOptionHandler([o,s].concat(f))}else l={...s};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix=l.keyPrefix||r||a.keyPrefix;const p=i.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(o)?v=o.map(y=>`${l.keyPrefix}${p}${y}`):v=l.keyPrefix?`${l.keyPrefix}${p}${o}`:o,i.t(v,l)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(a,t)))}loadNamespaces(t,n){const r=wp();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=wp();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],a=t.filter(o=>i.indexOf(o)<0);return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Q9(eO());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ng(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D0;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new ng(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Y9(this.store.data,i),a.services.resourceStore=a.store),a.translator=new B1(a.services,i),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit(s,...c)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ei=ng.createInstance();ei.createInstance=ng.createInstance;ei.createInstance;ei.dir;ei.init;ei.loadResources;ei.reloadResources;ei.use;ei.changeLanguage;ei.getFixedT;const nO=ei.t;ei.exists;ei.setDefaultNamespace;ei.hasLoadedNamespace;ei.loadNamespaces;ei.loadLanguages;function k$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vN(r.key),r)}}function T$(e,t,n){return t&&rO(e.prototype,t),n&&rO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var P$=[],Pye=P$.forEach,Oye=P$.slice;function Rye(e){return Pye.call(Oye.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var iO=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Aye=function(t,n,r){var i=r||{};i.path=i.path||"/";var a=encodeURIComponent(n),o="".concat(t,"=").concat(a);if(i.maxAge>0){var s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(i.domain){if(!iO.test(i.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(i.domain)}if(i.path){if(!iO.test(i.path))throw new TypeError("option path is invalid");o+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},aO={create:function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+r*60*1e3)),i&&(a.domain=i),document.cookie=Aye(t,encodeURIComponent(n),a)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var a=r[i];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(n)===0)return a.substring(n.length,a.length)}return null},remove:function(t){this.create(t,"",-1)}},Iye={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=aO.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&aO.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Lye={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),a=i.split("&"),o=0;o<a.length;o++){var s=a[o].indexOf("=");if(s>0){var l=a[o].substring(0,s);l===t.lookupQuerystring&&(n=a[o].substring(s+1))}}}return n}},xp=null,oO=function(){if(xp!==null)return xp;try{xp=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{xp=!1}return xp},Mye={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&oO()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&oO()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Cp=null,sO=function(){if(Cp!==null)return Cp;try{Cp=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Cp=!1}return Cp},Dye={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&sO()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&sO()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Nye={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Fye={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},$ye={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},zye={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function jye(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var O$=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k$(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return T$(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=Rye(r,this.options||{},jye()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(a){return a.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Iye),this.addDetector(Lye),this.addDetector(Mye),this.addDetector(Dye),this.addDetector(Nye),this.addDetector(Fye),this.addDetector($ye),this.addDetector(zye)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(a){if(r.detectors[a]){var o=r.detectors[a].lookup(r.options);o&&typeof o=="string"&&(o=[o]),o&&(i=i.concat(o))}}),i=i.map(function(a){return r.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(a){i.detectors[a]&&i.detectors[a].cacheUserLanguage(n,i.options)}))}}]),e}();O$.type="languageDetector";const Bye={sidebar_translation:"Translation",sidebar_translation_language:"Language",sidebar_currency:"Currency",sidebar_pricing:"Pricing",sidebar_billing:"Billing",construction_title:"Unable to access Transcy",construction_subTitle:"It seems you have deactivated or uninstalled the app.<br />Please activate or reinstall to keep localizing your site.",construction_session_title:"Your session has expired",construction_session_subTitle:"Please try accessing Transcy again from<br/>the WordPress admin.",construction_session_primaryButton:"Go to Transcy dashboard",accept:"Accept",product:"Product",image:"Image",pin:"Pin",unpin:"Unpin",remove:"Remove",reset:"Reset",change_save:"Changes saved",save:"Save",cancel:"Cancel",no_result:"No result",available:"Available",default:"Default",tooltip_upgrade_to_use_feature:"<pricingLink>Upgrade</pricingLink> to use this feature.",delete:"Delete",action:"Action",add:"Add",unlimited:"Unlimited",most_popular:"Most Popular",downgrade:"Downgrade",getStarted:"Get started",continue:"Continue",example:"Example",on:"on",got_it:"Got it",upgrade:"Upgrade"},Vye={header_title:"Language",header_subTitle:"Your store's default language:",header_button_primary:"Add target language",header_button_secondary:"Settings",filter_searchBar:"Search",filter_publishStatus:"Publish status",filter_type:"Type",filter_thirdPartyApps:"Third-party apps",filter_publishStatus_published:"Published",filter_publishStatus_unpublished:"Unpublished",filter_type_basic:"Basic",filter_type_advanced:"Advanced",filter_thirdPartyApps_enable:"Enable to translate",filter_thirdPartyApps_disable:"Disable to translate",table_thirdPartyApps_tooltip:"Auto translate content of third-party apps installed in your site.",table_type_tooltip:`You can switch language type
    425425for more advanced features.`,table_action_manageTranslation:"Go to Manage translations",table_action_switchLanguage:"Switch language type to Basic",table_action_switchLanguage_advanced:"Switch language type to Advanced",table_action_translateThird:"Translate third-party apps",setting_title:"Language settings",setting_subTitle:"Customize language names and flags in the most user-friendly way.",filter_search_language:"Search language",filter_flag:"Flag",filter_english_name:"English name",filter_short_name:"Short name",filter_native_name:"Native name",filter_action:"Action",title_modal_reset:"Reset to default settings",des_modal_reset:"Reset selected languages to default?",title_modal_edit_language:"Edit language name",reset_all_to_default:"Reset all to default",default_language:"Default language",title_modal_change_language_default:"Change default language",alert_default_changed:"Default language changed",delete_modal_title:"Remove selected languages?",delete_modal_description_basic:"Customers will no longer be able to see and buy in these languages.",delete_modal_description_advanced:"When removing, language settings and translations are not there anymore. After 30 days, translations will be deleted permanently and can not reverse.",create_modal_common_options:"COMMON LANGUAGES",create_modal_advanced_options:"OTHER LANGUAGES",create_modal_title:"Add target language",create_modal_advanced_label:"Advanced language",create_modal_advanced_subLabel:"The translations are <highlight>editable</highlight>.",create_modal_advanced_placeholder:"Select language",create_modal_advanced_limit_tooltip:"You've reached the limit of advanced language.",create_modal_basic_label:"Basic language",create_modal_basic_subLabel:"Automatically translate all the content. You <highlight>cannot</highlight> edit the translations.",create_modal_basic_placeholder:"Select language",create_modal_basic_limit_tooltip:"You've reached the limit of basic language.",table_no_data_title:"No target language added yet",table_no_data_description:"Add target language to make shopping easier for your customers.",table_resource_name_plural:"languages",table_resource_name_singular:"language",toast_language_removed:"Language removed",toast_language_added:"Language added",toast_language_published:"Language published",toast_language_unpublished:"Language unpublished",toast_language_pined:"Language pinned",toast_language_unpined:"Language unpinned",toast_language_switched:"Language switched",toast_language_enable_thirdParty:"Enable to translate third-party apps",toast_language_disable_thirdParty:"Disable to translate third-party apps",toast_language_default_changed:"Default language changed",bulk_publish:"Publish",bulk_unPublish:"Unpublish",page_header_tooltip:"Go to <settingLink>Setting</settingLink> to change default language",tooltip_only_work_advanced:"Only works for advanced language.",tooltip_reached_limit_advanced:"You’ve reached the limit of advanced language.",tooltip_manage_translation_limit_edit:"Advanced language allows editing its translations. <pricingLink>Upgrade</pricingLink> to use this feature. ",limit_feature_advanced_language:"Available from Starter plan. <pricingLink>Upgrade</pricingLink> to use this feature.",limit_feature_modal_add_language_title:"Can’t add target language",limit_feature_modal_add_language_description_free:"Your current plan limits the number of languages. Upgrade to have more.",limit_feature_modal_add_language_description_starter:"You’ve reached the language limit for your current plan. We’re working on a new plan coming soon with more language support."},Uye={title:"Home",sub_title:"Quick actions",desc_title:"We’ve assembled some links to get you started faster.",store_evaluation_title:"Store evaluation",store_evaluation_des:"Here is some evaluation about your store, keep it near 100 to maximize your store performance.",btn_re_evaluate:"Re-evaluate",quick_title_lang:"Language",quick_desc_lang:"Add and publish the languages you want to sell in.",quick_btn_lang:"Manage language",quick_title_currency:"Currency",quick_desc_currency:"Help customers shop easier with converted product prices.",quick_btn_currency:"Manage currency",quick_title_translation:"Manage translations",quick_desc_translation:"Manually edit the translations for accuracy and clarity.",quick_btn_translation:"Translate & Edit",quick_btn_upgrade_translation:"Upgrade to access",quick_title_auto_translation:"Auto translate",quick_desc_auto_translation:"Keep hands free of manual work with automatic translation.",quick_btn_auto_translation:"Set auto translation",quick_btn_upgrade_auto_translation:"Upgrade to access",quick_title_switcher:"Switcher",quick_desc_switcher:"Tailor Switcher on the front page to match your brand.",quick_btn_switcher:"Customize Switcher",latest_article_title:"Latest articles ",latest_article_sub_title:"Inspire your productivity with the best new ideas in a variety of fields.",what_new_title:"What’s new",what_new_sub_title:"Keep you up to date on new features.",rate_title:"Rate us",rate_desc:`Please consider leaving us a good rating. <br/>
    426426These ratings fuel our passion and our better product.`,rate_footer:"Resolve urgent issues with our Customer Support team",subscriptionDeadline_title:"Subscription payment failed",subscriptionDeadline_description:" Please address the problem with your PayPal account promptly. You will continue using Transcy while PayPal makes multiple attempts to process payment until {{date}}."},Hye={glossary:"Glossary"},Wye={header_title:"Currency",header_subTitle:"Your store's default currency:",button_setting:"Settings",button_add_currency:"Add currency",button_add_target_currency:"Add target currency",filter_searchBar:"Search currency",filter_published:"Published",filter_unpublished:"Unpublished",filter_round_off:"Round off",filter_round_down:"Round down",filter_round_up:"Round up",filter_round_custom:"Custom",filter_exchange_rate_auto:"Auto",filter_exchange_rate_manual:"Manual",filter_publish_status:"Publish status",filter_exchange_rate:"Exchange rate",filter_price_rounding:"Price rounding",filter_code:"Code",filter_currency:"Currency",filter_publish:"Publish",table_no_data_title:"No target currency added yet",table_no_data_description:"Add currency to make shopping easier for your customers.",delete_modal_title:"Remove selected currencies?",delete_modal_description:"Customers won't see prices in local currency anymore.",toast_currency_delete:"Currency removed",toast_currency_published:"Currency published",toast_currency_unpublished:"Currency unpublished",toast_currency_unpinned:"Currency unpinned",toast_currency_pinned:"Currency pinned",toast_currency_create:"Currency added",table_resource_name_plural:"currencies",table_resource_name_singular:"currency",create_currency_placeholder:"Select currency",tooltip_limit_currency:"You've reached the plan limit of currency.",tooltip_limit_add_currency:"You've reached the limit of target currency.",page_header_tooltip:"Go to <settingLink>Settings</settingLink> to change default currency",not_support_title:"This function only works when you have <br /> WooCommerce installed",not_support_subTitle:"Help your customers go shopping easier with converted <br /> product prices that works for WooCommerce stores.",title_modal_limit_publish:"Can’t publish currency",desc_modal_limit_publish_free:"You’ve reached to the plan limit of currency to be published.",desc_modal_limit_publish_starter:"Your current plan limits the number of currencies to be published.",title_modal_limit_add:"Can’t add target currency",desc_modal_limit_add_free:"Your current plan limits the number of currencies. Upgrade to have more.",desc_modal_limit_add_starter:"You’ve reached the currency limit for your current plan. We’re working on a new plan coming soon with more currency support.",create_currency_modal_common_currency:"Common currencies",create_currency_modal_other_currency:"Other currencies "},qye={page_header_title:"Currency settings",page_header_subTitle:"Set your ideal native currency format, exchange rate, and rounding rule.",resource_name_plural:"currencies",resource_name_singular:"currency",filter_search_placeholder:"Search currency",default_currency_title:"Default currency",default_currency_description:"Your store's default currency: ",default_currency_button:"Change default currency",change_default_currency_modal:"Change default currency",currency:"Currency",reset_currency_alert_modal_title:"Reset to default settings",reset_currency_alert_modal_description:"Reset selected currencies to default?",toast_save_changed:"Changes saved",toast_default_changed:"Default currency changed",table_currency_column:"Currency",table_code_column:"Code",table_symbol_column:"Symbol",table_exchangeRate_column:"Exchange rate",table_priceRoundingType_column:"Price rounding type",table_action_column:"Action",edit_modal_header:"Edit currency format",edit_modal_description:"Fill in the fields with customized names to display on the Switcher.",edit_modal_currency_format_container:"Currency format",edit_modal_currency_format_flag_label:"Flag",edit_modal_currency_format_name_label:"Currency name",edit_modal_currency_format_code_label:"Code",edit_modal_currency_format_symbol_label:"Symbol",edit_modal_currency_exchange_container:"Exchange rate",edit_modal_currency_exchange_auto_option:"Auto",edit_modal_currency_exchange_auto_helper:"Update exchange rates using Transcy's data.",edit_modal_currency_exchange_manual_option:"Manual",edit_modal_currency_exchange_manual_helper:"Custom exchange rate",edit_modal_currency_rounding_container:"Price rounding",edit_modal_currency_rounding_off_option:"Round off",edit_modal_currency_rounding_up_option:"Round up",edit_modal_currency_rounding_down_option:"Round down",edit_modal_currency_rounding_custom_option:"Custom",edit_modal_reset_all:"Reset all to default"},Gye={pricing_page_header_title:"Pricing",pricing_page_header_subTitle:"Localize your site, growth fast. Start freely. 30-day money-back guarantee.",pricing_card_header_title:"Localize your site, growth faster.",pricing_card_header_subTitle:"Start freely with 30-day money-back guarantee",table_group_header_title:"WHAT’S INCLUDED",table_group_header_subTitle:"Solution for cross-border business",hide_feature_table_button:"Hide features",show_feature_table_button:"See all features",per_month:"per<br>month",downgrade_survey_title:"We’re sad to see you go",downgrade_survey_description:"You are cancelling your Transcy Starter subscription.<br>Can we know why you want to leave?",downgrade_survey_question_1:"Does not meet my needs",downgrade_survey_question_2:"Too difficult to use",downgrade_survey_question_3:"No needed anymore",downgrade_survey_question_4:"Too expensive",downgrade_survey_question_5:"Other",downgrade_modal_title:"Downgrade to {{plan}} plan?",downgrade_modal_description:"As your subscription changes, your languages and currencies will be unpublished. We can keep your translations for 30 days, free of charge. However, some features are no longer available in this plan:",plan_name_free_plan:"Free Plan",plan_name_starter_plan:"Starter Plan",plan_name_free:"Free",plan_name_starter:"Starter",table_group_1_header:"PLAN'S PROVISIONS",table_group_1_children_1_title:"Words and pageviews",table_group_1_children_1_description:"Translate as much as you want without limitation of pageviews, requests, or the number of words.",table_group_1_children_2_title:"Basic language",table_group_1_children_2_description:"Translate all content on the front end, can not edit the translations.",table_group_1_children_3_title:"Advanced language",table_group_1_children_3_description:"More advanced features, the translation is editable.",table_group_1_children_4_title:"Currency",table_group_1_children_4_description:"Convert the product prices, delivery costs, or any other price types. Only works for WooCommerce stores.",table_group_1_children_5_title:"Product",table_group_1_children_5_description:"The maximum number of products you can translate for each advanced language.",table_group_1_children_6_title:"Auto update translation",table_group_1_children_6_description:"The new content will be automatically detected and translated.",table_group_2_header:"LANGUAGE",table_group_2_children_1_title:"AI neural machine translation",table_group_2_children_1_description:"Translate all your content from the front end in one click.",table_group_2_children_2_title:"Manage translations",table_group_2_children_2_description:"Create and save custom translations from all resources.",table_group_2_children_3_title:"Manual sync",table_group_2_children_3_description:"Sync manually when new content is added to your site.",table_group_2_children_4_title:"Daily sync",table_group_2_children_4_description:"Auto-sync new content at a specific time.",table_group_2_children_5_title:"Find and replace translated content",table_group_2_children_5_description:"Allow to have quick revisions and create translations easily.",table_group_3_header:"CURRENCY (WooCommerce)",table_group_3_children_1_title:"Auto rounding",table_group_3_children_1_description:"Automatically round the price to make it sound more attractive to customers.",table_group_3_children_2_title:"Cart page notification",table_group_3_children_2_description:"Display a notification of the price on the cart page.",table_group_4_header:"ON-SITE SWITCHER",table_group_4_children_1_title:"General settings",table_group_4_children_1_description:"Set up how the switcher displays on the front end with available templates.",table_group_4_children_2_title:"Customization",table_group_4_children_2_description:"Allow tailoring the switcher positions, styles, and colors.",table_group_5_header:"SUPPORTS & SERVICES",table_group_5_children_1_title:"Live chat and email support",table_group_5_children_1_description:"Run into any issues? Get instant help live chat and email support.",table_group_6_header:"AUTOMATION",table_group_6_children_1_title:"Auto update translation",table_group_6_children_1_description:"Automatically translate in the background anytime you publish new content or edit existing content.",pricing_card_header_free_button:"It’s free, so why not?",pricing_card_header_free_subTitle:"All the basics",pricing_card_header_free_features_1_content:"Add {{number}} language",pricing_card_header_free_features_1_tooltip:"The maximum number of languages you can add to your site. Default language doesn't count.",pricing_card_header_free_features_2_content:"Add {{number}} currency",pricing_card_header_free_features_2_tooltip:"The maximum number of languages you can add to your site. Default language doesn't count.",pricing_card_header_free_features_3_content:"AI neural machine translation",pricing_card_header_free_features_3_tooltip:"Translate all your content from the frontend in one click.",pricing_card_header_free_features_4_content:"Manage translations for 1 language",pricing_card_header_free_features_4_tooltip:"Translate as much as you want without limitation of pageviews, requests, or the number of words.",pricing_card_header_free_features_5_content:"Switcher customization",pricing_card_header_free_features_5_tooltip:"Quickly customize the Switcher’s positions, styles and colors.",pricing_card_header_starter_button:"Start {{day}}-day free trial",pricing_card_header_starter_subTitle:"For fast-growth business",pricing_card_header_starter_features_1_content:"All Free features plus:",pricing_card_header_starter_features_2_content:"Add {{number}} languages",pricing_card_header_starter_features_2_tooltip:"The maximum number of languages you can add to your site. Default language doesn't count.",pricing_card_header_starter_features_3_content:"Manage translations for {{number}} languages",pricing_card_header_starter_features_3_tooltip:"You can edit AI translations and omit their errors for higher accuracy.",pricing_card_header_starter_features_4_content:"Add {{number}} currencies",pricing_card_header_starter_features_4_tooltip:"The maximum number of currencies you can add to your site. Default currency doesn't count.",pricing_card_header_starter_features_5_content:"Daily sync new content",pricing_card_header_starter_features_5_tooltip:"Automatically sync data from WordPress at a specific time of day. ",pricing_card_header_starter_features_6_content:"24/7 live chat and email support",pricing_card_header_starter_features_6_tooltip:"Run into any issues? Get instant help with 24/7 live chat and email support.",pricing_card_header_starter_features_7_content:"Auto update translation",pricing_card_header_starter_features_7_tooltip:"Automatically update and translate new content"},Kye={manage_translation_page_header_title:"Manage translations",manage_translation_page_header_primary_button:"Add target language",manage_translation_page_header_secondary_button:"Settings",no_advanced_language_empty_state_title:"No advanced language added yet",no_advanced_language_empty_state_description:"Start manually editing translations for high-quality content.<br />First, let’s add an advanced language.",no_advanced_language_empty_state_primary_button:"Add advanced language",limit_plan_state_title:"Fine-tune your translations with ease",limit_plan_state_description:"Manually edit the translations for more accuracy and clarity.<br />Upgrade to access the advanced feature.",limit_plan_state_primary_button:"Access the advanced feature"},Yye={common:Bye,language:Vye,dashboard:Uye,glossary:Hye,currency:Wye,currency_setting:qye,pricing:Gye,manage_translation:Kye},Zye={sidebar_translation:"Traducción",sidebar_translation_language:"Idioma",sidebar_currency:"Divisa",sidebar_pricing:"Fijación de precios",sidebar_billing:"Facturación",construction_title:"Incapaz de acceder a Transcy",construction_subTitle:"Parece que ha desactivado o desinstalado la aplicación. <br /> Active o reinstale para seguir localizando su sitio.",construction_session_title:"Su sesión ha caducado",construction_session_subTitle:"Intente acceder a Transcy nuevamente desde <br/> El administrador de WordPress.",construction_session_primaryButton:"Ir al tablero de transcyes",accept:"Aceptar",product:"Producto",image:"Imagen",pin:"Alfiler",unpin:"Desprender",remove:"Eliminar",reset:"Reiniciar",change_save:"Cambios guardados",save:"Ahorrar",cancel:"Cancelar",no_result:"Sin resultados",available:"Disponible",default:"Por defecto",tooltip_upgrade_to_use_feature:"<pricingLink>Actualización</pricingLink> Para usar esta función.",delete:"Borrar",action:"Acción",add:"Agregar",unlimited:"Ilimitado",most_popular:"Más popular",downgrade:"Degradar",getStarted:"Empezar",continue:"Continuar",example:"Ejemplo",on:"en",got_it:"Entiendo",upgrade:"Mejora"},Qye={header_title:"Idioma",header_subTitle:"El idioma predeterminado de su tienda:",header_button_primary:"Agregar lenguaje de destino",header_button_secondary:"Ajustes",filter_searchBar:"Buscar",filter_publishStatus:"Publicar el estado",filter_type:"Tipo",filter_thirdPartyApps:"Aplicaciones de terceros",filter_publishStatus_published:"Publicado",filter_publishStatus_unpublished:"Inédito",filter_type_basic:"Básico",filter_type_advanced:"Avanzado",filter_thirdPartyApps_enable:"Habilitar traducir",filter_thirdPartyApps_disable:"Deshabilitar para traducir",table_thirdPartyApps_tooltip:"Traducir automáticamente el contenido de aplicaciones de terceros instaladas en su sitio.",table_type_tooltip:`Puedes cambiar el tipo de idioma
     
    458458`:`;
    459459`)+be+`return __p
    460 }`;var Pt=hk(function(){return sn(N,Qe+"return "+be).apply(n,U)});if(Pt.source=be,Z2(Pt))throw Pt;return Pt}function aG(u){return hn(u).toLowerCase()}function oG(u){return hn(u).toUpperCase()}function sG(u,d,g){if(u=hn(u),u&&(g||d===n))return fv(u);if(!u||!(d=oa(d)))return u;var k=no(u),L=no(d),N=zh(k,L),U=jh(k,L)+1;return El(k,N,U).join("")}function lG(u,d,g){if(u=hn(u),u&&(g||d===n))return u.slice(0,k8(u)+1);if(!u||!(d=oa(d)))return u;var k=no(u),L=jh(k,no(d))+1;return El(k,0,L).join("")}function uG(u,d,g){if(u=hn(u),u&&(g||d===n))return u.replace(jn,"");if(!u||!(d=oa(d)))return u;var k=no(u),L=zh(k,no(d));return El(k,L).join("")}function cG(u,d){var g=z,k=Y;if(Bn(d)){var L="separator"in d?d.separator:L;g="length"in d?kt(d.length):g,k="omission"in d?oa(d.omission):k}u=hn(u);var N=u.length;if(_l(u)){var U=no(u);N=U.length}if(g>=N)return u;var H=g-od(k);if(H<1)return k;var Q=U?El(U,0,H).join(""):u.slice(0,H);if(L===n)return Q+k;if(U&&(H+=Q.length-H),Q2(L)){if(u.slice(H).search(L)){var de,pe=Q;for(L.global||(L=h2(L.source,hn(an.exec(L))+"g")),L.lastIndex=0;de=L.exec(pe);)var be=de.index;Q=Q.slice(0,be===n?H:be)}}else if(u.indexOf(oa(L),H)!=H){var Ne=Q.lastIndexOf(L);Ne>-1&&(Q=Q.slice(0,Ne))}return Q+k}function dG(u){return u=hn(u),u&&gt.test(u)?u.replace(De,jB):u}var fG=hd(function(u,d,g){return u+(g?" ":"")+d.toUpperCase()}),eS=pE("toUpperCase");function fk(u,d,g){return u=hn(u),d=g?n:d,d===n?d2(u)?UB(u):$(u):u.match(d)||[]}var hk=Mt(function(u,d){try{return bi(u,n,d)}catch(g){return Z2(g)?g:new bt(g)}}),hG=Es(function(u,d){return $i(d,function(g){g=$o(g),xs(u,g,K2(u[g],u))}),u});function pG(u){var d=u==null?0:u.length,g=lt();return u=d?Cn(u,function(k){if(typeof k[1]!="function")throw new Ea(o);return[g(k[0]),k[1]]}):[],Mt(function(k){for(var L=-1;++L<d;){var N=u[L];if(bi(N[0],this,k))return bi(N[1],this,k)}})}function mG(u){return jV(Ta(u,h))}function tS(u){return function(){return u}}function gG(u,d){return u==null||u!==u?d:u}var vG=gE(),yG=gE(!0);function Vi(u){return u}function nS(u){return q8(typeof u=="function"?u:Ta(u,h))}function _G(u){return K8(Ta(u,h))}function bG(u,d){return Y8(u,Ta(d,h))}var SG=Mt(function(u,d){return function(g){return Zh(g,u,d)}}),wG=Mt(function(u,d){return function(g){return Zh(u,g,d)}});function rS(u,d,g){var k=Lr(d),L=Iv(d,k);g==null&&!(Bn(d)&&(L.length||!k.length))&&(g=d,d=u,u=this,L=Iv(d,Lr(d)));var N=!(Bn(g)&&"chain"in g)||!!g.chain,U=Ts(u);return $i(L,function(H){var Q=d[H];u[H]=Q,U&&(u.prototype[H]=function(){var de=this.__chain__;if(N||de){var pe=u(this.__wrapped__),be=pe.__actions__=zi(this.__actions__);return be.push({func:Q,args:arguments,thisArg:u}),pe.__chain__=de,pe}return Q.apply(u,En([this.value()],arguments))})}),u}function xG(){return _t._===this&&(_t._=YB),this}function iS(){}function CG(u){return u=kt(u),Mt(function(d){return Z8(d,u)})}var EG=D2(Cn),kG=D2(cv),TG=D2(O);function pk(u){return V2(u)?Xt($o(u)):rU(u)}function PG(u){return function(d){return u==null?n:Uu(u,d)}}var OG=yE(),RG=yE(!0);function aS(){return[]}function oS(){return!1}function AG(){return{}}function IG(){return""}function LG(){return!0}function MG(u,d){if(u=kt(u),u<1||u>J)return[];var g=Ce,k=ii(u,Ce);d=lt(d),u-=Ce;for(var L=Fh(k,d);++g<u;)d(g);return L}function DG(u){return xt(u)?Cn(u,$o):sa(u)?[u]:zi(ME(hn(u)))}function NG(u){var d=++GB;return hn(u)+d}var FG=$v(function(u,d){return u+d},0),$G=N2("ceil"),zG=$v(function(u,d){return u/d},1),jG=N2("floor");function BG(u){return u&&u.length?Av(u,Vi,S2):n}function VG(u,d){return u&&u.length?Av(u,lt(d,2),S2):n}function UG(u){return Gt(u,Vi)}function HG(u,d){return Gt(u,lt(d,2))}function WG(u){return u&&u.length?Av(u,Vi,E2):n}function qG(u,d){return u&&u.length?Av(u,lt(d,2),E2):n}var GG=$v(function(u,d){return u*d},1),KG=N2("round"),YG=$v(function(u,d){return u-d},0);function ZG(u){return u&&u.length?id(u,Vi):0}function QG(u,d){return u&&u.length?id(u,lt(d,2)):0}return D.after=_W,D.ary=WE,D.assign=oq,D.assignIn=ak,D.assignInWith=Qv,D.assignWith=sq,D.at=lq,D.before=qE,D.bind=K2,D.bindAll=hG,D.bindKey=GE,D.castArray=AW,D.chain=VE,D.chunk=jU,D.compact=BU,D.concat=VU,D.cond=pG,D.conforms=mG,D.constant=tS,D.countBy=ZH,D.create=uq,D.curry=KE,D.curryRight=YE,D.debounce=ZE,D.defaults=cq,D.defaultsDeep=dq,D.defer=bW,D.delay=SW,D.difference=UU,D.differenceBy=HU,D.differenceWith=WU,D.drop=qU,D.dropRight=GU,D.dropRightWhile=KU,D.dropWhile=YU,D.fill=ZU,D.filter=XH,D.flatMap=tW,D.flatMapDeep=nW,D.flatMapDepth=rW,D.flatten=$E,D.flattenDeep=QU,D.flattenDepth=XU,D.flip=wW,D.flow=vG,D.flowRight=yG,D.fromPairs=JU,D.functions=yq,D.functionsIn=_q,D.groupBy=iW,D.initial=tH,D.intersection=nH,D.intersectionBy=rH,D.intersectionWith=iH,D.invert=Sq,D.invertBy=wq,D.invokeMap=oW,D.iteratee=nS,D.keyBy=sW,D.keys=Lr,D.keysIn=Bi,D.map=Wv,D.mapKeys=Cq,D.mapValues=Eq,D.matches=_G,D.matchesProperty=bG,D.memoize=Gv,D.merge=kq,D.mergeWith=ok,D.method=SG,D.methodOf=wG,D.mixin=rS,D.negate=Kv,D.nthArg=CG,D.omit=Tq,D.omitBy=Pq,D.once=xW,D.orderBy=lW,D.over=EG,D.overArgs=CW,D.overEvery=kG,D.overSome=TG,D.partial=Y2,D.partialRight=QE,D.partition=uW,D.pick=Oq,D.pickBy=sk,D.property=pk,D.propertyOf=PG,D.pull=lH,D.pullAll=jE,D.pullAllBy=uH,D.pullAllWith=cH,D.pullAt=dH,D.range=OG,D.rangeRight=RG,D.rearg=EW,D.reject=fW,D.remove=fH,D.rest=kW,D.reverse=q2,D.sampleSize=pW,D.set=Aq,D.setWith=Iq,D.shuffle=mW,D.slice=hH,D.sortBy=yW,D.sortedUniq=bH,D.sortedUniqBy=SH,D.split=tG,D.spread=TW,D.tail=wH,D.take=xH,D.takeRight=CH,D.takeRightWhile=EH,D.takeWhile=kH,D.tap=BH,D.throttle=PW,D.thru=Hv,D.toArray=nk,D.toPairs=lk,D.toPairsIn=uk,D.toPath=DG,D.toPlainObject=ik,D.transform=Lq,D.unary=OW,D.union=TH,D.unionBy=PH,D.unionWith=OH,D.uniq=RH,D.uniqBy=AH,D.uniqWith=IH,D.unset=Mq,D.unzip=G2,D.unzipWith=BE,D.update=Dq,D.updateWith=Nq,D.values=gd,D.valuesIn=Fq,D.without=LH,D.words=fk,D.wrap=RW,D.xor=MH,D.xorBy=DH,D.xorWith=NH,D.zip=FH,D.zipObject=$H,D.zipObjectDeep=zH,D.zipWith=jH,D.entries=lk,D.entriesIn=uk,D.extend=ak,D.extendWith=Qv,rS(D,D),D.add=FG,D.attempt=hk,D.camelCase=Bq,D.capitalize=ck,D.ceil=$G,D.clamp=$q,D.clone=IW,D.cloneDeep=MW,D.cloneDeepWith=DW,D.cloneWith=LW,D.conformsTo=NW,D.deburr=dk,D.defaultTo=gG,D.divide=zG,D.endsWith=Vq,D.eq=io,D.escape=Uq,D.escapeRegExp=Hq,D.every=QH,D.find=JH,D.findIndex=NE,D.findKey=fq,D.findLast=eW,D.findLastIndex=FE,D.findLastKey=hq,D.floor=jG,D.forEach=UE,D.forEachRight=HE,D.forIn=pq,D.forInRight=mq,D.forOwn=gq,D.forOwnRight=vq,D.get=X2,D.gt=FW,D.gte=$W,D.has=bq,D.hasIn=J2,D.head=zE,D.identity=Vi,D.includes=aW,D.indexOf=eH,D.inRange=zq,D.invoke=xq,D.isArguments=qu,D.isArray=xt,D.isArrayBuffer=zW,D.isArrayLike=ji,D.isArrayLikeObject=nr,D.isBoolean=jW,D.isBuffer=kl,D.isDate=BW,D.isElement=VW,D.isEmpty=UW,D.isEqual=HW,D.isEqualWith=WW,D.isError=Z2,D.isFinite=qW,D.isFunction=Ts,D.isInteger=XE,D.isLength=Yv,D.isMap=JE,D.isMatch=GW,D.isMatchWith=KW,D.isNaN=YW,D.isNative=ZW,D.isNil=XW,D.isNull=QW,D.isNumber=ek,D.isObject=Bn,D.isObjectLike=Zn,D.isPlainObject=np,D.isRegExp=Q2,D.isSafeInteger=JW,D.isSet=tk,D.isString=Zv,D.isSymbol=sa,D.isTypedArray=md,D.isUndefined=eq,D.isWeakMap=tq,D.isWeakSet=nq,D.join=aH,D.kebabCase=Wq,D.last=Oa,D.lastIndexOf=oH,D.lowerCase=qq,D.lowerFirst=Gq,D.lt=rq,D.lte=iq,D.max=BG,D.maxBy=VG,D.mean=UG,D.meanBy=HG,D.min=WG,D.minBy=qG,D.stubArray=aS,D.stubFalse=oS,D.stubObject=AG,D.stubString=IG,D.stubTrue=LG,D.multiply=GG,D.nth=sH,D.noConflict=xG,D.noop=iS,D.now=qv,D.pad=Kq,D.padEnd=Yq,D.padStart=Zq,D.parseInt=Qq,D.random=jq,D.reduce=cW,D.reduceRight=dW,D.repeat=Xq,D.replace=Jq,D.result=Rq,D.round=KG,D.runInContext=Z,D.sample=hW,D.size=gW,D.snakeCase=eG,D.some=vW,D.sortedIndex=pH,D.sortedIndexBy=mH,D.sortedIndexOf=gH,D.sortedLastIndex=vH,D.sortedLastIndexBy=yH,D.sortedLastIndexOf=_H,D.startCase=nG,D.startsWith=rG,D.subtract=YG,D.sum=ZG,D.sumBy=QG,D.template=iG,D.times=MG,D.toFinite=Ps,D.toInteger=kt,D.toLength=rk,D.toLower=aG,D.toNumber=Ra,D.toSafeInteger=aq,D.toString=hn,D.toUpper=oG,D.trim=sG,D.trimEnd=lG,D.trimStart=uG,D.truncate=cG,D.unescape=dG,D.uniqueId=NG,D.upperCase=fG,D.upperFirst=eS,D.each=UE,D.eachRight=HE,D.first=zE,rS(D,function(){var u={};return No(D,function(d,g){gn.call(D.prototype,g)||(u[g]=d)}),u}(),{chain:!1}),D.VERSION=r,$i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){D[u].placeholder=D}),$i(["drop","take"],function(u,d){Vt.prototype[u]=function(g){g=g===n?1:xr(kt(g),0);var k=this.__filtered__&&!d?new Vt(this):this.clone();return k.__filtered__?k.__takeCount__=ii(g,k.__takeCount__):k.__views__.push({size:ii(g,Ce),type:u+(k.__dir__<0?"Right":"")}),k},Vt.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),$i(["filter","map","takeWhile"],function(u,d){var g=d+1,k=g==ae||g==ce;Vt.prototype[u]=function(L){var N=this.clone();return N.__iteratees__.push({iteratee:lt(L,3),type:g}),N.__filtered__=N.__filtered__||k,N}}),$i(["head","last"],function(u,d){var g="take"+(d?"Right":"");Vt.prototype[u]=function(){return this[g](1).value()[0]}}),$i(["initial","tail"],function(u,d){var g="drop"+(d?"":"Right");Vt.prototype[u]=function(){return this.__filtered__?new Vt(this):this[g](1)}}),Vt.prototype.compact=function(){return this.filter(Vi)},Vt.prototype.find=function(u){return this.filter(u).head()},Vt.prototype.findLast=function(u){return this.reverse().find(u)},Vt.prototype.invokeMap=Mt(function(u,d){return typeof u=="function"?new Vt(this):this.map(function(g){return Zh(g,u,d)})}),Vt.prototype.reject=function(u){return this.filter(Kv(lt(u)))},Vt.prototype.slice=function(u,d){u=kt(u);var g=this;return g.__filtered__&&(u>0||d<0)?new Vt(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),d!==n&&(d=kt(d),g=d<0?g.dropRight(-d):g.take(d-u)),g)},Vt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Vt.prototype.toArray=function(){return this.take(Ce)},No(Vt.prototype,function(u,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),k=/^(?:head|last)$/.test(d),L=D[k?"take"+(d=="last"?"Right":""):d],N=k||/^find/.test(d);L&&(D.prototype[d]=function(){var U=this.__wrapped__,H=k?[1]:arguments,Q=U instanceof Vt,de=H[0],pe=Q||xt(U),be=function(zt){var Kt=L.apply(D,En([zt],H));return k&&Ne?Kt[0]:Kt};pe&&g&&typeof de=="function"&&de.length!=1&&(Q=pe=!1);var Ne=this.__chain__,Qe=!!this.__actions__.length,ct=N&&!Ne,Pt=Q&&!Qe;if(!N&&pe){U=Pt?U:new Vt(this);var dt=u.apply(U,H);return dt.__actions__.push({func:Hv,args:[be],thisArg:n}),new ka(dt,Ne)}return ct&&Pt?u.apply(this,H):(dt=this.thru(be),ct?k?dt.value()[0]:dt.value():dt)})}),$i(["pop","push","shift","sort","splice","unshift"],function(u){var d=gv[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",k=/^(?:pop|shift)$/.test(u);D.prototype[u]=function(){var L=arguments;if(k&&!this.__chain__){var N=this.value();return d.apply(xt(N)?N:[],L)}return this[g](function(U){return d.apply(xt(U)?U:[],L)})}}),No(Vt.prototype,function(u,d){var g=D[d];if(g){var k=g.name+"";gn.call(cd,k)||(cd[k]=[]),cd[k].push({name:d,func:g})}}),cd[Fv(n,b).name]=[{name:"wrapper",func:n}],Vt.prototype.clone=dV,Vt.prototype.reverse=fV,Vt.prototype.value=hV,D.prototype.at=VH,D.prototype.chain=UH,D.prototype.commit=HH,D.prototype.next=WH,D.prototype.plant=GH,D.prototype.reverse=KH,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=YH,D.prototype.first=D.prototype.head,Uh&&(D.prototype[Uh]=qH),D},sd=HB();Qt?((Qt.exports=sd)._=sd,Et._=sd):_t._=sd}).call(Wi)})(V1,V1.exports);var Gg=V1.exports;function L1e(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var R$={exports:{}};(function(e,t){(function(n,r){typeof L1e=="function"?e.exports=r():n.pluralize=r()})(Wi,function(){var n=[],r=[],i={},a={},o={};function s(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function l(m,_){return m===_?_:m===m.toLowerCase()?_.toLowerCase():m===m.toUpperCase()?_.toUpperCase():m[0]===m[0].toUpperCase()?_.charAt(0).toUpperCase()+_.substr(1).toLowerCase():_.toLowerCase()}function c(m,_){return m.replace(/\$(\d{1,2})/g,function(b,S){return _[S]||""})}function f(m,_){return m.replace(_[0],function(b,S){var C=c(_[1],arguments);return l(b===""?m[S-1]:b,C)})}function h(m,_,b){if(!m.length||i.hasOwnProperty(m))return _;for(var S=b.length;S--;){var C=b[S];if(C[0].test(_))return f(_,C)}return _}function p(m,_,b){return function(S){var C=S.toLowerCase();return _.hasOwnProperty(C)?l(S,C):m.hasOwnProperty(C)?l(S,m[C]):h(C,S,b)}}function v(m,_,b,S){return function(C){var E=C.toLowerCase();return _.hasOwnProperty(E)?!0:m.hasOwnProperty(E)?!1:h(E,E,b)===E}}function y(m,_,b){var S=_===1?y.singular(m):y.plural(m);return(b?_+" ":"")+S}return y.plural=p(o,a,n),y.isPlural=v(o,a,n),y.singular=p(a,o,r),y.isSingular=v(a,o,r),y.addPluralRule=function(m,_){n.push([s(m),_])},y.addSingularRule=function(m,_){r.push([s(m),_])},y.addUncountableRule=function(m){if(typeof m=="string"){i[m.toLowerCase()]=!0;return}y.addPluralRule(m,"$0"),y.addSingularRule(m,"$0")},y.addIrregularRule=function(m,_){_=_.toLowerCase(),m=m.toLowerCase(),o[m]=_,a[_]=m},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(m){return y.addIrregularRule(m[0],m[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(m){return y.addPluralRule(m[0],m[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(m){return y.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(y.addUncountableRule),y})})(R$);var M1e=R$.exports;const A$=vu(M1e);function I$(e,t){return function(){return e.apply(t,arguments)}}const{toString:D1e}=Object.prototype,{getPrototypeOf:A6}=Object,zb=(e=>t=>{const n=D1e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ps=e=>(e=e.toLowerCase(),t=>zb(t)===e),jb=e=>t=>typeof t===e,{isArray:bh}=Array,rg=jb("undefined");function N1e(e){return e!==null&&!rg(e)&&e.constructor!==null&&!rg(e.constructor)&&qa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const L$=ps("ArrayBuffer");function F1e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&L$(e.buffer),t}const $1e=jb("string"),qa=jb("function"),M$=jb("number"),Bb=e=>e!==null&&typeof e=="object",z1e=e=>e===!0||e===!1,Ey=e=>{if(zb(e)!=="object")return!1;const t=A6(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},j1e=ps("Date"),B1e=ps("File"),V1e=ps("Blob"),U1e=ps("FileList"),H1e=e=>Bb(e)&&qa(e.pipe),W1e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qa(e.append)&&((t=zb(e))==="formdata"||t==="object"&&qa(e.toString)&&e.toString()==="[object FormData]"))},q1e=ps("URLSearchParams"),G1e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),bh(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function D$(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const N$=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),F$=e=>!rg(e)&&e!==N$;function uC(){const{caseless:e}=F$(this)&&this||{},t={},n=(r,i)=>{const a=e&&D$(t,i)||i;Ey(t[a])&&Ey(r)?t[a]=uC(t[a],r):Ey(r)?t[a]=uC({},r):bh(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Kg(arguments[r],n);return t}const K1e=(e,t,n,{allOwnKeys:r}={})=>(Kg(t,(i,a)=>{n&&qa(i)?e[a]=I$(i,n):e[a]=i},{allOwnKeys:r}),e),Y1e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Z1e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Q1e=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&A6(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},X1e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},J1e=e=>{if(!e)return null;if(bh(e))return e;let t=e.length;if(!M$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},e_e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&A6(Uint8Array)),t_e=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},n_e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},r_e=ps("HTMLFormElement"),i_e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),lO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),a_e=ps("RegExp"),$$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kg(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},o_e=e=>{$$(e,(t,n)=>{if(qa(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(qa(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},s_e=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return bh(e)?r(e):r(String(e).split(t)),n},l_e=()=>{},u_e=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pw="abcdefghijklmnopqrstuvwxyz",uO="0123456789",z$={DIGIT:uO,ALPHA:Pw,ALPHA_DIGIT:Pw+Pw.toUpperCase()+uO},c_e=(e=16,t=z$.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function d_e(e){return!!(e&&qa(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const f_e=e=>{const t=new Array(10),n=(r,i)=>{if(Bb(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=bh(r)?[]:{};return Kg(r,(o,s)=>{const l=n(o,i+1);!rg(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},h_e=ps("AsyncFunction"),p_e=e=>e&&(Bb(e)||qa(e))&&qa(e.then)&&qa(e.catch),fe={isArray:bh,isArrayBuffer:L$,isBuffer:N1e,isFormData:W1e,isArrayBufferView:F1e,isString:$1e,isNumber:M$,isBoolean:z1e,isObject:Bb,isPlainObject:Ey,isUndefined:rg,isDate:j1e,isFile:B1e,isBlob:V1e,isRegExp:a_e,isFunction:qa,isStream:H1e,isURLSearchParams:q1e,isTypedArray:e_e,isFileList:U1e,forEach:Kg,merge:uC,extend:K1e,trim:G1e,stripBOM:Y1e,inherits:Z1e,toFlatObject:Q1e,kindOf:zb,kindOfTest:ps,endsWith:X1e,toArray:J1e,forEachEntry:t_e,matchAll:n_e,isHTMLForm:r_e,hasOwnProperty:lO,hasOwnProp:lO,reduceDescriptors:$$,freezeMethods:o_e,toObjectSet:s_e,toCamelCase:i_e,noop:l_e,toFiniteNumber:u_e,findKey:D$,global:N$,isContextDefined:F$,ALPHABET:z$,generateString:c_e,isSpecCompliantForm:d_e,toJSONObject:f_e,isAsyncFn:h_e,isThenable:p_e};function Jt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}fe.inherits(Jt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j$=Jt.prototype,B$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{B$[e]={value:e}});Object.defineProperties(Jt,B$);Object.defineProperty(j$,"isAxiosError",{value:!0});Jt.from=(e,t,n,r,i,a)=>{const o=Object.create(j$);return fe.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Jt.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const m_e=null;function cC(e){return fe.isPlainObject(e)||fe.isArray(e)}function V$(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function cO(e,t,n){return e?e.concat(t).map(function(i,a){return i=V$(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function g_e(e){return fe.isArray(e)&&!e.some(cC)}const v_e=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Vb(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,_){return!fe.isUndefined(_[m])});const r=n.metaTokens,i=n.visitor||f,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(i))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(fe.isDate(y))return y.toISOString();if(!l&&fe.isBlob(y))throw new Jt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(y)||fe.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,m,_){let b=y;if(y&&!_&&typeof y=="object"){if(fe.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=JSON.stringify(y);else if(fe.isArray(y)&&g_e(y)||(fe.isFileList(y)||fe.endsWith(m,"[]"))&&(b=fe.toArray(y)))return m=V$(m),b.forEach(function(C,E){!(fe.isUndefined(C)||C===null)&&t.append(o===!0?cO([m],E,a):o===null?m:m+"[]",c(C))}),!1}return cC(y)?!0:(t.append(cO(_,m,a),c(y)),!1)}const h=[],p=Object.assign(v_e,{defaultVisitor:f,convertValue:c,isVisitable:cC});function v(y,m){if(!fe.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(y),fe.forEach(y,function(b,S){(!(fe.isUndefined(b)||b===null)&&i.call(t,b,fe.isString(S)?S.trim():S,m,p))===!0&&v(b,m?m.concat(S):[S])}),h.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return v(e),t}function dO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function I6(e,t){this._pairs=[],e&&Vb(e,this,t)}const U$=I6.prototype;U$.append=function(t,n){this._pairs.push([t,n])};U$.toString=function(t){const n=t?function(r){return t.call(this,r,dO)}:dO;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function y_e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function H$(e,t,n){if(!t)return e;const r=n&&n.encode||y_e,i=n&&n.serialize;let a;if(i?a=i(t,n):a=fe.isURLSearchParams(t)?t.toString():new I6(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class __e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fO=__e,W$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b_e=typeof URLSearchParams<"u"?URLSearchParams:I6,S_e=typeof FormData<"u"?FormData:null,w_e=typeof Blob<"u"?Blob:null,x_e=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),C_e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yo={isBrowser:!0,classes:{URLSearchParams:b_e,FormData:S_e,Blob:w_e},isStandardBrowserEnv:x_e,isStandardBrowserWebWorkerEnv:C_e,protocols:["http","https","file","blob","url","data"]};function E_e(e,t){return Vb(e,new yo.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return yo.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function k_e(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T_e(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function q$(e){function t(n,r,i,a){let o=n[a++];const s=Number.isFinite(+o),l=a>=n.length;return o=!o&&fe.isArray(i)?i.length:o,l?(fe.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!fe.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&fe.isArray(i[o])&&(i[o]=T_e(i[o])),!s)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,i)=>{t(k_e(r),i,n,0)}),n}return null}function P_e(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const L6={transitional:W$,adapter:yo.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=fe.isObject(t);if(a&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return i&&i?JSON.stringify(q$(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return E_e(t,this.formSerializer).toString();if((s=fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vb(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),P_e(t)):t}],transformResponse:[function(t){const n=this.transitional||L6.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&fe.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Jt.from(s,Jt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yo.classes.FormData,Blob:yo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{L6.headers[e]={}});const M6=L6,O_e=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),R_e=e=>{const t={};let n,r,i;return e&&e.split(`
     460}`;var Pt=hk(function(){return sn(N,Qe+"return "+be).apply(n,U)});if(Pt.source=be,Z2(Pt))throw Pt;return Pt}function aG(u){return hn(u).toLowerCase()}function oG(u){return hn(u).toUpperCase()}function sG(u,d,g){if(u=hn(u),u&&(g||d===n))return fv(u);if(!u||!(d=oa(d)))return u;var k=no(u),L=no(d),N=zh(k,L),U=jh(k,L)+1;return El(k,N,U).join("")}function lG(u,d,g){if(u=hn(u),u&&(g||d===n))return u.slice(0,k8(u)+1);if(!u||!(d=oa(d)))return u;var k=no(u),L=jh(k,no(d))+1;return El(k,0,L).join("")}function uG(u,d,g){if(u=hn(u),u&&(g||d===n))return u.replace(jn,"");if(!u||!(d=oa(d)))return u;var k=no(u),L=zh(k,no(d));return El(k,L).join("")}function cG(u,d){var g=z,k=Y;if(Bn(d)){var L="separator"in d?d.separator:L;g="length"in d?kt(d.length):g,k="omission"in d?oa(d.omission):k}u=hn(u);var N=u.length;if(_l(u)){var U=no(u);N=U.length}if(g>=N)return u;var H=g-od(k);if(H<1)return k;var Q=U?El(U,0,H).join(""):u.slice(0,H);if(L===n)return Q+k;if(U&&(H+=Q.length-H),Q2(L)){if(u.slice(H).search(L)){var de,pe=Q;for(L.global||(L=h2(L.source,hn(an.exec(L))+"g")),L.lastIndex=0;de=L.exec(pe);)var be=de.index;Q=Q.slice(0,be===n?H:be)}}else if(u.indexOf(oa(L),H)!=H){var Ne=Q.lastIndexOf(L);Ne>-1&&(Q=Q.slice(0,Ne))}return Q+k}function dG(u){return u=hn(u),u&&gt.test(u)?u.replace(De,jB):u}var fG=hd(function(u,d,g){return u+(g?" ":"")+d.toUpperCase()}),eS=pE("toUpperCase");function fk(u,d,g){return u=hn(u),d=g?n:d,d===n?d2(u)?UB(u):$(u):u.match(d)||[]}var hk=Mt(function(u,d){try{return bi(u,n,d)}catch(g){return Z2(g)?g:new bt(g)}}),hG=Es(function(u,d){return $i(d,function(g){g=$o(g),xs(u,g,K2(u[g],u))}),u});function pG(u){var d=u==null?0:u.length,g=lt();return u=d?Cn(u,function(k){if(typeof k[1]!="function")throw new Ea(o);return[g(k[0]),k[1]]}):[],Mt(function(k){for(var L=-1;++L<d;){var N=u[L];if(bi(N[0],this,k))return bi(N[1],this,k)}})}function mG(u){return jV(Ta(u,h))}function tS(u){return function(){return u}}function gG(u,d){return u==null||u!==u?d:u}var vG=gE(),yG=gE(!0);function Vi(u){return u}function nS(u){return q8(typeof u=="function"?u:Ta(u,h))}function _G(u){return K8(Ta(u,h))}function bG(u,d){return Y8(u,Ta(d,h))}var SG=Mt(function(u,d){return function(g){return Zh(g,u,d)}}),wG=Mt(function(u,d){return function(g){return Zh(u,g,d)}});function rS(u,d,g){var k=Lr(d),L=Iv(d,k);g==null&&!(Bn(d)&&(L.length||!k.length))&&(g=d,d=u,u=this,L=Iv(d,Lr(d)));var N=!(Bn(g)&&"chain"in g)||!!g.chain,U=Ts(u);return $i(L,function(H){var Q=d[H];u[H]=Q,U&&(u.prototype[H]=function(){var de=this.__chain__;if(N||de){var pe=u(this.__wrapped__),be=pe.__actions__=zi(this.__actions__);return be.push({func:Q,args:arguments,thisArg:u}),pe.__chain__=de,pe}return Q.apply(u,En([this.value()],arguments))})}),u}function xG(){return _t._===this&&(_t._=YB),this}function iS(){}function CG(u){return u=kt(u),Mt(function(d){return Z8(d,u)})}var EG=D2(Cn),kG=D2(cv),TG=D2(O);function pk(u){return V2(u)?Xt($o(u)):rU(u)}function PG(u){return function(d){return u==null?n:Uu(u,d)}}var OG=yE(),RG=yE(!0);function aS(){return[]}function oS(){return!1}function AG(){return{}}function IG(){return""}function LG(){return!0}function MG(u,d){if(u=kt(u),u<1||u>J)return[];var g=Ce,k=ii(u,Ce);d=lt(d),u-=Ce;for(var L=Fh(k,d);++g<u;)d(g);return L}function DG(u){return xt(u)?Cn(u,$o):sa(u)?[u]:zi(ME(hn(u)))}function NG(u){var d=++GB;return hn(u)+d}var FG=$v(function(u,d){return u+d},0),$G=N2("ceil"),zG=$v(function(u,d){return u/d},1),jG=N2("floor");function BG(u){return u&&u.length?Av(u,Vi,S2):n}function VG(u,d){return u&&u.length?Av(u,lt(d,2),S2):n}function UG(u){return Gt(u,Vi)}function HG(u,d){return Gt(u,lt(d,2))}function WG(u){return u&&u.length?Av(u,Vi,E2):n}function qG(u,d){return u&&u.length?Av(u,lt(d,2),E2):n}var GG=$v(function(u,d){return u*d},1),KG=N2("round"),YG=$v(function(u,d){return u-d},0);function ZG(u){return u&&u.length?id(u,Vi):0}function QG(u,d){return u&&u.length?id(u,lt(d,2)):0}return D.after=_W,D.ary=WE,D.assign=oq,D.assignIn=ak,D.assignInWith=Qv,D.assignWith=sq,D.at=lq,D.before=qE,D.bind=K2,D.bindAll=hG,D.bindKey=GE,D.castArray=AW,D.chain=VE,D.chunk=jU,D.compact=BU,D.concat=VU,D.cond=pG,D.conforms=mG,D.constant=tS,D.countBy=ZH,D.create=uq,D.curry=KE,D.curryRight=YE,D.debounce=ZE,D.defaults=cq,D.defaultsDeep=dq,D.defer=bW,D.delay=SW,D.difference=UU,D.differenceBy=HU,D.differenceWith=WU,D.drop=qU,D.dropRight=GU,D.dropRightWhile=KU,D.dropWhile=YU,D.fill=ZU,D.filter=XH,D.flatMap=tW,D.flatMapDeep=nW,D.flatMapDepth=rW,D.flatten=$E,D.flattenDeep=QU,D.flattenDepth=XU,D.flip=wW,D.flow=vG,D.flowRight=yG,D.fromPairs=JU,D.functions=yq,D.functionsIn=_q,D.groupBy=iW,D.initial=tH,D.intersection=nH,D.intersectionBy=rH,D.intersectionWith=iH,D.invert=Sq,D.invertBy=wq,D.invokeMap=oW,D.iteratee=nS,D.keyBy=sW,D.keys=Lr,D.keysIn=Bi,D.map=Wv,D.mapKeys=Cq,D.mapValues=Eq,D.matches=_G,D.matchesProperty=bG,D.memoize=Gv,D.merge=kq,D.mergeWith=ok,D.method=SG,D.methodOf=wG,D.mixin=rS,D.negate=Kv,D.nthArg=CG,D.omit=Tq,D.omitBy=Pq,D.once=xW,D.orderBy=lW,D.over=EG,D.overArgs=CW,D.overEvery=kG,D.overSome=TG,D.partial=Y2,D.partialRight=QE,D.partition=uW,D.pick=Oq,D.pickBy=sk,D.property=pk,D.propertyOf=PG,D.pull=lH,D.pullAll=jE,D.pullAllBy=uH,D.pullAllWith=cH,D.pullAt=dH,D.range=OG,D.rangeRight=RG,D.rearg=EW,D.reject=fW,D.remove=fH,D.rest=kW,D.reverse=q2,D.sampleSize=pW,D.set=Aq,D.setWith=Iq,D.shuffle=mW,D.slice=hH,D.sortBy=yW,D.sortedUniq=bH,D.sortedUniqBy=SH,D.split=tG,D.spread=TW,D.tail=wH,D.take=xH,D.takeRight=CH,D.takeRightWhile=EH,D.takeWhile=kH,D.tap=BH,D.throttle=PW,D.thru=Hv,D.toArray=nk,D.toPairs=lk,D.toPairsIn=uk,D.toPath=DG,D.toPlainObject=ik,D.transform=Lq,D.unary=OW,D.union=TH,D.unionBy=PH,D.unionWith=OH,D.uniq=RH,D.uniqBy=AH,D.uniqWith=IH,D.unset=Mq,D.unzip=G2,D.unzipWith=BE,D.update=Dq,D.updateWith=Nq,D.values=gd,D.valuesIn=Fq,D.without=LH,D.words=fk,D.wrap=RW,D.xor=MH,D.xorBy=DH,D.xorWith=NH,D.zip=FH,D.zipObject=$H,D.zipObjectDeep=zH,D.zipWith=jH,D.entries=lk,D.entriesIn=uk,D.extend=ak,D.extendWith=Qv,rS(D,D),D.add=FG,D.attempt=hk,D.camelCase=Bq,D.capitalize=ck,D.ceil=$G,D.clamp=$q,D.clone=IW,D.cloneDeep=MW,D.cloneDeepWith=DW,D.cloneWith=LW,D.conformsTo=NW,D.deburr=dk,D.defaultTo=gG,D.divide=zG,D.endsWith=Vq,D.eq=io,D.escape=Uq,D.escapeRegExp=Hq,D.every=QH,D.find=JH,D.findIndex=NE,D.findKey=fq,D.findLast=eW,D.findLastIndex=FE,D.findLastKey=hq,D.floor=jG,D.forEach=UE,D.forEachRight=HE,D.forIn=pq,D.forInRight=mq,D.forOwn=gq,D.forOwnRight=vq,D.get=X2,D.gt=FW,D.gte=$W,D.has=bq,D.hasIn=J2,D.head=zE,D.identity=Vi,D.includes=aW,D.indexOf=eH,D.inRange=zq,D.invoke=xq,D.isArguments=qu,D.isArray=xt,D.isArrayBuffer=zW,D.isArrayLike=ji,D.isArrayLikeObject=nr,D.isBoolean=jW,D.isBuffer=kl,D.isDate=BW,D.isElement=VW,D.isEmpty=UW,D.isEqual=HW,D.isEqualWith=WW,D.isError=Z2,D.isFinite=qW,D.isFunction=Ts,D.isInteger=XE,D.isLength=Yv,D.isMap=JE,D.isMatch=GW,D.isMatchWith=KW,D.isNaN=YW,D.isNative=ZW,D.isNil=XW,D.isNull=QW,D.isNumber=ek,D.isObject=Bn,D.isObjectLike=Zn,D.isPlainObject=np,D.isRegExp=Q2,D.isSafeInteger=JW,D.isSet=tk,D.isString=Zv,D.isSymbol=sa,D.isTypedArray=md,D.isUndefined=eq,D.isWeakMap=tq,D.isWeakSet=nq,D.join=aH,D.kebabCase=Wq,D.last=Oa,D.lastIndexOf=oH,D.lowerCase=qq,D.lowerFirst=Gq,D.lt=rq,D.lte=iq,D.max=BG,D.maxBy=VG,D.mean=UG,D.meanBy=HG,D.min=WG,D.minBy=qG,D.stubArray=aS,D.stubFalse=oS,D.stubObject=AG,D.stubString=IG,D.stubTrue=LG,D.multiply=GG,D.nth=sH,D.noConflict=xG,D.noop=iS,D.now=qv,D.pad=Kq,D.padEnd=Yq,D.padStart=Zq,D.parseInt=Qq,D.random=jq,D.reduce=cW,D.reduceRight=dW,D.repeat=Xq,D.replace=Jq,D.result=Rq,D.round=KG,D.runInContext=Z,D.sample=hW,D.size=gW,D.snakeCase=eG,D.some=vW,D.sortedIndex=pH,D.sortedIndexBy=mH,D.sortedIndexOf=gH,D.sortedLastIndex=vH,D.sortedLastIndexBy=yH,D.sortedLastIndexOf=_H,D.startCase=nG,D.startsWith=rG,D.subtract=YG,D.sum=ZG,D.sumBy=QG,D.template=iG,D.times=MG,D.toFinite=Ps,D.toInteger=kt,D.toLength=rk,D.toLower=aG,D.toNumber=Ra,D.toSafeInteger=aq,D.toString=hn,D.toUpper=oG,D.trim=sG,D.trimEnd=lG,D.trimStart=uG,D.truncate=cG,D.unescape=dG,D.uniqueId=NG,D.upperCase=fG,D.upperFirst=eS,D.each=UE,D.eachRight=HE,D.first=zE,rS(D,function(){var u={};return No(D,function(d,g){gn.call(D.prototype,g)||(u[g]=d)}),u}(),{chain:!1}),D.VERSION=r,$i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){D[u].placeholder=D}),$i(["drop","take"],function(u,d){Vt.prototype[u]=function(g){g=g===n?1:xr(kt(g),0);var k=this.__filtered__&&!d?new Vt(this):this.clone();return k.__filtered__?k.__takeCount__=ii(g,k.__takeCount__):k.__views__.push({size:ii(g,Ce),type:u+(k.__dir__<0?"Right":"")}),k},Vt.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),$i(["filter","map","takeWhile"],function(u,d){var g=d+1,k=g==ae||g==ce;Vt.prototype[u]=function(L){var N=this.clone();return N.__iteratees__.push({iteratee:lt(L,3),type:g}),N.__filtered__=N.__filtered__||k,N}}),$i(["head","last"],function(u,d){var g="take"+(d?"Right":"");Vt.prototype[u]=function(){return this[g](1).value()[0]}}),$i(["initial","tail"],function(u,d){var g="drop"+(d?"":"Right");Vt.prototype[u]=function(){return this.__filtered__?new Vt(this):this[g](1)}}),Vt.prototype.compact=function(){return this.filter(Vi)},Vt.prototype.find=function(u){return this.filter(u).head()},Vt.prototype.findLast=function(u){return this.reverse().find(u)},Vt.prototype.invokeMap=Mt(function(u,d){return typeof u=="function"?new Vt(this):this.map(function(g){return Zh(g,u,d)})}),Vt.prototype.reject=function(u){return this.filter(Kv(lt(u)))},Vt.prototype.slice=function(u,d){u=kt(u);var g=this;return g.__filtered__&&(u>0||d<0)?new Vt(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),d!==n&&(d=kt(d),g=d<0?g.dropRight(-d):g.take(d-u)),g)},Vt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Vt.prototype.toArray=function(){return this.take(Ce)},No(Vt.prototype,function(u,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),k=/^(?:head|last)$/.test(d),L=D[k?"take"+(d=="last"?"Right":""):d],N=k||/^find/.test(d);L&&(D.prototype[d]=function(){var U=this.__wrapped__,H=k?[1]:arguments,Q=U instanceof Vt,de=H[0],pe=Q||xt(U),be=function(zt){var Kt=L.apply(D,En([zt],H));return k&&Ne?Kt[0]:Kt};pe&&g&&typeof de=="function"&&de.length!=1&&(Q=pe=!1);var Ne=this.__chain__,Qe=!!this.__actions__.length,ct=N&&!Ne,Pt=Q&&!Qe;if(!N&&pe){U=Pt?U:new Vt(this);var dt=u.apply(U,H);return dt.__actions__.push({func:Hv,args:[be],thisArg:n}),new ka(dt,Ne)}return ct&&Pt?u.apply(this,H):(dt=this.thru(be),ct?k?dt.value()[0]:dt.value():dt)})}),$i(["pop","push","shift","sort","splice","unshift"],function(u){var d=gv[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",k=/^(?:pop|shift)$/.test(u);D.prototype[u]=function(){var L=arguments;if(k&&!this.__chain__){var N=this.value();return d.apply(xt(N)?N:[],L)}return this[g](function(U){return d.apply(xt(U)?U:[],L)})}}),No(Vt.prototype,function(u,d){var g=D[d];if(g){var k=g.name+"";gn.call(cd,k)||(cd[k]=[]),cd[k].push({name:d,func:g})}}),cd[Fv(n,b).name]=[{name:"wrapper",func:n}],Vt.prototype.clone=dV,Vt.prototype.reverse=fV,Vt.prototype.value=hV,D.prototype.at=VH,D.prototype.chain=UH,D.prototype.commit=HH,D.prototype.next=WH,D.prototype.plant=GH,D.prototype.reverse=KH,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=YH,D.prototype.first=D.prototype.head,Uh&&(D.prototype[Uh]=qH),D},sd=HB();Qt?((Qt.exports=sd)._=sd,Et._=sd):_t._=sd}).call(Wi)})(V1,V1.exports);var Gg=V1.exports;function L1e(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var R$={exports:{}};(function(e,t){(function(n,r){typeof L1e=="function"?e.exports=r():n.pluralize=r()})(Wi,function(){var n=[],r=[],i={},a={},o={};function s(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function l(m,_){return m===_?_:m===m.toLowerCase()?_.toLowerCase():m===m.toUpperCase()?_.toUpperCase():m[0]===m[0].toUpperCase()?_.charAt(0).toUpperCase()+_.substr(1).toLowerCase():_.toLowerCase()}function c(m,_){return m.replace(/\$(\d{1,2})/g,function(b,S){return _[S]||""})}function f(m,_){return m.replace(_[0],function(b,S){var C=c(_[1],arguments);return l(b===""?m[S-1]:b,C)})}function h(m,_,b){if(!m.length||i.hasOwnProperty(m))return _;for(var S=b.length;S--;){var C=b[S];if(C[0].test(_))return f(_,C)}return _}function p(m,_,b){return function(S){var C=S.toLowerCase();return _.hasOwnProperty(C)?l(S,C):m.hasOwnProperty(C)?l(S,m[C]):h(C,S,b)}}function v(m,_,b,S){return function(C){var E=C.toLowerCase();return _.hasOwnProperty(E)?!0:m.hasOwnProperty(E)?!1:h(E,E,b)===E}}function y(m,_,b){var S=_===1?y.singular(m):y.plural(m);return(b?_+" ":"")+S}return y.plural=p(o,a,n),y.isPlural=v(o,a,n),y.singular=p(a,o,r),y.isSingular=v(a,o,r),y.addPluralRule=function(m,_){n.push([s(m),_])},y.addSingularRule=function(m,_){r.push([s(m),_])},y.addUncountableRule=function(m){if(typeof m=="string"){i[m.toLowerCase()]=!0;return}y.addPluralRule(m,"$0"),y.addSingularRule(m,"$0")},y.addIrregularRule=function(m,_){_=_.toLowerCase(),m=m.toLowerCase(),o[m]=_,a[_]=m},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(m){return y.addIrregularRule(m[0],m[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(m){return y.addPluralRule(m[0],m[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(m){return y.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(y.addUncountableRule),y})})(R$);var M1e=R$.exports;const A$=vu(M1e);function I$(e,t){return function(){return e.apply(t,arguments)}}const{toString:D1e}=Object.prototype,{getPrototypeOf:A6}=Object,zb=(e=>t=>{const n=D1e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ps=e=>(e=e.toLowerCase(),t=>zb(t)===e),jb=e=>t=>typeof t===e,{isArray:bh}=Array,rg=jb("undefined");function N1e(e){return e!==null&&!rg(e)&&e.constructor!==null&&!rg(e.constructor)&&qa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const L$=ps("ArrayBuffer");function F1e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&L$(e.buffer),t}const $1e=jb("string"),qa=jb("function"),M$=jb("number"),Bb=e=>e!==null&&typeof e=="object",z1e=e=>e===!0||e===!1,Ey=e=>{if(zb(e)!=="object")return!1;const t=A6(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},j1e=ps("Date"),B1e=ps("File"),V1e=ps("Blob"),U1e=ps("FileList"),H1e=e=>Bb(e)&&qa(e.pipe),W1e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qa(e.append)&&((t=zb(e))==="formdata"||t==="object"&&qa(e.toString)&&e.toString()==="[object FormData]"))},q1e=ps("URLSearchParams"),G1e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),bh(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function D$(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const N$=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),F$=e=>!rg(e)&&e!==N$;function u3(){const{caseless:e}=F$(this)&&this||{},t={},n=(r,i)=>{const a=e&&D$(t,i)||i;Ey(t[a])&&Ey(r)?t[a]=u3(t[a],r):Ey(r)?t[a]=u3({},r):bh(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Kg(arguments[r],n);return t}const K1e=(e,t,n,{allOwnKeys:r}={})=>(Kg(t,(i,a)=>{n&&qa(i)?e[a]=I$(i,n):e[a]=i},{allOwnKeys:r}),e),Y1e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Z1e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Q1e=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&A6(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},X1e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},J1e=e=>{if(!e)return null;if(bh(e))return e;let t=e.length;if(!M$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},e_e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&A6(Uint8Array)),t_e=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},n_e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},r_e=ps("HTMLFormElement"),i_e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),lO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),a_e=ps("RegExp"),$$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kg(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},o_e=e=>{$$(e,(t,n)=>{if(qa(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(qa(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},s_e=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return bh(e)?r(e):r(String(e).split(t)),n},l_e=()=>{},u_e=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pw="abcdefghijklmnopqrstuvwxyz",uO="0123456789",z$={DIGIT:uO,ALPHA:Pw,ALPHA_DIGIT:Pw+Pw.toUpperCase()+uO},c_e=(e=16,t=z$.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function d_e(e){return!!(e&&qa(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const f_e=e=>{const t=new Array(10),n=(r,i)=>{if(Bb(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=bh(r)?[]:{};return Kg(r,(o,s)=>{const l=n(o,i+1);!rg(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},h_e=ps("AsyncFunction"),p_e=e=>e&&(Bb(e)||qa(e))&&qa(e.then)&&qa(e.catch),fe={isArray:bh,isArrayBuffer:L$,isBuffer:N1e,isFormData:W1e,isArrayBufferView:F1e,isString:$1e,isNumber:M$,isBoolean:z1e,isObject:Bb,isPlainObject:Ey,isUndefined:rg,isDate:j1e,isFile:B1e,isBlob:V1e,isRegExp:a_e,isFunction:qa,isStream:H1e,isURLSearchParams:q1e,isTypedArray:e_e,isFileList:U1e,forEach:Kg,merge:u3,extend:K1e,trim:G1e,stripBOM:Y1e,inherits:Z1e,toFlatObject:Q1e,kindOf:zb,kindOfTest:ps,endsWith:X1e,toArray:J1e,forEachEntry:t_e,matchAll:n_e,isHTMLForm:r_e,hasOwnProperty:lO,hasOwnProp:lO,reduceDescriptors:$$,freezeMethods:o_e,toObjectSet:s_e,toCamelCase:i_e,noop:l_e,toFiniteNumber:u_e,findKey:D$,global:N$,isContextDefined:F$,ALPHABET:z$,generateString:c_e,isSpecCompliantForm:d_e,toJSONObject:f_e,isAsyncFn:h_e,isThenable:p_e};function Jt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}fe.inherits(Jt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j$=Jt.prototype,B$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{B$[e]={value:e}});Object.defineProperties(Jt,B$);Object.defineProperty(j$,"isAxiosError",{value:!0});Jt.from=(e,t,n,r,i,a)=>{const o=Object.create(j$);return fe.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Jt.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const m_e=null;function c3(e){return fe.isPlainObject(e)||fe.isArray(e)}function V$(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function cO(e,t,n){return e?e.concat(t).map(function(i,a){return i=V$(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function g_e(e){return fe.isArray(e)&&!e.some(c3)}const v_e=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Vb(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,_){return!fe.isUndefined(_[m])});const r=n.metaTokens,i=n.visitor||f,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(i))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(fe.isDate(y))return y.toISOString();if(!l&&fe.isBlob(y))throw new Jt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(y)||fe.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,m,_){let b=y;if(y&&!_&&typeof y=="object"){if(fe.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=JSON.stringify(y);else if(fe.isArray(y)&&g_e(y)||(fe.isFileList(y)||fe.endsWith(m,"[]"))&&(b=fe.toArray(y)))return m=V$(m),b.forEach(function(C,E){!(fe.isUndefined(C)||C===null)&&t.append(o===!0?cO([m],E,a):o===null?m:m+"[]",c(C))}),!1}return c3(y)?!0:(t.append(cO(_,m,a),c(y)),!1)}const h=[],p=Object.assign(v_e,{defaultVisitor:f,convertValue:c,isVisitable:c3});function v(y,m){if(!fe.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(y),fe.forEach(y,function(b,S){(!(fe.isUndefined(b)||b===null)&&i.call(t,b,fe.isString(S)?S.trim():S,m,p))===!0&&v(b,m?m.concat(S):[S])}),h.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return v(e),t}function dO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function I6(e,t){this._pairs=[],e&&Vb(e,this,t)}const U$=I6.prototype;U$.append=function(t,n){this._pairs.push([t,n])};U$.toString=function(t){const n=t?function(r){return t.call(this,r,dO)}:dO;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function y_e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function H$(e,t,n){if(!t)return e;const r=n&&n.encode||y_e,i=n&&n.serialize;let a;if(i?a=i(t,n):a=fe.isURLSearchParams(t)?t.toString():new I6(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class __e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fO=__e,W$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b_e=typeof URLSearchParams<"u"?URLSearchParams:I6,S_e=typeof FormData<"u"?FormData:null,w_e=typeof Blob<"u"?Blob:null,x_e=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),C_e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yo={isBrowser:!0,classes:{URLSearchParams:b_e,FormData:S_e,Blob:w_e},isStandardBrowserEnv:x_e,isStandardBrowserWebWorkerEnv:C_e,protocols:["http","https","file","blob","url","data"]};function E_e(e,t){return Vb(e,new yo.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return yo.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function k_e(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T_e(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function q$(e){function t(n,r,i,a){let o=n[a++];const s=Number.isFinite(+o),l=a>=n.length;return o=!o&&fe.isArray(i)?i.length:o,l?(fe.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!fe.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&fe.isArray(i[o])&&(i[o]=T_e(i[o])),!s)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,i)=>{t(k_e(r),i,n,0)}),n}return null}function P_e(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const L6={transitional:W$,adapter:yo.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=fe.isObject(t);if(a&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return i&&i?JSON.stringify(q$(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return E_e(t,this.formSerializer).toString();if((s=fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vb(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),P_e(t)):t}],transformResponse:[function(t){const n=this.transitional||L6.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&fe.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Jt.from(s,Jt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yo.classes.FormData,Blob:yo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{L6.headers[e]={}});const M6=L6,O_e=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),R_e=e=>{const t={};let n,r,i;return e&&e.split(`
    461461`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&O_e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},hO=Symbol("internals");function Ep(e){return e&&String(e).trim().toLowerCase()}function ky(e){return e===!1||e==null?e:fe.isArray(e)?e.map(ky):String(e)}function A_e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const I_e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ow(e,t,n,r,i){if(fe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!fe.isString(t)){if(fe.isString(r))return t.indexOf(r)!==-1;if(fe.isRegExp(r))return r.test(t)}}function L_e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function M_e(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class Ub{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const f=Ep(l);if(!f)throw new Error("header name must be a non-empty string");const h=fe.findKey(i,f);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||l]=ky(s))}const o=(s,l)=>fe.forEach(s,(c,f)=>a(c,f,l));return fe.isPlainObject(t)||t instanceof this.constructor?o(t,n):fe.isString(t)&&(t=t.trim())&&!I_e(t)?o(R_e(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=Ep(t),t){const r=fe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return A_e(i);if(fe.isFunction(n))return n.call(this,i,r);if(fe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ep(t),t){const r=fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ow(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Ep(o),o){const s=fe.findKey(r,o);s&&(!n||Ow(r,r[s],s,n))&&(delete r[s],i=!0)}}return fe.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Ow(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return fe.forEach(this,(i,a)=>{const o=fe.findKey(r,a);if(o){n[o]=ky(i),delete n[a];return}const s=t?L_e(a):String(a).trim();s!==a&&delete n[a],n[s]=ky(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return fe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
    462 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[hO]=this[hO]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Ep(o);r[s]||(M_e(i,o),r[s]=!0)}return fe.isArray(t)?t.forEach(a):a(t),this}}Ub.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(Ub.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});fe.freezeMethods(Ub);const qs=Ub;function Rw(e,t){const n=this||M6,r=t||n,i=qs.from(r.headers);let a=r.data;return fe.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function G$(e){return!!(e&&e.__CANCEL__)}function Yg(e,t,n){Jt.call(this,e??"canceled",Jt.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(Yg,Jt,{__CANCEL__:!0});function D_e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Jt("Request failed with status code "+n.status,[Jt.ERR_BAD_REQUEST,Jt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const N_e=yo.isStandardBrowserEnv?function(){return{write:function(n,r,i,a,o,s){const l=[];l.push(n+"="+encodeURIComponent(r)),fe.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),fe.isString(a)&&l.push("path="+a),fe.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function F_e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $_e(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function K$(e,t){return e&&!F_e(t)?$_e(e,t):t}const z_e=yo.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const s=fe.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function j_e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function B_e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),f=r[a];o||(o=c),n[i]=l,r[i]=c;let h=a,p=0;for(;h!==i;)p+=n[h++],h=h%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const v=f&&c-f;return v?Math.round(p*1e3/v):void 0}}function pO(e,t){let n=0;const r=B_e(50,250);return i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-n,l=r(s),c=a<=o;n=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&c?(o-a)/l:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const V_e=typeof XMLHttpRequest<"u",U_e=V_e&&function(e){return new Promise(function(n,r){let i=e.data;const a=qs.from(e.headers).normalize(),o=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}fe.isFormData(i)&&(yo.isStandardBrowserEnv||yo.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+y))}const f=K$(e.baseURL,e.url);c.open(e.method.toUpperCase(),H$(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const v=qs.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};D_e(function(b){n(b),l()},function(b){r(b),l()},m),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(r(new Jt("Request aborted",Jt.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new Jt("Network Error",Jt.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||W$;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new Jt(y,m.clarifyTimeoutError?Jt.ETIMEDOUT:Jt.ECONNABORTED,e,c)),c=null},yo.isStandardBrowserEnv){const v=(e.withCredentials||z_e(f))&&e.xsrfCookieName&&N_e.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in c&&fe.forEach(a.toJSON(),function(y,m){c.setRequestHeader(m,y)}),fe.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",pO(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",pO(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=v=>{c&&(r(!v||v.type?new Yg(null,e,c):v),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=j_e(f);if(p&&yo.protocols.indexOf(p)===-1){r(new Jt("Unsupported protocol "+p+":",Jt.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Ty={http:m_e,xhr:U_e};fe.forEach(Ty,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Y$={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=fe.isString(n)?Ty[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new Jt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(fe.hasOwnProp(Ty,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!fe.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Ty};function Aw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yg(null,e)}function mO(e){return Aw(e),e.headers=qs.from(e.headers),e.data=Rw.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Y$.getAdapter(e.adapter||M6.adapter)(e).then(function(r){return Aw(e),r.data=Rw.call(e,e.transformResponse,r),r.headers=qs.from(r.headers),r},function(r){return G$(r)||(Aw(e),r&&r.response&&(r.response.data=Rw.call(e,e.transformResponse,r.response),r.response.headers=qs.from(r.response.headers))),Promise.reject(r)})}const gO=e=>e instanceof qs?e.toJSON():e;function eh(e,t){t=t||{};const n={};function r(c,f,h){return fe.isPlainObject(c)&&fe.isPlainObject(f)?fe.merge.call({caseless:h},c,f):fe.isPlainObject(f)?fe.merge({},f):fe.isArray(f)?f.slice():f}function i(c,f,h){if(fe.isUndefined(f)){if(!fe.isUndefined(c))return r(void 0,c,h)}else return r(c,f,h)}function a(c,f){if(!fe.isUndefined(f))return r(void 0,f)}function o(c,f){if(fe.isUndefined(f)){if(!fe.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function s(c,f,h){if(h in t)return r(c,f);if(h in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,f)=>i(gO(c),gO(f),!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=l[f]||i,p=h(e[f],t[f],f);fe.isUndefined(p)&&h!==s||(n[f]=p)}),n}const Z$="1.5.0",D6={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{D6[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vO={};D6.transitional=function(t,n,r){function i(a,o){return"[Axios v"+Z$+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new Jt(i(o," has been removed"+(n?" in "+n:"")),Jt.ERR_DEPRECATED);return n&&!vO[o]&&(vO[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function H_e(e,t,n){if(typeof e!="object")throw new Jt("options must be an object",Jt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new Jt("option "+a+" must be "+l,Jt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Jt("Unknown option "+a,Jt.ERR_BAD_OPTION)}}const dC={assertOptions:H_e,validators:D6},Al=dC.validators;class U1{constructor(t){this.defaults=t,this.interceptors={request:new fO,response:new fO}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=eh(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&dC.assertOptions(r,{silentJSONParsing:Al.transitional(Al.boolean),forcedJSONParsing:Al.transitional(Al.boolean),clarifyTimeoutError:Al.transitional(Al.boolean)},!1),i!=null&&(fe.isFunction(i)?n.paramsSerializer={serialize:i}:dC.assertOptions(i,{encode:Al.function,serialize:Al.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&fe.merge(a.common,a[n.method]);a&&fe.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=qs.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let f,h=0,p;if(!l){const y=[mO.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),p=y.length,f=Promise.resolve(n);h<p;)f=f.then(y[h++],y[h++]);return f}p=s.length;let v=n;for(h=0;h<p;){const y=s[h++],m=s[h++];try{v=y(v)}catch(_){m.call(this,_);break}}try{f=mO.call(this,v)}catch(y){return Promise.reject(y)}for(h=0,p=c.length;h<p;)f=f.then(c[h++],c[h++]);return f}getUri(t){t=eh(this.defaults,t);const n=K$(t.baseURL,t.url);return H$(n,t.params,t.paramsSerializer)}}fe.forEach(["delete","get","head","options"],function(t){U1.prototype[t]=function(n,r){return this.request(eh(r||{},{method:t,url:n,data:(r||{}).data}))}});fe.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(eh(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}U1.prototype[t]=n(),U1.prototype[t+"Form"]=n(!0)});const Py=U1;class N6{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new Yg(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new N6(function(i){t=i}),cancel:t}}}const W_e=N6;function q_e(e){return function(n){return e.apply(null,n)}}function G_e(e){return fe.isObject(e)&&e.isAxiosError===!0}const fC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fC).forEach(([e,t])=>{fC[t]=e});const K_e=fC;function Q$(e){const t=new Py(e),n=I$(Py.prototype.request,t);return fe.extend(n,Py.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Q$(eh(e,i))},n}const yr=Q$(M6);yr.Axios=Py;yr.CanceledError=Yg;yr.CancelToken=W_e;yr.isCancel=G$;yr.VERSION=Z$;yr.toFormData=Vb;yr.AxiosError=Jt;yr.Cancel=yr.CanceledError;yr.all=function(t){return Promise.all(t)};yr.spread=q_e;yr.isAxiosError=G_e;yr.mergeConfig=eh;yr.AxiosHeaders=qs;yr.formToJSON=e=>q$(fe.isHTMLForm(e)?new FormData(e):e);yr.getAdapter=Y$.getAdapter;yr.HttpStatusCode=K_e;yr.default=yr;const F6=yr;/*! js-cookie v3.0.5 | MIT */function N0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Y_e={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function hC(e,t){function n(i,a,o){if(!(typeof document>"u")){o=N0({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),c=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(o[f]=e.read(c,f),i===f)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",N0({},a,{expires:-1}))},withAttributes:function(i){return hC(this.converter,N0({},this.attributes,i))},withConverter:function(i){return hC(N0({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var hi=hC(Y_e,{path:"/"});const X$="https://api-wp.transcy.io",J$="https://wp.transcy.io",Zg="transcy_plugin_hostname",Qg="transcy_plugin_token",$6="transcy_plugin_token_expires_at",z6="transcy_plugin_refresh_token",Z_e="d0929417-5a55-4927-8e27-af8a02853726",Q_e="",X_e="",J_e="",ebe="",tbe="43d0157ddcba455ea8e6",nbe="ap1";function ls(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ar(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Qa(e){Ar(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||nl(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function j6(e,t){Ar(2,arguments);var n=Qa(e).getTime(),r=ls(t);return new Date(n+r)}var rbe=36e5;function ez(e,t){Ar(2,arguments);var n=ls(t);return j6(e,n*rbe)}var ibe={};function Hb(){return ibe}function abe(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var obe=6e4;function sbe(e,t){Ar(2,arguments);var n=ls(t);return j6(e,n*obe)}function lbe(e){return Ar(1,arguments),e instanceof Date||nl(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ube(e){if(Ar(1,arguments),!lbe(e)&&typeof e!="number")return!1;var t=Qa(e);return!isNaN(Number(t))}function cbe(e,t){Ar(2,arguments);var n=ls(t);return j6(e,-n)}var dbe=864e5;function fbe(e){Ar(1,arguments);var t=Qa(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/dbe)+1}function H1(e){Ar(1,arguments);var t=1,n=Qa(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function tz(e){Ar(1,arguments);var t=Qa(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=H1(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var o=H1(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function hbe(e){Ar(1,arguments);var t=tz(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=H1(n);return r}var pbe=6048e5;function mbe(e){Ar(1,arguments);var t=Qa(e),n=H1(t).getTime()-hbe(t).getTime();return Math.round(n/pbe)+1}function W1(e,t){var n,r,i,a,o,s,l,c;Ar(1,arguments);var f=Hb(),h=ls((n=(r=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Qa(e),v=p.getUTCDay(),y=(v<h?7:0)+v-h;return p.setUTCDate(p.getUTCDate()-y),p.setUTCHours(0,0,0,0),p}function nz(e,t){var n,r,i,a,o,s,l,c;Ar(1,arguments);var f=Qa(e),h=f.getUTCFullYear(),p=Hb(),v=ls((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(h+1,0,v),y.setUTCHours(0,0,0,0);var m=W1(y,t),_=new Date(0);_.setUTCFullYear(h,0,v),_.setUTCHours(0,0,0,0);var b=W1(_,t);return f.getTime()>=m.getTime()?h+1:f.getTime()>=b.getTime()?h:h-1}function gbe(e,t){var n,r,i,a,o,s,l,c;Ar(1,arguments);var f=Hb(),h=ls((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=nz(e,t),v=new Date(0);v.setUTCFullYear(p,0,h),v.setUTCHours(0,0,0,0);var y=W1(v,t);return y}var vbe=6048e5;function ybe(e,t){Ar(1,arguments);var n=Qa(e),r=W1(n,t).getTime()-gbe(n,t).getTime();return Math.round(r/vbe)+1}function yn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var _be={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return yn(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):yn(r+1,2)},d:function(t,n){return yn(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return yn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return yn(t.getUTCHours(),n.length)},m:function(t,n){return yn(t.getUTCMinutes(),n.length)},s:function(t,n){return yn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return yn(a,n.length)}};const Il=_be;var Td={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bbe={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return Il.y(t,n)},Y:function(t,n,r,i){var a=nz(t,i),o=a>0?a:1-a;if(n==="YY"){var s=o%100;return yn(s,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):yn(o,n.length)},R:function(t,n){var r=tz(t);return yn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return yn(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return yn(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return yn(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Il.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return yn(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var a=ybe(t,i);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):yn(a,n.length)},I:function(t,n,r){var i=mbe(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):yn(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Il.d(t,n)},D:function(t,n,r){var i=fbe(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):yn(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return yn(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return yn(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),a=i===0?7:i;switch(n){case"i":return String(a);case"ii":return yn(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),a=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),a;switch(i===12?a=Td.noon:i===0?a=Td.midnight:a=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),a;switch(i>=17?a=Td.evening:i>=12?a=Td.afternoon:i>=4?a=Td.morning:a=Td.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Il.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Il.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):yn(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):yn(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Il.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Il.s(t,n)},S:function(t,n){return Il.S(t,n)},X:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return _O(o);case"XXXX":case"XX":return Xu(o);case"XXXXX":case"XXX":default:return Xu(o,":")}},x:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"x":return _O(o);case"xxxx":case"xx":return Xu(o);case"xxxxx":case"xxx":default:return Xu(o,":")}},O:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+yO(o,":");case"OOOO":default:return"GMT"+Xu(o,":")}},z:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+yO(o,":");case"zzzz":default:return"GMT"+Xu(o,":")}},t:function(t,n,r,i){var a=i._originalDate||t,o=Math.floor(a.getTime()/1e3);return yn(o,n.length)},T:function(t,n,r,i){var a=i._originalDate||t,o=a.getTime();return yn(o,n.length)}};function yO(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(a===0)return n+String(i);var o=t||"";return n+String(i)+o+yn(a,2)}function _O(e,t){if(e%60===0){var n=e>0?"-":"+";return n+yn(Math.abs(e)/60,2)}return Xu(e,t)}function Xu(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),a=yn(Math.floor(i/60),2),o=yn(i%60,2);return r+a+n+o}const Sbe=bbe;var bO=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},rz=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},wbe=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return bO(t,n);var o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",bO(i,n)).replace("{{time}}",rz(a,n))},xbe={p:rz,P:wbe};const Cbe=xbe;var Ebe=["D","DD"],kbe=["YY","YYYY"];function Tbe(e){return Ebe.indexOf(e)!==-1}function Pbe(e){return kbe.indexOf(e)!==-1}function SO(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Obe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rbe=function(t,n,r){var i,a=Obe[t];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Abe=Rbe;function Iw(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Ibe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lbe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Mbe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dbe={date:Iw({formats:Ibe,defaultWidth:"full"}),time:Iw({formats:Lbe,defaultWidth:"full"}),dateTime:Iw({formats:Mbe,defaultWidth:"full"})};const Nbe=Dbe;var Fbe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$be=function(t,n,r,i){return Fbe[t]};const zbe=$be;function kp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var jbe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bbe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vbe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ube={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Hbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qbe=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Gbe={ordinalNumber:qbe,era:kp({values:jbe,defaultWidth:"wide"}),quarter:kp({values:Bbe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:kp({values:Vbe,defaultWidth:"wide"}),day:kp({values:Ube,defaultWidth:"wide"}),dayPeriod:kp({values:Hbe,defaultWidth:"wide",formattingValues:Wbe,defaultFormattingWidth:"wide"})};const Kbe=Gbe;function Tp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Zbe(s,function(h){return h.test(o)}):Ybe(s,function(h){return h.test(o)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(o.length);return{value:c,rest:f}}}function Ybe(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Zbe(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Qbe(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var Xbe=/^(\d+)(th|st|nd|rd)?/i,Jbe=/\d+/i,e2e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},t2e={any:[/^b/i,/^(a|c)/i]},n2e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},r2e={any:[/1/i,/2/i,/3/i,/4/i]},i2e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},a2e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},o2e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},s2e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},l2e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},u2e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},c2e={ordinalNumber:Qbe({matchPattern:Xbe,parsePattern:Jbe,valueCallback:function(t){return parseInt(t,10)}}),era:Tp({matchPatterns:e2e,defaultMatchWidth:"wide",parsePatterns:t2e,defaultParseWidth:"any"}),quarter:Tp({matchPatterns:n2e,defaultMatchWidth:"wide",parsePatterns:r2e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Tp({matchPatterns:i2e,defaultMatchWidth:"wide",parsePatterns:a2e,defaultParseWidth:"any"}),day:Tp({matchPatterns:o2e,defaultMatchWidth:"wide",parsePatterns:s2e,defaultParseWidth:"any"}),dayPeriod:Tp({matchPatterns:l2e,defaultMatchWidth:"any",parsePatterns:u2e,defaultParseWidth:"any"})};const d2e=c2e;var f2e={code:"en-US",formatDistance:Abe,formatLong:Nbe,formatRelative:zbe,localize:Kbe,match:d2e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const h2e=f2e;var p2e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m2e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g2e=/^'([^]*?)'?$/,v2e=/''/g,y2e=/[a-zA-Z]/;function B6(e,t,n){var r,i,a,o,s,l,c,f,h,p,v,y,m,_,b,S,C,E;Ar(2,arguments);var R=String(t),A=Hb(),I=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:A.locale)!==null&&r!==void 0?r:h2e,M=ls((a=(o=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&o!==void 0?o:(h=A.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=ls((v=(y=(m=(_=n==null?void 0:n.weekStartsOn)!==null&&_!==void 0?_:n==null||(b=n.locale)===null||b===void 0||(S=b.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&m!==void 0?m:A.weekStartsOn)!==null&&y!==void 0?y:(C=A.locale)===null||C===void 0||(E=C.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&v!==void 0?v:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var z=Qa(e);if(!ube(z))throw new RangeError("Invalid time value");var Y=abe(z),W=cbe(z,Y),q={firstWeekContainsDate:M,weekStartsOn:F,locale:I,_originalDate:z},ae=R.match(m2e).map(function(ee){var ce=ee[0];if(ce==="p"||ce==="P"){var ue=Cbe[ce];return ue(ee,I.formatLong)}return ee}).join("").match(p2e).map(function(ee){if(ee==="''")return"'";var ce=ee[0];if(ce==="'")return _2e(ee);var ue=Sbe[ce];if(ue)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Pbe(ee)&&SO(ee,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Tbe(ee)&&SO(ee,t,String(e)),ue(W,ee,I.localize,q);if(ce.match(y2e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ce+"`");return ee}).join("");return ae}function _2e(e){var t=e.match(g2e);return t?t[1].replace(v2e,"'"):e}function b2e(e,t){Ar(2,arguments);var n=Qa(e),r=Qa(t);return n.getTime()>r.getTime()}function pC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iz(e,t){if(e){if(typeof e=="string")return pC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pC(e,t)}}function mC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x1(e,t)}function q1(e){return q1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},q1(e)}function w2e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function x2e(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mC(e)}function C2e(e){var t=w2e();return function(){var r=q1(e),i;if(t){var a=q1(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return x2e(this,i)}}function E2e(e,t){Ar(2,arguments);var n=ls(t);return sbe(e,-n)}var k2e=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,n);if(o.value!==i||o.enumerable!==!0)return!1}return!0},wO=typeof Symbol<"u"&&Symbol,T2e=k2e,P2e=function(){return typeof wO!="function"||typeof Symbol!="function"||typeof wO("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:T2e()},xO={foo:{}},O2e=Object,R2e=function(){return{__proto__:xO}.foo===xO.foo&&!({__proto__:null}instanceof O2e)},A2e="Function.prototype.bind called on incompatible ",Lw=Array.prototype.slice,I2e=Object.prototype.toString,L2e="[object Function]",M2e=function(t){var n=this;if(typeof n!="function"||I2e.call(n)!==L2e)throw new TypeError(A2e+n);for(var r=Lw.call(arguments,1),i,a=function(){if(this instanceof i){var f=n.apply(this,r.concat(Lw.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(Lw.call(arguments)))},o=Math.max(0,n.length-r.length),s=[],l=0;l<o;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i},D2e=M2e,V6=Function.prototype.bind||D2e,N2e=V6,F2e=N2e.call(Function.call,Object.prototype.hasOwnProperty),Ut,th=SyntaxError,az=Function,Rf=TypeError,Mw=function(e){try{return az('"use strict"; return ('+e+").constructor;")()}catch{}},_c=Object.getOwnPropertyDescriptor;if(_c)try{_c({},"")}catch{_c=null}var Dw=function(){throw new Rf},$2e=_c?function(){try{return arguments.callee,Dw}catch{try{return _c(arguments,"callee").get}catch{return Dw}}}():Dw,Pd=P2e(),z2e=R2e(),$r=Object.getPrototypeOf||(z2e?function(e){return e.__proto__}:null),Md={},j2e=typeof Uint8Array>"u"||!$r?Ut:$r(Uint8Array),bc={"%AggregateError%":typeof AggregateError>"u"?Ut:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ut:ArrayBuffer,"%ArrayIteratorPrototype%":Pd&&$r?$r([][Symbol.iterator]()):Ut,"%AsyncFromSyncIteratorPrototype%":Ut,"%AsyncFunction%":Md,"%AsyncGenerator%":Md,"%AsyncGeneratorFunction%":Md,"%AsyncIteratorPrototype%":Md,"%Atomics%":typeof Atomics>"u"?Ut:Atomics,"%BigInt%":typeof BigInt>"u"?Ut:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ut:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ut:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ut:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ut:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ut:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ut:FinalizationRegistry,"%Function%":az,"%GeneratorFunction%":Md,"%Int8Array%":typeof Int8Array>"u"?Ut:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ut:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ut:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Pd&&$r?$r($r([][Symbol.iterator]())):Ut,"%JSON%":typeof JSON=="object"?JSON:Ut,"%Map%":typeof Map>"u"?Ut:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Pd||!$r?Ut:$r(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ut:Promise,"%Proxy%":typeof Proxy>"u"?Ut:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ut:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ut:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Pd||!$r?Ut:$r(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ut:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Pd&&$r?$r(""[Symbol.iterator]()):Ut,"%Symbol%":Pd?Symbol:Ut,"%SyntaxError%":th,"%ThrowTypeError%":$2e,"%TypedArray%":j2e,"%TypeError%":Rf,"%Uint8Array%":typeof Uint8Array>"u"?Ut:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ut:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ut:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ut:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ut:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ut:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ut:WeakSet};if($r)try{null.error}catch(e){var B2e=$r($r(e));bc["%Error.prototype%"]=B2e}var V2e=function e(t){var n;if(t==="%AsyncFunction%")n=Mw("async function () {}");else if(t==="%GeneratorFunction%")n=Mw("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Mw("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&$r&&(n=$r(i.prototype))}return bc[t]=n,n},CO={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xg=V6,G1=F2e,U2e=Xg.call(Function.call,Array.prototype.concat),H2e=Xg.call(Function.apply,Array.prototype.splice),EO=Xg.call(Function.call,String.prototype.replace),K1=Xg.call(Function.call,String.prototype.slice),W2e=Xg.call(Function.call,RegExp.prototype.exec),q2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G2e=/\\(\\)?/g,K2e=function(t){var n=K1(t,0,1),r=K1(t,-1);if(n==="%"&&r!=="%")throw new th("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new th("invalid intrinsic syntax, expected opening `%`");var i=[];return EO(t,q2e,function(a,o,s,l){i[i.length]=s?EO(l,G2e,"$1"):o||a}),i},Y2e=function(t,n){var r=t,i;if(G1(CO,r)&&(i=CO[r],r="%"+i[0]+"%"),G1(bc,r)){var a=bc[r];if(a===Md&&(a=V2e(r)),typeof a>"u"&&!n)throw new Rf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:a}}throw new th("intrinsic "+t+" does not exist!")},U6=function(t,n){if(typeof t!="string"||t.length===0)throw new Rf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Rf('"allowMissing" argument must be a boolean');if(W2e(/^%?[^%]*%?$/,t)===null)throw new th("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=K2e(t),i=r.length>0?r[0]:"",a=Y2e("%"+i+"%",n),o=a.name,s=a.value,l=!1,c=a.alias;c&&(i=c[0],H2e(r,U2e([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var p=r[f],v=K1(p,0,1),y=K1(p,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new th("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,o="%"+i+"%",G1(bc,o))s=bc[o];else if(s!=null){if(!(p in s)){if(!n)throw new Rf("base intrinsic for "+t+" exists, but the property is not available.");return}if(_c&&f+1>=r.length){var m=_c(s,p);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[p]}else h=G1(s,p),s=s[p];h&&!l&&(bc[o]=s)}}return s},oz={exports:{}};(function(e){var t=V6,n=U6,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(i,r),o=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(h){var p=a(t,i,arguments);if(o&&s){var v=o(p,"length");v.configurable&&s(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return a(t,r,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(oz);var Z2e=oz.exports,sz=U6,lz=Z2e,Q2e=lz(sz("String.prototype.indexOf")),X2e=function(t,n){var r=sz(t,!!n);return typeof r=="function"&&Q2e(t,".prototype.")>-1?lz(r):r};const J2e={},eSe=Object.freeze(Object.defineProperty({__proto__:null,default:J2e},Symbol.toStringTag,{value:"Module"})),tSe=lA(eSe);var H6=typeof Map=="function"&&Map.prototype,Nw=Object.getOwnPropertyDescriptor&&H6?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Y1=H6&&Nw&&typeof Nw.get=="function"?Nw.get:null,kO=H6&&Map.prototype.forEach,W6=typeof Set=="function"&&Set.prototype,Fw=Object.getOwnPropertyDescriptor&&W6?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Z1=W6&&Fw&&typeof Fw.get=="function"?Fw.get:null,TO=W6&&Set.prototype.forEach,nSe=typeof WeakMap=="function"&&WeakMap.prototype,hm=nSe?WeakMap.prototype.has:null,rSe=typeof WeakSet=="function"&&WeakSet.prototype,pm=rSe?WeakSet.prototype.has:null,iSe=typeof WeakRef=="function"&&WeakRef.prototype,PO=iSe?WeakRef.prototype.deref:null,aSe=Boolean.prototype.valueOf,oSe=Object.prototype.toString,sSe=Function.prototype.toString,lSe=String.prototype.match,q6=String.prototype.slice,Kl=String.prototype.replace,uSe=String.prototype.toUpperCase,OO=String.prototype.toLowerCase,uz=RegExp.prototype.test,RO=Array.prototype.concat,Go=Array.prototype.join,cSe=Array.prototype.slice,AO=Math.floor,gC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,$w=Object.getOwnPropertySymbols,vC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,nh=typeof Symbol=="function"&&typeof Symbol.iterator=="object",mi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===nh||"symbol")?Symbol.toStringTag:null,cz=Object.prototype.propertyIsEnumerable,IO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function LO(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||uz.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-AO(-e):AO(e);if(r!==e){var i=String(r),a=q6.call(t,i.length+1);return Kl.call(i,n,"$&_")+"."+Kl.call(Kl.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Kl.call(t,n,"$&_")}var yC=tSe,MO=yC.custom,DO=fz(MO)?MO:null,dSe=function e(t,n,r,i){var a=n||{};if(zl(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zl(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=zl(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zl(a,"indent")&&a.indent!==null&&a.indent!=="    "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zl(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return pz(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?LO(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?LO(t,c):c}var f=typeof a.depth>"u"?5:a.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return _C(t)?"[Array]":"[Object]";var h=OSe(a,r);if(typeof i>"u")i=[];else if(hz(i,t)>=0)return"[Circular]";function p(q,ae,ee){if(ae&&(i=cSe.call(i),i.push(ae)),ee){var ce={depth:a.depth};return zl(a,"quoteStyle")&&(ce.quoteStyle=a.quoteStyle),e(q,ce,r+1,i)}return e(q,a,r+1,i)}if(typeof t=="function"&&!NO(t)){var v=bSe(t),y=F0(t,p);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+Go.call(y,", ")+" }":"")}if(fz(t)){var m=nh?Kl.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):vC.call(t);return typeof t=="object"&&!nh?Pp(m):m}if(kSe(t)){for(var _="<"+OO.call(String(t.nodeName)),b=t.attributes||[],S=0;S<b.length;S++)_+=" "+b[S].name+"="+dz(fSe(b[S].value),"double",a);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+OO.call(String(t.nodeName))+">",_}if(_C(t)){if(t.length===0)return"[]";var C=F0(t,p);return h&&!PSe(C)?"["+bC(C,h)+"]":"[ "+Go.call(C,", ")+" ]"}if(pSe(t)){var E=F0(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!cz.call(t,"cause")?"{ ["+String(t)+"] "+Go.call(RO.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Go.call(E,", ")+" }"}if(typeof t=="object"&&o){if(DO&&typeof t[DO]=="function"&&yC)return yC(t,{depth:f-r});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(SSe(t)){var R=[];return kO&&kO.call(t,function(q,ae){R.push(p(ae,t,!0)+" => "+p(q,t))}),FO("Map",Y1.call(t),R,h)}if(CSe(t)){var A=[];return TO&&TO.call(t,function(q){A.push(p(q,t))}),FO("Set",Z1.call(t),A,h)}if(wSe(t))return zw("WeakMap");if(ESe(t))return zw("WeakSet");if(xSe(t))return zw("WeakRef");if(gSe(t))return Pp(p(Number(t)));if(ySe(t))return Pp(p(gC.call(t)));if(vSe(t))return Pp(aSe.call(t));if(mSe(t))return Pp(p(String(t)));if(!hSe(t)&&!NO(t)){var I=F0(t,p),M=IO?IO(t)===Object.prototype:t instanceof Object||t.constructor===Object,F=t instanceof Object?"":"null prototype",z=!M&&mi&&Object(t)===t&&mi in t?q6.call(Eu(t),8,-1):F?"Object":"",Y=M||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",W=Y+(z||F?"["+Go.call(RO.call([],z||[],F||[]),": ")+"] ":"");return I.length===0?W+"{}":h?W+"{"+bC(I,h)+"}":W+"{ "+Go.call(I,", ")+" }"}return String(t)};function dz(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function fSe(e){return Kl.call(String(e),/"/g,"&quot;")}function _C(e){return Eu(e)==="[object Array]"&&(!mi||!(typeof e=="object"&&mi in e))}function hSe(e){return Eu(e)==="[object Date]"&&(!mi||!(typeof e=="object"&&mi in e))}function NO(e){return Eu(e)==="[object RegExp]"&&(!mi||!(typeof e=="object"&&mi in e))}function pSe(e){return Eu(e)==="[object Error]"&&(!mi||!(typeof e=="object"&&mi in e))}function mSe(e){return Eu(e)==="[object String]"&&(!mi||!(typeof e=="object"&&mi in e))}function gSe(e){return Eu(e)==="[object Number]"&&(!mi||!(typeof e=="object"&&mi in e))}function vSe(e){return Eu(e)==="[object Boolean]"&&(!mi||!(typeof e=="object"&&mi in e))}function fz(e){if(nh)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!vC)return!1;try{return vC.call(e),!0}catch{}return!1}function ySe(e){if(!e||typeof e!="object"||!gC)return!1;try{return gC.call(e),!0}catch{}return!1}var _Se=Object.prototype.hasOwnProperty||function(e){return e in this};function zl(e,t){return _Se.call(e,t)}function Eu(e){return oSe.call(e)}function bSe(e){if(e.name)return e.name;var t=lSe.call(sSe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function hz(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function SSe(e){if(!Y1||!e||typeof e!="object")return!1;try{Y1.call(e);try{Z1.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function wSe(e){if(!hm||!e||typeof e!="object")return!1;try{hm.call(e,hm);try{pm.call(e,pm)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function xSe(e){if(!PO||!e||typeof e!="object")return!1;try{return PO.call(e),!0}catch{}return!1}function CSe(e){if(!Z1||!e||typeof e!="object")return!1;try{Z1.call(e);try{Y1.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ESe(e){if(!pm||!e||typeof e!="object")return!1;try{pm.call(e,pm);try{hm.call(e,hm)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function kSe(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function pz(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return pz(q6.call(e,0,t.maxStringLength),t)+r}var i=Kl.call(Kl.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,TSe);return dz(i,"single",t)}function TSe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+uSe.call(t.toString(16))}function Pp(e){return"Object("+e+")"}function zw(e){return e+" { ? }"}function FO(e,t,n,r){var i=r?bC(n,r):Go.call(n,", ");return e+" ("+t+") {"+i+"}"}function PSe(e){for(var t=0;t<e.length;t++)if(hz(e[t],`
    463 `)>=0)return!1;return!0}function OSe(e,t){var n;if(e.indent===" ")n="   ";else if(typeof e.indent=="number"&&e.indent>0)n=Go.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Go.call(Array(t+1),n)}}function bC(e,t){if(e.length===0)return"";var n=`
     462`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[hO]=this[hO]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Ep(o);r[s]||(M_e(i,o),r[s]=!0)}return fe.isArray(t)?t.forEach(a):a(t),this}}Ub.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(Ub.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});fe.freezeMethods(Ub);const qs=Ub;function Rw(e,t){const n=this||M6,r=t||n,i=qs.from(r.headers);let a=r.data;return fe.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function G$(e){return!!(e&&e.__CANCEL__)}function Yg(e,t,n){Jt.call(this,e??"canceled",Jt.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(Yg,Jt,{__CANCEL__:!0});function D_e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Jt("Request failed with status code "+n.status,[Jt.ERR_BAD_REQUEST,Jt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const N_e=yo.isStandardBrowserEnv?function(){return{write:function(n,r,i,a,o,s){const l=[];l.push(n+"="+encodeURIComponent(r)),fe.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),fe.isString(a)&&l.push("path="+a),fe.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function F_e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $_e(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function K$(e,t){return e&&!F_e(t)?$_e(e,t):t}const z_e=yo.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const s=fe.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function j_e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function B_e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),f=r[a];o||(o=c),n[i]=l,r[i]=c;let h=a,p=0;for(;h!==i;)p+=n[h++],h=h%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const v=f&&c-f;return v?Math.round(p*1e3/v):void 0}}function pO(e,t){let n=0;const r=B_e(50,250);return i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-n,l=r(s),c=a<=o;n=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&c?(o-a)/l:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const V_e=typeof XMLHttpRequest<"u",U_e=V_e&&function(e){return new Promise(function(n,r){let i=e.data;const a=qs.from(e.headers).normalize(),o=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}fe.isFormData(i)&&(yo.isStandardBrowserEnv||yo.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+y))}const f=K$(e.baseURL,e.url);c.open(e.method.toUpperCase(),H$(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const v=qs.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};D_e(function(b){n(b),l()},function(b){r(b),l()},m),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(r(new Jt("Request aborted",Jt.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new Jt("Network Error",Jt.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||W$;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new Jt(y,m.clarifyTimeoutError?Jt.ETIMEDOUT:Jt.ECONNABORTED,e,c)),c=null},yo.isStandardBrowserEnv){const v=(e.withCredentials||z_e(f))&&e.xsrfCookieName&&N_e.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in c&&fe.forEach(a.toJSON(),function(y,m){c.setRequestHeader(m,y)}),fe.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",pO(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",pO(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=v=>{c&&(r(!v||v.type?new Yg(null,e,c):v),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=j_e(f);if(p&&yo.protocols.indexOf(p)===-1){r(new Jt("Unsupported protocol "+p+":",Jt.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Ty={http:m_e,xhr:U_e};fe.forEach(Ty,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Y$={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=fe.isString(n)?Ty[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new Jt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(fe.hasOwnProp(Ty,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!fe.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Ty};function Aw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yg(null,e)}function mO(e){return Aw(e),e.headers=qs.from(e.headers),e.data=Rw.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Y$.getAdapter(e.adapter||M6.adapter)(e).then(function(r){return Aw(e),r.data=Rw.call(e,e.transformResponse,r),r.headers=qs.from(r.headers),r},function(r){return G$(r)||(Aw(e),r&&r.response&&(r.response.data=Rw.call(e,e.transformResponse,r.response),r.response.headers=qs.from(r.response.headers))),Promise.reject(r)})}const gO=e=>e instanceof qs?e.toJSON():e;function eh(e,t){t=t||{};const n={};function r(c,f,h){return fe.isPlainObject(c)&&fe.isPlainObject(f)?fe.merge.call({caseless:h},c,f):fe.isPlainObject(f)?fe.merge({},f):fe.isArray(f)?f.slice():f}function i(c,f,h){if(fe.isUndefined(f)){if(!fe.isUndefined(c))return r(void 0,c,h)}else return r(c,f,h)}function a(c,f){if(!fe.isUndefined(f))return r(void 0,f)}function o(c,f){if(fe.isUndefined(f)){if(!fe.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function s(c,f,h){if(h in t)return r(c,f);if(h in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,f)=>i(gO(c),gO(f),!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=l[f]||i,p=h(e[f],t[f],f);fe.isUndefined(p)&&h!==s||(n[f]=p)}),n}const Z$="1.5.0",D6={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{D6[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vO={};D6.transitional=function(t,n,r){function i(a,o){return"[Axios v"+Z$+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new Jt(i(o," has been removed"+(n?" in "+n:"")),Jt.ERR_DEPRECATED);return n&&!vO[o]&&(vO[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function H_e(e,t,n){if(typeof e!="object")throw new Jt("options must be an object",Jt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new Jt("option "+a+" must be "+l,Jt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Jt("Unknown option "+a,Jt.ERR_BAD_OPTION)}}const d3={assertOptions:H_e,validators:D6},Al=d3.validators;class U1{constructor(t){this.defaults=t,this.interceptors={request:new fO,response:new fO}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=eh(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&d3.assertOptions(r,{silentJSONParsing:Al.transitional(Al.boolean),forcedJSONParsing:Al.transitional(Al.boolean),clarifyTimeoutError:Al.transitional(Al.boolean)},!1),i!=null&&(fe.isFunction(i)?n.paramsSerializer={serialize:i}:d3.assertOptions(i,{encode:Al.function,serialize:Al.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&fe.merge(a.common,a[n.method]);a&&fe.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=qs.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let f,h=0,p;if(!l){const y=[mO.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),p=y.length,f=Promise.resolve(n);h<p;)f=f.then(y[h++],y[h++]);return f}p=s.length;let v=n;for(h=0;h<p;){const y=s[h++],m=s[h++];try{v=y(v)}catch(_){m.call(this,_);break}}try{f=mO.call(this,v)}catch(y){return Promise.reject(y)}for(h=0,p=c.length;h<p;)f=f.then(c[h++],c[h++]);return f}getUri(t){t=eh(this.defaults,t);const n=K$(t.baseURL,t.url);return H$(n,t.params,t.paramsSerializer)}}fe.forEach(["delete","get","head","options"],function(t){U1.prototype[t]=function(n,r){return this.request(eh(r||{},{method:t,url:n,data:(r||{}).data}))}});fe.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(eh(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}U1.prototype[t]=n(),U1.prototype[t+"Form"]=n(!0)});const Py=U1;class N6{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new Yg(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new N6(function(i){t=i}),cancel:t}}}const W_e=N6;function q_e(e){return function(n){return e.apply(null,n)}}function G_e(e){return fe.isObject(e)&&e.isAxiosError===!0}const f3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(f3).forEach(([e,t])=>{f3[t]=e});const K_e=f3;function Q$(e){const t=new Py(e),n=I$(Py.prototype.request,t);return fe.extend(n,Py.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Q$(eh(e,i))},n}const yr=Q$(M6);yr.Axios=Py;yr.CanceledError=Yg;yr.CancelToken=W_e;yr.isCancel=G$;yr.VERSION=Z$;yr.toFormData=Vb;yr.AxiosError=Jt;yr.Cancel=yr.CanceledError;yr.all=function(t){return Promise.all(t)};yr.spread=q_e;yr.isAxiosError=G_e;yr.mergeConfig=eh;yr.AxiosHeaders=qs;yr.formToJSON=e=>q$(fe.isHTMLForm(e)?new FormData(e):e);yr.getAdapter=Y$.getAdapter;yr.HttpStatusCode=K_e;yr.default=yr;const F6=yr;/*! js-cookie v3.0.5 | MIT */function N0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Y_e={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function h3(e,t){function n(i,a,o){if(!(typeof document>"u")){o=N0({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),c=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(o[f]=e.read(c,f),i===f)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",N0({},a,{expires:-1}))},withAttributes:function(i){return h3(this.converter,N0({},this.attributes,i))},withConverter:function(i){return h3(N0({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var hi=h3(Y_e,{path:"/"});const X$="=https://api-wp.transcy.io",J$="https://wp.transcy.io",Zg="transcy_plugin_hostname",Qg="transcy_plugin_token",$6="transcy_plugin_token_expires_at",z6="transcy_plugin_refresh_token",Z_e="d0929417-5a55-4927-8e27-af8a02853726",Q_e="",X_e="",J_e="",ebe="",tbe="43d0157ddcba455ea8e6",nbe="ap1";function ls(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ar(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Qa(e){Ar(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||nl(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function j6(e,t){Ar(2,arguments);var n=Qa(e).getTime(),r=ls(t);return new Date(n+r)}var rbe=36e5;function ez(e,t){Ar(2,arguments);var n=ls(t);return j6(e,n*rbe)}var ibe={};function Hb(){return ibe}function abe(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var obe=6e4;function sbe(e,t){Ar(2,arguments);var n=ls(t);return j6(e,n*obe)}function lbe(e){return Ar(1,arguments),e instanceof Date||nl(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ube(e){if(Ar(1,arguments),!lbe(e)&&typeof e!="number")return!1;var t=Qa(e);return!isNaN(Number(t))}function cbe(e,t){Ar(2,arguments);var n=ls(t);return j6(e,-n)}var dbe=864e5;function fbe(e){Ar(1,arguments);var t=Qa(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/dbe)+1}function H1(e){Ar(1,arguments);var t=1,n=Qa(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function tz(e){Ar(1,arguments);var t=Qa(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=H1(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var o=H1(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function hbe(e){Ar(1,arguments);var t=tz(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=H1(n);return r}var pbe=6048e5;function mbe(e){Ar(1,arguments);var t=Qa(e),n=H1(t).getTime()-hbe(t).getTime();return Math.round(n/pbe)+1}function W1(e,t){var n,r,i,a,o,s,l,c;Ar(1,arguments);var f=Hb(),h=ls((n=(r=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Qa(e),v=p.getUTCDay(),y=(v<h?7:0)+v-h;return p.setUTCDate(p.getUTCDate()-y),p.setUTCHours(0,0,0,0),p}function nz(e,t){var n,r,i,a,o,s,l,c;Ar(1,arguments);var f=Qa(e),h=f.getUTCFullYear(),p=Hb(),v=ls((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(h+1,0,v),y.setUTCHours(0,0,0,0);var m=W1(y,t),_=new Date(0);_.setUTCFullYear(h,0,v),_.setUTCHours(0,0,0,0);var b=W1(_,t);return f.getTime()>=m.getTime()?h+1:f.getTime()>=b.getTime()?h:h-1}function gbe(e,t){var n,r,i,a,o,s,l,c;Ar(1,arguments);var f=Hb(),h=ls((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=nz(e,t),v=new Date(0);v.setUTCFullYear(p,0,h),v.setUTCHours(0,0,0,0);var y=W1(v,t);return y}var vbe=6048e5;function ybe(e,t){Ar(1,arguments);var n=Qa(e),r=W1(n,t).getTime()-gbe(n,t).getTime();return Math.round(r/vbe)+1}function yn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var _be={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return yn(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):yn(r+1,2)},d:function(t,n){return yn(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return yn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return yn(t.getUTCHours(),n.length)},m:function(t,n){return yn(t.getUTCMinutes(),n.length)},s:function(t,n){return yn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return yn(a,n.length)}};const Il=_be;var Td={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bbe={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return Il.y(t,n)},Y:function(t,n,r,i){var a=nz(t,i),o=a>0?a:1-a;if(n==="YY"){var s=o%100;return yn(s,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):yn(o,n.length)},R:function(t,n){var r=tz(t);return yn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return yn(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return yn(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return yn(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Il.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return yn(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var a=ybe(t,i);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):yn(a,n.length)},I:function(t,n,r){var i=mbe(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):yn(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Il.d(t,n)},D:function(t,n,r){var i=fbe(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):yn(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return yn(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return yn(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),a=i===0?7:i;switch(n){case"i":return String(a);case"ii":return yn(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),a=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),a;switch(i===12?a=Td.noon:i===0?a=Td.midnight:a=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),a;switch(i>=17?a=Td.evening:i>=12?a=Td.afternoon:i>=4?a=Td.morning:a=Td.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Il.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Il.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):yn(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):yn(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Il.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Il.s(t,n)},S:function(t,n){return Il.S(t,n)},X:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return _O(o);case"XXXX":case"XX":return Xu(o);case"XXXXX":case"XXX":default:return Xu(o,":")}},x:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"x":return _O(o);case"xxxx":case"xx":return Xu(o);case"xxxxx":case"xxx":default:return Xu(o,":")}},O:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+yO(o,":");case"OOOO":default:return"GMT"+Xu(o,":")}},z:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+yO(o,":");case"zzzz":default:return"GMT"+Xu(o,":")}},t:function(t,n,r,i){var a=i._originalDate||t,o=Math.floor(a.getTime()/1e3);return yn(o,n.length)},T:function(t,n,r,i){var a=i._originalDate||t,o=a.getTime();return yn(o,n.length)}};function yO(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(a===0)return n+String(i);var o=t||"";return n+String(i)+o+yn(a,2)}function _O(e,t){if(e%60===0){var n=e>0?"-":"+";return n+yn(Math.abs(e)/60,2)}return Xu(e,t)}function Xu(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),a=yn(Math.floor(i/60),2),o=yn(i%60,2);return r+a+n+o}const Sbe=bbe;var bO=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},rz=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},wbe=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return bO(t,n);var o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",bO(i,n)).replace("{{time}}",rz(a,n))},xbe={p:rz,P:wbe};const Cbe=xbe;var Ebe=["D","DD"],kbe=["YY","YYYY"];function Tbe(e){return Ebe.indexOf(e)!==-1}function Pbe(e){return kbe.indexOf(e)!==-1}function SO(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Obe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rbe=function(t,n,r){var i,a=Obe[t];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Abe=Rbe;function Iw(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Ibe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lbe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Mbe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dbe={date:Iw({formats:Ibe,defaultWidth:"full"}),time:Iw({formats:Lbe,defaultWidth:"full"}),dateTime:Iw({formats:Mbe,defaultWidth:"full"})};const Nbe=Dbe;var Fbe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$be=function(t,n,r,i){return Fbe[t]};const zbe=$be;function kp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var jbe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bbe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vbe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ube={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Hbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qbe=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Gbe={ordinalNumber:qbe,era:kp({values:jbe,defaultWidth:"wide"}),quarter:kp({values:Bbe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:kp({values:Vbe,defaultWidth:"wide"}),day:kp({values:Ube,defaultWidth:"wide"}),dayPeriod:kp({values:Hbe,defaultWidth:"wide",formattingValues:Wbe,defaultFormattingWidth:"wide"})};const Kbe=Gbe;function Tp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Zbe(s,function(h){return h.test(o)}):Ybe(s,function(h){return h.test(o)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(o.length);return{value:c,rest:f}}}function Ybe(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Zbe(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Qbe(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var Xbe=/^(\d+)(th|st|nd|rd)?/i,Jbe=/\d+/i,e2e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},t2e={any:[/^b/i,/^(a|c)/i]},n2e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},r2e={any:[/1/i,/2/i,/3/i,/4/i]},i2e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},a2e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},o2e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},s2e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},l2e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},u2e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},c2e={ordinalNumber:Qbe({matchPattern:Xbe,parsePattern:Jbe,valueCallback:function(t){return parseInt(t,10)}}),era:Tp({matchPatterns:e2e,defaultMatchWidth:"wide",parsePatterns:t2e,defaultParseWidth:"any"}),quarter:Tp({matchPatterns:n2e,defaultMatchWidth:"wide",parsePatterns:r2e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Tp({matchPatterns:i2e,defaultMatchWidth:"wide",parsePatterns:a2e,defaultParseWidth:"any"}),day:Tp({matchPatterns:o2e,defaultMatchWidth:"wide",parsePatterns:s2e,defaultParseWidth:"any"}),dayPeriod:Tp({matchPatterns:l2e,defaultMatchWidth:"any",parsePatterns:u2e,defaultParseWidth:"any"})};const d2e=c2e;var f2e={code:"en-US",formatDistance:Abe,formatLong:Nbe,formatRelative:zbe,localize:Kbe,match:d2e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const h2e=f2e;var p2e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m2e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g2e=/^'([^]*?)'?$/,v2e=/''/g,y2e=/[a-zA-Z]/;function B6(e,t,n){var r,i,a,o,s,l,c,f,h,p,v,y,m,_,b,S,C,E;Ar(2,arguments);var R=String(t),A=Hb(),I=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:A.locale)!==null&&r!==void 0?r:h2e,M=ls((a=(o=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&o!==void 0?o:(h=A.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=ls((v=(y=(m=(_=n==null?void 0:n.weekStartsOn)!==null&&_!==void 0?_:n==null||(b=n.locale)===null||b===void 0||(S=b.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&m!==void 0?m:A.weekStartsOn)!==null&&y!==void 0?y:(C=A.locale)===null||C===void 0||(E=C.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&v!==void 0?v:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var z=Qa(e);if(!ube(z))throw new RangeError("Invalid time value");var Y=abe(z),W=cbe(z,Y),q={firstWeekContainsDate:M,weekStartsOn:F,locale:I,_originalDate:z},ae=R.match(m2e).map(function(ee){var ce=ee[0];if(ce==="p"||ce==="P"){var ue=Cbe[ce];return ue(ee,I.formatLong)}return ee}).join("").match(p2e).map(function(ee){if(ee==="''")return"'";var ce=ee[0];if(ce==="'")return _2e(ee);var ue=Sbe[ce];if(ue)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Pbe(ee)&&SO(ee,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Tbe(ee)&&SO(ee,t,String(e)),ue(W,ee,I.localize,q);if(ce.match(y2e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ce+"`");return ee}).join("");return ae}function _2e(e){var t=e.match(g2e);return t?t[1].replace(v2e,"'"):e}function b2e(e,t){Ar(2,arguments);var n=Qa(e),r=Qa(t);return n.getTime()>r.getTime()}function p3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iz(e,t){if(e){if(typeof e=="string")return p3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p3(e,t)}}function m3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x1(e,t)}function q1(e){return q1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},q1(e)}function w2e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function x2e(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m3(e)}function C2e(e){var t=w2e();return function(){var r=q1(e),i;if(t){var a=q1(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return x2e(this,i)}}function E2e(e,t){Ar(2,arguments);var n=ls(t);return sbe(e,-n)}var k2e=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,n);if(o.value!==i||o.enumerable!==!0)return!1}return!0},wO=typeof Symbol<"u"&&Symbol,T2e=k2e,P2e=function(){return typeof wO!="function"||typeof Symbol!="function"||typeof wO("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:T2e()},xO={foo:{}},O2e=Object,R2e=function(){return{__proto__:xO}.foo===xO.foo&&!({__proto__:null}instanceof O2e)},A2e="Function.prototype.bind called on incompatible ",Lw=Array.prototype.slice,I2e=Object.prototype.toString,L2e="[object Function]",M2e=function(t){var n=this;if(typeof n!="function"||I2e.call(n)!==L2e)throw new TypeError(A2e+n);for(var r=Lw.call(arguments,1),i,a=function(){if(this instanceof i){var f=n.apply(this,r.concat(Lw.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(Lw.call(arguments)))},o=Math.max(0,n.length-r.length),s=[],l=0;l<o;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i},D2e=M2e,V6=Function.prototype.bind||D2e,N2e=V6,F2e=N2e.call(Function.call,Object.prototype.hasOwnProperty),Ut,th=SyntaxError,az=Function,Rf=TypeError,Mw=function(e){try{return az('"use strict"; return ('+e+").constructor;")()}catch{}},_c=Object.getOwnPropertyDescriptor;if(_c)try{_c({},"")}catch{_c=null}var Dw=function(){throw new Rf},$2e=_c?function(){try{return arguments.callee,Dw}catch{try{return _c(arguments,"callee").get}catch{return Dw}}}():Dw,Pd=P2e(),z2e=R2e(),$r=Object.getPrototypeOf||(z2e?function(e){return e.__proto__}:null),Md={},j2e=typeof Uint8Array>"u"||!$r?Ut:$r(Uint8Array),bc={"%AggregateError%":typeof AggregateError>"u"?Ut:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ut:ArrayBuffer,"%ArrayIteratorPrototype%":Pd&&$r?$r([][Symbol.iterator]()):Ut,"%AsyncFromSyncIteratorPrototype%":Ut,"%AsyncFunction%":Md,"%AsyncGenerator%":Md,"%AsyncGeneratorFunction%":Md,"%AsyncIteratorPrototype%":Md,"%Atomics%":typeof Atomics>"u"?Ut:Atomics,"%BigInt%":typeof BigInt>"u"?Ut:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ut:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ut:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ut:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ut:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ut:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ut:FinalizationRegistry,"%Function%":az,"%GeneratorFunction%":Md,"%Int8Array%":typeof Int8Array>"u"?Ut:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ut:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ut:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Pd&&$r?$r($r([][Symbol.iterator]())):Ut,"%JSON%":typeof JSON=="object"?JSON:Ut,"%Map%":typeof Map>"u"?Ut:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Pd||!$r?Ut:$r(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ut:Promise,"%Proxy%":typeof Proxy>"u"?Ut:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ut:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ut:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Pd||!$r?Ut:$r(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ut:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Pd&&$r?$r(""[Symbol.iterator]()):Ut,"%Symbol%":Pd?Symbol:Ut,"%SyntaxError%":th,"%ThrowTypeError%":$2e,"%TypedArray%":j2e,"%TypeError%":Rf,"%Uint8Array%":typeof Uint8Array>"u"?Ut:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ut:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ut:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ut:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ut:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ut:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ut:WeakSet};if($r)try{null.error}catch(e){var B2e=$r($r(e));bc["%Error.prototype%"]=B2e}var V2e=function e(t){var n;if(t==="%AsyncFunction%")n=Mw("async function () {}");else if(t==="%GeneratorFunction%")n=Mw("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Mw("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&$r&&(n=$r(i.prototype))}return bc[t]=n,n},CO={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xg=V6,G1=F2e,U2e=Xg.call(Function.call,Array.prototype.concat),H2e=Xg.call(Function.apply,Array.prototype.splice),EO=Xg.call(Function.call,String.prototype.replace),K1=Xg.call(Function.call,String.prototype.slice),W2e=Xg.call(Function.call,RegExp.prototype.exec),q2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G2e=/\\(\\)?/g,K2e=function(t){var n=K1(t,0,1),r=K1(t,-1);if(n==="%"&&r!=="%")throw new th("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new th("invalid intrinsic syntax, expected opening `%`");var i=[];return EO(t,q2e,function(a,o,s,l){i[i.length]=s?EO(l,G2e,"$1"):o||a}),i},Y2e=function(t,n){var r=t,i;if(G1(CO,r)&&(i=CO[r],r="%"+i[0]+"%"),G1(bc,r)){var a=bc[r];if(a===Md&&(a=V2e(r)),typeof a>"u"&&!n)throw new Rf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:a}}throw new th("intrinsic "+t+" does not exist!")},U6=function(t,n){if(typeof t!="string"||t.length===0)throw new Rf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Rf('"allowMissing" argument must be a boolean');if(W2e(/^%?[^%]*%?$/,t)===null)throw new th("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=K2e(t),i=r.length>0?r[0]:"",a=Y2e("%"+i+"%",n),o=a.name,s=a.value,l=!1,c=a.alias;c&&(i=c[0],H2e(r,U2e([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var p=r[f],v=K1(p,0,1),y=K1(p,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new th("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,o="%"+i+"%",G1(bc,o))s=bc[o];else if(s!=null){if(!(p in s)){if(!n)throw new Rf("base intrinsic for "+t+" exists, but the property is not available.");return}if(_c&&f+1>=r.length){var m=_c(s,p);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[p]}else h=G1(s,p),s=s[p];h&&!l&&(bc[o]=s)}}return s},oz={exports:{}};(function(e){var t=V6,n=U6,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(i,r),o=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(h){var p=a(t,i,arguments);if(o&&s){var v=o(p,"length");v.configurable&&s(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return a(t,r,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(oz);var Z2e=oz.exports,sz=U6,lz=Z2e,Q2e=lz(sz("String.prototype.indexOf")),X2e=function(t,n){var r=sz(t,!!n);return typeof r=="function"&&Q2e(t,".prototype.")>-1?lz(r):r};const J2e={},eSe=Object.freeze(Object.defineProperty({__proto__:null,default:J2e},Symbol.toStringTag,{value:"Module"})),tSe=lA(eSe);var H6=typeof Map=="function"&&Map.prototype,Nw=Object.getOwnPropertyDescriptor&&H6?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Y1=H6&&Nw&&typeof Nw.get=="function"?Nw.get:null,kO=H6&&Map.prototype.forEach,W6=typeof Set=="function"&&Set.prototype,Fw=Object.getOwnPropertyDescriptor&&W6?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Z1=W6&&Fw&&typeof Fw.get=="function"?Fw.get:null,TO=W6&&Set.prototype.forEach,nSe=typeof WeakMap=="function"&&WeakMap.prototype,hm=nSe?WeakMap.prototype.has:null,rSe=typeof WeakSet=="function"&&WeakSet.prototype,pm=rSe?WeakSet.prototype.has:null,iSe=typeof WeakRef=="function"&&WeakRef.prototype,PO=iSe?WeakRef.prototype.deref:null,aSe=Boolean.prototype.valueOf,oSe=Object.prototype.toString,sSe=Function.prototype.toString,lSe=String.prototype.match,q6=String.prototype.slice,Kl=String.prototype.replace,uSe=String.prototype.toUpperCase,OO=String.prototype.toLowerCase,uz=RegExp.prototype.test,RO=Array.prototype.concat,Go=Array.prototype.join,cSe=Array.prototype.slice,AO=Math.floor,g3=typeof BigInt=="function"?BigInt.prototype.valueOf:null,$w=Object.getOwnPropertySymbols,v3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,nh=typeof Symbol=="function"&&typeof Symbol.iterator=="object",mi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===nh||"symbol")?Symbol.toStringTag:null,cz=Object.prototype.propertyIsEnumerable,IO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function LO(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||uz.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-AO(-e):AO(e);if(r!==e){var i=String(r),a=q6.call(t,i.length+1);return Kl.call(i,n,"$&_")+"."+Kl.call(Kl.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Kl.call(t,n,"$&_")}var y3=tSe,MO=y3.custom,DO=fz(MO)?MO:null,dSe=function e(t,n,r,i){var a=n||{};if(zl(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zl(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=zl(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zl(a,"indent")&&a.indent!==null&&a.indent!=="   "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zl(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return pz(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?LO(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?LO(t,c):c}var f=typeof a.depth>"u"?5:a.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return _3(t)?"[Array]":"[Object]";var h=OSe(a,r);if(typeof i>"u")i=[];else if(hz(i,t)>=0)return"[Circular]";function p(q,ae,ee){if(ae&&(i=cSe.call(i),i.push(ae)),ee){var ce={depth:a.depth};return zl(a,"quoteStyle")&&(ce.quoteStyle=a.quoteStyle),e(q,ce,r+1,i)}return e(q,a,r+1,i)}if(typeof t=="function"&&!NO(t)){var v=bSe(t),y=F0(t,p);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+Go.call(y,", ")+" }":"")}if(fz(t)){var m=nh?Kl.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):v3.call(t);return typeof t=="object"&&!nh?Pp(m):m}if(kSe(t)){for(var _="<"+OO.call(String(t.nodeName)),b=t.attributes||[],S=0;S<b.length;S++)_+=" "+b[S].name+"="+dz(fSe(b[S].value),"double",a);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+OO.call(String(t.nodeName))+">",_}if(_3(t)){if(t.length===0)return"[]";var C=F0(t,p);return h&&!PSe(C)?"["+b3(C,h)+"]":"[ "+Go.call(C,", ")+" ]"}if(pSe(t)){var E=F0(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!cz.call(t,"cause")?"{ ["+String(t)+"] "+Go.call(RO.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Go.call(E,", ")+" }"}if(typeof t=="object"&&o){if(DO&&typeof t[DO]=="function"&&y3)return y3(t,{depth:f-r});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(SSe(t)){var R=[];return kO&&kO.call(t,function(q,ae){R.push(p(ae,t,!0)+" => "+p(q,t))}),FO("Map",Y1.call(t),R,h)}if(CSe(t)){var A=[];return TO&&TO.call(t,function(q){A.push(p(q,t))}),FO("Set",Z1.call(t),A,h)}if(wSe(t))return zw("WeakMap");if(ESe(t))return zw("WeakSet");if(xSe(t))return zw("WeakRef");if(gSe(t))return Pp(p(Number(t)));if(ySe(t))return Pp(p(g3.call(t)));if(vSe(t))return Pp(aSe.call(t));if(mSe(t))return Pp(p(String(t)));if(!hSe(t)&&!NO(t)){var I=F0(t,p),M=IO?IO(t)===Object.prototype:t instanceof Object||t.constructor===Object,F=t instanceof Object?"":"null prototype",z=!M&&mi&&Object(t)===t&&mi in t?q6.call(Eu(t),8,-1):F?"Object":"",Y=M||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",W=Y+(z||F?"["+Go.call(RO.call([],z||[],F||[]),": ")+"] ":"");return I.length===0?W+"{}":h?W+"{"+b3(I,h)+"}":W+"{ "+Go.call(I,", ")+" }"}return String(t)};function dz(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function fSe(e){return Kl.call(String(e),/"/g,"&quot;")}function _3(e){return Eu(e)==="[object Array]"&&(!mi||!(typeof e=="object"&&mi in e))}function hSe(e){return Eu(e)==="[object Date]"&&(!mi||!(typeof e=="object"&&mi in e))}function NO(e){return Eu(e)==="[object RegExp]"&&(!mi||!(typeof e=="object"&&mi in e))}function pSe(e){return Eu(e)==="[object Error]"&&(!mi||!(typeof e=="object"&&mi in e))}function mSe(e){return Eu(e)==="[object String]"&&(!mi||!(typeof e=="object"&&mi in e))}function gSe(e){return Eu(e)==="[object Number]"&&(!mi||!(typeof e=="object"&&mi in e))}function vSe(e){return Eu(e)==="[object Boolean]"&&(!mi||!(typeof e=="object"&&mi in e))}function fz(e){if(nh)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!v3)return!1;try{return v3.call(e),!0}catch{}return!1}function ySe(e){if(!e||typeof e!="object"||!g3)return!1;try{return g3.call(e),!0}catch{}return!1}var _Se=Object.prototype.hasOwnProperty||function(e){return e in this};function zl(e,t){return _Se.call(e,t)}function Eu(e){return oSe.call(e)}function bSe(e){if(e.name)return e.name;var t=lSe.call(sSe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function hz(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function SSe(e){if(!Y1||!e||typeof e!="object")return!1;try{Y1.call(e);try{Z1.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function wSe(e){if(!hm||!e||typeof e!="object")return!1;try{hm.call(e,hm);try{pm.call(e,pm)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function xSe(e){if(!PO||!e||typeof e!="object")return!1;try{return PO.call(e),!0}catch{}return!1}function CSe(e){if(!Z1||!e||typeof e!="object")return!1;try{Z1.call(e);try{Y1.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ESe(e){if(!pm||!e||typeof e!="object")return!1;try{pm.call(e,pm);try{hm.call(e,hm)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function kSe(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function pz(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return pz(q6.call(e,0,t.maxStringLength),t)+r}var i=Kl.call(Kl.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,TSe);return dz(i,"single",t)}function TSe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+uSe.call(t.toString(16))}function Pp(e){return"Object("+e+")"}function zw(e){return e+" { ? }"}function FO(e,t,n,r){var i=r?b3(n,r):Go.call(n,", ");return e+" ("+t+") {"+i+"}"}function PSe(e){for(var t=0;t<e.length;t++)if(hz(e[t],`
     463`)>=0)return!1;return!0}function OSe(e,t){var n;if(e.indent===" ")n="   ";else if(typeof e.indent=="number"&&e.indent>0)n=Go.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Go.call(Array(t+1),n)}}function b3(e,t){if(e.length===0)return"";var n=`
    464464`+t.prev+t.base;return n+Go.call(e,","+n)+`
    465 `+t.prev}function F0(e,t){var n=_C(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=zl(e,i)?t(e[i],e):""}var a=typeof $w=="function"?$w(e):[],o;if(nh){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)zl(e,l)&&(n&&String(Number(l))===l&&l<e.length||nh&&o["$"+l]instanceof Symbol||(uz.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof $w=="function")for(var c=0;c<a.length;c++)cz.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}var G6=U6,Sh=X2e,RSe=dSe,ASe=G6("%TypeError%"),$0=G6("%WeakMap%",!0),z0=G6("%Map%",!0),ISe=Sh("WeakMap.prototype.get",!0),LSe=Sh("WeakMap.prototype.set",!0),MSe=Sh("WeakMap.prototype.has",!0),DSe=Sh("Map.prototype.get",!0),NSe=Sh("Map.prototype.set",!0),FSe=Sh("Map.prototype.has",!0),K6=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},$Se=function(e,t){var n=K6(e,t);return n&&n.value},zSe=function(e,t,n){var r=K6(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},jSe=function(e,t){return!!K6(e,t)},BSe=function(){var t,n,r,i={assert:function(a){if(!i.has(a))throw new ASe("Side channel does not contain "+RSe(a))},get:function(a){if($0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return ISe(t,a)}else if(z0){if(n)return DSe(n,a)}else if(r)return $Se(r,a)},has:function(a){if($0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return MSe(t,a)}else if(z0){if(n)return FSe(n,a)}else if(r)return jSe(r,a);return!1},set:function(a,o){$0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new $0),LSe(t,a,o)):z0?(n||(n=new z0),NSe(n,a,o)):(r||(r={key:{},next:null}),zSe(r,a,o))}};return i},VSe=String.prototype.replace,USe=/%20/g,jw={RFC1738:"RFC1738",RFC3986:"RFC3986"},Y6={default:jw.RFC3986,formatters:{RFC1738:function(e){return VSe.call(e,USe,"+")},RFC3986:function(e){return String(e)}},RFC1738:jw.RFC1738,RFC3986:jw.RFC3986},HSe=Y6,Bw=Object.prototype.hasOwnProperty,tc=Array.isArray,Bo=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),WSe=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(tc(r)){for(var i=[],a=0;a<r.length;++a)typeof r[a]<"u"&&i.push(r[a]);n.obj[n.prop]=i}}},mz=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},qSe=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(tc(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Bw.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return tc(t)&&!tc(n)&&(i=mz(t,r)),tc(t)&&tc(n)?(n.forEach(function(a,o){if(Bw.call(t,o)){var s=t[o];s&&typeof s=="object"&&a&&typeof a=="object"?t[o]=e(s,a,r):t.push(a)}else t[o]=a}),t):Object.keys(n).reduce(function(a,o){var s=n[o];return Bw.call(a,o)?a[o]=e(a[o],s,r):a[o]=s,a},i)},GSe=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},KSe=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},YSe=function(t,n,r,i,a){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),r==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var s="",l=0;l<o.length;++l){var c=o.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===HSe.RFC1738&&(c===40||c===41)){s+=o.charAt(l);continue}if(c<128){s=s+Bo[c];continue}if(c<2048){s=s+(Bo[192|c>>6]+Bo[128|c&63]);continue}if(c<55296||c>=57344){s=s+(Bo[224|c>>12]+Bo[128|c>>6&63]+Bo[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|o.charCodeAt(l)&1023),s+=Bo[240|c>>18]+Bo[128|c>>12&63]+Bo[128|c>>6&63]+Bo[128|c&63]}return s},ZSe=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var a=n[i],o=a.obj[a.prop],s=Object.keys(o),l=0;l<s.length;++l){var c=s[l],f=o[c];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:o,prop:c}),r.push(f))}return WSe(n),t},QSe=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},XSe=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},JSe=function(t,n){return[].concat(t,n)},ewe=function(t,n){if(tc(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},gz={arrayToObject:mz,assign:GSe,combine:JSe,compact:ZSe,decode:KSe,encode:YSe,isBuffer:XSe,isRegExp:QSe,maybeMap:ewe,merge:qSe},vz=BSe,Oy=gz,mm=Y6,twe=Object.prototype.hasOwnProperty,$O={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},Ms=Array.isArray,nwe=Array.prototype.push,yz=function(e,t){nwe.apply(e,Ms(t)?t:[t])},rwe=Date.prototype.toISOString,zO=mm.default,ui={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Oy.encode,encodeValuesOnly:!1,format:zO,formatter:mm.formatters[zO],indices:!1,serializeDate:function(t){return rwe.call(t)},skipNulls:!1,strictNullHandling:!1},iwe=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Vw={},awe=function e(t,n,r,i,a,o,s,l,c,f,h,p,v,y,m,_){for(var b=t,S=_,C=0,E=!1;(S=S.get(Vw))!==void 0&&!E;){var R=S.get(t);if(C+=1,typeof R<"u"){if(R===C)throw new RangeError("Cyclic object value");E=!0}typeof S.get(Vw)>"u"&&(C=0)}if(typeof l=="function"?b=l(n,b):b instanceof Date?b=h(b):r==="comma"&&Ms(b)&&(b=Oy.maybeMap(b,function(ce){return ce instanceof Date?h(ce):ce})),b===null){if(a)return s&&!y?s(n,ui.encoder,m,"key",p):n;b=""}if(iwe(b)||Oy.isBuffer(b)){if(s){var A=y?n:s(n,ui.encoder,m,"key",p);return[v(A)+"="+v(s(b,ui.encoder,m,"value",p))]}return[v(n)+"="+v(String(b))]}var I=[];if(typeof b>"u")return I;var M;if(r==="comma"&&Ms(b))y&&s&&(b=Oy.maybeMap(b,s)),M=[{value:b.length>0?b.join(",")||null:void 0}];else if(Ms(l))M=l;else{var F=Object.keys(b);M=c?F.sort(c):F}for(var z=i&&Ms(b)&&b.length===1?n+"[]":n,Y=0;Y<M.length;++Y){var W=M[Y],q=typeof W=="object"&&typeof W.value<"u"?W.value:b[W];if(!(o&&q===null)){var ae=Ms(b)?typeof r=="function"?r(z,W):z:z+(f?"."+W:"["+W+"]");_.set(t,C);var ee=vz();ee.set(Vw,_),yz(I,e(q,ae,r,i,a,o,r==="comma"&&y&&Ms(b)?null:s,l,c,f,h,p,v,y,m,ee))}}return I},owe=function(t){if(!t)return ui;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||ui.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=mm.default;if(typeof t.format<"u"){if(!twe.call(mm.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=mm.formatters[r],a=ui.filter;return(typeof t.filter=="function"||Ms(t.filter))&&(a=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ui.addQueryPrefix,allowDots:typeof t.allowDots>"u"?ui.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ui.charsetSentinel,delimiter:typeof t.delimiter>"u"?ui.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ui.encode,encoder:typeof t.encoder=="function"?t.encoder:ui.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ui.encodeValuesOnly,filter:a,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ui.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ui.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ui.strictNullHandling}},swe=function(e,t){var n=e,r=owe(t),i,a;typeof r.filter=="function"?(a=r.filter,n=a("",n)):Ms(r.filter)&&(a=r.filter,i=a);var o=[];if(typeof n!="object"||n===null)return"";var s;t&&t.arrayFormat in $O?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=$O[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=vz(),h=0;h<i.length;++h){var p=i[h];r.skipNulls&&n[p]===null||yz(o,awe(n[p],p,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var v=o.join(r.delimiter),y=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""},rh=gz,SC=Object.prototype.hasOwnProperty,lwe=Array.isArray,Mr={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:rh.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},uwe=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},_z=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},cwe="utf8=%26%2310003%3B",dwe="utf8=%E2%9C%93",fwe=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=n.parameterLimit===1/0?void 0:n.parameterLimit,o=i.split(n.delimiter,a),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<o.length;++l)o[l].indexOf("utf8=")===0&&(o[l]===dwe?c="utf-8":o[l]===cwe&&(c="iso-8859-1"),s=l,l=o.length);for(l=0;l<o.length;++l)if(l!==s){var f=o[l],h=f.indexOf("]="),p=h===-1?f.indexOf("="):h+1,v,y;p===-1?(v=n.decoder(f,Mr.decoder,c,"key"),y=n.strictNullHandling?null:""):(v=n.decoder(f.slice(0,p),Mr.decoder,c,"key"),y=rh.maybeMap(_z(f.slice(p+1),n),function(m){return n.decoder(m,Mr.decoder,c,"value")})),y&&n.interpretNumericEntities&&c==="iso-8859-1"&&(y=uwe(y)),f.indexOf("[]=")>-1&&(y=lwe(y)?[y]:y),SC.call(r,v)?r[v]=rh.combine(r[v],y):r[v]=y}return r},hwe=function(e,t,n,r){for(var i=r?t:_z(t,n),a=e.length-1;a>=0;--a){var o,s=e[a];if(s==="[]"&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=parseInt(l,10);!n.parseArrays&&l===""?o={0:i}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[],o[c]=i):l!=="__proto__"&&(o[l]=i)}i=o}return i},pwe=function(t,n,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&o.exec(a),c=l?a.slice(0,l.index):a,f=[];if(c){if(!r.plainObjects&&SC.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=s.exec(a))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&SC.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+a.slice(l.index)+"]"),hwe(f,n,r,i)}},mwe=function(t){if(!t)return Mr;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Mr.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Mr.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Mr.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Mr.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Mr.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Mr.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Mr.comma,decoder:typeof t.decoder=="function"?t.decoder:Mr.decoder,delimiter:typeof t.delimiter=="string"||rh.isRegExp(t.delimiter)?t.delimiter:Mr.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Mr.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Mr.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Mr.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Mr.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Mr.strictNullHandling}},gwe=function(e,t){var n=mwe(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?fwe(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(r),o=0;o<a.length;++o){var s=a[o],l=pwe(s,r[s],n,typeof e=="string");i=rh.merge(i,l,n)}return n.allowSparse===!0?i:rh.compact(i)},vwe=swe,ywe=gwe,_we=Y6,bwe={formats:_we,parse:ywe,stringify:vwe};const Z6=vu(bwe),Swe=!hi.get(Qg)||!hi.get(z6),wwe=()=>({domain:hi.get(Zg),token:hi.get(Qg),tokenExpiresAt:hi.get($6),refreshToken:hi.get(z6)}),xwe=({domain:e,token:t,refreshToken:n,tokenExpiresAt:r})=>{hi.set(Zg,e.toString()),hi.set(Qg,t),hi.set($6,r),hi.set(z6,n,{secure:!0,sameSite:"Strict",domain:window.location.hostname,path:"/"})},Cwe=({isRemoveDomain:e=!1}={})=>{hi.remove(Qg),hi.remove($6),e&&hi.remove(Zg)},df={authSuccess:xwe,authFail:Cwe,getAuthCookies:wwe,isMissingToken:Swe},Ewe=async e=>{var t;try{const{config:n}=e,[r,i]=((t=n.baseURL)==null?void 0:t.split("://"))||"";if(r==="http")return new Error("Request already tried with HTTP protocol, but failed again.");const a=`http://${i}`;return n.baseURL=a,await Q6(n)}catch(n){return Promise.reject(n)}},bz=async()=>{try{const e=df.getAuthCookies().tokenExpiresAt;if(!e)return Promise.reject("Token expires at is not found in cookies");const t=new Date,n=E2e(new Date(e),1);if(!b2e(t,n))return hi.get(Qg);const i=await X6.newTokenByRefreshToken();return df.authSuccess({domain:df.getAuthCookies().domain||"",token:i.token,refreshToken:"",tokenExpiresAt:ez(new Date,3).toISOString()}),i.token}catch(e){if(e.response.status===401){df.authFail({isRemoveDomain:!1});const t=Z6.stringify({type:"sessionExpired"});window.location.href=`${kr.ROUTES.HOME}?${t}`}return Promise.reject("Get token fail")}},Ll=window,j0=window.location.hostname.includes("localhost"),ig={transcyUrl:j0?X_e:Ll.transcy_url,transcyApiKey:j0?ebe:Ll.transcy_apikey,transcyToken:j0?J_e:Ll.transcy_token,transcyVersion:Ll.transcy_version,transcyWooVersion:Ll.transcy_woo_version,transcyWpVersion:Ll.transcy_wp_version,transcyHostname:j0?Q_e:new URL(Ll.transcy_url).hostname||"",transcyTokenExpiresAt:Ll.transcy_token_expires_at},Ir=F6.create({baseURL:`${X$}/api`,timeout:60*1e3});Ir.interceptors.request.use(async function(e){const t=await bz();return t&&(e.headers.Authorization=`Bearer ${t}`),e.headers["X-Transcy-Hostname"]=hi.get(Zg),e});Ir.interceptors.response.use(e=>e.data,async e=>{var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===402?location.href=kr.ROUTES.HOME:Promise.reject(e)});const Sz=F6.create({baseURL:`${X$}/api`,timeout:60*1e3});Sz.interceptors.request.use(async function(e){return e.headers["X-Transcy-Hostname"]=hi.get(Zg),e});Sz.interceptors.response.use(e=>e.data,e=>Promise.reject(e));const Q6=F6.create({timeout:60*1e3,baseURL:`${ig.transcyUrl}/?rest_route=/transcy-api/v1`,headers:{"Content-Type":"application/json",Authorization:`${ig.transcyApiKey}`}});Q6.interceptors.response.use(e=>e.data,async e=>await Ewe(e));const kwe=()=>Q6({url:"get-token"}),Twe=()=>Ir({url:"clients/current"}),Pwe=()=>Ir({url:"crispchat"}),X6={newTokenByRefreshToken:kwe,getCurrentUser:Twe,getCrispChatUser:Pwe},wz={getToken:"token",getActivePluginOfUser:"getActivePluginOfUser",getCrispChatUser:"getCrispChatUser",getCurrentUser:"getCurrentUser"},ff={NO_PLAN:"NO_PLAN",TRIAL_EXPIRED:"TRIAL_EXPIRED",NO_SUBSCRIPTION:"NO_SUBSCRIPTION",RECURRING_CHARGE_FAIL:"RECURRING_CHARGE_FAIL"},Ao=({enabled:e=!0}={})=>wo({queryKey:[wz.getCurrentUser],queryFn:()=>X6.getCurrentUser(),cacheTime:1/0,staleTime:1/0,enabled:e}),Owe=()=>Ir({url:"/news",method:"GET"}),Rwe=()=>Ir({url:"/articles",method:"GET"}),Awe=e=>Ir({url:"tracking/event",method:"POST",data:e}),ho={getNews:Owe,getArticles:Rwe,trackingSegmentEvent:Awe},Iwe={ONBOARDING:{ROUTE_CHANGE_VIEW_ONBOARDING_WIZARD:"View onboarding wizard"},HOME:{ROUTE_CHANGE_VIEW_DASHBOARD:"View Dashboard Plugin"}},Lwe={ONBOARDING:{CLICK_EVENT_PREVIEW_SWITCHER:"Click Preview Switcher",CLICK_EVENT_GO_TO_DASHBOARD:"Click Go to Dashboard"},HOME:{CLICK_EVENT_SECTION_LANGUAGE:"Click Section Language",CLICK_EVENT_SECTION_TRANSLATION:"Click Section Translation",CLICK_EVENT_SECTION_CURRENCY:"Click Section Currency",CLICK_EVENT_SECTION_AUTO_TRANSLATION:"Click Section Auto Translation",CLICK_EVENT_SWITCHER:"Click Section Switcher",CLICK_EVENT_SHORTCUT_LANGUAGE:"Click Shortcut Language",CLICK_EVENT_SHORTCUT_TRANSLATION:"Click Shortcut Translation",CLICK_EVENT_SHORTCUT_CURRENCY:"Click Shortcut Currency",CLICK_EVENT_SHORTCUT_SWITCHER:"Click Shortcut Switcher",CLICK_EVENT_SHORTCUT_HOME:"Click Menu Home",CLICK_EVENT_SHORTCUT_TRANSCY:"Click Transcy"}},Ba={PAGE_VIEW:Iwe,ACTION_EVENT:Lwe},Mwe=async e=>{var i,a;const t=((i=Object.entries(kr.ROUTES).find(([,o])=>o===e))==null?void 0:i[0])||"";if(!(t in Ba.PAGE_VIEW))return;const n=Ba.PAGE_VIEW[t],r=(a=Object.entries(n).reduce((o,[s,l])=>s.includes("ROUTE_CHANGE")?[...o,l]:o,[]))==null?void 0:a[0];try{await ho.trackingSegmentEvent({event:r})}catch{console.warn("[SEGMENT] Error tracking page view")}},Dwe={pageView:Mwe},Nwe="li.transcy_menu_switcher",Fwe=".wp-submenu-head",$we=".wp-first-item",{CLICK_EVENT_SHORTCUT_CURRENCY:zwe,CLICK_EVENT_SHORTCUT_LANGUAGE:jwe,CLICK_EVENT_SHORTCUT_SWITCHER:Bwe,CLICK_EVENT_SHORTCUT_TRANSLATION:Vwe}=Ba.ACTION_EVENT.HOME,Uwe=()=>{const e=Wg(),t=async n=>{try{await ho.trackingSegmentEvent({event:n})}catch{console.warn("[SEGMENT] Error tracking event")}};return w.useEffect(()=>{var o;const n=document.querySelectorAll(Nwe)||null,r=((o=n[0])==null?void 0:o.parentElement)||null,i=r==null?void 0:r.querySelector(Fwe),a=r==null?void 0:r.querySelector($we);i==null||i.addEventListener("click",()=>{t(Ba.ACTION_EVENT.HOME.CLICK_EVENT_SHORTCUT_HOME)}),a==null||a.addEventListener("click",()=>{t(Ba.ACTION_EVENT.HOME.CLICK_EVENT_SHORTCUT_TRANSCY)}),n==null||n.forEach(s=>{s.addEventListener("click",async()=>{var h;const l=((h=s.textContent)==null?void 0:h.trim().toUpperCase())||"";if(!l)return;const f={LANGUAGE:jwe,CURRENCY:zwe,TRANSLATION:Vwe,SWITCHER:Bwe}[l];await t(f)})})},[]),w.useEffect(()=>{const n=e.pathname;Dwe.pageView(n)},[e]),{}},Hwe=e=>T.jsxs(Wt,{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",...e,children:[T.jsx("path",{d:"M12.0611 5.51172C11.844 5.51184 11.6337 5.58722 11.466 5.72502C11.2982 5.86283 11.1835 6.05452 11.1412 6.26745C11.099 6.48038 11.1319 6.70137 11.2343 6.89277C11.3367 7.08416 11.5023 7.23413 11.7029 7.3171C11.9035 7.40008 12.1267 7.41094 12.3344 7.34784C12.5421 7.28473 12.7215 7.15156 12.842 6.97101C12.9625 6.79046 13.0167 6.57371 12.9954 6.35769C12.974 6.14166 12.8784 5.93973 12.7248 5.78629C12.6378 5.69904 12.5343 5.62986 12.4204 5.58274C12.3065 5.53562 12.1844 5.51148 12.0611 5.51172Z",fill:"#718096"}),T.jsx("path",{d:"M17.285 1.75984C17.2849 1.75879 17.2849 1.75773 17.285 1.75668C17.2553 1.62636 17.1897 1.50694 17.0958 1.4119C17.0018 1.31686 16.8831 1.24997 16.7531 1.21879C15.7055 0.963202 14.0573 1.23566 12.231 1.96691C10.3902 2.70519 8.66541 3.79504 7.49963 4.96293C7.12597 5.33461 6.77883 5.73203 6.46076 6.15226C5.67573 6.11711 4.9842 6.22891 4.40166 6.48308C2.37174 7.37641 1.79201 9.66262 1.63768 10.6013C1.61535 10.7347 1.62409 10.8714 1.66323 11.0008C1.70237 11.1303 1.77086 11.2489 1.86335 11.3476C1.95584 11.4462 2.06985 11.5222 2.19651 11.5696C2.32316 11.617 2.45904 11.6345 2.59358 11.6208H2.59815L4.8594 11.374C4.86221 11.4029 4.86537 11.4292 4.86783 11.4535C4.89688 11.729 5.01976 11.9862 5.21588 12.1819L6.31944 13.2862C6.51485 13.4826 6.77199 13.6056 7.04752 13.6346L7.12311 13.6427L6.87701 15.9011V15.9057C6.86444 16.0273 6.87738 16.1502 6.91502 16.2666C6.95265 16.3829 7.01415 16.4901 7.09558 16.5813C7.17701 16.6726 7.27658 16.7458 7.38792 16.7964C7.49927 16.8469 7.61993 16.8737 7.74221 16.8749C7.79109 16.875 7.83989 16.871 7.88811 16.863C8.83205 16.7111 11.1172 16.1384 12.0081 14.0976C12.2601 13.5189 12.3716 12.8302 12.3403 12.0466C12.7624 11.7292 13.1613 11.382 13.5338 11.0077C14.7091 9.8384 15.8025 8.12769 16.533 6.31363C17.2604 4.50801 17.5343 2.84758 17.285 1.75984ZM13.5212 7.90797C13.2323 8.19714 12.8642 8.39413 12.4633 8.47403C12.0625 8.55392 11.6469 8.51313 11.2693 8.35682C10.8916 8.2005 10.5688 7.93568 10.3417 7.59586C10.1146 7.25604 9.99332 6.85649 9.99332 6.44775C9.99332 6.03902 10.1146 5.63947 10.3417 5.29965C10.5688 4.95983 10.8916 4.69501 11.2693 4.53869C11.6469 4.38237 12.0625 4.34158 12.4633 4.42148C12.8642 4.50137 13.2323 4.69837 13.5212 4.98754C13.7148 5.17825 13.8686 5.40556 13.9735 5.65624C14.0785 5.90693 14.1325 6.17598 14.1325 6.44775C14.1325 6.71952 14.0785 6.98858 13.9735 7.23926C13.8686 7.48995 13.7148 7.71726 13.5212 7.90797Z",fill:"#718096"}),T.jsx("path",{d:"M6.19279 13.5855C6.05675 13.5686 5.91924 13.602 5.80607 13.6794C5.58143 13.833 5.35572 13.9849 5.12791 14.1329C4.66701 14.4324 4.11576 13.9065 4.38963 13.4297L4.81678 12.6915C4.87785 12.6021 4.91185 12.4971 4.91471 12.3889C4.91758 12.2807 4.88918 12.174 4.83292 12.0816C4.77666 11.9892 4.69493 11.9149 4.59754 11.8677C4.50014 11.8206 4.39121 11.8025 4.28381 11.8157C3.80973 11.8757 3.36905 12.0916 3.03119 12.4296C2.90252 12.5586 2.51123 12.9502 2.30064 14.4426C2.2407 14.8713 2.20292 15.3027 2.18744 15.7353C2.18552 15.8104 2.19864 15.8851 2.22605 15.955C2.25345 16.0249 2.29458 16.0886 2.34701 16.1424C2.39943 16.1962 2.4621 16.2389 2.5313 16.2681C2.6005 16.2972 2.67484 16.3122 2.74994 16.3122H2.764C3.19689 16.2969 3.62871 16.2593 4.05775 16.1997C5.55084 15.9888 5.94248 15.5971 6.07115 15.4685C6.41065 15.1304 6.62608 14.6877 6.68252 14.212C6.70059 14.064 6.65916 13.9148 6.56733 13.7974C6.4755 13.6799 6.34079 13.6037 6.19279 13.5855Z",fill:"#718096"})]}),jO=e=>T.jsx(Wt,{width:"31",height:"18",viewBox:"0 0 31 18",fill:"none",...e,children:T.jsx("path",{d:"M11.7979 12.9844C11.8916 13.2188 11.7979 13.4062 11.6104 13.5C11.376 13.5938 11.1885 13.5 11.0947 13.2656L10.251 11.25H5.8916L5.04785 13.2656C4.9541 13.5 4.7666 13.5938 4.53223 13.5C4.34473 13.4062 4.25098 13.2188 4.34473 12.9844L7.71973 4.73438C7.7666 4.59375 7.90723 4.5 8.09473 4.5C8.23535 4.5 8.37598 4.59375 8.42285 4.73438L11.7979 12.9844ZM6.17285 10.5H9.96973L8.09473 5.90625L6.17285 10.5ZM23.4697 6H26.8447C27.0322 6 27.2197 6.1875 27.2197 6.375C27.2197 6.60938 27.0322 6.75 26.8447 6.75H26.3291L25.9541 7.92188C25.4854 9.32812 24.6885 10.5469 23.6572 11.5312C23.8916 11.6719 24.126 11.8125 24.3604 11.9531L25.8604 12.8438C26.0479 12.9375 26.1416 13.1719 26.001 13.3125C25.9072 13.5 25.6729 13.5938 25.5322 13.4531L23.9854 12.6094C23.6572 12.4219 23.376 12.2344 23.0947 12C22.7197 12.2812 22.2979 12.5625 21.9229 12.7969L20.6104 13.4531C20.4229 13.5938 20.2354 13.5 20.0947 13.3125C20.001 13.125 20.0947 12.9375 20.2822 12.7969L21.5479 12.1406C21.876 11.9531 22.1572 11.7656 22.4854 11.5312C22.2979 11.3906 22.1104 11.2031 21.9229 11.0156L20.5635 9.65625C20.4229 9.51562 20.4229 9.28125 20.5635 9.14062C20.7041 9 20.9385 9 21.0791 9.14062L22.4385 10.5C22.626 10.6875 22.8604 10.875 23.0479 11.0625C24.0322 10.125 24.8291 9 25.251 7.6875L25.5322 6.75H19.3447C19.1104 6.75 18.9697 6.60938 18.9697 6.375C18.9697 6.1875 19.1104 6 19.3447 6H22.7197V4.875C22.7197 4.6875 22.8604 4.5 23.0947 4.5C23.2822 4.5 23.4697 4.6875 23.4697 4.875V6ZM30.5947 15C30.5947 16.6875 29.2354 18 27.5947 18H3.59473C1.90723 18 0.594727 16.6875 0.594727 15V3C0.594727 1.35938 1.90723 0 3.59473 0H27.5947C29.2354 0 30.5947 1.35938 30.5947 3V15ZM15.2197 0.75H3.59473C2.3291 0.75 1.34473 1.78125 1.34473 3V15C1.34473 16.2656 2.3291 17.25 3.59473 17.25H15.2197V0.75ZM15.9697 0.75V17.25H27.5947C28.8135 17.25 29.8447 16.2656 29.8447 15V3C29.8447 1.78125 28.8135 0.75 27.5947 0.75H15.9697Z"})}),Wwe=e=>T.jsxs(Wt,{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",...e,children:[T.jsx("path",{d:"M28.375 2C29.2891 2 30 2.74072 30 3.6347V10.9398C30 11.8082 29.2637 12.5489 28.375 12.5489H24.7188L21.5449 14.9499C21.3418 15.0776 21.0625 14.9499 21.0625 14.6945V12.5745H18.625C17.7109 12.5745 17 11.8593 17 10.9653V3.6347C17 2.74072 17.7109 2 18.625 2H28.375ZM23.7285 9.35615C24.0586 9.35615 24.3379 9.10073 24.3379 8.74314C24.3379 8.41109 24.0586 8.13013 23.7285 8.13013H20.8848C20.5293 8.13013 20.2754 8.41109 20.2754 8.74314C20.2754 9.10073 20.5293 9.35615 20.8848 9.35615H23.7285ZM26.166 6.9041C26.4961 6.9041 26.7754 6.64868 26.7754 6.29109C26.7754 5.95904 26.4961 5.67808 26.166 5.67808H20.8848C20.5293 5.67808 20.2754 5.95904 20.2754 6.29109C20.2754 6.64868 20.5293 6.9041 20.8848 6.9041H26.166Z"}),T.jsx("path",{d:"M8.4 16.7188C9.375 16.7188 10.2 17.5352 10.2 18.5C10.2 19.502 9.375 20.2812 8.4 20.2812C7.3875 20.2812 6.6 19.502 6.6 18.5C6.6 17.5352 7.3875 16.7188 8.4 16.7188ZM8.4 19.6875C9.0375 19.6875 9.6 19.168 9.6 18.5C9.6 17.8691 9.0375 17.3125 8.4 17.3125C7.725 17.3125 7.2 17.8691 7.2 18.5C7.2 19.168 7.725 19.6875 8.4 19.6875ZM1.5 16.7188C0.975 16.7188 0.6 17.127 0.6 17.6094V22.9531C0.6 23.4727 0.975 23.8438 1.5 23.8438H2.3625C2.55 23.8438 2.7 23.9922 2.7 24.1406C2.7 24.3262 2.55 24.4375 2.4 24.4375H1.5C0.6375 24.4375 0 23.8066 0 22.9531V17.6094C0 16.793 0.6375 16.125 1.5 16.125H2.4C2.55 16.125 2.7 16.2734 2.7 16.4219C2.7 16.6074 2.55 16.7188 2.4 16.7188H1.5ZM15.6 16.7188C16.575 16.7188 17.4 17.5352 17.4 18.5C17.4 19.502 16.575 20.2812 15.6 20.2812C14.5875 20.2812 13.8 19.502 13.8 18.5C13.8 17.5352 14.5875 16.7188 15.6 16.7188ZM15.6 19.6875C16.2375 19.6875 16.8 19.168 16.8 18.5C16.8 17.8691 16.2375 17.3125 15.6 17.3125C14.925 17.3125 14.4 17.8691 14.4 18.5C14.4 19.168 14.925 19.6875 15.6 19.6875ZM16.8 12.5625C18.7875 12.5625 20.4 14.1582 20.4 16.125V24.4375C20.4 26.4414 18.7875 28 16.8 28H7.2C5.175 28 3.6 26.4414 3.6 24.4375V16.125C3.6 14.1582 5.175 12.5625 7.2 12.5625H11.7V9.29688C11.7 9.14844 11.8125 9 12 9C12.15 9 12.3 9.14844 12.3 9.29688V12.5625H16.8ZM19.8 23.8438V16.125C19.8 14.4922 18.45 13.1562 16.8 13.1562H7.2C5.5125 13.1562 4.2 14.4922 4.2 16.125V23.8438H5.7C5.85 23.8438 6 23.9922 6 24.1406C6 24.3262 5.85 24.4375 5.7 24.4375H4.2C4.2 26.1074 5.5125 27.4062 7.2 27.4062H16.8C18.45 27.4062 19.8 26.1074 19.8 24.4375H18.3C18.1125 24.4375 18 24.3262 18 24.1406C18 23.9922 18.1125 23.8438 18.3 23.8438H19.8ZM22.5 16.125C23.325 16.125 24 16.793 24 17.6094V22.9531C24 23.8066 23.325 24.4375 22.5 24.4375H21.6C21.4125 24.4375 21.3 24.2891 21.3 24.1406C21.3 23.9551 21.4125 23.8438 21.6 23.8438H22.5C22.9875 23.8438 23.4 23.4727 23.4 22.9531V17.6094C23.4 17.127 22.9875 16.7188 22.5 16.7188H21.6C21.4125 16.7188 21.3 16.6074 21.3 16.4219C21.3 16.2734 21.4125 16.125 21.6 16.125H22.5ZM9.3 23.8438C9.45 23.8438 9.6 23.9922 9.6 24.1406C9.6 24.3262 9.45 24.4375 9.3 24.4375H7.5C7.3125 24.4375 7.2 24.3262 7.2 24.1406C7.2 23.9922 7.3125 23.8438 7.5 23.8438H9.3ZM12.9 23.8438C13.05 23.8438 13.2 23.9922 13.2 24.1406C13.2 24.3262 13.05 24.4375 12.9 24.4375H11.1C10.9125 24.4375 10.8 24.3262 10.8 24.1406C10.8 23.9922 10.9125 23.8438 11.1 23.8438H12.9ZM16.5 23.8438C16.65 23.8438 16.8 23.9922 16.8 24.1406C16.8 24.3262 16.65 24.4375 16.5 24.4375H14.7C14.5125 24.4375 14.4 24.3262 14.4 24.1406C14.4 23.9922 14.5125 23.8438 14.7 23.8438H16.5Z"})]}),qwe=e=>T.jsx(Wt,{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",...e,children:T.jsx("path",{d:"M24.8447 5.625C22.9697 5.625 21.4697 4.125 21.4697 2.25V1.875C21.4697 1.6875 21.6104 1.5 21.8447 1.5C22.0322 1.5 22.2197 1.6875 22.2197 1.875V2.25C22.2197 3.70312 23.3916 4.875 24.8447 4.875H25.2197C25.4072 4.875 25.5947 5.0625 25.5947 5.25C25.5947 5.48438 25.4072 5.625 25.2197 5.625H24.8447ZM1.96973 4.875H2.34473C3.75098 4.875 4.96973 3.70312 4.96973 2.25V1.875C4.96973 1.6875 5.11035 1.5 5.34473 1.5C5.53223 1.5 5.71973 1.6875 5.71973 1.875V2.25C5.71973 4.125 4.17285 5.625 2.34473 5.625H1.96973C1.73535 5.625 1.59473 5.48438 1.59473 5.25C1.59473 5.0625 1.73535 4.875 1.96973 4.875ZM25.2197 12.375C25.4072 12.375 25.5947 12.5625 25.5947 12.75C25.5947 12.9844 25.4072 13.125 25.2197 13.125H24.8447C23.3916 13.125 22.2197 14.3438 22.2197 15.75V16.125C22.2197 16.3594 22.0322 16.5 21.8447 16.5C21.6104 16.5 21.4697 16.3594 21.4697 16.125V15.75C21.4697 13.9219 22.9697 12.375 24.8447 12.375H25.2197ZM1.59473 12.75C1.59473 12.5625 1.73535 12.375 1.96973 12.375H2.34473C4.17285 12.375 5.71973 13.9219 5.71973 15.75V16.125C5.71973 16.3594 5.53223 16.5 5.34473 16.5C5.11035 16.5 4.96973 16.3594 4.96973 16.125V15.75C4.96973 14.3438 3.75098 13.125 2.34473 13.125H1.96973C1.73535 13.125 1.59473 12.9844 1.59473 12.75ZM18.0947 9C18.0947 11.4844 16.0791 13.5 13.5947 13.5C11.0635 13.5 9.09473 11.4844 9.09473 9C9.09473 6.51562 11.0635 4.5 13.5947 4.5C16.0791 4.5 18.0947 6.51562 18.0947 9ZM13.5947 5.25C11.4854 5.25 9.84473 6.9375 9.84473 9C9.84473 11.1094 11.4854 12.75 13.5947 12.75C15.6572 12.75 17.3447 11.1094 17.3447 9C17.3447 6.9375 15.6572 5.25 13.5947 5.25ZM0.0947266 3C0.0947266 1.35938 1.40723 0 3.09473 0H24.0947C25.7354 0 27.0947 1.35938 27.0947 3V15C27.0947 16.6875 25.7354 18 24.0947 18H3.09473C1.40723 18 0.0947266 16.6875 0.0947266 15V3ZM0.844727 3V15C0.844727 16.2656 1.8291 17.25 3.09473 17.25H24.0947C25.3135 17.25 26.3447 16.2656 26.3447 15V3C26.3447 1.78125 25.3135 0.75 24.0947 0.75H3.09473C1.8291 0.75 0.844727 1.78125 0.844727 3Z"})}),Gwe=e=>T.jsx(Wt,{width:"25",height:"26",viewBox:"0 0 25 26",fill:"none",...e,children:T.jsx("path",{d:"M22.5322 1.60938L23.9854 3.0625C24.7354 3.8125 24.7354 4.98438 23.9854 5.73438L5.28223 24.4375C4.53223 25.1875 3.36035 25.1875 2.61035 24.4375L1.15723 22.9844C0.407227 22.2344 0.407227 21.0625 1.15723 20.3125L19.8604 1.60938C20.6104 0.859375 21.7822 0.859375 22.5322 1.60938ZM20.4229 2.125L14.2822 8.21875C14.3291 8.21875 14.3291 8.26562 14.3291 8.26562L17.3291 11.2656C17.3291 11.2656 17.376 11.2656 17.376 11.3125L23.4697 5.17188C23.8916 4.75 23.8916 4.04688 23.4697 3.625L21.9697 2.125C21.5479 1.70312 20.8447 1.70312 20.4229 2.125ZM1.67285 22.4219L3.17285 23.9219C3.59473 24.3438 4.29785 24.3438 4.71973 23.9219L16.8604 11.8281C16.8135 11.8281 16.8135 11.7812 16.8135 11.7812L13.8135 8.78125C13.8135 8.78125 13.7666 8.78125 13.7666 8.73438L1.67285 20.8281C1.25098 21.2969 1.25098 22 1.67285 22.4219ZM3.96973 6.625H6.59473C6.78223 6.625 6.96973 6.8125 6.96973 7C6.96973 7.23438 6.78223 7.375 6.59473 7.375H3.96973V10C3.96973 10.2344 3.78223 10.375 3.59473 10.375C3.36035 10.375 3.21973 10.2344 3.21973 10V7.375H0.594727C0.360352 7.375 0.219727 7.23438 0.219727 7C0.219727 6.8125 0.360352 6.625 0.594727 6.625H3.21973V4C3.21973 3.8125 3.36035 3.625 3.59473 3.625C3.78223 3.625 3.96973 3.8125 3.96973 4V6.625ZM21.5947 15.625C21.7822 15.625 21.9697 15.8125 21.9697 16V18.625H24.5947C24.7822 18.625 24.9697 18.8125 24.9697 19C24.9697 19.2344 24.7822 19.375 24.5947 19.375H21.9697V22C21.9697 22.2344 21.7822 22.375 21.5947 22.375C21.3604 22.375 21.2197 22.2344 21.2197 22V19.375H18.5947C18.3604 19.375 18.2197 19.2344 18.2197 19C18.2197 18.8125 18.3604 18.625 18.5947 18.625H21.2197V16C21.2197 15.8125 21.3604 15.625 21.5947 15.625ZM9.96973 3.625H11.0947C11.2822 3.625 11.4697 3.8125 11.4697 4C11.4697 4.23438 11.2822 4.375 11.0947 4.375H9.96973V5.5C9.96973 5.73438 9.78223 5.875 9.59473 5.875C9.36035 5.875 9.21973 5.73438 9.21973 5.5V4.375H8.09473C7.86035 4.375 7.71973 4.23438 7.71973 4C7.71973 3.8125 7.86035 3.625 8.09473 3.625H9.21973V2.5C9.21973 2.3125 9.36035 2.125 9.59473 2.125C9.78223 2.125 9.96973 2.3125 9.96973 2.5V3.625Z"})}),xz=e=>T.jsx(Wt,{viewBox:"0 0 7 12",fill:"none",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.52827 0.861278C0.788619 0.600928 1.21073 0.600928 1.47108 0.861278L6.13775 5.52794C6.3981 5.78829 6.3981 6.2104 6.13775 6.47075L1.47108 11.1374C1.21073 11.3978 0.788619 11.3978 0.52827 11.1374C0.26792 10.8771 0.26792 10.455 0.52827 10.1946L4.72353 5.99935L0.52827 1.80409C0.26792 1.54374 0.26792 1.12163 0.52827 0.861278Z",fill:"#4A5568"})}),Cz=e=>T.jsx(Wt,{viewBox:"0 0 7 12",fill:"none",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.47173 0.861278C6.73208 1.12163 6.73208 1.54374 6.47173 1.80409L2.27647 5.99935L6.47173 10.1946C6.73208 10.455 6.73208 10.8771 6.47173 11.1374C6.21138 11.3978 5.78927 11.3978 5.52892 11.1374L0.862254 6.47075C0.601905 6.2104 0.601905 5.78829 0.862254 5.52794L5.52892 0.861278C5.78927 0.600928 6.21138 0.600928 6.47173 0.861278Z",fill:"#4A5568"})}),Kwe=e=>T.jsxs(Wt,{width:"24",height:"24",viewBox:"0 0 24 24",...e,children:[T.jsx("circle",{cx:"12",cy:"12",r:"7.25",stroke:"#1A202C",strokeWidth:"1.5",fill:"none"}),T.jsx("circle",{cx:"12",cy:"12",r:"4.25",stroke:"#1A202C",strokeWidth:"1.5",fill:"none"}),T.jsx("circle",{cx:"11.9999",cy:"12.1992",r:"6",transform:"rotate(-45 11.9999 12.1992)",stroke:"#1A202C",strokeWidth:"3",strokeDasharray:"1.5 4",fill:"none"})]}),Ywe=e=>T.jsx(Wt,{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",...e,children:T.jsx("path",{d:"M7.77582 0.954246C7.86752 0.768435 8.13248 0.768435 8.22418 0.954246L10.293 5.14607C10.3294 5.21986 10.3998 5.271 10.4812 5.28283L15.1072 5.95502C15.3122 5.98482 15.3941 6.23681 15.2457 6.38145L11.8983 9.64433C11.8394 9.70176 11.8125 9.78451 11.8264 9.86561L12.6167 14.4729C12.6517 14.6771 12.4373 14.8328 12.2539 14.7364L8.11633 12.5612C8.0435 12.5229 7.9565 12.5229 7.88366 12.5612L3.74609 14.7364C3.56268 14.8328 3.34832 14.6771 3.38335 14.4729L4.17356 9.86561C4.18747 9.78451 4.16058 9.70176 4.10166 9.64433L0.754285 6.38145C0.605906 6.23681 0.687783 5.98482 0.892838 5.95502L5.51879 5.28283C5.60022 5.271 5.67061 5.21986 5.70703 5.14607L7.77582 0.954246Z",fill:"#F0C33C"})}),Zwe=e=>T.jsxs(Wt,{width:"34",height:"33",viewBox:"0 0 34 33",fill:"none",...e,children:[T.jsx("path",{d:"M20.2751 12.8273C19.8851 12.4355 19.453 12.0879 18.9864 11.791C17.5096 10.8465 15.7537 10.4343 14.01 10.6227C12.2663 10.8112 10.6395 11.5891 9.39931 12.8273L2.41398 19.8095C1.00127 21.2549 0.215792 23.1978 0.227672 25.2172C0.239551 27.2367 1.04783 29.1702 2.47744 30.5989C3.90705 32.0277 5.84288 32.8366 7.86562 32.8505C9.88836 32.8644 11.8351 32.0821 13.2843 30.6731L19.0518 24.9149C19.1038 24.8634 19.1448 24.8018 19.1725 24.7341C19.2001 24.6663 19.2137 24.5937 19.2126 24.5205C19.2126 24.3763 19.1552 24.2379 19.053 24.1359C18.9508 24.0338 18.8122 23.9765 18.6677 23.9765H18.447C17.2425 23.9793 16.0489 23.7483 14.9325 23.2965C14.8321 23.2544 14.7213 23.2432 14.6145 23.2646C14.5076 23.2859 14.4097 23.3387 14.3332 23.4162L10.1812 27.5615C9.56307 28.179 8.72454 28.526 7.8501 28.5263C6.97565 28.5265 6.13692 28.18 5.51842 27.5628C4.89991 26.9457 4.5523 26.1085 4.55204 25.2355C4.55179 24.3625 4.89891 23.5251 5.51706 22.9076L12.5324 15.9091C12.838 15.6037 13.2009 15.3615 13.6004 15.1962C13.9998 15.0309 14.428 14.9458 14.8604 14.9458C15.2927 14.9458 15.7209 15.0309 16.1203 15.1962C16.5198 15.3615 16.8827 15.6037 17.1883 15.9091C17.6059 16.3019 18.158 16.5207 18.7317 16.5207C19.3055 16.5207 19.8575 16.3019 20.2751 15.9091C20.4781 15.7069 20.6392 15.4668 20.7492 15.2024C20.8591 14.938 20.9157 14.6545 20.9157 14.3682C20.9157 14.0819 20.8591 13.7984 20.7492 13.534C20.6392 13.2696 20.4781 13.0295 20.2751 12.8273Z",fill:"#020059"}),T.jsx("path",{d:"M30.8728 2.24967C30.1588 1.53646 29.3111 0.970692 28.378 0.584685C27.445 0.198679 26.4449 0 25.4349 0C24.4249 0 23.4248 0.198679 22.4918 0.584685C21.5587 0.970692 20.711 1.53646 19.997 2.24967L14.2349 7.99699C14.1552 8.07353 14.1006 8.17251 14.0786 8.28074C14.0566 8.38897 14.068 8.50134 14.1115 8.60291C14.155 8.70447 14.2284 8.79042 14.322 8.84932C14.4155 8.90823 14.5249 8.93729 14.6354 8.93266H14.837C16.0413 8.9314 17.2343 9.16517 18.3487 9.62082C18.4491 9.66205 18.5595 9.67243 18.6658 9.65062C18.7721 9.62882 18.8695 9.57582 18.9454 9.49842L23.0837 5.37493C23.39 5.06935 23.7535 4.82698 24.1536 4.66167C24.5537 4.49636 24.9824 4.41135 25.4154 4.41147C25.8484 4.4116 26.2771 4.49687 26.6771 4.66241C27.0771 4.82795 27.4405 5.07053 27.7465 5.37629C28.0526 5.68204 28.2954 6.04499 28.4609 6.44442C28.6265 6.84384 28.7117 7.27191 28.7115 7.70419C28.7114 8.13647 28.626 8.56449 28.4602 8.96382C28.2944 9.36314 28.0514 9.72596 27.7452 10.0315L22.5933 15.1696L22.5498 15.2185L20.7489 17.0056C20.1309 17.6218 19.2931 17.9679 18.4196 17.9679C17.5461 17.9679 16.7083 17.6218 16.0902 17.0056C15.6721 16.6139 15.1202 16.3959 14.5469 16.3959C13.9735 16.3959 13.4217 16.6139 13.0035 17.0056C12.7988 17.2079 12.6363 17.4487 12.5254 17.7141C12.4145 17.9796 12.3574 18.2643 12.3574 18.5519C12.3574 18.8395 12.4145 19.1242 12.5254 19.3896C12.6363 19.655 12.7988 19.8958 13.0035 20.0982C13.6381 20.7367 14.3817 21.2571 15.1994 21.635C15.3165 21.6894 15.4309 21.7329 15.5453 21.7818C15.6598 21.8308 15.7824 21.8716 15.8968 21.9151C16.0112 21.9586 16.1338 21.9967 16.2482 22.0294L16.5724 22.1164C16.7931 22.1735 17.0138 22.217 17.2372 22.2551C17.508 22.2954 17.7809 22.3208 18.0545 22.3313H18.4713L18.8037 22.3041C18.9236 22.3041 19.0516 22.2714 19.1933 22.2714H19.3813L19.76 22.217L19.9343 22.1844L20.2531 22.1164H20.3239C21.6744 21.78 22.9074 21.0822 23.8902 20.0982L30.8809 13.1187C31.5961 12.405 32.1632 11.5575 32.5499 10.6246C32.9366 9.69183 33.1353 8.69204 33.1345 7.6825C33.1337 6.67295 32.9336 5.67346 32.5455 4.74123C32.1574 3.809 31.589 2.96233 30.8728 2.24967Z",fill:"#F92B4E"}),T.jsx("path",{d:"M20.2777 20.0795C20.6702 19.6902 21.0183 19.2588 21.3157 18.793C22.2617 17.3185 22.6746 15.5655 22.4858 13.8246C22.297 12.0837 21.5179 10.4595 20.2777 9.22138L13.2869 2.24735C11.8391 0.836935 9.89315 0.0527254 7.8704 0.0645857C5.84765 0.0764461 3.91101 0.883421 2.47996 2.31072C1.04892 3.73801 0.238698 5.67071 0.224791 7.69017C0.210885 9.70963 0.994415 11.6533 2.40567 13.1001L8.1732 18.8583C8.24925 18.9371 8.34735 18.9912 8.45467 19.0135C8.562 19.0358 8.67356 19.0252 8.77479 18.9832C8.87602 18.9412 8.96219 18.8697 9.02207 18.778C9.08194 18.6863 9.11272 18.5787 9.11039 18.4693V18.249C9.10764 17.0464 9.33896 15.8547 9.79149 14.7402C9.83313 14.6403 9.84396 14.5302 9.82261 14.4241C9.80126 14.318 9.74868 14.2207 9.67162 14.1445L5.51964 10.002C4.9282 9.37906 4.60368 8.55022 4.61518 7.69195C4.62667 6.83369 4.97328 6.01381 5.5812 5.40687C6.18913 4.79993 7.01034 4.45388 7.86999 4.4424C8.72965 4.43092 9.55984 4.75492 10.1838 5.34541L17.1909 12.3494C17.4968 12.6545 17.7394 13.0168 17.905 13.4156C18.0705 13.8144 18.1557 14.2419 18.1557 14.6736C18.1557 15.1053 18.0705 15.5327 17.905 15.9315C17.7394 16.3303 17.4968 16.6927 17.1909 16.9978C16.7987 17.4153 16.5803 17.9662 16.5803 18.5387C16.5803 19.1111 16.7987 19.6621 17.1909 20.0795C17.3934 20.2823 17.6339 20.4431 17.8988 20.5529C18.1636 20.6626 18.4476 20.7191 18.7343 20.7191C19.021 20.7191 19.305 20.6626 19.5698 20.5529C19.8347 20.4431 20.0752 20.2823 20.2777 20.0795Z",fill:"#020059"}),T.jsx("path",{d:"M30.8731 30.6592C31.5875 29.9464 32.1542 29.1 32.5408 28.1685C32.9274 27.2369 33.1264 26.2385 33.1264 25.2301C33.1264 24.2218 32.9274 23.2233 32.5408 22.2918C32.1542 21.3602 31.5875 20.5139 30.8731 19.801L25.1192 14.0483C25.0427 13.9676 24.9434 13.9123 24.8344 13.8897C24.7255 13.8671 24.6123 13.8783 24.51 13.9219C24.4076 13.9654 24.3211 14.0391 24.262 14.1332C24.2029 14.2273 24.174 14.3372 24.1793 14.4481V14.6494C24.1815 15.8516 23.9483 17.0426 23.4927 18.1555C23.4511 18.2554 23.4403 18.3654 23.4616 18.4716C23.483 18.5777 23.5356 18.675 23.6126 18.7511L27.7428 22.8828C28.0489 23.1885 28.2916 23.5515 28.4572 23.9509C28.6228 24.3503 28.7079 24.7784 28.7078 25.2107C28.7077 25.643 28.6223 26.071 28.4565 26.4703C28.2907 26.8696 28.0477 27.2324 27.7414 27.538C27.4352 27.8436 27.0716 28.086 26.6716 28.2513C26.2715 28.4166 25.8427 28.5016 25.4098 28.5015C24.9768 28.5014 24.5481 28.4161 24.1481 28.2505C23.7481 28.085 23.3847 27.8424 23.0786 27.5367L17.9323 22.3932L17.8723 22.3497L16.0824 20.5518C15.4652 19.9347 15.1185 19.0983 15.1185 18.2262C15.1185 17.3541 15.4652 16.5177 16.0824 15.9006C16.4747 15.4831 16.693 14.9322 16.693 14.3597C16.693 13.7873 16.4747 13.2363 16.0824 12.8189C15.8797 12.6145 15.6385 12.4523 15.3727 12.3415C15.1068 12.2308 14.8216 12.1738 14.5336 12.1738C14.2455 12.1738 13.9604 12.2308 13.6945 12.3415C13.4287 12.4523 13.1874 12.6145 12.9848 12.8189C12.3452 13.4524 11.8239 14.1948 11.4455 15.0112C11.391 15.1281 11.3474 15.2424 11.2984 15.3566C11.2493 15.4708 11.2112 15.5932 11.1649 15.7075C11.1186 15.8217 11.0831 15.9441 11.0505 16.0584L10.9633 16.382C10.9088 16.6023 10.8652 16.8227 10.8243 17.0457C10.7862 17.3177 10.7589 17.5897 10.748 17.8617V18.2779L10.7889 18.6097C10.7889 18.7294 10.8216 18.8572 10.8216 18.9986V19.1863L10.8788 19.5644L10.9115 19.7385L10.9769 20.0567V20.1274C11.315 21.4752 12.0138 22.7059 12.9984 23.6879L19.9974 30.6565C21.4393 32.0966 23.3951 32.9059 25.4347 32.9064C27.4742 32.9069 29.4305 32.0986 30.8731 30.6592Z",fill:"#F92B4E"})]}),Qwe=e=>T.jsxs(Wt,{height:"43",width:"158",viewBox:"50 0 158 43",...e,children:[T.jsx("path",{d:"M51.8193 39.1282V33.457H52.762V35.6935C52.9169 35.5278 53.0925 35.3969 53.2887 35.3004C53.4844 35.2011 53.7134 35.1515 53.9756 35.1515C54.1893 35.1515 54.384 35.1958 54.5595 35.2851C54.7374 35.3713 54.89 35.4988 55.0175 35.6667C55.1473 35.8347 55.2465 36.0419 55.3152 36.2888C55.3862 36.5354 55.422 36.8193 55.422 37.1399C55.422 37.4322 55.3824 37.7032 55.3037 37.9528C55.2247 38.202 55.1114 38.4184 54.9641 38.6016C54.819 38.7848 54.642 38.9283 54.4336 39.0328C54.2275 39.1343 53.9958 39.1855 53.739 39.1855C53.6192 39.1855 53.51 39.1725 53.4108 39.1473C53.3116 39.1244 53.2211 39.0912 53.1398 39.0481C53.0582 39.0046 52.9818 38.9527 52.9108 38.8916C52.8421 38.8279 52.7757 38.758 52.7124 38.6817L52.6704 38.9451C52.6551 39.0111 52.6284 39.058 52.5903 39.0863C52.5544 39.1141 52.5048 39.1282 52.4414 39.1282H51.8193ZM53.6512 35.8843C53.4551 35.8843 53.2871 35.9263 53.1475 36.0102C53.0101 36.0915 52.8814 36.2071 52.762 36.3575V38.1131C52.8689 38.2451 52.9845 38.3382 53.1093 38.3917C53.2364 38.4424 53.3738 38.468 53.5215 38.468C53.6638 38.468 53.7924 38.4413 53.9069 38.3879C54.0214 38.3344 54.118 38.2528 54.197 38.1436C54.2783 38.0341 54.3405 37.8967 54.384 37.7314C54.4271 37.5635 54.4489 37.3662 54.4489 37.1399C54.4489 36.9109 54.4298 36.7174 54.3916 36.5598C54.3557 36.3995 54.3038 36.2697 54.2351 36.1705C54.1664 36.0713 54.0825 35.9988 53.9832 35.953C53.8863 35.9072 53.7756 35.8843 53.6512 35.8843ZM57.2707 40.2045C57.2429 40.2705 57.2058 40.3201 57.16 40.3533C57.1169 40.3888 57.0494 40.4067 56.9578 40.4067H56.2556L56.9883 38.8382L55.4045 35.2126H56.2288C56.3052 35.2126 56.3636 35.2301 56.4044 35.266C56.4452 35.3015 56.4758 35.3423 56.496 35.3881L57.3318 37.4185C57.3596 37.4845 57.3841 37.5532 57.4043 37.6246C57.4245 37.6956 57.4425 37.7669 57.4577 37.8383C57.478 37.7642 57.4997 37.6933 57.5226 37.6246C57.5482 37.5559 57.5749 37.4856 57.6027 37.4147L58.3889 35.3881C58.4092 35.337 58.4424 35.295 58.4882 35.2622C58.5366 35.229 58.5901 35.2126 58.6484 35.2126H59.4041L57.2707 40.2045ZM66.4687 36.369C66.4687 36.7735 66.4011 37.1487 66.2664 37.4948C66.1317 37.8383 65.942 38.136 65.6978 38.3879C65.4535 38.6397 65.1597 38.8367 64.8162 38.9794C64.4727 39.1191 64.0922 39.1893 63.6751 39.1893C63.2579 39.1893 62.8763 39.1191 62.5301 38.9794C62.1867 38.8367 61.8916 38.6397 61.6447 38.3879C61.4005 38.136 61.2108 37.8383 61.0761 37.4948C60.9414 37.1487 60.8738 36.7735 60.8738 36.369C60.8738 35.9644 60.9414 35.5904 61.0761 35.2469C61.2108 34.9008 61.4005 34.602 61.6447 34.3501C61.8916 34.0982 62.1867 33.902 62.5301 33.7623C62.8763 33.6196 63.2579 33.5486 63.6751 33.5486C64.0922 33.5486 64.4727 33.6196 64.8162 33.7623C65.1597 33.9047 65.4535 34.102 65.6978 34.3539C65.942 34.6031 66.1317 34.9008 66.2664 35.2469C66.4011 35.5904 66.4687 35.9644 66.4687 36.369ZM65.4153 36.369C65.4153 36.0659 65.3745 35.795 65.2932 35.5561C65.2142 35.3141 65.0997 35.1095 64.9497 34.9416C64.7998 34.7737 64.6166 34.6451 64.4002 34.5562C64.1865 34.4669 63.9449 34.4226 63.6751 34.4226C63.4052 34.4226 63.1625 34.4669 62.9461 34.5562C62.7297 34.6451 62.5454 34.7737 62.3927 34.9416C62.2428 35.1095 62.1267 35.3141 62.0454 35.5561C61.9642 35.795 61.9233 36.0659 61.9233 36.369C61.9233 36.6716 61.9642 36.9437 62.0454 37.1857C62.1267 37.4246 62.2428 37.6284 62.3927 37.7963C62.5454 37.9616 62.7297 38.0886 62.9461 38.1779C63.1625 38.2669 63.4052 38.3115 63.6751 38.3115C63.9449 38.3115 64.1865 38.2669 64.4002 38.1779C64.6166 38.0886 64.7998 37.9616 64.9497 37.7963C65.0997 37.6284 65.2142 37.4246 65.2932 37.1857C65.3745 36.9437 65.4153 36.6716 65.4153 36.369ZM67.074 39.1282V35.2126H67.6502C67.7724 35.2126 67.8525 35.2698 67.8907 35.3843L67.9556 35.6935C68.0346 35.6118 68.1174 35.5381 68.2036 35.4721C68.2929 35.4057 68.3857 35.3485 68.4822 35.3004C68.5815 35.2519 68.6872 35.2149 68.799 35.1897C68.9112 35.1641 69.0333 35.1515 69.1654 35.1515C69.3791 35.1515 69.5688 35.1882 69.734 35.2622C69.8996 35.3332 70.037 35.4351 70.1462 35.5675C70.2584 35.6973 70.3424 35.8537 70.3981 36.0369C70.4568 36.2174 70.4858 36.4171 70.4858 36.6361V39.1282H69.5432V36.6361C69.5432 36.3968 69.4875 36.2125 69.3753 36.0827C69.2661 35.9503 69.1005 35.8843 68.8791 35.8843C68.7166 35.8843 68.5639 35.9209 68.4212 35.995C68.2788 36.0686 68.1441 36.169 68.0166 36.2965V39.1282H67.074ZM72.8776 35.1515C73.1245 35.1515 73.3508 35.1908 73.5569 35.2698C73.7657 35.3485 73.9451 35.4645 74.095 35.6171C74.2454 35.7671 74.3622 35.953 74.4462 36.1743C74.5301 36.393 74.5721 36.6437 74.5721 36.9262C74.5721 36.9971 74.5683 37.0571 74.5606 37.1055C74.5557 37.1513 74.5442 37.188 74.5263 37.2162C74.511 37.2414 74.4897 37.2605 74.4614 37.2735C74.4336 37.2834 74.3981 37.2887 74.3546 37.2887H71.935C71.9632 37.6906 72.0712 37.9856 72.2593 38.1741C72.4479 38.3623 72.6971 38.4566 73.0074 38.4566C73.16 38.4566 73.2913 38.4386 73.4005 38.4031C73.5127 38.3672 73.6092 38.3279 73.6905 38.2848C73.7745 38.2413 73.847 38.202 73.908 38.1665C73.9718 38.1306 74.0328 38.1131 74.0912 38.1131C74.1294 38.1131 74.1626 38.1207 74.1905 38.136C74.2187 38.1512 74.2427 38.1726 74.263 38.2008L74.5378 38.5443C74.4336 38.6665 74.3164 38.7695 74.1866 38.8535C74.0569 38.9347 73.921 39.0008 73.7783 39.0519C73.6386 39.1 73.4947 39.1343 73.347 39.155C73.202 39.1752 73.0608 39.1855 72.9234 39.1855C72.6513 39.1855 72.3983 39.1408 72.1639 39.0519C71.93 38.9603 71.7266 38.8267 71.5533 38.6512C71.3804 38.473 71.2442 38.2543 71.1449 37.9948C71.0457 37.7326 70.9961 37.4299 70.9961 37.0864C70.9961 36.8193 71.0396 36.5686 71.1259 36.3346C71.2125 36.098 71.3358 35.8931 71.4961 35.7202C71.659 35.5446 71.8563 35.4057 72.0876 35.3042C72.3219 35.2023 72.5853 35.1515 72.8776 35.1515ZM72.8967 35.827C72.6219 35.827 72.407 35.9045 72.2517 36.0598C72.0968 36.2148 71.9975 36.435 71.954 36.7201H73.7248C73.7248 36.598 73.7084 36.4835 73.6752 36.3766C73.6424 36.2671 73.5913 36.1717 73.5226 36.0904C73.4539 36.0087 73.3676 35.9453 73.2631 35.8995C73.1589 35.8511 73.0367 35.827 72.8967 35.827ZM79.0312 37.8268C79.0873 37.8268 79.1354 37.8482 79.1762 37.8917L79.5808 38.3306C79.3568 38.6077 79.0808 38.8203 78.7526 38.968C78.4271 39.1153 78.0351 39.1893 77.5772 39.1893C77.1677 39.1893 76.7986 39.1191 76.4704 38.9794C76.1448 38.8393 75.8663 38.6447 75.6346 38.3955C75.4029 38.1459 75.2251 37.8482 75.1003 37.5024C74.9782 37.1563 74.9171 36.7785 74.9171 36.369C74.9171 35.9541 74.9858 35.5751 75.1232 35.2317C75.2606 34.8855 75.4541 34.5878 75.7033 34.3386C75.9525 34.089 76.2502 33.8959 76.5963 33.7585C76.9448 33.6185 77.3291 33.5486 77.7489 33.5486C78.1584 33.5486 78.516 33.6147 78.8213 33.7471C79.1293 33.8768 79.3926 34.0497 79.6113 34.2661L79.2678 34.7432C79.2476 34.7737 79.2209 34.8004 79.1877 34.8233C79.1572 34.8462 79.114 34.8577 79.0579 34.8577C78.9995 34.8577 78.9396 34.8348 78.8786 34.789C78.8175 34.7432 78.74 34.6936 78.6457 34.6401C78.5515 34.5867 78.432 34.5371 78.287 34.4913C78.1446 34.4455 77.9626 34.4226 77.7413 34.4226C77.4817 34.4226 77.2425 34.4684 77.0238 34.56C76.8074 34.6489 76.6204 34.7775 76.4628 34.9454C76.3074 35.1134 76.1853 35.3179 76.0964 35.5599C76.0097 35.7988 75.9666 36.0686 75.9666 36.369C75.9666 36.6792 76.0097 36.9552 76.0964 37.1971C76.1853 37.4387 76.3051 37.6421 76.4551 37.8078C76.6051 37.973 76.7822 38.1001 76.9856 38.1894C77.189 38.2756 77.4081 38.3192 77.642 38.3192C77.7821 38.3192 77.908 38.3115 78.0199 38.2963C78.1344 38.281 78.2385 38.2566 78.3328 38.2237C78.4294 38.1905 78.5198 38.1486 78.6038 38.0978C78.6904 38.0444 78.7755 37.9795 78.8595 37.9032C78.885 37.8803 78.9118 37.8623 78.9396 37.8497C78.9675 37.8345 78.998 37.8268 79.0312 37.8268ZM81.8241 35.1515C82.1168 35.1515 82.3813 35.1985 82.6179 35.2927C82.8572 35.3866 83.0606 35.5202 83.2285 35.6935C83.3964 35.8663 83.5262 36.0774 83.6178 36.327C83.7094 36.5762 83.7552 36.8548 83.7552 37.1628C83.7552 37.4731 83.7094 37.7528 83.6178 38.0024C83.5262 38.2516 83.3964 38.4642 83.2285 38.6397C83.0606 38.8153 82.8572 38.95 82.6179 39.0443C82.3813 39.1382 82.1168 39.1855 81.8241 39.1855C81.5313 39.1855 81.2657 39.1382 81.0264 39.0443C80.7871 38.95 80.5826 38.8153 80.412 38.6397C80.2441 38.4642 80.1132 38.2516 80.0189 38.0024C79.9273 37.7528 79.8815 37.4731 79.8815 37.1628C79.8815 36.8548 79.9273 36.5762 80.0189 36.327C80.1132 36.0774 80.2441 35.8663 80.412 35.6935C80.5826 35.5202 80.7871 35.3866 81.0264 35.2927C81.2657 35.1985 81.5313 35.1515 81.8241 35.1515ZM81.8241 38.4604C82.1496 38.4604 82.39 38.3508 82.5454 38.1322C82.703 37.9131 82.782 37.5925 82.782 37.1704C82.782 36.7479 82.703 36.4262 82.5454 36.2049C82.39 35.9835 82.1496 35.8728 81.8241 35.8728C81.4932 35.8728 81.2489 35.9847 81.0913 36.2087C80.9337 36.43 80.8547 36.7506 80.8547 37.1704C80.8547 37.5902 80.9337 37.9108 81.0913 38.1322C81.2489 38.3508 81.4932 38.4604 81.8241 38.4604ZM84.3379 39.1282V35.2126H84.9142C85.0364 35.2126 85.1165 35.2698 85.1547 35.3843L85.2157 35.6744C85.2844 35.598 85.3558 35.5278 85.4294 35.4645C85.5058 35.4007 85.5859 35.3462 85.6699 35.3004C85.7565 35.2546 85.8481 35.2187 85.9447 35.1935C86.0439 35.1653 86.1523 35.1515 86.2691 35.1515C86.516 35.1515 86.7183 35.2187 86.8759 35.3538C87.0362 35.4858 87.156 35.6629 87.2346 35.8843C87.2957 35.7545 87.372 35.6438 87.4636 35.5523C87.5552 35.458 87.656 35.3817 87.7651 35.3233C87.8746 35.2645 87.9903 35.2214 88.1124 35.1935C88.2372 35.1653 88.362 35.1515 88.4864 35.1515C88.7028 35.1515 88.8948 35.1843 89.0627 35.2507C89.2306 35.3168 89.3718 35.4133 89.4863 35.5408C89.6008 35.6679 89.6874 35.8232 89.7458 36.0064C89.8069 36.1896 89.8374 36.3995 89.8374 36.6361V39.1282H88.8948V36.6361C88.8948 36.3865 88.8402 36.1995 88.7307 36.0751C88.6215 35.9476 88.4612 35.8843 88.2498 35.8843C88.1532 35.8843 88.0628 35.9007 87.9788 35.9339C87.8975 35.9667 87.825 36.0152 87.7613 36.0789C87.7002 36.14 87.6521 36.2174 87.6163 36.3117C87.5808 36.4056 87.5628 36.514 87.5628 36.6361V39.1282H86.6164V36.6361C86.6164 36.3739 86.5629 36.1831 86.4561 36.0637C86.3519 35.9438 86.1965 35.8843 85.9905 35.8843C85.8557 35.8843 85.7286 35.9186 85.6088 35.9873C85.492 36.0533 85.3825 36.1449 85.2806 36.2621V39.1282H84.3379ZM90.6106 39.1282V35.2126H91.1869C91.309 35.2126 91.3892 35.2698 91.4273 35.3843L91.4884 35.6744C91.5571 35.598 91.6285 35.5278 91.7021 35.4645C91.7784 35.4007 91.8586 35.3462 91.9426 35.3004C92.0292 35.2546 92.1208 35.2187 92.2173 35.1935C92.3166 35.1653 92.4246 35.1515 92.5417 35.1515C92.7887 35.1515 92.9909 35.2187 93.1485 35.3538C93.3088 35.4858 93.4283 35.6629 93.5073 35.8843C93.5684 35.7545 93.6447 35.6438 93.7363 35.5523C93.8279 35.458 93.9282 35.3817 94.0378 35.3233C94.1473 35.2645 94.2629 35.2214 94.3851 35.1935C94.5099 35.1653 94.6343 35.1515 94.7591 35.1515C94.9755 35.1515 95.1674 35.1843 95.3354 35.2507C95.5033 35.3168 95.6445 35.4133 95.759 35.5408C95.8735 35.6679 95.9601 35.8232 96.0185 36.0064C96.0796 36.1896 96.1101 36.3995 96.1101 36.6361V39.1282H95.1674V36.6361C95.1674 36.3865 95.1129 36.1995 95.0033 36.0751C94.8938 35.9476 94.7335 35.8843 94.5225 35.8843C94.4259 35.8843 94.3355 35.9007 94.2515 35.9339C94.1702 35.9667 94.0977 36.0152 94.034 36.0789C93.9729 36.14 93.9244 36.2174 93.8889 36.3117C93.8534 36.4056 93.8355 36.514 93.8355 36.6361V39.1282H92.889V36.6361C92.889 36.3739 92.8356 36.1831 92.7287 36.0637C92.6245 35.9438 92.4692 35.8843 92.2631 35.8843C92.1284 35.8843 92.0009 35.9186 91.8815 35.9873C91.7643 36.0533 91.6552 36.1449 91.5533 36.2621V39.1282H90.6106ZM98.5015 35.1515C98.7484 35.1515 98.9747 35.1908 99.1808 35.2698C99.3895 35.3485 99.5689 35.4645 99.7189 35.6171C99.8689 35.7671 99.9861 35.953 100.07 36.1743C100.154 36.393 100.196 36.6437 100.196 36.9262C100.196 36.9971 100.192 37.0571 100.185 37.1055C100.18 37.1513 100.168 37.188 100.15 37.2162C100.135 37.2414 100.113 37.2605 100.085 37.2735C100.057 37.2834 100.022 37.2887 99.9784 37.2887H97.5588C97.5867 37.6906 97.6951 37.9856 97.8832 38.1741C98.0714 38.3623 98.3209 38.4566 98.6312 38.4566C98.7839 38.4566 98.9148 38.4386 99.0243 38.4031C99.1361 38.3672 99.2331 38.3279 99.3144 38.2848C99.3983 38.2413 99.4708 38.202 99.5319 38.1665C99.5956 38.1306 99.6567 38.1131 99.7151 38.1131C99.7533 38.1131 99.7865 38.1207 99.8143 38.136C99.8422 38.1512 99.8666 38.1726 99.8868 38.2008L100.162 38.5443C100.057 38.6665 99.9403 38.7695 99.8105 38.8535C99.6807 38.9347 99.5445 39.0008 99.4021 39.0519C99.2621 39.1 99.1186 39.1343 98.9709 39.155C98.8259 39.1752 98.6847 39.1855 98.5473 39.1855C98.2751 39.1855 98.0217 39.1408 97.7878 39.0519C97.5538 38.9603 97.35 38.8267 97.1772 38.6512C97.0043 38.473 96.868 38.2543 96.7688 37.9948C96.6696 37.7326 96.62 37.4299 96.62 37.0864C96.62 36.8193 96.6631 36.5686 96.7497 36.3346C96.8364 36.098 96.9596 35.8931 97.1199 35.7202C97.2829 35.5446 97.4798 35.4057 97.7115 35.3042C97.9454 35.2023 98.2087 35.1515 98.5015 35.1515ZM98.5205 35.827C98.2458 35.827 98.0309 35.9045 97.8756 36.0598C97.7202 36.2148 97.621 36.435 97.5779 36.7201H99.3487C99.3487 36.598 99.3323 36.4835 99.2991 36.3766C99.2659 36.2671 99.2151 36.1717 99.1464 36.0904C99.0777 36.0087 98.9911 35.9453 98.8869 35.8995C98.7827 35.8511 98.6606 35.827 98.5205 35.827ZM100.808 39.1282V35.2126H101.361C101.458 35.2126 101.526 35.2301 101.564 35.266C101.602 35.3015 101.627 35.3626 101.64 35.4492L101.697 35.9224C101.837 35.6805 102.001 35.4897 102.19 35.35C102.378 35.2099 102.589 35.1401 102.823 35.1401C103.016 35.1401 103.177 35.1843 103.304 35.2736L103.182 35.9797C103.174 36.0255 103.158 36.0583 103.132 36.0789C103.107 36.0965 103.072 36.1056 103.029 36.1056C102.991 36.1056 102.939 36.0965 102.873 36.0789C102.806 36.061 102.719 36.0522 102.609 36.0522C102.413 36.0522 102.245 36.1068 102.106 36.2163C101.966 36.3232 101.847 36.4808 101.751 36.6895V39.1282H100.808ZM106.523 36.0408C106.495 36.0762 106.467 36.1041 106.439 36.1247C106.413 36.1449 106.375 36.1552 106.324 36.1552C106.276 36.1552 106.229 36.1411 106.183 36.1133C106.137 36.0827 106.082 36.0495 106.019 36.014C105.955 35.9759 105.879 35.9427 105.79 35.9148C105.703 35.8843 105.595 35.869 105.466 35.869C105.3 35.869 105.155 35.8995 105.031 35.9606C104.906 36.019 104.802 36.1041 104.718 36.2163C104.636 36.3281 104.575 36.4644 104.534 36.6247C104.494 36.7823 104.473 36.9617 104.473 37.1628C104.473 37.3712 104.495 37.557 104.538 37.72C104.584 37.8826 104.649 38.0199 104.733 38.1322C104.817 38.2413 104.918 38.3253 105.038 38.384C105.158 38.4398 105.292 38.468 105.443 38.468C105.593 38.468 105.714 38.4501 105.805 38.4146C105.899 38.3764 105.978 38.3356 106.042 38.2924C106.105 38.2466 106.16 38.2058 106.206 38.1703C106.254 38.1322 106.308 38.1131 106.366 38.1131C106.443 38.1131 106.5 38.1421 106.538 38.2008L106.809 38.5443C106.704 38.6665 106.592 38.7695 106.469 38.8535C106.347 38.9347 106.22 39.0008 106.088 39.0519C105.958 39.1 105.823 39.1343 105.683 39.155C105.543 39.1752 105.405 39.1855 105.267 39.1855C105.025 39.1855 104.798 39.1408 104.584 39.0519C104.37 38.9603 104.183 38.8279 104.023 38.655C103.865 38.4817 103.739 38.2707 103.645 38.0215C103.554 37.7696 103.508 37.4834 103.508 37.1628C103.508 36.875 103.548 36.6094 103.63 36.3651C103.714 36.1182 103.836 35.9056 103.996 35.7278C104.157 35.5469 104.355 35.4057 104.592 35.3042C104.828 35.2023 105.1 35.1515 105.408 35.1515C105.701 35.1515 105.956 35.1985 106.176 35.2927C106.397 35.3866 106.595 35.5217 106.771 35.6973L106.523 36.0408ZM108.874 35.1515C109.121 35.1515 109.347 35.1908 109.553 35.2698C109.762 35.3485 109.942 35.4645 110.092 35.6171C110.242 35.7671 110.359 35.953 110.443 36.1743C110.527 36.393 110.569 36.6437 110.569 36.9262C110.569 36.9971 110.565 37.0571 110.557 37.1055C110.552 37.1513 110.541 37.188 110.523 37.2162C110.508 37.2414 110.486 37.2605 110.458 37.2735C110.43 37.2834 110.394 37.2887 110.351 37.2887H107.931C107.959 37.6906 108.068 37.9856 108.256 38.1741C108.444 38.3623 108.694 38.4566 109.004 38.4566C109.157 38.4566 109.287 38.4386 109.397 38.4031C109.509 38.3672 109.606 38.3279 109.687 38.2848C109.771 38.2413 109.843 38.202 109.905 38.1665C109.968 38.1306 110.029 38.1131 110.088 38.1131C110.126 38.1131 110.159 38.1207 110.187 38.136C110.215 38.1512 110.239 38.1726 110.259 38.2008L110.534 38.5443C110.43 38.6665 110.313 38.7695 110.183 38.8535C110.053 38.9347 109.917 39.0008 109.775 39.0519C109.635 39.1 109.491 39.1343 109.344 39.155C109.199 39.1752 109.057 39.1855 108.92 39.1855C108.648 39.1855 108.394 39.1408 108.16 39.0519C107.927 38.9603 107.723 38.8267 107.55 38.6512C107.377 38.473 107.241 38.2543 107.141 37.9948C107.042 37.7326 106.993 37.4299 106.993 37.0864C106.993 36.8193 107.036 36.5686 107.122 36.3346C107.209 36.098 107.332 35.8931 107.493 35.7202C107.656 35.5446 107.852 35.4057 108.084 35.3042C108.318 35.2023 108.581 35.1515 108.874 35.1515ZM108.893 35.827C108.618 35.827 108.404 35.9045 108.248 36.0598C108.093 36.2148 107.994 36.435 107.951 36.7201H109.721C109.721 36.598 109.705 36.4835 109.672 36.3766C109.639 36.2671 109.588 36.1717 109.519 36.0904C109.45 36.0087 109.364 35.9453 109.26 35.8995C109.155 35.8511 109.033 35.827 108.893 35.827Z",fill:"black"}),T.jsx("path",{d:"M65.643 8.39648V12.2887H60.8332V25.952H55.8978V12.2887H51.1406V8.39648H65.643Z",fill:"#020059"}),T.jsx("path",{d:"M74.194 12.5785C74.9836 12.0787 75.8233 11.8301 76.7102 11.8301V17.0691H75.3573C74.3146 17.0691 73.5292 17.2805 73.009 17.7057C72.4866 18.1308 72.2263 18.8668 72.2263 19.9136V25.9509H67.5508V11.9544H72.2263V14.5752C72.7442 13.7422 73.4017 13.0758 74.194 12.5785Z",fill:"#020059"}),T.jsx("path",{d:"M86.5426 12.4544C87.3173 12.873 87.8925 13.4483 88.2653 14.1852V11.999H93.5026V25.7795H88.2653V23.5934C87.8925 24.33 87.3173 24.9078 86.5426 25.3242C85.7679 25.7428 84.8546 25.9508 83.8055 25.9508C82.6125 25.9508 81.5343 25.6692 80.573 25.104C79.6116 24.5384 78.8529 23.7205 78.3018 22.6483C77.7507 21.5761 77.4736 20.3177 77.4736 18.8782C77.4736 17.4363 77.7507 16.1853 78.3018 15.1204C78.8529 14.0554 79.6116 13.2402 80.573 12.6772C81.5343 12.1116 82.6125 11.8301 83.8055 11.8301C84.8546 11.8276 85.7679 12.0382 86.5426 12.4544ZM83.5498 16.8022C83.041 17.3016 82.7884 17.9945 82.7884 18.8782C82.7884 19.7791 83.041 20.4793 83.5498 20.9787C84.0581 21.4781 84.7214 21.7278 85.5416 21.7278C86.3243 21.7278 86.9739 21.4732 87.4906 20.9665C88.007 20.4597 88.2653 19.762 88.2653 18.8782C88.2653 18.0116 88.007 17.3237 87.4906 16.8145C86.9739 16.3077 86.3243 16.0531 85.5416 16.0531C84.7214 16.0531 84.0581 16.3028 83.5498 16.8022Z",fill:"#020059"}),T.jsx("path",{d:"M108.96 13.4389C109.85 14.5105 110.295 15.9701 110.295 17.8176V25.9509H105.563V18.4417C105.563 17.6261 105.357 16.9895 104.944 16.532C104.53 16.0745 103.977 15.8458 103.283 15.8458C102.572 15.8458 102.003 16.082 101.585 16.5569C101.165 17.0318 100.954 17.6833 100.954 18.5163V25.9509H96.1738V11.9544H100.954V14.2992C101.344 13.5508 101.909 12.9515 102.651 12.504C103.396 12.0539 104.269 11.8301 105.273 11.8301C106.842 11.8276 108.07 12.3647 108.96 13.4389Z",fill:"#020059"}),T.jsx("path",{d:"M122.812 13.1567C123.955 14.0404 124.672 15.2128 124.967 16.6692H120.192C120.071 16.1772 119.825 15.81 119.453 15.5628C119.08 15.3181 118.625 15.1932 118.09 15.1932C117.709 15.1932 117.42 15.2715 117.221 15.4258C117.021 15.5824 116.923 15.7978 116.923 16.0768C116.923 16.4195 117.135 16.679 117.559 16.8503C117.983 17.0216 118.679 17.215 119.649 17.428C120.774 17.6581 121.703 17.9028 122.44 18.1647C123.175 18.4266 123.816 18.8525 124.361 19.4424C124.907 20.0323 125.179 20.8254 125.179 21.824C125.179 22.6269 124.946 23.3393 124.478 23.961C124.01 24.5827 123.332 25.0696 122.44 25.4223C121.548 25.7745 120.498 25.9509 119.287 25.9509C117.247 25.9509 115.62 25.5322 114.409 24.6975C113.199 23.8629 112.462 22.6685 112.203 21.1118H117.107C117.177 21.6184 117.404 21.9954 117.795 22.2426C118.185 22.4874 118.672 22.6122 119.261 22.6122C119.66 22.6122 119.962 22.5314 120.169 22.3674C120.376 22.2034 120.479 21.9905 120.479 21.7286C120.479 21.3345 120.26 21.0481 119.817 20.8694C119.375 20.6883 118.672 20.5096 117.702 20.3285C116.595 20.1155 115.687 19.883 114.976 19.6284C114.267 19.3739 113.649 18.9651 113.121 18.3997C112.594 17.8343 112.33 17.0535 112.33 16.0548C112.33 14.8114 112.839 13.7956 113.861 13.0099C114.883 12.2242 116.336 11.8301 118.222 11.8301C120.138 11.8301 121.669 12.2731 122.812 13.1567Z",fill:"#020059"}),T.jsx("path",{d:"M138.167 13.3161C139.375 14.3076 140.134 15.6785 140.444 17.4314H135.349C135.235 16.9565 135.027 16.5917 134.725 16.3371C134.422 16.0825 134.034 15.9552 133.56 15.9552C132.972 15.9552 132.496 16.2049 132.127 16.7043C131.758 17.2037 131.575 17.9283 131.575 18.8783C131.575 19.8453 131.758 20.5723 132.127 21.0644C132.496 21.5565 132.972 21.8013 133.56 21.8013C134.034 21.8013 134.422 21.674 134.725 21.4194C135.027 21.1648 135.235 20.8025 135.349 20.3251H140.444C140.134 22.0779 139.375 23.4538 138.167 24.4525C136.958 25.4513 135.464 25.9509 133.685 25.9509C132.313 25.9509 131.099 25.6692 130.047 25.104C128.995 24.5384 128.172 23.7205 127.586 22.6483C126.998 21.576 126.705 20.3177 126.705 18.8783C126.705 17.4363 126.998 16.1853 127.586 15.1204C128.175 14.0554 129 13.2402 130.059 12.6771C131.121 12.1116 132.33 11.8301 133.685 11.8301C135.464 11.8301 136.958 12.3271 138.167 13.3161Z",fill:"#F92B4E"}),T.jsx("path",{d:"M146.456 11.8301L149.541 19.637L152.396 11.8301H158L148.872 32.4388H143.319L146.843 25.1796L140.826 11.8301H146.456Z",fill:"#F92B4E"})]}),Xwe=e=>T.jsx(Wt,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:T.jsx("circle",{cx:"10",cy:"10",r:"3",fill:"#0A855C"})}),Ez=({mode:e,onClick:t})=>{const n=qg();return T.jsx(fi,{align:"center",gap:".5rem",w:"fit-content",cursor:"pointer",onClick:()=>t||n(kr.ROUTES.HOME),children:T.jsxs(fi,{alignItems:"center",w:"full",gap:"8px",children:[["full","logo"].includes(e)&&T.jsx(Zwe,{}),["full","text"].includes(e)&&T.jsx(Qwe,{})]})})};var Dd=(e=>(e.DOES_NOT_MEET_MY_NEEDS="Does not meet my needs",e.TOO_DIFFICULT_TO_USE="Too difficult to use",e.NO_NEEDED_ANYMORE="No needed anymore",e.TOO_EXPENSIVE="Too expensive",e.OTHER="Other",e))(Dd||{});const Jwe="free",exe="starter",Yl={FREE:Jwe,STARTER:exe};Dd.DOES_NOT_MEET_MY_NEEDS,Dd.TOO_DIFFICULT_TO_USE,Dd.NO_NEEDED_ANYMORE,Dd.TOO_EXPENSIVE,Dd.OTHER;const txe="client.subscription.success",nxe="client.subscription.cancel",rxe="client.deactivated",ixe={CLIENT_SUBSCRIPTION_SUCCESS:txe,CLIENT_SUBSCRIPTION_CANCEL:nxe},axe={CLIENT_DEACTIVATED_PLUGIN:rxe},oxe={subscriptionChannels:ixe,pluginStatusChannels:axe},Qo=async({adminRedirectUrl:e="",queryString:t={}}={})=>{const n=J$,r=await bz();if(!r)return Promise.reject("Token is not found");const i={domain:df.getAuthCookies().domain,access_token:r,adminRedirectUrl:e},a=Z6.stringify({...i,...t}),o=`${n}/auth/login?${a}`;window.open(o,"_blank")},sxe=()=>{var r,i,a,o;const e=Ao(),t=((i=(r=e==null?void 0:e.data)==null?void 0:r.data)==null?void 0:i.app_plan)||Yl.FREE,n=((o=(a=e==null?void 0:e.data)==null?void 0:a.data)==null?void 0:o.remaining_trial_days)||0;return T.jsxs($e,{as:"header",display:"flex",alignItems:"center",justifyContent:"space-between",children:[T.jsx(Ez,{mode:"full"}),T.jsxs($e,{children:[T.jsxs(fi,{alignItems:"center",gap:"6px",pb:"4px",children:[T.jsx(Ot,{as:"h3",fontSize:"13px",color:"gray.900",children:"Your plan"}),T.jsx(v6,{cursor:"pointer",variant:"solid",bg:"tc.green.400",fontSize:"12px",fontWeight:"600",display:"flex",alignItems:"center",rounded:"2px",lineHeight:"0",onClick:async()=>await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.PRICING}),children:Gg.capitalize(t)})]}),n>0&&t!==Yl.FREE&&T.jsxs(Ot,{as:"h4",color:"gray.500",fontSize:"12px",children:[n," ",A$("day",n)," ","left on trial"]})]})]})},lxe=({code:e,...t})=>{const n=()=>`${J$}/flags/${e.toLowerCase()}.svg`;return T.jsx(cde,{src:n(),alt:e,w:"1.5rem",h:"1rem",objectFit:"cover",borderRadius:"2px",border:"1px",borderColor:"tc.gray.200","data-cy":"tc-flag",...t})},BO={getNews:"getNews",getArticles:"getArticles"},uxe=()=>{var f;const{t:e}=C6(),n=(f=Ao().data)==null?void 0:f.data.plan,{data:r,isFetching:i}=wo({queryKey:[BO.getNews],queryFn:()=>ho.getNews()}),{data:a,isFetching:o}=wo({queryKey:[BO.getArticles],queryFn:()=>ho.getArticles()}),s=async h=>{if(h==="language"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.LANGUAGE}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SECTION_LANGUAGE});return}if(h==="currency"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.CURRENCY}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SECTION_CURRENCY});return}if(h==="manageTranslation"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.MANAGE_TRANSLATIONS}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SECTION_TRANSLATION});return}if(h==="autoTranslate"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.AUTO_TRANSLATE}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SECTION_AUTO_TRANSLATION});return}if(h==="switcher"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.SWITCHER}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SWITCHER});return}},l={title:"Create a multilingual site to expand your reach",subTitle:"40% of consumers wouldn’t buy from websites that aren’t available in their native languages. Add more languages to not miss out potential sales growth.",primaryAction:{onAction:async()=>await s("language"),content:"Manage language"},icon:jO,iconContainerProps:{},iconProps:{},isAdaptedWithPlan:!0},c=[{title:e("dashboard.quick_title_currency"),subTitle:e("dashboard.quick_desc_currency"),icon:qwe,iconContainerProps:{bgColor:"tc.orange.50"},iconProps:{fill:"orange.500"},primaryAction:{content:e("dashboard.quick_btn_currency"),onAction:async()=>await s("currency")},isAdaptedWithPlan:!!(n!=null&&n.currencies.total_limit)},{title:e("dashboard.quick_title_switcher"),subTitle:e("dashboard.quick_desc_switcher"),icon:Gwe,iconContainerProps:{bgColor:"tc.red.50"},iconProps:{fill:"red.500"},primaryAction:{content:e("dashboard.quick_btn_switcher"),onAction:async()=>await s("switcher")},isAdaptedWithPlan:!0},{title:e("dashboard.quick_title_translation"),subTitle:e("dashboard.quick_desc_translation"),icon:jO,iconContainerProps:{bgColor:"tc.green.50"},iconProps:{fill:"green.500"},primaryAction:{content:e("dashboard.quick_btn_translation"),onAction:async()=>await s("manageTranslation")},isAdaptedWithPlan:!!(n!=null&&n.languages.advanced_limit)},{title:e("dashboard.quick_title_auto_translation"),subTitle:e("dashboard.quick_desc_auto_translation"),icon:Wwe,iconContainerProps:{bgColor:"tc.purple.50"},iconProps:{fill:"purple.500"},primaryAction:{content:e("dashboard.quick_btn_auto_translation"),onAction:async()=>await s("autoTranslate")},isAdaptedWithPlan:Object.values((n==null?void 0:n.auto_translate.limit)||0).every(Boolean)}];return{apiData:{newsData:r,articlesData:a},loading:{isNewDataLoading:i,isArticleDataLoading:o},data:{quickActionData:c,mainQuickActionData:l}}},cxe=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/dashboardLanguageImage-28bf5ebe.png").href:new URL("../assets/dashboardLanguageImage-28bf5ebe.png",document.currentScript&&document.currentScript.src||document.baseURI).href),dxe=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/currencyOnboarding-7f203515.png").href:new URL("../assets/currencyOnboarding-7f203515.png",document.currentScript&&document.currentScript.src||document.baseURI).href),fxe=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/switcherOnboarding-3793b539.png").href:new URL("../assets/switcherOnboarding-3793b539.png",document.currentScript&&document.currentScript.src||document.baseURI).href),hxe=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/onboardingSuccess-af866dd7.png").href:new URL("../assets/onboardingSuccess-af866dd7.png",document.currentScript&&document.currentScript.src||document.baseURI).href),kz=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/trialHasExpiredModal-66016c88.png").href:new URL("../assets/trialHasExpiredModal-66016c88.png",document.currentScript&&document.currentScript.src||document.baseURI).href),pxe=({quickActionData:e=[],mainQuickActionData:t})=>T.jsxs($e,{w:"full",children:[T.jsxs(fi,{alignItems:"center",p:"20px",bg:"white",rounded:"md",boxShadow:"lg",justifyContent:"space-between",children:[T.jsxs(fi,{flexDirection:"column",gap:"16px",children:[T.jsx(Ot,{as:"h1",fontSize:"2xl",fontWeight:"600",lineHeight:"100%",children:t.title}),T.jsx(Ot,{fontSize:"sm",color:"gray.500",children:t.subTitle}),T.jsx($e,{children:T.jsx(Jr,{variant:"tc-solid-primary",h:"auto",onClick:async()=>await t.primaryAction.onAction(),children:T.jsx(Ot,{as:"span",p:"12px",fontSize:"sm",color:"inherit",children:t.primaryAction.content})})})]}),T.jsx(xu,{src:cxe,maxW:"150px",alt:"dashboard-language"})]}),T.jsx(ZN,{columns:4,pt:"20px",spacing:"20px",children:e.map(n=>T.jsxs(hu,{cursor:"pointer",bg:"white",rounded:"md",borderColor:"gray.200",borderWidth:"1px",py:"16px",px:"8px",transition:"ease-in-out 0.3s",flexDirection:"column",gap:"8px",onClick:async()=>n.primaryAction.onAction(),position:"relative",sx:{"&:hover":{borderColor:"white",shadow:"md","& > .children":{bg:n.iconProps.fill,"& > .children-icon":{fill:"white"}}}},children:[!n.isAdaptedWithPlan&&T.jsx($e,{position:"absolute",right:"8px",top:"4px",children:T.jsx(R6,{hasArrow:!0,label:T.jsxs(Ot,{color:"white",fontSize:"12px",children:["Works for Starter plan only.",T.jsx("br",{}),T.jsx(Ot,{as:"span",cursor:"pointer",color:"blue.400",onClick:async()=>await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.PRICING}),children:"Upgrade"})," ","to use this feature."]}),children:T.jsx(Wt,{as:Hwe})})}),T.jsx(hu,{className:"children",w:"2.875rem",h:"2.875rem",borderRadius:"lg",transition:"ease-in-out 0.3s",...n.iconContainerProps,children:T.jsx(Wt,{className:"children-icon",as:n.icon,w:"1.875rem",h:"1.875rem",transition:"ease-in-out 0.3s",...n.iconProps})}),T.jsx(Ot,{fontSize:"sm",fontWeight:"500",lineHeight:"150%",children:n.title})]},n.title))})]});var Tz={},Pz={},Wb={},Oz={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},n=t;e.default=n})(Oz);var mxe="Expected a function",VO=0/0,gxe="[object Symbol]",vxe=/^\s+|\s+$/g,yxe=/^[-+]0x[0-9a-f]+$/i,_xe=/^0b[01]+$/i,bxe=/^0o[0-7]+$/i,Sxe=parseInt,wxe=typeof Wi=="object"&&Wi&&Wi.Object===Object&&Wi,xxe=typeof self=="object"&&self&&self.Object===Object&&self,Cxe=wxe||xxe||Function("return this")(),Exe=Object.prototype,kxe=Exe.toString,Txe=Math.max,Pxe=Math.min,Uw=function(){return Cxe.Date.now()};function Oxe(e,t,n){var r,i,a,o,s,l,c=0,f=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(mxe);t=UO(t)||0,wC(n)&&(f=!!n.leading,h="maxWait"in n,a=h?Txe(UO(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function v(A){var I=r,M=i;return r=i=void 0,c=A,o=e.apply(M,I),o}function y(A){return c=A,s=setTimeout(b,t),f?v(A):o}function m(A){var I=A-l,M=A-c,F=t-I;return h?Pxe(F,a-M):F}function _(A){var I=A-l,M=A-c;return l===void 0||I>=t||I<0||h&&M>=a}function b(){var A=Uw();if(_(A))return S(A);s=setTimeout(b,m(A))}function S(A){return s=void 0,p&&r?v(A):(r=i=void 0,o)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function E(){return s===void 0?o:S(Uw())}function R(){var A=Uw(),I=_(A);if(r=arguments,i=this,l=A,I){if(s===void 0)return y(l);if(h)return s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),o}return R.cancel=C,R.flush=E,R}function wC(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Rxe(e){return!!e&&typeof e=="object"}function Axe(e){return typeof e=="symbol"||Rxe(e)&&kxe.call(e)==gxe}function UO(e){if(typeof e=="number")return e;if(Axe(e))return VO;if(wC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(vxe,"");var n=_xe.test(e);return n||bxe.test(e)?Sxe(e.slice(2),n?2:8):yxe.test(e)?VO:+e}var Ixe=Oxe,Rz={exports:{}};/*!
     465`+t.prev}function F0(e,t){var n=_3(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=zl(e,i)?t(e[i],e):""}var a=typeof $w=="function"?$w(e):[],o;if(nh){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)zl(e,l)&&(n&&String(Number(l))===l&&l<e.length||nh&&o["$"+l]instanceof Symbol||(uz.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof $w=="function")for(var c=0;c<a.length;c++)cz.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}var G6=U6,Sh=X2e,RSe=dSe,ASe=G6("%TypeError%"),$0=G6("%WeakMap%",!0),z0=G6("%Map%",!0),ISe=Sh("WeakMap.prototype.get",!0),LSe=Sh("WeakMap.prototype.set",!0),MSe=Sh("WeakMap.prototype.has",!0),DSe=Sh("Map.prototype.get",!0),NSe=Sh("Map.prototype.set",!0),FSe=Sh("Map.prototype.has",!0),K6=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},$Se=function(e,t){var n=K6(e,t);return n&&n.value},zSe=function(e,t,n){var r=K6(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},jSe=function(e,t){return!!K6(e,t)},BSe=function(){var t,n,r,i={assert:function(a){if(!i.has(a))throw new ASe("Side channel does not contain "+RSe(a))},get:function(a){if($0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return ISe(t,a)}else if(z0){if(n)return DSe(n,a)}else if(r)return $Se(r,a)},has:function(a){if($0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return MSe(t,a)}else if(z0){if(n)return FSe(n,a)}else if(r)return jSe(r,a);return!1},set:function(a,o){$0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new $0),LSe(t,a,o)):z0?(n||(n=new z0),NSe(n,a,o)):(r||(r={key:{},next:null}),zSe(r,a,o))}};return i},VSe=String.prototype.replace,USe=/%20/g,jw={RFC1738:"RFC1738",RFC3986:"RFC3986"},Y6={default:jw.RFC3986,formatters:{RFC1738:function(e){return VSe.call(e,USe,"+")},RFC3986:function(e){return String(e)}},RFC1738:jw.RFC1738,RFC3986:jw.RFC3986},HSe=Y6,Bw=Object.prototype.hasOwnProperty,tc=Array.isArray,Bo=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),WSe=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(tc(r)){for(var i=[],a=0;a<r.length;++a)typeof r[a]<"u"&&i.push(r[a]);n.obj[n.prop]=i}}},mz=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},qSe=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(tc(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Bw.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return tc(t)&&!tc(n)&&(i=mz(t,r)),tc(t)&&tc(n)?(n.forEach(function(a,o){if(Bw.call(t,o)){var s=t[o];s&&typeof s=="object"&&a&&typeof a=="object"?t[o]=e(s,a,r):t.push(a)}else t[o]=a}),t):Object.keys(n).reduce(function(a,o){var s=n[o];return Bw.call(a,o)?a[o]=e(a[o],s,r):a[o]=s,a},i)},GSe=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},KSe=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},YSe=function(t,n,r,i,a){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),r==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var s="",l=0;l<o.length;++l){var c=o.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===HSe.RFC1738&&(c===40||c===41)){s+=o.charAt(l);continue}if(c<128){s=s+Bo[c];continue}if(c<2048){s=s+(Bo[192|c>>6]+Bo[128|c&63]);continue}if(c<55296||c>=57344){s=s+(Bo[224|c>>12]+Bo[128|c>>6&63]+Bo[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|o.charCodeAt(l)&1023),s+=Bo[240|c>>18]+Bo[128|c>>12&63]+Bo[128|c>>6&63]+Bo[128|c&63]}return s},ZSe=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var a=n[i],o=a.obj[a.prop],s=Object.keys(o),l=0;l<s.length;++l){var c=s[l],f=o[c];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:o,prop:c}),r.push(f))}return WSe(n),t},QSe=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},XSe=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},JSe=function(t,n){return[].concat(t,n)},ewe=function(t,n){if(tc(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},gz={arrayToObject:mz,assign:GSe,combine:JSe,compact:ZSe,decode:KSe,encode:YSe,isBuffer:XSe,isRegExp:QSe,maybeMap:ewe,merge:qSe},vz=BSe,Oy=gz,mm=Y6,twe=Object.prototype.hasOwnProperty,$O={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},Ms=Array.isArray,nwe=Array.prototype.push,yz=function(e,t){nwe.apply(e,Ms(t)?t:[t])},rwe=Date.prototype.toISOString,zO=mm.default,ui={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Oy.encode,encodeValuesOnly:!1,format:zO,formatter:mm.formatters[zO],indices:!1,serializeDate:function(t){return rwe.call(t)},skipNulls:!1,strictNullHandling:!1},iwe=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Vw={},awe=function e(t,n,r,i,a,o,s,l,c,f,h,p,v,y,m,_){for(var b=t,S=_,C=0,E=!1;(S=S.get(Vw))!==void 0&&!E;){var R=S.get(t);if(C+=1,typeof R<"u"){if(R===C)throw new RangeError("Cyclic object value");E=!0}typeof S.get(Vw)>"u"&&(C=0)}if(typeof l=="function"?b=l(n,b):b instanceof Date?b=h(b):r==="comma"&&Ms(b)&&(b=Oy.maybeMap(b,function(ce){return ce instanceof Date?h(ce):ce})),b===null){if(a)return s&&!y?s(n,ui.encoder,m,"key",p):n;b=""}if(iwe(b)||Oy.isBuffer(b)){if(s){var A=y?n:s(n,ui.encoder,m,"key",p);return[v(A)+"="+v(s(b,ui.encoder,m,"value",p))]}return[v(n)+"="+v(String(b))]}var I=[];if(typeof b>"u")return I;var M;if(r==="comma"&&Ms(b))y&&s&&(b=Oy.maybeMap(b,s)),M=[{value:b.length>0?b.join(",")||null:void 0}];else if(Ms(l))M=l;else{var F=Object.keys(b);M=c?F.sort(c):F}for(var z=i&&Ms(b)&&b.length===1?n+"[]":n,Y=0;Y<M.length;++Y){var W=M[Y],q=typeof W=="object"&&typeof W.value<"u"?W.value:b[W];if(!(o&&q===null)){var ae=Ms(b)?typeof r=="function"?r(z,W):z:z+(f?"."+W:"["+W+"]");_.set(t,C);var ee=vz();ee.set(Vw,_),yz(I,e(q,ae,r,i,a,o,r==="comma"&&y&&Ms(b)?null:s,l,c,f,h,p,v,y,m,ee))}}return I},owe=function(t){if(!t)return ui;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||ui.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=mm.default;if(typeof t.format<"u"){if(!twe.call(mm.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=mm.formatters[r],a=ui.filter;return(typeof t.filter=="function"||Ms(t.filter))&&(a=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ui.addQueryPrefix,allowDots:typeof t.allowDots>"u"?ui.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ui.charsetSentinel,delimiter:typeof t.delimiter>"u"?ui.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ui.encode,encoder:typeof t.encoder=="function"?t.encoder:ui.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ui.encodeValuesOnly,filter:a,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ui.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ui.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ui.strictNullHandling}},swe=function(e,t){var n=e,r=owe(t),i,a;typeof r.filter=="function"?(a=r.filter,n=a("",n)):Ms(r.filter)&&(a=r.filter,i=a);var o=[];if(typeof n!="object"||n===null)return"";var s;t&&t.arrayFormat in $O?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=$O[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=vz(),h=0;h<i.length;++h){var p=i[h];r.skipNulls&&n[p]===null||yz(o,awe(n[p],p,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var v=o.join(r.delimiter),y=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""},rh=gz,S3=Object.prototype.hasOwnProperty,lwe=Array.isArray,Mr={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:rh.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},uwe=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},_z=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},cwe="utf8=%26%2310003%3B",dwe="utf8=%E2%9C%93",fwe=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=n.parameterLimit===1/0?void 0:n.parameterLimit,o=i.split(n.delimiter,a),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<o.length;++l)o[l].indexOf("utf8=")===0&&(o[l]===dwe?c="utf-8":o[l]===cwe&&(c="iso-8859-1"),s=l,l=o.length);for(l=0;l<o.length;++l)if(l!==s){var f=o[l],h=f.indexOf("]="),p=h===-1?f.indexOf("="):h+1,v,y;p===-1?(v=n.decoder(f,Mr.decoder,c,"key"),y=n.strictNullHandling?null:""):(v=n.decoder(f.slice(0,p),Mr.decoder,c,"key"),y=rh.maybeMap(_z(f.slice(p+1),n),function(m){return n.decoder(m,Mr.decoder,c,"value")})),y&&n.interpretNumericEntities&&c==="iso-8859-1"&&(y=uwe(y)),f.indexOf("[]=")>-1&&(y=lwe(y)?[y]:y),S3.call(r,v)?r[v]=rh.combine(r[v],y):r[v]=y}return r},hwe=function(e,t,n,r){for(var i=r?t:_z(t,n),a=e.length-1;a>=0;--a){var o,s=e[a];if(s==="[]"&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=parseInt(l,10);!n.parseArrays&&l===""?o={0:i}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[],o[c]=i):l!=="__proto__"&&(o[l]=i)}i=o}return i},pwe=function(t,n,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&o.exec(a),c=l?a.slice(0,l.index):a,f=[];if(c){if(!r.plainObjects&&S3.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=s.exec(a))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&S3.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+a.slice(l.index)+"]"),hwe(f,n,r,i)}},mwe=function(t){if(!t)return Mr;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Mr.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Mr.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Mr.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Mr.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Mr.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Mr.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Mr.comma,decoder:typeof t.decoder=="function"?t.decoder:Mr.decoder,delimiter:typeof t.delimiter=="string"||rh.isRegExp(t.delimiter)?t.delimiter:Mr.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Mr.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Mr.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Mr.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Mr.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Mr.strictNullHandling}},gwe=function(e,t){var n=mwe(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?fwe(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(r),o=0;o<a.length;++o){var s=a[o],l=pwe(s,r[s],n,typeof e=="string");i=rh.merge(i,l,n)}return n.allowSparse===!0?i:rh.compact(i)},vwe=swe,ywe=gwe,_we=Y6,bwe={formats:_we,parse:ywe,stringify:vwe};const Z6=vu(bwe),Swe=!hi.get(Qg)||!hi.get(z6),wwe=()=>({domain:hi.get(Zg),token:hi.get(Qg),tokenExpiresAt:hi.get($6),refreshToken:hi.get(z6)}),xwe=({domain:e,token:t,refreshToken:n,tokenExpiresAt:r})=>{hi.set(Zg,e.toString()),hi.set(Qg,t),hi.set($6,r),hi.set(z6,n,{secure:!0,sameSite:"Strict",domain:window.location.hostname,path:"/"})},Cwe=({isRemoveDomain:e=!1}={})=>{hi.remove(Qg),hi.remove($6),e&&hi.remove(Zg)},df={authSuccess:xwe,authFail:Cwe,getAuthCookies:wwe,isMissingToken:Swe},Ewe=async e=>{var t;try{const{config:n}=e,[r,i]=((t=n.baseURL)==null?void 0:t.split("://"))||"";if(r==="http")return new Error("Request already tried with HTTP protocol, but failed again.");const a=`http://${i}`;return n.baseURL=a,await Q6(n)}catch(n){return Promise.reject(n)}},bz=async()=>{try{const e=df.getAuthCookies().tokenExpiresAt;if(!e)return Promise.reject("Token expires at is not found in cookies");const t=new Date,n=E2e(new Date(e),1);if(!b2e(t,n))return hi.get(Qg);const i=await X6.newTokenByRefreshToken();return df.authSuccess({domain:df.getAuthCookies().domain||"",token:i.token,refreshToken:"",tokenExpiresAt:ez(new Date,3).toISOString()}),i.token}catch(e){if(e.response.status===401){df.authFail({isRemoveDomain:!1});const t=Z6.stringify({type:"sessionExpired"});window.location.href=`${kr.ROUTES.HOME}?${t}`}return Promise.reject("Get token fail")}},Ll=window,j0=window.location.hostname.includes("localhost"),ig={transcyUrl:j0?X_e:Ll.transcy_url,transcyApiKey:j0?ebe:Ll.transcy_apikey,transcyToken:j0?J_e:Ll.transcy_token,transcyVersion:Ll.transcy_version,transcyWooVersion:Ll.transcy_woo_version,transcyWpVersion:Ll.transcy_wp_version,transcyHostname:j0?Q_e:new URL(Ll.transcy_url).hostname||"",transcyTokenExpiresAt:Ll.transcy_token_expires_at},Ir=F6.create({baseURL:`${X$}/api`,timeout:60*1e3});Ir.interceptors.request.use(async function(e){const t=await bz();return t&&(e.headers.Authorization=`Bearer ${t}`),e.headers["X-Transcy-Hostname"]=hi.get(Zg),e});Ir.interceptors.response.use(e=>e.data,async e=>{var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===402?location.href=kr.ROUTES.HOME:Promise.reject(e)});const Sz=F6.create({baseURL:`${X$}/api`,timeout:60*1e3});Sz.interceptors.request.use(async function(e){return e.headers["X-Transcy-Hostname"]=hi.get(Zg),e});Sz.interceptors.response.use(e=>e.data,e=>Promise.reject(e));const Q6=F6.create({timeout:60*1e3,baseURL:`${ig.transcyUrl}/?rest_route=/transcy-api/v1`,headers:{"Content-Type":"application/json",Authorization:`${ig.transcyApiKey}`}});Q6.interceptors.response.use(e=>e.data,async e=>await Ewe(e));const kwe=()=>Q6({url:"get-token"}),Twe=()=>Ir({url:"clients/current"}),Pwe=()=>Ir({url:"crispchat"}),X6={newTokenByRefreshToken:kwe,getCurrentUser:Twe,getCrispChatUser:Pwe},wz={getToken:"token",getActivePluginOfUser:"getActivePluginOfUser",getCrispChatUser:"getCrispChatUser",getCurrentUser:"getCurrentUser"},ff={NO_PLAN:"NO_PLAN",TRIAL_EXPIRED:"TRIAL_EXPIRED",NO_SUBSCRIPTION:"NO_SUBSCRIPTION",RECURRING_CHARGE_FAIL:"RECURRING_CHARGE_FAIL"},Ao=({enabled:e=!0}={})=>wo({queryKey:[wz.getCurrentUser],queryFn:()=>X6.getCurrentUser(),cacheTime:1/0,staleTime:1/0,enabled:e}),Owe=()=>Ir({url:"/news",method:"GET"}),Rwe=()=>Ir({url:"/articles",method:"GET"}),Awe=e=>Ir({url:"tracking/event",method:"POST",data:e}),ho={getNews:Owe,getArticles:Rwe,trackingSegmentEvent:Awe},Iwe={ONBOARDING:{ROUTE_CHANGE_VIEW_ONBOARDING_WIZARD:"View onboarding wizard"},HOME:{ROUTE_CHANGE_VIEW_DASHBOARD:"View Dashboard Plugin"}},Lwe={ONBOARDING:{CLICK_EVENT_PREVIEW_SWITCHER:"Click Preview Switcher",CLICK_EVENT_GO_TO_DASHBOARD:"Click Go to Dashboard"},HOME:{CLICK_EVENT_SECTION_LANGUAGE:"Click Section Language",CLICK_EVENT_SECTION_TRANSLATION:"Click Section Translation",CLICK_EVENT_SECTION_CURRENCY:"Click Section Currency",CLICK_EVENT_SECTION_AUTO_TRANSLATION:"Click Section Auto Translation",CLICK_EVENT_SWITCHER:"Click Section Switcher",CLICK_EVENT_SHORTCUT_LANGUAGE:"Click Shortcut Language",CLICK_EVENT_SHORTCUT_TRANSLATION:"Click Shortcut Translation",CLICK_EVENT_SHORTCUT_CURRENCY:"Click Shortcut Currency",CLICK_EVENT_SHORTCUT_SWITCHER:"Click Shortcut Switcher",CLICK_EVENT_SHORTCUT_HOME:"Click Menu Home",CLICK_EVENT_SHORTCUT_TRANSCY:"Click Transcy"}},Ba={PAGE_VIEW:Iwe,ACTION_EVENT:Lwe},Mwe=async e=>{var i,a;const t=((i=Object.entries(kr.ROUTES).find(([,o])=>o===e))==null?void 0:i[0])||"";if(!(t in Ba.PAGE_VIEW))return;const n=Ba.PAGE_VIEW[t],r=(a=Object.entries(n).reduce((o,[s,l])=>s.includes("ROUTE_CHANGE")?[...o,l]:o,[]))==null?void 0:a[0];try{await ho.trackingSegmentEvent({event:r})}catch{console.warn("[SEGMENT] Error tracking page view")}},Dwe={pageView:Mwe},Nwe="li.transcy_menu_switcher",Fwe=".wp-submenu-head",$we=".wp-first-item",{CLICK_EVENT_SHORTCUT_CURRENCY:zwe,CLICK_EVENT_SHORTCUT_LANGUAGE:jwe,CLICK_EVENT_SHORTCUT_SWITCHER:Bwe,CLICK_EVENT_SHORTCUT_TRANSLATION:Vwe}=Ba.ACTION_EVENT.HOME,Uwe=()=>{const e=Wg(),t=async n=>{try{await ho.trackingSegmentEvent({event:n})}catch{console.warn("[SEGMENT] Error tracking event")}};return w.useEffect(()=>{var o;const n=document.querySelectorAll(Nwe)||null,r=((o=n[0])==null?void 0:o.parentElement)||null,i=r==null?void 0:r.querySelector(Fwe),a=r==null?void 0:r.querySelector($we);i==null||i.addEventListener("click",()=>{t(Ba.ACTION_EVENT.HOME.CLICK_EVENT_SHORTCUT_HOME)}),a==null||a.addEventListener("click",()=>{t(Ba.ACTION_EVENT.HOME.CLICK_EVENT_SHORTCUT_TRANSCY)}),n==null||n.forEach(s=>{s.addEventListener("click",async()=>{var h;const l=((h=s.textContent)==null?void 0:h.trim().toUpperCase())||"";if(!l)return;const f={LANGUAGE:jwe,CURRENCY:zwe,TRANSLATION:Vwe,SWITCHER:Bwe}[l];await t(f)})})},[]),w.useEffect(()=>{const n=e.pathname;Dwe.pageView(n)},[e]),{}},Hwe=e=>T.jsxs(Wt,{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",...e,children:[T.jsx("path",{d:"M12.0611 5.51172C11.844 5.51184 11.6337 5.58722 11.466 5.72502C11.2982 5.86283 11.1835 6.05452 11.1412 6.26745C11.099 6.48038 11.1319 6.70137 11.2343 6.89277C11.3367 7.08416 11.5023 7.23413 11.7029 7.3171C11.9035 7.40008 12.1267 7.41094 12.3344 7.34784C12.5421 7.28473 12.7215 7.15156 12.842 6.97101C12.9625 6.79046 13.0167 6.57371 12.9954 6.35769C12.974 6.14166 12.8784 5.93973 12.7248 5.78629C12.6378 5.69904 12.5343 5.62986 12.4204 5.58274C12.3065 5.53562 12.1844 5.51148 12.0611 5.51172Z",fill:"#718096"}),T.jsx("path",{d:"M17.285 1.75984C17.2849 1.75879 17.2849 1.75773 17.285 1.75668C17.2553 1.62636 17.1897 1.50694 17.0958 1.4119C17.0018 1.31686 16.8831 1.24997 16.7531 1.21879C15.7055 0.963202 14.0573 1.23566 12.231 1.96691C10.3902 2.70519 8.66541 3.79504 7.49963 4.96293C7.12597 5.33461 6.77883 5.73203 6.46076 6.15226C5.67573 6.11711 4.9842 6.22891 4.40166 6.48308C2.37174 7.37641 1.79201 9.66262 1.63768 10.6013C1.61535 10.7347 1.62409 10.8714 1.66323 11.0008C1.70237 11.1303 1.77086 11.2489 1.86335 11.3476C1.95584 11.4462 2.06985 11.5222 2.19651 11.5696C2.32316 11.617 2.45904 11.6345 2.59358 11.6208H2.59815L4.8594 11.374C4.86221 11.4029 4.86537 11.4292 4.86783 11.4535C4.89688 11.729 5.01976 11.9862 5.21588 12.1819L6.31944 13.2862C6.51485 13.4826 6.77199 13.6056 7.04752 13.6346L7.12311 13.6427L6.87701 15.9011V15.9057C6.86444 16.0273 6.87738 16.1502 6.91502 16.2666C6.95265 16.3829 7.01415 16.4901 7.09558 16.5813C7.17701 16.6726 7.27658 16.7458 7.38792 16.7964C7.49927 16.8469 7.61993 16.8737 7.74221 16.8749C7.79109 16.875 7.83989 16.871 7.88811 16.863C8.83205 16.7111 11.1172 16.1384 12.0081 14.0976C12.2601 13.5189 12.3716 12.8302 12.3403 12.0466C12.7624 11.7292 13.1613 11.382 13.5338 11.0077C14.7091 9.8384 15.8025 8.12769 16.533 6.31363C17.2604 4.50801 17.5343 2.84758 17.285 1.75984ZM13.5212 7.90797C13.2323 8.19714 12.8642 8.39413 12.4633 8.47403C12.0625 8.55392 11.6469 8.51313 11.2693 8.35682C10.8916 8.2005 10.5688 7.93568 10.3417 7.59586C10.1146 7.25604 9.99332 6.85649 9.99332 6.44775C9.99332 6.03902 10.1146 5.63947 10.3417 5.29965C10.5688 4.95983 10.8916 4.69501 11.2693 4.53869C11.6469 4.38237 12.0625 4.34158 12.4633 4.42148C12.8642 4.50137 13.2323 4.69837 13.5212 4.98754C13.7148 5.17825 13.8686 5.40556 13.9735 5.65624C14.0785 5.90693 14.1325 6.17598 14.1325 6.44775C14.1325 6.71952 14.0785 6.98858 13.9735 7.23926C13.8686 7.48995 13.7148 7.71726 13.5212 7.90797Z",fill:"#718096"}),T.jsx("path",{d:"M6.19279 13.5855C6.05675 13.5686 5.91924 13.602 5.80607 13.6794C5.58143 13.833 5.35572 13.9849 5.12791 14.1329C4.66701 14.4324 4.11576 13.9065 4.38963 13.4297L4.81678 12.6915C4.87785 12.6021 4.91185 12.4971 4.91471 12.3889C4.91758 12.2807 4.88918 12.174 4.83292 12.0816C4.77666 11.9892 4.69493 11.9149 4.59754 11.8677C4.50014 11.8206 4.39121 11.8025 4.28381 11.8157C3.80973 11.8757 3.36905 12.0916 3.03119 12.4296C2.90252 12.5586 2.51123 12.9502 2.30064 14.4426C2.2407 14.8713 2.20292 15.3027 2.18744 15.7353C2.18552 15.8104 2.19864 15.8851 2.22605 15.955C2.25345 16.0249 2.29458 16.0886 2.34701 16.1424C2.39943 16.1962 2.4621 16.2389 2.5313 16.2681C2.6005 16.2972 2.67484 16.3122 2.74994 16.3122H2.764C3.19689 16.2969 3.62871 16.2593 4.05775 16.1997C5.55084 15.9888 5.94248 15.5971 6.07115 15.4685C6.41065 15.1304 6.62608 14.6877 6.68252 14.212C6.70059 14.064 6.65916 13.9148 6.56733 13.7974C6.4755 13.6799 6.34079 13.6037 6.19279 13.5855Z",fill:"#718096"})]}),jO=e=>T.jsx(Wt,{width:"31",height:"18",viewBox:"0 0 31 18",fill:"none",...e,children:T.jsx("path",{d:"M11.7979 12.9844C11.8916 13.2188 11.7979 13.4062 11.6104 13.5C11.376 13.5938 11.1885 13.5 11.0947 13.2656L10.251 11.25H5.8916L5.04785 13.2656C4.9541 13.5 4.7666 13.5938 4.53223 13.5C4.34473 13.4062 4.25098 13.2188 4.34473 12.9844L7.71973 4.73438C7.7666 4.59375 7.90723 4.5 8.09473 4.5C8.23535 4.5 8.37598 4.59375 8.42285 4.73438L11.7979 12.9844ZM6.17285 10.5H9.96973L8.09473 5.90625L6.17285 10.5ZM23.4697 6H26.8447C27.0322 6 27.2197 6.1875 27.2197 6.375C27.2197 6.60938 27.0322 6.75 26.8447 6.75H26.3291L25.9541 7.92188C25.4854 9.32812 24.6885 10.5469 23.6572 11.5312C23.8916 11.6719 24.126 11.8125 24.3604 11.9531L25.8604 12.8438C26.0479 12.9375 26.1416 13.1719 26.001 13.3125C25.9072 13.5 25.6729 13.5938 25.5322 13.4531L23.9854 12.6094C23.6572 12.4219 23.376 12.2344 23.0947 12C22.7197 12.2812 22.2979 12.5625 21.9229 12.7969L20.6104 13.4531C20.4229 13.5938 20.2354 13.5 20.0947 13.3125C20.001 13.125 20.0947 12.9375 20.2822 12.7969L21.5479 12.1406C21.876 11.9531 22.1572 11.7656 22.4854 11.5312C22.2979 11.3906 22.1104 11.2031 21.9229 11.0156L20.5635 9.65625C20.4229 9.51562 20.4229 9.28125 20.5635 9.14062C20.7041 9 20.9385 9 21.0791 9.14062L22.4385 10.5C22.626 10.6875 22.8604 10.875 23.0479 11.0625C24.0322 10.125 24.8291 9 25.251 7.6875L25.5322 6.75H19.3447C19.1104 6.75 18.9697 6.60938 18.9697 6.375C18.9697 6.1875 19.1104 6 19.3447 6H22.7197V4.875C22.7197 4.6875 22.8604 4.5 23.0947 4.5C23.2822 4.5 23.4697 4.6875 23.4697 4.875V6ZM30.5947 15C30.5947 16.6875 29.2354 18 27.5947 18H3.59473C1.90723 18 0.594727 16.6875 0.594727 15V3C0.594727 1.35938 1.90723 0 3.59473 0H27.5947C29.2354 0 30.5947 1.35938 30.5947 3V15ZM15.2197 0.75H3.59473C2.3291 0.75 1.34473 1.78125 1.34473 3V15C1.34473 16.2656 2.3291 17.25 3.59473 17.25H15.2197V0.75ZM15.9697 0.75V17.25H27.5947C28.8135 17.25 29.8447 16.2656 29.8447 15V3C29.8447 1.78125 28.8135 0.75 27.5947 0.75H15.9697Z"})}),Wwe=e=>T.jsxs(Wt,{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",...e,children:[T.jsx("path",{d:"M28.375 2C29.2891 2 30 2.74072 30 3.6347V10.9398C30 11.8082 29.2637 12.5489 28.375 12.5489H24.7188L21.5449 14.9499C21.3418 15.0776 21.0625 14.9499 21.0625 14.6945V12.5745H18.625C17.7109 12.5745 17 11.8593 17 10.9653V3.6347C17 2.74072 17.7109 2 18.625 2H28.375ZM23.7285 9.35615C24.0586 9.35615 24.3379 9.10073 24.3379 8.74314C24.3379 8.41109 24.0586 8.13013 23.7285 8.13013H20.8848C20.5293 8.13013 20.2754 8.41109 20.2754 8.74314C20.2754 9.10073 20.5293 9.35615 20.8848 9.35615H23.7285ZM26.166 6.9041C26.4961 6.9041 26.7754 6.64868 26.7754 6.29109C26.7754 5.95904 26.4961 5.67808 26.166 5.67808H20.8848C20.5293 5.67808 20.2754 5.95904 20.2754 6.29109C20.2754 6.64868 20.5293 6.9041 20.8848 6.9041H26.166Z"}),T.jsx("path",{d:"M8.4 16.7188C9.375 16.7188 10.2 17.5352 10.2 18.5C10.2 19.502 9.375 20.2812 8.4 20.2812C7.3875 20.2812 6.6 19.502 6.6 18.5C6.6 17.5352 7.3875 16.7188 8.4 16.7188ZM8.4 19.6875C9.0375 19.6875 9.6 19.168 9.6 18.5C9.6 17.8691 9.0375 17.3125 8.4 17.3125C7.725 17.3125 7.2 17.8691 7.2 18.5C7.2 19.168 7.725 19.6875 8.4 19.6875ZM1.5 16.7188C0.975 16.7188 0.6 17.127 0.6 17.6094V22.9531C0.6 23.4727 0.975 23.8438 1.5 23.8438H2.3625C2.55 23.8438 2.7 23.9922 2.7 24.1406C2.7 24.3262 2.55 24.4375 2.4 24.4375H1.5C0.6375 24.4375 0 23.8066 0 22.9531V17.6094C0 16.793 0.6375 16.125 1.5 16.125H2.4C2.55 16.125 2.7 16.2734 2.7 16.4219C2.7 16.6074 2.55 16.7188 2.4 16.7188H1.5ZM15.6 16.7188C16.575 16.7188 17.4 17.5352 17.4 18.5C17.4 19.502 16.575 20.2812 15.6 20.2812C14.5875 20.2812 13.8 19.502 13.8 18.5C13.8 17.5352 14.5875 16.7188 15.6 16.7188ZM15.6 19.6875C16.2375 19.6875 16.8 19.168 16.8 18.5C16.8 17.8691 16.2375 17.3125 15.6 17.3125C14.925 17.3125 14.4 17.8691 14.4 18.5C14.4 19.168 14.925 19.6875 15.6 19.6875ZM16.8 12.5625C18.7875 12.5625 20.4 14.1582 20.4 16.125V24.4375C20.4 26.4414 18.7875 28 16.8 28H7.2C5.175 28 3.6 26.4414 3.6 24.4375V16.125C3.6 14.1582 5.175 12.5625 7.2 12.5625H11.7V9.29688C11.7 9.14844 11.8125 9 12 9C12.15 9 12.3 9.14844 12.3 9.29688V12.5625H16.8ZM19.8 23.8438V16.125C19.8 14.4922 18.45 13.1562 16.8 13.1562H7.2C5.5125 13.1562 4.2 14.4922 4.2 16.125V23.8438H5.7C5.85 23.8438 6 23.9922 6 24.1406C6 24.3262 5.85 24.4375 5.7 24.4375H4.2C4.2 26.1074 5.5125 27.4062 7.2 27.4062H16.8C18.45 27.4062 19.8 26.1074 19.8 24.4375H18.3C18.1125 24.4375 18 24.3262 18 24.1406C18 23.9922 18.1125 23.8438 18.3 23.8438H19.8ZM22.5 16.125C23.325 16.125 24 16.793 24 17.6094V22.9531C24 23.8066 23.325 24.4375 22.5 24.4375H21.6C21.4125 24.4375 21.3 24.2891 21.3 24.1406C21.3 23.9551 21.4125 23.8438 21.6 23.8438H22.5C22.9875 23.8438 23.4 23.4727 23.4 22.9531V17.6094C23.4 17.127 22.9875 16.7188 22.5 16.7188H21.6C21.4125 16.7188 21.3 16.6074 21.3 16.4219C21.3 16.2734 21.4125 16.125 21.6 16.125H22.5ZM9.3 23.8438C9.45 23.8438 9.6 23.9922 9.6 24.1406C9.6 24.3262 9.45 24.4375 9.3 24.4375H7.5C7.3125 24.4375 7.2 24.3262 7.2 24.1406C7.2 23.9922 7.3125 23.8438 7.5 23.8438H9.3ZM12.9 23.8438C13.05 23.8438 13.2 23.9922 13.2 24.1406C13.2 24.3262 13.05 24.4375 12.9 24.4375H11.1C10.9125 24.4375 10.8 24.3262 10.8 24.1406C10.8 23.9922 10.9125 23.8438 11.1 23.8438H12.9ZM16.5 23.8438C16.65 23.8438 16.8 23.9922 16.8 24.1406C16.8 24.3262 16.65 24.4375 16.5 24.4375H14.7C14.5125 24.4375 14.4 24.3262 14.4 24.1406C14.4 23.9922 14.5125 23.8438 14.7 23.8438H16.5Z"})]}),qwe=e=>T.jsx(Wt,{width:"28",height:"18",viewBox:"0 0 28 18",fill:"none",...e,children:T.jsx("path",{d:"M24.8447 5.625C22.9697 5.625 21.4697 4.125 21.4697 2.25V1.875C21.4697 1.6875 21.6104 1.5 21.8447 1.5C22.0322 1.5 22.2197 1.6875 22.2197 1.875V2.25C22.2197 3.70312 23.3916 4.875 24.8447 4.875H25.2197C25.4072 4.875 25.5947 5.0625 25.5947 5.25C25.5947 5.48438 25.4072 5.625 25.2197 5.625H24.8447ZM1.96973 4.875H2.34473C3.75098 4.875 4.96973 3.70312 4.96973 2.25V1.875C4.96973 1.6875 5.11035 1.5 5.34473 1.5C5.53223 1.5 5.71973 1.6875 5.71973 1.875V2.25C5.71973 4.125 4.17285 5.625 2.34473 5.625H1.96973C1.73535 5.625 1.59473 5.48438 1.59473 5.25C1.59473 5.0625 1.73535 4.875 1.96973 4.875ZM25.2197 12.375C25.4072 12.375 25.5947 12.5625 25.5947 12.75C25.5947 12.9844 25.4072 13.125 25.2197 13.125H24.8447C23.3916 13.125 22.2197 14.3438 22.2197 15.75V16.125C22.2197 16.3594 22.0322 16.5 21.8447 16.5C21.6104 16.5 21.4697 16.3594 21.4697 16.125V15.75C21.4697 13.9219 22.9697 12.375 24.8447 12.375H25.2197ZM1.59473 12.75C1.59473 12.5625 1.73535 12.375 1.96973 12.375H2.34473C4.17285 12.375 5.71973 13.9219 5.71973 15.75V16.125C5.71973 16.3594 5.53223 16.5 5.34473 16.5C5.11035 16.5 4.96973 16.3594 4.96973 16.125V15.75C4.96973 14.3438 3.75098 13.125 2.34473 13.125H1.96973C1.73535 13.125 1.59473 12.9844 1.59473 12.75ZM18.0947 9C18.0947 11.4844 16.0791 13.5 13.5947 13.5C11.0635 13.5 9.09473 11.4844 9.09473 9C9.09473 6.51562 11.0635 4.5 13.5947 4.5C16.0791 4.5 18.0947 6.51562 18.0947 9ZM13.5947 5.25C11.4854 5.25 9.84473 6.9375 9.84473 9C9.84473 11.1094 11.4854 12.75 13.5947 12.75C15.6572 12.75 17.3447 11.1094 17.3447 9C17.3447 6.9375 15.6572 5.25 13.5947 5.25ZM0.0947266 3C0.0947266 1.35938 1.40723 0 3.09473 0H24.0947C25.7354 0 27.0947 1.35938 27.0947 3V15C27.0947 16.6875 25.7354 18 24.0947 18H3.09473C1.40723 18 0.0947266 16.6875 0.0947266 15V3ZM0.844727 3V15C0.844727 16.2656 1.8291 17.25 3.09473 17.25H24.0947C25.3135 17.25 26.3447 16.2656 26.3447 15V3C26.3447 1.78125 25.3135 0.75 24.0947 0.75H3.09473C1.8291 0.75 0.844727 1.78125 0.844727 3Z"})}),Gwe=e=>T.jsx(Wt,{width:"25",height:"26",viewBox:"0 0 25 26",fill:"none",...e,children:T.jsx("path",{d:"M22.5322 1.60938L23.9854 3.0625C24.7354 3.8125 24.7354 4.98438 23.9854 5.73438L5.28223 24.4375C4.53223 25.1875 3.36035 25.1875 2.61035 24.4375L1.15723 22.9844C0.407227 22.2344 0.407227 21.0625 1.15723 20.3125L19.8604 1.60938C20.6104 0.859375 21.7822 0.859375 22.5322 1.60938ZM20.4229 2.125L14.2822 8.21875C14.3291 8.21875 14.3291 8.26562 14.3291 8.26562L17.3291 11.2656C17.3291 11.2656 17.376 11.2656 17.376 11.3125L23.4697 5.17188C23.8916 4.75 23.8916 4.04688 23.4697 3.625L21.9697 2.125C21.5479 1.70312 20.8447 1.70312 20.4229 2.125ZM1.67285 22.4219L3.17285 23.9219C3.59473 24.3438 4.29785 24.3438 4.71973 23.9219L16.8604 11.8281C16.8135 11.8281 16.8135 11.7812 16.8135 11.7812L13.8135 8.78125C13.8135 8.78125 13.7666 8.78125 13.7666 8.73438L1.67285 20.8281C1.25098 21.2969 1.25098 22 1.67285 22.4219ZM3.96973 6.625H6.59473C6.78223 6.625 6.96973 6.8125 6.96973 7C6.96973 7.23438 6.78223 7.375 6.59473 7.375H3.96973V10C3.96973 10.2344 3.78223 10.375 3.59473 10.375C3.36035 10.375 3.21973 10.2344 3.21973 10V7.375H0.594727C0.360352 7.375 0.219727 7.23438 0.219727 7C0.219727 6.8125 0.360352 6.625 0.594727 6.625H3.21973V4C3.21973 3.8125 3.36035 3.625 3.59473 3.625C3.78223 3.625 3.96973 3.8125 3.96973 4V6.625ZM21.5947 15.625C21.7822 15.625 21.9697 15.8125 21.9697 16V18.625H24.5947C24.7822 18.625 24.9697 18.8125 24.9697 19C24.9697 19.2344 24.7822 19.375 24.5947 19.375H21.9697V22C21.9697 22.2344 21.7822 22.375 21.5947 22.375C21.3604 22.375 21.2197 22.2344 21.2197 22V19.375H18.5947C18.3604 19.375 18.2197 19.2344 18.2197 19C18.2197 18.8125 18.3604 18.625 18.5947 18.625H21.2197V16C21.2197 15.8125 21.3604 15.625 21.5947 15.625ZM9.96973 3.625H11.0947C11.2822 3.625 11.4697 3.8125 11.4697 4C11.4697 4.23438 11.2822 4.375 11.0947 4.375H9.96973V5.5C9.96973 5.73438 9.78223 5.875 9.59473 5.875C9.36035 5.875 9.21973 5.73438 9.21973 5.5V4.375H8.09473C7.86035 4.375 7.71973 4.23438 7.71973 4C7.71973 3.8125 7.86035 3.625 8.09473 3.625H9.21973V2.5C9.21973 2.3125 9.36035 2.125 9.59473 2.125C9.78223 2.125 9.96973 2.3125 9.96973 2.5V3.625Z"})}),xz=e=>T.jsx(Wt,{viewBox:"0 0 7 12",fill:"none",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.52827 0.861278C0.788619 0.600928 1.21073 0.600928 1.47108 0.861278L6.13775 5.52794C6.3981 5.78829 6.3981 6.2104 6.13775 6.47075L1.47108 11.1374C1.21073 11.3978 0.788619 11.3978 0.52827 11.1374C0.26792 10.8771 0.26792 10.455 0.52827 10.1946L4.72353 5.99935L0.52827 1.80409C0.26792 1.54374 0.26792 1.12163 0.52827 0.861278Z",fill:"#4A5568"})}),Cz=e=>T.jsx(Wt,{viewBox:"0 0 7 12",fill:"none",...e,children:T.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.47173 0.861278C6.73208 1.12163 6.73208 1.54374 6.47173 1.80409L2.27647 5.99935L6.47173 10.1946C6.73208 10.455 6.73208 10.8771 6.47173 11.1374C6.21138 11.3978 5.78927 11.3978 5.52892 11.1374L0.862254 6.47075C0.601905 6.2104 0.601905 5.78829 0.862254 5.52794L5.52892 0.861278C5.78927 0.600928 6.21138 0.600928 6.47173 0.861278Z",fill:"#4A5568"})}),Kwe=e=>T.jsxs(Wt,{width:"24",height:"24",viewBox:"0 0 24 24",...e,children:[T.jsx("circle",{cx:"12",cy:"12",r:"7.25",stroke:"#1A202C",strokeWidth:"1.5",fill:"none"}),T.jsx("circle",{cx:"12",cy:"12",r:"4.25",stroke:"#1A202C",strokeWidth:"1.5",fill:"none"}),T.jsx("circle",{cx:"11.9999",cy:"12.1992",r:"6",transform:"rotate(-45 11.9999 12.1992)",stroke:"#1A202C",strokeWidth:"3",strokeDasharray:"1.5 4",fill:"none"})]}),Ywe=e=>T.jsx(Wt,{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",...e,children:T.jsx("path",{d:"M7.77582 0.954246C7.86752 0.768435 8.13248 0.768435 8.22418 0.954246L10.293 5.14607C10.3294 5.21986 10.3998 5.271 10.4812 5.28283L15.1072 5.95502C15.3122 5.98482 15.3941 6.23681 15.2457 6.38145L11.8983 9.64433C11.8394 9.70176 11.8125 9.78451 11.8264 9.86561L12.6167 14.4729C12.6517 14.6771 12.4373 14.8328 12.2539 14.7364L8.11633 12.5612C8.0435 12.5229 7.9565 12.5229 7.88366 12.5612L3.74609 14.7364C3.56268 14.8328 3.34832 14.6771 3.38335 14.4729L4.17356 9.86561C4.18747 9.78451 4.16058 9.70176 4.10166 9.64433L0.754285 6.38145C0.605906 6.23681 0.687783 5.98482 0.892838 5.95502L5.51879 5.28283C5.60022 5.271 5.67061 5.21986 5.70703 5.14607L7.77582 0.954246Z",fill:"#F0C33C"})}),Zwe=e=>T.jsxs(Wt,{width:"34",height:"33",viewBox:"0 0 34 33",fill:"none",...e,children:[T.jsx("path",{d:"M20.2751 12.8273C19.8851 12.4355 19.453 12.0879 18.9864 11.791C17.5096 10.8465 15.7537 10.4343 14.01 10.6227C12.2663 10.8112 10.6395 11.5891 9.39931 12.8273L2.41398 19.8095C1.00127 21.2549 0.215792 23.1978 0.227672 25.2172C0.239551 27.2367 1.04783 29.1702 2.47744 30.5989C3.90705 32.0277 5.84288 32.8366 7.86562 32.8505C9.88836 32.8644 11.8351 32.0821 13.2843 30.6731L19.0518 24.9149C19.1038 24.8634 19.1448 24.8018 19.1725 24.7341C19.2001 24.6663 19.2137 24.5937 19.2126 24.5205C19.2126 24.3763 19.1552 24.2379 19.053 24.1359C18.9508 24.0338 18.8122 23.9765 18.6677 23.9765H18.447C17.2425 23.9793 16.0489 23.7483 14.9325 23.2965C14.8321 23.2544 14.7213 23.2432 14.6145 23.2646C14.5076 23.2859 14.4097 23.3387 14.3332 23.4162L10.1812 27.5615C9.56307 28.179 8.72454 28.526 7.8501 28.5263C6.97565 28.5265 6.13692 28.18 5.51842 27.5628C4.89991 26.9457 4.5523 26.1085 4.55204 25.2355C4.55179 24.3625 4.89891 23.5251 5.51706 22.9076L12.5324 15.9091C12.838 15.6037 13.2009 15.3615 13.6004 15.1962C13.9998 15.0309 14.428 14.9458 14.8604 14.9458C15.2927 14.9458 15.7209 15.0309 16.1203 15.1962C16.5198 15.3615 16.8827 15.6037 17.1883 15.9091C17.6059 16.3019 18.158 16.5207 18.7317 16.5207C19.3055 16.5207 19.8575 16.3019 20.2751 15.9091C20.4781 15.7069 20.6392 15.4668 20.7492 15.2024C20.8591 14.938 20.9157 14.6545 20.9157 14.3682C20.9157 14.0819 20.8591 13.7984 20.7492 13.534C20.6392 13.2696 20.4781 13.0295 20.2751 12.8273Z",fill:"#020059"}),T.jsx("path",{d:"M30.8728 2.24967C30.1588 1.53646 29.3111 0.970692 28.378 0.584685C27.445 0.198679 26.4449 0 25.4349 0C24.4249 0 23.4248 0.198679 22.4918 0.584685C21.5587 0.970692 20.711 1.53646 19.997 2.24967L14.2349 7.99699C14.1552 8.07353 14.1006 8.17251 14.0786 8.28074C14.0566 8.38897 14.068 8.50134 14.1115 8.60291C14.155 8.70447 14.2284 8.79042 14.322 8.84932C14.4155 8.90823 14.5249 8.93729 14.6354 8.93266H14.837C16.0413 8.9314 17.2343 9.16517 18.3487 9.62082C18.4491 9.66205 18.5595 9.67243 18.6658 9.65062C18.7721 9.62882 18.8695 9.57582 18.9454 9.49842L23.0837 5.37493C23.39 5.06935 23.7535 4.82698 24.1536 4.66167C24.5537 4.49636 24.9824 4.41135 25.4154 4.41147C25.8484 4.4116 26.2771 4.49687 26.6771 4.66241C27.0771 4.82795 27.4405 5.07053 27.7465 5.37629C28.0526 5.68204 28.2954 6.04499 28.4609 6.44442C28.6265 6.84384 28.7117 7.27191 28.7115 7.70419C28.7114 8.13647 28.626 8.56449 28.4602 8.96382C28.2944 9.36314 28.0514 9.72596 27.7452 10.0315L22.5933 15.1696L22.5498 15.2185L20.7489 17.0056C20.1309 17.6218 19.2931 17.9679 18.4196 17.9679C17.5461 17.9679 16.7083 17.6218 16.0902 17.0056C15.6721 16.6139 15.1202 16.3959 14.5469 16.3959C13.9735 16.3959 13.4217 16.6139 13.0035 17.0056C12.7988 17.2079 12.6363 17.4487 12.5254 17.7141C12.4145 17.9796 12.3574 18.2643 12.3574 18.5519C12.3574 18.8395 12.4145 19.1242 12.5254 19.3896C12.6363 19.655 12.7988 19.8958 13.0035 20.0982C13.6381 20.7367 14.3817 21.2571 15.1994 21.635C15.3165 21.6894 15.4309 21.7329 15.5453 21.7818C15.6598 21.8308 15.7824 21.8716 15.8968 21.9151C16.0112 21.9586 16.1338 21.9967 16.2482 22.0294L16.5724 22.1164C16.7931 22.1735 17.0138 22.217 17.2372 22.2551C17.508 22.2954 17.7809 22.3208 18.0545 22.3313H18.4713L18.8037 22.3041C18.9236 22.3041 19.0516 22.2714 19.1933 22.2714H19.3813L19.76 22.217L19.9343 22.1844L20.2531 22.1164H20.3239C21.6744 21.78 22.9074 21.0822 23.8902 20.0982L30.8809 13.1187C31.5961 12.405 32.1632 11.5575 32.5499 10.6246C32.9366 9.69183 33.1353 8.69204 33.1345 7.6825C33.1337 6.67295 32.9336 5.67346 32.5455 4.74123C32.1574 3.809 31.589 2.96233 30.8728 2.24967Z",fill:"#F92B4E"}),T.jsx("path",{d:"M20.2777 20.0795C20.6702 19.6902 21.0183 19.2588 21.3157 18.793C22.2617 17.3185 22.6746 15.5655 22.4858 13.8246C22.297 12.0837 21.5179 10.4595 20.2777 9.22138L13.2869 2.24735C11.8391 0.836935 9.89315 0.0527254 7.8704 0.0645857C5.84765 0.0764461 3.91101 0.883421 2.47996 2.31072C1.04892 3.73801 0.238698 5.67071 0.224791 7.69017C0.210885 9.70963 0.994415 11.6533 2.40567 13.1001L8.1732 18.8583C8.24925 18.9371 8.34735 18.9912 8.45467 19.0135C8.562 19.0358 8.67356 19.0252 8.77479 18.9832C8.87602 18.9412 8.96219 18.8697 9.02207 18.778C9.08194 18.6863 9.11272 18.5787 9.11039 18.4693V18.249C9.10764 17.0464 9.33896 15.8547 9.79149 14.7402C9.83313 14.6403 9.84396 14.5302 9.82261 14.4241C9.80126 14.318 9.74868 14.2207 9.67162 14.1445L5.51964 10.002C4.9282 9.37906 4.60368 8.55022 4.61518 7.69195C4.62667 6.83369 4.97328 6.01381 5.5812 5.40687C6.18913 4.79993 7.01034 4.45388 7.86999 4.4424C8.72965 4.43092 9.55984 4.75492 10.1838 5.34541L17.1909 12.3494C17.4968 12.6545 17.7394 13.0168 17.905 13.4156C18.0705 13.8144 18.1557 14.2419 18.1557 14.6736C18.1557 15.1053 18.0705 15.5327 17.905 15.9315C17.7394 16.3303 17.4968 16.6927 17.1909 16.9978C16.7987 17.4153 16.5803 17.9662 16.5803 18.5387C16.5803 19.1111 16.7987 19.6621 17.1909 20.0795C17.3934 20.2823 17.6339 20.4431 17.8988 20.5529C18.1636 20.6626 18.4476 20.7191 18.7343 20.7191C19.021 20.7191 19.305 20.6626 19.5698 20.5529C19.8347 20.4431 20.0752 20.2823 20.2777 20.0795Z",fill:"#020059"}),T.jsx("path",{d:"M30.8731 30.6592C31.5875 29.9464 32.1542 29.1 32.5408 28.1685C32.9274 27.2369 33.1264 26.2385 33.1264 25.2301C33.1264 24.2218 32.9274 23.2233 32.5408 22.2918C32.1542 21.3602 31.5875 20.5139 30.8731 19.801L25.1192 14.0483C25.0427 13.9676 24.9434 13.9123 24.8344 13.8897C24.7255 13.8671 24.6123 13.8783 24.51 13.9219C24.4076 13.9654 24.3211 14.0391 24.262 14.1332C24.2029 14.2273 24.174 14.3372 24.1793 14.4481V14.6494C24.1815 15.8516 23.9483 17.0426 23.4927 18.1555C23.4511 18.2554 23.4403 18.3654 23.4616 18.4716C23.483 18.5777 23.5356 18.675 23.6126 18.7511L27.7428 22.8828C28.0489 23.1885 28.2916 23.5515 28.4572 23.9509C28.6228 24.3503 28.7079 24.7784 28.7078 25.2107C28.7077 25.643 28.6223 26.071 28.4565 26.4703C28.2907 26.8696 28.0477 27.2324 27.7414 27.538C27.4352 27.8436 27.0716 28.086 26.6716 28.2513C26.2715 28.4166 25.8427 28.5016 25.4098 28.5015C24.9768 28.5014 24.5481 28.4161 24.1481 28.2505C23.7481 28.085 23.3847 27.8424 23.0786 27.5367L17.9323 22.3932L17.8723 22.3497L16.0824 20.5518C15.4652 19.9347 15.1185 19.0983 15.1185 18.2262C15.1185 17.3541 15.4652 16.5177 16.0824 15.9006C16.4747 15.4831 16.693 14.9322 16.693 14.3597C16.693 13.7873 16.4747 13.2363 16.0824 12.8189C15.8797 12.6145 15.6385 12.4523 15.3727 12.3415C15.1068 12.2308 14.8216 12.1738 14.5336 12.1738C14.2455 12.1738 13.9604 12.2308 13.6945 12.3415C13.4287 12.4523 13.1874 12.6145 12.9848 12.8189C12.3452 13.4524 11.8239 14.1948 11.4455 15.0112C11.391 15.1281 11.3474 15.2424 11.2984 15.3566C11.2493 15.4708 11.2112 15.5932 11.1649 15.7075C11.1186 15.8217 11.0831 15.9441 11.0505 16.0584L10.9633 16.382C10.9088 16.6023 10.8652 16.8227 10.8243 17.0457C10.7862 17.3177 10.7589 17.5897 10.748 17.8617V18.2779L10.7889 18.6097C10.7889 18.7294 10.8216 18.8572 10.8216 18.9986V19.1863L10.8788 19.5644L10.9115 19.7385L10.9769 20.0567V20.1274C11.315 21.4752 12.0138 22.7059 12.9984 23.6879L19.9974 30.6565C21.4393 32.0966 23.3951 32.9059 25.4347 32.9064C27.4742 32.9069 29.4305 32.0986 30.8731 30.6592Z",fill:"#F92B4E"})]}),Qwe=e=>T.jsxs(Wt,{height:"43",width:"158",viewBox:"50 0 158 43",...e,children:[T.jsx("path",{d:"M51.8193 39.1282V33.457H52.762V35.6935C52.9169 35.5278 53.0925 35.3969 53.2887 35.3004C53.4844 35.2011 53.7134 35.1515 53.9756 35.1515C54.1893 35.1515 54.384 35.1958 54.5595 35.2851C54.7374 35.3713 54.89 35.4988 55.0175 35.6667C55.1473 35.8347 55.2465 36.0419 55.3152 36.2888C55.3862 36.5354 55.422 36.8193 55.422 37.1399C55.422 37.4322 55.3824 37.7032 55.3037 37.9528C55.2247 38.202 55.1114 38.4184 54.9641 38.6016C54.819 38.7848 54.642 38.9283 54.4336 39.0328C54.2275 39.1343 53.9958 39.1855 53.739 39.1855C53.6192 39.1855 53.51 39.1725 53.4108 39.1473C53.3116 39.1244 53.2211 39.0912 53.1398 39.0481C53.0582 39.0046 52.9818 38.9527 52.9108 38.8916C52.8421 38.8279 52.7757 38.758 52.7124 38.6817L52.6704 38.9451C52.6551 39.0111 52.6284 39.058 52.5903 39.0863C52.5544 39.1141 52.5048 39.1282 52.4414 39.1282H51.8193ZM53.6512 35.8843C53.4551 35.8843 53.2871 35.9263 53.1475 36.0102C53.0101 36.0915 52.8814 36.2071 52.762 36.3575V38.1131C52.8689 38.2451 52.9845 38.3382 53.1093 38.3917C53.2364 38.4424 53.3738 38.468 53.5215 38.468C53.6638 38.468 53.7924 38.4413 53.9069 38.3879C54.0214 38.3344 54.118 38.2528 54.197 38.1436C54.2783 38.0341 54.3405 37.8967 54.384 37.7314C54.4271 37.5635 54.4489 37.3662 54.4489 37.1399C54.4489 36.9109 54.4298 36.7174 54.3916 36.5598C54.3557 36.3995 54.3038 36.2697 54.2351 36.1705C54.1664 36.0713 54.0825 35.9988 53.9832 35.953C53.8863 35.9072 53.7756 35.8843 53.6512 35.8843ZM57.2707 40.2045C57.2429 40.2705 57.2058 40.3201 57.16 40.3533C57.1169 40.3888 57.0494 40.4067 56.9578 40.4067H56.2556L56.9883 38.8382L55.4045 35.2126H56.2288C56.3052 35.2126 56.3636 35.2301 56.4044 35.266C56.4452 35.3015 56.4758 35.3423 56.496 35.3881L57.3318 37.4185C57.3596 37.4845 57.3841 37.5532 57.4043 37.6246C57.4245 37.6956 57.4425 37.7669 57.4577 37.8383C57.478 37.7642 57.4997 37.6933 57.5226 37.6246C57.5482 37.5559 57.5749 37.4856 57.6027 37.4147L58.3889 35.3881C58.4092 35.337 58.4424 35.295 58.4882 35.2622C58.5366 35.229 58.5901 35.2126 58.6484 35.2126H59.4041L57.2707 40.2045ZM66.4687 36.369C66.4687 36.7735 66.4011 37.1487 66.2664 37.4948C66.1317 37.8383 65.942 38.136 65.6978 38.3879C65.4535 38.6397 65.1597 38.8367 64.8162 38.9794C64.4727 39.1191 64.0922 39.1893 63.6751 39.1893C63.2579 39.1893 62.8763 39.1191 62.5301 38.9794C62.1867 38.8367 61.8916 38.6397 61.6447 38.3879C61.4005 38.136 61.2108 37.8383 61.0761 37.4948C60.9414 37.1487 60.8738 36.7735 60.8738 36.369C60.8738 35.9644 60.9414 35.5904 61.0761 35.2469C61.2108 34.9008 61.4005 34.602 61.6447 34.3501C61.8916 34.0982 62.1867 33.902 62.5301 33.7623C62.8763 33.6196 63.2579 33.5486 63.6751 33.5486C64.0922 33.5486 64.4727 33.6196 64.8162 33.7623C65.1597 33.9047 65.4535 34.102 65.6978 34.3539C65.942 34.6031 66.1317 34.9008 66.2664 35.2469C66.4011 35.5904 66.4687 35.9644 66.4687 36.369ZM65.4153 36.369C65.4153 36.0659 65.3745 35.795 65.2932 35.5561C65.2142 35.3141 65.0997 35.1095 64.9497 34.9416C64.7998 34.7737 64.6166 34.6451 64.4002 34.5562C64.1865 34.4669 63.9449 34.4226 63.6751 34.4226C63.4052 34.4226 63.1625 34.4669 62.9461 34.5562C62.7297 34.6451 62.5454 34.7737 62.3927 34.9416C62.2428 35.1095 62.1267 35.3141 62.0454 35.5561C61.9642 35.795 61.9233 36.0659 61.9233 36.369C61.9233 36.6716 61.9642 36.9437 62.0454 37.1857C62.1267 37.4246 62.2428 37.6284 62.3927 37.7963C62.5454 37.9616 62.7297 38.0886 62.9461 38.1779C63.1625 38.2669 63.4052 38.3115 63.6751 38.3115C63.9449 38.3115 64.1865 38.2669 64.4002 38.1779C64.6166 38.0886 64.7998 37.9616 64.9497 37.7963C65.0997 37.6284 65.2142 37.4246 65.2932 37.1857C65.3745 36.9437 65.4153 36.6716 65.4153 36.369ZM67.074 39.1282V35.2126H67.6502C67.7724 35.2126 67.8525 35.2698 67.8907 35.3843L67.9556 35.6935C68.0346 35.6118 68.1174 35.5381 68.2036 35.4721C68.2929 35.4057 68.3857 35.3485 68.4822 35.3004C68.5815 35.2519 68.6872 35.2149 68.799 35.1897C68.9112 35.1641 69.0333 35.1515 69.1654 35.1515C69.3791 35.1515 69.5688 35.1882 69.734 35.2622C69.8996 35.3332 70.037 35.4351 70.1462 35.5675C70.2584 35.6973 70.3424 35.8537 70.3981 36.0369C70.4568 36.2174 70.4858 36.4171 70.4858 36.6361V39.1282H69.5432V36.6361C69.5432 36.3968 69.4875 36.2125 69.3753 36.0827C69.2661 35.9503 69.1005 35.8843 68.8791 35.8843C68.7166 35.8843 68.5639 35.9209 68.4212 35.995C68.2788 36.0686 68.1441 36.169 68.0166 36.2965V39.1282H67.074ZM72.8776 35.1515C73.1245 35.1515 73.3508 35.1908 73.5569 35.2698C73.7657 35.3485 73.9451 35.4645 74.095 35.6171C74.2454 35.7671 74.3622 35.953 74.4462 36.1743C74.5301 36.393 74.5721 36.6437 74.5721 36.9262C74.5721 36.9971 74.5683 37.0571 74.5606 37.1055C74.5557 37.1513 74.5442 37.188 74.5263 37.2162C74.511 37.2414 74.4897 37.2605 74.4614 37.2735C74.4336 37.2834 74.3981 37.2887 74.3546 37.2887H71.935C71.9632 37.6906 72.0712 37.9856 72.2593 38.1741C72.4479 38.3623 72.6971 38.4566 73.0074 38.4566C73.16 38.4566 73.2913 38.4386 73.4005 38.4031C73.5127 38.3672 73.6092 38.3279 73.6905 38.2848C73.7745 38.2413 73.847 38.202 73.908 38.1665C73.9718 38.1306 74.0328 38.1131 74.0912 38.1131C74.1294 38.1131 74.1626 38.1207 74.1905 38.136C74.2187 38.1512 74.2427 38.1726 74.263 38.2008L74.5378 38.5443C74.4336 38.6665 74.3164 38.7695 74.1866 38.8535C74.0569 38.9347 73.921 39.0008 73.7783 39.0519C73.6386 39.1 73.4947 39.1343 73.347 39.155C73.202 39.1752 73.0608 39.1855 72.9234 39.1855C72.6513 39.1855 72.3983 39.1408 72.1639 39.0519C71.93 38.9603 71.7266 38.8267 71.5533 38.6512C71.3804 38.473 71.2442 38.2543 71.1449 37.9948C71.0457 37.7326 70.9961 37.4299 70.9961 37.0864C70.9961 36.8193 71.0396 36.5686 71.1259 36.3346C71.2125 36.098 71.3358 35.8931 71.4961 35.7202C71.659 35.5446 71.8563 35.4057 72.0876 35.3042C72.3219 35.2023 72.5853 35.1515 72.8776 35.1515ZM72.8967 35.827C72.6219 35.827 72.407 35.9045 72.2517 36.0598C72.0968 36.2148 71.9975 36.435 71.954 36.7201H73.7248C73.7248 36.598 73.7084 36.4835 73.6752 36.3766C73.6424 36.2671 73.5913 36.1717 73.5226 36.0904C73.4539 36.0087 73.3676 35.9453 73.2631 35.8995C73.1589 35.8511 73.0367 35.827 72.8967 35.827ZM79.0312 37.8268C79.0873 37.8268 79.1354 37.8482 79.1762 37.8917L79.5808 38.3306C79.3568 38.6077 79.0808 38.8203 78.7526 38.968C78.4271 39.1153 78.0351 39.1893 77.5772 39.1893C77.1677 39.1893 76.7986 39.1191 76.4704 38.9794C76.1448 38.8393 75.8663 38.6447 75.6346 38.3955C75.4029 38.1459 75.2251 37.8482 75.1003 37.5024C74.9782 37.1563 74.9171 36.7785 74.9171 36.369C74.9171 35.9541 74.9858 35.5751 75.1232 35.2317C75.2606 34.8855 75.4541 34.5878 75.7033 34.3386C75.9525 34.089 76.2502 33.8959 76.5963 33.7585C76.9448 33.6185 77.3291 33.5486 77.7489 33.5486C78.1584 33.5486 78.516 33.6147 78.8213 33.7471C79.1293 33.8768 79.3926 34.0497 79.6113 34.2661L79.2678 34.7432C79.2476 34.7737 79.2209 34.8004 79.1877 34.8233C79.1572 34.8462 79.114 34.8577 79.0579 34.8577C78.9995 34.8577 78.9396 34.8348 78.8786 34.789C78.8175 34.7432 78.74 34.6936 78.6457 34.6401C78.5515 34.5867 78.432 34.5371 78.287 34.4913C78.1446 34.4455 77.9626 34.4226 77.7413 34.4226C77.4817 34.4226 77.2425 34.4684 77.0238 34.56C76.8074 34.6489 76.6204 34.7775 76.4628 34.9454C76.3074 35.1134 76.1853 35.3179 76.0964 35.5599C76.0097 35.7988 75.9666 36.0686 75.9666 36.369C75.9666 36.6792 76.0097 36.9552 76.0964 37.1971C76.1853 37.4387 76.3051 37.6421 76.4551 37.8078C76.6051 37.973 76.7822 38.1001 76.9856 38.1894C77.189 38.2756 77.4081 38.3192 77.642 38.3192C77.7821 38.3192 77.908 38.3115 78.0199 38.2963C78.1344 38.281 78.2385 38.2566 78.3328 38.2237C78.4294 38.1905 78.5198 38.1486 78.6038 38.0978C78.6904 38.0444 78.7755 37.9795 78.8595 37.9032C78.885 37.8803 78.9118 37.8623 78.9396 37.8497C78.9675 37.8345 78.998 37.8268 79.0312 37.8268ZM81.8241 35.1515C82.1168 35.1515 82.3813 35.1985 82.6179 35.2927C82.8572 35.3866 83.0606 35.5202 83.2285 35.6935C83.3964 35.8663 83.5262 36.0774 83.6178 36.327C83.7094 36.5762 83.7552 36.8548 83.7552 37.1628C83.7552 37.4731 83.7094 37.7528 83.6178 38.0024C83.5262 38.2516 83.3964 38.4642 83.2285 38.6397C83.0606 38.8153 82.8572 38.95 82.6179 39.0443C82.3813 39.1382 82.1168 39.1855 81.8241 39.1855C81.5313 39.1855 81.2657 39.1382 81.0264 39.0443C80.7871 38.95 80.5826 38.8153 80.412 38.6397C80.2441 38.4642 80.1132 38.2516 80.0189 38.0024C79.9273 37.7528 79.8815 37.4731 79.8815 37.1628C79.8815 36.8548 79.9273 36.5762 80.0189 36.327C80.1132 36.0774 80.2441 35.8663 80.412 35.6935C80.5826 35.5202 80.7871 35.3866 81.0264 35.2927C81.2657 35.1985 81.5313 35.1515 81.8241 35.1515ZM81.8241 38.4604C82.1496 38.4604 82.39 38.3508 82.5454 38.1322C82.703 37.9131 82.782 37.5925 82.782 37.1704C82.782 36.7479 82.703 36.4262 82.5454 36.2049C82.39 35.9835 82.1496 35.8728 81.8241 35.8728C81.4932 35.8728 81.2489 35.9847 81.0913 36.2087C80.9337 36.43 80.8547 36.7506 80.8547 37.1704C80.8547 37.5902 80.9337 37.9108 81.0913 38.1322C81.2489 38.3508 81.4932 38.4604 81.8241 38.4604ZM84.3379 39.1282V35.2126H84.9142C85.0364 35.2126 85.1165 35.2698 85.1547 35.3843L85.2157 35.6744C85.2844 35.598 85.3558 35.5278 85.4294 35.4645C85.5058 35.4007 85.5859 35.3462 85.6699 35.3004C85.7565 35.2546 85.8481 35.2187 85.9447 35.1935C86.0439 35.1653 86.1523 35.1515 86.2691 35.1515C86.516 35.1515 86.7183 35.2187 86.8759 35.3538C87.0362 35.4858 87.156 35.6629 87.2346 35.8843C87.2957 35.7545 87.372 35.6438 87.4636 35.5523C87.5552 35.458 87.656 35.3817 87.7651 35.3233C87.8746 35.2645 87.9903 35.2214 88.1124 35.1935C88.2372 35.1653 88.362 35.1515 88.4864 35.1515C88.7028 35.1515 88.8948 35.1843 89.0627 35.2507C89.2306 35.3168 89.3718 35.4133 89.4863 35.5408C89.6008 35.6679 89.6874 35.8232 89.7458 36.0064C89.8069 36.1896 89.8374 36.3995 89.8374 36.6361V39.1282H88.8948V36.6361C88.8948 36.3865 88.8402 36.1995 88.7307 36.0751C88.6215 35.9476 88.4612 35.8843 88.2498 35.8843C88.1532 35.8843 88.0628 35.9007 87.9788 35.9339C87.8975 35.9667 87.825 36.0152 87.7613 36.0789C87.7002 36.14 87.6521 36.2174 87.6163 36.3117C87.5808 36.4056 87.5628 36.514 87.5628 36.6361V39.1282H86.6164V36.6361C86.6164 36.3739 86.5629 36.1831 86.4561 36.0637C86.3519 35.9438 86.1965 35.8843 85.9905 35.8843C85.8557 35.8843 85.7286 35.9186 85.6088 35.9873C85.492 36.0533 85.3825 36.1449 85.2806 36.2621V39.1282H84.3379ZM90.6106 39.1282V35.2126H91.1869C91.309 35.2126 91.3892 35.2698 91.4273 35.3843L91.4884 35.6744C91.5571 35.598 91.6285 35.5278 91.7021 35.4645C91.7784 35.4007 91.8586 35.3462 91.9426 35.3004C92.0292 35.2546 92.1208 35.2187 92.2173 35.1935C92.3166 35.1653 92.4246 35.1515 92.5417 35.1515C92.7887 35.1515 92.9909 35.2187 93.1485 35.3538C93.3088 35.4858 93.4283 35.6629 93.5073 35.8843C93.5684 35.7545 93.6447 35.6438 93.7363 35.5523C93.8279 35.458 93.9282 35.3817 94.0378 35.3233C94.1473 35.2645 94.2629 35.2214 94.3851 35.1935C94.5099 35.1653 94.6343 35.1515 94.7591 35.1515C94.9755 35.1515 95.1674 35.1843 95.3354 35.2507C95.5033 35.3168 95.6445 35.4133 95.759 35.5408C95.8735 35.6679 95.9601 35.8232 96.0185 36.0064C96.0796 36.1896 96.1101 36.3995 96.1101 36.6361V39.1282H95.1674V36.6361C95.1674 36.3865 95.1129 36.1995 95.0033 36.0751C94.8938 35.9476 94.7335 35.8843 94.5225 35.8843C94.4259 35.8843 94.3355 35.9007 94.2515 35.9339C94.1702 35.9667 94.0977 36.0152 94.034 36.0789C93.9729 36.14 93.9244 36.2174 93.8889 36.3117C93.8534 36.4056 93.8355 36.514 93.8355 36.6361V39.1282H92.889V36.6361C92.889 36.3739 92.8356 36.1831 92.7287 36.0637C92.6245 35.9438 92.4692 35.8843 92.2631 35.8843C92.1284 35.8843 92.0009 35.9186 91.8815 35.9873C91.7643 36.0533 91.6552 36.1449 91.5533 36.2621V39.1282H90.6106ZM98.5015 35.1515C98.7484 35.1515 98.9747 35.1908 99.1808 35.2698C99.3895 35.3485 99.5689 35.4645 99.7189 35.6171C99.8689 35.7671 99.9861 35.953 100.07 36.1743C100.154 36.393 100.196 36.6437 100.196 36.9262C100.196 36.9971 100.192 37.0571 100.185 37.1055C100.18 37.1513 100.168 37.188 100.15 37.2162C100.135 37.2414 100.113 37.2605 100.085 37.2735C100.057 37.2834 100.022 37.2887 99.9784 37.2887H97.5588C97.5867 37.6906 97.6951 37.9856 97.8832 38.1741C98.0714 38.3623 98.3209 38.4566 98.6312 38.4566C98.7839 38.4566 98.9148 38.4386 99.0243 38.4031C99.1361 38.3672 99.2331 38.3279 99.3144 38.2848C99.3983 38.2413 99.4708 38.202 99.5319 38.1665C99.5956 38.1306 99.6567 38.1131 99.7151 38.1131C99.7533 38.1131 99.7865 38.1207 99.8143 38.136C99.8422 38.1512 99.8666 38.1726 99.8868 38.2008L100.162 38.5443C100.057 38.6665 99.9403 38.7695 99.8105 38.8535C99.6807 38.9347 99.5445 39.0008 99.4021 39.0519C99.2621 39.1 99.1186 39.1343 98.9709 39.155C98.8259 39.1752 98.6847 39.1855 98.5473 39.1855C98.2751 39.1855 98.0217 39.1408 97.7878 39.0519C97.5538 38.9603 97.35 38.8267 97.1772 38.6512C97.0043 38.473 96.868 38.2543 96.7688 37.9948C96.6696 37.7326 96.62 37.4299 96.62 37.0864C96.62 36.8193 96.6631 36.5686 96.7497 36.3346C96.8364 36.098 96.9596 35.8931 97.1199 35.7202C97.2829 35.5446 97.4798 35.4057 97.7115 35.3042C97.9454 35.2023 98.2087 35.1515 98.5015 35.1515ZM98.5205 35.827C98.2458 35.827 98.0309 35.9045 97.8756 36.0598C97.7202 36.2148 97.621 36.435 97.5779 36.7201H99.3487C99.3487 36.598 99.3323 36.4835 99.2991 36.3766C99.2659 36.2671 99.2151 36.1717 99.1464 36.0904C99.0777 36.0087 98.9911 35.9453 98.8869 35.8995C98.7827 35.8511 98.6606 35.827 98.5205 35.827ZM100.808 39.1282V35.2126H101.361C101.458 35.2126 101.526 35.2301 101.564 35.266C101.602 35.3015 101.627 35.3626 101.64 35.4492L101.697 35.9224C101.837 35.6805 102.001 35.4897 102.19 35.35C102.378 35.2099 102.589 35.1401 102.823 35.1401C103.016 35.1401 103.177 35.1843 103.304 35.2736L103.182 35.9797C103.174 36.0255 103.158 36.0583 103.132 36.0789C103.107 36.0965 103.072 36.1056 103.029 36.1056C102.991 36.1056 102.939 36.0965 102.873 36.0789C102.806 36.061 102.719 36.0522 102.609 36.0522C102.413 36.0522 102.245 36.1068 102.106 36.2163C101.966 36.3232 101.847 36.4808 101.751 36.6895V39.1282H100.808ZM106.523 36.0408C106.495 36.0762 106.467 36.1041 106.439 36.1247C106.413 36.1449 106.375 36.1552 106.324 36.1552C106.276 36.1552 106.229 36.1411 106.183 36.1133C106.137 36.0827 106.082 36.0495 106.019 36.014C105.955 35.9759 105.879 35.9427 105.79 35.9148C105.703 35.8843 105.595 35.869 105.466 35.869C105.3 35.869 105.155 35.8995 105.031 35.9606C104.906 36.019 104.802 36.1041 104.718 36.2163C104.636 36.3281 104.575 36.4644 104.534 36.6247C104.494 36.7823 104.473 36.9617 104.473 37.1628C104.473 37.3712 104.495 37.557 104.538 37.72C104.584 37.8826 104.649 38.0199 104.733 38.1322C104.817 38.2413 104.918 38.3253 105.038 38.384C105.158 38.4398 105.292 38.468 105.443 38.468C105.593 38.468 105.714 38.4501 105.805 38.4146C105.899 38.3764 105.978 38.3356 106.042 38.2924C106.105 38.2466 106.16 38.2058 106.206 38.1703C106.254 38.1322 106.308 38.1131 106.366 38.1131C106.443 38.1131 106.5 38.1421 106.538 38.2008L106.809 38.5443C106.704 38.6665 106.592 38.7695 106.469 38.8535C106.347 38.9347 106.22 39.0008 106.088 39.0519C105.958 39.1 105.823 39.1343 105.683 39.155C105.543 39.1752 105.405 39.1855 105.267 39.1855C105.025 39.1855 104.798 39.1408 104.584 39.0519C104.37 38.9603 104.183 38.8279 104.023 38.655C103.865 38.4817 103.739 38.2707 103.645 38.0215C103.554 37.7696 103.508 37.4834 103.508 37.1628C103.508 36.875 103.548 36.6094 103.63 36.3651C103.714 36.1182 103.836 35.9056 103.996 35.7278C104.157 35.5469 104.355 35.4057 104.592 35.3042C104.828 35.2023 105.1 35.1515 105.408 35.1515C105.701 35.1515 105.956 35.1985 106.176 35.2927C106.397 35.3866 106.595 35.5217 106.771 35.6973L106.523 36.0408ZM108.874 35.1515C109.121 35.1515 109.347 35.1908 109.553 35.2698C109.762 35.3485 109.942 35.4645 110.092 35.6171C110.242 35.7671 110.359 35.953 110.443 36.1743C110.527 36.393 110.569 36.6437 110.569 36.9262C110.569 36.9971 110.565 37.0571 110.557 37.1055C110.552 37.1513 110.541 37.188 110.523 37.2162C110.508 37.2414 110.486 37.2605 110.458 37.2735C110.43 37.2834 110.394 37.2887 110.351 37.2887H107.931C107.959 37.6906 108.068 37.9856 108.256 38.1741C108.444 38.3623 108.694 38.4566 109.004 38.4566C109.157 38.4566 109.287 38.4386 109.397 38.4031C109.509 38.3672 109.606 38.3279 109.687 38.2848C109.771 38.2413 109.843 38.202 109.905 38.1665C109.968 38.1306 110.029 38.1131 110.088 38.1131C110.126 38.1131 110.159 38.1207 110.187 38.136C110.215 38.1512 110.239 38.1726 110.259 38.2008L110.534 38.5443C110.43 38.6665 110.313 38.7695 110.183 38.8535C110.053 38.9347 109.917 39.0008 109.775 39.0519C109.635 39.1 109.491 39.1343 109.344 39.155C109.199 39.1752 109.057 39.1855 108.92 39.1855C108.648 39.1855 108.394 39.1408 108.16 39.0519C107.927 38.9603 107.723 38.8267 107.55 38.6512C107.377 38.473 107.241 38.2543 107.141 37.9948C107.042 37.7326 106.993 37.4299 106.993 37.0864C106.993 36.8193 107.036 36.5686 107.122 36.3346C107.209 36.098 107.332 35.8931 107.493 35.7202C107.656 35.5446 107.852 35.4057 108.084 35.3042C108.318 35.2023 108.581 35.1515 108.874 35.1515ZM108.893 35.827C108.618 35.827 108.404 35.9045 108.248 36.0598C108.093 36.2148 107.994 36.435 107.951 36.7201H109.721C109.721 36.598 109.705 36.4835 109.672 36.3766C109.639 36.2671 109.588 36.1717 109.519 36.0904C109.45 36.0087 109.364 35.9453 109.26 35.8995C109.155 35.8511 109.033 35.827 108.893 35.827Z",fill:"black"}),T.jsx("path",{d:"M65.643 8.39648V12.2887H60.8332V25.952H55.8978V12.2887H51.1406V8.39648H65.643Z",fill:"#020059"}),T.jsx("path",{d:"M74.194 12.5785C74.9836 12.0787 75.8233 11.8301 76.7102 11.8301V17.0691H75.3573C74.3146 17.0691 73.5292 17.2805 73.009 17.7057C72.4866 18.1308 72.2263 18.8668 72.2263 19.9136V25.9509H67.5508V11.9544H72.2263V14.5752C72.7442 13.7422 73.4017 13.0758 74.194 12.5785Z",fill:"#020059"}),T.jsx("path",{d:"M86.5426 12.4544C87.3173 12.873 87.8925 13.4483 88.2653 14.1852V11.999H93.5026V25.7795H88.2653V23.5934C87.8925 24.33 87.3173 24.9078 86.5426 25.3242C85.7679 25.7428 84.8546 25.9508 83.8055 25.9508C82.6125 25.9508 81.5343 25.6692 80.573 25.104C79.6116 24.5384 78.8529 23.7205 78.3018 22.6483C77.7507 21.5761 77.4736 20.3177 77.4736 18.8782C77.4736 17.4363 77.7507 16.1853 78.3018 15.1204C78.8529 14.0554 79.6116 13.2402 80.573 12.6772C81.5343 12.1116 82.6125 11.8301 83.8055 11.8301C84.8546 11.8276 85.7679 12.0382 86.5426 12.4544ZM83.5498 16.8022C83.041 17.3016 82.7884 17.9945 82.7884 18.8782C82.7884 19.7791 83.041 20.4793 83.5498 20.9787C84.0581 21.4781 84.7214 21.7278 85.5416 21.7278C86.3243 21.7278 86.9739 21.4732 87.4906 20.9665C88.007 20.4597 88.2653 19.762 88.2653 18.8782C88.2653 18.0116 88.007 17.3237 87.4906 16.8145C86.9739 16.3077 86.3243 16.0531 85.5416 16.0531C84.7214 16.0531 84.0581 16.3028 83.5498 16.8022Z",fill:"#020059"}),T.jsx("path",{d:"M108.96 13.4389C109.85 14.5105 110.295 15.9701 110.295 17.8176V25.9509H105.563V18.4417C105.563 17.6261 105.357 16.9895 104.944 16.532C104.53 16.0745 103.977 15.8458 103.283 15.8458C102.572 15.8458 102.003 16.082 101.585 16.5569C101.165 17.0318 100.954 17.6833 100.954 18.5163V25.9509H96.1738V11.9544H100.954V14.2992C101.344 13.5508 101.909 12.9515 102.651 12.504C103.396 12.0539 104.269 11.8301 105.273 11.8301C106.842 11.8276 108.07 12.3647 108.96 13.4389Z",fill:"#020059"}),T.jsx("path",{d:"M122.812 13.1567C123.955 14.0404 124.672 15.2128 124.967 16.6692H120.192C120.071 16.1772 119.825 15.81 119.453 15.5628C119.08 15.3181 118.625 15.1932 118.09 15.1932C117.709 15.1932 117.42 15.2715 117.221 15.4258C117.021 15.5824 116.923 15.7978 116.923 16.0768C116.923 16.4195 117.135 16.679 117.559 16.8503C117.983 17.0216 118.679 17.215 119.649 17.428C120.774 17.6581 121.703 17.9028 122.44 18.1647C123.175 18.4266 123.816 18.8525 124.361 19.4424C124.907 20.0323 125.179 20.8254 125.179 21.824C125.179 22.6269 124.946 23.3393 124.478 23.961C124.01 24.5827 123.332 25.0696 122.44 25.4223C121.548 25.7745 120.498 25.9509 119.287 25.9509C117.247 25.9509 115.62 25.5322 114.409 24.6975C113.199 23.8629 112.462 22.6685 112.203 21.1118H117.107C117.177 21.6184 117.404 21.9954 117.795 22.2426C118.185 22.4874 118.672 22.6122 119.261 22.6122C119.66 22.6122 119.962 22.5314 120.169 22.3674C120.376 22.2034 120.479 21.9905 120.479 21.7286C120.479 21.3345 120.26 21.0481 119.817 20.8694C119.375 20.6883 118.672 20.5096 117.702 20.3285C116.595 20.1155 115.687 19.883 114.976 19.6284C114.267 19.3739 113.649 18.9651 113.121 18.3997C112.594 17.8343 112.33 17.0535 112.33 16.0548C112.33 14.8114 112.839 13.7956 113.861 13.0099C114.883 12.2242 116.336 11.8301 118.222 11.8301C120.138 11.8301 121.669 12.2731 122.812 13.1567Z",fill:"#020059"}),T.jsx("path",{d:"M138.167 13.3161C139.375 14.3076 140.134 15.6785 140.444 17.4314H135.349C135.235 16.9565 135.027 16.5917 134.725 16.3371C134.422 16.0825 134.034 15.9552 133.56 15.9552C132.972 15.9552 132.496 16.2049 132.127 16.7043C131.758 17.2037 131.575 17.9283 131.575 18.8783C131.575 19.8453 131.758 20.5723 132.127 21.0644C132.496 21.5565 132.972 21.8013 133.56 21.8013C134.034 21.8013 134.422 21.674 134.725 21.4194C135.027 21.1648 135.235 20.8025 135.349 20.3251H140.444C140.134 22.0779 139.375 23.4538 138.167 24.4525C136.958 25.4513 135.464 25.9509 133.685 25.9509C132.313 25.9509 131.099 25.6692 130.047 25.104C128.995 24.5384 128.172 23.7205 127.586 22.6483C126.998 21.576 126.705 20.3177 126.705 18.8783C126.705 17.4363 126.998 16.1853 127.586 15.1204C128.175 14.0554 129 13.2402 130.059 12.6771C131.121 12.1116 132.33 11.8301 133.685 11.8301C135.464 11.8301 136.958 12.3271 138.167 13.3161Z",fill:"#F92B4E"}),T.jsx("path",{d:"M146.456 11.8301L149.541 19.637L152.396 11.8301H158L148.872 32.4388H143.319L146.843 25.1796L140.826 11.8301H146.456Z",fill:"#F92B4E"})]}),Xwe=e=>T.jsx(Wt,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:T.jsx("circle",{cx:"10",cy:"10",r:"3",fill:"#0A855C"})}),Ez=({mode:e,onClick:t})=>{const n=qg();return T.jsx(fi,{align:"center",gap:".5rem",w:"fit-content",cursor:"pointer",onClick:()=>t||n(kr.ROUTES.HOME),children:T.jsxs(fi,{alignItems:"center",w:"full",gap:"8px",children:[["full","logo"].includes(e)&&T.jsx(Zwe,{}),["full","text"].includes(e)&&T.jsx(Qwe,{})]})})};var Dd=(e=>(e.DOES_NOT_MEET_MY_NEEDS="Does not meet my needs",e.TOO_DIFFICULT_TO_USE="Too difficult to use",e.NO_NEEDED_ANYMORE="No needed anymore",e.TOO_EXPENSIVE="Too expensive",e.OTHER="Other",e))(Dd||{});const Jwe="free",exe="starter",Yl={FREE:Jwe,STARTER:exe};Dd.DOES_NOT_MEET_MY_NEEDS,Dd.TOO_DIFFICULT_TO_USE,Dd.NO_NEEDED_ANYMORE,Dd.TOO_EXPENSIVE,Dd.OTHER;const txe="client.subscription.success",nxe="client.subscription.cancel",rxe="client.deactivated",ixe={CLIENT_SUBSCRIPTION_SUCCESS:txe,CLIENT_SUBSCRIPTION_CANCEL:nxe},axe={CLIENT_DEACTIVATED_PLUGIN:rxe},oxe={subscriptionChannels:ixe,pluginStatusChannels:axe},Qo=async({adminRedirectUrl:e="",queryString:t={}}={})=>{const n=J$,r=await bz();if(!r)return Promise.reject("Token is not found");const i={domain:df.getAuthCookies().domain,access_token:r,adminRedirectUrl:e},a=Z6.stringify({...i,...t}),o=`${n}/auth/login?${a}`;window.open(o,"_blank")},sxe=()=>{var r,i,a,o;const e=Ao(),t=((i=(r=e==null?void 0:e.data)==null?void 0:r.data)==null?void 0:i.app_plan)||Yl.FREE,n=((o=(a=e==null?void 0:e.data)==null?void 0:a.data)==null?void 0:o.remaining_trial_days)||0;return T.jsxs($e,{as:"header",display:"flex",alignItems:"center",justifyContent:"space-between",children:[T.jsx(Ez,{mode:"full"}),T.jsxs($e,{children:[T.jsxs(fi,{alignItems:"center",gap:"6px",pb:"4px",children:[T.jsx(Ot,{as:"h3",fontSize:"13px",color:"gray.900",children:"Your plan"}),T.jsx(v6,{cursor:"pointer",variant:"solid",bg:"tc.green.400",fontSize:"12px",fontWeight:"600",display:"flex",alignItems:"center",rounded:"2px",lineHeight:"0",onClick:async()=>await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.PRICING}),children:Gg.capitalize(t)})]}),n>0&&t!==Yl.FREE&&T.jsxs(Ot,{as:"h4",color:"gray.500",fontSize:"12px",children:[n," ",A$("day",n)," ","left on trial"]})]})]})},lxe=({code:e,...t})=>{const n=()=>`${J$}/flags/${e.toLowerCase()}.svg`;return T.jsx(cde,{src:n(),alt:e,w:"1.5rem",h:"1rem",objectFit:"cover",borderRadius:"2px",border:"1px",borderColor:"tc.gray.200","data-cy":"tc-flag",...t})},BO={getNews:"getNews",getArticles:"getArticles"},uxe=()=>{var f;const{t:e}=C6(),n=(f=Ao().data)==null?void 0:f.data.plan,{data:r,isFetching:i}=wo({queryKey:[BO.getNews],queryFn:()=>ho.getNews()}),{data:a,isFetching:o}=wo({queryKey:[BO.getArticles],queryFn:()=>ho.getArticles()}),s=async h=>{if(h==="language"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.LANGUAGE}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SECTION_LANGUAGE});return}if(h==="currency"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.CURRENCY}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SECTION_CURRENCY});return}if(h==="manageTranslation"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.MANAGE_TRANSLATIONS}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SECTION_TRANSLATION});return}if(h==="autoTranslate"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.AUTO_TRANSLATE}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SECTION_AUTO_TRANSLATION});return}if(h==="switcher"){await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.SWITCHER}),await ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.HOME.CLICK_EVENT_SWITCHER});return}},l={title:"Create a multilingual site to expand your reach",subTitle:"40% of consumers wouldn’t buy from websites that aren’t available in their native languages. Add more languages to not miss out potential sales growth.",primaryAction:{onAction:async()=>await s("language"),content:"Manage language"},icon:jO,iconContainerProps:{},iconProps:{},isAdaptedWithPlan:!0},c=[{title:e("dashboard.quick_title_currency"),subTitle:e("dashboard.quick_desc_currency"),icon:qwe,iconContainerProps:{bgColor:"tc.orange.50"},iconProps:{fill:"orange.500"},primaryAction:{content:e("dashboard.quick_btn_currency"),onAction:async()=>await s("currency")},isAdaptedWithPlan:!!(n!=null&&n.currencies.total_limit)},{title:e("dashboard.quick_title_switcher"),subTitle:e("dashboard.quick_desc_switcher"),icon:Gwe,iconContainerProps:{bgColor:"tc.red.50"},iconProps:{fill:"red.500"},primaryAction:{content:e("dashboard.quick_btn_switcher"),onAction:async()=>await s("switcher")},isAdaptedWithPlan:!0},{title:e("dashboard.quick_title_translation"),subTitle:e("dashboard.quick_desc_translation"),icon:jO,iconContainerProps:{bgColor:"tc.green.50"},iconProps:{fill:"green.500"},primaryAction:{content:e("dashboard.quick_btn_translation"),onAction:async()=>await s("manageTranslation")},isAdaptedWithPlan:!!(n!=null&&n.languages.advanced_limit)},{title:e("dashboard.quick_title_auto_translation"),subTitle:e("dashboard.quick_desc_auto_translation"),icon:Wwe,iconContainerProps:{bgColor:"tc.purple.50"},iconProps:{fill:"purple.500"},primaryAction:{content:e("dashboard.quick_btn_auto_translation"),onAction:async()=>await s("autoTranslate")},isAdaptedWithPlan:Object.values((n==null?void 0:n.auto_translate.limit)||0).every(Boolean)}];return{apiData:{newsData:r,articlesData:a},loading:{isNewDataLoading:i,isArticleDataLoading:o},data:{quickActionData:c,mainQuickActionData:l}}},cxe=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/dashboardLanguageImage-28bf5ebe.png").href:new URL("../assets/dashboardLanguageImage-28bf5ebe.png",document.currentScript&&document.currentScript.src||document.baseURI).href),dxe=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/currencyOnboarding-7f203515.png").href:new URL("../assets/currencyOnboarding-7f203515.png",document.currentScript&&document.currentScript.src||document.baseURI).href),fxe=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/switcherOnboarding-3793b539.png").href:new URL("../assets/switcherOnboarding-3793b539.png",document.currentScript&&document.currentScript.src||document.baseURI).href),hxe=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/onboardingSuccess-af866dd7.png").href:new URL("../assets/onboardingSuccess-af866dd7.png",document.currentScript&&document.currentScript.src||document.baseURI).href),kz=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/trialHasExpiredModal-66016c88.png").href:new URL("../assets/trialHasExpiredModal-66016c88.png",document.currentScript&&document.currentScript.src||document.baseURI).href),pxe=({quickActionData:e=[],mainQuickActionData:t})=>T.jsxs($e,{w:"full",children:[T.jsxs(fi,{alignItems:"center",p:"20px",bg:"white",rounded:"md",boxShadow:"lg",justifyContent:"space-between",children:[T.jsxs(fi,{flexDirection:"column",gap:"16px",children:[T.jsx(Ot,{as:"h1",fontSize:"2xl",fontWeight:"600",lineHeight:"100%",children:t.title}),T.jsx(Ot,{fontSize:"sm",color:"gray.500",children:t.subTitle}),T.jsx($e,{children:T.jsx(Jr,{variant:"tc-solid-primary",h:"auto",onClick:async()=>await t.primaryAction.onAction(),children:T.jsx(Ot,{as:"span",p:"12px",fontSize:"sm",color:"inherit",children:t.primaryAction.content})})})]}),T.jsx(xu,{src:cxe,maxW:"150px",alt:"dashboard-language"})]}),T.jsx(ZN,{columns:4,pt:"20px",spacing:"20px",children:e.map(n=>T.jsxs(hu,{cursor:"pointer",bg:"white",rounded:"md",borderColor:"gray.200",borderWidth:"1px",py:"16px",px:"8px",transition:"ease-in-out 0.3s",flexDirection:"column",gap:"8px",onClick:async()=>n.primaryAction.onAction(),position:"relative",sx:{"&:hover":{borderColor:"white",shadow:"md","& > .children":{bg:n.iconProps.fill,"& > .children-icon":{fill:"white"}}}},children:[!n.isAdaptedWithPlan&&T.jsx($e,{position:"absolute",right:"8px",top:"4px",children:T.jsx(R6,{hasArrow:!0,label:T.jsxs(Ot,{color:"white",fontSize:"12px",children:["Works for Starter plan only.",T.jsx("br",{}),T.jsx(Ot,{as:"span",cursor:"pointer",color:"blue.400",onClick:async()=>await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.PRICING}),children:"Upgrade"})," ","to use this feature."]}),children:T.jsx(Wt,{as:Hwe})})}),T.jsx(hu,{className:"children",w:"2.875rem",h:"2.875rem",borderRadius:"lg",transition:"ease-in-out 0.3s",...n.iconContainerProps,children:T.jsx(Wt,{className:"children-icon",as:n.icon,w:"1.875rem",h:"1.875rem",transition:"ease-in-out 0.3s",...n.iconProps})}),T.jsx(Ot,{fontSize:"sm",fontWeight:"500",lineHeight:"150%",children:n.title})]},n.title))})]});var Tz={},Pz={},Wb={},Oz={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},n=t;e.default=n})(Oz);var mxe="Expected a function",VO=0/0,gxe="[object Symbol]",vxe=/^\s+|\s+$/g,yxe=/^[-+]0x[0-9a-f]+$/i,_xe=/^0b[01]+$/i,bxe=/^0o[0-7]+$/i,Sxe=parseInt,wxe=typeof Wi=="object"&&Wi&&Wi.Object===Object&&Wi,xxe=typeof self=="object"&&self&&self.Object===Object&&self,Cxe=wxe||xxe||Function("return this")(),Exe=Object.prototype,kxe=Exe.toString,Txe=Math.max,Pxe=Math.min,Uw=function(){return Cxe.Date.now()};function Oxe(e,t,n){var r,i,a,o,s,l,c=0,f=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(mxe);t=UO(t)||0,w3(n)&&(f=!!n.leading,h="maxWait"in n,a=h?Txe(UO(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function v(A){var I=r,M=i;return r=i=void 0,c=A,o=e.apply(M,I),o}function y(A){return c=A,s=setTimeout(b,t),f?v(A):o}function m(A){var I=A-l,M=A-c,F=t-I;return h?Pxe(F,a-M):F}function _(A){var I=A-l,M=A-c;return l===void 0||I>=t||I<0||h&&M>=a}function b(){var A=Uw();if(_(A))return S(A);s=setTimeout(b,m(A))}function S(A){return s=void 0,p&&r?v(A):(r=i=void 0,o)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function E(){return s===void 0?o:S(Uw())}function R(){var A=Uw(),I=_(A);if(r=arguments,i=this,l=A,I){if(s===void 0)return y(l);if(h)return s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),o}return R.cancel=C,R.flush=E,R}function w3(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Rxe(e){return!!e&&typeof e=="object"}function Axe(e){return typeof e=="symbol"||Rxe(e)&&kxe.call(e)==gxe}function UO(e){if(typeof e=="number")return e;if(Axe(e))return VO;if(w3(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=w3(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(vxe,"");var n=_xe.test(e);return n||bxe.test(e)?Sxe(e.slice(2),n?2:8):yxe.test(e)?VO:+e}var Ixe=Oxe,Rz={exports:{}};/*!
    466466    Copyright (c) 2018 Jed Watson.
    467467    Licensed under the MIT License (MIT), see
    468468    http://jedwatson.github.io/classnames
    469 */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Rz);var qb=Rz.exports,ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.checkSpecKeys=ze.checkNavigable=ze.changeSlide=ze.canUseDOM=ze.canGoNext=void 0;ze.clamp=Az;ze.swipeStart=ze.swipeMove=ze.swipeEnd=ze.slidesOnRight=ze.slidesOnLeft=ze.slideHandler=ze.siblingDirection=ze.safePreventDefault=ze.lazyStartIndex=ze.lazySlidesOnRight=ze.lazySlidesOnLeft=ze.lazyEndIndex=ze.keyHandler=ze.initializedState=ze.getWidth=ze.getTrackLeft=ze.getTrackCSS=ze.getTrackAnimateCSS=ze.getTotalSlides=ze.getSwipeDirection=ze.getSlideCount=ze.getRequiredLazySlides=ze.getPreClones=ze.getPostClones=ze.getOnDemandLazySlides=ze.getNavigableIndexes=ze.getHeight=ze.extractObject=void 0;var Lxe=Mxe(w);function Mxe(e){return e&&e.__esModule?e:{default:e}}function HO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(n),!0).forEach(function(r){Dxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dxe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Az(e,t,n){return Math.max(t,Math.min(e,n))}var Sc=function(t){var n=["onTouchStart","onTouchMove","onWheel"];n.includes(t._reactName)||t.preventDefault()};ze.safePreventDefault=Sc;var J6=function(t){for(var n=[],r=e8(t),i=t8(t),a=r;a<i;a++)t.lazyLoadedList.indexOf(a)<0&&n.push(a);return n};ze.getOnDemandLazySlides=J6;var Nxe=function(t){for(var n=[],r=e8(t),i=t8(t),a=r;a<i;a++)n.push(a);return n};ze.getRequiredLazySlides=Nxe;var e8=function(t){return t.currentSlide-Iz(t)};ze.lazyStartIndex=e8;var t8=function(t){return t.currentSlide+Lz(t)};ze.lazyEndIndex=t8;var Iz=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0};ze.lazySlidesOnLeft=Iz;var Lz=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow};ze.lazySlidesOnRight=Lz;var Q1=function(t){return t&&t.offsetWidth||0};ze.getWidth=Q1;var n8=function(t){return t&&t.offsetHeight||0};ze.getHeight=n8;var r8=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,i,a,o;return r=t.startX-t.curX,i=t.startY-t.curY,a=Math.atan2(i,r),o=Math.round(a*180/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":n===!0?o>=35&&o<=135?"up":"down":"vertical"};ze.getSwipeDirection=r8;var i8=function(t){var n=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(n=!1),n};ze.canGoNext=i8;var Fxe=function(t,n){var r={};return n.forEach(function(i){return r[i]=t[i]}),r};ze.extractObject=Fxe;var $xe=function(t){var n=Lxe.default.Children.count(t.children),r=t.listRef,i=Math.ceil(Q1(r)),a=t.trackRef&&t.trackRef.node,o=Math.ceil(Q1(a)),s;if(t.vertical)s=i;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=i/100),s=Math.ceil((i-l)/t.slidesToShow)}var c=r&&n8(r.querySelector('[data-index="0"]')),f=c*t.slidesToShow,h=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(h=n-1-t.initialSlide);var p=t.lazyLoadedList||[],v=J6(Fn(Fn({},t),{},{currentSlide:h,lazyLoadedList:p}));p=p.concat(v);var y={slideCount:n,slideWidth:s,listWidth:i,trackWidth:o,currentSlide:h,slideHeight:c,listHeight:f,lazyLoadedList:p};return t.autoplaying===null&&t.autoplay&&(y.autoplaying="playing"),y};ze.initializedState=$xe;var zxe=function(t){var n=t.waitForAnimate,r=t.animating,i=t.fade,a=t.infinite,o=t.index,s=t.slideCount,l=t.lazyLoad,c=t.currentSlide,f=t.centerMode,h=t.slidesToScroll,p=t.slidesToShow,v=t.useCSS,y=t.lazyLoadedList;if(n&&r)return{};var m=o,_,b,S,C={},E={},R=a?o:Az(o,0,s-1);if(i){if(!a&&(o<0||o>=s))return{};o<0?m=o+s:o>=s&&(m=o-s),l&&y.indexOf(m)<0&&(y=y.concat(m)),C={animating:!0,currentSlide:m,lazyLoadedList:y,targetSlide:m},E={animating:!1,targetSlide:m}}else _=m,m<0?(_=m+s,a?s%h!==0&&(_=s-s%h):_=0):!i8(t)&&m>c?m=_=c:f&&m>=s?(m=a?s:s-1,_=a?0:s-1):m>=s&&(_=m-s,a?s%h!==0&&(_=0):_=s-p),!a&&m+p>=s&&(_=s-p),b=og(Fn(Fn({},t),{},{slideIndex:m})),S=og(Fn(Fn({},t),{},{slideIndex:_})),a||(b===S&&(m=_),b=S),l&&(y=y.concat(J6(Fn(Fn({},t),{},{currentSlide:m})))),v?(C={animating:!0,currentSlide:_,trackStyle:a8(Fn(Fn({},t),{},{left:b})),lazyLoadedList:y,targetSlide:R},E={animating:!1,currentSlide:_,trackStyle:ag(Fn(Fn({},t),{},{left:S})),swipeLeft:null,targetSlide:R}):C={currentSlide:_,trackStyle:ag(Fn(Fn({},t),{},{left:S})),lazyLoadedList:y,targetSlide:R};return{state:C,nextState:E}};ze.slideHandler=zxe;var jxe=function(t,n){var r,i,a,o,s,l=t.slidesToScroll,c=t.slidesToShow,f=t.slideCount,h=t.currentSlide,p=t.targetSlide,v=t.lazyLoad,y=t.infinite;if(o=f%l!==0,r=o?0:(f-h)%l,n.message==="previous")a=r===0?l:c-r,s=h-a,v&&!y&&(i=h-a,s=i===-1?f-1:i),y||(s=p-l);else if(n.message==="next")a=r===0?l:r,s=h+a,v&&!y&&(s=(h+l)%f+r),y||(s=p+l);else if(n.message==="dots")s=n.index*n.slidesToScroll;else if(n.message==="children"){if(s=n.index,y){var m=Fz(Fn(Fn({},t),{},{targetSlide:s}));s>n.currentSlide&&m==="left"?s=s-f:s<n.currentSlide&&m==="right"&&(s=s+f)}}else n.message==="index"&&(s=Number(n.index));return s};ze.changeSlide=jxe;var Bxe=function(t,n,r){return t.target.tagName.match("TEXTAREA|INPUT|SELECT")||!n?"":t.keyCode===37?r?"next":"previous":t.keyCode===39?r?"previous":"next":""};ze.keyHandler=Bxe;var Vxe=function(t,n,r){return t.target.tagName==="IMG"&&Sc(t),!n||!r&&t.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:t.touches?t.touches[0].pageX:t.clientX,startY:t.touches?t.touches[0].pageY:t.clientY,curX:t.touches?t.touches[0].pageX:t.clientX,curY:t.touches?t.touches[0].pageY:t.clientY}}};ze.swipeStart=Vxe;var Uxe=function(t,n){var r=n.scrolling,i=n.animating,a=n.vertical,o=n.swipeToSlide,s=n.verticalSwiping,l=n.rtl,c=n.currentSlide,f=n.edgeFriction,h=n.edgeDragged,p=n.onEdge,v=n.swiped,y=n.swiping,m=n.slideCount,_=n.slidesToScroll,b=n.infinite,S=n.touchObject,C=n.swipeEvent,E=n.listHeight,R=n.listWidth;if(!r){if(i)return Sc(t);a&&o&&s&&Sc(t);var A,I={},M=og(n);S.curX=t.touches?t.touches[0].pageX:t.clientX,S.curY=t.touches?t.touches[0].pageY:t.clientY,S.swipeLength=Math.round(Math.sqrt(Math.pow(S.curX-S.startX,2)));var F=Math.round(Math.sqrt(Math.pow(S.curY-S.startY,2)));if(!s&&!y&&F>10)return{scrolling:!0};s&&(S.swipeLength=F);var z=(l?-1:1)*(S.curX>S.startX?1:-1);s&&(z=S.curY>S.startY?1:-1);var Y=Math.ceil(m/_),W=r8(n.touchObject,s),q=S.swipeLength;return b||(c===0&&(W==="right"||W==="down")||c+1>=Y&&(W==="left"||W==="up")||!i8(n)&&(W==="left"||W==="up"))&&(q=S.swipeLength*f,h===!1&&p&&(p(W),I.edgeDragged=!0)),!v&&C&&(C(W),I.swiped=!0),a?A=M+q*(E/R)*z:l?A=M-q*z:A=M+q*z,s&&(A=M+q*z),I=Fn(Fn({},I),{},{touchObject:S,swipeLeft:A,trackStyle:ag(Fn(Fn({},n),{},{left:A}))}),Math.abs(S.curX-S.startX)<Math.abs(S.curY-S.startY)*.8||S.swipeLength>10&&(I.swiping=!0,Sc(t)),I}};ze.swipeMove=Uxe;var Hxe=function(t,n){var r=n.dragging,i=n.swipe,a=n.touchObject,o=n.listWidth,s=n.touchThreshold,l=n.verticalSwiping,c=n.listHeight,f=n.swipeToSlide,h=n.scrolling,p=n.onSwipe,v=n.targetSlide,y=n.currentSlide,m=n.infinite;if(!r)return i&&Sc(t),{};var _=l?c/s:o/s,b=r8(a,l),S={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(h||!a.swipeLength)return S;if(a.swipeLength>_){Sc(t),p&&p(b);var C,E,R=m?y:v;switch(b){case"left":case"up":E=R+CC(n),C=f?xC(n,E):E,S.currentDirection=0;break;case"right":case"down":E=R-CC(n),C=f?xC(n,E):E,S.currentDirection=1;break;default:C=R}S.triggerSlideHandler=C}else{var A=og(n);S.trackStyle=a8(Fn(Fn({},n),{},{left:A}))}return S};ze.swipeEnd=Hxe;var Mz=function(t){for(var n=t.infinite?t.slideCount*2:t.slideCount,r=t.infinite?t.slidesToShow*-1:0,i=t.infinite?t.slidesToShow*-1:0,a=[];r<n;)a.push(r),r=i+t.slidesToScroll,i+=Math.min(t.slidesToScroll,t.slidesToShow);return a};ze.getNavigableIndexes=Mz;var xC=function(t,n){var r=Mz(t),i=0;if(n>r[r.length-1])n=r[r.length-1];else for(var a in r){if(n<r[a]){n=i;break}i=r[a]}return n};ze.checkNavigable=xC;var CC=function(t){var n=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;if(t.swipeToSlide){var r,i=t.listRef,a=i.querySelectorAll&&i.querySelectorAll(".slick-slide")||[];if(Array.from(a).every(function(l){if(t.vertical){if(l.offsetTop+n8(l)/2>t.swipeLeft*-1)return r=l,!1}else if(l.offsetLeft-n+Q1(l)/2>t.swipeLeft*-1)return r=l,!1;return!0}),!r)return 0;var o=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,s=Math.abs(r.dataset.index-o)||1;return s}else return t.slidesToScroll};ze.getSlideCount=CC;var Gb=function(t,n){return n.reduce(function(r,i){return r&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing:",t)};ze.checkSpecKeys=Gb;var ag=function(t){Gb(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,r,i=t.slideCount+2*t.slidesToShow;t.vertical?r=i*t.slideHeight:n=Nz(t)*t.slideWidth;var a={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var o=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";a=Fn(Fn({},a),{},{WebkitTransform:o,transform:s,msTransform:l})}else t.vertical?a.top=t.left:a.left=t.left;return t.fade&&(a={opacity:1}),n&&(a.width=n),r&&(a.height=r),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?a.marginTop=t.left+"px":a.marginLeft=t.left+"px"),a};ze.getTrackCSS=ag;var a8=function(t){Gb(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=ag(t);return t.useTransform?(n.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,n.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?n.transition="top "+t.speed+"ms "+t.cssEase:n.transition="left "+t.speed+"ms "+t.cssEase,n};ze.getTrackAnimateCSS=a8;var og=function(t){if(t.unslick)return 0;Gb(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var n=t.slideIndex,r=t.trackRef,i=t.infinite,a=t.centerMode,o=t.slideCount,s=t.slidesToShow,l=t.slidesToScroll,c=t.slideWidth,f=t.listWidth,h=t.variableWidth,p=t.slideHeight,v=t.fade,y=t.vertical,m=0,_,b,S=0;if(v||t.slideCount===1)return 0;var C=0;if(i?(C=-gm(t),o%l!==0&&n+l>o&&(C=-(n>o?s-(n-o):o%l)),a&&(C+=parseInt(s/2))):(o%l!==0&&n+l>o&&(C=s-o%l),a&&(C=parseInt(s/2))),m=C*c,S=C*p,y?_=n*p*-1+S:_=n*c*-1+m,h===!0){var E,R=r&&r.node;if(E=n+gm(t),b=R&&R.childNodes[E],_=b?b.offsetLeft*-1:0,a===!0){E=i?n+gm(t):n,b=R&&R.children[E],_=0;for(var A=0;A<E;A++)_-=R&&R.children[A]&&R.children[A].offsetWidth;_-=parseInt(t.centerPadding),_+=b&&(f-b.offsetWidth)/2}}return _};ze.getTrackLeft=og;var gm=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)};ze.getPreClones=gm;var Dz=function(t){return t.unslick||!t.infinite?0:t.slideCount};ze.getPostClones=Dz;var Nz=function(t){return t.slideCount===1?1:gm(t)+t.slideCount+Dz(t)};ze.getTotalSlides=Nz;var Fz=function(t){return t.targetSlide>t.currentSlide?t.targetSlide>t.currentSlide+$z(t)?"left":"right":t.targetSlide<t.currentSlide-zz(t)?"right":"left"};ze.siblingDirection=Fz;var $z=function(t){var n=t.slidesToShow,r=t.centerMode,i=t.rtl,a=t.centerPadding;if(r){var o=(n-1)/2+1;return parseInt(a)>0&&(o+=1),i&&n%2===0&&(o+=1),o}return i?0:n-1};ze.slidesOnRight=$z;var zz=function(t){var n=t.slidesToShow,r=t.centerMode,i=t.rtl,a=t.centerPadding;if(r){var o=(n-1)/2+1;return parseInt(a)>0&&(o+=1),!i&&n%2===0&&(o+=1),o}return i?n-1:0};ze.slidesOnLeft=zz;var Wxe=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};ze.canUseDOM=Wxe;var Kb={};function EC(e){"@babel/helpers - typeof";return EC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EC(e)}Object.defineProperty(Kb,"__esModule",{value:!0});Kb.Track=void 0;var jl=jz(w),Hw=jz(qb),Ww=ze;function jz(e){return e&&e.__esModule?e:{default:e}}function kC(){return kC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kC.apply(this,arguments)}function qxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gxe(e,t,n){return t&&WO(e.prototype,t),n&&WO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TC(e,t)}function TC(e,t){return TC=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},TC(e,t)}function Yxe(e){var t=Qxe();return function(){var r=X1(e),i;if(t){var a=X1(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Zxe(this,i)}}function Zxe(e,t){if(t&&(EC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PC(e)}function PC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X1(e){return X1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},X1(e)}function qO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(n),!0).forEach(function(r){OC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qw=function(t){var n,r,i,a,o;t.rtl?o=t.slideCount-1-t.index:o=t.index,i=o<0||o>=t.slideCount,t.centerMode?(a=Math.floor(t.slidesToShow/2),r=(o-t.currentSlide)%t.slideCount===0,o>t.currentSlide-a-1&&o<=t.currentSlide+a&&(n=!0)):n=t.currentSlide<=o&&o<t.currentSlide+t.slidesToShow;var s;t.targetSlide<0?s=t.targetSlide+t.slideCount:t.targetSlide>=t.slideCount?s=t.targetSlide-t.slideCount:s=t.targetSlide;var l=o===s;return{"slick-slide":!0,"slick-active":n,"slick-center":r,"slick-cloned":i,"slick-current":l}},Xxe=function(t){var n={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(n.width=t.slideWidth),t.fade&&(n.position="relative",t.vertical?n.top=-t.index*parseInt(t.slideHeight):n.left=-t.index*parseInt(t.slideWidth),n.opacity=t.currentSlide===t.index?1:0,t.useCSS&&(n.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),n},Gw=function(t,n){return t.key||n},Jxe=function(t){var n,r=[],i=[],a=[],o=jl.default.Children.count(t.children),s=(0,Ww.lazyStartIndex)(t),l=(0,Ww.lazyEndIndex)(t);return jl.default.Children.forEach(t.children,function(c,f){var h,p={message:"children",index:f,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(f)>=0?h=c:h=jl.default.createElement("div",null);var v=Xxe(Ui(Ui({},t),{},{index:f})),y=h.props.className||"",m=qw(Ui(Ui({},t),{},{index:f}));if(r.push(jl.default.cloneElement(h,{key:"original"+Gw(h,f),"data-index":f,className:(0,Hw.default)(m,y),tabIndex:"-1","aria-hidden":!m["slick-active"],style:Ui(Ui({outline:"none"},h.props.style||{}),v),onClick:function(S){h.props&&h.props.onClick&&h.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(p)}})),t.infinite&&t.fade===!1){var _=o-f;_<=(0,Ww.getPreClones)(t)&&o!==t.slidesToShow&&(n=-_,n>=s&&(h=c),m=qw(Ui(Ui({},t),{},{index:n})),i.push(jl.default.cloneElement(h,{key:"precloned"+Gw(h,n),"data-index":n,tabIndex:"-1",className:(0,Hw.default)(m,y),"aria-hidden":!m["slick-active"],style:Ui(Ui({},h.props.style||{}),v),onClick:function(S){h.props&&h.props.onClick&&h.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(p)}}))),o!==t.slidesToShow&&(n=o+f,n<l&&(h=c),m=qw(Ui(Ui({},t),{},{index:n})),a.push(jl.default.cloneElement(h,{key:"postcloned"+Gw(h,n),"data-index":n,tabIndex:"-1",className:(0,Hw.default)(m,y),"aria-hidden":!m["slick-active"],style:Ui(Ui({},h.props.style||{}),v),onClick:function(S){h.props&&h.props.onClick&&h.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(p)}})))}}),t.rtl?i.concat(r,a).reverse():i.concat(r,a)},e3e=function(e){Kxe(n,e);var t=Yxe(n);function n(){var r;qxe(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),OC(PC(r),"node",null),OC(PC(r),"handleRef",function(s){r.node=s}),r}return Gxe(n,[{key:"render",value:function(){var i=Jxe(this.props),a=this.props,o=a.onMouseEnter,s=a.onMouseOver,l=a.onMouseLeave,c={onMouseEnter:o,onMouseOver:s,onMouseLeave:l};return jl.default.createElement("div",kC({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},c),i)}}]),n}(jl.default.PureComponent);Kb.Track=e3e;var Yb={};function RC(e){"@babel/helpers - typeof";return RC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},RC(e)}Object.defineProperty(Yb,"__esModule",{value:!0});Yb.Dots=void 0;var B0=Bz(w),t3e=Bz(qb),GO=ze;function Bz(e){return e&&e.__esModule?e:{default:e}}function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function n3e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KO(Object(n),!0).forEach(function(r){r3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r3e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a3e(e,t,n){return t&&YO(e.prototype,t),n&&YO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AC(e,t)}function AC(e,t){return AC=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},AC(e,t)}function s3e(e){var t=c3e();return function(){var r=J1(e),i;if(t){var a=J1(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return l3e(this,i)}}function l3e(e,t){if(t&&(RC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u3e(e)}function u3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c3e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function J1(e){return J1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},J1(e)}var d3e=function(t){var n;return t.infinite?n=Math.ceil(t.slideCount/t.slidesToScroll):n=Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1,n},f3e=function(e){o3e(n,e);var t=s3e(n);function n(){return i3e(this,n),t.apply(this,arguments)}return a3e(n,[{key:"clickHandler",value:function(i,a){a.preventDefault(),this.props.clickHandler(i)}},{key:"render",value:function(){for(var i=this.props,a=i.onMouseEnter,o=i.onMouseOver,s=i.onMouseLeave,l=i.infinite,c=i.slidesToScroll,f=i.slidesToShow,h=i.slideCount,p=i.currentSlide,v=d3e({slideCount:h,slidesToScroll:c,slidesToShow:f,infinite:l}),y={onMouseEnter:a,onMouseOver:o,onMouseLeave:s},m=[],_=0;_<v;_++){var b=(_+1)*c-1,S=l?b:(0,GO.clamp)(b,0,h-1),C=S-(c-1),E=l?C:(0,GO.clamp)(C,0,h-1),R=(0,t3e.default)({"slick-active":l?p>=E&&p<=S:p===E}),A={message:"dots",index:_,slidesToScroll:c,currentSlide:p},I=this.clickHandler.bind(this,A);m=m.concat(B0.default.createElement("li",{key:_,className:R},B0.default.cloneElement(this.props.customPaging(_),{onClick:I})))}return B0.default.cloneElement(this.props.appendDots(m),n3e({className:this.props.dotsClass},y))}}]),n}(B0.default.PureComponent);Yb.Dots=f3e;var ih={};function IC(e){"@babel/helpers - typeof";return IC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IC(e)}Object.defineProperty(ih,"__esModule",{value:!0});ih.PrevArrow=ih.NextArrow=void 0;var Af=Uz(w),Vz=Uz(qb),h3e=ze;function Uz(e){return e&&e.__esModule?e:{default:e}}function e_(){return e_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e_.apply(this,arguments)}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function t_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){p3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p3e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wz(e,t,n){return t&&QO(e.prototype,t),n&&QO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LC(e,t)}function LC(e,t){return LC=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},LC(e,t)}function Gz(e){var t=v3e();return function(){var r=n_(e),i;if(t){var a=n_(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return m3e(this,i)}}function m3e(e,t){if(t&&(IC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g3e(e)}function g3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v3e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n_(e){return n_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},n_(e)}var y3e=function(e){qz(n,e);var t=Gz(n);function n(){return Hz(this,n),t.apply(this,arguments)}return Wz(n,[{key:"clickHandler",value:function(i,a){a&&a.preventDefault(),this.props.clickHandler(i,a)}},{key:"render",value:function(){var i={"slick-arrow":!0,"slick-prev":!0},a=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(i["slick-disabled"]=!0,a=null);var o={key:"0","data-role":"none",className:(0,Vz.default)(i),style:{display:"block"},onClick:a},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.prevArrow?l=Af.default.cloneElement(this.props.prevArrow,t_(t_({},o),s)):l=Af.default.createElement("button",e_({key:"0",type:"button"},o)," ","Previous"),l}}]),n}(Af.default.PureComponent);ih.PrevArrow=y3e;var _3e=function(e){qz(n,e);var t=Gz(n);function n(){return Hz(this,n),t.apply(this,arguments)}return Wz(n,[{key:"clickHandler",value:function(i,a){a&&a.preventDefault(),this.props.clickHandler(i,a)}},{key:"render",value:function(){var i={"slick-arrow":!0,"slick-next":!0},a=this.clickHandler.bind(this,{message:"next"});(0,h3e.canGoNext)(this.props)||(i["slick-disabled"]=!0,a=null);var o={key:"1","data-role":"none",className:(0,Vz.default)(i),style:{display:"block"},onClick:a},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.nextArrow?l=Af.default.cloneElement(this.props.nextArrow,t_(t_({},o),s)):l=Af.default.createElement("button",e_({key:"1",type:"button"},o)," ","Next"),l}}]),n}(Af.default.PureComponent);ih.NextArrow=_3e;var Kz=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},t}()}(),MC=typeof window<"u"&&typeof document<"u"&&window.document===document,r_=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),b3e=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(r_):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),S3e=2;function w3e(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){b3e(a)}function s(){var l=Date.now();if(n){if(l-i<S3e)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=l}return s}var x3e=20,C3e=["top","right","bottom","left","width","height","size","weight"],E3e=typeof MutationObserver<"u",k3e=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=w3e(this.refresh.bind(this),x3e)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!MC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),E3e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!MC||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=C3e.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Yz=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},ah=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||r_},Zz=Zb(0,0,0,0);function i_(e){return parseFloat(e)||0}function XO(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+i_(a)},0)}function T3e(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=i_(o)}return n}function P3e(e){var t=e.getBBox();return Zb(0,0,t.width,t.height)}function O3e(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Zz;var r=ah(e).getComputedStyle(e),i=T3e(r),a=i.left+i.right,o=i.top+i.bottom,s=i_(r.width),l=i_(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=XO(r,"left","right")+a),Math.round(l+o)!==n&&(l-=XO(r,"top","bottom")+o)),!A3e(e)){var c=Math.round(s+a)-t,f=Math.round(l+o)-n;Math.abs(c)!==1&&(s-=c),Math.abs(f)!==1&&(l-=f)}return Zb(i.left,i.top,s,l)}var R3e=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ah(e).SVGGraphicsElement}:function(e){return e instanceof ah(e).SVGElement&&typeof e.getBBox=="function"}}();function A3e(e){return e===ah(e).document.documentElement}function I3e(e){return MC?R3e(e)?P3e(e):O3e(e):Zz}function L3e(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return Yz(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function Zb(e,t,n,r){return{x:e,y:t,width:n,height:r}}var M3e=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Zb(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=I3e(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),D3e=function(){function e(t,n){var r=L3e(n);Yz(this,{target:t,contentRect:r})}return e}(),N3e=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Kz,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ah(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new M3e(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ah(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new D3e(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Qz=typeof WeakMap<"u"?new WeakMap:new Kz,Xz=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=k3e.getInstance(),r=new N3e(t,n,this);Qz.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Xz.prototype[e]=function(){var t;return(t=Qz.get(this))[e].apply(t,arguments)}});var F3e=function(){return typeof r_.ResizeObserver<"u"?r_.ResizeObserver:Xz}();const $3e=Object.freeze(Object.defineProperty({__proto__:null,default:F3e},Symbol.toStringTag,{value:"Module"})),z3e=lA($3e);Object.defineProperty(Wb,"__esModule",{value:!0});Wb.InnerSlider=void 0;var Ci=Jg(w),j3e=Jg(Oz),B3e=Jg(Ixe),V3e=Jg(qb),Vn=ze,U3e=Kb,H3e=Yb,JO=ih,W3e=Jg(z3e);function Jg(e){return e&&e.__esModule?e:{default:e}}function a_(e){"@babel/helpers - typeof";return a_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a_(e)}function o_(){return o_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o_.apply(this,arguments)}function q3e(e,t){if(e==null)return{};var n=G3e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G3e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){Bt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y3e(e,t,n){return t&&tR(e.prototype,t),n&&tR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DC(e,t)}function DC(e,t){return DC=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},DC(e,t)}function Q3e(e){var t=J3e();return function(){var r=s_(e),i;if(t){var a=s_(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return X3e(this,i)}}function X3e(e,t){if(t&&(a_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jt(e)}function jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J3e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s_(e){return s_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},s_(e)}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eCe=function(e){Z3e(n,e);var t=Q3e(n);function n(r){var i;K3e(this,n),i=t.call(this,r),Bt(jt(i),"listRefHandler",function(o){return i.list=o}),Bt(jt(i),"trackRefHandler",function(o){return i.track=o}),Bt(jt(i),"adaptHeight",function(){if(i.props.adaptiveHeight&&i.list){var o=i.list.querySelector('[data-index="'.concat(i.state.currentSlide,'"]'));i.list.style.height=(0,Vn.getHeight)(o)+"px"}}),Bt(jt(i),"componentDidMount",function(){if(i.props.onInit&&i.props.onInit(),i.props.lazyLoad){var o=(0,Vn.getOnDemandLazySlides)(ft(ft({},i.props),i.state));o.length>0&&(i.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(o)}}),i.props.onLazyLoad&&i.props.onLazyLoad(o))}var s=ft({listRef:i.list,trackRef:i.track},i.props);i.updateState(s,!0,function(){i.adaptHeight(),i.props.autoplay&&i.autoPlay("update")}),i.props.lazyLoad==="progressive"&&(i.lazyLoadTimer=setInterval(i.progressiveLazyLoad,1e3)),i.ro=new W3e.default(function(){i.state.animating?(i.onWindowResized(!1),i.callbackTimers.push(setTimeout(function(){return i.onWindowResized()},i.props.speed))):i.onWindowResized()}),i.ro.observe(i.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=i.props.pauseOnFocus?i.onSlideFocus:null,l.onblur=i.props.pauseOnFocus?i.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",i.onWindowResized):window.attachEvent("onresize",i.onWindowResized)}),Bt(jt(i),"componentWillUnmount",function(){i.animationEndCallback&&clearTimeout(i.animationEndCallback),i.lazyLoadTimer&&clearInterval(i.lazyLoadTimer),i.callbackTimers.length&&(i.callbackTimers.forEach(function(o){return clearTimeout(o)}),i.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",i.onWindowResized):window.detachEvent("onresize",i.onWindowResized),i.autoplayTimer&&clearInterval(i.autoplayTimer),i.ro.disconnect()}),Bt(jt(i),"componentDidUpdate",function(o){if(i.checkImagesLoad(),i.props.onReInit&&i.props.onReInit(),i.props.lazyLoad){var s=(0,Vn.getOnDemandLazySlides)(ft(ft({},i.props),i.state));s.length>0&&(i.setState(function(f){return{lazyLoadedList:f.lazyLoadedList.concat(s)}}),i.props.onLazyLoad&&i.props.onLazyLoad(s))}i.adaptHeight();var l=ft(ft({listRef:i.list,trackRef:i.track},i.props),i.state),c=i.didPropsChange(o);c&&i.updateState(l,c,function(){i.state.currentSlide>=Ci.default.Children.count(i.props.children)&&i.changeSlide({message:"index",index:Ci.default.Children.count(i.props.children)-i.props.slidesToShow,currentSlide:i.state.currentSlide}),i.props.autoplay?i.autoPlay("update"):i.pause("paused")})}),Bt(jt(i),"onWindowResized",function(o){i.debouncedResize&&i.debouncedResize.cancel(),i.debouncedResize=(0,B3e.default)(function(){return i.resizeWindow(o)},50),i.debouncedResize()}),Bt(jt(i),"resizeWindow",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(i.track&&i.track.node);if(s){var l=ft(ft({listRef:i.list,trackRef:i.track},i.props),i.state);i.updateState(l,o,function(){i.props.autoplay?i.autoPlay("update"):i.pause("paused")}),i.setState({animating:!1}),clearTimeout(i.animationEndCallback),delete i.animationEndCallback}}),Bt(jt(i),"updateState",function(o,s,l){var c=(0,Vn.initializedState)(o);o=ft(ft(ft({},o),c),{},{slideIndex:c.currentSlide});var f=(0,Vn.getTrackLeft)(o);o=ft(ft({},o),{},{left:f});var h=(0,Vn.getTrackCSS)(o);(s||Ci.default.Children.count(i.props.children)!==Ci.default.Children.count(o.children))&&(c.trackStyle=h),i.setState(c,l)}),Bt(jt(i),"ssrInit",function(){if(i.props.variableWidth){var o=0,s=0,l=[],c=(0,Vn.getPreClones)(ft(ft(ft({},i.props),i.state),{},{slideCount:i.props.children.length})),f=(0,Vn.getPostClones)(ft(ft(ft({},i.props),i.state),{},{slideCount:i.props.children.length}));i.props.children.forEach(function(I){l.push(I.props.style.width),o+=I.props.style.width});for(var h=0;h<c;h++)s+=l[l.length-1-h],o+=l[l.length-1-h];for(var p=0;p<f;p++)o+=l[p];for(var v=0;v<i.state.currentSlide;v++)s+=l[v];var y={width:o+"px",left:-s+"px"};if(i.props.centerMode){var m="".concat(l[i.state.currentSlide],"px");y.left="calc(".concat(y.left," + (100% - ").concat(m,") / 2 ) ")}return{trackStyle:y}}var _=Ci.default.Children.count(i.props.children),b=ft(ft(ft({},i.props),i.state),{},{slideCount:_}),S=(0,Vn.getPreClones)(b)+(0,Vn.getPostClones)(b)+_,C=100/i.props.slidesToShow*S,E=100/S,R=-E*((0,Vn.getPreClones)(b)+i.state.currentSlide)*C/100;i.props.centerMode&&(R+=(100-E*C/100)/2);var A={width:C+"%",left:R+"%"};return{slideWidth:E+"%",trackStyle:A}}),Bt(jt(i),"checkImagesLoad",function(){var o=i.list&&i.list.querySelectorAll&&i.list.querySelectorAll(".slick-slide img")||[],s=o.length,l=0;Array.prototype.forEach.call(o,function(c){var f=function(){return++l&&l>=s&&i.onWindowResized()};if(!c.onclick)c.onclick=function(){return c.parentNode.focus()};else{var h=c.onclick;c.onclick=function(){h(),c.parentNode.focus()}}c.onload||(i.props.lazyLoad?c.onload=function(){i.adaptHeight(),i.callbackTimers.push(setTimeout(i.onWindowResized,i.props.speed))}:(c.onload=f,c.onerror=function(){f(),i.props.onLazyLoadError&&i.props.onLazyLoadError()}))})}),Bt(jt(i),"progressiveLazyLoad",function(){for(var o=[],s=ft(ft({},i.props),i.state),l=i.state.currentSlide;l<i.state.slideCount+(0,Vn.getPostClones)(s);l++)if(i.state.lazyLoadedList.indexOf(l)<0){o.push(l);break}for(var c=i.state.currentSlide-1;c>=-(0,Vn.getPreClones)(s);c--)if(i.state.lazyLoadedList.indexOf(c)<0){o.push(c);break}o.length>0?(i.setState(function(f){return{lazyLoadedList:f.lazyLoadedList.concat(o)}}),i.props.onLazyLoad&&i.props.onLazyLoad(o)):i.lazyLoadTimer&&(clearInterval(i.lazyLoadTimer),delete i.lazyLoadTimer)}),Bt(jt(i),"slideHandler",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i.props,c=l.asNavFor,f=l.beforeChange,h=l.onLazyLoad,p=l.speed,v=l.afterChange,y=i.state.currentSlide,m=(0,Vn.slideHandler)(ft(ft(ft({index:o},i.props),i.state),{},{trackRef:i.track,useCSS:i.props.useCSS&&!s})),_=m.state,b=m.nextState;if(_){f&&f(y,_.currentSlide);var S=_.lazyLoadedList.filter(function(C){return i.state.lazyLoadedList.indexOf(C)<0});h&&S.length>0&&h(S),!i.props.waitForAnimate&&i.animationEndCallback&&(clearTimeout(i.animationEndCallback),v&&v(y),delete i.animationEndCallback),i.setState(_,function(){c&&i.asNavForIndex!==o&&(i.asNavForIndex=o,c.innerSlider.slideHandler(o)),b&&(i.animationEndCallback=setTimeout(function(){var C=b.animating,E=q3e(b,["animating"]);i.setState(E,function(){i.callbackTimers.push(setTimeout(function(){return i.setState({animating:C})},10)),v&&v(_.currentSlide),delete i.animationEndCallback})},p))})}}),Bt(jt(i),"changeSlide",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=ft(ft({},i.props),i.state),c=(0,Vn.changeSlide)(l,o);if(!(c!==0&&!c)&&(s===!0?i.slideHandler(c,s):i.slideHandler(c),i.props.autoplay&&i.autoPlay("update"),i.props.focusOnSelect)){var f=i.list.querySelectorAll(".slick-current");f[0]&&f[0].focus()}}),Bt(jt(i),"clickHandler",function(o){i.clickable===!1&&(o.stopPropagation(),o.preventDefault()),i.clickable=!0}),Bt(jt(i),"keyHandler",function(o){var s=(0,Vn.keyHandler)(o,i.props.accessibility,i.props.rtl);s!==""&&i.changeSlide({message:s})}),Bt(jt(i),"selectHandler",function(o){i.changeSlide(o)}),Bt(jt(i),"disableBodyScroll",function(){var o=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=o}),Bt(jt(i),"enableBodyScroll",function(){window.ontouchmove=null}),Bt(jt(i),"swipeStart",function(o){i.props.verticalSwiping&&i.disableBodyScroll();var s=(0,Vn.swipeStart)(o,i.props.swipe,i.props.draggable);s!==""&&i.setState(s)}),Bt(jt(i),"swipeMove",function(o){var s=(0,Vn.swipeMove)(o,ft(ft(ft({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));s&&(s.swiping&&(i.clickable=!1),i.setState(s))}),Bt(jt(i),"swipeEnd",function(o){var s=(0,Vn.swipeEnd)(o,ft(ft(ft({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));if(s){var l=s.triggerSlideHandler;delete s.triggerSlideHandler,i.setState(s),l!==void 0&&(i.slideHandler(l),i.props.verticalSwiping&&i.enableBodyScroll())}}),Bt(jt(i),"touchEnd",function(o){i.swipeEnd(o),i.clickable=!0}),Bt(jt(i),"slickPrev",function(){i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"previous"})},0))}),Bt(jt(i),"slickNext",function(){i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"next"})},0))}),Bt(jt(i),"slickGoTo",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o=Number(o),isNaN(o))return"";i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"index",index:o,currentSlide:i.state.currentSlide},s)},0))}),Bt(jt(i),"play",function(){var o;if(i.props.rtl)o=i.state.currentSlide-i.props.slidesToScroll;else if((0,Vn.canGoNext)(ft(ft({},i.props),i.state)))o=i.state.currentSlide+i.props.slidesToScroll;else return!1;i.slideHandler(o)}),Bt(jt(i),"autoPlay",function(o){i.autoplayTimer&&clearInterval(i.autoplayTimer);var s=i.state.autoplaying;if(o==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(o==="leave"){if(s==="paused"||s==="focused")return}else if(o==="blur"&&(s==="paused"||s==="hovered"))return;i.autoplayTimer=setInterval(i.play,i.props.autoplaySpeed+50),i.setState({autoplaying:"playing"})}),Bt(jt(i),"pause",function(o){i.autoplayTimer&&(clearInterval(i.autoplayTimer),i.autoplayTimer=null);var s=i.state.autoplaying;o==="paused"?i.setState({autoplaying:"paused"}):o==="focused"?(s==="hovered"||s==="playing")&&i.setState({autoplaying:"focused"}):s==="playing"&&i.setState({autoplaying:"hovered"})}),Bt(jt(i),"onDotsOver",function(){return i.props.autoplay&&i.pause("hovered")}),Bt(jt(i),"onDotsLeave",function(){return i.props.autoplay&&i.state.autoplaying==="hovered"&&i.autoPlay("leave")}),Bt(jt(i),"onTrackOver",function(){return i.props.autoplay&&i.pause("hovered")}),Bt(jt(i),"onTrackLeave",function(){return i.props.autoplay&&i.state.autoplaying==="hovered"&&i.autoPlay("leave")}),Bt(jt(i),"onSlideFocus",function(){return i.props.autoplay&&i.pause("focused")}),Bt(jt(i),"onSlideBlur",function(){return i.props.autoplay&&i.state.autoplaying==="focused"&&i.autoPlay("blur")}),Bt(jt(i),"render",function(){var o=(0,V3e.default)("slick-slider",i.props.className,{"slick-vertical":i.props.vertical,"slick-initialized":!0}),s=ft(ft({},i.props),i.state),l=(0,Vn.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=i.props.pauseOnHover;l=ft(ft({},l),{},{onMouseEnter:c?i.onTrackOver:null,onMouseLeave:c?i.onTrackLeave:null,onMouseOver:c?i.onTrackOver:null,focusOnSelect:i.props.focusOnSelect&&i.clickable?i.selectHandler:null});var f;if(i.props.dots===!0&&i.state.slideCount>=i.props.slidesToShow){var h=(0,Vn.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),p=i.props.pauseOnDotsHover;h=ft(ft({},h),{},{clickHandler:i.changeSlide,onMouseEnter:p?i.onDotsLeave:null,onMouseOver:p?i.onDotsOver:null,onMouseLeave:p?i.onDotsLeave:null}),f=Ci.default.createElement(H3e.Dots,h)}var v,y,m=(0,Vn.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);m.clickHandler=i.changeSlide,i.props.arrows&&(v=Ci.default.createElement(JO.PrevArrow,m),y=Ci.default.createElement(JO.NextArrow,m));var _=null;i.props.vertical&&(_={height:i.state.listHeight});var b=null;i.props.vertical===!1?i.props.centerMode===!0&&(b={padding:"0px "+i.props.centerPadding}):i.props.centerMode===!0&&(b={padding:i.props.centerPadding+" 0px"});var S=ft(ft({},_),b),C=i.props.touchMove,E={className:"slick-list",style:S,onClick:i.clickHandler,onMouseDown:C?i.swipeStart:null,onMouseMove:i.state.dragging&&C?i.swipeMove:null,onMouseUp:C?i.swipeEnd:null,onMouseLeave:i.state.dragging&&C?i.swipeEnd:null,onTouchStart:C?i.swipeStart:null,onTouchMove:i.state.dragging&&C?i.swipeMove:null,onTouchEnd:C?i.touchEnd:null,onTouchCancel:i.state.dragging&&C?i.swipeEnd:null,onKeyDown:i.props.accessibility?i.keyHandler:null},R={className:o,dir:"ltr",style:i.props.style};return i.props.unslick&&(E={className:"slick-list"},R={className:o}),Ci.default.createElement("div",R,i.props.unslick?"":v,Ci.default.createElement("div",o_({ref:i.listRefHandler},E),Ci.default.createElement(U3e.Track,o_({ref:i.trackRefHandler},l),i.props.children)),i.props.unslick?"":y,i.props.unslick?"":f)}),i.list=null,i.track=null,i.state=ft(ft({},j3e.default),{},{currentSlide:i.props.initialSlide,slideCount:Ci.default.Children.count(i.props.children)}),i.callbackTimers=[],i.clickable=!0,i.debouncedResize=null;var a=i.ssrInit();return i.state=ft(ft({},i.state),a),i}return Y3e(n,[{key:"didPropsChange",value:function(i){for(var a=!1,o=0,s=Object.keys(this.props);o<s.length;o++){var l=s[o];if(!i.hasOwnProperty(l)){a=!0;break}if(!(a_(i[l])==="object"||typeof i[l]=="function")&&i[l]!==this.props[l]){a=!0;break}}return a||Ci.default.Children.count(this.props.children)!==Ci.default.Children.count(i.children)}}]),n}(Ci.default.Component);Wb.InnerSlider=eCe;var tCe=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},nCe=tCe,rCe=nCe,iCe=function(e){var t=/[height|width]$/;return t.test(e)},nR=function(e){var t="",n=Object.keys(e);return n.forEach(function(r,i){var a=e[r];r=rCe(r),iCe(r)&&typeof a=="number"&&(a=a+"px"),a===!0?t+=r:a===!1?t+="not "+r:t+="("+r+": "+a+")",i<n.length-1&&(t+=" and ")}),t},aCe=function(e){var t="";return typeof e=="string"?e:e instanceof Array?(e.forEach(function(n,r){t+=nR(n),r<e.length-1&&(t+=", ")}),t):nR(e)},oCe=aCe,Jz={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(w);function n(a){return a&&a.__esModule?a:{default:a}}var r={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(o){return t.default.createElement("ul",{style:{display:"block"}},o)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(o){return t.default.createElement("button",null,o+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},i=r;e.default=i})(Jz);var Kw,rR;function sCe(){if(rR)return Kw;rR=1;function e(t){this.options=t,!t.deferSetup&&this.setup()}return e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},Kw=e,Kw}var Yw,iR;function ej(){if(iR)return Yw;iR=1;function e(r,i){var a=0,o=r.length,s;for(a;a<o&&(s=i(r[a],a),s!==!1);a++);}function t(r){return Object.prototype.toString.apply(r)==="[object Array]"}function n(r){return typeof r=="function"}return Yw={isFunction:n,isArray:t,each:e},Yw}var Zw,aR;function lCe(){if(aR)return Zw;aR=1;var e=sCe(),t=ej().each;function n(r,i){this.query=r,this.isUnconditional=i,this.handlers=[],this.mql=window.matchMedia(r);var a=this;this.listener=function(o){a.mql=o.currentTarget||o,a.assess()},this.mql.addListener(this.listener)}return n.prototype={constuctor:n,addHandler:function(r){var i=new e(r);this.handlers.push(i),this.matches()&&i.on()},removeHandler:function(r){var i=this.handlers;t(i,function(a,o){if(a.equals(r))return a.destroy(),!i.splice(o,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(r){r.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var r=this.matches()?"on":"off";t(this.handlers,function(i){i[r]()})}},Zw=n,Zw}var Qw,oR;function uCe(){if(oR)return Qw;oR=1;var e=lCe(),t=ej(),n=t.each,r=t.isFunction,i=t.isArray;function a(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return a.prototype={constructor:a,register:function(o,s,l){var c=this.queries,f=l&&this.browserIsIncapable;return c[o]||(c[o]=new e(o,f)),r(s)&&(s={match:s}),i(s)||(s=[s]),n(s,function(h){r(h)&&(h={match:h}),c[o].addHandler(h)}),this},unregister:function(o,s){var l=this.queries[o];return l&&(s?l.removeHandler(s):(l.clear(),delete this.queries[o])),this}},Qw=a,Qw}var Xw,sR;function cCe(){if(sR)return Xw;sR=1;var e=uCe();return Xw=new e,Xw}(function(e){function t(M){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},t(M)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(w),r=Wb,i=s(oCe),a=s(Jz),o=ze;function s(M){return M&&M.__esModule?M:{default:M}}function l(){return l=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var z=arguments[F];for(var Y in z)Object.prototype.hasOwnProperty.call(z,Y)&&(M[Y]=z[Y])}return M},l.apply(this,arguments)}function c(M,F){var z=Object.keys(M);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(M);F&&(Y=Y.filter(function(W){return Object.getOwnPropertyDescriptor(M,W).enumerable})),z.push.apply(z,Y)}return z}function f(M){for(var F=1;F<arguments.length;F++){var z=arguments[F]!=null?arguments[F]:{};F%2?c(Object(z),!0).forEach(function(Y){R(M,Y,z[Y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(z)):c(Object(z)).forEach(function(Y){Object.defineProperty(M,Y,Object.getOwnPropertyDescriptor(z,Y))})}return M}function h(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function p(M,F){for(var z=0;z<F.length;z++){var Y=F[z];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(M,Y.key,Y)}}function v(M,F,z){return F&&p(M.prototype,F),z&&p(M,z),Object.defineProperty(M,"prototype",{writable:!1}),M}function y(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),F&&m(M,F)}function m(M,F){return m=Object.setPrototypeOf||function(Y,W){return Y.__proto__=W,Y},m(M,F)}function _(M){var F=C();return function(){var Y=E(M),W;if(F){var q=E(this).constructor;W=Reflect.construct(Y,arguments,q)}else W=Y.apply(this,arguments);return b(this,W)}}function b(M,F){if(F&&(t(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(M){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},E(M)}function R(M,F,z){return F in M?Object.defineProperty(M,F,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[F]=z,M}var A=(0,o.canUseDOM)()&&cCe(),I=function(M){y(z,M);var F=_(z);function z(Y){var W;return h(this,z),W=F.call(this,Y),R(S(W),"innerSliderRefHandler",function(q){return W.innerSlider=q}),R(S(W),"slickPrev",function(){return W.innerSlider.slickPrev()}),R(S(W),"slickNext",function(){return W.innerSlider.slickNext()}),R(S(W),"slickGoTo",function(q){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return W.innerSlider.slickGoTo(q,ae)}),R(S(W),"slickPause",function(){return W.innerSlider.pause("paused")}),R(S(W),"slickPlay",function(){return W.innerSlider.autoPlay("play")}),W.state={breakpoint:null},W._responsiveMediaHandlers=[],W}return v(z,[{key:"media",value:function(W,q){A.register(W,q),this._responsiveMediaHandlers.push({query:W,handler:q})}},{key:"componentDidMount",value:function(){var W=this;if(this.props.responsive){var q=this.props.responsive.map(function(ee){return ee.breakpoint});q.sort(function(ee,ce){return ee-ce}),q.forEach(function(ee,ce){var ue;ce===0?ue=(0,i.default)({minWidth:0,maxWidth:ee}):ue=(0,i.default)({minWidth:q[ce-1]+1,maxWidth:ee}),(0,o.canUseDOM)()&&W.media(ue,function(){W.setState({breakpoint:ee})})});var ae=(0,i.default)({minWidth:q.slice(-1)[0]});(0,o.canUseDOM)()&&this.media(ae,function(){W.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(W){A.unregister(W.query,W.handler)})}},{key:"render",value:function(){var W=this,q,ae;this.state.breakpoint?(ae=this.props.responsive.filter(function(ye){return ye.breakpoint===W.state.breakpoint}),q=ae[0].settings==="unslick"?"unslick":f(f(f({},a.default),this.props),ae[0].settings)):q=f(f({},a.default),this.props),q.centerMode&&(q.slidesToScroll>1,q.slidesToScroll=1),q.fade&&(q.slidesToShow>1,q.slidesToScroll>1,q.slidesToShow=1,q.slidesToScroll=1);var ee=n.default.Children.toArray(this.props.children);ee=ee.filter(function(ye){return typeof ye=="string"?!!ye.trim():!!ye}),q.variableWidth&&(q.rows>1||q.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),q.variableWidth=!1);for(var ce=[],ue=null,J=0;J<ee.length;J+=q.rows*q.slidesPerRow){for(var me=[],we=J;we<J+q.rows*q.slidesPerRow;we+=q.slidesPerRow){for(var Ce=[],Ee=we;Ee<we+q.slidesPerRow&&(q.variableWidth&&ee[Ee].props.style&&(ue=ee[Ee].props.style.width),!(Ee>=ee.length));Ee+=1)Ce.push(n.default.cloneElement(ee[Ee],{key:100*J+10*we+Ee,tabIndex:-1,style:{width:"".concat(100/q.slidesPerRow,"%"),display:"inline-block"}}));me.push(n.default.createElement("div",{key:10*J+we},Ce))}q.variableWidth?ce.push(n.default.createElement("div",{key:J,style:{width:ue}},me)):ce.push(n.default.createElement("div",{key:J},me))}if(q==="unslick"){var xe="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:xe},ee)}else ce.length<=q.slidesToShow&&(q.unslick=!0);return n.default.createElement(r.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},q),ce)}}]),z}(n.default.Component);e.default=I})(Pz);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Pz);function n(i){return i&&i.__esModule?i:{default:i}}var r=t.default;e.default=r})(Tz);const tj=vu(Tz),dCe={infinite:!0,speed:400,slidesToShow:3,slidesToScroll:1,autoplay:!0,arrows:!1,autoplaySpeed:6e3,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1}}]},fCe=({data:e=[],isLoading:t=!1})=>{var a,o;const n=w.useRef(null),r=w.useCallback(()=>{n.current&&n.current.slickNext()},[]),i=w.useCallback(()=>{n.current&&n.current.slickPrev()},[]);return T.jsxs($e,{w:"full",p:"20px",bg:"white",rounded:"md",borderColor:"gray.200",borderWidth:"1px",children:[T.jsxs(fi,{pb:"20px",justifyContent:"space-between",children:[T.jsxs($e,{children:[T.jsx(Ot,{as:"h1",fontSize:"lg",fontWeight:600,pb:"4px",children:"Latest articles"}),T.jsx(Ot,{as:"p",fontSize:"sm",color:"gray.500",children:"Inspire your productivity with the best new ideas in a variety of fields."})]}),(e==null?void 0:e.length)>3&&T.jsx($e,{children:T.jsxs(Fg,{spacing:"4px",direction:"row",children:[T.jsx(Km,{size:"sm",variant:"outline","aria-label":"Add to friends",icon:T.jsx(Cz,{}),onClick:()=>i()}),T.jsx(Km,{size:"sm",variant:"outline","aria-label":"Add to friends",icon:T.jsx(xz,{fontSize:"sm"}),onClick:()=>r()})]})})]}),t&&T.jsx($g,{gap:"20px",children:[...Array(3)].map((s,l)=>T.jsx(g6,{rounded:"md",height:"164px",w:"100%",startColor:"tc.gray.100",endColor:"tc.gray.400"},l))}),T.jsx($e,{w:"full",h:"full",sx:{".slick-slide > div":{margin:"0 10px",height:"100%"},".slick-list":{margin:"0 -10px"},".slick-track":{display:"flex !important"},".slick-slide":{height:"inherit !important"}},children:T.jsx(tj,{...dCe,ref:n,children:!t&&((o=(a=e==null?void 0:e.filter(s=>Number(s.publish)===1))==null?void 0:a.sort((s,l)=>s.postition-l.postition))==null?void 0:o.map((s,l)=>T.jsx($e,{overflow:"hidden",borderRadius:"8px",border:"1px solid #CBD5E0",transition:"0.2s all",onClick:()=>window.open(s.redirect_link,"_blank"),cursor:"pointer",children:T.jsxs($e,{h:"164px",w:"100%",position:"relative",children:[T.jsx(xu,{h:"164px",w:"100%",objectFit:"cover",alt:"image",src:s.image,fallbackSrc:"https://watchdiana.fail/blog/wp-content/themes/koji/assets/images/default-fallback-image.png"}),T.jsxs($e,{w:"full",position:"absolute",bottom:0,left:0,p:"8px",zIndex:4,children:[T.jsx(Ot,{fontSize:".75rem",color:"white",children:s.posted_at&&B6(new Date(s.posted_at),"PP")}),T.jsx(Ot,{color:"white",fontSize:".875rem",fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",noOfLines:2,_hover:{textDecorationStyle:"none"},children:s.title})]}),T.jsx($e,{zIndex:3,w:"full",h:"50%",position:"absolute",bottom:"0",left:"0",bg:"linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%)"})]})},l)))})})]})};var o8=Mg({displayName:"ExternalLinkIcon",path:T.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[T.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),T.jsx("path",{d:"M15 3h6v6"}),T.jsx("path",{d:"M10 14L21 3"})]})}),hCe=Mg({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),pCe=Mg({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),mCe=Mg({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),gCe=Mg({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});const vCe={infinite:!0,speed:400,slidesToShow:3,slidesToScroll:1,arrows:!1,autoplaySpeed:6e3,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1}}]},yCe=({data:e=[],isLoading:t=!1})=>{var a,o;const n=w.useRef(null),r=w.useCallback(()=>{n.current&&n.current.slickNext()},[]),i=w.useCallback(()=>{n.current&&n.current.slickPrev()},[]);return T.jsxs($e,{w:"full",p:"20px",bg:"white",rounded:"md",borderColor:"gray.200",borderWidth:"1px",children:[T.jsxs(fi,{pb:"20px",justifyContent:"space-between",children:[T.jsxs($e,{children:[T.jsx(Ot,{as:"h1",fontSize:"lg",fontWeight:600,pb:"4px",color:"gray.800",children:"What’s new"}),T.jsx(Ot,{as:"p",fontSize:"sm",color:"gray.500",children:"Keep you up to date on new features."})]}),(e==null?void 0:e.length)>3&&T.jsx($e,{children:T.jsxs(Fg,{spacing:"4px",direction:"row",children:[T.jsx(Km,{size:"sm",variant:"outline","aria-label":"Add to friends",icon:T.jsx(Cz,{}),onClick:()=>i()}),T.jsx(Km,{size:"sm",variant:"outline","aria-label":"Add to friends",icon:T.jsx(xz,{}),onClick:()=>r()})]})})]}),t&&T.jsx($g,{gap:"20px",children:[...Array(3)].map((s,l)=>T.jsx(g6,{rounded:"md",height:"164px",w:"100%",startColor:"tc.gray.100",endColor:"tc.gray.400"},l))}),T.jsx($e,{w:"full",h:"full",sx:{".slick-slide > div":{margin:"0 10px",height:"100%"},".slick-list":{margin:"0 -10px"},".slick-track":{display:"flex !important"},".slick-slide":{height:"inherit !important"}},children:T.jsx(tj,{...vCe,ref:n,children:!t&&((o=(a=e==null?void 0:e.filter(s=>Number(s.publish)===1))==null?void 0:a.sort((s,l)=>s.postition-l.postition))==null?void 0:o.map((s,l)=>T.jsxs($e,{borderRadius:"8px",border:"1px solid #CBD5E0",transition:"0.2s all",_hover:{shadow:"small"},p:"12px",h:"164px",bg:"gray.100",children:[T.jsx($e,{w:"100%",position:"relative",children:T.jsxs(fi,{alignItems:"center",justifyContent:"space-between",children:[T.jsx(Ot,{fontSize:"sm",fontWeight:"600",children:s.posted_at&&B6(new Date(s.posted_at),"PP")}),T.jsxs(T1,{color:"tc.blue.500",fontSize:".75rem",href:s.redirect_link,target:"_blank",isExternal:!0,display:"flex",alignItems:"center",children:["View ",T.jsx(o8,{mx:"2px"})]})]})}),T.jsx($e,{overflow:"auto",maxH:"auto",children:T.jsx(Eb,{mt:2,fontSize:".875rem",maxH:"110px",spacing:1,children:s.content_list.map((c,f)=>T.jsxs(GN,{color:"tc.green.600",display:"flex",alignItems:"center",children:[T.jsx(KN,{alignSelf:"start",as:Xwe,fontSize:"20px",fill:"tc.green.500"}),T.jsx(Ot,{color:"gray.800",children:c})]},f))})})]},l)))})})]})},_Ce=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/rating-0e14e36c.png").href:new URL("../assets/rating-0e14e36c.png",document.currentScript&&document.currentScript.src||document.baseURI).href);var bCe=function(){function e(t){this.parent=t}return e.prototype.send=function(t,n){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:send",[t,n]])},e.prototype.sendText=function(t){this.send("text",t)},e.prototype.sendFile=function(t){this.send("file",t)},e.prototype.sendAnimation=function(t){this.send("animation",t)},e.prototype.sendAudio=function(t){this.send("audio",t)},e.prototype.show=function(t,n){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:show",[t,n]])},e.prototype.showText=function(t){this.show("text",t)},e.prototype.showFile=function(t){this.show("file",t)},e.prototype.showAnimation=function(t){this.show("animation",t)},e.prototype.showAudio=function(t){this.show("audio",t)},e.prototype.showPicker=function(t){this.show("picker",t)},e.prototype.showField=function(t){this.show("field",t)},e.prototype.showCarousel=function(t){this.show("carousel",t)},e.prototype.markAsRead=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:read"])},e.prototype.startThread=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:thread:start",[t]])},e.prototype.endThread=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:thread:end",[t]])},e.prototype.onMessageSent=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:sent"]),window.$crisp.push(["on","message:sent",t])},e.prototype.onMessageReceived=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:received"]),window.$crisp.push(["on","message:received",t])},e.prototype.onMessageComposeSent=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:compose:sent"]),window.$crisp.push(["on","message:compose:sent",t])},e.prototype.onMessageComposeReceived=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:compose:received"]),window.$crisp.push(["on","message:compose:received",t])},e}(),SCe=function(){function e(t){this.parent=t}return e.prototype.setNickname=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:nickname",[t]])},e.prototype.setEmail=function(t,n){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:email",[t,n]])},e.prototype.setPhone=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:phone",[t]])},e.prototype.setAvatar=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:avatar",[t]])},e.prototype.setCompany=function(t,n){var r={};n&&n.url&&(r.url=n.url),n&&n.description&&(r.description=n.description),n&&n.employment&&(r.employment=[n.employment.title],n.employment.role&&r.employment.push(n.employment.role)),this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:company",[t,r]])},e.prototype.getEmail=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:email"):null},e.prototype.getPhone=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:phone"):null},e.prototype.getNickname=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:nickname"):null},e.prototype.getAvatar=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:avatar"):null},e.prototype.getCompany=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:company"):null},e.prototype.onEmailChanged=function(t){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:email:changed"]),window.$crisp.push(["on","user:email:changed",t]))},e.prototype.onPhoneChanged=function(t){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:phone:changed"]),window.$crisp.push(["on","user:phone:changed",t]))},e.prototype.onNicknameChanged=function(t){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:nickname:changed"]),window.$crisp.push(["on","user:nickname:changed",t]))},e.prototype.onAvatarChanged=function(t){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:avatar:changed"]),window.$crisp.push(["on","user:avatar:changed",t]))},e}(),wCe=function(){function e(t){this.parent=t}return e.prototype.run=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","trigger:run",[t]])},e}(),NC;(function(e){e.Red="red",e.Orange="orange",e.Yellow="yellow",e.Green="green",e.Blue="blue",e.Purple="purple",e.Pink="pink",e.Brown="brown",e.Grey="grey",e.Black="black"})(NC||(NC={}));var xCe=function(){function e(t){this.parent=t}return e.prototype.reset=function(t){t===void 0&&(t=!1),this.parent.isCrispInjected()&&window.$crisp.do("session:reset",[t])},e.prototype.setSegments=function(t,n){this.parent.createSingletonIfNecessary(),$crisp.push(["set","session:segments",[t,n]])},e.prototype.setData=function(t){var n=this,r=[];Object.entries(t).forEach(function(i){n.isValidDataValue(i[0])&&r.push([i[0],i[1]])}),this.parent.createSingletonIfNecessary(),$crisp.push(["set","session:data",[r]])},e.prototype.pushEvent=function(t,n,r){n===void 0&&(n={}),r===void 0&&(r=NC.Blue),this.parent.isCrispInjected()&&window.$crisp.push(["set","session:event",[[[t,n,r]]]])},e.prototype.getData=function(t){if(this.parent.isCrispInjected())return window.$crisp.get("session:data",t)},e.prototype.getIdentifier=function(){return this.parent.isCrispInjected()?window.$crisp.get("session:identifier"):null},e.prototype.onLoaded=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","session:loaded"]),window.$crisp.push(["on","session:loaded",t])},e.prototype.isValidDataValue=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"},e}(),CCe=function(){function e(t){this.parent=t}return e.prototype.show=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:show"])},e.prototype.hide=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:hide"])},e.prototype.open=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:open"])},e.prototype.close=function(){this.parent.isCrispInjected()&&window.$crisp.push(["do","chat:close"])},e.prototype.setHelpdeskView=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:search"])},e.prototype.openHelpdeskArticle=function(t,n,r,i){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:article:open",[t,n,r,i]])},e.prototype.queryHelpdesk=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:query",[t]])},e.prototype.unreadCount=function(){return this.parent.isCrispInjected()?window.$crisp.get("chat:unread:count"):0},e.prototype.isChatOpened=function(){return this.parent.isCrispInjected()?window.$crisp.is("chat:opened"):!1},e.prototype.isVisible=function(){return this.parent.isCrispInjected()?window.$crisp.is("chat:visible"):!1},e.prototype.onChatInitiated=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:initiated"]),window.$crisp.push(["on","chat:initiated",t])},e.prototype.onChatOpened=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:opened"]),window.$crisp.push(["on","chat:opened",t])},e.prototype.onChatClosed=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:closed"]),window.$crisp.push(["on","chat:closed",t])},e.prototype.onHelpdeskQueried=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","helpdesk:queried"]),window.$crisp.push(["on","helpdesk:queried",t])},e}(),lR;(function(e){e.Default="default",e.Amber="amber",e.Black="black",e.Blue="blue",e.BlueGrey="blue_grey",e.LightBlue="light_blue",e.Brown="brown",e.Cyan="cyan",e.Green="green",e.LightGreen="light_green",e.Grey="grey",e.Indigo="indigo",e.Orange="orange",e.DeepOrange="deep_orange",e.Pink="pink",e.Purple="purple",e.DeepPurple="deep_purple",e.Red="red",e.Teal="teal"})(lR||(lR={}));var FC;(function(e){e.Left="left",e.Right="right"})(FC||(FC={}));var ECe=function(){function e(){this.clientUrl="https://client.crisp.chat/l.js",this.websiteId="",this.autoload=!0,this.injected=!1,this.chat=new CCe(this),this.session=new xCe(this),this.user=new SCe(this),this.message=new bCe(this),this.trigger=new wCe(this)}return e.prototype.configure=function(t,n){n===void 0&&(n={}),this.websiteId=t,this.tokenId=n.tokenId,this.locale=n.locale,this.sessionMerge=n.sessionMerge,this.cookieDomain=n.cookieDomain,this.cookieExpire=n.cookieExpire,this.lockFullview=n.lockFullview,this.lockMaximized=n.lockMaximized,this.safeMode=n.safeMode,n.clientUrl!==void 0&&(this.clientUrl=n.clientUrl),n.autoload!==void 0&&(this.autoload=n.autoload),this.autoload&&this.load()},e.prototype.load=function(){var t=document.getElementsByTagName("head");if(this.createSingletonIfNecessary(),this.isCrispInjected()!==!0){if(!this.websiteId)throw new Error("websiteId must be set before loading Crisp");if(window.CRISP_WEBSITE_ID=this.websiteId,window.CRISP_RUNTIME_CONFIG={},this.tokenId&&(window.CRISP_TOKEN_ID=this.tokenId),this.sessionMerge&&(window.CRISP_RUNTIME_CONFIG.session_merge=!0),this.locale&&(window.CRISP_RUNTIME_CONFIG.locale=this.locale),this.lockFullview&&(window.CRISP_RUNTIME_CONFIG.lock_full_view=!0),this.lockMaximized&&(window.CRISP_RUNTIME_CONFIG.lock_maximized=!0),this.cookieDomain&&(window.CRISP_COOKIE_DOMAIN=this.cookieDomain),this.cookieExpire&&(window.CRISP_COOKIE_EXPIRE=this.cookieExpire),!t||!t[0])return this.deferredLoading();this.safeMode===!0&&this.setSafeMode(!0);var n=document.createElement("script");n.src=this.clientUrl,n.async=!0,t[0].appendChild(n),this.injected=!0}},e.prototype.setTokenId=function(t){this.tokenId=t,this.isCrispInjected()===!0&&(t?window.CRISP_TOKEN_ID=t:delete window.CRISP_TOKEN_ID)},e.prototype.setZIndex=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","container:index",[t]])},e.prototype.setColorTheme=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","color:theme",[t]])},e.prototype.setHideOnAway=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:on:away",[t]])},e.prototype.setHideOnMobile=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:on:mobile",[t]])},e.prototype.setPosition=function(t){this.createSingletonIfNecessary(),$crisp.push(["config","position:reverse",[t===FC.Left]])},e.prototype.setAvailabilityTooltip=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","availability:tooltip",[t]])},e.prototype.setVacationMode=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:vacation",[t]])},e.prototype.setSafeMode=function(t){t===void 0&&(t=!0),this.createSingletonIfNecessary(),window.$crisp.push(["safe",t])},e.prototype.muteSound=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","sound:mute",[t]])},e.prototype.toggleOperatorCount=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","show:operator:count",[t]])},e.prototype.onWebsiteAvailabilityChanged=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["off","website:availability:changed"]),window.$crisp.push(["on","website:availability:changed",t])},e.prototype.createSingletonIfNecessary=function(){window.$crisp===void 0&&(window.$crisp=[])},e.prototype.autoInjectIfNecessary=function(){this.isCrispInjected()||this.load()},e.prototype.isCrispInjected=function(){return!!(this.injected===!0||window.$crisp&&window.$crisp.is)},e.prototype.deferredLoading=function(){var t=this;document.addEventListener("DOMContentLoaded",function(){t.load()})},e}(),La=new ECe;class kCe{constructor(t){Xv(this,"crispWebsiteId");Xv(this,"message","");this.crispWebsiteId=t,La.configure(this.crispWebsiteId,{autoload:!1})}initCrispChat(t,n){const r=this.getCrispSessionData(t,n);La.setTokenId(t.id),La.user.setEmail(t.email),La.user.setNickname(t.name||t.email),La.session.setData(r),La.load()}toggleBubble(){return La.chat.isChatOpened()?(La.chat.close(),this):(La.chat.open(),this)}openBubble(){return La.chat.open(),this}closeBubble(){return La.chat.close(),this}textMessage(t){return this.message=t,this}send(){if(!this.message)throw new Error("Message is required before sending");return La.message.sendText(this.message),this.message="",this}getCrispSessionData(t,n){const r={wp_status:!0,wp_domain:t.domain,wp_version:t.platform_version,wp_tc_version:t.app_version,wp_tc_plan:t.app_plan,wp_tc_status:t.status,...n};return Object.entries(r).reduce((a,[o,s])=>({...a,[o]:s||"null"}),{})}}const $C=new kCe(Z_e),TCe=()=>{const{t:e}=C6();return T.jsx($e,{p:5,bg:"gray.100",borderRadius:"lg",w:"full",children:T.jsxs(fi,{gap:6,children:[T.jsxs(vh,{w:"50%",spacing:3,align:"stretch",flex:"1",children:[T.jsxs(fi,{gap:3,children:[T.jsx(JN,{size:"sm",color:"gray.800",children:e("dashboard.rate_title")}),T.jsx(fi,{gap:2,children:[...Array(5)].map((t,n)=>T.jsx(Wt,{as:Ywe},n))}),T.jsxs($e,{fontSize:".75rem",children:[e("common.on")," ",T.jsxs(T1,{color:"tc.blue.500",href:"https://wordpress.org/plugins/transcy/",target:"_blank",isExternal:!0,children:["wordpress.org ",T.jsx(o8,{mx:"2px"})]})]})]}),T.jsx($e,{fontSize:".875rem",color:"gray.800",children:T.jsx(x6,{components:{br:T.jsx("br",{})},i18nKey:"dashboard.rate_desc"})}),T.jsxs(fi,{gap:"8px",fontSize:".75rem",alignItems:"center",children:[T.jsx(Ot,{color:"tc.gray.550",fontSize:"xs",flex:"1",children:e("dashboard.rate_footer")}),T.jsxs(T1,{color:"tc.blue.500",onClick:()=>$C.toggleBubble(),isExternal:!0,display:"flex",alignItems:"center",gap:"1px",children:[T.jsx(Wt,{as:Kwe,fontSize:"24px"}),"Need help?"]})]})]}),T.jsx(xu,{objectFit:"contain",w:"max-content",src:_Ce,alt:"rating"})]})})},PCe=()=>{const{data:e,apiData:t,loading:n}=uxe(),{articlesData:r,newsData:i}=t;return T.jsxs(vh,{spacing:"24px",mx:"auto",pt:"24px",children:[T.jsx(pxe,{quickActionData:e.quickActionData,mainQuickActionData:e.mainQuickActionData}),T.jsx(fCe,{data:(r==null?void 0:r.data)||[],isLoading:n.isArticleDataLoading}),T.jsx(yCe,{data:(i==null?void 0:i.data)||[],isLoading:n.isNewDataLoading}),T.jsx(TCe,{})]})},OCe="https://support.fireapps.io/en/article/wordpress-get-started-with-transcy-plugin-1qkxmz/",RCe=()=>{var r,i;const e=Ao(),t=(r=e.data)==null?void 0:r.data.subscription_billing_deadline_at;return((i=e.data)==null?void 0:i.data.subscription_alert)?T.jsxs(xb,{status:"error",variant:"left-accent",my:"24px",rounded:"md",children:[T.jsx(W4,{}),T.jsxs($e,{children:[T.jsx(q4,{children:nO("dashboard.subscriptionDeadline_title")}),T.jsx(H4,{children:nO("dashboard.subscriptionDeadline_description",{date:B6(new Date(t||new Date),"PP")})})]})]}):T.jsx(T.Fragment,{})},nj="1",uR="TC_PLUGIN_CRISP_OPEN_AT_FIRST_TIME",cR="TC_PLUGIN_DISPLAYED_COUNT_DOWN_BAR",ACe=()=>{var l,c;const e=Ao(),t=((l=e.data)==null?void 0:l.data.remaining_trial_days)||0,n=((c=e.data)==null?void 0:c.data.app_plan)||Yl.FREE,[r,i]=w.useState(!0),a=t>0&&t<=2&&n!==Yl.FREE&&!localStorage.getItem(cR),o=()=>{localStorage.setItem(cR,nj),i(!1)},s=async()=>{await Qo({adminRedirectUrl:`${kr.EXTERNAL_ROUTES.PRICING_DETAIL}/${Yl.STARTER}`,queryString:{parentPath:kr.EXTERNAL_ROUTES.PRICING,planName:Yl.STARTER}})};return a?T.jsxs(xb,{display:r?"flex":"none",status:"info",variant:"solid",rounded:"md",my:"24px",children:[T.jsx(Wt,{as:hCe,fill:"white",mr:"12px"}),T.jsxs(Ot,{color:"white",children:["Trial ends in"," ",T.jsxs(Ot,{as:"span",color:"white",fontWeight:"bold",children:[t," ",A$("day",t),"!"]})," ","Choose a plan that fits your needs to avoid any interruptions."]}),T.jsx(QN,{}),T.jsxs($g,{gap:"12px",children:[T.jsx(Jr,{variant:"outline",borderColor:"white",bg:"transparent",borderWidth:"1px",color:"white",size:"sm",_hover:{bg:"whiteAlpha.100"},onClick:s,children:"Approve subscription"}),T.jsx(o6,{borderColor:"whiteAlpha.500",borderLeftWidth:"1px"}),T.jsx(pCe,{cursor:"pointer",onClick:o,fontSize:"12px"})]})]}):T.jsx(T.Fragment,{})},Ry="2",dR=({isEnableHeader:e=!0,containerProps:t={}})=>T.jsxs($e,{bg:"gray.50",minH:"100vh",paddingTop:`${Ry}rem`,paddingBottom:`${Ry}rem`,paddingInlineStart:"1.5rem",paddingInlineEnd:"1.5rem",...t,children:[e&&T.jsx(sxe,{}),T.jsx(RCe,{}),T.jsx(ACe,{}),T.jsx(tF,{as:"main",maxW:"800px",p:"0",minH:`calc(100vh - ${Ry}rem * 2)`,children:T.jsx(P6,{})})]}),ICe=()=>T.jsxs($e,{pt:`calc(100px - ${Ry}rem)`,children:[T.jsx(Jr,{variant:"link",colorScheme:"blue",position:"absolute",top:"40px",fontWeight:500,right:"35px",rightIcon:T.jsx(Wt,{as:o8}),transform:"translate(0%, 0)",onClick:()=>window.open(OCe,"_blank"),children:"Get Started guide"}),T.jsx(hu,{flexDirection:"column",gap:"32px",children:T.jsx(Ez,{mode:"full"})}),T.jsx(P6,{})]});var ev=e=>e.type==="checkbox",hf=e=>e instanceof Date,Ti=e=>e==null;const rj=e=>typeof e=="object";var Or=e=>!Ti(e)&&!Array.isArray(e)&&rj(e)&&!hf(e),ij=e=>Or(e)&&e.target?ev(e.target)?e.target.checked:e.target.value:e,LCe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,aj=(e,t)=>e.has(LCe(t)),MCe=e=>{const t=e.constructor&&e.constructor.prototype;return Or(t)&&t.hasOwnProperty("isPrototypeOf")},s8=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function uo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(s8&&(e instanceof Blob||e instanceof FileList))&&(n||Or(e)))if(t=n?[]:{},!n&&!MCe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=uo(e[r]));else return e;return t}var tv=e=>Array.isArray(e)?e.filter(Boolean):[],ar=e=>e===void 0,Fe=(e,t,n)=>{if(!t||!Or(e))return n;const r=tv(t.split(/[,[\].]+?/)).reduce((i,a)=>Ti(i)?i:i[a],e);return ar(r)||r===e?ar(e[t])?n:e[t]:r};const l_={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},go={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},As={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},oj=ve.createContext(null),wh=()=>ve.useContext(oj),DCe=e=>{const{children:t,...n}=e;return ve.createElement(oj.Provider,{value:n},t)};var sj=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==go.all&&(t._proxyFormState[o]=!r||go.all),n&&(n[o]=!0),e[o]}});return i},Fa=e=>Or(e)&&!Object.keys(e).length,lj=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Fa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||go.all))},Ay=e=>Array.isArray(e)?e:[e],uj=(e,t,n)=>n&&t?e===t||Array.isArray(e)&&e.some(r=>r&&n&&r===t):!e||!t||e===t||Ay(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function l8(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function NCe(e){const t=wh(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=ve.useState(n._formState),l=ve.useRef(!0),c=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=ve.useRef(i);return f.current=i,l8({disabled:r,next:h=>l.current&&uj(f.current,h.name,a)&&lj(h,c.current,n._updateFormState)&&s({...n._formState,...h}),subject:n._subjects.state}),ve.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),sj(o,n,c.current,!1)}var Jo=e=>typeof e=="string",cj=(e,t,n,r,i)=>Jo(e)?(r&&t.watch.add(e),Fe(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Fe(n,a))):(r&&(t.watchAll=!0),n);function FCe(e){const t=wh(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=ve.useRef(r);s.current=r,l8({disabled:a,subject:n._subjects.values,next:f=>{uj(s.current,f.name,o)&&c(uo(cj(s.current,n._names,f.values||n._formValues,!1,i)))}});const[l,c]=ve.useState(n._getWatch(r,i));return ve.useEffect(()=>n._removeUnmounted()),l}var u8=e=>/^\w*$/.test(e),dj=e=>tv(e.replace(/["|']|\]/g,"").split(/\.|\[/));function vn(e,t,n){let r=-1;const i=u8(t)?[t]:dj(t),a=i.length,o=a-1;for(;++r<a;){const s=i[r];let l=n;if(r!==o){const c=e[s];l=Or(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}e[s]=l,e=e[s]}return e}function $Ce(e){const t=wh(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=aj(i._names.array,n),s=FCe({control:i,name:n,defaultValue:Fe(i._formValues,n,Fe(i._defaultValues,n,e.defaultValue)),exact:!0}),l=NCe({control:i,name:n}),c=ve.useRef(i.register(n,{...e.rules,value:s}));return c.current=i.register(n,e.rules),ve.useEffect(()=>{const f=i._options.shouldUnregister||a,h=(p,v)=>{const y=Fe(i._fields,p);y&&(y._f.mount=v)};if(h(n,!0),f){const p=uo(Fe(i._options.defaultValues,n));vn(i._defaultValues,n,p),ar(Fe(i._formValues,n))&&vn(i._formValues,n,p)}return()=>{(o?f&&!i._state.action:f)?i.unregister(n):h(n,!1)}},[n,i,o,a]),ve.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),{field:{name:n,value:s,disabled:r,onChange:ve.useCallback(f=>c.current.onChange({target:{value:ij(f),name:n},type:l_.CHANGE}),[n]),onBlur:ve.useCallback(()=>c.current.onBlur({target:{value:Fe(i._formValues,n),name:n},type:l_.BLUR}),[n,i]),ref:f=>{const h=Fe(i._fields,n);h&&f&&(h._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:p=>f.setCustomValidity(p),reportValidity:()=>f.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Fe(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Fe(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Fe(l.touchedFields,n)},error:{enumerable:!0,get:()=>Fe(l.errors,n)}})}}const fj=e=>e.render($Ce(e));var hj=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const zC=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=Fe(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Or(o)&&zC(o,t)}}};var fR=e=>({isOnSubmit:!e||e===go.onSubmit,isOnBlur:e===go.onBlur,isOnChange:e===go.onChange,isOnAll:e===go.all,isOnTouch:e===go.onTouched}),hR=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),zCe=(e,t,n)=>{const r=tv(Fe(e,n));return vn(r,"root",t[n]),vn(e,n,r),e},uc=e=>typeof e=="boolean",c8=e=>e.type==="file",Zl=e=>typeof e=="function",u_=e=>{if(!s8)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Iy=e=>Jo(e),d8=e=>e.type==="radio",c_=e=>e instanceof RegExp;const pR={value:!1,isValid:!1},mR={value:!0,isValid:!0};var pj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ar(e[0].attributes.value)?ar(e[0].value)||e[0].value===""?mR:{value:e[0].value,isValid:!0}:mR:pR}return pR};const gR={isValid:!1,value:null};var mj=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,gR):gR;function vR(e,t,n="validate"){if(Iy(e)||Array.isArray(e)&&e.every(Iy)||uc(e)&&!e)return{type:n,message:Iy(e)?e:"",ref:t}}var Od=e=>Or(e)&&!c_(e)?e:{value:e,message:""},yR=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:f,max:h,pattern:p,validate:v,name:y,valueAsNumber:m,mount:_,disabled:b}=e._f,S=Fe(t,y);if(!_||b)return{};const C=o?o[0]:a,E=W=>{r&&C.reportValidity&&(C.setCustomValidity(uc(W)?"":W||""),C.reportValidity())},R={},A=d8(a),I=ev(a),M=A||I,F=(m||c8(a))&&ar(a.value)&&ar(S)||u_(a)&&a.value===""||S===""||Array.isArray(S)&&!S.length,z=hj.bind(null,y,n,R),Y=(W,q,ae,ee=As.maxLength,ce=As.minLength)=>{const ue=W?q:ae;R[y]={type:W?ee:ce,message:ue,ref:a,...z(W?ee:ce,ue)}};if(i?!Array.isArray(S)||!S.length:s&&(!M&&(F||Ti(S))||uc(S)&&!S||I&&!pj(o).isValid||A&&!mj(o).isValid)){const{value:W,message:q}=Iy(s)?{value:!!s,message:s}:Od(s);if(W&&(R[y]={type:As.required,message:q,ref:C,...z(As.required,q)},!n))return E(q),R}if(!F&&(!Ti(f)||!Ti(h))){let W,q;const ae=Od(h),ee=Od(f);if(!Ti(S)&&!isNaN(S)){const ce=a.valueAsNumber||S&&+S;Ti(ae.value)||(W=ce>ae.value),Ti(ee.value)||(q=ce<ee.value)}else{const ce=a.valueAsDate||new Date(S),ue=we=>new Date(new Date().toDateString()+" "+we),J=a.type=="time",me=a.type=="week";Jo(ae.value)&&S&&(W=J?ue(S)>ue(ae.value):me?S>ae.value:ce>new Date(ae.value)),Jo(ee.value)&&S&&(q=J?ue(S)<ue(ee.value):me?S<ee.value:ce<new Date(ee.value))}if((W||q)&&(Y(!!W,ae.message,ee.message,As.max,As.min),!n))return E(R[y].message),R}if((l||c)&&!F&&(Jo(S)||i&&Array.isArray(S))){const W=Od(l),q=Od(c),ae=!Ti(W.value)&&S.length>+W.value,ee=!Ti(q.value)&&S.length<+q.value;if((ae||ee)&&(Y(ae,W.message,q.message),!n))return E(R[y].message),R}if(p&&!F&&Jo(S)){const{value:W,message:q}=Od(p);if(c_(W)&&!S.match(W)&&(R[y]={type:As.pattern,message:q,ref:a,...z(As.pattern,q)},!n))return E(q),R}if(v){if(Zl(v)){const W=await v(S,t),q=vR(W,C);if(q&&(R[y]={...q,...z(As.validate,q.message)},!n))return E(q.message),R}else if(Or(v)){let W={};for(const q in v){if(!Fa(W)&&!n)break;const ae=vR(await v[q](S,t),C,q);ae&&(W={...ae,...z(q,ae.message)},E(ae.message),n&&(R[y]=W))}if(!Fa(W)&&(R[y]={ref:C,...W},!n))return R}}return E(!0),R};function jCe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ar(e)?r++:e[t[r++]];return e}function BCe(e){for(const t in e)if(e.hasOwnProperty(t)&&!ar(e[t]))return!1;return!0}function Kr(e,t){const n=Array.isArray(t)?t:u8(t)?[t]:dj(t),r=n.length===1?e:jCe(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Or(r)&&Fa(r)||Array.isArray(r)&&BCe(r))&&Kr(e,n.slice(0,-1)),e}function Jw(){let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var d_=e=>Ti(e)||!rj(e);function cc(e,t){if(d_(e)||d_(t))return e===t;if(hf(e)&&hf(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(hf(a)&&hf(o)||Or(a)&&Or(o)||Array.isArray(a)&&Array.isArray(o)?!cc(a,o):a!==o)return!1}}return!0}var gj=e=>e.type==="select-multiple",VCe=e=>d8(e)||ev(e),ex=e=>u_(e)&&e.isConnected,vj=e=>{for(const t in e)if(Zl(e[t]))return!0;return!1};function f_(e,t={}){const n=Array.isArray(e);if(Or(e)||n)for(const r in e)Array.isArray(e[r])||Or(e[r])&&!vj(e[r])?(t[r]=Array.isArray(e[r])?[]:{},f_(e[r],t[r])):Ti(e[r])||(t[r]=!0);return t}function yj(e,t,n){const r=Array.isArray(e);if(Or(e)||r)for(const i in e)Array.isArray(e[i])||Or(e[i])&&!vj(e[i])?ar(t)||d_(n[i])?n[i]=Array.isArray(e[i])?f_(e[i],[]):{...f_(e[i])}:yj(e[i],Ti(t)?{}:t[i],n[i]):n[i]=!cc(e[i],t[i]);return n}var tx=(e,t)=>yj(e,t,f_(t)),_j=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ar(e)?e:t?e===""?NaN:e&&+e:n&&Jo(e)?new Date(e):r?r(e):e;function nx(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return c8(t)?t.files:d8(t)?mj(e.refs).value:gj(t)?[...t.selectedOptions].map(({value:n})=>n):ev(t)?pj(e.refs).value:_j(ar(t.value)?e.ref.value:t.value,e)}var UCe=(e,t,n,r)=>{const i={};for(const a of e){const o=Fe(t,a);o&&vn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Op=e=>ar(e)?e:c_(e)?e.source:Or(e)?c_(e.value)?e.value.source:e.value:e,HCe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _R(e,t,n){const r=Fe(e,n);if(r||u8(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=Fe(t,a),s=Fe(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var WCe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,qCe=(e,t)=>!tv(Fe(e,t)).length&&Kr(e,t);const GCe={mode:go.onSubmit,reValidateMode:go.onChange,shouldFocusError:!0};function KCe(e={},t){let n={...GCe,...e},r={submitCount:0,isDirty:!1,isLoading:Zl(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Or(n.defaultValues)||Or(n.values)?uo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:uo(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,f=0;const h={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Jw(),array:Jw(),state:Jw()},v=e.resetOptions&&e.resetOptions.keepDirtyValues,y=fR(n.mode),m=fR(n.reValidateMode),_=n.criteriaMode===go.all,b=B=>X=>{clearTimeout(f),f=setTimeout(B,X)},S=async B=>{if(h.isValid||B){const X=n.resolver?Fa((await F()).errors):await Y(i,!0);X!==r.isValid&&p.state.next({isValid:X})}},C=B=>h.isValidating&&p.state.next({isValidating:B}),E=(B,X=[],oe,Se,_e=!0,ge=!0)=>{if(Se&&oe){if(s.action=!0,ge&&Array.isArray(Fe(i,B))){const Ie=oe(Fe(i,B),Se.argA,Se.argB);_e&&vn(i,B,Ie)}if(ge&&Array.isArray(Fe(r.errors,B))){const Ie=oe(Fe(r.errors,B),Se.argA,Se.argB);_e&&vn(r.errors,B,Ie),qCe(r.errors,B)}if(h.touchedFields&&ge&&Array.isArray(Fe(r.touchedFields,B))){const Ie=oe(Fe(r.touchedFields,B),Se.argA,Se.argB);_e&&vn(r.touchedFields,B,Ie)}h.dirtyFields&&(r.dirtyFields=tx(a,o)),p.state.next({name:B,isDirty:q(B,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else vn(o,B,X)},R=(B,X)=>{vn(r.errors,B,X),p.state.next({errors:r.errors})},A=(B,X,oe,Se)=>{const _e=Fe(i,B);if(_e){const ge=Fe(o,B,ar(oe)?Fe(a,B):oe);ar(ge)||Se&&Se.defaultChecked||X?vn(o,B,X?ge:nx(_e._f)):ce(B,ge),s.mount&&S()}},I=(B,X,oe,Se,_e)=>{let ge=!1,Ie=!1;const Ft={name:B};if(!oe||Se){h.isDirty&&(Ie=r.isDirty,r.isDirty=Ft.isDirty=q(),ge=Ie!==Ft.isDirty);const Ge=cc(Fe(a,B),X);Ie=Fe(r.dirtyFields,B),Ge?Kr(r.dirtyFields,B):vn(r.dirtyFields,B,!0),Ft.dirtyFields=r.dirtyFields,ge=ge||h.dirtyFields&&Ie!==!Ge}if(oe){const Ge=Fe(r.touchedFields,B);Ge||(vn(r.touchedFields,B,oe),Ft.touchedFields=r.touchedFields,ge=ge||h.touchedFields&&Ge!==oe)}return ge&&_e&&p.state.next(Ft),ge?Ft:{}},M=(B,X,oe,Se)=>{const _e=Fe(r.errors,B),ge=h.isValid&&uc(X)&&r.isValid!==X;if(e.delayError&&oe?(c=b(()=>R(B,oe)),c(e.delayError)):(clearTimeout(f),c=null,oe?vn(r.errors,B,oe):Kr(r.errors,B)),(oe?!cc(_e,oe):_e)||!Fa(Se)||ge){const Ie={...Se,...ge&&uc(X)?{isValid:X}:{},errors:r.errors,name:B};r={...r,...Ie},p.state.next(Ie)}C(!1)},F=async B=>n.resolver(o,n.context,UCe(B||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),z=async B=>{const{errors:X}=await F(B);if(B)for(const oe of B){const Se=Fe(X,oe);Se?vn(r.errors,oe,Se):Kr(r.errors,oe)}else r.errors=X;return X},Y=async(B,X,oe={valid:!0})=>{for(const Se in B){const _e=B[Se];if(_e){const{_f:ge,...Ie}=_e;if(ge){const Ft=l.array.has(ge.name),Ge=await yR(_e,o,_,n.shouldUseNativeValidation&&!X,Ft);if(Ge[ge.name]&&(oe.valid=!1,X))break;!X&&(Fe(Ge,ge.name)?Ft?zCe(r.errors,Ge,ge.name):vn(r.errors,ge.name,Ge[ge.name]):Kr(r.errors,ge.name))}Ie&&await Y(Ie,X,oe)}}return oe.valid},W=()=>{for(const B of l.unMount){const X=Fe(i,B);X&&(X._f.refs?X._f.refs.every(oe=>!ex(oe)):!ex(X._f.ref))&&Ae(B)}l.unMount=new Set},q=(B,X)=>(B&&X&&vn(o,B,X),!cc(Ce(),a)),ae=(B,X,oe)=>cj(B,l,{...s.mount?o:ar(X)?a:Jo(B)?{[B]:X}:X},oe,X),ee=B=>tv(Fe(s.mount?o:a,B,e.shouldUnregister?Fe(a,B,[]):[])),ce=(B,X,oe={})=>{const Se=Fe(i,B);let _e=X;if(Se){const ge=Se._f;ge&&(!ge.disabled&&vn(o,B,_j(X,ge)),_e=u_(ge.ref)&&Ti(X)?"":X,gj(ge.ref)?[...ge.ref.options].forEach(Ie=>Ie.selected=_e.includes(Ie.value)):ge.refs?ev(ge.ref)?ge.refs.length>1?ge.refs.forEach(Ie=>(!Ie.defaultChecked||!Ie.disabled)&&(Ie.checked=Array.isArray(_e)?!!_e.find(Ft=>Ft===Ie.value):_e===Ie.value)):ge.refs[0]&&(ge.refs[0].checked=!!_e):ge.refs.forEach(Ie=>Ie.checked=Ie.value===_e):c8(ge.ref)?ge.ref.value="":(ge.ref.value=_e,ge.ref.type||p.values.next({name:B,values:{...o}})))}(oe.shouldDirty||oe.shouldTouch)&&I(B,_e,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&we(B)},ue=(B,X,oe)=>{for(const Se in X){const _e=X[Se],ge=`${B}.${Se}`,Ie=Fe(i,ge);(l.array.has(B)||!d_(_e)||Ie&&!Ie._f)&&!hf(_e)?ue(ge,_e,oe):ce(ge,_e,oe)}},J=(B,X,oe={})=>{const Se=Fe(i,B),_e=l.array.has(B),ge=uo(X);vn(o,B,ge),_e?(p.array.next({name:B,values:{...o}}),(h.isDirty||h.dirtyFields)&&oe.shouldDirty&&p.state.next({name:B,dirtyFields:tx(a,o),isDirty:q(B,ge)})):Se&&!Se._f&&!Ti(ge)?ue(B,ge,oe):ce(B,ge,oe),hR(B,l)&&p.state.next({...r}),p.values.next({name:B,values:{...o}}),!s.mount&&t()},me=async B=>{const X=B.target;let oe=X.name,Se=!0;const _e=Fe(i,oe),ge=()=>X.type?nx(_e._f):ij(B);if(_e){let Ie,Ft;const Ge=ge(),Kn=B.type===l_.BLUR||B.type===l_.FOCUS_OUT,Dn=!HCe(_e._f)&&!n.resolver&&!Fe(r.errors,oe)&&!_e._f.deps||WCe(Kn,Fe(r.touchedFields,oe),r.isSubmitted,m,y),rn=hR(oe,l,Kn);vn(o,oe,Ge),Kn?(_e._f.onBlur&&_e._f.onBlur(B),c&&c(0)):_e._f.onChange&&_e._f.onChange(B);const ur=I(oe,Ge,Kn,!1),ti=!Fa(ur)||rn;if(!Kn&&p.values.next({name:oe,type:B.type,values:{...o}}),Dn)return h.isValid&&S(),ti&&p.state.next({name:oe,...rn?{}:ur});if(!Kn&&rn&&p.state.next({...r}),C(!0),n.resolver){const{errors:Yn}=await F([oe]),ni=_R(r.errors,i,oe),Ur=_R(Yn,i,ni.name||oe);Ie=Ur.error,oe=Ur.name,Ft=Fa(Yn)}else Ie=(await yR(_e,o,_,n.shouldUseNativeValidation))[oe],Se=isNaN(Ge)||Ge===Fe(o,oe,Ge),Se&&(Ie?Ft=!1:h.isValid&&(Ft=await Y(i,!0)));Se&&(_e._f.deps&&we(_e._f.deps),M(oe,Ft,Ie,ur))}},we=async(B,X={})=>{let oe,Se;const _e=Ay(B);if(C(!0),n.resolver){const ge=await z(ar(B)?B:_e);oe=Fa(ge),Se=B?!_e.some(Ie=>Fe(ge,Ie)):oe}else B?(Se=(await Promise.all(_e.map(async ge=>{const Ie=Fe(i,ge);return await Y(Ie&&Ie._f?{[ge]:Ie}:Ie)}))).every(Boolean),!(!Se&&!r.isValid)&&S()):Se=oe=await Y(i);return p.state.next({...!Jo(B)||h.isValid&&oe!==r.isValid?{}:{name:B},...n.resolver||!B?{isValid:oe}:{},errors:r.errors,isValidating:!1}),X.shouldFocus&&!Se&&zC(i,ge=>ge&&Fe(r.errors,ge),B?_e:l.mount),Se},Ce=B=>{const X={...a,...s.mount?o:{}};return ar(B)?X:Jo(B)?Fe(X,B):B.map(oe=>Fe(X,oe))},Ee=(B,X)=>({invalid:!!Fe((X||r).errors,B),isDirty:!!Fe((X||r).dirtyFields,B),isTouched:!!Fe((X||r).touchedFields,B),error:Fe((X||r).errors,B)}),xe=B=>{B&&Ay(B).forEach(X=>Kr(r.errors,X)),p.state.next({errors:B?r.errors:{}})},ye=(B,X,oe)=>{const Se=(Fe(i,B,{_f:{}})._f||{}).ref;vn(r.errors,B,{...X,ref:Se}),p.state.next({name:B,errors:r.errors,isValid:!1}),oe&&oe.shouldFocus&&Se&&Se.focus&&Se.focus()},Le=(B,X)=>Zl(B)?p.values.subscribe({next:oe=>B(ae(void 0,X),oe)}):ae(B,X,!0),Ae=(B,X={})=>{for(const oe of B?Ay(B):l.mount)l.mount.delete(oe),l.array.delete(oe),X.keepValue||(Kr(i,oe),Kr(o,oe)),!X.keepError&&Kr(r.errors,oe),!X.keepDirty&&Kr(r.dirtyFields,oe),!X.keepTouched&&Kr(r.touchedFields,oe),!n.shouldUnregister&&!X.keepDefaultValue&&Kr(a,oe);p.values.next({values:{...o}}),p.state.next({...r,...X.keepDirty?{isDirty:q()}:{}}),!X.keepIsValid&&S()},it=({disabled:B,name:X,field:oe,fields:Se})=>{if(uc(B)){const _e=B?void 0:Fe(o,X,nx(oe?oe._f:Fe(Se,X)._f));vn(o,X,_e),I(X,_e,!1,!1,!0)}},Ye=(B,X={})=>{let oe=Fe(i,B);const Se=uc(X.disabled);return vn(i,B,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:B}},name:B,mount:!0,...X}}),l.mount.add(B),oe?it({field:oe,disabled:X.disabled,name:B}):A(B,!0,X.value),{...Se?{disabled:X.disabled}:{},...n.progressive?{required:!!X.required,min:Op(X.min),max:Op(X.max),minLength:Op(X.minLength),maxLength:Op(X.maxLength),pattern:Op(X.pattern)}:{},name:B,onChange:me,onBlur:me,ref:_e=>{if(_e){Ye(B,X),oe=Fe(i,B);const ge=ar(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,Ie=VCe(ge),Ft=oe._f.refs||[];if(Ie?Ft.find(Ge=>Ge===ge):ge===oe._f.ref)return;vn(i,B,{_f:{...oe._f,...Ie?{refs:[...Ft.filter(ex),ge,...Array.isArray(Fe(a,B))?[{}]:[]],ref:{type:ge.type,name:B}}:{ref:ge}}}),A(B,!1,void 0,ge)}else oe=Fe(i,B,{}),oe._f&&(oe._f.mount=!1),(n.shouldUnregister||X.shouldUnregister)&&!(aj(l.array,B)&&s.action)&&l.unMount.add(B)}}},nt=()=>n.shouldFocusError&&zC(i,B=>B&&Fe(r.errors,B),l.mount),wt=(B,X)=>async oe=>{oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let Se=uo(o);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:_e,values:ge}=await F();r.errors=_e,Se=ge}else await Y(i);Kr(r.errors,"root"),Fa(r.errors)?(p.state.next({errors:{}}),await B(Se,oe)):(X&&await X({...r.errors},oe),nt(),setTimeout(nt)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Fa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Dt=(B,X={})=>{Fe(i,B)&&(ar(X.defaultValue)?J(B,Fe(a,B)):(J(B,X.defaultValue),vn(a,B,X.defaultValue)),X.keepTouched||Kr(r.touchedFields,B),X.keepDirty||(Kr(r.dirtyFields,B),r.isDirty=X.defaultValue?q(B,Fe(a,B)):q()),X.keepError||(Kr(r.errors,B),h.isValid&&S()),p.state.next({...r}))},Nt=(B,X={})=>{const oe=B?uo(B):a,Se=uo(oe),_e=B&&!Fa(B)?Se:a;if(X.keepDefaultValues||(a=oe),!X.keepValues){if(X.keepDirtyValues||v)for(const ge of l.mount)Fe(r.dirtyFields,ge)?vn(_e,ge,Fe(o,ge)):J(ge,Fe(_e,ge));else{if(s8&&ar(B))for(const ge of l.mount){const Ie=Fe(i,ge);if(Ie&&Ie._f){const Ft=Array.isArray(Ie._f.refs)?Ie._f.refs[0]:Ie._f.ref;if(u_(Ft)){const Ge=Ft.closest("form");if(Ge){Ge.reset();break}}}}i={}}o=e.shouldUnregister?X.keepDefaultValues?uo(a):{}:uo(_e),p.array.next({values:{..._e}}),p.values.next({values:{..._e}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!h.isValid||!!X.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!cc(B,a)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:X.keepDirtyValues?r.dirtyFields:X.keepDefaultValues&&B?tx(a,B):{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Sn=(B,X)=>Nt(Zl(B)?B(o):B,X);return{control:{register:Ye,unregister:Ae,getFieldState:Ee,handleSubmit:wt,setError:ye,_executeSchema:F,_getWatch:ae,_getDirty:q,_updateValid:S,_removeUnmounted:W,_updateFieldArray:E,_updateDisabledField:it,_getFieldArray:ee,_reset:Nt,_resetDefaultValues:()=>Zl(n.defaultValues)&&n.defaultValues().then(B=>{Sn(B,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:B=>{r={...r,...B}},_subjects:p,_proxyFormState:h,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(B){s=B},get _defaultValues(){return a},get _names(){return l},set _names(B){l=B},get _formState(){return r},set _formState(B){r=B},get _options(){return n},set _options(B){n={...n,...B}}},trigger:we,register:Ye,handleSubmit:wt,watch:Le,setValue:J,getValues:Ce,reset:Sn,resetField:Dt,clearErrors:xe,unregister:Ae,setError:ye,setFocus:(B,X={})=>{const oe=Fe(i,B),Se=oe&&oe._f;if(Se){const _e=Se.refs?Se.refs[0]:Se.ref;_e.focus&&(_e.focus(),X.shouldSelect&&_e.select())}},getFieldState:Ee}}function YCe(e={}){const t=ve.useRef(),n=ve.useRef(),[r,i]=ve.useState({isDirty:!1,isValidating:!1,isLoading:Zl(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Zl(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...KCe(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,l8({subject:a._subjects.state,next:o=>{lj(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ve.useEffect(()=>{e.values&&!cc(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ve.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=sj(r,a),t.current}var bR=function(e,t,n){if(e&&"reportValidity"in e){var r=Fe(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},bj=function(e,t){var n=function(i){var a=t.fields[i];a&&a.ref&&"reportValidity"in a.ref?bR(a.ref,i,e):a.refs&&a.refs.forEach(function(o){return bR(o,i,e)})};for(var r in t.fields)n(r)},ZCe=function(e,t){t.shouldUseNativeValidation&&bj(e,t);var n={};for(var r in e){var i=Fe(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(XCe(t.names||Object.keys(e),r)){var o=Object.assign({},QCe(Fe(n,r)));vn(o,"root",a),vn(n,r,o)}else vn(n,r,a)}return n},QCe=function(e){return Array.isArray(e)?e.filter(Boolean):[]},XCe=function(e,t){return e.some(function(n){return n.startsWith(t+".")})},JCe=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(f){return f.errors.forEach(function(h){return e.push(h)})}),t){var l=n[o].types,c=l&&l[r.code];n[o]=hj(o,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},e5e=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return a.shouldUseNativeValidation&&bj({},a),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return s.errors!=null}(o))return{values:{},errors:ZCe(JCe(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},nn;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(nn||(nn={}));var jC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(jC||(jC={}));const Ue=nn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wl=e=>{switch(typeof e){case"undefined":return Ue.undefined;case"string":return Ue.string;case"number":return isNaN(e)?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(e)?Ue.array:e===null?Ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ue.promise:typeof Map<"u"&&e instanceof Map?Ue.map:typeof Set<"u"&&e instanceof Set?Ue.set:typeof Date<"u"&&e instanceof Date?Ue.date:Ue.object;default:return Ue.unknown}},Re=nn.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"]),t5e=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class xo extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,nn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}xo.create=e=>new xo(e);const sg=(e,t)=>{let n;switch(e.code){case Re.invalid_type:e.received===Ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Re.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,nn.jsonStringifyReplacer)}`;break;case Re.unrecognized_keys:n=`Unrecognized key(s) in object: ${nn.joinValues(e.keys,", ")}`;break;case Re.invalid_union:n="Invalid input";break;case Re.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${nn.joinValues(e.options)}`;break;case Re.invalid_enum_value:n=`Invalid enum value. Expected ${nn.joinValues(e.options)}, received '${e.received}'`;break;case Re.invalid_arguments:n="Invalid function arguments";break;case Re.invalid_return_type:n="Invalid function return type";break;case Re.invalid_date:n="Invalid date";break;case Re.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:nn.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Re.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Re.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Re.custom:n="Invalid input";break;case Re.invalid_intersection_types:n="Intersection results could not be merged";break;case Re.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Re.not_finite:n="Number must be finite";break;default:n=t.defaultError,nn.assertNever(e)}return{message:n}};let Sj=sg;function n5e(e){Sj=e}function h_(){return Sj}const p_=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}},r5e=[];function We(e,t){const n=p_({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,h_(),sg].filter(r=>!!r)});e.common.issues.push(n)}class gi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return St;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return gi.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return St;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const St=Object.freeze({status:"aborted"}),wj=e=>({status:"dirty",value:e}),Li=e=>({status:"valid",value:e}),BC=e=>e.status==="aborted",VC=e=>e.status==="dirty",lg=e=>e.status==="valid",m_=e=>typeof Promise<"u"&&e instanceof Promise;var rt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(rt||(rt={}));class us{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const SR=(e,t)=>{if(lg(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new xo(e.common.issues);return this._error=n,this._error}}};function Ct(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>o.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r??s.defaultError}:{message:n??s.defaultError},description:i}}class Rt{constructor(t){this.spa=this.safeParseAsync,this._def=t,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)}get description(){return this._def.description}_getType(t){return Wl(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Wl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new gi,ctx:{common:t.parent.common,data:t.data,parsedType:Wl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(m_(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wl(t)},a=this._parseSync({data:t,path:i.path,parent:i});return SR(i,a)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wl(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(m_(i)?i:Promise.resolve(i));return SR(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:Re.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new To({schema:this,typeName:pt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Gs.create(this,this._def)}nullable(){return Mc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Co.create(this,this._def)}promise(){return sh.create(this,this._def)}or(t){return fg.create([this,t],this._def)}and(t){return hg.create(this,t,this._def)}transform(t){return new To({...Ct(this._def),schema:this,typeName:pt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new yg({...Ct(this._def),innerType:this,defaultValue:n,typeName:pt.ZodDefault})}brand(){return new Cj({typeName:pt.ZodBranded,type:this,...Ct(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new __({...Ct(this._def),innerType:this,catchValue:n,typeName:pt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return nv.create(this,t)}readonly(){return S_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const i5e=/^c[^\s-]{8,}$/i,a5e=/^[a-z][a-z0-9]*$/,o5e=/[0-9A-HJKMNP-TV-Z]{26}/,s5e=/^[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,l5e=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,u5e=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,c5e=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,d5e=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,f5e=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function h5e(e,t){return!!((t==="v4"||!t)&&c5e.test(e)||(t==="v6"||!t)&&d5e.test(e))}class _o extends Rt{constructor(){super(...arguments),this._regex=(t,n,r)=>this.refinement(i=>t.test(i),{validation:n,code:Re.invalid_string,...rt.errToObj(r)}),this.nonempty=t=>this.min(1,rt.errToObj(t)),this.trim=()=>new _o({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new _o({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new _o({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ue.string){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_type,expected:Ue.string,received:a.parsedType}),St}const r=new gi;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),We(i,{code:Re.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),We(i,{code:Re.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?We(i,{code:Re.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&We(i,{code:Re.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")l5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"email",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")u5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"emoji",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")s5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"uuid",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")i5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"cuid",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")a5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"cuid2",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")o5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"ulid",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),We(i,{validation:"url",code:Re.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"regex",code:Re.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),We(i,{code:Re.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),We(i,{code:Re.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),We(i,{code:Re.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?f5e(a).test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{code:Re.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="ip"?h5e(t.data,a.version)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"ip",code:Re.invalid_string,message:a.message}),r.dirty()):nn.assertNever(a);return{status:r.value,value:t.data}}_addCheck(t){return new _o({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...rt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...rt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...rt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...rt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...rt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...rt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...rt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...rt.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...rt.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...rt.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...rt.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...rt.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...rt.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...rt.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...rt.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...rt.errToObj(n)})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}_o.create=e=>{var t;return new _o({checks:[],typeName:pt.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ct(e)})};function p5e(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class pu extends Rt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ue.number){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_type,expected:Ue.number,received:a.parsedType}),St}let r;const i=new gi;for(const a of this._def.checks)a.kind==="int"?nn.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),We(r,{code:Re.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?p5e(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),We(r,{code:Re.not_finite,message:a.message}),i.dirty()):nn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,rt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,rt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,rt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,rt.toString(n))}setLimit(t,n,r,i){return new pu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:rt.toString(i)}]})}_addCheck(t){return new pu({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:rt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:rt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:rt.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:rt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:rt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:rt.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&nn.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}pu.create=e=>new pu({checks:[],typeName:pt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ct(e)});class mu extends Rt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ue.bigint){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_type,expected:Ue.bigint,received:a.parsedType}),St}let r;const i=new gi;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):nn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,rt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,rt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,rt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,rt.toString(n))}setLimit(t,n,r,i){return new mu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:rt.toString(i)}]})}_addCheck(t){return new mu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:rt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:rt.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}mu.create=e=>{var t;return new mu({checks:[],typeName:pt.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ct(e)})};class ug extends Rt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ue.boolean){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.boolean,received:r.parsedType}),St}return Li(t.data)}}ug.create=e=>new ug({typeName:pt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ct(e)});class Ic extends Rt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ue.date){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_type,expected:Ue.date,received:a.parsedType}),St}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_date}),St}const r=new gi;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),We(i,{code:Re.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),We(i,{code:Re.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):nn.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ic({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:rt.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:rt.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ic.create=e=>new Ic({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:pt.ZodDate,...Ct(e)});class g_ extends Rt{_parse(t){if(this._getType(t)!==Ue.symbol){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.symbol,received:r.parsedType}),St}return Li(t.data)}}g_.create=e=>new g_({typeName:pt.ZodSymbol,...Ct(e)});class cg extends Rt{_parse(t){if(this._getType(t)!==Ue.undefined){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.undefined,received:r.parsedType}),St}return Li(t.data)}}cg.create=e=>new cg({typeName:pt.ZodUndefined,...Ct(e)});class dg extends Rt{_parse(t){if(this._getType(t)!==Ue.null){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.null,received:r.parsedType}),St}return Li(t.data)}}dg.create=e=>new dg({typeName:pt.ZodNull,...Ct(e)});class oh extends Rt{constructor(){super(...arguments),this._any=!0}_parse(t){return Li(t.data)}}oh.create=e=>new oh({typeName:pt.ZodAny,...Ct(e)});class wc extends Rt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Li(t.data)}}wc.create=e=>new wc({typeName:pt.ZodUnknown,...Ct(e)});class il extends Rt{_parse(t){const n=this._getOrReturnCtx(t);return We(n,{code:Re.invalid_type,expected:Ue.never,received:n.parsedType}),St}}il.create=e=>new il({typeName:pt.ZodNever,...Ct(e)});class v_ extends Rt{_parse(t){if(this._getType(t)!==Ue.undefined){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.void,received:r.parsedType}),St}return Li(t.data)}}v_.create=e=>new v_({typeName:pt.ZodVoid,...Ct(e)});class Co extends Rt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ue.array)return We(n,{code:Re.invalid_type,expected:Ue.array,received:n.parsedType}),St;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(We(n,{code:o?Re.too_big:Re.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(We(n,{code:Re.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(We(n,{code:Re.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new us(n,o,n.path,s)))).then(o=>gi.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new us(n,o,n.path,s)));return gi.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Co({...this._def,minLength:{value:t,message:rt.toString(n)}})}max(t,n){return new Co({...this._def,maxLength:{value:t,message:rt.toString(n)}})}length(t,n){return new Co({...this._def,exactLength:{value:t,message:rt.toString(n)}})}nonempty(t){return this.min(1,t)}}Co.create=(e,t)=>new Co({type:e,minLength:null,maxLength:null,exactLength:null,typeName:pt.ZodArray,...Ct(t)});function Nd(e){if(e instanceof Un){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Gs.create(Nd(r))}return new Un({...e._def,shape:()=>t})}else return e instanceof Co?new Co({...e._def,type:Nd(e.element)}):e instanceof Gs?Gs.create(Nd(e.unwrap())):e instanceof Mc?Mc.create(Nd(e.unwrap())):e instanceof cs?cs.create(e.items.map(t=>Nd(t))):e}class Un extends Rt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=nn.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Ue.object){const c=this._getOrReturnCtx(t);return We(c,{code:Re.invalid_type,expected:Ue.object,received:c.parsedType}),St}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof il&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const f=a[c],h=i.data[c];l.push({key:{status:"valid",value:c},value:f._parse(new us(i,h,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof il){const c=this._def.unknownKeys;if(c==="passthrough")for(const f of s)l.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(c==="strict")s.length>0&&(We(i,{code:Re.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const f of s){const h=i.data[f];l.push({key:{status:"valid",value:f},value:c._parse(new us(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const f of l){const h=await f.key;c.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return c}).then(c=>gi.mergeObjectSync(r,c)):gi.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return rt.errToObj,new Un({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,s;const l=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=rt.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new Un({...this._def,unknownKeys:"strip"})}passthrough(){return new Un({...this._def,unknownKeys:"passthrough"})}extend(t){return new Un({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Un({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:pt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Un({...this._def,catchall:t})}pick(t){const n={};return nn.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Un({...this._def,shape:()=>n})}omit(t){const n={};return nn.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Un({...this._def,shape:()=>n})}deepPartial(){return Nd(this)}partial(t){const n={};return nn.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Un({...this._def,shape:()=>n})}required(t){const n={};return nn.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Gs;)a=a._def.innerType;n[r]=a}}),new Un({...this._def,shape:()=>n})}keyof(){return xj(nn.objectKeys(this.shape))}}Un.create=(e,t)=>new Un({shape:()=>e,unknownKeys:"strip",catchall:il.create(),typeName:pt.ZodObject,...Ct(t)});Un.strictCreate=(e,t)=>new Un({shape:()=>e,unknownKeys:"strict",catchall:il.create(),typeName:pt.ZodObject,...Ct(t)});Un.lazycreate=(e,t)=>new Un({shape:e,unknownKeys:"strip",catchall:il.create(),typeName:pt.ZodObject,...Ct(t)});class fg extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new xo(s.ctx.common.issues));return We(n,{code:Re.invalid_union,unionErrors:o}),St}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},f=l._parseSync({data:n.data,path:n.path,parent:c});if(f.status==="valid")return f;f.status==="dirty"&&!a&&(a={result:f,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new xo(l));return We(n,{code:Re.invalid_union,unionErrors:s}),St}}get options(){return this._def.options}}fg.create=(e,t)=>new fg({options:e,typeName:pt.ZodUnion,...Ct(t)});const Ly=e=>e instanceof mg?Ly(e.schema):e instanceof To?Ly(e.innerType()):e instanceof gg?[e.value]:e instanceof gu?e.options:e instanceof vg?Object.keys(e.enum):e instanceof yg?Ly(e._def.innerType):e instanceof cg?[void 0]:e instanceof dg?[null]:null;class Qb extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.object)return We(n,{code:Re.invalid_type,expected:Ue.object,received:n.parsedType}),St;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(We(n,{code:Re.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),St)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=Ly(a.shape[t]);if(!o)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Qb({typeName:pt.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ct(r)})}}function UC(e,t){const n=Wl(e),r=Wl(t);if(e===t)return{valid:!0,data:e};if(n===Ue.object&&r===Ue.object){const i=nn.objectKeys(t),a=nn.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=UC(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Ue.array&&r===Ue.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],l=UC(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Ue.date&&r===Ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class hg extends Rt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(BC(a)||BC(o))return St;const s=UC(a.value,o.value);return s.valid?((VC(a)||VC(o))&&n.dirty(),{status:n.value,value:s.data}):(We(r,{code:Re.invalid_intersection_types}),St)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}hg.create=(e,t,n)=>new hg({left:e,right:t,typeName:pt.ZodIntersection,...Ct(n)});class cs extends Rt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.array)return We(r,{code:Re.invalid_type,expected:Ue.array,received:r.parsedType}),St;if(r.data.length<this._def.items.length)return We(r,{code:Re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),St;!this._def.rest&&r.data.length>this._def.items.length&&(We(r,{code:Re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new us(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>gi.mergeArray(n,o)):gi.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new cs({...this._def,rest:t})}}cs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cs({items:e,typeName:pt.ZodTuple,rest:null,...Ct(t)})};class pg extends Rt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.object)return We(r,{code:Re.invalid_type,expected:Ue.object,received:r.parsedType}),St;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new us(r,s,r.path,s)),value:o._parse(new us(r,r.data[s],r.path,s))});return r.common.async?gi.mergeObjectAsync(n,i):gi.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Rt?new pg({keyType:t,valueType:n,typeName:pt.ZodRecord,...Ct(r)}):new pg({keyType:_o.create(),valueType:t,typeName:pt.ZodRecord,...Ct(n)})}}class y_ extends Rt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.map)return We(r,{code:Re.invalid_type,expected:Ue.map,received:r.parsedType}),St;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new us(r,s,r.path,[c,"key"])),value:a._parse(new us(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,f=await l.value;if(c.status==="aborted"||f.status==="aborted")return St;(c.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(c.value,f.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of o){const c=l.key,f=l.value;if(c.status==="aborted"||f.status==="aborted")return St;(c.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(c.value,f.value)}return{status:n.value,value:s}}}}y_.create=(e,t,n)=>new y_({valueType:t,keyType:e,typeName:pt.ZodMap,...Ct(n)});class Lc extends Rt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.set)return We(r,{code:Re.invalid_type,expected:Ue.set,received:r.parsedType}),St;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(We(r,{code:Re.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(We(r,{code:Re.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(l){const c=new Set;for(const f of l){if(f.status==="aborted")return St;f.status==="dirty"&&n.dirty(),c.add(f.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>a._parse(new us(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new Lc({...this._def,minSize:{value:t,message:rt.toString(n)}})}max(t,n){return new Lc({...this._def,maxSize:{value:t,message:rt.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Lc.create=(e,t)=>new Lc({valueType:e,minSize:null,maxSize:null,typeName:pt.ZodSet,...Ct(t)});class If extends Rt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.function)return We(n,{code:Re.invalid_type,expected:Ue.function,received:n.parsedType}),St;function r(s,l){return p_({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,h_(),sg].filter(c=>!!c),issueData:{code:Re.invalid_arguments,argumentsError:l}})}function i(s,l){return p_({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,h_(),sg].filter(c=>!!c),issueData:{code:Re.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof sh){const s=this;return Li(async function(...l){const c=new xo([]),f=await s._def.args.parseAsync(l,a).catch(v=>{throw c.addIssue(r(l,v)),c}),h=await Reflect.apply(o,this,f);return await s._def.returns._def.type.parseAsync(h,a).catch(v=>{throw c.addIssue(i(h,v)),c})})}else{const s=this;return Li(function(...l){const c=s._def.args.safeParse(l,a);if(!c.success)throw new xo([r(l,c.error)]);const f=Reflect.apply(o,this,c.data),h=s._def.returns.safeParse(f,a);if(!h.success)throw new xo([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new If({...this._def,args:cs.create(t).rest(wc.create())})}returns(t){return new If({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new If({args:t||cs.create([]).rest(wc.create()),returns:n||wc.create(),typeName:pt.ZodFunction,...Ct(r)})}}class mg extends Rt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}mg.create=(e,t)=>new mg({getter:e,typeName:pt.ZodLazy,...Ct(t)});class gg extends Rt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return We(n,{received:n.data,code:Re.invalid_literal,expected:this._def.value}),St}return{status:"valid",value:t.data}}get value(){return this._def.value}}gg.create=(e,t)=>new gg({value:e,typeName:pt.ZodLiteral,...Ct(t)});function xj(e,t){return new gu({values:e,typeName:pt.ZodEnum,...Ct(t)})}class gu extends Rt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return We(n,{expected:nn.joinValues(r),received:n.parsedType,code:Re.invalid_type}),St}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return We(n,{received:n.data,code:Re.invalid_enum_value,options:r}),St}return Li(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return gu.create(t)}exclude(t){return gu.create(this.options.filter(n=>!t.includes(n)))}}gu.create=xj;class vg extends Rt{_parse(t){const n=nn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ue.string&&r.parsedType!==Ue.number){const i=nn.objectValues(n);return We(r,{expected:nn.joinValues(i),received:r.parsedType,code:Re.invalid_type}),St}if(n.indexOf(t.data)===-1){const i=nn.objectValues(n);return We(r,{received:r.data,code:Re.invalid_enum_value,options:i}),St}return Li(t.data)}get enum(){return this._def.values}}vg.create=(e,t)=>new vg({values:e,typeName:pt.ZodNativeEnum,...Ct(t)});class sh extends Rt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.promise&&n.common.async===!1)return We(n,{code:Re.invalid_type,expected:Ue.promise,received:n.parsedType}),St;const r=n.parsedType===Ue.promise?n.data:Promise.resolve(n.data);return Li(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}sh.create=(e,t)=>new sh({type:e,typeName:pt.ZodPromise,...Ct(t)});class To extends Rt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{We(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(o).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:o,path:r.path,parent:r})}if(i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?St:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?St:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!lg(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>lg(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):o);nn.assertNever(i)}}To.create=(e,t,n)=>new To({schema:e,typeName:pt.ZodEffects,effect:t,...Ct(n)});To.createWithPreprocess=(e,t,n)=>new To({schema:t,effect:{type:"preprocess",transform:e},typeName:pt.ZodEffects,...Ct(n)});class Gs extends Rt{_parse(t){return this._getType(t)===Ue.undefined?Li(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gs.create=(e,t)=>new Gs({innerType:e,typeName:pt.ZodOptional,...Ct(t)});class Mc extends Rt{_parse(t){return this._getType(t)===Ue.null?Li(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Mc.create=(e,t)=>new Mc({innerType:e,typeName:pt.ZodNullable,...Ct(t)});class yg extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}yg.create=(e,t)=>new yg({innerType:e,typeName:pt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ct(t)});class __ extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return m_(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new xo(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new xo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}__.create=(e,t)=>new __({innerType:e,typeName:pt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ct(t)});class b_ extends Rt{_parse(t){if(this._getType(t)!==Ue.nan){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.nan,received:r.parsedType}),St}return{status:"valid",value:t.data}}}b_.create=e=>new b_({typeName:pt.ZodNaN,...Ct(e)});const m5e=Symbol("zod_brand");class Cj extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class nv extends Rt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?St:a.status==="dirty"?(n.dirty(),wj(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?St:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new nv({in:t,out:n,typeName:pt.ZodPipeline})}}class S_ extends Rt{_parse(t){const n=this._def.innerType._parse(t);return lg(n)&&(n.value=Object.freeze(n.value)),n}}S_.create=(e,t)=>new S_({innerType:e,typeName:pt.ZodReadonly,...Ct(t)});const Ej=(e,t={},n)=>e?oh.create().superRefine((r,i)=>{var a,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(o=(a=s.fatal)!==null&&a!==void 0?a:n)!==null&&o!==void 0?o:!0,c=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...c,fatal:l})}}):oh.create(),g5e={object:Un.lazycreate};var pt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(pt||(pt={}));const v5e=(e,t={message:`Input not instance of ${e.name}`})=>Ej(n=>n instanceof e,t),kj=_o.create,Tj=pu.create,y5e=b_.create,_5e=mu.create,Pj=ug.create,b5e=Ic.create,S5e=g_.create,w5e=cg.create,x5e=dg.create,C5e=oh.create,E5e=wc.create,k5e=il.create,T5e=v_.create,P5e=Co.create,O5e=Un.create,R5e=Un.strictCreate,A5e=fg.create,I5e=Qb.create,L5e=hg.create,M5e=cs.create,D5e=pg.create,N5e=y_.create,F5e=Lc.create,$5e=If.create,z5e=mg.create,j5e=gg.create,B5e=gu.create,V5e=vg.create,U5e=sh.create,wR=To.create,H5e=Gs.create,W5e=Mc.create,q5e=To.createWithPreprocess,G5e=nv.create,K5e=()=>kj().optional(),Y5e=()=>Tj().optional(),Z5e=()=>Pj().optional(),Q5e={string:e=>_o.create({...e,coerce:!0}),number:e=>pu.create({...e,coerce:!0}),boolean:e=>ug.create({...e,coerce:!0}),bigint:e=>mu.create({...e,coerce:!0}),date:e=>Ic.create({...e,coerce:!0})},X5e=St;var Ri=Object.freeze({__proto__:null,defaultErrorMap:sg,setErrorMap:n5e,getErrorMap:h_,makeIssue:p_,EMPTY_PATH:r5e,addIssueToContext:We,ParseStatus:gi,INVALID:St,DIRTY:wj,OK:Li,isAborted:BC,isDirty:VC,isValid:lg,isAsync:m_,get util(){return nn},get objectUtil(){return jC},ZodParsedType:Ue,getParsedType:Wl,ZodType:Rt,ZodString:_o,ZodNumber:pu,ZodBigInt:mu,ZodBoolean:ug,ZodDate:Ic,ZodSymbol:g_,ZodUndefined:cg,ZodNull:dg,ZodAny:oh,ZodUnknown:wc,ZodNever:il,ZodVoid:v_,ZodArray:Co,ZodObject:Un,ZodUnion:fg,ZodDiscriminatedUnion:Qb,ZodIntersection:hg,ZodTuple:cs,ZodRecord:pg,ZodMap:y_,ZodSet:Lc,ZodFunction:If,ZodLazy:mg,ZodLiteral:gg,ZodEnum:gu,ZodNativeEnum:vg,ZodPromise:sh,ZodEffects:To,ZodTransformer:To,ZodOptional:Gs,ZodNullable:Mc,ZodDefault:yg,ZodCatch:__,ZodNaN:b_,BRAND:m5e,ZodBranded:Cj,ZodPipeline:nv,ZodReadonly:S_,custom:Ej,Schema:Rt,ZodSchema:Rt,late:g5e,get ZodFirstPartyTypeKind(){return pt},coerce:Q5e,any:C5e,array:P5e,bigint:_5e,boolean:Pj,date:b5e,discriminatedUnion:I5e,effect:wR,enum:B5e,function:$5e,instanceof:v5e,intersection:L5e,lazy:z5e,literal:j5e,map:N5e,nan:y5e,nativeEnum:V5e,never:k5e,null:x5e,nullable:W5e,number:Tj,object:O5e,oboolean:Z5e,onumber:Y5e,optional:H5e,ostring:K5e,pipeline:G5e,preprocess:q5e,promise:U5e,record:D5e,set:F5e,strictObject:R5e,string:kj,symbol:S5e,transformer:wR,tuple:M5e,undefined:w5e,union:A5e,unknown:E5e,void:T5e,NEVER:X5e,ZodIssueCode:Re,quotelessJson:t5e,ZodError:xo});const J5e=e=>Ir({url:"clients/current/onboarding",method:"POST",data:e}),e4e={updateOnboarding:J5e};function xR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xR(Object(n),!0).forEach(function(r){of(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t4e(e){if(Array.isArray(e))return e}function n4e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function r4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
    470 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ks(e,t){return t4e(e)||n4e(e,t)||iz(e,t)||r4e()}function sl(e,t){if(e==null)return{};var n=aN(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var i4e=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function a4e(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,f=e.onInputChange,h=e.onMenuClose,p=e.onMenuOpen,v=e.value,y=sl(e,i4e),m=w.useState(s!==void 0?s:n),_=Ks(m,2),b=_[0],S=_[1],C=w.useState(l!==void 0?l:i),E=Ks(C,2),R=E[0],A=E[1],I=w.useState(v!==void 0?v:o),M=Ks(I,2),F=M[0],z=M[1],Y=w.useCallback(function(J,me){typeof c=="function"&&c(J,me),z(J)},[c]),W=w.useCallback(function(J,me){var we;typeof f=="function"&&(we=f(J,me)),S(we!==void 0?we:J)},[f]),q=w.useCallback(function(){typeof p=="function"&&p(),A(!0)},[p]),ae=w.useCallback(function(){typeof h=="function"&&h(),A(!1)},[h]),ee=s!==void 0?s:b,ce=l!==void 0?l:R,ue=v!==void 0?v:F;return ot(ot({},y),{},{inputValue:ee,menuIsOpen:ce,onChange:Y,onInputChange:W,onMenuClose:ae,onMenuOpen:q,value:ue})}function o4e(e){if(Array.isArray(e))return pC(e)}function s4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
    471 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oj(e){return o4e(e)||s4e(e)||iz(e)||l4e()}function u4e(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const c4e=Math.min,d4e=Math.max,w_=Math.round,V0=Math.floor,x_=e=>({x:e,y:e});function f4e(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Rj(e){return Ij(e)?(e.nodeName||"").toLowerCase():"#document"}function Eo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Aj(e){var t;return(t=(Ij(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ij(e){return e instanceof Node||e instanceof Eo(e).Node}function HC(e){return e instanceof Element||e instanceof Eo(e).Element}function f8(e){return e instanceof HTMLElement||e instanceof Eo(e).HTMLElement}function CR(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Eo(e).ShadowRoot}function Lj(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=h8(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function h4e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function p4e(e){return["html","body","#document"].includes(Rj(e))}function h8(e){return Eo(e).getComputedStyle(e)}function m4e(e){if(Rj(e)==="html")return e;const t=e.assignedSlot||e.parentNode||CR(e)&&e.host||Aj(e);return CR(t)?t.host:t}function Mj(e){const t=m4e(e);return p4e(t)?e.ownerDocument?e.ownerDocument.body:e.body:f8(t)&&Lj(t)?t:Mj(t)}function WC(e,t){var n;t===void 0&&(t=[]);const r=Mj(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Eo(r);return i?t.concat(a,a.visualViewport||[],Lj(r)?r:[]):t.concat(r,WC(r))}function g4e(e){const t=h8(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=f8(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=w_(n)!==a||w_(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function p8(e){return HC(e)?e:e.contextElement}function rx(e){const t=p8(e);if(!f8(t))return x_(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=g4e(t);let o=(a?w_(n.width):n.width)/r,s=(a?w_(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const v4e=x_(0);function y4e(e){const t=Eo(e);return!h4e()||!t.visualViewport?v4e:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _4e(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Eo(e)?!1:t}function ER(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=p8(e);let o=x_(1);t&&(r?HC(r)&&(o=rx(r)):o=rx(e));const s=_4e(a,n,r)?y4e(a):x_(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,f=i.width/o.x,h=i.height/o.y;if(a){const p=Eo(a),v=r&&HC(r)?Eo(r):r;let y=p.frameElement;for(;y&&r&&v!==p;){const m=rx(y),_=y.getBoundingClientRect(),b=h8(y),S=_.left+(y.clientLeft+parseFloat(b.paddingLeft))*m.x,C=_.top+(y.clientTop+parseFloat(b.paddingTop))*m.y;l*=m.x,c*=m.y,f*=m.x,h*=m.y,l+=S,c+=C,y=Eo(y).frameElement}}return f4e({width:f,height:h,x:l,y:c})}function b4e(e,t){let n=null,r;const i=Aj(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:c,top:f,width:h,height:p}=e.getBoundingClientRect();if(s||t(),!h||!p)return;const v=V0(f),y=V0(i.clientWidth-(c+h)),m=V0(i.clientHeight-(f+p)),_=V0(c),S={rootMargin:-v+"px "+-y+"px "+-m+"px "+-_+"px",threshold:d4e(0,c4e(1,l))||1};let C=!0;function E(R){const A=R[0].intersectionRatio;if(A!==l){if(!C)return o();A?o(!1,A):r=setTimeout(()=>{o(!1,1e-7)},100)}C=!1}try{n=new IntersectionObserver(E,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return o(!0),a}function S4e(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=p8(e),f=i||a?[...c?WC(c):[],...WC(t)]:[];f.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const h=c&&s?b4e(c,n):null;let p=-1,v=null;o&&(v=new ResizeObserver(b=>{let[S]=b;S&&S.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{v&&v.observe(t)})),n()}),c&&!l&&v.observe(c),v.observe(t));let y,m=l?ER(e):null;l&&_();function _(){const b=ER(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,y=requestAnimationFrame(_)}return n(),()=>{f.forEach(b=>{i&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),h&&h(),v&&v.disconnect(),v=null,l&&cancelAnimationFrame(y)}}var qC=w.useLayoutEffect,w4e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],C_=function(){};function x4e(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function C4e(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(x4e(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var kR=function(t){return L4e(t)?t.filter(Boolean):nl(t)==="object"&&t!==null?[t]:[]},Dj=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=sl(t,w4e);return ot({},n)},tr=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function Xb(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function E4e(e){return Xb(e)?window.innerHeight:e.clientHeight}function Nj(e){return Xb(e)?window.pageYOffset:e.scrollTop}function E_(e,t){if(Xb(e)){window.scrollTo(0,t);return}e.scrollTop=t}function k4e(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function T4e(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function U0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C_,i=Nj(e),a=t-i,o=10,s=0;function l(){s+=o;var c=T4e(s,i,a,n);E_(e,c),s<n?window.requestAnimationFrame(l):r(e)}l()}function TR(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?E_(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&E_(e,Math.max(t.offsetTop-i,0))}function P4e(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function PR(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function O4e(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Fj=!1,R4e={get passive(){return Fj=!0}},H0=typeof window<"u"?window:{};H0.addEventListener&&H0.removeEventListener&&(H0.addEventListener("p",C_,R4e),H0.removeEventListener("p",C_,!1));var A4e=Fj;function I4e(e){return e!=null}function L4e(e){return Array.isArray(e)}function W0(e,t,n){return e?t:n}var M4e=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Object.entries(t).filter(function(o){var s=Ks(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=Ks(s,2),c=l[0],f=l[1];return o[c]=f,o},{})},D4e=["children","innerProps"],N4e=["children","innerProps"];function F4e(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=k4e(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var f=l.getBoundingClientRect(),h=f.height,p=n.getBoundingClientRect(),v=p.bottom,y=p.height,m=p.top,_=n.offsetParent.getBoundingClientRect(),b=_.top,S=o?window.innerHeight:E4e(l),C=Nj(l),E=parseInt(getComputedStyle(n).marginBottom,10),R=parseInt(getComputedStyle(n).marginTop,10),A=b-R,I=S-m,M=A+C,F=h-C-m,z=v-S+C+E,Y=C+m-R,W=160;switch(i){case"auto":case"bottom":if(I>=y)return{placement:"bottom",maxHeight:t};if(F>=y&&!o)return a&&U0(l,z,W),{placement:"bottom",maxHeight:t};if(!o&&F>=r||o&&I>=r){a&&U0(l,z,W);var q=o?I-E:F-E;return{placement:"bottom",maxHeight:q}}if(i==="auto"||o){var ae=t,ee=o?A:M;return ee>=r&&(ae=Math.min(ee-E-s,t)),{placement:"top",maxHeight:ae}}if(i==="bottom")return a&&E_(l,z),{placement:"bottom",maxHeight:t};break;case"top":if(A>=y)return{placement:"top",maxHeight:t};if(M>=y&&!o)return a&&U0(l,Y,W),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&A>=r){var ce=t;return(!o&&M>=r||o&&A>=r)&&(ce=o?A-R:M-R),a&&U0(l,Y,W),{placement:"top",maxHeight:ce}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function $4e(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var $j=function(t){return t==="auto"?"bottom":t},z4e=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return ot((r={label:"menu"},of(r,$4e(i),"100%"),of(r,"position","absolute"),of(r,"width","100%"),of(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},zj=w.createContext(null),j4e=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=w.useContext(zj)||{},f=c.setPortalPlacement,h=w.useRef(null),p=w.useState(i),v=Ks(p,2),y=v[0],m=v[1],_=w.useState(null),b=Ks(_,2),S=b[0],C=b[1],E=l.spacing.controlHeight;return qC(function(){var R=h.current;if(R){var A=o==="fixed",I=s&&!A,M=F4e({maxHeight:i,menuEl:R,minHeight:r,placement:a,shouldScroll:I,isFixedPosition:A,controlHeight:E});m(M.maxHeight),C(M.placement),f==null||f(M.placement)}},[i,a,o,s,r,f,E]),n({ref:h,placerProps:ot(ot({},t),{},{placement:S||$j(a),maxHeight:y})})},B4e=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return ut("div",Je({},tr(t,"menu",{menu:!0}),{ref:r},i),n)},V4e=B4e,U4e=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ot({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},H4e=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return ut("div",Je({},tr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},jj=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return ot({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},W4e=jj,q4e=jj,G4e=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=sl(t,D4e);return ut("div",Je({},tr(ot(ot({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},K4e=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=sl(t,N4e);return ut("div",Je({},tr(ot(ot({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Y4e=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Z4e=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),c=w.useRef(null),f=w.useState($j(o)),h=Ks(f,2),p=h[0],v=h[1],y=w.useMemo(function(){return{setPortalPlacement:v}},[]),m=w.useState(null),_=Ks(m,2),b=_[0],S=_[1],C=w.useCallback(function(){if(i){var I=P4e(i),M=s==="fixed"?0:window.pageYOffset,F=I[p]+M;(F!==(b==null?void 0:b.offset)||I.left!==(b==null?void 0:b.rect.left)||I.width!==(b==null?void 0:b.rect.width))&&S({offset:F,rect:I})}},[i,s,p,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);qC(function(){C()},[C]);var E=w.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),i&&l.current&&(c.current=S4e(i,l.current,C,{elementResize:"ResizeObserver"in window}))},[i,C]);qC(function(){E()},[E]);var R=w.useCallback(function(I){l.current=I,E()},[E]);if(!n&&s!=="fixed"||!b)return null;var A=ut("div",Je({ref:R},tr(ot(ot({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ut(zj.Provider,{value:y},n?Yo.createPortal(A,n):A)},Q4e=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},X4e=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return ut("div",Je({},tr(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},J4e=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return ot({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},e6e=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return ut("div",Je({},tr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},t6e=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},n6e=function(t){var n=t.children,r=t.innerProps;return ut("div",Je({},tr(t,"indicatorsContainer",{indicators:!0}),r),n)},OR,r6e=["size"],i6e=["innerProps","isRtl","size"],a6e={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Bj=function(t){var n=t.size,r=sl(t,r6e);return ut("svg",Je({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:a6e},r))},m8=function(t){return ut(Bj,Je({size:20},t),ut("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Vj=function(t){return ut(Bj,Je({size:20},t),ut("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Uj=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ot({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},o6e=Uj,s6e=function(t){var n=t.children,r=t.innerProps;return ut("div",Je({},tr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ut(Vj,null))},l6e=Uj,u6e=function(t){var n=t.children,r=t.innerProps;return ut("div",Je({},tr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ut(m8,null))},c6e=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ot({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},d6e=function(t){var n=t.innerProps;return ut("span",Je({},n,tr(t,"indicatorSeparator",{"indicator-separator":!0})))},f6e=Ro(OR||(OR=u4e([`
     469*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Rz);var qb=Rz.exports,ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.checkSpecKeys=ze.checkNavigable=ze.changeSlide=ze.canUseDOM=ze.canGoNext=void 0;ze.clamp=Az;ze.swipeStart=ze.swipeMove=ze.swipeEnd=ze.slidesOnRight=ze.slidesOnLeft=ze.slideHandler=ze.siblingDirection=ze.safePreventDefault=ze.lazyStartIndex=ze.lazySlidesOnRight=ze.lazySlidesOnLeft=ze.lazyEndIndex=ze.keyHandler=ze.initializedState=ze.getWidth=ze.getTrackLeft=ze.getTrackCSS=ze.getTrackAnimateCSS=ze.getTotalSlides=ze.getSwipeDirection=ze.getSlideCount=ze.getRequiredLazySlides=ze.getPreClones=ze.getPostClones=ze.getOnDemandLazySlides=ze.getNavigableIndexes=ze.getHeight=ze.extractObject=void 0;var Lxe=Mxe(w);function Mxe(e){return e&&e.__esModule?e:{default:e}}function HO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(n),!0).forEach(function(r){Dxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dxe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Az(e,t,n){return Math.max(t,Math.min(e,n))}var Sc=function(t){var n=["onTouchStart","onTouchMove","onWheel"];n.includes(t._reactName)||t.preventDefault()};ze.safePreventDefault=Sc;var J6=function(t){for(var n=[],r=e8(t),i=t8(t),a=r;a<i;a++)t.lazyLoadedList.indexOf(a)<0&&n.push(a);return n};ze.getOnDemandLazySlides=J6;var Nxe=function(t){for(var n=[],r=e8(t),i=t8(t),a=r;a<i;a++)n.push(a);return n};ze.getRequiredLazySlides=Nxe;var e8=function(t){return t.currentSlide-Iz(t)};ze.lazyStartIndex=e8;var t8=function(t){return t.currentSlide+Lz(t)};ze.lazyEndIndex=t8;var Iz=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0};ze.lazySlidesOnLeft=Iz;var Lz=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow};ze.lazySlidesOnRight=Lz;var Q1=function(t){return t&&t.offsetWidth||0};ze.getWidth=Q1;var n8=function(t){return t&&t.offsetHeight||0};ze.getHeight=n8;var r8=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,i,a,o;return r=t.startX-t.curX,i=t.startY-t.curY,a=Math.atan2(i,r),o=Math.round(a*180/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":n===!0?o>=35&&o<=135?"up":"down":"vertical"};ze.getSwipeDirection=r8;var i8=function(t){var n=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(n=!1),n};ze.canGoNext=i8;var Fxe=function(t,n){var r={};return n.forEach(function(i){return r[i]=t[i]}),r};ze.extractObject=Fxe;var $xe=function(t){var n=Lxe.default.Children.count(t.children),r=t.listRef,i=Math.ceil(Q1(r)),a=t.trackRef&&t.trackRef.node,o=Math.ceil(Q1(a)),s;if(t.vertical)s=i;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=i/100),s=Math.ceil((i-l)/t.slidesToShow)}var c=r&&n8(r.querySelector('[data-index="0"]')),f=c*t.slidesToShow,h=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(h=n-1-t.initialSlide);var p=t.lazyLoadedList||[],v=J6(Fn(Fn({},t),{},{currentSlide:h,lazyLoadedList:p}));p=p.concat(v);var y={slideCount:n,slideWidth:s,listWidth:i,trackWidth:o,currentSlide:h,slideHeight:c,listHeight:f,lazyLoadedList:p};return t.autoplaying===null&&t.autoplay&&(y.autoplaying="playing"),y};ze.initializedState=$xe;var zxe=function(t){var n=t.waitForAnimate,r=t.animating,i=t.fade,a=t.infinite,o=t.index,s=t.slideCount,l=t.lazyLoad,c=t.currentSlide,f=t.centerMode,h=t.slidesToScroll,p=t.slidesToShow,v=t.useCSS,y=t.lazyLoadedList;if(n&&r)return{};var m=o,_,b,S,C={},E={},R=a?o:Az(o,0,s-1);if(i){if(!a&&(o<0||o>=s))return{};o<0?m=o+s:o>=s&&(m=o-s),l&&y.indexOf(m)<0&&(y=y.concat(m)),C={animating:!0,currentSlide:m,lazyLoadedList:y,targetSlide:m},E={animating:!1,targetSlide:m}}else _=m,m<0?(_=m+s,a?s%h!==0&&(_=s-s%h):_=0):!i8(t)&&m>c?m=_=c:f&&m>=s?(m=a?s:s-1,_=a?0:s-1):m>=s&&(_=m-s,a?s%h!==0&&(_=0):_=s-p),!a&&m+p>=s&&(_=s-p),b=og(Fn(Fn({},t),{},{slideIndex:m})),S=og(Fn(Fn({},t),{},{slideIndex:_})),a||(b===S&&(m=_),b=S),l&&(y=y.concat(J6(Fn(Fn({},t),{},{currentSlide:m})))),v?(C={animating:!0,currentSlide:_,trackStyle:a8(Fn(Fn({},t),{},{left:b})),lazyLoadedList:y,targetSlide:R},E={animating:!1,currentSlide:_,trackStyle:ag(Fn(Fn({},t),{},{left:S})),swipeLeft:null,targetSlide:R}):C={currentSlide:_,trackStyle:ag(Fn(Fn({},t),{},{left:S})),lazyLoadedList:y,targetSlide:R};return{state:C,nextState:E}};ze.slideHandler=zxe;var jxe=function(t,n){var r,i,a,o,s,l=t.slidesToScroll,c=t.slidesToShow,f=t.slideCount,h=t.currentSlide,p=t.targetSlide,v=t.lazyLoad,y=t.infinite;if(o=f%l!==0,r=o?0:(f-h)%l,n.message==="previous")a=r===0?l:c-r,s=h-a,v&&!y&&(i=h-a,s=i===-1?f-1:i),y||(s=p-l);else if(n.message==="next")a=r===0?l:r,s=h+a,v&&!y&&(s=(h+l)%f+r),y||(s=p+l);else if(n.message==="dots")s=n.index*n.slidesToScroll;else if(n.message==="children"){if(s=n.index,y){var m=Fz(Fn(Fn({},t),{},{targetSlide:s}));s>n.currentSlide&&m==="left"?s=s-f:s<n.currentSlide&&m==="right"&&(s=s+f)}}else n.message==="index"&&(s=Number(n.index));return s};ze.changeSlide=jxe;var Bxe=function(t,n,r){return t.target.tagName.match("TEXTAREA|INPUT|SELECT")||!n?"":t.keyCode===37?r?"next":"previous":t.keyCode===39?r?"previous":"next":""};ze.keyHandler=Bxe;var Vxe=function(t,n,r){return t.target.tagName==="IMG"&&Sc(t),!n||!r&&t.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:t.touches?t.touches[0].pageX:t.clientX,startY:t.touches?t.touches[0].pageY:t.clientY,curX:t.touches?t.touches[0].pageX:t.clientX,curY:t.touches?t.touches[0].pageY:t.clientY}}};ze.swipeStart=Vxe;var Uxe=function(t,n){var r=n.scrolling,i=n.animating,a=n.vertical,o=n.swipeToSlide,s=n.verticalSwiping,l=n.rtl,c=n.currentSlide,f=n.edgeFriction,h=n.edgeDragged,p=n.onEdge,v=n.swiped,y=n.swiping,m=n.slideCount,_=n.slidesToScroll,b=n.infinite,S=n.touchObject,C=n.swipeEvent,E=n.listHeight,R=n.listWidth;if(!r){if(i)return Sc(t);a&&o&&s&&Sc(t);var A,I={},M=og(n);S.curX=t.touches?t.touches[0].pageX:t.clientX,S.curY=t.touches?t.touches[0].pageY:t.clientY,S.swipeLength=Math.round(Math.sqrt(Math.pow(S.curX-S.startX,2)));var F=Math.round(Math.sqrt(Math.pow(S.curY-S.startY,2)));if(!s&&!y&&F>10)return{scrolling:!0};s&&(S.swipeLength=F);var z=(l?-1:1)*(S.curX>S.startX?1:-1);s&&(z=S.curY>S.startY?1:-1);var Y=Math.ceil(m/_),W=r8(n.touchObject,s),q=S.swipeLength;return b||(c===0&&(W==="right"||W==="down")||c+1>=Y&&(W==="left"||W==="up")||!i8(n)&&(W==="left"||W==="up"))&&(q=S.swipeLength*f,h===!1&&p&&(p(W),I.edgeDragged=!0)),!v&&C&&(C(W),I.swiped=!0),a?A=M+q*(E/R)*z:l?A=M-q*z:A=M+q*z,s&&(A=M+q*z),I=Fn(Fn({},I),{},{touchObject:S,swipeLeft:A,trackStyle:ag(Fn(Fn({},n),{},{left:A}))}),Math.abs(S.curX-S.startX)<Math.abs(S.curY-S.startY)*.8||S.swipeLength>10&&(I.swiping=!0,Sc(t)),I}};ze.swipeMove=Uxe;var Hxe=function(t,n){var r=n.dragging,i=n.swipe,a=n.touchObject,o=n.listWidth,s=n.touchThreshold,l=n.verticalSwiping,c=n.listHeight,f=n.swipeToSlide,h=n.scrolling,p=n.onSwipe,v=n.targetSlide,y=n.currentSlide,m=n.infinite;if(!r)return i&&Sc(t),{};var _=l?c/s:o/s,b=r8(a,l),S={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(h||!a.swipeLength)return S;if(a.swipeLength>_){Sc(t),p&&p(b);var C,E,R=m?y:v;switch(b){case"left":case"up":E=R+C3(n),C=f?x3(n,E):E,S.currentDirection=0;break;case"right":case"down":E=R-C3(n),C=f?x3(n,E):E,S.currentDirection=1;break;default:C=R}S.triggerSlideHandler=C}else{var A=og(n);S.trackStyle=a8(Fn(Fn({},n),{},{left:A}))}return S};ze.swipeEnd=Hxe;var Mz=function(t){for(var n=t.infinite?t.slideCount*2:t.slideCount,r=t.infinite?t.slidesToShow*-1:0,i=t.infinite?t.slidesToShow*-1:0,a=[];r<n;)a.push(r),r=i+t.slidesToScroll,i+=Math.min(t.slidesToScroll,t.slidesToShow);return a};ze.getNavigableIndexes=Mz;var x3=function(t,n){var r=Mz(t),i=0;if(n>r[r.length-1])n=r[r.length-1];else for(var a in r){if(n<r[a]){n=i;break}i=r[a]}return n};ze.checkNavigable=x3;var C3=function(t){var n=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;if(t.swipeToSlide){var r,i=t.listRef,a=i.querySelectorAll&&i.querySelectorAll(".slick-slide")||[];if(Array.from(a).every(function(l){if(t.vertical){if(l.offsetTop+n8(l)/2>t.swipeLeft*-1)return r=l,!1}else if(l.offsetLeft-n+Q1(l)/2>t.swipeLeft*-1)return r=l,!1;return!0}),!r)return 0;var o=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,s=Math.abs(r.dataset.index-o)||1;return s}else return t.slidesToScroll};ze.getSlideCount=C3;var Gb=function(t,n){return n.reduce(function(r,i){return r&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing:",t)};ze.checkSpecKeys=Gb;var ag=function(t){Gb(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,r,i=t.slideCount+2*t.slidesToShow;t.vertical?r=i*t.slideHeight:n=Nz(t)*t.slideWidth;var a={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var o=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";a=Fn(Fn({},a),{},{WebkitTransform:o,transform:s,msTransform:l})}else t.vertical?a.top=t.left:a.left=t.left;return t.fade&&(a={opacity:1}),n&&(a.width=n),r&&(a.height=r),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?a.marginTop=t.left+"px":a.marginLeft=t.left+"px"),a};ze.getTrackCSS=ag;var a8=function(t){Gb(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=ag(t);return t.useTransform?(n.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,n.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?n.transition="top "+t.speed+"ms "+t.cssEase:n.transition="left "+t.speed+"ms "+t.cssEase,n};ze.getTrackAnimateCSS=a8;var og=function(t){if(t.unslick)return 0;Gb(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var n=t.slideIndex,r=t.trackRef,i=t.infinite,a=t.centerMode,o=t.slideCount,s=t.slidesToShow,l=t.slidesToScroll,c=t.slideWidth,f=t.listWidth,h=t.variableWidth,p=t.slideHeight,v=t.fade,y=t.vertical,m=0,_,b,S=0;if(v||t.slideCount===1)return 0;var C=0;if(i?(C=-gm(t),o%l!==0&&n+l>o&&(C=-(n>o?s-(n-o):o%l)),a&&(C+=parseInt(s/2))):(o%l!==0&&n+l>o&&(C=s-o%l),a&&(C=parseInt(s/2))),m=C*c,S=C*p,y?_=n*p*-1+S:_=n*c*-1+m,h===!0){var E,R=r&&r.node;if(E=n+gm(t),b=R&&R.childNodes[E],_=b?b.offsetLeft*-1:0,a===!0){E=i?n+gm(t):n,b=R&&R.children[E],_=0;for(var A=0;A<E;A++)_-=R&&R.children[A]&&R.children[A].offsetWidth;_-=parseInt(t.centerPadding),_+=b&&(f-b.offsetWidth)/2}}return _};ze.getTrackLeft=og;var gm=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)};ze.getPreClones=gm;var Dz=function(t){return t.unslick||!t.infinite?0:t.slideCount};ze.getPostClones=Dz;var Nz=function(t){return t.slideCount===1?1:gm(t)+t.slideCount+Dz(t)};ze.getTotalSlides=Nz;var Fz=function(t){return t.targetSlide>t.currentSlide?t.targetSlide>t.currentSlide+$z(t)?"left":"right":t.targetSlide<t.currentSlide-zz(t)?"right":"left"};ze.siblingDirection=Fz;var $z=function(t){var n=t.slidesToShow,r=t.centerMode,i=t.rtl,a=t.centerPadding;if(r){var o=(n-1)/2+1;return parseInt(a)>0&&(o+=1),i&&n%2===0&&(o+=1),o}return i?0:n-1};ze.slidesOnRight=$z;var zz=function(t){var n=t.slidesToShow,r=t.centerMode,i=t.rtl,a=t.centerPadding;if(r){var o=(n-1)/2+1;return parseInt(a)>0&&(o+=1),!i&&n%2===0&&(o+=1),o}return i?n-1:0};ze.slidesOnLeft=zz;var Wxe=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};ze.canUseDOM=Wxe;var Kb={};function E3(e){"@babel/helpers - typeof";return E3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E3(e)}Object.defineProperty(Kb,"__esModule",{value:!0});Kb.Track=void 0;var jl=jz(w),Hw=jz(qb),Ww=ze;function jz(e){return e&&e.__esModule?e:{default:e}}function k3(){return k3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k3.apply(this,arguments)}function qxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gxe(e,t,n){return t&&WO(e.prototype,t),n&&WO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T3(e,t)}function T3(e,t){return T3=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},T3(e,t)}function Yxe(e){var t=Qxe();return function(){var r=X1(e),i;if(t){var a=X1(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Zxe(this,i)}}function Zxe(e,t){if(t&&(E3(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P3(e)}function P3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X1(e){return X1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},X1(e)}function qO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(n),!0).forEach(function(r){O3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qw=function(t){var n,r,i,a,o;t.rtl?o=t.slideCount-1-t.index:o=t.index,i=o<0||o>=t.slideCount,t.centerMode?(a=Math.floor(t.slidesToShow/2),r=(o-t.currentSlide)%t.slideCount===0,o>t.currentSlide-a-1&&o<=t.currentSlide+a&&(n=!0)):n=t.currentSlide<=o&&o<t.currentSlide+t.slidesToShow;var s;t.targetSlide<0?s=t.targetSlide+t.slideCount:t.targetSlide>=t.slideCount?s=t.targetSlide-t.slideCount:s=t.targetSlide;var l=o===s;return{"slick-slide":!0,"slick-active":n,"slick-center":r,"slick-cloned":i,"slick-current":l}},Xxe=function(t){var n={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(n.width=t.slideWidth),t.fade&&(n.position="relative",t.vertical?n.top=-t.index*parseInt(t.slideHeight):n.left=-t.index*parseInt(t.slideWidth),n.opacity=t.currentSlide===t.index?1:0,t.useCSS&&(n.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),n},Gw=function(t,n){return t.key||n},Jxe=function(t){var n,r=[],i=[],a=[],o=jl.default.Children.count(t.children),s=(0,Ww.lazyStartIndex)(t),l=(0,Ww.lazyEndIndex)(t);return jl.default.Children.forEach(t.children,function(c,f){var h,p={message:"children",index:f,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(f)>=0?h=c:h=jl.default.createElement("div",null);var v=Xxe(Ui(Ui({},t),{},{index:f})),y=h.props.className||"",m=qw(Ui(Ui({},t),{},{index:f}));if(r.push(jl.default.cloneElement(h,{key:"original"+Gw(h,f),"data-index":f,className:(0,Hw.default)(m,y),tabIndex:"-1","aria-hidden":!m["slick-active"],style:Ui(Ui({outline:"none"},h.props.style||{}),v),onClick:function(S){h.props&&h.props.onClick&&h.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(p)}})),t.infinite&&t.fade===!1){var _=o-f;_<=(0,Ww.getPreClones)(t)&&o!==t.slidesToShow&&(n=-_,n>=s&&(h=c),m=qw(Ui(Ui({},t),{},{index:n})),i.push(jl.default.cloneElement(h,{key:"precloned"+Gw(h,n),"data-index":n,tabIndex:"-1",className:(0,Hw.default)(m,y),"aria-hidden":!m["slick-active"],style:Ui(Ui({},h.props.style||{}),v),onClick:function(S){h.props&&h.props.onClick&&h.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(p)}}))),o!==t.slidesToShow&&(n=o+f,n<l&&(h=c),m=qw(Ui(Ui({},t),{},{index:n})),a.push(jl.default.cloneElement(h,{key:"postcloned"+Gw(h,n),"data-index":n,tabIndex:"-1",className:(0,Hw.default)(m,y),"aria-hidden":!m["slick-active"],style:Ui(Ui({},h.props.style||{}),v),onClick:function(S){h.props&&h.props.onClick&&h.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(p)}})))}}),t.rtl?i.concat(r,a).reverse():i.concat(r,a)},eCe=function(e){Kxe(n,e);var t=Yxe(n);function n(){var r;qxe(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),O3(P3(r),"node",null),O3(P3(r),"handleRef",function(s){r.node=s}),r}return Gxe(n,[{key:"render",value:function(){var i=Jxe(this.props),a=this.props,o=a.onMouseEnter,s=a.onMouseOver,l=a.onMouseLeave,c={onMouseEnter:o,onMouseOver:s,onMouseLeave:l};return jl.default.createElement("div",k3({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},c),i)}}]),n}(jl.default.PureComponent);Kb.Track=eCe;var Yb={};function R3(e){"@babel/helpers - typeof";return R3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R3(e)}Object.defineProperty(Yb,"__esModule",{value:!0});Yb.Dots=void 0;var B0=Bz(w),tCe=Bz(qb),GO=ze;function Bz(e){return e&&e.__esModule?e:{default:e}}function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nCe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KO(Object(n),!0).forEach(function(r){rCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rCe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aCe(e,t,n){return t&&YO(e.prototype,t),n&&YO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oCe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A3(e,t)}function A3(e,t){return A3=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},A3(e,t)}function sCe(e){var t=cCe();return function(){var r=J1(e),i;if(t){var a=J1(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return lCe(this,i)}}function lCe(e,t){if(t&&(R3(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uCe(e)}function uCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function J1(e){return J1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},J1(e)}var dCe=function(t){var n;return t.infinite?n=Math.ceil(t.slideCount/t.slidesToScroll):n=Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1,n},fCe=function(e){oCe(n,e);var t=sCe(n);function n(){return iCe(this,n),t.apply(this,arguments)}return aCe(n,[{key:"clickHandler",value:function(i,a){a.preventDefault(),this.props.clickHandler(i)}},{key:"render",value:function(){for(var i=this.props,a=i.onMouseEnter,o=i.onMouseOver,s=i.onMouseLeave,l=i.infinite,c=i.slidesToScroll,f=i.slidesToShow,h=i.slideCount,p=i.currentSlide,v=dCe({slideCount:h,slidesToScroll:c,slidesToShow:f,infinite:l}),y={onMouseEnter:a,onMouseOver:o,onMouseLeave:s},m=[],_=0;_<v;_++){var b=(_+1)*c-1,S=l?b:(0,GO.clamp)(b,0,h-1),C=S-(c-1),E=l?C:(0,GO.clamp)(C,0,h-1),R=(0,tCe.default)({"slick-active":l?p>=E&&p<=S:p===E}),A={message:"dots",index:_,slidesToScroll:c,currentSlide:p},I=this.clickHandler.bind(this,A);m=m.concat(B0.default.createElement("li",{key:_,className:R},B0.default.cloneElement(this.props.customPaging(_),{onClick:I})))}return B0.default.cloneElement(this.props.appendDots(m),nCe({className:this.props.dotsClass},y))}}]),n}(B0.default.PureComponent);Yb.Dots=fCe;var ih={};function I3(e){"@babel/helpers - typeof";return I3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I3(e)}Object.defineProperty(ih,"__esModule",{value:!0});ih.PrevArrow=ih.NextArrow=void 0;var Af=Uz(w),Vz=Uz(qb),hCe=ze;function Uz(e){return e&&e.__esModule?e:{default:e}}function e_(){return e_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e_.apply(this,arguments)}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function t_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){pCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pCe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wz(e,t,n){return t&&QO(e.prototype,t),n&&QO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L3(e,t)}function L3(e,t){return L3=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},L3(e,t)}function Gz(e){var t=vCe();return function(){var r=n_(e),i;if(t){var a=n_(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return mCe(this,i)}}function mCe(e,t){if(t&&(I3(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gCe(e)}function gCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n_(e){return n_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},n_(e)}var yCe=function(e){qz(n,e);var t=Gz(n);function n(){return Hz(this,n),t.apply(this,arguments)}return Wz(n,[{key:"clickHandler",value:function(i,a){a&&a.preventDefault(),this.props.clickHandler(i,a)}},{key:"render",value:function(){var i={"slick-arrow":!0,"slick-prev":!0},a=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(i["slick-disabled"]=!0,a=null);var o={key:"0","data-role":"none",className:(0,Vz.default)(i),style:{display:"block"},onClick:a},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.prevArrow?l=Af.default.cloneElement(this.props.prevArrow,t_(t_({},o),s)):l=Af.default.createElement("button",e_({key:"0",type:"button"},o)," ","Previous"),l}}]),n}(Af.default.PureComponent);ih.PrevArrow=yCe;var _Ce=function(e){qz(n,e);var t=Gz(n);function n(){return Hz(this,n),t.apply(this,arguments)}return Wz(n,[{key:"clickHandler",value:function(i,a){a&&a.preventDefault(),this.props.clickHandler(i,a)}},{key:"render",value:function(){var i={"slick-arrow":!0,"slick-next":!0},a=this.clickHandler.bind(this,{message:"next"});(0,hCe.canGoNext)(this.props)||(i["slick-disabled"]=!0,a=null);var o={key:"1","data-role":"none",className:(0,Vz.default)(i),style:{display:"block"},onClick:a},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.nextArrow?l=Af.default.cloneElement(this.props.nextArrow,t_(t_({},o),s)):l=Af.default.createElement("button",e_({key:"1",type:"button"},o)," ","Next"),l}}]),n}(Af.default.PureComponent);ih.NextArrow=_Ce;var Kz=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},t}()}(),M3=typeof window<"u"&&typeof document<"u"&&window.document===document,r_=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),bCe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(r_):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),SCe=2;function wCe(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){bCe(a)}function s(){var l=Date.now();if(n){if(l-i<SCe)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=l}return s}var xCe=20,CCe=["top","right","bottom","left","width","height","size","weight"],ECe=typeof MutationObserver<"u",kCe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=wCe(this.refresh.bind(this),xCe)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!M3||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ECe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!M3||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=CCe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Yz=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},ah=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||r_},Zz=Zb(0,0,0,0);function i_(e){return parseFloat(e)||0}function XO(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+i_(a)},0)}function TCe(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=i_(o)}return n}function PCe(e){var t=e.getBBox();return Zb(0,0,t.width,t.height)}function OCe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Zz;var r=ah(e).getComputedStyle(e),i=TCe(r),a=i.left+i.right,o=i.top+i.bottom,s=i_(r.width),l=i_(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=XO(r,"left","right")+a),Math.round(l+o)!==n&&(l-=XO(r,"top","bottom")+o)),!ACe(e)){var c=Math.round(s+a)-t,f=Math.round(l+o)-n;Math.abs(c)!==1&&(s-=c),Math.abs(f)!==1&&(l-=f)}return Zb(i.left,i.top,s,l)}var RCe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ah(e).SVGGraphicsElement}:function(e){return e instanceof ah(e).SVGElement&&typeof e.getBBox=="function"}}();function ACe(e){return e===ah(e).document.documentElement}function ICe(e){return M3?RCe(e)?PCe(e):OCe(e):Zz}function LCe(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return Yz(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function Zb(e,t,n,r){return{x:e,y:t,width:n,height:r}}var MCe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Zb(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ICe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),DCe=function(){function e(t,n){var r=LCe(n);Yz(this,{target:t,contentRect:r})}return e}(),NCe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Kz,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ah(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new MCe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ah(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new DCe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Qz=typeof WeakMap<"u"?new WeakMap:new Kz,Xz=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=kCe.getInstance(),r=new NCe(t,n,this);Qz.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Xz.prototype[e]=function(){var t;return(t=Qz.get(this))[e].apply(t,arguments)}});var FCe=function(){return typeof r_.ResizeObserver<"u"?r_.ResizeObserver:Xz}();const $Ce=Object.freeze(Object.defineProperty({__proto__:null,default:FCe},Symbol.toStringTag,{value:"Module"})),zCe=lA($Ce);Object.defineProperty(Wb,"__esModule",{value:!0});Wb.InnerSlider=void 0;var Ci=Jg(w),jCe=Jg(Oz),BCe=Jg(Ixe),VCe=Jg(qb),Vn=ze,UCe=Kb,HCe=Yb,JO=ih,WCe=Jg(zCe);function Jg(e){return e&&e.__esModule?e:{default:e}}function a_(e){"@babel/helpers - typeof";return a_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a_(e)}function o_(){return o_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o_.apply(this,arguments)}function qCe(e,t){if(e==null)return{};var n=GCe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GCe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){Bt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YCe(e,t,n){return t&&tR(e.prototype,t),n&&tR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZCe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D3(e,t)}function D3(e,t){return D3=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},D3(e,t)}function QCe(e){var t=JCe();return function(){var r=s_(e),i;if(t){var a=s_(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return XCe(this,i)}}function XCe(e,t){if(t&&(a_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jt(e)}function jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s_(e){return s_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},s_(e)}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var e3e=function(e){ZCe(n,e);var t=QCe(n);function n(r){var i;KCe(this,n),i=t.call(this,r),Bt(jt(i),"listRefHandler",function(o){return i.list=o}),Bt(jt(i),"trackRefHandler",function(o){return i.track=o}),Bt(jt(i),"adaptHeight",function(){if(i.props.adaptiveHeight&&i.list){var o=i.list.querySelector('[data-index="'.concat(i.state.currentSlide,'"]'));i.list.style.height=(0,Vn.getHeight)(o)+"px"}}),Bt(jt(i),"componentDidMount",function(){if(i.props.onInit&&i.props.onInit(),i.props.lazyLoad){var o=(0,Vn.getOnDemandLazySlides)(ft(ft({},i.props),i.state));o.length>0&&(i.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(o)}}),i.props.onLazyLoad&&i.props.onLazyLoad(o))}var s=ft({listRef:i.list,trackRef:i.track},i.props);i.updateState(s,!0,function(){i.adaptHeight(),i.props.autoplay&&i.autoPlay("update")}),i.props.lazyLoad==="progressive"&&(i.lazyLoadTimer=setInterval(i.progressiveLazyLoad,1e3)),i.ro=new WCe.default(function(){i.state.animating?(i.onWindowResized(!1),i.callbackTimers.push(setTimeout(function(){return i.onWindowResized()},i.props.speed))):i.onWindowResized()}),i.ro.observe(i.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=i.props.pauseOnFocus?i.onSlideFocus:null,l.onblur=i.props.pauseOnFocus?i.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",i.onWindowResized):window.attachEvent("onresize",i.onWindowResized)}),Bt(jt(i),"componentWillUnmount",function(){i.animationEndCallback&&clearTimeout(i.animationEndCallback),i.lazyLoadTimer&&clearInterval(i.lazyLoadTimer),i.callbackTimers.length&&(i.callbackTimers.forEach(function(o){return clearTimeout(o)}),i.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",i.onWindowResized):window.detachEvent("onresize",i.onWindowResized),i.autoplayTimer&&clearInterval(i.autoplayTimer),i.ro.disconnect()}),Bt(jt(i),"componentDidUpdate",function(o){if(i.checkImagesLoad(),i.props.onReInit&&i.props.onReInit(),i.props.lazyLoad){var s=(0,Vn.getOnDemandLazySlides)(ft(ft({},i.props),i.state));s.length>0&&(i.setState(function(f){return{lazyLoadedList:f.lazyLoadedList.concat(s)}}),i.props.onLazyLoad&&i.props.onLazyLoad(s))}i.adaptHeight();var l=ft(ft({listRef:i.list,trackRef:i.track},i.props),i.state),c=i.didPropsChange(o);c&&i.updateState(l,c,function(){i.state.currentSlide>=Ci.default.Children.count(i.props.children)&&i.changeSlide({message:"index",index:Ci.default.Children.count(i.props.children)-i.props.slidesToShow,currentSlide:i.state.currentSlide}),i.props.autoplay?i.autoPlay("update"):i.pause("paused")})}),Bt(jt(i),"onWindowResized",function(o){i.debouncedResize&&i.debouncedResize.cancel(),i.debouncedResize=(0,BCe.default)(function(){return i.resizeWindow(o)},50),i.debouncedResize()}),Bt(jt(i),"resizeWindow",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(i.track&&i.track.node);if(s){var l=ft(ft({listRef:i.list,trackRef:i.track},i.props),i.state);i.updateState(l,o,function(){i.props.autoplay?i.autoPlay("update"):i.pause("paused")}),i.setState({animating:!1}),clearTimeout(i.animationEndCallback),delete i.animationEndCallback}}),Bt(jt(i),"updateState",function(o,s,l){var c=(0,Vn.initializedState)(o);o=ft(ft(ft({},o),c),{},{slideIndex:c.currentSlide});var f=(0,Vn.getTrackLeft)(o);o=ft(ft({},o),{},{left:f});var h=(0,Vn.getTrackCSS)(o);(s||Ci.default.Children.count(i.props.children)!==Ci.default.Children.count(o.children))&&(c.trackStyle=h),i.setState(c,l)}),Bt(jt(i),"ssrInit",function(){if(i.props.variableWidth){var o=0,s=0,l=[],c=(0,Vn.getPreClones)(ft(ft(ft({},i.props),i.state),{},{slideCount:i.props.children.length})),f=(0,Vn.getPostClones)(ft(ft(ft({},i.props),i.state),{},{slideCount:i.props.children.length}));i.props.children.forEach(function(I){l.push(I.props.style.width),o+=I.props.style.width});for(var h=0;h<c;h++)s+=l[l.length-1-h],o+=l[l.length-1-h];for(var p=0;p<f;p++)o+=l[p];for(var v=0;v<i.state.currentSlide;v++)s+=l[v];var y={width:o+"px",left:-s+"px"};if(i.props.centerMode){var m="".concat(l[i.state.currentSlide],"px");y.left="calc(".concat(y.left," + (100% - ").concat(m,") / 2 ) ")}return{trackStyle:y}}var _=Ci.default.Children.count(i.props.children),b=ft(ft(ft({},i.props),i.state),{},{slideCount:_}),S=(0,Vn.getPreClones)(b)+(0,Vn.getPostClones)(b)+_,C=100/i.props.slidesToShow*S,E=100/S,R=-E*((0,Vn.getPreClones)(b)+i.state.currentSlide)*C/100;i.props.centerMode&&(R+=(100-E*C/100)/2);var A={width:C+"%",left:R+"%"};return{slideWidth:E+"%",trackStyle:A}}),Bt(jt(i),"checkImagesLoad",function(){var o=i.list&&i.list.querySelectorAll&&i.list.querySelectorAll(".slick-slide img")||[],s=o.length,l=0;Array.prototype.forEach.call(o,function(c){var f=function(){return++l&&l>=s&&i.onWindowResized()};if(!c.onclick)c.onclick=function(){return c.parentNode.focus()};else{var h=c.onclick;c.onclick=function(){h(),c.parentNode.focus()}}c.onload||(i.props.lazyLoad?c.onload=function(){i.adaptHeight(),i.callbackTimers.push(setTimeout(i.onWindowResized,i.props.speed))}:(c.onload=f,c.onerror=function(){f(),i.props.onLazyLoadError&&i.props.onLazyLoadError()}))})}),Bt(jt(i),"progressiveLazyLoad",function(){for(var o=[],s=ft(ft({},i.props),i.state),l=i.state.currentSlide;l<i.state.slideCount+(0,Vn.getPostClones)(s);l++)if(i.state.lazyLoadedList.indexOf(l)<0){o.push(l);break}for(var c=i.state.currentSlide-1;c>=-(0,Vn.getPreClones)(s);c--)if(i.state.lazyLoadedList.indexOf(c)<0){o.push(c);break}o.length>0?(i.setState(function(f){return{lazyLoadedList:f.lazyLoadedList.concat(o)}}),i.props.onLazyLoad&&i.props.onLazyLoad(o)):i.lazyLoadTimer&&(clearInterval(i.lazyLoadTimer),delete i.lazyLoadTimer)}),Bt(jt(i),"slideHandler",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i.props,c=l.asNavFor,f=l.beforeChange,h=l.onLazyLoad,p=l.speed,v=l.afterChange,y=i.state.currentSlide,m=(0,Vn.slideHandler)(ft(ft(ft({index:o},i.props),i.state),{},{trackRef:i.track,useCSS:i.props.useCSS&&!s})),_=m.state,b=m.nextState;if(_){f&&f(y,_.currentSlide);var S=_.lazyLoadedList.filter(function(C){return i.state.lazyLoadedList.indexOf(C)<0});h&&S.length>0&&h(S),!i.props.waitForAnimate&&i.animationEndCallback&&(clearTimeout(i.animationEndCallback),v&&v(y),delete i.animationEndCallback),i.setState(_,function(){c&&i.asNavForIndex!==o&&(i.asNavForIndex=o,c.innerSlider.slideHandler(o)),b&&(i.animationEndCallback=setTimeout(function(){var C=b.animating,E=qCe(b,["animating"]);i.setState(E,function(){i.callbackTimers.push(setTimeout(function(){return i.setState({animating:C})},10)),v&&v(_.currentSlide),delete i.animationEndCallback})},p))})}}),Bt(jt(i),"changeSlide",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=ft(ft({},i.props),i.state),c=(0,Vn.changeSlide)(l,o);if(!(c!==0&&!c)&&(s===!0?i.slideHandler(c,s):i.slideHandler(c),i.props.autoplay&&i.autoPlay("update"),i.props.focusOnSelect)){var f=i.list.querySelectorAll(".slick-current");f[0]&&f[0].focus()}}),Bt(jt(i),"clickHandler",function(o){i.clickable===!1&&(o.stopPropagation(),o.preventDefault()),i.clickable=!0}),Bt(jt(i),"keyHandler",function(o){var s=(0,Vn.keyHandler)(o,i.props.accessibility,i.props.rtl);s!==""&&i.changeSlide({message:s})}),Bt(jt(i),"selectHandler",function(o){i.changeSlide(o)}),Bt(jt(i),"disableBodyScroll",function(){var o=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=o}),Bt(jt(i),"enableBodyScroll",function(){window.ontouchmove=null}),Bt(jt(i),"swipeStart",function(o){i.props.verticalSwiping&&i.disableBodyScroll();var s=(0,Vn.swipeStart)(o,i.props.swipe,i.props.draggable);s!==""&&i.setState(s)}),Bt(jt(i),"swipeMove",function(o){var s=(0,Vn.swipeMove)(o,ft(ft(ft({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));s&&(s.swiping&&(i.clickable=!1),i.setState(s))}),Bt(jt(i),"swipeEnd",function(o){var s=(0,Vn.swipeEnd)(o,ft(ft(ft({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));if(s){var l=s.triggerSlideHandler;delete s.triggerSlideHandler,i.setState(s),l!==void 0&&(i.slideHandler(l),i.props.verticalSwiping&&i.enableBodyScroll())}}),Bt(jt(i),"touchEnd",function(o){i.swipeEnd(o),i.clickable=!0}),Bt(jt(i),"slickPrev",function(){i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"previous"})},0))}),Bt(jt(i),"slickNext",function(){i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"next"})},0))}),Bt(jt(i),"slickGoTo",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o=Number(o),isNaN(o))return"";i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"index",index:o,currentSlide:i.state.currentSlide},s)},0))}),Bt(jt(i),"play",function(){var o;if(i.props.rtl)o=i.state.currentSlide-i.props.slidesToScroll;else if((0,Vn.canGoNext)(ft(ft({},i.props),i.state)))o=i.state.currentSlide+i.props.slidesToScroll;else return!1;i.slideHandler(o)}),Bt(jt(i),"autoPlay",function(o){i.autoplayTimer&&clearInterval(i.autoplayTimer);var s=i.state.autoplaying;if(o==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(o==="leave"){if(s==="paused"||s==="focused")return}else if(o==="blur"&&(s==="paused"||s==="hovered"))return;i.autoplayTimer=setInterval(i.play,i.props.autoplaySpeed+50),i.setState({autoplaying:"playing"})}),Bt(jt(i),"pause",function(o){i.autoplayTimer&&(clearInterval(i.autoplayTimer),i.autoplayTimer=null);var s=i.state.autoplaying;o==="paused"?i.setState({autoplaying:"paused"}):o==="focused"?(s==="hovered"||s==="playing")&&i.setState({autoplaying:"focused"}):s==="playing"&&i.setState({autoplaying:"hovered"})}),Bt(jt(i),"onDotsOver",function(){return i.props.autoplay&&i.pause("hovered")}),Bt(jt(i),"onDotsLeave",function(){return i.props.autoplay&&i.state.autoplaying==="hovered"&&i.autoPlay("leave")}),Bt(jt(i),"onTrackOver",function(){return i.props.autoplay&&i.pause("hovered")}),Bt(jt(i),"onTrackLeave",function(){return i.props.autoplay&&i.state.autoplaying==="hovered"&&i.autoPlay("leave")}),Bt(jt(i),"onSlideFocus",function(){return i.props.autoplay&&i.pause("focused")}),Bt(jt(i),"onSlideBlur",function(){return i.props.autoplay&&i.state.autoplaying==="focused"&&i.autoPlay("blur")}),Bt(jt(i),"render",function(){var o=(0,VCe.default)("slick-slider",i.props.className,{"slick-vertical":i.props.vertical,"slick-initialized":!0}),s=ft(ft({},i.props),i.state),l=(0,Vn.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=i.props.pauseOnHover;l=ft(ft({},l),{},{onMouseEnter:c?i.onTrackOver:null,onMouseLeave:c?i.onTrackLeave:null,onMouseOver:c?i.onTrackOver:null,focusOnSelect:i.props.focusOnSelect&&i.clickable?i.selectHandler:null});var f;if(i.props.dots===!0&&i.state.slideCount>=i.props.slidesToShow){var h=(0,Vn.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),p=i.props.pauseOnDotsHover;h=ft(ft({},h),{},{clickHandler:i.changeSlide,onMouseEnter:p?i.onDotsLeave:null,onMouseOver:p?i.onDotsOver:null,onMouseLeave:p?i.onDotsLeave:null}),f=Ci.default.createElement(HCe.Dots,h)}var v,y,m=(0,Vn.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);m.clickHandler=i.changeSlide,i.props.arrows&&(v=Ci.default.createElement(JO.PrevArrow,m),y=Ci.default.createElement(JO.NextArrow,m));var _=null;i.props.vertical&&(_={height:i.state.listHeight});var b=null;i.props.vertical===!1?i.props.centerMode===!0&&(b={padding:"0px "+i.props.centerPadding}):i.props.centerMode===!0&&(b={padding:i.props.centerPadding+" 0px"});var S=ft(ft({},_),b),C=i.props.touchMove,E={className:"slick-list",style:S,onClick:i.clickHandler,onMouseDown:C?i.swipeStart:null,onMouseMove:i.state.dragging&&C?i.swipeMove:null,onMouseUp:C?i.swipeEnd:null,onMouseLeave:i.state.dragging&&C?i.swipeEnd:null,onTouchStart:C?i.swipeStart:null,onTouchMove:i.state.dragging&&C?i.swipeMove:null,onTouchEnd:C?i.touchEnd:null,onTouchCancel:i.state.dragging&&C?i.swipeEnd:null,onKeyDown:i.props.accessibility?i.keyHandler:null},R={className:o,dir:"ltr",style:i.props.style};return i.props.unslick&&(E={className:"slick-list"},R={className:o}),Ci.default.createElement("div",R,i.props.unslick?"":v,Ci.default.createElement("div",o_({ref:i.listRefHandler},E),Ci.default.createElement(UCe.Track,o_({ref:i.trackRefHandler},l),i.props.children)),i.props.unslick?"":y,i.props.unslick?"":f)}),i.list=null,i.track=null,i.state=ft(ft({},jCe.default),{},{currentSlide:i.props.initialSlide,slideCount:Ci.default.Children.count(i.props.children)}),i.callbackTimers=[],i.clickable=!0,i.debouncedResize=null;var a=i.ssrInit();return i.state=ft(ft({},i.state),a),i}return YCe(n,[{key:"didPropsChange",value:function(i){for(var a=!1,o=0,s=Object.keys(this.props);o<s.length;o++){var l=s[o];if(!i.hasOwnProperty(l)){a=!0;break}if(!(a_(i[l])==="object"||typeof i[l]=="function")&&i[l]!==this.props[l]){a=!0;break}}return a||Ci.default.Children.count(this.props.children)!==Ci.default.Children.count(i.children)}}]),n}(Ci.default.Component);Wb.InnerSlider=e3e;var t3e=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},n3e=t3e,r3e=n3e,i3e=function(e){var t=/[height|width]$/;return t.test(e)},nR=function(e){var t="",n=Object.keys(e);return n.forEach(function(r,i){var a=e[r];r=r3e(r),i3e(r)&&typeof a=="number"&&(a=a+"px"),a===!0?t+=r:a===!1?t+="not "+r:t+="("+r+": "+a+")",i<n.length-1&&(t+=" and ")}),t},a3e=function(e){var t="";return typeof e=="string"?e:e instanceof Array?(e.forEach(function(n,r){t+=nR(n),r<e.length-1&&(t+=", ")}),t):nR(e)},o3e=a3e,Jz={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(w);function n(a){return a&&a.__esModule?a:{default:a}}var r={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(o){return t.default.createElement("ul",{style:{display:"block"}},o)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(o){return t.default.createElement("button",null,o+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},i=r;e.default=i})(Jz);var Kw,rR;function s3e(){if(rR)return Kw;rR=1;function e(t){this.options=t,!t.deferSetup&&this.setup()}return e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},Kw=e,Kw}var Yw,iR;function ej(){if(iR)return Yw;iR=1;function e(r,i){var a=0,o=r.length,s;for(a;a<o&&(s=i(r[a],a),s!==!1);a++);}function t(r){return Object.prototype.toString.apply(r)==="[object Array]"}function n(r){return typeof r=="function"}return Yw={isFunction:n,isArray:t,each:e},Yw}var Zw,aR;function l3e(){if(aR)return Zw;aR=1;var e=s3e(),t=ej().each;function n(r,i){this.query=r,this.isUnconditional=i,this.handlers=[],this.mql=window.matchMedia(r);var a=this;this.listener=function(o){a.mql=o.currentTarget||o,a.assess()},this.mql.addListener(this.listener)}return n.prototype={constuctor:n,addHandler:function(r){var i=new e(r);this.handlers.push(i),this.matches()&&i.on()},removeHandler:function(r){var i=this.handlers;t(i,function(a,o){if(a.equals(r))return a.destroy(),!i.splice(o,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(r){r.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var r=this.matches()?"on":"off";t(this.handlers,function(i){i[r]()})}},Zw=n,Zw}var Qw,oR;function u3e(){if(oR)return Qw;oR=1;var e=l3e(),t=ej(),n=t.each,r=t.isFunction,i=t.isArray;function a(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return a.prototype={constructor:a,register:function(o,s,l){var c=this.queries,f=l&&this.browserIsIncapable;return c[o]||(c[o]=new e(o,f)),r(s)&&(s={match:s}),i(s)||(s=[s]),n(s,function(h){r(h)&&(h={match:h}),c[o].addHandler(h)}),this},unregister:function(o,s){var l=this.queries[o];return l&&(s?l.removeHandler(s):(l.clear(),delete this.queries[o])),this}},Qw=a,Qw}var Xw,sR;function c3e(){if(sR)return Xw;sR=1;var e=u3e();return Xw=new e,Xw}(function(e){function t(M){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},t(M)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(w),r=Wb,i=s(o3e),a=s(Jz),o=ze;function s(M){return M&&M.__esModule?M:{default:M}}function l(){return l=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var z=arguments[F];for(var Y in z)Object.prototype.hasOwnProperty.call(z,Y)&&(M[Y]=z[Y])}return M},l.apply(this,arguments)}function c(M,F){var z=Object.keys(M);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(M);F&&(Y=Y.filter(function(W){return Object.getOwnPropertyDescriptor(M,W).enumerable})),z.push.apply(z,Y)}return z}function f(M){for(var F=1;F<arguments.length;F++){var z=arguments[F]!=null?arguments[F]:{};F%2?c(Object(z),!0).forEach(function(Y){R(M,Y,z[Y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(z)):c(Object(z)).forEach(function(Y){Object.defineProperty(M,Y,Object.getOwnPropertyDescriptor(z,Y))})}return M}function h(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function p(M,F){for(var z=0;z<F.length;z++){var Y=F[z];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(M,Y.key,Y)}}function v(M,F,z){return F&&p(M.prototype,F),z&&p(M,z),Object.defineProperty(M,"prototype",{writable:!1}),M}function y(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),F&&m(M,F)}function m(M,F){return m=Object.setPrototypeOf||function(Y,W){return Y.__proto__=W,Y},m(M,F)}function _(M){var F=C();return function(){var Y=E(M),W;if(F){var q=E(this).constructor;W=Reflect.construct(Y,arguments,q)}else W=Y.apply(this,arguments);return b(this,W)}}function b(M,F){if(F&&(t(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(M){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},E(M)}function R(M,F,z){return F in M?Object.defineProperty(M,F,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[F]=z,M}var A=(0,o.canUseDOM)()&&c3e(),I=function(M){y(z,M);var F=_(z);function z(Y){var W;return h(this,z),W=F.call(this,Y),R(S(W),"innerSliderRefHandler",function(q){return W.innerSlider=q}),R(S(W),"slickPrev",function(){return W.innerSlider.slickPrev()}),R(S(W),"slickNext",function(){return W.innerSlider.slickNext()}),R(S(W),"slickGoTo",function(q){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return W.innerSlider.slickGoTo(q,ae)}),R(S(W),"slickPause",function(){return W.innerSlider.pause("paused")}),R(S(W),"slickPlay",function(){return W.innerSlider.autoPlay("play")}),W.state={breakpoint:null},W._responsiveMediaHandlers=[],W}return v(z,[{key:"media",value:function(W,q){A.register(W,q),this._responsiveMediaHandlers.push({query:W,handler:q})}},{key:"componentDidMount",value:function(){var W=this;if(this.props.responsive){var q=this.props.responsive.map(function(ee){return ee.breakpoint});q.sort(function(ee,ce){return ee-ce}),q.forEach(function(ee,ce){var ue;ce===0?ue=(0,i.default)({minWidth:0,maxWidth:ee}):ue=(0,i.default)({minWidth:q[ce-1]+1,maxWidth:ee}),(0,o.canUseDOM)()&&W.media(ue,function(){W.setState({breakpoint:ee})})});var ae=(0,i.default)({minWidth:q.slice(-1)[0]});(0,o.canUseDOM)()&&this.media(ae,function(){W.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(W){A.unregister(W.query,W.handler)})}},{key:"render",value:function(){var W=this,q,ae;this.state.breakpoint?(ae=this.props.responsive.filter(function(ye){return ye.breakpoint===W.state.breakpoint}),q=ae[0].settings==="unslick"?"unslick":f(f(f({},a.default),this.props),ae[0].settings)):q=f(f({},a.default),this.props),q.centerMode&&(q.slidesToScroll>1,q.slidesToScroll=1),q.fade&&(q.slidesToShow>1,q.slidesToScroll>1,q.slidesToShow=1,q.slidesToScroll=1);var ee=n.default.Children.toArray(this.props.children);ee=ee.filter(function(ye){return typeof ye=="string"?!!ye.trim():!!ye}),q.variableWidth&&(q.rows>1||q.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),q.variableWidth=!1);for(var ce=[],ue=null,J=0;J<ee.length;J+=q.rows*q.slidesPerRow){for(var me=[],we=J;we<J+q.rows*q.slidesPerRow;we+=q.slidesPerRow){for(var Ce=[],Ee=we;Ee<we+q.slidesPerRow&&(q.variableWidth&&ee[Ee].props.style&&(ue=ee[Ee].props.style.width),!(Ee>=ee.length));Ee+=1)Ce.push(n.default.cloneElement(ee[Ee],{key:100*J+10*we+Ee,tabIndex:-1,style:{width:"".concat(100/q.slidesPerRow,"%"),display:"inline-block"}}));me.push(n.default.createElement("div",{key:10*J+we},Ce))}q.variableWidth?ce.push(n.default.createElement("div",{key:J,style:{width:ue}},me)):ce.push(n.default.createElement("div",{key:J},me))}if(q==="unslick"){var xe="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:xe},ee)}else ce.length<=q.slidesToShow&&(q.unslick=!0);return n.default.createElement(r.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},q),ce)}}]),z}(n.default.Component);e.default=I})(Pz);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Pz);function n(i){return i&&i.__esModule?i:{default:i}}var r=t.default;e.default=r})(Tz);const tj=vu(Tz),d3e={infinite:!0,speed:400,slidesToShow:3,slidesToScroll:1,autoplay:!0,arrows:!1,autoplaySpeed:6e3,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1}}]},f3e=({data:e=[],isLoading:t=!1})=>{var a,o;const n=w.useRef(null),r=w.useCallback(()=>{n.current&&n.current.slickNext()},[]),i=w.useCallback(()=>{n.current&&n.current.slickPrev()},[]);return T.jsxs($e,{w:"full",p:"20px",bg:"white",rounded:"md",borderColor:"gray.200",borderWidth:"1px",children:[T.jsxs(fi,{pb:"20px",justifyContent:"space-between",children:[T.jsxs($e,{children:[T.jsx(Ot,{as:"h1",fontSize:"lg",fontWeight:600,pb:"4px",children:"Latest articles"}),T.jsx(Ot,{as:"p",fontSize:"sm",color:"gray.500",children:"Inspire your productivity with the best new ideas in a variety of fields."})]}),(e==null?void 0:e.length)>3&&T.jsx($e,{children:T.jsxs(Fg,{spacing:"4px",direction:"row",children:[T.jsx(Km,{size:"sm",variant:"outline","aria-label":"Add to friends",icon:T.jsx(Cz,{}),onClick:()=>i()}),T.jsx(Km,{size:"sm",variant:"outline","aria-label":"Add to friends",icon:T.jsx(xz,{fontSize:"sm"}),onClick:()=>r()})]})})]}),t&&T.jsx($g,{gap:"20px",children:[...Array(3)].map((s,l)=>T.jsx(g6,{rounded:"md",height:"164px",w:"100%",startColor:"tc.gray.100",endColor:"tc.gray.400"},l))}),T.jsx($e,{w:"full",h:"full",sx:{".slick-slide > div":{margin:"0 10px",height:"100%"},".slick-list":{margin:"0 -10px"},".slick-track":{display:"flex !important"},".slick-slide":{height:"inherit !important"}},children:T.jsx(tj,{...d3e,ref:n,children:!t&&((o=(a=e==null?void 0:e.filter(s=>Number(s.publish)===1))==null?void 0:a.sort((s,l)=>s.postition-l.postition))==null?void 0:o.map((s,l)=>T.jsx($e,{overflow:"hidden",borderRadius:"8px",border:"1px solid #CBD5E0",transition:"0.2s all",onClick:()=>window.open(s.redirect_link,"_blank"),cursor:"pointer",children:T.jsxs($e,{h:"164px",w:"100%",position:"relative",children:[T.jsx(xu,{h:"164px",w:"100%",objectFit:"cover",alt:"image",src:s.image,fallbackSrc:"https://watchdiana.fail/blog/wp-content/themes/koji/assets/images/default-fallback-image.png"}),T.jsxs($e,{w:"full",position:"absolute",bottom:0,left:0,p:"8px",zIndex:4,children:[T.jsx(Ot,{fontSize:".75rem",color:"white",children:s.posted_at&&B6(new Date(s.posted_at),"PP")}),T.jsx(Ot,{color:"white",fontSize:".875rem",fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",noOfLines:2,_hover:{textDecorationStyle:"none"},children:s.title})]}),T.jsx($e,{zIndex:3,w:"full",h:"50%",position:"absolute",bottom:"0",left:"0",bg:"linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%)"})]})},l)))})})]})};var o8=Mg({displayName:"ExternalLinkIcon",path:T.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[T.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),T.jsx("path",{d:"M15 3h6v6"}),T.jsx("path",{d:"M10 14L21 3"})]})}),h3e=Mg({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),p3e=Mg({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),m3e=Mg({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),g3e=Mg({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});const v3e={infinite:!0,speed:400,slidesToShow:3,slidesToScroll:1,arrows:!1,autoplaySpeed:6e3,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1}}]},y3e=({data:e=[],isLoading:t=!1})=>{var a,o;const n=w.useRef(null),r=w.useCallback(()=>{n.current&&n.current.slickNext()},[]),i=w.useCallback(()=>{n.current&&n.current.slickPrev()},[]);return T.jsxs($e,{w:"full",p:"20px",bg:"white",rounded:"md",borderColor:"gray.200",borderWidth:"1px",children:[T.jsxs(fi,{pb:"20px",justifyContent:"space-between",children:[T.jsxs($e,{children:[T.jsx(Ot,{as:"h1",fontSize:"lg",fontWeight:600,pb:"4px",color:"gray.800",children:"What’s new"}),T.jsx(Ot,{as:"p",fontSize:"sm",color:"gray.500",children:"Keep you up to date on new features."})]}),(e==null?void 0:e.length)>3&&T.jsx($e,{children:T.jsxs(Fg,{spacing:"4px",direction:"row",children:[T.jsx(Km,{size:"sm",variant:"outline","aria-label":"Add to friends",icon:T.jsx(Cz,{}),onClick:()=>i()}),T.jsx(Km,{size:"sm",variant:"outline","aria-label":"Add to friends",icon:T.jsx(xz,{}),onClick:()=>r()})]})})]}),t&&T.jsx($g,{gap:"20px",children:[...Array(3)].map((s,l)=>T.jsx(g6,{rounded:"md",height:"164px",w:"100%",startColor:"tc.gray.100",endColor:"tc.gray.400"},l))}),T.jsx($e,{w:"full",h:"full",sx:{".slick-slide > div":{margin:"0 10px",height:"100%"},".slick-list":{margin:"0 -10px"},".slick-track":{display:"flex !important"},".slick-slide":{height:"inherit !important"}},children:T.jsx(tj,{...v3e,ref:n,children:!t&&((o=(a=e==null?void 0:e.filter(s=>Number(s.publish)===1))==null?void 0:a.sort((s,l)=>s.postition-l.postition))==null?void 0:o.map((s,l)=>T.jsxs($e,{borderRadius:"8px",border:"1px solid #CBD5E0",transition:"0.2s all",_hover:{shadow:"small"},p:"12px",h:"164px",bg:"gray.100",children:[T.jsx($e,{w:"100%",position:"relative",children:T.jsxs(fi,{alignItems:"center",justifyContent:"space-between",children:[T.jsx(Ot,{fontSize:"sm",fontWeight:"600",children:s.posted_at&&B6(new Date(s.posted_at),"PP")}),T.jsxs(T1,{color:"tc.blue.500",fontSize:".75rem",href:s.redirect_link,target:"_blank",isExternal:!0,display:"flex",alignItems:"center",children:["View ",T.jsx(o8,{mx:"2px"})]})]})}),T.jsx($e,{overflow:"auto",maxH:"auto",children:T.jsx(Eb,{mt:2,fontSize:".875rem",maxH:"110px",spacing:1,children:s.content_list.map((c,f)=>T.jsxs(GN,{color:"tc.green.600",display:"flex",alignItems:"center",children:[T.jsx(KN,{alignSelf:"start",as:Xwe,fontSize:"20px",fill:"tc.green.500"}),T.jsx(Ot,{color:"gray.800",children:c})]},f))})})]},l)))})})]})},_3e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../assets/rating-0e14e36c.png").href:new URL("../assets/rating-0e14e36c.png",document.currentScript&&document.currentScript.src||document.baseURI).href);var b3e=function(){function e(t){this.parent=t}return e.prototype.send=function(t,n){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:send",[t,n]])},e.prototype.sendText=function(t){this.send("text",t)},e.prototype.sendFile=function(t){this.send("file",t)},e.prototype.sendAnimation=function(t){this.send("animation",t)},e.prototype.sendAudio=function(t){this.send("audio",t)},e.prototype.show=function(t,n){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:show",[t,n]])},e.prototype.showText=function(t){this.show("text",t)},e.prototype.showFile=function(t){this.show("file",t)},e.prototype.showAnimation=function(t){this.show("animation",t)},e.prototype.showAudio=function(t){this.show("audio",t)},e.prototype.showPicker=function(t){this.show("picker",t)},e.prototype.showField=function(t){this.show("field",t)},e.prototype.showCarousel=function(t){this.show("carousel",t)},e.prototype.markAsRead=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:read"])},e.prototype.startThread=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:thread:start",[t]])},e.prototype.endThread=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","message:thread:end",[t]])},e.prototype.onMessageSent=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:sent"]),window.$crisp.push(["on","message:sent",t])},e.prototype.onMessageReceived=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:received"]),window.$crisp.push(["on","message:received",t])},e.prototype.onMessageComposeSent=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:compose:sent"]),window.$crisp.push(["on","message:compose:sent",t])},e.prototype.onMessageComposeReceived=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","message:compose:received"]),window.$crisp.push(["on","message:compose:received",t])},e}(),S3e=function(){function e(t){this.parent=t}return e.prototype.setNickname=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:nickname",[t]])},e.prototype.setEmail=function(t,n){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:email",[t,n]])},e.prototype.setPhone=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:phone",[t]])},e.prototype.setAvatar=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:avatar",[t]])},e.prototype.setCompany=function(t,n){var r={};n&&n.url&&(r.url=n.url),n&&n.description&&(r.description=n.description),n&&n.employment&&(r.employment=[n.employment.title],n.employment.role&&r.employment.push(n.employment.role)),this.parent.createSingletonIfNecessary(),window.$crisp.push(["set","user:company",[t,r]])},e.prototype.getEmail=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:email"):null},e.prototype.getPhone=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:phone"):null},e.prototype.getNickname=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:nickname"):null},e.prototype.getAvatar=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:avatar"):null},e.prototype.getCompany=function(){return this.parent.isCrispInjected()?window.$crisp.get("user:company"):null},e.prototype.onEmailChanged=function(t){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:email:changed"]),window.$crisp.push(["on","user:email:changed",t]))},e.prototype.onPhoneChanged=function(t){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:phone:changed"]),window.$crisp.push(["on","user:phone:changed",t]))},e.prototype.onNicknameChanged=function(t){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:nickname:changed"]),window.$crisp.push(["on","user:nickname:changed",t]))},e.prototype.onAvatarChanged=function(t){this.parent.isCrispInjected()&&(window.$crisp.push(["off","user:avatar:changed"]),window.$crisp.push(["on","user:avatar:changed",t]))},e}(),w3e=function(){function e(t){this.parent=t}return e.prototype.run=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","trigger:run",[t]])},e}(),N3;(function(e){e.Red="red",e.Orange="orange",e.Yellow="yellow",e.Green="green",e.Blue="blue",e.Purple="purple",e.Pink="pink",e.Brown="brown",e.Grey="grey",e.Black="black"})(N3||(N3={}));var x3e=function(){function e(t){this.parent=t}return e.prototype.reset=function(t){t===void 0&&(t=!1),this.parent.isCrispInjected()&&window.$crisp.do("session:reset",[t])},e.prototype.setSegments=function(t,n){this.parent.createSingletonIfNecessary(),$crisp.push(["set","session:segments",[t,n]])},e.prototype.setData=function(t){var n=this,r=[];Object.entries(t).forEach(function(i){n.isValidDataValue(i[0])&&r.push([i[0],i[1]])}),this.parent.createSingletonIfNecessary(),$crisp.push(["set","session:data",[r]])},e.prototype.pushEvent=function(t,n,r){n===void 0&&(n={}),r===void 0&&(r=N3.Blue),this.parent.isCrispInjected()&&window.$crisp.push(["set","session:event",[[[t,n,r]]]])},e.prototype.getData=function(t){if(this.parent.isCrispInjected())return window.$crisp.get("session:data",t)},e.prototype.getIdentifier=function(){return this.parent.isCrispInjected()?window.$crisp.get("session:identifier"):null},e.prototype.onLoaded=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","session:loaded"]),window.$crisp.push(["on","session:loaded",t])},e.prototype.isValidDataValue=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"},e}(),C3e=function(){function e(t){this.parent=t}return e.prototype.show=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:show"])},e.prototype.hide=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:hide"])},e.prototype.open=function(){this.parent.autoInjectIfNecessary(),window.$crisp.push(["do","chat:open"])},e.prototype.close=function(){this.parent.isCrispInjected()&&window.$crisp.push(["do","chat:close"])},e.prototype.setHelpdeskView=function(){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:search"])},e.prototype.openHelpdeskArticle=function(t,n,r,i){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:article:open",[t,n,r,i]])},e.prototype.queryHelpdesk=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["do","helpdesk:query",[t]])},e.prototype.unreadCount=function(){return this.parent.isCrispInjected()?window.$crisp.get("chat:unread:count"):0},e.prototype.isChatOpened=function(){return this.parent.isCrispInjected()?window.$crisp.is("chat:opened"):!1},e.prototype.isVisible=function(){return this.parent.isCrispInjected()?window.$crisp.is("chat:visible"):!1},e.prototype.onChatInitiated=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:initiated"]),window.$crisp.push(["on","chat:initiated",t])},e.prototype.onChatOpened=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:opened"]),window.$crisp.push(["on","chat:opened",t])},e.prototype.onChatClosed=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","chat:closed"]),window.$crisp.push(["on","chat:closed",t])},e.prototype.onHelpdeskQueried=function(t){this.parent.createSingletonIfNecessary(),window.$crisp.push(["off","helpdesk:queried"]),window.$crisp.push(["on","helpdesk:queried",t])},e}(),lR;(function(e){e.Default="default",e.Amber="amber",e.Black="black",e.Blue="blue",e.BlueGrey="blue_grey",e.LightBlue="light_blue",e.Brown="brown",e.Cyan="cyan",e.Green="green",e.LightGreen="light_green",e.Grey="grey",e.Indigo="indigo",e.Orange="orange",e.DeepOrange="deep_orange",e.Pink="pink",e.Purple="purple",e.DeepPurple="deep_purple",e.Red="red",e.Teal="teal"})(lR||(lR={}));var F3;(function(e){e.Left="left",e.Right="right"})(F3||(F3={}));var E3e=function(){function e(){this.clientUrl="https://client.crisp.chat/l.js",this.websiteId="",this.autoload=!0,this.injected=!1,this.chat=new C3e(this),this.session=new x3e(this),this.user=new S3e(this),this.message=new b3e(this),this.trigger=new w3e(this)}return e.prototype.configure=function(t,n){n===void 0&&(n={}),this.websiteId=t,this.tokenId=n.tokenId,this.locale=n.locale,this.sessionMerge=n.sessionMerge,this.cookieDomain=n.cookieDomain,this.cookieExpire=n.cookieExpire,this.lockFullview=n.lockFullview,this.lockMaximized=n.lockMaximized,this.safeMode=n.safeMode,n.clientUrl!==void 0&&(this.clientUrl=n.clientUrl),n.autoload!==void 0&&(this.autoload=n.autoload),this.autoload&&this.load()},e.prototype.load=function(){var t=document.getElementsByTagName("head");if(this.createSingletonIfNecessary(),this.isCrispInjected()!==!0){if(!this.websiteId)throw new Error("websiteId must be set before loading Crisp");if(window.CRISP_WEBSITE_ID=this.websiteId,window.CRISP_RUNTIME_CONFIG={},this.tokenId&&(window.CRISP_TOKEN_ID=this.tokenId),this.sessionMerge&&(window.CRISP_RUNTIME_CONFIG.session_merge=!0),this.locale&&(window.CRISP_RUNTIME_CONFIG.locale=this.locale),this.lockFullview&&(window.CRISP_RUNTIME_CONFIG.lock_full_view=!0),this.lockMaximized&&(window.CRISP_RUNTIME_CONFIG.lock_maximized=!0),this.cookieDomain&&(window.CRISP_COOKIE_DOMAIN=this.cookieDomain),this.cookieExpire&&(window.CRISP_COOKIE_EXPIRE=this.cookieExpire),!t||!t[0])return this.deferredLoading();this.safeMode===!0&&this.setSafeMode(!0);var n=document.createElement("script");n.src=this.clientUrl,n.async=!0,t[0].appendChild(n),this.injected=!0}},e.prototype.setTokenId=function(t){this.tokenId=t,this.isCrispInjected()===!0&&(t?window.CRISP_TOKEN_ID=t:delete window.CRISP_TOKEN_ID)},e.prototype.setZIndex=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","container:index",[t]])},e.prototype.setColorTheme=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","color:theme",[t]])},e.prototype.setHideOnAway=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:on:away",[t]])},e.prototype.setHideOnMobile=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:on:mobile",[t]])},e.prototype.setPosition=function(t){this.createSingletonIfNecessary(),$crisp.push(["config","position:reverse",[t===F3.Left]])},e.prototype.setAvailabilityTooltip=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","availability:tooltip",[t]])},e.prototype.setVacationMode=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","hide:vacation",[t]])},e.prototype.setSafeMode=function(t){t===void 0&&(t=!0),this.createSingletonIfNecessary(),window.$crisp.push(["safe",t])},e.prototype.muteSound=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","sound:mute",[t]])},e.prototype.toggleOperatorCount=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["config","show:operator:count",[t]])},e.prototype.onWebsiteAvailabilityChanged=function(t){this.createSingletonIfNecessary(),window.$crisp.push(["off","website:availability:changed"]),window.$crisp.push(["on","website:availability:changed",t])},e.prototype.createSingletonIfNecessary=function(){window.$crisp===void 0&&(window.$crisp=[])},e.prototype.autoInjectIfNecessary=function(){this.isCrispInjected()||this.load()},e.prototype.isCrispInjected=function(){return!!(this.injected===!0||window.$crisp&&window.$crisp.is)},e.prototype.deferredLoading=function(){var t=this;document.addEventListener("DOMContentLoaded",function(){t.load()})},e}(),La=new E3e;class k3e{constructor(t){Xv(this,"crispWebsiteId");Xv(this,"message","");this.crispWebsiteId=t,La.configure(this.crispWebsiteId,{autoload:!1})}initCrispChat(t,n){const r=this.getCrispSessionData(t,n);La.setTokenId(t.id),La.user.setEmail(t.email),La.user.setNickname(t.name||t.email),La.session.setData(r),La.load()}toggleBubble(){return La.chat.isChatOpened()?(La.chat.close(),this):(La.chat.open(),this)}openBubble(){return La.chat.open(),this}closeBubble(){return La.chat.close(),this}textMessage(t){return this.message=t,this}send(){if(!this.message)throw new Error("Message is required before sending");return La.message.sendText(this.message),this.message="",this}getCrispSessionData(t,n){const r={wp_status:!0,wp_domain:t.domain,wp_version:t.platform_version,wp_tc_version:t.app_version,wp_tc_plan:t.app_plan,wp_tc_status:t.status,...n};return Object.entries(r).reduce((a,[o,s])=>({...a,[o]:s||"null"}),{})}}const $3=new k3e(Z_e),T3e=()=>{const{t:e}=C6();return T.jsx($e,{p:5,bg:"gray.100",borderRadius:"lg",w:"full",children:T.jsxs(fi,{gap:6,children:[T.jsxs(vh,{w:"50%",spacing:3,align:"stretch",flex:"1",children:[T.jsxs(fi,{gap:3,children:[T.jsx(JN,{size:"sm",color:"gray.800",children:e("dashboard.rate_title")}),T.jsx(fi,{gap:2,children:[...Array(5)].map((t,n)=>T.jsx(Wt,{as:Ywe},n))}),T.jsxs($e,{fontSize:".75rem",children:[e("common.on")," ",T.jsxs(T1,{color:"tc.blue.500",href:"https://wordpress.org/plugins/transcy/",target:"_blank",isExternal:!0,children:["wordpress.org ",T.jsx(o8,{mx:"2px"})]})]})]}),T.jsx($e,{fontSize:".875rem",color:"gray.800",children:T.jsx(x6,{components:{br:T.jsx("br",{})},i18nKey:"dashboard.rate_desc"})}),T.jsxs(fi,{gap:"8px",fontSize:".75rem",alignItems:"center",children:[T.jsx(Ot,{color:"tc.gray.550",fontSize:"xs",flex:"1",children:e("dashboard.rate_footer")}),T.jsxs(T1,{color:"tc.blue.500",onClick:()=>$3.toggleBubble(),isExternal:!0,display:"flex",alignItems:"center",gap:"1px",children:[T.jsx(Wt,{as:Kwe,fontSize:"24px"}),"Need help?"]})]})]}),T.jsx(xu,{objectFit:"contain",w:"max-content",src:_3e,alt:"rating"})]})})},P3e=()=>{const{data:e,apiData:t,loading:n}=uxe(),{articlesData:r,newsData:i}=t;return T.jsxs(vh,{spacing:"24px",mx:"auto",pt:"24px",children:[T.jsx(pxe,{quickActionData:e.quickActionData,mainQuickActionData:e.mainQuickActionData}),T.jsx(f3e,{data:(r==null?void 0:r.data)||[],isLoading:n.isArticleDataLoading}),T.jsx(y3e,{data:(i==null?void 0:i.data)||[],isLoading:n.isNewDataLoading}),T.jsx(T3e,{})]})},O3e="https://support.fireapps.io/en/article/wordpress-get-started-with-transcy-plugin-1qkxmz/",R3e=()=>{var r,i;const e=Ao(),t=(r=e.data)==null?void 0:r.data.subscription_billing_deadline_at;return((i=e.data)==null?void 0:i.data.subscription_alert)?T.jsxs(xb,{status:"error",variant:"left-accent",my:"24px",rounded:"md",children:[T.jsx(W4,{}),T.jsxs($e,{children:[T.jsx(q4,{children:nO("dashboard.subscriptionDeadline_title")}),T.jsx(H4,{children:nO("dashboard.subscriptionDeadline_description",{date:B6(new Date(t||new Date),"PP")})})]})]}):T.jsx(T.Fragment,{})},nj="1",uR="TC_PLUGIN_CRISP_OPEN_AT_FIRST_TIME",cR="TC_PLUGIN_DISPLAYED_COUNT_DOWN_BAR",A3e=()=>{var l,c;const e=Ao(),t=((l=e.data)==null?void 0:l.data.remaining_trial_days)||0,n=((c=e.data)==null?void 0:c.data.app_plan)||Yl.FREE,[r,i]=w.useState(!0),a=t>0&&t<=2&&n!==Yl.FREE&&!localStorage.getItem(cR),o=()=>{localStorage.setItem(cR,nj),i(!1)},s=async()=>{await Qo({adminRedirectUrl:`${kr.EXTERNAL_ROUTES.PRICING_DETAIL}/${Yl.STARTER}`,queryString:{parentPath:kr.EXTERNAL_ROUTES.PRICING,planName:Yl.STARTER}})};return a?T.jsxs(xb,{display:r?"flex":"none",status:"info",variant:"solid",rounded:"md",my:"24px",children:[T.jsx(Wt,{as:h3e,fill:"white",mr:"12px"}),T.jsxs(Ot,{color:"white",children:["Trial ends in"," ",T.jsxs(Ot,{as:"span",color:"white",fontWeight:"bold",children:[t," ",A$("day",t),"!"]})," ","Choose a plan that fits your needs to avoid any interruptions."]}),T.jsx(QN,{}),T.jsxs($g,{gap:"12px",children:[T.jsx(Jr,{variant:"outline",borderColor:"white",bg:"transparent",borderWidth:"1px",color:"white",size:"sm",_hover:{bg:"whiteAlpha.100"},onClick:s,children:"Approve subscription"}),T.jsx(o6,{borderColor:"whiteAlpha.500",borderLeftWidth:"1px"}),T.jsx(p3e,{cursor:"pointer",onClick:o,fontSize:"12px"})]})]}):T.jsx(T.Fragment,{})},Ry="2",dR=({isEnableHeader:e=!0,containerProps:t={}})=>T.jsxs($e,{bg:"gray.50",minH:"100vh",paddingTop:`${Ry}rem`,paddingBottom:`${Ry}rem`,paddingInlineStart:"1.5rem",paddingInlineEnd:"1.5rem",...t,children:[e&&T.jsx(sxe,{}),T.jsx(R3e,{}),T.jsx(A3e,{}),T.jsx(tF,{as:"main",maxW:"800px",p:"0",minH:`calc(100vh - ${Ry}rem * 2)`,children:T.jsx(P6,{})})]}),I3e=()=>T.jsxs($e,{pt:`calc(50px - ${Ry}rem)`,children:[T.jsx(Jr,{variant:"link",colorScheme:"blue",position:"absolute",fontSize:"sm",top:"40px",fontWeight:500,right:"35px",rightIcon:T.jsx(Wt,{as:o8}),transform:"translate(0%, 0)",onClick:()=>window.open(O3e,"_blank"),children:"Get Started guide"}),T.jsx(hu,{children:T.jsx(Ez,{mode:"full"})}),T.jsx(P6,{})]});var ev=e=>e.type==="checkbox",hf=e=>e instanceof Date,Ti=e=>e==null;const rj=e=>typeof e=="object";var Or=e=>!Ti(e)&&!Array.isArray(e)&&rj(e)&&!hf(e),ij=e=>Or(e)&&e.target?ev(e.target)?e.target.checked:e.target.value:e,L3e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,aj=(e,t)=>e.has(L3e(t)),M3e=e=>{const t=e.constructor&&e.constructor.prototype;return Or(t)&&t.hasOwnProperty("isPrototypeOf")},s8=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function uo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(s8&&(e instanceof Blob||e instanceof FileList))&&(n||Or(e)))if(t=n?[]:{},!n&&!M3e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=uo(e[r]));else return e;return t}var tv=e=>Array.isArray(e)?e.filter(Boolean):[],ar=e=>e===void 0,Fe=(e,t,n)=>{if(!t||!Or(e))return n;const r=tv(t.split(/[,[\].]+?/)).reduce((i,a)=>Ti(i)?i:i[a],e);return ar(r)||r===e?ar(e[t])?n:e[t]:r};const l_={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},go={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},As={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},oj=ve.createContext(null),wh=()=>ve.useContext(oj),D3e=e=>{const{children:t,...n}=e;return ve.createElement(oj.Provider,{value:n},t)};var sj=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==go.all&&(t._proxyFormState[o]=!r||go.all),n&&(n[o]=!0),e[o]}});return i},Fa=e=>Or(e)&&!Object.keys(e).length,lj=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Fa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||go.all))},Ay=e=>Array.isArray(e)?e:[e],uj=(e,t,n)=>n&&t?e===t||Array.isArray(e)&&e.some(r=>r&&n&&r===t):!e||!t||e===t||Ay(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function l8(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function N3e(e){const t=wh(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=ve.useState(n._formState),l=ve.useRef(!0),c=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=ve.useRef(i);return f.current=i,l8({disabled:r,next:h=>l.current&&uj(f.current,h.name,a)&&lj(h,c.current,n._updateFormState)&&s({...n._formState,...h}),subject:n._subjects.state}),ve.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),sj(o,n,c.current,!1)}var Jo=e=>typeof e=="string",cj=(e,t,n,r,i)=>Jo(e)?(r&&t.watch.add(e),Fe(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Fe(n,a))):(r&&(t.watchAll=!0),n);function F3e(e){const t=wh(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=ve.useRef(r);s.current=r,l8({disabled:a,subject:n._subjects.values,next:f=>{uj(s.current,f.name,o)&&c(uo(cj(s.current,n._names,f.values||n._formValues,!1,i)))}});const[l,c]=ve.useState(n._getWatch(r,i));return ve.useEffect(()=>n._removeUnmounted()),l}var u8=e=>/^\w*$/.test(e),dj=e=>tv(e.replace(/["|']|\]/g,"").split(/\.|\[/));function vn(e,t,n){let r=-1;const i=u8(t)?[t]:dj(t),a=i.length,o=a-1;for(;++r<a;){const s=i[r];let l=n;if(r!==o){const c=e[s];l=Or(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}e[s]=l,e=e[s]}return e}function $3e(e){const t=wh(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=aj(i._names.array,n),s=F3e({control:i,name:n,defaultValue:Fe(i._formValues,n,Fe(i._defaultValues,n,e.defaultValue)),exact:!0}),l=N3e({control:i,name:n}),c=ve.useRef(i.register(n,{...e.rules,value:s}));return c.current=i.register(n,e.rules),ve.useEffect(()=>{const f=i._options.shouldUnregister||a,h=(p,v)=>{const y=Fe(i._fields,p);y&&(y._f.mount=v)};if(h(n,!0),f){const p=uo(Fe(i._options.defaultValues,n));vn(i._defaultValues,n,p),ar(Fe(i._formValues,n))&&vn(i._formValues,n,p)}return()=>{(o?f&&!i._state.action:f)?i.unregister(n):h(n,!1)}},[n,i,o,a]),ve.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),{field:{name:n,value:s,disabled:r,onChange:ve.useCallback(f=>c.current.onChange({target:{value:ij(f),name:n},type:l_.CHANGE}),[n]),onBlur:ve.useCallback(()=>c.current.onBlur({target:{value:Fe(i._formValues,n),name:n},type:l_.BLUR}),[n,i]),ref:f=>{const h=Fe(i._fields,n);h&&f&&(h._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:p=>f.setCustomValidity(p),reportValidity:()=>f.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Fe(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Fe(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Fe(l.touchedFields,n)},error:{enumerable:!0,get:()=>Fe(l.errors,n)}})}}const fj=e=>e.render($3e(e));var hj=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const z3=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=Fe(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Or(o)&&z3(o,t)}}};var fR=e=>({isOnSubmit:!e||e===go.onSubmit,isOnBlur:e===go.onBlur,isOnChange:e===go.onChange,isOnAll:e===go.all,isOnTouch:e===go.onTouched}),hR=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),z3e=(e,t,n)=>{const r=tv(Fe(e,n));return vn(r,"root",t[n]),vn(e,n,r),e},uc=e=>typeof e=="boolean",c8=e=>e.type==="file",Zl=e=>typeof e=="function",u_=e=>{if(!s8)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Iy=e=>Jo(e),d8=e=>e.type==="radio",c_=e=>e instanceof RegExp;const pR={value:!1,isValid:!1},mR={value:!0,isValid:!0};var pj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ar(e[0].attributes.value)?ar(e[0].value)||e[0].value===""?mR:{value:e[0].value,isValid:!0}:mR:pR}return pR};const gR={isValid:!1,value:null};var mj=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,gR):gR;function vR(e,t,n="validate"){if(Iy(e)||Array.isArray(e)&&e.every(Iy)||uc(e)&&!e)return{type:n,message:Iy(e)?e:"",ref:t}}var Od=e=>Or(e)&&!c_(e)?e:{value:e,message:""},yR=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:f,max:h,pattern:p,validate:v,name:y,valueAsNumber:m,mount:_,disabled:b}=e._f,S=Fe(t,y);if(!_||b)return{};const C=o?o[0]:a,E=W=>{r&&C.reportValidity&&(C.setCustomValidity(uc(W)?"":W||""),C.reportValidity())},R={},A=d8(a),I=ev(a),M=A||I,F=(m||c8(a))&&ar(a.value)&&ar(S)||u_(a)&&a.value===""||S===""||Array.isArray(S)&&!S.length,z=hj.bind(null,y,n,R),Y=(W,q,ae,ee=As.maxLength,ce=As.minLength)=>{const ue=W?q:ae;R[y]={type:W?ee:ce,message:ue,ref:a,...z(W?ee:ce,ue)}};if(i?!Array.isArray(S)||!S.length:s&&(!M&&(F||Ti(S))||uc(S)&&!S||I&&!pj(o).isValid||A&&!mj(o).isValid)){const{value:W,message:q}=Iy(s)?{value:!!s,message:s}:Od(s);if(W&&(R[y]={type:As.required,message:q,ref:C,...z(As.required,q)},!n))return E(q),R}if(!F&&(!Ti(f)||!Ti(h))){let W,q;const ae=Od(h),ee=Od(f);if(!Ti(S)&&!isNaN(S)){const ce=a.valueAsNumber||S&&+S;Ti(ae.value)||(W=ce>ae.value),Ti(ee.value)||(q=ce<ee.value)}else{const ce=a.valueAsDate||new Date(S),ue=we=>new Date(new Date().toDateString()+" "+we),J=a.type=="time",me=a.type=="week";Jo(ae.value)&&S&&(W=J?ue(S)>ue(ae.value):me?S>ae.value:ce>new Date(ae.value)),Jo(ee.value)&&S&&(q=J?ue(S)<ue(ee.value):me?S<ee.value:ce<new Date(ee.value))}if((W||q)&&(Y(!!W,ae.message,ee.message,As.max,As.min),!n))return E(R[y].message),R}if((l||c)&&!F&&(Jo(S)||i&&Array.isArray(S))){const W=Od(l),q=Od(c),ae=!Ti(W.value)&&S.length>+W.value,ee=!Ti(q.value)&&S.length<+q.value;if((ae||ee)&&(Y(ae,W.message,q.message),!n))return E(R[y].message),R}if(p&&!F&&Jo(S)){const{value:W,message:q}=Od(p);if(c_(W)&&!S.match(W)&&(R[y]={type:As.pattern,message:q,ref:a,...z(As.pattern,q)},!n))return E(q),R}if(v){if(Zl(v)){const W=await v(S,t),q=vR(W,C);if(q&&(R[y]={...q,...z(As.validate,q.message)},!n))return E(q.message),R}else if(Or(v)){let W={};for(const q in v){if(!Fa(W)&&!n)break;const ae=vR(await v[q](S,t),C,q);ae&&(W={...ae,...z(q,ae.message)},E(ae.message),n&&(R[y]=W))}if(!Fa(W)&&(R[y]={ref:C,...W},!n))return R}}return E(!0),R};function j3e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ar(e)?r++:e[t[r++]];return e}function B3e(e){for(const t in e)if(e.hasOwnProperty(t)&&!ar(e[t]))return!1;return!0}function Kr(e,t){const n=Array.isArray(t)?t:u8(t)?[t]:dj(t),r=n.length===1?e:j3e(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Or(r)&&Fa(r)||Array.isArray(r)&&B3e(r))&&Kr(e,n.slice(0,-1)),e}function Jw(){let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var d_=e=>Ti(e)||!rj(e);function cc(e,t){if(d_(e)||d_(t))return e===t;if(hf(e)&&hf(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(hf(a)&&hf(o)||Or(a)&&Or(o)||Array.isArray(a)&&Array.isArray(o)?!cc(a,o):a!==o)return!1}}return!0}var gj=e=>e.type==="select-multiple",V3e=e=>d8(e)||ev(e),ex=e=>u_(e)&&e.isConnected,vj=e=>{for(const t in e)if(Zl(e[t]))return!0;return!1};function f_(e,t={}){const n=Array.isArray(e);if(Or(e)||n)for(const r in e)Array.isArray(e[r])||Or(e[r])&&!vj(e[r])?(t[r]=Array.isArray(e[r])?[]:{},f_(e[r],t[r])):Ti(e[r])||(t[r]=!0);return t}function yj(e,t,n){const r=Array.isArray(e);if(Or(e)||r)for(const i in e)Array.isArray(e[i])||Or(e[i])&&!vj(e[i])?ar(t)||d_(n[i])?n[i]=Array.isArray(e[i])?f_(e[i],[]):{...f_(e[i])}:yj(e[i],Ti(t)?{}:t[i],n[i]):n[i]=!cc(e[i],t[i]);return n}var tx=(e,t)=>yj(e,t,f_(t)),_j=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ar(e)?e:t?e===""?NaN:e&&+e:n&&Jo(e)?new Date(e):r?r(e):e;function nx(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return c8(t)?t.files:d8(t)?mj(e.refs).value:gj(t)?[...t.selectedOptions].map(({value:n})=>n):ev(t)?pj(e.refs).value:_j(ar(t.value)?e.ref.value:t.value,e)}var U3e=(e,t,n,r)=>{const i={};for(const a of e){const o=Fe(t,a);o&&vn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Op=e=>ar(e)?e:c_(e)?e.source:Or(e)?c_(e.value)?e.value.source:e.value:e,H3e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _R(e,t,n){const r=Fe(e,n);if(r||u8(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=Fe(t,a),s=Fe(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var W3e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,q3e=(e,t)=>!tv(Fe(e,t)).length&&Kr(e,t);const G3e={mode:go.onSubmit,reValidateMode:go.onChange,shouldFocusError:!0};function K3e(e={},t){let n={...G3e,...e},r={submitCount:0,isDirty:!1,isLoading:Zl(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Or(n.defaultValues)||Or(n.values)?uo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:uo(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,f=0;const h={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Jw(),array:Jw(),state:Jw()},v=e.resetOptions&&e.resetOptions.keepDirtyValues,y=fR(n.mode),m=fR(n.reValidateMode),_=n.criteriaMode===go.all,b=B=>X=>{clearTimeout(f),f=setTimeout(B,X)},S=async B=>{if(h.isValid||B){const X=n.resolver?Fa((await F()).errors):await Y(i,!0);X!==r.isValid&&p.state.next({isValid:X})}},C=B=>h.isValidating&&p.state.next({isValidating:B}),E=(B,X=[],oe,Se,_e=!0,ge=!0)=>{if(Se&&oe){if(s.action=!0,ge&&Array.isArray(Fe(i,B))){const Ie=oe(Fe(i,B),Se.argA,Se.argB);_e&&vn(i,B,Ie)}if(ge&&Array.isArray(Fe(r.errors,B))){const Ie=oe(Fe(r.errors,B),Se.argA,Se.argB);_e&&vn(r.errors,B,Ie),q3e(r.errors,B)}if(h.touchedFields&&ge&&Array.isArray(Fe(r.touchedFields,B))){const Ie=oe(Fe(r.touchedFields,B),Se.argA,Se.argB);_e&&vn(r.touchedFields,B,Ie)}h.dirtyFields&&(r.dirtyFields=tx(a,o)),p.state.next({name:B,isDirty:q(B,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else vn(o,B,X)},R=(B,X)=>{vn(r.errors,B,X),p.state.next({errors:r.errors})},A=(B,X,oe,Se)=>{const _e=Fe(i,B);if(_e){const ge=Fe(o,B,ar(oe)?Fe(a,B):oe);ar(ge)||Se&&Se.defaultChecked||X?vn(o,B,X?ge:nx(_e._f)):ce(B,ge),s.mount&&S()}},I=(B,X,oe,Se,_e)=>{let ge=!1,Ie=!1;const Ft={name:B};if(!oe||Se){h.isDirty&&(Ie=r.isDirty,r.isDirty=Ft.isDirty=q(),ge=Ie!==Ft.isDirty);const Ge=cc(Fe(a,B),X);Ie=Fe(r.dirtyFields,B),Ge?Kr(r.dirtyFields,B):vn(r.dirtyFields,B,!0),Ft.dirtyFields=r.dirtyFields,ge=ge||h.dirtyFields&&Ie!==!Ge}if(oe){const Ge=Fe(r.touchedFields,B);Ge||(vn(r.touchedFields,B,oe),Ft.touchedFields=r.touchedFields,ge=ge||h.touchedFields&&Ge!==oe)}return ge&&_e&&p.state.next(Ft),ge?Ft:{}},M=(B,X,oe,Se)=>{const _e=Fe(r.errors,B),ge=h.isValid&&uc(X)&&r.isValid!==X;if(e.delayError&&oe?(c=b(()=>R(B,oe)),c(e.delayError)):(clearTimeout(f),c=null,oe?vn(r.errors,B,oe):Kr(r.errors,B)),(oe?!cc(_e,oe):_e)||!Fa(Se)||ge){const Ie={...Se,...ge&&uc(X)?{isValid:X}:{},errors:r.errors,name:B};r={...r,...Ie},p.state.next(Ie)}C(!1)},F=async B=>n.resolver(o,n.context,U3e(B||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),z=async B=>{const{errors:X}=await F(B);if(B)for(const oe of B){const Se=Fe(X,oe);Se?vn(r.errors,oe,Se):Kr(r.errors,oe)}else r.errors=X;return X},Y=async(B,X,oe={valid:!0})=>{for(const Se in B){const _e=B[Se];if(_e){const{_f:ge,...Ie}=_e;if(ge){const Ft=l.array.has(ge.name),Ge=await yR(_e,o,_,n.shouldUseNativeValidation&&!X,Ft);if(Ge[ge.name]&&(oe.valid=!1,X))break;!X&&(Fe(Ge,ge.name)?Ft?z3e(r.errors,Ge,ge.name):vn(r.errors,ge.name,Ge[ge.name]):Kr(r.errors,ge.name))}Ie&&await Y(Ie,X,oe)}}return oe.valid},W=()=>{for(const B of l.unMount){const X=Fe(i,B);X&&(X._f.refs?X._f.refs.every(oe=>!ex(oe)):!ex(X._f.ref))&&Ae(B)}l.unMount=new Set},q=(B,X)=>(B&&X&&vn(o,B,X),!cc(Ce(),a)),ae=(B,X,oe)=>cj(B,l,{...s.mount?o:ar(X)?a:Jo(B)?{[B]:X}:X},oe,X),ee=B=>tv(Fe(s.mount?o:a,B,e.shouldUnregister?Fe(a,B,[]):[])),ce=(B,X,oe={})=>{const Se=Fe(i,B);let _e=X;if(Se){const ge=Se._f;ge&&(!ge.disabled&&vn(o,B,_j(X,ge)),_e=u_(ge.ref)&&Ti(X)?"":X,gj(ge.ref)?[...ge.ref.options].forEach(Ie=>Ie.selected=_e.includes(Ie.value)):ge.refs?ev(ge.ref)?ge.refs.length>1?ge.refs.forEach(Ie=>(!Ie.defaultChecked||!Ie.disabled)&&(Ie.checked=Array.isArray(_e)?!!_e.find(Ft=>Ft===Ie.value):_e===Ie.value)):ge.refs[0]&&(ge.refs[0].checked=!!_e):ge.refs.forEach(Ie=>Ie.checked=Ie.value===_e):c8(ge.ref)?ge.ref.value="":(ge.ref.value=_e,ge.ref.type||p.values.next({name:B,values:{...o}})))}(oe.shouldDirty||oe.shouldTouch)&&I(B,_e,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&we(B)},ue=(B,X,oe)=>{for(const Se in X){const _e=X[Se],ge=`${B}.${Se}`,Ie=Fe(i,ge);(l.array.has(B)||!d_(_e)||Ie&&!Ie._f)&&!hf(_e)?ue(ge,_e,oe):ce(ge,_e,oe)}},J=(B,X,oe={})=>{const Se=Fe(i,B),_e=l.array.has(B),ge=uo(X);vn(o,B,ge),_e?(p.array.next({name:B,values:{...o}}),(h.isDirty||h.dirtyFields)&&oe.shouldDirty&&p.state.next({name:B,dirtyFields:tx(a,o),isDirty:q(B,ge)})):Se&&!Se._f&&!Ti(ge)?ue(B,ge,oe):ce(B,ge,oe),hR(B,l)&&p.state.next({...r}),p.values.next({name:B,values:{...o}}),!s.mount&&t()},me=async B=>{const X=B.target;let oe=X.name,Se=!0;const _e=Fe(i,oe),ge=()=>X.type?nx(_e._f):ij(B);if(_e){let Ie,Ft;const Ge=ge(),Kn=B.type===l_.BLUR||B.type===l_.FOCUS_OUT,Dn=!H3e(_e._f)&&!n.resolver&&!Fe(r.errors,oe)&&!_e._f.deps||W3e(Kn,Fe(r.touchedFields,oe),r.isSubmitted,m,y),rn=hR(oe,l,Kn);vn(o,oe,Ge),Kn?(_e._f.onBlur&&_e._f.onBlur(B),c&&c(0)):_e._f.onChange&&_e._f.onChange(B);const ur=I(oe,Ge,Kn,!1),ti=!Fa(ur)||rn;if(!Kn&&p.values.next({name:oe,type:B.type,values:{...o}}),Dn)return h.isValid&&S(),ti&&p.state.next({name:oe,...rn?{}:ur});if(!Kn&&rn&&p.state.next({...r}),C(!0),n.resolver){const{errors:Yn}=await F([oe]),ni=_R(r.errors,i,oe),Ur=_R(Yn,i,ni.name||oe);Ie=Ur.error,oe=Ur.name,Ft=Fa(Yn)}else Ie=(await yR(_e,o,_,n.shouldUseNativeValidation))[oe],Se=isNaN(Ge)||Ge===Fe(o,oe,Ge),Se&&(Ie?Ft=!1:h.isValid&&(Ft=await Y(i,!0)));Se&&(_e._f.deps&&we(_e._f.deps),M(oe,Ft,Ie,ur))}},we=async(B,X={})=>{let oe,Se;const _e=Ay(B);if(C(!0),n.resolver){const ge=await z(ar(B)?B:_e);oe=Fa(ge),Se=B?!_e.some(Ie=>Fe(ge,Ie)):oe}else B?(Se=(await Promise.all(_e.map(async ge=>{const Ie=Fe(i,ge);return await Y(Ie&&Ie._f?{[ge]:Ie}:Ie)}))).every(Boolean),!(!Se&&!r.isValid)&&S()):Se=oe=await Y(i);return p.state.next({...!Jo(B)||h.isValid&&oe!==r.isValid?{}:{name:B},...n.resolver||!B?{isValid:oe}:{},errors:r.errors,isValidating:!1}),X.shouldFocus&&!Se&&z3(i,ge=>ge&&Fe(r.errors,ge),B?_e:l.mount),Se},Ce=B=>{const X={...a,...s.mount?o:{}};return ar(B)?X:Jo(B)?Fe(X,B):B.map(oe=>Fe(X,oe))},Ee=(B,X)=>({invalid:!!Fe((X||r).errors,B),isDirty:!!Fe((X||r).dirtyFields,B),isTouched:!!Fe((X||r).touchedFields,B),error:Fe((X||r).errors,B)}),xe=B=>{B&&Ay(B).forEach(X=>Kr(r.errors,X)),p.state.next({errors:B?r.errors:{}})},ye=(B,X,oe)=>{const Se=(Fe(i,B,{_f:{}})._f||{}).ref;vn(r.errors,B,{...X,ref:Se}),p.state.next({name:B,errors:r.errors,isValid:!1}),oe&&oe.shouldFocus&&Se&&Se.focus&&Se.focus()},Le=(B,X)=>Zl(B)?p.values.subscribe({next:oe=>B(ae(void 0,X),oe)}):ae(B,X,!0),Ae=(B,X={})=>{for(const oe of B?Ay(B):l.mount)l.mount.delete(oe),l.array.delete(oe),X.keepValue||(Kr(i,oe),Kr(o,oe)),!X.keepError&&Kr(r.errors,oe),!X.keepDirty&&Kr(r.dirtyFields,oe),!X.keepTouched&&Kr(r.touchedFields,oe),!n.shouldUnregister&&!X.keepDefaultValue&&Kr(a,oe);p.values.next({values:{...o}}),p.state.next({...r,...X.keepDirty?{isDirty:q()}:{}}),!X.keepIsValid&&S()},it=({disabled:B,name:X,field:oe,fields:Se})=>{if(uc(B)){const _e=B?void 0:Fe(o,X,nx(oe?oe._f:Fe(Se,X)._f));vn(o,X,_e),I(X,_e,!1,!1,!0)}},Ye=(B,X={})=>{let oe=Fe(i,B);const Se=uc(X.disabled);return vn(i,B,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:B}},name:B,mount:!0,...X}}),l.mount.add(B),oe?it({field:oe,disabled:X.disabled,name:B}):A(B,!0,X.value),{...Se?{disabled:X.disabled}:{},...n.progressive?{required:!!X.required,min:Op(X.min),max:Op(X.max),minLength:Op(X.minLength),maxLength:Op(X.maxLength),pattern:Op(X.pattern)}:{},name:B,onChange:me,onBlur:me,ref:_e=>{if(_e){Ye(B,X),oe=Fe(i,B);const ge=ar(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,Ie=V3e(ge),Ft=oe._f.refs||[];if(Ie?Ft.find(Ge=>Ge===ge):ge===oe._f.ref)return;vn(i,B,{_f:{...oe._f,...Ie?{refs:[...Ft.filter(ex),ge,...Array.isArray(Fe(a,B))?[{}]:[]],ref:{type:ge.type,name:B}}:{ref:ge}}}),A(B,!1,void 0,ge)}else oe=Fe(i,B,{}),oe._f&&(oe._f.mount=!1),(n.shouldUnregister||X.shouldUnregister)&&!(aj(l.array,B)&&s.action)&&l.unMount.add(B)}}},nt=()=>n.shouldFocusError&&z3(i,B=>B&&Fe(r.errors,B),l.mount),wt=(B,X)=>async oe=>{oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let Se=uo(o);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:_e,values:ge}=await F();r.errors=_e,Se=ge}else await Y(i);Kr(r.errors,"root"),Fa(r.errors)?(p.state.next({errors:{}}),await B(Se,oe)):(X&&await X({...r.errors},oe),nt(),setTimeout(nt)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Fa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Dt=(B,X={})=>{Fe(i,B)&&(ar(X.defaultValue)?J(B,Fe(a,B)):(J(B,X.defaultValue),vn(a,B,X.defaultValue)),X.keepTouched||Kr(r.touchedFields,B),X.keepDirty||(Kr(r.dirtyFields,B),r.isDirty=X.defaultValue?q(B,Fe(a,B)):q()),X.keepError||(Kr(r.errors,B),h.isValid&&S()),p.state.next({...r}))},Nt=(B,X={})=>{const oe=B?uo(B):a,Se=uo(oe),_e=B&&!Fa(B)?Se:a;if(X.keepDefaultValues||(a=oe),!X.keepValues){if(X.keepDirtyValues||v)for(const ge of l.mount)Fe(r.dirtyFields,ge)?vn(_e,ge,Fe(o,ge)):J(ge,Fe(_e,ge));else{if(s8&&ar(B))for(const ge of l.mount){const Ie=Fe(i,ge);if(Ie&&Ie._f){const Ft=Array.isArray(Ie._f.refs)?Ie._f.refs[0]:Ie._f.ref;if(u_(Ft)){const Ge=Ft.closest("form");if(Ge){Ge.reset();break}}}}i={}}o=e.shouldUnregister?X.keepDefaultValues?uo(a):{}:uo(_e),p.array.next({values:{..._e}}),p.values.next({values:{..._e}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!h.isValid||!!X.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!cc(B,a)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:X.keepDirtyValues?r.dirtyFields:X.keepDefaultValues&&B?tx(a,B):{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Sn=(B,X)=>Nt(Zl(B)?B(o):B,X);return{control:{register:Ye,unregister:Ae,getFieldState:Ee,handleSubmit:wt,setError:ye,_executeSchema:F,_getWatch:ae,_getDirty:q,_updateValid:S,_removeUnmounted:W,_updateFieldArray:E,_updateDisabledField:it,_getFieldArray:ee,_reset:Nt,_resetDefaultValues:()=>Zl(n.defaultValues)&&n.defaultValues().then(B=>{Sn(B,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:B=>{r={...r,...B}},_subjects:p,_proxyFormState:h,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(B){s=B},get _defaultValues(){return a},get _names(){return l},set _names(B){l=B},get _formState(){return r},set _formState(B){r=B},get _options(){return n},set _options(B){n={...n,...B}}},trigger:we,register:Ye,handleSubmit:wt,watch:Le,setValue:J,getValues:Ce,reset:Sn,resetField:Dt,clearErrors:xe,unregister:Ae,setError:ye,setFocus:(B,X={})=>{const oe=Fe(i,B),Se=oe&&oe._f;if(Se){const _e=Se.refs?Se.refs[0]:Se.ref;_e.focus&&(_e.focus(),X.shouldSelect&&_e.select())}},getFieldState:Ee}}function Y3e(e={}){const t=ve.useRef(),n=ve.useRef(),[r,i]=ve.useState({isDirty:!1,isValidating:!1,isLoading:Zl(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Zl(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...K3e(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,l8({subject:a._subjects.state,next:o=>{lj(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ve.useEffect(()=>{e.values&&!cc(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ve.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=sj(r,a),t.current}var bR=function(e,t,n){if(e&&"reportValidity"in e){var r=Fe(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},bj=function(e,t){var n=function(i){var a=t.fields[i];a&&a.ref&&"reportValidity"in a.ref?bR(a.ref,i,e):a.refs&&a.refs.forEach(function(o){return bR(o,i,e)})};for(var r in t.fields)n(r)},Z3e=function(e,t){t.shouldUseNativeValidation&&bj(e,t);var n={};for(var r in e){var i=Fe(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(X3e(t.names||Object.keys(e),r)){var o=Object.assign({},Q3e(Fe(n,r)));vn(o,"root",a),vn(n,r,o)}else vn(n,r,a)}return n},Q3e=function(e){return Array.isArray(e)?e.filter(Boolean):[]},X3e=function(e,t){return e.some(function(n){return n.startsWith(t+".")})},J3e=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(f){return f.errors.forEach(function(h){return e.push(h)})}),t){var l=n[o].types,c=l&&l[r.code];n[o]=hj(o,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},e5e=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return a.shouldUseNativeValidation&&bj({},a),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return s.errors!=null}(o))return{values:{},errors:Z3e(J3e(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},nn;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(nn||(nn={}));var j3;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(j3||(j3={}));const Ue=nn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wl=e=>{switch(typeof e){case"undefined":return Ue.undefined;case"string":return Ue.string;case"number":return isNaN(e)?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(e)?Ue.array:e===null?Ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ue.promise:typeof Map<"u"&&e instanceof Map?Ue.map:typeof Set<"u"&&e instanceof Set?Ue.set:typeof Date<"u"&&e instanceof Date?Ue.date:Ue.object;default:return Ue.unknown}},Re=nn.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"]),t5e=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class xo extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,nn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}xo.create=e=>new xo(e);const sg=(e,t)=>{let n;switch(e.code){case Re.invalid_type:e.received===Ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Re.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,nn.jsonStringifyReplacer)}`;break;case Re.unrecognized_keys:n=`Unrecognized key(s) in object: ${nn.joinValues(e.keys,", ")}`;break;case Re.invalid_union:n="Invalid input";break;case Re.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${nn.joinValues(e.options)}`;break;case Re.invalid_enum_value:n=`Invalid enum value. Expected ${nn.joinValues(e.options)}, received '${e.received}'`;break;case Re.invalid_arguments:n="Invalid function arguments";break;case Re.invalid_return_type:n="Invalid function return type";break;case Re.invalid_date:n="Invalid date";break;case Re.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:nn.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Re.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Re.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Re.custom:n="Invalid input";break;case Re.invalid_intersection_types:n="Intersection results could not be merged";break;case Re.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Re.not_finite:n="Number must be finite";break;default:n=t.defaultError,nn.assertNever(e)}return{message:n}};let Sj=sg;function n5e(e){Sj=e}function h_(){return Sj}const p_=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}},r5e=[];function We(e,t){const n=p_({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,h_(),sg].filter(r=>!!r)});e.common.issues.push(n)}class gi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return St;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return gi.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return St;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const St=Object.freeze({status:"aborted"}),wj=e=>({status:"dirty",value:e}),Li=e=>({status:"valid",value:e}),B3=e=>e.status==="aborted",V3=e=>e.status==="dirty",lg=e=>e.status==="valid",m_=e=>typeof Promise<"u"&&e instanceof Promise;var rt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(rt||(rt={}));class us{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const SR=(e,t)=>{if(lg(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new xo(e.common.issues);return this._error=n,this._error}}};function Ct(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>o.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r??s.defaultError}:{message:n??s.defaultError},description:i}}class Rt{constructor(t){this.spa=this.safeParseAsync,this._def=t,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)}get description(){return this._def.description}_getType(t){return Wl(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Wl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new gi,ctx:{common:t.parent.common,data:t.data,parsedType:Wl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(m_(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wl(t)},a=this._parseSync({data:t,path:i.path,parent:i});return SR(i,a)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wl(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(m_(i)?i:Promise.resolve(i));return SR(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:Re.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new To({schema:this,typeName:pt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Gs.create(this,this._def)}nullable(){return Mc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Co.create(this,this._def)}promise(){return sh.create(this,this._def)}or(t){return fg.create([this,t],this._def)}and(t){return hg.create(this,t,this._def)}transform(t){return new To({...Ct(this._def),schema:this,typeName:pt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new yg({...Ct(this._def),innerType:this,defaultValue:n,typeName:pt.ZodDefault})}brand(){return new Cj({typeName:pt.ZodBranded,type:this,...Ct(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new __({...Ct(this._def),innerType:this,catchValue:n,typeName:pt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return nv.create(this,t)}readonly(){return S_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const i5e=/^c[^\s-]{8,}$/i,a5e=/^[a-z][a-z0-9]*$/,o5e=/[0-9A-HJKMNP-TV-Z]{26}/,s5e=/^[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,l5e=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,u5e=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,c5e=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,d5e=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,f5e=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function h5e(e,t){return!!((t==="v4"||!t)&&c5e.test(e)||(t==="v6"||!t)&&d5e.test(e))}class _o extends Rt{constructor(){super(...arguments),this._regex=(t,n,r)=>this.refinement(i=>t.test(i),{validation:n,code:Re.invalid_string,...rt.errToObj(r)}),this.nonempty=t=>this.min(1,rt.errToObj(t)),this.trim=()=>new _o({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new _o({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new _o({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ue.string){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_type,expected:Ue.string,received:a.parsedType}),St}const r=new gi;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),We(i,{code:Re.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),We(i,{code:Re.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?We(i,{code:Re.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&We(i,{code:Re.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")l5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"email",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")u5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"emoji",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")s5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"uuid",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")i5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"cuid",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")a5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"cuid2",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")o5e.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"ulid",code:Re.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),We(i,{validation:"url",code:Re.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"regex",code:Re.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),We(i,{code:Re.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),We(i,{code:Re.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),We(i,{code:Re.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?f5e(a).test(t.data)||(i=this._getOrReturnCtx(t,i),We(i,{code:Re.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="ip"?h5e(t.data,a.version)||(i=this._getOrReturnCtx(t,i),We(i,{validation:"ip",code:Re.invalid_string,message:a.message}),r.dirty()):nn.assertNever(a);return{status:r.value,value:t.data}}_addCheck(t){return new _o({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...rt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...rt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...rt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...rt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...rt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...rt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...rt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...rt.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...rt.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...rt.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...rt.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...rt.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...rt.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...rt.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...rt.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...rt.errToObj(n)})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}_o.create=e=>{var t;return new _o({checks:[],typeName:pt.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ct(e)})};function p5e(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class pu extends Rt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ue.number){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_type,expected:Ue.number,received:a.parsedType}),St}let r;const i=new gi;for(const a of this._def.checks)a.kind==="int"?nn.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),We(r,{code:Re.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?p5e(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),We(r,{code:Re.not_finite,message:a.message}),i.dirty()):nn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,rt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,rt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,rt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,rt.toString(n))}setLimit(t,n,r,i){return new pu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:rt.toString(i)}]})}_addCheck(t){return new pu({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:rt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:rt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:rt.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:rt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:rt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:rt.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&nn.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}pu.create=e=>new pu({checks:[],typeName:pt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ct(e)});class mu extends Rt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ue.bigint){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_type,expected:Ue.bigint,received:a.parsedType}),St}let r;const i=new gi;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),We(r,{code:Re.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):nn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,rt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,rt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,rt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,rt.toString(n))}setLimit(t,n,r,i){return new mu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:rt.toString(i)}]})}_addCheck(t){return new mu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:rt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:rt.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}mu.create=e=>{var t;return new mu({checks:[],typeName:pt.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ct(e)})};class ug extends Rt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ue.boolean){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.boolean,received:r.parsedType}),St}return Li(t.data)}}ug.create=e=>new ug({typeName:pt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ct(e)});class Ic extends Rt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ue.date){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_type,expected:Ue.date,received:a.parsedType}),St}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return We(a,{code:Re.invalid_date}),St}const r=new gi;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),We(i,{code:Re.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),We(i,{code:Re.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):nn.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ic({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:rt.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:rt.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ic.create=e=>new Ic({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:pt.ZodDate,...Ct(e)});class g_ extends Rt{_parse(t){if(this._getType(t)!==Ue.symbol){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.symbol,received:r.parsedType}),St}return Li(t.data)}}g_.create=e=>new g_({typeName:pt.ZodSymbol,...Ct(e)});class cg extends Rt{_parse(t){if(this._getType(t)!==Ue.undefined){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.undefined,received:r.parsedType}),St}return Li(t.data)}}cg.create=e=>new cg({typeName:pt.ZodUndefined,...Ct(e)});class dg extends Rt{_parse(t){if(this._getType(t)!==Ue.null){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.null,received:r.parsedType}),St}return Li(t.data)}}dg.create=e=>new dg({typeName:pt.ZodNull,...Ct(e)});class oh extends Rt{constructor(){super(...arguments),this._any=!0}_parse(t){return Li(t.data)}}oh.create=e=>new oh({typeName:pt.ZodAny,...Ct(e)});class wc extends Rt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Li(t.data)}}wc.create=e=>new wc({typeName:pt.ZodUnknown,...Ct(e)});class il extends Rt{_parse(t){const n=this._getOrReturnCtx(t);return We(n,{code:Re.invalid_type,expected:Ue.never,received:n.parsedType}),St}}il.create=e=>new il({typeName:pt.ZodNever,...Ct(e)});class v_ extends Rt{_parse(t){if(this._getType(t)!==Ue.undefined){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.void,received:r.parsedType}),St}return Li(t.data)}}v_.create=e=>new v_({typeName:pt.ZodVoid,...Ct(e)});class Co extends Rt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ue.array)return We(n,{code:Re.invalid_type,expected:Ue.array,received:n.parsedType}),St;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(We(n,{code:o?Re.too_big:Re.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(We(n,{code:Re.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(We(n,{code:Re.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new us(n,o,n.path,s)))).then(o=>gi.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new us(n,o,n.path,s)));return gi.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Co({...this._def,minLength:{value:t,message:rt.toString(n)}})}max(t,n){return new Co({...this._def,maxLength:{value:t,message:rt.toString(n)}})}length(t,n){return new Co({...this._def,exactLength:{value:t,message:rt.toString(n)}})}nonempty(t){return this.min(1,t)}}Co.create=(e,t)=>new Co({type:e,minLength:null,maxLength:null,exactLength:null,typeName:pt.ZodArray,...Ct(t)});function Nd(e){if(e instanceof Un){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Gs.create(Nd(r))}return new Un({...e._def,shape:()=>t})}else return e instanceof Co?new Co({...e._def,type:Nd(e.element)}):e instanceof Gs?Gs.create(Nd(e.unwrap())):e instanceof Mc?Mc.create(Nd(e.unwrap())):e instanceof cs?cs.create(e.items.map(t=>Nd(t))):e}class Un extends Rt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=nn.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Ue.object){const c=this._getOrReturnCtx(t);return We(c,{code:Re.invalid_type,expected:Ue.object,received:c.parsedType}),St}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof il&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const f=a[c],h=i.data[c];l.push({key:{status:"valid",value:c},value:f._parse(new us(i,h,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof il){const c=this._def.unknownKeys;if(c==="passthrough")for(const f of s)l.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(c==="strict")s.length>0&&(We(i,{code:Re.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const f of s){const h=i.data[f];l.push({key:{status:"valid",value:f},value:c._parse(new us(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const f of l){const h=await f.key;c.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return c}).then(c=>gi.mergeObjectSync(r,c)):gi.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return rt.errToObj,new Un({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,s;const l=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=rt.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new Un({...this._def,unknownKeys:"strip"})}passthrough(){return new Un({...this._def,unknownKeys:"passthrough"})}extend(t){return new Un({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Un({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:pt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Un({...this._def,catchall:t})}pick(t){const n={};return nn.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Un({...this._def,shape:()=>n})}omit(t){const n={};return nn.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Un({...this._def,shape:()=>n})}deepPartial(){return Nd(this)}partial(t){const n={};return nn.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Un({...this._def,shape:()=>n})}required(t){const n={};return nn.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Gs;)a=a._def.innerType;n[r]=a}}),new Un({...this._def,shape:()=>n})}keyof(){return xj(nn.objectKeys(this.shape))}}Un.create=(e,t)=>new Un({shape:()=>e,unknownKeys:"strip",catchall:il.create(),typeName:pt.ZodObject,...Ct(t)});Un.strictCreate=(e,t)=>new Un({shape:()=>e,unknownKeys:"strict",catchall:il.create(),typeName:pt.ZodObject,...Ct(t)});Un.lazycreate=(e,t)=>new Un({shape:e,unknownKeys:"strip",catchall:il.create(),typeName:pt.ZodObject,...Ct(t)});class fg extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new xo(s.ctx.common.issues));return We(n,{code:Re.invalid_union,unionErrors:o}),St}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},f=l._parseSync({data:n.data,path:n.path,parent:c});if(f.status==="valid")return f;f.status==="dirty"&&!a&&(a={result:f,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new xo(l));return We(n,{code:Re.invalid_union,unionErrors:s}),St}}get options(){return this._def.options}}fg.create=(e,t)=>new fg({options:e,typeName:pt.ZodUnion,...Ct(t)});const Ly=e=>e instanceof mg?Ly(e.schema):e instanceof To?Ly(e.innerType()):e instanceof gg?[e.value]:e instanceof gu?e.options:e instanceof vg?Object.keys(e.enum):e instanceof yg?Ly(e._def.innerType):e instanceof cg?[void 0]:e instanceof dg?[null]:null;class Qb extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.object)return We(n,{code:Re.invalid_type,expected:Ue.object,received:n.parsedType}),St;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(We(n,{code:Re.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),St)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=Ly(a.shape[t]);if(!o)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Qb({typeName:pt.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ct(r)})}}function U3(e,t){const n=Wl(e),r=Wl(t);if(e===t)return{valid:!0,data:e};if(n===Ue.object&&r===Ue.object){const i=nn.objectKeys(t),a=nn.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=U3(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Ue.array&&r===Ue.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],l=U3(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Ue.date&&r===Ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class hg extends Rt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(B3(a)||B3(o))return St;const s=U3(a.value,o.value);return s.valid?((V3(a)||V3(o))&&n.dirty(),{status:n.value,value:s.data}):(We(r,{code:Re.invalid_intersection_types}),St)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}hg.create=(e,t,n)=>new hg({left:e,right:t,typeName:pt.ZodIntersection,...Ct(n)});class cs extends Rt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.array)return We(r,{code:Re.invalid_type,expected:Ue.array,received:r.parsedType}),St;if(r.data.length<this._def.items.length)return We(r,{code:Re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),St;!this._def.rest&&r.data.length>this._def.items.length&&(We(r,{code:Re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new us(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>gi.mergeArray(n,o)):gi.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new cs({...this._def,rest:t})}}cs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cs({items:e,typeName:pt.ZodTuple,rest:null,...Ct(t)})};class pg extends Rt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.object)return We(r,{code:Re.invalid_type,expected:Ue.object,received:r.parsedType}),St;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new us(r,s,r.path,s)),value:o._parse(new us(r,r.data[s],r.path,s))});return r.common.async?gi.mergeObjectAsync(n,i):gi.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Rt?new pg({keyType:t,valueType:n,typeName:pt.ZodRecord,...Ct(r)}):new pg({keyType:_o.create(),valueType:t,typeName:pt.ZodRecord,...Ct(n)})}}class y_ extends Rt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.map)return We(r,{code:Re.invalid_type,expected:Ue.map,received:r.parsedType}),St;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new us(r,s,r.path,[c,"key"])),value:a._parse(new us(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,f=await l.value;if(c.status==="aborted"||f.status==="aborted")return St;(c.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(c.value,f.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of o){const c=l.key,f=l.value;if(c.status==="aborted"||f.status==="aborted")return St;(c.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(c.value,f.value)}return{status:n.value,value:s}}}}y_.create=(e,t,n)=>new y_({valueType:t,keyType:e,typeName:pt.ZodMap,...Ct(n)});class Lc extends Rt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.set)return We(r,{code:Re.invalid_type,expected:Ue.set,received:r.parsedType}),St;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(We(r,{code:Re.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(We(r,{code:Re.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(l){const c=new Set;for(const f of l){if(f.status==="aborted")return St;f.status==="dirty"&&n.dirty(),c.add(f.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>a._parse(new us(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new Lc({...this._def,minSize:{value:t,message:rt.toString(n)}})}max(t,n){return new Lc({...this._def,maxSize:{value:t,message:rt.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Lc.create=(e,t)=>new Lc({valueType:e,minSize:null,maxSize:null,typeName:pt.ZodSet,...Ct(t)});class If extends Rt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.function)return We(n,{code:Re.invalid_type,expected:Ue.function,received:n.parsedType}),St;function r(s,l){return p_({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,h_(),sg].filter(c=>!!c),issueData:{code:Re.invalid_arguments,argumentsError:l}})}function i(s,l){return p_({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,h_(),sg].filter(c=>!!c),issueData:{code:Re.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof sh){const s=this;return Li(async function(...l){const c=new xo([]),f=await s._def.args.parseAsync(l,a).catch(v=>{throw c.addIssue(r(l,v)),c}),h=await Reflect.apply(o,this,f);return await s._def.returns._def.type.parseAsync(h,a).catch(v=>{throw c.addIssue(i(h,v)),c})})}else{const s=this;return Li(function(...l){const c=s._def.args.safeParse(l,a);if(!c.success)throw new xo([r(l,c.error)]);const f=Reflect.apply(o,this,c.data),h=s._def.returns.safeParse(f,a);if(!h.success)throw new xo([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new If({...this._def,args:cs.create(t).rest(wc.create())})}returns(t){return new If({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new If({args:t||cs.create([]).rest(wc.create()),returns:n||wc.create(),typeName:pt.ZodFunction,...Ct(r)})}}class mg extends Rt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}mg.create=(e,t)=>new mg({getter:e,typeName:pt.ZodLazy,...Ct(t)});class gg extends Rt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return We(n,{received:n.data,code:Re.invalid_literal,expected:this._def.value}),St}return{status:"valid",value:t.data}}get value(){return this._def.value}}gg.create=(e,t)=>new gg({value:e,typeName:pt.ZodLiteral,...Ct(t)});function xj(e,t){return new gu({values:e,typeName:pt.ZodEnum,...Ct(t)})}class gu extends Rt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return We(n,{expected:nn.joinValues(r),received:n.parsedType,code:Re.invalid_type}),St}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return We(n,{received:n.data,code:Re.invalid_enum_value,options:r}),St}return Li(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return gu.create(t)}exclude(t){return gu.create(this.options.filter(n=>!t.includes(n)))}}gu.create=xj;class vg extends Rt{_parse(t){const n=nn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ue.string&&r.parsedType!==Ue.number){const i=nn.objectValues(n);return We(r,{expected:nn.joinValues(i),received:r.parsedType,code:Re.invalid_type}),St}if(n.indexOf(t.data)===-1){const i=nn.objectValues(n);return We(r,{received:r.data,code:Re.invalid_enum_value,options:i}),St}return Li(t.data)}get enum(){return this._def.values}}vg.create=(e,t)=>new vg({values:e,typeName:pt.ZodNativeEnum,...Ct(t)});class sh extends Rt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.promise&&n.common.async===!1)return We(n,{code:Re.invalid_type,expected:Ue.promise,received:n.parsedType}),St;const r=n.parsedType===Ue.promise?n.data:Promise.resolve(n.data);return Li(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}sh.create=(e,t)=>new sh({type:e,typeName:pt.ZodPromise,...Ct(t)});class To extends Rt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{We(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(o).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:o,path:r.path,parent:r})}if(i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?St:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?St:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!lg(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>lg(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):o);nn.assertNever(i)}}To.create=(e,t,n)=>new To({schema:e,typeName:pt.ZodEffects,effect:t,...Ct(n)});To.createWithPreprocess=(e,t,n)=>new To({schema:t,effect:{type:"preprocess",transform:e},typeName:pt.ZodEffects,...Ct(n)});class Gs extends Rt{_parse(t){return this._getType(t)===Ue.undefined?Li(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gs.create=(e,t)=>new Gs({innerType:e,typeName:pt.ZodOptional,...Ct(t)});class Mc extends Rt{_parse(t){return this._getType(t)===Ue.null?Li(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Mc.create=(e,t)=>new Mc({innerType:e,typeName:pt.ZodNullable,...Ct(t)});class yg extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}yg.create=(e,t)=>new yg({innerType:e,typeName:pt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ct(t)});class __ extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return m_(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new xo(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new xo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}__.create=(e,t)=>new __({innerType:e,typeName:pt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ct(t)});class b_ extends Rt{_parse(t){if(this._getType(t)!==Ue.nan){const r=this._getOrReturnCtx(t);return We(r,{code:Re.invalid_type,expected:Ue.nan,received:r.parsedType}),St}return{status:"valid",value:t.data}}}b_.create=e=>new b_({typeName:pt.ZodNaN,...Ct(e)});const m5e=Symbol("zod_brand");class Cj extends Rt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class nv extends Rt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?St:a.status==="dirty"?(n.dirty(),wj(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?St:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new nv({in:t,out:n,typeName:pt.ZodPipeline})}}class S_ extends Rt{_parse(t){const n=this._def.innerType._parse(t);return lg(n)&&(n.value=Object.freeze(n.value)),n}}S_.create=(e,t)=>new S_({innerType:e,typeName:pt.ZodReadonly,...Ct(t)});const Ej=(e,t={},n)=>e?oh.create().superRefine((r,i)=>{var a,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(o=(a=s.fatal)!==null&&a!==void 0?a:n)!==null&&o!==void 0?o:!0,c=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...c,fatal:l})}}):oh.create(),g5e={object:Un.lazycreate};var pt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(pt||(pt={}));const v5e=(e,t={message:`Input not instance of ${e.name}`})=>Ej(n=>n instanceof e,t),kj=_o.create,Tj=pu.create,y5e=b_.create,_5e=mu.create,Pj=ug.create,b5e=Ic.create,S5e=g_.create,w5e=cg.create,x5e=dg.create,C5e=oh.create,E5e=wc.create,k5e=il.create,T5e=v_.create,P5e=Co.create,O5e=Un.create,R5e=Un.strictCreate,A5e=fg.create,I5e=Qb.create,L5e=hg.create,M5e=cs.create,D5e=pg.create,N5e=y_.create,F5e=Lc.create,$5e=If.create,z5e=mg.create,j5e=gg.create,B5e=gu.create,V5e=vg.create,U5e=sh.create,wR=To.create,H5e=Gs.create,W5e=Mc.create,q5e=To.createWithPreprocess,G5e=nv.create,K5e=()=>kj().optional(),Y5e=()=>Tj().optional(),Z5e=()=>Pj().optional(),Q5e={string:e=>_o.create({...e,coerce:!0}),number:e=>pu.create({...e,coerce:!0}),boolean:e=>ug.create({...e,coerce:!0}),bigint:e=>mu.create({...e,coerce:!0}),date:e=>Ic.create({...e,coerce:!0})},X5e=St;var Ri=Object.freeze({__proto__:null,defaultErrorMap:sg,setErrorMap:n5e,getErrorMap:h_,makeIssue:p_,EMPTY_PATH:r5e,addIssueToContext:We,ParseStatus:gi,INVALID:St,DIRTY:wj,OK:Li,isAborted:B3,isDirty:V3,isValid:lg,isAsync:m_,get util(){return nn},get objectUtil(){return j3},ZodParsedType:Ue,getParsedType:Wl,ZodType:Rt,ZodString:_o,ZodNumber:pu,ZodBigInt:mu,ZodBoolean:ug,ZodDate:Ic,ZodSymbol:g_,ZodUndefined:cg,ZodNull:dg,ZodAny:oh,ZodUnknown:wc,ZodNever:il,ZodVoid:v_,ZodArray:Co,ZodObject:Un,ZodUnion:fg,ZodDiscriminatedUnion:Qb,ZodIntersection:hg,ZodTuple:cs,ZodRecord:pg,ZodMap:y_,ZodSet:Lc,ZodFunction:If,ZodLazy:mg,ZodLiteral:gg,ZodEnum:gu,ZodNativeEnum:vg,ZodPromise:sh,ZodEffects:To,ZodTransformer:To,ZodOptional:Gs,ZodNullable:Mc,ZodDefault:yg,ZodCatch:__,ZodNaN:b_,BRAND:m5e,ZodBranded:Cj,ZodPipeline:nv,ZodReadonly:S_,custom:Ej,Schema:Rt,ZodSchema:Rt,late:g5e,get ZodFirstPartyTypeKind(){return pt},coerce:Q5e,any:C5e,array:P5e,bigint:_5e,boolean:Pj,date:b5e,discriminatedUnion:I5e,effect:wR,enum:B5e,function:$5e,instanceof:v5e,intersection:L5e,lazy:z5e,literal:j5e,map:N5e,nan:y5e,nativeEnum:V5e,never:k5e,null:x5e,nullable:W5e,number:Tj,object:O5e,oboolean:Z5e,onumber:Y5e,optional:H5e,ostring:K5e,pipeline:G5e,preprocess:q5e,promise:U5e,record:D5e,set:F5e,strictObject:R5e,string:kj,symbol:S5e,transformer:wR,tuple:M5e,undefined:w5e,union:A5e,unknown:E5e,void:T5e,NEVER:X5e,ZodIssueCode:Re,quotelessJson:t5e,ZodError:xo});const J5e=e=>Ir({url:"clients/current/onboarding",method:"POST",data:e}),e4e={updateOnboarding:J5e};function xR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xR(Object(n),!0).forEach(function(r){of(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t4e(e){if(Array.isArray(e))return e}function n4e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function r4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
     470In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ks(e,t){return t4e(e)||n4e(e,t)||iz(e,t)||r4e()}function sl(e,t){if(e==null)return{};var n=aN(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var i4e=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function a4e(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,f=e.onInputChange,h=e.onMenuClose,p=e.onMenuOpen,v=e.value,y=sl(e,i4e),m=w.useState(s!==void 0?s:n),_=Ks(m,2),b=_[0],S=_[1],C=w.useState(l!==void 0?l:i),E=Ks(C,2),R=E[0],A=E[1],I=w.useState(v!==void 0?v:o),M=Ks(I,2),F=M[0],z=M[1],Y=w.useCallback(function(J,me){typeof c=="function"&&c(J,me),z(J)},[c]),W=w.useCallback(function(J,me){var we;typeof f=="function"&&(we=f(J,me)),S(we!==void 0?we:J)},[f]),q=w.useCallback(function(){typeof p=="function"&&p(),A(!0)},[p]),ae=w.useCallback(function(){typeof h=="function"&&h(),A(!1)},[h]),ee=s!==void 0?s:b,ce=l!==void 0?l:R,ue=v!==void 0?v:F;return ot(ot({},y),{},{inputValue:ee,menuIsOpen:ce,onChange:Y,onInputChange:W,onMenuClose:ae,onMenuOpen:q,value:ue})}function o4e(e){if(Array.isArray(e))return p3(e)}function s4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
     471In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oj(e){return o4e(e)||s4e(e)||iz(e)||l4e()}function u4e(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const c4e=Math.min,d4e=Math.max,w_=Math.round,V0=Math.floor,x_=e=>({x:e,y:e});function f4e(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Rj(e){return Ij(e)?(e.nodeName||"").toLowerCase():"#document"}function Eo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Aj(e){var t;return(t=(Ij(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ij(e){return e instanceof Node||e instanceof Eo(e).Node}function H3(e){return e instanceof Element||e instanceof Eo(e).Element}function f8(e){return e instanceof HTMLElement||e instanceof Eo(e).HTMLElement}function CR(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Eo(e).ShadowRoot}function Lj(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=h8(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function h4e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function p4e(e){return["html","body","#document"].includes(Rj(e))}function h8(e){return Eo(e).getComputedStyle(e)}function m4e(e){if(Rj(e)==="html")return e;const t=e.assignedSlot||e.parentNode||CR(e)&&e.host||Aj(e);return CR(t)?t.host:t}function Mj(e){const t=m4e(e);return p4e(t)?e.ownerDocument?e.ownerDocument.body:e.body:f8(t)&&Lj(t)?t:Mj(t)}function W3(e,t){var n;t===void 0&&(t=[]);const r=Mj(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Eo(r);return i?t.concat(a,a.visualViewport||[],Lj(r)?r:[]):t.concat(r,W3(r))}function g4e(e){const t=h8(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=f8(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=w_(n)!==a||w_(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function p8(e){return H3(e)?e:e.contextElement}function rx(e){const t=p8(e);if(!f8(t))return x_(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=g4e(t);let o=(a?w_(n.width):n.width)/r,s=(a?w_(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const v4e=x_(0);function y4e(e){const t=Eo(e);return!h4e()||!t.visualViewport?v4e:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _4e(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Eo(e)?!1:t}function ER(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=p8(e);let o=x_(1);t&&(r?H3(r)&&(o=rx(r)):o=rx(e));const s=_4e(a,n,r)?y4e(a):x_(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,f=i.width/o.x,h=i.height/o.y;if(a){const p=Eo(a),v=r&&H3(r)?Eo(r):r;let y=p.frameElement;for(;y&&r&&v!==p;){const m=rx(y),_=y.getBoundingClientRect(),b=h8(y),S=_.left+(y.clientLeft+parseFloat(b.paddingLeft))*m.x,C=_.top+(y.clientTop+parseFloat(b.paddingTop))*m.y;l*=m.x,c*=m.y,f*=m.x,h*=m.y,l+=S,c+=C,y=Eo(y).frameElement}}return f4e({width:f,height:h,x:l,y:c})}function b4e(e,t){let n=null,r;const i=Aj(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:c,top:f,width:h,height:p}=e.getBoundingClientRect();if(s||t(),!h||!p)return;const v=V0(f),y=V0(i.clientWidth-(c+h)),m=V0(i.clientHeight-(f+p)),_=V0(c),S={rootMargin:-v+"px "+-y+"px "+-m+"px "+-_+"px",threshold:d4e(0,c4e(1,l))||1};let C=!0;function E(R){const A=R[0].intersectionRatio;if(A!==l){if(!C)return o();A?o(!1,A):r=setTimeout(()=>{o(!1,1e-7)},100)}C=!1}try{n=new IntersectionObserver(E,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return o(!0),a}function S4e(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=p8(e),f=i||a?[...c?W3(c):[],...W3(t)]:[];f.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const h=c&&s?b4e(c,n):null;let p=-1,v=null;o&&(v=new ResizeObserver(b=>{let[S]=b;S&&S.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{v&&v.observe(t)})),n()}),c&&!l&&v.observe(c),v.observe(t));let y,m=l?ER(e):null;l&&_();function _(){const b=ER(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,y=requestAnimationFrame(_)}return n(),()=>{f.forEach(b=>{i&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),h&&h(),v&&v.disconnect(),v=null,l&&cancelAnimationFrame(y)}}var q3=w.useLayoutEffect,w4e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],C_=function(){};function x4e(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function C4e(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(x4e(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var kR=function(t){return L4e(t)?t.filter(Boolean):nl(t)==="object"&&t!==null?[t]:[]},Dj=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=sl(t,w4e);return ot({},n)},tr=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function Xb(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function E4e(e){return Xb(e)?window.innerHeight:e.clientHeight}function Nj(e){return Xb(e)?window.pageYOffset:e.scrollTop}function E_(e,t){if(Xb(e)){window.scrollTo(0,t);return}e.scrollTop=t}function k4e(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function T4e(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function U0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C_,i=Nj(e),a=t-i,o=10,s=0;function l(){s+=o;var c=T4e(s,i,a,n);E_(e,c),s<n?window.requestAnimationFrame(l):r(e)}l()}function TR(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?E_(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&E_(e,Math.max(t.offsetTop-i,0))}function P4e(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function PR(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function O4e(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Fj=!1,R4e={get passive(){return Fj=!0}},H0=typeof window<"u"?window:{};H0.addEventListener&&H0.removeEventListener&&(H0.addEventListener("p",C_,R4e),H0.removeEventListener("p",C_,!1));var A4e=Fj;function I4e(e){return e!=null}function L4e(e){return Array.isArray(e)}function W0(e,t,n){return e?t:n}var M4e=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Object.entries(t).filter(function(o){var s=Ks(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=Ks(s,2),c=l[0],f=l[1];return o[c]=f,o},{})},D4e=["children","innerProps"],N4e=["children","innerProps"];function F4e(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=k4e(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var f=l.getBoundingClientRect(),h=f.height,p=n.getBoundingClientRect(),v=p.bottom,y=p.height,m=p.top,_=n.offsetParent.getBoundingClientRect(),b=_.top,S=o?window.innerHeight:E4e(l),C=Nj(l),E=parseInt(getComputedStyle(n).marginBottom,10),R=parseInt(getComputedStyle(n).marginTop,10),A=b-R,I=S-m,M=A+C,F=h-C-m,z=v-S+C+E,Y=C+m-R,W=160;switch(i){case"auto":case"bottom":if(I>=y)return{placement:"bottom",maxHeight:t};if(F>=y&&!o)return a&&U0(l,z,W),{placement:"bottom",maxHeight:t};if(!o&&F>=r||o&&I>=r){a&&U0(l,z,W);var q=o?I-E:F-E;return{placement:"bottom",maxHeight:q}}if(i==="auto"||o){var ae=t,ee=o?A:M;return ee>=r&&(ae=Math.min(ee-E-s,t)),{placement:"top",maxHeight:ae}}if(i==="bottom")return a&&E_(l,z),{placement:"bottom",maxHeight:t};break;case"top":if(A>=y)return{placement:"top",maxHeight:t};if(M>=y&&!o)return a&&U0(l,Y,W),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&A>=r){var ce=t;return(!o&&M>=r||o&&A>=r)&&(ce=o?A-R:M-R),a&&U0(l,Y,W),{placement:"top",maxHeight:ce}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function $4e(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var $j=function(t){return t==="auto"?"bottom":t},z4e=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return ot((r={label:"menu"},of(r,$4e(i),"100%"),of(r,"position","absolute"),of(r,"width","100%"),of(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},zj=w.createContext(null),j4e=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=w.useContext(zj)||{},f=c.setPortalPlacement,h=w.useRef(null),p=w.useState(i),v=Ks(p,2),y=v[0],m=v[1],_=w.useState(null),b=Ks(_,2),S=b[0],C=b[1],E=l.spacing.controlHeight;return q3(function(){var R=h.current;if(R){var A=o==="fixed",I=s&&!A,M=F4e({maxHeight:i,menuEl:R,minHeight:r,placement:a,shouldScroll:I,isFixedPosition:A,controlHeight:E});m(M.maxHeight),C(M.placement),f==null||f(M.placement)}},[i,a,o,s,r,f,E]),n({ref:h,placerProps:ot(ot({},t),{},{placement:S||$j(a),maxHeight:y})})},B4e=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return ut("div",Je({},tr(t,"menu",{menu:!0}),{ref:r},i),n)},V4e=B4e,U4e=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ot({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},H4e=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return ut("div",Je({},tr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},jj=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return ot({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},W4e=jj,q4e=jj,G4e=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=sl(t,D4e);return ut("div",Je({},tr(ot(ot({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},K4e=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=sl(t,N4e);return ut("div",Je({},tr(ot(ot({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Y4e=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Z4e=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),c=w.useRef(null),f=w.useState($j(o)),h=Ks(f,2),p=h[0],v=h[1],y=w.useMemo(function(){return{setPortalPlacement:v}},[]),m=w.useState(null),_=Ks(m,2),b=_[0],S=_[1],C=w.useCallback(function(){if(i){var I=P4e(i),M=s==="fixed"?0:window.pageYOffset,F=I[p]+M;(F!==(b==null?void 0:b.offset)||I.left!==(b==null?void 0:b.rect.left)||I.width!==(b==null?void 0:b.rect.width))&&S({offset:F,rect:I})}},[i,s,p,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);q3(function(){C()},[C]);var E=w.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),i&&l.current&&(c.current=S4e(i,l.current,C,{elementResize:"ResizeObserver"in window}))},[i,C]);q3(function(){E()},[E]);var R=w.useCallback(function(I){l.current=I,E()},[E]);if(!n&&s!=="fixed"||!b)return null;var A=ut("div",Je({ref:R},tr(ot(ot({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ut(zj.Provider,{value:y},n?Yo.createPortal(A,n):A)},Q4e=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},X4e=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return ut("div",Je({},tr(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},J4e=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return ot({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},e6e=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return ut("div",Je({},tr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},t6e=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},n6e=function(t){var n=t.children,r=t.innerProps;return ut("div",Je({},tr(t,"indicatorsContainer",{indicators:!0}),r),n)},OR,r6e=["size"],i6e=["innerProps","isRtl","size"],a6e={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Bj=function(t){var n=t.size,r=sl(t,r6e);return ut("svg",Je({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:a6e},r))},m8=function(t){return ut(Bj,Je({size:20},t),ut("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Vj=function(t){return ut(Bj,Je({size:20},t),ut("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Uj=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ot({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},o6e=Uj,s6e=function(t){var n=t.children,r=t.innerProps;return ut("div",Je({},tr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ut(Vj,null))},l6e=Uj,u6e=function(t){var n=t.children,r=t.innerProps;return ut("div",Je({},tr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ut(m8,null))},c6e=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ot({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},d6e=function(t){var n=t.innerProps;return ut("span",Je({},n,tr(t,"indicatorSeparator",{"indicator-separator":!0})))},f6e=Ro(OR||(OR=u4e([`
    472472  0%, 80%, 100% { opacity: 0; }
    473473  40% { opacity: 1; }
    474 `]))),h6e=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return ot({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},ix=function(t){var n=t.delay,r=t.offset;return ut("span",{css:u4({animation:"".concat(f6e," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},p6e=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=sl(t,i6e);return ut("div",Je({},tr(ot(ot({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ut(ix,{delay:0,offset:r}),ut(ix,{delay:160,offset:!0}),ut(ix,{delay:320,offset:!r}))},m6e=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return ot({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},g6e=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return ut("div",Je({ref:a},tr(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o),n)},v6e=g6e,y6e=["data"],_6e=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},b6e=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,f=t.theme,h=t.selectProps;return ut("div",Je({},tr(t,"group",{group:!0}),l),ut(o,Je({},s,{selectProps:h,theme:f,getStyles:i,getClassNames:a,cx:r}),c),ut("div",null,n))},S6e=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return ot({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},w6e=function(t){var n=Dj(t);n.data;var r=sl(n,y6e);return ut("div",Je({},tr(t,"groupHeading",{"group-heading":!0}),r))},x6e=b6e,C6e=["innerRef","isDisabled","isHidden","inputClassName"],E6e=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return ot(ot({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},k6e),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Hj={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},k6e={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ot({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Hj)},T6e=function(t){return ot({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Hj)},P6e=function(t){var n=t.cx,r=t.value,i=Dj(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,c=sl(i,C6e);return ut("div",Je({},tr(t,"input",{"input-container":!0}),{"data-value":r||""}),ut("input",Je({className:n({input:!0},l),ref:a,style:T6e(s),disabled:o},c)))},O6e=P6e,R6e=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return ot({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},A6e=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return ot({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},I6e=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return ot({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Wj=function(t){var n=t.children,r=t.innerProps;return ut("div",r,n)},L6e=Wj,M6e=Wj;function D6e(e){var t=e.children,n=e.innerProps;return ut("div",Je({role:"button"},n),t||ut(m8,{size:14}))}var N6e=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,c=r.Container,f=r.Label,h=r.Remove;return ut(c,{data:i,innerProps:ot(ot({},tr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},ut(f,{data:i,innerProps:ot({},tr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),ut(h,{data:i,innerProps:ot(ot({},tr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},F6e=N6e,$6e=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return ot({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},z6e=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return ut("div",Je({},tr(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},j6e=z6e,B6e=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return ot({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},V6e=function(t){var n=t.children,r=t.innerProps;return ut("div",Je({},tr(t,"placeholder",{placeholder:!0}),r),n)},U6e=V6e,H6e=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return ot({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},W6e=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return ut("div",Je({},tr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},q6e=W6e,G6e={ClearIndicator:u6e,Control:v6e,DropdownIndicator:s6e,DownChevron:Vj,CrossIcon:m8,Group:x6e,GroupHeading:w6e,IndicatorsContainer:n6e,IndicatorSeparator:d6e,Input:O6e,LoadingIndicator:p6e,Menu:V4e,MenuList:H4e,MenuPortal:Z4e,LoadingMessage:K4e,NoOptionsMessage:G4e,MultiValue:F6e,MultiValueContainer:L6e,MultiValueLabel:M6e,MultiValueRemove:D6e,Option:j6e,Placeholder:U6e,SelectContainer:X4e,SingleValue:q6e,ValueContainer:e6e},K6e=function(t){return ot(ot({},G6e),t.components)},RR=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Y6e(e,t){return!!(e===t||RR(e)&&RR(t))}function Z6e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Y6e(e[n],t[n]))return!1;return!0}function Q6e(e,t){t===void 0&&(t=Z6e);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}var X6e={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},J6e=function(t){return ut("span",Je({css:X6e},t))},AR=J6e,e8e={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.isDisabled,a=t.tabSelectsValue,o=t.context;switch(o){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,c=t.isSelected,f=function(y,m){return y&&y.length?"".concat(y.indexOf(m)+1," of ").concat(y.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(f(s,r),".");if(n==="menu"){var h=l?" disabled":"",p="".concat(c?"selected":"focused").concat(h);return"option ".concat(o," ").concat(p,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},t8e=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,f=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,v=l.isMulti,y=l.isOptionDisabled,m=l.isSearchable,_=l.menuIsOpen,b=l.options,S=l.screenReaderStatus,C=l.tabSelectsValue,E=l["aria-label"],R=l["aria-live"],A=w.useMemo(function(){return ot(ot({},e8e),f||{})},[f]),I=w.useMemo(function(){var ae="";if(n&&A.onChange){var ee=n.option,ce=n.options,ue=n.removedValue,J=n.removedValues,me=n.value,we=function(it){return Array.isArray(it)?null:it},Ce=ue||ee||we(me),Ee=Ce?h(Ce):"",xe=ce||J||void 0,ye=xe?xe.map(h):[],Le=ot({isDisabled:Ce&&y(Ce,s),label:Ee,labels:ye},n);ae=A.onChange(Le)}return ae},[n,A,y,s,h]),M=w.useMemo(function(){var ae="",ee=r||i,ce=!!(r&&s&&s.includes(r));if(ee&&A.onFocus){var ue={focused:ee,label:h(ee),isDisabled:y(ee,s),isSelected:ce,options:a,context:ee===r?"menu":"value",selectValue:s};ae=A.onFocus(ue)}return ae},[r,i,h,y,A,a,s]),F=w.useMemo(function(){var ae="";if(_&&b.length&&A.onFilter){var ee=S({count:a.length});ae=A.onFilter({inputValue:p,resultsMessage:ee})}return ae},[a,p,_,A,b,S]),z=w.useMemo(function(){var ae="";if(A.guidance){var ee=i?"value":_?"menu":"input";ae=A.guidance({"aria-label":E,context:ee,isDisabled:r&&y(r,s),isMulti:v,isSearchable:m,tabSelectsValue:C})}return ae},[E,r,i,v,y,m,_,A,s,C]),Y="".concat(M," ").concat(F," ").concat(z),W=ut(w.Fragment,null,ut("span",{id:"aria-selection"},I),ut("span",{id:"aria-context"},Y)),q=(n==null?void 0:n.action)==="initial-input-focus";return ut(w.Fragment,null,ut(AR,{id:c},q&&W),ut(AR,{"aria-live":R,"aria-atomic":"false","aria-relevant":"additions text"},o&&!q&&W))},n8e=t8e,GC=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r8e=new RegExp("["+GC.map(function(e){return e.letters}).join("")+"]","g"),qj={};for(var ax=0;ax<GC.length;ax++)for(var ox=GC[ax],sx=0;sx<ox.letters.length;sx++)qj[ox.letters[sx]]=ox.base;var Gj=function(t){return t.replace(r8e,function(n){return qj[n]})},i8e=Q6e(Gj),IR=function(t){return t.replace(/^\s+|\s+$/g,"")},a8e=function(t){return"".concat(t.label," ").concat(t.value)},Kj=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ot({ignoreCase:!0,ignoreAccents:!0,stringify:a8e,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,c=i.matchFrom,f=l?IR(r):r,h=l?IR(s(n)):s(n);return a&&(f=f.toLowerCase(),h=h.toLowerCase()),o&&(f=i8e(f),h=Gj(h)),c==="start"?h.substr(0,f.length)===f:h.indexOf(f)>-1}},o8e=["innerRef"];function s8e(e){var t=e.innerRef,n=sl(e,o8e),r=M4e(n,"onExited","in","enter","exit","appear");return ut("input",Je({ref:t},r,{css:u4({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var l8e=function(t){t.preventDefault(),t.stopPropagation()};function u8e(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),c=w.useRef(null),f=w.useCallback(function(_,b){if(c.current!==null){var S=c.current,C=S.scrollTop,E=S.scrollHeight,R=S.clientHeight,A=c.current,I=b>0,M=E-R-C,F=!1;M>b&&o.current&&(r&&r(_),o.current=!1),I&&s.current&&(a&&a(_),s.current=!1),I&&b>M?(n&&!o.current&&n(_),A.scrollTop=E,F=!0,o.current=!0):!I&&-b>C&&(i&&!s.current&&i(_),A.scrollTop=0,F=!0,s.current=!0),F&&l8e(_)}},[n,r,i,a]),h=w.useCallback(function(_){f(_,_.deltaY)},[f]),p=w.useCallback(function(_){l.current=_.changedTouches[0].clientY},[]),v=w.useCallback(function(_){var b=l.current-_.changedTouches[0].clientY;f(_,b)},[f]),y=w.useCallback(function(_){if(_){var b=A4e?{passive:!1}:!1;_.addEventListener("wheel",h,b),_.addEventListener("touchstart",p,b),_.addEventListener("touchmove",v,b)}},[v,p,h]),m=w.useCallback(function(_){_&&(_.removeEventListener("wheel",h,!1),_.removeEventListener("touchstart",p,!1),_.removeEventListener("touchmove",v,!1))},[v,p,h]);return w.useEffect(function(){if(t){var _=c.current;return y(_),function(){m(_)}}},[t,y,m]),function(_){c.current=_}}var LR=["boxSizing","height","overflow","paddingRight","position"],MR={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function DR(e){e.preventDefault()}function NR(e){e.stopPropagation()}function FR(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function $R(){return"ontouchstart"in window||navigator.maxTouchPoints}var zR=!!(typeof window<"u"&&window.document&&window.document.createElement),Rp=0,Rd={capture:!1,passive:!1};function c8e(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),a=w.useRef(null),o=w.useCallback(function(l){if(zR){var c=document.body,f=c&&c.style;if(r&&LR.forEach(function(y){var m=f&&f[y];i.current[y]=m}),r&&Rp<1){var h=parseInt(i.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,v=window.innerWidth-p+h||0;Object.keys(MR).forEach(function(y){var m=MR[y];f&&(f[y]=m)}),f&&(f.paddingRight="".concat(v,"px"))}c&&$R()&&(c.addEventListener("touchmove",DR,Rd),l&&(l.addEventListener("touchstart",FR,Rd),l.addEventListener("touchmove",NR,Rd))),Rp+=1}},[r]),s=w.useCallback(function(l){if(zR){var c=document.body,f=c&&c.style;Rp=Math.max(Rp-1,0),r&&Rp<1&&LR.forEach(function(h){var p=i.current[h];f&&(f[h]=p)}),c&&$R()&&(c.removeEventListener("touchmove",DR,Rd),l&&(l.removeEventListener("touchstart",FR,Rd),l.removeEventListener("touchmove",NR,Rd)))}},[r]);return w.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}var d8e=function(){return document.activeElement&&document.activeElement.blur()},f8e={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function h8e(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=u8e({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),f=c8e({isEnabled:n}),h=function(v){c(v),f(v)};return ut(w.Fragment,null,n&&ut("div",{onClick:d8e,css:f8e}),t(h))}var p8e={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},m8e=function(t){var n=t.name,r=t.onFocus;return ut("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:p8e,value:"",onChange:function(){}})},g8e=m8e,v8e=function(t){return t.label},y8e=function(t){return t.label},_8e=function(t){return t.value},b8e=function(t){return!!t.isDisabled},S8e={clearIndicator:l6e,container:Q4e,control:m6e,dropdownIndicator:o6e,group:_6e,groupHeading:S6e,indicatorsContainer:t6e,indicatorSeparator:c6e,input:E6e,loadingIndicator:h6e,loadingMessage:q4e,menu:z4e,menuList:U4e,menuPortal:Y4e,multiValue:R6e,multiValueLabel:A6e,multiValueRemove:I6e,noOptionsMessage:W4e,option:$6e,placeholder:B6e,singleValue:H6e,valueContainer:J4e},w8e={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},x8e=4,Yj=4,C8e=38,E8e=Yj*2,k8e={baseUnit:Yj,controlHeight:C8e,menuGutter:E8e},lx={borderRadius:x8e,colors:w8e,spacing:k8e},T8e={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:PR(),captureMenuScroll:!PR(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Kj(),formatGroupLabel:v8e,getOptionLabel:y8e,getOptionValue:_8e,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:b8e,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!O4e(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function jR(e,t,n,r){var i=Jj(e,t,n),a=eB(e,t,n),o=Xj(e,t),s=k_(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function Zj(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return jR(e,o,t,s)}).filter(function(o){return BR(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=jR(e,n,t,r);return BR(e,a)?a:void 0}).filter(I4e)}function Qj(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Oj(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function P8e(e,t){return Qj(Zj(e,t))}function BR(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!nB(e)||!a)&&tB(e,{label:o,value:s,data:i},r)}function O8e(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function R8e(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Xj=function(t,n){return t.getOptionLabel(n)},k_=function(t,n){return t.getOptionValue(n)};function Jj(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function eB(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=k_(e,t);return n.some(function(i){return k_(e,i)===r})}function tB(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var nB=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},A8e=1,rB=function(e){S2e(n,e);var t=C2e(n);function n(r){var i;if(k$(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(s){i.controlRef=s},i.focusedOptionRef=null,i.getFocusedOptionRef=function(s){i.focusedOptionRef=s},i.menuListRef=null,i.getMenuListRef=function(s){i.menuListRef=s},i.inputRef=null,i.getInputRef=function(s){i.inputRef=s},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(s,l){var c=i.props,f=c.onChange,h=c.name;l.name=h,i.ariaOnChange(s,l),f(s,l)},i.setValue=function(s,l,c){var f=i.props,h=f.closeMenuOnSelect,p=f.isMulti,v=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:v}),h&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(s,{action:l,option:c})},i.selectOption=function(s){var l=i.props,c=l.blurInputOnSelect,f=l.isMulti,h=l.name,p=i.state.selectValue,v=f&&i.isOptionSelected(s,p),y=i.isOptionDisabled(s,p);if(v){var m=i.getOptionValue(s);i.setValue(p.filter(function(_){return i.getOptionValue(_)!==m}),"deselect-option",s)}else if(!y)f?i.setValue([].concat(Oj(p),[s]),"select-option",s):i.setValue(s,"select-option");else{i.ariaOnChange(s,{action:"select-option",option:s,name:h});return}c&&i.blurInput()},i.removeValue=function(s){var l=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(s),h=c.filter(function(v){return i.getOptionValue(v)!==f}),p=W0(l,h,h[0]||null);i.onChange(p,{action:"remove-value",removedValue:s}),i.focusInput()},i.clearValue=function(){var s=i.state.selectValue;i.onChange(W0(i.props.isMulti,[],null),{action:"clear",removedValues:s})},i.popValue=function(){var s=i.props.isMulti,l=i.state.selectValue,c=l[l.length-1],f=l.slice(0,l.length-1),h=W0(s,f,f[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return C4e.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(s){return Xj(i.props,s)},i.getOptionValue=function(s){return k_(i.props,s)},i.getStyles=function(s,l){var c=i.props.unstyled,f=S8e[s](l,c);f.boxSizing="border-box";var h=i.props.styles[s];return h?h(f,l):f},i.getClassNames=function(s,l){var c,f;return(c=(f=i.props.classNames)[s])===null||c===void 0?void 0:c.call(f,l)},i.getElementId=function(s){return"".concat(i.instancePrefix,"-").concat(s)},i.getComponents=function(){return K6e(i.props)},i.buildCategorizedOptions=function(){return Zj(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Qj(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(s,l){i.setState({ariaSelection:ot({value:s},l)})},i.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(s){i.blockOptionHover=!1},i.onControlMouseDown=function(s){if(!s.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},i.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!i.props.isDisabled){var l=i.props,c=l.isMulti,f=l.menuIsOpen;i.focusInput(),f?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),s.preventDefault()}},i.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(i.clearValue(),s.preventDefault(),i.openAfterFocus=!1,s.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(s){typeof i.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Xb(s.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(s)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(s){var l=s.touches,c=l&&l.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(s){var l=s.touches,c=l&&l.item(0);if(c){var f=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),p=5;i.userIsDragging=f>p||h>p}},i.onTouchEnd=function(s){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(s.target)&&i.menuListRef&&!i.menuListRef.contains(s.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(s){i.userIsDragging||i.onControlMouseDown(s)},i.onClearIndicatorTouchEnd=function(s){i.userIsDragging||i.onClearIndicatorMouseDown(s)},i.onDropdownIndicatorTouchEnd=function(s){i.userIsDragging||i.onDropdownIndicatorMouseDown(s)},i.handleInputChange=function(s){var l=i.props.inputValue,c=s.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(s){i.props.onFocus&&i.props.onFocus(s),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(s){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(s),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(s){i.blockOptionHover||i.state.focusedOption===s||i.setState({focusedOption:s})},i.shouldHideSelectedOptions=function(){return nB(i.props)},i.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),i.focus()},i.onKeyDown=function(s){var l=i.props,c=l.isMulti,f=l.backspaceRemovesValue,h=l.escapeClearsValue,p=l.inputValue,v=l.isClearable,y=l.isDisabled,m=l.menuIsOpen,_=l.onKeyDown,b=l.tabSelectsValue,S=l.openMenuOnFocus,C=i.state,E=C.focusedOption,R=C.focusedValue,A=C.selectValue;if(!y&&!(typeof _=="function"&&(_(s),s.defaultPrevented))){switch(i.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||p)return;i.focusValue("previous");break;case"ArrowRight":if(!c||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(R)i.removeValue(R);else{if(!f)return;c?i.popValue():v&&i.clearValue()}break;case"Tab":if(i.isComposing||s.shiftKey||!m||!b||!E||S&&i.isOptionSelected(E,A))return;i.selectOption(E);break;case"Enter":if(s.keyCode===229)break;if(m){if(!E||i.isComposing)return;i.selectOption(E);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):v&&h&&i.clearValue();break;case" ":if(p)return;if(!m){i.openMenu("first");break}if(!E)return;i.selectOption(E);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}s.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++A8e),i.state.selectValue=kR(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.buildFocusableOptions(),o=a.indexOf(i.state.selectValue[0]);i.state.focusedOption=a[o]}return i}return T$(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&TR(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(TR(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.isFocused,c=this.buildFocusableOptions(),f=i==="first"?0:c.length-1;if(!this.props.isMulti){var h=c.indexOf(s[0]);h>-1&&(f=h)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[f]},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var c=o.length-1,f=-1;if(o.length){switch(i){case"previous":l===0?f=0:l===-1?f=c:f=l-1;break;case"next":l>-1&&l<c&&(f=l+1);break}this.setState({inputIsHidden:f!==-1,focusedValue:o[f]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(o);o||(c=-1),i==="up"?l=c>0?c-1:s.length-1:i==="down"?l=(c+1)%s.length:i==="pageup"?(l=c-a,l<0&&(l=0)):i==="pagedown"?(l=c+a,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(lx):ot(ot({},lx),this.props.theme):lx}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,f=this.setValue,h=this.props,p=h.isMulti,v=h.isRtl,y=h.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:p,isRtl:v,options:y,selectOption:c,selectProps:h,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return Jj(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return eB(this.props,i,a)}},{key:"filterOption",value:function(i,a){return tB(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,c=i.tabIndex,f=i.form,h=i.menuIsOpen,p=i.required,v=this.getComponents(),y=v.Input,m=this.state,_=m.inputIsHidden,b=m.ariaSelection,S=this.commonProps,C=s||this.getElementId("input"),E=ot(ot(ot({"aria-autocomplete":"list","aria-expanded":h,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox"},h&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?w.createElement(y,Je({},S,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:a,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:f,type:"text",value:l},E)):w.createElement(s8e,Je({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:C_,onFocus:this.onInputFocus,disabled:a,tabIndex:c,inputMode:"none",form:f,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,c=a.MultiValueRemove,f=a.SingleValue,h=a.Placeholder,p=this.commonProps,v=this.props,y=v.controlShouldRenderValue,m=v.isDisabled,_=v.isMulti,b=v.inputValue,S=v.placeholder,C=this.state,E=C.selectValue,R=C.focusedValue,A=C.isFocused;if(!this.hasValue()||!y)return b?null:w.createElement(h,Je({},p,{key:"placeholder",isDisabled:m,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),S);if(_)return E.map(function(M,F){var z=M===R,Y="".concat(i.getOptionLabel(M),"-").concat(i.getOptionValue(M));return w.createElement(o,Je({},p,{components:{Container:s,Label:l,Remove:c},isFocused:z,isDisabled:m,key:Y,index:F,removeProps:{onClick:function(){return i.removeValue(M)},onTouchEnd:function(){return i.removeValue(M)},onMouseDown:function(q){q.preventDefault()}},data:M}),i.formatOptionLabel(M,"value"))});if(b)return null;var I=E[0];return w.createElement(f,Je({},p,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,f=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||c)return null;var h={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(a,Je({},o,{innerProps:h,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,f=this.state.isFocused;if(!a||!c)return null;var h={"aria-hidden":"true"};return w.createElement(a,Je({},o,{innerProps:h,isDisabled:l,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return w.createElement(o,Je({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(a,Je({},o,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,c=a.MenuList,f=a.MenuPortal,h=a.LoadingMessage,p=a.NoOptionsMessage,v=a.Option,y=this.commonProps,m=this.state.focusedOption,_=this.props,b=_.captureMenuScroll,S=_.inputValue,C=_.isLoading,E=_.loadingMessage,R=_.minMenuHeight,A=_.maxMenuHeight,I=_.menuIsOpen,M=_.menuPlacement,F=_.menuPosition,z=_.menuPortalTarget,Y=_.menuShouldBlockScroll,W=_.menuShouldScrollIntoView,q=_.noOptionsMessage,ae=_.onMenuScrollToTop,ee=_.onMenuScrollToBottom;if(!I)return null;var ce=function(xe,ye){var Le=xe.type,Ae=xe.data,it=xe.isDisabled,Ye=xe.isSelected,nt=xe.label,wt=xe.value,Dt=m===Ae,Nt=it?void 0:function(){return i.onOptionHover(Ae)},Sn=it?void 0:function(){return i.selectOption(Ae)},Yt="".concat(i.getElementId("option"),"-").concat(ye),Te={id:Yt,onClick:Sn,onMouseMove:Nt,onMouseOver:Nt,tabIndex:-1};return w.createElement(v,Je({},y,{innerProps:Te,data:Ae,isDisabled:it,isSelected:Ye,key:Yt,label:nt,type:Le,value:wt,isFocused:Dt,innerRef:Dt?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(xe.data,"menu"))},ue;if(this.hasOptions())ue=this.getCategorizedOptions().map(function(Ee){if(Ee.type==="group"){var xe=Ee.data,ye=Ee.options,Le=Ee.index,Ae="".concat(i.getElementId("group"),"-").concat(Le),it="".concat(Ae,"-heading");return w.createElement(o,Je({},y,{key:Ae,data:xe,options:ye,Heading:s,headingProps:{id:it,data:Ee.data},label:i.formatGroupLabel(Ee.data)}),Ee.options.map(function(Ye){return ce(Ye,"".concat(Le,"-").concat(Ye.index))}))}else if(Ee.type==="option")return ce(Ee,"".concat(Ee.index))});else if(C){var J=E({inputValue:S});if(J===null)return null;ue=w.createElement(h,y,J)}else{var me=q({inputValue:S});if(me===null)return null;ue=w.createElement(p,y,me)}var we={minMenuHeight:R,maxMenuHeight:A,menuPlacement:M,menuPosition:F,menuShouldScrollIntoView:W},Ce=w.createElement(j4e,Je({},y,we),function(Ee){var xe=Ee.ref,ye=Ee.placerProps,Le=ye.placement,Ae=ye.maxHeight;return w.createElement(l,Je({},y,we,{innerRef:xe,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:C,placement:Le}),w.createElement(h8e,{captureEnabled:b,onTopArrive:ae,onBottomArrive:ee,lockEnabled:Y},function(it){return w.createElement(c,Je({},y,{innerRef:function(nt){i.getMenuListRef(nt),it(nt)},isLoading:C,maxHeight:Ae,focusedOption:m}),ue)}))});return z||F==="fixed"?w.createElement(f,Je({},y,{appendTo:z,controlElement:this.controlRef,menuPlacement:M,menuPosition:F}),Ce):Ce}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,c=a.name,f=a.required,h=this.state.selectValue;if(f&&!this.hasValue()&&!s)return w.createElement(g8e,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(o){var p=h.map(function(m){return i.getOptionValue(m)}).join(o);return w.createElement("input",{name:c,type:"hidden",value:p})}else{var v=h.length>0?h.map(function(m,_){return w.createElement("input",{key:"i-".concat(_),name:c,type:"hidden",value:i.getOptionValue(m)})}):w.createElement("input",{name:c,type:"hidden",value:""});return w.createElement("div",null,v)}else{var y=h[0]?this.getOptionValue(h[0]):"";return w.createElement("input",{name:c,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,c=a.isFocused,f=a.selectValue,h=this.getFocusableOptions();return w.createElement(n8e,Je({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:c,selectValue:f,focusableOptions:h}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,c=this.props,f=c.className,h=c.id,p=c.isDisabled,v=c.menuIsOpen,y=this.state.isFocused,m=this.commonProps=this.getCommonProps();return w.createElement(s,Je({},m,{className:f,innerProps:{id:h,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:y}),this.renderLiveRegion(),w.createElement(a,Je({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:y,menuIsOpen:v}),w.createElement(l,Je({},m,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(o,Je({},m,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,c=a.ariaSelection,f=a.isFocused,h=a.prevWasFocused,p=i.options,v=i.value,y=i.menuIsOpen,m=i.inputValue,_=i.isMulti,b=kR(v),S={};if(o&&(v!==o.value||p!==o.options||y!==o.menuIsOpen||m!==o.inputValue)){var C=y?P8e(i,b):[],E=s?O8e(a,b):null,R=R8e(a,C);S={selectValue:b,focusedOption:R,focusedValue:E,clearFocusValueOnUpdate:!1}}var A=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},I=c,M=f&&h;return f&&!M&&(I={value:W0(_,b,b[0]||null),options:b,action:"initial-input-focus"},M=!h),(c==null?void 0:c.action)==="initial-input-focus"&&(I=null),ot(ot(ot({},S),A),{},{prevProps:i,ariaSelection:I,prevWasFocused:M})}}]),n}(w.Component);rB.defaultProps=T8e;var I8e=w.forwardRef(function(e,t){var n=a4e(e);return w.createElement(rB,Je({ref:t},n))}),L8e=I8e,M8e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];function KC(){return KC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KC.apply(this,arguments)}function D8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var N8e=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=D8e(t,M8e);return KC({},n)},F8e=function(t){var n=typeof t=="string";return n&&["sm","md","lg"].includes(t)},$8e=function(t){return F8e(t)?t:t==="xs"?"sm":t==="xl"?"lg":"md"},Io=function(t){var n=ol(),r=$8e(n.components.Input.defaultProps.size),i=t??r,a=khe(typeof i=="string"?[i]:i,{fallback:"md"})||r;return a};function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lh.apply(this,arguments)}var z8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.isDisabled,s=t.isRtl,l=t.hasValue,c=t.selectProps.chakraStyles,f=lh({position:"relative",direction:s?"rtl":void 0},o?{cursor:"not-allowed"}:{}),h=c!=null&&c.container?c.container(f,t):f;return ve.createElement($e,lh({},a,{className:i({"--is-disabled":o,"--is-rtl":s,"--has-value":l},r),sx:h}),n)},j8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.isMulti,o=t.hasValue,s=t.innerProps,l=t.selectProps,c=l.chakraStyles,f=l.size,h=l.variant,p=l.focusBorderColor,v=l.errorBorderColor,y=l.controlShouldRenderValue,m=Io(f),_=Pr("Input",{size:m,variant:h,focusBorderColor:p,errorBorderColor:v}),b={display:a&&o&&y?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:_.field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},S=c!=null&&c.valueContainer?c.valueContainer(b,t):b;return ve.createElement($e,lh({},s,{className:i({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":o},r),sx:S}),n)},B8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps.chakraStyles,s={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},l=o!=null&&o.indicatorsContainer?o.indicatorsContainer(s,t):s;return ve.createElement($e,lh({},a,{className:i({indicators:!0},r),sx:l}),n)},V8e=["height","h"];function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Po.apply(this,arguments)}function U8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var H8e=function(t){var n=t.className,r=t.cx,i=t.children,a=t.innerRef,o=t.innerProps,s=t.isDisabled,l=t.isFocused,c=t.menuIsOpen,f=t.selectProps,h=f.chakraStyles,p=f.size,v=f.variant,y=f.focusBorderColor,m=f.errorBorderColor,_=f.isInvalid,b=f.isReadOnly,S=Io(p),C=Pr("Input",{size:S,variant:v,focusBorderColor:y,errorBorderColor:m}),E=C.field,R=E.height,A=E.h,I=U8e(E,V8e),M=R||A,F=Po({},I,{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:M},s?{pointerEvents:"none"}:{}),z=h!=null&&h.control?h.control(F,t):F;return ve.createElement($e,Po({ref:a,className:r({control:!0,"control--is-disabled":s,"control--is-focused":l,"control--menu-is-open":c},n),sx:z},o,{"data-focus":l?!0:void 0,"data-focus-visible":l?!0:void 0,"data-invalid":_?!0:void 0,"data-disabled":s?!0:void 0,"aria-readonly":b?!0:void 0}),i)},W8e=function(t){var n=t.className,r=t.cx,i=t.selectProps,a=i.chakraStyles,o=i.useBasicStyles,s=i.variant,l=Po({opacity:1},o||s!=="outline"?{display:"none"}:{}),c=a!=null&&a.indicatorSeparator?a.indicatorSeparator(l,t):l;return ve.createElement(nF,{className:r({"indicator-separator":!0},n),sx:c,orientation:"vertical"})},q8e=function(t){return ve.createElement(Wt,t,ve.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},G8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps,s=o.chakraStyles,l=o.useBasicStyles,c=o.size,f=o.focusBorderColor,h=o.errorBorderColor,p=o.variant,v=Io(c),y=Pr("Input",{size:v,variant:p,focusBorderColor:f,errorBorderColor:h}),m={sm:"16px",md:"20px",lg:"24px"},_=m[v],b=Po({},y.addon,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:_},l&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}),S=s!=null&&s.dropdownIndicator?s.dropdownIndicator(b,t):b,C={height:"1em",width:"1em"},E=s!=null&&s.downChevron?s.downChevron(C,t):C;return ve.createElement($e,Po({},a,{className:i({indicator:!0,"dropdown-indicator":!0},r),sx:S}),n||ve.createElement(q8e,{sx:E}))},K8e=function(t){return ve.createElement(Wt,Po({focusable:"false","aria-hidden":!0},t),ve.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},Y8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps,s=o.chakraStyles,l=o.size,c=Io(l),f=Xa("CloseButton",{size:c}),h=Po({},f,{marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"}),p=s!=null&&s.clearIndicator?s.clearIndicator(h,t):h,v={width:"1em",height:"1em"},y=s!=null&&s.crossIcon?s.crossIcon(v,t):v;return ve.createElement($e,Po({role:"button",className:i({indicator:!0,"clear-indicator":!0},r),sx:p,"aria-label":"Clear selected options"},a),n||ve.createElement(K8e,{sx:y}))},Z8e=function(t){var n=t.className,r=t.cx,i=t.innerProps,a=t.selectProps,o=a.chakraStyles,s=a.size,l=t.color,c=t.emptyColor,f=t.speed,h=t.thickness,p=t.spinnerSize,v=Io(s),y={sm:"xs",md:"sm",lg:"md"},m=y[v],_={marginRight:3},b=o!=null&&o.loadingIndicator?o.loadingIndicator(_,t):_;return ve.createElement(Dg,Po({className:r({indicator:!0,"loading-indicator":!0},n),sx:b},i,{size:p||m,color:l,emptyColor:c,speed:f,thickness:h}))};const Q8e=H8e;var X8e=["innerRef","isDisabled","isHidden","inputClassName"];function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vm.apply(this,arguments)}function J8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var eEe=function(t){var n=t.className,r=t.cx,i=t.value,a=t.selectProps,o=a.chakraStyles,s=a.isReadOnly,l=a.isRequired,c=N8e(t),f=c.innerRef,h=c.isDisabled,p=c.isHidden,v=c.inputClassName,y=J8e(c,X8e),m={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:h?"hidden":"visible",transform:i?"translateZ(0)":"",_after:vm({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0},m)},b=o!=null&&o.inputContainer?o.inputContainer(_,t):_,S=vm({background:0,opacity:p?0:1,width:"100%"},m),C=o!=null&&o.input?o.input(S,t):S;return ve.createElement($e,{className:r({"input-container":!0},n),"data-value":i||"",sx:b},ve.createElement(je.input,vm({className:r({input:!0},v),ref:f,sx:C,disabled:h,readOnly:s?!0:void 0,"aria-readonly":s?!0:void 0,"aria-required":l?!0:void 0},y)))};const tEe=eEe;function _a(){return _a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_a.apply(this,arguments)}var nEe=function(t){var n={bottom:"top",top:"bottom"};return t?n[t]:"top"},rEe=function(t){var n,r=t.className,i=t.cx,a=t.children,o=t.innerProps,s=t.innerRef,l=t.placement,c=t.selectProps.chakraStyles,f=(n={position:"absolute"},n[nEe(l)]="100%",n.marginY="8px",n.width="100%",n.zIndex=1,n),h=c!=null&&c.menu?c.menu(f,t):f;return ve.createElement(vF,null,ve.createElement($e,_a({},o,{ref:s,className:i({menu:!0},r),sx:h}),a))};const iEe=rEe;var aEe=function(t){var n,r=t.className,i=t.cx,a=t.innerRef,o=t.children,s=t.maxHeight,l=t.isMulti,c=t.innerProps,f=t.selectProps,h=f.chakraStyles,p=f.size,v=f.variant,y=f.focusBorderColor,m=f.errorBorderColor,_=Pr("Menu"),b=Io(p),S=Pr("Input",{size:b,variant:v,focusBorderColor:y,errorBorderColor:m}),C=S.field,E=_a({},_.list,{minW:"100%",maxHeight:s+"px",overflowY:"auto","--input-border-radius":C==null?void 0:C["--input-border-radius"],borderRadius:(C==null?void 0:C.borderRadius)||((n=_.list)==null?void 0:n.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"}),R=h!=null&&h.menuList?h.menuList(E,t):E;return ve.createElement($e,_a({},c,{className:i({"menu-list":!0,"menu-list--is-multi":l},r),sx:R,ref:a}),o)},oEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps,s=o.chakraStyles,l=o.size,c=Io(l),f={sm:"6px",md:"8px",lg:"10px"},h={color:"chakra-subtle-text",textAlign:"center",paddingY:f[c],fontSize:c},p=s!=null&&s.loadingMessage?s.loadingMessage(h,t):h;return ve.createElement($e,_a({},a,{className:i({"menu-notice":!0,"menu-notice--loading":!0},r),sx:p}),n)},sEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps,s=o.chakraStyles,l=o.size,c=Io(l),f={sm:"6px",md:"8px",lg:"10px"},h={color:"chakra-subtle-text",textAlign:"center",paddingY:f[c],fontSize:c},p=s!=null&&s.noOptionsMessage?s.noOptionsMessage(h,t):h;return ve.createElement($e,_a({},a,{className:i({"menu-notice":!0,"menu-notice--no-options":!0},r),sx:p}),n)},lEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.theme,o=t.getStyles,s=t.Heading,l=t.headingProps,c=t.label,f=t.selectProps,h=t.innerProps,p=t.getClassNames,v=f.chakraStyles,y=v!=null&&v.group?v.group({},t):{};return ve.createElement($e,_a({},h,{className:i({group:!0},r),sx:y}),ve.createElement(s,_a({},l,{selectProps:f,cx:i,theme:a,getStyles:o,getClassNames:p}),c),ve.createElement($e,null,n))},uEe=function(t){var n=t.cx,r=t.className,i=t.children,a=t.selectProps,o=a.chakraStyles,s=a.size,l=a.hasStickyGroupHeaders,c=Pr("Menu"),f=Io(s),h={sm:"xs",md:"sm",lg:"md"},p={sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"},v=_a({},c.groupTitle,{fontSize:h[f],padding:p[f],margin:0,borderBottomWidth:l?"1px":0,position:l?"sticky":"static",top:-2,bg:c.list.bg,zIndex:1}),y=o!=null&&o.groupHeading?o.groupHeading(v,t):v;return ve.createElement($e,{className:n({"group-heading":!0},r),sx:y},i)},cEe=function(t){return ve.createElement(Tce,_a({viewBox:"0 0 14 14",w:"1em",h:"1em"},t),ve.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},dEe=function(t){var n=t.className,r=t.cx,i=t.innerRef,a=t.innerProps,o=t.children,s=t.isFocused,l=t.isDisabled,c=t.isSelected,f=t.selectProps,h=f.chakraStyles,p=f.size,v=f.isMulti,y=f.hideSelectedOptions,m=f.selectedOptionStyle,_=f.selectedOptionColorScheme,b=Io(p),S=Pr("Menu").item,C={sm:"0.3rem 0.6rem",md:"0.4rem 0.8rem",lg:"0.5rem 1rem"},E=L7(_+".500",_+".300"),R=L7("white","black"),A=m==="check"&&(!v||y===!1),I=m==="color"&&c,M=_a({},S,{display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:b,padding:C[b]},s&&S._focus,I&&{bg:E,color:R,_active:{bg:E}},l&&S._disabled,l&&{_active:{}}),F=h!=null&&h.option?h.option(M,t):M;return ve.createElement($e,_a({},a,{role:"button",className:r({option:!0,"option--is-disabled":l,"option--is-focused":s,"option--is-selected":c},n),sx:F,ref:i,"data-disabled":l?!0:void 0,"aria-disabled":l?!0:void 0}),A&&ve.createElement(yF,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:c?1:0},ve.createElement(cEe,null)),o)};function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(this,arguments)}var fEe=function(t){return typeof t=="object"&&t!==null&&"colorScheme"in t&&typeof t.colorScheme=="string"},hEe=function(t){return typeof t=="object"&&t!==null&&"variant"in t&&typeof t.variant=="string"},iB=function(t){return typeof t=="object"&&t!==null&&"isFixed"in t&&typeof t.isFixed=="boolean"},pEe=function(t){var n=t.children,r=t.className,i=t.components,a=t.cx,o=t.data,s=t.innerProps,l=t.isDisabled,c=t.isFocused,f=t.removeProps,h=t.selectProps,p=t.cropWithEllipsis,v=i.Container,y=i.Label,m=i.Remove,_=h.chakraStyles,b=h.colorScheme,S=h.tagVariant,C=h.size,E=Io(C),R="",A="",I=!1;fEe(o)&&(R=o.colorScheme),hEe(o)&&(A=o.variant),iB(o)&&(I=o.isFixed);var M=Pr("Tag",{size:E,colorScheme:R||b,variant:A||S||(I?"solid":"subtle")}),F=vo({},M.container,{display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"}),z=_!=null&&_.multiValue?_.multiValue(F,t):F,Y=vo({},M.label,{overflow:"hidden",textOverflow:p||p===void 0?"ellipsis":void 0,whiteSpace:"nowrap"}),W=_!=null&&_.multiValueLabel?_.multiValueLabel(Y,t):Y,q=vo({},M.closeButton,{display:"flex",alignItems:"center",justifyContent:"center"}),ae=_!=null&&_.multiValueRemove?_.multiValueRemove(q,t):q;return ve.createElement(v,{data:o,innerProps:vo({className:a({"multi-value":!0,"multi-value--is-disabled":l},r)},s),sx:z,selectProps:h},ve.createElement(y,{data:o,innerProps:{className:a({"multi-value__label":!0},r)},sx:W,selectProps:h},n),ve.createElement(m,{data:o,innerProps:vo({className:a({"multi-value__remove":!0},r),"aria-label":"Remove "+(n||"option")},f),sx:ae,selectProps:h,isFocused:c}))},mEe=function(t){var n=t.children,r=t.innerProps,i=t.sx;return ve.createElement(je.span,vo({},r,{sx:i}),n)},gEe=function(t){var n=t.children,r=t.innerProps,i=t.sx;return ve.createElement(je.span,vo({},r,{sx:i}),n)},vEe=function(t){return ve.createElement(Wt,vo({verticalAlign:"inherit",viewBox:"0 0 512 512"},t),ve.createElement("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}))},yEe=function(t){var n=t.children,r=t.innerProps,i=t.isFocused,a=t.data,o=t.sx;return iB(a)&&a.isFixed?null:ve.createElement($e,vo({},r,{role:"button",sx:o,"data-focus":i?!0:void 0,"data-focus-visible":i?!0:void 0}),n||ve.createElement(vEe,null))};const _Ee=pEe;function YC(){return YC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YC.apply(this,arguments)}var bEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps.chakraStyles,s={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},l=o!=null&&o.placeholder?o.placeholder(s,t):s;return ve.createElement($e,YC({},a,{className:i({placeholder:!0},r),sx:l}),n)};const SEe=bEe;function ZC(){return ZC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZC.apply(this,arguments)}var wEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.isDisabled,o=t.innerProps,s=t.selectProps.chakraStyles,l={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},c=s!=null&&s.singleValue?s.singleValue(l,t):l;return ve.createElement($e,ZC({className:i({"single-value":!0,"single-value--is-disabled":a},r),sx:c},o),n)};const xEe=wEe;var CEe={ClearIndicator:Y8e,Control:Q8e,DropdownIndicator:G8e,Group:lEe,GroupHeading:uEe,IndicatorSeparator:W8e,IndicatorsContainer:B8e,Input:tEe,LoadingIndicator:Z8e,LoadingMessage:oEe,Menu:iEe,MenuList:aEe,MultiValue:_Ee,MultiValueContainer:mEe,MultiValueLabel:gEe,MultiValueRemove:yEe,NoOptionsMessage:sEe,Option:dEe,Placeholder:SEe,SelectContainer:z8e,SingleValue:xEe,ValueContainer:j8e};const xh=CEe;var EEe=["components","theme","size","colorScheme","isDisabled","isInvalid","isReadOnly","isRequired","inputId","tagVariant","selectedOptionStyle","selectedOptionColorScheme","selectedOptionColor","variant","focusBorderColor","errorBorderColor","chakraStyles","onFocus","onBlur","menuIsOpen"];function T_(){return T_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T_.apply(this,arguments)}function kEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var TEe=function(t){var n,r=t.components,i=r===void 0?{}:r;t.theme;var a=t.size,o=t.colorScheme,s=o===void 0?"gray":o,l=t.isDisabled,c=t.isInvalid,f=t.isReadOnly,h=t.isRequired,p=t.inputId,v=t.tagVariant,y=t.selectedOptionStyle,m=y===void 0?"color":y,_=t.selectedOptionColorScheme,b=t.selectedOptionColor,S=t.variant,C=t.focusBorderColor,E=t.errorBorderColor,R=t.chakraStyles,A=R===void 0?{}:R,I=t.onFocus,M=t.onBlur,F=t.menuIsOpen,z=kEe(t,EEe),Y=ol(),W=Y.components.Input.defaultProps.variant,q=Ede({id:p,isDisabled:l,isInvalid:c,isRequired:h,isReadOnly:f,onFocus:I,onBlur:M}),ae=F??(q.readOnly?!1:void 0),ee=m,ce=["color","check"];ce.includes(m)||(ee="color");var ue=_||b||"blue";typeof ue!="string"&&(ue="blue");var J=T_({components:T_({},xh,i),colorScheme:s,size:a,tagVariant:v,selectedOptionStyle:ee,selectedOptionColorScheme:ue,variant:S??W,chakraStyles:A,focusBorderColor:C,errorBorderColor:E,onFocus:q.onFocus,onBlur:q.onBlur,isDisabled:q.disabled,isInvalid:!!q["aria-invalid"],inputId:q.id,isReadOnly:q.readOnly,menuIsOpen:ae},z,{"aria-invalid":(n=z["aria-invalid"])!=null?n:q["aria-invalid"]});return J};const PEe=TEe;function QC(){return QC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QC.apply(this,arguments)}var OEe=w.forwardRef(function(e,t){var n=PEe(e);return ve.createElement(L8e,QC({ref:t},n))});const REe=OEe;var VR=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function AEe(e,t){return!!(e===t||VR(e)&&VR(t))}function IEe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!AEe(e[n],t[n]))return!1;return!0}function ux(e,t){t===void 0&&(t=IEe);var n,r=[],i,a=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return a&&n===this&&t(s,r)||(i=e.apply(this,s),a=!0,n=this,r=s),i}return o}var LEe=typeof performance=="object"&&typeof performance.now=="function",UR=LEe?function(){return performance.now()}:function(){return Date.now()};function HR(e){cancelAnimationFrame(e.id)}function MEe(e,t){var n=UR();function r(){UR()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var cx=-1;function WR(e){if(e===void 0&&(e=!1),cx===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),cx=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return cx}var Ad=null;function qR(e){if(e===void 0&&(e=!1),Ad===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ad="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ad="negative":Ad="positive-ascending"),document.body.removeChild(t),Ad}return Ad}var DEe=150,NEe=function(t,n){return t};function FEe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(h){gN(p,h);function p(y){var m;return m=h.call(this,y)||this,m._instanceProps=l(m.props,mC(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:mC(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=ux(function(_,b,S,C){return m.props.onItemsRendered({overscanStartIndex:_,overscanStopIndex:b,visibleStartIndex:S,visibleStopIndex:C})}),m._callOnScroll=void 0,m._callOnScroll=ux(function(_,b,S){return m.props.onScroll({scrollDirection:_,scrollOffset:b,scrollUpdateWasRequested:S})}),m._getItemStyle=void 0,m._getItemStyle=function(_){var b=m.props,S=b.direction,C=b.itemSize,E=b.layout,R=m._getItemStyleCache(c&&C,c&&E,c&&S),A;if(R.hasOwnProperty(_))A=R[_];else{var I=n(m.props,_,m._instanceProps),M=i(m.props,_,m._instanceProps),F=S==="horizontal"||E==="horizontal",z=S==="rtl",Y=F?I:0;R[_]=A={position:"absolute",left:z?void 0:Y,right:z?Y:void 0,top:F?0:I,height:F?"100%":M,width:F?M:"100%"}}return A},m._getItemStyleCache=void 0,m._getItemStyleCache=ux(function(_,b,S){return{}}),m._onScrollHorizontal=function(_){var b=_.currentTarget,S=b.clientWidth,C=b.scrollLeft,E=b.scrollWidth;m.setState(function(R){if(R.scrollOffset===C)return null;var A=m.props.direction,I=C;if(A==="rtl")switch(qR()){case"negative":I=-C;break;case"positive-descending":I=E-S-C;break}return I=Math.max(0,Math.min(I,E-S)),{isScrolling:!0,scrollDirection:R.scrollOffset<C?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._onScrollVertical=function(_){var b=_.currentTarget,S=b.clientHeight,C=b.scrollHeight,E=b.scrollTop;m.setState(function(R){if(R.scrollOffset===E)return null;var A=Math.max(0,Math.min(E,C-S));return{isScrolling:!0,scrollDirection:R.scrollOffset<A?"forward":"backward",scrollOffset:A,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._outerRefSetter=function(_){var b=m.props.outerRef;m._outerRef=_,typeof b=="function"?b(_):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=_)},m._resetIsScrollingDebounced=function(){m._resetIsScrollingTimeoutId!==null&&HR(m._resetIsScrollingTimeoutId),m._resetIsScrollingTimeoutId=MEe(m._resetIsScrolling,DEe)},m._resetIsScrolling=function(){m._resetIsScrollingTimeoutId=null,m.setState({isScrolling:!1},function(){m._getItemStyleCache(-1,null)})},m}p.getDerivedStateFromProps=function(m,_){return $Ee(m,_),f(m),null};var v=p.prototype;return v.scrollTo=function(m){m=Math.max(0,m),this.setState(function(_){return _.scrollOffset===m?null:{scrollDirection:_.scrollOffset<m?"forward":"backward",scrollOffset:m,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(m,_){_===void 0&&(_="auto");var b=this.props,S=b.itemCount,C=b.layout,E=this.state.scrollOffset;m=Math.max(0,Math.min(m,S-1));var R=0;if(this._outerRef){var A=this._outerRef;C==="vertical"?R=A.scrollWidth>A.clientWidth?WR():0:R=A.scrollHeight>A.clientHeight?WR():0}this.scrollTo(a(this.props,m,_,E,this._instanceProps,R))},v.componentDidMount=function(){var m=this.props,_=m.direction,b=m.initialScrollOffset,S=m.layout;if(typeof b=="number"&&this._outerRef!=null){var C=this._outerRef;_==="horizontal"||S==="horizontal"?C.scrollLeft=b:C.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var m=this.props,_=m.direction,b=m.layout,S=this.state,C=S.scrollOffset,E=S.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var R=this._outerRef;if(_==="horizontal"||b==="horizontal")if(_==="rtl")switch(qR()){case"negative":R.scrollLeft=-C;break;case"positive-ascending":R.scrollLeft=C;break;default:var A=R.clientWidth,I=R.scrollWidth;R.scrollLeft=I-A-C;break}else R.scrollLeft=C;else R.scrollTop=C}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&HR(this._resetIsScrollingTimeoutId)},v.render=function(){var m=this.props,_=m.children,b=m.className,S=m.direction,C=m.height,E=m.innerRef,R=m.innerElementType,A=m.innerTagName,I=m.itemCount,M=m.itemData,F=m.itemKey,z=F===void 0?NEe:F,Y=m.layout,W=m.outerElementType,q=m.outerTagName,ae=m.style,ee=m.useIsScrolling,ce=m.width,ue=this.state.isScrolling,J=S==="horizontal"||Y==="horizontal",me=J?this._onScrollHorizontal:this._onScrollVertical,we=this._getRangeToRender(),Ce=we[0],Ee=we[1],xe=[];if(I>0)for(var ye=Ce;ye<=Ee;ye++)xe.push(w.createElement(_,{data:M,key:z(ye,M),index:ye,isScrolling:ee?ue:void 0,style:this._getItemStyle(ye)}));var Le=r(this.props,this._instanceProps);return w.createElement(W||q||"div",{className:b,onScroll:me,ref:this._outerRefSetter,style:Je({position:"relative",height:C,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:S},ae)},w.createElement(R||A||"div",{children:xe,ref:E,style:{height:J?"100%":Le,pointerEvents:ue?"none":void 0,width:J?Le:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var m=this.props.itemCount;if(m>0){var _=this._getRangeToRender(),b=_[0],S=_[1],C=_[2],E=_[3];this._callOnItemsRendered(b,S,C,E)}}if(typeof this.props.onScroll=="function"){var R=this.state,A=R.scrollDirection,I=R.scrollOffset,M=R.scrollUpdateWasRequested;this._callOnScroll(A,I,M)}},v._getRangeToRender=function(){var m=this.props,_=m.itemCount,b=m.overscanCount,S=this.state,C=S.isScrolling,E=S.scrollDirection,R=S.scrollOffset;if(_===0)return[0,0,0,0];var A=o(this.props,R,this._instanceProps),I=s(this.props,A,R,this._instanceProps),M=!C||E==="backward"?Math.max(1,b):1,F=!C||E==="forward"?Math.max(1,b):1;return[Math.max(0,A-M),Math.max(0,Math.min(_-1,I+F)),A,I]},p}(w.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var $Ee=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},zEe=FEe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,i,a,o){var s=t.direction,l=t.height,c=t.itemCount,f=t.itemSize,h=t.layout,p=t.width,v=s==="horizontal"||h==="horizontal",y=v?p:l,m=Math.max(0,c*f-y),_=Math.min(m,n*f),b=Math.max(0,n*f-y+f+o);switch(r==="smart"&&(i>=b-y&&i<=_+y?r="auto":r="center"),r){case"start":return _;case"end":return b;case"center":{var S=Math.round(b+(_-b)/2);return S<Math.ceil(y/2)?0:S>m+Math.floor(y/2)?m:S}case"auto":default:return i>=b&&i<=_?i:i<b?b:_}},getStartIndexForOffset:function(t,n){var r=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(t,n,r){var i=t.direction,a=t.height,o=t.itemCount,s=t.itemSize,l=t.layout,c=t.width,f=i==="horizontal"||l==="horizontal",h=n*s,p=f?c:a,v=Math.ceil((p+r-h)/s);return Math.max(0,Math.min(o-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});const GR={getCurrencies:"getCurrencies",getAllCurrency:"getAllCurrency"},dx=["USD","EUR","JPY","GBP","AUD","CAD","CHF","CNY","HKD","NZD"],aB={getCurrentCurrency:"getCurrentCurrency",getDefaultCurrency:"getDefaultCurrency",getUserDefaultCurrency:"getUserDefaultCurrency",getCurrencyDefaultValue:"getCurrencyDefaultValue"},jEe=()=>Ir({url:"currencies/default",params:{is_default:1}}),BEe=()=>Ir({url:"currencies/all",method:"GET"}),VEe=e=>Ir({url:"currencies",method:"GET",params:e}),My={getUserDefaultCurrency:jEe,getAllCurrency:BEe,getCurrentCurrency:VEe},oB=e=>{const{name:t,label:n,isRequired:r,labelProps:i,error:a,controlProps:o={},optionProps:s={},...l}=e;return T.jsxs(JD,{id:t,isInvalid:a!==void 0,isRequired:r,children:[n&&T.jsx(tN,{htmlFor:t,fontSize:"14px",mb:"4px",fontWeight:400,...i,children:n}),T.jsx(REe,{menuPortalTarget:document.body,styles:{menuPortal:c=>({...c,zIndex:9999})},className:"tc-select",size:e.size,name:t,useBasicStyles:!0,components:e.components,focusBorderColor:"blue.200",chakraStyles:{clearIndicator:c=>({...c,fontSize:"9px"}),dropdownIndicator:(c,{selectProps:f})=>{var h;return{...c,display:!l.isClearable||!f.value||(Gg.isArray(f.value)&&((h=f.value)==null?void 0:h.length))===0?"inherit":"none",cursor:"inherit","> svg":{transition:"0.2s ease-in",transform:`rotate(${f.menuIsOpen?-180:0}deg)`}}},inputContainer:c=>({...c}),valueContainer:c=>({...c,paddingInlineStart:2}),option:(c,{isSelected:f})=>({...c,display:"flex",gap:".625rem",background:f?"#F4FBFF":"initial",paddingLeft:"15px",color:"tc.gray.800",_active:{background:f?"#FFBFF":"initial"},_hover:{background:"gray.50"},"#checkedIcon":{display:f?"block":"none"},"#unCheckedIcon":{display:f?"none":"block"},fontSize:"sm",...s}),input:c=>({...c}),placeholder:c=>({...c,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,fontSize:14}),menuList:c=>({...c,border:"none",boxShadow:"md",borderRadius:"12px",position:"relative"}),control:c=>({...c,bg:"white",borderRadius:".375rem",...o}),menu:c=>({...c})},...l}),T.jsx(eN,{children:a==null?void 0:a.message})]})},XC=5,JC=34,UEe=({children:e,...t})=>{var i,a;const n=Gg.omit(t.innerProps,["onMouseMove","onMouseOver"]),r={...t,innerProps:n};return t.data.isLabel?T.jsx(Ot,{h:"full",display:"flex",alignItems:"center",px:"20px",maxH:`${JC}px`,color:"gray.500",fontSize:"sm",fontWeight:"600",textTransform:"uppercase",borderColor:"gray.200",borderTopWidth:t.data.label!=="Common currency"?"1px":0,children:t.data.label}):T.jsxs(xh.Option,{...r,children:[T.jsx(R6,{hasArrow:!0,label:`Get started with up to ${XC} currencies first. You can add more later.`,isDisabled:(i=t.data)!=null&&i.isDefaultLanguage?!0:!t.isDisabled,children:T.jsx(K4,{isChecked:(a=t.data)!=null&&a.isDefaultLanguage?!0:t.isSelected,borderColor:"none",colorScheme:"blue",pointerEvents:"none",isDisabled:t.isDisabled,isInvalid:!1})}),T.jsx(Ot,{fontSize:"sm",children:e})]})},HEe=e=>e.index>3?T.jsx(T.Fragment,{}):T.jsx(xh.MultiValue,{...e,children:e.index>3-1?`+${e.getValue().length-3}`:e.children}),WEe=e=>{const{options:t,children:n,maxHeight:r=300,getValue:i}=e,a=ve.Children.toArray(n),[o]=i(),s=t.indexOf(o)*JC;return T.jsx($e,{bg:"white",boxShadow:"md",border:"none",borderRadius:"12px",children:T.jsx(zEe,{width:"100%",height:r,itemCount:a.length,itemSize:JC,initialScrollOffset:s,children:({index:l,style:c})=>T.jsx(T.Fragment,{children:T.jsx($e,{style:c,children:a==null?void 0:a[l]})})})})},qEe={Option:UEe,MultiValue:HEe,MenuList:WEe},GEe=({onClickSkip:e})=>{var _;const{control:t,setValue:n}=wh(),i=!!((_=Ao().data)!=null&&_.data.woo_version),{data:a,isFetching:o}=wo({queryKey:[aB.getUserDefaultCurrency],queryFn:()=>My.getUserDefaultCurrency(),staleTime:1/0,enabled:i}),s=a==null?void 0:a.data,{data:l,isFetching:c,isSuccess:f}=wo({queryKey:[GR.getAllCurrency,{mode:"default"}],queryFn:async()=>await My.getAllCurrency(),enabled:i}),{data:h,isSuccess:p}=wo({queryKey:[GR.getAllCurrency,{mode:"current"}],queryFn:()=>My.getCurrentCurrency({per_page:XC,get_total:!0,cursor:""}),enabled:i}),v=w.useMemo(()=>[...(l==null?void 0:l.data)||[],...(h==null?void 0:h.data)||[]],[l==null?void 0:l.data,h==null?void 0:h.data]);w.useEffect(()=>{if(!f||!p)return;const b=(h==null?void 0:h.data.map(S=>S.code))||[];n("codes",b)},[a,f,p]);const y=w.useCallback(()=>{if(!v)return[];const b=S=>(v.filter(E=>(S==="common"?dx.includes(E.code):!dx.includes(E.code))&&E.code!==(s==null?void 0:s.code))||[]).map(E=>({label:`${E.code} - ${E.name||(E==null?void 0:E.settings.name)}`,value:E.code,group:S}))||[];return[{label:"Common currency",value:"commonCurrency",isLabel:!0},{label:`${s==null?void 0:s.code} - ${s==null?void 0:s.settings.name} (Default)`,value:s==null?void 0:s.code,isDefaultLanguage:!0},...b("common"),{label:"Other currency",value:"otherCurrency",isLabel:!0},...b("other")]},[v,s==null?void 0:s.code,s==null?void 0:s.settings.name]),m=w.useCallback(b=>v?v.filter(S=>b.includes(S.code)).map(S=>({label:`${S.code} - ${(S==null?void 0:S.name)||(S==null?void 0:S.settings.name)}`,value:S.code,group:dx.includes(S.code)?"common":"other"}))||[]:[],[v]);return T.jsxs(T.Fragment,{children:[T.jsxs($e,{textAlign:"center",children:[T.jsx(Ot,{lineHeight:"120%",as:"h1",fontSize:"30px",fontWeight:"600",pb:"16px",children:"Next, add target currency"}),T.jsx(Ot,{as:"h2",color:"gray.500",children:T.jsx(x6,{i18nKey:i?" Help buyers go shopping easier with converted currencies.":"This step is for stores installing WooCommerce.<br/>Don’t worry, you can set up later.",components:{"<br/>":T.jsx("br",{})}})})]}),i?T.jsx($e,{w:"full",maxW:"438px",children:T.jsx(fj,{control:t,name:"codes",render:({field:{onChange:b,value:S=[]},fieldState:{error:C}})=>T.jsx(oB,{menuPortalTarget:null,isClearable:!1,maxMenuHeight:300,placeholder:"Select target currency",isLoading:c||o,isDisabled:c||o,isMulti:!0,options:y(),closeMenuOnSelect:!1,hideSelectedOptions:!1,components:qEe,onChange:E=>b(E.map(R=>R.value)),filterOption:Kj({ignoreAccents:!1}),value:m(S||[]),error:C,isOptionDisabled:E=>E.value===(s==null?void 0:s.code)?!0:(S==null?void 0:S.length)>=XC&&!S.includes(E.value)})})}):T.jsx($e,{children:T.jsx(xu,{src:dxe,maxW:"396px"})}),T.jsxs($e,{maxW:"438px",w:"full",children:[T.jsx(Jr,{w:"full",variant:"tc-solid-primary",size:"lg",type:"submit",children:"Continue"}),i&&T.jsx(Jr,{variant:"link",colorScheme:"blue",w:"full",mt:"16px",onClick:e,children:"Skip this step"})]})]})},KEe=e=>Ir({url:"clients/languages",params:e}),YEe=async e=>Ir({url:"clients/current/languages",params:e}),KR={getLanguages:KEe,getCurrentLanguage:YEe},YR={getLanguages:"getLanguages"},ZEe=1,sB=4,QEe=e=>T.jsx($e,{fontSize:"sm",color:"gray.500",borderTopWidth:"1px",borderColor:"gray.200",paddingBottom:"10px",sx:{":first-of-type":{border:0}},children:T.jsx(xh.Group,{...e})}),XEe=e=>{var t,n;return T.jsxs(xh.Option,{...e,children:[T.jsx(R6,{hasArrow:!0,label:`Get started with up to ${sB} languages first. You can add more later.`,isDisabled:(t=e.data)!=null&&t.isDefaultLanguage?!0:!e.isDisabled,children:T.jsx(K4,{isChecked:(n=e.data)!=null&&n.isDefaultLanguage?!0:e.isSelected,borderColor:"none",colorScheme:"blue",pointerEvents:"none",isDisabled:e.isDisabled,isInvalid:!1})}),T.jsx(Ot,{fontSize:"sm",children:e.children})]})},JEe=e=>e.index>3?T.jsx(T.Fragment,{}):T.jsx(xh.MultiValue,{...e,children:e.index>3-1?`+${e.getValue().length-3}`:e.children}),eke={Option:XEe,Group:QEe,MultiValue:JEe},tke=({onClickSkip:e})=>{var h;const{control:t,setValue:n}=wh(),{t:r}=C6(),i=Ao(),a=(h=i.data)==null?void 0:h.data.default_language,{data:o,isFetching:s}=wo({queryKey:[YR.getLanguages,{mode:"default"}],queryFn:async()=>await KR.getLanguages()}),{data:l}=wo({queryKey:[YR.getLanguages,{mode:"current"}],queryFn:async()=>await KR.getCurrentLanguage()});w.useEffect(()=>{const p=(l==null?void 0:l.data.filter(v=>v.type===ZEe).map(v=>v.code))||[];n("basic",p)},[l]);const c=w.useCallback(()=>{if(!(o!=null&&o.data))return[];const p=v=>(o==null?void 0:o.data.filter(y=>y.group===v&&y.code!==(a==null?void 0:a.code)).map(y=>({label:y.name_en,value:y.code,group:v})))||[];return[{label:r("language.create_modal_common_options"),options:[{label:`${a==null?void 0:a.name_en} (Default)`,value:a==null?void 0:a.code,group:"common",isDefaultLanguage:!0},...p("common")]},{label:r("language.create_modal_advanced_options"),options:p("other")}]},[o==null?void 0:o.data,r,a==null?void 0:a.code,a==null?void 0:a.name_en]),f=w.useCallback(p=>o!=null&&o.data?(o==null?void 0:o.data.filter(v=>p.includes(v.code)).map(v=>({label:v.name_en,value:v.code,group:v.group})))||[]:[],[o==null?void 0:o.data]);return T.jsxs(T.Fragment,{children:[T.jsxs($e,{textAlign:"center",children:[T.jsxs(Ot,{lineHeight:"120%",as:"h1",fontSize:"30px",fontWeight:"600",pb:"16px",children:["Welcome to Transcy",T.jsx("br",{}),"To begin, add target language first"]}),T.jsx(Ot,{as:"h2",color:"gray.500",children:"Add target language you want to translate your site into."})]}),T.jsx($e,{w:"full",maxW:"438px",children:T.jsx(fj,{control:t,name:"basic",render:({field:{onChange:p,value:v=[]},fieldState:{error:y}})=>T.jsx(oB,{menuPortalTarget:null,isClearable:!1,maxMenuHeight:300,placeholder:"Select target language",isLoading:s||i.isFetching,isDisabled:s||i.isFetching,isMulti:!0,options:c(),closeMenuOnSelect:!1,hideSelectedOptions:!1,components:eke,onChange:m=>p(m.map(_=>_.value)),value:f(v||[]),error:y,isOptionDisabled:m=>m.value===(a==null?void 0:a.code)?!0:(v==null?void 0:v.length)>=sB&&!(v!=null&&v.includes(m.value))})})}),T.jsxs($e,{maxW:"438px",w:"full",children:[T.jsx(Jr,{w:"full",variant:"tc-solid-primary",size:"lg",type:"submit",children:"Continue"}),T.jsx(Jr,{variant:"link",colorScheme:"blue",w:"full",mt:"16px",onClick:e,children:"Skip this step"})]})]})},nke=({activeStep:e=1,steps:t=[],onClickStep:n})=>{const r=i=>{i<e&&n(i)};return T.jsx(bge,{index:e,gap:"0",transition:"all 0.2s ease-in-out",sx:{"--stepper-accent-color":"var(--chakra-colors-tc-green-600)"},children:t.map((i,a)=>T.jsxs(_ge,{style:{gap:0},onClick:()=>r(a),children:[T.jsxs(Ege,{position:"relative",cursor:a<e?"pointer":"default",transition:"all 0.2s ease-in-out",children:[T.jsx(wge,{complete:T.jsx(Cge,{fill:"white"}),incomplete:T.jsx(m9,{}),active:T.jsx(m9,{})}),T.jsx(Ot,{position:"absolute",top:"100%",pt:"8px",size:"12px",fontWeight:"500",color:e===a?"gray.800":"gray.500",children:i.title})]}),T.jsx(kge,{style:{marginInlineStart:"0",transition:"all 0.2s ease-in-out"}})]},a))})},Dr={TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right"},rke=({isOpen:e,onClose:t,onGoToDashboard:n})=>{const[r,i]=w.useState(!0);return w.useEffect(()=>{e||i(!0)},[e]),T.jsx(T.Fragment,{children:T.jsxs(p6,{isCentered:!0,trapFocus:!1,onClose:t,isOpen:e,scrollBehavior:"outside",motionPreset:"slideInBottom",children:[T.jsx(Rb,{height:"100vh"}),T.jsx(Jr,{position:"fixed",top:"0",zIndex:"calc(var(--chakra-zIndices-modal) + 1)",right:"0",mt:"40px",mr:"32px",variant:"tc-solid-primary",boxShadow:"box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.08), 0px -1px 0px 0px rgba(0, 0, 0, 0.20) inset",rightIcon:T.jsx(Wt,{as:gCe}),onClick:a=>{a.stopPropagation(),n()},children:"Go to dashboard"}),T.jsxs(m6,{minW:"80vw",maxW:"80vw",transition:"0.5s all",position:"fixed",bottom:"0px",borderRadius:"32px 32px 0px 0px",overflow:"hidden",children:[r&&T.jsxs($e,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",w:"50%",zIndex:"10",children:[T.jsx(FF,{size:"sm",flex:"1",value:90,rounded:"full",colorScheme:"green",isIndeterminate:!0}),T.jsx(Ot,{textAlign:"center",fontSize:"sm",pt:"8px",children:"Hold tight, your Switcher is dressing up..."})]}),T.jsx(Ab,{minH:"80vh",p:"0",opacity:r?.5:1,transition:"0.5s all",filter:r?"blur(3px)":"none",children:T.jsx($e,{h:"full",children:T.jsx($e,{as:"iframe",src:ig.transcyUrl,width:"100%",height:"80vh",onLoad:()=>i(!1),onLoadedData:()=>i(!1)})})})]})]})})},ike=()=>{const{isOpen:e,onOpen:t,onClose:n}=WN(),r=Ao(),i=qg(),a=()=>{ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.ONBOARDING.CLICK_EVENT_GO_TO_DASHBOARD}),i({pathname:kr.ROUTES.HOME}),r.refetch()},o=()=>{ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.ONBOARDING.CLICK_EVENT_PREVIEW_SWITCHER}),t()};return T.jsxs(T.Fragment,{children:[T.jsx(hu,{flexDirection:"column",gap:"32px",children:T.jsxs(vh,{gap:"32px",children:[T.jsx(xu,{maxW:"145px",src:hxe}),T.jsxs($e,{textAlign:"center",children:[T.jsx(Ot,{lineHeight:"120%",as:"h1",fontSize:"30px",fontWeight:"600",pb:"16px",children:"Hooray! Your site is fully localized"}),T.jsx(Ot,{as:"h2",color:"gray.500",children:"Switcher is public for everyone, wanna take a look on your site?"})]}),T.jsxs($e,{maxW:"438px",w:"full",children:[T.jsx(Jr,{w:"full",variant:"tc-solid-primary",size:"lg",type:"submit",onClick:o,children:"Preview Switcher on your site"}),T.jsx(Jr,{variant:"link",colorScheme:"blue",w:"full",mt:"16px",onClick:a,children:"Go to dashboard"})]})]})}),T.jsx(rke,{isOpen:e,onClose:n,onGoToDashboard:a})]})},Jb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ch(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function g8(e){return"nodeType"in e}function Ni(e){var t,n;return e?Ch(e)?e:g8(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function v8(e){const{Document:t}=Ni(e);return e instanceof t}function rv(e){return Ch(e)?!1:e instanceof Ni(e).HTMLElement}function ake(e){return e instanceof Ni(e).SVGElement}function Eh(e){return e?Ch(e)?e.document:g8(e)?v8(e)?e:rv(e)?e.ownerDocument:document:document:document}const ds=Jb?w.useLayoutEffect:w.useEffect;function e2(e){const t=w.useRef(e);return ds(()=>{t.current=e}),w.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function oke(){const e=w.useRef(null),t=w.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=w.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function _g(e,t){t===void 0&&(t=[e]);const n=w.useRef(e);return ds(()=>{n.current!==e&&(n.current=e)},t),n}function iv(e,t){const n=w.useRef();return w.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function P_(e){const t=e2(e),n=w.useRef(null),r=w.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function O_(e){const t=w.useRef();return w.useEffect(()=>{t.current=e},[e]),t.current}let fx={};function t2(e,t){return w.useMemo(()=>{if(t)return t;const n=fx[e]==null?0:fx[e]+1;return fx[e]=n,e+"-"+n},[e,t])}function lB(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((a,o)=>{const s=Object.entries(o);for(const[l,c]of s){const f=a[l];f!=null&&(a[l]=f+e*c)}return a},{...t})}}const Lf=lB(1),R_=lB(-1);function ske(e){return"clientX"in e&&"clientY"in e}function y8(e){if(!e)return!1;const{KeyboardEvent:t}=Ni(e.target);return t&&e instanceof t}function lke(e){if(!e)return!1;const{TouchEvent:t}=Ni(e.target);return t&&e instanceof t}function A_(e){if(lke(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ske(e)?{x:e.clientX,y:e.clientY}:null}const uh=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[uh.Translate.toString(e),uh.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),ZR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function uke(e){return e.matches(ZR)?e:e.querySelector(ZR)}const cke={display:"none"};function dke(e){let{id:t,value:n}=e;return ve.createElement("div",{id:t,style:cke},n)}const fke={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function hke(e){let{id:t,announcement:n}=e;return ve.createElement("div",{id:t,style:fke,role:"status","aria-live":"assertive","aria-atomic":!0},n)}function pke(){const[e,t]=w.useState("");return{announce:w.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const uB=w.createContext(null);function mke(e){const t=w.useContext(uB);w.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function gke(){const[e]=w.useState(()=>new Set),t=w.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[w.useCallback(r=>{let{type:i,event:a}=r;e.forEach(o=>{var s;return(s=o[i])==null?void 0:s.call(o,a)})},[e]),t]}const vke={draggable:`
     474`]))),h6e=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return ot({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},ix=function(t){var n=t.delay,r=t.offset;return ut("span",{css:u4({animation:"".concat(f6e," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},p6e=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=sl(t,i6e);return ut("div",Je({},tr(ot(ot({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ut(ix,{delay:0,offset:r}),ut(ix,{delay:160,offset:!0}),ut(ix,{delay:320,offset:!r}))},m6e=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return ot({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},g6e=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return ut("div",Je({ref:a},tr(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o),n)},v6e=g6e,y6e=["data"],_6e=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},b6e=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,f=t.theme,h=t.selectProps;return ut("div",Je({},tr(t,"group",{group:!0}),l),ut(o,Je({},s,{selectProps:h,theme:f,getStyles:i,getClassNames:a,cx:r}),c),ut("div",null,n))},S6e=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return ot({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},w6e=function(t){var n=Dj(t);n.data;var r=sl(n,y6e);return ut("div",Je({},tr(t,"groupHeading",{"group-heading":!0}),r))},x6e=b6e,C6e=["innerRef","isDisabled","isHidden","inputClassName"],E6e=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return ot(ot({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},k6e),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Hj={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},k6e={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ot({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Hj)},T6e=function(t){return ot({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Hj)},P6e=function(t){var n=t.cx,r=t.value,i=Dj(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,c=sl(i,C6e);return ut("div",Je({},tr(t,"input",{"input-container":!0}),{"data-value":r||""}),ut("input",Je({className:n({input:!0},l),ref:a,style:T6e(s),disabled:o},c)))},O6e=P6e,R6e=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return ot({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},A6e=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return ot({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},I6e=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return ot({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Wj=function(t){var n=t.children,r=t.innerProps;return ut("div",r,n)},L6e=Wj,M6e=Wj;function D6e(e){var t=e.children,n=e.innerProps;return ut("div",Je({role:"button"},n),t||ut(m8,{size:14}))}var N6e=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,c=r.Container,f=r.Label,h=r.Remove;return ut(c,{data:i,innerProps:ot(ot({},tr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},ut(f,{data:i,innerProps:ot({},tr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),ut(h,{data:i,innerProps:ot(ot({},tr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},F6e=N6e,$6e=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return ot({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},z6e=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return ut("div",Je({},tr(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},j6e=z6e,B6e=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return ot({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},V6e=function(t){var n=t.children,r=t.innerProps;return ut("div",Je({},tr(t,"placeholder",{placeholder:!0}),r),n)},U6e=V6e,H6e=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return ot({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},W6e=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return ut("div",Je({},tr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},q6e=W6e,G6e={ClearIndicator:u6e,Control:v6e,DropdownIndicator:s6e,DownChevron:Vj,CrossIcon:m8,Group:x6e,GroupHeading:w6e,IndicatorsContainer:n6e,IndicatorSeparator:d6e,Input:O6e,LoadingIndicator:p6e,Menu:V4e,MenuList:H4e,MenuPortal:Z4e,LoadingMessage:K4e,NoOptionsMessage:G4e,MultiValue:F6e,MultiValueContainer:L6e,MultiValueLabel:M6e,MultiValueRemove:D6e,Option:j6e,Placeholder:U6e,SelectContainer:X4e,SingleValue:q6e,ValueContainer:e6e},K6e=function(t){return ot(ot({},G6e),t.components)},RR=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Y6e(e,t){return!!(e===t||RR(e)&&RR(t))}function Z6e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Y6e(e[n],t[n]))return!1;return!0}function Q6e(e,t){t===void 0&&(t=Z6e);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}var X6e={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},J6e=function(t){return ut("span",Je({css:X6e},t))},AR=J6e,e8e={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.isDisabled,a=t.tabSelectsValue,o=t.context;switch(o){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,c=t.isSelected,f=function(y,m){return y&&y.length?"".concat(y.indexOf(m)+1," of ").concat(y.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(f(s,r),".");if(n==="menu"){var h=l?" disabled":"",p="".concat(c?"selected":"focused").concat(h);return"option ".concat(o," ").concat(p,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},t8e=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,f=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,v=l.isMulti,y=l.isOptionDisabled,m=l.isSearchable,_=l.menuIsOpen,b=l.options,S=l.screenReaderStatus,C=l.tabSelectsValue,E=l["aria-label"],R=l["aria-live"],A=w.useMemo(function(){return ot(ot({},e8e),f||{})},[f]),I=w.useMemo(function(){var ae="";if(n&&A.onChange){var ee=n.option,ce=n.options,ue=n.removedValue,J=n.removedValues,me=n.value,we=function(it){return Array.isArray(it)?null:it},Ce=ue||ee||we(me),Ee=Ce?h(Ce):"",xe=ce||J||void 0,ye=xe?xe.map(h):[],Le=ot({isDisabled:Ce&&y(Ce,s),label:Ee,labels:ye},n);ae=A.onChange(Le)}return ae},[n,A,y,s,h]),M=w.useMemo(function(){var ae="",ee=r||i,ce=!!(r&&s&&s.includes(r));if(ee&&A.onFocus){var ue={focused:ee,label:h(ee),isDisabled:y(ee,s),isSelected:ce,options:a,context:ee===r?"menu":"value",selectValue:s};ae=A.onFocus(ue)}return ae},[r,i,h,y,A,a,s]),F=w.useMemo(function(){var ae="";if(_&&b.length&&A.onFilter){var ee=S({count:a.length});ae=A.onFilter({inputValue:p,resultsMessage:ee})}return ae},[a,p,_,A,b,S]),z=w.useMemo(function(){var ae="";if(A.guidance){var ee=i?"value":_?"menu":"input";ae=A.guidance({"aria-label":E,context:ee,isDisabled:r&&y(r,s),isMulti:v,isSearchable:m,tabSelectsValue:C})}return ae},[E,r,i,v,y,m,_,A,s,C]),Y="".concat(M," ").concat(F," ").concat(z),W=ut(w.Fragment,null,ut("span",{id:"aria-selection"},I),ut("span",{id:"aria-context"},Y)),q=(n==null?void 0:n.action)==="initial-input-focus";return ut(w.Fragment,null,ut(AR,{id:c},q&&W),ut(AR,{"aria-live":R,"aria-atomic":"false","aria-relevant":"additions text"},o&&!q&&W))},n8e=t8e,G3=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r8e=new RegExp("["+G3.map(function(e){return e.letters}).join("")+"]","g"),qj={};for(var ax=0;ax<G3.length;ax++)for(var ox=G3[ax],sx=0;sx<ox.letters.length;sx++)qj[ox.letters[sx]]=ox.base;var Gj=function(t){return t.replace(r8e,function(n){return qj[n]})},i8e=Q6e(Gj),IR=function(t){return t.replace(/^\s+|\s+$/g,"")},a8e=function(t){return"".concat(t.label," ").concat(t.value)},Kj=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ot({ignoreCase:!0,ignoreAccents:!0,stringify:a8e,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,c=i.matchFrom,f=l?IR(r):r,h=l?IR(s(n)):s(n);return a&&(f=f.toLowerCase(),h=h.toLowerCase()),o&&(f=i8e(f),h=Gj(h)),c==="start"?h.substr(0,f.length)===f:h.indexOf(f)>-1}},o8e=["innerRef"];function s8e(e){var t=e.innerRef,n=sl(e,o8e),r=M4e(n,"onExited","in","enter","exit","appear");return ut("input",Je({ref:t},r,{css:u4({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var l8e=function(t){t.preventDefault(),t.stopPropagation()};function u8e(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),c=w.useRef(null),f=w.useCallback(function(_,b){if(c.current!==null){var S=c.current,C=S.scrollTop,E=S.scrollHeight,R=S.clientHeight,A=c.current,I=b>0,M=E-R-C,F=!1;M>b&&o.current&&(r&&r(_),o.current=!1),I&&s.current&&(a&&a(_),s.current=!1),I&&b>M?(n&&!o.current&&n(_),A.scrollTop=E,F=!0,o.current=!0):!I&&-b>C&&(i&&!s.current&&i(_),A.scrollTop=0,F=!0,s.current=!0),F&&l8e(_)}},[n,r,i,a]),h=w.useCallback(function(_){f(_,_.deltaY)},[f]),p=w.useCallback(function(_){l.current=_.changedTouches[0].clientY},[]),v=w.useCallback(function(_){var b=l.current-_.changedTouches[0].clientY;f(_,b)},[f]),y=w.useCallback(function(_){if(_){var b=A4e?{passive:!1}:!1;_.addEventListener("wheel",h,b),_.addEventListener("touchstart",p,b),_.addEventListener("touchmove",v,b)}},[v,p,h]),m=w.useCallback(function(_){_&&(_.removeEventListener("wheel",h,!1),_.removeEventListener("touchstart",p,!1),_.removeEventListener("touchmove",v,!1))},[v,p,h]);return w.useEffect(function(){if(t){var _=c.current;return y(_),function(){m(_)}}},[t,y,m]),function(_){c.current=_}}var LR=["boxSizing","height","overflow","paddingRight","position"],MR={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function DR(e){e.preventDefault()}function NR(e){e.stopPropagation()}function FR(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function $R(){return"ontouchstart"in window||navigator.maxTouchPoints}var zR=!!(typeof window<"u"&&window.document&&window.document.createElement),Rp=0,Rd={capture:!1,passive:!1};function c8e(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),a=w.useRef(null),o=w.useCallback(function(l){if(zR){var c=document.body,f=c&&c.style;if(r&&LR.forEach(function(y){var m=f&&f[y];i.current[y]=m}),r&&Rp<1){var h=parseInt(i.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,v=window.innerWidth-p+h||0;Object.keys(MR).forEach(function(y){var m=MR[y];f&&(f[y]=m)}),f&&(f.paddingRight="".concat(v,"px"))}c&&$R()&&(c.addEventListener("touchmove",DR,Rd),l&&(l.addEventListener("touchstart",FR,Rd),l.addEventListener("touchmove",NR,Rd))),Rp+=1}},[r]),s=w.useCallback(function(l){if(zR){var c=document.body,f=c&&c.style;Rp=Math.max(Rp-1,0),r&&Rp<1&&LR.forEach(function(h){var p=i.current[h];f&&(f[h]=p)}),c&&$R()&&(c.removeEventListener("touchmove",DR,Rd),l&&(l.removeEventListener("touchstart",FR,Rd),l.removeEventListener("touchmove",NR,Rd)))}},[r]);return w.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}var d8e=function(){return document.activeElement&&document.activeElement.blur()},f8e={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function h8e(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=u8e({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),f=c8e({isEnabled:n}),h=function(v){c(v),f(v)};return ut(w.Fragment,null,n&&ut("div",{onClick:d8e,css:f8e}),t(h))}var p8e={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},m8e=function(t){var n=t.name,r=t.onFocus;return ut("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:p8e,value:"",onChange:function(){}})},g8e=m8e,v8e=function(t){return t.label},y8e=function(t){return t.label},_8e=function(t){return t.value},b8e=function(t){return!!t.isDisabled},S8e={clearIndicator:l6e,container:Q4e,control:m6e,dropdownIndicator:o6e,group:_6e,groupHeading:S6e,indicatorsContainer:t6e,indicatorSeparator:c6e,input:E6e,loadingIndicator:h6e,loadingMessage:q4e,menu:z4e,menuList:U4e,menuPortal:Y4e,multiValue:R6e,multiValueLabel:A6e,multiValueRemove:I6e,noOptionsMessage:W4e,option:$6e,placeholder:B6e,singleValue:H6e,valueContainer:J4e},w8e={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},x8e=4,Yj=4,C8e=38,E8e=Yj*2,k8e={baseUnit:Yj,controlHeight:C8e,menuGutter:E8e},lx={borderRadius:x8e,colors:w8e,spacing:k8e},T8e={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:PR(),captureMenuScroll:!PR(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Kj(),formatGroupLabel:v8e,getOptionLabel:y8e,getOptionValue:_8e,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:b8e,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!O4e(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function jR(e,t,n,r){var i=Jj(e,t,n),a=eB(e,t,n),o=Xj(e,t),s=k_(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function Zj(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return jR(e,o,t,s)}).filter(function(o){return BR(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=jR(e,n,t,r);return BR(e,a)?a:void 0}).filter(I4e)}function Qj(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Oj(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function P8e(e,t){return Qj(Zj(e,t))}function BR(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!nB(e)||!a)&&tB(e,{label:o,value:s,data:i},r)}function O8e(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function R8e(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Xj=function(t,n){return t.getOptionLabel(n)},k_=function(t,n){return t.getOptionValue(n)};function Jj(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function eB(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=k_(e,t);return n.some(function(i){return k_(e,i)===r})}function tB(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var nB=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},A8e=1,rB=function(e){S2e(n,e);var t=C2e(n);function n(r){var i;if(k$(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(s){i.controlRef=s},i.focusedOptionRef=null,i.getFocusedOptionRef=function(s){i.focusedOptionRef=s},i.menuListRef=null,i.getMenuListRef=function(s){i.menuListRef=s},i.inputRef=null,i.getInputRef=function(s){i.inputRef=s},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(s,l){var c=i.props,f=c.onChange,h=c.name;l.name=h,i.ariaOnChange(s,l),f(s,l)},i.setValue=function(s,l,c){var f=i.props,h=f.closeMenuOnSelect,p=f.isMulti,v=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:v}),h&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(s,{action:l,option:c})},i.selectOption=function(s){var l=i.props,c=l.blurInputOnSelect,f=l.isMulti,h=l.name,p=i.state.selectValue,v=f&&i.isOptionSelected(s,p),y=i.isOptionDisabled(s,p);if(v){var m=i.getOptionValue(s);i.setValue(p.filter(function(_){return i.getOptionValue(_)!==m}),"deselect-option",s)}else if(!y)f?i.setValue([].concat(Oj(p),[s]),"select-option",s):i.setValue(s,"select-option");else{i.ariaOnChange(s,{action:"select-option",option:s,name:h});return}c&&i.blurInput()},i.removeValue=function(s){var l=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(s),h=c.filter(function(v){return i.getOptionValue(v)!==f}),p=W0(l,h,h[0]||null);i.onChange(p,{action:"remove-value",removedValue:s}),i.focusInput()},i.clearValue=function(){var s=i.state.selectValue;i.onChange(W0(i.props.isMulti,[],null),{action:"clear",removedValues:s})},i.popValue=function(){var s=i.props.isMulti,l=i.state.selectValue,c=l[l.length-1],f=l.slice(0,l.length-1),h=W0(s,f,f[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return C4e.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(s){return Xj(i.props,s)},i.getOptionValue=function(s){return k_(i.props,s)},i.getStyles=function(s,l){var c=i.props.unstyled,f=S8e[s](l,c);f.boxSizing="border-box";var h=i.props.styles[s];return h?h(f,l):f},i.getClassNames=function(s,l){var c,f;return(c=(f=i.props.classNames)[s])===null||c===void 0?void 0:c.call(f,l)},i.getElementId=function(s){return"".concat(i.instancePrefix,"-").concat(s)},i.getComponents=function(){return K6e(i.props)},i.buildCategorizedOptions=function(){return Zj(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Qj(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(s,l){i.setState({ariaSelection:ot({value:s},l)})},i.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(s){i.blockOptionHover=!1},i.onControlMouseDown=function(s){if(!s.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},i.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!i.props.isDisabled){var l=i.props,c=l.isMulti,f=l.menuIsOpen;i.focusInput(),f?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),s.preventDefault()}},i.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(i.clearValue(),s.preventDefault(),i.openAfterFocus=!1,s.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(s){typeof i.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Xb(s.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(s)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(s){var l=s.touches,c=l&&l.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(s){var l=s.touches,c=l&&l.item(0);if(c){var f=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),p=5;i.userIsDragging=f>p||h>p}},i.onTouchEnd=function(s){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(s.target)&&i.menuListRef&&!i.menuListRef.contains(s.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(s){i.userIsDragging||i.onControlMouseDown(s)},i.onClearIndicatorTouchEnd=function(s){i.userIsDragging||i.onClearIndicatorMouseDown(s)},i.onDropdownIndicatorTouchEnd=function(s){i.userIsDragging||i.onDropdownIndicatorMouseDown(s)},i.handleInputChange=function(s){var l=i.props.inputValue,c=s.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(s){i.props.onFocus&&i.props.onFocus(s),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(s){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(s),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(s){i.blockOptionHover||i.state.focusedOption===s||i.setState({focusedOption:s})},i.shouldHideSelectedOptions=function(){return nB(i.props)},i.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),i.focus()},i.onKeyDown=function(s){var l=i.props,c=l.isMulti,f=l.backspaceRemovesValue,h=l.escapeClearsValue,p=l.inputValue,v=l.isClearable,y=l.isDisabled,m=l.menuIsOpen,_=l.onKeyDown,b=l.tabSelectsValue,S=l.openMenuOnFocus,C=i.state,E=C.focusedOption,R=C.focusedValue,A=C.selectValue;if(!y&&!(typeof _=="function"&&(_(s),s.defaultPrevented))){switch(i.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||p)return;i.focusValue("previous");break;case"ArrowRight":if(!c||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(R)i.removeValue(R);else{if(!f)return;c?i.popValue():v&&i.clearValue()}break;case"Tab":if(i.isComposing||s.shiftKey||!m||!b||!E||S&&i.isOptionSelected(E,A))return;i.selectOption(E);break;case"Enter":if(s.keyCode===229)break;if(m){if(!E||i.isComposing)return;i.selectOption(E);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):v&&h&&i.clearValue();break;case" ":if(p)return;if(!m){i.openMenu("first");break}if(!E)return;i.selectOption(E);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}s.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++A8e),i.state.selectValue=kR(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.buildFocusableOptions(),o=a.indexOf(i.state.selectValue[0]);i.state.focusedOption=a[o]}return i}return T$(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&TR(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(TR(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.isFocused,c=this.buildFocusableOptions(),f=i==="first"?0:c.length-1;if(!this.props.isMulti){var h=c.indexOf(s[0]);h>-1&&(f=h)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[f]},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var c=o.length-1,f=-1;if(o.length){switch(i){case"previous":l===0?f=0:l===-1?f=c:f=l-1;break;case"next":l>-1&&l<c&&(f=l+1);break}this.setState({inputIsHidden:f!==-1,focusedValue:o[f]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(o);o||(c=-1),i==="up"?l=c>0?c-1:s.length-1:i==="down"?l=(c+1)%s.length:i==="pageup"?(l=c-a,l<0&&(l=0)):i==="pagedown"?(l=c+a,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(lx):ot(ot({},lx),this.props.theme):lx}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,f=this.setValue,h=this.props,p=h.isMulti,v=h.isRtl,y=h.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:p,isRtl:v,options:y,selectOption:c,selectProps:h,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return Jj(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return eB(this.props,i,a)}},{key:"filterOption",value:function(i,a){return tB(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,c=i.tabIndex,f=i.form,h=i.menuIsOpen,p=i.required,v=this.getComponents(),y=v.Input,m=this.state,_=m.inputIsHidden,b=m.ariaSelection,S=this.commonProps,C=s||this.getElementId("input"),E=ot(ot(ot({"aria-autocomplete":"list","aria-expanded":h,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox"},h&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?w.createElement(y,Je({},S,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:a,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:f,type:"text",value:l},E)):w.createElement(s8e,Je({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:C_,onFocus:this.onInputFocus,disabled:a,tabIndex:c,inputMode:"none",form:f,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,c=a.MultiValueRemove,f=a.SingleValue,h=a.Placeholder,p=this.commonProps,v=this.props,y=v.controlShouldRenderValue,m=v.isDisabled,_=v.isMulti,b=v.inputValue,S=v.placeholder,C=this.state,E=C.selectValue,R=C.focusedValue,A=C.isFocused;if(!this.hasValue()||!y)return b?null:w.createElement(h,Je({},p,{key:"placeholder",isDisabled:m,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),S);if(_)return E.map(function(M,F){var z=M===R,Y="".concat(i.getOptionLabel(M),"-").concat(i.getOptionValue(M));return w.createElement(o,Je({},p,{components:{Container:s,Label:l,Remove:c},isFocused:z,isDisabled:m,key:Y,index:F,removeProps:{onClick:function(){return i.removeValue(M)},onTouchEnd:function(){return i.removeValue(M)},onMouseDown:function(q){q.preventDefault()}},data:M}),i.formatOptionLabel(M,"value"))});if(b)return null;var I=E[0];return w.createElement(f,Je({},p,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,f=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||c)return null;var h={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(a,Je({},o,{innerProps:h,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,f=this.state.isFocused;if(!a||!c)return null;var h={"aria-hidden":"true"};return w.createElement(a,Je({},o,{innerProps:h,isDisabled:l,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return w.createElement(o,Je({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(a,Je({},o,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,c=a.MenuList,f=a.MenuPortal,h=a.LoadingMessage,p=a.NoOptionsMessage,v=a.Option,y=this.commonProps,m=this.state.focusedOption,_=this.props,b=_.captureMenuScroll,S=_.inputValue,C=_.isLoading,E=_.loadingMessage,R=_.minMenuHeight,A=_.maxMenuHeight,I=_.menuIsOpen,M=_.menuPlacement,F=_.menuPosition,z=_.menuPortalTarget,Y=_.menuShouldBlockScroll,W=_.menuShouldScrollIntoView,q=_.noOptionsMessage,ae=_.onMenuScrollToTop,ee=_.onMenuScrollToBottom;if(!I)return null;var ce=function(xe,ye){var Le=xe.type,Ae=xe.data,it=xe.isDisabled,Ye=xe.isSelected,nt=xe.label,wt=xe.value,Dt=m===Ae,Nt=it?void 0:function(){return i.onOptionHover(Ae)},Sn=it?void 0:function(){return i.selectOption(Ae)},Yt="".concat(i.getElementId("option"),"-").concat(ye),Te={id:Yt,onClick:Sn,onMouseMove:Nt,onMouseOver:Nt,tabIndex:-1};return w.createElement(v,Je({},y,{innerProps:Te,data:Ae,isDisabled:it,isSelected:Ye,key:Yt,label:nt,type:Le,value:wt,isFocused:Dt,innerRef:Dt?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(xe.data,"menu"))},ue;if(this.hasOptions())ue=this.getCategorizedOptions().map(function(Ee){if(Ee.type==="group"){var xe=Ee.data,ye=Ee.options,Le=Ee.index,Ae="".concat(i.getElementId("group"),"-").concat(Le),it="".concat(Ae,"-heading");return w.createElement(o,Je({},y,{key:Ae,data:xe,options:ye,Heading:s,headingProps:{id:it,data:Ee.data},label:i.formatGroupLabel(Ee.data)}),Ee.options.map(function(Ye){return ce(Ye,"".concat(Le,"-").concat(Ye.index))}))}else if(Ee.type==="option")return ce(Ee,"".concat(Ee.index))});else if(C){var J=E({inputValue:S});if(J===null)return null;ue=w.createElement(h,y,J)}else{var me=q({inputValue:S});if(me===null)return null;ue=w.createElement(p,y,me)}var we={minMenuHeight:R,maxMenuHeight:A,menuPlacement:M,menuPosition:F,menuShouldScrollIntoView:W},Ce=w.createElement(j4e,Je({},y,we),function(Ee){var xe=Ee.ref,ye=Ee.placerProps,Le=ye.placement,Ae=ye.maxHeight;return w.createElement(l,Je({},y,we,{innerRef:xe,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:C,placement:Le}),w.createElement(h8e,{captureEnabled:b,onTopArrive:ae,onBottomArrive:ee,lockEnabled:Y},function(it){return w.createElement(c,Je({},y,{innerRef:function(nt){i.getMenuListRef(nt),it(nt)},isLoading:C,maxHeight:Ae,focusedOption:m}),ue)}))});return z||F==="fixed"?w.createElement(f,Je({},y,{appendTo:z,controlElement:this.controlRef,menuPlacement:M,menuPosition:F}),Ce):Ce}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,c=a.name,f=a.required,h=this.state.selectValue;if(f&&!this.hasValue()&&!s)return w.createElement(g8e,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(o){var p=h.map(function(m){return i.getOptionValue(m)}).join(o);return w.createElement("input",{name:c,type:"hidden",value:p})}else{var v=h.length>0?h.map(function(m,_){return w.createElement("input",{key:"i-".concat(_),name:c,type:"hidden",value:i.getOptionValue(m)})}):w.createElement("input",{name:c,type:"hidden",value:""});return w.createElement("div",null,v)}else{var y=h[0]?this.getOptionValue(h[0]):"";return w.createElement("input",{name:c,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,c=a.isFocused,f=a.selectValue,h=this.getFocusableOptions();return w.createElement(n8e,Je({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:c,selectValue:f,focusableOptions:h}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,c=this.props,f=c.className,h=c.id,p=c.isDisabled,v=c.menuIsOpen,y=this.state.isFocused,m=this.commonProps=this.getCommonProps();return w.createElement(s,Je({},m,{className:f,innerProps:{id:h,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:y}),this.renderLiveRegion(),w.createElement(a,Je({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:y,menuIsOpen:v}),w.createElement(l,Je({},m,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(o,Je({},m,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,c=a.ariaSelection,f=a.isFocused,h=a.prevWasFocused,p=i.options,v=i.value,y=i.menuIsOpen,m=i.inputValue,_=i.isMulti,b=kR(v),S={};if(o&&(v!==o.value||p!==o.options||y!==o.menuIsOpen||m!==o.inputValue)){var C=y?P8e(i,b):[],E=s?O8e(a,b):null,R=R8e(a,C);S={selectValue:b,focusedOption:R,focusedValue:E,clearFocusValueOnUpdate:!1}}var A=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},I=c,M=f&&h;return f&&!M&&(I={value:W0(_,b,b[0]||null),options:b,action:"initial-input-focus"},M=!h),(c==null?void 0:c.action)==="initial-input-focus"&&(I=null),ot(ot(ot({},S),A),{},{prevProps:i,ariaSelection:I,prevWasFocused:M})}}]),n}(w.Component);rB.defaultProps=T8e;var I8e=w.forwardRef(function(e,t){var n=a4e(e);return w.createElement(rB,Je({ref:t},n))}),L8e=I8e,M8e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];function K3(){return K3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K3.apply(this,arguments)}function D8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var N8e=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=D8e(t,M8e);return K3({},n)},F8e=function(t){var n=typeof t=="string";return n&&["sm","md","lg"].includes(t)},$8e=function(t){return F8e(t)?t:t==="xs"?"sm":t==="xl"?"lg":"md"},Io=function(t){var n=ol(),r=$8e(n.components.Input.defaultProps.size),i=t??r,a=khe(typeof i=="string"?[i]:i,{fallback:"md"})||r;return a};function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lh.apply(this,arguments)}var z8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.isDisabled,s=t.isRtl,l=t.hasValue,c=t.selectProps.chakraStyles,f=lh({position:"relative",direction:s?"rtl":void 0},o?{cursor:"not-allowed"}:{}),h=c!=null&&c.container?c.container(f,t):f;return ve.createElement($e,lh({},a,{className:i({"--is-disabled":o,"--is-rtl":s,"--has-value":l},r),sx:h}),n)},j8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.isMulti,o=t.hasValue,s=t.innerProps,l=t.selectProps,c=l.chakraStyles,f=l.size,h=l.variant,p=l.focusBorderColor,v=l.errorBorderColor,y=l.controlShouldRenderValue,m=Io(f),_=Pr("Input",{size:m,variant:h,focusBorderColor:p,errorBorderColor:v}),b={display:a&&o&&y?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:_.field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},S=c!=null&&c.valueContainer?c.valueContainer(b,t):b;return ve.createElement($e,lh({},s,{className:i({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":o},r),sx:S}),n)},B8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps.chakraStyles,s={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},l=o!=null&&o.indicatorsContainer?o.indicatorsContainer(s,t):s;return ve.createElement($e,lh({},a,{className:i({indicators:!0},r),sx:l}),n)},V8e=["height","h"];function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Po.apply(this,arguments)}function U8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var H8e=function(t){var n=t.className,r=t.cx,i=t.children,a=t.innerRef,o=t.innerProps,s=t.isDisabled,l=t.isFocused,c=t.menuIsOpen,f=t.selectProps,h=f.chakraStyles,p=f.size,v=f.variant,y=f.focusBorderColor,m=f.errorBorderColor,_=f.isInvalid,b=f.isReadOnly,S=Io(p),C=Pr("Input",{size:S,variant:v,focusBorderColor:y,errorBorderColor:m}),E=C.field,R=E.height,A=E.h,I=U8e(E,V8e),M=R||A,F=Po({},I,{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:M},s?{pointerEvents:"none"}:{}),z=h!=null&&h.control?h.control(F,t):F;return ve.createElement($e,Po({ref:a,className:r({control:!0,"control--is-disabled":s,"control--is-focused":l,"control--menu-is-open":c},n),sx:z},o,{"data-focus":l?!0:void 0,"data-focus-visible":l?!0:void 0,"data-invalid":_?!0:void 0,"data-disabled":s?!0:void 0,"aria-readonly":b?!0:void 0}),i)},W8e=function(t){var n=t.className,r=t.cx,i=t.selectProps,a=i.chakraStyles,o=i.useBasicStyles,s=i.variant,l=Po({opacity:1},o||s!=="outline"?{display:"none"}:{}),c=a!=null&&a.indicatorSeparator?a.indicatorSeparator(l,t):l;return ve.createElement(nF,{className:r({"indicator-separator":!0},n),sx:c,orientation:"vertical"})},q8e=function(t){return ve.createElement(Wt,t,ve.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},G8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps,s=o.chakraStyles,l=o.useBasicStyles,c=o.size,f=o.focusBorderColor,h=o.errorBorderColor,p=o.variant,v=Io(c),y=Pr("Input",{size:v,variant:p,focusBorderColor:f,errorBorderColor:h}),m={sm:"16px",md:"20px",lg:"24px"},_=m[v],b=Po({},y.addon,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:_},l&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}),S=s!=null&&s.dropdownIndicator?s.dropdownIndicator(b,t):b,C={height:"1em",width:"1em"},E=s!=null&&s.downChevron?s.downChevron(C,t):C;return ve.createElement($e,Po({},a,{className:i({indicator:!0,"dropdown-indicator":!0},r),sx:S}),n||ve.createElement(q8e,{sx:E}))},K8e=function(t){return ve.createElement(Wt,Po({focusable:"false","aria-hidden":!0},t),ve.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},Y8e=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps,s=o.chakraStyles,l=o.size,c=Io(l),f=Xa("CloseButton",{size:c}),h=Po({},f,{marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"}),p=s!=null&&s.clearIndicator?s.clearIndicator(h,t):h,v={width:"1em",height:"1em"},y=s!=null&&s.crossIcon?s.crossIcon(v,t):v;return ve.createElement($e,Po({role:"button",className:i({indicator:!0,"clear-indicator":!0},r),sx:p,"aria-label":"Clear selected options"},a),n||ve.createElement(K8e,{sx:y}))},Z8e=function(t){var n=t.className,r=t.cx,i=t.innerProps,a=t.selectProps,o=a.chakraStyles,s=a.size,l=t.color,c=t.emptyColor,f=t.speed,h=t.thickness,p=t.spinnerSize,v=Io(s),y={sm:"xs",md:"sm",lg:"md"},m=y[v],_={marginRight:3},b=o!=null&&o.loadingIndicator?o.loadingIndicator(_,t):_;return ve.createElement(Dg,Po({className:r({indicator:!0,"loading-indicator":!0},n),sx:b},i,{size:p||m,color:l,emptyColor:c,speed:f,thickness:h}))};const Q8e=H8e;var X8e=["innerRef","isDisabled","isHidden","inputClassName"];function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vm.apply(this,arguments)}function J8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var eEe=function(t){var n=t.className,r=t.cx,i=t.value,a=t.selectProps,o=a.chakraStyles,s=a.isReadOnly,l=a.isRequired,c=N8e(t),f=c.innerRef,h=c.isDisabled,p=c.isHidden,v=c.inputClassName,y=J8e(c,X8e),m={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:h?"hidden":"visible",transform:i?"translateZ(0)":"",_after:vm({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0},m)},b=o!=null&&o.inputContainer?o.inputContainer(_,t):_,S=vm({background:0,opacity:p?0:1,width:"100%"},m),C=o!=null&&o.input?o.input(S,t):S;return ve.createElement($e,{className:r({"input-container":!0},n),"data-value":i||"",sx:b},ve.createElement(je.input,vm({className:r({input:!0},v),ref:f,sx:C,disabled:h,readOnly:s?!0:void 0,"aria-readonly":s?!0:void 0,"aria-required":l?!0:void 0},y)))};const tEe=eEe;function _a(){return _a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_a.apply(this,arguments)}var nEe=function(t){var n={bottom:"top",top:"bottom"};return t?n[t]:"top"},rEe=function(t){var n,r=t.className,i=t.cx,a=t.children,o=t.innerProps,s=t.innerRef,l=t.placement,c=t.selectProps.chakraStyles,f=(n={position:"absolute"},n[nEe(l)]="100%",n.marginY="8px",n.width="100%",n.zIndex=1,n),h=c!=null&&c.menu?c.menu(f,t):f;return ve.createElement(vF,null,ve.createElement($e,_a({},o,{ref:s,className:i({menu:!0},r),sx:h}),a))};const iEe=rEe;var aEe=function(t){var n,r=t.className,i=t.cx,a=t.innerRef,o=t.children,s=t.maxHeight,l=t.isMulti,c=t.innerProps,f=t.selectProps,h=f.chakraStyles,p=f.size,v=f.variant,y=f.focusBorderColor,m=f.errorBorderColor,_=Pr("Menu"),b=Io(p),S=Pr("Input",{size:b,variant:v,focusBorderColor:y,errorBorderColor:m}),C=S.field,E=_a({},_.list,{minW:"100%",maxHeight:s+"px",overflowY:"auto","--input-border-radius":C==null?void 0:C["--input-border-radius"],borderRadius:(C==null?void 0:C.borderRadius)||((n=_.list)==null?void 0:n.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"}),R=h!=null&&h.menuList?h.menuList(E,t):E;return ve.createElement($e,_a({},c,{className:i({"menu-list":!0,"menu-list--is-multi":l},r),sx:R,ref:a}),o)},oEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps,s=o.chakraStyles,l=o.size,c=Io(l),f={sm:"6px",md:"8px",lg:"10px"},h={color:"chakra-subtle-text",textAlign:"center",paddingY:f[c],fontSize:c},p=s!=null&&s.loadingMessage?s.loadingMessage(h,t):h;return ve.createElement($e,_a({},a,{className:i({"menu-notice":!0,"menu-notice--loading":!0},r),sx:p}),n)},sEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps,s=o.chakraStyles,l=o.size,c=Io(l),f={sm:"6px",md:"8px",lg:"10px"},h={color:"chakra-subtle-text",textAlign:"center",paddingY:f[c],fontSize:c},p=s!=null&&s.noOptionsMessage?s.noOptionsMessage(h,t):h;return ve.createElement($e,_a({},a,{className:i({"menu-notice":!0,"menu-notice--no-options":!0},r),sx:p}),n)},lEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.theme,o=t.getStyles,s=t.Heading,l=t.headingProps,c=t.label,f=t.selectProps,h=t.innerProps,p=t.getClassNames,v=f.chakraStyles,y=v!=null&&v.group?v.group({},t):{};return ve.createElement($e,_a({},h,{className:i({group:!0},r),sx:y}),ve.createElement(s,_a({},l,{selectProps:f,cx:i,theme:a,getStyles:o,getClassNames:p}),c),ve.createElement($e,null,n))},uEe=function(t){var n=t.cx,r=t.className,i=t.children,a=t.selectProps,o=a.chakraStyles,s=a.size,l=a.hasStickyGroupHeaders,c=Pr("Menu"),f=Io(s),h={sm:"xs",md:"sm",lg:"md"},p={sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"},v=_a({},c.groupTitle,{fontSize:h[f],padding:p[f],margin:0,borderBottomWidth:l?"1px":0,position:l?"sticky":"static",top:-2,bg:c.list.bg,zIndex:1}),y=o!=null&&o.groupHeading?o.groupHeading(v,t):v;return ve.createElement($e,{className:n({"group-heading":!0},r),sx:y},i)},cEe=function(t){return ve.createElement(Tce,_a({viewBox:"0 0 14 14",w:"1em",h:"1em"},t),ve.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},dEe=function(t){var n=t.className,r=t.cx,i=t.innerRef,a=t.innerProps,o=t.children,s=t.isFocused,l=t.isDisabled,c=t.isSelected,f=t.selectProps,h=f.chakraStyles,p=f.size,v=f.isMulti,y=f.hideSelectedOptions,m=f.selectedOptionStyle,_=f.selectedOptionColorScheme,b=Io(p),S=Pr("Menu").item,C={sm:"0.3rem 0.6rem",md:"0.4rem 0.8rem",lg:"0.5rem 1rem"},E=L7(_+".500",_+".300"),R=L7("white","black"),A=m==="check"&&(!v||y===!1),I=m==="color"&&c,M=_a({},S,{display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:b,padding:C[b]},s&&S._focus,I&&{bg:E,color:R,_active:{bg:E}},l&&S._disabled,l&&{_active:{}}),F=h!=null&&h.option?h.option(M,t):M;return ve.createElement($e,_a({},a,{role:"button",className:r({option:!0,"option--is-disabled":l,"option--is-focused":s,"option--is-selected":c},n),sx:F,ref:i,"data-disabled":l?!0:void 0,"aria-disabled":l?!0:void 0}),A&&ve.createElement(yF,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:c?1:0},ve.createElement(cEe,null)),o)};function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(this,arguments)}var fEe=function(t){return typeof t=="object"&&t!==null&&"colorScheme"in t&&typeof t.colorScheme=="string"},hEe=function(t){return typeof t=="object"&&t!==null&&"variant"in t&&typeof t.variant=="string"},iB=function(t){return typeof t=="object"&&t!==null&&"isFixed"in t&&typeof t.isFixed=="boolean"},pEe=function(t){var n=t.children,r=t.className,i=t.components,a=t.cx,o=t.data,s=t.innerProps,l=t.isDisabled,c=t.isFocused,f=t.removeProps,h=t.selectProps,p=t.cropWithEllipsis,v=i.Container,y=i.Label,m=i.Remove,_=h.chakraStyles,b=h.colorScheme,S=h.tagVariant,C=h.size,E=Io(C),R="",A="",I=!1;fEe(o)&&(R=o.colorScheme),hEe(o)&&(A=o.variant),iB(o)&&(I=o.isFixed);var M=Pr("Tag",{size:E,colorScheme:R||b,variant:A||S||(I?"solid":"subtle")}),F=vo({},M.container,{display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"}),z=_!=null&&_.multiValue?_.multiValue(F,t):F,Y=vo({},M.label,{overflow:"hidden",textOverflow:p||p===void 0?"ellipsis":void 0,whiteSpace:"nowrap"}),W=_!=null&&_.multiValueLabel?_.multiValueLabel(Y,t):Y,q=vo({},M.closeButton,{display:"flex",alignItems:"center",justifyContent:"center"}),ae=_!=null&&_.multiValueRemove?_.multiValueRemove(q,t):q;return ve.createElement(v,{data:o,innerProps:vo({className:a({"multi-value":!0,"multi-value--is-disabled":l},r)},s),sx:z,selectProps:h},ve.createElement(y,{data:o,innerProps:{className:a({"multi-value__label":!0},r)},sx:W,selectProps:h},n),ve.createElement(m,{data:o,innerProps:vo({className:a({"multi-value__remove":!0},r),"aria-label":"Remove "+(n||"option")},f),sx:ae,selectProps:h,isFocused:c}))},mEe=function(t){var n=t.children,r=t.innerProps,i=t.sx;return ve.createElement(je.span,vo({},r,{sx:i}),n)},gEe=function(t){var n=t.children,r=t.innerProps,i=t.sx;return ve.createElement(je.span,vo({},r,{sx:i}),n)},vEe=function(t){return ve.createElement(Wt,vo({verticalAlign:"inherit",viewBox:"0 0 512 512"},t),ve.createElement("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}))},yEe=function(t){var n=t.children,r=t.innerProps,i=t.isFocused,a=t.data,o=t.sx;return iB(a)&&a.isFixed?null:ve.createElement($e,vo({},r,{role:"button",sx:o,"data-focus":i?!0:void 0,"data-focus-visible":i?!0:void 0}),n||ve.createElement(vEe,null))};const _Ee=pEe;function Y3(){return Y3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y3.apply(this,arguments)}var bEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.innerProps,o=t.selectProps.chakraStyles,s={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},l=o!=null&&o.placeholder?o.placeholder(s,t):s;return ve.createElement($e,Y3({},a,{className:i({placeholder:!0},r),sx:l}),n)};const SEe=bEe;function Z3(){return Z3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z3.apply(this,arguments)}var wEe=function(t){var n=t.children,r=t.className,i=t.cx,a=t.isDisabled,o=t.innerProps,s=t.selectProps.chakraStyles,l={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},c=s!=null&&s.singleValue?s.singleValue(l,t):l;return ve.createElement($e,Z3({className:i({"single-value":!0,"single-value--is-disabled":a},r),sx:c},o),n)};const xEe=wEe;var CEe={ClearIndicator:Y8e,Control:Q8e,DropdownIndicator:G8e,Group:lEe,GroupHeading:uEe,IndicatorSeparator:W8e,IndicatorsContainer:B8e,Input:tEe,LoadingIndicator:Z8e,LoadingMessage:oEe,Menu:iEe,MenuList:aEe,MultiValue:_Ee,MultiValueContainer:mEe,MultiValueLabel:gEe,MultiValueRemove:yEe,NoOptionsMessage:sEe,Option:dEe,Placeholder:SEe,SelectContainer:z8e,SingleValue:xEe,ValueContainer:j8e};const xh=CEe;var EEe=["components","theme","size","colorScheme","isDisabled","isInvalid","isReadOnly","isRequired","inputId","tagVariant","selectedOptionStyle","selectedOptionColorScheme","selectedOptionColor","variant","focusBorderColor","errorBorderColor","chakraStyles","onFocus","onBlur","menuIsOpen"];function T_(){return T_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T_.apply(this,arguments)}function kEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var TEe=function(t){var n,r=t.components,i=r===void 0?{}:r;t.theme;var a=t.size,o=t.colorScheme,s=o===void 0?"gray":o,l=t.isDisabled,c=t.isInvalid,f=t.isReadOnly,h=t.isRequired,p=t.inputId,v=t.tagVariant,y=t.selectedOptionStyle,m=y===void 0?"color":y,_=t.selectedOptionColorScheme,b=t.selectedOptionColor,S=t.variant,C=t.focusBorderColor,E=t.errorBorderColor,R=t.chakraStyles,A=R===void 0?{}:R,I=t.onFocus,M=t.onBlur,F=t.menuIsOpen,z=kEe(t,EEe),Y=ol(),W=Y.components.Input.defaultProps.variant,q=Ede({id:p,isDisabled:l,isInvalid:c,isRequired:h,isReadOnly:f,onFocus:I,onBlur:M}),ae=F??(q.readOnly?!1:void 0),ee=m,ce=["color","check"];ce.includes(m)||(ee="color");var ue=_||b||"blue";typeof ue!="string"&&(ue="blue");var J=T_({components:T_({},xh,i),colorScheme:s,size:a,tagVariant:v,selectedOptionStyle:ee,selectedOptionColorScheme:ue,variant:S??W,chakraStyles:A,focusBorderColor:C,errorBorderColor:E,onFocus:q.onFocus,onBlur:q.onBlur,isDisabled:q.disabled,isInvalid:!!q["aria-invalid"],inputId:q.id,isReadOnly:q.readOnly,menuIsOpen:ae},z,{"aria-invalid":(n=z["aria-invalid"])!=null?n:q["aria-invalid"]});return J};const PEe=TEe;function Q3(){return Q3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q3.apply(this,arguments)}var OEe=w.forwardRef(function(e,t){var n=PEe(e);return ve.createElement(L8e,Q3({ref:t},n))});const REe=OEe;var VR=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function AEe(e,t){return!!(e===t||VR(e)&&VR(t))}function IEe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!AEe(e[n],t[n]))return!1;return!0}function ux(e,t){t===void 0&&(t=IEe);var n,r=[],i,a=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return a&&n===this&&t(s,r)||(i=e.apply(this,s),a=!0,n=this,r=s),i}return o}var LEe=typeof performance=="object"&&typeof performance.now=="function",UR=LEe?function(){return performance.now()}:function(){return Date.now()};function HR(e){cancelAnimationFrame(e.id)}function MEe(e,t){var n=UR();function r(){UR()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var cx=-1;function WR(e){if(e===void 0&&(e=!1),cx===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),cx=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return cx}var Ad=null;function qR(e){if(e===void 0&&(e=!1),Ad===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ad="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ad="negative":Ad="positive-ascending"),document.body.removeChild(t),Ad}return Ad}var DEe=150,NEe=function(t,n){return t};function FEe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(h){gN(p,h);function p(y){var m;return m=h.call(this,y)||this,m._instanceProps=l(m.props,m3(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:m3(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=ux(function(_,b,S,C){return m.props.onItemsRendered({overscanStartIndex:_,overscanStopIndex:b,visibleStartIndex:S,visibleStopIndex:C})}),m._callOnScroll=void 0,m._callOnScroll=ux(function(_,b,S){return m.props.onScroll({scrollDirection:_,scrollOffset:b,scrollUpdateWasRequested:S})}),m._getItemStyle=void 0,m._getItemStyle=function(_){var b=m.props,S=b.direction,C=b.itemSize,E=b.layout,R=m._getItemStyleCache(c&&C,c&&E,c&&S),A;if(R.hasOwnProperty(_))A=R[_];else{var I=n(m.props,_,m._instanceProps),M=i(m.props,_,m._instanceProps),F=S==="horizontal"||E==="horizontal",z=S==="rtl",Y=F?I:0;R[_]=A={position:"absolute",left:z?void 0:Y,right:z?Y:void 0,top:F?0:I,height:F?"100%":M,width:F?M:"100%"}}return A},m._getItemStyleCache=void 0,m._getItemStyleCache=ux(function(_,b,S){return{}}),m._onScrollHorizontal=function(_){var b=_.currentTarget,S=b.clientWidth,C=b.scrollLeft,E=b.scrollWidth;m.setState(function(R){if(R.scrollOffset===C)return null;var A=m.props.direction,I=C;if(A==="rtl")switch(qR()){case"negative":I=-C;break;case"positive-descending":I=E-S-C;break}return I=Math.max(0,Math.min(I,E-S)),{isScrolling:!0,scrollDirection:R.scrollOffset<C?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._onScrollVertical=function(_){var b=_.currentTarget,S=b.clientHeight,C=b.scrollHeight,E=b.scrollTop;m.setState(function(R){if(R.scrollOffset===E)return null;var A=Math.max(0,Math.min(E,C-S));return{isScrolling:!0,scrollDirection:R.scrollOffset<A?"forward":"backward",scrollOffset:A,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._outerRefSetter=function(_){var b=m.props.outerRef;m._outerRef=_,typeof b=="function"?b(_):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=_)},m._resetIsScrollingDebounced=function(){m._resetIsScrollingTimeoutId!==null&&HR(m._resetIsScrollingTimeoutId),m._resetIsScrollingTimeoutId=MEe(m._resetIsScrolling,DEe)},m._resetIsScrolling=function(){m._resetIsScrollingTimeoutId=null,m.setState({isScrolling:!1},function(){m._getItemStyleCache(-1,null)})},m}p.getDerivedStateFromProps=function(m,_){return $Ee(m,_),f(m),null};var v=p.prototype;return v.scrollTo=function(m){m=Math.max(0,m),this.setState(function(_){return _.scrollOffset===m?null:{scrollDirection:_.scrollOffset<m?"forward":"backward",scrollOffset:m,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(m,_){_===void 0&&(_="auto");var b=this.props,S=b.itemCount,C=b.layout,E=this.state.scrollOffset;m=Math.max(0,Math.min(m,S-1));var R=0;if(this._outerRef){var A=this._outerRef;C==="vertical"?R=A.scrollWidth>A.clientWidth?WR():0:R=A.scrollHeight>A.clientHeight?WR():0}this.scrollTo(a(this.props,m,_,E,this._instanceProps,R))},v.componentDidMount=function(){var m=this.props,_=m.direction,b=m.initialScrollOffset,S=m.layout;if(typeof b=="number"&&this._outerRef!=null){var C=this._outerRef;_==="horizontal"||S==="horizontal"?C.scrollLeft=b:C.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var m=this.props,_=m.direction,b=m.layout,S=this.state,C=S.scrollOffset,E=S.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var R=this._outerRef;if(_==="horizontal"||b==="horizontal")if(_==="rtl")switch(qR()){case"negative":R.scrollLeft=-C;break;case"positive-ascending":R.scrollLeft=C;break;default:var A=R.clientWidth,I=R.scrollWidth;R.scrollLeft=I-A-C;break}else R.scrollLeft=C;else R.scrollTop=C}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&HR(this._resetIsScrollingTimeoutId)},v.render=function(){var m=this.props,_=m.children,b=m.className,S=m.direction,C=m.height,E=m.innerRef,R=m.innerElementType,A=m.innerTagName,I=m.itemCount,M=m.itemData,F=m.itemKey,z=F===void 0?NEe:F,Y=m.layout,W=m.outerElementType,q=m.outerTagName,ae=m.style,ee=m.useIsScrolling,ce=m.width,ue=this.state.isScrolling,J=S==="horizontal"||Y==="horizontal",me=J?this._onScrollHorizontal:this._onScrollVertical,we=this._getRangeToRender(),Ce=we[0],Ee=we[1],xe=[];if(I>0)for(var ye=Ce;ye<=Ee;ye++)xe.push(w.createElement(_,{data:M,key:z(ye,M),index:ye,isScrolling:ee?ue:void 0,style:this._getItemStyle(ye)}));var Le=r(this.props,this._instanceProps);return w.createElement(W||q||"div",{className:b,onScroll:me,ref:this._outerRefSetter,style:Je({position:"relative",height:C,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:S},ae)},w.createElement(R||A||"div",{children:xe,ref:E,style:{height:J?"100%":Le,pointerEvents:ue?"none":void 0,width:J?Le:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var m=this.props.itemCount;if(m>0){var _=this._getRangeToRender(),b=_[0],S=_[1],C=_[2],E=_[3];this._callOnItemsRendered(b,S,C,E)}}if(typeof this.props.onScroll=="function"){var R=this.state,A=R.scrollDirection,I=R.scrollOffset,M=R.scrollUpdateWasRequested;this._callOnScroll(A,I,M)}},v._getRangeToRender=function(){var m=this.props,_=m.itemCount,b=m.overscanCount,S=this.state,C=S.isScrolling,E=S.scrollDirection,R=S.scrollOffset;if(_===0)return[0,0,0,0];var A=o(this.props,R,this._instanceProps),I=s(this.props,A,R,this._instanceProps),M=!C||E==="backward"?Math.max(1,b):1,F=!C||E==="forward"?Math.max(1,b):1;return[Math.max(0,A-M),Math.max(0,Math.min(_-1,I+F)),A,I]},p}(w.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var $Ee=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},zEe=FEe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,i,a,o){var s=t.direction,l=t.height,c=t.itemCount,f=t.itemSize,h=t.layout,p=t.width,v=s==="horizontal"||h==="horizontal",y=v?p:l,m=Math.max(0,c*f-y),_=Math.min(m,n*f),b=Math.max(0,n*f-y+f+o);switch(r==="smart"&&(i>=b-y&&i<=_+y?r="auto":r="center"),r){case"start":return _;case"end":return b;case"center":{var S=Math.round(b+(_-b)/2);return S<Math.ceil(y/2)?0:S>m+Math.floor(y/2)?m:S}case"auto":default:return i>=b&&i<=_?i:i<b?b:_}},getStartIndexForOffset:function(t,n){var r=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(t,n,r){var i=t.direction,a=t.height,o=t.itemCount,s=t.itemSize,l=t.layout,c=t.width,f=i==="horizontal"||l==="horizontal",h=n*s,p=f?c:a,v=Math.ceil((p+r-h)/s);return Math.max(0,Math.min(o-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});const GR={getCurrencies:"getCurrencies",getAllCurrency:"getAllCurrency"},dx=["USD","EUR","JPY","GBP","AUD","CAD","CHF","CNY","HKD","NZD"],aB={getCurrentCurrency:"getCurrentCurrency",getDefaultCurrency:"getDefaultCurrency",getUserDefaultCurrency:"getUserDefaultCurrency",getCurrencyDefaultValue:"getCurrencyDefaultValue"},jEe=()=>Ir({url:"currencies/default",params:{is_default:1}}),BEe=()=>Ir({url:"currencies/all",method:"GET"}),VEe=e=>Ir({url:"currencies",method:"GET",params:e}),My={getUserDefaultCurrency:jEe,getAllCurrency:BEe,getCurrentCurrency:VEe},oB=e=>{const{name:t,label:n,isRequired:r,labelProps:i,error:a,controlProps:o={},optionProps:s={},...l}=e;return T.jsxs(JD,{id:t,isInvalid:a!==void 0,isRequired:r,children:[n&&T.jsx(tN,{htmlFor:t,fontSize:"14px",mb:"4px",fontWeight:400,...i,children:n}),T.jsx(REe,{menuPortalTarget:document.body,styles:{menuPortal:c=>({...c,zIndex:9999})},className:"tc-select",size:e.size,name:t,useBasicStyles:!0,components:e.components,focusBorderColor:"blue.200",chakraStyles:{clearIndicator:c=>({...c,fontSize:"9px"}),dropdownIndicator:(c,{selectProps:f})=>{var h;return{...c,display:!l.isClearable||!f.value||(Gg.isArray(f.value)&&((h=f.value)==null?void 0:h.length))===0?"inherit":"none",cursor:"inherit","> svg":{transition:"0.2s ease-in",transform:`rotate(${f.menuIsOpen?-180:0}deg)`}}},inputContainer:c=>({...c}),valueContainer:c=>({...c,paddingInlineStart:2}),option:(c,{isSelected:f})=>({...c,display:"flex",gap:".625rem",background:f?"#F4FBFF":"initial",paddingLeft:"15px",color:"tc.gray.800",_active:{background:f?"#FFBFF":"initial"},_hover:{background:"gray.50"},"#checkedIcon":{display:f?"block":"none"},"#unCheckedIcon":{display:f?"none":"block"},fontSize:"sm",...s}),input:c=>({...c}),placeholder:c=>({...c,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,fontSize:14}),menuList:c=>({...c,border:"none",boxShadow:"md",borderRadius:"12px",position:"relative"}),control:c=>({...c,bg:"white",borderRadius:".375rem",...o}),menu:c=>({...c})},...l}),T.jsx(eN,{children:a==null?void 0:a.message})]})},X3=5,J3=34,UEe=({children:e,...t})=>{var i,a;const n=Gg.omit(t.innerProps,["onMouseMove","onMouseOver"]),r={...t,innerProps:n};return t.data.isLabel?T.jsx(Ot,{h:"full",display:"flex",alignItems:"center",px:"20px",maxH:`${J3}px`,color:"gray.500",fontSize:"sm",fontWeight:"600",textTransform:"uppercase",borderColor:"gray.200",borderTopWidth:t.data.label!=="Common currency"?"1px":0,children:t.data.label}):T.jsxs(xh.Option,{...r,children:[T.jsx(R6,{hasArrow:!0,label:`Get started with up to ${X3} currencies first. You can add more later.`,isDisabled:(i=t.data)!=null&&i.isDefaultLanguage?!0:!t.isDisabled,children:T.jsx(K4,{isChecked:(a=t.data)!=null&&a.isDefaultLanguage?!0:t.isSelected,borderColor:"none",colorScheme:"blue",pointerEvents:"none",isDisabled:t.isDisabled,isInvalid:!1})}),T.jsx(Ot,{fontSize:"sm",children:e})]})},HEe=e=>e.index>3?T.jsx(T.Fragment,{}):T.jsx(xh.MultiValue,{...e,children:e.index>3-1?`+${e.getValue().length-3}`:e.children}),WEe=e=>{const{options:t,children:n,maxHeight:r=300,getValue:i}=e,a=ve.Children.toArray(n),[o]=i(),s=t.indexOf(o)*J3;return T.jsx($e,{bg:"white",boxShadow:"md",border:"none",borderRadius:"12px",children:T.jsx(zEe,{width:"100%",height:r,itemCount:a.length,itemSize:J3,initialScrollOffset:s,children:({index:l,style:c})=>T.jsx(T.Fragment,{children:T.jsx($e,{style:c,children:a==null?void 0:a[l]})})})})},qEe={Option:UEe,MultiValue:HEe,MenuList:WEe},GEe=({onClickSkip:e})=>{var _;const{control:t,setValue:n}=wh(),i=!!((_=Ao().data)!=null&&_.data.woo_version),{data:a,isFetching:o}=wo({queryKey:[aB.getUserDefaultCurrency],queryFn:()=>My.getUserDefaultCurrency(),staleTime:1/0,enabled:i}),s=a==null?void 0:a.data,{data:l,isFetching:c,isSuccess:f}=wo({queryKey:[GR.getAllCurrency,{mode:"default"}],queryFn:async()=>await My.getAllCurrency(),enabled:i}),{data:h,isSuccess:p}=wo({queryKey:[GR.getAllCurrency,{mode:"current"}],queryFn:()=>My.getCurrentCurrency({per_page:X3,get_total:!0,cursor:""}),enabled:i}),v=w.useMemo(()=>[...(l==null?void 0:l.data)||[],...(h==null?void 0:h.data)||[]],[l==null?void 0:l.data,h==null?void 0:h.data]);w.useEffect(()=>{if(!f||!p)return;const b=(h==null?void 0:h.data.map(S=>S.code))||[];n("codes",b)},[a,f,p]);const y=w.useCallback(()=>{if(!v)return[];const b=S=>(v.filter(E=>(S==="common"?dx.includes(E.code):!dx.includes(E.code))&&E.code!==(s==null?void 0:s.code))||[]).map(E=>({label:`${E.code} - ${E.name||(E==null?void 0:E.settings.name)}`,value:E.code,group:S}))||[];return[{label:"Common currency",value:"commonCurrency",isLabel:!0},{label:`${s==null?void 0:s.code} - ${s==null?void 0:s.settings.name} (Default)`,value:s==null?void 0:s.code,isDefaultLanguage:!0},...b("common"),{label:"Other currency",value:"otherCurrency",isLabel:!0},...b("other")]},[v,s==null?void 0:s.code,s==null?void 0:s.settings.name]),m=w.useCallback(b=>v?v.filter(S=>b.includes(S.code)).map(S=>({label:`${S.code} - ${(S==null?void 0:S.name)||(S==null?void 0:S.settings.name)}`,value:S.code,group:dx.includes(S.code)?"common":"other"}))||[]:[],[v]);return T.jsxs(T.Fragment,{children:[T.jsxs($e,{textAlign:"center",children:[T.jsx(Ot,{lineHeight:"120%",as:"h1",fontSize:"30px",fontWeight:"600",pb:"16px",children:"Next, add target currency"}),T.jsx(Ot,{as:"h2",color:"gray.500",children:T.jsx(x6,{i18nKey:i?" Help buyers go shopping easier with converted currencies.":"This step is for stores installing WooCommerce.<br/>Don’t worry, you can set up later.",components:{"<br/>":T.jsx("br",{})}})})]}),i?T.jsx($e,{w:"full",maxW:"438px",children:T.jsx(fj,{control:t,name:"codes",render:({field:{onChange:b,value:S=[]},fieldState:{error:C}})=>T.jsx(oB,{menuPortalTarget:null,isClearable:!1,maxMenuHeight:300,placeholder:"Select target currency",isLoading:c||o,isDisabled:c||o,isMulti:!0,options:y(),closeMenuOnSelect:!1,hideSelectedOptions:!1,components:qEe,onChange:E=>b(E.map(R=>R.value)),filterOption:Kj({ignoreAccents:!1}),value:m(S||[]),error:C,isOptionDisabled:E=>E.value===(s==null?void 0:s.code)?!0:(S==null?void 0:S.length)>=X3&&!S.includes(E.value)})})}):T.jsx($e,{children:T.jsx(xu,{src:dxe,maxW:"396px"})}),T.jsxs($e,{maxW:"438px",w:"full",children:[T.jsx(Jr,{w:"full",variant:"tc-solid-primary",size:"lg",type:"submit",children:"Continue"}),i&&T.jsx(Jr,{variant:"link",colorScheme:"blue",w:"full",mt:"16px",fontWeight:500,onClick:e,children:"Set up later"})]})]})},KEe=e=>Ir({url:"clients/languages",params:e}),YEe=async e=>Ir({url:"clients/current/languages",params:e}),KR={getLanguages:KEe,getCurrentLanguage:YEe},YR={getLanguages:"getLanguages"},ZEe=1,sB=4,QEe=e=>T.jsx($e,{fontSize:"sm",color:"gray.500",borderTopWidth:"1px",borderColor:"gray.200",paddingBottom:"10px",sx:{":first-of-type":{border:0}},children:T.jsx(xh.Group,{...e})}),XEe=e=>{var t,n;return T.jsxs(xh.Option,{...e,children:[T.jsx(R6,{hasArrow:!0,label:`Get started with up to ${sB} languages first. You can add more later.`,isDisabled:(t=e.data)!=null&&t.isDefaultLanguage?!0:!e.isDisabled,children:T.jsx(K4,{isChecked:(n=e.data)!=null&&n.isDefaultLanguage?!0:e.isSelected,borderColor:"none",colorScheme:"blue",pointerEvents:"none",isDisabled:e.isDisabled,isInvalid:!1})}),T.jsx(Ot,{fontSize:"sm",children:e.children})]})},JEe=e=>e.index>3?T.jsx(T.Fragment,{}):T.jsx(xh.MultiValue,{...e,children:e.index>3-1?`+${e.getValue().length-3}`:e.children}),eke={Option:XEe,Group:QEe,MultiValue:JEe},tke=({onClickSkip:e})=>{var h;const{control:t,setValue:n}=wh(),{t:r}=C6(),i=Ao(),a=(h=i.data)==null?void 0:h.data.default_language,{data:o,isFetching:s}=wo({queryKey:[YR.getLanguages,{mode:"default"}],queryFn:async()=>await KR.getLanguages()}),{data:l}=wo({queryKey:[YR.getLanguages,{mode:"current"}],queryFn:async()=>await KR.getCurrentLanguage()});w.useEffect(()=>{const p=(l==null?void 0:l.data.filter(v=>v.type===ZEe).map(v=>v.code))||[];n("basic",p)},[l]);const c=w.useCallback(()=>{if(!(o!=null&&o.data))return[];const p=v=>(o==null?void 0:o.data.filter(y=>y.group===v&&y.code!==(a==null?void 0:a.code)).map(y=>({label:y.name_en,value:y.code,group:v})))||[];return[{label:r("language.create_modal_common_options"),options:[{label:`${a==null?void 0:a.name_en} (Default)`,value:a==null?void 0:a.code,group:"common",isDefaultLanguage:!0},...p("common")]},{label:r("language.create_modal_advanced_options"),options:p("other")}]},[o==null?void 0:o.data,r,a==null?void 0:a.code,a==null?void 0:a.name_en]),f=w.useCallback(p=>o!=null&&o.data?(o==null?void 0:o.data.filter(v=>p.includes(v.code)).map(v=>({label:v.name_en,value:v.code,group:v.group})))||[]:[],[o==null?void 0:o.data]);return T.jsxs(T.Fragment,{children:[T.jsxs($e,{textAlign:"center",children:[T.jsxs(Ot,{lineHeight:"120%",as:"h1",fontSize:"30px",fontWeight:"600",pb:"16px",children:["Welcome to Transcy",T.jsx("br",{}),"To begin, add target language first"]}),T.jsx(Ot,{as:"h2",color:"gray.500",children:"Add target language you want to translate your site into."})]}),T.jsx($e,{w:"full",maxW:"438px",children:T.jsx(fj,{control:t,name:"basic",render:({field:{onChange:p,value:v=[]},fieldState:{error:y}})=>T.jsx(oB,{menuPortalTarget:null,isClearable:!1,maxMenuHeight:300,placeholder:"Select target language",isLoading:s||i.isFetching,isDisabled:s||i.isFetching,isMulti:!0,options:c(),closeMenuOnSelect:!1,hideSelectedOptions:!1,components:eke,onChange:m=>p(m.map(_=>_.value)),value:f(v||[]),error:y,isOptionDisabled:m=>m.value===(a==null?void 0:a.code)?!0:(v==null?void 0:v.length)>=sB&&!(v!=null&&v.includes(m.value))})})}),T.jsxs($e,{maxW:"438px",w:"full",children:[T.jsx(Jr,{w:"full",variant:"tc-solid-primary",size:"lg",type:"submit",children:"Continue"}),T.jsx(Jr,{variant:"link",colorScheme:"blue",w:"full",mt:"16px",fontWeight:500,onClick:e,children:"Set up later"})]})]})},nke=({activeStep:e=1,steps:t=[],onClickStep:n})=>{const r=i=>{i<e&&n(i)};return T.jsx(bge,{index:e,gap:"0",transition:"all 0.2s ease-in-out",sx:{"--stepper-accent-color":"var(--chakra-colors-tc-green-600)"},children:t.map((i,a)=>T.jsxs(_ge,{style:{gap:0},onClick:()=>r(a),children:[T.jsxs(Ege,{position:"relative",cursor:a<e?"pointer":"default",transition:"all 0.2s ease-in-out",children:[T.jsx(wge,{complete:T.jsx(Cge,{fill:"white"}),incomplete:T.jsx(m9,{}),active:T.jsx(m9,{})}),T.jsx(Ot,{position:"absolute",top:"100%",pt:"8px",size:"12px",fontWeight:"500",color:e===a?"gray.800":"gray.500",children:i.title})]}),T.jsx(kge,{style:{marginInlineStart:"0",transition:"all 0.2s ease-in-out"}})]},a))})},Dr={TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right"},rke=({isOpen:e,onClose:t,onGoToDashboard:n})=>{const[r,i]=w.useState(!0);return w.useEffect(()=>{e||i(!0)},[e]),T.jsx(T.Fragment,{children:T.jsxs(p6,{isCentered:!0,trapFocus:!1,onClose:t,isOpen:e,scrollBehavior:"outside",motionPreset:"slideInBottom",children:[T.jsx(Rb,{height:"100vh"}),T.jsx(Jr,{position:"fixed",top:"0",zIndex:"calc(var(--chakra-zIndices-modal) + 1)",right:"0",mt:"40px",mr:"32px",variant:"tc-solid-primary",boxShadow:"box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.08), 0px -1px 0px 0px rgba(0, 0, 0, 0.20) inset",rightIcon:T.jsx(Wt,{as:g3e}),onClick:a=>{a.stopPropagation(),n()},children:"Go to dashboard"}),T.jsxs(m6,{minW:"80vw",maxW:"80vw",transition:"0.5s all",position:"fixed",bottom:"0px",borderRadius:"32px 32px 0px 0px",overflow:"hidden",children:[r&&T.jsxs($e,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",w:"50%",zIndex:"10",children:[T.jsx(FF,{size:"sm",flex:"1",value:90,rounded:"full",colorScheme:"green",isIndeterminate:!0}),T.jsx(Ot,{textAlign:"center",fontSize:"sm",pt:"8px",children:"Hold tight, your Switcher is dressing up..."})]}),T.jsx(Ab,{minH:"80vh",p:"0",opacity:r?.5:1,transition:"0.5s all",filter:r?"blur(3px)":"none",children:T.jsx($e,{h:"full",children:T.jsx($e,{as:"iframe",src:ig.transcyUrl,width:"100%",height:"80vh",onLoad:()=>i(!1),onLoadedData:()=>i(!1)})})})]})]})})},ike=()=>{const{isOpen:e,onOpen:t,onClose:n}=WN(),r=Ao(),i=qg(),a=()=>{ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.ONBOARDING.CLICK_EVENT_GO_TO_DASHBOARD}),i({pathname:kr.ROUTES.HOME}),r.refetch()},o=()=>{ho.trackingSegmentEvent({event:Ba.ACTION_EVENT.ONBOARDING.CLICK_EVENT_PREVIEW_SWITCHER}),t()};return T.jsxs(T.Fragment,{children:[T.jsx(hu,{flexDirection:"column",gap:"32px",children:T.jsxs(vh,{gap:"32px",children:[T.jsx(xu,{maxW:"145px",src:hxe}),T.jsxs($e,{textAlign:"center",children:[T.jsx(Ot,{lineHeight:"120%",as:"h1",fontSize:"30px",fontWeight:"600",pb:"16px",children:"Hooray! Your site is fully localized"}),T.jsx(Ot,{as:"h2",color:"gray.500",children:"Switcher is public for everyone, wanna take a look on your site?"})]}),T.jsxs($e,{maxW:"438px",w:"full",children:[T.jsx(Jr,{w:"full",variant:"tc-solid-primary",size:"lg",type:"submit",onClick:o,children:"Preview Switcher on your site"}),T.jsx(Jr,{variant:"link",colorScheme:"blue",w:"full",mt:"16px",fontWeight:500,onClick:a,children:"Go to dashboard"})]})]})}),T.jsx(rke,{isOpen:e,onClose:n,onGoToDashboard:a})]})},Jb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ch(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function g8(e){return"nodeType"in e}function Ni(e){var t,n;return e?Ch(e)?e:g8(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function v8(e){const{Document:t}=Ni(e);return e instanceof t}function rv(e){return Ch(e)?!1:e instanceof Ni(e).HTMLElement}function ake(e){return e instanceof Ni(e).SVGElement}function Eh(e){return e?Ch(e)?e.document:g8(e)?v8(e)?e:rv(e)?e.ownerDocument:document:document:document}const ds=Jb?w.useLayoutEffect:w.useEffect;function e2(e){const t=w.useRef(e);return ds(()=>{t.current=e}),w.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function oke(){const e=w.useRef(null),t=w.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=w.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function _g(e,t){t===void 0&&(t=[e]);const n=w.useRef(e);return ds(()=>{n.current!==e&&(n.current=e)},t),n}function iv(e,t){const n=w.useRef();return w.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function P_(e){const t=e2(e),n=w.useRef(null),r=w.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function O_(e){const t=w.useRef();return w.useEffect(()=>{t.current=e},[e]),t.current}let fx={};function t2(e,t){return w.useMemo(()=>{if(t)return t;const n=fx[e]==null?0:fx[e]+1;return fx[e]=n,e+"-"+n},[e,t])}function lB(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((a,o)=>{const s=Object.entries(o);for(const[l,c]of s){const f=a[l];f!=null&&(a[l]=f+e*c)}return a},{...t})}}const Lf=lB(1),R_=lB(-1);function ske(e){return"clientX"in e&&"clientY"in e}function y8(e){if(!e)return!1;const{KeyboardEvent:t}=Ni(e.target);return t&&e instanceof t}function lke(e){if(!e)return!1;const{TouchEvent:t}=Ni(e.target);return t&&e instanceof t}function A_(e){if(lke(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ske(e)?{x:e.clientX,y:e.clientY}:null}const uh=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[uh.Translate.toString(e),uh.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),ZR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function uke(e){return e.matches(ZR)?e:e.querySelector(ZR)}const cke={display:"none"};function dke(e){let{id:t,value:n}=e;return ve.createElement("div",{id:t,style:cke},n)}const fke={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function hke(e){let{id:t,announcement:n}=e;return ve.createElement("div",{id:t,style:fke,role:"status","aria-live":"assertive","aria-atomic":!0},n)}function pke(){const[e,t]=w.useState("");return{announce:w.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const uB=w.createContext(null);function mke(e){const t=w.useContext(uB);w.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function gke(){const[e]=w.useState(()=>new Set),t=w.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[w.useCallback(r=>{let{type:i,event:a}=r;e.forEach(o=>{var s;return(s=o[i])==null?void 0:s.call(o,a)})},[e]),t]}const vke={draggable:`
    475475    To pick up a draggable item, press the space bar.
    476476    While dragging, use the arrow keys to move the item.
    477477    Press space again to drop the item in its new position, or press escape to cancel.
    478   `},yke={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _ke(e){let{announcements:t=yke,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=vke}=e;const{announce:a,announcement:o}=pke(),s=t2("DndLiveRegion"),[l,c]=w.useState(!1);if(w.useEffect(()=>{c(!0)},[]),mke(w.useMemo(()=>({onDragStart(h){let{active:p}=h;a(t.onDragStart({active:p}))},onDragMove(h){let{active:p,over:v}=h;t.onDragMove&&a(t.onDragMove({active:p,over:v}))},onDragOver(h){let{active:p,over:v}=h;a(t.onDragOver({active:p,over:v}))},onDragEnd(h){let{active:p,over:v}=h;a(t.onDragEnd({active:p,over:v}))},onDragCancel(h){let{active:p,over:v}=h;a(t.onDragCancel({active:p,over:v}))}}),[a,t])),!l)return null;const f=ve.createElement(ve.Fragment,null,ve.createElement(dke,{id:r,value:i.draggable}),ve.createElement(hke,{id:s,announcement:o}));return n?Yo.createPortal(f,n):f}var Er;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Er||(Er={}));function I_(){}const Oo=Object.freeze({x:0,y:0});function bke(e,t){const n=A_(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Ske(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function wke(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function xke(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){const l=t.width*t.height,c=e.width*e.height,f=o*s,h=f/(l+c-f);return Number(h.toFixed(4))}return 0}const cB=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const a of r){const{id:o}=a,s=n.get(o);if(s){const l=xke(s,t);l>0&&i.push({id:o,data:{droppableContainer:a,value:l}})}}return i.sort(Ske)};function Cke(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function dB(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Oo}function Eke(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return i.reduce((o,s)=>({...o,top:o.top+e*s.y,bottom:o.bottom+e*s.y,left:o.left+e*s.x,right:o.right+e*s.x}),{...n})}}const kke=Eke(1);function fB(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Tke(e,t,n){const r=fB(t);if(!r)return e;const{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),f=i?e.width/i:e.width,h=a?e.height/a:e.height;return{width:f,height:h,top:c,right:l+f,bottom:c+h,left:l}}const Pke={ignoreTransform:!1};function av(e,t){t===void 0&&(t=Pke);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:f}=Ni(e).getComputedStyle(e);c&&(n=Tke(n,c,f))}const{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function QR(e){return av(e,{ignoreTransform:!0})}function Oke(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Rke(e,t){return t===void 0&&(t=Ni(e).getComputedStyle(e)),t.position==="fixed"}function Ake(e,t){t===void 0&&(t=Ni(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?n.test(a):!1})}function _8(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(v8(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!rv(i)||ake(i)||n.includes(i))return n;const a=Ni(e).getComputedStyle(i);return i!==e&&Ake(i,a)&&n.push(i),Rke(i,a)?n:r(i.parentNode)}return e?r(e):n}function hB(e){const[t]=_8(e,1);return t??null}function hx(e){return!Jb||!e?null:Ch(e)?e:g8(e)?v8(e)||e===Eh(e).scrollingElement?window:rv(e)?e:null:null}function pB(e){return Ch(e)?e.scrollX:e.scrollLeft}function mB(e){return Ch(e)?e.scrollY:e.scrollTop}function e5(e){return{x:pB(e),y:mB(e)}}var jr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(jr||(jr={}));function gB(e){return!Jb||!e?!1:e===document.scrollingElement}function vB(e){const t={x:0,y:0},n=gB(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:r,minScroll:t}}const Ike={x:.2,y:.2};function Lke(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=Ike);const{isTop:c,isBottom:f,isLeft:h,isRight:p}=vB(e),v={x:0,y:0},y={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+m.height?(v.y=jr.Backward,y.y=r*Math.abs((t.top+m.height-a)/m.height)):!f&&l>=t.bottom-m.height&&(v.y=jr.Forward,y.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!p&&s>=t.right-m.width?(v.x=jr.Forward,y.x=r*Math.abs((t.right-m.width-s)/m.width)):!h&&o<=t.left+m.width&&(v.x=jr.Backward,y.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:v,speed:y}}function Mke(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function yB(e){return e.reduce((t,n)=>Lf(t,e5(n)),Oo)}function Dke(e){return e.reduce((t,n)=>t+pB(n),0)}function Nke(e){return e.reduce((t,n)=>t+mB(n),0)}function _B(e,t){if(t===void 0&&(t=av),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);hB(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Fke=[["x",["left","right"],Dke],["y",["top","bottom"],Nke]];class b8{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=_8(n),i=yB(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of Fke)for(const l of o)Object.defineProperty(this,l,{get:()=>{const c=s(r),f=i[a]-c;return this.rect[l]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ym{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function $ke(e){const{EventTarget:t}=Ni(e);return e instanceof t?e:Eh(e)}function px(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var $a;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})($a||($a={}));function XR(e){e.preventDefault()}function zke(e){e.stopPropagation()}var kn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(kn||(kn={}));const bB={start:[kn.Space,kn.Enter],cancel:[kn.Esc],end:[kn.Space,kn.Enter]},jke=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case kn.Right:return{...n,x:n.x+25};case kn.Left:return{...n,x:n.x-25};case kn.Down:return{...n,y:n.y+25};case kn.Up:return{...n,y:n.y-25}}};class SB{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ym(Eh(n)),this.windowListeners=new ym(Ni(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($a.Resize,this.handleCancel),this.windowListeners.add($a.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add($a.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&_B(r),n(Oo)}handleKeyDown(t){if(y8(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:a=bB,coordinateGetter:o=jke,scrollBehavior:s="smooth"}=i,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,f=c?{x:c.left,y:c.top}:Oo;this.referenceCoordinates||(this.referenceCoordinates=f);const h=o(t,{active:n,context:r.current,currentCoordinates:f});if(h){const p=R_(h,f),v={x:0,y:0},{scrollableAncestors:y}=r.current;for(const m of y){const _=t.code,{isTop:b,isRight:S,isLeft:C,isBottom:E,maxScroll:R,minScroll:A}=vB(m),I=Mke(m),M={x:Math.min(_===kn.Right?I.right-I.width/2:I.right,Math.max(_===kn.Right?I.left:I.left+I.width/2,h.x)),y:Math.min(_===kn.Down?I.bottom-I.height/2:I.bottom,Math.max(_===kn.Down?I.top:I.top+I.height/2,h.y))},F=_===kn.Right&&!S||_===kn.Left&&!C,z=_===kn.Down&&!E||_===kn.Up&&!b;if(F&&M.x!==h.x){const Y=m.scrollLeft+p.x,W=_===kn.Right&&Y<=R.x||_===kn.Left&&Y>=A.x;if(W&&!p.y){m.scrollTo({left:Y,behavior:s});return}W?v.x=m.scrollLeft-Y:v.x=_===kn.Right?m.scrollLeft-R.x:m.scrollLeft-A.x,v.x&&m.scrollBy({left:-v.x,behavior:s});break}else if(z&&M.y!==h.y){const Y=m.scrollTop+p.y,W=_===kn.Down&&Y<=R.y||_===kn.Up&&Y>=A.y;if(W&&!p.x){m.scrollTo({top:Y,behavior:s});return}W?v.y=m.scrollTop-Y:v.y=_===kn.Down?m.scrollTop-R.y:m.scrollTop-A.y,v.y&&m.scrollBy({top:-v.y,behavior:s});break}}this.handleMove(t,Lf(R_(h,this.referenceCoordinates),v))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}SB.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=bB,onActivation:i}=t,{active:a}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function JR(e){return!!(e&&"distance"in e)}function eA(e){return!!(e&&"delay"in e)}class S8{constructor(t,n,r){var i;r===void 0&&(r=$ke(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:o}=a;this.props=t,this.events=n,this.document=Eh(o),this.documentListeners=new ym(this.document),this.listeners=new ym(r),this.windowListeners=new ym(Ni(o)),this.initialCoordinates=(i=A_(a))!=null?i:Oo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add($a.Resize,this.handleCancel),this.windowListeners.add($a.DragStart,XR),this.windowListeners.add($a.VisibilityChange,this.handleCancel),this.windowListeners.add($a.ContextMenu,XR),this.documentListeners.add($a.Keydown,this.handleKeydown),n){if(JR(n))return;if(eA(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add($a.Click,zke,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($a.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const l=(n=A_(t))!=null?n:Oo,c=R_(i,l);if(!r&&s){if(eA(s))return px(c,s.tolerance)?this.handleCancel():void 0;if(JR(s))return s.tolerance!=null&&px(c,s.tolerance)?this.handleCancel():px(c,s.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),o(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===kn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Bke={move:{name:"pointermove"},end:{name:"pointerup"}};class wB extends S8{constructor(t){const{event:n}=t,r=Eh(n.target);super(t,Bke,r)}}wB.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Vke={move:{name:"mousemove"},end:{name:"mouseup"}};var t5;(function(e){e[e.RightClick=2]="RightClick"})(t5||(t5={}));class Uke extends S8{constructor(t){super(t,Vke,Eh(t.event.target))}}Uke.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===t5.RightClick?!1:(r==null||r({event:n}),!0)}}];const mx={move:{name:"touchmove"},end:{name:"touchend"}};class Hke extends S8{constructor(t){super(t,mx)}static setup(){return window.addEventListener(mx.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(mx.move.name,t)};function t(){}}}Hke.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var _m;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(_m||(_m={}));var L_;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(L_||(L_={}));function Wke(e){let{acceleration:t,activator:n=_m.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=L_.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:f,delta:h,threshold:p}=e;const v=Gke({delta:h,disabled:!a}),[y,m]=oke(),_=w.useRef({x:0,y:0}),b=w.useRef({x:0,y:0}),S=w.useMemo(()=>{switch(n){case _m.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case _m.DraggableRect:return i}},[n,i,l]),C=w.useRef(null),E=w.useCallback(()=>{const A=C.current;if(!A)return;const I=_.current.x*b.current.x,M=_.current.y*b.current.y;A.scrollBy(I,M)},[]),R=w.useMemo(()=>s===L_.TreeOrder?[...c].reverse():c,[s,c]);w.useEffect(()=>{if(!a||!c.length||!S){m();return}for(const A of R){if((r==null?void 0:r(A))===!1)continue;const I=c.indexOf(A),M=f[I];if(!M)continue;const{direction:F,speed:z}=Lke(A,M,S,t,p);for(const Y of["x","y"])v[Y][F[Y]]||(z[Y]=0,F[Y]=0);if(z.x>0||z.y>0){m(),C.current=A,y(E,o),_.current=z,b.current=F;return}}_.current={x:0,y:0},b.current={x:0,y:0},m()},[t,E,r,m,a,o,JSON.stringify(S),JSON.stringify(v),y,c,R,f,JSON.stringify(p)])}const qke={x:{[jr.Backward]:!1,[jr.Forward]:!1},y:{[jr.Backward]:!1,[jr.Forward]:!1}};function Gke(e){let{delta:t,disabled:n}=e;const r=O_(t);return iv(i=>{if(n||!r||!i)return qke;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[jr.Backward]:i.x[jr.Backward]||a.x===-1,[jr.Forward]:i.x[jr.Forward]||a.x===1},y:{[jr.Backward]:i.y[jr.Backward]||a.y===-1,[jr.Forward]:i.y[jr.Forward]||a.y===1}}},[n,t,r])}function Kke(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return iv(i=>{var a;return t===null?null:(a=r??i)!=null?a:null},[r,t])}function Yke(e,t){return w.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...a]},[]),[e,t])}var bg;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(bg||(bg={}));var n5;(function(e){e.Optimized="optimized"})(n5||(n5={}));const tA=new Map;function Zke(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,o]=w.useState(null),{frequency:s,measure:l,strategy:c}=i,f=w.useRef(e),h=_(),p=_g(h),v=w.useCallback(function(b){b===void 0&&(b=[]),!p.current&&o(S=>S===null?b:S.concat(b.filter(C=>!S.includes(C))))},[p]),y=w.useRef(null),m=iv(b=>{if(h&&!n)return tA;if(!b||b===tA||f.current!==e||a!=null){const S=new Map;for(let C of e){if(!C)continue;if(a&&a.length>0&&!a.includes(C.id)&&C.rect.current){S.set(C.id,C.rect.current);continue}const E=C.node.current,R=E?new b8(l(E),E):null;C.rect.current=R,R&&S.set(C.id,R)}return S}return b},[e,a,n,h,l]);return w.useEffect(()=>{f.current=e},[e]),w.useEffect(()=>{h||v()},[n,h]),w.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),w.useEffect(()=>{h||typeof s!="number"||y.current!==null||(y.current=setTimeout(()=>{v(),y.current=null},s))},[s,h,v,...r]),{droppableRects:m,measureDroppableContainers:v,measuringScheduled:a!=null};function _(){switch(c){case bg.Always:return!1;case bg.BeforeDragging:return n;default:return!n}}}function w8(e,t){return iv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Qke(e,t){return w8(e,t)}function Xke(e){let{callback:t,disabled:n}=e;const r=e2(t),i=w.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return w.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function n2(e){let{callback:t,disabled:n}=e;const r=e2(t),i=w.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return w.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Jke(e){return new b8(av(e),e)}function nA(e,t,n){t===void 0&&(t=Jke);const[r,i]=w.useReducer(s,null),a=Xke({callback(l){if(e)for(const c of l){const{type:f,target:h}=c;if(f==="childList"&&h instanceof HTMLElement&&h.contains(e)){i();break}}}}),o=n2({callback:i});return ds(()=>{i(),e?(o==null||o.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[e]),r;function s(l){if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const f=t(e);return JSON.stringify(l)===JSON.stringify(f)?l:f}}function e7e(e){const t=w8(e);return dB(e,t)}const rA=[];function t7e(e){const t=w.useRef(e),n=iv(r=>e?r&&r!==rA&&e&&t.current&&e.parentNode===t.current.parentNode?r:_8(e):rA,[e]);return w.useEffect(()=>{t.current=e},[e]),n}function n7e(e){const[t,n]=w.useState(null),r=w.useRef(e),i=w.useCallback(a=>{const o=hx(a.target);o&&n(s=>s?(s.set(o,e5(o)),new Map(s)):null)},[]);return w.useEffect(()=>{const a=r.current;if(e!==a){o(a);const s=e.map(l=>{const c=hx(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,e5(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(l=>{const c=hx(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),w.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>Lf(a,o),Oo):yB(e):Oo,[e,t])}function iA(e,t){t===void 0&&(t=[]);const n=w.useRef(null);return w.useEffect(()=>{n.current=null},t),w.useEffect(()=>{const r=e!==Oo;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?R_(e,n.current):Oo}function r7e(e){w.useEffect(()=>{if(!Jb)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function i7e(e,t){return w.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}function xB(e){return w.useMemo(()=>e?Oke(e):null,[e])}const gx=[];function a7e(e,t){t===void 0&&(t=av);const[n]=e,r=xB(n?Ni(n):null),[i,a]=w.useReducer(s,gx),o=n2({callback:a});return e.length>0&&i===gx&&a(),ds(()=>{e.length?e.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),a())},[e]),i;function s(){return e.length?e.map(l=>gB(l)?r:new b8(t(l),l)):gx}}function CB(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return rv(t)?t:e}function o7e(e){let{measure:t}=e;const[n,r]=w.useState(null),i=w.useCallback(c=>{for(const{target:f}of c)if(rv(f)){r(h=>{const p=t(f);return h?{...h,width:p.width,height:p.height}:p});break}},[t]),a=n2({callback:i}),o=w.useCallback(c=>{const f=CB(c);a==null||a.disconnect(),f&&(a==null||a.observe(f)),r(f?t(f):null)},[t,a]),[s,l]=P_(o);return w.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const s7e=[{sensor:wB,options:{}},{sensor:SB,options:{}}],l7e={current:{}},Dy={draggable:{measure:QR},droppable:{measure:QR,strategy:bg.WhileDragging,frequency:n5.Optimized},dragOverlay:{measure:av}};class bm extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const u7e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new bm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:I_},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Dy,measureDroppableContainers:I_,windowRect:null,measuringScheduled:!1},EB={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:I_,draggableNodes:new Map,over:null,measureDroppableContainers:I_},ov=w.createContext(EB),kB=w.createContext(u7e);function c7e(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new bm}}}function d7e(e,t){switch(t.type){case Er.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Er.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Er.DragEnd:case Er.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Er.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new bm(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Er.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new bm(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Er.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new bm(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function f7e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=w.useContext(ov),a=O_(r),o=O_(n==null?void 0:n.id);return w.useEffect(()=>{if(!t&&!r&&a&&o!=null){if(!y8(a)||document.activeElement===a.target)return;const s=i.get(o);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const f of[l.current,c.current]){if(!f)continue;const h=uke(f);if(h){h.focus();break}}})}},[r,t,i,o,a]),null}function TB(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...r}),n):n}function h7e(e){return w.useMemo(()=>({draggable:{...Dy.draggable,...e==null?void 0:e.draggable},droppable:{...Dy.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Dy.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function p7e(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=w.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;ds(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const f=n(c),h=dB(f,r);if(o||(h.x=0),s||(h.y=0),a.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const p=hB(c);p&&p.scrollBy({top:h.y,left:h.x})}},[t,o,s,r,n])}const r2=w.createContext({...Oo,scaleX:1,scaleY:1});var Bl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Bl||(Bl={}));const m7e=w.memo(function(t){var n,r,i,a;let{id:o,accessibility:s,autoScroll:l=!0,children:c,sensors:f=s7e,collisionDetection:h=cB,measuring:p,modifiers:v,...y}=t;const m=w.useReducer(d7e,void 0,c7e),[_,b]=m,[S,C]=gke(),[E,R]=w.useState(Bl.Uninitialized),A=E===Bl.Initialized,{draggable:{active:I,nodes:M,translate:F},droppable:{containers:z}}=_,Y=I?M.get(I):null,W=w.useRef({initial:null,translated:null}),q=w.useMemo(()=>{var De;return I!=null?{id:I,data:(De=Y==null?void 0:Y.data)!=null?De:l7e,rect:W}:null},[I,Y]),ae=w.useRef(null),[ee,ce]=w.useState(null),[ue,J]=w.useState(null),me=_g(y,Object.values(y)),we=t2("DndDescribedBy",o),Ce=w.useMemo(()=>z.getEnabled(),[z]),Ee=h7e(p),{droppableRects:xe,measureDroppableContainers:ye,measuringScheduled:Le}=Zke(Ce,{dragging:A,dependencies:[F.x,F.y],config:Ee.droppable}),Ae=Kke(M,I),it=w.useMemo(()=>ue?A_(ue):null,[ue]),Ye=Ze(),nt=Qke(Ae,Ee.draggable.measure);p7e({activeNode:I?M.get(I):null,config:Ye.layoutShiftCompensation,initialRect:nt,measure:Ee.draggable.measure});const wt=nA(Ae,Ee.draggable.measure,nt),Dt=nA(Ae?Ae.parentElement:null),Nt=w.useRef({activatorEvent:null,active:null,activeNode:Ae,collisionRect:null,collisions:null,droppableRects:xe,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Sn=z.getNodeFor((n=Nt.current.over)==null?void 0:n.id),Yt=o7e({measure:Ee.dragOverlay.measure}),Te=(r=Yt.nodeRef.current)!=null?r:Ae,yt=A?(i=Yt.rect)!=null?i:wt:null,B=!!(Yt.nodeRef.current&&Yt.rect),X=e7e(B?null:wt),oe=xB(Te?Ni(Te):null),Se=t7e(A?Sn??Ae:null),_e=a7e(Se),ge=TB(v,{transform:{x:F.x-X.x,y:F.y-X.y,scaleX:1,scaleY:1},activatorEvent:ue,active:q,activeNodeRect:wt,containerNodeRect:Dt,draggingNodeRect:yt,over:Nt.current.over,overlayNodeRect:Yt.rect,scrollableAncestors:Se,scrollableAncestorRects:_e,windowRect:oe}),Ie=it?Lf(it,F):null,Ft=n7e(Se),Ge=iA(Ft),Kn=iA(Ft,[wt]),Dn=Lf(ge,Ge),rn=yt?kke(yt,ge):null,ur=q&&rn?h({active:q,collisionRect:rn,droppableRects:xe,droppableContainers:Ce,pointerCoordinates:Ie}):null,ti=wke(ur,"id"),[Yn,ni]=w.useState(null),Ur=B?ge:Lf(ge,Kn),te=Cke(Ur,(a=Yn==null?void 0:Yn.rect)!=null?a:null,wt),ie=w.useCallback((De,Oe)=>{let{sensor:gt,options:It}=Oe;if(ae.current==null)return;const mt=M.get(ae.current);if(!mt)return;const Tt=De.nativeEvent,$t=new gt({active:ae.current,activeNode:mt,event:Tt,options:It,context:Nt,onStart(Rn){const An=ae.current;if(An==null)return;const dr=M.get(An);if(!dr)return;const{onDragStart:fr}=me.current,jn={active:{id:An,data:dr.data,rect:W}};Yo.unstable_batchedUpdates(()=>{fr==null||fr(jn),R(Bl.Initializing),b({type:Er.DragStart,initialCoordinates:Rn,active:An}),S({type:"onDragStart",event:jn})})},onMove(Rn){b({type:Er.DragMove,coordinates:Rn})},onEnd:cr(Er.DragEnd),onCancel:cr(Er.DragCancel)});Yo.unstable_batchedUpdates(()=>{ce($t),J(De.nativeEvent)});function cr(Rn){return async function(){const{active:dr,collisions:fr,over:jn,scrollAdjustedTranslate:na}=Nt.current;let vi=null;if(dr&&na){const{cancelDrop:hr}=me.current;vi={activatorEvent:Tt,active:dr,collisions:fr,delta:na,over:jn},Rn===Er.DragEnd&&typeof hr=="function"&&await Promise.resolve(hr(vi))&&(Rn=Er.DragCancel)}ae.current=null,Yo.unstable_batchedUpdates(()=>{b({type:Rn}),R(Bl.Uninitialized),ni(null),ce(null),J(null);const hr=Rn===Er.DragEnd?"onDragEnd":"onDragCancel";if(vi){const ra=me.current[hr];ra==null||ra(vi),S({type:hr,event:vi})}})}}},[M]),he=w.useCallback((De,Oe)=>(gt,It)=>{const mt=gt.nativeEvent,Tt=M.get(It);if(ae.current!==null||!Tt||mt.dndKit||mt.defaultPrevented)return;const $t={active:Tt};De(gt,Oe.options,$t)===!0&&(mt.dndKit={capturedBy:Oe.sensor},ae.current=It,ie(gt,Oe))},[M,ie]),Me=Yke(f,he);r7e(f),ds(()=>{wt&&E===Bl.Initializing&&R(Bl.Initialized)},[wt,E]),w.useEffect(()=>{const{onDragMove:De}=me.current,{active:Oe,activatorEvent:gt,collisions:It,over:mt}=Nt.current;if(!Oe||!gt)return;const Tt={active:Oe,activatorEvent:gt,collisions:It,delta:{x:Dn.x,y:Dn.y},over:mt};Yo.unstable_batchedUpdates(()=>{De==null||De(Tt),S({type:"onDragMove",event:Tt})})},[Dn.x,Dn.y]),w.useEffect(()=>{const{active:De,activatorEvent:Oe,collisions:gt,droppableContainers:It,scrollAdjustedTranslate:mt}=Nt.current;if(!De||ae.current==null||!Oe||!mt)return;const{onDragOver:Tt}=me.current,$t=It.get(ti),cr=$t&&$t.rect.current?{id:$t.id,rect:$t.rect.current,data:$t.data,disabled:$t.disabled}:null,Rn={active:De,activatorEvent:Oe,collisions:gt,delta:{x:mt.x,y:mt.y},over:cr};Yo.unstable_batchedUpdates(()=>{ni(cr),Tt==null||Tt(Rn),S({type:"onDragOver",event:Rn})})},[ti]),ds(()=>{Nt.current={activatorEvent:ue,active:q,activeNode:Ae,collisionRect:rn,collisions:ur,droppableRects:xe,draggableNodes:M,draggingNode:Te,draggingNodeRect:yt,droppableContainers:z,over:Yn,scrollableAncestors:Se,scrollAdjustedTranslate:Dn},W.current={initial:yt,translated:rn}},[q,Ae,ur,rn,M,Te,yt,xe,z,Yn,Se,Dn]),Wke({...Ye,delta:F,draggingRect:rn,pointerCoordinates:Ie,scrollableAncestors:Se,scrollableAncestorRects:_e});const st=w.useMemo(()=>({active:q,activeNode:Ae,activeNodeRect:wt,activatorEvent:ue,collisions:ur,containerNodeRect:Dt,dragOverlay:Yt,draggableNodes:M,droppableContainers:z,droppableRects:xe,over:Yn,measureDroppableContainers:ye,scrollableAncestors:Se,scrollableAncestorRects:_e,measuringConfiguration:Ee,measuringScheduled:Le,windowRect:oe}),[q,Ae,wt,ue,ur,Dt,Yt,M,z,xe,Yn,ye,Se,_e,Ee,Le,oe]),et=w.useMemo(()=>({activatorEvent:ue,activators:Me,active:q,activeNodeRect:wt,ariaDescribedById:{draggable:we},dispatch:b,draggableNodes:M,over:Yn,measureDroppableContainers:ye}),[ue,Me,q,wt,b,we,M,Yn,ye]);return ve.createElement(uB.Provider,{value:C},ve.createElement(ov.Provider,{value:et},ve.createElement(kB.Provider,{value:st},ve.createElement(r2.Provider,{value:te},c)),ve.createElement(f7e,{disabled:(s==null?void 0:s.restoreFocus)===!1})),ve.createElement(_ke,{...s,hiddenTextDescribedById:we}));function Ze(){const De=(ee==null?void 0:ee.autoScrollEnabled)===!1,Oe=typeof l=="object"?l.enabled===!1:l===!1,gt=A&&!De&&!Oe;return typeof l=="object"?{...l,enabled:gt}:{enabled:gt}}}),g7e=w.createContext(null),aA="button",v7e="Droppable";function y7e(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=t2(v7e),{activators:o,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:f,draggableNodes:h,over:p}=w.useContext(ov),{role:v=aA,roleDescription:y="draggable",tabIndex:m=0}=i??{},_=(l==null?void 0:l.id)===t,b=w.useContext(_?r2:g7e),[S,C]=P_(),[E,R]=P_(),A=i7e(o,t),I=_g(n);ds(()=>(h.set(t,{id:t,key:a,node:S,activatorNode:E,data:I}),()=>{const F=h.get(t);F&&F.key===a&&h.delete(t)}),[h,t]);const M=w.useMemo(()=>({role:v,tabIndex:m,"aria-disabled":r,"aria-pressed":_&&v===aA?!0:void 0,"aria-roledescription":y,"aria-describedby":f.draggable}),[r,v,m,_,y,f.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:M,isDragging:_,listeners:r?void 0:A,node:S,over:p,setNodeRef:C,setActivatorNodeRef:R,transform:b}}function _7e(){return w.useContext(kB)}const b7e="Droppable",S7e={timeout:25};function w7e(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=t2(b7e),{active:o,dispatch:s,over:l,measureDroppableContainers:c}=w.useContext(ov),f=w.useRef({disabled:n}),h=w.useRef(!1),p=w.useRef(null),v=w.useRef(null),{disabled:y,updateMeasurementsFor:m,timeout:_}={...S7e,...i},b=_g(m??r),S=w.useCallback(()=>{if(!h.current){h.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),v.current=null},_)},[_]),C=n2({callback:S,disabled:y||!o}),E=w.useCallback((M,F)=>{C&&(F&&(C.unobserve(F),h.current=!1),M&&C.observe(M))},[C]),[R,A]=P_(E),I=_g(t);return w.useEffect(()=>{!C||!R.current||(C.disconnect(),h.current=!1,C.observe(R.current))},[R,C]),ds(()=>(s({type:Er.RegisterDroppable,element:{id:r,key:a,disabled:n,node:R,rect:p,data:I}}),()=>s({type:Er.UnregisterDroppable,key:a,id:r})),[r]),w.useEffect(()=>{n!==f.current.disabled&&(s({type:Er.SetDroppableDisabled,id:r,key:a,disabled:n}),f.current.disabled=n)},[r,a,n,s]),{active:o,rect:p,isOver:(l==null?void 0:l.id)===r,node:R,over:l,setNodeRef:A}}function x7e(e){let{animation:t,children:n}=e;const[r,i]=w.useState(null),[a,o]=w.useState(null),s=O_(n);return!n&&!r&&s&&i(s),ds(()=>{if(!a)return;const l=r==null?void 0:r.key,c=r==null?void 0:r.props.id;if(l==null||c==null){i(null);return}Promise.resolve(t(c,a)).then(()=>{i(null)})},[t,r,a]),ve.createElement(ve.Fragment,null,n,r?w.cloneElement(r,{ref:o}):null)}const C7e={x:0,y:0,scaleX:1,scaleY:1};function E7e(e){let{children:t}=e;return ve.createElement(ov.Provider,{value:EB},ve.createElement(r2.Provider,{value:C7e},t))}const k7e={position:"fixed",touchAction:"none"},T7e=e=>y8(e)?"transform 250ms ease":void 0,P7e=w.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:l,transform:c,transition:f=T7e}=e;if(!s)return null;const h=i?c:{...c,scaleX:1,scaleY:1},p={...k7e,width:s.width,height:s.height,top:s.top,left:s.left,transform:uh.Transform.toString(h),transformOrigin:i&&r?bke(r,s):void 0,transition:typeof f=="function"?f(r):f,...l};return ve.createElement(n,{className:o,style:p,ref:t},a)}),O7e=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[s,l]of Object.entries(a.active))l!==void 0&&(i[s]=n.node.style.getPropertyValue(s),n.node.style.setProperty(s,l));if(a!=null&&a.dragOverlay)for(const[s,l]of Object.entries(a.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,c]of Object.entries(i))n.node.style.setProperty(l,c);o!=null&&o.active&&n.node.classList.remove(o.active)}},R7e=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:uh.Transform.toString(t)},{transform:uh.Transform.toString(n)}]},A7e={duration:250,easing:"ease",keyframes:R7e,sideEffects:O7e({styles:{active:{opacity:"0"}}})};function I7e(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return e2((a,o)=>{if(t===null)return;const s=n.get(a);if(!s)return;const l=s.node.current;if(!l)return;const c=CB(o);if(!c)return;const{transform:f}=Ni(o).getComputedStyle(o),h=fB(f);if(!h)return;const p=typeof t=="function"?t:L7e(t);return _B(l,i.draggable.measure),p({active:{id:a,data:s.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:h})})}function L7e(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...A7e,...e};return a=>{let{active:o,dragOverlay:s,transform:l,...c}=a;if(!t)return;const f={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},h={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},p={x:l.x-f.x,y:l.y-f.y,...h},v=i({...c,active:o,dragOverlay:s,transform:{initial:l,final:p}}),[y]=v,m=v[v.length-1];if(JSON.stringify(y)===JSON.stringify(m))return;const _=r==null?void 0:r({active:o,dragOverlay:s,...c}),b=s.node.animate(v,{duration:t,easing:n,fill:"forwards"});return new Promise(S=>{b.onfinish=()=>{_==null||_(),S()}})}}let oA=0;function M7e(e){return w.useMemo(()=>{if(e!=null)return oA++,oA},[e])}const D7e=ve.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:a,modifiers:o,wrapperElement:s="div",className:l,zIndex:c=999}=e;const{activatorEvent:f,active:h,activeNodeRect:p,containerNodeRect:v,draggableNodes:y,droppableContainers:m,dragOverlay:_,over:b,measuringConfiguration:S,scrollableAncestors:C,scrollableAncestorRects:E,windowRect:R}=_7e(),A=w.useContext(r2),I=M7e(h==null?void 0:h.id),M=TB(o,{activatorEvent:f,active:h,activeNodeRect:p,containerNodeRect:v,draggingNodeRect:_.rect,over:b,overlayNodeRect:_.rect,scrollableAncestors:C,scrollableAncestorRects:E,transform:A,windowRect:R}),F=w8(p),z=I7e({config:r,draggableNodes:y,droppableContainers:m,measuringConfiguration:S}),Y=F?_.setRef:void 0;return ve.createElement(E7e,null,ve.createElement(x7e,{animation:z},h&&I?ve.createElement(P7e,{key:I,id:h.id,ref:Y,as:s,activatorEvent:f,adjustScale:t,className:l,transition:a,rect:F,style:{zIndex:c,...i},transform:M},n):null))}),N7e=()=>Ir({url:"clients/current/settings"}),F7e={getSwitcherSettings:N7e};function PB({customStyle:e={}}){var o,s;const t=Ao(),n=!!((o=t.data)!=null&&o.data.woo_version),{data:r}=wo({queryKey:[aB.getUserDefaultCurrency],queryFn:()=>My.getUserDefaultCurrency(),staleTime:1/0,enabled:n}),i=(s=t.data)==null?void 0:s.data.default_language,a=r==null?void 0:r.data;return T.jsxs(fi,{alignItems:"center",w:"fit-content",px:"12px",py:"10px",bg:"white",rounded:"4px",borderWidth:"0.5px",borderColor:"gray.200",shadow:"lg",cursor:"grab",transition:"0.2s all",gap:"12px",opacity:i||a?1:0,...e,children:[T.jsxs($g,{spacing:"8px",divider:T.jsx(o6,{borderColor:"#1A202C",opacity:"0.3"}),alignItems:"center",children:[T.jsxs(fi,{alignItems:"center",gap:"8px",children:[T.jsx(lxe,{code:(i==null?void 0:i.flag_code)||"en"}),T.jsx(Ot,{fontSize:"14px",color:"gray.800",children:i==null?void 0:i.name_en})]}),n&&T.jsxs(Ot,{fontSize:"14px",color:"gray.800",children:[a==null?void 0:a.code.toUpperCase()," ",(a==null?void 0:a.settings.symbol)&&` (${a==null?void 0:a.settings.symbol})`]})]}),T.jsx(Wt,{as:mCe,fill:"#1A202C",opacity:"0.3"})]})}const $7e=({title:e,index:t=0})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:a}=y7e({id:e,data:{title:e,index:t}}),o={transform:uh.Translate.toString(a)};return T.jsx(fi,{transform:o.transform,...r,...n,ref:i,children:T.jsx(PB,{})})},z7e={getSwitcherSettings:"getSwitcherSettings"},q0=e=>{const{items:t,title:n}=e,{setNodeRef:r,isOver:i,over:a}=w7e({id:n}),o=i&&(a==null?void 0:a.id)===n,s=t.length>0,l=()=>s?"transparent":o?"blue.600":"blue.100",c=()=>s?"transparent":o?"blue.50":"transparent";return T.jsxs($e,{ref:r,borderRadius:"8px",py:"10px",px:"12px",w:"260px",maxH:"62px",minH:"62px",borderWidth:"1px",borderStyle:"dashed",borderColor:l(),bg:c(),transition:"0.2s all",position:"relative",display:"flex",justifyContent:n.toLowerCase().includes("left")?"left":"right",alignItems:n.toLowerCase().includes("top")?"start":"end",children:[T.jsxs($e,{alignItems:n.toLowerCase().includes("left")?"start":"end",gap:"8px",w:"calc(100% - 24px)",position:"absolute",opacity:s?"0":"1",visibility:s?"hidden":"visible",transition:"0.1s all",display:"flex",flexDirection:"column",width:"auto",children:[T.jsx(v6,{width:"fit-content",colorScheme:"blue",variant:"solid",size:"sm",color:"blue.100",children:Gg.startCase(n).toUpperCase().replace(" ","-")}),T.jsx(Ot,{fontSize:"12px",color:"gray.500",lineHeight:"none",children:"Drag & drop the switcher here"})]}),T.jsx($e,{my:"-10px",mx:"-12px",children:t.map((f,h)=>T.jsx($7e,{title:f,index:h},h))})]})},j7e=Object.values(Dr),B7e=({onClickSkip:e})=>{const t=wh(),{data:n,status:r,isLoading:i}=wo({queryKey:[z7e.getSwitcherSettings],queryFn:()=>F7e.getSwitcherSettings()}),[a,o]=w.useState(),[s,l]=w.useState({[Dr.TOP_LEFT]:[],[Dr.TOP_RIGHT]:[],[Dr.BOTTOM_LEFT]:[],[Dr.BOTTOM_RIGHT]:[]});w.useEffect(()=>{var h,p;if(r!=="success")return;if(t.getValues("position")){l(v=>(v[t.getValues("position")||"top_right"]=["switcher"],{...v}));return}const f=((h=n==null?void 0:n.data)==null?void 0:h.switcher.position_settings.position)in j7e?(p=n==null?void 0:n.data)==null?void 0:p.switcher.position_settings.position:Dr.TOP_RIGHT;t.setValue("position",f),l(v=>(v[f]=["switcher"],{...v}))},[r]);const c=f=>{var v,y;const h=(v=f.over)==null?void 0:v.id,p=((y=f.active.data.current)==null?void 0:y.title)??"";l(m=>{if(!h)return m;const _=Object.entries(m).reduce((b,[S])=>({...b,[S]:S===h?[p]:[]}),{});return t.setValue("position",h),_}),o(null)};return T.jsxs(T.Fragment,{children:[T.jsxs($e,{textAlign:"center",children:[T.jsx(Ot,{lineHeight:"120%",as:"h1",fontSize:"30px",fontWeight:"600",pb:"16px",children:"Lastly, set up Switcher position"}),T.jsx(Ot,{as:"h2",color:"gray.500",children:T.jsx(x6,{i18nKey:"Drag and drop Switcher to your preferred location.",components:{"<br/>":T.jsx("br",{})}})})]}),T.jsx($e,{w:"full",h:"320px",position:"relative",children:T.jsxs($e,{bgImage:`url(${fxe})`,backgroundSize:"cover",h:"inherit",children:[T.jsx($e,{h:"57px"}),T.jsxs(m7e,{collisionDetection:cB,onDragStart:f=>{o(f.active.id.toString())},onDragEnd:c,children:[T.jsxs(a6,{templateColumns:"repeat(2, 1fr)",h:"calc(100% - 57px)",p:"24px",children:[T.jsx(Vp,{children:T.jsx(q0,{title:Dr.TOP_LEFT,items:s[Dr.TOP_LEFT]})}),T.jsx(Vp,{justifySelf:"end",children:T.jsx(q0,{title:Dr.TOP_RIGHT,items:s[Dr.TOP_RIGHT]})}),T.jsx(Vp,{justifySelf:"start",alignSelf:"end",children:T.jsx(q0,{title:Dr.BOTTOM_LEFT,items:s[Dr.BOTTOM_LEFT]})}),T.jsx(Vp,{justifySelf:"end",alignSelf:"end",children:T.jsx(q0,{title:Dr.BOTTOM_RIGHT,items:s[Dr.BOTTOM_RIGHT]})})]}),T.jsx(D7e,{children:a?T.jsx(PB,{customStyle:{boxShadow:"none"}}):null})]})]})}),T.jsxs($e,{maxW:"438px",w:"full",pt:"32px",children:[T.jsx(Jr,{w:"full",variant:"tc-solid-primary",size:"lg",type:"submit",isLoading:i,children:"Continue"}),T.jsx(Jr,{variant:"link",colorScheme:"blue",w:"full",mt:"16px",onClick:e,children:"Skip this step"})]})]})},sA=[{title:"Language"},{title:"Currency"},{title:"Switcher"}];var OB=(e=>(e[e.LANGUAGE=1]="LANGUAGE",e[e.CURRENCY=2]="CURRENCY",e[e.SWITCHER=3]="SWITCHER",e[e.PREVIEW=4]="PREVIEW",e))(OB||{});const V7e=Ri.object({step:Ri.nativeEnum(OB)}),U7e=Ri.object({step:Ri.literal(1),basic:Ri.array(Ri.string()).min(1,"You must select at least one language first.")}),H7e=Ri.object({step:Ri.literal(2),codes:Ri.array(Ri.string()).min(1,"You must select at least one currency first.")}),W7e=Ri.object({step:Ri.literal(3),position:Ri.enum([Dr.TOP_LEFT,Dr.TOP_RIGHT,Dr.BOTTOM_LEFT,Dr.BOTTOM_RIGHT]).optional()}),q7e=Ri.discriminatedUnion("step",[U7e,H7e,W7e]),G7e=Ri.intersection(q7e,V7e),K7e=()=>{var p,v,y;const e=Ao(),t=qg(),n=typeof((p=e==null?void 0:e.data)==null?void 0:p.data.step_onboarding)=="number"?(v=e==null?void 0:e.data)==null?void 0:v.data.step_onboarding:0,r=!!((y=e==null?void 0:e.data)!=null&&y.data.woo_version),{activeStep:i,goToNext:a,setActiveStep:o}=Sge({index:n,count:sA.length}),s=YCe({resolver:e5e(G7e),mode:"all",defaultValues:{advanced:[],basic:[],codes:[],position:void 0,step:1}});w.useEffect(()=>{s.setValue("step",i+1),s.clearErrors()},[i]),w.useEffect(()=>{var m;return(m=document.querySelector(".wp-toolbar"))==null||m.classList.add("tc-hide-wp-ui"),()=>{var _;(_=document.querySelector(".wp-toolbar"))==null||_.classList.remove("tc-hide-wp-ui")}},[]);const{mutate:l}=i$({mutationFn:m=>e4e.updateOnboarding(m)}),c=()=>{const m=s.getValues("step");if(l({step:m}),m===3){const _=new URLSearchParams({onboardingSuccess:"true"});t({pathname:kr.ROUTES.HOME,search:_.toString()}),e.refetch();return}a(),s.clearErrors()},f={1:T.jsx(tke,{onClickSkip:c}),2:T.jsx(GEe,{onClickSkip:c}),3:T.jsx(B7e,{onClickSkip:c}),4:T.jsx(ike,{})},h=m=>{m.preventDefault(),s.handleSubmit(_=>{const b={1:{basic:_.basic},2:{codes:_.codes},3:{position:_.position}};l({step:_.step,...b[_.step]}),a()},_=>{var b;(b=_.codes)!=null&&b.message&&!r&&c()})()};return T.jsxs(T.Fragment,{children:[T.jsx(hu,{flexDirection:"column",pt:"32px",display:s.watch("step")===4?"none":"flex",children:T.jsx($e,{minW:"360px",children:T.jsx(nke,{activeStep:i,steps:sA,onClickStep:o})})}),T.jsx(DCe,{...s,children:T.jsx(je.form,{onSubmit:h,children:T.jsx(mh,{mode:"wait",children:T.jsx(hu,{as:wu.div,pt:"calc(80px + 32px)",flexDirection:"column",gap:"32px",initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{type:"tween"},children:f==null?void 0:f[i+1]},i)})})})]})};var Nr=globalThis&&globalThis.__assign||function(){return Nr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Nr.apply(this,arguments)},Y7e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},vx=Symbol("NiceModalId"),x8={},kh=ve.createContext(x8),RB=ve.createContext(null),Ys={},Sg={},Z7e=0,Th=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},Q7e=function(){return"_nice_modal_"+Z7e++},AB=function(e,t){var n,r,i;switch(e===void 0&&(e=x8),t.type){case"nice-modal/show":{var a=t.payload,o=a.modalId,s=a.args;return Nr(Nr({},e),(n={},n[o]=Nr(Nr({},e[o]),{id:o,args:s,visible:!!Sg[o],delayVisible:!Sg[o]}),n))}case"nice-modal/hide":{var o=t.payload.modalId;return e[o]?Nr(Nr({},e),(r={},r[o]=Nr(Nr({},e[o]),{visible:!1}),r)):e}case"nice-modal/remove":{var o=t.payload.modalId,l=Nr({},e);return delete l[o],l}case"nice-modal/set-flags":{var c=t.payload,o=c.modalId,f=c.flags;return Nr(Nr({},e),(i={},i[o]=Nr(Nr({},e[o]),f),i))}default:return e}};function X7e(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}function J7e(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}function eTe(e){return{type:"nice-modal/hide",payload:{modalId:e}}}function tTe(e){return{type:"nice-modal/remove",payload:{modalId:e}}}var Bs={},Mf={},C8=function(e){return typeof e=="string"?e:(e[vx]||(e[vx]=Q7e()),e[vx])};function IB(e,t){var n=C8(e);if(typeof e!="string"&&!Ys[n]&&a2(n,e),Th(X7e(n,t)),!Bs[n]){var r,i,a=new Promise(function(o,s){r=o,i=s});Bs[n]={resolve:r,reject:i,promise:a}}return Bs[n].promise}function LB(e){var t=C8(e);if(Th(eTe(t)),delete Bs[t],!Mf[t]){var n,r,i=new Promise(function(a,o){n=a,r=o});Mf[t]={resolve:n,reject:r,promise:i}}return Mf[t].promise}var MB=function(e){Th(tTe(e)),delete Bs[e],delete Mf[e]},nTe=function(e,t){Th(J7e(e,t))};function i2(e,t){var n=w.useContext(kh),r=w.useContext(RB),i=null,a=e&&typeof e!="string";if(e?i=C8(e):i=r,!i)throw new Error("No modal id found in NiceModal.useModal.");var o=i;w.useEffect(function(){a&&!Ys[o]&&a2(o,e,t)},[a,o,e,t]);var s=n[o],l=w.useCallback(function(y){return IB(o,y)},[o]),c=w.useCallback(function(){return LB(o)},[o]),f=w.useCallback(function(){return MB(o)},[o]),h=w.useCallback(function(y){var m;(m=Bs[o])===null||m===void 0||m.resolve(y),delete Bs[o]},[o]),p=w.useCallback(function(y){var m;(m=Bs[o])===null||m===void 0||m.reject(y),delete Bs[o]},[o]),v=w.useCallback(function(y){var m;(m=Mf[o])===null||m===void 0||m.resolve(y),delete Mf[o]},[o]);return{id:o,args:s==null?void 0:s.args,visible:!!(s!=null&&s.visible),keepMounted:!!(s!=null&&s.keepMounted),show:l,hide:c,remove:f,resolve:h,reject:p,resolveHide:v}}var rTe=function(e){return function(t){var n,r=t.defaultVisible,i=t.keepMounted,a=t.id,o=Y7e(t,["defaultVisible","keepMounted","id"]),s=i2(a),l=s.args,c=s.show,f=w.useContext(kh),h=!!f[a];w.useEffect(function(){return r&&c(),Sg[a]=!0,function(){delete Sg[a]}},[a,c,r]),w.useEffect(function(){i&&nTe(a,{keepMounted:!0})},[a,i]);var p=(n=f[a])===null||n===void 0?void 0:n.delayVisible;return w.useEffect(function(){p&&c(l)},[p,l,c]),h?ve.createElement(RB.Provider,{value:a},ve.createElement(e,Nr({},o,l))):null}},a2=function(e,t,n){Ys[e]?Ys[e].props=n:Ys[e]={comp:t,props:n}},iTe=function(e){delete Ys[e]},DB=function(){var e=w.useContext(kh),t=Object.keys(e).filter(function(r){return!!e[r]});t.forEach(function(r){if(!Ys[r]&&!Sg[r]){console.warn("No modal found for id: "+r+". Please check the id or if it is registered or declared via JSX.");return}});var n=t.filter(function(r){return Ys[r]}).map(function(r){return Nr({id:r},Ys[r])});return ve.createElement(ve.Fragment,null,n.map(function(r){return ve.createElement(r.comp,Nr({key:r.id,id:r.id},r.props))}))},aTe=function(e){var t=e.children,n=w.useReducer(AB,x8),r=n[0];return Th=n[1],ve.createElement(kh.Provider,{value:r},t,ve.createElement(DB,null))},oTe=function(e){var t=e.children,n=e.dispatch,r=e.modals;return!n||!r?ve.createElement(aTe,null,t):(Th=n,ve.createElement(kh.Provider,{value:r},t,ve.createElement(DB,null)))},sTe=function(e){var t=e.id,n=e.component;return w.useEffect(function(){return a2(t,n),function(){iTe(t)}},[t,n]),null},lTe=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},uTe=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},cTe=function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},dTe=function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},xc={Provider:oTe,ModalDef:sTe,NiceModalContext:kh,create:rTe,register:a2,show:IB,hide:LB,remove:MB,useModal:i2,reducer:AB,antdModal:lTe,antdDrawer:uTe,muiDialog:cTe,bootstrapDialog:dTe},NB={exports:{}};/*!
     478  `},yke={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _ke(e){let{announcements:t=yke,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=vke}=e;const{announce:a,announcement:o}=pke(),s=t2("DndLiveRegion"),[l,c]=w.useState(!1);if(w.useEffect(()=>{c(!0)},[]),mke(w.useMemo(()=>({onDragStart(h){let{active:p}=h;a(t.onDragStart({active:p}))},onDragMove(h){let{active:p,over:v}=h;t.onDragMove&&a(t.onDragMove({active:p,over:v}))},onDragOver(h){let{active:p,over:v}=h;a(t.onDragOver({active:p,over:v}))},onDragEnd(h){let{active:p,over:v}=h;a(t.onDragEnd({active:p,over:v}))},onDragCancel(h){let{active:p,over:v}=h;a(t.onDragCancel({active:p,over:v}))}}),[a,t])),!l)return null;const f=ve.createElement(ve.Fragment,null,ve.createElement(dke,{id:r,value:i.draggable}),ve.createElement(hke,{id:s,announcement:o}));return n?Yo.createPortal(f,n):f}var Er;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Er||(Er={}));function I_(){}const Oo=Object.freeze({x:0,y:0});function bke(e,t){const n=A_(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Ske(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function wke(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function xke(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){const l=t.width*t.height,c=e.width*e.height,f=o*s,h=f/(l+c-f);return Number(h.toFixed(4))}return 0}const cB=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const a of r){const{id:o}=a,s=n.get(o);if(s){const l=xke(s,t);l>0&&i.push({id:o,data:{droppableContainer:a,value:l}})}}return i.sort(Ske)};function Cke(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function dB(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Oo}function Eke(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return i.reduce((o,s)=>({...o,top:o.top+e*s.y,bottom:o.bottom+e*s.y,left:o.left+e*s.x,right:o.right+e*s.x}),{...n})}}const kke=Eke(1);function fB(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Tke(e,t,n){const r=fB(t);if(!r)return e;const{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),f=i?e.width/i:e.width,h=a?e.height/a:e.height;return{width:f,height:h,top:c,right:l+f,bottom:c+h,left:l}}const Pke={ignoreTransform:!1};function av(e,t){t===void 0&&(t=Pke);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:f}=Ni(e).getComputedStyle(e);c&&(n=Tke(n,c,f))}const{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function QR(e){return av(e,{ignoreTransform:!0})}function Oke(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Rke(e,t){return t===void 0&&(t=Ni(e).getComputedStyle(e)),t.position==="fixed"}function Ake(e,t){t===void 0&&(t=Ni(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?n.test(a):!1})}function _8(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(v8(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!rv(i)||ake(i)||n.includes(i))return n;const a=Ni(e).getComputedStyle(i);return i!==e&&Ake(i,a)&&n.push(i),Rke(i,a)?n:r(i.parentNode)}return e?r(e):n}function hB(e){const[t]=_8(e,1);return t??null}function hx(e){return!Jb||!e?null:Ch(e)?e:g8(e)?v8(e)||e===Eh(e).scrollingElement?window:rv(e)?e:null:null}function pB(e){return Ch(e)?e.scrollX:e.scrollLeft}function mB(e){return Ch(e)?e.scrollY:e.scrollTop}function e5(e){return{x:pB(e),y:mB(e)}}var jr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(jr||(jr={}));function gB(e){return!Jb||!e?!1:e===document.scrollingElement}function vB(e){const t={x:0,y:0},n=gB(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:r,minScroll:t}}const Ike={x:.2,y:.2};function Lke(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=Ike);const{isTop:c,isBottom:f,isLeft:h,isRight:p}=vB(e),v={x:0,y:0},y={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+m.height?(v.y=jr.Backward,y.y=r*Math.abs((t.top+m.height-a)/m.height)):!f&&l>=t.bottom-m.height&&(v.y=jr.Forward,y.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!p&&s>=t.right-m.width?(v.x=jr.Forward,y.x=r*Math.abs((t.right-m.width-s)/m.width)):!h&&o<=t.left+m.width&&(v.x=jr.Backward,y.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:v,speed:y}}function Mke(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function yB(e){return e.reduce((t,n)=>Lf(t,e5(n)),Oo)}function Dke(e){return e.reduce((t,n)=>t+pB(n),0)}function Nke(e){return e.reduce((t,n)=>t+mB(n),0)}function _B(e,t){if(t===void 0&&(t=av),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);hB(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Fke=[["x",["left","right"],Dke],["y",["top","bottom"],Nke]];class b8{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=_8(n),i=yB(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of Fke)for(const l of o)Object.defineProperty(this,l,{get:()=>{const c=s(r),f=i[a]-c;return this.rect[l]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ym{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function $ke(e){const{EventTarget:t}=Ni(e);return e instanceof t?e:Eh(e)}function px(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var $a;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})($a||($a={}));function XR(e){e.preventDefault()}function zke(e){e.stopPropagation()}var kn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(kn||(kn={}));const bB={start:[kn.Space,kn.Enter],cancel:[kn.Esc],end:[kn.Space,kn.Enter]},jke=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case kn.Right:return{...n,x:n.x+25};case kn.Left:return{...n,x:n.x-25};case kn.Down:return{...n,y:n.y+25};case kn.Up:return{...n,y:n.y-25}}};class SB{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ym(Eh(n)),this.windowListeners=new ym(Ni(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($a.Resize,this.handleCancel),this.windowListeners.add($a.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add($a.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&_B(r),n(Oo)}handleKeyDown(t){if(y8(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:a=bB,coordinateGetter:o=jke,scrollBehavior:s="smooth"}=i,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,f=c?{x:c.left,y:c.top}:Oo;this.referenceCoordinates||(this.referenceCoordinates=f);const h=o(t,{active:n,context:r.current,currentCoordinates:f});if(h){const p=R_(h,f),v={x:0,y:0},{scrollableAncestors:y}=r.current;for(const m of y){const _=t.code,{isTop:b,isRight:S,isLeft:C,isBottom:E,maxScroll:R,minScroll:A}=vB(m),I=Mke(m),M={x:Math.min(_===kn.Right?I.right-I.width/2:I.right,Math.max(_===kn.Right?I.left:I.left+I.width/2,h.x)),y:Math.min(_===kn.Down?I.bottom-I.height/2:I.bottom,Math.max(_===kn.Down?I.top:I.top+I.height/2,h.y))},F=_===kn.Right&&!S||_===kn.Left&&!C,z=_===kn.Down&&!E||_===kn.Up&&!b;if(F&&M.x!==h.x){const Y=m.scrollLeft+p.x,W=_===kn.Right&&Y<=R.x||_===kn.Left&&Y>=A.x;if(W&&!p.y){m.scrollTo({left:Y,behavior:s});return}W?v.x=m.scrollLeft-Y:v.x=_===kn.Right?m.scrollLeft-R.x:m.scrollLeft-A.x,v.x&&m.scrollBy({left:-v.x,behavior:s});break}else if(z&&M.y!==h.y){const Y=m.scrollTop+p.y,W=_===kn.Down&&Y<=R.y||_===kn.Up&&Y>=A.y;if(W&&!p.x){m.scrollTo({top:Y,behavior:s});return}W?v.y=m.scrollTop-Y:v.y=_===kn.Down?m.scrollTop-R.y:m.scrollTop-A.y,v.y&&m.scrollBy({top:-v.y,behavior:s});break}}this.handleMove(t,Lf(R_(h,this.referenceCoordinates),v))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}SB.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=bB,onActivation:i}=t,{active:a}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function JR(e){return!!(e&&"distance"in e)}function eA(e){return!!(e&&"delay"in e)}class S8{constructor(t,n,r){var i;r===void 0&&(r=$ke(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:o}=a;this.props=t,this.events=n,this.document=Eh(o),this.documentListeners=new ym(this.document),this.listeners=new ym(r),this.windowListeners=new ym(Ni(o)),this.initialCoordinates=(i=A_(a))!=null?i:Oo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add($a.Resize,this.handleCancel),this.windowListeners.add($a.DragStart,XR),this.windowListeners.add($a.VisibilityChange,this.handleCancel),this.windowListeners.add($a.ContextMenu,XR),this.documentListeners.add($a.Keydown,this.handleKeydown),n){if(JR(n))return;if(eA(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add($a.Click,zke,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($a.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const l=(n=A_(t))!=null?n:Oo,c=R_(i,l);if(!r&&s){if(eA(s))return px(c,s.tolerance)?this.handleCancel():void 0;if(JR(s))return s.tolerance!=null&&px(c,s.tolerance)?this.handleCancel():px(c,s.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),o(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===kn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Bke={move:{name:"pointermove"},end:{name:"pointerup"}};class wB extends S8{constructor(t){const{event:n}=t,r=Eh(n.target);super(t,Bke,r)}}wB.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Vke={move:{name:"mousemove"},end:{name:"mouseup"}};var t5;(function(e){e[e.RightClick=2]="RightClick"})(t5||(t5={}));class Uke extends S8{constructor(t){super(t,Vke,Eh(t.event.target))}}Uke.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===t5.RightClick?!1:(r==null||r({event:n}),!0)}}];const mx={move:{name:"touchmove"},end:{name:"touchend"}};class Hke extends S8{constructor(t){super(t,mx)}static setup(){return window.addEventListener(mx.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(mx.move.name,t)};function t(){}}}Hke.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var _m;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(_m||(_m={}));var L_;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(L_||(L_={}));function Wke(e){let{acceleration:t,activator:n=_m.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=L_.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:f,delta:h,threshold:p}=e;const v=Gke({delta:h,disabled:!a}),[y,m]=oke(),_=w.useRef({x:0,y:0}),b=w.useRef({x:0,y:0}),S=w.useMemo(()=>{switch(n){case _m.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case _m.DraggableRect:return i}},[n,i,l]),C=w.useRef(null),E=w.useCallback(()=>{const A=C.current;if(!A)return;const I=_.current.x*b.current.x,M=_.current.y*b.current.y;A.scrollBy(I,M)},[]),R=w.useMemo(()=>s===L_.TreeOrder?[...c].reverse():c,[s,c]);w.useEffect(()=>{if(!a||!c.length||!S){m();return}for(const A of R){if((r==null?void 0:r(A))===!1)continue;const I=c.indexOf(A),M=f[I];if(!M)continue;const{direction:F,speed:z}=Lke(A,M,S,t,p);for(const Y of["x","y"])v[Y][F[Y]]||(z[Y]=0,F[Y]=0);if(z.x>0||z.y>0){m(),C.current=A,y(E,o),_.current=z,b.current=F;return}}_.current={x:0,y:0},b.current={x:0,y:0},m()},[t,E,r,m,a,o,JSON.stringify(S),JSON.stringify(v),y,c,R,f,JSON.stringify(p)])}const qke={x:{[jr.Backward]:!1,[jr.Forward]:!1},y:{[jr.Backward]:!1,[jr.Forward]:!1}};function Gke(e){let{delta:t,disabled:n}=e;const r=O_(t);return iv(i=>{if(n||!r||!i)return qke;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[jr.Backward]:i.x[jr.Backward]||a.x===-1,[jr.Forward]:i.x[jr.Forward]||a.x===1},y:{[jr.Backward]:i.y[jr.Backward]||a.y===-1,[jr.Forward]:i.y[jr.Forward]||a.y===1}}},[n,t,r])}function Kke(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return iv(i=>{var a;return t===null?null:(a=r??i)!=null?a:null},[r,t])}function Yke(e,t){return w.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...a]},[]),[e,t])}var bg;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(bg||(bg={}));var n5;(function(e){e.Optimized="optimized"})(n5||(n5={}));const tA=new Map;function Zke(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,o]=w.useState(null),{frequency:s,measure:l,strategy:c}=i,f=w.useRef(e),h=_(),p=_g(h),v=w.useCallback(function(b){b===void 0&&(b=[]),!p.current&&o(S=>S===null?b:S.concat(b.filter(C=>!S.includes(C))))},[p]),y=w.useRef(null),m=iv(b=>{if(h&&!n)return tA;if(!b||b===tA||f.current!==e||a!=null){const S=new Map;for(let C of e){if(!C)continue;if(a&&a.length>0&&!a.includes(C.id)&&C.rect.current){S.set(C.id,C.rect.current);continue}const E=C.node.current,R=E?new b8(l(E),E):null;C.rect.current=R,R&&S.set(C.id,R)}return S}return b},[e,a,n,h,l]);return w.useEffect(()=>{f.current=e},[e]),w.useEffect(()=>{h||v()},[n,h]),w.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),w.useEffect(()=>{h||typeof s!="number"||y.current!==null||(y.current=setTimeout(()=>{v(),y.current=null},s))},[s,h,v,...r]),{droppableRects:m,measureDroppableContainers:v,measuringScheduled:a!=null};function _(){switch(c){case bg.Always:return!1;case bg.BeforeDragging:return n;default:return!n}}}function w8(e,t){return iv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Qke(e,t){return w8(e,t)}function Xke(e){let{callback:t,disabled:n}=e;const r=e2(t),i=w.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return w.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function n2(e){let{callback:t,disabled:n}=e;const r=e2(t),i=w.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return w.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Jke(e){return new b8(av(e),e)}function nA(e,t,n){t===void 0&&(t=Jke);const[r,i]=w.useReducer(s,null),a=Xke({callback(l){if(e)for(const c of l){const{type:f,target:h}=c;if(f==="childList"&&h instanceof HTMLElement&&h.contains(e)){i();break}}}}),o=n2({callback:i});return ds(()=>{i(),e?(o==null||o.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[e]),r;function s(l){if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const f=t(e);return JSON.stringify(l)===JSON.stringify(f)?l:f}}function e7e(e){const t=w8(e);return dB(e,t)}const rA=[];function t7e(e){const t=w.useRef(e),n=iv(r=>e?r&&r!==rA&&e&&t.current&&e.parentNode===t.current.parentNode?r:_8(e):rA,[e]);return w.useEffect(()=>{t.current=e},[e]),n}function n7e(e){const[t,n]=w.useState(null),r=w.useRef(e),i=w.useCallback(a=>{const o=hx(a.target);o&&n(s=>s?(s.set(o,e5(o)),new Map(s)):null)},[]);return w.useEffect(()=>{const a=r.current;if(e!==a){o(a);const s=e.map(l=>{const c=hx(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,e5(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(l=>{const c=hx(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),w.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>Lf(a,o),Oo):yB(e):Oo,[e,t])}function iA(e,t){t===void 0&&(t=[]);const n=w.useRef(null);return w.useEffect(()=>{n.current=null},t),w.useEffect(()=>{const r=e!==Oo;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?R_(e,n.current):Oo}function r7e(e){w.useEffect(()=>{if(!Jb)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function i7e(e,t){return w.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}function xB(e){return w.useMemo(()=>e?Oke(e):null,[e])}const gx=[];function a7e(e,t){t===void 0&&(t=av);const[n]=e,r=xB(n?Ni(n):null),[i,a]=w.useReducer(s,gx),o=n2({callback:a});return e.length>0&&i===gx&&a(),ds(()=>{e.length?e.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),a())},[e]),i;function s(){return e.length?e.map(l=>gB(l)?r:new b8(t(l),l)):gx}}function CB(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return rv(t)?t:e}function o7e(e){let{measure:t}=e;const[n,r]=w.useState(null),i=w.useCallback(c=>{for(const{target:f}of c)if(rv(f)){r(h=>{const p=t(f);return h?{...h,width:p.width,height:p.height}:p});break}},[t]),a=n2({callback:i}),o=w.useCallback(c=>{const f=CB(c);a==null||a.disconnect(),f&&(a==null||a.observe(f)),r(f?t(f):null)},[t,a]),[s,l]=P_(o);return w.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const s7e=[{sensor:wB,options:{}},{sensor:SB,options:{}}],l7e={current:{}},Dy={draggable:{measure:QR},droppable:{measure:QR,strategy:bg.WhileDragging,frequency:n5.Optimized},dragOverlay:{measure:av}};class bm extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const u7e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new bm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:I_},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Dy,measureDroppableContainers:I_,windowRect:null,measuringScheduled:!1},EB={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:I_,draggableNodes:new Map,over:null,measureDroppableContainers:I_},ov=w.createContext(EB),kB=w.createContext(u7e);function c7e(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new bm}}}function d7e(e,t){switch(t.type){case Er.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Er.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Er.DragEnd:case Er.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Er.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new bm(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Er.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new bm(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Er.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new bm(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function f7e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=w.useContext(ov),a=O_(r),o=O_(n==null?void 0:n.id);return w.useEffect(()=>{if(!t&&!r&&a&&o!=null){if(!y8(a)||document.activeElement===a.target)return;const s=i.get(o);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const f of[l.current,c.current]){if(!f)continue;const h=uke(f);if(h){h.focus();break}}})}},[r,t,i,o,a]),null}function TB(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...r}),n):n}function h7e(e){return w.useMemo(()=>({draggable:{...Dy.draggable,...e==null?void 0:e.draggable},droppable:{...Dy.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Dy.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function p7e(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=w.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;ds(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const f=n(c),h=dB(f,r);if(o||(h.x=0),s||(h.y=0),a.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const p=hB(c);p&&p.scrollBy({top:h.y,left:h.x})}},[t,o,s,r,n])}const r2=w.createContext({...Oo,scaleX:1,scaleY:1});var Bl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Bl||(Bl={}));const m7e=w.memo(function(t){var n,r,i,a;let{id:o,accessibility:s,autoScroll:l=!0,children:c,sensors:f=s7e,collisionDetection:h=cB,measuring:p,modifiers:v,...y}=t;const m=w.useReducer(d7e,void 0,c7e),[_,b]=m,[S,C]=gke(),[E,R]=w.useState(Bl.Uninitialized),A=E===Bl.Initialized,{draggable:{active:I,nodes:M,translate:F},droppable:{containers:z}}=_,Y=I?M.get(I):null,W=w.useRef({initial:null,translated:null}),q=w.useMemo(()=>{var De;return I!=null?{id:I,data:(De=Y==null?void 0:Y.data)!=null?De:l7e,rect:W}:null},[I,Y]),ae=w.useRef(null),[ee,ce]=w.useState(null),[ue,J]=w.useState(null),me=_g(y,Object.values(y)),we=t2("DndDescribedBy",o),Ce=w.useMemo(()=>z.getEnabled(),[z]),Ee=h7e(p),{droppableRects:xe,measureDroppableContainers:ye,measuringScheduled:Le}=Zke(Ce,{dragging:A,dependencies:[F.x,F.y],config:Ee.droppable}),Ae=Kke(M,I),it=w.useMemo(()=>ue?A_(ue):null,[ue]),Ye=Ze(),nt=Qke(Ae,Ee.draggable.measure);p7e({activeNode:I?M.get(I):null,config:Ye.layoutShiftCompensation,initialRect:nt,measure:Ee.draggable.measure});const wt=nA(Ae,Ee.draggable.measure,nt),Dt=nA(Ae?Ae.parentElement:null),Nt=w.useRef({activatorEvent:null,active:null,activeNode:Ae,collisionRect:null,collisions:null,droppableRects:xe,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Sn=z.getNodeFor((n=Nt.current.over)==null?void 0:n.id),Yt=o7e({measure:Ee.dragOverlay.measure}),Te=(r=Yt.nodeRef.current)!=null?r:Ae,yt=A?(i=Yt.rect)!=null?i:wt:null,B=!!(Yt.nodeRef.current&&Yt.rect),X=e7e(B?null:wt),oe=xB(Te?Ni(Te):null),Se=t7e(A?Sn??Ae:null),_e=a7e(Se),ge=TB(v,{transform:{x:F.x-X.x,y:F.y-X.y,scaleX:1,scaleY:1},activatorEvent:ue,active:q,activeNodeRect:wt,containerNodeRect:Dt,draggingNodeRect:yt,over:Nt.current.over,overlayNodeRect:Yt.rect,scrollableAncestors:Se,scrollableAncestorRects:_e,windowRect:oe}),Ie=it?Lf(it,F):null,Ft=n7e(Se),Ge=iA(Ft),Kn=iA(Ft,[wt]),Dn=Lf(ge,Ge),rn=yt?kke(yt,ge):null,ur=q&&rn?h({active:q,collisionRect:rn,droppableRects:xe,droppableContainers:Ce,pointerCoordinates:Ie}):null,ti=wke(ur,"id"),[Yn,ni]=w.useState(null),Ur=B?ge:Lf(ge,Kn),te=Cke(Ur,(a=Yn==null?void 0:Yn.rect)!=null?a:null,wt),ie=w.useCallback((De,Oe)=>{let{sensor:gt,options:It}=Oe;if(ae.current==null)return;const mt=M.get(ae.current);if(!mt)return;const Tt=De.nativeEvent,$t=new gt({active:ae.current,activeNode:mt,event:Tt,options:It,context:Nt,onStart(Rn){const An=ae.current;if(An==null)return;const dr=M.get(An);if(!dr)return;const{onDragStart:fr}=me.current,jn={active:{id:An,data:dr.data,rect:W}};Yo.unstable_batchedUpdates(()=>{fr==null||fr(jn),R(Bl.Initializing),b({type:Er.DragStart,initialCoordinates:Rn,active:An}),S({type:"onDragStart",event:jn})})},onMove(Rn){b({type:Er.DragMove,coordinates:Rn})},onEnd:cr(Er.DragEnd),onCancel:cr(Er.DragCancel)});Yo.unstable_batchedUpdates(()=>{ce($t),J(De.nativeEvent)});function cr(Rn){return async function(){const{active:dr,collisions:fr,over:jn,scrollAdjustedTranslate:na}=Nt.current;let vi=null;if(dr&&na){const{cancelDrop:hr}=me.current;vi={activatorEvent:Tt,active:dr,collisions:fr,delta:na,over:jn},Rn===Er.DragEnd&&typeof hr=="function"&&await Promise.resolve(hr(vi))&&(Rn=Er.DragCancel)}ae.current=null,Yo.unstable_batchedUpdates(()=>{b({type:Rn}),R(Bl.Uninitialized),ni(null),ce(null),J(null);const hr=Rn===Er.DragEnd?"onDragEnd":"onDragCancel";if(vi){const ra=me.current[hr];ra==null||ra(vi),S({type:hr,event:vi})}})}}},[M]),he=w.useCallback((De,Oe)=>(gt,It)=>{const mt=gt.nativeEvent,Tt=M.get(It);if(ae.current!==null||!Tt||mt.dndKit||mt.defaultPrevented)return;const $t={active:Tt};De(gt,Oe.options,$t)===!0&&(mt.dndKit={capturedBy:Oe.sensor},ae.current=It,ie(gt,Oe))},[M,ie]),Me=Yke(f,he);r7e(f),ds(()=>{wt&&E===Bl.Initializing&&R(Bl.Initialized)},[wt,E]),w.useEffect(()=>{const{onDragMove:De}=me.current,{active:Oe,activatorEvent:gt,collisions:It,over:mt}=Nt.current;if(!Oe||!gt)return;const Tt={active:Oe,activatorEvent:gt,collisions:It,delta:{x:Dn.x,y:Dn.y},over:mt};Yo.unstable_batchedUpdates(()=>{De==null||De(Tt),S({type:"onDragMove",event:Tt})})},[Dn.x,Dn.y]),w.useEffect(()=>{const{active:De,activatorEvent:Oe,collisions:gt,droppableContainers:It,scrollAdjustedTranslate:mt}=Nt.current;if(!De||ae.current==null||!Oe||!mt)return;const{onDragOver:Tt}=me.current,$t=It.get(ti),cr=$t&&$t.rect.current?{id:$t.id,rect:$t.rect.current,data:$t.data,disabled:$t.disabled}:null,Rn={active:De,activatorEvent:Oe,collisions:gt,delta:{x:mt.x,y:mt.y},over:cr};Yo.unstable_batchedUpdates(()=>{ni(cr),Tt==null||Tt(Rn),S({type:"onDragOver",event:Rn})})},[ti]),ds(()=>{Nt.current={activatorEvent:ue,active:q,activeNode:Ae,collisionRect:rn,collisions:ur,droppableRects:xe,draggableNodes:M,draggingNode:Te,draggingNodeRect:yt,droppableContainers:z,over:Yn,scrollableAncestors:Se,scrollAdjustedTranslate:Dn},W.current={initial:yt,translated:rn}},[q,Ae,ur,rn,M,Te,yt,xe,z,Yn,Se,Dn]),Wke({...Ye,delta:F,draggingRect:rn,pointerCoordinates:Ie,scrollableAncestors:Se,scrollableAncestorRects:_e});const st=w.useMemo(()=>({active:q,activeNode:Ae,activeNodeRect:wt,activatorEvent:ue,collisions:ur,containerNodeRect:Dt,dragOverlay:Yt,draggableNodes:M,droppableContainers:z,droppableRects:xe,over:Yn,measureDroppableContainers:ye,scrollableAncestors:Se,scrollableAncestorRects:_e,measuringConfiguration:Ee,measuringScheduled:Le,windowRect:oe}),[q,Ae,wt,ue,ur,Dt,Yt,M,z,xe,Yn,ye,Se,_e,Ee,Le,oe]),et=w.useMemo(()=>({activatorEvent:ue,activators:Me,active:q,activeNodeRect:wt,ariaDescribedById:{draggable:we},dispatch:b,draggableNodes:M,over:Yn,measureDroppableContainers:ye}),[ue,Me,q,wt,b,we,M,Yn,ye]);return ve.createElement(uB.Provider,{value:C},ve.createElement(ov.Provider,{value:et},ve.createElement(kB.Provider,{value:st},ve.createElement(r2.Provider,{value:te},c)),ve.createElement(f7e,{disabled:(s==null?void 0:s.restoreFocus)===!1})),ve.createElement(_ke,{...s,hiddenTextDescribedById:we}));function Ze(){const De=(ee==null?void 0:ee.autoScrollEnabled)===!1,Oe=typeof l=="object"?l.enabled===!1:l===!1,gt=A&&!De&&!Oe;return typeof l=="object"?{...l,enabled:gt}:{enabled:gt}}}),g7e=w.createContext(null),aA="button",v7e="Droppable";function y7e(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=t2(v7e),{activators:o,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:f,draggableNodes:h,over:p}=w.useContext(ov),{role:v=aA,roleDescription:y="draggable",tabIndex:m=0}=i??{},_=(l==null?void 0:l.id)===t,b=w.useContext(_?r2:g7e),[S,C]=P_(),[E,R]=P_(),A=i7e(o,t),I=_g(n);ds(()=>(h.set(t,{id:t,key:a,node:S,activatorNode:E,data:I}),()=>{const F=h.get(t);F&&F.key===a&&h.delete(t)}),[h,t]);const M=w.useMemo(()=>({role:v,tabIndex:m,"aria-disabled":r,"aria-pressed":_&&v===aA?!0:void 0,"aria-roledescription":y,"aria-describedby":f.draggable}),[r,v,m,_,y,f.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:M,isDragging:_,listeners:r?void 0:A,node:S,over:p,setNodeRef:C,setActivatorNodeRef:R,transform:b}}function _7e(){return w.useContext(kB)}const b7e="Droppable",S7e={timeout:25};function w7e(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=t2(b7e),{active:o,dispatch:s,over:l,measureDroppableContainers:c}=w.useContext(ov),f=w.useRef({disabled:n}),h=w.useRef(!1),p=w.useRef(null),v=w.useRef(null),{disabled:y,updateMeasurementsFor:m,timeout:_}={...S7e,...i},b=_g(m??r),S=w.useCallback(()=>{if(!h.current){h.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),v.current=null},_)},[_]),C=n2({callback:S,disabled:y||!o}),E=w.useCallback((M,F)=>{C&&(F&&(C.unobserve(F),h.current=!1),M&&C.observe(M))},[C]),[R,A]=P_(E),I=_g(t);return w.useEffect(()=>{!C||!R.current||(C.disconnect(),h.current=!1,C.observe(R.current))},[R,C]),ds(()=>(s({type:Er.RegisterDroppable,element:{id:r,key:a,disabled:n,node:R,rect:p,data:I}}),()=>s({type:Er.UnregisterDroppable,key:a,id:r})),[r]),w.useEffect(()=>{n!==f.current.disabled&&(s({type:Er.SetDroppableDisabled,id:r,key:a,disabled:n}),f.current.disabled=n)},[r,a,n,s]),{active:o,rect:p,isOver:(l==null?void 0:l.id)===r,node:R,over:l,setNodeRef:A}}function x7e(e){let{animation:t,children:n}=e;const[r,i]=w.useState(null),[a,o]=w.useState(null),s=O_(n);return!n&&!r&&s&&i(s),ds(()=>{if(!a)return;const l=r==null?void 0:r.key,c=r==null?void 0:r.props.id;if(l==null||c==null){i(null);return}Promise.resolve(t(c,a)).then(()=>{i(null)})},[t,r,a]),ve.createElement(ve.Fragment,null,n,r?w.cloneElement(r,{ref:o}):null)}const C7e={x:0,y:0,scaleX:1,scaleY:1};function E7e(e){let{children:t}=e;return ve.createElement(ov.Provider,{value:EB},ve.createElement(r2.Provider,{value:C7e},t))}const k7e={position:"fixed",touchAction:"none"},T7e=e=>y8(e)?"transform 250ms ease":void 0,P7e=w.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:l,transform:c,transition:f=T7e}=e;if(!s)return null;const h=i?c:{...c,scaleX:1,scaleY:1},p={...k7e,width:s.width,height:s.height,top:s.top,left:s.left,transform:uh.Transform.toString(h),transformOrigin:i&&r?bke(r,s):void 0,transition:typeof f=="function"?f(r):f,...l};return ve.createElement(n,{className:o,style:p,ref:t},a)}),O7e=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[s,l]of Object.entries(a.active))l!==void 0&&(i[s]=n.node.style.getPropertyValue(s),n.node.style.setProperty(s,l));if(a!=null&&a.dragOverlay)for(const[s,l]of Object.entries(a.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,c]of Object.entries(i))n.node.style.setProperty(l,c);o!=null&&o.active&&n.node.classList.remove(o.active)}},R7e=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:uh.Transform.toString(t)},{transform:uh.Transform.toString(n)}]},A7e={duration:250,easing:"ease",keyframes:R7e,sideEffects:O7e({styles:{active:{opacity:"0"}}})};function I7e(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return e2((a,o)=>{if(t===null)return;const s=n.get(a);if(!s)return;const l=s.node.current;if(!l)return;const c=CB(o);if(!c)return;const{transform:f}=Ni(o).getComputedStyle(o),h=fB(f);if(!h)return;const p=typeof t=="function"?t:L7e(t);return _B(l,i.draggable.measure),p({active:{id:a,data:s.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:h})})}function L7e(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...A7e,...e};return a=>{let{active:o,dragOverlay:s,transform:l,...c}=a;if(!t)return;const f={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},h={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},p={x:l.x-f.x,y:l.y-f.y,...h},v=i({...c,active:o,dragOverlay:s,transform:{initial:l,final:p}}),[y]=v,m=v[v.length-1];if(JSON.stringify(y)===JSON.stringify(m))return;const _=r==null?void 0:r({active:o,dragOverlay:s,...c}),b=s.node.animate(v,{duration:t,easing:n,fill:"forwards"});return new Promise(S=>{b.onfinish=()=>{_==null||_(),S()}})}}let oA=0;function M7e(e){return w.useMemo(()=>{if(e!=null)return oA++,oA},[e])}const D7e=ve.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:a,modifiers:o,wrapperElement:s="div",className:l,zIndex:c=999}=e;const{activatorEvent:f,active:h,activeNodeRect:p,containerNodeRect:v,draggableNodes:y,droppableContainers:m,dragOverlay:_,over:b,measuringConfiguration:S,scrollableAncestors:C,scrollableAncestorRects:E,windowRect:R}=_7e(),A=w.useContext(r2),I=M7e(h==null?void 0:h.id),M=TB(o,{activatorEvent:f,active:h,activeNodeRect:p,containerNodeRect:v,draggingNodeRect:_.rect,over:b,overlayNodeRect:_.rect,scrollableAncestors:C,scrollableAncestorRects:E,transform:A,windowRect:R}),F=w8(p),z=I7e({config:r,draggableNodes:y,droppableContainers:m,measuringConfiguration:S}),Y=F?_.setRef:void 0;return ve.createElement(E7e,null,ve.createElement(x7e,{animation:z},h&&I?ve.createElement(P7e,{key:I,id:h.id,ref:Y,as:s,activatorEvent:f,adjustScale:t,className:l,transition:a,rect:F,style:{zIndex:c,...i},transform:M},n):null))}),N7e=()=>Ir({url:"clients/current/settings"}),F7e={getSwitcherSettings:N7e};function PB({customStyle:e={}}){var o,s;const t=Ao(),n=!!((o=t.data)!=null&&o.data.woo_version),{data:r}=wo({queryKey:[aB.getUserDefaultCurrency],queryFn:()=>My.getUserDefaultCurrency(),staleTime:1/0,enabled:n}),i=(s=t.data)==null?void 0:s.data.default_language,a=r==null?void 0:r.data;return T.jsxs(fi,{alignItems:"center",w:"fit-content",px:"12px",py:"10px",bg:"white",rounded:"4px",borderWidth:"0.5px",borderColor:"gray.200",shadow:"lg",cursor:"grab",transition:"0.2s all",gap:"12px",opacity:i||a?1:0,...e,children:[T.jsxs($g,{spacing:"8px",divider:T.jsx(o6,{borderColor:"#1A202C",opacity:"0.3"}),alignItems:"center",children:[T.jsxs(fi,{alignItems:"center",gap:"8px",children:[T.jsx(lxe,{code:(i==null?void 0:i.flag_code)||"en"}),T.jsx(Ot,{fontSize:"14px",color:"gray.800",children:i==null?void 0:i.name_en})]}),n&&T.jsxs(Ot,{fontSize:"14px",color:"gray.800",children:[a==null?void 0:a.code.toUpperCase()," ",(a==null?void 0:a.settings.symbol)&&` (${a==null?void 0:a.settings.symbol})`]})]}),T.jsx(Wt,{as:m3e,fill:"#1A202C",opacity:"0.3"})]})}const $7e=({title:e,index:t=0})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:a}=y7e({id:e,data:{title:e,index:t}}),o={transform:uh.Translate.toString(a)};return T.jsx(fi,{transform:o.transform,...r,...n,ref:i,children:T.jsx(PB,{})})},z7e={getSwitcherSettings:"getSwitcherSettings"},q0=e=>{const{items:t,title:n}=e,{setNodeRef:r,isOver:i,over:a}=w7e({id:n}),o=i&&(a==null?void 0:a.id)===n,s=t.length>0,l=()=>s?"transparent":o?"blue.600":"blue.100",c=()=>s?"transparent":o?"blue.50":"transparent";return T.jsxs($e,{ref:r,borderRadius:"8px",py:"10px",px:"12px",w:"260px",maxH:"62px",minH:"62px",borderWidth:"1px",borderStyle:"dashed",borderColor:l(),bg:c(),transition:"0.2s all",position:"relative",display:"flex",justifyContent:n.toLowerCase().includes("left")?"left":"right",alignItems:n.toLowerCase().includes("top")?"start":"end",children:[T.jsxs($e,{alignItems:n.toLowerCase().includes("left")?"start":"end",gap:"8px",w:"calc(100% - 24px)",position:"absolute",opacity:s?"0":"1",visibility:s?"hidden":"visible",transition:"0.1s all",display:"flex",flexDirection:"column",width:"auto",children:[T.jsx(v6,{width:"fit-content",colorScheme:"blue",variant:"solid",size:"sm",color:"blue.100",children:Gg.startCase(n).toUpperCase().replace(" ","-")}),T.jsx(Ot,{fontSize:"12px",color:"gray.500",lineHeight:"none",children:"Drag & drop the switcher here"})]}),T.jsx($e,{my:"-10px",mx:"-12px",children:t.map((f,h)=>T.jsx($7e,{title:f,index:h},h))})]})},j7e=Object.values(Dr),B7e=({onClickSkip:e})=>{const t=wh(),{data:n,status:r,isLoading:i}=wo({queryKey:[z7e.getSwitcherSettings],queryFn:()=>F7e.getSwitcherSettings()}),[a,o]=w.useState(),[s,l]=w.useState({[Dr.TOP_LEFT]:[],[Dr.TOP_RIGHT]:[],[Dr.BOTTOM_LEFT]:[],[Dr.BOTTOM_RIGHT]:[]});w.useEffect(()=>{var h,p;if(r!=="success")return;if(t.getValues("position")){l(v=>(v[t.getValues("position")||"top_right"]=["switcher"],{...v}));return}const f=((h=n==null?void 0:n.data)==null?void 0:h.switcher.position_settings.position)in j7e?(p=n==null?void 0:n.data)==null?void 0:p.switcher.position_settings.position:Dr.TOP_RIGHT;t.setValue("position",f),l(v=>(v[f]=["switcher"],{...v}))},[r]);const c=f=>{var v,y;const h=(v=f.over)==null?void 0:v.id,p=((y=f.active.data.current)==null?void 0:y.title)??"";l(m=>{if(!h)return m;const _=Object.entries(m).reduce((b,[S])=>({...b,[S]:S===h?[p]:[]}),{});return t.setValue("position",h),_}),o(null)};return T.jsxs(T.Fragment,{children:[T.jsxs($e,{textAlign:"center",children:[T.jsx(Ot,{lineHeight:"120%",as:"h1",fontSize:"30px",fontWeight:"600",pb:"16px",children:"Lastly, set up Switcher position"}),T.jsx(Ot,{as:"h2",color:"gray.500",children:T.jsx(x6,{i18nKey:"Drag and drop Switcher to your preferred location.",components:{"<br/>":T.jsx("br",{})}})})]}),T.jsx($e,{w:"full",h:"320px",position:"relative",children:T.jsxs($e,{bgImage:`url(${fxe})`,backgroundSize:"cover",h:"inherit",children:[T.jsx($e,{h:"57px"}),T.jsxs(m7e,{collisionDetection:cB,onDragStart:f=>{o(f.active.id.toString())},onDragEnd:c,children:[T.jsxs(a6,{templateColumns:"repeat(2, 1fr)",h:"calc(100% - 57px)",p:"24px",children:[T.jsx(Vp,{children:T.jsx(q0,{title:Dr.TOP_LEFT,items:s[Dr.TOP_LEFT]})}),T.jsx(Vp,{justifySelf:"end",children:T.jsx(q0,{title:Dr.TOP_RIGHT,items:s[Dr.TOP_RIGHT]})}),T.jsx(Vp,{justifySelf:"start",alignSelf:"end",children:T.jsx(q0,{title:Dr.BOTTOM_LEFT,items:s[Dr.BOTTOM_LEFT]})}),T.jsx(Vp,{justifySelf:"end",alignSelf:"end",children:T.jsx(q0,{title:Dr.BOTTOM_RIGHT,items:s[Dr.BOTTOM_RIGHT]})})]}),T.jsx(D7e,{children:a?T.jsx(PB,{customStyle:{boxShadow:"none"}}):null})]})]})}),T.jsxs($e,{maxW:"438px",w:"full",pt:"32px",children:[T.jsx(Jr,{w:"full",variant:"tc-solid-primary",size:"lg",type:"submit",isLoading:i,children:"Complete"}),T.jsx(Jr,{variant:"link",colorScheme:"blue",w:"full",mt:"16px",fontWeight:500,onClick:e,children:"Let me turn on Switcher later"})]})]})},sA=[{title:"Language"},{title:"Currency"},{title:"Switcher"}];var OB=(e=>(e[e.LANGUAGE=1]="LANGUAGE",e[e.CURRENCY=2]="CURRENCY",e[e.SWITCHER=3]="SWITCHER",e[e.PREVIEW=4]="PREVIEW",e))(OB||{});const V7e=Ri.object({step:Ri.nativeEnum(OB)}),U7e=Ri.object({step:Ri.literal(1),basic:Ri.array(Ri.string()).min(1,"You must select at least one language first.")}),H7e=Ri.object({step:Ri.literal(2),codes:Ri.array(Ri.string()).min(1,"You must select at least one currency first.")}),W7e=Ri.object({step:Ri.literal(3),position:Ri.enum([Dr.TOP_LEFT,Dr.TOP_RIGHT,Dr.BOTTOM_LEFT,Dr.BOTTOM_RIGHT]).optional()}),q7e=Ri.discriminatedUnion("step",[U7e,H7e,W7e]),G7e=Ri.intersection(q7e,V7e),K7e=()=>{var p,v,y;const e=Ao(),t=qg(),n=typeof((p=e==null?void 0:e.data)==null?void 0:p.data.step_onboarding)=="number"?(v=e==null?void 0:e.data)==null?void 0:v.data.step_onboarding:0,r=!!((y=e==null?void 0:e.data)!=null&&y.data.woo_version),{activeStep:i,goToNext:a,setActiveStep:o}=Sge({index:n,count:sA.length}),s=Y3e({resolver:e5e(G7e),mode:"all",defaultValues:{advanced:[],basic:[],codes:[],position:void 0,step:1}});w.useEffect(()=>{s.setValue("step",i+1),s.clearErrors()},[i]),w.useEffect(()=>{var m;return(m=document.querySelector(".wp-toolbar"))==null||m.classList.add("tc-hide-wp-ui"),()=>{var _;(_=document.querySelector(".wp-toolbar"))==null||_.classList.remove("tc-hide-wp-ui")}},[]);const{mutate:l}=i$({mutationFn:m=>e4e.updateOnboarding(m)}),c=()=>{const m=s.getValues("step");if(l({step:m}),m===3){const _=new URLSearchParams({onboardingSuccess:"true"});t({pathname:kr.ROUTES.HOME,search:_.toString()}),e.refetch();return}a(),s.clearErrors()},f={1:T.jsx(tke,{onClickSkip:c}),2:T.jsx(GEe,{onClickSkip:c}),3:T.jsx(B7e,{onClickSkip:c}),4:T.jsx(ike,{})},h=m=>{m.preventDefault(),s.handleSubmit(_=>{const b={1:{basic:_.basic},2:{codes:_.codes},3:{position:_.position}};l({step:_.step,...b[_.step]}),a()},_=>{var b;(b=_.codes)!=null&&b.message&&!r&&c()})()};return T.jsxs(T.Fragment,{children:[T.jsx(hu,{flexDirection:"column",pt:"32px",display:s.watch("step")===4?"none":"flex",children:T.jsx($e,{minW:"360px",children:T.jsx(nke,{activeStep:i,steps:sA,onClickStep:o})})}),T.jsx(D3e,{...s,children:T.jsx(je.form,{onSubmit:h,children:T.jsx(mh,{mode:"wait",children:T.jsx(hu,{as:wu.div,pt:"calc(80px + 32px)",flexDirection:"column",gap:"32px",initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{type:"tween"},children:f==null?void 0:f[i+1]},i)})})})]})};var Nr=globalThis&&globalThis.__assign||function(){return Nr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Nr.apply(this,arguments)},Y7e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},vx=Symbol("NiceModalId"),x8={},kh=ve.createContext(x8),RB=ve.createContext(null),Ys={},Sg={},Z7e=0,Th=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},Q7e=function(){return"_nice_modal_"+Z7e++},AB=function(e,t){var n,r,i;switch(e===void 0&&(e=x8),t.type){case"nice-modal/show":{var a=t.payload,o=a.modalId,s=a.args;return Nr(Nr({},e),(n={},n[o]=Nr(Nr({},e[o]),{id:o,args:s,visible:!!Sg[o],delayVisible:!Sg[o]}),n))}case"nice-modal/hide":{var o=t.payload.modalId;return e[o]?Nr(Nr({},e),(r={},r[o]=Nr(Nr({},e[o]),{visible:!1}),r)):e}case"nice-modal/remove":{var o=t.payload.modalId,l=Nr({},e);return delete l[o],l}case"nice-modal/set-flags":{var c=t.payload,o=c.modalId,f=c.flags;return Nr(Nr({},e),(i={},i[o]=Nr(Nr({},e[o]),f),i))}default:return e}};function X7e(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}function J7e(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}function eTe(e){return{type:"nice-modal/hide",payload:{modalId:e}}}function tTe(e){return{type:"nice-modal/remove",payload:{modalId:e}}}var Bs={},Mf={},C8=function(e){return typeof e=="string"?e:(e[vx]||(e[vx]=Q7e()),e[vx])};function IB(e,t){var n=C8(e);if(typeof e!="string"&&!Ys[n]&&a2(n,e),Th(X7e(n,t)),!Bs[n]){var r,i,a=new Promise(function(o,s){r=o,i=s});Bs[n]={resolve:r,reject:i,promise:a}}return Bs[n].promise}function LB(e){var t=C8(e);if(Th(eTe(t)),delete Bs[t],!Mf[t]){var n,r,i=new Promise(function(a,o){n=a,r=o});Mf[t]={resolve:n,reject:r,promise:i}}return Mf[t].promise}var MB=function(e){Th(tTe(e)),delete Bs[e],delete Mf[e]},nTe=function(e,t){Th(J7e(e,t))};function i2(e,t){var n=w.useContext(kh),r=w.useContext(RB),i=null,a=e&&typeof e!="string";if(e?i=C8(e):i=r,!i)throw new Error("No modal id found in NiceModal.useModal.");var o=i;w.useEffect(function(){a&&!Ys[o]&&a2(o,e,t)},[a,o,e,t]);var s=n[o],l=w.useCallback(function(y){return IB(o,y)},[o]),c=w.useCallback(function(){return LB(o)},[o]),f=w.useCallback(function(){return MB(o)},[o]),h=w.useCallback(function(y){var m;(m=Bs[o])===null||m===void 0||m.resolve(y),delete Bs[o]},[o]),p=w.useCallback(function(y){var m;(m=Bs[o])===null||m===void 0||m.reject(y),delete Bs[o]},[o]),v=w.useCallback(function(y){var m;(m=Mf[o])===null||m===void 0||m.resolve(y),delete Mf[o]},[o]);return{id:o,args:s==null?void 0:s.args,visible:!!(s!=null&&s.visible),keepMounted:!!(s!=null&&s.keepMounted),show:l,hide:c,remove:f,resolve:h,reject:p,resolveHide:v}}var rTe=function(e){return function(t){var n,r=t.defaultVisible,i=t.keepMounted,a=t.id,o=Y7e(t,["defaultVisible","keepMounted","id"]),s=i2(a),l=s.args,c=s.show,f=w.useContext(kh),h=!!f[a];w.useEffect(function(){return r&&c(),Sg[a]=!0,function(){delete Sg[a]}},[a,c,r]),w.useEffect(function(){i&&nTe(a,{keepMounted:!0})},[a,i]);var p=(n=f[a])===null||n===void 0?void 0:n.delayVisible;return w.useEffect(function(){p&&c(l)},[p,l,c]),h?ve.createElement(RB.Provider,{value:a},ve.createElement(e,Nr({},o,l))):null}},a2=function(e,t,n){Ys[e]?Ys[e].props=n:Ys[e]={comp:t,props:n}},iTe=function(e){delete Ys[e]},DB=function(){var e=w.useContext(kh),t=Object.keys(e).filter(function(r){return!!e[r]});t.forEach(function(r){if(!Ys[r]&&!Sg[r]){console.warn("No modal found for id: "+r+". Please check the id or if it is registered or declared via JSX.");return}});var n=t.filter(function(r){return Ys[r]}).map(function(r){return Nr({id:r},Ys[r])});return ve.createElement(ve.Fragment,null,n.map(function(r){return ve.createElement(r.comp,Nr({key:r.id,id:r.id},r.props))}))},aTe=function(e){var t=e.children,n=w.useReducer(AB,x8),r=n[0];return Th=n[1],ve.createElement(kh.Provider,{value:r},t,ve.createElement(DB,null))},oTe=function(e){var t=e.children,n=e.dispatch,r=e.modals;return!n||!r?ve.createElement(aTe,null,t):(Th=n,ve.createElement(kh.Provider,{value:r},t,ve.createElement(DB,null)))},sTe=function(e){var t=e.id,n=e.component;return w.useEffect(function(){return a2(t,n),function(){iTe(t)}},[t,n]),null},lTe=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},uTe=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},cTe=function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},dTe=function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},xc={Provider:oTe,ModalDef:sTe,NiceModalContext:kh,create:rTe,register:a2,show:IB,hide:LB,remove:MB,useModal:i2,reducer:AB,antdModal:lTe,antdDrawer:uTe,muiDialog:cTe,bootstrapDialog:dTe},NB={exports:{}};/*!
    479479 * Pusher JavaScript Library v8.3.0
    480480 * https://pusher.com/
     
    483483 * Released under the MIT licence.
    484484 */(function(e,t){(function(r,i){e.exports=i()})(window,function(){return function(n){var r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return n[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=n,i.c=r,i.d=function(a,o,s){i.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:s})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,o){if(o&1&&(a=i(a)),o&8||o&4&&typeof a=="object"&&a&&a.__esModule)return a;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:a}),o&2&&typeof a!="string")for(var l in a)i.d(s,l,(function(c){return a[c]}).bind(null,l));return s},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="",i(i.s=2)}([function(n,r,i){var a=this&&this.__extends||function(){var m=function(_,b){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var E in C)C.hasOwnProperty(E)&&(S[E]=C[E])},m(_,b)};return function(_,b){m(_,b);function S(){this.constructor=_}_.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}}();Object.defineProperty(r,"__esModule",{value:!0});var o=256,s=function(){function m(_){_===void 0&&(_="="),this._paddingCharacter=_}return m.prototype.encodedLength=function(_){return this._paddingCharacter?(_+2)/3*4|0:(_*8+5)/6|0},m.prototype.encode=function(_){for(var b="",S=0;S<_.length-2;S+=3){var C=_[S]<<16|_[S+1]<<8|_[S+2];b+=this._encodeByte(C>>>3*6&63),b+=this._encodeByte(C>>>2*6&63),b+=this._encodeByte(C>>>1*6&63),b+=this._encodeByte(C>>>0*6&63)}var E=_.length-S;if(E>0){var C=_[S]<<16|(E===2?_[S+1]<<8:0);b+=this._encodeByte(C>>>3*6&63),b+=this._encodeByte(C>>>2*6&63),E===2?b+=this._encodeByte(C>>>1*6&63):b+=this._paddingCharacter||"",b+=this._paddingCharacter||""}return b},m.prototype.maxDecodedLength=function(_){return this._paddingCharacter?_/4*3|0:(_*6+7)/8|0},m.prototype.decodedLength=function(_){return this.maxDecodedLength(_.length-this._getPaddingLength(_))},m.prototype.decode=function(_){if(_.length===0)return new Uint8Array(0);for(var b=this._getPaddingLength(_),S=_.length-b,C=new Uint8Array(this.maxDecodedLength(S)),E=0,R=0,A=0,I=0,M=0,F=0,z=0;R<S-4;R+=4)I=this._decodeChar(_.charCodeAt(R+0)),M=this._decodeChar(_.charCodeAt(R+1)),F=this._decodeChar(_.charCodeAt(R+2)),z=this._decodeChar(_.charCodeAt(R+3)),C[E++]=I<<2|M>>>4,C[E++]=M<<4|F>>>2,C[E++]=F<<6|z,A|=I&o,A|=M&o,A|=F&o,A|=z&o;if(R<S-1&&(I=this._decodeChar(_.charCodeAt(R)),M=this._decodeChar(_.charCodeAt(R+1)),C[E++]=I<<2|M>>>4,A|=I&o,A|=M&o),R<S-2&&(F=this._decodeChar(_.charCodeAt(R+2)),C[E++]=M<<4|F>>>2,A|=F&o),R<S-3&&(z=this._decodeChar(_.charCodeAt(R+3)),C[E++]=F<<6|z,A|=z&o),A!==0)throw new Error("Base64Coder: incorrect characters for decoding");return C},m.prototype._encodeByte=function(_){var b=_;return b+=65,b+=25-_>>>8&0-65-26+97,b+=51-_>>>8&26-97-52+48,b+=61-_>>>8&52-48-62+43,b+=62-_>>>8&62-43-63+47,String.fromCharCode(b)},m.prototype._decodeChar=function(_){var b=o;return b+=(42-_&_-44)>>>8&-o+_-43+62,b+=(46-_&_-48)>>>8&-o+_-47+63,b+=(47-_&_-58)>>>8&-o+_-48+52,b+=(64-_&_-91)>>>8&-o+_-65+0,b+=(96-_&_-123)>>>8&-o+_-97+26,b},m.prototype._getPaddingLength=function(_){var b=0;if(this._paddingCharacter){for(var S=_.length-1;S>=0&&_[S]===this._paddingCharacter;S--)b++;if(_.length<4||b>2)throw new Error("Base64Coder: incorrect padding")}return b},m}();r.Coder=s;var l=new s;function c(m){return l.encode(m)}r.encode=c;function f(m){return l.decode(m)}r.decode=f;var h=function(m){a(_,m);function _(){return m!==null&&m.apply(this,arguments)||this}return _.prototype._encodeByte=function(b){var S=b;return S+=65,S+=25-b>>>8&0-65-26+97,S+=51-b>>>8&26-97-52+48,S+=61-b>>>8&52-48-62+45,S+=62-b>>>8&62-45-63+95,String.fromCharCode(S)},_.prototype._decodeChar=function(b){var S=o;return S+=(44-b&b-46)>>>8&-o+b-45+62,S+=(94-b&b-96)>>>8&-o+b-95+63,S+=(47-b&b-58)>>>8&-o+b-48+52,S+=(64-b&b-91)>>>8&-o+b-65+0,S+=(96-b&b-123)>>>8&-o+b-97+26,S},_}(s);r.URLSafeCoder=h;var p=new h;function v(m){return p.encode(m)}r.encodeURLSafe=v;function y(m){return p.decode(m)}r.decodeURLSafe=y,r.encodedLength=function(m){return l.encodedLength(m)},r.maxDecodedLength=function(m){return l.maxDecodedLength(m)},r.decodedLength=function(m){return l.decodedLength(m)}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a="utf8: invalid string",o="utf8: invalid source encoding";function s(f){for(var h=new Uint8Array(l(f)),p=0,v=0;v<f.length;v++){var y=f.charCodeAt(v);y<128?h[p++]=y:y<2048?(h[p++]=192|y>>6,h[p++]=128|y&63):y<55296?(h[p++]=224|y>>12,h[p++]=128|y>>6&63,h[p++]=128|y&63):(v++,y=(y&1023)<<10,y|=f.charCodeAt(v)&1023,y+=65536,h[p++]=240|y>>18,h[p++]=128|y>>12&63,h[p++]=128|y>>6&63,h[p++]=128|y&63)}return h}r.encode=s;function l(f){for(var h=0,p=0;p<f.length;p++){var v=f.charCodeAt(p);if(v<128)h+=1;else if(v<2048)h+=2;else if(v<55296)h+=3;else if(v<=57343){if(p>=f.length-1)throw new Error(a);p++,h+=4}else throw new Error(a)}return h}r.encodedLength=l;function c(f){for(var h=[],p=0;p<f.length;p++){var v=f[p];if(v&128){var y=void 0;if(v<224){if(p>=f.length)throw new Error(o);var m=f[++p];if((m&192)!==128)throw new Error(o);v=(v&31)<<6|m&63,y=128}else if(v<240){if(p>=f.length-1)throw new Error(o);var m=f[++p],_=f[++p];if((m&192)!==128||(_&192)!==128)throw new Error(o);v=(v&15)<<12|(m&63)<<6|_&63,y=2048}else if(v<248){if(p>=f.length-2)throw new Error(o);var m=f[++p],_=f[++p],b=f[++p];if((m&192)!==128||(_&192)!==128||(b&192)!==128)throw new Error(o);v=(v&15)<<18|(m&63)<<12|(_&63)<<6|b&63,y=65536}else throw new Error(o);if(v<y||v>=55296&&v<=57343)throw new Error(o);if(v>=65536){if(v>1114111)throw new Error(o);v-=65536,h.push(String.fromCharCode(55296|v>>10)),v=56320|v&1023}}h.push(String.fromCharCode(v))}return h.join("")}r.decode=c},function(n,r,i){n.exports=i(3).default},function(n,r,i){i.r(r);class a{constructor(x,P){this.lastId=0,this.prefix=x,this.name=P}create(x){this.lastId++;var P=this.lastId,$=this.prefix+P,V=this.name+"["+P+"]",se=!1,Pe=function(){se||(x.apply(null,arguments),se=!0)};return this[P]=Pe,{number:P,id:$,name:V,callback:Pe}}remove(x){delete this[x.number]}}var o=new a("_pusher_script_","Pusher.ScriptReceivers"),s={VERSION:"8.3.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},l=s;class c{constructor(x){this.options=x,this.receivers=x.receivers||o,this.loading={}}load(x,P,$){var V=this;if(V.loading[x]&&V.loading[x].length>0)V.loading[x].push($);else{V.loading[x]=[$];var se=Be.createScriptRequest(V.getPath(x,P)),Pe=V.receivers.create(function(Ke){if(V.receivers.remove(Pe),V.loading[x]){var vt=V.loading[x];delete V.loading[x];for(var Gt=function(Nn){Nn||se.cleanup()},Xt=0;Xt<vt.length;Xt++)vt[Xt](Ke,Gt)}});se.send(Pe)}}getRoot(x){var P,$=Be.getDocument().location.protocol;return x&&x.useTLS||$==="https:"?P=this.options.cdn_https:P=this.options.cdn_http,P.replace(/\/*$/,"")+"/"+this.options.version}getPath(x,P){return this.getRoot(P)+"/"+x+this.options.suffix+".js"}}var f=new a("_pusher_dependencies","Pusher.DependenciesReceivers"),h=new c({cdn_http:l.cdn_http,cdn_https:l.cdn_https,version:l.VERSION,suffix:l.dependency_suffix,receivers:f});const p={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var y={buildLogSuffix:function(O){const x="See:",P=p.urls[O];if(!P)return"";let $;return P.fullUrl?$=P.fullUrl:P.path&&($=p.baseUrl+P.path),$?`${x} ${$}`:""}},m;(function(O){O.UserAuthentication="user-authentication",O.ChannelAuthorization="channel-authorization"})(m||(m={}));class _ extends Error{constructor(x){super(x),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(x){super(x),Object.setPrototypeOf(this,new.target.prototype)}}class S extends Error{constructor(x){super(x),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(x){super(x),Object.setPrototypeOf(this,new.target.prototype)}}class E extends Error{constructor(x){super(x),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(x){super(x),Object.setPrototypeOf(this,new.target.prototype)}}class A extends Error{constructor(x){super(x),Object.setPrototypeOf(this,new.target.prototype)}}class I extends Error{constructor(x){super(x),Object.setPrototypeOf(this,new.target.prototype)}}class M extends Error{constructor(x,P){super(P),this.status=x,Object.setPrototypeOf(this,new.target.prototype)}}var z=function(O,x,P,$,V){const se=Be.createXHR();se.open("POST",P.endpoint,!0),se.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var Pe in P.headers)se.setRequestHeader(Pe,P.headers[Pe]);if(P.headersProvider!=null){let Ke=P.headersProvider();for(var Pe in Ke)se.setRequestHeader(Pe,Ke[Pe])}return se.onreadystatechange=function(){if(se.readyState===4)if(se.status===200){let Ke,vt=!1;try{Ke=JSON.parse(se.responseText),vt=!0}catch{V(new M(200,`JSON returned from ${$.toString()} endpoint was invalid, yet status code was 200. Data was: ${se.responseText}`),null)}vt&&V(null,Ke)}else{let Ke="";switch($){case m.UserAuthentication:Ke=y.buildLogSuffix("authenticationEndpoint");break;case m.ChannelAuthorization:Ke=`Clients must be authorized to join private or presence channels. ${y.buildLogSuffix("authorizationEndpoint")}`;break}V(new M(se.status,`Unable to retrieve auth string from ${$.toString()} endpoint - received status: ${se.status} from ${P.endpoint}. ${Ke}`),null)}},se.send(x),se};function Y(O){return ue(ee(O))}var W=String.fromCharCode,q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ae=function(O){var x=O.charCodeAt(0);return x<128?O:x<2048?W(192|x>>>6)+W(128|x&63):W(224|x>>>12&15)+W(128|x>>>6&63)+W(128|x&63)},ee=function(O){return O.replace(/[^\x00-\x7F]/g,ae)},ce=function(O){var x=[0,2,1][O.length%3],P=O.charCodeAt(0)<<16|(O.length>1?O.charCodeAt(1):0)<<8|(O.length>2?O.charCodeAt(2):0),$=[q.charAt(P>>>18),q.charAt(P>>>12&63),x>=2?"=":q.charAt(P>>>6&63),x>=1?"=":q.charAt(P&63)];return $.join("")},ue=window.btoa||function(O){return O.replace(/[\s\S]{1,3}/g,ce)};class J{constructor(x,P,$,V){this.clear=P,this.timer=x(()=>{this.timer&&(this.timer=V(this.timer))},$)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var me=J;function we(O){window.clearTimeout(O)}function Ce(O){window.clearInterval(O)}class Ee extends me{constructor(x,P){super(setTimeout,we,x,function($){return P(),null})}}class xe extends me{constructor(x,P){super(setInterval,Ce,x,function($){return P(),$})}}var ye={now(){return Date.now?Date.now():new Date().valueOf()},defer(O){return new Ee(0,O)},method(O,...x){var P=Array.prototype.slice.call(arguments,1);return function($){return $[O].apply($,P.concat(arguments))}}},Le=ye;function Ae(O,...x){for(var P=0;P<x.length;P++){var $=x[P];for(var V in $)$[V]&&$[V].constructor&&$[V].constructor===Object?O[V]=Ae(O[V]||{},$[V]):O[V]=$[V]}return O}function it(){for(var O=["Pusher"],x=0;x<arguments.length;x++)typeof arguments[x]=="string"?O.push(arguments[x]):O.push(Ie(arguments[x]));return O.join(" : ")}function Ye(O,x){var P=Array.prototype.indexOf;if(O===null)return-1;if(P&&O.indexOf===P)return O.indexOf(x);for(var $=0,V=O.length;$<V;$++)if(O[$]===x)return $;return-1}function nt(O,x){for(var P in O)Object.prototype.hasOwnProperty.call(O,P)&&x(O[P],P,O)}function wt(O){var x=[];return nt(O,function(P,$){x.push($)}),x}function Dt(O){var x=[];return nt(O,function(P){x.push(P)}),x}function Nt(O,x,P){for(var $=0;$<O.length;$++)x.call(P||window,O[$],$,O)}function Sn(O,x){for(var P=[],$=0;$<O.length;$++)P.push(x(O[$],$,O,P));return P}function Yt(O,x){var P={};return nt(O,function($,V){P[V]=x($)}),P}function Te(O,x){x=x||function(V){return!!V};for(var P=[],$=0;$<O.length;$++)x(O[$],$,O,P)&&P.push(O[$]);return P}function yt(O,x){var P={};return nt(O,function($,V){(x&&x($,V,O,P)||$)&&(P[V]=$)}),P}function B(O){var x=[];return nt(O,function(P,$){x.push([$,P])}),x}function X(O,x){for(var P=0;P<O.length;P++)if(x(O[P],P,O))return!0;return!1}function oe(O,x){for(var P=0;P<O.length;P++)if(!x(O[P],P,O))return!1;return!0}function Se(O){return Yt(O,function(x){return typeof x=="object"&&(x=Ie(x)),encodeURIComponent(Y(x.toString()))})}function _e(O){var x=yt(O,function($){return $!==void 0}),P=Sn(B(Se(x)),Le.method("join","=")).join("&");return P}function ge(O){var x=[],P=[];return function $(V,se){var Pe,Ke,vt;switch(typeof V){case"object":if(!V)return null;for(Pe=0;Pe<x.length;Pe+=1)if(x[Pe]===V)return{$ref:P[Pe]};if(x.push(V),P.push(se),Object.prototype.toString.apply(V)==="[object Array]")for(vt=[],Pe=0;Pe<V.length;Pe+=1)vt[Pe]=$(V[Pe],se+"["+Pe+"]");else{vt={};for(Ke in V)Object.prototype.hasOwnProperty.call(V,Ke)&&(vt[Ke]=$(V[Ke],se+"["+JSON.stringify(Ke)+"]"))}return vt;case"number":case"string":case"boolean":return V}}(O,"$")}function Ie(O){try{return JSON.stringify(O)}catch{return JSON.stringify(ge(O))}}class Ft{constructor(){this.globalLog=x=>{window.console&&window.console.log&&window.console.log(x)}}debug(...x){this.log(this.globalLog,x)}warn(...x){this.log(this.globalLogWarn,x)}error(...x){this.log(this.globalLogError,x)}globalLogWarn(x){window.console&&window.console.warn?window.console.warn(x):this.globalLog(x)}globalLogError(x){window.console&&window.console.error?window.console.error(x):this.globalLogWarn(x)}log(x,...P){var $=it.apply(this,arguments);Nu.log?Nu.log($):Nu.logToConsole&&x.bind(this)($)}}var Ge=new Ft,Kn=function(O,x,P,$,V){(P.headers!==void 0||P.headersProvider!=null)&&Ge.warn(`To send headers with the ${$.toString()} request, you must use AJAX, rather than JSONP.`);var se=O.nextAuthCallbackID.toString();O.nextAuthCallbackID++;var Pe=O.getDocument(),Ke=Pe.createElement("script");O.auth_callbacks[se]=function(Xt){V(null,Xt)};var vt="Pusher.auth_callbacks['"+se+"']";Ke.src=P.endpoint+"?callback="+encodeURIComponent(vt)+"&"+x;var Gt=Pe.getElementsByTagName("head")[0]||Pe.documentElement;Gt.insertBefore(Ke,Gt.firstChild)},Dn=Kn;class rn{constructor(x){this.src=x}send(x){var P=this,$="Error loading "+P.src;P.script=document.createElement("script"),P.script.id=x.id,P.script.src=P.src,P.script.type="text/javascript",P.script.charset="UTF-8",P.script.addEventListener?(P.script.onerror=function(){x.callback($)},P.script.onload=function(){x.callback(null)}):P.script.onreadystatechange=function(){(P.script.readyState==="loaded"||P.script.readyState==="complete")&&x.callback(null)},P.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(P.errorScript=document.createElement("script"),P.errorScript.id=x.id+"_error",P.errorScript.text=x.name+"('"+$+"');",P.script.async=P.errorScript.async=!1):P.script.async=!0;var V=document.getElementsByTagName("head")[0];V.insertBefore(P.script,V.firstChild),P.errorScript&&V.insertBefore(P.errorScript,P.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class ur{constructor(x,P){this.url=x,this.data=P}send(x){if(!this.request){var P=_e(this.data),$=this.url+"/"+x.number+"?"+P;this.request=Be.createScriptRequest($),this.request.send(x)}}cleanup(){this.request&&this.request.cleanup()}}var ti=function(O,x){return function(P,$){var V="http"+(x?"s":"")+"://",se=V+(O.host||O.options.host)+O.options.path,Pe=Be.createJSONPRequest(se,P),Ke=Be.ScriptReceivers.create(function(vt,Gt){o.remove(Ke),Pe.cleanup(),Gt&&Gt.host&&(O.host=Gt.host),$&&$(vt,Gt)});Pe.send(Ke)}},Yn={name:"jsonp",getAgent:ti},ni=Yn;function Ur(O,x,P){var $=O+(x.useTLS?"s":""),V=x.useTLS?x.hostTLS:x.hostNonTLS;return $+"://"+V+P}function te(O,x){var P="/app/"+O,$="?protocol="+l.PROTOCOL+"&client=js&version="+l.VERSION+(x?"&"+x:"");return P+$}var ie={getInitial:function(O,x){var P=(x.httpPath||"")+te(O,"flash=false");return Ur("ws",x,P)}},he={getInitial:function(O,x){var P=(x.httpPath||"/pusher")+te(O);return Ur("http",x,P)}},Me={getInitial:function(O,x){return Ur("http",x,x.httpPath||"/pusher")},getPath:function(O,x){return te(O)}};class st{constructor(){this._callbacks={}}get(x){return this._callbacks[et(x)]}add(x,P,$){var V=et(x);this._callbacks[V]=this._callbacks[V]||[],this._callbacks[V].push({fn:P,context:$})}remove(x,P,$){if(!x&&!P&&!$){this._callbacks={};return}var V=x?[et(x)]:wt(this._callbacks);P||$?this.removeCallback(V,P,$):this.removeAllCallbacks(V)}removeCallback(x,P,$){Nt(x,function(V){this._callbacks[V]=Te(this._callbacks[V]||[],function(se){return P&&P!==se.fn||$&&$!==se.context}),this._callbacks[V].length===0&&delete this._callbacks[V]},this)}removeAllCallbacks(x){Nt(x,function(P){delete this._callbacks[P]},this)}}function et(O){return"_"+O}class Ze{constructor(x){this.callbacks=new st,this.global_callbacks=[],this.failThrough=x}bind(x,P,$){return this.callbacks.add(x,P,$),this}bind_global(x){return this.global_callbacks.push(x),this}unbind(x,P,$){return this.callbacks.remove(x,P,$),this}unbind_global(x){return x?(this.global_callbacks=Te(this.global_callbacks||[],P=>P!==x),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(x,P,$){for(var V=0;V<this.global_callbacks.length;V++)this.global_callbacks[V](x,P);var se=this.callbacks.get(x),Pe=[];if($?Pe.push(P,$):P&&Pe.push(P),se&&se.length>0)for(var V=0;V<se.length;V++)se[V].fn.apply(se[V].context||window,Pe);else this.failThrough&&this.failThrough(x,P);return this}}class De extends Ze{constructor(x,P,$,V,se){super(),this.initialize=Be.transportConnectionInitializer,this.hooks=x,this.name=P,this.priority=$,this.key=V,this.options=se,this.state="new",this.timeline=se.timeline,this.activityTimeout=se.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var x=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(x,this.options)}catch(P){return Le.defer(()=>{this.onError(P),this.changeState("closed")}),!1}return this.bindListeners(),Ge.debug("Connecting",{transport:this.name,url:x}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(x){return this.state==="open"?(Le.defer(()=>{this.socket&&this.socket.send(x)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(x){this.emit("error",{type:"WebSocketError",error:x}),this.timeline.error(this.buildTimelineMessage({error:x.toString()}))}onClose(x){x?this.changeState("closed",{code:x.code,reason:x.reason,wasClean:x.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(x){this.emit("message",x)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=x=>{this.onError(x)},this.socket.onclose=x=>{this.onClose(x)},this.socket.onmessage=x=>{this.onMessage(x)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(x,P){this.state=x,this.timeline.info(this.buildTimelineMessage({state:x,params:P})),this.emit(x,P)}buildTimelineMessage(x){return Ae({cid:this.id},x)}}class Oe{constructor(x){this.hooks=x}isSupported(x){return this.hooks.isSupported(x)}createConnection(x,P,$,V){return new De(this.hooks,x,P,$,V)}}var gt=new Oe({urls:ie,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!Be.getWebSocketAPI()},isSupported:function(){return!!Be.getWebSocketAPI()},getSocket:function(O){return Be.createWebSocket(O)}}),It={urls:he,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},mt=Ae({getSocket:function(O){return Be.HTTPFactory.createStreamingSocket(O)}},It),Tt=Ae({getSocket:function(O){return Be.HTTPFactory.createPollingSocket(O)}},It),$t={isSupported:function(){return Be.isXHRSupported()}},cr=new Oe(Ae({},mt,$t)),Rn=new Oe(Ae({},Tt,$t)),An={ws:gt,xhr_streaming:cr,xhr_polling:Rn},dr=An,fr=new Oe({file:"sockjs",urls:Me,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(O,x){return new window.SockJS(O,null,{js_path:h.getPath("sockjs",{useTLS:x.useTLS}),ignore_null_origin:x.ignoreNullOrigin})},beforeOpen:function(O,x){O.send(JSON.stringify({path:x}))}}),jn={isSupported:function(O){var x=Be.isXDRSupported(O.useTLS);return x}},na=new Oe(Ae({},mt,jn)),vi=new Oe(Ae({},Tt,jn));dr.xdr_streaming=na,dr.xdr_polling=vi,dr.sockjs=fr;var hr=dr;class ra extends Ze{constructor(){super();var x=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){x.emit("online")},!1),window.addEventListener("offline",function(){x.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var Zt=new ra;class Hr{constructor(x,P,$){this.manager=x,this.transport=P,this.minPingDelay=$.minPingDelay,this.maxPingDelay=$.maxPingDelay,this.pingDelay=void 0}createConnection(x,P,$,V){V=Ae({},V,{activityTimeout:this.pingDelay});var se=this.transport.createConnection(x,P,$,V),Pe=null,Ke=function(){se.unbind("open",Ke),se.bind("closed",vt),Pe=Le.now()},vt=Gt=>{if(se.unbind("closed",vt),Gt.code===1002||Gt.code===1003)this.manager.reportDeath();else if(!Gt.wasClean&&Pe){var Xt=Le.now()-Pe;Xt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(Xt/2,this.minPingDelay))}};return se.bind("open",Ke),se}isSupported(x){return this.manager.isAlive()&&this.transport.isSupported(x)}}const yi={decodeMessage:function(O){try{var x=JSON.parse(O.data),P=x.data;if(typeof P=="string")try{P=JSON.parse(x.data)}catch{}var $={event:x.event,channel:x.channel,data:P};return x.user_id&&($.user_id=x.user_id),$}catch(V){throw{type:"MessageParseError",error:V,data:O.data}}},encodeMessage:function(O){return JSON.stringify(O)},processHandshake:function(O){var x=yi.decodeMessage(O);if(x.event==="pusher:connection_established"){if(!x.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:x.data.socket_id,activityTimeout:x.data.activity_timeout*1e3}}else{if(x.event==="pusher:error")return{action:this.getCloseAction(x.data),error:this.getCloseError(x.data)};throw"Invalid handshake"}},getCloseAction:function(O){return O.code<4e3?O.code>=1002&&O.code<=1004?"backoff":null:O.code===4e3?"tls_only":O.code<4100?"refused":O.code<4200?"backoff":O.code<4300?"retry":"refused"},getCloseError:function(O){return O.code!==1e3&&O.code!==1001?{type:"PusherError",data:{code:O.code,message:O.reason||O.message}}:null}};var _i=yi;class an extends Ze{constructor(x,P){super(),this.id=x,this.transport=P,this.activityTimeout=P.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(x){return this.transport.send(x)}send_event(x,P,$){var V={event:x,data:P};return $&&(V.channel=$),Ge.debug("Event sent",V),this.send(_i.encodeMessage(V))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var x={message:$=>{var V;try{V=_i.decodeMessage($)}catch(se){this.emit("error",{type:"MessageParseError",error:se,data:$.data})}if(V!==void 0){switch(Ge.debug("Event recd",V),V.event){case"pusher:error":this.emit("error",{type:"PusherError",data:V.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",V)}},activity:()=>{this.emit("activity")},error:$=>{this.emit("error",$)},closed:$=>{P(),$&&$.code&&this.handleCloseEvent($),this.transport=null,this.emit("closed")}},P=()=>{nt(x,($,V)=>{this.transport.unbind(V,$)})};nt(x,($,V)=>{this.transport.bind(V,$)})}handleCloseEvent(x){var P=_i.getCloseAction(x),$=_i.getCloseError(x);$&&this.emit("error",$),P&&this.emit(P,{action:P,error:$})}}class Ja{constructor(x,P){this.transport=x,this.callback=P,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=x=>{this.unbindListeners();var P;try{P=_i.processHandshake(x)}catch($){this.finish("error",{error:$}),this.transport.close();return}P.action==="connected"?this.finish("connected",{connection:new an(P.id,this.transport),activityTimeout:P.activityTimeout}):(this.finish(P.action,{error:P.error}),this.transport.close())},this.onClosed=x=>{this.unbindListeners();var P=_i.getCloseAction(x)||"backoff",$=_i.getCloseError(x);this.finish(P,{error:$})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(x,P){this.callback(Ae({transport:this.transport,action:x},P))}}class ll{constructor(x,P){this.timeline=x,this.options=P||{}}send(x,P){this.timeline.isEmpty()||this.timeline.send(Be.TimelineTransport.getAgent(this,x),P)}}class ms extends Ze{constructor(x,P){super(function($,V){Ge.debug("No callbacks on "+x+" for "+$)}),this.name=x,this.pusher=P,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(x,P){return P(null,{auth:""})}trigger(x,P){if(x.indexOf("client-")!==0)throw new _("Event '"+x+"' does not start with 'client-'");if(!this.subscribed){var $=y.buildLogSuffix("triggeringClientEvents");Ge.warn(`Client event triggered before channel 'subscription_succeeded' event . ${$}`)}return this.pusher.send_event(x,P,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(x){var P=x.event,$=x.data;if(P==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(x);else if(P==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(x);else if(P.indexOf("pusher_internal:")!==0){var V={};this.emit(P,$,V)}}handleSubscriptionSucceededEvent(x){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",x.data)}handleSubscriptionCountEvent(x){x.data.subscription_count&&(this.subscriptionCount=x.data.subscription_count),this.emit("pusher:subscription_count",x.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(x,P)=>{x?(this.subscriptionPending=!1,Ge.error(x.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:x.message},x instanceof M?{status:x.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:P.auth,channel_data:P.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class ku extends ms{authorize(x,P){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:x},P)}}class Ph{constructor(){this.reset()}get(x){return Object.prototype.hasOwnProperty.call(this.members,x)?{id:x,info:this.members[x]}:null}each(x){nt(this.members,(P,$)=>{x(this.get($))})}setMyID(x){this.myID=x}onSubscription(x){this.members=x.presence.hash,this.count=x.presence.count,this.me=this.get(this.myID)}addMember(x){return this.get(x.user_id)===null&&this.count++,this.members[x.user_id]=x.user_info,this.get(x.user_id)}removeMember(x){var P=this.get(x.user_id);return P&&(delete this.members[x.user_id],this.count--),P}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Oh=function(O,x,P,$){function V(se){return se instanceof P?se:new P(function(Pe){Pe(se)})}return new(P||(P=Promise))(function(se,Pe){function Ke(Xt){try{Gt($.next(Xt))}catch(Nn){Pe(Nn)}}function vt(Xt){try{Gt($.throw(Xt))}catch(Nn){Pe(Nn)}}function Gt(Xt){Xt.done?se(Xt.value):V(Xt.value).then(Ke,vt)}Gt(($=$.apply(O,x||[])).next())})};class Lo extends ku{constructor(x,P){super(x,P),this.members=new Ph}authorize(x,P){super.authorize(x,($,V)=>Oh(this,void 0,void 0,function*(){if(!$)if(V=V,V.channel_data!=null){var se=JSON.parse(V.channel_data);this.members.setMyID(se.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let Pe=y.buildLogSuffix("authorizationEndpoint");Ge.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${Pe}, or the user should be signed in.`),P("Invalid auth response");return}P($,V)}))}handleEvent(x){var P=x.event;if(P.indexOf("pusher_internal:")===0)this.handleInternalEvent(x);else{var $=x.data,V={};x.user_id&&(V.user_id=x.user_id),this.emit(P,$,V)}}handleInternalEvent(x){var P=x.event,$=x.data;switch(P){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(x);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(x);break;case"pusher_internal:member_added":var V=this.members.addMember($);this.emit("pusher:member_added",V);break;case"pusher_internal:member_removed":var se=this.members.removeMember($);se&&this.emit("pusher:member_removed",se);break}}handleSubscriptionSucceededEvent(x){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(x.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Rh=i(1),ia=i(0);class Tu extends ku{constructor(x,P,$){super(x,P),this.key=null,this.nacl=$}authorize(x,P){super.authorize(x,($,V)=>{if($){P($,V);return}let se=V.shared_secret;if(!se){P(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(ia.decode)(se),delete V.shared_secret,P(null,V)})}trigger(x,P){throw new R("Client events are not currently supported for encrypted channels")}handleEvent(x){var P=x.event,$=x.data;if(P.indexOf("pusher_internal:")===0||P.indexOf("pusher:")===0){super.handleEvent(x);return}this.handleEncryptedEvent(P,$)}handleEncryptedEvent(x,P){if(!this.key){Ge.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!P.ciphertext||!P.nonce){Ge.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+P);return}let $=Object(ia.decode)(P.ciphertext);if($.length<this.nacl.secretbox.overheadLength){Ge.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${$.length}`);return}let V=Object(ia.decode)(P.nonce);if(V.length<this.nacl.secretbox.nonceLength){Ge.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${V.length}`);return}let se=this.nacl.secretbox.open($,V,this.key);if(se===null){Ge.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(Pe,Ke)=>{if(Pe){Ge.error(`Failed to make a request to the authEndpoint: ${Ke}. Unable to fetch new key, so dropping encrypted event`);return}if(se=this.nacl.secretbox.open($,V,this.key),se===null){Ge.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(x,this.getDataToEmit(se))});return}this.emit(x,this.getDataToEmit(se))}getDataToEmit(x){let P=Object(Rh.decode)(x);try{return JSON.parse(P)}catch{return P}}}class Ah extends Ze{constructor(x,P){super(),this.state="initialized",this.connection=null,this.key=x,this.options=P,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var $=Be.getNetwork();$.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),$.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(x){return this.connection?this.connection.send(x):!1}send_event(x,P,$){return this.connection?this.connection.send_event(x,P,$):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var x=(P,$)=>{P?this.runner=this.strategy.connect(0,x):$.action==="error"?(this.emit("error",{type:"HandshakeError",error:$.error}),this.timeline.error({handshakeError:$.error})):(this.abortConnecting(),this.handshakeCallbacks[$.action]($))};this.runner=this.strategy.connect(0,x)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var x=this.abandonConnection();x.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(x){this.timeline.info({action:"retry",delay:x}),x>0&&this.emit("connecting_in",Math.round(x/1e3)),this.retryTimer=new Ee(x||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Ee(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Ee(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Ee(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(x){return Ae({},x,{message:P=>{this.resetActivityCheck(),this.emit("message",P)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:P=>{this.emit("error",P)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(x){return Ae({},x,{connected:P=>{this.activityTimeout=Math.min(this.options.activityTimeout,P.activityTimeout,P.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(P.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let x=P=>$=>{$.error&&this.emit("error",{type:"WebSocketError",error:$.error}),P($)};return{tls_only:x(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:x(()=>{this.disconnect()}),backoff:x(()=>{this.retryIn(1e3)}),retry:x(()=>{this.retryIn(0)})}}setConnection(x){this.connection=x;for(var P in this.connectionCallbacks)this.connection.bind(P,this.connectionCallbacks[P]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var x in this.connectionCallbacks)this.connection.unbind(x,this.connectionCallbacks[x]);var P=this.connection;return this.connection=null,P}}updateState(x,P){var $=this.state;if(this.state=x,$!==x){var V=x;V==="connected"&&(V+=" with new socket ID "+P.socket_id),Ge.debug("State changed",$+" -> "+V),this.timeline.info({state:x,params:P}),this.emit("state_change",{previous:$,current:x}),this.emit(x,P)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class ul{constructor(){this.channels={}}add(x,P){return this.channels[x]||(this.channels[x]=Pu(x,P)),this.channels[x]}all(){return Dt(this.channels)}find(x){return this.channels[x]}remove(x){var P=this.channels[x];return delete this.channels[x],P}disconnect(){nt(this.channels,function(x){x.disconnect()})}}function Pu(O,x){if(O.indexOf("private-encrypted-")===0){if(x.config.nacl)return Fi.createEncryptedChannel(O,x,x.config.nacl);let P="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",$=y.buildLogSuffix("encryptedChannelSupport");throw new R(`${P}. ${$}`)}else{if(O.indexOf("private-")===0)return Fi.createPrivateChannel(O,x);if(O.indexOf("presence-")===0)return Fi.createPresenceChannel(O,x);if(O.indexOf("#")===0)throw new b('Cannot create a channel with name "'+O+'".');return Fi.createChannel(O,x)}}var jc={createChannels(){return new ul},createConnectionManager(O,x){return new Ah(O,x)},createChannel(O,x){return new ms(O,x)},createPrivateChannel(O,x){return new ku(O,x)},createPresenceChannel(O,x){return new Lo(O,x)},createEncryptedChannel(O,x,P){return new Tu(O,x,P)},createTimelineSender(O,x){return new ll(O,x)},createHandshake(O,x){return new Ja(O,x)},createAssistantToTheTransportManager(O,x,P){return new Hr(O,x,P)}},Fi=jc;class Bc{constructor(x){this.options=x||{},this.livesLeft=this.options.lives||1/0}getAssistant(x){return Fi.createAssistantToTheTransportManager(this,x,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class xa{constructor(x,P){this.strategies=x,this.loop=!!P.loop,this.failFast=!!P.failFast,this.timeout=P.timeout,this.timeoutLimit=P.timeoutLimit}isSupported(){return X(this.strategies,Le.method("isSupported"))}connect(x,P){var $=this.strategies,V=0,se=this.timeout,Pe=null,Ke=(vt,Gt)=>{Gt?P(null,Gt):(V=V+1,this.loop&&(V=V%$.length),V<$.length?(se&&(se=se*2,this.timeoutLimit&&(se=Math.min(se,this.timeoutLimit))),Pe=this.tryStrategy($[V],x,{timeout:se,failFast:this.failFast},Ke)):P(!0))};return Pe=this.tryStrategy($[V],x,{timeout:se,failFast:this.failFast},Ke),{abort:function(){Pe.abort()},forceMinPriority:function(vt){x=vt,Pe&&Pe.forceMinPriority(vt)}}}tryStrategy(x,P,$,V){var se=null,Pe=null;return $.timeout>0&&(se=new Ee($.timeout,function(){Pe.abort(),V(!0)})),Pe=x.connect(P,function(Ke,vt){Ke&&se&&se.isRunning()&&!$.failFast||(se&&se.ensureAborted(),V(Ke,vt))}),{abort:function(){se&&se.ensureAborted(),Pe.abort()},forceMinPriority:function(Ke){Pe.forceMinPriority(Ke)}}}}class Ou{constructor(x){this.strategies=x}isSupported(){return X(this.strategies,Le.method("isSupported"))}connect(x,P){return Ih(this.strategies,x,function($,V){return function(se,Pe){if(V[$].error=se,se){Vc(V)&&P(!0);return}Nt(V,function(Ke){Ke.forceMinPriority(Pe.transport.priority)}),P(null,Pe)}})}}function Ih(O,x,P){var $=Sn(O,function(V,se,Pe,Ke){return V.connect(x,P(se,Ke))});return{abort:function(){Nt($,Uc)},forceMinPriority:function(V){Nt($,function(se){se.forceMinPriority(V)})}}}function Vc(O){return oe(O,function(x){return!!x.error})}function Uc(O){!O.error&&!O.aborted&&(O.abort(),O.aborted=!0)}class Hc{constructor(x,P,$){this.strategy=x,this.transports=P,this.ttl=$.ttl||1800*1e3,this.usingTLS=$.useTLS,this.timeline=$.timeline}isSupported(){return this.strategy.isSupported()}connect(x,P){var $=this.usingTLS,V=Lh($),se=V&&V.cacheSkipCount?V.cacheSkipCount:0,Pe=[this.strategy];if(V&&V.timestamp+this.ttl>=Le.now()){var Ke=this.transports[V.transport];Ke&&(["ws","wss"].includes(V.transport)||se>3?(this.timeline.info({cached:!0,transport:V.transport,latency:V.latency}),Pe.push(new xa([Ke],{timeout:V.latency*2+1e3,failFast:!0}))):se++)}var vt=Le.now(),Gt=Pe.pop().connect(x,function Xt(Nn,Fu){Nn?(vs($),Pe.length>0?(vt=Le.now(),Gt=Pe.pop().connect(x,Xt)):P(Nn)):(Wc($,Fu.transport.name,Le.now()-vt,se),P(null,Fu))});return{abort:function(){Gt.abort()},forceMinPriority:function(Xt){x=Xt,Gt&&Gt.forceMinPriority(Xt)}}}}function gs(O){return"pusherTransport"+(O?"TLS":"NonTLS")}function Lh(O){var x=Be.getLocalStorage();if(x)try{var P=x[gs(O)];if(P)return JSON.parse(P)}catch{vs(O)}return null}function Wc(O,x,P,$){var V=Be.getLocalStorage();if(V)try{V[gs(O)]=Ie({timestamp:Le.now(),transport:x,latency:P,cacheSkipCount:$})}catch{}}function vs(O){var x=Be.getLocalStorage();if(x)try{delete x[gs(O)]}catch{}}class ys{constructor(x,{delay:P}){this.strategy=x,this.options={delay:P}}isSupported(){return this.strategy.isSupported()}connect(x,P){var $=this.strategy,V,se=new Ee(this.options.delay,function(){V=$.connect(x,P)});return{abort:function(){se.ensureAborted(),V&&V.abort()},forceMinPriority:function(Pe){x=Pe,V&&V.forceMinPriority(Pe)}}}}class Ca{constructor(x,P,$){this.test=x,this.trueBranch=P,this.falseBranch=$}isSupported(){var x=this.test()?this.trueBranch:this.falseBranch;return x.isSupported()}connect(x,P){var $=this.test()?this.trueBranch:this.falseBranch;return $.connect(x,P)}}class cl{constructor(x){this.strategy=x}isSupported(){return this.strategy.isSupported()}connect(x,P){var $=this.strategy.connect(x,function(V,se){se&&$.abort(),P(V,se)});return $}}function Mo(O){return function(){return O.isSupported()}}var Ru=function(O,x,P){var $={};function V(pv,c2,_l,d2,f2){var ad=P(O,pv,c2,_l,d2,f2);return $[pv]=ad,ad}var se=Object.assign({},x,{hostNonTLS:O.wsHost+":"+O.wsPort,hostTLS:O.wsHost+":"+O.wssPort,httpPath:O.wsPath}),Pe=Object.assign({},se,{useTLS:!0}),Ke=Object.assign({},x,{hostNonTLS:O.httpHost+":"+O.httpPort,hostTLS:O.httpHost+":"+O.httpsPort,httpPath:O.httpPath}),vt={loop:!0,timeout:15e3,timeoutLimit:6e4},Gt=new Bc({minPingDelay:1e4,maxPingDelay:O.activityTimeout}),Xt=new Bc({lives:2,minPingDelay:1e4,maxPingDelay:O.activityTimeout}),Nn=V("ws","ws",3,se,Gt),Fu=V("wss","ws",3,Pe,Gt),u2=V("sockjs","sockjs",1,Ke),id=V("xhr_streaming","xhr_streaming",1,Ke,Xt),Fh=V("xdr_streaming","xdr_streaming",1,Ke,Xt),dv=V("xhr_polling","xhr_polling",1,Ke),fv=V("xdr_polling","xdr_polling",1,Ke),ri=new xa([Nn],vt),$h=new xa([Fu],vt),$u=new xa([u2],vt),zh=new xa([new Ca(Mo(id),id,Fh)],vt),jh=new xa([new Ca(Mo(dv),dv,fv)],vt),hv=new xa([new Ca(Mo(zh),new Ou([zh,new ys(jh,{delay:4e3})]),jh)],vt),Bh=new Ca(Mo(hv),hv,$u),Vh;return x.useTLS?Vh=new Ou([ri,new ys(Bh,{delay:2e3})]):Vh=new Ou([ri,new ys($h,{delay:2e3}),new ys(Bh,{delay:5e3})]),new Hc(new cl(new Ca(Mo(Nn),Vh,Bh)),$,{ttl:18e5,timeline:x.timeline,useTLS:x.useTLS})},qc=Ru,Gc=function(){var O=this;O.timeline.info(O.buildTimelineMessage({transport:O.name+(O.options.useTLS?"s":"")})),O.hooks.isInitialized()?O.changeState("initialized"):O.hooks.file?(O.changeState("initializing"),h.load(O.hooks.file,{useTLS:O.options.useTLS},function(x,P){O.hooks.isInitialized()?(O.changeState("initialized"),P(!0)):(x&&O.onError(x),O.onClose(),P(!1))})):O.onClose()},Au={getRequest:function(O){var x=new window.XDomainRequest;return x.ontimeout=function(){O.emit("error",new S),O.close()},x.onerror=function(P){O.emit("error",P),O.close()},x.onprogress=function(){x.responseText&&x.responseText.length>0&&O.onChunk(200,x.responseText)},x.onload=function(){x.responseText&&x.responseText.length>0&&O.onChunk(200,x.responseText),O.emit("finished",200),O.close()},x},abortRequest:function(O){O.ontimeout=O.onerror=O.onprogress=O.onload=null,O.abort()}},Iu=Au;const eo=256*1024;class Kc extends Ze{constructor(x,P,$){super(),this.hooks=x,this.method=P,this.url=$}start(x){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Be.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(x)}close(){this.unloader&&(Be.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(x,P){for(;;){var $=this.advanceBuffer(P);if($)this.emit("chunk",{status:x,data:$});else break}this.isBufferTooLong(P)&&this.emit("buffer_too_long")}advanceBuffer(x){var P=x.slice(this.position),$=P.indexOf(`
    485 `);return $!==-1?(this.position+=$+1,P.slice(0,$)):null}isBufferTooLong(x){return this.position===x.length&&x.length>eo}}var dl;(function(O){O[O.CONNECTING=0]="CONNECTING",O[O.OPEN=1]="OPEN",O[O.CLOSED=3]="CLOSED"})(dl||(dl={}));var to=dl,fl=1;class Yc{constructor(x,P){this.hooks=x,this.session=hl(1e3)+"/"+pl(8),this.location=Zc(P),this.readyState=to.CONNECTING,this.openStream()}send(x){return this.sendRaw(JSON.stringify([x]))}ping(){this.hooks.sendHeartbeat(this)}close(x,P){this.onClose(x,P,!0)}sendRaw(x){if(this.readyState===to.OPEN)try{return Be.createSocketRequest("POST",_s(Qc(this.location,this.session))).start(x),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(x,P,$){this.closeStream(),this.readyState=to.CLOSED,this.onclose&&this.onclose({code:x,reason:P,wasClean:$})}onChunk(x){if(x.status===200){this.readyState===to.OPEN&&this.onActivity();var P,$=x.data.slice(0,1);switch($){case"o":P=JSON.parse(x.data.slice(1)||"{}"),this.onOpen(P);break;case"a":P=JSON.parse(x.data.slice(1)||"[]");for(var V=0;V<P.length;V++)this.onEvent(P[V]);break;case"m":P=JSON.parse(x.data.slice(1)||"null"),this.onEvent(P);break;case"h":this.hooks.onHeartbeat(this);break;case"c":P=JSON.parse(x.data.slice(1)||"[]"),this.onClose(P[0],P[1],!0);break}}}onOpen(x){this.readyState===to.CONNECTING?(x&&x.hostname&&(this.location.base=Lu(this.location.base,x.hostname)),this.readyState=to.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(x){this.readyState===to.OPEN&&this.onmessage&&this.onmessage({data:x})}onActivity(){this.onactivity&&this.onactivity()}onError(x){this.onerror&&this.onerror(x)}openStream(){this.stream=Be.createSocketRequest("POST",_s(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",x=>{this.onChunk(x)}),this.stream.bind("finished",x=>{this.hooks.onFinished(this,x)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(x){Le.defer(()=>{this.onError(x),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Zc(O){var x=/([^\?]*)\/*(\??.*)/.exec(O);return{base:x[1],queryString:x[2]}}function Qc(O,x){return O.base+"/"+x+"/xhr_send"}function _s(O){var x=O.indexOf("?")===-1?"?":"&";return O+x+"t="+ +new Date+"&n="+fl++}function Lu(O,x){var P=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(O);return P[1]+x+P[3]}function hl(O){return Be.randomInt(O)}function pl(O){for(var x=[],P=0;P<O;P++)x.push(hl(32).toString(32));return x.join("")}var Mh=Yc,Xc={getReceiveURL:function(O,x){return O.base+"/"+x+"/xhr_streaming"+O.queryString},onHeartbeat:function(O){O.sendRaw("[]")},sendHeartbeat:function(O){O.sendRaw("[]")},onFinished:function(O,x){O.onClose(1006,"Connection interrupted ("+x+")",!1)}},Mu=Xc,Jc={getReceiveURL:function(O,x){return O.base+"/"+x+"/xhr"+O.queryString},onHeartbeat:function(){},sendHeartbeat:function(O){O.sendRaw("[]")},onFinished:function(O,x){x===200?O.reconnect():O.onClose(1006,"Connection interrupted ("+x+")",!1)}},aa=Jc,bs={getRequest:function(O){var x=Be.getXHRAPI(),P=new x;return P.onreadystatechange=P.onprogress=function(){switch(P.readyState){case 3:P.responseText&&P.responseText.length>0&&O.onChunk(P.status,P.responseText);break;case 4:P.responseText&&P.responseText.length>0&&O.onChunk(P.status,P.responseText),O.emit("finished",P.status),O.close();break}},P},abortRequest:function(O){O.onreadystatechange=null,O.abort()}},Dh=bs,ed={createStreamingSocket(O){return this.createSocket(Mu,O)},createPollingSocket(O){return this.createSocket(aa,O)},createSocket(O,x){return new Mh(O,x)},createXHR(O,x){return this.createRequest(Dh,O,x)},createRequest(O,x,P){return new Kc(O,x,P)}},td=ed;td.createXDR=function(O,x){return this.createRequest(Iu,O,x)};var nd=td,mn={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:o,DependenciesReceivers:f,getDefaultStrategy:qc,Transports:hr,transportConnectionInitializer:Gc,HTTPFactory:nd,TimelineTransport:ni,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(O){window.Pusher=O;var x=()=>{this.onDocumentBody(O.ready)};window.JSON?x():h.load("json2",{},x)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:z,jsonp:Dn}},onDocumentBody(O){document.body?O():setTimeout(()=>{this.onDocumentBody(O)},0)},createJSONPRequest(O,x){return new ur(O,x)},createScriptRequest(O){return new rn(O)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var O=this.getXHRAPI();return new O},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Zt},createWebSocket(O){var x=this.getWebSocketAPI();return new x(O)},createSocketRequest(O,x){if(this.isXHRSupported())return this.HTTPFactory.createXHR(O,x);if(this.isXDRSupported(x.indexOf("https:")===0))return this.HTTPFactory.createXDR(O,x);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var O=this.getXHRAPI();return!!O&&new O().withCredentials!==void 0},isXDRSupported(O){var x=O?"https:":"http:",P=this.getProtocol();return!!window.XDomainRequest&&P===x},addUnloadListener(O){window.addEventListener!==void 0?window.addEventListener("unload",O,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",O)},removeUnloadListener(O){window.addEventListener!==void 0?window.removeEventListener("unload",O,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",O)},randomInt(O){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*O)}},Be=mn,ml;(function(O){O[O.ERROR=3]="ERROR",O[O.INFO=6]="INFO",O[O.DEBUG=7]="DEBUG"})(ml||(ml={}));var gl=ml;class j{constructor(x,P,$){this.key=x,this.session=P,this.events=[],this.options=$||{},this.sent=0,this.uniqueID=0}log(x,P){x<=this.options.level&&(this.events.push(Ae({},P,{timestamp:Le.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(x){this.log(gl.ERROR,x)}info(x){this.log(gl.INFO,x)}debug(x){this.log(gl.DEBUG,x)}isEmpty(){return this.events.length===0}send(x,P){var $=Ae({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],x($,(V,se)=>{V||this.sent++,P&&P(V,se)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class G{constructor(x,P,$,V){this.name=x,this.priority=P,this.transport=$,this.options=V||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(x,P){if(this.isSupported()){if(this.priority<x)return ne(new C,P)}else return ne(new I,P);var $=!1,V=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),se=null,Pe=function(){V.unbind("initialized",Pe),V.connect()},Ke=function(){se=Fi.createHandshake(V,function(Nn){$=!0,Xt(),P(null,Nn)})},vt=function(Nn){Xt(),P(Nn)},Gt=function(){Xt();var Nn;Nn=Ie(V),P(new E(Nn))},Xt=function(){V.unbind("initialized",Pe),V.unbind("open",Ke),V.unbind("error",vt),V.unbind("closed",Gt)};return V.bind("initialized",Pe),V.bind("open",Ke),V.bind("error",vt),V.bind("closed",Gt),V.initialize(),{abort:()=>{$||(Xt(),se?se.close():V.close())},forceMinPriority:Nn=>{$||this.priority<Nn&&(se?se.close():V.close())}}}}function ne(O,x){return Le.defer(function(){x(O)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Ve}=Be;var Lt=function(O,x,P,$,V,se){var Pe=Ve[P];if(!Pe)throw new A(P);var Ke=(!O.enabledTransports||Ye(O.enabledTransports,x)!==-1)&&(!O.disabledTransports||Ye(O.disabledTransports,x)===-1),vt;return Ke?(V=Object.assign({ignoreNullOrigin:O.ignoreNullOrigin},V),vt=new G(x,$,se?se.getAssistant(Pe):Pe,V)):vt=on,vt},on={isSupported:function(){return!1},connect:function(O,x){var P=Le.defer(function(){x(new I)});return{abort:function(){P.ensureAborted()},forceMinPriority:function(){}}}};function _t(O){if(O==null)throw"You must pass an options object";if(O.cluster==null)throw"Options object must provide a cluster";"disableStats"in O&&Ge.warn("The disableStats option is deprecated in favor of enableStats")}const Et=(O,x)=>{var P="socket_id="+encodeURIComponent(O.socketId);for(var $ in x.params)P+="&"+encodeURIComponent($)+"="+encodeURIComponent(x.params[$]);if(x.paramsProvider!=null){let V=x.paramsProvider();for(var $ in V)P+="&"+encodeURIComponent($)+"="+encodeURIComponent(V[$])}return P};var Wr=O=>{if(typeof Be.getAuthorizers()[O.transport]>"u")throw`'${O.transport}' is not a recognized auth transport`;return(x,P)=>{const $=Et(x,O);Be.getAuthorizers()[O.transport](Be,$,O,m.UserAuthentication,P)}};const br=(O,x)=>{var P="socket_id="+encodeURIComponent(O.socketId);P+="&channel_name="+encodeURIComponent(O.channelName);for(var $ in x.params)P+="&"+encodeURIComponent($)+"="+encodeURIComponent(x.params[$]);if(x.paramsProvider!=null){let V=x.paramsProvider();for(var $ in V)P+="&"+encodeURIComponent($)+"="+encodeURIComponent(V[$])}return P};var vl=O=>{if(typeof Be.getAuthorizers()[O.transport]>"u")throw`'${O.transport}' is not a recognized auth transport`;return(x,P)=>{const $=br(x,O);Be.getAuthorizers()[O.transport](Be,$,O,m.ChannelAuthorization,P)}};const yl=(O,x,P)=>{const $={authTransport:x.transport,authEndpoint:x.endpoint,auth:{params:x.params,headers:x.headers}};return(V,se)=>{const Pe=O.channel(V.channelName);P(Pe,$).authorize(V.socketId,se)}};function Du(O,x){let P={activityTimeout:O.activityTimeout||l.activityTimeout,cluster:O.cluster,httpPath:O.httpPath||l.httpPath,httpPort:O.httpPort||l.httpPort,httpsPort:O.httpsPort||l.httpsPort,pongTimeout:O.pongTimeout||l.pongTimeout,statsHost:O.statsHost||l.stats_host,unavailableTimeout:O.unavailableTimeout||l.unavailableTimeout,wsPath:O.wsPath||l.wsPath,wsPort:O.wsPort||l.wsPort,wssPort:O.wssPort||l.wssPort,enableStats:o2(O),httpHost:sv(O),useTLS:bi(O),wsHost:lv(O),userAuthenticator:$i(O),channelAuthorizer:cv(O,x)};return"disabledTransports"in O&&(P.disabledTransports=O.disabledTransports),"enabledTransports"in O&&(P.enabledTransports=O.enabledTransports),"ignoreNullOrigin"in O&&(P.ignoreNullOrigin=O.ignoreNullOrigin),"timelineParams"in O&&(P.timelineParams=O.timelineParams),"nacl"in O&&(P.nacl=O.nacl),P}function sv(O){return O.httpHost?O.httpHost:O.cluster?`sockjs-${O.cluster}.pusher.com`:l.httpHost}function lv(O){return O.wsHost?O.wsHost:uv(O.cluster)}function uv(O){return`ws-${O}.pusher.com`}function bi(O){return Be.getProtocol()==="https:"?!0:O.forceTLS!==!1}function o2(O){return"enableStats"in O?O.enableStats:"disableStats"in O?!O.disableStats:!1}function $i(O){const x=Object.assign(Object.assign({},l.userAuthentication),O.userAuthentication);return"customHandler"in x&&x.customHandler!=null?x.customHandler:Wr(x)}function s2(O,x){let P;return"channelAuthorization"in O?P=Object.assign(Object.assign({},l.channelAuthorization),O.channelAuthorization):(P={transport:O.authTransport||l.authTransport,endpoint:O.authEndpoint||l.authEndpoint},"auth"in O&&("params"in O.auth&&(P.params=O.auth.params),"headers"in O.auth&&(P.headers=O.auth.headers)),"authorizer"in O&&(P.customHandler=yl(x,P,O.authorizer))),P}function cv(O,x){const P=s2(O,x);return"customHandler"in P&&P.customHandler!=null?P.customHandler:vl(P)}class Do extends Ze{constructor(x){super(function(P,$){Ge.debug(`No callbacks on watchlist events for ${P}`)}),this.pusher=x,this.bindWatchlistInternalEvent()}handleEvent(x){x.data.events.forEach(P=>{this.emit(P.name,P)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",x=>{var P=x.event;P==="pusher_internal:watchlist_events"&&this.handleEvent(x)})}}function rd(){let O,x;return{promise:new Promise(($,V)=>{O=$,x=V}),resolve:O,reject:x}}var Nh=rd;class Cn extends Ze{constructor(x){super(function(P,$){Ge.debug("No callbacks on user for "+P)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(P,$)=>{if(P){Ge.warn(`Error during signin: ${P}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:$.auth,user_data:$.user_data})},this.pusher=x,this.pusher.connection.bind("state_change",({previous:P,current:$})=>{P!=="connected"&&$==="connected"&&this._signin(),P==="connected"&&$!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new Do(x),this.pusher.connection.bind("message",P=>{var $=P.event;$==="pusher:signin_success"&&this._onSigninSuccess(P.data),this.serverToUserChannel&&this.serverToUserChannel.name===P.channel&&this.serverToUserChannel.handleEvent(P)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(x){try{this.user_data=JSON.parse(x.user_data)}catch{Ge.error(`Failed parsing user data after signin: ${x.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){Ge.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const x=P=>{P.subscriptionPending&&P.subscriptionCancelled?P.reinstateSubscription():!P.subscriptionPending&&this.pusher.connection.state==="connected"&&P.subscribe()};this.serverToUserChannel=new ms(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((P,$)=>{P.indexOf("pusher_internal:")===0||P.indexOf("pusher:")===0||this.emit(P,$)}),x(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:x,resolve:P,reject:$}=Nh();x.done=!1;const V=()=>{x.done=!0};x.then(V).catch(V),this.signinDonePromise=x,this._signinDoneResolve=P}}class En{static ready(){En.isReady=!0;for(var x=0,P=En.instances.length;x<P;x++)En.instances[x].connect()}static getClientFeatures(){return wt(yt({ws:Be.Transports.ws},function(x){return x.isSupported({})}))}constructor(x,P){l2(x),_t(P),this.key=x,this.config=Du(P,this),this.channels=Fi.createChannels(),this.global_emitter=new Ze,this.sessionID=Be.randomInt(1e9),this.timeline=new j(this.key,this.sessionID,{cluster:this.config.cluster,features:En.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:gl.INFO,version:l.VERSION}),this.config.enableStats&&(this.timelineSender=Fi.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Be.TimelineTransport.name}));var $=V=>Be.getDefaultStrategy(this.config,V,Lt);this.connection=Fi.createConnectionManager(this.key,{getStrategy:$,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",V=>{var se=V.event,Pe=se.indexOf("pusher_internal:")===0;if(V.channel){var Ke=this.channel(V.channel);Ke&&Ke.handleEvent(V)}Pe||this.global_emitter.emit(V.event,V.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",V=>{Ge.warn(V)}),En.instances.push(this),this.timeline.info({instances:En.instances.length}),this.user=new Cn(this),En.isReady&&this.connect()}channel(x){return this.channels.find(x)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var x=this.connection.isUsingTLS(),P=this.timelineSender;this.timelineSenderTimer=new xe(6e4,function(){P.send(x)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(x,P,$){return this.global_emitter.bind(x,P,$),this}unbind(x,P,$){return this.global_emitter.unbind(x,P,$),this}bind_global(x){return this.global_emitter.bind_global(x),this}unbind_global(x){return this.global_emitter.unbind_global(x),this}unbind_all(x){return this.global_emitter.unbind_all(),this}subscribeAll(){var x;for(x in this.channels.channels)this.channels.channels.hasOwnProperty(x)&&this.subscribe(x)}subscribe(x){var P=this.channels.add(x,this);return P.subscriptionPending&&P.subscriptionCancelled?P.reinstateSubscription():!P.subscriptionPending&&this.connection.state==="connected"&&P.subscribe(),P}unsubscribe(x){var P=this.channels.find(x);P&&P.subscriptionPending?P.cancelSubscription():(P=this.channels.remove(x),P&&P.subscribed&&P.unsubscribe())}send_event(x,P,$){return this.connection.send_event(x,P,$)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}En.instances=[],En.isReady=!1,En.logToConsole=!1,En.Runtime=Be,En.ScriptReceivers=Be.ScriptReceivers,En.DependenciesReceivers=Be.DependenciesReceivers,En.auth_callbacks=Be.auth_callbacks;var Nu=r.default=En;function l2(O){if(O==null)throw"You must pass your app key when you instantiate Pusher."}Be.setup(En)}])})})(NB);var fTe=NB.exports;const hTe=vu(fTe),pf=class pf{constructor(){pf.instance||(pf.instance=new hTe(tbe,{cluster:nbe}))}getInstance(){return pf.instance}};Xv(pf,"instance");let r5=pf;const pTe=new r5().getInstance(),mTe=({name:e})=>{const[t,n]=w.useState();return w.useEffect(()=>{if(!e)return;const r=pTe.subscribe(e);return n(r),()=>{r.unsubscribe()}},[e]),t},gTe=({name:e,callBack:t,channel:n})=>(w.useEffect(()=>{if(n)return n.bind(e,t),()=>{n.unbind(e,t)}},[n,e,t]),{}),vTe=xc.create(()=>{const e=w.useRef(),t=i2(),[n,r]=eye(),i=()=>{var a;n.delete("onboardingSuccess"),r(n),(a=t.hide)==null||a.call(t)};return T.jsx(PF,{isCentered:!0,isOpen:t.visible,leastDestructiveRef:e,trapFocus:!1,onClose:()=>i(),children:T.jsx(Rb,{children:T.jsx(OF,{children:T.jsx(Ab,{p:"32px",bg:"blue.50",rounded:"8px",children:T.jsxs(vh,{textAlign:"center",gap:"20px",children:[T.jsx(xu,{alt:"We’re all set to go!",src:kz}),T.jsxs($e,{children:[T.jsx(Ot,{pb:"8px",fontSize:"24px",as:"h1",color:"tc.green.600",fontWeight:600,lineHeight:"100%",children:"We’re all set to go!"}),T.jsx(Ot,{fontSize:"14px",color:"gray.800",children:"Accelerate your global expansion today."})]}),T.jsx(Jr,{onClick:i,variant:"tc-solid-primary",children:"Get started"})]})})})})})}),yTe={CHOOSE_PLAN:"Choose Plan",VIEW_TRIAL_END_BLOCK:"View Trial End Block"},_Te=()=>Ir({url:"clients/current/plan"}),bTe=()=>Ir({url:"pricing/plans"}),STe=e=>Ir({url:"charges/subscriptions",method:"POST",data:e}),wTe=e=>Ir({url:"clients/plan/select",method:"PUT",data:e}),xTe=e=>Ir({url:"tracking/event",method:"POST",data:e}),CTe={getCurrentUserPlan:_Te,getAllPlan:bTe,chargesSubscriptions:STe,selectTrialPlan:wTe,trackingSegmentEvent:xTe},i5="PLAN_SUBSCRIPTION_STATUS_MODAL_ID",ETe=({isOpen:e=!1,onClose:t,reasonBlock:n=ff.TRIAL_EXPIRED})=>{const r=w.useRef(),{mutate:i}=i$({mutationFn:c=>CTe.trackingSegmentEvent(c)});w.useEffect(()=>{n===ff.TRIAL_EXPIRED&&i({event:yTe.VIEW_TRIAL_END_BLOCK})},[i,n]);const a=async()=>{await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.PRICING})},o=async()=>{await Qo({adminRedirectUrl:`${kr.EXTERNAL_ROUTES.PRICING_DETAIL}/${Yl.STARTER}`,queryString:{parentPath:kr.EXTERNAL_ROUTES.PRICING,planName:Yl.STARTER}})},l={TRIAL_EXPIRED:{title:"Your trial has expired",description:"We hope you enjoyed the advanced features. For uninterrupted benefits, please renew your subscription now!",primaryButton:{children:"Approve subscription",variant:"tc-solid-primary",onClick:o},secondaryButton:{children:"View plans",variant:"link",onClick:a}},RECURRING_CHARGE_FAIL:{title:"Renew your subscription",description:"It seems your subscription is currently canceled. Renew your subscription to continue enjoying our features.",primaryButton:{children:"Renew subscription",variant:"tc-solid-primary",onClick:o},secondaryButton:{children:"View plans",variant:"link",onClick:a}}}[n];return T.jsx(PF,{isCentered:!0,isOpen:e,leastDestructiveRef:r,trapFocus:!1,onClose:()=>t==null?void 0:t(),closeOnEsc:!1,closeOnOverlayClick:!1,children:T.jsx(Rb,{children:T.jsxs(OF,{children:[T.jsx(Ab,{children:T.jsxs(vh,{textAlign:"center",gap:"16px",children:[T.jsx(xu,{alt:"Your trial has expired",src:kz}),T.jsx(Ot,{color:"gray.800",fontSize:"20px",as:"h1",lineHeight:"100%",fontWeight:"600",children:l.title}),T.jsx(Ot,{color:"gray.800",fontSize:"14px",lineHeight:"150%",children:l.description})]})}),T.jsxs(RF,{pb:"24px",display:"flex",flexDirection:"column",gap:"16px",children:[T.jsx(Jr,{ref:r,...l.primaryButton,children:l.primaryButton.children}),T.jsx(Jr,{colorScheme:"blue",...l.secondaryButton,children:l.secondaryButton.children})]})]})})})},kTe=xc.create(({...e})=>{const{visible:t,hide:n}=i2();return T.jsx(ETe,{...e,isOpen:t,onClose:n})}),TTe=()=>{var a,o;const e=Ao(),t=Wg(),n=(a=e.data)==null?void 0:a.data.id,r=(o=e.data)==null?void 0:o.data.reason_block,i=mTe({name:n});return gTe({name:oxe.subscriptionChannels.CLIENT_SUBSCRIPTION_SUCCESS,channel:i,callBack:w.useCallback(()=>{window.location.reload()},[])}),w.useEffect(()=>{r&&(r===ff.TRIAL_EXPIRED&&xc.show(i5),(r===ff.RECURRING_CHARGE_FAIL||r===ff.NO_SUBSCRIPTION)&&xc.show(i5,{reasonBlock:ff.RECURRING_CHARGE_FAIL}))},[r]),w.useEffect(()=>{Z6.parse(t.search.replace("?",""),{}).onboardingSuccess==="true"&&xc.show(vTe)},[t.search]),T.jsx(T.Fragment,{})},PTe=({children:e})=>T.jsx(xc.Provider,{children:e});xc.register(i5,kTe);const OTe=()=>T.jsx(w.Fragment,{}),RTe=()=>{Uwe();const e=qg(),[t,n]=w.useState(!0);w.useEffect(()=>{df.authSuccess({domain:ig.transcyHostname,refreshToken:"",token:ig.transcyToken,tokenExpiresAt:ez(new Date,3).toISOString()})},[]);const{isLoading:r,status:i,data:a}=Ao(),{data:o,status:s}=wo({queryKey:[wz.getCrispChatUser],queryFn:()=>X6.getCrispChatUser()}),l=r||t;return w.useEffect(()=>{var h;if(r)return;const c=(h=a==null?void 0:a.data)==null?void 0:h.step_onboarding;typeof c=="boolean"&&c||Gg.isNil(c)||c===3||e("/onboarding"),n(!1)},[r]),w.useEffect(()=>{i!=="success"||s!=="success"||($C.initCrispChat(a.data,o.data),localStorage.getItem(uR)||(localStorage.setItem(uR,nj),$C.openBubble()))},[i,s]),T.jsx(PTe,{children:l?T.jsx(hu,{minH:"100vh",children:T.jsx(Dg,{size:"xl",color:"tc.green.600",thickness:"4px",speed:"0.65s",emptyColor:"gray.200"})}):T.jsxs(T.Fragment,{children:[T.jsx(OTe,{}),T.jsx(TTe,{}),T.jsx(P6,{})]})})},kr={ROUTES:{HOME:"/",ONBOARDING:"/onboarding",ONBOARDING_SUCCESS:"/onboarding/success"},EXTERNAL_ROUTES:{CURRENCY:"/currency",LANGUAGE:"/language",AUTO_TRANSLATE:"/auto-translate",PRICING:"/pricing",PRICING_DETAIL:"/pricing/detail",MANAGE_TRANSLATIONS:"/translation",SWITCHER:"/switcher"}},ATe=Q0e([{path:"/",element:T.jsx(RTe,{}),children:[{element:T.jsx(dR,{}),children:[{index:!0,element:T.jsx(PCe,{})}]},{path:kr.ROUTES.ONBOARDING,element:T.jsx(dR,{isEnableHeader:!1,containerProps:{bg:"white"}}),children:[{element:T.jsx(ICe,{}),children:[{index:!0,element:T.jsx(K7e,{})}]}]}]}]);function ITe(){return T.jsx(ave,{client:tye,children:T.jsx(Bve,{i18n:ei,children:T.jsx(Hce,{theme:sye,resetCSS:!0,children:T.jsx(q0e,{router:ATe})})})})}_x.createRoot(document.getElementById("app")).render(T.jsx(w.StrictMode,{children:T.jsx(ITe,{})}));
     485`);return $!==-1?(this.position+=$+1,P.slice(0,$)):null}isBufferTooLong(x){return this.position===x.length&&x.length>eo}}var dl;(function(O){O[O.CONNECTING=0]="CONNECTING",O[O.OPEN=1]="OPEN",O[O.CLOSED=3]="CLOSED"})(dl||(dl={}));var to=dl,fl=1;class Yc{constructor(x,P){this.hooks=x,this.session=hl(1e3)+"/"+pl(8),this.location=Zc(P),this.readyState=to.CONNECTING,this.openStream()}send(x){return this.sendRaw(JSON.stringify([x]))}ping(){this.hooks.sendHeartbeat(this)}close(x,P){this.onClose(x,P,!0)}sendRaw(x){if(this.readyState===to.OPEN)try{return Be.createSocketRequest("POST",_s(Qc(this.location,this.session))).start(x),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(x,P,$){this.closeStream(),this.readyState=to.CLOSED,this.onclose&&this.onclose({code:x,reason:P,wasClean:$})}onChunk(x){if(x.status===200){this.readyState===to.OPEN&&this.onActivity();var P,$=x.data.slice(0,1);switch($){case"o":P=JSON.parse(x.data.slice(1)||"{}"),this.onOpen(P);break;case"a":P=JSON.parse(x.data.slice(1)||"[]");for(var V=0;V<P.length;V++)this.onEvent(P[V]);break;case"m":P=JSON.parse(x.data.slice(1)||"null"),this.onEvent(P);break;case"h":this.hooks.onHeartbeat(this);break;case"c":P=JSON.parse(x.data.slice(1)||"[]"),this.onClose(P[0],P[1],!0);break}}}onOpen(x){this.readyState===to.CONNECTING?(x&&x.hostname&&(this.location.base=Lu(this.location.base,x.hostname)),this.readyState=to.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(x){this.readyState===to.OPEN&&this.onmessage&&this.onmessage({data:x})}onActivity(){this.onactivity&&this.onactivity()}onError(x){this.onerror&&this.onerror(x)}openStream(){this.stream=Be.createSocketRequest("POST",_s(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",x=>{this.onChunk(x)}),this.stream.bind("finished",x=>{this.hooks.onFinished(this,x)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(x){Le.defer(()=>{this.onError(x),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Zc(O){var x=/([^\?]*)\/*(\??.*)/.exec(O);return{base:x[1],queryString:x[2]}}function Qc(O,x){return O.base+"/"+x+"/xhr_send"}function _s(O){var x=O.indexOf("?")===-1?"?":"&";return O+x+"t="+ +new Date+"&n="+fl++}function Lu(O,x){var P=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(O);return P[1]+x+P[3]}function hl(O){return Be.randomInt(O)}function pl(O){for(var x=[],P=0;P<O;P++)x.push(hl(32).toString(32));return x.join("")}var Mh=Yc,Xc={getReceiveURL:function(O,x){return O.base+"/"+x+"/xhr_streaming"+O.queryString},onHeartbeat:function(O){O.sendRaw("[]")},sendHeartbeat:function(O){O.sendRaw("[]")},onFinished:function(O,x){O.onClose(1006,"Connection interrupted ("+x+")",!1)}},Mu=Xc,Jc={getReceiveURL:function(O,x){return O.base+"/"+x+"/xhr"+O.queryString},onHeartbeat:function(){},sendHeartbeat:function(O){O.sendRaw("[]")},onFinished:function(O,x){x===200?O.reconnect():O.onClose(1006,"Connection interrupted ("+x+")",!1)}},aa=Jc,bs={getRequest:function(O){var x=Be.getXHRAPI(),P=new x;return P.onreadystatechange=P.onprogress=function(){switch(P.readyState){case 3:P.responseText&&P.responseText.length>0&&O.onChunk(P.status,P.responseText);break;case 4:P.responseText&&P.responseText.length>0&&O.onChunk(P.status,P.responseText),O.emit("finished",P.status),O.close();break}},P},abortRequest:function(O){O.onreadystatechange=null,O.abort()}},Dh=bs,ed={createStreamingSocket(O){return this.createSocket(Mu,O)},createPollingSocket(O){return this.createSocket(aa,O)},createSocket(O,x){return new Mh(O,x)},createXHR(O,x){return this.createRequest(Dh,O,x)},createRequest(O,x,P){return new Kc(O,x,P)}},td=ed;td.createXDR=function(O,x){return this.createRequest(Iu,O,x)};var nd=td,mn={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:o,DependenciesReceivers:f,getDefaultStrategy:qc,Transports:hr,transportConnectionInitializer:Gc,HTTPFactory:nd,TimelineTransport:ni,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(O){window.Pusher=O;var x=()=>{this.onDocumentBody(O.ready)};window.JSON?x():h.load("json2",{},x)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:z,jsonp:Dn}},onDocumentBody(O){document.body?O():setTimeout(()=>{this.onDocumentBody(O)},0)},createJSONPRequest(O,x){return new ur(O,x)},createScriptRequest(O){return new rn(O)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var O=this.getXHRAPI();return new O},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Zt},createWebSocket(O){var x=this.getWebSocketAPI();return new x(O)},createSocketRequest(O,x){if(this.isXHRSupported())return this.HTTPFactory.createXHR(O,x);if(this.isXDRSupported(x.indexOf("https:")===0))return this.HTTPFactory.createXDR(O,x);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var O=this.getXHRAPI();return!!O&&new O().withCredentials!==void 0},isXDRSupported(O){var x=O?"https:":"http:",P=this.getProtocol();return!!window.XDomainRequest&&P===x},addUnloadListener(O){window.addEventListener!==void 0?window.addEventListener("unload",O,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",O)},removeUnloadListener(O){window.addEventListener!==void 0?window.removeEventListener("unload",O,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",O)},randomInt(O){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*O)}},Be=mn,ml;(function(O){O[O.ERROR=3]="ERROR",O[O.INFO=6]="INFO",O[O.DEBUG=7]="DEBUG"})(ml||(ml={}));var gl=ml;class j{constructor(x,P,$){this.key=x,this.session=P,this.events=[],this.options=$||{},this.sent=0,this.uniqueID=0}log(x,P){x<=this.options.level&&(this.events.push(Ae({},P,{timestamp:Le.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(x){this.log(gl.ERROR,x)}info(x){this.log(gl.INFO,x)}debug(x){this.log(gl.DEBUG,x)}isEmpty(){return this.events.length===0}send(x,P){var $=Ae({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],x($,(V,se)=>{V||this.sent++,P&&P(V,se)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class G{constructor(x,P,$,V){this.name=x,this.priority=P,this.transport=$,this.options=V||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(x,P){if(this.isSupported()){if(this.priority<x)return ne(new C,P)}else return ne(new I,P);var $=!1,V=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),se=null,Pe=function(){V.unbind("initialized",Pe),V.connect()},Ke=function(){se=Fi.createHandshake(V,function(Nn){$=!0,Xt(),P(null,Nn)})},vt=function(Nn){Xt(),P(Nn)},Gt=function(){Xt();var Nn;Nn=Ie(V),P(new E(Nn))},Xt=function(){V.unbind("initialized",Pe),V.unbind("open",Ke),V.unbind("error",vt),V.unbind("closed",Gt)};return V.bind("initialized",Pe),V.bind("open",Ke),V.bind("error",vt),V.bind("closed",Gt),V.initialize(),{abort:()=>{$||(Xt(),se?se.close():V.close())},forceMinPriority:Nn=>{$||this.priority<Nn&&(se?se.close():V.close())}}}}function ne(O,x){return Le.defer(function(){x(O)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Ve}=Be;var Lt=function(O,x,P,$,V,se){var Pe=Ve[P];if(!Pe)throw new A(P);var Ke=(!O.enabledTransports||Ye(O.enabledTransports,x)!==-1)&&(!O.disabledTransports||Ye(O.disabledTransports,x)===-1),vt;return Ke?(V=Object.assign({ignoreNullOrigin:O.ignoreNullOrigin},V),vt=new G(x,$,se?se.getAssistant(Pe):Pe,V)):vt=on,vt},on={isSupported:function(){return!1},connect:function(O,x){var P=Le.defer(function(){x(new I)});return{abort:function(){P.ensureAborted()},forceMinPriority:function(){}}}};function _t(O){if(O==null)throw"You must pass an options object";if(O.cluster==null)throw"Options object must provide a cluster";"disableStats"in O&&Ge.warn("The disableStats option is deprecated in favor of enableStats")}const Et=(O,x)=>{var P="socket_id="+encodeURIComponent(O.socketId);for(var $ in x.params)P+="&"+encodeURIComponent($)+"="+encodeURIComponent(x.params[$]);if(x.paramsProvider!=null){let V=x.paramsProvider();for(var $ in V)P+="&"+encodeURIComponent($)+"="+encodeURIComponent(V[$])}return P};var Wr=O=>{if(typeof Be.getAuthorizers()[O.transport]>"u")throw`'${O.transport}' is not a recognized auth transport`;return(x,P)=>{const $=Et(x,O);Be.getAuthorizers()[O.transport](Be,$,O,m.UserAuthentication,P)}};const br=(O,x)=>{var P="socket_id="+encodeURIComponent(O.socketId);P+="&channel_name="+encodeURIComponent(O.channelName);for(var $ in x.params)P+="&"+encodeURIComponent($)+"="+encodeURIComponent(x.params[$]);if(x.paramsProvider!=null){let V=x.paramsProvider();for(var $ in V)P+="&"+encodeURIComponent($)+"="+encodeURIComponent(V[$])}return P};var vl=O=>{if(typeof Be.getAuthorizers()[O.transport]>"u")throw`'${O.transport}' is not a recognized auth transport`;return(x,P)=>{const $=br(x,O);Be.getAuthorizers()[O.transport](Be,$,O,m.ChannelAuthorization,P)}};const yl=(O,x,P)=>{const $={authTransport:x.transport,authEndpoint:x.endpoint,auth:{params:x.params,headers:x.headers}};return(V,se)=>{const Pe=O.channel(V.channelName);P(Pe,$).authorize(V.socketId,se)}};function Du(O,x){let P={activityTimeout:O.activityTimeout||l.activityTimeout,cluster:O.cluster,httpPath:O.httpPath||l.httpPath,httpPort:O.httpPort||l.httpPort,httpsPort:O.httpsPort||l.httpsPort,pongTimeout:O.pongTimeout||l.pongTimeout,statsHost:O.statsHost||l.stats_host,unavailableTimeout:O.unavailableTimeout||l.unavailableTimeout,wsPath:O.wsPath||l.wsPath,wsPort:O.wsPort||l.wsPort,wssPort:O.wssPort||l.wssPort,enableStats:o2(O),httpHost:sv(O),useTLS:bi(O),wsHost:lv(O),userAuthenticator:$i(O),channelAuthorizer:cv(O,x)};return"disabledTransports"in O&&(P.disabledTransports=O.disabledTransports),"enabledTransports"in O&&(P.enabledTransports=O.enabledTransports),"ignoreNullOrigin"in O&&(P.ignoreNullOrigin=O.ignoreNullOrigin),"timelineParams"in O&&(P.timelineParams=O.timelineParams),"nacl"in O&&(P.nacl=O.nacl),P}function sv(O){return O.httpHost?O.httpHost:O.cluster?`sockjs-${O.cluster}.pusher.com`:l.httpHost}function lv(O){return O.wsHost?O.wsHost:uv(O.cluster)}function uv(O){return`ws-${O}.pusher.com`}function bi(O){return Be.getProtocol()==="https:"?!0:O.forceTLS!==!1}function o2(O){return"enableStats"in O?O.enableStats:"disableStats"in O?!O.disableStats:!1}function $i(O){const x=Object.assign(Object.assign({},l.userAuthentication),O.userAuthentication);return"customHandler"in x&&x.customHandler!=null?x.customHandler:Wr(x)}function s2(O,x){let P;return"channelAuthorization"in O?P=Object.assign(Object.assign({},l.channelAuthorization),O.channelAuthorization):(P={transport:O.authTransport||l.authTransport,endpoint:O.authEndpoint||l.authEndpoint},"auth"in O&&("params"in O.auth&&(P.params=O.auth.params),"headers"in O.auth&&(P.headers=O.auth.headers)),"authorizer"in O&&(P.customHandler=yl(x,P,O.authorizer))),P}function cv(O,x){const P=s2(O,x);return"customHandler"in P&&P.customHandler!=null?P.customHandler:vl(P)}class Do extends Ze{constructor(x){super(function(P,$){Ge.debug(`No callbacks on watchlist events for ${P}`)}),this.pusher=x,this.bindWatchlistInternalEvent()}handleEvent(x){x.data.events.forEach(P=>{this.emit(P.name,P)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",x=>{var P=x.event;P==="pusher_internal:watchlist_events"&&this.handleEvent(x)})}}function rd(){let O,x;return{promise:new Promise(($,V)=>{O=$,x=V}),resolve:O,reject:x}}var Nh=rd;class Cn extends Ze{constructor(x){super(function(P,$){Ge.debug("No callbacks on user for "+P)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(P,$)=>{if(P){Ge.warn(`Error during signin: ${P}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:$.auth,user_data:$.user_data})},this.pusher=x,this.pusher.connection.bind("state_change",({previous:P,current:$})=>{P!=="connected"&&$==="connected"&&this._signin(),P==="connected"&&$!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new Do(x),this.pusher.connection.bind("message",P=>{var $=P.event;$==="pusher:signin_success"&&this._onSigninSuccess(P.data),this.serverToUserChannel&&this.serverToUserChannel.name===P.channel&&this.serverToUserChannel.handleEvent(P)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(x){try{this.user_data=JSON.parse(x.user_data)}catch{Ge.error(`Failed parsing user data after signin: ${x.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){Ge.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const x=P=>{P.subscriptionPending&&P.subscriptionCancelled?P.reinstateSubscription():!P.subscriptionPending&&this.pusher.connection.state==="connected"&&P.subscribe()};this.serverToUserChannel=new ms(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((P,$)=>{P.indexOf("pusher_internal:")===0||P.indexOf("pusher:")===0||this.emit(P,$)}),x(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:x,resolve:P,reject:$}=Nh();x.done=!1;const V=()=>{x.done=!0};x.then(V).catch(V),this.signinDonePromise=x,this._signinDoneResolve=P}}class En{static ready(){En.isReady=!0;for(var x=0,P=En.instances.length;x<P;x++)En.instances[x].connect()}static getClientFeatures(){return wt(yt({ws:Be.Transports.ws},function(x){return x.isSupported({})}))}constructor(x,P){l2(x),_t(P),this.key=x,this.config=Du(P,this),this.channels=Fi.createChannels(),this.global_emitter=new Ze,this.sessionID=Be.randomInt(1e9),this.timeline=new j(this.key,this.sessionID,{cluster:this.config.cluster,features:En.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:gl.INFO,version:l.VERSION}),this.config.enableStats&&(this.timelineSender=Fi.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Be.TimelineTransport.name}));var $=V=>Be.getDefaultStrategy(this.config,V,Lt);this.connection=Fi.createConnectionManager(this.key,{getStrategy:$,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",V=>{var se=V.event,Pe=se.indexOf("pusher_internal:")===0;if(V.channel){var Ke=this.channel(V.channel);Ke&&Ke.handleEvent(V)}Pe||this.global_emitter.emit(V.event,V.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",V=>{Ge.warn(V)}),En.instances.push(this),this.timeline.info({instances:En.instances.length}),this.user=new Cn(this),En.isReady&&this.connect()}channel(x){return this.channels.find(x)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var x=this.connection.isUsingTLS(),P=this.timelineSender;this.timelineSenderTimer=new xe(6e4,function(){P.send(x)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(x,P,$){return this.global_emitter.bind(x,P,$),this}unbind(x,P,$){return this.global_emitter.unbind(x,P,$),this}bind_global(x){return this.global_emitter.bind_global(x),this}unbind_global(x){return this.global_emitter.unbind_global(x),this}unbind_all(x){return this.global_emitter.unbind_all(),this}subscribeAll(){var x;for(x in this.channels.channels)this.channels.channels.hasOwnProperty(x)&&this.subscribe(x)}subscribe(x){var P=this.channels.add(x,this);return P.subscriptionPending&&P.subscriptionCancelled?P.reinstateSubscription():!P.subscriptionPending&&this.connection.state==="connected"&&P.subscribe(),P}unsubscribe(x){var P=this.channels.find(x);P&&P.subscriptionPending?P.cancelSubscription():(P=this.channels.remove(x),P&&P.subscribed&&P.unsubscribe())}send_event(x,P,$){return this.connection.send_event(x,P,$)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}En.instances=[],En.isReady=!1,En.logToConsole=!1,En.Runtime=Be,En.ScriptReceivers=Be.ScriptReceivers,En.DependenciesReceivers=Be.DependenciesReceivers,En.auth_callbacks=Be.auth_callbacks;var Nu=r.default=En;function l2(O){if(O==null)throw"You must pass your app key when you instantiate Pusher."}Be.setup(En)}])})})(NB);var fTe=NB.exports;const hTe=vu(fTe),pf=class pf{constructor(){pf.instance||(pf.instance=new hTe(tbe,{cluster:nbe}))}getInstance(){return pf.instance}};Xv(pf,"instance");let r5=pf;const pTe=new r5().getInstance(),mTe=({name:e})=>{const[t,n]=w.useState();return w.useEffect(()=>{if(!e)return;const r=pTe.subscribe(e);return n(r),()=>{r.unsubscribe()}},[e]),t},gTe=({name:e,callBack:t,channel:n})=>(w.useEffect(()=>{if(n)return n.bind(e,t),()=>{n.unbind(e,t)}},[n,e,t]),{}),vTe=xc.create(()=>{const e=w.useRef(),t=i2(),[n,r]=eye(),i=()=>{var a;n.delete("onboardingSuccess"),r(n),(a=t.hide)==null||a.call(t)};return T.jsx(PF,{isCentered:!0,isOpen:t.visible,leastDestructiveRef:e,trapFocus:!1,onClose:()=>i(),children:T.jsx(Rb,{children:T.jsx(OF,{children:T.jsx(Ab,{p:"32px",bg:"blue.50",rounded:"8px",children:T.jsxs(vh,{textAlign:"center",gap:"20px",children:[T.jsx(xu,{alt:"We’re all set to go!",src:kz}),T.jsxs($e,{children:[T.jsx(Ot,{pb:"8px",fontSize:"24px",as:"h1",color:"tc.green.600",fontWeight:600,lineHeight:"100%",children:"We’re all set to go!"}),T.jsx(Ot,{fontSize:"14px",color:"gray.800",children:"Accelerate your global expansion today."})]}),T.jsx(Jr,{onClick:i,variant:"tc-solid-primary",children:"Get started"})]})})})})})}),yTe={CHOOSE_PLAN:"Choose Plan",VIEW_TRIAL_END_BLOCK:"View Trial End Block"},_Te=()=>Ir({url:"clients/current/plan"}),bTe=()=>Ir({url:"pricing/plans"}),STe=e=>Ir({url:"charges/subscriptions",method:"POST",data:e}),wTe=e=>Ir({url:"clients/plan/select",method:"PUT",data:e}),xTe=e=>Ir({url:"tracking/event",method:"POST",data:e}),CTe={getCurrentUserPlan:_Te,getAllPlan:bTe,chargesSubscriptions:STe,selectTrialPlan:wTe,trackingSegmentEvent:xTe},i5="PLAN_SUBSCRIPTION_STATUS_MODAL_ID",ETe=({isOpen:e=!1,onClose:t,reasonBlock:n=ff.TRIAL_EXPIRED})=>{const r=w.useRef(),{mutate:i}=i$({mutationFn:c=>CTe.trackingSegmentEvent(c)});w.useEffect(()=>{n===ff.TRIAL_EXPIRED&&i({event:yTe.VIEW_TRIAL_END_BLOCK})},[i,n]);const a=async()=>{await Qo({adminRedirectUrl:kr.EXTERNAL_ROUTES.PRICING})},o=async()=>{await Qo({adminRedirectUrl:`${kr.EXTERNAL_ROUTES.PRICING_DETAIL}/${Yl.STARTER}`,queryString:{parentPath:kr.EXTERNAL_ROUTES.PRICING,planName:Yl.STARTER}})},l={TRIAL_EXPIRED:{title:"Your trial has expired",description:"We hope you enjoyed the advanced features. For uninterrupted benefits, please renew your subscription now!",primaryButton:{children:"Approve subscription",variant:"tc-solid-primary",onClick:o},secondaryButton:{children:"View plans",variant:"link",onClick:a}},RECURRING_CHARGE_FAIL:{title:"Renew your subscription",description:"It seems your subscription is currently canceled. Renew your subscription to continue enjoying our features.",primaryButton:{children:"Renew subscription",variant:"tc-solid-primary",onClick:o},secondaryButton:{children:"View plans",variant:"link",onClick:a}}}[n];return T.jsx(PF,{isCentered:!0,isOpen:e,leastDestructiveRef:r,trapFocus:!1,onClose:()=>t==null?void 0:t(),closeOnEsc:!1,closeOnOverlayClick:!1,children:T.jsx(Rb,{children:T.jsxs(OF,{children:[T.jsx(Ab,{children:T.jsxs(vh,{textAlign:"center",gap:"16px",children:[T.jsx(xu,{alt:"Your trial has expired",src:kz}),T.jsx(Ot,{color:"gray.800",fontSize:"20px",as:"h1",lineHeight:"100%",fontWeight:"600",children:l.title}),T.jsx(Ot,{color:"gray.800",fontSize:"14px",lineHeight:"150%",children:l.description})]})}),T.jsxs(RF,{pb:"24px",display:"flex",flexDirection:"column",gap:"16px",children:[T.jsx(Jr,{ref:r,...l.primaryButton,children:l.primaryButton.children}),T.jsx(Jr,{colorScheme:"blue",...l.secondaryButton,children:l.secondaryButton.children})]})]})})})},kTe=xc.create(({...e})=>{const{visible:t,hide:n}=i2();return T.jsx(ETe,{...e,isOpen:t,onClose:n})}),TTe=()=>{var a,o;const e=Ao(),t=Wg(),n=(a=e.data)==null?void 0:a.data.id,r=(o=e.data)==null?void 0:o.data.reason_block,i=mTe({name:n});return gTe({name:oxe.subscriptionChannels.CLIENT_SUBSCRIPTION_SUCCESS,channel:i,callBack:w.useCallback(()=>{window.location.reload()},[])}),w.useEffect(()=>{r&&(r===ff.TRIAL_EXPIRED&&xc.show(i5),(r===ff.RECURRING_CHARGE_FAIL||r===ff.NO_SUBSCRIPTION)&&xc.show(i5,{reasonBlock:ff.RECURRING_CHARGE_FAIL}))},[r]),w.useEffect(()=>{Z6.parse(t.search.replace("?",""),{}).onboardingSuccess==="true"&&xc.show(vTe)},[t.search]),T.jsx(T.Fragment,{})},PTe=({children:e})=>T.jsx(xc.Provider,{children:e});xc.register(i5,kTe);const OTe=()=>T.jsx(w.Fragment,{}),RTe=()=>{Uwe();const e=qg(),[t,n]=w.useState(!0);w.useEffect(()=>{df.authSuccess({domain:ig.transcyHostname,refreshToken:"",token:ig.transcyToken,tokenExpiresAt:ez(new Date,3).toISOString()})},[]);const{isLoading:r,status:i,data:a}=Ao(),{data:o,status:s}=wo({queryKey:[wz.getCrispChatUser],queryFn:()=>X6.getCrispChatUser()}),l=r||t;return w.useEffect(()=>{var h;if(r)return;const c=(h=a==null?void 0:a.data)==null?void 0:h.step_onboarding;typeof c=="boolean"&&c||Gg.isNil(c)||c===3||e("/onboarding"),n(!1)},[r]),w.useEffect(()=>{i!=="success"||s!=="success"||($3.initCrispChat(a.data,o.data),localStorage.getItem(uR)||(localStorage.setItem(uR,nj),$3.openBubble()))},[i,s]),T.jsx(PTe,{children:l?T.jsx(hu,{minH:"100vh",children:T.jsx(Dg,{size:"xl",color:"tc.green.600",thickness:"4px",speed:"0.65s",emptyColor:"gray.200"})}):T.jsxs(T.Fragment,{children:[T.jsx(OTe,{}),T.jsx(TTe,{}),T.jsx(P6,{})]})})},kr={ROUTES:{HOME:"/",ONBOARDING:"/onboarding",ONBOARDING_SUCCESS:"/onboarding/success"},EXTERNAL_ROUTES:{CURRENCY:"/currency",LANGUAGE:"/language",AUTO_TRANSLATE:"/auto-translate",PRICING:"/pricing",PRICING_DETAIL:"/pricing/detail",MANAGE_TRANSLATIONS:"/translation",SWITCHER:"/switcher"}},ATe=Q0e([{path:"/",element:T.jsx(RTe,{}),children:[{element:T.jsx(dR,{}),children:[{index:!0,element:T.jsx(P3e,{})}]},{path:kr.ROUTES.ONBOARDING,element:T.jsx(dR,{isEnableHeader:!1,containerProps:{bg:"white"}}),children:[{element:T.jsx(I3e,{}),children:[{index:!0,element:T.jsx(K7e,{})}]}]}]}]);function ITe(){return T.jsx(ave,{client:tye,children:T.jsx(Bve,{i18n:ei,children:T.jsx(Hce,{theme:sye,resetCSS:!0,children:T.jsx(q0e,{router:ATe})})})})}_x.createRoot(document.getElementById("app")).render(T.jsx(w.StrictMode,{children:T.jsx(ITe,{})}));
  • transcy/trunk/readme.txt

    r2970135 r2973631  
    55Requires at least: 4.5
    66Tested up to: 6.2.0
    7 Stable tag: 2.10.2
     7Stable tag: 2.10.5
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    164164
    165165== Changelog ==
    166 = 2.10.2 - 2023-09-22 =
     166= 2.10.5 - 2023-10-02 =
    167167* Hotfix errors
    168168
  • transcy/trunk/transcy.php

    r2970135 r2973631  
    44Plugin URI: https://onecommerce.io/transcy/?utm_source=transcyphp&utm_medium=plugin-uri&utm_campaign=wordpress-tc
    55Description: Make your website multilingual easily with no coding. Instantly translate between languages with the Google Translate API.
    6 Version: 2.10.2
     6Version: 2.10.5
    77Author: OneCommerce
    88Author URI: https://onecommerce.io/transcy/?utm_source=transcyphp&utm_medium=author-uri&utm_campaign=wordpress-tc
Note: See TracChangeset for help on using the changeset viewer.