@nlxai/touchpoint-ui 1.1.8-alpha.0 → 1.1.8-alpha.1
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/components/defaultModalities/shared.d.ts +5 -0
- package/lib/index.js +14 -12
- package/lib/index.umd.js +3 -3
- package/package.json +2 -2
|
@@ -3,10 +3,15 @@ export interface SaveAs {
|
|
|
3
3
|
type: "slot" | "context";
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
6
|
+
export interface CardRow {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
6
10
|
export interface CardData {
|
|
7
11
|
id?: string;
|
|
8
12
|
thumbnail?: string;
|
|
9
13
|
thumbnailAlt?: string;
|
|
14
|
+
rows?: CardRow[];
|
|
10
15
|
label?: string;
|
|
11
16
|
value?: string;
|
|
12
17
|
}
|
package/lib/index.js
CHANGED
|
@@ -6049,7 +6049,7 @@ var iS = /* @__PURE__ */ cf(/* @__PURE__ */ p0([], rS, function(t, e) {
|
|
|
6049
6049
|
o = e[i], s = t(o), n.add(s) && r.push(o), i += 1;
|
|
6050
6050
|
return r;
|
|
6051
6051
|
})), sS = /* @__PURE__ */ iS(XC);
|
|
6052
|
-
const oS = "1.1.8-alpha.
|
|
6052
|
+
const oS = "1.1.8-alpha.1", aS = {
|
|
6053
6053
|
version: oS
|
|
6054
6054
|
};
|
|
6055
6055
|
var Be = typeof globalThis < "u" && globalThis || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
@@ -6894,7 +6894,7 @@ var MS = "@nlxai/core", NS = "1.1.8-alpha.0", DS = "Low-level SDK for building N
|
|
|
6894
6894
|
uuid: "^9.0.1"
|
|
6895
6895
|
}, GS = {
|
|
6896
6896
|
access: "public"
|
|
6897
|
-
}, KS = "
|
|
6897
|
+
}, KS = "c701b502f0398e9956a8b35b711a45f264fa7603", ic = {
|
|
6898
6898
|
name: MS,
|
|
6899
6899
|
version: NS,
|
|
6900
6900
|
description: DS,
|
|
@@ -27967,13 +27967,14 @@ const Z_ = {
|
|
|
27967
27967
|
return /* @__PURE__ */ y.jsx(fb, { onSubmit: n });
|
|
27968
27968
|
}, J_ = ({ data: t }) => /* @__PURE__ */ y.jsxs(Hf, { children: [
|
|
27969
27969
|
t.thumbnail != null ? /* @__PURE__ */ y.jsx($f, { src: t.thumbnail, alt: t.thumbnailAlt }) : null,
|
|
27970
|
-
t.
|
|
27970
|
+
t.rows != null ? t.rows.map((e, n) => /* @__PURE__ */ y.jsx(
|
|
27971
27971
|
qf,
|
|
27972
27972
|
{
|
|
27973
|
-
left: /* @__PURE__ */ y.jsx(Zs, { faded: !0, children:
|
|
27974
|
-
right: /* @__PURE__ */ y.jsx(Zs, { children:
|
|
27975
|
-
}
|
|
27976
|
-
|
|
27973
|
+
left: /* @__PURE__ */ y.jsx(Zs, { faded: !0, children: e.label }),
|
|
27974
|
+
right: /* @__PURE__ */ y.jsx(Zs, { children: e.value })
|
|
27975
|
+
},
|
|
27976
|
+
n
|
|
27977
|
+
)) : null
|
|
27977
27978
|
] }), Y_ = ({ data: t, conversationHandler: e }) => {
|
|
27978
27979
|
const [n, r] = A.useState(null), i = A.useMemo(
|
|
27979
27980
|
() => hb(t.$saveAs, e),
|
|
@@ -27990,13 +27991,14 @@ const Z_ = {
|
|
|
27990
27991
|
} : void 0,
|
|
27991
27992
|
children: [
|
|
27992
27993
|
o.thumbnail != null ? /* @__PURE__ */ y.jsx($f, { src: o.thumbnail, alt: o.thumbnailAlt }) : null,
|
|
27993
|
-
o.
|
|
27994
|
+
o.rows != null ? o.rows.map((l, c) => /* @__PURE__ */ y.jsx(
|
|
27994
27995
|
qf,
|
|
27995
27996
|
{
|
|
27996
|
-
left: /* @__PURE__ */ y.jsx(Zs, { faded: !0, children:
|
|
27997
|
-
right: /* @__PURE__ */ y.jsx(Zs, { children:
|
|
27998
|
-
}
|
|
27999
|
-
|
|
27997
|
+
left: /* @__PURE__ */ y.jsx(Zs, { faded: !0, children: l.label }),
|
|
27998
|
+
right: /* @__PURE__ */ y.jsx(Zs, { children: l.value })
|
|
27999
|
+
},
|
|
28000
|
+
c
|
|
28001
|
+
)) : null
|
|
28000
28002
|
]
|
|
28001
28003
|
},
|
|
28002
28004
|
o.id ?? a
|
package/lib/index.umd.js
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
`).replace(iC,"")}function Uo(t,e,n){if(e=Dp(e),Dp(t)!==e&&n)throw Error(N(425))}function Fo(){}var Nc=null,Dc=null;function Ac(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var jc=typeof setTimeout=="function"?setTimeout:void 0,sC=typeof clearTimeout=="function"?clearTimeout:void 0,Ap=typeof Promise=="function"?Promise:void 0,oC=typeof queueMicrotask=="function"?queueMicrotask:typeof Ap<"u"?function(t){return Ap.resolve(null).then(t).catch(aC)}:jc;function aC(t){setTimeout(function(){throw t})}function Uc(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),os(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);os(e)}function Fn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function jp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var ei=Math.random().toString(36).slice(2),Yt="__reactFiber$"+ei,vs="__reactProps$"+ei,hn="__reactContainer$"+ei,Fc="__reactEvents$"+ei,lC="__reactListeners$"+ei,cC="__reactHandles$"+ei;function pr(t){var e=t[Yt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[hn]||n[Yt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=jp(t);t!==null;){if(n=t[Yt])return n;t=jp(t)}return e}t=n,n=t.parentNode}return null}function ys(t){return t=t[Yt]||t[hn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ti(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(N(33))}function Bo(t){return t[vs]||null}var Bc=[],ni=-1;function Bn(t){return{current:t}}function ge(t){0>ni||(t.current=Bc[ni],Bc[ni]=null,ni--)}function pe(t,e){ni++,Bc[ni]=t.current,t.current=e}var Vn={},Ke=Bn(Vn),at=Bn(!1),mr=Vn;function ri(t,e){var n=t.type.contextTypes;if(!n)return Vn;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function lt(t){return t=t.childContextTypes,t!=null}function Vo(){ge(at),ge(Ke)}function Up(t,e,n){if(Ke.current!==Vn)throw Error(N(168));pe(Ke,e),pe(at,n)}function Fp(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(N(108,Gb(t)||"Unknown",i));return Ce({},n,r)}function zo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Vn,mr=Ke.current,pe(Ke,t),pe(at,at.current),!0}function Bp(t,e,n){var r=t.stateNode;if(!r)throw Error(N(169));n?(t=Fp(t,e,mr),r.__reactInternalMemoizedMergedChildContext=t,ge(at),ge(Ke),pe(Ke,t)):ge(at),pe(at,n)}var pn=null,Ho=!1,Vc=!1;function Vp(t){pn===null?pn=[t]:pn.push(t)}function uC(t){Ho=!0,Vp(t)}function zn(){if(!Vc&&pn!==null){Vc=!0;var t=0,e=ae;try{var n=pn;for(ae=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}pn=null,Ho=!1}catch(i){throw pn!==null&&(pn=pn.slice(t+1)),Hh(cc,zn),i}finally{ae=e,Vc=!1}}return null}var ii=[],si=0,$o=null,qo=0,xt=[],Et=0,gr=null,mn=1,gn="";function vr(t,e){ii[si++]=qo,ii[si++]=$o,$o=t,qo=e}function zp(t,e,n){xt[Et++]=mn,xt[Et++]=gn,xt[Et++]=gr,gr=t;var r=mn;t=gn;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var s=32-Nt(e)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,mn=1<<32-Nt(e)+i|n<<i|r,gn=s+t}else mn=1<<s|n<<i|r,gn=t}function zc(t){t.return!==null&&(vr(t,1),zp(t,1,0))}function Hc(t){for(;t===$o;)$o=ii[--si],ii[si]=null,qo=ii[--si],ii[si]=null;for(;t===gr;)gr=xt[--Et],xt[Et]=null,gn=xt[--Et],xt[Et]=null,mn=xt[--Et],xt[Et]=null}var bt=null,kt=null,ve=!1,At=null;function Hp(t,e){var n=It(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function $p(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,bt=t,kt=Fn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,bt=t,kt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=gr!==null?{id:mn,overflow:gn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=It(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,bt=t,kt=null,!0):!1;default:return!1}}function $c(t){return(t.mode&1)!==0&&(t.flags&128)===0}function qc(t){if(ve){var e=kt;if(e){var n=e;if(!$p(t,e)){if($c(t))throw Error(N(418));e=Fn(n.nextSibling);var r=bt;e&&$p(t,e)?Hp(r,n):(t.flags=t.flags&-4097|2,ve=!1,bt=t)}}else{if($c(t))throw Error(N(418));t.flags=t.flags&-4097|2,ve=!1,bt=t}}}function qp(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;bt=t}function Wo(t){if(t!==bt)return!1;if(!ve)return qp(t),ve=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Ac(t.type,t.memoizedProps)),e&&(e=kt)){if($c(t))throw Wp(),Error(N(418));for(;e;)Hp(t,e),e=Fn(e.nextSibling)}if(qp(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){kt=Fn(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}kt=null}}else kt=bt?Fn(t.stateNode.nextSibling):null;return!0}function Wp(){for(var t=kt;t;)t=Fn(t.nextSibling)}function oi(){kt=bt=null,ve=!1}function Wc(t){At===null?At=[t]:At.push(t)}var dC=fn.ReactCurrentBatchConfig;function bs(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,t));var i=r,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,t))}return t}function Go(t,e){throw t=Object.prototype.toString.call(e),Error(N(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Gp(t){var e=t._init;return e(t._payload)}function Kp(t){function e(m,b){if(t){var p=m.deletions;p===null?(m.deletions=[b],m.flags|=16):p.push(b)}}function n(m,b){if(!t)return null;for(;b!==null;)e(m,b),b=b.sibling;return null}function r(m,b){for(m=new Map;b!==null;)b.key!==null?m.set(b.key,b):m.set(b.index,b),b=b.sibling;return m}function i(m,b){return m=Qn(m,b),m.index=0,m.sibling=null,m}function s(m,b,p){return m.index=p,t?(p=m.alternate,p!==null?(p=p.index,p<b?(m.flags|=2,b):p):(m.flags|=2,b)):(m.flags|=1048576,b)}function o(m){return t&&m.alternate===null&&(m.flags|=2),m}function a(m,b,p,k){return b===null||b.tag!==6?(b=ju(p,m.mode,k),b.return=m,b):(b=i(b,p),b.return=m,b)}function l(m,b,p,k){var C=p.type;return C===$r?u(m,b,p.props.children,k,p.key):b!==null&&(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===On&&Gp(C)===b.type)?(k=i(b,p.props),k.ref=bs(m,b,p),k.return=m,k):(k=va(p.type,p.key,p.props,null,m.mode,k),k.ref=bs(m,b,p),k.return=m,k)}function c(m,b,p,k){return b===null||b.tag!==4||b.stateNode.containerInfo!==p.containerInfo||b.stateNode.implementation!==p.implementation?(b=Uu(p,m.mode,k),b.return=m,b):(b=i(b,p.children||[]),b.return=m,b)}function u(m,b,p,k,C){return b===null||b.tag!==7?(b=xr(p,m.mode,k,C),b.return=m,b):(b=i(b,p),b.return=m,b)}function d(m,b,p){if(typeof b=="string"&&b!==""||typeof b=="number")return b=ju(""+b,m.mode,p),b.return=m,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case po:return p=va(b.type,b.key,b.props,null,m.mode,p),p.ref=bs(m,null,b),p.return=m,p;case Hr:return b=Uu(b,m.mode,p),b.return=m,b;case On:var k=b._init;return d(m,k(b._payload),p)}if(Ki(b)||Wi(b))return b=xr(b,m.mode,p,null),b.return=m,b;Go(m,b)}return null}function f(m,b,p,k){var C=b!==null?b.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return C!==null?null:a(m,b,""+p,k);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case po:return p.key===C?l(m,b,p,k):null;case Hr:return p.key===C?c(m,b,p,k):null;case On:return C=p._init,f(m,b,C(p._payload),k)}if(Ki(p)||Wi(p))return C!==null?null:u(m,b,p,k,null);Go(m,p)}return null}function h(m,b,p,k,C){if(typeof k=="string"&&k!==""||typeof k=="number")return m=m.get(p)||null,a(b,m,""+k,C);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case po:return m=m.get(k.key===null?p:k.key)||null,l(b,m,k,C);case Hr:return m=m.get(k.key===null?p:k.key)||null,c(b,m,k,C);case On:var w=k._init;return h(m,b,p,w(k._payload),C)}if(Ki(k)||Wi(k))return m=m.get(p)||null,u(b,m,k,C,null);Go(b,k)}return null}function g(m,b,p,k){for(var C=null,w=null,E=b,x=b=0,M=null;E!==null&&x<p.length;x++){E.index>x?(M=E,E=null):M=E.sibling;var _=f(m,E,p[x],k);if(_===null){E===null&&(E=M);break}t&&E&&_.alternate===null&&e(m,E),b=s(_,b,x),w===null?C=_:w.sibling=_,w=_,E=M}if(x===p.length)return n(m,E),ve&&vr(m,x),C;if(E===null){for(;x<p.length;x++)E=d(m,p[x],k),E!==null&&(b=s(E,b,x),w===null?C=E:w.sibling=E,w=E);return ve&&vr(m,x),C}for(E=r(m,E);x<p.length;x++)M=h(E,m,x,p[x],k),M!==null&&(t&&M.alternate!==null&&E.delete(M.key===null?x:M.key),b=s(M,b,x),w===null?C=M:w.sibling=M,w=M);return t&&E.forEach(function(j){return e(m,j)}),ve&&vr(m,x),C}function v(m,b,p,k){var C=Wi(p);if(typeof C!="function")throw Error(N(150));if(p=C.call(p),p==null)throw Error(N(151));for(var w=C=null,E=b,x=b=0,M=null,_=p.next();E!==null&&!_.done;x++,_=p.next()){E.index>x?(M=E,E=null):M=E.sibling;var j=f(m,E,_.value,k);if(j===null){E===null&&(E=M);break}t&&E&&j.alternate===null&&e(m,E),b=s(j,b,x),w===null?C=j:w.sibling=j,w=j,E=M}if(_.done)return n(m,E),ve&&vr(m,x),C;if(E===null){for(;!_.done;x++,_=p.next())_=d(m,_.value,k),_!==null&&(b=s(_,b,x),w===null?C=_:w.sibling=_,w=_);return ve&&vr(m,x),C}for(E=r(m,E);!_.done;x++,_=p.next())_=h(E,m,x,_.value,k),_!==null&&(t&&_.alternate!==null&&E.delete(_.key===null?x:_.key),b=s(_,b,x),w===null?C=_:w.sibling=_,w=_);return t&&E.forEach(function(q){return e(m,q)}),ve&&vr(m,x),C}function T(m,b,p,k){if(typeof p=="object"&&p!==null&&p.type===$r&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case po:e:{for(var C=p.key,w=b;w!==null;){if(w.key===C){if(C=p.type,C===$r){if(w.tag===7){n(m,w.sibling),b=i(w,p.props.children),b.return=m,m=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===On&&Gp(C)===w.type){n(m,w.sibling),b=i(w,p.props),b.ref=bs(m,w,p),b.return=m,m=b;break e}n(m,w);break}else e(m,w);w=w.sibling}p.type===$r?(b=xr(p.props.children,m.mode,k,p.key),b.return=m,m=b):(k=va(p.type,p.key,p.props,null,m.mode,k),k.ref=bs(m,b,p),k.return=m,m=k)}return o(m);case Hr:e:{for(w=p.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===p.containerInfo&&b.stateNode.implementation===p.implementation){n(m,b.sibling),b=i(b,p.children||[]),b.return=m,m=b;break e}else{n(m,b);break}else e(m,b);b=b.sibling}b=Uu(p,m.mode,k),b.return=m,m=b}return o(m);case On:return w=p._init,T(m,b,w(p._payload),k)}if(Ki(p))return g(m,b,p,k);if(Wi(p))return v(m,b,p,k);Go(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,b!==null&&b.tag===6?(n(m,b.sibling),b=i(b,p),b.return=m,m=b):(n(m,b),b=ju(p,m.mode,k),b.return=m,m=b),o(m)):n(m,b)}return T}var ai=Kp(!0),Zp=Kp(!1),Ko=Bn(null),Zo=null,li=null,Gc=null;function Kc(){Gc=li=Zo=null}function Zc(t){var e=Ko.current;ge(Ko),t._currentValue=e}function Qc(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function ci(t,e){Zo=t,Gc=li=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ct=!0),t.firstContext=null)}function Pt(t){var e=t._currentValue;if(Gc!==t)if(t={context:t,memoizedValue:e,next:null},li===null){if(Zo===null)throw Error(N(308));li=t,Zo.dependencies={lanes:0,firstContext:t}}else li=li.next=t;return e}var yr=null;function Jc(t){yr===null?yr=[t]:yr.push(t)}function Qp(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,Jc(e)):(n.next=i.next,i.next=n),e.interleaved=n,vn(t,r)}function vn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Hn=!1;function Yc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jp(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function yn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function $n(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,vn(t,n)}return i=r.interleaved,i===null?(e.next=e,Jc(r)):(e.next=i.next,i.next=e),r.interleaved=e,vn(t,n)}function Qo(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,fc(t,n)}}function Yp(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Jo(t,e,n,r){var i=t.updateQueue;Hn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,u=c=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=t,v=a;switch(f=e,h=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){d=g.call(h,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,f=typeof g=="function"?g.call(h,d,f):g,f==null)break e;d=Ce({},d,f);break e;case 2:Hn=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Cr|=o,t.lanes=o,t.memoizedState=d}}function Xp(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(N(191,i));i.call(r)}}}var ks={},Xt=Bn(ks),Cs=Bn(ks),Ss=Bn(ks);function br(t){if(t===ks)throw Error(N(174));return t}function Xc(t,e){switch(pe(Ss,e),pe(Cs,t),pe(Xt,ks),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:ec(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=ec(e,t)}ge(Xt),pe(Xt,e)}function ui(){ge(Xt),ge(Cs),ge(Ss)}function em(t){br(Ss.current);var e=br(Xt.current),n=ec(e,t.type);e!==n&&(pe(Cs,t),pe(Xt,n))}function eu(t){Cs.current===t&&(ge(Xt),ge(Cs))}var Se=Bn(0);function Yo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var tu=[];function nu(){for(var t=0;t<tu.length;t++)tu[t]._workInProgressVersionPrimary=null;tu.length=0}var Xo=fn.ReactCurrentDispatcher,ru=fn.ReactCurrentBatchConfig,kr=0,we=null,Ne=null,Ue=null,ea=!1,ws=!1,Ts=0,fC=0;function Ze(){throw Error(N(321))}function iu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Dt(t[n],e[n]))return!1;return!0}function su(t,e,n,r,i,s){if(kr=s,we=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Xo.current=t===null||t.memoizedState===null?gC:vC,t=n(r,i),ws){s=0;do{if(ws=!1,Ts=0,25<=s)throw Error(N(301));s+=1,Ue=Ne=null,e.updateQueue=null,Xo.current=yC,t=n(r,i)}while(ws)}if(Xo.current=ra,e=Ne!==null&&Ne.next!==null,kr=0,Ue=Ne=we=null,ea=!1,e)throw Error(N(300));return t}function ou(){var t=Ts!==0;return Ts=0,t}function en(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?we.memoizedState=Ue=t:Ue=Ue.next=t,Ue}function _t(){if(Ne===null){var t=we.alternate;t=t!==null?t.memoizedState:null}else t=Ne.next;var e=Ue===null?we.memoizedState:Ue.next;if(e!==null)Ue=e,Ne=t;else{if(t===null)throw Error(N(310));Ne=t,t={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ue===null?we.memoizedState=Ue=t:Ue=Ue.next=t}return Ue}function xs(t,e){return typeof e=="function"?e(t):e}function au(t){var e=_t(),n=e.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=t;var r=Ne,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var u=c.lane;if((kr&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,we.lanes|=u,Cr|=u}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,Dt(r,e.memoizedState)||(ct=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do s=i.lane,we.lanes|=s,Cr|=s,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function lu(t){var e=_t(),n=e.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,s=e.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);Dt(s,e.memoizedState)||(ct=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,r]}function tm(){}function nm(t,e){var n=we,r=_t(),i=e(),s=!Dt(r.memoizedState,i);if(s&&(r.memoizedState=i,ct=!0),r=r.queue,cu(sm.bind(null,n,r,t),[t]),r.getSnapshot!==e||s||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,Es(9,im.bind(null,n,r,i,e),void 0,null),Fe===null)throw Error(N(349));kr&30||rm(n,e,i)}return i}function rm(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=we.updateQueue,e===null?(e={lastEffect:null,stores:null},we.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function im(t,e,n,r){e.value=n,e.getSnapshot=r,om(e)&&am(t)}function sm(t,e,n){return n(function(){om(e)&&am(t)})}function om(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Dt(t,n)}catch{return!0}}function am(t){var e=vn(t,1);e!==null&&Bt(e,t,1,-1)}function lm(t){var e=en();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:t},e.queue=t,t=t.dispatch=mC.bind(null,we,t),[e.memoizedState,t]}function Es(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=we.updateQueue,e===null?(e={lastEffect:null,stores:null},we.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function cm(){return _t().memoizedState}function ta(t,e,n,r){var i=en();we.flags|=t,i.memoizedState=Es(1|e,n,void 0,r===void 0?null:r)}function na(t,e,n,r){var i=_t();r=r===void 0?null:r;var s=void 0;if(Ne!==null){var o=Ne.memoizedState;if(s=o.destroy,r!==null&&iu(r,o.deps)){i.memoizedState=Es(e,n,s,r);return}}we.flags|=t,i.memoizedState=Es(1|e,n,s,r)}function um(t,e){return ta(8390656,8,t,e)}function cu(t,e){return na(2048,8,t,e)}function dm(t,e){return na(4,2,t,e)}function fm(t,e){return na(4,4,t,e)}function hm(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function pm(t,e,n){return n=n!=null?n.concat([t]):null,na(4,4,hm.bind(null,e,t),n)}function uu(){}function mm(t,e){var n=_t();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&iu(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function gm(t,e){var n=_t();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&iu(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function vm(t,e,n){return kr&21?(Dt(n,e)||(n=Gh(),we.lanes|=n,Cr|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ct=!0),t.memoizedState=n)}function hC(t,e){var n=ae;ae=n!==0&&4>n?n:4,t(!0);var r=ru.transition;ru.transition={};try{t(!1),e()}finally{ae=n,ru.transition=r}}function ym(){return _t().memoizedState}function pC(t,e,n){var r=Kn(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bm(t))km(e,n);else if(n=Qp(t,e,n,r),n!==null){var i=nt();Bt(n,t,r,i),Cm(n,e,r)}}function mC(t,e,n){var r=Kn(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bm(t))km(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Dt(a,o)){var l=e.interleaved;l===null?(i.next=i,Jc(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=Qp(t,e,i,r),n!==null&&(i=nt(),Bt(n,t,r,i),Cm(n,e,r))}}function bm(t){var e=t.alternate;return t===we||e!==null&&e===we}function km(t,e){ws=ea=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Cm(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,fc(t,n)}}var ra={readContext:Pt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},gC={readContext:Pt,useCallback:function(t,e){return en().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:um,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,ta(4194308,4,hm.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ta(4194308,4,t,e)},useInsertionEffect:function(t,e){return ta(4,2,t,e)},useMemo:function(t,e){var n=en();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=en();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=pC.bind(null,we,t),[r.memoizedState,t]},useRef:function(t){var e=en();return t={current:t},e.memoizedState=t},useState:lm,useDebugValue:uu,useDeferredValue:function(t){return en().memoizedState=t},useTransition:function(){var t=lm(!1),e=t[0];return t=hC.bind(null,t[1]),en().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=we,i=en();if(ve){if(n===void 0)throw Error(N(407));n=n()}else{if(n=e(),Fe===null)throw Error(N(349));kr&30||rm(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,um(sm.bind(null,r,s,t),[t]),r.flags|=2048,Es(9,im.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=en(),e=Fe.identifierPrefix;if(ve){var n=gn,r=mn;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ts++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=fC++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},vC={readContext:Pt,useCallback:mm,useContext:Pt,useEffect:cu,useImperativeHandle:pm,useInsertionEffect:dm,useLayoutEffect:fm,useMemo:gm,useReducer:au,useRef:cm,useState:function(){return au(xs)},useDebugValue:uu,useDeferredValue:function(t){var e=_t();return vm(e,Ne.memoizedState,t)},useTransition:function(){var t=au(xs)[0],e=_t().memoizedState;return[t,e]},useMutableSource:tm,useSyncExternalStore:nm,useId:ym,unstable_isNewReconciler:!1},yC={readContext:Pt,useCallback:mm,useContext:Pt,useEffect:cu,useImperativeHandle:pm,useInsertionEffect:dm,useLayoutEffect:fm,useMemo:gm,useReducer:lu,useRef:cm,useState:function(){return lu(xs)},useDebugValue:uu,useDeferredValue:function(t){var e=_t();return Ne===null?e.memoizedState=t:vm(e,Ne.memoizedState,t)},useTransition:function(){var t=lu(xs)[0],e=_t().memoizedState;return[t,e]},useMutableSource:tm,useSyncExternalStore:nm,useId:ym,unstable_isNewReconciler:!1};function jt(t,e){if(t&&t.defaultProps){e=Ce({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function du(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Ce({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ia={isMounted:function(t){return(t=t._reactInternals)?hr(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=nt(),i=Kn(t),s=yn(r,i);s.payload=e,n!=null&&(s.callback=n),e=$n(t,s,i),e!==null&&(Bt(e,t,i,r),Qo(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=nt(),i=Kn(t),s=yn(r,i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=$n(t,s,i),e!==null&&(Bt(e,t,i,r),Qo(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=nt(),r=Kn(t),i=yn(n,r);i.tag=2,e!=null&&(i.callback=e),e=$n(t,i,r),e!==null&&(Bt(e,t,r,n),Qo(e,t,r))}};function Sm(t,e,n,r,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,s,o):e.prototype&&e.prototype.isPureReactComponent?!fs(n,r)||!fs(i,s):!0}function wm(t,e,n){var r=!1,i=Vn,s=e.contextType;return typeof s=="object"&&s!==null?s=Pt(s):(i=lt(e)?mr:Ke.current,r=e.contextTypes,s=(r=r!=null)?ri(t,i):Vn),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ia,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function Tm(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&ia.enqueueReplaceState(e,e.state,null)}function fu(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},Yc(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=Pt(s):(s=lt(e)?mr:Ke.current,i.context=ri(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(du(t,e,s,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&ia.enqueueReplaceState(i,i.state,null),Jo(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function di(t,e){try{var n="",r=e;do n+=Wb(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
39
|
Error generating stack: `+s.message+`
|
|
40
40
|
`+s.stack}return{value:t,source:e,stack:i,digest:null}}function hu(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function pu(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var bC=typeof WeakMap=="function"?WeakMap:Map;function xm(t,e,n){n=yn(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){da||(da=!0,Ru=r),pu(t,e)},n}function Em(t,e,n){n=yn(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){pu(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){pu(t,e),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function Pm(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new bC;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=MC.bind(null,t,e,n),e.then(t,t))}function _m(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Rm(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=yn(-1,1),e.tag=2,$n(n,e,1))),n.lanes|=1),t)}var kC=fn.ReactCurrentOwner,ct=!1;function tt(t,e,n,r){e.child=t===null?Zp(e,null,n,r):ai(e,t.child,n,r)}function Im(t,e,n,r,i){n=n.render;var s=e.ref;return ci(e,i),r=su(t,e,n,r,s,i),n=ou(),t!==null&&!ct?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,bn(t,e,i)):(ve&&n&&zc(e),e.flags|=1,tt(t,e,r,i),e.child)}function Om(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!Au(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,Lm(t,e,s,r,i)):(t=va(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:fs,n(o,r)&&t.ref===e.ref)return bn(t,e,i)}return e.flags|=1,t=Qn(s,r),t.ref=e.ref,t.return=e,e.child=t}function Lm(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(fs(s,r)&&t.ref===e.ref)if(ct=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(ct=!0);else return e.lanes=t.lanes,bn(t,e,i)}return mu(t,e,n,r,i)}function Mm(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(hi,Ct),Ct|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,pe(hi,Ct),Ct|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,pe(hi,Ct),Ct|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,pe(hi,Ct),Ct|=r;return tt(t,e,i,n),e.child}function Nm(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function mu(t,e,n,r,i){var s=lt(n)?mr:Ke.current;return s=ri(e,s),ci(e,i),n=su(t,e,n,r,s,i),r=ou(),t!==null&&!ct?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,bn(t,e,i)):(ve&&r&&zc(e),e.flags|=1,tt(t,e,n,i),e.child)}function Dm(t,e,n,r,i){if(lt(n)){var s=!0;zo(e)}else s=!1;if(ci(e,i),e.stateNode===null)oa(t,e),wm(e,n,r),fu(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Pt(c):(c=lt(n)?mr:Ke.current,c=ri(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Tm(e,o,r,c),Hn=!1;var f=e.memoizedState;o.state=f,Jo(e,r,o,i),l=e.memoizedState,a!==r||f!==l||at.current||Hn?(typeof u=="function"&&(du(e,n,u,r),l=e.memoizedState),(a=Hn||Sm(e,n,a,r,f,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Jp(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:jt(e.type,a),o.props=c,d=e.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Pt(l):(l=lt(n)?mr:Ke.current,l=ri(e,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Tm(e,o,r,l),Hn=!1,f=e.memoizedState,o.state=f,Jo(e,r,o,i);var g=e.memoizedState;a!==d||f!==g||at.current||Hn?(typeof h=="function"&&(du(e,n,h,r),g=e.memoizedState),(c=Hn||Sm(e,n,c,r,f,g,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=g),o.props=r,o.state=g,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return gu(t,e,n,r,s,i)}function gu(t,e,n,r,i,s){Nm(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&Bp(e,n,!1),bn(t,e,s);r=e.stateNode,kC.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=ai(e,t.child,null,s),e.child=ai(e,null,a,s)):tt(t,e,a,s),e.memoizedState=r.state,i&&Bp(e,n,!0),e.child}function Am(t){var e=t.stateNode;e.pendingContext?Up(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Up(t,e.context,!1),Xc(t,e.containerInfo)}function jm(t,e,n,r,i){return oi(),Wc(i),e.flags|=256,tt(t,e,n,r),e.child}var vu={dehydrated:null,treeContext:null,retryLane:0};function yu(t){return{baseLanes:t,cachePool:null,transitions:null}}function Um(t,e,n){var r=e.pendingProps,i=Se.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),pe(Se,i&1),t===null)return qc(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,s?(r=e.mode,s=e.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=ya(o,r,0,null),t=xr(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=yu(n),e.memoizedState=vu,t):bu(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return CC(t,e,o,r,a,i,n);if(s){s=r.fallback,o=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Qn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Qn(a,s):(s=xr(s,o,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,o=t.child.memoizedState,o=o===null?yu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=vu,r}return s=t.child,t=s.sibling,r=Qn(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function bu(t,e){return e=ya({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function sa(t,e,n,r){return r!==null&&Wc(r),ai(e,t.child,null,n),t=bu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function CC(t,e,n,r,i,s,o){if(n)return e.flags&256?(e.flags&=-257,r=hu(Error(N(422))),sa(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=ya({mode:"visible",children:r.children},i,0,null),s=xr(s,i,o,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&ai(e,t.child,null,o),e.child.memoizedState=yu(o),e.memoizedState=vu,s);if(!(e.mode&1))return sa(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(N(419)),r=hu(s,r,void 0),sa(t,e,o,r)}if(a=(o&t.childLanes)!==0,ct||a){if(r=Fe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,vn(t,i),Bt(r,t,i,-1))}return Du(),r=hu(Error(N(421))),sa(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=NC.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,kt=Fn(i.nextSibling),bt=e,ve=!0,At=null,t!==null&&(xt[Et++]=mn,xt[Et++]=gn,xt[Et++]=gr,mn=t.id,gn=t.overflow,gr=e),e=bu(e,r.children),e.flags|=4096,e)}function Fm(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Qc(t.return,e,n)}function ku(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Bm(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(tt(t,e,r.children,n),r=Se.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fm(t,n,e);else if(t.tag===19)Fm(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(pe(Se,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Yo(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),ku(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Yo(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}ku(e,!0,n,null,s);break;case"together":ku(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function oa(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function bn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Cr|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(N(153));if(e.child!==null){for(t=e.child,n=Qn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Qn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function SC(t,e,n){switch(e.tag){case 3:Am(e),oi();break;case 5:em(e);break;case 1:lt(e.type)&&zo(e);break;case 4:Xc(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;pe(Ko,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(pe(Se,Se.current&1),e.flags|=128,null):n&e.child.childLanes?Um(t,e,n):(pe(Se,Se.current&1),t=bn(t,e,n),t!==null?t.sibling:null);pe(Se,Se.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return Bm(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),pe(Se,Se.current),r)break;return null;case 22:case 23:return e.lanes=0,Mm(t,e,n)}return bn(t,e,n)}var Vm,Cu,zm,Hm;Vm=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Cu=function(){},zm=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,br(Xt.current);var s=null;switch(n){case"input":i=Ql(t,i),r=Ql(t,r),s=[];break;case"select":i=Ce({},i,{value:void 0}),r=Ce({},r,{value:void 0}),s=[];break;case"textarea":i=Xl(t,i),r=Xl(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=Fo)}tc(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(qi.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(qi.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&me("scroll",t),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(e.updateQueue=c)&&(e.flags|=4)}},Hm=function(t,e,n,r){n!==r&&(e.flags|=4)};function Ps(t,e){if(!ve)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Qe(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function wC(t,e,n){var r=e.pendingProps;switch(Hc(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(e),null;case 1:return lt(e.type)&&Vo(),Qe(e),null;case 3:return r=e.stateNode,ui(),ge(at),ge(Ke),nu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Wo(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,At!==null&&(Lu(At),At=null))),Cu(t,e),Qe(e),null;case 5:eu(e);var i=br(Ss.current);if(n=e.type,t!==null&&e.stateNode!=null)zm(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(N(166));return Qe(e),null}if(t=br(Xt.current),Wo(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Yt]=e,r[vs]=s,t=(e.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(i=0;i<ps.length;i++)me(ps[i],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":wh(r,s),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},me("invalid",r);break;case"textarea":Eh(r,s),me("invalid",r)}tc(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Uo(r.textContent,a,t),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Uo(r.textContent,a,t),i=["children",""+a]):qi.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&me("scroll",r)}switch(n){case"input":mo(r),xh(r,s,!0);break;case"textarea":mo(r),_h(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Fo)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Rh(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Yt]=e,t[vs]=r,Vm(t,e,!1,!1),e.stateNode=t;e:{switch(o=nc(n,r),n){case"dialog":me("cancel",t),me("close",t),i=r;break;case"iframe":case"object":case"embed":me("load",t),i=r;break;case"video":case"audio":for(i=0;i<ps.length;i++)me(ps[i],t);i=r;break;case"source":me("error",t),i=r;break;case"img":case"image":case"link":me("error",t),me("load",t),i=r;break;case"details":me("toggle",t),i=r;break;case"input":wh(t,r),i=Ql(t,r),me("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=Ce({},r,{value:void 0}),me("invalid",t);break;case"textarea":Eh(t,r),i=Xl(t,r),me("invalid",t);break;default:i=r}tc(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Lh(t,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ih(t,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Zi(t,l):typeof l=="number"&&Zi(t,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(qi.hasOwnProperty(s)?l!=null&&s==="onScroll"&&me("scroll",t):l!=null&&Fl(t,s,l,o))}switch(n){case"input":mo(t),xh(t,r,!1);break;case"textarea":mo(t),_h(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Ln(r.value));break;case"select":t.multiple=!!r.multiple,s=r.value,s!=null?qr(t,!!r.multiple,s,!1):r.defaultValue!=null&&qr(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Fo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Qe(e),null;case 6:if(t&&e.stateNode!=null)Hm(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(N(166));if(n=br(Ss.current),br(Xt.current),Wo(e)){if(r=e.stateNode,n=e.memoizedProps,r[Yt]=e,(s=r.nodeValue!==n)&&(t=bt,t!==null))switch(t.tag){case 3:Uo(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Uo(r.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yt]=e,e.stateNode=r}return Qe(e),null;case 13:if(ge(Se),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(ve&&kt!==null&&e.mode&1&&!(e.flags&128))Wp(),oi(),e.flags|=98560,s=!1;else if(s=Wo(e),r!==null&&r.dehydrated!==null){if(t===null){if(!s)throw Error(N(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[Yt]=e}else oi(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Qe(e),s=!1}else At!==null&&(Lu(At),At=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Se.current&1?De===0&&(De=3):Du())),e.updateQueue!==null&&(e.flags|=4),Qe(e),null);case 4:return ui(),Cu(t,e),t===null&&ms(e.stateNode.containerInfo),Qe(e),null;case 10:return Zc(e.type._context),Qe(e),null;case 17:return lt(e.type)&&Vo(),Qe(e),null;case 19:if(ge(Se),s=e.memoizedState,s===null)return Qe(e),null;if(r=(e.flags&128)!==0,o=s.rendering,o===null)if(r)Ps(s,!1);else{if(De!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Yo(t),o!==null){for(e.flags|=128,Ps(s,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)s=n,t=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return pe(Se,Se.current&1|2),e.child}t=t.sibling}s.tail!==null&&Re()>pi&&(e.flags|=128,r=!0,Ps(s,!1),e.lanes=4194304)}else{if(!r)if(t=Yo(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ps(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ve)return Qe(e),null}else 2*Re()-s.renderingStartTime>pi&&n!==1073741824&&(e.flags|=128,r=!0,Ps(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Re(),e.sibling=null,n=Se.current,pe(Se,r?n&1|2:n&1),e):(Qe(e),null);case 22:case 23:return Nu(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Ct&1073741824&&(Qe(e),e.subtreeFlags&6&&(e.flags|=8192)):Qe(e),null;case 24:return null;case 25:return null}throw Error(N(156,e.tag))}function TC(t,e){switch(Hc(e),e.tag){case 1:return lt(e.type)&&Vo(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ui(),ge(at),ge(Ke),nu(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return eu(e),null;case 13:if(ge(Se),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(N(340));oi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ge(Se),null;case 4:return ui(),null;case 10:return Zc(e.type._context),null;case 22:case 23:return Nu(),null;case 24:return null;default:return null}}var aa=!1,Je=!1,xC=typeof WeakSet=="function"?WeakSet:Set,H=null;function fi(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(t,e,r)}else n.current=null}function Su(t,e,n){try{n()}catch(r){xe(t,e,r)}}var $m=!1;function EC(t,e){if(Nc=Po,t=Sp(),Ec(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===n&&++c===i&&(a=o),f===s&&++u===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dc={focusedElem:t,selectionRange:n},Po=!1,H=e;H!==null;)if(e=H,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,H=t;else for(;H!==null;){e=H;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,T=g.memoizedState,m=e.stateNode,b=m.getSnapshotBeforeUpdate(e.elementType===e.type?v:jt(e.type,v),T);m.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var p=e.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(k){xe(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return g=$m,$m=!1,g}function _s(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&Su(e,n,s)}i=i.next}while(i!==r)}}function la(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function wu(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function qm(t){var e=t.alternate;e!==null&&(t.alternate=null,qm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Yt],delete e[vs],delete e[Fc],delete e[lC],delete e[cC])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Wm(t){return t.tag===5||t.tag===3||t.tag===4}function Gm(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Wm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Tu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Fo));else if(r!==4&&(t=t.child,t!==null))for(Tu(t,e,n),t=t.sibling;t!==null;)Tu(t,e,n),t=t.sibling}function xu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(xu(t,e,n),t=t.sibling;t!==null;)xu(t,e,n),t=t.sibling}var He=null,Ut=!1;function qn(t,e,n){for(n=n.child;n!==null;)Km(t,e,n),n=n.sibling}function Km(t,e,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Co,n)}catch{}switch(n.tag){case 5:Je||fi(n,e);case 6:var r=He,i=Ut;He=null,qn(t,e,n),He=r,Ut=i,He!==null&&(Ut?(t=He,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Ut?(t=He,n=n.stateNode,t.nodeType===8?Uc(t.parentNode,n):t.nodeType===1&&Uc(t,n),os(t)):Uc(He,n.stateNode));break;case 4:r=He,i=Ut,He=n.stateNode.containerInfo,Ut=!0,qn(t,e,n),He=r,Ut=i;break;case 0:case 11:case 14:case 15:if(!Je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Su(n,e,o),i=i.next}while(i!==r)}qn(t,e,n);break;case 1:if(!Je&&(fi(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,e,a)}qn(t,e,n);break;case 21:qn(t,e,n);break;case 22:n.mode&1?(Je=(r=Je)||n.memoizedState!==null,qn(t,e,n),Je=r):qn(t,e,n);break;default:qn(t,e,n)}}function Zm(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new xC),e.forEach(function(r){var i=DC.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ft(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:He=a.stateNode,Ut=!1;break e;case 3:He=a.stateNode.containerInfo,Ut=!0;break e;case 4:He=a.stateNode.containerInfo,Ut=!0;break e}a=a.return}if(He===null)throw Error(N(160));Km(s,o,i),He=null,Ut=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){xe(i,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Qm(e,t),e=e.sibling}function Qm(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ft(e,t),tn(t),r&4){try{_s(3,t,t.return),la(3,t)}catch(v){xe(t,t.return,v)}try{_s(5,t,t.return)}catch(v){xe(t,t.return,v)}}break;case 1:Ft(e,t),tn(t),r&512&&n!==null&&fi(n,n.return);break;case 5:if(Ft(e,t),tn(t),r&512&&n!==null&&fi(n,n.return),t.flags&32){var i=t.stateNode;try{Zi(i,"")}catch(v){xe(t,t.return,v)}}if(r&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=n!==null?n.memoizedProps:s,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Th(i,s),nc(a,o);var c=nc(a,s);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?Lh(i,d):u==="dangerouslySetInnerHTML"?Ih(i,d):u==="children"?Zi(i,d):Fl(i,u,d,c)}switch(a){case"input":Jl(i,s);break;case"textarea":Ph(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?qr(i,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?qr(i,!!s.multiple,s.defaultValue,!0):qr(i,!!s.multiple,s.multiple?[]:"",!1))}i[vs]=s}catch(v){xe(t,t.return,v)}}break;case 6:if(Ft(e,t),tn(t),r&4){if(t.stateNode===null)throw Error(N(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(v){xe(t,t.return,v)}}break;case 3:if(Ft(e,t),tn(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{os(e.containerInfo)}catch(v){xe(t,t.return,v)}break;case 4:Ft(e,t),tn(t);break;case 13:Ft(e,t),tn(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(_u=Re())),r&4&&Zm(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(Je=(c=Je)||u,Ft(e,t),Je=c):Ft(e,t),tn(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(H=t,u=t.child;u!==null;){for(d=H=u;H!==null;){switch(f=H,h=f.child,f.tag){case 0:case 11:case 14:case 15:_s(4,f,f.return);break;case 1:fi(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{e=r,g.props=e.memoizedProps,g.state=e.memoizedState,g.componentWillUnmount()}catch(v){xe(r,n,v)}}break;case 5:fi(f,f.return);break;case 22:if(f.memoizedState!==null){Xm(d);continue}}h!==null?(h.return=f,H=h):Xm(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Oh("display",o))}catch(v){xe(t,t.return,v)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){xe(t,t.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ft(e,t),tn(t),r&4&&Zm(t);break;case 21:break;default:Ft(e,t),tn(t)}}function tn(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Wm(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Zi(i,""),r.flags&=-33);var s=Gm(t);xu(t,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Gm(t);Tu(t,a,o);break;default:throw Error(N(161))}}catch(l){xe(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function PC(t,e,n){H=t,Jm(t)}function Jm(t,e,n){for(var r=(t.mode&1)!==0;H!==null;){var i=H,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||aa;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Je;a=aa;var c=Je;if(aa=o,(Je=l)&&!c)for(H=i;H!==null;)o=H,l=o.child,o.tag===22&&o.memoizedState!==null?eg(i):l!==null?(l.return=o,H=l):eg(i);for(;s!==null;)H=s,Jm(s),s=s.sibling;H=i,aa=a,Je=c}Ym(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,H=s):Ym(t)}}function Ym(t){for(;H!==null;){var e=H;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Je||la(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Je)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:jt(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&Xp(e,s,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Xp(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&os(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Je||e.flags&512&&wu(e)}catch(f){xe(e,e.return,f)}}if(e===t){H=null;break}if(n=e.sibling,n!==null){n.return=e.return,H=n;break}H=e.return}}function Xm(t){for(;H!==null;){var e=H;if(e===t){H=null;break}var n=e.sibling;if(n!==null){n.return=e.return,H=n;break}H=e.return}}function eg(t){for(;H!==null;){var e=H;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{la(4,e)}catch(l){xe(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){xe(e,i,l)}}var s=e.return;try{wu(e)}catch(l){xe(e,s,l)}break;case 5:var o=e.return;try{wu(e)}catch(l){xe(e,o,l)}}}catch(l){xe(e,e.return,l)}if(e===t){H=null;break}var a=e.sibling;if(a!==null){a.return=e.return,H=a;break}H=e.return}}var _C=Math.ceil,ca=fn.ReactCurrentDispatcher,Eu=fn.ReactCurrentOwner,Rt=fn.ReactCurrentBatchConfig,te=0,Fe=null,Le=null,$e=0,Ct=0,hi=Bn(0),De=0,Rs=null,Cr=0,ua=0,Pu=0,Is=null,ut=null,_u=0,pi=1/0,kn=null,da=!1,Ru=null,Wn=null,fa=!1,Gn=null,ha=0,Os=0,Iu=null,pa=-1,ma=0;function nt(){return te&6?Re():pa!==-1?pa:pa=Re()}function Kn(t){return t.mode&1?te&2&&$e!==0?$e&-$e:dC.transition!==null?(ma===0&&(ma=Gh()),ma):(t=ae,t!==0||(t=window.event,t=t===void 0?16:np(t.type)),t):1}function Bt(t,e,n,r){if(50<Os)throw Os=0,Iu=null,Error(N(185));ts(t,n,r),(!(te&2)||t!==Fe)&&(t===Fe&&(!(te&2)&&(ua|=n),De===4&&Zn(t,$e)),dt(t,r),n===1&&te===0&&!(e.mode&1)&&(pi=Re()+500,Ho&&zn()))}function dt(t,e){var n=t.callbackNode;dk(t,e);var r=To(t,t===Fe?$e:0);if(r===0)n!==null&&$h(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&$h(n),e===1)t.tag===0?uC(ng.bind(null,t)):Vp(ng.bind(null,t)),oC(function(){!(te&6)&&zn()}),n=null;else{switch(Kh(r)){case 1:n=cc;break;case 4:n=qh;break;case 16:n=ko;break;case 536870912:n=Wh;break;default:n=ko}n=ug(n,tg.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function tg(t,e){if(pa=-1,ma=0,te&6)throw Error(N(327));var n=t.callbackNode;if(mi()&&t.callbackNode!==n)return null;var r=To(t,t===Fe?$e:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=ga(t,r);else{e=r;var i=te;te|=2;var s=ig();(Fe!==t||$e!==e)&&(kn=null,pi=Re()+500,wr(t,e));do try{OC();break}catch(a){rg(t,a)}while(!0);Kc(),ca.current=s,te=i,Le!==null?e=0:(Fe=null,$e=0,e=De)}if(e!==0){if(e===2&&(i=uc(t),i!==0&&(r=i,e=Ou(t,i))),e===1)throw n=Rs,wr(t,0),Zn(t,r),dt(t,Re()),n;if(e===6)Zn(t,r);else{if(i=t.current.alternate,!(r&30)&&!RC(i)&&(e=ga(t,r),e===2&&(s=uc(t),s!==0&&(r=s,e=Ou(t,s))),e===1))throw n=Rs,wr(t,0),Zn(t,r),dt(t,Re()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(N(345));case 2:Tr(t,ut,kn);break;case 3:if(Zn(t,r),(r&130023424)===r&&(e=_u+500-Re(),10<e)){if(To(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){nt(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=jc(Tr.bind(null,t,ut,kn),e);break}Tr(t,ut,kn);break;case 4:if(Zn(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-Nt(r);s=1<<o,o=e[o],o>i&&(i=o),r&=~s}if(r=i,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_C(r/1960))-r,10<r){t.timeoutHandle=jc(Tr.bind(null,t,ut,kn),r);break}Tr(t,ut,kn);break;case 5:Tr(t,ut,kn);break;default:throw Error(N(329))}}}return dt(t,Re()),t.callbackNode===n?tg.bind(null,t):null}function Ou(t,e){var n=Is;return t.current.memoizedState.isDehydrated&&(wr(t,e).flags|=256),t=ga(t,e),t!==2&&(e=ut,ut=n,e!==null&&Lu(e)),t}function Lu(t){ut===null?ut=t:ut.push.apply(ut,t)}function RC(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Dt(s(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Zn(t,e){for(e&=~Pu,e&=~ua,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Nt(e),r=1<<n;t[n]=-1,e&=~r}}function ng(t){if(te&6)throw Error(N(327));mi();var e=To(t,0);if(!(e&1))return dt(t,Re()),null;var n=ga(t,e);if(t.tag!==0&&n===2){var r=uc(t);r!==0&&(e=r,n=Ou(t,r))}if(n===1)throw n=Rs,wr(t,0),Zn(t,e),dt(t,Re()),n;if(n===6)throw Error(N(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Tr(t,ut,kn),dt(t,Re()),null}function Mu(t,e){var n=te;te|=1;try{return t(e)}finally{te=n,te===0&&(pi=Re()+500,Ho&&zn())}}function Sr(t){Gn!==null&&Gn.tag===0&&!(te&6)&&mi();var e=te;te|=1;var n=Rt.transition,r=ae;try{if(Rt.transition=null,ae=1,t)return t()}finally{ae=r,Rt.transition=n,te=e,!(te&6)&&zn()}}function Nu(){Ct=hi.current,ge(hi)}function wr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,sC(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(Hc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vo();break;case 3:ui(),ge(at),ge(Ke),nu();break;case 5:eu(r);break;case 4:ui();break;case 13:ge(Se);break;case 19:ge(Se);break;case 10:Zc(r.type._context);break;case 22:case 23:Nu()}n=n.return}if(Fe=t,Le=t=Qn(t.current,null),$e=Ct=e,De=0,Rs=null,Pu=ua=Cr=0,ut=Is=null,yr!==null){for(e=0;e<yr.length;e++)if(n=yr[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}yr=null}return t}function rg(t,e){do{var n=Le;try{if(Kc(),Xo.current=ra,ea){for(var r=we.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ea=!1}if(kr=0,Ue=Ne=we=null,ws=!1,Ts=0,Eu.current=null,n===null||n.return===null){De=1,Rs=e,Le=null;break}e:{var s=t,o=n.return,a=n,l=e;if(e=$e,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=_m(o);if(h!==null){h.flags&=-257,Rm(h,o,a,s,e),h.mode&1&&Pm(s,c,e),e=h,l=c;var g=e.updateQueue;if(g===null){var v=new Set;v.add(l),e.updateQueue=v}else g.add(l);break e}else{if(!(e&1)){Pm(s,c,e),Du();break e}l=Error(N(426))}}else if(ve&&a.mode&1){var T=_m(o);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Rm(T,o,a,s,e),Wc(di(l,a));break e}}s=l=di(l,a),De!==4&&(De=2),Is===null?Is=[s]:Is.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var m=xm(s,l,e);Yp(s,m);break e;case 1:a=l;var b=s.type,p=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Wn===null||!Wn.has(p)))){s.flags|=65536,e&=-e,s.lanes|=e;var k=Em(s,a,e);Yp(s,k);break e}}s=s.return}while(s!==null)}og(n)}catch(C){e=C,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function ig(){var t=ca.current;return ca.current=ra,t===null?ra:t}function Du(){(De===0||De===3||De===2)&&(De=4),Fe===null||!(Cr&268435455)&&!(ua&268435455)||Zn(Fe,$e)}function ga(t,e){var n=te;te|=2;var r=ig();(Fe!==t||$e!==e)&&(kn=null,wr(t,e));do try{IC();break}catch(i){rg(t,i)}while(!0);if(Kc(),te=n,ca.current=r,Le!==null)throw Error(N(261));return Fe=null,$e=0,De}function IC(){for(;Le!==null;)sg(Le)}function OC(){for(;Le!==null&&!nk();)sg(Le)}function sg(t){var e=cg(t.alternate,t,Ct);t.memoizedProps=t.pendingProps,e===null?og(t):Le=e,Eu.current=null}function og(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=TC(n,e),n!==null){n.flags&=32767,Le=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{De=6,Le=null;return}}else if(n=wC(n,e,Ct),n!==null){Le=n;return}if(e=e.sibling,e!==null){Le=e;return}Le=e=t}while(e!==null);De===0&&(De=5)}function Tr(t,e,n){var r=ae,i=Rt.transition;try{Rt.transition=null,ae=1,LC(t,e,n,r)}finally{Rt.transition=i,ae=r}return null}function LC(t,e,n,r){do mi();while(Gn!==null);if(te&6)throw Error(N(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(N(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(fk(t,s),t===Fe&&(Le=Fe=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||fa||(fa=!0,ug(ko,function(){return mi(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Rt.transition,Rt.transition=null;var o=ae;ae=1;var a=te;te|=4,Eu.current=null,EC(t,n),Qm(n,t),Yk(Dc),Po=!!Nc,Dc=Nc=null,t.current=n,PC(n),rk(),te=a,ae=o,Rt.transition=s}else t.current=n;if(fa&&(fa=!1,Gn=t,ha=i),s=t.pendingLanes,s===0&&(Wn=null),ok(n.stateNode),dt(t,Re()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(da)throw da=!1,t=Ru,Ru=null,t;return ha&1&&t.tag!==0&&mi(),s=t.pendingLanes,s&1?t===Iu?Os++:(Os=0,Iu=t):Os=0,zn(),null}function mi(){if(Gn!==null){var t=Kh(ha),e=Rt.transition,n=ae;try{if(Rt.transition=null,ae=16>t?16:t,Gn===null)var r=!1;else{if(t=Gn,Gn=null,ha=0,te&6)throw Error(N(331));var i=te;for(te|=4,H=t.current;H!==null;){var s=H,o=s.child;if(H.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(H=c;H!==null;){var u=H;switch(u.tag){case 0:case 11:case 15:_s(8,u,s)}var d=u.child;if(d!==null)d.return=u,H=d;else for(;H!==null;){u=H;var f=u.sibling,h=u.return;if(qm(u),u===c){H=null;break}if(f!==null){f.return=h,H=f;break}H=h}}}var g=s.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var T=v.sibling;v.sibling=null,v=T}while(v!==null)}}H=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,H=o;else e:for(;H!==null;){if(s=H,s.flags&2048)switch(s.tag){case 0:case 11:case 15:_s(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,H=m;break e}H=s.return}}var b=t.current;for(H=b;H!==null;){o=H;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,H=p;else e:for(o=b;H!==null;){if(a=H,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:la(9,a)}}catch(C){xe(a,a.return,C)}if(a===o){H=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,H=k;break e}H=a.return}}if(te=i,zn(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Co,t)}catch{}r=!0}return r}finally{ae=n,Rt.transition=e}}return!1}function ag(t,e,n){e=di(n,e),e=xm(t,e,1),t=$n(t,e,1),e=nt(),t!==null&&(ts(t,1,e),dt(t,e))}function xe(t,e,n){if(t.tag===3)ag(t,t,n);else for(;e!==null;){if(e.tag===3){ag(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wn===null||!Wn.has(r))){t=di(n,t),t=Em(e,t,1),e=$n(e,t,1),t=nt(),e!==null&&(ts(e,1,t),dt(e,t));break}}e=e.return}}function MC(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=nt(),t.pingedLanes|=t.suspendedLanes&n,Fe===t&&($e&n)===n&&(De===4||De===3&&($e&130023424)===$e&&500>Re()-_u?wr(t,0):Pu|=n),dt(t,e)}function lg(t,e){e===0&&(t.mode&1?(e=wo,wo<<=1,!(wo&130023424)&&(wo=4194304)):e=1);var n=nt();t=vn(t,e),t!==null&&(ts(t,e,n),dt(t,n))}function NC(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),lg(t,n)}function DC(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(e),lg(t,n)}var cg;cg=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||at.current)ct=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return ct=!1,SC(t,e,n);ct=!!(t.flags&131072)}else ct=!1,ve&&e.flags&1048576&&zp(e,qo,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;oa(t,e),t=e.pendingProps;var i=ri(e,Ke.current);ci(e,n),i=su(null,e,r,t,i,n);var s=ou();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,lt(r)?(s=!0,zo(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yc(e),i.updater=ia,e.stateNode=i,i._reactInternals=e,fu(e,r,t,n),e=gu(null,e,r,!0,s,n)):(e.tag=0,ve&&s&&zc(e),tt(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(oa(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=jC(r),t=jt(r,t),i){case 0:e=mu(null,e,r,t,n);break e;case 1:e=Dm(null,e,r,t,n);break e;case 11:e=Im(null,e,r,t,n);break e;case 14:e=Om(null,e,r,jt(r.type,t),n);break e}throw Error(N(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jt(r,i),mu(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jt(r,i),Dm(t,e,r,i,n);case 3:e:{if(Am(e),t===null)throw Error(N(387));r=e.pendingProps,s=e.memoizedState,i=s.element,Jp(t,e),Jo(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=di(Error(N(423)),e),e=jm(t,e,r,n,i);break e}else if(r!==i){i=di(Error(N(424)),e),e=jm(t,e,r,n,i);break e}else for(kt=Fn(e.stateNode.containerInfo.firstChild),bt=e,ve=!0,At=null,n=Zp(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oi(),r===i){e=bn(t,e,n);break e}tt(t,e,r,n)}e=e.child}return e;case 5:return em(e),t===null&&qc(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Ac(r,i)?o=null:s!==null&&Ac(r,s)&&(e.flags|=32),Nm(t,e),tt(t,e,o,n),e.child;case 6:return t===null&&qc(e),null;case 13:return Um(t,e,n);case 4:return Xc(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=ai(e,null,r,n):tt(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jt(r,i),Im(t,e,r,i,n);case 7:return tt(t,e,e.pendingProps,n),e.child;case 8:return tt(t,e,e.pendingProps.children,n),e.child;case 12:return tt(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,pe(Ko,r._currentValue),r._currentValue=o,s!==null)if(Dt(s.value,o)){if(s.children===i.children&&!at.current){e=bn(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=yn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Qc(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Qc(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}tt(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,ci(e,n),i=Pt(i),r=r(i),e.flags|=1,tt(t,e,r,n),e.child;case 14:return r=e.type,i=jt(r,e.pendingProps),i=jt(r.type,i),Om(t,e,r,i,n);case 15:return Lm(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jt(r,i),oa(t,e),e.tag=1,lt(r)?(t=!0,zo(e)):t=!1,ci(e,n),wm(e,r,i),fu(e,r,i,n),gu(null,e,r,!0,t,n);case 19:return Bm(t,e,n);case 22:return Mm(t,e,n)}throw Error(N(156,e.tag))};function ug(t,e){return Hh(t,e)}function AC(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(t,e,n,r){return new AC(t,e,n,r)}function Au(t){return t=t.prototype,!(!t||!t.isReactComponent)}function jC(t){if(typeof t=="function")return Au(t)?1:0;if(t!=null){if(t=t.$$typeof,t===zl)return 11;if(t===ql)return 14}return 2}function Qn(t,e){var n=t.alternate;return n===null?(n=It(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function va(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")Au(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case $r:return xr(n.children,i,s,e);case Bl:o=8,i|=8;break;case Vl:return t=It(12,n,e,i|2),t.elementType=Vl,t.lanes=s,t;case Hl:return t=It(13,n,e,i),t.elementType=Hl,t.lanes=s,t;case $l:return t=It(19,n,e,i),t.elementType=$l,t.lanes=s,t;case bh:return ya(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case vh:o=10;break e;case yh:o=9;break e;case zl:o=11;break e;case ql:o=14;break e;case On:o=16,r=null;break e}throw Error(N(130,t==null?t:typeof t,""))}return e=It(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function xr(t,e,n,r){return t=It(7,t,r,e),t.lanes=n,t}function ya(t,e,n,r){return t=It(22,t,r,e),t.elementType=bh,t.lanes=n,t.stateNode={isHidden:!1},t}function ju(t,e,n){return t=It(6,t,null,e),t.lanes=n,t}function Uu(t,e,n){return e=It(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function UC(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dc(0),this.expirationTimes=dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fu(t,e,n,r,i,s,o,a,l){return t=new UC(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=It(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yc(s),t}function FC(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hr,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function dg(t){if(!t)return Vn;t=t._reactInternals;e:{if(hr(t)!==t||t.tag!==1)throw Error(N(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(lt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(N(171))}if(t.tag===1){var n=t.type;if(lt(n))return Fp(t,n,e)}return e}function fg(t,e,n,r,i,s,o,a,l){return t=Fu(n,r,!0,t,i,s,o,a,l),t.context=dg(null),n=t.current,r=nt(),i=Kn(n),s=yn(r,i),s.callback=e??null,$n(n,s,i),t.current.lanes=i,ts(t,i,r),dt(t,r),t}function ba(t,e,n,r){var i=e.current,s=nt(),o=Kn(i);return n=dg(n),e.context===null?e.context=n:e.pendingContext=n,e=yn(s,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=$n(i,e,o),t!==null&&(Bt(t,i,o,s),Qo(t,i,o)),o}function ka(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function hg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Bu(t,e){hg(t,e),(t=t.alternate)&&hg(t,e)}function BC(){return null}var pg=typeof reportError=="function"?reportError:function(t){console.error(t)};function Vu(t){this._internalRoot=t}Ca.prototype.render=Vu.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(N(409));ba(t,e,null,null)},Ca.prototype.unmount=Vu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Sr(function(){ba(null,t,null,null)}),e[hn]=null}};function Ca(t){this._internalRoot=t}Ca.prototype.unstable_scheduleHydration=function(t){if(t){var e=Jh();t={blockedOn:null,target:t,priority:e};for(var n=0;n<An.length&&e!==0&&e<An[n].priority;n++);An.splice(n,0,t),n===0&&ep(t)}};function zu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Sa(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function mg(){}function VC(t,e,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=ka(o);s.call(c)}}var o=fg(e,r,t,0,null,!1,!1,"",mg);return t._reactRootContainer=o,t[hn]=o.current,ms(t.nodeType===8?t.parentNode:t),Sr(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=ka(l);a.call(c)}}var l=Fu(t,0,!1,null,null,!1,!1,"",mg);return t._reactRootContainer=l,t[hn]=l.current,ms(t.nodeType===8?t.parentNode:t),Sr(function(){ba(e,l,n,r)}),l}function wa(t,e,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=ka(o);a.call(l)}}ba(e,o,t,i)}else o=VC(n,e,t,i,r);return ka(o)}Zh=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=es(e.pendingLanes);n!==0&&(fc(e,n|1),dt(e,Re()),!(te&6)&&(pi=Re()+500,zn()))}break;case 13:Sr(function(){var r=vn(t,1);if(r!==null){var i=nt();Bt(r,t,1,i)}}),Bu(t,1)}},hc=function(t){if(t.tag===13){var e=vn(t,134217728);if(e!==null){var n=nt();Bt(e,t,134217728,n)}Bu(t,134217728)}},Qh=function(t){if(t.tag===13){var e=Kn(t),n=vn(t,e);if(n!==null){var r=nt();Bt(n,t,e,r)}Bu(t,e)}},Jh=function(){return ae},Yh=function(t,e){var n=ae;try{return ae=t,e()}finally{ae=n}},sc=function(t,e,n){switch(e){case"input":if(Jl(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Bo(r);if(!i)throw Error(N(90));Sh(r),Jl(r,i)}}}break;case"textarea":Ph(t,n);break;case"select":e=n.value,e!=null&&qr(t,!!n.multiple,e,!1)}},Ah=Mu,jh=Sr;var zC={usingClientEntryPoint:!1,Events:[ys,ti,Bo,Nh,Dh,Mu]},Ls={findFiberByHostInstance:pr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},HC={bundleType:Ls.bundleType,version:Ls.version,rendererPackageName:Ls.rendererPackageName,rendererConfig:Ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Vh(t),t===null?null:t.stateNode},findFiberByHostInstance:Ls.findFiberByHostInstance||BC,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 Ta=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ta.isDisabled&&Ta.supportsFiber)try{Co=Ta.inject(HC),Jt=Ta}catch{}}gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zC,gt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zu(e))throw Error(N(200));return FC(t,e,null,n)},gt.createRoot=function(t,e){if(!zu(t))throw Error(N(299));var n=!1,r="",i=pg;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Fu(t,1,!1,null,null,n,!1,r,i),t[hn]=e.current,ms(t.nodeType===8?t.parentNode:t),new Vu(e)},gt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(N(188)):(t=Object.keys(t).join(","),Error(N(268,t)));return t=Vh(e),t=t===null?null:t.stateNode,t},gt.flushSync=function(t){return Sr(t)},gt.hydrate=function(t,e,n){if(!Sa(e))throw Error(N(200));return wa(null,t,e,!0,n)},gt.hydrateRoot=function(t,e,n){if(!zu(t))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=pg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=fg(e,null,t,1,n??null,i,!1,s,o),t[hn]=e.current,ms(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new Ca(e)},gt.render=function(t,e,n){if(!Sa(e))throw Error(N(200));return wa(null,t,e,!1,n)},gt.unmountComponentAtNode=function(t){if(!Sa(t))throw Error(N(40));return t._reactRootContainer?(Sr(function(){wa(null,null,t,!1,function(){t._reactRootContainer=null,t[hn]=null})}),!0):!1},gt.unstable_batchedUpdates=Mu,gt.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Sa(n))throw Error(N(200));if(t==null||t._reactInternals===void 0)throw Error(N(38));return wa(t,e,n,!1,r)},gt.version="18.3.1-next-f1338f8080-20240426";function gg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gg)}catch(t){console.error(t)}}gg(),dh.exports=gt;var $C=dh.exports,vg,yg=$C;vg=yg.createRoot,yg.hydrateRoot;var bg=function(t,e,n,r){var i;e[0]=0;for(var s=1;s<e.length;s++){var o=e[s++],a=e[s]?(e[0]|=o?1:2,n[e[s++]]):e[++s];o===3?r[0]=a:o===4?r[1]=Object.assign(r[1]||{},a):o===5?(r[1]=r[1]||{})[e[++s]]=a:o===6?r[1][e[++s]]+=a+"":o?(i=t.apply(a,bg(t,a,n,["",null])),r.push(i),a[0]?e[0]|=2:(e[s-2]=0,e[s]=i)):r.push(a)}return r},kg=new Map;function qC(t){var e=kg.get(this);return e||(e=new Map,kg.set(this,e)),(e=bg(this,e.get(t)||(e.set(t,e=function(n){for(var r,i,s=1,o="",a="",l=[0],c=function(f){s===1&&(f||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?l.push(0,f,o):s===3&&(f||o)?(l.push(3,f,o),s=2):s===2&&o==="..."&&f?l.push(4,f,0):s===2&&o&&!f?l.push(5,0,!0,o):s>=5&&((o||!f&&s===5)&&(l.push(s,0,o,i),s=6),f&&(l.push(s,f,0,i),s=6)),o=""},u=0;u<n.length;u++){u&&(s===1&&c(),c(u));for(var d=0;d<n[u].length;d++)r=n[u][d],s===1?r==="<"?(c(),l=[l],s=3):o+=r:s===4?o==="--"&&r===">"?(s=1,o=""):o=r+o[0]:a?r===a?a="":o+=r:r==='"'||r==="'"?a=r:r===">"?(c(),s=1):s&&(r==="="?(s=5,i=o,o=""):r==="/"&&(s<5||n[u][d+1]===">")?(c(),s===3&&(l=l[0]),s=l,(l=l[0]).push(2,0,s),s=0):r===" "||r===" "||r===`
|
|
41
|
-
`||r==="\r"?(c(),s=2):o+=r),s===3&&o==="!--"&&(s=4,l=l[0])}return c(),l}(t)),e),arguments,[])).length>1?e:e[0]}function gi(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Er(t){return function e(n){return arguments.length===0||gi(n)?e:t.apply(this,arguments)}}function Hu(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return gi(n)?e:Er(function(i){return t(n,i)});default:return gi(n)&&gi(r)?e:gi(n)?Er(function(i){return t(i,r)}):gi(r)?Er(function(i){return t(n,i)}):t(n,r)}}}const WC=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function GC(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Cg(t,e,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!WC(r)){for(var i=0;i<t.length;){if(typeof r[t[i]]=="function")return r[t[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(GC(r)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(r)}}return n.apply(this,arguments)}}const $u={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Sg(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function wg(t,e,n){for(var r=0,i=n.length;r<i;){if(t(e,n[r]))return!0;r+=1}return!1}function KC(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function xa(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function ZC(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const qu=typeof Object.is=="function"?Object.is:ZC;var Tg=Object.prototype.toString,QC=function(){return Tg.call(arguments)==="[object Arguments]"?function(e){return Tg.call(e)==="[object Arguments]"}:function(e){return xa("callee",e)}}(),JC=!{toString:null}.propertyIsEnumerable("toString"),xg=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Eg=function(){return arguments.propertyIsEnumerable("length")}(),YC=function(e,n){for(var r=0;r<e.length;){if(e[r]===n)return!0;r+=1}return!1},Pg=Er(typeof Object.keys=="function"&&!Eg?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,r,i=[],s=Eg&&QC(e);for(n in e)xa(n,e)&&(!s||n!=="length")&&(i[i.length]=n);if(JC)for(r=xg.length-1;r>=0;)n=xg[r],xa(n,e)&&!YC(i,n)&&(i[i.length]=n),r-=1;return i}),_g=Er(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Rg(t,e,n,r){var i=Sg(t),s=Sg(e);function o(a,l){return Wu(a,l,n.slice(),r.slice())}return!wg(function(a,l){return!wg(o,l,a)},s,i)}function Wu(t,e,n,r){if(qu(t,e))return!0;var i=_g(t);if(i!==_g(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(i){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&KC(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&qu(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!qu(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return r[s]===e;s-=1}switch(i){case"Map":return t.size!==e.size?!1:Rg(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size!==e.size?!1:Rg(t.values(),e.values(),n.concat([t]),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 o=Pg(t);if(o.length!==Pg(e).length)return!1;var a=n.concat([t]),l=r.concat([e]);for(s=o.length-1;s>=0;){var c=o[s];if(!(xa(c,e)&&Wu(e[c],t[c],a,l)))return!1;s-=1}return!0}var Gu=Hu(function(e,n){return Wu(e,n,[],[])});function XC(t,e,n){var r,i;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(r=1/e;n<t.length;){if(i=t[n],i===0&&1/i===r)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(i=t[n],typeof i=="number"&&i!==i)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Gu(t[n],e))return n;n+=1}return-1}function Ig(t,e){return XC(e,t,0)>=0}function eS(t){return t}var tS=Er(eS),Og=function(){function t(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return t.prototype.add=function(e){return!Lg(e,!0,this)},t.prototype.has=function(e){return Lg(e,!1,this)},t}();function Lg(t,e,n){var r=typeof t,i,s;switch(r){case"string":case"number":return t===0&&1/t===-1/0?n._items["-0"]?!0:(e&&(n._items["-0"]=!0),!1):n._nativeSet!==null?e?(i=n._nativeSet.size,n._nativeSet.add(t),s=n._nativeSet.size,s===i):n._nativeSet.has(t):r in n._items?t in n._items[r]?!0:(e&&(n._items[r][t]=!0),!1):(e&&(n._items[r]={},n._items[r][t]=!0),!1);case"boolean":if(r in n._items){var o=t?1:0;return n._items[r][o]?!0:(e&&(n._items[r][o]=!0),!1)}else return e&&(n._items[r]=t?[!1,!0]:[!0,!1]),!1;case"function":return n._nativeSet!==null?e?(i=n._nativeSet.size,n._nativeSet.add(t),s=n._nativeSet.size,s===i):n._nativeSet.has(t):r in n._items?Ig(t,n._items[r])?!0:(e&&n._items[r].push(t),!1):(e&&(n._items[r]=[t]),!1);case"undefined":return n._items[r]?!0:(e&&(n._items[r]=!0),!1);case"object":if(t===null)return n._items.null?!0:(e&&(n._items.null=!0),!1);default:return r=Object.prototype.toString.call(t),r in n._items?Ig(t,n._items[r])?!0:(e&&n._items[r].push(t),!1):(e&&(n._items[r]=[t]),!1)}}var nS=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=$u.init,t.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),e},t}();function rS(t){return function(e){return new nS(t,e)}}var Mg=Hu(Cg([],rS,function(e,n){for(var r=n.length-1;r>=0;){if(e(n[r]))return r;r-=1}return-1})),iS=function(){function t(e,n){this.xf=n,this.f=e,this.set=new Og}return t.prototype["@@transducer/init"]=$u.init,t.prototype["@@transducer/result"]=$u.result,t.prototype["@@transducer/step"]=function(e,n){return this.set.add(this.f(n))?this.xf["@@transducer/step"](e,n):e},t}();function sS(t){return function(e){return new iS(t,e)}}var oS=Hu(Cg([],sS,function(t,e){for(var n=new Og,r=[],i=0,s,o;i<e.length;)o=e[i],s=t(o),n.add(s)&&r.push(o),i+=1;return r})),aS=oS(tS);const lS={version:"1.1.8-alpha.0"};var qe=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},rt={searchParams:"URLSearchParams"in qe,iterable:"Symbol"in qe&&"iterator"in Symbol,blob:"FileReader"in qe&&"Blob"in qe&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in qe,arrayBuffer:"ArrayBuffer"in qe};function cS(t){return t&&DataView.prototype.isPrototypeOf(t)}if(rt.arrayBuffer)var uS=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],dS=ArrayBuffer.isView||function(t){return t&&uS.indexOf(Object.prototype.toString.call(t))>-1};function vi(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function Ku(t){return typeof t!="string"&&(t=String(t)),t}function Zu(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return rt.iterable&&(e[Symbol.iterator]=function(){return e}),e}function Ae(t){this.map={},t instanceof Ae?t.forEach(function(e,n){this.append(n,e)},this):Array.isArray(t)?t.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):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}Ae.prototype.append=function(t,e){t=vi(t),e=Ku(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},Ae.prototype.delete=function(t){delete this.map[vi(t)]},Ae.prototype.get=function(t){return t=vi(t),this.has(t)?this.map[t]:null},Ae.prototype.has=function(t){return this.map.hasOwnProperty(vi(t))},Ae.prototype.set=function(t,e){this.map[vi(t)]=Ku(e)},Ae.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},Ae.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),Zu(t)},Ae.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Zu(t)},Ae.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),Zu(t)},rt.iterable&&(Ae.prototype[Symbol.iterator]=Ae.prototype.entries);function Qu(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function Ng(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function fS(t){var e=new FileReader,n=Ng(e);return e.readAsArrayBuffer(t),n}function hS(t){var e=new FileReader,n=Ng(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8";return e.readAsText(t,i),n}function pS(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}function Dg(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Ag(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:rt.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:rt.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:rt.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():rt.arrayBuffer&&rt.blob&&cS(t)?(this._bodyArrayBuffer=Dg(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):rt.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||dS(t))?this._bodyArrayBuffer=Dg(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):rt.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},rt.blob&&(this.blob=function(){var t=Qu(this);if(t)return t;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 t=Qu(this);return t||(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(rt.blob)return this.blob().then(fS);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=Qu(this);if(t)return t;if(this._bodyBlob)return hS(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(pS(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},rt.formData&&(this.formData=function(){return this.text().then(vS)}),this.json=function(){return this.text().then(JSON.parse)},this}var mS=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function gS(t){var e=t.toUpperCase();return mS.indexOf(e)>-1?e:t}function Pr(t,e){if(!(this instanceof Pr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var n=e.body;if(t instanceof Pr){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Ae(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Ae(e.headers)),this.method=gS(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in qe){var s=new AbortController;return s.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(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 i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Pr.prototype.clone=function(){return new Pr(this,{body:this._bodyInit})};function vS(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(s))}}),e}function yS(t){var e=new Ae,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
|
|
41
|
+
`||r==="\r"?(c(),s=2):o+=r),s===3&&o==="!--"&&(s=4,l=l[0])}return c(),l}(t)),e),arguments,[])).length>1?e:e[0]}function gi(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Er(t){return function e(n){return arguments.length===0||gi(n)?e:t.apply(this,arguments)}}function Hu(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return gi(n)?e:Er(function(i){return t(n,i)});default:return gi(n)&&gi(r)?e:gi(n)?Er(function(i){return t(i,r)}):gi(r)?Er(function(i){return t(n,i)}):t(n,r)}}}const WC=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function GC(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Cg(t,e,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!WC(r)){for(var i=0;i<t.length;){if(typeof r[t[i]]=="function")return r[t[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(GC(r)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(r)}}return n.apply(this,arguments)}}const $u={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Sg(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function wg(t,e,n){for(var r=0,i=n.length;r<i;){if(t(e,n[r]))return!0;r+=1}return!1}function KC(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function xa(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function ZC(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const qu=typeof Object.is=="function"?Object.is:ZC;var Tg=Object.prototype.toString,QC=function(){return Tg.call(arguments)==="[object Arguments]"?function(e){return Tg.call(e)==="[object Arguments]"}:function(e){return xa("callee",e)}}(),JC=!{toString:null}.propertyIsEnumerable("toString"),xg=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Eg=function(){return arguments.propertyIsEnumerable("length")}(),YC=function(e,n){for(var r=0;r<e.length;){if(e[r]===n)return!0;r+=1}return!1},Pg=Er(typeof Object.keys=="function"&&!Eg?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,r,i=[],s=Eg&&QC(e);for(n in e)xa(n,e)&&(!s||n!=="length")&&(i[i.length]=n);if(JC)for(r=xg.length-1;r>=0;)n=xg[r],xa(n,e)&&!YC(i,n)&&(i[i.length]=n),r-=1;return i}),_g=Er(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Rg(t,e,n,r){var i=Sg(t),s=Sg(e);function o(a,l){return Wu(a,l,n.slice(),r.slice())}return!wg(function(a,l){return!wg(o,l,a)},s,i)}function Wu(t,e,n,r){if(qu(t,e))return!0;var i=_g(t);if(i!==_g(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(i){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&KC(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&qu(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!qu(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return r[s]===e;s-=1}switch(i){case"Map":return t.size!==e.size?!1:Rg(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size!==e.size?!1:Rg(t.values(),e.values(),n.concat([t]),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 o=Pg(t);if(o.length!==Pg(e).length)return!1;var a=n.concat([t]),l=r.concat([e]);for(s=o.length-1;s>=0;){var c=o[s];if(!(xa(c,e)&&Wu(e[c],t[c],a,l)))return!1;s-=1}return!0}var Gu=Hu(function(e,n){return Wu(e,n,[],[])});function XC(t,e,n){var r,i;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(r=1/e;n<t.length;){if(i=t[n],i===0&&1/i===r)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(i=t[n],typeof i=="number"&&i!==i)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Gu(t[n],e))return n;n+=1}return-1}function Ig(t,e){return XC(e,t,0)>=0}function eS(t){return t}var tS=Er(eS),Og=function(){function t(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return t.prototype.add=function(e){return!Lg(e,!0,this)},t.prototype.has=function(e){return Lg(e,!1,this)},t}();function Lg(t,e,n){var r=typeof t,i,s;switch(r){case"string":case"number":return t===0&&1/t===-1/0?n._items["-0"]?!0:(e&&(n._items["-0"]=!0),!1):n._nativeSet!==null?e?(i=n._nativeSet.size,n._nativeSet.add(t),s=n._nativeSet.size,s===i):n._nativeSet.has(t):r in n._items?t in n._items[r]?!0:(e&&(n._items[r][t]=!0),!1):(e&&(n._items[r]={},n._items[r][t]=!0),!1);case"boolean":if(r in n._items){var o=t?1:0;return n._items[r][o]?!0:(e&&(n._items[r][o]=!0),!1)}else return e&&(n._items[r]=t?[!1,!0]:[!0,!1]),!1;case"function":return n._nativeSet!==null?e?(i=n._nativeSet.size,n._nativeSet.add(t),s=n._nativeSet.size,s===i):n._nativeSet.has(t):r in n._items?Ig(t,n._items[r])?!0:(e&&n._items[r].push(t),!1):(e&&(n._items[r]=[t]),!1);case"undefined":return n._items[r]?!0:(e&&(n._items[r]=!0),!1);case"object":if(t===null)return n._items.null?!0:(e&&(n._items.null=!0),!1);default:return r=Object.prototype.toString.call(t),r in n._items?Ig(t,n._items[r])?!0:(e&&n._items[r].push(t),!1):(e&&(n._items[r]=[t]),!1)}}var nS=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=$u.init,t.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),e},t}();function rS(t){return function(e){return new nS(t,e)}}var Mg=Hu(Cg([],rS,function(e,n){for(var r=n.length-1;r>=0;){if(e(n[r]))return r;r-=1}return-1})),iS=function(){function t(e,n){this.xf=n,this.f=e,this.set=new Og}return t.prototype["@@transducer/init"]=$u.init,t.prototype["@@transducer/result"]=$u.result,t.prototype["@@transducer/step"]=function(e,n){return this.set.add(this.f(n))?this.xf["@@transducer/step"](e,n):e},t}();function sS(t){return function(e){return new iS(t,e)}}var oS=Hu(Cg([],sS,function(t,e){for(var n=new Og,r=[],i=0,s,o;i<e.length;)o=e[i],s=t(o),n.add(s)&&r.push(o),i+=1;return r})),aS=oS(tS);const lS={version:"1.1.8-alpha.1"};var qe=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},rt={searchParams:"URLSearchParams"in qe,iterable:"Symbol"in qe&&"iterator"in Symbol,blob:"FileReader"in qe&&"Blob"in qe&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in qe,arrayBuffer:"ArrayBuffer"in qe};function cS(t){return t&&DataView.prototype.isPrototypeOf(t)}if(rt.arrayBuffer)var uS=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],dS=ArrayBuffer.isView||function(t){return t&&uS.indexOf(Object.prototype.toString.call(t))>-1};function vi(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function Ku(t){return typeof t!="string"&&(t=String(t)),t}function Zu(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return rt.iterable&&(e[Symbol.iterator]=function(){return e}),e}function Ae(t){this.map={},t instanceof Ae?t.forEach(function(e,n){this.append(n,e)},this):Array.isArray(t)?t.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):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}Ae.prototype.append=function(t,e){t=vi(t),e=Ku(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},Ae.prototype.delete=function(t){delete this.map[vi(t)]},Ae.prototype.get=function(t){return t=vi(t),this.has(t)?this.map[t]:null},Ae.prototype.has=function(t){return this.map.hasOwnProperty(vi(t))},Ae.prototype.set=function(t,e){this.map[vi(t)]=Ku(e)},Ae.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},Ae.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),Zu(t)},Ae.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Zu(t)},Ae.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),Zu(t)},rt.iterable&&(Ae.prototype[Symbol.iterator]=Ae.prototype.entries);function Qu(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function Ng(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function fS(t){var e=new FileReader,n=Ng(e);return e.readAsArrayBuffer(t),n}function hS(t){var e=new FileReader,n=Ng(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8";return e.readAsText(t,i),n}function pS(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}function Dg(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Ag(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:rt.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:rt.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:rt.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():rt.arrayBuffer&&rt.blob&&cS(t)?(this._bodyArrayBuffer=Dg(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):rt.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||dS(t))?this._bodyArrayBuffer=Dg(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):rt.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},rt.blob&&(this.blob=function(){var t=Qu(this);if(t)return t;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 t=Qu(this);return t||(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(rt.blob)return this.blob().then(fS);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=Qu(this);if(t)return t;if(this._bodyBlob)return hS(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(pS(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},rt.formData&&(this.formData=function(){return this.text().then(vS)}),this.json=function(){return this.text().then(JSON.parse)},this}var mS=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function gS(t){var e=t.toUpperCase();return mS.indexOf(e)>-1?e:t}function Pr(t,e){if(!(this instanceof Pr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var n=e.body;if(t instanceof Pr){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Ae(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Ae(e.headers)),this.method=gS(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in qe){var s=new AbortController;return s.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(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 i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Pr.prototype.clone=function(){return new Pr(this,{body:this._bodyInit})};function vS(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(s))}}),e}function yS(t){var e=new Ae,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
|
|
42
42
|
`)===0?r.substr(1,r.length):r}).forEach(function(r){var i=r.split(":"),s=i.shift().trim();if(s){var o=i.join(":").trim();try{e.append(s,o)}catch(a){console.warn("Response "+a.message)}}}),e}Ag.call(Pr.prototype);function nn(t,e){if(!(this instanceof nn))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 Ae(e.headers),this.url=e.url||"",this._initBody(t)}Ag.call(nn.prototype),nn.prototype.clone=function(){return new nn(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ae(this.headers),url:this.url})},nn.error=function(){var t=new nn(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var bS=[301,302,303,307,308];nn.redirect=function(t,e){if(bS.indexOf(e)===-1)throw new RangeError("Invalid status code");return new nn(null,{status:e,headers:{location:t}})};var _r=qe.DOMException;try{new _r}catch{_r=function(e,n){this.message=e,this.name=n;var r=Error(e);this.stack=r.stack},_r.prototype=Object.create(Error.prototype),_r.prototype.constructor=_r}function jg(t,e){return new Promise(function(n,r){var i=new Pr(t,e);if(i.signal&&i.signal.aborted)return r(new _r("Aborted","AbortError"));var s=new XMLHttpRequest;function o(){s.abort()}s.onload=function(){var c={statusText:s.statusText,headers:yS(s.getAllResponseHeaders()||"")};i.url.indexOf("file://")===0&&(s.status<200||s.status>599)?c.status=200:c.status=s.status,c.url="responseURL"in s?s.responseURL:c.headers.get("X-Request-URL");var u="response"in s?s.response:s.responseText;setTimeout(function(){n(new nn(u,c))},0)},s.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){r(new _r("Aborted","AbortError"))},0)};function a(c){try{return c===""&&qe.location.href?qe.location.href:c}catch{return c}}if(s.open(i.method,a(i.url),!0),i.credentials==="include"?s.withCredentials=!0:i.credentials==="omit"&&(s.withCredentials=!1),"responseType"in s&&(rt.blob?s.responseType="blob":rt.arrayBuffer&&(s.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof Ae||qe.Headers&&e.headers instanceof qe.Headers)){var l=[];Object.getOwnPropertyNames(e.headers).forEach(function(c){l.push(vi(c)),s.setRequestHeader(c,Ku(e.headers[c]))}),i.headers.forEach(function(c,u){l.indexOf(u)===-1&&s.setRequestHeader(u,c)})}else i.headers.forEach(function(c,u){s.setRequestHeader(u,c)});i.signal&&(i.signal.addEventListener("abort",o),s.onreadystatechange=function(){s.readyState===4&&i.signal.removeEventListener("abort",o)}),s.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}jg.polyfill=!0,qe.fetch||(qe.fetch=jg,qe.Headers=Ae,qe.Request=Pr,qe.Response=nn);var kS=self.fetch.bind(self);const Ju=oe(kS);function Te(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Rr(t){return function e(n){return arguments.length===0||Te(n)?e:t.apply(this,arguments)}}function yi(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return Te(n)?e:Rr(function(i){return t(n,i)});default:return Te(n)&&Te(r)?e:Te(n)?Rr(function(i){return t(i,r)}):Te(r)?Rr(function(i){return t(n,i)}):t(n,r)}}}function CS(t,e){t=t||[],e=e||[];var n,r=t.length,i=e.length,s=[];for(n=0;n<r;)s[s.length]=t[n],n+=1;for(n=0;n<i;)s[s.length]=e[n],n+=1;return s}function SS(t){return function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return Te(n)?e:yi(function(s,o){return t(n,s,o)});case 2:return Te(n)&&Te(r)?e:Te(n)?yi(function(s,o){return t(s,r,o)}):Te(r)?yi(function(s,o){return t(n,s,o)}):Rr(function(s){return t(n,r,s)});default:return Te(n)&&Te(r)&&Te(i)?e:Te(n)&&Te(r)?yi(function(s,o){return t(s,o,i)}):Te(n)&&Te(i)?yi(function(s,o){return t(s,r,o)}):Te(r)&&Te(i)?yi(function(s,o){return t(n,s,o)}):Te(n)?Rr(function(s){return t(s,r,i)}):Te(r)?Rr(function(s){return t(n,s,i)}):Te(i)?Rr(function(s){return t(n,r,s)}):t(n,r,i)}}}var Ug=SS(function(e,n,r){var i=r.length;if(e>=i||e<-i)return r;var s=(i+e)%i,o=CS(r);return o[s]=n(r[s]),o});/*! *****************************************************************************
|
|
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: `+s.message+`
|
|
|
57
57
|
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
|
58
58
|
* https://github.com/pladaria/reconnecting-websocket
|
|
59
59
|
* License MIT
|
|
60
|
-
*/var _S=function(){if(typeof WebSocket<"u")return WebSocket},RS=function(t){return typeof t<"u"&&!!t&&t.CLOSING===2},Ir={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Xu=function(){function t(e,n,r){var i=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(s){i._debug("open event");var o=i._options.minUptime,a=o===void 0?Ir.minUptime:o;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},a),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(l){return i._ws.send(l)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(l){return i._callEventListener(s,l)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(o){return i._callEventListener(s,o)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(o){return i._callEventListener(s,o)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(o){return i._callEventListener(s,o)})},this._url=e,this._protocols=n,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(t,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CONNECTING",{get:function(){return t.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OPEN",{get:function(){return t.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CLOSING",{get:function(){return t.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CLOSED",{get:function(){return t.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(t.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(t.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(n,r){return typeof r=="string"?n+=r.length:r instanceof Blob?n+=r.size:n+=r.byteLength,n},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?t.CLOSED:t.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),t.prototype.close=function(e,n){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,n)},t.prototype.reconnect=function(e,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,n),this._connect())},t.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var n=this._options.maxEnqueuedMessages,r=n===void 0?Ir.maxEnqueuedMessages:n;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},t.prototype.addEventListener=function(e,n){this._listeners[e]&&this._listeners[e].push(n)},t.prototype.dispatchEvent=function(e){var n,r,i=this._listeners[e.type];if(i)try{for(var s=wS(i),o=s.next();!o.done;o=s.next()){var a=o.value;this._callEventListener(e,a)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!0},t.prototype.removeEventListener=function(e,n){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(function(r){return r!==n}))},t.prototype._debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._options.debug&&console.log.apply(console,xS(["RWS>"],e))},t.prototype._getNextDelay=function(){var e=this._options,n=e.reconnectionDelayGrowFactor,r=n===void 0?Ir.reconnectionDelayGrowFactor:n,i=e.minReconnectionDelay,s=i===void 0?Ir.minReconnectionDelay:i,o=e.maxReconnectionDelay,a=o===void 0?Ir.maxReconnectionDelay:o,l=0;return this._retryCount>0&&(l=s*Math.pow(r,this._retryCount-1),l>a&&(l=a)),this._debug("next delay",l),l},t.prototype._wait=function(){var e=this;return new Promise(function(n){setTimeout(n,e._getNextDelay())})},t.prototype._getNextUrl=function(e){if(typeof e=="string")return Promise.resolve(e);if(typeof e=="function"){var n=e();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},t.prototype._connect=function(){var e=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,r=n.maxRetries,i=r===void 0?Ir.maxRetries:r,s=n.connectionTimeout,o=s===void 0?Ir.connectionTimeout:s,a=n.WebSocket,l=a===void 0?_S():a;if(this._retryCount>=i){this._debug("max retries reached",this._retryCount,">=",i);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!RS(l))throw Error("No valid WebSocket class provided");this._wait().then(function(){return e._getNextUrl(e._url)}).then(function(c){e._closeCalled||(e._debug("connect",{url:c,protocols:e._protocols}),e._ws=e._protocols?new l(c,e._protocols):new l(c),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout(function(){return e._handleTimeout()},o))})}},t.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new ES(Error("TIMEOUT"),this))},t.prototype._disconnect=function(e,n){if(e===void 0&&(e=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(e,n),this._handleClose(new PS(e,n,this))}catch{}}},t.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},t.prototype._callEventListener=function(e,n){"handleEvent"in n?n.handleEvent(e):n(e)},t.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))},t.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))},t.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},t}();let Ea;const IS=new Uint8Array(16);function OS(){if(!Ea&&(Ea=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ea))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ea(IS)}const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function LS(t,e=0){return We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]}const Vg={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function zg(t,e,n){if(Vg.randomUUID&&!t)return Vg.randomUUID();t=t||{};const r=t.random||(t.rng||OS)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,LS(r)}var MS="@nlxai/core",NS="1.1.8-alpha.0",DS="Low-level SDK for building NLX experiences",AS="module",jS="lib/index.cjs",US="lib/index.esm.js",FS="lib/index.umd.js",BS="lib/index.d.ts",VS={".":{types:"./lib/index.d.ts",import:"./lib/index.esm.js",require:"./lib/index.cjs"}},zS={build:"rm -rf lib && rollup -c --configPlugin typescript --configImportAttributesKey with",docs:"rm -rf docs/ && typedoc && concat-md --decrease-title-levels --dir-name-as-title docs/ > docs/index.md","lint:check":"eslint src/ --ext .ts,.tsx,.js,.jsx --max-warnings 0",lint:"eslint src/ --ext .ts,.tsx,.js,.jsx --fix",prepublish:"npm run build","preview-docs":"npm run docs && comrak --unsafe --gfm -o docs/index.html docs/index.md && open docs/index.html","publish-docs":"npm run docs && mv docs/index.md ../website/src/content/headless-api-reference.md",test:"typedoc --emit none",tsc:"tsc"},HS="Peter Szerzo <peter@nlx.ai>",$S="MIT",qS={"@types/isomorphic-fetch":"^0.0.36","@types/node":"^22.10.1","@types/ramda":"0.29.1","@types/uuid":"^9.0.7","concat-md":"^0.5.1","eslint-config-nlx":"*",prettier:"^3.1.0","rollup-config-nlx":"*",typedoc:"^0.25.13","typedoc-plugin-markdown":"^3.17.1",typescript:"^5.5.4"},WS={"isomorphic-fetch":"^3.0.0",ramda:"^0.29.1","reconnecting-websocket":"^4.4.0",uuid:"^9.0.1"},GS={access:"public"},KS="8f4341c889c73a3b681dcdf25420ecec285c1ef6",ed={name:MS,version:NS,description:DS,type:AS,main:jS,module:US,browser:FS,types:BS,exports:VS,scripts:zS,author:HS,license:$S,devDependencies:qS,dependencies:WS,publishConfig:GS,gitHead:KS};const bi=console;var it;(function(t){t.Application="bot",t.User="user",t.Failure="failure"})(it||(it={}));const Hg="NLX.Welcome",ZS="We encountered an issue. Please try again soon.",$g=t=>Array.isArray(t)?t:Object.entries(t).map(([e,n])=>({slotId:e,value:n})),qg=t=>({...t,intentId:t.flowId??t.intentId,slots:t.slots!=null?$g(t.slots):t.slots}),Wg=t=>t.responses,td=t=>{try{return JSON.parse(t)}catch{return null}},Gg=t=>{var e;return((e=t.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"},QS=t=>{if(Jn(t))return t;const e=Gg(t),r=new URL(t).pathname.split("/"),i=r[2],s=r[3];return`wss://us-east-1-ws.${e}?deploymentKey=${i}&channelKey=${s}`},Kg=t=>{if(!Jn(t))return t;const e=Gg(t),n=new URL(t),r=new URLSearchParams(n.search),i=r.get("channelKey"),s=r.get("deploymentKey");return`https://${e}/c/${s}/${i}`},Jn=t=>t.indexOf("wss://")===0,JS=t=>(t.applicationUrl??"").length>0;function YS(t){let e,n=[],r=null,i,s=[],o=null;const a=t.applicationUrl??"";/[-|_][a-z]{2,}[-|_][A-Z]{2,}$/.test(a)&&bi.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 l={voicePlusCommand:[]},c=t.conversationId??zg();let u={responses:t.responses??[],languageCode:t.languageCode,userId:t.userId,conversationId:c};const d=()=>{var L;return`${Kg(a)}${((L=t.experimental)==null?void 0:L.completeApplicationUrl)===!0?"":`-${u.languageCode}`}`},f=(L,U)=>{u={...u,...L},b.forEach(B=>{B(Wg(u),U)})},h=()=>{const L={type:it.Failure,receivedAt:new Date().getTime(),payload:{text:t.failureMessage??ZS}};f({responses:[...u.responses,L]},L)},g=L=>{if((L==null?void 0:L.messages.length)>0){const U={type:it.Application,receivedAt:new Date().getTime(),payload:{...L,messages:L.messages.map(B=>({nodeId:B.nodeId,messageId:B.messageId,text:B.text,choices:B.choices??[]}))}};f({responses:[...u.responses,U]},U),L.metadata.hasPendingDataRequest&&(M({poll:!0}),setTimeout(()=>{m({request:{structured:{poll:!0}}})},1500))}else bi.warn("Invalid message structure, expected object with field 'messages'."),h()};let v;const T=L=>{(i==null?void 0:i.readyState)===1?i.send(JSON.stringify(L)):s=[...s,L]},m=async L=>{var B;if(v!=null){v(L,R=>{const $={type:it.Application,receivedAt:new Date().getTime(),payload:R};f({responses:[...u.responses,$]},$)});return}const U={userId:u.userId,conversationId:u.conversationId,...L,languageCode:u.languageCode,channelType:(B=t.experimental)==null?void 0:B.channelType,environment:t.environment};if(Jn(a))(e==null?void 0:e.readyState)===1?e.send(JSON.stringify(U)):n=[...n,U];else try{const R=await Ju(d(),{method:"POST",headers:{...t.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-sdk-version":ed.version},body:JSON.stringify(U)});if(R.status>=400)throw new Error(`Responded with ${R.status}`);const $=await R.json();g($)}catch(R){bi.warn(R),h()}};let b=[];const p=async()=>{(e==null?void 0:e.readyState)===1&&n[0]!=null&&(await m(n[0]),n=n.slice(1))},k=()=>{(i==null?void 0:i.readyState)===1&&s[0]!=null&&(T(s[0]),s=s.slice(1))},C=()=>{var U;E();const L=new URL(a);((U=t.experimental)==null?void 0:U.completeApplicationUrl)!==!0&&(L.searchParams.set("languageCode",u.languageCode),L.searchParams.set("channelKey",`${L.searchParams.get("channelKey")??""}-${u.languageCode}`)),L.searchParams.set("conversationId",u.conversationId),e=new Xu(L.href),r=setInterval(()=>{p()},500),e.onmessage=function(B){typeof(B==null?void 0:B.data)=="string"&&g(td(B.data))},L.searchParams.set("voice-plus","true"),i=new Xu(L.href),o=setInterval(()=>{k()},500),i.onmessage=B=>{if(typeof(B==null?void 0:B.data)=="string"){const R=td(B.data);R!=null&&l.voicePlusCommand.forEach($=>{$(R)})}}},w=()=>{var B;if(x(),t.bidirectional!==!0)return;const L=new URL(QS(a));((B=t.experimental)==null?void 0:B.completeApplicationUrl)!==!0&&(L.searchParams.set("languageCode",u.languageCode),L.searchParams.set("channelKey",`${L.searchParams.get("channelKey")??""}-${u.languageCode}`)),L.searchParams.set("conversationId",u.conversationId),L.searchParams.set("type","voice-plus");const U=t.headers["nlx-api-key"];!Jn(a)&&U!=null&&L.searchParams.set("apiKey",U),i=new Xu(L.href),o=setInterval(()=>{k()},500),i.onmessage=R=>{if(typeof(R==null?void 0:R.data)=="string"){const $=td(R.data);$!=null&&l.voicePlusCommand.forEach(W=>{W($)})}}},E=()=>{r!=null&&clearInterval(r),e!=null&&(e.onmessage=null,e.close(),e=void 0)},x=()=>{o!=null&&clearInterval(o),i!=null&&(i.onmessage=null,i.close(),i=void 0)};Jn(a)&&C(),w();const M=(L,U)=>{const B={type:it.User,receivedAt:new Date().getTime(),payload:{type:"structured",...qg(L),context:U}};f({responses:[...u.responses,B]},B)},_=(L,U)=>{M({intentId:L},U),m({context:U,request:{structured:{intentId:L}}})},j=(L,U)=>{const B={type:it.User,receivedAt:new Date().getTime(),payload:{type:"text",text:L,context:U}};f({responses:[...u.responses,B]},B),m({context:U,request:{unstructured:{text:L}}})},q=(L,U,B)=>{let R=[...u.responses];const $={type:it.User,receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:L}},W=(B==null?void 0:B.responseIndex)??-1,X=(B==null?void 0:B.messageIndex)??-1;W>-1&&X>-1&&(R=Ug(W,ue=>ue.type===it.Application?{...ue,payload:{...ue.payload,messages:Ug(X,_n=>({..._n,selectedChoiceId:L}),ue.payload.messages)}}:ue,R)),R=[...R,$],f({responses:R},$),m({context:U,request:{structured:{nodeId:B==null?void 0:B.nodeId,intentId:B==null?void 0:B.intentId,choiceId:L}}})},K=L=>{b=b.filter(U=>U!==L)};return{sendText:j,sendContext:async L=>{const U=await Ju(`${d()}/context`,{method:"POST",headers:{...t.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-conversation-id":u.conversationId,"nlx-sdk-version":ed.version},body:JSON.stringify({languageCode:u.languageCode,conversationId:u.conversationId,userId:u.userId,context:L})});if(U.status>=400)throw new Error(`Responded with ${U.status}`)},sendStructured:(L,U)=>{M(L,U),m({context:U,request:{structured:qg(L)}})},sendSlots:(L,U)=>{M({slots:L},U),m({context:U,request:{structured:{slots:$g(L)}}})},sendFlow:_,sendIntent:(L,U)=>{bi.warn("Calling `sendIntent` is deprecated and will be removed in a future version of the SDK. Use `sendFlow` instead."),_(L,U)},sendWelcomeFlow:L=>{_(Hg,L)},sendWelcomeIntent:L=>{bi.warn("Calling `sendWelcomeIntent` is deprecated and will be removed in a future version of the SDK. Use `sendWelcomeFlow` instead."),_(Hg,L)},sendChoice:q,currentConversationId:()=>u.conversationId,setLanguageCode:L=>{if(L===u.languageCode){bi.warn("Attempted to set language code to the one already active.");return}Jn(a)&&C(),w(),f({languageCode:L})},currentLanguageCode:()=>u.languageCode,getVoiceCredentials:async L=>{const U=Kg(a),B=await Ju(`${U}-${u.languageCode}/requestToken`,{method:"POST",headers:{...t.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-conversation-id":u.conversationId,"nlx-sdk-version":ed.version},body:JSON.stringify({languageCode:u.languageCode,conversationId:u.conversationId,userId:u.userId,requestToken:!0,context:L})});if(B.status>=400)throw new Error(`Responded with ${B.status}`);const R=await B.json();if((R==null?void 0:R.url)==null)throw new Error("Invalid response");return R},subscribe:L=>(b=[...b,L],L(Wg(u)),()=>{K(L)}),unsubscribe:K,unsubscribeAll:()=>{b=[]},reset:L=>{f({conversationId:zg(),responses:(L==null?void 0:L.clearResponses)===!0?[]:u.responses}),Jn(a)&&C(),w()},destroy:()=>{b=[],Jn(a)&&E(),x()},setRequestOverride:L=>{v=L},addEventListener:(L,U)=>{l[L]=[...l[L],U]},removeEventListener:(L,U)=>{l[L]=l[L].filter(B=>B!==U)},sendVoicePlusContext:L=>{T({context:L})}}}function Zg(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Zg(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Z(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Zg(t))&&(r&&(r+=" "),r+=e);return r}const Q=t=>({width:t.size!=null?`${t.size}px`:"100%",height:t.size!=null?`${t.size}px`:"100%",className:t.className}),XS=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),Ms=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.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"}),y.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"}),y.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"}),y.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"})]}),ew=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),tw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),Qg=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M12 15.41L6 9.40997L7.41 7.99997L12 12.58L16.59 7.99997L18 9.40997L12 15.41Z",fill:"currentColor"})}),nw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M7.59001 12L13.59 18L15 16.59L10.42 12L15 7.41002L13.59 6.00002L7.59001 12Z",fill:"currentColor"})}),Jg=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M15 12L9.00005 18L7.59005 16.59L12.17 12L7.59005 7.41002L9.00005 6.00002L15 12Z",fill:"currentColor"})}),rw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),Pa=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",fill:"currentColor"})}),nd=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),iw=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.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"})]}),Yg=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M8.99991 16.17L4.82991 12L3.40991 13.41L8.99991 19L20.9999 7L19.5899 5.59L8.99991 16.17Z",fill:"currentColor"})}),Ns=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),sw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),Xg=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),ev=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.jsx("path",{d:"M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4Z",fill:"currentColor"})]}),tv=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.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"}),y.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"}),y.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"})]}),rd=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),ow=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),_a=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),id=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),aw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),Ra=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),sd=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),lw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),cw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),uw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),dw=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.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"})]}),fw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),Ds=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),nv=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),hw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),pw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),rv=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),mw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),gw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),vw=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.jsx("path",{d:"M11 7H12.5V12.25L17 14.92L16.25 16.15L11 13V7Z",fill:"currentColor"}),y.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"})]}),iv=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),yw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),bw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),sv=t=>y.jsxs("svg",{viewBox:"0 0 16 16",...Q(t),fill:"currentColor",children:[y.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"}),y.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"})]}),ov=Object.freeze(Object.defineProperty({__proto__:null,Action:XS,Add:tw,ArrowDown:Qg,ArrowForward:Pa,ArrowLeft:nw,ArrowRight:Jg,ArrowUp:rw,AssistantOld:ew,Attachment:nd,Camera:iw,Check:Yg,Close:Ns,Copy:sw,Date:Xg,Delete:ev,Error:rd,Escalate:tv,FullScreen:ow,Help:bw,Location:aw,Mic:_a,MicOff:id,OpenInNew:cw,OpenLink:sv,Play:uw,Preview:dw,Refresh:yw,Reorder:fw,Restart:Ds,Search:hw,Settings:nv,Share:pw,ThumbDown:mw,ThumbUp:gw,Time:vw,Touchpoint:Ms,Translate:lw,Undo:iv,Volume:Ra,VolumeOff:sd,Warning:rv},Symbol.toStringTag,{value:"Module"})),kw=t=>{const{Custom:e}=t;return e!=null?y.jsx(e,{className:t.className,onClick:t.onClick}):y.jsxs("button",{className:Z("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",t.className),disabled:t.onClick==null,onClick:t.onClick,children:[y.jsx("span",{className:"block flex-none w-8 h-8",children:t.iconUrl==null?y.jsx(Ms,{}):y.jsx("img",{src:t.iconUrl,className:"w-8 h-8"})}),t.showLabel??!1?y.jsx("span",{children:t.label}):null]})},av="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",lv="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",cv="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",uv="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",dv="bg-secondary-60 backdrop-blur 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",fv="bg-background backdrop-blur 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",hv="bg-error-primary text-secondary-80 enabled:hover:before:bg-primary-10",Cw=({type:t,Icon:e})=>y.jsx("span",{className:Z(av,"block",t==="main"?lv:null,t==="ghost"?cv:null,t==="activated"?uv:null,t==="coverup"?dv:null,t==="overlay"?fv:null,t==="error"?hv:null),children:y.jsx(e,{})}),Be=({onClick:t,type:e,label:n,className:r,Icon:i})=>{const s=t==null;return y.jsx("button",{onClick:s?void 0:t,disabled:s,"aria-label":n,className:Z(av,e==="main"?lv:null,e==="ghost"?cv:null,e==="activated"?uv:null,e==="coverup"?dv:null,e==="overlay"?fv:null,e==="error"?hv:null,r),children:y.jsx(i,{})})};function Sw(t){const e=D.useRef(t);return e.current=t,D.useMemo(()=>Object.freeze({get current(){return e.current}}),[])}function ww(t){const e=Sw(t);D.useEffect(()=>()=>{e.current()},[])}function Tw(t,e,n,r=0){const i=D.useRef(),s=D.useRef(),o=D.useRef(t),a=D.useRef(),l=()=>{i.current&&(clearTimeout(i.current),i.current=void 0),s.current&&(clearTimeout(s.current),s.current=void 0)};return ww(l),D.useEffect(()=>{o.current=t},e),D.useMemo(()=>{const c=()=>{if(l(),!a.current)return;const d=a.current;a.current=void 0,o.current.apply(d.this,d.args)},u=function(...d){i.current&&clearTimeout(i.current),a.current={args:d,this:this},i.current=setTimeout(c,n),r>0&&!s.current&&(s.current=setTimeout(c,r))};return Object.defineProperties(u,{length:{value:t.length},name:{value:`${t.name||"anonymous"}__debounced__${n}`}}),u},[n,r,...e])}const xw=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function pv(t,e,n=0){const[r,i]=D.useState(t);return[r,Tw(i,[],e,n)]}const ki=new Map,mv=t=>{const e=matchMedia(t),n=new Set,r=()=>{for(const i of n)i(e.matches)};return e.addEventListener("change",r,{passive:!0}),{mql:e,dispatchers:n,listener:r}},Ew=(t,e)=>{let n=ki.get(t);n||(n=mv(t),ki.set(t,n)),n.dispatchers.add(e),e(n.mql.matches)},Pw=(t,e)=>{const n=ki.get(t);if(n){const{mql:r,dispatchers:i,listener:s}=n;i.delete(e),i.size===0&&(ki.delete(t),r.removeEventListener?r.removeEventListener("change",s):r.removeListener(s))}};function _w(t,e={}){let{initializeWithValue:n=!0}=e;xw||(n=!1);const[r,i]=D.useState(()=>{if(n){let s=ki.get(t);return s||(s=mv(t),ki.set(t,s)),s.mql.matches}});return D.useEffect(()=>(Ew(t,i),()=>{Pw(t,i)}),[t]),r}const gv=t=>_w("(min-width: 768px)"),Rw=({windowSize:t,renderCollapse:e,errorThemedCloseButton:n,speakerControls:r,collapse:i,toggleSettings:s,isSettingsOpen:o,brandIcon:a,reset:l,enabled:c})=>{const u=t==="half",d=gv(),f=u&&d?"overlay":"ghost";return y.jsxs("div",{className:Z("flex","p-2 md:p-3 items-center justify-between gap-2",{"md:absolute md:w-fit md:flex-col md:left-0 md:-translate-x-full":t==="half","md:absolute md:left-0 md:right-0 md:top-0":t==="full"||t==="embedded"}),children:[a!=null?y.jsx("img",{className:"w-10 h-10 block",src:a,role:"presentation"}):null,y.jsx(Be,{label:"Reset",type:f,className:a==null?"":"ml-auto",onClick:c?()=>{l()}:void 0,Icon:iv}),s!=null?y.jsx(Be,{className:a!=null?"":"ml-auto",Icon:nv,label:"Settings",type:o?"activated":f,onClick:c?s:void 0}):null,r!=null?y.jsx(Be,{Icon:r.enabled?Ra:sd,label:"Speakers",type:r.enabled?"activated":f,onClick:()=>{r.setEnabled(h=>!h)}}):null,e?y.jsx(Be,{label:"Collapse",type:n??!1?"error":f,className:Z(s==null?"ml-auto":"",u?"md:-order-1":""),onClick:c?()=>{i(new Event("collapse"))}:void 0,Icon:Ns}):null]})},vv=()=>y.jsxs("div",{className:Z("flex-grow flex flex-col items-center justify-center gap-6 text-primary-80","fullscreen-error"),children:[y.jsx(Ms,{className:"w-20 h-20 text-primary-20"}),y.jsxs("div",{className:"text-center",children:[y.jsx("h3",{className:"text-xl mb-2",children:"Oops!"}),y.jsx("p",{children:"Something went wrong."}),y.jsx("p",{children:"Try again later."})]})]}),Ia=({k:t,className:e,style:n})=>{const i=s=>`${s}s`;return y.jsx("div",{className:Z("bg-current animate-ping absolute inset-0",e),style:{animationDelay:i(-1.5*t),animationDuration:i(1.5),...n??{}}})},Ci=({className:t,style:e})=>{const n=Z("text-accent-20",t);return y.jsxs(y.Fragment,{children:[y.jsx(Ia,{k:.12,className:n,style:e}),y.jsx(Ia,{k:.24,className:n,style:e}),y.jsx(Ia,{k:.36,className:n,style:e}),y.jsx(Ia,{k:.48,className:n,style:e})]})},Iw=30,As=17,Ow=t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,od=990,Oa=od+300,Lw=({d:t})=>{const e=Math.PI/2,n=t/As/2.8,r=e*Math.min(n,1),i=n<1?(t-Math.sin(r))/Math.cos(r)*.5:0,s=-t,o=t,a=t-As*Math.sin(r),l=As*Math.cos(r),c=a-i*Math.cos(r),u=l-i*Math.sin(r);return y.jsxs(y.Fragment,{children:[y.jsx("circle",{cx:s,cy:"0",r:As}),y.jsx("circle",{cx:o,cy:"0",r:As}),n<.45?y.jsx("path",{d:`
|
|
60
|
+
*/var _S=function(){if(typeof WebSocket<"u")return WebSocket},RS=function(t){return typeof t<"u"&&!!t&&t.CLOSING===2},Ir={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Xu=function(){function t(e,n,r){var i=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(s){i._debug("open event");var o=i._options.minUptime,a=o===void 0?Ir.minUptime:o;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},a),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(l){return i._ws.send(l)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(l){return i._callEventListener(s,l)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(o){return i._callEventListener(s,o)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(o){return i._callEventListener(s,o)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(o){return i._callEventListener(s,o)})},this._url=e,this._protocols=n,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(t,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CONNECTING",{get:function(){return t.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OPEN",{get:function(){return t.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CLOSING",{get:function(){return t.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CLOSED",{get:function(){return t.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(t.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(t.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(n,r){return typeof r=="string"?n+=r.length:r instanceof Blob?n+=r.size:n+=r.byteLength,n},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?t.CLOSED:t.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),t.prototype.close=function(e,n){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,n)},t.prototype.reconnect=function(e,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,n),this._connect())},t.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var n=this._options.maxEnqueuedMessages,r=n===void 0?Ir.maxEnqueuedMessages:n;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},t.prototype.addEventListener=function(e,n){this._listeners[e]&&this._listeners[e].push(n)},t.prototype.dispatchEvent=function(e){var n,r,i=this._listeners[e.type];if(i)try{for(var s=wS(i),o=s.next();!o.done;o=s.next()){var a=o.value;this._callEventListener(e,a)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!0},t.prototype.removeEventListener=function(e,n){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(function(r){return r!==n}))},t.prototype._debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._options.debug&&console.log.apply(console,xS(["RWS>"],e))},t.prototype._getNextDelay=function(){var e=this._options,n=e.reconnectionDelayGrowFactor,r=n===void 0?Ir.reconnectionDelayGrowFactor:n,i=e.minReconnectionDelay,s=i===void 0?Ir.minReconnectionDelay:i,o=e.maxReconnectionDelay,a=o===void 0?Ir.maxReconnectionDelay:o,l=0;return this._retryCount>0&&(l=s*Math.pow(r,this._retryCount-1),l>a&&(l=a)),this._debug("next delay",l),l},t.prototype._wait=function(){var e=this;return new Promise(function(n){setTimeout(n,e._getNextDelay())})},t.prototype._getNextUrl=function(e){if(typeof e=="string")return Promise.resolve(e);if(typeof e=="function"){var n=e();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},t.prototype._connect=function(){var e=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,r=n.maxRetries,i=r===void 0?Ir.maxRetries:r,s=n.connectionTimeout,o=s===void 0?Ir.connectionTimeout:s,a=n.WebSocket,l=a===void 0?_S():a;if(this._retryCount>=i){this._debug("max retries reached",this._retryCount,">=",i);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!RS(l))throw Error("No valid WebSocket class provided");this._wait().then(function(){return e._getNextUrl(e._url)}).then(function(c){e._closeCalled||(e._debug("connect",{url:c,protocols:e._protocols}),e._ws=e._protocols?new l(c,e._protocols):new l(c),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout(function(){return e._handleTimeout()},o))})}},t.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new ES(Error("TIMEOUT"),this))},t.prototype._disconnect=function(e,n){if(e===void 0&&(e=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(e,n),this._handleClose(new PS(e,n,this))}catch{}}},t.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},t.prototype._callEventListener=function(e,n){"handleEvent"in n?n.handleEvent(e):n(e)},t.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))},t.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))},t.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},t}();let Ea;const IS=new Uint8Array(16);function OS(){if(!Ea&&(Ea=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ea))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ea(IS)}const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function LS(t,e=0){return We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]}const Vg={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function zg(t,e,n){if(Vg.randomUUID&&!t)return Vg.randomUUID();t=t||{};const r=t.random||(t.rng||OS)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,LS(r)}var MS="@nlxai/core",NS="1.1.8-alpha.0",DS="Low-level SDK for building NLX experiences",AS="module",jS="lib/index.cjs",US="lib/index.esm.js",FS="lib/index.umd.js",BS="lib/index.d.ts",VS={".":{types:"./lib/index.d.ts",import:"./lib/index.esm.js",require:"./lib/index.cjs"}},zS={build:"rm -rf lib && rollup -c --configPlugin typescript --configImportAttributesKey with",docs:"rm -rf docs/ && typedoc && concat-md --decrease-title-levels --dir-name-as-title docs/ > docs/index.md","lint:check":"eslint src/ --ext .ts,.tsx,.js,.jsx --max-warnings 0",lint:"eslint src/ --ext .ts,.tsx,.js,.jsx --fix",prepublish:"npm run build","preview-docs":"npm run docs && comrak --unsafe --gfm -o docs/index.html docs/index.md && open docs/index.html","publish-docs":"npm run docs && mv docs/index.md ../website/src/content/headless-api-reference.md",test:"typedoc --emit none",tsc:"tsc"},HS="Peter Szerzo <peter@nlx.ai>",$S="MIT",qS={"@types/isomorphic-fetch":"^0.0.36","@types/node":"^22.10.1","@types/ramda":"0.29.1","@types/uuid":"^9.0.7","concat-md":"^0.5.1","eslint-config-nlx":"*",prettier:"^3.1.0","rollup-config-nlx":"*",typedoc:"^0.25.13","typedoc-plugin-markdown":"^3.17.1",typescript:"^5.5.4"},WS={"isomorphic-fetch":"^3.0.0",ramda:"^0.29.1","reconnecting-websocket":"^4.4.0",uuid:"^9.0.1"},GS={access:"public"},KS="c701b502f0398e9956a8b35b711a45f264fa7603",ed={name:MS,version:NS,description:DS,type:AS,main:jS,module:US,browser:FS,types:BS,exports:VS,scripts:zS,author:HS,license:$S,devDependencies:qS,dependencies:WS,publishConfig:GS,gitHead:KS};const bi=console;var it;(function(t){t.Application="bot",t.User="user",t.Failure="failure"})(it||(it={}));const Hg="NLX.Welcome",ZS="We encountered an issue. Please try again soon.",$g=t=>Array.isArray(t)?t:Object.entries(t).map(([e,n])=>({slotId:e,value:n})),qg=t=>({...t,intentId:t.flowId??t.intentId,slots:t.slots!=null?$g(t.slots):t.slots}),Wg=t=>t.responses,td=t=>{try{return JSON.parse(t)}catch{return null}},Gg=t=>{var e;return((e=t.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"},QS=t=>{if(Jn(t))return t;const e=Gg(t),r=new URL(t).pathname.split("/"),i=r[2],s=r[3];return`wss://us-east-1-ws.${e}?deploymentKey=${i}&channelKey=${s}`},Kg=t=>{if(!Jn(t))return t;const e=Gg(t),n=new URL(t),r=new URLSearchParams(n.search),i=r.get("channelKey"),s=r.get("deploymentKey");return`https://${e}/c/${s}/${i}`},Jn=t=>t.indexOf("wss://")===0,JS=t=>(t.applicationUrl??"").length>0;function YS(t){let e,n=[],r=null,i,s=[],o=null;const a=t.applicationUrl??"";/[-|_][a-z]{2,}[-|_][A-Z]{2,}$/.test(a)&&bi.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 l={voicePlusCommand:[]},c=t.conversationId??zg();let u={responses:t.responses??[],languageCode:t.languageCode,userId:t.userId,conversationId:c};const d=()=>{var L;return`${Kg(a)}${((L=t.experimental)==null?void 0:L.completeApplicationUrl)===!0?"":`-${u.languageCode}`}`},f=(L,U)=>{u={...u,...L},b.forEach(B=>{B(Wg(u),U)})},h=()=>{const L={type:it.Failure,receivedAt:new Date().getTime(),payload:{text:t.failureMessage??ZS}};f({responses:[...u.responses,L]},L)},g=L=>{if((L==null?void 0:L.messages.length)>0){const U={type:it.Application,receivedAt:new Date().getTime(),payload:{...L,messages:L.messages.map(B=>({nodeId:B.nodeId,messageId:B.messageId,text:B.text,choices:B.choices??[]}))}};f({responses:[...u.responses,U]},U),L.metadata.hasPendingDataRequest&&(M({poll:!0}),setTimeout(()=>{m({request:{structured:{poll:!0}}})},1500))}else bi.warn("Invalid message structure, expected object with field 'messages'."),h()};let v;const T=L=>{(i==null?void 0:i.readyState)===1?i.send(JSON.stringify(L)):s=[...s,L]},m=async L=>{var B;if(v!=null){v(L,R=>{const $={type:it.Application,receivedAt:new Date().getTime(),payload:R};f({responses:[...u.responses,$]},$)});return}const U={userId:u.userId,conversationId:u.conversationId,...L,languageCode:u.languageCode,channelType:(B=t.experimental)==null?void 0:B.channelType,environment:t.environment};if(Jn(a))(e==null?void 0:e.readyState)===1?e.send(JSON.stringify(U)):n=[...n,U];else try{const R=await Ju(d(),{method:"POST",headers:{...t.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-sdk-version":ed.version},body:JSON.stringify(U)});if(R.status>=400)throw new Error(`Responded with ${R.status}`);const $=await R.json();g($)}catch(R){bi.warn(R),h()}};let b=[];const p=async()=>{(e==null?void 0:e.readyState)===1&&n[0]!=null&&(await m(n[0]),n=n.slice(1))},k=()=>{(i==null?void 0:i.readyState)===1&&s[0]!=null&&(T(s[0]),s=s.slice(1))},C=()=>{var U;E();const L=new URL(a);((U=t.experimental)==null?void 0:U.completeApplicationUrl)!==!0&&(L.searchParams.set("languageCode",u.languageCode),L.searchParams.set("channelKey",`${L.searchParams.get("channelKey")??""}-${u.languageCode}`)),L.searchParams.set("conversationId",u.conversationId),e=new Xu(L.href),r=setInterval(()=>{p()},500),e.onmessage=function(B){typeof(B==null?void 0:B.data)=="string"&&g(td(B.data))},L.searchParams.set("voice-plus","true"),i=new Xu(L.href),o=setInterval(()=>{k()},500),i.onmessage=B=>{if(typeof(B==null?void 0:B.data)=="string"){const R=td(B.data);R!=null&&l.voicePlusCommand.forEach($=>{$(R)})}}},w=()=>{var B;if(x(),t.bidirectional!==!0)return;const L=new URL(QS(a));((B=t.experimental)==null?void 0:B.completeApplicationUrl)!==!0&&(L.searchParams.set("languageCode",u.languageCode),L.searchParams.set("channelKey",`${L.searchParams.get("channelKey")??""}-${u.languageCode}`)),L.searchParams.set("conversationId",u.conversationId),L.searchParams.set("type","voice-plus");const U=t.headers["nlx-api-key"];!Jn(a)&&U!=null&&L.searchParams.set("apiKey",U),i=new Xu(L.href),o=setInterval(()=>{k()},500),i.onmessage=R=>{if(typeof(R==null?void 0:R.data)=="string"){const $=td(R.data);$!=null&&l.voicePlusCommand.forEach(W=>{W($)})}}},E=()=>{r!=null&&clearInterval(r),e!=null&&(e.onmessage=null,e.close(),e=void 0)},x=()=>{o!=null&&clearInterval(o),i!=null&&(i.onmessage=null,i.close(),i=void 0)};Jn(a)&&C(),w();const M=(L,U)=>{const B={type:it.User,receivedAt:new Date().getTime(),payload:{type:"structured",...qg(L),context:U}};f({responses:[...u.responses,B]},B)},_=(L,U)=>{M({intentId:L},U),m({context:U,request:{structured:{intentId:L}}})},j=(L,U)=>{const B={type:it.User,receivedAt:new Date().getTime(),payload:{type:"text",text:L,context:U}};f({responses:[...u.responses,B]},B),m({context:U,request:{unstructured:{text:L}}})},q=(L,U,B)=>{let R=[...u.responses];const $={type:it.User,receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:L}},W=(B==null?void 0:B.responseIndex)??-1,X=(B==null?void 0:B.messageIndex)??-1;W>-1&&X>-1&&(R=Ug(W,ue=>ue.type===it.Application?{...ue,payload:{...ue.payload,messages:Ug(X,_n=>({..._n,selectedChoiceId:L}),ue.payload.messages)}}:ue,R)),R=[...R,$],f({responses:R},$),m({context:U,request:{structured:{nodeId:B==null?void 0:B.nodeId,intentId:B==null?void 0:B.intentId,choiceId:L}}})},K=L=>{b=b.filter(U=>U!==L)};return{sendText:j,sendContext:async L=>{const U=await Ju(`${d()}/context`,{method:"POST",headers:{...t.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-conversation-id":u.conversationId,"nlx-sdk-version":ed.version},body:JSON.stringify({languageCode:u.languageCode,conversationId:u.conversationId,userId:u.userId,context:L})});if(U.status>=400)throw new Error(`Responded with ${U.status}`)},sendStructured:(L,U)=>{M(L,U),m({context:U,request:{structured:qg(L)}})},sendSlots:(L,U)=>{M({slots:L},U),m({context:U,request:{structured:{slots:$g(L)}}})},sendFlow:_,sendIntent:(L,U)=>{bi.warn("Calling `sendIntent` is deprecated and will be removed in a future version of the SDK. Use `sendFlow` instead."),_(L,U)},sendWelcomeFlow:L=>{_(Hg,L)},sendWelcomeIntent:L=>{bi.warn("Calling `sendWelcomeIntent` is deprecated and will be removed in a future version of the SDK. Use `sendWelcomeFlow` instead."),_(Hg,L)},sendChoice:q,currentConversationId:()=>u.conversationId,setLanguageCode:L=>{if(L===u.languageCode){bi.warn("Attempted to set language code to the one already active.");return}Jn(a)&&C(),w(),f({languageCode:L})},currentLanguageCode:()=>u.languageCode,getVoiceCredentials:async L=>{const U=Kg(a),B=await Ju(`${U}-${u.languageCode}/requestToken`,{method:"POST",headers:{...t.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-conversation-id":u.conversationId,"nlx-sdk-version":ed.version},body:JSON.stringify({languageCode:u.languageCode,conversationId:u.conversationId,userId:u.userId,requestToken:!0,context:L})});if(B.status>=400)throw new Error(`Responded with ${B.status}`);const R=await B.json();if((R==null?void 0:R.url)==null)throw new Error("Invalid response");return R},subscribe:L=>(b=[...b,L],L(Wg(u)),()=>{K(L)}),unsubscribe:K,unsubscribeAll:()=>{b=[]},reset:L=>{f({conversationId:zg(),responses:(L==null?void 0:L.clearResponses)===!0?[]:u.responses}),Jn(a)&&C(),w()},destroy:()=>{b=[],Jn(a)&&E(),x()},setRequestOverride:L=>{v=L},addEventListener:(L,U)=>{l[L]=[...l[L],U]},removeEventListener:(L,U)=>{l[L]=l[L].filter(B=>B!==U)},sendVoicePlusContext:L=>{T({context:L})}}}function Zg(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Zg(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Z(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Zg(t))&&(r&&(r+=" "),r+=e);return r}const Q=t=>({width:t.size!=null?`${t.size}px`:"100%",height:t.size!=null?`${t.size}px`:"100%",className:t.className}),XS=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),Ms=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.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"}),y.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"}),y.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"}),y.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"})]}),ew=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),tw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),Qg=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M12 15.41L6 9.40997L7.41 7.99997L12 12.58L16.59 7.99997L18 9.40997L12 15.41Z",fill:"currentColor"})}),nw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M7.59001 12L13.59 18L15 16.59L10.42 12L15 7.41002L13.59 6.00002L7.59001 12Z",fill:"currentColor"})}),Jg=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M15 12L9.00005 18L7.59005 16.59L12.17 12L7.59005 7.41002L9.00005 6.00002L15 12Z",fill:"currentColor"})}),rw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),Pa=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",fill:"currentColor"})}),nd=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),iw=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.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"})]}),Yg=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M8.99991 16.17L4.82991 12L3.40991 13.41L8.99991 19L20.9999 7L19.5899 5.59L8.99991 16.17Z",fill:"currentColor"})}),Ns=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),sw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),Xg=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),ev=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.jsx("path",{d:"M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4Z",fill:"currentColor"})]}),tv=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.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"}),y.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"}),y.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"})]}),rd=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),ow=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),_a=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),id=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),aw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),Ra=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),sd=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),lw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),cw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),uw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),dw=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.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"}),y.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"})]}),fw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),Ds=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),nv=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),hw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),pw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),rv=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),mw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),gw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),vw=t=>y.jsxs("svg",{viewBox:"0 0 24 24",...Q(t),children:[y.jsx("path",{d:"M11 7H12.5V12.25L17 14.92L16.25 16.15L11 13V7Z",fill:"currentColor"}),y.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"})]}),iv=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),yw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),bw=t=>y.jsx("svg",{viewBox:"0 0 24 24",...Q(t),children:y.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"})}),sv=t=>y.jsxs("svg",{viewBox:"0 0 16 16",...Q(t),fill:"currentColor",children:[y.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"}),y.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"})]}),ov=Object.freeze(Object.defineProperty({__proto__:null,Action:XS,Add:tw,ArrowDown:Qg,ArrowForward:Pa,ArrowLeft:nw,ArrowRight:Jg,ArrowUp:rw,AssistantOld:ew,Attachment:nd,Camera:iw,Check:Yg,Close:Ns,Copy:sw,Date:Xg,Delete:ev,Error:rd,Escalate:tv,FullScreen:ow,Help:bw,Location:aw,Mic:_a,MicOff:id,OpenInNew:cw,OpenLink:sv,Play:uw,Preview:dw,Refresh:yw,Reorder:fw,Restart:Ds,Search:hw,Settings:nv,Share:pw,ThumbDown:mw,ThumbUp:gw,Time:vw,Touchpoint:Ms,Translate:lw,Undo:iv,Volume:Ra,VolumeOff:sd,Warning:rv},Symbol.toStringTag,{value:"Module"})),kw=t=>{const{Custom:e}=t;return e!=null?y.jsx(e,{className:t.className,onClick:t.onClick}):y.jsxs("button",{className:Z("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",t.className),disabled:t.onClick==null,onClick:t.onClick,children:[y.jsx("span",{className:"block flex-none w-8 h-8",children:t.iconUrl==null?y.jsx(Ms,{}):y.jsx("img",{src:t.iconUrl,className:"w-8 h-8"})}),t.showLabel??!1?y.jsx("span",{children:t.label}):null]})},av="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",lv="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",cv="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",uv="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",dv="bg-secondary-60 backdrop-blur 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",fv="bg-background backdrop-blur 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",hv="bg-error-primary text-secondary-80 enabled:hover:before:bg-primary-10",Cw=({type:t,Icon:e})=>y.jsx("span",{className:Z(av,"block",t==="main"?lv:null,t==="ghost"?cv:null,t==="activated"?uv:null,t==="coverup"?dv:null,t==="overlay"?fv:null,t==="error"?hv:null),children:y.jsx(e,{})}),Be=({onClick:t,type:e,label:n,className:r,Icon:i})=>{const s=t==null;return y.jsx("button",{onClick:s?void 0:t,disabled:s,"aria-label":n,className:Z(av,e==="main"?lv:null,e==="ghost"?cv:null,e==="activated"?uv:null,e==="coverup"?dv:null,e==="overlay"?fv:null,e==="error"?hv:null,r),children:y.jsx(i,{})})};function Sw(t){const e=D.useRef(t);return e.current=t,D.useMemo(()=>Object.freeze({get current(){return e.current}}),[])}function ww(t){const e=Sw(t);D.useEffect(()=>()=>{e.current()},[])}function Tw(t,e,n,r=0){const i=D.useRef(),s=D.useRef(),o=D.useRef(t),a=D.useRef(),l=()=>{i.current&&(clearTimeout(i.current),i.current=void 0),s.current&&(clearTimeout(s.current),s.current=void 0)};return ww(l),D.useEffect(()=>{o.current=t},e),D.useMemo(()=>{const c=()=>{if(l(),!a.current)return;const d=a.current;a.current=void 0,o.current.apply(d.this,d.args)},u=function(...d){i.current&&clearTimeout(i.current),a.current={args:d,this:this},i.current=setTimeout(c,n),r>0&&!s.current&&(s.current=setTimeout(c,r))};return Object.defineProperties(u,{length:{value:t.length},name:{value:`${t.name||"anonymous"}__debounced__${n}`}}),u},[n,r,...e])}const xw=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function pv(t,e,n=0){const[r,i]=D.useState(t);return[r,Tw(i,[],e,n)]}const ki=new Map,mv=t=>{const e=matchMedia(t),n=new Set,r=()=>{for(const i of n)i(e.matches)};return e.addEventListener("change",r,{passive:!0}),{mql:e,dispatchers:n,listener:r}},Ew=(t,e)=>{let n=ki.get(t);n||(n=mv(t),ki.set(t,n)),n.dispatchers.add(e),e(n.mql.matches)},Pw=(t,e)=>{const n=ki.get(t);if(n){const{mql:r,dispatchers:i,listener:s}=n;i.delete(e),i.size===0&&(ki.delete(t),r.removeEventListener?r.removeEventListener("change",s):r.removeListener(s))}};function _w(t,e={}){let{initializeWithValue:n=!0}=e;xw||(n=!1);const[r,i]=D.useState(()=>{if(n){let s=ki.get(t);return s||(s=mv(t),ki.set(t,s)),s.mql.matches}});return D.useEffect(()=>(Ew(t,i),()=>{Pw(t,i)}),[t]),r}const gv=t=>_w("(min-width: 768px)"),Rw=({windowSize:t,renderCollapse:e,errorThemedCloseButton:n,speakerControls:r,collapse:i,toggleSettings:s,isSettingsOpen:o,brandIcon:a,reset:l,enabled:c})=>{const u=t==="half",d=gv(),f=u&&d?"overlay":"ghost";return y.jsxs("div",{className:Z("flex","p-2 md:p-3 items-center justify-between gap-2",{"md:absolute md:w-fit md:flex-col md:left-0 md:-translate-x-full":t==="half","md:absolute md:left-0 md:right-0 md:top-0":t==="full"||t==="embedded"}),children:[a!=null?y.jsx("img",{className:"w-10 h-10 block",src:a,role:"presentation"}):null,y.jsx(Be,{label:"Reset",type:f,className:a==null?"":"ml-auto",onClick:c?()=>{l()}:void 0,Icon:iv}),s!=null?y.jsx(Be,{className:a!=null?"":"ml-auto",Icon:nv,label:"Settings",type:o?"activated":f,onClick:c?s:void 0}):null,r!=null?y.jsx(Be,{Icon:r.enabled?Ra:sd,label:"Speakers",type:r.enabled?"activated":f,onClick:()=>{r.setEnabled(h=>!h)}}):null,e?y.jsx(Be,{label:"Collapse",type:n??!1?"error":f,className:Z(s==null?"ml-auto":"",u?"md:-order-1":""),onClick:c?()=>{i(new Event("collapse"))}:void 0,Icon:Ns}):null]})},vv=()=>y.jsxs("div",{className:Z("flex-grow flex flex-col items-center justify-center gap-6 text-primary-80","fullscreen-error"),children:[y.jsx(Ms,{className:"w-20 h-20 text-primary-20"}),y.jsxs("div",{className:"text-center",children:[y.jsx("h3",{className:"text-xl mb-2",children:"Oops!"}),y.jsx("p",{children:"Something went wrong."}),y.jsx("p",{children:"Try again later."})]})]}),Ia=({k:t,className:e,style:n})=>{const i=s=>`${s}s`;return y.jsx("div",{className:Z("bg-current animate-ping absolute inset-0",e),style:{animationDelay:i(-1.5*t),animationDuration:i(1.5),...n??{}}})},Ci=({className:t,style:e})=>{const n=Z("text-accent-20",t);return y.jsxs(y.Fragment,{children:[y.jsx(Ia,{k:.12,className:n,style:e}),y.jsx(Ia,{k:.24,className:n,style:e}),y.jsx(Ia,{k:.36,className:n,style:e}),y.jsx(Ia,{k:.48,className:n,style:e})]})},Iw=30,As=17,Ow=t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,od=990,Oa=od+300,Lw=({d:t})=>{const e=Math.PI/2,n=t/As/2.8,r=e*Math.min(n,1),i=n<1?(t-Math.sin(r))/Math.cos(r)*.5:0,s=-t,o=t,a=t-As*Math.sin(r),l=As*Math.cos(r),c=a-i*Math.cos(r),u=l-i*Math.sin(r);return y.jsxs(y.Fragment,{children:[y.jsx("circle",{cx:s,cy:"0",r:As}),y.jsx("circle",{cx:o,cy:"0",r:As}),n<.45?y.jsx("path",{d:`
|
|
61
61
|
M${-a},${l}
|
|
62
62
|
C${-c},${u} ${c},${u} ${a},${l} L${a},${-l}
|
|
63
63
|
C${c},${-u} ${-c},${-u} ${-a},${-l} Z
|
|
@@ -196,7 +196,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An err
|
|
|
196
196
|
cursor: -webkit-grab;
|
|
197
197
|
cursor: grab; }
|
|
198
198
|
`);var Bf,k_=(Bf="indiana-scroll-container",function(t,e){if(!t)return Bf;var n;typeof t=="string"?n=t:e=t;var r=Bf;return n&&(r+="__"+n),r+(e?Object.keys(e).reduce(function(i,s){var o=e[s];return o&&(i+=" "+(typeof o=="boolean"?r+"--"+s:r+"--"+s+"_"+o)),i},""):"")}),C_=function(t){function e(n){var r=t.call(this,n)||this;return r.onEndScroll=function(){r.scrolling=!1,!r.pressed&&r.started&&r.processEnd()},r.onScroll=function(i){var s=r.container.current;s.scrollLeft===r.scrollLeft&&s.scrollTop===r.scrollTop||(r.scrolling=!0,r.processScroll(i),r.onEndScroll())},r.onTouchStart=function(i){var s=r.props.nativeMobileScroll;if(r.isDraggable(i.target))if(r.internal=!0,s&&r.scrolling)r.pressed=!0;else{var o=i.touches[0];r.processClick(i,o.clientX,o.clientY),!s&&r.props.stopPropagation&&i.stopPropagation()}},r.onTouchEnd=function(i){var s=r.props.nativeMobileScroll;r.pressed&&(!r.started||r.scrolling&&s?r.pressed=!1:r.processEnd(),r.forceUpdate())},r.onTouchMove=function(i){var s=r.props.nativeMobileScroll;if(r.pressed&&(!s||!r.isMobile)){var o=i.touches[0];o&&r.processMove(i,o.clientX,o.clientY),i.preventDefault(),r.props.stopPropagation&&i.stopPropagation()}},r.onMouseDown=function(i){r.isDraggable(i.target)&&r.isScrollable()&&(r.internal=!0,r.props.buttons.indexOf(i.button)!==-1&&(r.processClick(i,i.clientX,i.clientY),i.preventDefault(),r.props.stopPropagation&&i.stopPropagation()))},r.onMouseMove=function(i){r.pressed&&(r.processMove(i,i.clientX,i.clientY),i.preventDefault(),r.props.stopPropagation&&i.stopPropagation())},r.onMouseUp=function(i){r.pressed&&(r.started?r.processEnd():(r.internal=!1,r.pressed=!1,r.forceUpdate(),r.props.onClick&&r.props.onClick(i)),i.preventDefault(),r.props.stopPropagation&&i.stopPropagation())},r.container=In.createRef(),r.onEndScroll=b_(r.onEndScroll,300),r.scrolling=!1,r.started=!1,r.pressed=!1,r.internal=!1,r.getRef=r.getRef.bind(r),r}return function(n,r){function i(){this.constructor=n}Z1(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}(e,t),e.prototype.componentDidMount=function(){var n=this.props.nativeMobileScroll,r=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),r.addEventListener("touchstart",this.onTouchStart,{passive:!1}),r.addEventListener("mousedown",this.onMouseDown,{passive:!1}),n&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())},e.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},e.prototype.getElement=function(){return this.container.current},e.prototype.isMobileDevice=function(){return window.orientation!==void 0||navigator.userAgent.indexOf("IEMobile")!==-1},e.prototype.isDraggable=function(n){var r=this.props.ignoreElements;if(r){var i=n.closest(r);return i===null||i.contains(this.getElement())}return!0},e.prototype.isScrollable=function(){var n=this.container.current;return n&&(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight)},e.prototype.processClick=function(n,r,i){var s=this.container.current;this.scrollLeft=s.scrollLeft,this.scrollTop=s.scrollTop,this.clientX=r,this.clientY=i,this.pressed=!0},e.prototype.processStart=function(n){n===void 0&&(n=!0);var r=this.props.onStartScroll;this.started=!0,n&&document.body.classList.add("indiana-dragging"),r&&r({external:!this.internal}),this.forceUpdate()},e.prototype.processScroll=function(n){if(this.started){var r=this.props.onScroll;r&&r({external:!this.internal})}else this.processStart(!1)},e.prototype.processMove=function(n,r,i){var s=this.props,o=s.horizontal,a=s.vertical,l=s.activationDistance,c=s.onScroll,u=this.container.current;this.started?(o&&(u.scrollLeft-=r-this.clientX),a&&(u.scrollTop-=i-this.clientY),c&&c({external:!this.internal}),this.clientX=r,this.clientY=i,this.scrollLeft=u.scrollLeft,this.scrollTop=u.scrollTop):(o&&Math.abs(r-this.clientX)>l||a&&Math.abs(i-this.clientY)>l)&&(this.clientX=r,this.clientY=i,this.processStart())},e.prototype.processEnd=function(){var n=this.props.onEndScroll;this.container.current&&n&&n({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("indiana-dragging"),this.forceUpdate()},e.prototype.getRef=function(n){[this.container,this.props.innerRef].forEach(function(r){r&&(typeof r=="function"?r(n):r.current=n)})},e.prototype.render=function(){var n=this.props,r=n.children,i=n.draggingClassName,s=n.className,o=n.style,a=n.hideScrollbars,l=n.component;return In.createElement(l,{className:y_(s,this.pressed&&i,k_({dragging:this.pressed,"hide-scrollbars":a,"native-scroll":this.isMobile})),style:o,ref:this.getRef,onScroll:this.onScroll},r)},e.defaultProps={nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},component:"div",buttons:[0]},e}(D.PureComponent);const Vf=({className:t,children:e})=>y.jsx(C_,{className:Z("flex gap-x-2 overflow-x-auto no-scrollbar px-2 -mx-2",t),children:e});function Q1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function S_(t,e,n){return e=Rl(e),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(r)}(t,X1()?Reflect.construct(e,n||[],Rl(t).constructor):e.apply(t,n))}function w_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T_(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function J1(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(l,c){if(l){if(typeof l=="string")return Q1(l,c);var u={}.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Q1(l,c):void 0}}(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
199
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{o||n.return==null||n.return()}finally{if(a)throw s}}}}function Y1(t,e,n){return(e=function(r){var i=function(s,o){if(typeof s!="object"||!s)return s;var a=s[Symbol.toPrimitive];if(a!==void 0){var l=a.call(s,o);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}(r,"string");return typeof i=="symbol"?i:i+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _l(){return _l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_l.apply(null,arguments)}function Rl(t){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rl(t)}function x_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zf(t,e)}function X1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X1=function(){return!!t})()}function eb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Il(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eb(Object(n),!0).forEach(function(r){Y1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tb(t,e){if(t==null)return{};var n,r,i=function(o,a){if(o==null)return{};var l={};for(var c in o)if({}.hasOwnProperty.call(o,c)){if(a.includes(c))continue;l[c]=o[c]}return l}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function zf(t,e){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zf(t,e)}function ro(t,e){var n,r=e.replacementChars,i=e.replacement,s=e.separate,o=r,a="",l=J1(t);try{for(l.s();!(n=l.n()).done;){var c,u=n.value,d=!Object.prototype.hasOwnProperty.call(i,u)&&((c=i[o[0]])===null||c===void 0?void 0:c.test(u));(s&&u===o[0]||d)&&(o=o.slice(1),a+=u)}}catch(f){l.e(f)}finally{l.f()}return a}function nb(t,e){var n,r=e.mask,i=e.replacement,s=e.separate,o=e.showMask,a=0,l="",c=J1(r);try{for(c.s();!(n=c.n()).done;){var u=n.value;if(!o&&t[a]===void 0)break;Object.prototype.hasOwnProperty.call(i,u)&&t[a]!==void 0?l+=t[a++]:l+=u}}catch(f){c.e(f)}finally{c.f()}if(s&&!o){for(var d=r.length-1;d>=0&&l[d]===r[d];d--);l=l.slice(0,d+1)}return l}function rb(t,e){for(var n=e.mask,r=e.replacement,i=[],s=0;s<n.length;s++){var o,a=(o=t[s])!==null&&o!==void 0?o:n[s],l=Object.prototype.hasOwnProperty.call(r,a)?"replacement":t[s]!==void 0&&t[s]!==n[s]?"input":"mask";i.push({type:l,value:a,index:s})}return i}function Ui(t){return t.length>0?Y1({},t,/./):{}}function Hf(t,e){for(var n=e.start,r=n===void 0?0:n,i=e.end,s=e.mask,o=e.replacement,a=e.separate,l=t.slice(r,i),c=s.slice(r,i),u="",d=0;d<c.length;d++){var f=Object.prototype.hasOwnProperty.call(o,c[d]);f&&l[d]!==void 0&&l[d]!==c[d]?u+=l[d]:f&&a&&(u+=c[d])}return u}function ib(t,e){var n=e.mask,r=e.replacement,i=typeof r=="string"?Ui(r):r,s=RegExp("[^".concat(Object.keys(i).join(""),"]"),"g");return nb(ro(t,{replacementChars:n.replace(s,""),replacement:i,separate:!1}),{mask:n,replacement:i,separate:!1,showMask:!1})}function E_(t,e){var n=e.mask,r=e.replacement,i=typeof r=="string"?Ui(r):r,s=Hf(t,{mask:n,replacement:i,separate:!1}),o=RegExp("[^".concat(Object.keys(i).join(""),"]"),"g");return ro(s,{replacementChars:n.replace(o,""),replacement:i,separate:!1})}function P_(t,e){var n=e.mask,r=e.replacement,i=typeof r=="string"?Ui(r):r;return rb(ib(t,{mask:n,replacement:i}),{mask:n,replacement:i})}var __=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function sb(t){return __.includes(t)?"\\".concat(t):t}function R_(t,e){for(var n=e.mask,r=e.replacement,i=typeof r=="string"?Ui(r):r,s=t==="partial"||t==="partial-inexact",o=t==="full"||t==="partial",a="",l=0;l<n.length;l++){var c=n[l];l===0&&(a="^"),s&&(a+="("),a+=Object.prototype.hasOwnProperty.call(i,c)?"".concat(o?"(?!".concat(sb(c),")"):"","(").concat(i[c].source,")"):sb(c),l===n.length-1&&(s&&(a+=")?".repeat(n.length)),a+="$")}return a}function I_(t,e){return new Proxy(t,{set:function(n,r,i){return r==="current"&&(i!==t.current&&(t.current!==null&&e.unregister(t.current),i!==null&&e.register(i)),n[r]=i,!0)}})}function O_(t,e,n){return e=io(e),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(r)}(t,$f()?Reflect.construct(e,n||[],io(t).constructor):e.apply(t,n))}function ob(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ab(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function L_(t,e,n){return(e=function(r){var i=function(s,o){if(typeof s!="object"||!s)return s;var a=s[Symbol.toPrimitive];if(a!==void 0){var l=a.call(s,o);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}(r,"string");return typeof i=="symbol"?i:i+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function io(t){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},io(t)}function M_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&so(t,e)}function $f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($f=function(){return!!t})()}function lb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function cb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lb(Object(n),!0).forEach(function(r){L_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function N_(t,e){if(t==null)return{};var n,r,i=function(o,a){if(o==null)return{};var l={};for(var c in o)if({}.hasOwnProperty.call(o,c)){if(a.includes(c))continue;l[c]=o[c]}return l}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function so(t,e){return so=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},so(t,e)}function qf(t){return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qf(t)}function Wf(t){var e=typeof Map=="function"?new Map:void 0;return Wf=function(n){if(n===null||!function(i){try{return Function.toString.call(i).indexOf("[native code]")!==-1}catch{return typeof i=="function"}}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return function(i,s,o){if($f())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,s);var l=new(i.bind.apply(i,a));return o&&so(l,o.prototype),l}(n,arguments,io(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),so(r,n)},Wf(t)}var oo=function(t){function e(n){var r;return ob(this,e),(r=O_(this,e,[n])).name="SyntheticChangeError",r}return M_(e,t),ab(e)}(Wf(Error)),ub,D_=["options"],A_=["text","email","tel","search","url"],db=ab(function t(e){var n=e.init,r=e.tracking;ob(this,t);var i=new WeakMap;this.register=function(s){var o;if(A_.includes(s.type)){var a=(o=s._wrapperState)!==null&&o!==void 0?o:{},l=a.initialValue,c=l===void 0?"":l,u=a.controlled,d=u!==void 0&&u,f=n({initialValue:s.value||c,controlled:d}),h=f.value,g=f.options,v={value:h,options:g,fallbackOptions:g},T={id:-1,cachedId:-1},m={value:"",selectionStart:0,selectionEnd:0},b=Object.getOwnPropertyDescriptor("_valueTracker"in s?s:HTMLInputElement.prototype,"value");Object.defineProperty(s,"value",cb(cb({},b),{},{set:function(w){var E;m.value=w,b==null||(E=b.set)===null||E===void 0||E.call(s,w)}})),s.value=h;var p=function(){var w=function(){var E,x;m.selectionStart=(E=s.selectionStart)!==null&&E!==void 0?E:0,m.selectionEnd=(x=s.selectionEnd)!==null&&x!==void 0?x:0,T.id=window.setTimeout(w)};T.id=window.setTimeout(w)},k=function(){window.clearTimeout(T.id),T.id=-1,T.cachedId=-1},C=function(w){try{var E,x;if(T.cachedId===T.id)throw new oo("The input selection has not been updated.");T.cachedId=T.id;var M=s.value,_=s.selectionStart,j=s.selectionEnd;if(_===null||j===null)throw new oo("The selection attributes have not been initialized.");var q,K=m.value;if(w.inputType===void 0&&(m.selectionStart=0,m.selectionEnd=K.length),_>m.selectionStart?q="insert":_<=m.selectionStart&&_<m.selectionEnd?q="deleteBackward":_===m.selectionEnd&&M.length<K.length&&(q="deleteForward"),q===void 0||(q==="deleteBackward"||q==="deleteForward")&&M.length>K.length)throw new oo("Input type detection error.");var se="",L=m.selectionStart,U=m.selectionEnd;if(q==="insert")se=M.slice(m.selectionStart,_);else{var B=K.length-M.length;L=_,U=_+B}v.value!==K?v.options=v.fallbackOptions:v.fallbackOptions=v.options;var R=v.options,$=r({inputType:q,previousValue:K,previousOptions:R,value:M,addedValue:se,changeStart:L,changeEnd:U,selectionStart:_,selectionEnd:j}),W=$.options,X=N_($,D_);s.value=X.value,s.setSelectionRange(X.selectionStart,X.selectionEnd),v.value=X.value,v.options=W,m.selectionStart=X.selectionStart,m.selectionEnd=X.selectionEnd,(E=s._valueTracker)===null||E===void 0||(x=E.setValue)===null||x===void 0||x.call(E,K)}catch(ue){if(s.value=m.value,s.setSelectionRange(m.selectionStart,m.selectionEnd),w.preventDefault(),w.stopPropagation(),ue.name!=="SyntheticChangeError")throw ue}};document.activeElement===s&&p(),s.addEventListener("focus",p),s.addEventListener("blur",k),s.addEventListener("input",C),i.set(s,{onFocus:p,onBlur:k,onInput:C})}},this.unregister=function(s){var o=i.get(s);o!==void 0&&(s.removeEventListener("focus",o.onFocus),s.removeEventListener("blur",o.onBlur),s.removeEventListener("input",o.onInput),i.delete(s))}});ub=db,Object.defineProperty(ub.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});function j_(t,e){return D.useCallback(function(n){t.current=n,typeof e=="function"?e(n):qf(e)==="object"&&e!==null&&(e.current=n)},[t,e])}var fb,U_=["track","modify"];function Fi(t){var e,n,r,i;return{mask:(e=t.mask)!==null&&e!==void 0?e:"",replacement:typeof t.replacement=="string"?Ui(t.replacement):(n=t.replacement)!==null&&n!==void 0?n:{},showMask:(r=t.showMask)!==null&&r!==void 0&&r,separate:(i=t.separate)!==null&&i!==void 0&&i,track:t.track,modify:t.modify}}var hb=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return w_(this,e),(n=S_(this,e,[{init:function(i){var s=i.initialValue,o=i.controlled,a=Fi(r),l=a.mask,c=a.replacement,u=a.separate,d=a.showMask;return s=o||s?s:d?l:"",{value:s,options:{mask:l,replacement:c,separate:u}}},tracking:function(i){var s=i.inputType,o=i.previousValue,a=i.previousOptions,l=i.addedValue,c=i.changeStart,u=i.changeEnd,d=Fi(r),f=d.track,h=d.modify,g=tb(d,U_),v=g.mask,T=g.replacement,m=g.showMask,b=g.separate,p=Il(Il({},s==="insert"?{inputType:s,data:l}:{inputType:s,data:null}),{},{value:o,selectionStart:c,selectionEnd:u}),k=f==null?void 0:f(p);if(k===!1)throw new oo("Custom tracking stop.");k===null?l="":k!==!0&&k!==void 0&&(l=k);var C=h==null?void 0:h(p);(C==null?void 0:C.mask)!==void 0&&(v=C.mask),(C==null?void 0:C.replacement)!==void 0&&(T=typeof(C==null?void 0:C.replacement)=="string"?Ui(C==null?void 0:C.replacement):C.replacement),(C==null?void 0:C.showMask)!==void 0&&(m=C.showMask),(C==null?void 0:C.separate)!==void 0&&(b=C.separate);var w=Hf(o,Il({end:c},a)),E=Hf(o,Il({start:u},a)),x=RegExp("[^".concat(Object.keys(T).join(""),"]"),"g"),M=v.replace(x,"");if(w&&(w=ro(w,{replacementChars:M,replacement:T,separate:b}),M=M.slice(w.length)),l&&(l=ro(l,{replacementChars:M,replacement:T,separate:!1}),M=M.slice(l.length)),s==="insert"&&l==="")throw new oo("The character does not match the key value of the `replacement` object.");if(b){var _=v.slice(c,u).replace(x,""),j=_.length-l.length;j<0?E=E.slice(-j):j>0&&(E=_.slice(-j)+E)}E&&(E=ro(E,{replacementChars:M,replacement:T,separate:b}));var q=nb(w+l+E,{mask:v,replacement:T,separate:b,showMask:m}),K=function(se){var L,U,B,R=se.inputType,$=se.value,W=se.addedValue,X=se.beforeChangeValue,ue=se.mask,_n=se.replacement,Rn=se.separate,Br=rb($,{mask:ue,replacement:_n}).filter(function(Kf){var vb=Kf.type;return vb==="input"||Rn&&vb==="replacement"}),un=(L=Br[X.length+W.length-1])===null||L===void 0?void 0:L.index,Qt=(U=Br[X.length-1])===null||U===void 0?void 0:U.index,zi=(B=Br[X.length+W.length])===null||B===void 0?void 0:B.index;if(R==="insert"){if(un!==void 0)return un+1;if(zi!==void 0)return zi;if(Qt!==void 0)return Qt+1}if(R==="deleteForward"){if(zi!==void 0)return zi;if(Qt!==void 0)return Qt+1}if(R==="deleteBackward"){if(Qt!==void 0)return Qt+1;if(zi!==void 0)return zi}var gb=$.split("").findIndex(function(Kf){return Object.prototype.hasOwnProperty.call(_n,Kf)});return gb!==-1?gb:$.length}({inputType:s,value:q,addedValue:l,beforeChangeValue:w,mask:v,replacement:T,separate:b});return{value:q,selectionStart:K,selectionEnd:K,options:{mask:v,replacement:T,separate:b}}}}])).format=function(i){return ib(i,Fi(r))},n.formatToParts=function(i){return P_(i,Fi(r))},n.unformat=function(i){return E_(i,Fi(r))},n.generatePattern=function(i){return R_(i,Fi(r))},n}return x_(e,db),T_(e)}();fb=hb,Object.defineProperty(fb.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function F_(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mask,n=t.replacement,r=t.showMask,i=t.separate,s=t.track,o=t.modify,a=D.useRef(null),l=D.useRef({mask:e,replacement:n,showMask:r,separate:i,track:s,modify:o});return l.current.mask=e,l.current.replacement=n,l.current.showMask=r,l.current.separate=i,l.current.track=s,l.current.modify=o,D.useMemo(function(){return I_(a,new hb(l.current))},[])}var B_=["component","mask","replacement","showMask","separate","track","modify"];function V_(t,e){var n=t.component,r=t.mask,i=t.replacement,s=t.showMask,o=t.separate,a=t.track,l=t.modify,c=tb(t,B_),u=F_({mask:r,replacement:i,showMask:s,separate:o,track:a,modify:l}),d=j_(u,e);return n?In.createElement(n,_l({ref:d},c)):In.createElement("input",_l({ref:d},c))}var z_=D.forwardRef(V_);const H_={mask:"MM / DD / YYYY",replacement:{D:/\d/,M:/\d/,Y:/\d/},showMask:!0},Gf=({onSubmit:t,className:e})=>{const n=t==null,[r,i]=D.useState(null);return y.jsxs("div",{className:Z("relative bg-primary-5 flex items-center justify-between pl-4 py-2 pr-2 rounded-outer transition-colors duration-500 before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent",n?"":"hover:bg-secondary-20",e),children:[y.jsxs("div",{className:"flex items-center",children:[y.jsx(Xg,{className:"w-4 h-4 text-primary-60"}),y.jsx(z_,{...H_,className:Z("bg-transparent text-primary-80 outline-0 ml-2 py-2.5",n?"placeholder-primary-20 pointer-events-none":"placeholder-primary-40"),placeholder:"MM / DD / YYYY",onChange:s=>{const o=s.target.value,[a,l,c]=o.split(" / ");a!=null&&a.length===2&&l!=null&&l.length===2&&c!=null&&c.length===4?i(`${c}-${a}-${l}`):i(null)}})]}),y.jsx(Be,{className:"flex-none",label:"Send message",onClick:r==null||t==null?void 0:()=>{t(r)},type:"main",Icon:Pa})]})},pb=(t,e)=>n=>{t.type==="slot"&&e.sendSlots({[t.id]:n}),t.type==="context"&&e.sendContext({[t.id]:n})},$_=({data:t,conversationHandler:e})=>{const n=D.useMemo(()=>pb(t.$saveAs,e),[t.$saveAs,e]);return y.jsx(Gf,{onSubmit:n})},q_=({data:t})=>y.jsxs(Tl,{children:[t.thumbnail!=null?y.jsx(xl,{src:t.thumbnail,alt:t.thumbnailAlt}):null,t.label!=null&&t.value!=null?y.jsx(El,{left:y.jsx(ji,{faded:!0,children:t.label}),right:y.jsx(ji,{children:t.value})}):null]}),W_=({data:t,conversationHandler:e})=>{const[n,r]=D.useState(null),i=D.useMemo(()=>pb(t.$saveAs,e),[t.$saveAs,e]),s=o=>{r(o),i(o)};return y.jsx(Vf,{children:t.cards.map((o,a)=>y.jsxs(Tl,{selected:o.id===n,onClick:o.id!=null?()=>{o.id!=null&&s(o.id)}:void 0,children:[o.thumbnail!=null?y.jsx(xl,{src:o.thumbnail,alt:o.thumbnailAlt}):null,o.label!=null&&o.value!=null?y.jsx(El,{left:y.jsx(ji,{faded:!0,children:o.label}),right:y.jsx(ji,{children:o.value})}):null]},o.id??a))})},G_=({children:t,mode:e,theme:n})=>y.jsxs(y.Fragment,{children:[y.jsx("style",{children:G1}),y.jsx(kl,{className:"bg-background p-4 rounded-outer space-y-4",theme:n,colorMode:e,children:t})]}),K_=lS.version,Z_=(t=>qC.bind((e,...n)=>D.createElement(t[e]??e,...n)))({TextButton:Yn,IconButton:Be,BaseText:ji,SmallText:K1,DateInput:Gf,Carousel:Vf,CustomCard:Tl,CustomCardRow:El,CustomCardImageRow:xl,Ripple:Ci,...ov}),Q_=()=>{const t=crypto.randomUUID();return sessionStorage.setItem("nlxConversationId",t),t},J_=()=>{const t=crypto.randomUUID();return localStorage.setItem("nlxUserId",t),t},Y_=t=>{const e=t.config.applicationUrl??("botUrl"in t.config?t.config.botUrl:void 0);"botUrl"in t.config&&console.warn("The 'botUrl' configuration option is deprecated. Use 'applicationUrl' instead.");const n={...t.customModalities??{},DefaultDateInput:$_,DefaultCard:q_,DefaultCarousel:W_};return{...t,config:{...t.config,applicationUrl:e,conversationId:t.config.conversationId??sessionStorage.getItem("nlxConversationId")??Q_(),userId:t.config.userId??localStorage.getItem("nlxUserId")??J_(),bidirectional:t.bidirectional==null?t.config.bidirectional??!1:!0},input:t.input??"text",customModalities:n,initializeConversation:t.initializeConversation??((r,i)=>{((t==null?void 0:t.input)??"text")==="text"&&r.sendWelcomeFlow(i)})}};let mb=()=>{const t=document.createElement("style");t.textContent=`:where(nlx-touchpoint.nlx-text, nlx-touchpoint.nlx-voice) {
|
|
199
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{o||n.return==null||n.return()}finally{if(a)throw s}}}}function Y1(t,e,n){return(e=function(r){var i=function(s,o){if(typeof s!="object"||!s)return s;var a=s[Symbol.toPrimitive];if(a!==void 0){var l=a.call(s,o);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}(r,"string");return typeof i=="symbol"?i:i+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _l(){return _l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_l.apply(null,arguments)}function Rl(t){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rl(t)}function x_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zf(t,e)}function X1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X1=function(){return!!t})()}function eb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Il(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eb(Object(n),!0).forEach(function(r){Y1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tb(t,e){if(t==null)return{};var n,r,i=function(o,a){if(o==null)return{};var l={};for(var c in o)if({}.hasOwnProperty.call(o,c)){if(a.includes(c))continue;l[c]=o[c]}return l}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function zf(t,e){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zf(t,e)}function ro(t,e){var n,r=e.replacementChars,i=e.replacement,s=e.separate,o=r,a="",l=J1(t);try{for(l.s();!(n=l.n()).done;){var c,u=n.value,d=!Object.prototype.hasOwnProperty.call(i,u)&&((c=i[o[0]])===null||c===void 0?void 0:c.test(u));(s&&u===o[0]||d)&&(o=o.slice(1),a+=u)}}catch(f){l.e(f)}finally{l.f()}return a}function nb(t,e){var n,r=e.mask,i=e.replacement,s=e.separate,o=e.showMask,a=0,l="",c=J1(r);try{for(c.s();!(n=c.n()).done;){var u=n.value;if(!o&&t[a]===void 0)break;Object.prototype.hasOwnProperty.call(i,u)&&t[a]!==void 0?l+=t[a++]:l+=u}}catch(f){c.e(f)}finally{c.f()}if(s&&!o){for(var d=r.length-1;d>=0&&l[d]===r[d];d--);l=l.slice(0,d+1)}return l}function rb(t,e){for(var n=e.mask,r=e.replacement,i=[],s=0;s<n.length;s++){var o,a=(o=t[s])!==null&&o!==void 0?o:n[s],l=Object.prototype.hasOwnProperty.call(r,a)?"replacement":t[s]!==void 0&&t[s]!==n[s]?"input":"mask";i.push({type:l,value:a,index:s})}return i}function Ui(t){return t.length>0?Y1({},t,/./):{}}function Hf(t,e){for(var n=e.start,r=n===void 0?0:n,i=e.end,s=e.mask,o=e.replacement,a=e.separate,l=t.slice(r,i),c=s.slice(r,i),u="",d=0;d<c.length;d++){var f=Object.prototype.hasOwnProperty.call(o,c[d]);f&&l[d]!==void 0&&l[d]!==c[d]?u+=l[d]:f&&a&&(u+=c[d])}return u}function ib(t,e){var n=e.mask,r=e.replacement,i=typeof r=="string"?Ui(r):r,s=RegExp("[^".concat(Object.keys(i).join(""),"]"),"g");return nb(ro(t,{replacementChars:n.replace(s,""),replacement:i,separate:!1}),{mask:n,replacement:i,separate:!1,showMask:!1})}function E_(t,e){var n=e.mask,r=e.replacement,i=typeof r=="string"?Ui(r):r,s=Hf(t,{mask:n,replacement:i,separate:!1}),o=RegExp("[^".concat(Object.keys(i).join(""),"]"),"g");return ro(s,{replacementChars:n.replace(o,""),replacement:i,separate:!1})}function P_(t,e){var n=e.mask,r=e.replacement,i=typeof r=="string"?Ui(r):r;return rb(ib(t,{mask:n,replacement:i}),{mask:n,replacement:i})}var __=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function sb(t){return __.includes(t)?"\\".concat(t):t}function R_(t,e){for(var n=e.mask,r=e.replacement,i=typeof r=="string"?Ui(r):r,s=t==="partial"||t==="partial-inexact",o=t==="full"||t==="partial",a="",l=0;l<n.length;l++){var c=n[l];l===0&&(a="^"),s&&(a+="("),a+=Object.prototype.hasOwnProperty.call(i,c)?"".concat(o?"(?!".concat(sb(c),")"):"","(").concat(i[c].source,")"):sb(c),l===n.length-1&&(s&&(a+=")?".repeat(n.length)),a+="$")}return a}function I_(t,e){return new Proxy(t,{set:function(n,r,i){return r==="current"&&(i!==t.current&&(t.current!==null&&e.unregister(t.current),i!==null&&e.register(i)),n[r]=i,!0)}})}function O_(t,e,n){return e=io(e),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(r)}(t,$f()?Reflect.construct(e,n||[],io(t).constructor):e.apply(t,n))}function ob(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ab(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function L_(t,e,n){return(e=function(r){var i=function(s,o){if(typeof s!="object"||!s)return s;var a=s[Symbol.toPrimitive];if(a!==void 0){var l=a.call(s,o);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}(r,"string");return typeof i=="symbol"?i:i+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function io(t){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},io(t)}function M_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&so(t,e)}function $f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($f=function(){return!!t})()}function lb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function cb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lb(Object(n),!0).forEach(function(r){L_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function N_(t,e){if(t==null)return{};var n,r,i=function(o,a){if(o==null)return{};var l={};for(var c in o)if({}.hasOwnProperty.call(o,c)){if(a.includes(c))continue;l[c]=o[c]}return l}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function so(t,e){return so=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},so(t,e)}function qf(t){return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qf(t)}function Wf(t){var e=typeof Map=="function"?new Map:void 0;return Wf=function(n){if(n===null||!function(i){try{return Function.toString.call(i).indexOf("[native code]")!==-1}catch{return typeof i=="function"}}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return function(i,s,o){if($f())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,s);var l=new(i.bind.apply(i,a));return o&&so(l,o.prototype),l}(n,arguments,io(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),so(r,n)},Wf(t)}var oo=function(t){function e(n){var r;return ob(this,e),(r=O_(this,e,[n])).name="SyntheticChangeError",r}return M_(e,t),ab(e)}(Wf(Error)),ub,D_=["options"],A_=["text","email","tel","search","url"],db=ab(function t(e){var n=e.init,r=e.tracking;ob(this,t);var i=new WeakMap;this.register=function(s){var o;if(A_.includes(s.type)){var a=(o=s._wrapperState)!==null&&o!==void 0?o:{},l=a.initialValue,c=l===void 0?"":l,u=a.controlled,d=u!==void 0&&u,f=n({initialValue:s.value||c,controlled:d}),h=f.value,g=f.options,v={value:h,options:g,fallbackOptions:g},T={id:-1,cachedId:-1},m={value:"",selectionStart:0,selectionEnd:0},b=Object.getOwnPropertyDescriptor("_valueTracker"in s?s:HTMLInputElement.prototype,"value");Object.defineProperty(s,"value",cb(cb({},b),{},{set:function(w){var E;m.value=w,b==null||(E=b.set)===null||E===void 0||E.call(s,w)}})),s.value=h;var p=function(){var w=function(){var E,x;m.selectionStart=(E=s.selectionStart)!==null&&E!==void 0?E:0,m.selectionEnd=(x=s.selectionEnd)!==null&&x!==void 0?x:0,T.id=window.setTimeout(w)};T.id=window.setTimeout(w)},k=function(){window.clearTimeout(T.id),T.id=-1,T.cachedId=-1},C=function(w){try{var E,x;if(T.cachedId===T.id)throw new oo("The input selection has not been updated.");T.cachedId=T.id;var M=s.value,_=s.selectionStart,j=s.selectionEnd;if(_===null||j===null)throw new oo("The selection attributes have not been initialized.");var q,K=m.value;if(w.inputType===void 0&&(m.selectionStart=0,m.selectionEnd=K.length),_>m.selectionStart?q="insert":_<=m.selectionStart&&_<m.selectionEnd?q="deleteBackward":_===m.selectionEnd&&M.length<K.length&&(q="deleteForward"),q===void 0||(q==="deleteBackward"||q==="deleteForward")&&M.length>K.length)throw new oo("Input type detection error.");var se="",L=m.selectionStart,U=m.selectionEnd;if(q==="insert")se=M.slice(m.selectionStart,_);else{var B=K.length-M.length;L=_,U=_+B}v.value!==K?v.options=v.fallbackOptions:v.fallbackOptions=v.options;var R=v.options,$=r({inputType:q,previousValue:K,previousOptions:R,value:M,addedValue:se,changeStart:L,changeEnd:U,selectionStart:_,selectionEnd:j}),W=$.options,X=N_($,D_);s.value=X.value,s.setSelectionRange(X.selectionStart,X.selectionEnd),v.value=X.value,v.options=W,m.selectionStart=X.selectionStart,m.selectionEnd=X.selectionEnd,(E=s._valueTracker)===null||E===void 0||(x=E.setValue)===null||x===void 0||x.call(E,K)}catch(ue){if(s.value=m.value,s.setSelectionRange(m.selectionStart,m.selectionEnd),w.preventDefault(),w.stopPropagation(),ue.name!=="SyntheticChangeError")throw ue}};document.activeElement===s&&p(),s.addEventListener("focus",p),s.addEventListener("blur",k),s.addEventListener("input",C),i.set(s,{onFocus:p,onBlur:k,onInput:C})}},this.unregister=function(s){var o=i.get(s);o!==void 0&&(s.removeEventListener("focus",o.onFocus),s.removeEventListener("blur",o.onBlur),s.removeEventListener("input",o.onInput),i.delete(s))}});ub=db,Object.defineProperty(ub.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});function j_(t,e){return D.useCallback(function(n){t.current=n,typeof e=="function"?e(n):qf(e)==="object"&&e!==null&&(e.current=n)},[t,e])}var fb,U_=["track","modify"];function Fi(t){var e,n,r,i;return{mask:(e=t.mask)!==null&&e!==void 0?e:"",replacement:typeof t.replacement=="string"?Ui(t.replacement):(n=t.replacement)!==null&&n!==void 0?n:{},showMask:(r=t.showMask)!==null&&r!==void 0&&r,separate:(i=t.separate)!==null&&i!==void 0&&i,track:t.track,modify:t.modify}}var hb=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return w_(this,e),(n=S_(this,e,[{init:function(i){var s=i.initialValue,o=i.controlled,a=Fi(r),l=a.mask,c=a.replacement,u=a.separate,d=a.showMask;return s=o||s?s:d?l:"",{value:s,options:{mask:l,replacement:c,separate:u}}},tracking:function(i){var s=i.inputType,o=i.previousValue,a=i.previousOptions,l=i.addedValue,c=i.changeStart,u=i.changeEnd,d=Fi(r),f=d.track,h=d.modify,g=tb(d,U_),v=g.mask,T=g.replacement,m=g.showMask,b=g.separate,p=Il(Il({},s==="insert"?{inputType:s,data:l}:{inputType:s,data:null}),{},{value:o,selectionStart:c,selectionEnd:u}),k=f==null?void 0:f(p);if(k===!1)throw new oo("Custom tracking stop.");k===null?l="":k!==!0&&k!==void 0&&(l=k);var C=h==null?void 0:h(p);(C==null?void 0:C.mask)!==void 0&&(v=C.mask),(C==null?void 0:C.replacement)!==void 0&&(T=typeof(C==null?void 0:C.replacement)=="string"?Ui(C==null?void 0:C.replacement):C.replacement),(C==null?void 0:C.showMask)!==void 0&&(m=C.showMask),(C==null?void 0:C.separate)!==void 0&&(b=C.separate);var w=Hf(o,Il({end:c},a)),E=Hf(o,Il({start:u},a)),x=RegExp("[^".concat(Object.keys(T).join(""),"]"),"g"),M=v.replace(x,"");if(w&&(w=ro(w,{replacementChars:M,replacement:T,separate:b}),M=M.slice(w.length)),l&&(l=ro(l,{replacementChars:M,replacement:T,separate:!1}),M=M.slice(l.length)),s==="insert"&&l==="")throw new oo("The character does not match the key value of the `replacement` object.");if(b){var _=v.slice(c,u).replace(x,""),j=_.length-l.length;j<0?E=E.slice(-j):j>0&&(E=_.slice(-j)+E)}E&&(E=ro(E,{replacementChars:M,replacement:T,separate:b}));var q=nb(w+l+E,{mask:v,replacement:T,separate:b,showMask:m}),K=function(se){var L,U,B,R=se.inputType,$=se.value,W=se.addedValue,X=se.beforeChangeValue,ue=se.mask,_n=se.replacement,Rn=se.separate,Br=rb($,{mask:ue,replacement:_n}).filter(function(Kf){var vb=Kf.type;return vb==="input"||Rn&&vb==="replacement"}),un=(L=Br[X.length+W.length-1])===null||L===void 0?void 0:L.index,Qt=(U=Br[X.length-1])===null||U===void 0?void 0:U.index,zi=(B=Br[X.length+W.length])===null||B===void 0?void 0:B.index;if(R==="insert"){if(un!==void 0)return un+1;if(zi!==void 0)return zi;if(Qt!==void 0)return Qt+1}if(R==="deleteForward"){if(zi!==void 0)return zi;if(Qt!==void 0)return Qt+1}if(R==="deleteBackward"){if(Qt!==void 0)return Qt+1;if(zi!==void 0)return zi}var gb=$.split("").findIndex(function(Kf){return Object.prototype.hasOwnProperty.call(_n,Kf)});return gb!==-1?gb:$.length}({inputType:s,value:q,addedValue:l,beforeChangeValue:w,mask:v,replacement:T,separate:b});return{value:q,selectionStart:K,selectionEnd:K,options:{mask:v,replacement:T,separate:b}}}}])).format=function(i){return ib(i,Fi(r))},n.formatToParts=function(i){return P_(i,Fi(r))},n.unformat=function(i){return E_(i,Fi(r))},n.generatePattern=function(i){return R_(i,Fi(r))},n}return x_(e,db),T_(e)}();fb=hb,Object.defineProperty(fb.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function F_(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mask,n=t.replacement,r=t.showMask,i=t.separate,s=t.track,o=t.modify,a=D.useRef(null),l=D.useRef({mask:e,replacement:n,showMask:r,separate:i,track:s,modify:o});return l.current.mask=e,l.current.replacement=n,l.current.showMask=r,l.current.separate=i,l.current.track=s,l.current.modify=o,D.useMemo(function(){return I_(a,new hb(l.current))},[])}var B_=["component","mask","replacement","showMask","separate","track","modify"];function V_(t,e){var n=t.component,r=t.mask,i=t.replacement,s=t.showMask,o=t.separate,a=t.track,l=t.modify,c=tb(t,B_),u=F_({mask:r,replacement:i,showMask:s,separate:o,track:a,modify:l}),d=j_(u,e);return n?In.createElement(n,_l({ref:d},c)):In.createElement("input",_l({ref:d},c))}var z_=D.forwardRef(V_);const H_={mask:"MM / DD / YYYY",replacement:{D:/\d/,M:/\d/,Y:/\d/},showMask:!0},Gf=({onSubmit:t,className:e})=>{const n=t==null,[r,i]=D.useState(null);return y.jsxs("div",{className:Z("relative bg-primary-5 flex items-center justify-between pl-4 py-2 pr-2 rounded-outer transition-colors duration-500 before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent",n?"":"hover:bg-secondary-20",e),children:[y.jsxs("div",{className:"flex items-center",children:[y.jsx(Xg,{className:"w-4 h-4 text-primary-60"}),y.jsx(z_,{...H_,className:Z("bg-transparent text-primary-80 outline-0 ml-2 py-2.5",n?"placeholder-primary-20 pointer-events-none":"placeholder-primary-40"),placeholder:"MM / DD / YYYY",onChange:s=>{const o=s.target.value,[a,l,c]=o.split(" / ");a!=null&&a.length===2&&l!=null&&l.length===2&&c!=null&&c.length===4?i(`${c}-${a}-${l}`):i(null)}})]}),y.jsx(Be,{className:"flex-none",label:"Send message",onClick:r==null||t==null?void 0:()=>{t(r)},type:"main",Icon:Pa})]})},pb=(t,e)=>n=>{t.type==="slot"&&e.sendSlots({[t.id]:n}),t.type==="context"&&e.sendContext({[t.id]:n})},$_=({data:t,conversationHandler:e})=>{const n=D.useMemo(()=>pb(t.$saveAs,e),[t.$saveAs,e]);return y.jsx(Gf,{onSubmit:n})},q_=({data:t})=>y.jsxs(Tl,{children:[t.thumbnail!=null?y.jsx(xl,{src:t.thumbnail,alt:t.thumbnailAlt}):null,t.rows!=null?t.rows.map((e,n)=>y.jsx(El,{left:y.jsx(ji,{faded:!0,children:e.label}),right:y.jsx(ji,{children:e.value})},n)):null]}),W_=({data:t,conversationHandler:e})=>{const[n,r]=D.useState(null),i=D.useMemo(()=>pb(t.$saveAs,e),[t.$saveAs,e]),s=o=>{r(o),i(o)};return y.jsx(Vf,{children:t.cards.map((o,a)=>y.jsxs(Tl,{selected:o.id===n,onClick:o.id!=null?()=>{o.id!=null&&s(o.id)}:void 0,children:[o.thumbnail!=null?y.jsx(xl,{src:o.thumbnail,alt:o.thumbnailAlt}):null,o.rows!=null?o.rows.map((l,c)=>y.jsx(El,{left:y.jsx(ji,{faded:!0,children:l.label}),right:y.jsx(ji,{children:l.value})},c)):null]},o.id??a))})},G_=({children:t,mode:e,theme:n})=>y.jsxs(y.Fragment,{children:[y.jsx("style",{children:G1}),y.jsx(kl,{className:"bg-background p-4 rounded-outer space-y-4",theme:n,colorMode:e,children:t})]}),K_=lS.version,Z_=(t=>qC.bind((e,...n)=>D.createElement(t[e]??e,...n)))({TextButton:Yn,IconButton:Be,BaseText:ji,SmallText:K1,DateInput:Gf,Carousel:Vf,CustomCard:Tl,CustomCardRow:El,CustomCardImageRow:xl,Ripple:Ci,...ov}),Q_=()=>{const t=crypto.randomUUID();return sessionStorage.setItem("nlxConversationId",t),t},J_=()=>{const t=crypto.randomUUID();return localStorage.setItem("nlxUserId",t),t},Y_=t=>{const e=t.config.applicationUrl??("botUrl"in t.config?t.config.botUrl:void 0);"botUrl"in t.config&&console.warn("The 'botUrl' configuration option is deprecated. Use 'applicationUrl' instead.");const n={...t.customModalities??{},DefaultDateInput:$_,DefaultCard:q_,DefaultCarousel:W_};return{...t,config:{...t.config,applicationUrl:e,conversationId:t.config.conversationId??sessionStorage.getItem("nlxConversationId")??Q_(),userId:t.config.userId??localStorage.getItem("nlxUserId")??J_(),bidirectional:t.bidirectional==null?t.config.bidirectional??!1:!0},input:t.input??"text",customModalities:n,initializeConversation:t.initializeConversation??((r,i)=>{((t==null?void 0:t.input)??"text")==="text"&&r.sendWelcomeFlow(i)})}};let mb=()=>{const t=document.createElement("style");t.textContent=`:where(nlx-touchpoint.nlx-text, nlx-touchpoint.nlx-voice) {
|
|
200
200
|
display: block;
|
|
201
201
|
height: 350px;
|
|
202
202
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.1.8-alpha.
|
|
3
|
+
"version": "1.1.8-alpha.1",
|
|
4
4
|
"description": "Web UI for Touchpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "a3195cf5d9e18b40fe19d7055beb2555aa414a37"
|
|
64
64
|
}
|