@nlxai/touchpoint-ui 1.2.4-alpha.5 → 1.2.4-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +14 -3
- package/lib/index.umd.js +2 -2
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -5997,7 +5997,7 @@ var Gw = /* @__PURE__ */ Op(/* @__PURE__ */ S0([], qw, function(n, e) {
|
|
|
5997
5997
|
l = e[o], a = n(l), t.add(a) && r.push(l), o += 1;
|
|
5998
5998
|
return r;
|
|
5999
5999
|
})), Kw = /* @__PURE__ */ Gw(zw);
|
|
6000
|
-
const Jw = "1.2.4-alpha.
|
|
6000
|
+
const Jw = "1.2.4-alpha.6", Yw = {
|
|
6001
6001
|
version: Jw
|
|
6002
6002
|
};
|
|
6003
6003
|
var _n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
@@ -6811,7 +6811,7 @@ function Dv(n, e, t) {
|
|
|
6811
6811
|
const r = n.random || (n.rng || kC)();
|
|
6812
6812
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, wC(r);
|
|
6813
6813
|
}
|
|
6814
|
-
var SC = "1.2.4-alpha.
|
|
6814
|
+
var SC = "1.2.4-alpha.6", ld = {
|
|
6815
6815
|
version: SC
|
|
6816
6816
|
};
|
|
6817
6817
|
const _s = console;
|
|
@@ -6898,7 +6898,18 @@ const Nv = "NLX.Welcome", TC = "We encountered an issue. Please try again soon."
|
|
|
6898
6898
|
}
|
|
6899
6899
|
return o.interimMessage.forEach((T) => {
|
|
6900
6900
|
T(void 0);
|
|
6901
|
-
}), {
|
|
6901
|
+
}), {
|
|
6902
|
+
...x,
|
|
6903
|
+
messages: [
|
|
6904
|
+
...w,
|
|
6905
|
+
...(x.messages ?? []).map((T) => ({
|
|
6906
|
+
text: T.text,
|
|
6907
|
+
choices: T.choices ?? [],
|
|
6908
|
+
messageId: T.messageId,
|
|
6909
|
+
metadata: T.metadata
|
|
6910
|
+
}))
|
|
6911
|
+
]
|
|
6912
|
+
};
|
|
6902
6913
|
};
|
|
6903
6914
|
if (r)
|
|
6904
6915
|
return await a(t);
|
package/lib/index.umd.js
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
`).replace(VP,"")}function od(i,s,c){if(s=e1(s),e1(i)!==s&&c)throw Error(t(425))}function sd(){}var gp=null,vp=null;function yp(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var bp=typeof setTimeout=="function"?setTimeout:void 0,zP=typeof clearTimeout=="function"?clearTimeout:void 0,t1=typeof Promise=="function"?Promise:void 0,HP=typeof queueMicrotask=="function"?queueMicrotask:typeof t1<"u"?function(i){return t1.resolve(null).then(i).catch(WP)}:bp;function WP(i){setTimeout(function(){throw i})}function kp(i,s){var c=s,m=0;do{var b=c.nextSibling;if(i.removeChild(c),b&&b.nodeType===8)if(c=b.data,c==="/$"){if(m===0){i.removeChild(b),Dn(s);return}m--}else c!=="$"&&c!=="$?"&&c!=="$!"||m++;c=b}while(c);Dn(s)}function No(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function n1(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return i;s--}else c==="/$"&&s++}i=i.previousSibling}return null}var Ua=Math.random().toString(36).slice(2),Oi="__reactFiber$"+Ua,uc="__reactProps$"+Ua,no="__reactContainer$"+Ua,wp="__reactEvents$"+Ua,$P="__reactListeners$"+Ua,qP="__reactHandles$"+Ua;function As(i){var s=i[Oi];if(s)return s;for(var c=i.parentNode;c;){if(s=c[no]||c[Oi]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(i=n1(i);i!==null;){if(c=i[Oi])return c;i=n1(i)}return s}i=c,c=i.parentNode}return null}function dc(i){return i=i[Oi]||i[no],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Fa(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(t(33))}function ad(i){return i[uc]||null}var Cp=[],Ba=-1;function jo(i){return{current:i}}function jt(i){0>Ba||(i.current=Cp[Ba],Cp[Ba]=null,Ba--)}function Ot(i,s){Ba++,Cp[Ba]=i.current,i.current=s}var Uo={},Un=jo(Uo),dr=jo(!1),Os=Uo;function Va(i,s){var c=i.type.contextTypes;if(!c)return Uo;var m=i.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===s)return m.__reactInternalMemoizedMaskedChildContext;var b={},k;for(k in c)b[k]=s[k];return m&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=b),b}function fr(i){return i=i.childContextTypes,i!=null}function ld(){jt(dr),jt(Un)}function r1(i,s,c){if(Un.current!==Uo)throw Error(t(168));Ot(Un,s),Ot(dr,c)}function i1(i,s,c){var m=i.stateNode;if(s=s.childContextTypes,typeof m.getChildContext!="function")return c;m=m.getChildContext();for(var b in m)if(!(b in s))throw Error(t(108,Ze(i)||"Unknown",b));return we({},c,m)}function cd(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Uo,Os=Un.current,Ot(Un,i),Ot(dr,dr.current),!0}function o1(i,s,c){var m=i.stateNode;if(!m)throw Error(t(169));c?(i=i1(i,s,Os),m.__reactInternalMemoizedMergedChildContext=i,jt(dr),jt(Un),Ot(Un,i)):jt(dr),Ot(dr,c)}var ro=null,ud=!1,Sp=!1;function s1(i){ro===null?ro=[i]:ro.push(i)}function GP(i){ud=!0,s1(i)}function Fo(){if(!Sp&&ro!==null){Sp=!0;var i=0,s=vt;try{var c=ro;for(vt=1;i<c.length;i++){var m=c[i];do m=m(!0);while(m!==null)}ro=null,ud=!1}catch(b){throw ro!==null&&(ro=ro.slice(i+1)),Fl(wa,Fo),b}finally{vt=s,Sp=!1}}return null}var za=[],Ha=0,dd=null,fd=0,Vr=[],zr=0,Ls=null,io=1,oo="";function Ds(i,s){za[Ha++]=fd,za[Ha++]=dd,dd=i,fd=s}function a1(i,s,c){Vr[zr++]=io,Vr[zr++]=oo,Vr[zr++]=Ls,Ls=i;var m=io;i=oo;var b=32-En(m)-1;m&=~(1<<b),c+=1;var k=32-En(s)+b;if(30<k){var E=b-b%5;k=(m&(1<<E)-1).toString(32),m>>=E,b-=E,io=1<<32-En(s)+b|c<<b|m,oo=k+i}else io=1<<k|c<<b|m,oo=i}function Tp(i){i.return!==null&&(Ds(i,1),a1(i,1,0))}function _p(i){for(;i===dd;)dd=za[--Ha],za[Ha]=null,fd=za[--Ha],za[Ha]=null;for(;i===Ls;)Ls=Vr[--zr],Vr[zr]=null,oo=Vr[--zr],Vr[zr]=null,io=Vr[--zr],Vr[zr]=null}var Sr=null,Tr=null,Bt=!1,ci=null;function l1(i,s){var c=qr(5,null,null,0);c.elementType="DELETED",c.stateNode=s,c.return=i,s=i.deletions,s===null?(i.deletions=[c],i.flags|=16):s.push(c)}function c1(i,s){switch(i.tag){case 5:var c=i.type;return s=s.nodeType!==1||c.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,Sr=i,Tr=No(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,Sr=i,Tr=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(c=Ls!==null?{id:io,overflow:oo}:null,i.memoizedState={dehydrated:s,treeContext:c,retryLane:1073741824},c=qr(18,null,null,0),c.stateNode=s,c.return=i,i.child=c,Sr=i,Tr=null,!0):!1;default:return!1}}function xp(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Ep(i){if(Bt){var s=Tr;if(s){var c=s;if(!c1(i,s)){if(xp(i))throw Error(t(418));s=No(c.nextSibling);var m=Sr;s&&c1(i,s)?l1(m,c):(i.flags=i.flags&-4097|2,Bt=!1,Sr=i)}}else{if(xp(i))throw Error(t(418));i.flags=i.flags&-4097|2,Bt=!1,Sr=i}}}function u1(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Sr=i}function hd(i){if(i!==Sr)return!1;if(!Bt)return u1(i),Bt=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!yp(i.type,i.memoizedProps)),s&&(s=Tr)){if(xp(i))throw d1(),Error(t(418));for(;s;)l1(i,s),s=No(s.nextSibling)}if(u1(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(t(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var c=i.data;if(c==="/$"){if(s===0){Tr=No(i.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++}i=i.nextSibling}Tr=null}}else Tr=Sr?No(i.stateNode.nextSibling):null;return!0}function d1(){for(var i=Tr;i;)i=No(i.nextSibling)}function Wa(){Tr=Sr=null,Bt=!1}function Pp(i){ci===null?ci=[i]:ci.push(i)}var KP=O.ReactCurrentBatchConfig;function fc(i,s,c){if(i=c.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(t(309));var m=c.stateNode}if(!m)throw Error(t(147,i));var b=m,k=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===k?s.ref:(s=function(E){var D=b.refs;E===null?delete D[k]:D[k]=E},s._stringRef=k,s)}if(typeof i!="string")throw Error(t(284));if(!c._owner)throw Error(t(290,i))}return i}function pd(i,s){throw i=Object.prototype.toString.call(s),Error(t(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function f1(i){var s=i._init;return s(i._payload)}function h1(i){function s(Z,$){if(i){var oe=Z.deletions;oe===null?(Z.deletions=[$],Z.flags|=16):oe.push($)}}function c(Z,$){if(!i)return null;for(;$!==null;)s(Z,$),$=$.sibling;return null}function m(Z,$){for(Z=new Map;$!==null;)$.key!==null?Z.set($.key,$):Z.set($.index,$),$=$.sibling;return Z}function b(Z,$){return Z=Go(Z,$),Z.index=0,Z.sibling=null,Z}function k(Z,$,oe){return Z.index=oe,i?(oe=Z.alternate,oe!==null?(oe=oe.index,oe<$?(Z.flags|=2,$):oe):(Z.flags|=2,$)):(Z.flags|=1048576,$)}function E(Z){return i&&Z.alternate===null&&(Z.flags|=2),Z}function D(Z,$,oe,Re){return $===null||$.tag!==6?($=bm(oe,Z.mode,Re),$.return=Z,$):($=b($,oe),$.return=Z,$)}function z(Z,$,oe,Re){var Ge=oe.type;return Ge===te?Ce(Z,$,oe.props.children,Re,oe.key):$!==null&&($.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===Pe&&f1(Ge)===$.type)?(Re=b($,oe.props),Re.ref=fc(Z,$,oe),Re.return=Z,Re):(Re=Ud(oe.type,oe.key,oe.props,null,Z.mode,Re),Re.ref=fc(Z,$,oe),Re.return=Z,Re)}function ae(Z,$,oe,Re){return $===null||$.tag!==4||$.stateNode.containerInfo!==oe.containerInfo||$.stateNode.implementation!==oe.implementation?($=km(oe,Z.mode,Re),$.return=Z,$):($=b($,oe.children||[]),$.return=Z,$)}function Ce(Z,$,oe,Re,Ge){return $===null||$.tag!==7?($=Hs(oe,Z.mode,Re,Ge),$.return=Z,$):($=b($,oe),$.return=Z,$)}function _e(Z,$,oe){if(typeof $=="string"&&$!==""||typeof $=="number")return $=bm(""+$,Z.mode,oe),$.return=Z,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case U:return oe=Ud($.type,$.key,$.props,null,Z.mode,oe),oe.ref=fc(Z,null,$),oe.return=Z,oe;case G:return $=km($,Z.mode,oe),$.return=Z,$;case Pe:var Re=$._init;return _e(Z,Re($._payload),oe)}if(Ki($)||ke($))return $=Hs($,Z.mode,oe,null),$.return=Z,$;pd(Z,$)}return null}function be(Z,$,oe,Re){var Ge=$!==null?$.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number")return Ge!==null?null:D(Z,$,""+oe,Re);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case U:return oe.key===Ge?z(Z,$,oe,Re):null;case G:return oe.key===Ge?ae(Z,$,oe,Re):null;case Pe:return Ge=oe._init,be(Z,$,Ge(oe._payload),Re)}if(Ki(oe)||ke(oe))return Ge!==null?null:Ce(Z,$,oe,Re,null);pd(Z,oe)}return null}function Be(Z,$,oe,Re,Ge){if(typeof Re=="string"&&Re!==""||typeof Re=="number")return Z=Z.get(oe)||null,D($,Z,""+Re,Ge);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case U:return Z=Z.get(Re.key===null?oe:Re.key)||null,z($,Z,Re,Ge);case G:return Z=Z.get(Re.key===null?oe:Re.key)||null,ae($,Z,Re,Ge);case Pe:var Qe=Re._init;return Be(Z,$,oe,Qe(Re._payload),Ge)}if(Ki(Re)||ke(Re))return Z=Z.get(oe)||null,Ce($,Z,Re,Ge,null);pd($,Re)}return null}function ze(Z,$,oe,Re){for(var Ge=null,Qe=null,Xe=$,rt=$=0,kn=null;Xe!==null&&rt<oe.length;rt++){Xe.index>rt?(kn=Xe,Xe=null):kn=Xe.sibling;var kt=be(Z,Xe,oe[rt],Re);if(kt===null){Xe===null&&(Xe=kn);break}i&&Xe&&kt.alternate===null&&s(Z,Xe),$=k(kt,$,rt),Qe===null?Ge=kt:Qe.sibling=kt,Qe=kt,Xe=kn}if(rt===oe.length)return c(Z,Xe),Bt&&Ds(Z,rt),Ge;if(Xe===null){for(;rt<oe.length;rt++)Xe=_e(Z,oe[rt],Re),Xe!==null&&($=k(Xe,$,rt),Qe===null?Ge=Xe:Qe.sibling=Xe,Qe=Xe);return Bt&&Ds(Z,rt),Ge}for(Xe=m(Z,Xe);rt<oe.length;rt++)kn=Be(Xe,Z,rt,oe[rt],Re),kn!==null&&(i&&kn.alternate!==null&&Xe.delete(kn.key===null?rt:kn.key),$=k(kn,$,rt),Qe===null?Ge=kn:Qe.sibling=kn,Qe=kn);return i&&Xe.forEach(function(Ko){return s(Z,Ko)}),Bt&&Ds(Z,rt),Ge}function $e(Z,$,oe,Re){var Ge=ke(oe);if(typeof Ge!="function")throw Error(t(150));if(oe=Ge.call(oe),oe==null)throw Error(t(151));for(var Qe=Ge=null,Xe=$,rt=$=0,kn=null,kt=oe.next();Xe!==null&&!kt.done;rt++,kt=oe.next()){Xe.index>rt?(kn=Xe,Xe=null):kn=Xe.sibling;var Ko=be(Z,Xe,kt.value,Re);if(Ko===null){Xe===null&&(Xe=kn);break}i&&Xe&&Ko.alternate===null&&s(Z,Xe),$=k(Ko,$,rt),Qe===null?Ge=Ko:Qe.sibling=Ko,Qe=Ko,Xe=kn}if(kt.done)return c(Z,Xe),Bt&&Ds(Z,rt),Ge;if(Xe===null){for(;!kt.done;rt++,kt=oe.next())kt=_e(Z,kt.value,Re),kt!==null&&($=k(kt,$,rt),Qe===null?Ge=kt:Qe.sibling=kt,Qe=kt);return Bt&&Ds(Z,rt),Ge}for(Xe=m(Z,Xe);!kt.done;rt++,kt=oe.next())kt=Be(Xe,Z,rt,kt.value,Re),kt!==null&&(i&&kt.alternate!==null&&Xe.delete(kt.key===null?rt:kt.key),$=k(kt,$,rt),Qe===null?Ge=kt:Qe.sibling=kt,Qe=kt);return i&&Xe.forEach(function(ER){return s(Z,ER)}),Bt&&Ds(Z,rt),Ge}function nn(Z,$,oe,Re){if(typeof oe=="object"&&oe!==null&&oe.type===te&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case U:e:{for(var Ge=oe.key,Qe=$;Qe!==null;){if(Qe.key===Ge){if(Ge=oe.type,Ge===te){if(Qe.tag===7){c(Z,Qe.sibling),$=b(Qe,oe.props.children),$.return=Z,Z=$;break e}}else if(Qe.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===Pe&&f1(Ge)===Qe.type){c(Z,Qe.sibling),$=b(Qe,oe.props),$.ref=fc(Z,Qe,oe),$.return=Z,Z=$;break e}c(Z,Qe);break}else s(Z,Qe);Qe=Qe.sibling}oe.type===te?($=Hs(oe.props.children,Z.mode,Re,oe.key),$.return=Z,Z=$):(Re=Ud(oe.type,oe.key,oe.props,null,Z.mode,Re),Re.ref=fc(Z,$,oe),Re.return=Z,Z=Re)}return E(Z);case G:e:{for(Qe=oe.key;$!==null;){if($.key===Qe)if($.tag===4&&$.stateNode.containerInfo===oe.containerInfo&&$.stateNode.implementation===oe.implementation){c(Z,$.sibling),$=b($,oe.children||[]),$.return=Z,Z=$;break e}else{c(Z,$);break}else s(Z,$);$=$.sibling}$=km(oe,Z.mode,Re),$.return=Z,Z=$}return E(Z);case Pe:return Qe=oe._init,nn(Z,$,Qe(oe._payload),Re)}if(Ki(oe))return ze(Z,$,oe,Re);if(ke(oe))return $e(Z,$,oe,Re);pd(Z,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"?(oe=""+oe,$!==null&&$.tag===6?(c(Z,$.sibling),$=b($,oe),$.return=Z,Z=$):(c(Z,$),$=bm(oe,Z.mode,Re),$.return=Z,Z=$),E(Z)):c(Z,$)}return nn}var $a=h1(!0),p1=h1(!1),md=jo(null),gd=null,qa=null,Rp=null;function Ip(){Rp=qa=gd=null}function Mp(i){var s=md.current;jt(md),i._currentValue=s}function Ap(i,s,c){for(;i!==null;){var m=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,m!==null&&(m.childLanes|=s)):m!==null&&(m.childLanes&s)!==s&&(m.childLanes|=s),i===c)break;i=i.return}}function Ga(i,s){gd=i,Rp=qa=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(hr=!0),i.firstContext=null)}function Hr(i){var s=i._currentValue;if(Rp!==i)if(i={context:i,memoizedValue:s,next:null},qa===null){if(gd===null)throw Error(t(308));qa=i,gd.dependencies={lanes:0,firstContext:i}}else qa=qa.next=i;return s}var Ns=null;function Op(i){Ns===null?Ns=[i]:Ns.push(i)}function m1(i,s,c,m){var b=s.interleaved;return b===null?(c.next=c,Op(s)):(c.next=b.next,b.next=c),s.interleaved=c,so(i,m)}function so(i,s){i.lanes|=s;var c=i.alternate;for(c!==null&&(c.lanes|=s),c=i,i=i.return;i!==null;)i.childLanes|=s,c=i.alternate,c!==null&&(c.childLanes|=s),c=i,i=i.return;return c.tag===3?c.stateNode:null}var Bo=!1;function Lp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function g1(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function ao(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function Vo(i,s,c){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(bt&2)!==0){var b=m.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),m.pending=s,so(i,c)}return b=m.interleaved,b===null?(s.next=s,Op(m)):(s.next=b.next,b.next=s),m.interleaved=s,so(i,c)}function vd(i,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194240)!==0)){var m=s.lanes;m&=i.pendingLanes,c|=m,s.lanes=c,ms(i,c)}}function v1(i,s){var c=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,c===m)){var b=null,k=null;if(c=c.firstBaseUpdate,c!==null){do{var E={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};k===null?b=k=E:k=k.next=E,c=c.next}while(c!==null);k===null?b=k=s:k=k.next=s}else b=k=s;c={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:k,shared:m.shared,effects:m.effects},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=s:i.next=s,c.lastBaseUpdate=s}function yd(i,s,c,m){var b=i.updateQueue;Bo=!1;var k=b.firstBaseUpdate,E=b.lastBaseUpdate,D=b.shared.pending;if(D!==null){b.shared.pending=null;var z=D,ae=z.next;z.next=null,E===null?k=ae:E.next=ae,E=z;var Ce=i.alternate;Ce!==null&&(Ce=Ce.updateQueue,D=Ce.lastBaseUpdate,D!==E&&(D===null?Ce.firstBaseUpdate=ae:D.next=ae,Ce.lastBaseUpdate=z))}if(k!==null){var _e=b.baseState;E=0,Ce=ae=z=null,D=k;do{var be=D.lane,Be=D.eventTime;if((m&be)===be){Ce!==null&&(Ce=Ce.next={eventTime:Be,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var ze=i,$e=D;switch(be=s,Be=c,$e.tag){case 1:if(ze=$e.payload,typeof ze=="function"){_e=ze.call(Be,_e,be);break e}_e=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=$e.payload,be=typeof ze=="function"?ze.call(Be,_e,be):ze,be==null)break e;_e=we({},_e,be);break e;case 2:Bo=!0}}D.callback!==null&&D.lane!==0&&(i.flags|=64,be=b.effects,be===null?b.effects=[D]:be.push(D))}else Be={eventTime:Be,lane:be,tag:D.tag,payload:D.payload,callback:D.callback,next:null},Ce===null?(ae=Ce=Be,z=_e):Ce=Ce.next=Be,E|=be;if(D=D.next,D===null){if(D=b.shared.pending,D===null)break;be=D,D=be.next,be.next=null,b.lastBaseUpdate=be,b.shared.pending=null}}while(!0);if(Ce===null&&(z=_e),b.baseState=z,b.firstBaseUpdate=ae,b.lastBaseUpdate=Ce,s=b.shared.interleaved,s!==null){b=s;do E|=b.lane,b=b.next;while(b!==s)}else k===null&&(b.shared.lanes=0);Fs|=E,i.lanes=E,i.memoizedState=_e}}function y1(i,s,c){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var m=i[s],b=m.callback;if(b!==null){if(m.callback=null,m=c,typeof b!="function")throw Error(t(191,b));b.call(m)}}}var hc={},Li=jo(hc),pc=jo(hc),mc=jo(hc);function js(i){if(i===hc)throw Error(t(174));return i}function Dp(i,s){switch(Ot(mc,s),Ot(pc,i),Ot(Li,hc),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:M(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=M(s,i)}jt(Li),Ot(Li,s)}function Ka(){jt(Li),jt(pc),jt(mc)}function b1(i){js(mc.current);var s=js(Li.current),c=M(s,i.type);s!==c&&(Ot(pc,i),Ot(Li,c))}function Np(i){pc.current===i&&(jt(Li),jt(pc))}var Wt=jo(0);function bd(i){for(var s=i;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var jp=[];function Up(){for(var i=0;i<jp.length;i++)jp[i]._workInProgressVersionPrimary=null;jp.length=0}var kd=O.ReactCurrentDispatcher,Fp=O.ReactCurrentBatchConfig,Us=0,$t=null,pn=null,yn=null,wd=!1,gc=!1,vc=0,JP=0;function Fn(){throw Error(t(321))}function Bp(i,s){if(s===null)return!1;for(var c=0;c<s.length&&c<i.length;c++)if(!ur(i[c],s[c]))return!1;return!0}function Vp(i,s,c,m,b,k){if(Us=k,$t=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,kd.current=i===null||i.memoizedState===null?ZP:eR,i=c(m,b),gc){k=0;do{if(gc=!1,vc=0,25<=k)throw Error(t(301));k+=1,yn=pn=null,s.updateQueue=null,kd.current=tR,i=c(m,b)}while(gc)}if(kd.current=Td,s=pn!==null&&pn.next!==null,Us=0,yn=pn=$t=null,wd=!1,s)throw Error(t(300));return i}function zp(){var i=vc!==0;return vc=0,i}function Di(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yn===null?$t.memoizedState=yn=i:yn=yn.next=i,yn}function Wr(){if(pn===null){var i=$t.alternate;i=i!==null?i.memoizedState:null}else i=pn.next;var s=yn===null?$t.memoizedState:yn.next;if(s!==null)yn=s,pn=i;else{if(i===null)throw Error(t(310));pn=i,i={memoizedState:pn.memoizedState,baseState:pn.baseState,baseQueue:pn.baseQueue,queue:pn.queue,next:null},yn===null?$t.memoizedState=yn=i:yn=yn.next=i}return yn}function yc(i,s){return typeof s=="function"?s(i):s}function Hp(i){var s=Wr(),c=s.queue;if(c===null)throw Error(t(311));c.lastRenderedReducer=i;var m=pn,b=m.baseQueue,k=c.pending;if(k!==null){if(b!==null){var E=b.next;b.next=k.next,k.next=E}m.baseQueue=b=k,c.pending=null}if(b!==null){k=b.next,m=m.baseState;var D=E=null,z=null,ae=k;do{var Ce=ae.lane;if((Us&Ce)===Ce)z!==null&&(z=z.next={lane:0,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),m=ae.hasEagerState?ae.eagerState:i(m,ae.action);else{var _e={lane:Ce,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null};z===null?(D=z=_e,E=m):z=z.next=_e,$t.lanes|=Ce,Fs|=Ce}ae=ae.next}while(ae!==null&&ae!==k);z===null?E=m:z.next=D,ur(m,s.memoizedState)||(hr=!0),s.memoizedState=m,s.baseState=E,s.baseQueue=z,c.lastRenderedState=m}if(i=c.interleaved,i!==null){b=i;do k=b.lane,$t.lanes|=k,Fs|=k,b=b.next;while(b!==i)}else b===null&&(c.lanes=0);return[s.memoizedState,c.dispatch]}function Wp(i){var s=Wr(),c=s.queue;if(c===null)throw Error(t(311));c.lastRenderedReducer=i;var m=c.dispatch,b=c.pending,k=s.memoizedState;if(b!==null){c.pending=null;var E=b=b.next;do k=i(k,E.action),E=E.next;while(E!==b);ur(k,s.memoizedState)||(hr=!0),s.memoizedState=k,s.baseQueue===null&&(s.baseState=k),c.lastRenderedState=k}return[k,m]}function k1(){}function w1(i,s){var c=$t,m=Wr(),b=s(),k=!ur(m.memoizedState,b);if(k&&(m.memoizedState=b,hr=!0),m=m.queue,$p(T1.bind(null,c,m,i),[i]),m.getSnapshot!==s||k||yn!==null&&yn.memoizedState.tag&1){if(c.flags|=2048,bc(9,S1.bind(null,c,m,b,s),void 0,null),bn===null)throw Error(t(349));(Us&30)!==0||C1(c,s,b)}return b}function C1(i,s,c){i.flags|=16384,i={getSnapshot:s,value:c},s=$t.updateQueue,s===null?(s={lastEffect:null,stores:null},$t.updateQueue=s,s.stores=[i]):(c=s.stores,c===null?s.stores=[i]:c.push(i))}function S1(i,s,c,m){s.value=c,s.getSnapshot=m,_1(s)&&x1(i)}function T1(i,s,c){return c(function(){_1(s)&&x1(i)})}function _1(i){var s=i.getSnapshot;i=i.value;try{var c=s();return!ur(i,c)}catch{return!0}}function x1(i){var s=so(i,1);s!==null&&hi(s,i,1,-1)}function E1(i){var s=Di();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yc,lastRenderedState:i},s.queue=i,i=i.dispatch=XP.bind(null,$t,i),[s.memoizedState,i]}function bc(i,s,c,m){return i={tag:i,create:s,destroy:c,deps:m,next:null},s=$t.updateQueue,s===null?(s={lastEffect:null,stores:null},$t.updateQueue=s,s.lastEffect=i.next=i):(c=s.lastEffect,c===null?s.lastEffect=i.next=i:(m=c.next,c.next=i,i.next=m,s.lastEffect=i)),i}function P1(){return Wr().memoizedState}function Cd(i,s,c,m){var b=Di();$t.flags|=i,b.memoizedState=bc(1|s,c,void 0,m===void 0?null:m)}function Sd(i,s,c,m){var b=Wr();m=m===void 0?null:m;var k=void 0;if(pn!==null){var E=pn.memoizedState;if(k=E.destroy,m!==null&&Bp(m,E.deps)){b.memoizedState=bc(s,c,k,m);return}}$t.flags|=i,b.memoizedState=bc(1|s,c,k,m)}function R1(i,s){return Cd(8390656,8,i,s)}function $p(i,s){return Sd(2048,8,i,s)}function I1(i,s){return Sd(4,2,i,s)}function M1(i,s){return Sd(4,4,i,s)}function A1(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function O1(i,s,c){return c=c!=null?c.concat([i]):null,Sd(4,4,A1.bind(null,s,i),c)}function qp(){}function L1(i,s){var c=Wr();s=s===void 0?null:s;var m=c.memoizedState;return m!==null&&s!==null&&Bp(s,m[1])?m[0]:(c.memoizedState=[i,s],i)}function D1(i,s){var c=Wr();s=s===void 0?null:s;var m=c.memoizedState;return m!==null&&s!==null&&Bp(s,m[1])?m[0]:(i=i(),c.memoizedState=[i,s],i)}function N1(i,s,c){return(Us&21)===0?(i.baseState&&(i.baseState=!1,hr=!0),i.memoizedState=c):(ur(c,s)||(c=zl(),$t.lanes|=c,Fs|=c,i.baseState=!0),s)}function YP(i,s){var c=vt;vt=c!==0&&4>c?c:4,i(!0);var m=Fp.transition;Fp.transition={};try{i(!1),s()}finally{vt=c,Fp.transition=m}}function j1(){return Wr().memoizedState}function QP(i,s,c){var m=$o(i);if(c={lane:m,action:c,hasEagerState:!1,eagerState:null,next:null},U1(i))F1(s,c);else if(c=m1(i,s,c,m),c!==null){var b=nr();hi(c,i,m,b),B1(c,s,m)}}function XP(i,s,c){var m=$o(i),b={lane:m,action:c,hasEagerState:!1,eagerState:null,next:null};if(U1(i))F1(s,b);else{var k=i.alternate;if(i.lanes===0&&(k===null||k.lanes===0)&&(k=s.lastRenderedReducer,k!==null))try{var E=s.lastRenderedState,D=k(E,c);if(b.hasEagerState=!0,b.eagerState=D,ur(D,E)){var z=s.interleaved;z===null?(b.next=b,Op(s)):(b.next=z.next,z.next=b),s.interleaved=b;return}}catch{}finally{}c=m1(i,s,b,m),c!==null&&(b=nr(),hi(c,i,m,b),B1(c,s,m))}}function U1(i){var s=i.alternate;return i===$t||s!==null&&s===$t}function F1(i,s){gc=wd=!0;var c=i.pending;c===null?s.next=s:(s.next=c.next,c.next=s),i.pending=s}function B1(i,s,c){if((c&4194240)!==0){var m=s.lanes;m&=i.pendingLanes,c|=m,s.lanes=c,ms(i,c)}}var Td={readContext:Hr,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useInsertionEffect:Fn,useLayoutEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useMutableSource:Fn,useSyncExternalStore:Fn,useId:Fn,unstable_isNewReconciler:!1},ZP={readContext:Hr,useCallback:function(i,s){return Di().memoizedState=[i,s===void 0?null:s],i},useContext:Hr,useEffect:R1,useImperativeHandle:function(i,s,c){return c=c!=null?c.concat([i]):null,Cd(4194308,4,A1.bind(null,s,i),c)},useLayoutEffect:function(i,s){return Cd(4194308,4,i,s)},useInsertionEffect:function(i,s){return Cd(4,2,i,s)},useMemo:function(i,s){var c=Di();return s=s===void 0?null:s,i=i(),c.memoizedState=[i,s],i},useReducer:function(i,s,c){var m=Di();return s=c!==void 0?c(s):s,m.memoizedState=m.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},m.queue=i,i=i.dispatch=QP.bind(null,$t,i),[m.memoizedState,i]},useRef:function(i){var s=Di();return i={current:i},s.memoizedState=i},useState:E1,useDebugValue:qp,useDeferredValue:function(i){return Di().memoizedState=i},useTransition:function(){var i=E1(!1),s=i[0];return i=YP.bind(null,i[1]),Di().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,c){var m=$t,b=Di();if(Bt){if(c===void 0)throw Error(t(407));c=c()}else{if(c=s(),bn===null)throw Error(t(349));(Us&30)!==0||C1(m,s,c)}b.memoizedState=c;var k={value:c,getSnapshot:s};return b.queue=k,R1(T1.bind(null,m,k,i),[i]),m.flags|=2048,bc(9,S1.bind(null,m,k,c,s),void 0,null),c},useId:function(){var i=Di(),s=bn.identifierPrefix;if(Bt){var c=oo,m=io;c=(m&~(1<<32-En(m)-1)).toString(32)+c,s=":"+s+"R"+c,c=vc++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=JP++,s=":"+s+"r"+c.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},eR={readContext:Hr,useCallback:L1,useContext:Hr,useEffect:$p,useImperativeHandle:O1,useInsertionEffect:I1,useLayoutEffect:M1,useMemo:D1,useReducer:Hp,useRef:P1,useState:function(){return Hp(yc)},useDebugValue:qp,useDeferredValue:function(i){var s=Wr();return N1(s,pn.memoizedState,i)},useTransition:function(){var i=Hp(yc)[0],s=Wr().memoizedState;return[i,s]},useMutableSource:k1,useSyncExternalStore:w1,useId:j1,unstable_isNewReconciler:!1},tR={readContext:Hr,useCallback:L1,useContext:Hr,useEffect:$p,useImperativeHandle:O1,useInsertionEffect:I1,useLayoutEffect:M1,useMemo:D1,useReducer:Wp,useRef:P1,useState:function(){return Wp(yc)},useDebugValue:qp,useDeferredValue:function(i){var s=Wr();return pn===null?s.memoizedState=i:N1(s,pn.memoizedState,i)},useTransition:function(){var i=Wp(yc)[0],s=Wr().memoizedState;return[i,s]},useMutableSource:k1,useSyncExternalStore:w1,useId:j1,unstable_isNewReconciler:!1};function ui(i,s){if(i&&i.defaultProps){s=we({},s),i=i.defaultProps;for(var c in i)s[c]===void 0&&(s[c]=i[c]);return s}return s}function Gp(i,s,c,m){s=i.memoizedState,c=c(m,s),c=c==null?s:we({},s,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var _d={isMounted:function(i){return(i=i._reactInternals)?Ti(i)===i:!1},enqueueSetState:function(i,s,c){i=i._reactInternals;var m=nr(),b=$o(i),k=ao(m,b);k.payload=s,c!=null&&(k.callback=c),s=Vo(i,k,b),s!==null&&(hi(s,i,b,m),vd(s,i,b))},enqueueReplaceState:function(i,s,c){i=i._reactInternals;var m=nr(),b=$o(i),k=ao(m,b);k.tag=1,k.payload=s,c!=null&&(k.callback=c),s=Vo(i,k,b),s!==null&&(hi(s,i,b,m),vd(s,i,b))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var c=nr(),m=$o(i),b=ao(c,m);b.tag=2,s!=null&&(b.callback=s),s=Vo(i,b,m),s!==null&&(hi(s,i,m,c),vd(s,i,m))}};function V1(i,s,c,m,b,k,E){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,k,E):s.prototype&&s.prototype.isPureReactComponent?!Do(c,m)||!Do(b,k):!0}function z1(i,s,c){var m=!1,b=Uo,k=s.contextType;return typeof k=="object"&&k!==null?k=Hr(k):(b=fr(s)?Os:Un.current,m=s.contextTypes,k=(m=m!=null)?Va(i,b):Uo),s=new s(c,k),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=_d,i.stateNode=s,s._reactInternals=i,m&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=b,i.__reactInternalMemoizedMaskedChildContext=k),s}function H1(i,s,c,m){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,m),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,m),s.state!==i&&_d.enqueueReplaceState(s,s.state,null)}function Kp(i,s,c,m){var b=i.stateNode;b.props=c,b.state=i.memoizedState,b.refs={},Lp(i);var k=s.contextType;typeof k=="object"&&k!==null?b.context=Hr(k):(k=fr(s)?Os:Un.current,b.context=Va(i,k)),b.state=i.memoizedState,k=s.getDerivedStateFromProps,typeof k=="function"&&(Gp(i,s,k,c),b.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(s=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),s!==b.state&&_d.enqueueReplaceState(b,b.state,null),yd(i,c,b,m),b.state=i.memoizedState),typeof b.componentDidMount=="function"&&(i.flags|=4194308)}function Ja(i,s){try{var c="",m=s;do c+=Ne(m),m=m.return;while(m);var b=c}catch(k){b=`
|
|
39
39
|
Error generating stack: `+k.message+`
|
|
40
40
|
`+k.stack}return{value:i,source:s,stack:b,digest:null}}function Jp(i,s,c){return{value:i,source:null,stack:c??null,digest:s??null}}function Yp(i,s){try{console.error(s.value)}catch(c){setTimeout(function(){throw c})}}var nR=typeof WeakMap=="function"?WeakMap:Map;function W1(i,s,c){c=ao(-1,c),c.tag=3,c.payload={element:null};var m=s.value;return c.callback=function(){Ad||(Ad=!0,dm=m),Yp(i,s)},c}function $1(i,s,c){c=ao(-1,c),c.tag=3;var m=i.type.getDerivedStateFromError;if(typeof m=="function"){var b=s.value;c.payload=function(){return m(b)},c.callback=function(){Yp(i,s)}}var k=i.stateNode;return k!==null&&typeof k.componentDidCatch=="function"&&(c.callback=function(){Yp(i,s),typeof m!="function"&&(Ho===null?Ho=new Set([this]):Ho.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})}),c}function q1(i,s,c){var m=i.pingCache;if(m===null){m=i.pingCache=new nR;var b=new Set;m.set(s,b)}else b=m.get(s),b===void 0&&(b=new Set,m.set(s,b));b.has(c)||(b.add(c),i=gR.bind(null,i,s,c),s.then(i,i))}function G1(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function K1(i,s,c,m,b){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(s=ao(-1,1),s.tag=2,Vo(c,s,1))),c.lanes|=1),i):(i.flags|=65536,i.lanes=b,i)}var rR=O.ReactCurrentOwner,hr=!1;function tr(i,s,c,m){s.child=i===null?p1(s,null,c,m):$a(s,i.child,c,m)}function J1(i,s,c,m,b){c=c.render;var k=s.ref;return Ga(s,b),m=Vp(i,s,c,m,k,b),c=zp(),i!==null&&!hr?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~b,lo(i,s,b)):(Bt&&c&&Tp(s),s.flags|=1,tr(i,s,m,b),s.child)}function Y1(i,s,c,m,b){if(i===null){var k=c.type;return typeof k=="function"&&!ym(k)&&k.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(s.tag=15,s.type=k,Q1(i,s,k,m,b)):(i=Ud(c.type,null,m,s,s.mode,b),i.ref=s.ref,i.return=s,s.child=i)}if(k=i.child,(i.lanes&b)===0){var E=k.memoizedProps;if(c=c.compare,c=c!==null?c:Do,c(E,m)&&i.ref===s.ref)return lo(i,s,b)}return s.flags|=1,i=Go(k,m),i.ref=s.ref,i.return=s,s.child=i}function Q1(i,s,c,m,b){if(i!==null){var k=i.memoizedProps;if(Do(k,m)&&i.ref===s.ref)if(hr=!1,s.pendingProps=m=k,(i.lanes&b)!==0)(i.flags&131072)!==0&&(hr=!0);else return s.lanes=i.lanes,lo(i,s,b)}return Qp(i,s,c,m,b)}function X1(i,s,c){var m=s.pendingProps,b=m.children,k=i!==null?i.memoizedState:null;if(m.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(Qa,_r),_r|=c;else{if((c&1073741824)===0)return i=k!==null?k.baseLanes|c:c,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,Ot(Qa,_r),_r|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=k!==null?k.baseLanes:c,Ot(Qa,_r),_r|=m}else k!==null?(m=k.baseLanes|c,s.memoizedState=null):m=c,Ot(Qa,_r),_r|=m;return tr(i,s,b,c),s.child}function Z1(i,s){var c=s.ref;(i===null&&c!==null||i!==null&&i.ref!==c)&&(s.flags|=512,s.flags|=2097152)}function Qp(i,s,c,m,b){var k=fr(c)?Os:Un.current;return k=Va(s,k),Ga(s,b),c=Vp(i,s,c,m,k,b),m=zp(),i!==null&&!hr?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~b,lo(i,s,b)):(Bt&&m&&Tp(s),s.flags|=1,tr(i,s,c,b),s.child)}function ek(i,s,c,m,b){if(fr(c)){var k=!0;cd(s)}else k=!1;if(Ga(s,b),s.stateNode===null)Ed(i,s),z1(s,c,m),Kp(s,c,m,b),m=!0;else if(i===null){var E=s.stateNode,D=s.memoizedProps;E.props=D;var z=E.context,ae=c.contextType;typeof ae=="object"&&ae!==null?ae=Hr(ae):(ae=fr(c)?Os:Un.current,ae=Va(s,ae));var Ce=c.getDerivedStateFromProps,_e=typeof Ce=="function"||typeof E.getSnapshotBeforeUpdate=="function";_e||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(D!==m||z!==ae)&&H1(s,E,m,ae),Bo=!1;var be=s.memoizedState;E.state=be,yd(s,m,E,b),z=s.memoizedState,D!==m||be!==z||dr.current||Bo?(typeof Ce=="function"&&(Gp(s,c,Ce,m),z=s.memoizedState),(D=Bo||V1(s,c,D,m,be,z,ae))?(_e||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(s.flags|=4194308)):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=m,s.memoizedState=z),E.props=m,E.state=z,E.context=ae,m=D):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),m=!1)}else{E=s.stateNode,g1(i,s),D=s.memoizedProps,ae=s.type===s.elementType?D:ui(s.type,D),E.props=ae,_e=s.pendingProps,be=E.context,z=c.contextType,typeof z=="object"&&z!==null?z=Hr(z):(z=fr(c)?Os:Un.current,z=Va(s,z));var Be=c.getDerivedStateFromProps;(Ce=typeof Be=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(D!==_e||be!==z)&&H1(s,E,m,z),Bo=!1,be=s.memoizedState,E.state=be,yd(s,m,E,b);var ze=s.memoizedState;D!==_e||be!==ze||dr.current||Bo?(typeof Be=="function"&&(Gp(s,c,Be,m),ze=s.memoizedState),(ae=Bo||V1(s,c,ae,m,be,ze,z)||!1)?(Ce||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(m,ze,z),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(m,ze,z)),typeof E.componentDidUpdate=="function"&&(s.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof E.componentDidUpdate!="function"||D===i.memoizedProps&&be===i.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===i.memoizedProps&&be===i.memoizedState||(s.flags|=1024),s.memoizedProps=m,s.memoizedState=ze),E.props=m,E.state=ze,E.context=z,m=ae):(typeof E.componentDidUpdate!="function"||D===i.memoizedProps&&be===i.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===i.memoizedProps&&be===i.memoizedState||(s.flags|=1024),m=!1)}return Xp(i,s,c,m,k,b)}function Xp(i,s,c,m,b,k){Z1(i,s);var E=(s.flags&128)!==0;if(!m&&!E)return b&&o1(s,c,!1),lo(i,s,k);m=s.stateNode,rR.current=s;var D=E&&typeof c.getDerivedStateFromError!="function"?null:m.render();return s.flags|=1,i!==null&&E?(s.child=$a(s,i.child,null,k),s.child=$a(s,null,D,k)):tr(i,s,D,k),s.memoizedState=m.state,b&&o1(s,c,!0),s.child}function tk(i){var s=i.stateNode;s.pendingContext?r1(i,s.pendingContext,s.pendingContext!==s.context):s.context&&r1(i,s.context,!1),Dp(i,s.containerInfo)}function nk(i,s,c,m,b){return Wa(),Pp(b),s.flags|=256,tr(i,s,c,m),s.child}var Zp={dehydrated:null,treeContext:null,retryLane:0};function em(i){return{baseLanes:i,cachePool:null,transitions:null}}function rk(i,s,c){var m=s.pendingProps,b=Wt.current,k=!1,E=(s.flags&128)!==0,D;if((D=E)||(D=i!==null&&i.memoizedState===null?!1:(b&2)!==0),D?(k=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(b|=1),Ot(Wt,b&1),i===null)return Ep(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(E=m.children,i=m.fallback,k?(m=s.mode,k=s.child,E={mode:"hidden",children:E},(m&1)===0&&k!==null?(k.childLanes=0,k.pendingProps=E):k=Fd(E,m,0,null),i=Hs(i,m,c,null),k.return=s,i.return=s,k.sibling=i,s.child=k,s.child.memoizedState=em(c),s.memoizedState=Zp,i):tm(s,E));if(b=i.memoizedState,b!==null&&(D=b.dehydrated,D!==null))return iR(i,s,E,m,D,b,c);if(k){k=m.fallback,E=s.mode,b=i.child,D=b.sibling;var z={mode:"hidden",children:m.children};return(E&1)===0&&s.child!==b?(m=s.child,m.childLanes=0,m.pendingProps=z,s.deletions=null):(m=Go(b,z),m.subtreeFlags=b.subtreeFlags&14680064),D!==null?k=Go(D,k):(k=Hs(k,E,c,null),k.flags|=2),k.return=s,m.return=s,m.sibling=k,s.child=m,m=k,k=s.child,E=i.child.memoizedState,E=E===null?em(c):{baseLanes:E.baseLanes|c,cachePool:null,transitions:E.transitions},k.memoizedState=E,k.childLanes=i.childLanes&~c,s.memoizedState=Zp,m}return k=i.child,i=k.sibling,m=Go(k,{mode:"visible",children:m.children}),(s.mode&1)===0&&(m.lanes=c),m.return=s,m.sibling=null,i!==null&&(c=s.deletions,c===null?(s.deletions=[i],s.flags|=16):c.push(i)),s.child=m,s.memoizedState=null,m}function tm(i,s){return s=Fd({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function xd(i,s,c,m){return m!==null&&Pp(m),$a(s,i.child,null,c),i=tm(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function iR(i,s,c,m,b,k,E){if(c)return s.flags&256?(s.flags&=-257,m=Jp(Error(t(422))),xd(i,s,E,m)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(k=m.fallback,b=s.mode,m=Fd({mode:"visible",children:m.children},b,0,null),k=Hs(k,b,E,null),k.flags|=2,m.return=s,k.return=s,m.sibling=k,s.child=m,(s.mode&1)!==0&&$a(s,i.child,null,E),s.child.memoizedState=em(E),s.memoizedState=Zp,k);if((s.mode&1)===0)return xd(i,s,E,null);if(b.data==="$!"){if(m=b.nextSibling&&b.nextSibling.dataset,m)var D=m.dgst;return m=D,k=Error(t(419)),m=Jp(k,m,void 0),xd(i,s,E,m)}if(D=(E&i.childLanes)!==0,hr||D){if(m=bn,m!==null){switch(E&-E){case 4:b=2;break;case 16:b=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:b=32;break;case 536870912:b=268435456;break;default:b=0}b=(b&(m.suspendedLanes|E))!==0?0:b,b!==0&&b!==k.retryLane&&(k.retryLane=b,so(i,b),hi(m,i,b,-1))}return vm(),m=Jp(Error(t(421))),xd(i,s,E,m)}return b.data==="$?"?(s.flags|=128,s.child=i.child,s=vR.bind(null,i),b._reactRetry=s,null):(i=k.treeContext,Tr=No(b.nextSibling),Sr=s,Bt=!0,ci=null,i!==null&&(Vr[zr++]=io,Vr[zr++]=oo,Vr[zr++]=Ls,io=i.id,oo=i.overflow,Ls=s),s=tm(s,m.children),s.flags|=4096,s)}function ik(i,s,c){i.lanes|=s;var m=i.alternate;m!==null&&(m.lanes|=s),Ap(i.return,s,c)}function nm(i,s,c,m,b){var k=i.memoizedState;k===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:m,tail:c,tailMode:b}:(k.isBackwards=s,k.rendering=null,k.renderingStartTime=0,k.last=m,k.tail=c,k.tailMode=b)}function ok(i,s,c){var m=s.pendingProps,b=m.revealOrder,k=m.tail;if(tr(i,s,m.children,c),m=Wt.current,(m&2)!==0)m=m&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&ik(i,c,s);else if(i.tag===19)ik(i,c,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}if(Ot(Wt,m),(s.mode&1)===0)s.memoizedState=null;else switch(b){case"forwards":for(c=s.child,b=null;c!==null;)i=c.alternate,i!==null&&bd(i)===null&&(b=c),c=c.sibling;c=b,c===null?(b=s.child,s.child=null):(b=c.sibling,c.sibling=null),nm(s,!1,b,c,k);break;case"backwards":for(c=null,b=s.child,s.child=null;b!==null;){if(i=b.alternate,i!==null&&bd(i)===null){s.child=b;break}i=b.sibling,b.sibling=c,c=b,b=i}nm(s,!0,c,null,k);break;case"together":nm(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ed(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function lo(i,s,c){if(i!==null&&(s.dependencies=i.dependencies),Fs|=s.lanes,(c&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(t(153));if(s.child!==null){for(i=s.child,c=Go(i,i.pendingProps),s.child=c,c.return=s;i.sibling!==null;)i=i.sibling,c=c.sibling=Go(i,i.pendingProps),c.return=s;c.sibling=null}return s.child}function oR(i,s,c){switch(s.tag){case 3:tk(s),Wa();break;case 5:b1(s);break;case 1:fr(s.type)&&cd(s);break;case 4:Dp(s,s.stateNode.containerInfo);break;case 10:var m=s.type._context,b=s.memoizedProps.value;Ot(md,m._currentValue),m._currentValue=b;break;case 13:if(m=s.memoizedState,m!==null)return m.dehydrated!==null?(Ot(Wt,Wt.current&1),s.flags|=128,null):(c&s.child.childLanes)!==0?rk(i,s,c):(Ot(Wt,Wt.current&1),i=lo(i,s,c),i!==null?i.sibling:null);Ot(Wt,Wt.current&1);break;case 19:if(m=(c&s.childLanes)!==0,(i.flags&128)!==0){if(m)return ok(i,s,c);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),Ot(Wt,Wt.current),m)break;return null;case 22:case 23:return s.lanes=0,X1(i,s,c)}return lo(i,s,c)}var sk,rm,ak,lk;sk=function(i,s){for(var c=s.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},rm=function(){},ak=function(i,s,c,m){var b=i.memoizedProps;if(b!==m){i=s.stateNode,js(Li.current);var k=null;switch(c){case"input":b=Ar(i,b),m=Ar(i,m),k=[];break;case"select":b=we({},b,{value:void 0}),m=we({},m,{value:void 0}),k=[];break;case"textarea":b=Ji(i,b),m=Ji(i,m),k=[];break;default:typeof b.onClick!="function"&&typeof m.onClick=="function"&&(i.onclick=sd)}Yt(c,m);var E;c=null;for(ae in b)if(!m.hasOwnProperty(ae)&&b.hasOwnProperty(ae)&&b[ae]!=null)if(ae==="style"){var D=b[ae];for(E in D)D.hasOwnProperty(E)&&(c||(c={}),c[E]="")}else ae!=="dangerouslySetInnerHTML"&&ae!=="children"&&ae!=="suppressContentEditableWarning"&&ae!=="suppressHydrationWarning"&&ae!=="autoFocus"&&(o.hasOwnProperty(ae)?k||(k=[]):(k=k||[]).push(ae,null));for(ae in m){var z=m[ae];if(D=b!=null?b[ae]:void 0,m.hasOwnProperty(ae)&&z!==D&&(z!=null||D!=null))if(ae==="style")if(D){for(E in D)!D.hasOwnProperty(E)||z&&z.hasOwnProperty(E)||(c||(c={}),c[E]="");for(E in z)z.hasOwnProperty(E)&&D[E]!==z[E]&&(c||(c={}),c[E]=z[E])}else c||(k||(k=[]),k.push(ae,c)),c=z;else ae==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,D=D?D.__html:void 0,z!=null&&D!==z&&(k=k||[]).push(ae,z)):ae==="children"?typeof z!="string"&&typeof z!="number"||(k=k||[]).push(ae,""+z):ae!=="suppressContentEditableWarning"&&ae!=="suppressHydrationWarning"&&(o.hasOwnProperty(ae)?(z!=null&&ae==="onScroll"&&Nt("scroll",i),k||D===z||(k=[])):(k=k||[]).push(ae,z))}c&&(k=k||[]).push("style",c);var ae=k;(s.updateQueue=ae)&&(s.flags|=4)}},lk=function(i,s,c,m){c!==m&&(s.flags|=4)};function kc(i,s){if(!Bt)switch(i.tailMode){case"hidden":s=i.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function Bn(i){var s=i.alternate!==null&&i.alternate.child===i.child,c=0,m=0;if(s)for(var b=i.child;b!==null;)c|=b.lanes|b.childLanes,m|=b.subtreeFlags&14680064,m|=b.flags&14680064,b.return=i,b=b.sibling;else for(b=i.child;b!==null;)c|=b.lanes|b.childLanes,m|=b.subtreeFlags,m|=b.flags,b.return=i,b=b.sibling;return i.subtreeFlags|=m,i.childLanes=c,s}function sR(i,s,c){var m=s.pendingProps;switch(_p(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bn(s),null;case 1:return fr(s.type)&&ld(),Bn(s),null;case 3:return m=s.stateNode,Ka(),jt(dr),jt(Un),Up(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(i===null||i.child===null)&&(hd(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,ci!==null&&(pm(ci),ci=null))),rm(i,s),Bn(s),null;case 5:Np(s);var b=js(mc.current);if(c=s.type,i!==null&&s.stateNode!=null)ak(i,s,c,m,b),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!m){if(s.stateNode===null)throw Error(t(166));return Bn(s),null}if(i=js(Li.current),hd(s)){m=s.stateNode,c=s.type;var k=s.memoizedProps;switch(m[Oi]=s,m[uc]=k,i=(s.mode&1)!==0,c){case"dialog":Nt("cancel",m),Nt("close",m);break;case"iframe":case"object":case"embed":Nt("load",m);break;case"video":case"audio":for(b=0;b<to.length;b++)Nt(to[b],m);break;case"source":Nt("error",m);break;case"img":case"image":case"link":Nt("error",m),Nt("load",m);break;case"details":Nt("toggle",m);break;case"input":Or(m,k),Nt("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!k.multiple},Nt("invalid",m);break;case"textarea":ma(m,k),Nt("invalid",m)}Yt(c,k),b=null;for(var E in k)if(k.hasOwnProperty(E)){var D=k[E];E==="children"?typeof D=="string"?m.textContent!==D&&(k.suppressHydrationWarning!==!0&&od(m.textContent,D,i),b=["children",D]):typeof D=="number"&&m.textContent!==""+D&&(k.suppressHydrationWarning!==!0&&od(m.textContent,D,i),b=["children",""+D]):o.hasOwnProperty(E)&&D!=null&&E==="onScroll"&&Nt("scroll",m)}switch(c){case"input":Jt(m),pa(m,k,!0);break;case"textarea":Jt(m),y(m);break;case"select":case"option":break;default:typeof k.onClick=="function"&&(m.onclick=sd)}m=b,s.updateQueue=m,m!==null&&(s.flags|=4)}else{E=b.nodeType===9?b:b.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=S(c)),i==="http://www.w3.org/1999/xhtml"?c==="script"?(i=E.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof m.is=="string"?i=E.createElement(c,{is:m.is}):(i=E.createElement(c),c==="select"&&(E=i,m.multiple?E.multiple=!0:m.size&&(E.size=m.size))):i=E.createElementNS(i,c),i[Oi]=s,i[uc]=m,sk(i,s,!1,!1),s.stateNode=i;e:{switch(E=Rt(c,m),c){case"dialog":Nt("cancel",i),Nt("close",i),b=m;break;case"iframe":case"object":case"embed":Nt("load",i),b=m;break;case"video":case"audio":for(b=0;b<to.length;b++)Nt(to[b],i);b=m;break;case"source":Nt("error",i),b=m;break;case"img":case"image":case"link":Nt("error",i),Nt("load",i),b=m;break;case"details":Nt("toggle",i),b=m;break;case"input":Or(i,m),b=Ar(i,m),Nt("invalid",i);break;case"option":b=m;break;case"select":i._wrapperState={wasMultiple:!!m.multiple},b=we({},m,{value:void 0}),Nt("invalid",i);break;case"textarea":ma(i,m),b=Ji(i,m),Nt("invalid",i);break;default:b=m}Yt(c,b),D=b;for(k in D)if(D.hasOwnProperty(k)){var z=D[k];k==="style"?lt(i,z):k==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,z!=null&&ue(i,z)):k==="children"?typeof z=="string"?(c!=="textarea"||z!=="")&&ye(i,z):typeof z=="number"&&ye(i,""+z):k!=="suppressContentEditableWarning"&&k!=="suppressHydrationWarning"&&k!=="autoFocus"&&(o.hasOwnProperty(k)?z!=null&&k==="onScroll"&&Nt("scroll",i):z!=null&&F(i,k,z,E))}switch(c){case"input":Jt(i),pa(i,m,!1);break;case"textarea":Jt(i),y(i);break;case"option":m.value!=null&&i.setAttribute("value",""+qe(m.value));break;case"select":i.multiple=!!m.multiple,k=m.value,k!=null?Qn(i,!!m.multiple,k,!1):m.defaultValue!=null&&Qn(i,!!m.multiple,m.defaultValue,!0);break;default:typeof b.onClick=="function"&&(i.onclick=sd)}switch(c){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Bn(s),null;case 6:if(i&&s.stateNode!=null)lk(i,s,i.memoizedProps,m);else{if(typeof m!="string"&&s.stateNode===null)throw Error(t(166));if(c=js(mc.current),js(Li.current),hd(s)){if(m=s.stateNode,c=s.memoizedProps,m[Oi]=s,(k=m.nodeValue!==c)&&(i=Sr,i!==null))switch(i.tag){case 3:od(m.nodeValue,c,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&od(m.nodeValue,c,(i.mode&1)!==0)}k&&(s.flags|=4)}else m=(c.nodeType===9?c:c.ownerDocument).createTextNode(m),m[Oi]=s,s.stateNode=m}return Bn(s),null;case 13:if(jt(Wt),m=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(Bt&&Tr!==null&&(s.mode&1)!==0&&(s.flags&128)===0)d1(),Wa(),s.flags|=98560,k=!1;else if(k=hd(s),m!==null&&m.dehydrated!==null){if(i===null){if(!k)throw Error(t(318));if(k=s.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(t(317));k[Oi]=s}else Wa(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Bn(s),k=!1}else ci!==null&&(pm(ci),ci=null),k=!0;if(!k)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=c,s):(m=m!==null,m!==(i!==null&&i.memoizedState!==null)&&m&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(Wt.current&1)!==0?mn===0&&(mn=3):vm())),s.updateQueue!==null&&(s.flags|=4),Bn(s),null);case 4:return Ka(),rm(i,s),i===null&&lc(s.stateNode.containerInfo),Bn(s),null;case 10:return Mp(s.type._context),Bn(s),null;case 17:return fr(s.type)&&ld(),Bn(s),null;case 19:if(jt(Wt),k=s.memoizedState,k===null)return Bn(s),null;if(m=(s.flags&128)!==0,E=k.rendering,E===null)if(m)kc(k,!1);else{if(mn!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(E=bd(i),E!==null){for(s.flags|=128,kc(k,!1),m=E.updateQueue,m!==null&&(s.updateQueue=m,s.flags|=4),s.subtreeFlags=0,m=c,c=s.child;c!==null;)k=c,i=m,k.flags&=14680066,E=k.alternate,E===null?(k.childLanes=0,k.lanes=i,k.child=null,k.subtreeFlags=0,k.memoizedProps=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null,k.stateNode=null):(k.childLanes=E.childLanes,k.lanes=E.lanes,k.child=E.child,k.subtreeFlags=0,k.deletions=null,k.memoizedProps=E.memoizedProps,k.memoizedState=E.memoizedState,k.updateQueue=E.updateQueue,k.type=E.type,i=E.dependencies,k.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),c=c.sibling;return Ot(Wt,Wt.current&1|2),s.child}i=i.sibling}k.tail!==null&&Ht()>Xa&&(s.flags|=128,m=!0,kc(k,!1),s.lanes=4194304)}else{if(!m)if(i=bd(E),i!==null){if(s.flags|=128,m=!0,c=i.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),kc(k,!0),k.tail===null&&k.tailMode==="hidden"&&!E.alternate&&!Bt)return Bn(s),null}else 2*Ht()-k.renderingStartTime>Xa&&c!==1073741824&&(s.flags|=128,m=!0,kc(k,!1),s.lanes=4194304);k.isBackwards?(E.sibling=s.child,s.child=E):(c=k.last,c!==null?c.sibling=E:s.child=E,k.last=E)}return k.tail!==null?(s=k.tail,k.rendering=s,k.tail=s.sibling,k.renderingStartTime=Ht(),s.sibling=null,c=Wt.current,Ot(Wt,m?c&1|2:c&1),s):(Bn(s),null);case 22:case 23:return gm(),m=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==m&&(s.flags|=8192),m&&(s.mode&1)!==0?(_r&1073741824)!==0&&(Bn(s),s.subtreeFlags&6&&(s.flags|=8192)):Bn(s),null;case 24:return null;case 25:return null}throw Error(t(156,s.tag))}function aR(i,s){switch(_p(s),s.tag){case 1:return fr(s.type)&&ld(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Ka(),jt(dr),jt(Un),Up(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return Np(s),null;case 13:if(jt(Wt),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(t(340));Wa()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return jt(Wt),null;case 4:return Ka(),null;case 10:return Mp(s.type._context),null;case 22:case 23:return gm(),null;case 24:return null;default:return null}}var Pd=!1,Vn=!1,lR=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Ya(i,s){var c=i.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(m){Qt(i,s,m)}else c.current=null}function im(i,s,c){try{c()}catch(m){Qt(i,s,m)}}var ck=!1;function cR(i,s){if(gp=kr,i=ac(),d(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var m=c.getSelection&&c.getSelection();if(m&&m.rangeCount!==0){c=m.anchorNode;var b=m.anchorOffset,k=m.focusNode;m=m.focusOffset;try{c.nodeType,k.nodeType}catch{c=null;break e}var E=0,D=-1,z=-1,ae=0,Ce=0,_e=i,be=null;t:for(;;){for(var Be;_e!==c||b!==0&&_e.nodeType!==3||(D=E+b),_e!==k||m!==0&&_e.nodeType!==3||(z=E+m),_e.nodeType===3&&(E+=_e.nodeValue.length),(Be=_e.firstChild)!==null;)be=_e,_e=Be;for(;;){if(_e===i)break t;if(be===c&&++ae===b&&(D=E),be===k&&++Ce===m&&(z=E),(Be=_e.nextSibling)!==null)break;_e=be,be=_e.parentNode}_e=Be}c=D===-1||z===-1?null:{start:D,end:z}}else c=null}c=c||{start:0,end:0}}else c=null;for(vp={focusedElem:i,selectionRange:c},kr=!1,Ve=s;Ve!==null;)if(s=Ve,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Ve=i;else for(;Ve!==null;){s=Ve;try{var ze=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ze!==null){var $e=ze.memoizedProps,nn=ze.memoizedState,Z=s.stateNode,$=Z.getSnapshotBeforeUpdate(s.elementType===s.type?$e:ui(s.type,$e),nn);Z.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var oe=s.stateNode.containerInfo;oe.nodeType===1?oe.textContent="":oe.nodeType===9&&oe.documentElement&&oe.removeChild(oe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Re){Qt(s,s.return,Re)}if(i=s.sibling,i!==null){i.return=s.return,Ve=i;break}Ve=s.return}return ze=ck,ck=!1,ze}function wc(i,s,c){var m=s.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var b=m=m.next;do{if((b.tag&i)===i){var k=b.destroy;b.destroy=void 0,k!==void 0&&im(s,c,k)}b=b.next}while(b!==m)}}function Rd(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var c=s=s.next;do{if((c.tag&i)===i){var m=c.create;c.destroy=m()}c=c.next}while(c!==s)}}function om(i){var s=i.ref;if(s!==null){var c=i.stateNode;switch(i.tag){case 5:i=c;break;default:i=c}typeof s=="function"?s(i):s.current=i}}function uk(i){var s=i.alternate;s!==null&&(i.alternate=null,uk(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[Oi],delete s[uc],delete s[wp],delete s[$P],delete s[qP])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function dk(i){return i.tag===5||i.tag===3||i.tag===4}function fk(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||dk(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function sm(i,s,c){var m=i.tag;if(m===5||m===6)i=i.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(i,s):c.insertBefore(i,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(i,c)):(s=c,s.appendChild(i)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=sd));else if(m!==4&&(i=i.child,i!==null))for(sm(i,s,c),i=i.sibling;i!==null;)sm(i,s,c),i=i.sibling}function am(i,s,c){var m=i.tag;if(m===5||m===6)i=i.stateNode,s?c.insertBefore(i,s):c.appendChild(i);else if(m!==4&&(i=i.child,i!==null))for(am(i,s,c),i=i.sibling;i!==null;)am(i,s,c),i=i.sibling}var Rn=null,di=!1;function zo(i,s,c){for(c=c.child;c!==null;)hk(i,s,c),c=c.sibling}function hk(i,s,c){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Nr,c)}catch{}switch(c.tag){case 5:Vn||Ya(c,s);case 6:var m=Rn,b=di;Rn=null,zo(i,s,c),Rn=m,di=b,Rn!==null&&(di?(i=Rn,c=c.stateNode,i.nodeType===8?i.parentNode.removeChild(c):i.removeChild(c)):Rn.removeChild(c.stateNode));break;case 18:Rn!==null&&(di?(i=Rn,c=c.stateNode,i.nodeType===8?kp(i.parentNode,c):i.nodeType===1&&kp(i,c),Dn(i)):kp(Rn,c.stateNode));break;case 4:m=Rn,b=di,Rn=c.stateNode.containerInfo,di=!0,zo(i,s,c),Rn=m,di=b;break;case 0:case 11:case 14:case 15:if(!Vn&&(m=c.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){b=m=m.next;do{var k=b,E=k.destroy;k=k.tag,E!==void 0&&((k&2)!==0||(k&4)!==0)&&im(c,s,E),b=b.next}while(b!==m)}zo(i,s,c);break;case 1:if(!Vn&&(Ya(c,s),m=c.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=c.memoizedProps,m.state=c.memoizedState,m.componentWillUnmount()}catch(D){Qt(c,s,D)}zo(i,s,c);break;case 21:zo(i,s,c);break;case 22:c.mode&1?(Vn=(m=Vn)||c.memoizedState!==null,zo(i,s,c),Vn=m):zo(i,s,c);break;default:zo(i,s,c)}}function pk(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var c=i.stateNode;c===null&&(c=i.stateNode=new lR),s.forEach(function(m){var b=yR.bind(null,i,m);c.has(m)||(c.add(m),m.then(b,b))})}}function fi(i,s){var c=s.deletions;if(c!==null)for(var m=0;m<c.length;m++){var b=c[m];try{var k=i,E=s,D=E;e:for(;D!==null;){switch(D.tag){case 5:Rn=D.stateNode,di=!1;break e;case 3:Rn=D.stateNode.containerInfo,di=!0;break e;case 4:Rn=D.stateNode.containerInfo,di=!0;break e}D=D.return}if(Rn===null)throw Error(t(160));hk(k,E,b),Rn=null,di=!1;var z=b.alternate;z!==null&&(z.return=null),b.return=null}catch(ae){Qt(b,s,ae)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)mk(s,i),s=s.sibling}function mk(i,s){var c=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(fi(s,i),Ni(i),m&4){try{wc(3,i,i.return),Rd(3,i)}catch($e){Qt(i,i.return,$e)}try{wc(5,i,i.return)}catch($e){Qt(i,i.return,$e)}}break;case 1:fi(s,i),Ni(i),m&512&&c!==null&&Ya(c,c.return);break;case 5:if(fi(s,i),Ni(i),m&512&&c!==null&&Ya(c,c.return),i.flags&32){var b=i.stateNode;try{ye(b,"")}catch($e){Qt(i,i.return,$e)}}if(m&4&&(b=i.stateNode,b!=null)){var k=i.memoizedProps,E=c!==null?c.memoizedProps:k,D=i.type,z=i.updateQueue;if(i.updateQueue=null,z!==null)try{D==="input"&&k.type==="radio"&&k.name!=null&&xo(b,k),Rt(D,E);var ae=Rt(D,k);for(E=0;E<z.length;E+=2){var Ce=z[E],_e=z[E+1];Ce==="style"?lt(b,_e):Ce==="dangerouslySetInnerHTML"?ue(b,_e):Ce==="children"?ye(b,_e):F(b,Ce,_e,ae)}switch(D){case"input":Gi(b,k);break;case"textarea":P(b,k);break;case"select":var be=b._wrapperState.wasMultiple;b._wrapperState.wasMultiple=!!k.multiple;var Be=k.value;Be!=null?Qn(b,!!k.multiple,Be,!1):be!==!!k.multiple&&(k.defaultValue!=null?Qn(b,!!k.multiple,k.defaultValue,!0):Qn(b,!!k.multiple,k.multiple?[]:"",!1))}b[uc]=k}catch($e){Qt(i,i.return,$e)}}break;case 6:if(fi(s,i),Ni(i),m&4){if(i.stateNode===null)throw Error(t(162));b=i.stateNode,k=i.memoizedProps;try{b.nodeValue=k}catch($e){Qt(i,i.return,$e)}}break;case 3:if(fi(s,i),Ni(i),m&4&&c!==null&&c.memoizedState.isDehydrated)try{Dn(s.containerInfo)}catch($e){Qt(i,i.return,$e)}break;case 4:fi(s,i),Ni(i);break;case 13:fi(s,i),Ni(i),b=i.child,b.flags&8192&&(k=b.memoizedState!==null,b.stateNode.isHidden=k,!k||b.alternate!==null&&b.alternate.memoizedState!==null||(um=Ht())),m&4&&pk(i);break;case 22:if(Ce=c!==null&&c.memoizedState!==null,i.mode&1?(Vn=(ae=Vn)||Ce,fi(s,i),Vn=ae):fi(s,i),Ni(i),m&8192){if(ae=i.memoizedState!==null,(i.stateNode.isHidden=ae)&&!Ce&&(i.mode&1)!==0)for(Ve=i,Ce=i.child;Ce!==null;){for(_e=Ve=Ce;Ve!==null;){switch(be=Ve,Be=be.child,be.tag){case 0:case 11:case 14:case 15:wc(4,be,be.return);break;case 1:Ya(be,be.return);var ze=be.stateNode;if(typeof ze.componentWillUnmount=="function"){m=be,c=be.return;try{s=m,ze.props=s.memoizedProps,ze.state=s.memoizedState,ze.componentWillUnmount()}catch($e){Qt(m,c,$e)}}break;case 5:Ya(be,be.return);break;case 22:if(be.memoizedState!==null){yk(_e);continue}}Be!==null?(Be.return=be,Ve=Be):yk(_e)}Ce=Ce.sibling}e:for(Ce=null,_e=i;;){if(_e.tag===5){if(Ce===null){Ce=_e;try{b=_e.stateNode,ae?(k=b.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none"):(D=_e.stateNode,z=_e.memoizedProps.style,E=z!=null&&z.hasOwnProperty("display")?z.display:null,D.style.display=je("display",E))}catch($e){Qt(i,i.return,$e)}}}else if(_e.tag===6){if(Ce===null)try{_e.stateNode.nodeValue=ae?"":_e.memoizedProps}catch($e){Qt(i,i.return,$e)}}else if((_e.tag!==22&&_e.tag!==23||_e.memoizedState===null||_e===i)&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===i)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===i)break e;Ce===_e&&(Ce=null),_e=_e.return}Ce===_e&&(Ce=null),_e.sibling.return=_e.return,_e=_e.sibling}}break;case 19:fi(s,i),Ni(i),m&4&&pk(i);break;case 21:break;default:fi(s,i),Ni(i)}}function Ni(i){var s=i.flags;if(s&2){try{e:{for(var c=i.return;c!==null;){if(dk(c)){var m=c;break e}c=c.return}throw Error(t(160))}switch(m.tag){case 5:var b=m.stateNode;m.flags&32&&(ye(b,""),m.flags&=-33);var k=fk(i);am(i,k,b);break;case 3:case 4:var E=m.stateNode.containerInfo,D=fk(i);sm(i,D,E);break;default:throw Error(t(161))}}catch(z){Qt(i,i.return,z)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function uR(i,s,c){Ve=i,gk(i)}function gk(i,s,c){for(var m=(i.mode&1)!==0;Ve!==null;){var b=Ve,k=b.child;if(b.tag===22&&m){var E=b.memoizedState!==null||Pd;if(!E){var D=b.alternate,z=D!==null&&D.memoizedState!==null||Vn;D=Pd;var ae=Vn;if(Pd=E,(Vn=z)&&!ae)for(Ve=b;Ve!==null;)E=Ve,z=E.child,E.tag===22&&E.memoizedState!==null?bk(b):z!==null?(z.return=E,Ve=z):bk(b);for(;k!==null;)Ve=k,gk(k),k=k.sibling;Ve=b,Pd=D,Vn=ae}vk(i)}else(b.subtreeFlags&8772)!==0&&k!==null?(k.return=b,Ve=k):vk(i)}}function vk(i){for(;Ve!==null;){var s=Ve;if((s.flags&8772)!==0){var c=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Vn||Rd(5,s);break;case 1:var m=s.stateNode;if(s.flags&4&&!Vn)if(c===null)m.componentDidMount();else{var b=s.elementType===s.type?c.memoizedProps:ui(s.type,c.memoizedProps);m.componentDidUpdate(b,c.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var k=s.updateQueue;k!==null&&y1(s,k,m);break;case 3:var E=s.updateQueue;if(E!==null){if(c=null,s.child!==null)switch(s.child.tag){case 5:c=s.child.stateNode;break;case 1:c=s.child.stateNode}y1(s,E,c)}break;case 5:var D=s.stateNode;if(c===null&&s.flags&4){c=D;var z=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":z.autoFocus&&c.focus();break;case"img":z.src&&(c.src=z.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var ae=s.alternate;if(ae!==null){var Ce=ae.memoizedState;if(Ce!==null){var _e=Ce.dehydrated;_e!==null&&Dn(_e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Vn||s.flags&512&&om(s)}catch(be){Qt(s,s.return,be)}}if(s===i){Ve=null;break}if(c=s.sibling,c!==null){c.return=s.return,Ve=c;break}Ve=s.return}}function yk(i){for(;Ve!==null;){var s=Ve;if(s===i){Ve=null;break}var c=s.sibling;if(c!==null){c.return=s.return,Ve=c;break}Ve=s.return}}function bk(i){for(;Ve!==null;){var s=Ve;try{switch(s.tag){case 0:case 11:case 15:var c=s.return;try{Rd(4,s)}catch(z){Qt(s,c,z)}break;case 1:var m=s.stateNode;if(typeof m.componentDidMount=="function"){var b=s.return;try{m.componentDidMount()}catch(z){Qt(s,b,z)}}var k=s.return;try{om(s)}catch(z){Qt(s,k,z)}break;case 5:var E=s.return;try{om(s)}catch(z){Qt(s,E,z)}}}catch(z){Qt(s,s.return,z)}if(s===i){Ve=null;break}var D=s.sibling;if(D!==null){D.return=s.return,Ve=D;break}Ve=s.return}}var dR=Math.ceil,Id=O.ReactCurrentDispatcher,lm=O.ReactCurrentOwner,$r=O.ReactCurrentBatchConfig,bt=0,bn=null,an=null,In=0,_r=0,Qa=jo(0),mn=0,Cc=null,Fs=0,Md=0,cm=0,Sc=null,pr=null,um=0,Xa=1/0,co=null,Ad=!1,dm=null,Ho=null,Od=!1,Wo=null,Ld=0,Tc=0,fm=null,Dd=-1,Nd=0;function nr(){return(bt&6)!==0?Ht():Dd!==-1?Dd:Dd=Ht()}function $o(i){return(i.mode&1)===0?1:(bt&2)!==0&&In!==0?In&-In:KP.transition!==null?(Nd===0&&(Nd=zl()),Nd):(i=vt,i!==0||(i=window.event,i=i===void 0?16:zu(i.type)),i)}function hi(i,s,c,m){if(50<Tc)throw Tc=0,fm=null,Error(t(185));It(i,c,m),((bt&2)===0||i!==bn)&&(i===bn&&((bt&2)===0&&(Md|=c),mn===4&&qo(i,In)),mr(i,m),c===1&&bt===0&&(s.mode&1)===0&&(Xa=Ht()+500,ud&&Fo()))}function mr(i,s){var c=i.callbackNode;Ur(i,s);var m=ot(i,i===bn?In:0);if(m===0)c!==null&&lr(c),i.callbackNode=null,i.callbackPriority=0;else if(s=m&-m,i.callbackPriority!==s){if(c!=null&&lr(c),s===1)i.tag===0?GP(wk.bind(null,i)):s1(wk.bind(null,i)),HP(function(){(bt&6)===0&&Fo()}),c=null;else{switch(Fr(m)){case 1:c=wa;break;case 4:c=Vl;break;case 16:c=ds;break;case 536870912:c=Ca;break;default:c=ds}c=Rk(c,kk.bind(null,i))}i.callbackPriority=s,i.callbackNode=c}}function kk(i,s){if(Dd=-1,Nd=0,(bt&6)!==0)throw Error(t(327));var c=i.callbackNode;if(Za()&&i.callbackNode!==c)return null;var m=ot(i,i===bn?In:0);if(m===0)return null;if((m&30)!==0||(m&i.expiredLanes)!==0||s)s=jd(i,m);else{s=m;var b=bt;bt|=2;var k=Sk();(bn!==i||In!==s)&&(co=null,Xa=Ht()+500,Vs(i,s));do try{pR();break}catch(D){Ck(i,D)}while(!0);Ip(),Id.current=k,bt=b,an!==null?s=0:(bn=null,In=0,s=mn)}if(s!==0){if(s===2&&(b=_a(i),b!==0&&(m=b,s=hm(i,b))),s===1)throw c=Cc,Vs(i,0),qo(i,m),mr(i,Ht()),c;if(s===6)qo(i,m);else{if(b=i.current.alternate,(m&30)===0&&!fR(b)&&(s=jd(i,m),s===2&&(k=_a(i),k!==0&&(m=k,s=hm(i,k))),s===1))throw c=Cc,Vs(i,0),qo(i,m),mr(i,Ht()),c;switch(i.finishedWork=b,i.finishedLanes=m,s){case 0:case 1:throw Error(t(345));case 2:zs(i,pr,co);break;case 3:if(qo(i,m),(m&130023424)===m&&(s=um+500-Ht(),10<s)){if(ot(i,0)!==0)break;if(b=i.suspendedLanes,(b&m)!==m){nr(),i.pingedLanes|=i.suspendedLanes&b;break}i.timeoutHandle=bp(zs.bind(null,i,pr,co),s);break}zs(i,pr,co);break;case 4:if(qo(i,m),(m&4194240)===m)break;for(s=i.eventTimes,b=-1;0<m;){var E=31-En(m);k=1<<E,E=s[E],E>b&&(b=E),m&=~k}if(m=b,m=Ht()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*dR(m/1960))-m,10<m){i.timeoutHandle=bp(zs.bind(null,i,pr,co),m);break}zs(i,pr,co);break;case 5:zs(i,pr,co);break;default:throw Error(t(329))}}}return mr(i,Ht()),i.callbackNode===c?kk.bind(null,i):null}function hm(i,s){var c=Sc;return i.current.memoizedState.isDehydrated&&(Vs(i,s).flags|=256),i=jd(i,s),i!==2&&(s=pr,pr=c,s!==null&&pm(s)),i}function pm(i){pr===null?pr=i:pr.push.apply(pr,i)}function fR(i){for(var s=i;;){if(s.flags&16384){var c=s.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var m=0;m<c.length;m++){var b=c[m],k=b.getSnapshot;b=b.value;try{if(!ur(k(),b))return!1}catch{return!1}}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function qo(i,s){for(s&=~cm,s&=~Md,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var c=31-En(s),m=1<<c;i[c]=-1,s&=~m}}function wk(i){if((bt&6)!==0)throw Error(t(327));Za();var s=ot(i,0);if((s&1)===0)return mr(i,Ht()),null;var c=jd(i,s);if(i.tag!==0&&c===2){var m=_a(i);m!==0&&(s=m,c=hm(i,m))}if(c===1)throw c=Cc,Vs(i,0),qo(i,s),mr(i,Ht()),c;if(c===6)throw Error(t(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,zs(i,pr,co),mr(i,Ht()),null}function mm(i,s){var c=bt;bt|=1;try{return i(s)}finally{bt=c,bt===0&&(Xa=Ht()+500,ud&&Fo())}}function Bs(i){Wo!==null&&Wo.tag===0&&(bt&6)===0&&Za();var s=bt;bt|=1;var c=$r.transition,m=vt;try{if($r.transition=null,vt=1,i)return i()}finally{vt=m,$r.transition=c,bt=s,(bt&6)===0&&Fo()}}function gm(){_r=Qa.current,jt(Qa)}function Vs(i,s){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;if(c!==-1&&(i.timeoutHandle=-1,zP(c)),an!==null)for(c=an.return;c!==null;){var m=c;switch(_p(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&ld();break;case 3:Ka(),jt(dr),jt(Un),Up();break;case 5:Np(m);break;case 4:Ka();break;case 13:jt(Wt);break;case 19:jt(Wt);break;case 10:Mp(m.type._context);break;case 22:case 23:gm()}c=c.return}if(bn=i,an=i=Go(i.current,null),In=_r=s,mn=0,Cc=null,cm=Md=Fs=0,pr=Sc=null,Ns!==null){for(s=0;s<Ns.length;s++)if(c=Ns[s],m=c.interleaved,m!==null){c.interleaved=null;var b=m.next,k=c.pending;if(k!==null){var E=k.next;k.next=b,m.next=E}c.pending=m}Ns=null}return i}function Ck(i,s){do{var c=an;try{if(Ip(),kd.current=Td,wd){for(var m=$t.memoizedState;m!==null;){var b=m.queue;b!==null&&(b.pending=null),m=m.next}wd=!1}if(Us=0,yn=pn=$t=null,gc=!1,vc=0,lm.current=null,c===null||c.return===null){mn=1,Cc=s,an=null;break}e:{var k=i,E=c.return,D=c,z=s;if(s=In,D.flags|=32768,z!==null&&typeof z=="object"&&typeof z.then=="function"){var ae=z,Ce=D,_e=Ce.tag;if((Ce.mode&1)===0&&(_e===0||_e===11||_e===15)){var be=Ce.alternate;be?(Ce.updateQueue=be.updateQueue,Ce.memoizedState=be.memoizedState,Ce.lanes=be.lanes):(Ce.updateQueue=null,Ce.memoizedState=null)}var Be=G1(E);if(Be!==null){Be.flags&=-257,K1(Be,E,D,k,s),Be.mode&1&&q1(k,ae,s),s=Be,z=ae;var ze=s.updateQueue;if(ze===null){var $e=new Set;$e.add(z),s.updateQueue=$e}else ze.add(z);break e}else{if((s&1)===0){q1(k,ae,s),vm();break e}z=Error(t(426))}}else if(Bt&&D.mode&1){var nn=G1(E);if(nn!==null){(nn.flags&65536)===0&&(nn.flags|=256),K1(nn,E,D,k,s),Pp(Ja(z,D));break e}}k=z=Ja(z,D),mn!==4&&(mn=2),Sc===null?Sc=[k]:Sc.push(k),k=E;do{switch(k.tag){case 3:k.flags|=65536,s&=-s,k.lanes|=s;var Z=W1(k,z,s);v1(k,Z);break e;case 1:D=z;var $=k.type,oe=k.stateNode;if((k.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||oe!==null&&typeof oe.componentDidCatch=="function"&&(Ho===null||!Ho.has(oe)))){k.flags|=65536,s&=-s,k.lanes|=s;var Re=$1(k,D,s);v1(k,Re);break e}}k=k.return}while(k!==null)}_k(c)}catch(Ge){s=Ge,an===c&&c!==null&&(an=c=c.return);continue}break}while(!0)}function Sk(){var i=Id.current;return Id.current=Td,i===null?Td:i}function vm(){(mn===0||mn===3||mn===2)&&(mn=4),bn===null||(Fs&268435455)===0&&(Md&268435455)===0||qo(bn,In)}function jd(i,s){var c=bt;bt|=2;var m=Sk();(bn!==i||In!==s)&&(co=null,Vs(i,s));do try{hR();break}catch(b){Ck(i,b)}while(!0);if(Ip(),bt=c,Id.current=m,an!==null)throw Error(t(261));return bn=null,In=0,mn}function hR(){for(;an!==null;)Tk(an)}function pR(){for(;an!==null&&!ba();)Tk(an)}function Tk(i){var s=Pk(i.alternate,i,_r);i.memoizedProps=i.pendingProps,s===null?_k(i):an=s,lm.current=null}function _k(i){var s=i;do{var c=s.alternate;if(i=s.return,(s.flags&32768)===0){if(c=sR(c,s,_r),c!==null){an=c;return}}else{if(c=aR(c,s),c!==null){c.flags&=32767,an=c;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{mn=6,an=null;return}}if(s=s.sibling,s!==null){an=s;return}an=s=i}while(s!==null);mn===0&&(mn=5)}function zs(i,s,c){var m=vt,b=$r.transition;try{$r.transition=null,vt=1,mR(i,s,c,m)}finally{$r.transition=b,vt=m}return null}function mR(i,s,c,m){do Za();while(Wo!==null);if((bt&6)!==0)throw Error(t(327));c=i.finishedWork;var b=i.finishedLanes;if(c===null)return null;if(i.finishedWork=null,i.finishedLanes=0,c===i.current)throw Error(t(177));i.callbackNode=null,i.callbackPriority=0;var k=c.lanes|c.childLanes;if(ps(i,k),i===bn&&(an=bn=null,In=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||Od||(Od=!0,Rk(ds,function(){return Za(),null})),k=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||k){k=$r.transition,$r.transition=null;var E=vt;vt=1;var D=bt;bt|=4,lm.current=null,cR(i,c),mk(c,i),h(vp),kr=!!gp,vp=gp=null,i.current=c,uR(c),Bl(),bt=D,vt=E,$r.transition=k}else i.current=c;if(Od&&(Od=!1,Wo=i,Ld=b),k=i.pendingLanes,k===0&&(Ho=null),Sa(c.stateNode),mr(i,Ht()),s!==null)for(m=i.onRecoverableError,c=0;c<s.length;c++)b=s[c],m(b.value,{componentStack:b.stack,digest:b.digest});if(Ad)throw Ad=!1,i=dm,dm=null,i;return(Ld&1)!==0&&i.tag!==0&&Za(),k=i.pendingLanes,(k&1)!==0?i===fm?Tc++:(Tc=0,fm=i):Tc=0,Fo(),null}function Za(){if(Wo!==null){var i=Fr(Ld),s=$r.transition,c=vt;try{if($r.transition=null,vt=16>i?16:i,Wo===null)var m=!1;else{if(i=Wo,Wo=null,Ld=0,(bt&6)!==0)throw Error(t(331));var b=bt;for(bt|=4,Ve=i.current;Ve!==null;){var k=Ve,E=k.child;if((Ve.flags&16)!==0){var D=k.deletions;if(D!==null){for(var z=0;z<D.length;z++){var ae=D[z];for(Ve=ae;Ve!==null;){var Ce=Ve;switch(Ce.tag){case 0:case 11:case 15:wc(8,Ce,k)}var _e=Ce.child;if(_e!==null)_e.return=Ce,Ve=_e;else for(;Ve!==null;){Ce=Ve;var be=Ce.sibling,Be=Ce.return;if(uk(Ce),Ce===ae){Ve=null;break}if(be!==null){be.return=Be,Ve=be;break}Ve=Be}}}var ze=k.alternate;if(ze!==null){var $e=ze.child;if($e!==null){ze.child=null;do{var nn=$e.sibling;$e.sibling=null,$e=nn}while($e!==null)}}Ve=k}}if((k.subtreeFlags&2064)!==0&&E!==null)E.return=k,Ve=E;else e:for(;Ve!==null;){if(k=Ve,(k.flags&2048)!==0)switch(k.tag){case 0:case 11:case 15:wc(9,k,k.return)}var Z=k.sibling;if(Z!==null){Z.return=k.return,Ve=Z;break e}Ve=k.return}}var $=i.current;for(Ve=$;Ve!==null;){E=Ve;var oe=E.child;if((E.subtreeFlags&2064)!==0&&oe!==null)oe.return=E,Ve=oe;else e:for(E=$;Ve!==null;){if(D=Ve,(D.flags&2048)!==0)try{switch(D.tag){case 0:case 11:case 15:Rd(9,D)}}catch(Ge){Qt(D,D.return,Ge)}if(D===E){Ve=null;break e}var Re=D.sibling;if(Re!==null){Re.return=D.return,Ve=Re;break e}Ve=D.return}}if(bt=b,Fo(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(Nr,i)}catch{}m=!0}return m}finally{vt=c,$r.transition=s}}return!1}function xk(i,s,c){s=Ja(c,s),s=W1(i,s,1),i=Vo(i,s,1),s=nr(),i!==null&&(It(i,1,s),mr(i,s))}function Qt(i,s,c){if(i.tag===3)xk(i,i,c);else for(;s!==null;){if(s.tag===3){xk(s,i,c);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Ho===null||!Ho.has(m))){i=Ja(c,i),i=$1(s,i,1),s=Vo(s,i,1),i=nr(),s!==null&&(It(s,1,i),mr(s,i));break}}s=s.return}}function gR(i,s,c){var m=i.pingCache;m!==null&&m.delete(s),s=nr(),i.pingedLanes|=i.suspendedLanes&c,bn===i&&(In&c)===c&&(mn===4||mn===3&&(In&130023424)===In&&500>Ht()-um?Vs(i,0):cm|=c),mr(i,s)}function Ek(i,s){s===0&&((i.mode&1)===0?s=1:(s=Pn,Pn<<=1,(Pn&130023424)===0&&(Pn=4194304)));var c=nr();i=so(i,s),i!==null&&(It(i,s,c),mr(i,c))}function vR(i){var s=i.memoizedState,c=0;s!==null&&(c=s.retryLane),Ek(i,c)}function yR(i,s){var c=0;switch(i.tag){case 13:var m=i.stateNode,b=i.memoizedState;b!==null&&(c=b.retryLane);break;case 19:m=i.stateNode;break;default:throw Error(t(314))}m!==null&&m.delete(s),Ek(i,c)}var Pk;Pk=function(i,s,c){if(i!==null)if(i.memoizedProps!==s.pendingProps||dr.current)hr=!0;else{if((i.lanes&c)===0&&(s.flags&128)===0)return hr=!1,oR(i,s,c);hr=(i.flags&131072)!==0}else hr=!1,Bt&&(s.flags&1048576)!==0&&a1(s,fd,s.index);switch(s.lanes=0,s.tag){case 2:var m=s.type;Ed(i,s),i=s.pendingProps;var b=Va(s,Un.current);Ga(s,c),b=Vp(null,s,m,i,b,c);var k=zp();return s.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,fr(m)?(k=!0,cd(s)):k=!1,s.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,Lp(s),b.updater=_d,s.stateNode=b,b._reactInternals=s,Kp(s,m,i,c),s=Xp(null,s,m,!0,k,c)):(s.tag=0,Bt&&k&&Tp(s),tr(null,s,b,c),s=s.child),s;case 16:m=s.elementType;e:{switch(Ed(i,s),i=s.pendingProps,b=m._init,m=b(m._payload),s.type=m,b=s.tag=kR(m),i=ui(m,i),b){case 0:s=Qp(null,s,m,i,c);break e;case 1:s=ek(null,s,m,i,c);break e;case 11:s=J1(null,s,m,i,c);break e;case 14:s=Y1(null,s,m,ui(m.type,i),c);break e}throw Error(t(306,m,""))}return s;case 0:return m=s.type,b=s.pendingProps,b=s.elementType===m?b:ui(m,b),Qp(i,s,m,b,c);case 1:return m=s.type,b=s.pendingProps,b=s.elementType===m?b:ui(m,b),ek(i,s,m,b,c);case 3:e:{if(tk(s),i===null)throw Error(t(387));m=s.pendingProps,k=s.memoizedState,b=k.element,g1(i,s),yd(s,m,null,c);var E=s.memoizedState;if(m=E.element,k.isDehydrated)if(k={element:m,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},s.updateQueue.baseState=k,s.memoizedState=k,s.flags&256){b=Ja(Error(t(423)),s),s=nk(i,s,m,c,b);break e}else if(m!==b){b=Ja(Error(t(424)),s),s=nk(i,s,m,c,b);break e}else for(Tr=No(s.stateNode.containerInfo.firstChild),Sr=s,Bt=!0,ci=null,c=p1(s,null,m,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Wa(),m===b){s=lo(i,s,c);break e}tr(i,s,m,c)}s=s.child}return s;case 5:return b1(s),i===null&&Ep(s),m=s.type,b=s.pendingProps,k=i!==null?i.memoizedProps:null,E=b.children,yp(m,b)?E=null:k!==null&&yp(m,k)&&(s.flags|=32),Z1(i,s),tr(i,s,E,c),s.child;case 6:return i===null&&Ep(s),null;case 13:return rk(i,s,c);case 4:return Dp(s,s.stateNode.containerInfo),m=s.pendingProps,i===null?s.child=$a(s,null,m,c):tr(i,s,m,c),s.child;case 11:return m=s.type,b=s.pendingProps,b=s.elementType===m?b:ui(m,b),J1(i,s,m,b,c);case 7:return tr(i,s,s.pendingProps,c),s.child;case 8:return tr(i,s,s.pendingProps.children,c),s.child;case 12:return tr(i,s,s.pendingProps.children,c),s.child;case 10:e:{if(m=s.type._context,b=s.pendingProps,k=s.memoizedProps,E=b.value,Ot(md,m._currentValue),m._currentValue=E,k!==null)if(ur(k.value,E)){if(k.children===b.children&&!dr.current){s=lo(i,s,c);break e}}else for(k=s.child,k!==null&&(k.return=s);k!==null;){var D=k.dependencies;if(D!==null){E=k.child;for(var z=D.firstContext;z!==null;){if(z.context===m){if(k.tag===1){z=ao(-1,c&-c),z.tag=2;var ae=k.updateQueue;if(ae!==null){ae=ae.shared;var Ce=ae.pending;Ce===null?z.next=z:(z.next=Ce.next,Ce.next=z),ae.pending=z}}k.lanes|=c,z=k.alternate,z!==null&&(z.lanes|=c),Ap(k.return,c,s),D.lanes|=c;break}z=z.next}}else if(k.tag===10)E=k.type===s.type?null:k.child;else if(k.tag===18){if(E=k.return,E===null)throw Error(t(341));E.lanes|=c,D=E.alternate,D!==null&&(D.lanes|=c),Ap(E,c,s),E=k.sibling}else E=k.child;if(E!==null)E.return=k;else for(E=k;E!==null;){if(E===s){E=null;break}if(k=E.sibling,k!==null){k.return=E.return,E=k;break}E=E.return}k=E}tr(i,s,b.children,c),s=s.child}return s;case 9:return b=s.type,m=s.pendingProps.children,Ga(s,c),b=Hr(b),m=m(b),s.flags|=1,tr(i,s,m,c),s.child;case 14:return m=s.type,b=ui(m,s.pendingProps),b=ui(m.type,b),Y1(i,s,m,b,c);case 15:return Q1(i,s,s.type,s.pendingProps,c);case 17:return m=s.type,b=s.pendingProps,b=s.elementType===m?b:ui(m,b),Ed(i,s),s.tag=1,fr(m)?(i=!0,cd(s)):i=!1,Ga(s,c),z1(s,m,b),Kp(s,m,b,c),Xp(null,s,m,!0,i,c);case 19:return ok(i,s,c);case 22:return X1(i,s,c)}throw Error(t(156,s.tag))};function Rk(i,s){return Fl(i,s)}function bR(i,s,c,m){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qr(i,s,c,m){return new bR(i,s,c,m)}function ym(i){return i=i.prototype,!(!i||!i.isReactComponent)}function kR(i){if(typeof i=="function")return ym(i)?1:0;if(i!=null){if(i=i.$$typeof,i===de)return 11;if(i===ne)return 14}return 2}function Go(i,s){var c=i.alternate;return c===null?(c=qr(i.tag,s,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=s,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&14680064,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,s=i.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c}function Ud(i,s,c,m,b,k){var E=2;if(m=i,typeof i=="function")ym(i)&&(E=1);else if(typeof i=="string")E=5;else e:switch(i){case te:return Hs(c.children,b,k,s);case X:E=8,b|=8;break;case H:return i=qr(12,c,s,b|2),i.elementType=H,i.lanes=k,i;case Me:return i=qr(13,c,s,b),i.elementType=Me,i.lanes=k,i;case We:return i=qr(19,c,s,b),i.elementType=We,i.lanes=k,i;case he:return Fd(c,b,k,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case W:E=10;break e;case Y:E=9;break e;case de:E=11;break e;case ne:E=14;break e;case Pe:E=16,m=null;break e}throw Error(t(130,i==null?i:typeof i,""))}return s=qr(E,c,s,b),s.elementType=i,s.type=m,s.lanes=k,s}function Hs(i,s,c,m){return i=qr(7,i,m,s),i.lanes=c,i}function Fd(i,s,c,m){return i=qr(22,i,m,s),i.elementType=he,i.lanes=c,i.stateNode={isHidden:!1},i}function bm(i,s,c){return i=qr(6,i,null,s),i.lanes=c,i}function km(i,s,c){return s=qr(4,i.children!==null?i.children:[],i.key,s),s.lanes=c,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function wR(i,s,c,m,b){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xa(0),this.expirationTimes=xa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xa(0),this.identifierPrefix=m,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function wm(i,s,c,m,b,k,E,D,z){return i=new wR(i,s,c,D,z),s===1?(s=1,k===!0&&(s|=8)):s=0,k=qr(3,null,null,s),i.current=k,k.stateNode=i,k.memoizedState={element:m,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lp(k),i}function CR(i,s,c){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:G,key:m==null?null:""+m,children:i,containerInfo:s,implementation:c}}function Ik(i){if(!i)return Uo;i=i._reactInternals;e:{if(Ti(i)!==i||i.tag!==1)throw Error(t(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(fr(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(t(171))}if(i.tag===1){var c=i.type;if(fr(c))return i1(i,c,s)}return s}function Mk(i,s,c,m,b,k,E,D,z){return i=wm(c,m,!0,i,b,k,E,D,z),i.context=Ik(null),c=i.current,m=nr(),b=$o(c),k=ao(m,b),k.callback=s??null,Vo(c,k,b),i.current.lanes=b,It(i,b,m),mr(i,m),i}function Bd(i,s,c,m){var b=s.current,k=nr(),E=$o(b);return c=Ik(c),s.context===null?s.context=c:s.pendingContext=c,s=ao(k,E),s.payload={element:i},m=m===void 0?null:m,m!==null&&(s.callback=m),i=Vo(b,s,E),i!==null&&(hi(i,b,E,k),vd(i,b,E)),E}function Vd(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Ak(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<s?c:s}}function Cm(i,s){Ak(i,s),(i=i.alternate)&&Ak(i,s)}function SR(){return null}var Ok=typeof reportError=="function"?reportError:function(i){console.error(i)};function Sm(i){this._internalRoot=i}zd.prototype.render=Sm.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(t(409));Bd(i,s,null,null)},zd.prototype.unmount=Sm.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Bs(function(){Bd(null,i,null,null)}),s[no]=null}};function zd(i){this._internalRoot=i}zd.prototype.unstable_scheduleHydration=function(i){if(i){var s=Po();i={blockedOn:null,target:i,priority:s};for(var c=0;c<br.length&&s!==0&&s<br[c].priority;c++);br.splice(c,0,i),c===0&&Yi(i)}};function Tm(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Hd(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Lk(){}function TR(i,s,c,m,b){if(b){if(typeof m=="function"){var k=m;m=function(){var ae=Vd(E);k.call(ae)}}var E=Mk(s,m,i,0,null,!1,!1,"",Lk);return i._reactRootContainer=E,i[no]=E.current,lc(i.nodeType===8?i.parentNode:i),Bs(),E}for(;b=i.lastChild;)i.removeChild(b);if(typeof m=="function"){var D=m;m=function(){var ae=Vd(z);D.call(ae)}}var z=wm(i,0,!1,null,null,!1,!1,"",Lk);return i._reactRootContainer=z,i[no]=z.current,lc(i.nodeType===8?i.parentNode:i),Bs(function(){Bd(s,z,c,m)}),z}function Wd(i,s,c,m,b){var k=c._reactRootContainer;if(k){var E=k;if(typeof b=="function"){var D=b;b=function(){var z=Vd(E);D.call(z)}}Bd(s,E,i,b)}else E=TR(c,s,i,b,m);return Vd(E)}Ea=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var c=jr(s.pendingLanes);c!==0&&(ms(s,c|1),mr(s,Ht()),(bt&6)===0&&(Xa=Ht()+500,Fo()))}break;case 13:Bs(function(){var m=so(i,1);if(m!==null){var b=nr();hi(m,i,1,b)}}),Cm(i,1)}},ri=function(i){if(i.tag===13){var s=so(i,134217728);if(s!==null){var c=nr();hi(s,i,134217728,c)}Cm(i,134217728)}},Hl=function(i){if(i.tag===13){var s=$o(i),c=so(i,s);if(c!==null){var m=nr();hi(c,i,s,m)}Cm(i,s)}},Po=function(){return vt},gs=function(i,s){var c=vt;try{return vt=i,s()}finally{vt=c}},xn=function(i,s,c){switch(s){case"input":if(Gi(i,c),s=c.name,c.type==="radio"&&s!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<c.length;s++){var m=c[s];if(m!==i&&m.form===i.form){var b=ad(m);if(!b)throw Error(t(90));ar(m),Gi(m,b)}}}break;case"textarea":P(i,c);break;case"select":s=c.value,s!=null&&Qn(i,!!c.multiple,s,!1)}},Zn=mm,mt=Bs;var _R={usingClientEntryPoint:!1,Events:[dc,Fa,ad,tt,Dr,mm]},_c={findFiberByHostInstance:As,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xR={bundleType:_c.bundleType,version:_c.version,rendererPackageName:_c.rendererPackageName,rendererConfig:_c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Bu(i),i===null?null:i.stateNode},findFiberByHostInstance:_c.findFiberByHostInstance||SR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$d.isDisabled&&$d.supportsFiber)try{Nr=$d.inject(xR),On=$d}catch{}}return rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_R,rr.createPortal=function(i,s){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tm(s))throw Error(t(200));return CR(i,s,null,c)},rr.createRoot=function(i,s){if(!Tm(i))throw Error(t(299));var c=!1,m="",b=Ok;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onRecoverableError!==void 0&&(b=s.onRecoverableError)),s=wm(i,1,!1,null,null,c,!1,m,b),i[no]=s.current,lc(i.nodeType===8?i.parentNode:i),new Sm(s)},rr.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(t(188)):(i=Object.keys(i).join(","),Error(t(268,i)));return i=Bu(s),i=i===null?null:i.stateNode,i},rr.flushSync=function(i){return Bs(i)},rr.hydrate=function(i,s,c){if(!Hd(s))throw Error(t(200));return Wd(null,i,s,!0,c)},rr.hydrateRoot=function(i,s,c){if(!Tm(i))throw Error(t(405));var m=c!=null&&c.hydratedSources||null,b=!1,k="",E=Ok;if(c!=null&&(c.unstable_strictMode===!0&&(b=!0),c.identifierPrefix!==void 0&&(k=c.identifierPrefix),c.onRecoverableError!==void 0&&(E=c.onRecoverableError)),s=Mk(s,null,i,1,c??null,b,!1,k,E),i[no]=s.current,lc(i),m)for(i=0;i<m.length;i++)c=m[i],b=c._getVersion,b=b(c._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[c,b]:s.mutableSourceEagerHydrationData.push(c,b);return new zd(s)},rr.render=function(i,s,c){if(!Hd(s))throw Error(t(200));return Wd(null,i,s,!1,c)},rr.unmountComponentAtNode=function(i){if(!Hd(i))throw Error(t(40));return i._reactRootContainer?(Bs(function(){Wd(null,null,i,!1,function(){i._reactRootContainer=null,i[no]=null})}),!0):!1},rr.unstable_batchedUpdates=mm,rr.unstable_renderSubtreeIntoContainer=function(i,s,c,m){if(!Hd(c))throw Error(t(200));if(i==null||i._reactInternals===void 0)throw Error(t(38));return Wd(i,s,c,!1,m)},rr.version="18.3.1-next-f1338f8080-20240426",rr}var Dm;function zk(){if(Dm)return Kd.exports;Dm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Kd.exports=Vk(),Kd.exports}var Nm;function Hk(){if(Nm)return Ec;Nm=1;var n=zk();return Ec.createRoot=n.createRoot,Ec.hydrateRoot=n.hydrateRoot,Ec}var Wk=Hk(),jm=function(n,e,t,r){var o;e[0]=0;for(var a=1;a<e.length;a++){var l=e[a++],u=e[a]?(e[0]|=l?1:2,t[e[a++]]):e[++a];l===3?r[0]=u:l===4?r[1]=Object.assign(r[1]||{},u):l===5?(r[1]=r[1]||{})[e[++a]]=u:l===6?r[1][e[++a]]+=u+"":l?(o=n.apply(u,jm(n,u,t,["",null])),r.push(o),u[0]?e[0]|=2:(e[a-2]=0,e[a]=o)):r.push(u)}return r},Um=new Map;function $k(n){var e=Um.get(this);return e||(e=new Map,Um.set(this,e)),(e=jm(this,e.get(n)||(e.set(n,e=function(t){for(var r,o,a=1,l="",u="",f=[0],p=function(_){a===1&&(_||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?f.push(0,_,l):a===3&&(_||l)?(f.push(3,_,l),a=2):a===2&&l==="..."&&_?f.push(4,_,0):a===2&&l&&!_?f.push(5,0,!0,l):a>=5&&((l||!_&&a===5)&&(f.push(a,0,l,o),a=6),_&&(f.push(a,_,0,o),a=6)),l=""},g=0;g<t.length;g++){g&&(a===1&&p(),p(g));for(var w=0;w<t[g].length;w++)r=t[g][w],a===1?r==="<"?(p(),f=[f],a=3):l+=r:a===4?l==="--"&&r===">"?(a=1,l=""):l=r+l[0]:u?r===u?u="":l+=r:r==='"'||r==="'"?u=r:r===">"?(p(),a=1):a&&(r==="="?(a=5,o=l,l=""):r==="/"&&(a<5||t[g][w+1]===">")?(p(),a===3&&(f=f[0]),a=f,(f=f[0]).push(2,0,a),a=0):r===" "||r===" "||r===`
|
|
41
|
-
`||r==="\r"?(p(),a=2):l+=r),a===3&&l==="!--"&&(a=4,f=f[0])}return p(),f}(n)),e),arguments,[])).length>1?e:e[0]}function Ws(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function Jo(n){return function e(t){return arguments.length===0||Ws(t)?e:n.apply(this,arguments)}}function Qd(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return Ws(t)?e:Jo(function(o){return n(t,o)});default:return Ws(t)&&Ws(r)?e:Ws(t)?Jo(function(o){return n(o,r)}):Ws(r)?Jo(function(o){return n(t,o)}):n(t,r)}}}const qk=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Gk(n){return n!=null&&typeof n["@@transducer/step"]=="function"}function Fm(n,e,t){return function(){if(arguments.length===0)return t();var r=arguments[arguments.length-1];if(!qk(r)){for(var o=0;o<n.length;){if(typeof r[n[o]]=="function")return r[n[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(Gk(r)){var a=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(r)}}return t.apply(this,arguments)}}const Xd={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}};function Bm(n){for(var e=[],t;!(t=n.next()).done;)e.push(t.value);return e}function Vm(n,e,t){for(var r=0,o=t.length;r<o;){if(n(e,t[r]))return!0;r+=1}return!1}function Kk(n){var e=String(n).match(/^function (\w*)/);return e==null?"":e[1]}function Pc(n,e){return Object.prototype.hasOwnProperty.call(e,n)}function Jk(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}const Zd=typeof Object.is=="function"?Object.is:Jk;var zm=Object.prototype.toString,Yk=function(){return zm.call(arguments)==="[object Arguments]"?function(e){return zm.call(e)==="[object Arguments]"}:function(e){return Pc("callee",e)}}(),Qk=!{toString:null}.propertyIsEnumerable("toString"),Hm=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Wm=function(){return arguments.propertyIsEnumerable("length")}(),Xk=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},$m=Jo(typeof Object.keys=="function"&&!Wm?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var t,r,o=[],a=Wm&&Yk(e);for(t in e)Pc(t,e)&&(!a||t!=="length")&&(o[o.length]=t);if(Qk)for(r=Hm.length-1;r>=0;)t=Hm[r],Pc(t,e)&&!Xk(o,t)&&(o[o.length]=t),r-=1;return o}),qm=Jo(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Gm(n,e,t,r){var o=Bm(n),a=Bm(e);function l(u,f){return ef(u,f,t.slice(),r.slice())}return!Vm(function(u,f){return!Vm(l,f,u)},a,o)}function ef(n,e,t,r){if(Zd(n,e))return!0;var o=qm(n);if(o!==qm(e))return!1;if(typeof n["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](n);if(typeof n.equals=="function"||typeof e.equals=="function")return typeof n.equals=="function"&&n.equals(e)&&typeof e.equals=="function"&&e.equals(n);switch(o){case"Arguments":case"Array":case"Object":if(typeof n.constructor=="function"&&Kk(n.constructor)==="Promise")return n===e;break;case"Boolean":case"Number":case"String":if(!(typeof n==typeof e&&Zd(n.valueOf(),e.valueOf())))return!1;break;case"Date":if(!Zd(n.valueOf(),e.valueOf()))return!1;break;case"Error":return n.name===e.name&&n.message===e.message;case"RegExp":if(!(n.source===e.source&&n.global===e.global&&n.ignoreCase===e.ignoreCase&&n.multiline===e.multiline&&n.sticky===e.sticky&&n.unicode===e.unicode))return!1;break}for(var a=t.length-1;a>=0;){if(t[a]===n)return r[a]===e;a-=1}switch(o){case"Map":return n.size!==e.size?!1:Gm(n.entries(),e.entries(),t.concat([n]),r.concat([e]));case"Set":return n.size!==e.size?!1:Gm(n.values(),e.values(),t.concat([n]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=$m(n);if(l.length!==$m(e).length)return!1;var u=t.concat([n]),f=r.concat([e]);for(a=l.length-1;a>=0;){var p=l[a];if(!(Pc(p,e)&&ef(e[p],n[p],u,f)))return!1;a-=1}return!0}var tf=Qd(function(e,t){return ef(e,t,[],[])});function Zk(n,e,t){var r,o;if(typeof n.indexOf=="function")switch(typeof e){case"number":if(e===0){for(r=1/e;t<n.length;){if(o=n[t],o===0&&1/o===r)return t;t+=1}return-1}else if(e!==e){for(;t<n.length;){if(o=n[t],typeof o=="number"&&o!==o)return t;t+=1}return-1}return n.indexOf(e,t);case"string":case"boolean":case"function":case"undefined":return n.indexOf(e,t);case"object":if(e===null)return n.indexOf(e,t)}for(;t<n.length;){if(tf(n[t],e))return t;t+=1}return-1}function Km(n,e){return Zk(e,n,0)>=0}function ew(n){return n}var tw=Jo(ew),Jm=function(){function n(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return n.prototype.add=function(e){return!Ym(e,!0,this)},n.prototype.has=function(e){return Ym(e,!1,this)},n}();function Ym(n,e,t){var r=typeof n,o,a;switch(r){case"string":case"number":return n===0&&1/n===-1/0?t._items["-0"]?!0:(e&&(t._items["-0"]=!0),!1):t._nativeSet!==null?e?(o=t._nativeSet.size,t._nativeSet.add(n),a=t._nativeSet.size,a===o):t._nativeSet.has(n):r in t._items?n in t._items[r]?!0:(e&&(t._items[r][n]=!0),!1):(e&&(t._items[r]={},t._items[r][n]=!0),!1);case"boolean":if(r in t._items){var l=n?1:0;return t._items[r][l]?!0:(e&&(t._items[r][l]=!0),!1)}else return e&&(t._items[r]=n?[!1,!0]:[!0,!1]),!1;case"function":return t._nativeSet!==null?e?(o=t._nativeSet.size,t._nativeSet.add(n),a=t._nativeSet.size,a===o):t._nativeSet.has(n):r in t._items?Km(n,t._items[r])?!0:(e&&t._items[r].push(n),!1):(e&&(t._items[r]=[n]),!1);case"undefined":return t._items[r]?!0:(e&&(t._items[r]=!0),!1);case"object":if(n===null)return t._items.null?!0:(e&&(t._items.null=!0),!1);default:return r=Object.prototype.toString.call(n),r in t._items?Km(n,t._items[r])?!0:(e&&t._items[r].push(n),!1):(e&&(t._items[r]=[n]),!1)}}var nw=function(){function n(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=Xd.init,n.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},n.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},n}();function rw(n){return function(e){return new nw(n,e)}}var Qm=Qd(Fm([],rw,function(e,t){for(var r=t.length-1;r>=0;){if(e(t[r]))return r;r-=1}return-1})),iw=function(){function n(e,t){this.xf=t,this.f=e,this.set=new Jm}return n.prototype["@@transducer/init"]=Xd.init,n.prototype["@@transducer/result"]=Xd.result,n.prototype["@@transducer/step"]=function(e,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](e,t):e},n}();function ow(n){return function(e){return new iw(n,e)}}var sw=Qd(Fm([],ow,function(n,e){for(var t=new Jm,r=[],o=0,a,l;o<e.length;)l=e[o],a=n(l),t.add(a)&&r.push(l),o+=1;return r})),aw=sw(tw);const lw={version:"1.2.4-alpha.5"};var wn=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},zn={searchParams:"URLSearchParams"in wn,iterable:"Symbol"in wn&&"iterator"in Symbol,blob:"FileReader"in wn&&"Blob"in wn&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in wn,arrayBuffer:"ArrayBuffer"in wn};function cw(n){return n&&DataView.prototype.isPrototypeOf(n)}if(zn.arrayBuffer)var uw=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],dw=ArrayBuffer.isView||function(n){return n&&uw.indexOf(Object.prototype.toString.call(n))>-1};function $s(n){if(typeof n!="string"&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(n)||n==="")throw new TypeError('Invalid character in header field name: "'+n+'"');return n.toLowerCase()}function nf(n){return typeof n!="string"&&(n=String(n)),n}function rf(n){var e={next:function(){var t=n.shift();return{done:t===void 0,value:t}}};return zn.iterable&&(e[Symbol.iterator]=function(){return e}),e}function ln(n){this.map={},n instanceof ln?n.forEach(function(e,t){this.append(t,e)},this):Array.isArray(n)?n.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):n&&Object.getOwnPropertyNames(n).forEach(function(e){this.append(e,n[e])},this)}ln.prototype.append=function(n,e){n=$s(n),e=nf(e);var t=this.map[n];this.map[n]=t?t+", "+e:e},ln.prototype.delete=function(n){delete this.map[$s(n)]},ln.prototype.get=function(n){return n=$s(n),this.has(n)?this.map[n]:null},ln.prototype.has=function(n){return this.map.hasOwnProperty($s(n))},ln.prototype.set=function(n,e){this.map[$s(n)]=nf(e)},ln.prototype.forEach=function(n,e){for(var t in this.map)this.map.hasOwnProperty(t)&&n.call(e,this.map[t],t,this)},ln.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),rf(n)},ln.prototype.values=function(){var n=[];return this.forEach(function(e){n.push(e)}),rf(n)},ln.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),rf(n)},zn.iterable&&(ln.prototype[Symbol.iterator]=ln.prototype.entries);function of(n){if(!n._noBody){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}}function Xm(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function fw(n){var e=new FileReader,t=Xm(e);return e.readAsArrayBuffer(n),t}function hw(n){var e=new FileReader,t=Xm(e),r=/charset=([A-Za-z0-9_-]+)/.exec(n.type),o=r?r[1]:"utf-8";return e.readAsText(n,o),t}function pw(n){for(var e=new Uint8Array(n),t=new Array(e.length),r=0;r<e.length;r++)t[r]=String.fromCharCode(e[r]);return t.join("")}function Zm(n){if(n.slice)return n.slice(0);var e=new Uint8Array(n.byteLength);return e.set(new Uint8Array(n)),e.buffer}function eg(){return this.bodyUsed=!1,this._initBody=function(n){this.bodyUsed=this.bodyUsed,this._bodyInit=n,n?typeof n=="string"?this._bodyText=n:zn.blob&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:zn.formData&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:zn.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():zn.arrayBuffer&&zn.blob&&cw(n)?(this._bodyArrayBuffer=Zm(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):zn.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(n)||dw(n))?this._bodyArrayBuffer=Zm(n):this._bodyText=n=Object.prototype.toString.call(n):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof n=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):zn.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},zn.blob&&(this.blob=function(){var n=of(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var n=of(this);return n||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(zn.blob)return this.blob().then(fw);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var n=of(this);if(n)return n;if(this._bodyBlob)return hw(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(pw(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},zn.formData&&(this.formData=function(){return this.text().then(vw)}),this.json=function(){return this.text().then(JSON.parse)},this}var mw=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function gw(n){var e=n.toUpperCase();return mw.indexOf(e)>-1?e:n}function Yo(n,e){if(!(this instanceof Yo))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var t=e.body;if(n instanceof Yo){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,e.headers||(this.headers=new ln(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,!t&&n._bodyInit!=null&&(t=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new ln(e.headers)),this.method=gw(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in wn){var a=new AbortController;return a.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&t)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(t),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Yo.prototype.clone=function(){return new Yo(this,{body:this._bodyInit})};function vw(n){var e=new FormData;return n.trim().split("&").forEach(function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(a))}}),e}function yw(n){var e=new ln,t=n.replace(/\r?\n[\t ]+/g," ");return t.split("\r").map(function(r){return r.indexOf(`
|
|
41
|
+
`||r==="\r"?(p(),a=2):l+=r),a===3&&l==="!--"&&(a=4,f=f[0])}return p(),f}(n)),e),arguments,[])).length>1?e:e[0]}function Ws(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function Jo(n){return function e(t){return arguments.length===0||Ws(t)?e:n.apply(this,arguments)}}function Qd(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return Ws(t)?e:Jo(function(o){return n(t,o)});default:return Ws(t)&&Ws(r)?e:Ws(t)?Jo(function(o){return n(o,r)}):Ws(r)?Jo(function(o){return n(t,o)}):n(t,r)}}}const qk=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Gk(n){return n!=null&&typeof n["@@transducer/step"]=="function"}function Fm(n,e,t){return function(){if(arguments.length===0)return t();var r=arguments[arguments.length-1];if(!qk(r)){for(var o=0;o<n.length;){if(typeof r[n[o]]=="function")return r[n[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(Gk(r)){var a=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(r)}}return t.apply(this,arguments)}}const Xd={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}};function Bm(n){for(var e=[],t;!(t=n.next()).done;)e.push(t.value);return e}function Vm(n,e,t){for(var r=0,o=t.length;r<o;){if(n(e,t[r]))return!0;r+=1}return!1}function Kk(n){var e=String(n).match(/^function (\w*)/);return e==null?"":e[1]}function Pc(n,e){return Object.prototype.hasOwnProperty.call(e,n)}function Jk(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}const Zd=typeof Object.is=="function"?Object.is:Jk;var zm=Object.prototype.toString,Yk=function(){return zm.call(arguments)==="[object Arguments]"?function(e){return zm.call(e)==="[object Arguments]"}:function(e){return Pc("callee",e)}}(),Qk=!{toString:null}.propertyIsEnumerable("toString"),Hm=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Wm=function(){return arguments.propertyIsEnumerable("length")}(),Xk=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},$m=Jo(typeof Object.keys=="function"&&!Wm?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var t,r,o=[],a=Wm&&Yk(e);for(t in e)Pc(t,e)&&(!a||t!=="length")&&(o[o.length]=t);if(Qk)for(r=Hm.length-1;r>=0;)t=Hm[r],Pc(t,e)&&!Xk(o,t)&&(o[o.length]=t),r-=1;return o}),qm=Jo(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Gm(n,e,t,r){var o=Bm(n),a=Bm(e);function l(u,f){return ef(u,f,t.slice(),r.slice())}return!Vm(function(u,f){return!Vm(l,f,u)},a,o)}function ef(n,e,t,r){if(Zd(n,e))return!0;var o=qm(n);if(o!==qm(e))return!1;if(typeof n["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](n);if(typeof n.equals=="function"||typeof e.equals=="function")return typeof n.equals=="function"&&n.equals(e)&&typeof e.equals=="function"&&e.equals(n);switch(o){case"Arguments":case"Array":case"Object":if(typeof n.constructor=="function"&&Kk(n.constructor)==="Promise")return n===e;break;case"Boolean":case"Number":case"String":if(!(typeof n==typeof e&&Zd(n.valueOf(),e.valueOf())))return!1;break;case"Date":if(!Zd(n.valueOf(),e.valueOf()))return!1;break;case"Error":return n.name===e.name&&n.message===e.message;case"RegExp":if(!(n.source===e.source&&n.global===e.global&&n.ignoreCase===e.ignoreCase&&n.multiline===e.multiline&&n.sticky===e.sticky&&n.unicode===e.unicode))return!1;break}for(var a=t.length-1;a>=0;){if(t[a]===n)return r[a]===e;a-=1}switch(o){case"Map":return n.size!==e.size?!1:Gm(n.entries(),e.entries(),t.concat([n]),r.concat([e]));case"Set":return n.size!==e.size?!1:Gm(n.values(),e.values(),t.concat([n]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=$m(n);if(l.length!==$m(e).length)return!1;var u=t.concat([n]),f=r.concat([e]);for(a=l.length-1;a>=0;){var p=l[a];if(!(Pc(p,e)&&ef(e[p],n[p],u,f)))return!1;a-=1}return!0}var tf=Qd(function(e,t){return ef(e,t,[],[])});function Zk(n,e,t){var r,o;if(typeof n.indexOf=="function")switch(typeof e){case"number":if(e===0){for(r=1/e;t<n.length;){if(o=n[t],o===0&&1/o===r)return t;t+=1}return-1}else if(e!==e){for(;t<n.length;){if(o=n[t],typeof o=="number"&&o!==o)return t;t+=1}return-1}return n.indexOf(e,t);case"string":case"boolean":case"function":case"undefined":return n.indexOf(e,t);case"object":if(e===null)return n.indexOf(e,t)}for(;t<n.length;){if(tf(n[t],e))return t;t+=1}return-1}function Km(n,e){return Zk(e,n,0)>=0}function ew(n){return n}var tw=Jo(ew),Jm=function(){function n(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return n.prototype.add=function(e){return!Ym(e,!0,this)},n.prototype.has=function(e){return Ym(e,!1,this)},n}();function Ym(n,e,t){var r=typeof n,o,a;switch(r){case"string":case"number":return n===0&&1/n===-1/0?t._items["-0"]?!0:(e&&(t._items["-0"]=!0),!1):t._nativeSet!==null?e?(o=t._nativeSet.size,t._nativeSet.add(n),a=t._nativeSet.size,a===o):t._nativeSet.has(n):r in t._items?n in t._items[r]?!0:(e&&(t._items[r][n]=!0),!1):(e&&(t._items[r]={},t._items[r][n]=!0),!1);case"boolean":if(r in t._items){var l=n?1:0;return t._items[r][l]?!0:(e&&(t._items[r][l]=!0),!1)}else return e&&(t._items[r]=n?[!1,!0]:[!0,!1]),!1;case"function":return t._nativeSet!==null?e?(o=t._nativeSet.size,t._nativeSet.add(n),a=t._nativeSet.size,a===o):t._nativeSet.has(n):r in t._items?Km(n,t._items[r])?!0:(e&&t._items[r].push(n),!1):(e&&(t._items[r]=[n]),!1);case"undefined":return t._items[r]?!0:(e&&(t._items[r]=!0),!1);case"object":if(n===null)return t._items.null?!0:(e&&(t._items.null=!0),!1);default:return r=Object.prototype.toString.call(n),r in t._items?Km(n,t._items[r])?!0:(e&&t._items[r].push(n),!1):(e&&(t._items[r]=[n]),!1)}}var nw=function(){function n(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=Xd.init,n.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},n.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},n}();function rw(n){return function(e){return new nw(n,e)}}var Qm=Qd(Fm([],rw,function(e,t){for(var r=t.length-1;r>=0;){if(e(t[r]))return r;r-=1}return-1})),iw=function(){function n(e,t){this.xf=t,this.f=e,this.set=new Jm}return n.prototype["@@transducer/init"]=Xd.init,n.prototype["@@transducer/result"]=Xd.result,n.prototype["@@transducer/step"]=function(e,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](e,t):e},n}();function ow(n){return function(e){return new iw(n,e)}}var sw=Qd(Fm([],ow,function(n,e){for(var t=new Jm,r=[],o=0,a,l;o<e.length;)l=e[o],a=n(l),t.add(a)&&r.push(l),o+=1;return r})),aw=sw(tw);const lw={version:"1.2.4-alpha.6"};var wn=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},zn={searchParams:"URLSearchParams"in wn,iterable:"Symbol"in wn&&"iterator"in Symbol,blob:"FileReader"in wn&&"Blob"in wn&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in wn,arrayBuffer:"ArrayBuffer"in wn};function cw(n){return n&&DataView.prototype.isPrototypeOf(n)}if(zn.arrayBuffer)var uw=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],dw=ArrayBuffer.isView||function(n){return n&&uw.indexOf(Object.prototype.toString.call(n))>-1};function $s(n){if(typeof n!="string"&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(n)||n==="")throw new TypeError('Invalid character in header field name: "'+n+'"');return n.toLowerCase()}function nf(n){return typeof n!="string"&&(n=String(n)),n}function rf(n){var e={next:function(){var t=n.shift();return{done:t===void 0,value:t}}};return zn.iterable&&(e[Symbol.iterator]=function(){return e}),e}function ln(n){this.map={},n instanceof ln?n.forEach(function(e,t){this.append(t,e)},this):Array.isArray(n)?n.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):n&&Object.getOwnPropertyNames(n).forEach(function(e){this.append(e,n[e])},this)}ln.prototype.append=function(n,e){n=$s(n),e=nf(e);var t=this.map[n];this.map[n]=t?t+", "+e:e},ln.prototype.delete=function(n){delete this.map[$s(n)]},ln.prototype.get=function(n){return n=$s(n),this.has(n)?this.map[n]:null},ln.prototype.has=function(n){return this.map.hasOwnProperty($s(n))},ln.prototype.set=function(n,e){this.map[$s(n)]=nf(e)},ln.prototype.forEach=function(n,e){for(var t in this.map)this.map.hasOwnProperty(t)&&n.call(e,this.map[t],t,this)},ln.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),rf(n)},ln.prototype.values=function(){var n=[];return this.forEach(function(e){n.push(e)}),rf(n)},ln.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),rf(n)},zn.iterable&&(ln.prototype[Symbol.iterator]=ln.prototype.entries);function of(n){if(!n._noBody){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}}function Xm(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function fw(n){var e=new FileReader,t=Xm(e);return e.readAsArrayBuffer(n),t}function hw(n){var e=new FileReader,t=Xm(e),r=/charset=([A-Za-z0-9_-]+)/.exec(n.type),o=r?r[1]:"utf-8";return e.readAsText(n,o),t}function pw(n){for(var e=new Uint8Array(n),t=new Array(e.length),r=0;r<e.length;r++)t[r]=String.fromCharCode(e[r]);return t.join("")}function Zm(n){if(n.slice)return n.slice(0);var e=new Uint8Array(n.byteLength);return e.set(new Uint8Array(n)),e.buffer}function eg(){return this.bodyUsed=!1,this._initBody=function(n){this.bodyUsed=this.bodyUsed,this._bodyInit=n,n?typeof n=="string"?this._bodyText=n:zn.blob&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:zn.formData&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:zn.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():zn.arrayBuffer&&zn.blob&&cw(n)?(this._bodyArrayBuffer=Zm(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):zn.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(n)||dw(n))?this._bodyArrayBuffer=Zm(n):this._bodyText=n=Object.prototype.toString.call(n):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof n=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):zn.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},zn.blob&&(this.blob=function(){var n=of(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var n=of(this);return n||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(zn.blob)return this.blob().then(fw);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var n=of(this);if(n)return n;if(this._bodyBlob)return hw(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(pw(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},zn.formData&&(this.formData=function(){return this.text().then(vw)}),this.json=function(){return this.text().then(JSON.parse)},this}var mw=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function gw(n){var e=n.toUpperCase();return mw.indexOf(e)>-1?e:n}function Yo(n,e){if(!(this instanceof Yo))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var t=e.body;if(n instanceof Yo){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,e.headers||(this.headers=new ln(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,!t&&n._bodyInit!=null&&(t=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new ln(e.headers)),this.method=gw(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in wn){var a=new AbortController;return a.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&t)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(t),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Yo.prototype.clone=function(){return new Yo(this,{body:this._bodyInit})};function vw(n){var e=new FormData;return n.trim().split("&").forEach(function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(a))}}),e}function yw(n){var e=new ln,t=n.replace(/\r?\n[\t ]+/g," ");return t.split("\r").map(function(r){return r.indexOf(`
|
|
42
42
|
`)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),a=o.shift().trim();if(a){var l=o.join(":").trim();try{e.append(a,l)}catch(u){console.warn("Response "+u.message)}}}),e}eg.call(Yo.prototype);function pi(n,e){if(!(this instanceof pi))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new ln(e.headers),this.url=e.url||"",this._initBody(n)}eg.call(pi.prototype),pi.prototype.clone=function(){return new pi(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ln(this.headers),url:this.url})},pi.error=function(){var n=new pi(null,{status:200,statusText:""});return n.ok=!1,n.status=0,n.type="error",n};var bw=[301,302,303,307,308];pi.redirect=function(n,e){if(bw.indexOf(e)===-1)throw new RangeError("Invalid status code");return new pi(null,{status:e,headers:{location:n}})};var Qo=wn.DOMException;try{new Qo}catch{Qo=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},Qo.prototype=Object.create(Error.prototype),Qo.prototype.constructor=Qo}function tg(n,e){return new Promise(function(t,r){var o=new Yo(n,e);if(o.signal&&o.signal.aborted)return r(new Qo("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var p={statusText:a.statusText,headers:yw(a.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(a.status<200||a.status>599)?p.status=200:p.status=a.status,p.url="responseURL"in a?a.responseURL:p.headers.get("X-Request-URL");var g="response"in a?a.response:a.responseText;setTimeout(function(){t(new pi(g,p))},0)},a.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){r(new Qo("Aborted","AbortError"))},0)};function u(p){try{return p===""&&wn.location.href?wn.location.href:p}catch{return p}}if(a.open(o.method,u(o.url),!0),o.credentials==="include"?a.withCredentials=!0:o.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(zn.blob?a.responseType="blob":zn.arrayBuffer&&(a.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof ln||wn.Headers&&e.headers instanceof wn.Headers)){var f=[];Object.getOwnPropertyNames(e.headers).forEach(function(p){f.push($s(p)),a.setRequestHeader(p,nf(e.headers[p]))}),o.headers.forEach(function(p,g){f.indexOf(g)===-1&&a.setRequestHeader(g,p)})}else o.headers.forEach(function(p,g){a.setRequestHeader(g,p)});o.signal&&(o.signal.addEventListener("abort",l),a.onreadystatechange=function(){a.readyState===4&&o.signal.removeEventListener("abort",l)}),a.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}tg.polyfill=!0,wn.fetch||(wn.fetch=tg,wn.Headers=ln,wn.Request=Yo,wn.Response=pi);var sf,ng;function kw(){return ng||(ng=1,sf=self.fetch.bind(self)),sf}var ww=kw();const tl=Tt(ww);function Vt(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function Xo(n){return function e(t){return arguments.length===0||Vt(t)?e:n.apply(this,arguments)}}function qs(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return Vt(t)?e:Xo(function(o){return n(t,o)});default:return Vt(t)&&Vt(r)?e:Vt(t)?Xo(function(o){return n(o,r)}):Vt(r)?Xo(function(o){return n(t,o)}):n(t,r)}}}function Cw(n,e){n=n||[],e=e||[];var t,r=n.length,o=e.length,a=[];for(t=0;t<r;)a[a.length]=n[t],t+=1;for(t=0;t<o;)a[a.length]=e[t],t+=1;return a}function Sw(n){return function e(t,r,o){switch(arguments.length){case 0:return e;case 1:return Vt(t)?e:qs(function(a,l){return n(t,a,l)});case 2:return Vt(t)&&Vt(r)?e:Vt(t)?qs(function(a,l){return n(a,r,l)}):Vt(r)?qs(function(a,l){return n(t,a,l)}):Xo(function(a){return n(t,r,a)});default:return Vt(t)&&Vt(r)&&Vt(o)?e:Vt(t)&&Vt(r)?qs(function(a,l){return n(a,l,o)}):Vt(t)&&Vt(o)?qs(function(a,l){return n(a,r,l)}):Vt(r)&&Vt(o)?qs(function(a,l){return n(t,a,l)}):Vt(t)?Xo(function(a){return n(a,r,o)}):Vt(r)?Xo(function(a){return n(t,a,o)}):Vt(o)?Xo(function(a){return n(t,r,a)}):n(t,r,o)}}}var rg=Sw(function(e,t,r){var o=r.length;if(e>=o||e<-o)return r;var a=(o+e)%o,l=Cw(r);return l[a]=t(r[a]),l});/*! *****************************************************************************
|
|
43
43
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
44
44
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -57,7 +57,7 @@ Error generating stack: `+k.message+`
|
|
|
57
57
|
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
|
58
58
|
* https://github.com/pladaria/reconnecting-websocket
|
|
59
59
|
* License MIT
|
|
60
|
-
*/var Rw=function(){if(typeof WebSocket<"u")return WebSocket},Iw=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},Zo={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},lf=function(){function n(e,t,r){var o=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(a){o._debug("open event");var l=o._options.minUptime,u=l===void 0?Zo.minUptime:l;clearTimeout(o._connectTimeout),o._uptimeTimeout=setTimeout(function(){return o._acceptOpen()},u),o._ws.binaryType=o._binaryType,o._messageQueue.forEach(function(f){return o._ws.send(f)}),o._messageQueue=[],o.onopen&&o.onopen(a),o._listeners.open.forEach(function(f){return o._callEventListener(a,f)})},this._handleMessage=function(a){o._debug("message event"),o.onmessage&&o.onmessage(a),o._listeners.message.forEach(function(l){return o._callEventListener(a,l)})},this._handleError=function(a){o._debug("error event",a.message),o._disconnect(void 0,a.message==="TIMEOUT"?"timeout":void 0),o.onerror&&o.onerror(a),o._debug("exec error listeners"),o._listeners.error.forEach(function(l){return o._callEventListener(a,l)}),o._connect()},this._handleClose=function(a){o._debug("close event"),o._clearTimeouts(),o._shouldReconnect&&o._connect(),o.onclose&&o.onclose(a),o._listeners.close.forEach(function(l){return o._callEventListener(a,l)})},this._url=e,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?Zo.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,r,o=this._listeners[e.type];if(o)try{for(var a=Tw(o),l=a.next();!l.done;l=a.next()){var u=l.value;this._callEventListener(e,u)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(function(r){return r!==t}))},n.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._options.debug&&console.log.apply(console,xw(["RWS>"],e))},n.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,r=t===void 0?Zo.reconnectionDelayGrowFactor:t,o=e.minReconnectionDelay,a=o===void 0?Zo.minReconnectionDelay:o,l=e.maxReconnectionDelay,u=l===void 0?Zo.maxReconnectionDelay:l,f=0;return this._retryCount>0&&(f=a*Math.pow(r,this._retryCount-1),f>u&&(f=u)),this._debug("next delay",f),f},n.prototype._wait=function(){var e=this;return new Promise(function(t){setTimeout(t,e._getNextDelay())})},n.prototype._getNextUrl=function(e){if(typeof e=="string")return Promise.resolve(e);if(typeof e=="function"){var t=e();if(typeof t=="string")return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},n.prototype._connect=function(){var e=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var t=this._options,r=t.maxRetries,o=r===void 0?Zo.maxRetries:r,a=t.connectionTimeout,l=a===void 0?Zo.connectionTimeout:a,u=t.WebSocket,f=u===void 0?Rw():u;if(this._retryCount>=o){this._debug("max retries reached",this._retryCount,">=",o);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!Iw(f))throw Error("No valid WebSocket class provided");this._wait().then(function(){return e._getNextUrl(e._url)}).then(function(p){e._closeCalled||(e._debug("connect",{url:p,protocols:e._protocols}),e._ws=e._protocols?new f(p,e._protocols):new f(p),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout(function(){return e._handleTimeout()},l))})}},n.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new Ew(Error("TIMEOUT"),this))},n.prototype._disconnect=function(e,t){if(e===void 0&&(e=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new Pw(e,t,this))}catch{}}},n.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},n.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},n.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},n.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},n.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},n}();let Rc;const Mw=new Uint8Array(16);function Aw(){if(!Rc&&(Rc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Rc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Rc(Mw)}const Cn=[];for(let n=0;n<256;++n)Cn.push((n+256).toString(16).slice(1));function Ow(n,e=0){return Cn[n[e+0]]+Cn[n[e+1]]+Cn[n[e+2]]+Cn[n[e+3]]+"-"+Cn[n[e+4]]+Cn[n[e+5]]+"-"+Cn[n[e+6]]+Cn[n[e+7]]+"-"+Cn[n[e+8]]+Cn[n[e+9]]+"-"+Cn[n[e+10]]+Cn[n[e+11]]+Cn[n[e+12]]+Cn[n[e+13]]+Cn[n[e+14]]+Cn[n[e+15]]}const sg={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ag(n,e,t){if(sg.randomUUID&&!n)return sg.randomUUID();n=n||{};const r=n.random||(n.rng||Aw)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ow(r)}var Lw="1.2.4-alpha.5",Ic={version:Lw};const es=console;var Hn;(function(n){n.Application="bot",n.User="user",n.Failure="failure"})(Hn||(Hn={}));const lg="NLX.Welcome",Dw="We encountered an issue. Please try again soon.",cg=n=>Array.isArray(n)?n:Object.entries(n).map(([e,t])=>({slotId:e,value:t})),ug=n=>({...n,intentId:n.flowId??n.intentId,slots:n.slots!=null?cg(n.slots):n.slots}),dg=n=>n.responses,cf=n=>{try{return JSON.parse(n)}catch{return null}},fg=n=>{var e;return((e=n.match(/(bots\.dev\.studio\.nlx\.ai|bots\.studio\.nlx\.ai|apps\.nlx\.ai|dev\.apps\.nlx\.ai)/g))==null?void 0:e[0])??"apps.nlx.ai"},Nw=n=>{if(ho(n))return n;const e=fg(n),r=new URL(n).pathname.split("/"),o=r[2],a=r[3];return`wss://us-east-1-ws.${e}?deploymentKey=${o}&channelKey=${a}`},hg=n=>{if(!ho(n))return n;const e=fg(n),t=new URL(n),r=new URLSearchParams(t.search),o=r.get("channelKey"),a=r.get("deploymentKey");return`https://${e}/c/${a}/${o}`},ho=n=>n.indexOf("wss://")===0,jw=async({fullApplicationUrl:n,headers:e,body:t,stream:r,eventListeners:o})=>{const a=async l=>{const u=await tl(n,{method:"POST",headers:{...e,"Content-Type":"application/json","nlx-sdk-version":Ic.version},body:JSON.stringify({...l,stream:!0})});if(!u.ok||u.body==null)throw new Error(`HTTP Error: ${u.status}`);const f=u.body.getReader(),p=new TextDecoder;let g="";const w=[];let _={};for(;;){const{done:T,value:B}=await f.read();if(T)break;for(g+=p.decode(B,{stream:!0});;){const A=g.indexOf("{");if(A===-1)break;let q=!1;for(let N=0;N<g.length;N++)if(g[N]==="}"){const ee=g.substring(A,N+1);try{const F=JSON.parse(ee);if(F.type==="interim"){const O=F.text;typeof O=="string"&&o.interimMessage.forEach(U=>{U(O)})}else F.type==="message"?w.push({text:F.text,choices:F.choices??[],messageId:F.messageId,metadata:F.metadata}):F.type==="final_response"&&(_=F.data);g=g.substring(N+1),q=!0;break}catch{}}if(!q)break}}return o.interimMessage.forEach(T=>{T(void 0)}),{..._,messages:w}};if(r)return await a(t);{const l=await tl(n,{method:"POST",headers:{...e??{},Accept:"application/json","Content-Type":"application/json","nlx-sdk-version":Ic.version},body:JSON.stringify(t)});if(!l.ok||l.body==null)throw new Error(`HTTP Error: ${l.status}`);return await l.json()}};function Uw(n){let e,t=[],r=null,o,a=[],l=null;const u=n.applicationUrl??"";/[-|_][a-z]{2,}[-|_][A-Z]{2,}$/.test(u)&&es.warn("Since v1.0.0, the language code is no longer added at the end of the application URL. Please remove the modifier (e.g. '-en-US') from the URL, and specify it in the `languageCode` parameter instead.");const f={voicePlusCommand:[],interimMessage:[]},p=n.conversationId??ag();let g={responses:n.responses??[],languageCode:n.languageCode,userId:n.userId,conversationId:p};const w=()=>{var ne;return`${hg(u)}${((ne=n.experimental)==null?void 0:ne.completeApplicationUrl)===!0?"":`-${g.languageCode}`}`},_=(ne,Pe)=>{g={...g,...ne},ee.forEach(he=>{he(dg(g),Pe)})},T=()=>{const ne={type:Hn.Failure,receivedAt:new Date().getTime(),payload:{text:n.failureMessage??Dw}};_({responses:[...g.responses,ne]},ne)},B=ne=>{if((ne==null?void 0:ne.messages.length)>0){const Pe={type:Hn.Application,receivedAt:new Date().getTime(),payload:{...ne,messages:ne.messages.map(he=>({nodeId:he.nodeId,messageId:he.messageId,text:he.text,choices:he.choices??[]}))}};_({responses:[...g.responses,Pe]},Pe),ne.metadata.hasPendingDataRequest&&(H({poll:!0}),setTimeout(()=>{N({request:{structured:{poll:!0}}})},1500))}else es.warn("Invalid message structure, expected object with field 'messages'."),T()};let A;const q=ne=>{(o==null?void 0:o.readyState)===1?o.send(JSON.stringify(ne)):a=[...a,ne]},N=async ne=>{var he,ce;if(A!=null){A(ne,ke=>{es.warn("Using the second argument in `setRequestOverride` is deprecated. Use `conversationHandler.appendMessageToTranscript` instead.");const we={type:Hn.Application,receivedAt:new Date().getTime(),payload:ke};_({responses:[...g.responses,we]},we)});return}const Pe={userId:g.userId,conversationId:g.conversationId,...ne,languageCode:g.languageCode,channelType:(he=n.experimental)==null?void 0:he.channelType,environment:n.environment};if(ho(u))(e==null?void 0:e.readyState)===1?e.send(JSON.stringify(Pe)):t=[...t,Pe];else try{const ke=await jw({fullApplicationUrl:w(),headers:n.headers??{},stream:((ce=n.experimental)==null?void 0:ce.streamHttp)??!0,eventListeners:f,body:Pe});B(ke)}catch(ke){es.warn(ke),T()}};let ee=[];const F=async()=>{(e==null?void 0:e.readyState)===1&&t[0]!=null&&(await N(t[0]),t=t.slice(1))},O=()=>{(o==null?void 0:o.readyState)===1&&a[0]!=null&&(q(a[0]),a=a.slice(1))},U=()=>{var Pe;te();const ne=new URL(u);((Pe=n.experimental)==null?void 0:Pe.completeApplicationUrl)!==!0&&(ne.searchParams.set("languageCode",g.languageCode),ne.searchParams.set("channelKey",`${ne.searchParams.get("channelKey")??""}-${g.languageCode}`)),ne.searchParams.set("conversationId",g.conversationId),e=new lf(ne.href),r=setInterval(()=>{F()},500),e.onmessage=function(he){typeof(he==null?void 0:he.data)=="string"&&B(cf(he.data))},ne.searchParams.set("voice-plus","true"),o=new lf(ne.href),l=setInterval(()=>{O()},500),o.onmessage=he=>{if(typeof(he==null?void 0:he.data)=="string"){const ce=cf(he.data);ce!=null&&f.voicePlusCommand.forEach(ke=>{ke(ce)})}}},G=()=>{var he;if(X(),n.bidirectional!==!0)return;const ne=new URL(Nw(u));((he=n.experimental)==null?void 0:he.completeApplicationUrl)!==!0&&(ne.searchParams.set("languageCode",g.languageCode),ne.searchParams.set("channelKey",`${ne.searchParams.get("channelKey")??""}-${g.languageCode}`)),ne.searchParams.set("conversationId",g.conversationId),ne.searchParams.set("type","voice-plus");const Pe=n.headers["nlx-api-key"];!ho(u)&&Pe!=null&&ne.searchParams.set("apiKey",Pe),o=new lf(ne.href),l=setInterval(()=>{O()},500),o.onmessage=ce=>{if(typeof(ce==null?void 0:ce.data)=="string"){const ke=cf(ce.data);ke!=null&&f.voicePlusCommand.forEach(we=>{we(ke)})}}},te=()=>{r!=null&&clearInterval(r),e!=null&&(e.onmessage=null,e.close(),e=void 0)},X=()=>{l!=null&&clearInterval(l),o!=null&&(o.onmessage=null,o.close(),o=void 0)};ho(u)&&U(),G();const H=(ne,Pe)=>{const he={type:Hn.User,receivedAt:new Date().getTime(),payload:{type:"structured",...ug(ne),context:Pe}};_({responses:[...g.responses,he]},he)},W=(ne,Pe)=>{H({intentId:ne},Pe),N({context:Pe,request:{structured:{intentId:ne}}})},Y=(ne,Pe)=>{const he={type:Hn.User,receivedAt:new Date().getTime(),payload:{type:"text",text:ne,context:Pe}};_({responses:[...g.responses,he]},he),N({context:Pe,request:{unstructured:{text:ne}}})},de=(ne,Pe,he)=>{let ce=[...g.responses];const ke={type:Hn.User,receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:ne}},we=(he==null?void 0:he.responseIndex)??-1,L=(he==null?void 0:he.messageIndex)??-1;we>-1&&L>-1&&(ce=rg(we,se=>se.type===Hn.Application?{...se,payload:{...se.payload,messages:rg(L,He=>({...He,selectedChoiceId:ne}),se.payload.messages)}}:se,ce)),ce=[...ce,ke],_({responses:ce},ke),N({context:Pe,request:{structured:{nodeId:he==null?void 0:he.nodeId,intentId:he==null?void 0:he.intentId,choiceId:ne}}})},Me=ne=>{ee=ee.filter(Pe=>Pe!==ne)};return{sendText:Y,sendContext:async ne=>{const Pe=await tl(`${w()}/context`,{method:"POST",headers:{...n.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-conversation-id":g.conversationId,"nlx-sdk-version":Ic.version},body:JSON.stringify({languageCode:g.languageCode,conversationId:g.conversationId,userId:g.userId,context:ne})});if(Pe.status>=400)throw new Error(`Responded with ${Pe.status}`)},appendMessageToTranscript:ne=>{const Pe={...ne,receivedAt:ne.receivedAt??new Date().getTime()};_({responses:[...g.responses,Pe]},Pe)},sendStructured:(ne,Pe)=>{H(ne,Pe),N({context:Pe,request:{structured:ug(ne)}})},sendSlots:(ne,Pe)=>{H({slots:ne},Pe),N({context:Pe,request:{structured:{slots:cg(ne)}}})},sendFlow:W,sendIntent:(ne,Pe)=>{es.warn("Calling `sendIntent` is deprecated and will be removed in a future version of the SDK. Use `sendFlow` instead."),W(ne,Pe)},sendWelcomeFlow:ne=>{W(lg,ne)},sendWelcomeIntent:ne=>{es.warn("Calling `sendWelcomeIntent` is deprecated and will be removed in a future version of the SDK. Use `sendWelcomeFlow` instead."),W(lg,ne)},sendChoice:de,submitFeedback:async(ne,Pe)=>{const he=await tl(ne,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({languageCode:g.languageCode,conversationId:g.conversationId,userId:g.userId,...Pe})});if(he.status>=400)throw new Error(`Responded with ${he.status}`)},currentConversationId:()=>g.conversationId,setLanguageCode:ne=>{if(ne===g.languageCode){es.warn("Attempted to set language code to the one already active.");return}ho(u)&&U(),G(),_({languageCode:ne})},currentLanguageCode:()=>g.languageCode,getVoiceCredentials:async(ne,Pe)=>{const he=hg(u),ce=await tl(`${he}-${g.languageCode}/requestToken`,{method:"POST",headers:{...n.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-conversation-id":g.conversationId,"nlx-sdk-version":Ic.version},body:JSON.stringify({languageCode:g.languageCode,conversationId:g.conversationId,userId:g.userId,requestToken:!0,context:ne,autoTriggerWelcomeFlow:(Pe==null?void 0:Pe.autoTriggerWelcomeFlow)??!0})});if(ce.status>=400)throw new Error(`Responded with ${ce.status}`);const ke=await ce.json();if((ke==null?void 0:ke.url)==null)throw new Error("Invalid response");return ke},subscribe:ne=>(ee=[...ee,ne],ne(dg(g)),()=>{Me(ne)}),unsubscribe:Me,unsubscribeAll:()=>{ee=[]},reset:ne=>{_({conversationId:ag(),responses:(ne==null?void 0:ne.clearResponses)===!0?[]:g.responses}),ho(u)&&U(),G()},destroy:()=>{ee=[],ho(u)&&te(),X()},setRequestOverride:ne=>{A=ne},addEventListener:(ne,Pe)=>{f[ne]=[...f[ne],Pe]},removeEventListener:(ne,Pe)=>{f[ne]=f[ne].filter(he=>he!==Pe)},sendVoicePlusContext:ne=>{q({context:ne})}}}const Fw=n=>(n.applicationUrl??"").length>0;function pg(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(e=0;e<o;e++)n[e]&&(t=pg(n[e]))&&(r&&(r+=" "),r+=t)}else for(t in n)n[t]&&(r&&(r+=" "),r+=t);return r}function st(){for(var n,e,t=0,r="",o=arguments.length;t<o;t++)(n=arguments[t])&&(e=pg(n))&&(r&&(r+=" "),r+=e);return r}const at=n=>({width:n.size!=null?`${n.size}px`:"100%",height:n.size!=null?`${n.size}px`:"100%",className:n.className}),Bw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M11 21H10L11 14H7.5C6.92 14 6.93 13.68 7.12 13.34C7.31 13 7.17 13.26 7.19 13.22C8.48 10.94 10.42 7.54 13 3H14L13 10H16.5C16.99 10 17.06 10.33 16.97 10.51L16.9 10.66C12.96 17.55 11 21 11 21Z",fill:"currentColor"})}),nl=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M13.5562 5.34835C12.2796 6.62498 12.4866 8.90179 14.0186 10.4337C14.3377 10.7529 14.5571 11.134 14.6767 11.5383C14.8007 11.9572 14.8177 12.4011 14.7277 12.8268C14.6656 13.1203 14.5526 13.4051 14.3887 13.6672C14.3259 13.7677 14.2557 13.865 14.1778 13.9581C14.1279 14.018 14.0747 14.0761 14.0186 14.1322C13.3341 14.8166 12.3641 15.0421 11.4917 14.8092L11.4728 14.8042C9.38654 14.2543 7.32235 15.2129 6.85652 16.9516C6.5761 17.9979 5.50065 18.6188 4.45431 18.3385C3.40798 18.0581 2.787 16.9826 3.06729 15.9363C3.34209 14.9111 4.38012 14.2942 5.40615 14.5335L5.40666 14.5317C5.42748 14.5378 5.44842 14.5437 5.46962 14.5493C7.21342 15.0166 9.08173 13.699 9.64244 11.6062C9.64857 11.5835 9.65521 11.5608 9.66185 11.5383C9.7815 11.134 10.0009 10.7529 10.32 10.4337L10.332 10.4214C10.339 10.4142 10.346 10.407 10.3533 10.4C11.8549 8.86865 12.0496 6.61566 10.7824 5.34835C10.0163 4.58237 10.0163 3.34047 10.7824 2.57449C11.5483 1.8085 12.7903 1.8085 13.5562 2.57449C14.3066 3.32501 14.3218 4.53237 13.6016 5.30135L13.6029 5.30263C13.5872 5.3177 13.5716 5.33289 13.5562 5.34835Z",fill:"currentColor"}),R.jsx("path",{d:"M19.327 6.83185C20.0311 6.83185 20.6019 7.40264 20.6019 8.10675C20.6019 8.81087 20.0311 9.38166 19.327 9.38166C18.6229 9.38166 18.0521 8.81087 18.0521 8.10675C18.0521 7.40264 18.6229 6.83185 19.327 6.83185Z",fill:"currentColor"}),R.jsx("path",{d:"M21.3237 16.4754C21.3237 15.3741 20.4309 14.4813 19.3297 14.4813C18.2284 14.4813 17.3356 15.3741 17.3356 16.4754C17.3356 17.5767 18.2284 18.4695 19.3297 18.4695C20.4309 18.4695 21.3237 17.5767 21.3237 16.4754Z",fill:"currentColor"}),R.jsx("path",{d:"M12.1025 19.3194C12.8246 19.3194 13.4101 19.9195 13.4101 20.6597C13.4101 21.4 12.8246 22 12.1025 22C11.3804 22 10.7949 21.4 10.7949 20.6597C10.7949 19.9195 11.3804 19.3194 12.1025 19.3194Z",fill:"currentColor"}),R.jsx("path",{d:"M6.28367 8.13944C6.28367 7.41726 5.68363 6.83185 4.94339 6.83185C4.20314 6.83185 3.6031 7.41726 3.6031 8.13944C3.6031 8.86163 4.20314 9.44704 4.94339 9.44704C5.68363 9.44704 6.28367 8.86163 6.28367 8.13944Z",fill:"currentColor"})]}),Vw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M6 13C5.45 13 5 13.45 5 14C5 14.55 5.45 15 6 15C6.55 15 7 14.55 7 14C7 13.45 6.55 13 6 13ZM6 17C5.45 17 5 17.45 5 18C5 18.55 5.45 19 6 19C6.55 19 7 18.55 7 18C7 17.45 6.55 17 6 17ZM6 9C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11C6.55 11 7 10.55 7 10C7 9.45 6.55 9 6 9ZM3 9.5C2.72 9.5 2.5 9.72 2.5 10C2.5 10.28 2.72 10.5 3 10.5C3.28 10.5 3.5 10.28 3.5 10C3.5 9.72 3.28 9.5 3 9.5ZM6 5C5.45 5 5 5.45 5 6C5 6.55 5.45 7 6 7C6.55 7 7 6.55 7 6C7 5.45 6.55 5 6 5ZM21 10.5C21.28 10.5 21.5 10.28 21.5 10C21.5 9.72 21.28 9.5 21 9.5C20.72 9.5 20.5 9.72 20.5 10C20.5 10.28 20.72 10.5 21 10.5ZM14 7C14.55 7 15 6.55 15 6C15 5.45 14.55 5 14 5C13.45 5 13 5.45 13 6C13 6.55 13.45 7 14 7ZM14 3.5C14.28 3.5 14.5 3.28 14.5 3C14.5 2.72 14.28 2.5 14 2.5C13.72 2.5 13.5 2.72 13.5 3C13.5 3.28 13.72 3.5 14 3.5ZM3 13.5C2.72 13.5 2.5 13.72 2.5 14C2.5 14.28 2.72 14.5 3 14.5C3.28 14.5 3.5 14.28 3.5 14C3.5 13.72 3.28 13.5 3 13.5ZM10 20.5C9.72 20.5 9.5 20.72 9.5 21C9.5 21.28 9.72 21.5 10 21.5C10.28 21.5 10.5 21.28 10.5 21C10.5 20.72 10.28 20.5 10 20.5ZM10 3.5C10.28 3.5 10.5 3.28 10.5 3C10.5 2.72 10.28 2.5 10 2.5C9.72 2.5 9.5 2.72 9.5 3C9.5 3.28 9.72 3.5 10 3.5ZM10 7C10.55 7 11 6.55 11 6C11 5.45 10.55 5 10 5C9.45 5 9 5.45 9 6C9 6.55 9.45 7 10 7ZM10 12.5C9.17 12.5 8.5 13.17 8.5 14C8.5 14.83 9.17 15.5 10 15.5C10.83 15.5 11.5 14.83 11.5 14C11.5 13.17 10.83 12.5 10 12.5ZM18 13C17.45 13 17 13.45 17 14C17 14.55 17.45 15 18 15C18.55 15 19 14.55 19 14C19 13.45 18.55 13 18 13ZM18 17C17.45 17 17 17.45 17 18C17 18.55 17.45 19 18 19C18.55 19 19 18.55 19 18C19 17.45 18.55 17 18 17ZM18 9C17.45 9 17 9.45 17 10C17 10.55 17.45 11 18 11C18.55 11 19 10.55 19 10C19 9.45 18.55 9 18 9ZM18 5C17.45 5 17 5.45 17 6C17 6.55 17.45 7 18 7C18.55 7 19 6.55 19 6C19 5.45 18.55 5 18 5ZM21 13.5C20.72 13.5 20.5 13.72 20.5 14C20.5 14.28 20.72 14.5 21 14.5C21.28 14.5 21.5 14.28 21.5 14C21.5 13.72 21.28 13.5 21 13.5ZM14 17C13.45 17 13 17.45 13 18C13 18.55 13.45 19 14 19C14.55 19 15 18.55 15 18C15 17.45 14.55 17 14 17ZM14 20.5C13.72 20.5 13.5 20.72 13.5 21C13.5 21.28 13.72 21.5 14 21.5C14.28 21.5 14.5 21.28 14.5 21C14.5 20.72 14.28 20.5 14 20.5ZM10 8.5C9.17 8.5 8.5 9.17 8.5 10C8.5 10.83 9.17 11.5 10 11.5C10.83 11.5 11.5 10.83 11.5 10C11.5 9.17 10.83 8.5 10 8.5ZM10 17C9.45 17 9 17.45 9 18C9 18.55 9.45 19 10 19C10.55 19 11 18.55 11 18C11 17.45 10.55 17 10 17ZM14 12.5C13.17 12.5 12.5 13.17 12.5 14C12.5 14.83 13.17 15.5 14 15.5C14.83 15.5 15.5 14.83 15.5 14C15.5 13.17 14.83 12.5 14 12.5ZM14 8.5C13.17 8.5 12.5 9.17 12.5 10C12.5 10.83 13.17 11.5 14 11.5C14.83 11.5 15.5 10.83 15.5 10C15.5 9.17 14.83 8.5 14 8.5Z",fill:"currentColor"})}),zw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),mg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 15.41L6 9.40997L7.41 7.99997L12 12.58L16.59 7.99997L18 9.40997L12 15.41Z",fill:"currentColor"})}),uf=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M7.59001 12L13.59 18L15 16.59L10.42 12L15 7.41002L13.59 6.00002L7.59001 12Z",fill:"currentColor"})}),gg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M15 12L9.00005 18L7.59005 16.59L12.17 12L7.59005 7.41002L9.00005 6.00002L15 12Z",fill:"currentColor"})}),Hw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),Mc=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",fill:"currentColor"})}),df=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M18.5 16H7C4.79 16 3 14.21 3 12C3 9.79 4.79 8 7 8H19.5C20.88 8 22 9.12 22 10.5C22 11.88 20.88 13 19.5 13H9C8.45 13 8 12.55 8 12C8 11.45 8.45 11 9 11H18.5V9.5H9C7.62 9.5 6.5 10.62 6.5 12C6.5 13.38 7.62 14.5 9 14.5H19.5C21.71 14.5 23.5 12.71 23.5 10.5C23.5 8.29 21.71 6.5 19.5 6.5H7C3.96 6.5 1.5 8.96 1.5 12C1.5 15.04 3.96 17.5 7 17.5H18.5V16Z",fill:"currentColor"})}),vg=n=>R.jsx("svg",{viewBox:"0 0 12 12",...at(n),children:R.jsx("path",{d:"M10 1H2C1.45 1 1.005 1.45 1.005 2L1 11L3 9H10C10.55 9 11 8.55 11 8V2C11 1.45 10.55 1 10 1ZM6 7H3V6H6V7ZM9 5.5H3V4.5H9V5.5ZM9 4H3V3H9V4Z",fill:"currentColor"})}),Ww=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M12 15.2C13.7673 15.2 15.2 13.7673 15.2 12C15.2 10.2327 13.7673 8.8 12 8.8C10.2327 8.8 8.8 10.2327 8.8 12C8.8 13.7673 10.2327 15.2 12 15.2Z",fill:"currentColor"}),R.jsx("path",{d:"M9 2L7.17 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.83L15 2H9ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17Z",fill:"currentColor"})]}),ff=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M8.99991 16.17L4.82991 12L3.40991 13.41L8.99991 19L20.9999 7L19.5899 5.59L8.99991 16.17Z",fill:"currentColor"})}),rl=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})}),$w=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5ZM19 21H8V7H19V21Z",fill:"currentColor"})}),yg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V9H19V20Z",fill:"currentColor"})}),bg=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 21C6.9 21 6 20.1 6 19V7H18V19C18 20.1 17.1 21 16 21H8ZM9.33337 9H8V19H9.33337V9ZM11.3334 9V19H12.6666V9H11.3334ZM16 19H14.6666V9H16V19Z",fill:"currentColor"}),R.jsx("path",{d:"M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4Z",fill:"currentColor"})]}),kg=n=>R.jsx("svg",{viewBox:"0 0 16 16",...at(n),children:R.jsx("path",{d:"M2 11.5002V14.0002H4.5L11.8733 6.62687L9.37333 4.12687L2 11.5002ZM13.8067 4.69354C14.0667 4.43354 14.0667 4.01354 13.8067 3.75354L12.2467 2.19354C11.9867 1.93354 11.5667 1.93354 11.3067 2.19354L10.0867 3.41354L12.5867 5.91354L13.8067 4.69354V4.69354Z",fill:"currentColor"})}),wg=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z",fill:"currentColor"}),R.jsx("path",{d:"M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z",fill:"currentColor"}),R.jsx("path",{d:"M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z",fill:"currentColor"}),R.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6C9.02 6 5.76 8.51 6.02 12.45C8.49 11.44 10.35 9.24 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z",fill:"currentColor"})]}),hf=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})}),qw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),Ac=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 15C13.66 15 14.99 13.66 14.99 12L15 6C15 4.34 13.66 3 12 3C10.34 3 9 4.34 9 6V12C9 13.66 10.34 15 12 15ZM17.3 12C17.3 15 14.76 17.1 12 17.1C9.24 17.1 6.7 15 6.7 12H5C5 15.42 7.72 18.23 11 18.72V22H13V18.72C16.28 18.24 19 15.42 19 12H17.3Z",fill:"currentColor"})}),pf=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 11H17.3C17.3 11.74 17.14 12.43 16.87 13.05L18.1 14.28C18.66 13.3 19 12.19 19 11ZM14.98 11.17C14.98 11.11 15 11.06 15 11V5C15 3.34 13.66 2 12 2C10.34 2 9 3.34 9 5V5.18L14.98 11.17ZM4.27 3L3 4.27L9.01 10.28V11C9.01 12.66 10.34 14 12 14C12.22 14 12.44 13.97 12.65 13.92L14.31 15.58C13.6 15.91 12.81 16.1 12 16.1C9.24 16.1 6.7 14 6.7 11H5C5 14.41 7.72 17.23 11 17.72V21H13V17.72C13.91 17.59 14.77 17.27 15.54 16.82L19.73 21L21 19.73L4.27 3Z",fill:"currentColor"})}),Gw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z",fill:"currentColor"})}),Oc=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M3 9.99999V14C3 14.55 3.45 15 4 15H7L10.29 18.29C10.92 18.92 12 18.47 12 17.58V6.40999C12 5.51999 10.92 5.06999 10.29 5.69999L7 8.99999H4C3.45 8.99999 3 9.44999 3 9.99999ZM16.5 12C16.5 10.23 15.48 8.70999 14 7.96999V16.02C15.48 15.29 16.5 13.77 16.5 12ZM14 4.44999V4.64999C14 5.02999 14.25 5.35999 14.6 5.49999C17.18 6.52999 19 9.05999 19 12C19 14.94 17.18 17.47 14.6 18.5C14.24 18.64 14 18.97 14 19.35V19.55C14 20.18 14.63 20.62 15.21 20.4C18.6 19.11 21 15.84 21 12C21 8.15999 18.6 4.88999 15.21 3.59999C14.63 3.36999 14 3.81999 14 4.44999Z",fill:"currentColor"})}),mf=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M16.5 12C16.5 10.23 15.48 8.71 14 7.97V10.18L16.45 12.63C16.48 12.43 16.5 12.22 16.5 12ZM19 12C19 12.94 18.8 13.82 18.46 14.64L19.97 16.15C20.63 14.91 21 13.5 21 12C21 7.72 18.01 4.14 14 3.23V5.29C16.89 6.15 19 8.83 19 12ZM4.27 3L3 4.27L7.73 9H3V15H7L12 20V13.27L16.25 17.52C15.58 18.04 14.83 18.45 14 18.7V20.76C15.38 20.45 16.63 19.81 17.69 18.95L19.73 21L21 19.73L12 10.73L4.27 3ZM12 4L9.91 6.09L12 8.18V4Z",fill:"currentColor"})}),Kw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12.87 15.07L10.33 12.56L10.36 12.53C12.1 10.59 13.34 8.36 14.07 6H17V4H10V2H8V4H1V5.99H12.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8H4.69C5.42 9.63 6.42 11.17 7.67 12.56L2.58 17.58L4 19L9 14L12.11 17.11L12.87 15.07ZM18.5 10H16.5L12 22H14L15.12 19H19.87L21 22H23L18.5 10ZM15.88 17L17.5 12.67L19.12 17H15.88Z",fill:"currentColor"})}),Jw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 19H5V5H12V3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z",fill:"currentColor"})}),Yw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),Qw=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M13 14.5C13 15.3284 12.3284 16 11.5 16C10.6716 16 10 15.3284 10 14.5C10 13.6716 10.6716 13 11.5 13C12.3284 13 13 13.6716 13 14.5Z",fill:"currentColor"}),R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2H14L20 8V20C20 21.1 19.1 22 18 22H5.99C4.89 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2ZM13.16 17.57L15.04 19.45L16.45 18.04L14.57 16.16C15.29 14.83 15.1 13.15 13.98 12.03C12.61 10.66 10.4 10.66 9.03 12.03C7.66 13.4 7.66 15.61 9.03 16.98C10.15 18.1 11.83 18.28 13.16 17.57ZM13 3.5V9H18.5L13 3.5Z",fill:"currentColor"})]}),Xw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),il=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M10 3C14.97 3 19 7.03 19 12H22L18.11 15.89L18.04 16.03L14 12H17C17 8.13 13.87 5 10 5C6.13 5 3 8.13 3 12C3 15.87 6.13 19 10 19V21C5.03 21 1 16.97 1 12C1 7.03 5.03 3 10 3Z",fill:"currentColor"})}),Cg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19.1064 12.9302C19.1459 12.6333 19.1657 12.3266 19.1657 12C19.1657 11.6833 19.1459 11.3667 19.0965 11.0698L21.1053 9.50625C21.2834 9.36771 21.3329 9.10052 21.2241 8.9026L19.3241 5.61719C19.2053 5.39948 18.9579 5.33021 18.7402 5.39948L16.3751 6.34948C15.8803 5.97344 15.3558 5.65677 14.772 5.41927L14.4157 2.90573C14.3761 2.66823 14.1782 2.5 13.9407 2.5H10.1407C9.90323 2.5 9.71521 2.66823 9.67563 2.90573L9.31938 5.41927C8.73552 5.65677 8.20115 5.98333 7.71625 6.34948L5.35115 5.39948C5.13344 5.32031 4.88604 5.39948 4.7673 5.61719L2.87719 8.9026C2.75844 9.11042 2.79802 9.36771 2.99594 9.50625L5.00479 11.0698C4.95532 11.3667 4.91573 11.6932 4.91573 12C4.91573 12.3068 4.93552 12.6333 4.985 12.9302L2.97615 14.4938C2.79802 14.6323 2.74855 14.8995 2.8574 15.0974L4.7574 18.3828C4.87615 18.6005 5.12354 18.6698 5.34125 18.6005L7.70636 17.6505C8.20115 18.0266 8.72563 18.3432 9.30948 18.5807L9.66573 21.0943C9.71521 21.3318 9.90323 21.5 10.1407 21.5H13.9407C14.1782 21.5 14.3761 21.3318 14.4058 21.0943L14.7621 18.5807C15.3459 18.3432 15.8803 18.0266 16.3652 17.6505L18.7303 18.6005C18.948 18.6797 19.1954 18.6005 19.3142 18.3828L21.2142 15.0974C21.3329 14.8797 21.2834 14.6323 21.0954 14.4938L19.1064 12.9302ZM12.0407 15.5625C10.0814 15.5625 8.47823 13.9594 8.47823 12C8.47823 10.0406 10.0814 8.4375 12.0407 8.4375C14.0001 8.4375 15.6032 10.0406 15.6032 12C15.6032 13.9594 14.0001 15.5625 12.0407 15.5625Z",fill:"currentColor"})}),Zw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})}),eC=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08Z",fill:"currentColor"})}),Sg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),Tg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M15 3H6C5.17 3 4.46 3.5 4.16 4.22L1.14 11.27C1.05 11.5 1 11.74 1 12V14C1 15.1 1.9 16 3 16H9.31L8.36 20.57L8.33 20.89C8.33 21.3 8.5 21.68 8.77 21.95L9.83 23L16.42 16.41C16.78 16.05 17 15.55 17 15V5C17 3.9 16.1 3 15 3ZM19 3V15H23V3H19Z",fill:"currentColor"})}),_g=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M1 21H5V9H1V21ZM23 10C23 8.9 22.1 8 21 8H14.69L15.64 3.43L15.67 3.11C15.67 2.7 15.5 2.32 15.23 2.05L14.17 1L7.59 7.59C7.22 7.95 7 8.45 7 9V19C7 20.1 7.9 21 9 21H18C18.83 21 19.54 20.5 19.84 19.78L22.86 12.73C22.95 12.5 23 12.26 23 12V10Z",fill:"currentColor"})}),tC=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M11 7H12.5V12.25L17 14.92L16.25 16.15L11 13V7Z",fill:"currentColor"}),R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47997 6.47 1.99997 11.99 1.99997C17.52 1.99997 22 6.47997 22 12C22 17.52 17.52 22 11.99 22C6.47 22 2 17.52 2 12ZM4 12C4 16.42 7.58 20 12 20C16.42 20 20 16.42 20 12C20 7.57997 16.42 3.99997 12 3.99997C7.58 3.99997 4 7.57997 4 12Z",fill:"currentColor"})]}),xg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M13 3C8.03 3 4 7.03 4 12H1L4.89 15.89L4.96 16.03L9 12H6C6 8.13 9.13 5 13 5C16.87 5 20 8.13 20 12C20 15.87 16.87 19 13 19V21C17.97 21 22 16.97 22 12C22 7.03 17.97 3 13 3Z",fill:"currentColor"})}),nC=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 4V1L8 5L12 9V6C15.31 6 18 8.69 18 12C18 13.01 17.75 13.97 17.3 14.8L18.76 16.26C19.54 15.03 20 13.57 20 12C20 7.58 16.42 4 12 4ZM12 18C8.69 18 6 15.31 6 12C6 10.99 6.25 10.03 6.7 9.2L5.24 7.74C4.46 8.97 4 10.43 4 12C4 16.42 7.58 20 12 20V23L16 19L12 15V18Z",fill:"currentColor"})}),rC=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})}),Eg=n=>R.jsxs("svg",{viewBox:"0 0 16 16",...at(n),fill:"currentColor",children:[R.jsx("path",{d:"M12.6667 7.33326V12.6666H3.33333V3.33326H8.66667V1.99992H3.33333C2.6 1.99992 2 2.59992 2 3.33326V12.6666C2 13.3999 2.6 13.9999 3.33333 13.9999H12.6667C13.4 13.9999 14 13.3999 14 12.6666V7.33326H12.6667Z"}),R.jsx("path",{d:"M14.0183 1.97412L10.0699 1.97412L11.5506 3.45477L7.66668 7.33327L8.65378 8.32037L12.5377 4.44188L14.0183 5.92253V1.97412Z"})]}),Pg=Object.freeze(Object.defineProperty({__proto__:null,Action:Bw,Add:zw,ArrowDown:mg,ArrowForward:Mc,ArrowLeft:uf,ArrowRight:gg,ArrowUp:Hw,AssistantOld:Vw,Attachment:df,BotMessage:vg,Camera:Ww,Check:ff,Close:rl,Copy:$w,Date:yg,Delete:bg,Edit:kg,Error:hf,Escalate:wg,FullScreen:qw,Help:rC,Location:Gw,Mic:Ac,MicOff:pf,OpenInNew:Jw,OpenLink:Eg,Play:Yw,Preview:Qw,Refresh:nC,Reorder:Xw,Restart:il,Search:Zw,Settings:Cg,Share:eC,ThumbDown:Tg,ThumbUp:_g,Time:tC,Touchpoint:nl,Translate:Kw,Undo:xg,Volume:Oc,VolumeOff:mf,Warning:Sg},Symbol.toStringTag,{value:"Module"})),iC=n=>{const{Custom:e}=n;return e!=null?R.jsx(e,{className:n.className,onClick:n.onClick}):R.jsxs("button",{className:st("p-3 w-fit bg-background text-primary-80 rounded-outer","after:content-[''] after:rounded-outer after:absolute after:inset-0 after:pointer-events-none","hover:after:bg-primary-10",n.className),disabled:n.onClick==null,onClick:n.onClick,children:[R.jsx("span",{className:"block flex-none w-8 h-8",children:n.iconUrl==null?R.jsx(nl,{}):R.jsx("img",{src:n.iconUrl,className:"w-8 h-8"})}),n.showLabel??!1?R.jsx("span",{children:n.label}):null]})},Rg="p-3 w-10 h-10 transition-colors rounded-inner relative z-10 overflow-hidden before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent focus:outline-0",Ig="bg-primary-80 text-secondary-80 enabled:hover:before:bg-primary-80 focus:before:bg-primary-80 enabled:active:before:bg-secondary-10 disabled:bg-primary-10 disabled:text-secondary-40",Mg="bg-primary-5 text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-primary-5 disabled:text-primary-20",Ag="bg-accent text-secondary-80 enabled:hover:before:bg-primary-40 focus:before:bg-primary-40 enabled:active:before:bg-secondary-10 disabled:bg-accent-20",Og="bg-secondary-60 backdrop-blur-sm text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",Lg="bg-background backdrop-blur-sm text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",Dg="bg-error-primary text-secondary-80 enabled:hover:before:bg-primary-10",oC=({type:n,Icon:e})=>R.jsx("span",{className:st(Rg,"block",n==="main"?Ig:null,n==="ghost"?Mg:null,n==="activated"?Ag:null,n==="coverup"?Og:null,n==="overlay"?Lg:null,n==="error"?Dg:null),children:R.jsx(e,{})}),rn=({onClick:n,type:e,label:t,className:r,Icon:o})=>{const a=n==null;return R.jsx("button",{onClick:a?void 0:n,disabled:a,"aria-label":t,className:st(Rg,e==="main"?Ig:null,e==="ghost"?Mg:null,e==="activated"?Ag:null,e==="coverup"?Og:null,e==="overlay"?Lg:null,e==="error"?Dg:null,r),children:R.jsx(o,{})})};function sC(n){const e=ve.useRef(n);return e.current=n,ve.useMemo(()=>Object.freeze({get current(){return e.current}}),[])}function aC(n){const e=sC(n);ve.useEffect(()=>()=>{e.current()},[])}function lC(n,e,t,r=0){const o=ve.useRef(),a=ve.useRef(),l=ve.useRef(n),u=ve.useRef(),f=()=>{o.current&&(clearTimeout(o.current),o.current=void 0),a.current&&(clearTimeout(a.current),a.current=void 0)};return aC(f),ve.useEffect(()=>{l.current=n},e),ve.useMemo(()=>{const p=()=>{if(f(),!u.current)return;const w=u.current;u.current=void 0,l.current.apply(w.this,w.args)},g=function(...w){o.current&&clearTimeout(o.current),u.current={args:w,this:this},o.current=setTimeout(p,t),r>0&&!a.current&&(a.current=setTimeout(p,r))};return Object.defineProperties(g,{length:{value:n.length},name:{value:`${n.name||"anonymous"}__debounced__${t}`}}),g},[t,r,...e])}const cC=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function Ng(n,e,t=0){const[r,o]=ve.useState(n);return[r,lC(o,[],e,t)]}const Gs=new Map,jg=n=>{const e=matchMedia(n),t=new Set,r=()=>{for(const o of t)o(e.matches)};return e.addEventListener("change",r,{passive:!0}),{mql:e,dispatchers:t,listener:r}},uC=(n,e)=>{let t=Gs.get(n);t||(t=jg(n),Gs.set(n,t)),t.dispatchers.add(e),e(t.mql.matches)},dC=(n,e)=>{const t=Gs.get(n);if(t){const{mql:r,dispatchers:o,listener:a}=t;o.delete(e),o.size===0&&(Gs.delete(n),r.removeEventListener?r.removeEventListener("change",a):r.removeListener(a))}};function fC(n,e={}){let{initializeWithValue:t=!0}=e;cC||(t=!1);const[r,o]=ve.useState(()=>{if(t){let a=Gs.get(n);return a||(a=jg(n),Gs.set(n,a)),a.mql.matches}});return ve.useEffect(()=>(uC(n,o),()=>{dC(n,o)}),[n]),r}const Ug=n=>{let e;switch(n){case"sm":e="(min-width: 640px)";break;case"md":e="(min-width: 768px)";break;case"lg":e="(min-width: 1024px)";break}return fC(e)},hC=({windowSize:n,renderCollapse:e,errorThemedCloseButton:t,speakerControls:r,collapse:o,toggleSettings:a,isSettingsOpen:l,brandIcon:u,reset:f,enabled:p})=>{const g=n==="half",w=Ug("md"),_=g&&w?"overlay":"ghost";return R.jsxs("div",{className:st("flex p-2 md:p-3 items-center justify-between gap-2",{"md:absolute md:w-fit md:flex-col md:left-0 md:transform md:-translate-x-full md:translate-y-0":n==="half","@3xl/main:absolute @3xl/main:left-0 @3xl/main:right-0 @3xl/main:top-0":n==="full"||n==="embedded"}),children:[u!=null?R.jsx("img",{className:"w-10 h-10 block flex-none",src:u,role:"presentation"}):null,R.jsx(rn,{label:"Reset",type:_,className:u==null?"":"ml-auto",onClick:p?()=>{f()}:void 0,Icon:xg}),a!=null?R.jsx(rn,{className:u!=null?"":"ml-auto",Icon:Cg,label:"Settings",type:l?"activated":_,onClick:p?a:void 0}):null,r!=null?R.jsx(rn,{Icon:r.enabled?Oc:mf,label:"Speakers",type:r.enabled?"activated":_,onClick:()=>{r.setEnabled(T=>!T)}}):null,e?R.jsx(rn,{label:"Collapse",type:t??!1?"error":_,className:st(a==null?"ml-auto":"",g?"md:-order-1":""),onClick:p?()=>{o(new Event("collapse"))}:void 0,Icon:rl}):null]})},Fg=()=>R.jsxs("div",{className:st("grow flex flex-col items-center justify-center gap-6 text-primary-80","fullscreen-error"),children:[R.jsx(nl,{className:"w-20 h-20 text-primary-20"}),R.jsxs("div",{className:"text-center",children:[R.jsx("h3",{className:"text-xl mb-2",children:"Oops!"}),R.jsx("p",{children:"Something went wrong."}),R.jsx("p",{children:"Try again later."})]})]}),Lc=({k:n,className:e,style:t})=>{const o=a=>`${a}s`;return R.jsx("div",{className:st("bg-current animate-ping absolute inset-0",e),style:{animationDelay:o(-1.5*n),animationDuration:o(1.5),...t??{}}})},Ks=({className:n,style:e})=>{const t=st("text-accent-20",n);return R.jsxs(R.Fragment,{children:[R.jsx(Lc,{k:.12,className:t,style:e}),R.jsx(Lc,{k:.24,className:t,style:e}),R.jsx(Lc,{k:.36,className:t,style:e}),R.jsx(Lc,{k:.48,className:t,style:e})]})},pC=30,ol=17,mC=n=>n<.5?2*n*n:1-Math.pow(-2*n+2,2)/2,gf=990,Dc=gf+300,gC=({d:n})=>{const e=Math.PI/2,t=n/ol/2.8,r=e*Math.min(t,1),o=t<1?(n-Math.sin(r))/Math.cos(r)*.5:0,a=-n,l=n,u=n-ol*Math.sin(r),f=ol*Math.cos(r),p=u-o*Math.cos(r),g=f-o*Math.sin(r);return R.jsxs(R.Fragment,{children:[R.jsx("circle",{cx:a,cy:"0",r:ol}),R.jsx("circle",{cx:l,cy:"0",r:ol}),t<.45?R.jsx("path",{d:`
|
|
60
|
+
*/var Rw=function(){if(typeof WebSocket<"u")return WebSocket},Iw=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},Zo={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},lf=function(){function n(e,t,r){var o=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(a){o._debug("open event");var l=o._options.minUptime,u=l===void 0?Zo.minUptime:l;clearTimeout(o._connectTimeout),o._uptimeTimeout=setTimeout(function(){return o._acceptOpen()},u),o._ws.binaryType=o._binaryType,o._messageQueue.forEach(function(f){return o._ws.send(f)}),o._messageQueue=[],o.onopen&&o.onopen(a),o._listeners.open.forEach(function(f){return o._callEventListener(a,f)})},this._handleMessage=function(a){o._debug("message event"),o.onmessage&&o.onmessage(a),o._listeners.message.forEach(function(l){return o._callEventListener(a,l)})},this._handleError=function(a){o._debug("error event",a.message),o._disconnect(void 0,a.message==="TIMEOUT"?"timeout":void 0),o.onerror&&o.onerror(a),o._debug("exec error listeners"),o._listeners.error.forEach(function(l){return o._callEventListener(a,l)}),o._connect()},this._handleClose=function(a){o._debug("close event"),o._clearTimeouts(),o._shouldReconnect&&o._connect(),o.onclose&&o.onclose(a),o._listeners.close.forEach(function(l){return o._callEventListener(a,l)})},this._url=e,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?Zo.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,r,o=this._listeners[e.type];if(o)try{for(var a=Tw(o),l=a.next();!l.done;l=a.next()){var u=l.value;this._callEventListener(e,u)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(function(r){return r!==t}))},n.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._options.debug&&console.log.apply(console,xw(["RWS>"],e))},n.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,r=t===void 0?Zo.reconnectionDelayGrowFactor:t,o=e.minReconnectionDelay,a=o===void 0?Zo.minReconnectionDelay:o,l=e.maxReconnectionDelay,u=l===void 0?Zo.maxReconnectionDelay:l,f=0;return this._retryCount>0&&(f=a*Math.pow(r,this._retryCount-1),f>u&&(f=u)),this._debug("next delay",f),f},n.prototype._wait=function(){var e=this;return new Promise(function(t){setTimeout(t,e._getNextDelay())})},n.prototype._getNextUrl=function(e){if(typeof e=="string")return Promise.resolve(e);if(typeof e=="function"){var t=e();if(typeof t=="string")return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},n.prototype._connect=function(){var e=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var t=this._options,r=t.maxRetries,o=r===void 0?Zo.maxRetries:r,a=t.connectionTimeout,l=a===void 0?Zo.connectionTimeout:a,u=t.WebSocket,f=u===void 0?Rw():u;if(this._retryCount>=o){this._debug("max retries reached",this._retryCount,">=",o);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!Iw(f))throw Error("No valid WebSocket class provided");this._wait().then(function(){return e._getNextUrl(e._url)}).then(function(p){e._closeCalled||(e._debug("connect",{url:p,protocols:e._protocols}),e._ws=e._protocols?new f(p,e._protocols):new f(p),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout(function(){return e._handleTimeout()},l))})}},n.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new Ew(Error("TIMEOUT"),this))},n.prototype._disconnect=function(e,t){if(e===void 0&&(e=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new Pw(e,t,this))}catch{}}},n.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},n.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},n.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},n.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},n.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},n}();let Rc;const Mw=new Uint8Array(16);function Aw(){if(!Rc&&(Rc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Rc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Rc(Mw)}const Cn=[];for(let n=0;n<256;++n)Cn.push((n+256).toString(16).slice(1));function Ow(n,e=0){return Cn[n[e+0]]+Cn[n[e+1]]+Cn[n[e+2]]+Cn[n[e+3]]+"-"+Cn[n[e+4]]+Cn[n[e+5]]+"-"+Cn[n[e+6]]+Cn[n[e+7]]+"-"+Cn[n[e+8]]+Cn[n[e+9]]+"-"+Cn[n[e+10]]+Cn[n[e+11]]+Cn[n[e+12]]+Cn[n[e+13]]+Cn[n[e+14]]+Cn[n[e+15]]}const sg={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ag(n,e,t){if(sg.randomUUID&&!n)return sg.randomUUID();n=n||{};const r=n.random||(n.rng||Aw)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ow(r)}var Lw="1.2.4-alpha.6",Ic={version:Lw};const es=console;var Hn;(function(n){n.Application="bot",n.User="user",n.Failure="failure"})(Hn||(Hn={}));const lg="NLX.Welcome",Dw="We encountered an issue. Please try again soon.",cg=n=>Array.isArray(n)?n:Object.entries(n).map(([e,t])=>({slotId:e,value:t})),ug=n=>({...n,intentId:n.flowId??n.intentId,slots:n.slots!=null?cg(n.slots):n.slots}),dg=n=>n.responses,cf=n=>{try{return JSON.parse(n)}catch{return null}},fg=n=>{var e;return((e=n.match(/(bots\.dev\.studio\.nlx\.ai|bots\.studio\.nlx\.ai|apps\.nlx\.ai|dev\.apps\.nlx\.ai)/g))==null?void 0:e[0])??"apps.nlx.ai"},Nw=n=>{if(ho(n))return n;const e=fg(n),r=new URL(n).pathname.split("/"),o=r[2],a=r[3];return`wss://us-east-1-ws.${e}?deploymentKey=${o}&channelKey=${a}`},hg=n=>{if(!ho(n))return n;const e=fg(n),t=new URL(n),r=new URLSearchParams(t.search),o=r.get("channelKey"),a=r.get("deploymentKey");return`https://${e}/c/${a}/${o}`},ho=n=>n.indexOf("wss://")===0,jw=async({fullApplicationUrl:n,headers:e,body:t,stream:r,eventListeners:o})=>{const a=async l=>{const u=await tl(n,{method:"POST",headers:{...e,"Content-Type":"application/json","nlx-sdk-version":Ic.version},body:JSON.stringify({...l,stream:!0})});if(!u.ok||u.body==null)throw new Error(`HTTP Error: ${u.status}`);const f=u.body.getReader(),p=new TextDecoder;let g="";const w=[];let _={};for(;;){const{done:T,value:B}=await f.read();if(T)break;for(g+=p.decode(B,{stream:!0});;){const A=g.indexOf("{");if(A===-1)break;let q=!1;for(let N=0;N<g.length;N++)if(g[N]==="}"){const ee=g.substring(A,N+1);try{const F=JSON.parse(ee);if(F.type==="interim"){const O=F.text;typeof O=="string"&&o.interimMessage.forEach(U=>{U(O)})}else F.type==="message"?w.push({text:F.text,choices:F.choices??[],messageId:F.messageId,metadata:F.metadata}):F.type==="final_response"&&(_=F.data);g=g.substring(N+1),q=!0;break}catch{}}if(!q)break}}return o.interimMessage.forEach(T=>{T(void 0)}),{..._,messages:[...w,...(_.messages??[]).map(T=>({text:T.text,choices:T.choices??[],messageId:T.messageId,metadata:T.metadata}))]}};if(r)return await a(t);{const l=await tl(n,{method:"POST",headers:{...e??{},Accept:"application/json","Content-Type":"application/json","nlx-sdk-version":Ic.version},body:JSON.stringify(t)});if(!l.ok||l.body==null)throw new Error(`HTTP Error: ${l.status}`);return await l.json()}};function Uw(n){let e,t=[],r=null,o,a=[],l=null;const u=n.applicationUrl??"";/[-|_][a-z]{2,}[-|_][A-Z]{2,}$/.test(u)&&es.warn("Since v1.0.0, the language code is no longer added at the end of the application URL. Please remove the modifier (e.g. '-en-US') from the URL, and specify it in the `languageCode` parameter instead.");const f={voicePlusCommand:[],interimMessage:[]},p=n.conversationId??ag();let g={responses:n.responses??[],languageCode:n.languageCode,userId:n.userId,conversationId:p};const w=()=>{var ne;return`${hg(u)}${((ne=n.experimental)==null?void 0:ne.completeApplicationUrl)===!0?"":`-${g.languageCode}`}`},_=(ne,Pe)=>{g={...g,...ne},ee.forEach(he=>{he(dg(g),Pe)})},T=()=>{const ne={type:Hn.Failure,receivedAt:new Date().getTime(),payload:{text:n.failureMessage??Dw}};_({responses:[...g.responses,ne]},ne)},B=ne=>{if((ne==null?void 0:ne.messages.length)>0){const Pe={type:Hn.Application,receivedAt:new Date().getTime(),payload:{...ne,messages:ne.messages.map(he=>({nodeId:he.nodeId,messageId:he.messageId,text:he.text,choices:he.choices??[]}))}};_({responses:[...g.responses,Pe]},Pe),ne.metadata.hasPendingDataRequest&&(H({poll:!0}),setTimeout(()=>{N({request:{structured:{poll:!0}}})},1500))}else es.warn("Invalid message structure, expected object with field 'messages'."),T()};let A;const q=ne=>{(o==null?void 0:o.readyState)===1?o.send(JSON.stringify(ne)):a=[...a,ne]},N=async ne=>{var he,ce;if(A!=null){A(ne,ke=>{es.warn("Using the second argument in `setRequestOverride` is deprecated. Use `conversationHandler.appendMessageToTranscript` instead.");const we={type:Hn.Application,receivedAt:new Date().getTime(),payload:ke};_({responses:[...g.responses,we]},we)});return}const Pe={userId:g.userId,conversationId:g.conversationId,...ne,languageCode:g.languageCode,channelType:(he=n.experimental)==null?void 0:he.channelType,environment:n.environment};if(ho(u))(e==null?void 0:e.readyState)===1?e.send(JSON.stringify(Pe)):t=[...t,Pe];else try{const ke=await jw({fullApplicationUrl:w(),headers:n.headers??{},stream:((ce=n.experimental)==null?void 0:ce.streamHttp)??!0,eventListeners:f,body:Pe});B(ke)}catch(ke){es.warn(ke),T()}};let ee=[];const F=async()=>{(e==null?void 0:e.readyState)===1&&t[0]!=null&&(await N(t[0]),t=t.slice(1))},O=()=>{(o==null?void 0:o.readyState)===1&&a[0]!=null&&(q(a[0]),a=a.slice(1))},U=()=>{var Pe;te();const ne=new URL(u);((Pe=n.experimental)==null?void 0:Pe.completeApplicationUrl)!==!0&&(ne.searchParams.set("languageCode",g.languageCode),ne.searchParams.set("channelKey",`${ne.searchParams.get("channelKey")??""}-${g.languageCode}`)),ne.searchParams.set("conversationId",g.conversationId),e=new lf(ne.href),r=setInterval(()=>{F()},500),e.onmessage=function(he){typeof(he==null?void 0:he.data)=="string"&&B(cf(he.data))},ne.searchParams.set("voice-plus","true"),o=new lf(ne.href),l=setInterval(()=>{O()},500),o.onmessage=he=>{if(typeof(he==null?void 0:he.data)=="string"){const ce=cf(he.data);ce!=null&&f.voicePlusCommand.forEach(ke=>{ke(ce)})}}},G=()=>{var he;if(X(),n.bidirectional!==!0)return;const ne=new URL(Nw(u));((he=n.experimental)==null?void 0:he.completeApplicationUrl)!==!0&&(ne.searchParams.set("languageCode",g.languageCode),ne.searchParams.set("channelKey",`${ne.searchParams.get("channelKey")??""}-${g.languageCode}`)),ne.searchParams.set("conversationId",g.conversationId),ne.searchParams.set("type","voice-plus");const Pe=n.headers["nlx-api-key"];!ho(u)&&Pe!=null&&ne.searchParams.set("apiKey",Pe),o=new lf(ne.href),l=setInterval(()=>{O()},500),o.onmessage=ce=>{if(typeof(ce==null?void 0:ce.data)=="string"){const ke=cf(ce.data);ke!=null&&f.voicePlusCommand.forEach(we=>{we(ke)})}}},te=()=>{r!=null&&clearInterval(r),e!=null&&(e.onmessage=null,e.close(),e=void 0)},X=()=>{l!=null&&clearInterval(l),o!=null&&(o.onmessage=null,o.close(),o=void 0)};ho(u)&&U(),G();const H=(ne,Pe)=>{const he={type:Hn.User,receivedAt:new Date().getTime(),payload:{type:"structured",...ug(ne),context:Pe}};_({responses:[...g.responses,he]},he)},W=(ne,Pe)=>{H({intentId:ne},Pe),N({context:Pe,request:{structured:{intentId:ne}}})},Y=(ne,Pe)=>{const he={type:Hn.User,receivedAt:new Date().getTime(),payload:{type:"text",text:ne,context:Pe}};_({responses:[...g.responses,he]},he),N({context:Pe,request:{unstructured:{text:ne}}})},de=(ne,Pe,he)=>{let ce=[...g.responses];const ke={type:Hn.User,receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:ne}},we=(he==null?void 0:he.responseIndex)??-1,L=(he==null?void 0:he.messageIndex)??-1;we>-1&&L>-1&&(ce=rg(we,se=>se.type===Hn.Application?{...se,payload:{...se.payload,messages:rg(L,He=>({...He,selectedChoiceId:ne}),se.payload.messages)}}:se,ce)),ce=[...ce,ke],_({responses:ce},ke),N({context:Pe,request:{structured:{nodeId:he==null?void 0:he.nodeId,intentId:he==null?void 0:he.intentId,choiceId:ne}}})},Me=ne=>{ee=ee.filter(Pe=>Pe!==ne)};return{sendText:Y,sendContext:async ne=>{const Pe=await tl(`${w()}/context`,{method:"POST",headers:{...n.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-conversation-id":g.conversationId,"nlx-sdk-version":Ic.version},body:JSON.stringify({languageCode:g.languageCode,conversationId:g.conversationId,userId:g.userId,context:ne})});if(Pe.status>=400)throw new Error(`Responded with ${Pe.status}`)},appendMessageToTranscript:ne=>{const Pe={...ne,receivedAt:ne.receivedAt??new Date().getTime()};_({responses:[...g.responses,Pe]},Pe)},sendStructured:(ne,Pe)=>{H(ne,Pe),N({context:Pe,request:{structured:ug(ne)}})},sendSlots:(ne,Pe)=>{H({slots:ne},Pe),N({context:Pe,request:{structured:{slots:cg(ne)}}})},sendFlow:W,sendIntent:(ne,Pe)=>{es.warn("Calling `sendIntent` is deprecated and will be removed in a future version of the SDK. Use `sendFlow` instead."),W(ne,Pe)},sendWelcomeFlow:ne=>{W(lg,ne)},sendWelcomeIntent:ne=>{es.warn("Calling `sendWelcomeIntent` is deprecated and will be removed in a future version of the SDK. Use `sendWelcomeFlow` instead."),W(lg,ne)},sendChoice:de,submitFeedback:async(ne,Pe)=>{const he=await tl(ne,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({languageCode:g.languageCode,conversationId:g.conversationId,userId:g.userId,...Pe})});if(he.status>=400)throw new Error(`Responded with ${he.status}`)},currentConversationId:()=>g.conversationId,setLanguageCode:ne=>{if(ne===g.languageCode){es.warn("Attempted to set language code to the one already active.");return}ho(u)&&U(),G(),_({languageCode:ne})},currentLanguageCode:()=>g.languageCode,getVoiceCredentials:async(ne,Pe)=>{const he=hg(u),ce=await tl(`${he}-${g.languageCode}/requestToken`,{method:"POST",headers:{...n.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-conversation-id":g.conversationId,"nlx-sdk-version":Ic.version},body:JSON.stringify({languageCode:g.languageCode,conversationId:g.conversationId,userId:g.userId,requestToken:!0,context:ne,autoTriggerWelcomeFlow:(Pe==null?void 0:Pe.autoTriggerWelcomeFlow)??!0})});if(ce.status>=400)throw new Error(`Responded with ${ce.status}`);const ke=await ce.json();if((ke==null?void 0:ke.url)==null)throw new Error("Invalid response");return ke},subscribe:ne=>(ee=[...ee,ne],ne(dg(g)),()=>{Me(ne)}),unsubscribe:Me,unsubscribeAll:()=>{ee=[]},reset:ne=>{_({conversationId:ag(),responses:(ne==null?void 0:ne.clearResponses)===!0?[]:g.responses}),ho(u)&&U(),G()},destroy:()=>{ee=[],ho(u)&&te(),X()},setRequestOverride:ne=>{A=ne},addEventListener:(ne,Pe)=>{f[ne]=[...f[ne],Pe]},removeEventListener:(ne,Pe)=>{f[ne]=f[ne].filter(he=>he!==Pe)},sendVoicePlusContext:ne=>{q({context:ne})}}}const Fw=n=>(n.applicationUrl??"").length>0;function pg(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(e=0;e<o;e++)n[e]&&(t=pg(n[e]))&&(r&&(r+=" "),r+=t)}else for(t in n)n[t]&&(r&&(r+=" "),r+=t);return r}function st(){for(var n,e,t=0,r="",o=arguments.length;t<o;t++)(n=arguments[t])&&(e=pg(n))&&(r&&(r+=" "),r+=e);return r}const at=n=>({width:n.size!=null?`${n.size}px`:"100%",height:n.size!=null?`${n.size}px`:"100%",className:n.className}),Bw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M11 21H10L11 14H7.5C6.92 14 6.93 13.68 7.12 13.34C7.31 13 7.17 13.26 7.19 13.22C8.48 10.94 10.42 7.54 13 3H14L13 10H16.5C16.99 10 17.06 10.33 16.97 10.51L16.9 10.66C12.96 17.55 11 21 11 21Z",fill:"currentColor"})}),nl=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M13.5562 5.34835C12.2796 6.62498 12.4866 8.90179 14.0186 10.4337C14.3377 10.7529 14.5571 11.134 14.6767 11.5383C14.8007 11.9572 14.8177 12.4011 14.7277 12.8268C14.6656 13.1203 14.5526 13.4051 14.3887 13.6672C14.3259 13.7677 14.2557 13.865 14.1778 13.9581C14.1279 14.018 14.0747 14.0761 14.0186 14.1322C13.3341 14.8166 12.3641 15.0421 11.4917 14.8092L11.4728 14.8042C9.38654 14.2543 7.32235 15.2129 6.85652 16.9516C6.5761 17.9979 5.50065 18.6188 4.45431 18.3385C3.40798 18.0581 2.787 16.9826 3.06729 15.9363C3.34209 14.9111 4.38012 14.2942 5.40615 14.5335L5.40666 14.5317C5.42748 14.5378 5.44842 14.5437 5.46962 14.5493C7.21342 15.0166 9.08173 13.699 9.64244 11.6062C9.64857 11.5835 9.65521 11.5608 9.66185 11.5383C9.7815 11.134 10.0009 10.7529 10.32 10.4337L10.332 10.4214C10.339 10.4142 10.346 10.407 10.3533 10.4C11.8549 8.86865 12.0496 6.61566 10.7824 5.34835C10.0163 4.58237 10.0163 3.34047 10.7824 2.57449C11.5483 1.8085 12.7903 1.8085 13.5562 2.57449C14.3066 3.32501 14.3218 4.53237 13.6016 5.30135L13.6029 5.30263C13.5872 5.3177 13.5716 5.33289 13.5562 5.34835Z",fill:"currentColor"}),R.jsx("path",{d:"M19.327 6.83185C20.0311 6.83185 20.6019 7.40264 20.6019 8.10675C20.6019 8.81087 20.0311 9.38166 19.327 9.38166C18.6229 9.38166 18.0521 8.81087 18.0521 8.10675C18.0521 7.40264 18.6229 6.83185 19.327 6.83185Z",fill:"currentColor"}),R.jsx("path",{d:"M21.3237 16.4754C21.3237 15.3741 20.4309 14.4813 19.3297 14.4813C18.2284 14.4813 17.3356 15.3741 17.3356 16.4754C17.3356 17.5767 18.2284 18.4695 19.3297 18.4695C20.4309 18.4695 21.3237 17.5767 21.3237 16.4754Z",fill:"currentColor"}),R.jsx("path",{d:"M12.1025 19.3194C12.8246 19.3194 13.4101 19.9195 13.4101 20.6597C13.4101 21.4 12.8246 22 12.1025 22C11.3804 22 10.7949 21.4 10.7949 20.6597C10.7949 19.9195 11.3804 19.3194 12.1025 19.3194Z",fill:"currentColor"}),R.jsx("path",{d:"M6.28367 8.13944C6.28367 7.41726 5.68363 6.83185 4.94339 6.83185C4.20314 6.83185 3.6031 7.41726 3.6031 8.13944C3.6031 8.86163 4.20314 9.44704 4.94339 9.44704C5.68363 9.44704 6.28367 8.86163 6.28367 8.13944Z",fill:"currentColor"})]}),Vw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M6 13C5.45 13 5 13.45 5 14C5 14.55 5.45 15 6 15C6.55 15 7 14.55 7 14C7 13.45 6.55 13 6 13ZM6 17C5.45 17 5 17.45 5 18C5 18.55 5.45 19 6 19C6.55 19 7 18.55 7 18C7 17.45 6.55 17 6 17ZM6 9C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11C6.55 11 7 10.55 7 10C7 9.45 6.55 9 6 9ZM3 9.5C2.72 9.5 2.5 9.72 2.5 10C2.5 10.28 2.72 10.5 3 10.5C3.28 10.5 3.5 10.28 3.5 10C3.5 9.72 3.28 9.5 3 9.5ZM6 5C5.45 5 5 5.45 5 6C5 6.55 5.45 7 6 7C6.55 7 7 6.55 7 6C7 5.45 6.55 5 6 5ZM21 10.5C21.28 10.5 21.5 10.28 21.5 10C21.5 9.72 21.28 9.5 21 9.5C20.72 9.5 20.5 9.72 20.5 10C20.5 10.28 20.72 10.5 21 10.5ZM14 7C14.55 7 15 6.55 15 6C15 5.45 14.55 5 14 5C13.45 5 13 5.45 13 6C13 6.55 13.45 7 14 7ZM14 3.5C14.28 3.5 14.5 3.28 14.5 3C14.5 2.72 14.28 2.5 14 2.5C13.72 2.5 13.5 2.72 13.5 3C13.5 3.28 13.72 3.5 14 3.5ZM3 13.5C2.72 13.5 2.5 13.72 2.5 14C2.5 14.28 2.72 14.5 3 14.5C3.28 14.5 3.5 14.28 3.5 14C3.5 13.72 3.28 13.5 3 13.5ZM10 20.5C9.72 20.5 9.5 20.72 9.5 21C9.5 21.28 9.72 21.5 10 21.5C10.28 21.5 10.5 21.28 10.5 21C10.5 20.72 10.28 20.5 10 20.5ZM10 3.5C10.28 3.5 10.5 3.28 10.5 3C10.5 2.72 10.28 2.5 10 2.5C9.72 2.5 9.5 2.72 9.5 3C9.5 3.28 9.72 3.5 10 3.5ZM10 7C10.55 7 11 6.55 11 6C11 5.45 10.55 5 10 5C9.45 5 9 5.45 9 6C9 6.55 9.45 7 10 7ZM10 12.5C9.17 12.5 8.5 13.17 8.5 14C8.5 14.83 9.17 15.5 10 15.5C10.83 15.5 11.5 14.83 11.5 14C11.5 13.17 10.83 12.5 10 12.5ZM18 13C17.45 13 17 13.45 17 14C17 14.55 17.45 15 18 15C18.55 15 19 14.55 19 14C19 13.45 18.55 13 18 13ZM18 17C17.45 17 17 17.45 17 18C17 18.55 17.45 19 18 19C18.55 19 19 18.55 19 18C19 17.45 18.55 17 18 17ZM18 9C17.45 9 17 9.45 17 10C17 10.55 17.45 11 18 11C18.55 11 19 10.55 19 10C19 9.45 18.55 9 18 9ZM18 5C17.45 5 17 5.45 17 6C17 6.55 17.45 7 18 7C18.55 7 19 6.55 19 6C19 5.45 18.55 5 18 5ZM21 13.5C20.72 13.5 20.5 13.72 20.5 14C20.5 14.28 20.72 14.5 21 14.5C21.28 14.5 21.5 14.28 21.5 14C21.5 13.72 21.28 13.5 21 13.5ZM14 17C13.45 17 13 17.45 13 18C13 18.55 13.45 19 14 19C14.55 19 15 18.55 15 18C15 17.45 14.55 17 14 17ZM14 20.5C13.72 20.5 13.5 20.72 13.5 21C13.5 21.28 13.72 21.5 14 21.5C14.28 21.5 14.5 21.28 14.5 21C14.5 20.72 14.28 20.5 14 20.5ZM10 8.5C9.17 8.5 8.5 9.17 8.5 10C8.5 10.83 9.17 11.5 10 11.5C10.83 11.5 11.5 10.83 11.5 10C11.5 9.17 10.83 8.5 10 8.5ZM10 17C9.45 17 9 17.45 9 18C9 18.55 9.45 19 10 19C10.55 19 11 18.55 11 18C11 17.45 10.55 17 10 17ZM14 12.5C13.17 12.5 12.5 13.17 12.5 14C12.5 14.83 13.17 15.5 14 15.5C14.83 15.5 15.5 14.83 15.5 14C15.5 13.17 14.83 12.5 14 12.5ZM14 8.5C13.17 8.5 12.5 9.17 12.5 10C12.5 10.83 13.17 11.5 14 11.5C14.83 11.5 15.5 10.83 15.5 10C15.5 9.17 14.83 8.5 14 8.5Z",fill:"currentColor"})}),zw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),mg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 15.41L6 9.40997L7.41 7.99997L12 12.58L16.59 7.99997L18 9.40997L12 15.41Z",fill:"currentColor"})}),uf=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M7.59001 12L13.59 18L15 16.59L10.42 12L15 7.41002L13.59 6.00002L7.59001 12Z",fill:"currentColor"})}),gg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M15 12L9.00005 18L7.59005 16.59L12.17 12L7.59005 7.41002L9.00005 6.00002L15 12Z",fill:"currentColor"})}),Hw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),Mc=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",fill:"currentColor"})}),df=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M18.5 16H7C4.79 16 3 14.21 3 12C3 9.79 4.79 8 7 8H19.5C20.88 8 22 9.12 22 10.5C22 11.88 20.88 13 19.5 13H9C8.45 13 8 12.55 8 12C8 11.45 8.45 11 9 11H18.5V9.5H9C7.62 9.5 6.5 10.62 6.5 12C6.5 13.38 7.62 14.5 9 14.5H19.5C21.71 14.5 23.5 12.71 23.5 10.5C23.5 8.29 21.71 6.5 19.5 6.5H7C3.96 6.5 1.5 8.96 1.5 12C1.5 15.04 3.96 17.5 7 17.5H18.5V16Z",fill:"currentColor"})}),vg=n=>R.jsx("svg",{viewBox:"0 0 12 12",...at(n),children:R.jsx("path",{d:"M10 1H2C1.45 1 1.005 1.45 1.005 2L1 11L3 9H10C10.55 9 11 8.55 11 8V2C11 1.45 10.55 1 10 1ZM6 7H3V6H6V7ZM9 5.5H3V4.5H9V5.5ZM9 4H3V3H9V4Z",fill:"currentColor"})}),Ww=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M12 15.2C13.7673 15.2 15.2 13.7673 15.2 12C15.2 10.2327 13.7673 8.8 12 8.8C10.2327 8.8 8.8 10.2327 8.8 12C8.8 13.7673 10.2327 15.2 12 15.2Z",fill:"currentColor"}),R.jsx("path",{d:"M9 2L7.17 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.83L15 2H9ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17Z",fill:"currentColor"})]}),ff=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M8.99991 16.17L4.82991 12L3.40991 13.41L8.99991 19L20.9999 7L19.5899 5.59L8.99991 16.17Z",fill:"currentColor"})}),rl=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})}),$w=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5ZM19 21H8V7H19V21Z",fill:"currentColor"})}),yg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V9H19V20Z",fill:"currentColor"})}),bg=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 21C6.9 21 6 20.1 6 19V7H18V19C18 20.1 17.1 21 16 21H8ZM9.33337 9H8V19H9.33337V9ZM11.3334 9V19H12.6666V9H11.3334ZM16 19H14.6666V9H16V19Z",fill:"currentColor"}),R.jsx("path",{d:"M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4Z",fill:"currentColor"})]}),kg=n=>R.jsx("svg",{viewBox:"0 0 16 16",...at(n),children:R.jsx("path",{d:"M2 11.5002V14.0002H4.5L11.8733 6.62687L9.37333 4.12687L2 11.5002ZM13.8067 4.69354C14.0667 4.43354 14.0667 4.01354 13.8067 3.75354L12.2467 2.19354C11.9867 1.93354 11.5667 1.93354 11.3067 2.19354L10.0867 3.41354L12.5867 5.91354L13.8067 4.69354V4.69354Z",fill:"currentColor"})}),wg=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z",fill:"currentColor"}),R.jsx("path",{d:"M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z",fill:"currentColor"}),R.jsx("path",{d:"M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z",fill:"currentColor"}),R.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6C9.02 6 5.76 8.51 6.02 12.45C8.49 11.44 10.35 9.24 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z",fill:"currentColor"})]}),hf=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})}),qw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),Ac=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 15C13.66 15 14.99 13.66 14.99 12L15 6C15 4.34 13.66 3 12 3C10.34 3 9 4.34 9 6V12C9 13.66 10.34 15 12 15ZM17.3 12C17.3 15 14.76 17.1 12 17.1C9.24 17.1 6.7 15 6.7 12H5C5 15.42 7.72 18.23 11 18.72V22H13V18.72C16.28 18.24 19 15.42 19 12H17.3Z",fill:"currentColor"})}),pf=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 11H17.3C17.3 11.74 17.14 12.43 16.87 13.05L18.1 14.28C18.66 13.3 19 12.19 19 11ZM14.98 11.17C14.98 11.11 15 11.06 15 11V5C15 3.34 13.66 2 12 2C10.34 2 9 3.34 9 5V5.18L14.98 11.17ZM4.27 3L3 4.27L9.01 10.28V11C9.01 12.66 10.34 14 12 14C12.22 14 12.44 13.97 12.65 13.92L14.31 15.58C13.6 15.91 12.81 16.1 12 16.1C9.24 16.1 6.7 14 6.7 11H5C5 14.41 7.72 17.23 11 17.72V21H13V17.72C13.91 17.59 14.77 17.27 15.54 16.82L19.73 21L21 19.73L4.27 3Z",fill:"currentColor"})}),Gw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z",fill:"currentColor"})}),Oc=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M3 9.99999V14C3 14.55 3.45 15 4 15H7L10.29 18.29C10.92 18.92 12 18.47 12 17.58V6.40999C12 5.51999 10.92 5.06999 10.29 5.69999L7 8.99999H4C3.45 8.99999 3 9.44999 3 9.99999ZM16.5 12C16.5 10.23 15.48 8.70999 14 7.96999V16.02C15.48 15.29 16.5 13.77 16.5 12ZM14 4.44999V4.64999C14 5.02999 14.25 5.35999 14.6 5.49999C17.18 6.52999 19 9.05999 19 12C19 14.94 17.18 17.47 14.6 18.5C14.24 18.64 14 18.97 14 19.35V19.55C14 20.18 14.63 20.62 15.21 20.4C18.6 19.11 21 15.84 21 12C21 8.15999 18.6 4.88999 15.21 3.59999C14.63 3.36999 14 3.81999 14 4.44999Z",fill:"currentColor"})}),mf=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M16.5 12C16.5 10.23 15.48 8.71 14 7.97V10.18L16.45 12.63C16.48 12.43 16.5 12.22 16.5 12ZM19 12C19 12.94 18.8 13.82 18.46 14.64L19.97 16.15C20.63 14.91 21 13.5 21 12C21 7.72 18.01 4.14 14 3.23V5.29C16.89 6.15 19 8.83 19 12ZM4.27 3L3 4.27L7.73 9H3V15H7L12 20V13.27L16.25 17.52C15.58 18.04 14.83 18.45 14 18.7V20.76C15.38 20.45 16.63 19.81 17.69 18.95L19.73 21L21 19.73L12 10.73L4.27 3ZM12 4L9.91 6.09L12 8.18V4Z",fill:"currentColor"})}),Kw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12.87 15.07L10.33 12.56L10.36 12.53C12.1 10.59 13.34 8.36 14.07 6H17V4H10V2H8V4H1V5.99H12.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8H4.69C5.42 9.63 6.42 11.17 7.67 12.56L2.58 17.58L4 19L9 14L12.11 17.11L12.87 15.07ZM18.5 10H16.5L12 22H14L15.12 19H19.87L21 22H23L18.5 10ZM15.88 17L17.5 12.67L19.12 17H15.88Z",fill:"currentColor"})}),Jw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19 19H5V5H12V3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z",fill:"currentColor"})}),Yw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),Qw=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M13 14.5C13 15.3284 12.3284 16 11.5 16C10.6716 16 10 15.3284 10 14.5C10 13.6716 10.6716 13 11.5 13C12.3284 13 13 13.6716 13 14.5Z",fill:"currentColor"}),R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2H14L20 8V20C20 21.1 19.1 22 18 22H5.99C4.89 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2ZM13.16 17.57L15.04 19.45L16.45 18.04L14.57 16.16C15.29 14.83 15.1 13.15 13.98 12.03C12.61 10.66 10.4 10.66 9.03 12.03C7.66 13.4 7.66 15.61 9.03 16.98C10.15 18.1 11.83 18.28 13.16 17.57ZM13 3.5V9H18.5L13 3.5Z",fill:"currentColor"})]}),Xw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),il=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M10 3C14.97 3 19 7.03 19 12H22L18.11 15.89L18.04 16.03L14 12H17C17 8.13 13.87 5 10 5C6.13 5 3 8.13 3 12C3 15.87 6.13 19 10 19V21C5.03 21 1 16.97 1 12C1 7.03 5.03 3 10 3Z",fill:"currentColor"})}),Cg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M19.1064 12.9302C19.1459 12.6333 19.1657 12.3266 19.1657 12C19.1657 11.6833 19.1459 11.3667 19.0965 11.0698L21.1053 9.50625C21.2834 9.36771 21.3329 9.10052 21.2241 8.9026L19.3241 5.61719C19.2053 5.39948 18.9579 5.33021 18.7402 5.39948L16.3751 6.34948C15.8803 5.97344 15.3558 5.65677 14.772 5.41927L14.4157 2.90573C14.3761 2.66823 14.1782 2.5 13.9407 2.5H10.1407C9.90323 2.5 9.71521 2.66823 9.67563 2.90573L9.31938 5.41927C8.73552 5.65677 8.20115 5.98333 7.71625 6.34948L5.35115 5.39948C5.13344 5.32031 4.88604 5.39948 4.7673 5.61719L2.87719 8.9026C2.75844 9.11042 2.79802 9.36771 2.99594 9.50625L5.00479 11.0698C4.95532 11.3667 4.91573 11.6932 4.91573 12C4.91573 12.3068 4.93552 12.6333 4.985 12.9302L2.97615 14.4938C2.79802 14.6323 2.74855 14.8995 2.8574 15.0974L4.7574 18.3828C4.87615 18.6005 5.12354 18.6698 5.34125 18.6005L7.70636 17.6505C8.20115 18.0266 8.72563 18.3432 9.30948 18.5807L9.66573 21.0943C9.71521 21.3318 9.90323 21.5 10.1407 21.5H13.9407C14.1782 21.5 14.3761 21.3318 14.4058 21.0943L14.7621 18.5807C15.3459 18.3432 15.8803 18.0266 16.3652 17.6505L18.7303 18.6005C18.948 18.6797 19.1954 18.6005 19.3142 18.3828L21.2142 15.0974C21.3329 14.8797 21.2834 14.6323 21.0954 14.4938L19.1064 12.9302ZM12.0407 15.5625C10.0814 15.5625 8.47823 13.9594 8.47823 12C8.47823 10.0406 10.0814 8.4375 12.0407 8.4375C14.0001 8.4375 15.6032 10.0406 15.6032 12C15.6032 13.9594 14.0001 15.5625 12.0407 15.5625Z",fill:"currentColor"})}),Zw=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})}),eC=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08Z",fill:"currentColor"})}),Sg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),Tg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M15 3H6C5.17 3 4.46 3.5 4.16 4.22L1.14 11.27C1.05 11.5 1 11.74 1 12V14C1 15.1 1.9 16 3 16H9.31L8.36 20.57L8.33 20.89C8.33 21.3 8.5 21.68 8.77 21.95L9.83 23L16.42 16.41C16.78 16.05 17 15.55 17 15V5C17 3.9 16.1 3 15 3ZM19 3V15H23V3H19Z",fill:"currentColor"})}),_g=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M1 21H5V9H1V21ZM23 10C23 8.9 22.1 8 21 8H14.69L15.64 3.43L15.67 3.11C15.67 2.7 15.5 2.32 15.23 2.05L14.17 1L7.59 7.59C7.22 7.95 7 8.45 7 9V19C7 20.1 7.9 21 9 21H18C18.83 21 19.54 20.5 19.84 19.78L22.86 12.73C22.95 12.5 23 12.26 23 12V10Z",fill:"currentColor"})}),tC=n=>R.jsxs("svg",{viewBox:"0 0 24 24",...at(n),children:[R.jsx("path",{d:"M11 7H12.5V12.25L17 14.92L16.25 16.15L11 13V7Z",fill:"currentColor"}),R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47997 6.47 1.99997 11.99 1.99997C17.52 1.99997 22 6.47997 22 12C22 17.52 17.52 22 11.99 22C6.47 22 2 17.52 2 12ZM4 12C4 16.42 7.58 20 12 20C16.42 20 20 16.42 20 12C20 7.57997 16.42 3.99997 12 3.99997C7.58 3.99997 4 7.57997 4 12Z",fill:"currentColor"})]}),xg=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M13 3C8.03 3 4 7.03 4 12H1L4.89 15.89L4.96 16.03L9 12H6C6 8.13 9.13 5 13 5C16.87 5 20 8.13 20 12C20 15.87 16.87 19 13 19V21C17.97 21 22 16.97 22 12C22 7.03 17.97 3 13 3Z",fill:"currentColor"})}),nC=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M12 4V1L8 5L12 9V6C15.31 6 18 8.69 18 12C18 13.01 17.75 13.97 17.3 14.8L18.76 16.26C19.54 15.03 20 13.57 20 12C20 7.58 16.42 4 12 4ZM12 18C8.69 18 6 15.31 6 12C6 10.99 6.25 10.03 6.7 9.2L5.24 7.74C4.46 8.97 4 10.43 4 12C4 16.42 7.58 20 12 20V23L16 19L12 15V18Z",fill:"currentColor"})}),rC=n=>R.jsx("svg",{viewBox:"0 0 24 24",...at(n),children:R.jsx("path",{d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})}),Eg=n=>R.jsxs("svg",{viewBox:"0 0 16 16",...at(n),fill:"currentColor",children:[R.jsx("path",{d:"M12.6667 7.33326V12.6666H3.33333V3.33326H8.66667V1.99992H3.33333C2.6 1.99992 2 2.59992 2 3.33326V12.6666C2 13.3999 2.6 13.9999 3.33333 13.9999H12.6667C13.4 13.9999 14 13.3999 14 12.6666V7.33326H12.6667Z"}),R.jsx("path",{d:"M14.0183 1.97412L10.0699 1.97412L11.5506 3.45477L7.66668 7.33327L8.65378 8.32037L12.5377 4.44188L14.0183 5.92253V1.97412Z"})]}),Pg=Object.freeze(Object.defineProperty({__proto__:null,Action:Bw,Add:zw,ArrowDown:mg,ArrowForward:Mc,ArrowLeft:uf,ArrowRight:gg,ArrowUp:Hw,AssistantOld:Vw,Attachment:df,BotMessage:vg,Camera:Ww,Check:ff,Close:rl,Copy:$w,Date:yg,Delete:bg,Edit:kg,Error:hf,Escalate:wg,FullScreen:qw,Help:rC,Location:Gw,Mic:Ac,MicOff:pf,OpenInNew:Jw,OpenLink:Eg,Play:Yw,Preview:Qw,Refresh:nC,Reorder:Xw,Restart:il,Search:Zw,Settings:Cg,Share:eC,ThumbDown:Tg,ThumbUp:_g,Time:tC,Touchpoint:nl,Translate:Kw,Undo:xg,Volume:Oc,VolumeOff:mf,Warning:Sg},Symbol.toStringTag,{value:"Module"})),iC=n=>{const{Custom:e}=n;return e!=null?R.jsx(e,{className:n.className,onClick:n.onClick}):R.jsxs("button",{className:st("p-3 w-fit bg-background text-primary-80 rounded-outer","after:content-[''] after:rounded-outer after:absolute after:inset-0 after:pointer-events-none","hover:after:bg-primary-10",n.className),disabled:n.onClick==null,onClick:n.onClick,children:[R.jsx("span",{className:"block flex-none w-8 h-8",children:n.iconUrl==null?R.jsx(nl,{}):R.jsx("img",{src:n.iconUrl,className:"w-8 h-8"})}),n.showLabel??!1?R.jsx("span",{children:n.label}):null]})},Rg="p-3 w-10 h-10 transition-colors rounded-inner relative z-10 overflow-hidden before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent focus:outline-0",Ig="bg-primary-80 text-secondary-80 enabled:hover:before:bg-primary-80 focus:before:bg-primary-80 enabled:active:before:bg-secondary-10 disabled:bg-primary-10 disabled:text-secondary-40",Mg="bg-primary-5 text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-primary-5 disabled:text-primary-20",Ag="bg-accent text-secondary-80 enabled:hover:before:bg-primary-40 focus:before:bg-primary-40 enabled:active:before:bg-secondary-10 disabled:bg-accent-20",Og="bg-secondary-60 backdrop-blur-sm text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",Lg="bg-background backdrop-blur-sm text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",Dg="bg-error-primary text-secondary-80 enabled:hover:before:bg-primary-10",oC=({type:n,Icon:e})=>R.jsx("span",{className:st(Rg,"block",n==="main"?Ig:null,n==="ghost"?Mg:null,n==="activated"?Ag:null,n==="coverup"?Og:null,n==="overlay"?Lg:null,n==="error"?Dg:null),children:R.jsx(e,{})}),rn=({onClick:n,type:e,label:t,className:r,Icon:o})=>{const a=n==null;return R.jsx("button",{onClick:a?void 0:n,disabled:a,"aria-label":t,className:st(Rg,e==="main"?Ig:null,e==="ghost"?Mg:null,e==="activated"?Ag:null,e==="coverup"?Og:null,e==="overlay"?Lg:null,e==="error"?Dg:null,r),children:R.jsx(o,{})})};function sC(n){const e=ve.useRef(n);return e.current=n,ve.useMemo(()=>Object.freeze({get current(){return e.current}}),[])}function aC(n){const e=sC(n);ve.useEffect(()=>()=>{e.current()},[])}function lC(n,e,t,r=0){const o=ve.useRef(),a=ve.useRef(),l=ve.useRef(n),u=ve.useRef(),f=()=>{o.current&&(clearTimeout(o.current),o.current=void 0),a.current&&(clearTimeout(a.current),a.current=void 0)};return aC(f),ve.useEffect(()=>{l.current=n},e),ve.useMemo(()=>{const p=()=>{if(f(),!u.current)return;const w=u.current;u.current=void 0,l.current.apply(w.this,w.args)},g=function(...w){o.current&&clearTimeout(o.current),u.current={args:w,this:this},o.current=setTimeout(p,t),r>0&&!a.current&&(a.current=setTimeout(p,r))};return Object.defineProperties(g,{length:{value:n.length},name:{value:`${n.name||"anonymous"}__debounced__${t}`}}),g},[t,r,...e])}const cC=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function Ng(n,e,t=0){const[r,o]=ve.useState(n);return[r,lC(o,[],e,t)]}const Gs=new Map,jg=n=>{const e=matchMedia(n),t=new Set,r=()=>{for(const o of t)o(e.matches)};return e.addEventListener("change",r,{passive:!0}),{mql:e,dispatchers:t,listener:r}},uC=(n,e)=>{let t=Gs.get(n);t||(t=jg(n),Gs.set(n,t)),t.dispatchers.add(e),e(t.mql.matches)},dC=(n,e)=>{const t=Gs.get(n);if(t){const{mql:r,dispatchers:o,listener:a}=t;o.delete(e),o.size===0&&(Gs.delete(n),r.removeEventListener?r.removeEventListener("change",a):r.removeListener(a))}};function fC(n,e={}){let{initializeWithValue:t=!0}=e;cC||(t=!1);const[r,o]=ve.useState(()=>{if(t){let a=Gs.get(n);return a||(a=jg(n),Gs.set(n,a)),a.mql.matches}});return ve.useEffect(()=>(uC(n,o),()=>{dC(n,o)}),[n]),r}const Ug=n=>{let e;switch(n){case"sm":e="(min-width: 640px)";break;case"md":e="(min-width: 768px)";break;case"lg":e="(min-width: 1024px)";break}return fC(e)},hC=({windowSize:n,renderCollapse:e,errorThemedCloseButton:t,speakerControls:r,collapse:o,toggleSettings:a,isSettingsOpen:l,brandIcon:u,reset:f,enabled:p})=>{const g=n==="half",w=Ug("md"),_=g&&w?"overlay":"ghost";return R.jsxs("div",{className:st("flex p-2 md:p-3 items-center justify-between gap-2",{"md:absolute md:w-fit md:flex-col md:left-0 md:transform md:-translate-x-full md:translate-y-0":n==="half","@3xl/main:absolute @3xl/main:left-0 @3xl/main:right-0 @3xl/main:top-0":n==="full"||n==="embedded"}),children:[u!=null?R.jsx("img",{className:"w-10 h-10 block flex-none",src:u,role:"presentation"}):null,R.jsx(rn,{label:"Reset",type:_,className:u==null?"":"ml-auto",onClick:p?()=>{f()}:void 0,Icon:xg}),a!=null?R.jsx(rn,{className:u!=null?"":"ml-auto",Icon:Cg,label:"Settings",type:l?"activated":_,onClick:p?a:void 0}):null,r!=null?R.jsx(rn,{Icon:r.enabled?Oc:mf,label:"Speakers",type:r.enabled?"activated":_,onClick:()=>{r.setEnabled(T=>!T)}}):null,e?R.jsx(rn,{label:"Collapse",type:t??!1?"error":_,className:st(a==null?"ml-auto":"",g?"md:-order-1":""),onClick:p?()=>{o(new Event("collapse"))}:void 0,Icon:rl}):null]})},Fg=()=>R.jsxs("div",{className:st("grow flex flex-col items-center justify-center gap-6 text-primary-80","fullscreen-error"),children:[R.jsx(nl,{className:"w-20 h-20 text-primary-20"}),R.jsxs("div",{className:"text-center",children:[R.jsx("h3",{className:"text-xl mb-2",children:"Oops!"}),R.jsx("p",{children:"Something went wrong."}),R.jsx("p",{children:"Try again later."})]})]}),Lc=({k:n,className:e,style:t})=>{const o=a=>`${a}s`;return R.jsx("div",{className:st("bg-current animate-ping absolute inset-0",e),style:{animationDelay:o(-1.5*n),animationDuration:o(1.5),...t??{}}})},Ks=({className:n,style:e})=>{const t=st("text-accent-20",n);return R.jsxs(R.Fragment,{children:[R.jsx(Lc,{k:.12,className:t,style:e}),R.jsx(Lc,{k:.24,className:t,style:e}),R.jsx(Lc,{k:.36,className:t,style:e}),R.jsx(Lc,{k:.48,className:t,style:e})]})},pC=30,ol=17,mC=n=>n<.5?2*n*n:1-Math.pow(-2*n+2,2)/2,gf=990,Dc=gf+300,gC=({d:n})=>{const e=Math.PI/2,t=n/ol/2.8,r=e*Math.min(t,1),o=t<1?(n-Math.sin(r))/Math.cos(r)*.5:0,a=-n,l=n,u=n-ol*Math.sin(r),f=ol*Math.cos(r),p=u-o*Math.cos(r),g=f-o*Math.sin(r);return R.jsxs(R.Fragment,{children:[R.jsx("circle",{cx:a,cy:"0",r:ol}),R.jsx("circle",{cx:l,cy:"0",r:ol}),t<.45?R.jsx("path",{d:`
|
|
61
61
|
M${-u},${f}
|
|
62
62
|
C${-p},${g} ${p},${g} ${u},${f} L${u},${-f}
|
|
63
63
|
C${p},${-g} ${-p},${-g} ${-u},${-f} Z
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.2.4-alpha.
|
|
3
|
+
"version": "1.2.4-alpha.6",
|
|
4
4
|
"description": "Web UI for Touchpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"update-readme": "npm run update-readme:docs && npm run update-readme:merge"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@nlxai/core": "^1.2.4-alpha.
|
|
30
|
+
"@nlxai/core": "^1.2.4-alpha.6",
|
|
31
31
|
"@react-hookz/web": "^25.0.1",
|
|
32
32
|
"@react-input/mask": "^2.0.4",
|
|
33
33
|
"@rive-app/webgl2": "^2.31.5",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "20660ce31fc234d6e8bb95daaa1b2a19189d1ac3"
|
|
70
70
|
}
|