@snf/access-qa-bot 3.0.0 → 3.0.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/dist/access-qa-bot.js +331 -327
- package/dist/access-qa-bot.js.map +1 -1
- package/dist/access-qa-bot.standalone.js +17 -17
- package/dist/access-qa-bot.standalone.js.map +1 -1
- package/dist/access-qa-bot.umd.cjs +31 -31
- package/dist/access-qa-bot.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(In,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],N):(In=typeof globalThis<"u"?globalThis:In||self,N(In.AccessQABot={},In.jsxRuntime,In.React,In.ReactDOM))})(this,function(In,N,R,tf){"use strict";function nf(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const lt=nf(R);var
|
|
1
|
+
(function(In,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],N):(In=typeof globalThis<"u"?globalThis:In||self,N(In.AccessQABot={},In.jsxRuntime,In.React,In.ReactDOM))})(this,function(In,N,R,tf){"use strict";function nf(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const lt=nf(R);var Ql=tf;process.env.NODE_ENV==="production"?(Ql.createRoot,Ql.hydrateRoot):Ql.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;var Io={},Bo={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-dom-server-legacy.browser.production.min.js
|
|
4
4
|
*
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
`&&t.push(qn),f!==null&&(_(f,"value"),t.push(pn(""+f))),null}function vn(t,r,s,f){t.push(yn(s));for(var b in r)if(j.call(r,b)){var S=r[b];if(S==null)continue;switch(b){case"children":case"dangerouslySetInnerHTML":throw new Error(s+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:wt(t,f,b,S);break}}return t.push(g),null}function br(t,r,s){t.push(yn("menuitem"));for(var f in r)if(j.call(r,f)){var b=r[f];if(b==null)continue;switch(f){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:wt(t,s,f,b);break}}return t.push(_t),null}function zn(t,r,s){t.push(yn("title"));var f=null;for(var b in r)if(j.call(r,b)){var S=r[b];if(S==null)continue;switch(b){case"children":f=S;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:wt(t,s,b,S);break}}t.push(_t);{var P=Array.isArray(f)&&f.length<2?f[0]||null:f;Array.isArray(f)&&f.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):P!=null&&P.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):P!=null&&typeof P!="string"&&typeof P!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return f}function Zn(t,r,s,f){t.push(yn(s));var b=null,S=null;for(var P in r)if(j.call(r,P)){var H=r[P];if(H==null)continue;switch(P){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;default:wt(t,f,P,H);break}}return t.push(_t),x(t,S,b),typeof b=="string"?(t.push(pn(b)),null):b}function Cn(t,r,s,f){t.push(yn(s));var b=null,S=null;for(var P in r)if(j.call(r,P)){var H=r[P];if(H==null)continue;switch(P){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;case"style":vr(t,f,H);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:me(P)&&typeof H!="function"&&typeof H!="symbol"&&t.push(Wt,P,mn,vt(H),Tt);break}}return t.push(_t),x(t,S,b),b}var qn=`
|
|
37
37
|
`;function Qi(t,r,s,f){t.push(yn(s));var b=null,S=null;for(var P in r)if(j.call(r,P)){var H=r[P];if(H==null)continue;switch(P){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;default:wt(t,f,P,H);break}}if(t.push(_t),S!=null){if(b!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof S!="object"||!("__html"in S))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var V=S.__html;V!=null&&(typeof V=="string"&&V.length>0&&V[0]===`
|
|
38
38
|
`?t.push(qn,V):(U(V),t.push(""+V)))}return typeof b=="string"&&b[0]===`
|
|
39
|
-
`&&t.push(qn),b}var _i=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oo=new Map;function yn(t){var r=oo.get(t);if(r===void 0){if(!_i.test(t))throw new Error("Invalid tag: "+t);r="<"+t,oo.set(t,r)}return r}var Hi="<!DOCTYPE html>";function Pn(t,r,s,f,b){switch(Ft(r,s),Gt(r,s),we(r,s,null),!s.suppressContentEditableWarning&&s.contentEditable&&s.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),b.insertionMode!==dn&&b.insertionMode!==gr&&r.indexOf("-")===-1&&typeof s.is!="string"&&r.toLowerCase()!==r&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r){case"select":return Se(t,s,f);case"option":return It(t,s,f,b);case"textarea":return Un(t,s,f);case"input":return Bt(t,s,f);case"menuitem":return br(t,s,f);case"title":return zn(t,s,f);case"listing":case"pre":return Qi(t,s,r,f);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return vn(t,s,r,f);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Zn(t,s,r,f);case"html":return b.insertionMode===Fn&&t.push(Hi),Zn(t,s,r,f);default:return r.indexOf("-")===-1&&typeof s.is!="string"?Zn(t,s,r,f):Cn(t,s,r,f)}}var Uo="</",ao=">";function Ke(t,r,s){switch(r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:t.push(Uo,r,ao)}}function er(t,r){for(var s=r.bootstrapChunks,f=0;f<s.length-1;f++)A(t,s[f]);return f<s.length?p(t,s[f]):!0}var io='<template id="',tr='"></template>';function jn(t,r,s){A(t,io),A(t,r.placeholderPrefix);var f=s.toString(16);return A(t,f),p(t,tr)}var so="<!--$-->",Wn='<!--$?--><template id="',$t='"></template>',zo="<!--$!-->",Or="<!--/$-->",Ta="<template",lo='"',Da=' data-dgst="',Ni=' data-msg="',Ui=' data-stck="',co="></template>";function Ia(t,r){return p(t,so)}function Fr(t,r,s){if(A(t,Wn),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return A(t,s),p(t,$t)}function jo(t,r,s,f,b){var S;return S=p(t,zo),A(t,Ta),s&&(A(t,Da),A(t,vt(s)),A(t,lo)),f&&(A(t,Ni),A(t,vt(f)),A(t,lo)),b&&(A(t,Ui),A(t,vt(b)),A(t,lo)),S=p(t,co),S}function zi(t,r){return p(t,Or)}function wr(t,r){return p(t,Or)}function Wo(t,r){return p(t,Or)}var Yo='<div hidden id="',xr='">',Lr="</div>",uo='<svg aria-hidden="true" style="display:none" id="',Ba='">',Ma="</svg>",Ra='<math aria-hidden="true" style="display:none" id="',Ao='">',Ht="</math>",Oa='<table hidden id="',fo='">',ji="</table>",Fa='<table hidden><tbody id="',po='">',La="</tbody></table>",Qa='<table hidden><tr id="',ho='">',go="</tr></table>",_a='<table hidden><colgroup id="',Ha='">',Na="</colgroup></table>";function Go(t,r,s,f){switch(s.insertionMode){case Fn:case Lt:return A(t,Yo),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,xr);case dn:return A(t,uo),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ba);case gr:return A(t,Ra),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ao);case Ln:return A(t,Oa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,fo);case Qn:return A(t,Fa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,po);case fn:return A(t,Qa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,ho);case _n:return A(t,_a),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ha);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ua(t,r){switch(r.insertionMode){case Fn:case Lt:return p(t,Lr);case dn:return p(t,Ma);case gr:return p(t,Ht);case Ln:return p(t,ji);case Qn:return p(t,La);case fn:return p(t,go);case _n:return p(t,Na);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var v="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",w='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',k='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',F=v+';$RS("',$='$RS("',X='","',re='")<\/script>';function ce(t,r,s){A(t,r.startInlineScript),r.sentCompleteSegmentFunction?A(t,$):(r.sentCompleteSegmentFunction=!0,A(t,F)),A(t,r.segmentPrefix);var f=s.toString(16);return A(t,f),A(t,X),A(t,r.placeholderPrefix),A(t,f),p(t,re)}var Pe=w+';$RC("',Re='$RC("',Me='","',$e='")<\/script>';function Nt(t,r,s,f){if(A(t,r.startInlineScript),r.sentCompleteBoundaryFunction?A(t,Re):(r.sentCompleteBoundaryFunction=!0,A(t,Pe)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var b=f.toString(16);return A(t,s),A(t,Me),A(t,r.segmentPrefix),A(t,b),p(t,$e)}var Zt=k+';$RX("',qt='$RX("',mo='"',za=")<\/script>",Qr=",";function zc(t,r,s,f,b,S){if(A(t,r.startInlineScript),r.sentClientRenderFunction?A(t,qt):(r.sentClientRenderFunction=!0,A(t,Zt)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return A(t,s),A(t,mo),(f||b||S)&&(A(t,Qr),A(t,Wi(f||""))),(b||S)&&(A(t,Qr),A(t,Wi(b||""))),S&&(A(t,Qr),A(t,Wi(S))),p(t,za)}var jc=/[<\u2028\u2029]/g;function Wi(t){var r=JSON.stringify(t);return r.replace(jc,function(s){switch(s){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Wc(t,r){var s=hr(r);return{bootstrapChunks:s.bootstrapChunks,startInlineScript:s.startInlineScript,placeholderPrefix:s.placeholderPrefix,segmentPrefix:s.segmentPrefix,boundaryPrefix:s.boundaryPrefix,idPrefix:s.idPrefix,nextSuspenseID:s.nextSuspenseID,sentCompleteSegmentFunction:s.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:s.sentCompleteBoundaryFunction,sentClientRenderFunction:s.sentClientRenderFunction,generateStaticMarkup:t}}function Yc(){return{insertionMode:Lt,selectedValue:null}}function
|
|
40
|
-
`+Ka+t}}var es=!1,bo;{var ts=typeof WeakMap=="function"?WeakMap:Map;bo=new ts}function _r(t,r){if(!t||es)return"";{var s=bo.get(t);if(s!==void 0)return s}var f;es=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=Ja.current,Ja.current=null,
|
|
39
|
+
`&&t.push(qn),b}var _i=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oo=new Map;function yn(t){var r=oo.get(t);if(r===void 0){if(!_i.test(t))throw new Error("Invalid tag: "+t);r="<"+t,oo.set(t,r)}return r}var Hi="<!DOCTYPE html>";function Pn(t,r,s,f,b){switch(Ft(r,s),Gt(r,s),we(r,s,null),!s.suppressContentEditableWarning&&s.contentEditable&&s.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),b.insertionMode!==dn&&b.insertionMode!==gr&&r.indexOf("-")===-1&&typeof s.is!="string"&&r.toLowerCase()!==r&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r){case"select":return Se(t,s,f);case"option":return It(t,s,f,b);case"textarea":return Un(t,s,f);case"input":return Bt(t,s,f);case"menuitem":return br(t,s,f);case"title":return zn(t,s,f);case"listing":case"pre":return Qi(t,s,r,f);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return vn(t,s,r,f);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Zn(t,s,r,f);case"html":return b.insertionMode===Fn&&t.push(Hi),Zn(t,s,r,f);default:return r.indexOf("-")===-1&&typeof s.is!="string"?Zn(t,s,r,f):Cn(t,s,r,f)}}var Uo="</",ao=">";function Ke(t,r,s){switch(r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:t.push(Uo,r,ao)}}function er(t,r){for(var s=r.bootstrapChunks,f=0;f<s.length-1;f++)A(t,s[f]);return f<s.length?p(t,s[f]):!0}var io='<template id="',tr='"></template>';function jn(t,r,s){A(t,io),A(t,r.placeholderPrefix);var f=s.toString(16);return A(t,f),p(t,tr)}var so="<!--$-->",Wn='<!--$?--><template id="',$t='"></template>',zo="<!--$!-->",Or="<!--/$-->",Ta="<template",lo='"',Da=' data-dgst="',Ni=' data-msg="',Ui=' data-stck="',co="></template>";function Ia(t,r){return p(t,so)}function Fr(t,r,s){if(A(t,Wn),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return A(t,s),p(t,$t)}function jo(t,r,s,f,b){var S;return S=p(t,zo),A(t,Ta),s&&(A(t,Da),A(t,vt(s)),A(t,lo)),f&&(A(t,Ni),A(t,vt(f)),A(t,lo)),b&&(A(t,Ui),A(t,vt(b)),A(t,lo)),S=p(t,co),S}function zi(t,r){return p(t,Or)}function wr(t,r){return p(t,Or)}function Wo(t,r){return p(t,Or)}var Yo='<div hidden id="',xr='">',Lr="</div>",uo='<svg aria-hidden="true" style="display:none" id="',Ba='">',Ma="</svg>",Ra='<math aria-hidden="true" style="display:none" id="',Ao='">',Ht="</math>",Oa='<table hidden id="',fo='">',ji="</table>",Fa='<table hidden><tbody id="',po='">',La="</tbody></table>",Qa='<table hidden><tr id="',ho='">',go="</tr></table>",_a='<table hidden><colgroup id="',Ha='">',Na="</colgroup></table>";function Go(t,r,s,f){switch(s.insertionMode){case Fn:case Lt:return A(t,Yo),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,xr);case dn:return A(t,uo),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ba);case gr:return A(t,Ra),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ao);case Ln:return A(t,Oa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,fo);case Qn:return A(t,Fa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,po);case fn:return A(t,Qa),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,ho);case _n:return A(t,_a),A(t,r.segmentPrefix),A(t,f.toString(16)),p(t,Ha);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ua(t,r){switch(r.insertionMode){case Fn:case Lt:return p(t,Lr);case dn:return p(t,Ma);case gr:return p(t,Ht);case Ln:return p(t,ji);case Qn:return p(t,La);case fn:return p(t,go);case _n:return p(t,Na);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var v="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",w='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',k='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',F=v+';$RS("',$='$RS("',X='","',re='")<\/script>';function ce(t,r,s){A(t,r.startInlineScript),r.sentCompleteSegmentFunction?A(t,$):(r.sentCompleteSegmentFunction=!0,A(t,F)),A(t,r.segmentPrefix);var f=s.toString(16);return A(t,f),A(t,X),A(t,r.placeholderPrefix),A(t,f),p(t,re)}var Pe=w+';$RC("',Re='$RC("',Me='","',$e='")<\/script>';function Nt(t,r,s,f){if(A(t,r.startInlineScript),r.sentCompleteBoundaryFunction?A(t,Re):(r.sentCompleteBoundaryFunction=!0,A(t,Pe)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var b=f.toString(16);return A(t,s),A(t,Me),A(t,r.segmentPrefix),A(t,b),p(t,$e)}var Zt=k+';$RX("',qt='$RX("',mo='"',za=")<\/script>",Qr=",";function zc(t,r,s,f,b,S){if(A(t,r.startInlineScript),r.sentClientRenderFunction?A(t,qt):(r.sentClientRenderFunction=!0,A(t,Zt)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return A(t,s),A(t,mo),(f||b||S)&&(A(t,Qr),A(t,Wi(f||""))),(b||S)&&(A(t,Qr),A(t,Wi(b||""))),S&&(A(t,Qr),A(t,Wi(S))),p(t,za)}var jc=/[<\u2028\u2029]/g;function Wi(t){var r=JSON.stringify(t);return r.replace(jc,function(s){switch(s){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Wc(t,r){var s=hr(r);return{bootstrapChunks:s.bootstrapChunks,startInlineScript:s.startInlineScript,placeholderPrefix:s.placeholderPrefix,segmentPrefix:s.segmentPrefix,boundaryPrefix:s.boundaryPrefix,idPrefix:s.idPrefix,nextSuspenseID:s.nextSuspenseID,sentCompleteSegmentFunction:s.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:s.sentCompleteBoundaryFunction,sentClientRenderFunction:s.sentClientRenderFunction,generateStaticMarkup:t}}function Yc(){return{insertionMode:Lt,selectedValue:null}}function $s(t,r,s,f){return s.generateStaticMarkup?(t.push(vt(r)),!1):Hn(t,r,s,f)}function Zs(t,r,s,f){if(!r.generateStaticMarkup)return mr(t,r,s,f)}function Gc(t,r){return r.generateStaticMarkup?!0:Ia(t)}function Vc(t,r,s,f,b){return r.generateStaticMarkup?!0:jo(t,r,s,f,b)}function Xc(t,r){return r.generateStaticMarkup?!0:zi(t)}function Jc(t,r){return r.generateStaticMarkup?!0:Wo(t)}var Yt=Object.assign,Kc=Symbol.for("react.element"),qs=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),en=Symbol.for("react.strict_mode"),el=Symbol.for("react.profiler"),Wa=Symbol.for("react.provider"),Ya=Symbol.for("react.context"),Ga=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Vo=Symbol.for("react.suspense_list"),Xo=Symbol.for("react.memo"),vo=Symbol.for("react.lazy"),Yi=Symbol.for("react.scope"),Gi=Symbol.for("react.debug_trace_mode"),Vi=Symbol.for("react.legacy_hidden"),Xa=Symbol.for("react.default_value"),tl=Symbol.iterator,$c="@@iterator";function Zc(t){if(t===null||typeof t!="object")return null;var r=tl&&t[tl]||t[$c];return typeof r=="function"?r:null}function qc(t,r,s){var f=t.displayName;if(f)return f;var b=r.displayName||r.name||"";return b!==""?s+"("+b+")":s}function Xi(t){return t.displayName||"Context"}function it(t){if(t==null)return null;if(typeof t.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ja:return"Fragment";case qs:return"Portal";case el:return"Profiler";case en:return"StrictMode";case Va:return"Suspense";case Vo:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ya:var r=t;return Xi(r)+".Consumer";case Wa:var s=t;return Xi(s._context)+".Provider";case Ga:return qc(t,t.render,"ForwardRef");case Xo:var f=t.displayName||null;return f!==null?f:it(t.type)||"Memo";case vo:{var b=t,S=b._payload,P=b._init;try{return it(P(S))}catch{return null}}}return null}var Jo=0,nl,Ji,nt,yo,Ki,$i,Zi;function qi(){}qi.__reactDisabledLog=!0;function rl(){{if(Jo===0){nl=console.log,Ji=console.info,nt=console.warn,yo=console.error,Ki=console.group,$i=console.groupCollapsed,Zi=console.groupEnd;var t={configurable:!0,enumerable:!0,value:qi,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Jo++}}function ol(){{if(Jo--,Jo===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Yt({},t,{value:nl}),info:Yt({},t,{value:Ji}),warn:Yt({},t,{value:nt}),error:Yt({},t,{value:yo}),group:Yt({},t,{value:Ki}),groupCollapsed:Yt({},t,{value:$i}),groupEnd:Yt({},t,{value:Zi})})}Jo<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ja=a.ReactCurrentDispatcher,Ka;function Ko(t,r,s){{if(Ka===void 0)try{throw Error()}catch(b){var f=b.stack.trim().match(/\n( *(at )?)/);Ka=f&&f[1]||""}return`
|
|
40
|
+
`+Ka+t}}var es=!1,bo;{var ts=typeof WeakMap=="function"?WeakMap:Map;bo=new ts}function _r(t,r){if(!t||es)return"";{var s=bo.get(t);if(s!==void 0)return s}var f;es=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=Ja.current,Ja.current=null,rl();try{if(r){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Ct){f=Ct}Reflect.construct(t,[],P)}else{try{P.call()}catch(Ct){f=Ct}t.call(P.prototype)}}else{try{throw Error()}catch(Ct){f=Ct}t()}}catch(Ct){if(Ct&&f&&typeof Ct.stack=="string"){for(var H=Ct.stack.split(`
|
|
41
41
|
`),V=f.stack.split(`
|
|
42
42
|
`),oe=H.length-1,ae=V.length-1;oe>=1&&ae>=0&&H[oe]!==V[ae];)ae--;for(;oe>=1&&ae>=0;oe--,ae--)if(H[oe]!==V[ae]){if(oe!==1||ae!==1)do if(oe--,ae--,ae<0||H[oe]!==V[ae]){var pe=`
|
|
43
|
-
`+H[oe].replace(" at new "," at ");return t.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",t.displayName)),typeof t=="function"&&bo.set(t,pe),pe}while(oe>=1&&ae>=0);break}}}finally{es=!1,Ja.current=S,
|
|
43
|
+
`+H[oe].replace(" at new "," at ");return t.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",t.displayName)),typeof t=="function"&&bo.set(t,pe),pe}while(oe>=1&&ae>=0);break}}}finally{es=!1,Ja.current=S,ol(),Error.prepareStackTrace=b}var De=t?t.displayName||t.name:"",je=De?Ko(De):"";return typeof t=="function"&&bo.set(t,je),je}function ns(t,r,s){return _r(t,!0)}function $o(t,r,s){return _r(t,!1)}function eu(t){var r=t.prototype;return!!(r&&r.isReactComponent)}function Zo(t,r,s){if(t==null)return"";if(typeof t=="function")return _r(t,eu(t));if(typeof t=="string")return Ko(t);switch(t){case Va:return Ko("Suspense");case Vo:return Ko("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case Ga:return $o(t.render);case Xo:return Zo(t.type,r,s);case vo:{var f=t,b=f._payload,S=f._init;try{return Zo(S(b),r,s)}catch{}}}return""}var al={},rs=a.ReactDebugCurrentFrame;function $a(t){if(t){var r=t._owner,s=Zo(t.type,t._source,r?r.type:null);rs.setExtraStackFrame(s)}else rs.setExtraStackFrame(null)}function Za(t,r,s,f,b){{var S=Function.call.bind(j);for(var P in t)if(S(t,P)){var H=void 0;try{if(typeof t[P]!="function"){var V=Error((f||"React class")+": "+s+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}H=t[P](r,P,f,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){H=oe}H&&!(H instanceof Error)&&($a(b),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",f||"React class",s,P,typeof H),$a(null)),H instanceof Error&&!(H.message in al)&&(al[H.message]=!0,$a(b),o("Failed %s type: %s",s,H.message),$a(null))}}}var qa;qa={};var qo={};Object.freeze(qo);function ea(t,r){{var s=t.contextTypes;if(!s)return qo;var f={};for(var b in s)f[b]=r[b];{var S=it(t)||"Unknown";Za(s,f,"context",S)}return f}}function il(t,r,s,f){{if(typeof t.getChildContext!="function"){{var b=it(r)||"Unknown";qa[b]||(qa[b]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return s}var S=t.getChildContext();for(var P in S)if(!(P in f))throw new Error((it(r)||"Unknown")+'.getChildContext(): key "'+P+'" is not defined in childContextTypes.');{var H=it(r)||"Unknown";Za(f,S,"child context",H)}return Yt({},s,S)}}var Hr;Hr={};var ei=null,Sr=null;function os(t){t.context._currentValue2=t.parentValue}function Nr(t){t.context._currentValue2=t.value}function ti(t,r){if(t!==r){os(t);var s=t.parent,f=r.parent;if(s===null){if(f!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(f===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ti(s,f)}Nr(r)}}function Er(t){os(t);var r=t.parent;r!==null&&Er(r)}function ni(t){var r=t.parent;r!==null&&ni(r),Nr(t)}function ri(t,r){os(t);var s=t.parent;if(s===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");s.depth===r.depth?ti(s,r):ri(s,r)}function ta(t,r){var s=r.parent;if(s===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===s.depth?ti(t,s):ta(t,s),Nr(r)}function na(t){var r=Sr,s=t;r!==s&&(r===null?ni(s):s===null?Er(r):r.depth===s.depth?ti(r,s):r.depth>s.depth?ri(r,s):ta(r,s),Sr=s)}function sl(t,r){var s;s=t._currentValue2,t._currentValue2=r,t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Hr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Hr;var f=Sr,b={parent:f,depth:f===null?0:f.depth+1,context:t,parentValue:s,value:r};return Sr=b,b}function ll(t){var r=Sr;if(r===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");r.context!==t&&o("The parent context is not the expected context. This is probably a bug in React.");{var s=r.parentValue;s===Xa?r.context._currentValue2=r.context._defaultValue:r.context._currentValue2=s,t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Hr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Hr}return Sr=r.parent}function cl(){return Sr}function kr(t){var r=t._currentValue2;return r}function as(t){return t._reactInternals}function tu(t,r){t._reactInternals=r}var ul={},wo={},ra,is,oi,ai,ii,xo,oa,aa,si;{ra=new Set,is=new Set,oi=new Set,oa=new Set,ai=new Set,aa=new Set,si=new Set;var ia=new Set;xo=function(t,r){if(!(t===null||typeof t=="function")){var s=r+"_"+t;ia.has(s)||(ia.add(s),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,t))}},ii=function(t,r){if(r===void 0){var s=it(t)||"Component";ai.has(s)||(ai.add(s),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}}}function li(t,r){{var s=t.constructor,f=s&&it(s)||"ReactClass",b=f+"."+r;if(ul[b])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
44
44
|
|
|
45
|
-
Please check the code for the %s component.`,r,r,f),
|
|
45
|
+
Please check the code for the %s component.`,r,r,f),ul[b]=!0}}var ci={isMounted:function(t){return!1},enqueueSetState:function(t,r,s){var f=as(t);f.queue===null?li(t,"setState"):(f.queue.push(r),s!=null&&xo(s,"setState"))},enqueueReplaceState:function(t,r,s){var f=as(t);f.replace=!0,f.queue=[r],s!=null&&xo(s,"setState")},enqueueForceUpdate:function(t,r){var s=as(t);s.queue===null?li(t,"forceUpdate"):r!=null&&xo(r,"setState")}};function ss(t,r,s,f,b){var S=s(b,f);ii(r,S);var P=S==null?f:Yt({},f,S);return P}function Al(t,r,s){var f=qo,b=t.contextType;if("contextType"in t){var S=b===null||b!==void 0&&b.$$typeof===Ya&&b._context===void 0;if(!S&&!si.has(t)){si.add(t);var P="";b===void 0?P=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof b!="object"?P=" However, it is set to a "+typeof b+".":b.$$typeof===Wa?P=" Did you accidentally pass the Context.Provider instead?":b._context!==void 0?P=" Did you accidentally pass the Context.Consumer instead?":P=" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",it(t)||"Component",P)}}typeof b=="object"&&b!==null?f=kr(b):f=s;var H=new t(r,f);{if(typeof t.getDerivedStateFromProps=="function"&&(H.state===null||H.state===void 0)){var V=it(t)||"Component";ra.has(V)||(ra.add(V),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",V,H.state===null?"null":"undefined",V))}if(typeof t.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var oe=null,ae=null,pe=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?oe="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(oe="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ae="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(ae="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?pe="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(pe="UNSAFE_componentWillUpdate"),oe!==null||ae!==null||pe!==null){var De=it(t)||"Component",je=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";oi.has(De)||(oi.add(De),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
46
46
|
|
|
47
47
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
48
48
|
|
|
@@ -50,20 +50,20 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
50
50
|
https://reactjs.org/link/unsafe-component-lifecycles`,De,je,oe!==null?`
|
|
51
51
|
`+oe:"",ae!==null?`
|
|
52
52
|
`+ae:"",pe!==null?`
|
|
53
|
-
`+pe:""))}}}return H}function
|
|
53
|
+
`+pe:""))}}}return H}function dl(t,r,s){{var f=it(r)||"Component",b=t.render;b||(r.prototype&&typeof r.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",f):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",f)),t.getInitialState&&!t.getInitialState.isReactClassApproved&&!t.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",f),t.getDefaultProps&&!t.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",f),t.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",f),t.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",f),t.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",f),r.contextType&&r.contextTypes&&!aa.has(r)&&(aa.add(r),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",f)),typeof t.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",f),r.prototype&&r.prototype.isPureReactComponent&&typeof t.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",it(r)||"A pure component"),typeof t.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",f),typeof t.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",f),typeof t.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",f),typeof t.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",f);var S=t.props!==s;t.props!==void 0&&S&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",f,f),t.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",f,f),typeof t.getSnapshotBeforeUpdate=="function"&&typeof t.componentDidUpdate!="function"&&!is.has(r)&&(is.add(r),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",it(r))),typeof t.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof t.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof r.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",f);var P=t.state;P&&(typeof P!="object"||An(P))&&o("%s.state: must be set to an object or null",f),typeof t.getChildContext=="function"&&typeof r.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",f)}}function fl(t,r){var s=r.state;if(typeof r.componentWillMount=="function"){if(r.componentWillMount.__suppressDeprecationWarning!==!0){var f=it(t)||"Unknown";wo[f]||(i(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
54
54
|
|
|
55
55
|
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
56
56
|
|
|
57
|
-
Please update the following components: %s`,f),wo[f]=!0)}r.componentWillMount()}typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),s!==r.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",it(t)||"Component"),ci.enqueueReplaceState(r,r.state,null))}function nu(t,r,s,f){if(t.queue!==null&&t.queue.length>0){var b=t.queue,S=t.replace;if(t.queue=null,t.replace=!1,S&&b.length===1)r.state=b[0];else{for(var P=S?b[0]:r.state,H=!0,V=S?1:0;V<b.length;V++){var oe=b[V],ae=typeof oe=="function"?oe.call(r,P,s,f):oe;ae!=null&&(H?(H=!1,P=Yt({},P,ae)):Yt(P,ae))}r.state=P}}else t.queue=null}function
|
|
57
|
+
Please update the following components: %s`,f),wo[f]=!0)}r.componentWillMount()}typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),s!==r.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",it(t)||"Component"),ci.enqueueReplaceState(r,r.state,null))}function nu(t,r,s,f){if(t.queue!==null&&t.queue.length>0){var b=t.queue,S=t.replace;if(t.queue=null,t.replace=!1,S&&b.length===1)r.state=b[0];else{for(var P=S?b[0]:r.state,H=!0,V=S?1:0;V<b.length;V++){var oe=b[V],ae=typeof oe=="function"?oe.call(r,P,s,f):oe;ae!=null&&(H?(H=!1,P=Yt({},P,ae)):Yt(P,ae))}r.state=P}}else t.queue=null}function pl(t,r,s,f){dl(t,r,s);var b=t.state!==void 0?t.state:null;t.updater=ci,t.props=s,t.state=b;var S={queue:[],replace:!1};tu(t,S);var P=r.contextType;if(typeof P=="object"&&P!==null?t.context=kr(P):t.context=f,t.state===s){var H=it(r)||"Component";oa.has(H)||(oa.add(H),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",H))}var V=r.getDerivedStateFromProps;typeof V=="function"&&(t.state=ss(t,r,V,b,s)),typeof r.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function"&&(typeof t.UNSAFE_componentWillMount=="function"||typeof t.componentWillMount=="function")&&(fl(r,t),nu(S,t,s,f))}var ru={id:1,overflow:""};function ou(t){var r=t.overflow,s=t.id,f=s&~au(s);return f.toString(32)+r}function ls(t,r,s){var f=t.id,b=t.overflow,S=sa(f)-1,P=f&~(1<<S),H=s+1,V=sa(r)+S;if(V>30){var oe=S-S%5,ae=(1<<oe)-1,pe=(P&ae).toString(32),De=P>>oe,je=S-oe,Ct=sa(r)+je,Vr=H<<je,Xr=Vr|De,ir=pe+b;return{id:1<<Ct|Xr,overflow:ir}}else{var Do=H<<S,Qu=Do|P,Cm=b;return{id:1<<V|Qu,overflow:Cm}}}function sa(t){return 32-iu(t)}function au(t){return 1<<sa(t)-1}var iu=Math.clz32?Math.clz32:su,cs=Math.log,ui=Math.LN2;function su(t){var r=t>>>0;return r===0?32:31-(cs(r)/ui|0)|0}function lu(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var cu=typeof Object.is=="function"?Object.is:lu,nr=null,us=null,Ai=null,et=null,tn=!1,So=!1,Ur=0,ze=null,Cr=0,di=25,nn=!1,rn;function Yn(){if(nr===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
58
58
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
59
59
|
2. You might be breaking the Rules of Hooks
|
|
60
60
|
3. You might have more than one copy of React in the same app
|
|
61
61
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return nn&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),nr}function uu(t,r){if(r===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",rn),!1;t.length!==r.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
62
62
|
|
|
63
63
|
Previous: %s
|
|
64
|
-
Incoming: %s`,rn,"["+t.join(", ")+"]","["+r.join(", ")+"]");for(var s=0;s<r.length&&s<t.length;s++)if(!cu(t[s],r[s]))return!1;return!0}function Tn(){if(Cr>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Pr(){return et===null?Ai===null?(tn=!1,Ai=et=Tn()):(tn=!0,et=Ai):et.next===null?(tn=!1,et=et.next=Tn()):(tn=!0,et=et.next),et}function zr(t,r){nr=r,us=t,nn=!1,Ur=0}function Au(t,r,s,f){for(;So;)So=!1,Ur=0,Cr+=1,et=null,s=t(r,f);return la(),s}function As(){var t=Ur!==0;return t}function la(){nn=!1,nr=null,us=null,So=!1,Ai=null,Cr=0,ze=null,et=null}function du(t){return nn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),kr(t)}function fu(t){return rn="useContext",Yn(),kr(t)}function fi(t,r){return typeof r=="function"?r(t):r}function ds(t){return rn="useState",
|
|
64
|
+
Incoming: %s`,rn,"["+t.join(", ")+"]","["+r.join(", ")+"]");for(var s=0;s<r.length&&s<t.length;s++)if(!cu(t[s],r[s]))return!1;return!0}function Tn(){if(Cr>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Pr(){return et===null?Ai===null?(tn=!1,Ai=et=Tn()):(tn=!0,et=Ai):et.next===null?(tn=!1,et=et.next=Tn()):(tn=!0,et=et.next),et}function zr(t,r){nr=r,us=t,nn=!1,Ur=0}function Au(t,r,s,f){for(;So;)So=!1,Ur=0,Cr+=1,et=null,s=t(r,f);return la(),s}function As(){var t=Ur!==0;return t}function la(){nn=!1,nr=null,us=null,So=!1,Ai=null,Cr=0,ze=null,et=null}function du(t){return nn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),kr(t)}function fu(t){return rn="useContext",Yn(),kr(t)}function fi(t,r){return typeof r=="function"?r(t):r}function ds(t){return rn="useState",hl(fi,t)}function hl(t,r,s){if(t!==fi&&(rn="useReducer"),nr=Yn(),et=Pr(),tn){var f=et.queue,b=f.dispatch;if(ze!==null){var S=ze.get(f);if(S!==void 0){ze.delete(f);var P=et.memoizedState,H=S;do{var V=H.action;nn=!0,P=t(P,V),nn=!1,H=H.next}while(H!==null);return et.memoizedState=P,[P,b]}}return[et.memoizedState,b]}else{nn=!0;var oe;t===fi?oe=typeof r=="function"?r():r:oe=s!==void 0?s(r):r,nn=!1,et.memoizedState=oe;var ae=et.queue={last:null,dispatch:null},pe=ae.dispatch=ml.bind(null,nr,ae);return[et.memoizedState,pe]}}function gl(t,r){nr=Yn(),et=Pr();var s=r===void 0?null:r;if(et!==null){var f=et.memoizedState;if(f!==null&&s!==null){var b=f[1];if(uu(s,b))return f[0]}}nn=!0;var S=t();return nn=!1,et.memoizedState=[S,s],S}function fs(t){nr=Yn(),et=Pr();var r=et.memoizedState;if(r===null){var s={current:t};return Object.seal(s),et.memoizedState=s,s}else return r}function pu(t,r){rn="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function ml(t,r,s){if(Cr>=di)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(t===nr){So=!0;var f={action:s,next:null};ze===null&&(ze=new Map);var b=ze.get(r);if(b===void 0)ze.set(r,f);else{for(var S=b;S.next!==null;)S=S.next;S.next=f}}}function vl(t,r){return gl(function(){return t},r)}function hu(t,r,s){return Yn(),r(t._source)}function gu(t,r,s){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return s()}function mu(t){return Yn(),t}function vu(){throw new Error("startTransition cannot be called during server rendering.")}function yu(){return Yn(),[!1,vu]}function bu(){var t=us,r=ou(t.treeContext),s=ps;if(s===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var f=Ur++;return At(s,r,f)}function pi(){}var yl={readContext:du,useContext:fu,useMemo:gl,useReducer:hl,useRef:fs,useState:ds,useInsertionEffect:pi,useLayoutEffect:pu,useCallback:vl,useImperativeHandle:pi,useEffect:pi,useDebugValue:pi,useDeferredValue:mu,useTransition:yu,useId:bu,useMutableSource:hu,useSyncExternalStore:gu},ps=null;function bl(t){ps=t}function hi(t){try{var r="",s=t;do{switch(s.tag){case 0:r+=Ko(s.type,null,null);break;case 1:r+=$o(s.type,null,null);break;case 2:r+=ns(s.type,null,null);break}s=s.parent}while(s);return r}catch(f){return`
|
|
65
65
|
Error generating stack: `+f.message+`
|
|
66
|
-
`+f.stack}}var gi=a.ReactCurrentDispatcher,ca=a.ReactDebugCurrentFrame,mi=0,Eo=1,vi=2,yi=3,bi=4,ko=0,hs=1,jr=2,xl=12800;function wu(t){return console.error(t),null}function Co(){}function Po(t,r,s,f,b,S,P,H,V){var oe=[],ae=new Set,pe={destination:null,responseState:r,progressiveChunkSize:f===void 0?xl:f,status:ko,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ae,pingedTasks:oe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:b===void 0?wu:b,onAllReady:Co,onShellReady:P===void 0?Co:P,onShellError:Co,onFatalError:Co},De=wi(pe,0,null,s,!1,!1);De.parentFlushed=!0;var je=Wr(pe,t,null,De,ae,qo,ei,ru);return oe.push(je),pe}function xu(t,r){var s=t.pingedTasks;s.push(r),s.length===1&&u(function(){return ks(t)})}function Su(t,r){return{id:ro,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:r,errorDigest:null}}function Wr(t,r,s,f,b,S,P,H){t.allPendingTasks++,s===null?t.pendingRootTasks++:s.pendingTasks++;var V={node:r,ping:function(){return xu(t,V)},blockedBoundary:s,blockedSegment:f,abortSet:b,legacyContext:S,context:P,treeContext:H};return V.componentStack=null,b.add(V),V}function wi(t,r,s,f,b,S){return{status:mi,id:-1,index:r,parentFlushed:!1,chunks:[],children:[],formatContext:f,boundary:s,lastPushedText:b,textEmbedded:S}}var rr=null;function gs(){return rr===null||rr.componentStack===null?"":hi(rr.componentStack)}function Yr(t,r){t.componentStack={tag:0,parent:t.componentStack,type:r}}function ua(t,r){t.componentStack={tag:1,parent:t.componentStack,type:r}}function or(t,r){t.componentStack={tag:2,parent:t.componentStack,type:r}}function Gn(t){t.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):t.componentStack=t.componentStack.parent}var ar=null;function xi(t,r){{var s;typeof r=="string"?s=r:r&&typeof r.message=="string"?s=r.message:s=String(r);var f=ar||gs();ar=null,t.errorMessage=s,t.errorComponentStack=f}}function Aa(t,r){var s=t.onError(r);if(s!=null&&typeof s!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof s+'" instead');return s}function Dn(t,r){var s=t.onShellError;s(r);var f=t.onFatalError;f(r),t.destination!==null?(t.status=jr,D(t.destination,r)):(t.status=hs,t.fatalError=r)}function da(t,r,s){Yr(r,"Suspense");var f=r.blockedBoundary,b=r.blockedSegment,S=s.fallback,P=s.children,H=new Set,V=Su(t,H),oe=b.chunks.length,ae=wi(t,oe,V,b.formatContext,!1,!1);b.children.push(ae),b.lastPushedText=!1;var pe=wi(t,0,null,b.formatContext,!1,!1);pe.parentFlushed=!0,r.blockedBoundary=V,r.blockedSegment=pe;try{if(Ut(t,r,P),qs(pe.chunks,t.responseState,pe.lastPushedText,pe.textEmbedded),pe.status=Eo,To(V,pe),V.pendingTasks===0){Gn(r);return}}catch(je){pe.status=bi,V.forceClientRender=!0,V.errorDigest=Aa(t,je),xi(V,je)}finally{r.blockedBoundary=f,r.blockedSegment=b}var De=Wr(t,S,f,ae,H,r.legacyContext,r.context,r.treeContext);De.componentStack=r.componentStack,t.pingedTasks.push(De),Gn(r)}function ms(t,r,s,f){Yr(r,s);var b=r.blockedSegment,S=Pn(b.chunks,s,f,t.responseState,b.formatContext);b.lastPushedText=!1;var P=b.formatContext;b.formatContext=no(P,s,f),Ut(t,r,S),b.formatContext=P,Ke(b.chunks,s),b.lastPushedText=!1,Gn(r)}function fa(t){return t.prototype&&t.prototype.isReactComponent}function pa(t,r,s,f,b){var S={};zr(r,S);var P=s(f,b);return Au(s,f,P,b)}function Sl(t,r,s,f,b){var S=s.render();s.props!==b&&(ys||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",it(f)||"a component"),ys=!0);{var P=f.childContextTypes;if(P!=null){var H=r.legacyContext,V=sl(s,f,H,P);r.legacyContext=V,on(t,r,S),r.legacyContext=H;return}}on(t,r,S)}function Eu(t,r,s,f){or(r,s);var b=ea(s,r.legacyContext),S=dl(s,f,b);hl(S,s,f,b),Sl(t,r,S,s,f),Gn(r)}var El={},ha={},vs={},kl={},ys=!1,ga={},bs=!1,ws=!1,xs=!1;function Cl(t,r,s,f){var b;if(b=ea(s,r.legacyContext),ua(r,s),s.prototype&&typeof s.prototype.render=="function"){var S=it(s)||"Unknown";El[S]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",S,S),El[S]=!0)}var P=pa(t,r,s,f,b),H=As();if(typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0){var V=it(s)||"Unknown";ha[V]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),ha[V]=!0)}if(typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0){{var oe=it(s)||"Unknown";ha[oe]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",oe,oe,oe),ha[oe]=!0)}hl(P,s,f,b),Sl(t,r,P,s,f)}else if(Pl(s),H){var ae=r.treeContext,pe=1,De=0;r.treeContext=ls(ae,pe,De);try{on(t,r,P)}finally{r.treeContext=ae}}else on(t,r,P);Gn(r)}function Pl(t){{if(t&&t.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),t.defaultProps!==void 0){var r=it(t)||"Unknown";ga[r]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",r),ga[r]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var s=it(t)||"Unknown";kl[s]||(o("%s: Function components do not support getDerivedStateFromProps.",s),kl[s]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var f=it(t)||"Unknown";vs[f]||(o("%s: Function components do not support contextType.",f),vs[f]=!0)}}}function Ss(t,r){if(t&&t.defaultProps){var s=Yt({},r),f=t.defaultProps;for(var b in f)s[b]===void 0&&(s[b]=f[b]);return s}return r}function Tl(t,r,s,f,b){ua(r,s.render);var S=pa(t,r,s.render,f,b),P=As();if(P){var H=r.treeContext,V=1,oe=0;r.treeContext=ls(H,V,oe);try{on(t,r,S)}finally{r.treeContext=H}}else on(t,r,S);Gn(r)}function ku(t,r,s,f,b){var S=s.type,P=Ss(S,f);Es(t,r,S,P,b)}function Cu(t,r,s,f){s._context===void 0?s!==s.Consumer&&(xs||(xs=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):s=s._context;var b=f.children;typeof b!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var S=kr(s),P=b(S);on(t,r,P)}function Dl(t,r,s,f){var b=s._context,S=f.value,P=f.children,H;H=r.context,r.context=ll(b,S),on(t,r,P),r.context=cl(b),H!==r.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Pu(t,r,s,f,b){Yr(r,"Lazy");var S=s._payload,P=s._init,H=P(S),V=Ss(H,f);Es(t,r,H,V,b),Gn(r)}function Es(t,r,s,f,b){if(typeof s=="function")if(fa(s)){Eu(t,r,s,f);return}else{Cl(t,r,s,f);return}if(typeof s=="string"){ms(t,r,s,f);return}switch(s){case Vi:case Gi:case en:case tl:case ja:{on(t,r,f.children);return}case Vo:{Yr(r,"SuspenseList"),on(t,r,f.children),Gn(r);return}case Yi:throw new Error("ReactDOMServer does not yet support scope components.");case Va:{da(t,r,f);return}}if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Ga:{Tl(t,r,s,f,b);return}case Xo:{ku(t,r,s,f,b);return}case Wa:{Dl(t,r,s,f);return}case Ya:{Cu(t,r,s,f);return}case vo:{Pu(t,r,s,f);return}}var S="";throw(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(s==null?s:typeof s)+"."+S))}function Tu(t,r){typeof Symbol=="function"&&t[Symbol.toStringTag]==="Generator"&&(bs||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),bs=!0),t.entries===r&&(ws||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ws=!0)}function on(t,r,s){try{return Du(t,r,s)}catch(f){throw typeof f=="object"&&f!==null&&typeof f.then=="function"||(ar=ar!==null?ar:gs()),f}}function Du(t,r,s){if(r.node=s,typeof s=="object"&&s!==null){switch(s.$$typeof){case Kc:{var f=s,b=f.type,S=f.props,P=f.ref;Es(t,r,b,S,P);return}case el:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case vo:{var H=s,V=H._payload,oe=H._init,ae;try{ae=oe(V)}catch(Do){throw typeof Do=="object"&&Do!==null&&typeof Do.then=="function"&&Yr(r,"Lazy"),Do}on(t,r,ae);return}}if(An(s)){Si(t,r,s);return}var pe=Zc(s);if(pe){Tu(s,pe);var De=pe.call(s);if(De){var je=De.next();if(!je.done){var Ct=[];do Ct.push(je.value),je=De.next();while(!je.done);Si(t,r,Ct);return}return}}var Vr=Object.prototype.toString.call(s);throw new Error("Objects are not valid as a React child (found: "+(Vr==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Vr)+"). If you meant to render a collection of children, use an array instead.")}if(typeof s=="string"){var Xr=r.blockedSegment;Xr.lastPushedText=Zs(r.blockedSegment.chunks,s,t.responseState,Xr.lastPushedText);return}if(typeof s=="number"){var ir=r.blockedSegment;ir.lastPushedText=Zs(r.blockedSegment.chunks,""+s,t.responseState,ir.lastPushedText);return}typeof s=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Si(t,r,s){for(var f=s.length,b=0;b<f;b++){var S=r.treeContext;r.treeContext=ls(S,f,b);try{Ut(t,r,s[b])}finally{r.treeContext=S}}}function Iu(t,r,s){var f=r.blockedSegment,b=f.chunks.length,S=wi(t,b,null,f.formatContext,f.lastPushedText,!0);f.children.push(S),f.lastPushedText=!1;var P=Wr(t,r.node,r.blockedBoundary,S,r.abortSet,r.legacyContext,r.context,r.treeContext);r.componentStack!==null&&(P.componentStack=r.componentStack.parent);var H=P.ping;s.then(H,H)}function Ut(t,r,s){var f=r.blockedSegment.formatContext,b=r.legacyContext,S=r.context,P=null;P=r.componentStack;try{return on(t,r,s)}catch(H){if(la(),typeof H=="object"&&H!==null&&typeof H.then=="function"){Iu(t,r,H),r.blockedSegment.formatContext=f,r.legacyContext=b,r.context=S,na(S),r.componentStack=P;return}else throw r.blockedSegment.formatContext=f,r.legacyContext=b,r.context=S,na(S),r.componentStack=P,H}}function Bu(t,r,s,f){var b=Aa(t,f);if(r===null?Dn(t,f):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=b,xi(r,f),r.parentFlushed&&t.clientRenderedBoundaries.push(r))),t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Il(t){var r=this,s=t.blockedBoundary,f=t.blockedSegment;f.status=yi,Ml(r,s,f)}function Bl(t,r,s){var f=t.blockedBoundary,b=t.blockedSegment;if(b.status=yi,f===null)r.allPendingTasks--,r.status!==jr&&(r.status=jr,r.destination!==null&&m(r.destination));else{if(f.pendingTasks--,!f.forceClientRender){f.forceClientRender=!0;var S=s===void 0?new Error("The render was aborted by the server without a reason."):s;f.errorDigest=r.onError(S);{var P="The server did not finish this Suspense boundary: ";S&&typeof S.message=="string"?S=P+S.message:S=P+String(S);var H=rr;rr=t;try{xi(f,S)}finally{rr=H}}f.parentFlushed&&r.clientRenderedBoundaries.push(f)}if(f.fallbackAbortableTasks.forEach(function(oe){return Bl(oe,r,s)}),f.fallbackAbortableTasks.clear(),r.allPendingTasks--,r.allPendingTasks===0){var V=r.onAllReady;V()}}}function To(t,r){if(r.chunks.length===0&&r.children.length===1&&r.children[0].boundary===null){var s=r.children[0];s.id=r.id,s.parentFlushed=!0,s.status===Eo&&To(t,s)}else{var f=t.completedSegments;f.push(r)}}function Ml(t,r,s){if(r===null){if(s.parentFlushed){if(t.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");t.completedRootSegment=s}if(t.pendingRootTasks--,t.pendingRootTasks===0){t.onShellError=Co;var f=t.onShellReady;f()}}else if(r.pendingTasks--,!r.forceClientRender){if(r.pendingTasks===0)s.parentFlushed&&s.status===Eo&&To(r,s),r.parentFlushed&&t.completedBoundaries.push(r),r.fallbackAbortableTasks.forEach(Il,t),r.fallbackAbortableTasks.clear();else if(s.parentFlushed&&s.status===Eo){To(r,s);var b=r.completedSegments;b.length===1&&r.parentFlushed&&t.partialBoundaries.push(r)}}if(t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Mu(t,r){var s=r.blockedSegment;if(s.status===mi){na(r.context);var f=null;f=rr,rr=r;try{on(t,r,r.node),qs(s.chunks,t.responseState,s.lastPushedText,s.textEmbedded),r.abortSet.delete(r),s.status=Eo,Ml(t,r.blockedBoundary,s)}catch(S){if(la(),typeof S=="object"&&S!==null&&typeof S.then=="function"){var b=r.ping;S.then(b,b)}else r.abortSet.delete(r),s.status=bi,Bu(t,r.blockedBoundary,s,S)}finally{rr=f}}}function ks(t){if(t.status!==jr){var r=ul(),s=gi.current;gi.current=bl;var f;f=ca.getCurrentStack,ca.getCurrentStack=gs;var b=ps;wl(t.responseState);try{var S=t.pingedTasks,P;for(P=0;P<S.length;P++){var H=S[P];Mu(t,H)}S.splice(0,P),t.destination!==null&&ki(t,t.destination)}catch(V){Aa(t,V),Dn(t,V)}finally{wl(b),gi.current=s,ca.getCurrentStack=f,s===bl&&na(r)}}}function Gr(t,r,s){switch(s.parentFlushed=!0,s.status){case mi:{var f=s.id=t.nextSegmentId++;return s.lastPushedText=!1,s.textEmbedded=!1,jn(r,t.responseState,f)}case Eo:{s.status=vi;for(var b=!0,S=s.chunks,P=0,H=s.children,V=0;V<H.length;V++){for(var oe=H[V];P<oe.index;P++)A(r,S[P]);b=ma(t,r,oe)}for(;P<S.length-1;P++)A(r,S[P]);return P<S.length&&(b=p(r,S[P])),b}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ma(t,r,s){var f=s.boundary;if(f===null)return Gr(t,r,s);if(f.parentFlushed=!0,f.forceClientRender)return Vc(r,t.responseState,f.errorDigest,f.errorMessage,f.errorComponentStack),Gr(t,r,s),Jc(r,t.responseState);if(f.pendingTasks>0){f.rootSegmentID=t.nextSegmentId++,f.completedSegments.length>0&&t.partialBoundaries.push(f);var b=f.id=kn(t.responseState);return Fr(r,t.responseState,b),Gr(t,r,s),wr(r,t.responseState)}else{if(f.byteSize>t.progressiveChunkSize)return f.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(f),Fr(r,t.responseState,f.id),Gr(t,r,s),wr(r,t.responseState);Gc(r,t.responseState);var S=f.completedSegments;if(S.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var P=S[0];return ma(t,r,P),Xc(r,t.responseState)}}function Ru(t,r,s){return zc(r,t.responseState,s.id,s.errorDigest,s.errorMessage,s.errorComponentStack)}function Cs(t,r,s){return Go(r,t.responseState,s.formatContext,s.id),ma(t,r,s),Ua(r,s.formatContext)}function va(t,r,s){for(var f=s.completedSegments,b=0;b<f.length;b++){var S=f[b];Rl(t,r,s,S)}return f.length=0,Nt(r,t.responseState,s.id,s.rootSegmentID)}function Ei(t,r,s){for(var f=s.completedSegments,b=0;b<f.length;b++){var S=f[b];if(!Rl(t,r,s,S))return b++,f.splice(0,b),!1}return f.splice(0,b),!0}function Rl(t,r,s,f){if(f.status===vi)return!0;var b=f.id;if(b===-1){var S=f.id=s.rootSegmentID;if(S===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Cs(t,r,f)}else return Cs(t,r,f),ce(r,t.responseState,b)}function ki(t,r){try{var s=t.completedRootSegment;s!==null&&t.pendingRootTasks===0&&(ma(t,r,s),t.completedRootSegment=null,er(r,t.responseState));var f=t.clientRenderedBoundaries,b;for(b=0;b<f.length;b++){var S=f[b];if(!Ru(t,r,S)){t.destination=null,b++,f.splice(0,b);return}}f.splice(0,b);var P=t.completedBoundaries;for(b=0;b<P.length;b++){var H=P[b];if(!va(t,r,H)){t.destination=null,b++,P.splice(0,b);return}}P.splice(0,b);var V=t.partialBoundaries;for(b=0;b<V.length;b++){var oe=V[b];if(!Ei(t,r,oe)){t.destination=null,b++,V.splice(0,b);return}}V.splice(0,b);var ae=t.completedBoundaries;for(b=0;b<ae.length;b++){var pe=ae[b];if(!va(t,r,pe)){t.destination=null,b++,ae.splice(0,b);return}}ae.splice(0,b)}finally{t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&(t.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),m(r))}}function Ol(t){u(function(){return ks(t)})}function Ou(t,r){if(t.status===hs){t.status=jr,D(r,t.fatalError);return}if(t.status!==jr&&t.destination===null){t.destination=r;try{ki(t,r)}catch(s){Aa(t,s),Dn(t,s)}}}function Fl(t,r){try{var s=t.abortableTasks;s.forEach(function(f){return Bl(f,t,r)}),s.clear(),t.destination!==null&&ki(t,t.destination)}catch(f){Aa(t,f),Dn(t,f)}}function Ps(){}function Ll(t,r,s,f){var b=!1,S=null,P="",H={push:function(pe){return pe!==null&&(P+=pe),!0},destroy:function(pe){b=!0,S=pe}},V=!1;function oe(){V=!0}var ae=Po(t,Wc(s,r?r.identifierPrefix:void 0),Yc(),1/0,Ps,void 0,oe);if(Ol(ae),Fl(ae,f),Ou(ae,H),b)throw S;if(!V)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return P}function Fu(t,r){return Ll(t,r,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Ql(t,r){return Ll(t,r,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Lu(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function l(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Mo.renderToNodeStream=Lu,Mo.renderToStaticMarkup=Ql,Mo.renderToStaticNodeStream=l,Mo.renderToString=Fu,Mo.version=n}()),Mo}var Ds={};/**
|
|
66
|
+
`+f.stack}}var gi=a.ReactCurrentDispatcher,ca=a.ReactDebugCurrentFrame,mi=0,Eo=1,vi=2,yi=3,bi=4,ko=0,hs=1,jr=2,wl=12800;function wu(t){return console.error(t),null}function Co(){}function Po(t,r,s,f,b,S,P,H,V){var oe=[],ae=new Set,pe={destination:null,responseState:r,progressiveChunkSize:f===void 0?wl:f,status:ko,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ae,pingedTasks:oe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:b===void 0?wu:b,onAllReady:Co,onShellReady:P===void 0?Co:P,onShellError:Co,onFatalError:Co},De=wi(pe,0,null,s,!1,!1);De.parentFlushed=!0;var je=Wr(pe,t,null,De,ae,qo,ei,ru);return oe.push(je),pe}function xu(t,r){var s=t.pingedTasks;s.push(r),s.length===1&&u(function(){return ks(t)})}function Su(t,r){return{id:ro,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:r,errorDigest:null}}function Wr(t,r,s,f,b,S,P,H){t.allPendingTasks++,s===null?t.pendingRootTasks++:s.pendingTasks++;var V={node:r,ping:function(){return xu(t,V)},blockedBoundary:s,blockedSegment:f,abortSet:b,legacyContext:S,context:P,treeContext:H};return V.componentStack=null,b.add(V),V}function wi(t,r,s,f,b,S){return{status:mi,id:-1,index:r,parentFlushed:!1,chunks:[],children:[],formatContext:f,boundary:s,lastPushedText:b,textEmbedded:S}}var rr=null;function gs(){return rr===null||rr.componentStack===null?"":hi(rr.componentStack)}function Yr(t,r){t.componentStack={tag:0,parent:t.componentStack,type:r}}function ua(t,r){t.componentStack={tag:1,parent:t.componentStack,type:r}}function or(t,r){t.componentStack={tag:2,parent:t.componentStack,type:r}}function Gn(t){t.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):t.componentStack=t.componentStack.parent}var ar=null;function xi(t,r){{var s;typeof r=="string"?s=r:r&&typeof r.message=="string"?s=r.message:s=String(r);var f=ar||gs();ar=null,t.errorMessage=s,t.errorComponentStack=f}}function Aa(t,r){var s=t.onError(r);if(s!=null&&typeof s!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof s+'" instead');return s}function Dn(t,r){var s=t.onShellError;s(r);var f=t.onFatalError;f(r),t.destination!==null?(t.status=jr,D(t.destination,r)):(t.status=hs,t.fatalError=r)}function da(t,r,s){Yr(r,"Suspense");var f=r.blockedBoundary,b=r.blockedSegment,S=s.fallback,P=s.children,H=new Set,V=Su(t,H),oe=b.chunks.length,ae=wi(t,oe,V,b.formatContext,!1,!1);b.children.push(ae),b.lastPushedText=!1;var pe=wi(t,0,null,b.formatContext,!1,!1);pe.parentFlushed=!0,r.blockedBoundary=V,r.blockedSegment=pe;try{if(Ut(t,r,P),Zs(pe.chunks,t.responseState,pe.lastPushedText,pe.textEmbedded),pe.status=Eo,To(V,pe),V.pendingTasks===0){Gn(r);return}}catch(je){pe.status=bi,V.forceClientRender=!0,V.errorDigest=Aa(t,je),xi(V,je)}finally{r.blockedBoundary=f,r.blockedSegment=b}var De=Wr(t,S,f,ae,H,r.legacyContext,r.context,r.treeContext);De.componentStack=r.componentStack,t.pingedTasks.push(De),Gn(r)}function ms(t,r,s,f){Yr(r,s);var b=r.blockedSegment,S=Pn(b.chunks,s,f,t.responseState,b.formatContext);b.lastPushedText=!1;var P=b.formatContext;b.formatContext=no(P,s,f),Ut(t,r,S),b.formatContext=P,Ke(b.chunks,s),b.lastPushedText=!1,Gn(r)}function fa(t){return t.prototype&&t.prototype.isReactComponent}function pa(t,r,s,f,b){var S={};zr(r,S);var P=s(f,b);return Au(s,f,P,b)}function xl(t,r,s,f,b){var S=s.render();s.props!==b&&(ys||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",it(f)||"a component"),ys=!0);{var P=f.childContextTypes;if(P!=null){var H=r.legacyContext,V=il(s,f,H,P);r.legacyContext=V,on(t,r,S),r.legacyContext=H;return}}on(t,r,S)}function Eu(t,r,s,f){or(r,s);var b=ea(s,r.legacyContext),S=Al(s,f,b);pl(S,s,f,b),xl(t,r,S,s,f),Gn(r)}var Sl={},ha={},vs={},El={},ys=!1,ga={},bs=!1,ws=!1,xs=!1;function kl(t,r,s,f){var b;if(b=ea(s,r.legacyContext),ua(r,s),s.prototype&&typeof s.prototype.render=="function"){var S=it(s)||"Unknown";Sl[S]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",S,S),Sl[S]=!0)}var P=pa(t,r,s,f,b),H=As();if(typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0){var V=it(s)||"Unknown";ha[V]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),ha[V]=!0)}if(typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0){{var oe=it(s)||"Unknown";ha[oe]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",oe,oe,oe),ha[oe]=!0)}pl(P,s,f,b),xl(t,r,P,s,f)}else if(Cl(s),H){var ae=r.treeContext,pe=1,De=0;r.treeContext=ls(ae,pe,De);try{on(t,r,P)}finally{r.treeContext=ae}}else on(t,r,P);Gn(r)}function Cl(t){{if(t&&t.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),t.defaultProps!==void 0){var r=it(t)||"Unknown";ga[r]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",r),ga[r]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var s=it(t)||"Unknown";El[s]||(o("%s: Function components do not support getDerivedStateFromProps.",s),El[s]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var f=it(t)||"Unknown";vs[f]||(o("%s: Function components do not support contextType.",f),vs[f]=!0)}}}function Ss(t,r){if(t&&t.defaultProps){var s=Yt({},r),f=t.defaultProps;for(var b in f)s[b]===void 0&&(s[b]=f[b]);return s}return r}function Pl(t,r,s,f,b){ua(r,s.render);var S=pa(t,r,s.render,f,b),P=As();if(P){var H=r.treeContext,V=1,oe=0;r.treeContext=ls(H,V,oe);try{on(t,r,S)}finally{r.treeContext=H}}else on(t,r,S);Gn(r)}function ku(t,r,s,f,b){var S=s.type,P=Ss(S,f);Es(t,r,S,P,b)}function Cu(t,r,s,f){s._context===void 0?s!==s.Consumer&&(xs||(xs=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):s=s._context;var b=f.children;typeof b!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var S=kr(s),P=b(S);on(t,r,P)}function Tl(t,r,s,f){var b=s._context,S=f.value,P=f.children,H;H=r.context,r.context=sl(b,S),on(t,r,P),r.context=ll(b),H!==r.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Pu(t,r,s,f,b){Yr(r,"Lazy");var S=s._payload,P=s._init,H=P(S),V=Ss(H,f);Es(t,r,H,V,b),Gn(r)}function Es(t,r,s,f,b){if(typeof s=="function")if(fa(s)){Eu(t,r,s,f);return}else{kl(t,r,s,f);return}if(typeof s=="string"){ms(t,r,s,f);return}switch(s){case Vi:case Gi:case en:case el:case ja:{on(t,r,f.children);return}case Vo:{Yr(r,"SuspenseList"),on(t,r,f.children),Gn(r);return}case Yi:throw new Error("ReactDOMServer does not yet support scope components.");case Va:{da(t,r,f);return}}if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Ga:{Pl(t,r,s,f,b);return}case Xo:{ku(t,r,s,f,b);return}case Wa:{Tl(t,r,s,f);return}case Ya:{Cu(t,r,s,f);return}case vo:{Pu(t,r,s,f);return}}var S="";throw(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(s==null?s:typeof s)+"."+S))}function Tu(t,r){typeof Symbol=="function"&&t[Symbol.toStringTag]==="Generator"&&(bs||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),bs=!0),t.entries===r&&(ws||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ws=!0)}function on(t,r,s){try{return Du(t,r,s)}catch(f){throw typeof f=="object"&&f!==null&&typeof f.then=="function"||(ar=ar!==null?ar:gs()),f}}function Du(t,r,s){if(r.node=s,typeof s=="object"&&s!==null){switch(s.$$typeof){case Kc:{var f=s,b=f.type,S=f.props,P=f.ref;Es(t,r,b,S,P);return}case qs:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case vo:{var H=s,V=H._payload,oe=H._init,ae;try{ae=oe(V)}catch(Do){throw typeof Do=="object"&&Do!==null&&typeof Do.then=="function"&&Yr(r,"Lazy"),Do}on(t,r,ae);return}}if(An(s)){Si(t,r,s);return}var pe=Zc(s);if(pe){Tu(s,pe);var De=pe.call(s);if(De){var je=De.next();if(!je.done){var Ct=[];do Ct.push(je.value),je=De.next();while(!je.done);Si(t,r,Ct);return}return}}var Vr=Object.prototype.toString.call(s);throw new Error("Objects are not valid as a React child (found: "+(Vr==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Vr)+"). If you meant to render a collection of children, use an array instead.")}if(typeof s=="string"){var Xr=r.blockedSegment;Xr.lastPushedText=$s(r.blockedSegment.chunks,s,t.responseState,Xr.lastPushedText);return}if(typeof s=="number"){var ir=r.blockedSegment;ir.lastPushedText=$s(r.blockedSegment.chunks,""+s,t.responseState,ir.lastPushedText);return}typeof s=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Si(t,r,s){for(var f=s.length,b=0;b<f;b++){var S=r.treeContext;r.treeContext=ls(S,f,b);try{Ut(t,r,s[b])}finally{r.treeContext=S}}}function Iu(t,r,s){var f=r.blockedSegment,b=f.chunks.length,S=wi(t,b,null,f.formatContext,f.lastPushedText,!0);f.children.push(S),f.lastPushedText=!1;var P=Wr(t,r.node,r.blockedBoundary,S,r.abortSet,r.legacyContext,r.context,r.treeContext);r.componentStack!==null&&(P.componentStack=r.componentStack.parent);var H=P.ping;s.then(H,H)}function Ut(t,r,s){var f=r.blockedSegment.formatContext,b=r.legacyContext,S=r.context,P=null;P=r.componentStack;try{return on(t,r,s)}catch(H){if(la(),typeof H=="object"&&H!==null&&typeof H.then=="function"){Iu(t,r,H),r.blockedSegment.formatContext=f,r.legacyContext=b,r.context=S,na(S),r.componentStack=P;return}else throw r.blockedSegment.formatContext=f,r.legacyContext=b,r.context=S,na(S),r.componentStack=P,H}}function Bu(t,r,s,f){var b=Aa(t,f);if(r===null?Dn(t,f):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=b,xi(r,f),r.parentFlushed&&t.clientRenderedBoundaries.push(r))),t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Dl(t){var r=this,s=t.blockedBoundary,f=t.blockedSegment;f.status=yi,Bl(r,s,f)}function Il(t,r,s){var f=t.blockedBoundary,b=t.blockedSegment;if(b.status=yi,f===null)r.allPendingTasks--,r.status!==jr&&(r.status=jr,r.destination!==null&&m(r.destination));else{if(f.pendingTasks--,!f.forceClientRender){f.forceClientRender=!0;var S=s===void 0?new Error("The render was aborted by the server without a reason."):s;f.errorDigest=r.onError(S);{var P="The server did not finish this Suspense boundary: ";S&&typeof S.message=="string"?S=P+S.message:S=P+String(S);var H=rr;rr=t;try{xi(f,S)}finally{rr=H}}f.parentFlushed&&r.clientRenderedBoundaries.push(f)}if(f.fallbackAbortableTasks.forEach(function(oe){return Il(oe,r,s)}),f.fallbackAbortableTasks.clear(),r.allPendingTasks--,r.allPendingTasks===0){var V=r.onAllReady;V()}}}function To(t,r){if(r.chunks.length===0&&r.children.length===1&&r.children[0].boundary===null){var s=r.children[0];s.id=r.id,s.parentFlushed=!0,s.status===Eo&&To(t,s)}else{var f=t.completedSegments;f.push(r)}}function Bl(t,r,s){if(r===null){if(s.parentFlushed){if(t.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");t.completedRootSegment=s}if(t.pendingRootTasks--,t.pendingRootTasks===0){t.onShellError=Co;var f=t.onShellReady;f()}}else if(r.pendingTasks--,!r.forceClientRender){if(r.pendingTasks===0)s.parentFlushed&&s.status===Eo&&To(r,s),r.parentFlushed&&t.completedBoundaries.push(r),r.fallbackAbortableTasks.forEach(Dl,t),r.fallbackAbortableTasks.clear();else if(s.parentFlushed&&s.status===Eo){To(r,s);var b=r.completedSegments;b.length===1&&r.parentFlushed&&t.partialBoundaries.push(r)}}if(t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Mu(t,r){var s=r.blockedSegment;if(s.status===mi){na(r.context);var f=null;f=rr,rr=r;try{on(t,r,r.node),Zs(s.chunks,t.responseState,s.lastPushedText,s.textEmbedded),r.abortSet.delete(r),s.status=Eo,Bl(t,r.blockedBoundary,s)}catch(S){if(la(),typeof S=="object"&&S!==null&&typeof S.then=="function"){var b=r.ping;S.then(b,b)}else r.abortSet.delete(r),s.status=bi,Bu(t,r.blockedBoundary,s,S)}finally{rr=f}}}function ks(t){if(t.status!==jr){var r=cl(),s=gi.current;gi.current=yl;var f;f=ca.getCurrentStack,ca.getCurrentStack=gs;var b=ps;bl(t.responseState);try{var S=t.pingedTasks,P;for(P=0;P<S.length;P++){var H=S[P];Mu(t,H)}S.splice(0,P),t.destination!==null&&ki(t,t.destination)}catch(V){Aa(t,V),Dn(t,V)}finally{bl(b),gi.current=s,ca.getCurrentStack=f,s===yl&&na(r)}}}function Gr(t,r,s){switch(s.parentFlushed=!0,s.status){case mi:{var f=s.id=t.nextSegmentId++;return s.lastPushedText=!1,s.textEmbedded=!1,jn(r,t.responseState,f)}case Eo:{s.status=vi;for(var b=!0,S=s.chunks,P=0,H=s.children,V=0;V<H.length;V++){for(var oe=H[V];P<oe.index;P++)A(r,S[P]);b=ma(t,r,oe)}for(;P<S.length-1;P++)A(r,S[P]);return P<S.length&&(b=p(r,S[P])),b}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ma(t,r,s){var f=s.boundary;if(f===null)return Gr(t,r,s);if(f.parentFlushed=!0,f.forceClientRender)return Vc(r,t.responseState,f.errorDigest,f.errorMessage,f.errorComponentStack),Gr(t,r,s),Jc(r,t.responseState);if(f.pendingTasks>0){f.rootSegmentID=t.nextSegmentId++,f.completedSegments.length>0&&t.partialBoundaries.push(f);var b=f.id=kn(t.responseState);return Fr(r,t.responseState,b),Gr(t,r,s),wr(r,t.responseState)}else{if(f.byteSize>t.progressiveChunkSize)return f.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(f),Fr(r,t.responseState,f.id),Gr(t,r,s),wr(r,t.responseState);Gc(r,t.responseState);var S=f.completedSegments;if(S.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var P=S[0];return ma(t,r,P),Xc(r,t.responseState)}}function Ru(t,r,s){return zc(r,t.responseState,s.id,s.errorDigest,s.errorMessage,s.errorComponentStack)}function Cs(t,r,s){return Go(r,t.responseState,s.formatContext,s.id),ma(t,r,s),Ua(r,s.formatContext)}function va(t,r,s){for(var f=s.completedSegments,b=0;b<f.length;b++){var S=f[b];Ml(t,r,s,S)}return f.length=0,Nt(r,t.responseState,s.id,s.rootSegmentID)}function Ei(t,r,s){for(var f=s.completedSegments,b=0;b<f.length;b++){var S=f[b];if(!Ml(t,r,s,S))return b++,f.splice(0,b),!1}return f.splice(0,b),!0}function Ml(t,r,s,f){if(f.status===vi)return!0;var b=f.id;if(b===-1){var S=f.id=s.rootSegmentID;if(S===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Cs(t,r,f)}else return Cs(t,r,f),ce(r,t.responseState,b)}function ki(t,r){try{var s=t.completedRootSegment;s!==null&&t.pendingRootTasks===0&&(ma(t,r,s),t.completedRootSegment=null,er(r,t.responseState));var f=t.clientRenderedBoundaries,b;for(b=0;b<f.length;b++){var S=f[b];if(!Ru(t,r,S)){t.destination=null,b++,f.splice(0,b);return}}f.splice(0,b);var P=t.completedBoundaries;for(b=0;b<P.length;b++){var H=P[b];if(!va(t,r,H)){t.destination=null,b++,P.splice(0,b);return}}P.splice(0,b);var V=t.partialBoundaries;for(b=0;b<V.length;b++){var oe=V[b];if(!Ei(t,r,oe)){t.destination=null,b++,V.splice(0,b);return}}V.splice(0,b);var ae=t.completedBoundaries;for(b=0;b<ae.length;b++){var pe=ae[b];if(!va(t,r,pe)){t.destination=null,b++,ae.splice(0,b);return}}ae.splice(0,b)}finally{t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&(t.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),m(r))}}function Rl(t){u(function(){return ks(t)})}function Ou(t,r){if(t.status===hs){t.status=jr,D(r,t.fatalError);return}if(t.status!==jr&&t.destination===null){t.destination=r;try{ki(t,r)}catch(s){Aa(t,s),Dn(t,s)}}}function Ol(t,r){try{var s=t.abortableTasks;s.forEach(function(f){return Il(f,t,r)}),s.clear(),t.destination!==null&&ki(t,t.destination)}catch(f){Aa(t,f),Dn(t,f)}}function Ps(){}function Fl(t,r,s,f){var b=!1,S=null,P="",H={push:function(pe){return pe!==null&&(P+=pe),!0},destroy:function(pe){b=!0,S=pe}},V=!1;function oe(){V=!0}var ae=Po(t,Wc(s,r?r.identifierPrefix:void 0),Yc(),1/0,Ps,void 0,oe);if(Rl(ae),Ol(ae,f),Ou(ae,H),b)throw S;if(!V)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return P}function Fu(t,r){return Fl(t,r,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Ll(t,r){return Fl(t,r,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Lu(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function l(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Mo.renderToNodeStream=Lu,Mo.renderToStaticMarkup=Ll,Mo.renderToStaticNodeStream=l,Mo.renderToString=Fu,Mo.version=n}()),Mo}var Ds={};/**
|
|
67
67
|
* @license React
|
|
68
68
|
* react-dom-server.browser.development.js
|
|
69
69
|
*
|
|
@@ -75,13 +75,13 @@ Error generating stack: `+f.message+`
|
|
|
75
75
|
`&&l.push(tr),s!==null&&(z(s,"value"),l.push(E(Tt(""+s)))),null}function Uo(l,t,r,s){l.push($t(r));for(var f in t)if(J.call(t,f)){var b=t[f];if(b==null)continue;switch(f){case"children":case"dangerouslySetInnerHTML":throw new Error(r+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Se(l,s,f,b);break}}return l.push(Dt),null}function ao(l,t,r){l.push($t("menuitem"));for(var s in t)if(J.call(t,s)){var f=t[s];if(f==null)continue;switch(s){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Se(l,r,s,f);break}}return l.push(Ue),null}function Ke(l,t,r){l.push($t("title"));var s=null;for(var f in t)if(J.call(t,f)){var b=t[f];if(b==null)continue;switch(f){case"children":s=b;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Se(l,r,f,b);break}}l.push(Ue);{var S=Array.isArray(s)&&s.length<2?s[0]||null:s;Array.isArray(s)&&s.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):S!=null&&S.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):S!=null&&typeof S!="string"&&typeof S!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return s}function er(l,t,r,s){l.push($t(r));var f=null,b=null;for(var S in t)if(J.call(t,S)){var P=t[S];if(P==null)continue;switch(S){case"children":f=P;break;case"dangerouslySetInnerHTML":b=P;break;default:Se(l,s,S,P);break}}return l.push(Ue),It(l,b,f),typeof f=="string"?(l.push(E(Tt(f))),null):f}function io(l,t,r,s){l.push($t(r));var f=null,b=null;for(var S in t)if(J.call(t,S)){var P=t[S];if(P==null)continue;switch(S){case"children":f=P;break;case"dangerouslySetInnerHTML":b=P;break;case"style":G(l,s,P);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:de(S)&&typeof P!="function"&&typeof P!="symbol"&&l.push(q,E(S),le,E(ut(P)),be);break}}return l.push(Ue),It(l,b,f),f}var tr=I(`
|
|
76
76
|
`);function jn(l,t,r,s){l.push($t(r));var f=null,b=null;for(var S in t)if(J.call(t,S)){var P=t[S];if(P==null)continue;switch(S){case"children":f=P;break;case"dangerouslySetInnerHTML":b=P;break;default:Se(l,s,S,P);break}}if(l.push(Ue),b!=null){if(f!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var H=b.__html;H!=null&&(typeof H=="string"&&H.length>0&&H[0]===`
|
|
77
77
|
`?l.push(tr,E(H)):(te(H),l.push(E(""+H))))}return typeof f=="string"&&f[0]===`
|
|
78
|
-
`&&l.push(tr),f}var so=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Wn=new Map;function $t(l){var t=Wn.get(l);if(t===void 0){if(!so.test(l))throw new Error("Invalid tag: "+l);t=I("<"+l),Wn.set(l,t)}return t}var zo=I("<!DOCTYPE html>");function Or(l,t,r,s,f){switch(st(t,r),Vt(t,r),kt(t,r,null),!r.suppressContentEditableWarning&&r.contentEditable&&r.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),f.insertionMode!==pn&&f.insertionMode!==hn&&t.indexOf("-")===-1&&typeof r.is!="string"&&t.toLowerCase()!==t&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),t){case"select":return Qi(l,r,s);case"option":return yn(l,r,s,f);case"textarea":return Pn(l,r,s);case"input":return Hi(l,r,s);case"menuitem":return ao(l,r,s);case"title":return Ke(l,r,s);case"listing":case"pre":return jn(l,r,t,s);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Uo(l,r,t,s);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return er(l,r,t,s);case"html":return f.insertionMode===kn&&l.push(zo),er(l,r,t,s);default:return t.indexOf("-")===-1&&typeof r.is!="string"?er(l,r,t,s):io(l,r,t,s)}}var Ta=I("</"),lo=I(">");function Da(l,t,r){switch(t){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:l.push(Ta,E(t),lo)}}function Ni(l,t){for(var r=t.bootstrapChunks,s=0;s<r.length-1;s++)m(l,r[s]);return s<r.length?y(l,r[s]):!0}var Ui=I('<template id="'),co=I('"></template>');function Ia(l,t,r){m(l,Ui),m(l,t.placeholderPrefix);var s=E(r.toString(16));return m(l,s),y(l,co)}var Fr=I("<!--$-->"),jo=I('<!--$?--><template id="'),zi=I('"></template>'),wr=I("<!--$!-->"),Wo=I("<!--/$-->"),Yo=I("<template"),xr=I('"'),Lr=I(' data-dgst="'),uo=I(' data-msg="'),Ba=I(' data-stck="'),Ma=I("></template>");function Ra(l,t){return y(l,Fr)}function Ao(l,t,r){if(m(l,jo),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(l,r),y(l,zi)}function Ht(l,t,r,s,f){var b;return b=y(l,wr),m(l,Yo),r&&(m(l,Lr),m(l,E(ut(r))),m(l,xr)),s&&(m(l,uo),m(l,E(ut(s))),m(l,xr)),f&&(m(l,Ba),m(l,E(ut(f))),m(l,xr)),b=y(l,Ma),b}function Oa(l,t){return y(l,Wo)}function fo(l,t){return y(l,Wo)}function ji(l,t){return y(l,Wo)}var Fa=I('<div hidden id="'),po=I('">'),La=I("</div>"),Qa=I('<svg aria-hidden="true" style="display:none" id="'),ho=I('">'),go=I("</svg>"),_a=I('<math aria-hidden="true" style="display:none" id="'),Ha=I('">'),Na=I("</math>"),Go=I('<table hidden id="'),Ua=I('">'),v=I("</table>"),w=I('<table hidden><tbody id="'),k=I('">'),F=I("</tbody></table>"),$=I('<table hidden><tr id="'),X=I('">'),re=I("</tr></table>"),ce=I('<table hidden><colgroup id="'),Pe=I('">'),Re=I("</colgroup></table>");function Me(l,t,r,s){switch(r.insertionMode){case kn:case At:return m(l,Fa),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,po);case pn:return m(l,Qa),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,ho);case hn:return m(l,_a),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Ha);case Hn:return m(l,Go),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Ua);case mr:return m(l,w),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,k);case Kt:return m(l,$),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,X);case gn:return m(l,ce),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Pe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function $e(l,t){switch(t.insertionMode){case kn:case At:return y(l,La);case pn:return y(l,go);case hn:return y(l,Na);case Hn:return y(l,v);case mr:return y(l,F);case Kt:return y(l,re);case gn:return y(l,Re);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Nt="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Zt='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',qt='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',mo=I(Nt+';$RS("'),za=I('$RS("'),Qr=I('","'),zc=I('")<\/script>');function jc(l,t,r){m(l,t.startInlineScript),t.sentCompleteSegmentFunction?m(l,za):(t.sentCompleteSegmentFunction=!0,m(l,mo)),m(l,t.segmentPrefix);var s=E(r.toString(16));return m(l,s),m(l,Qr),m(l,t.placeholderPrefix),m(l,s),y(l,zc)}var Wi=I(Zt+';$RC("'),Wc=I('$RC("'),Yc=I('","')
|
|
78
|
+
`&&l.push(tr),f}var so=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Wn=new Map;function $t(l){var t=Wn.get(l);if(t===void 0){if(!so.test(l))throw new Error("Invalid tag: "+l);t=I("<"+l),Wn.set(l,t)}return t}var zo=I("<!DOCTYPE html>");function Or(l,t,r,s,f){switch(st(t,r),Vt(t,r),kt(t,r,null),!r.suppressContentEditableWarning&&r.contentEditable&&r.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),f.insertionMode!==pn&&f.insertionMode!==hn&&t.indexOf("-")===-1&&typeof r.is!="string"&&t.toLowerCase()!==t&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),t){case"select":return Qi(l,r,s);case"option":return yn(l,r,s,f);case"textarea":return Pn(l,r,s);case"input":return Hi(l,r,s);case"menuitem":return ao(l,r,s);case"title":return Ke(l,r,s);case"listing":case"pre":return jn(l,r,t,s);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Uo(l,r,t,s);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return er(l,r,t,s);case"html":return f.insertionMode===kn&&l.push(zo),er(l,r,t,s);default:return t.indexOf("-")===-1&&typeof r.is!="string"?er(l,r,t,s):io(l,r,t,s)}}var Ta=I("</"),lo=I(">");function Da(l,t,r){switch(t){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:l.push(Ta,E(t),lo)}}function Ni(l,t){for(var r=t.bootstrapChunks,s=0;s<r.length-1;s++)m(l,r[s]);return s<r.length?y(l,r[s]):!0}var Ui=I('<template id="'),co=I('"></template>');function Ia(l,t,r){m(l,Ui),m(l,t.placeholderPrefix);var s=E(r.toString(16));return m(l,s),y(l,co)}var Fr=I("<!--$-->"),jo=I('<!--$?--><template id="'),zi=I('"></template>'),wr=I("<!--$!-->"),Wo=I("<!--/$-->"),Yo=I("<template"),xr=I('"'),Lr=I(' data-dgst="'),uo=I(' data-msg="'),Ba=I(' data-stck="'),Ma=I("></template>");function Ra(l,t){return y(l,Fr)}function Ao(l,t,r){if(m(l,jo),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(l,r),y(l,zi)}function Ht(l,t,r,s,f){var b;return b=y(l,wr),m(l,Yo),r&&(m(l,Lr),m(l,E(ut(r))),m(l,xr)),s&&(m(l,uo),m(l,E(ut(s))),m(l,xr)),f&&(m(l,Ba),m(l,E(ut(f))),m(l,xr)),b=y(l,Ma),b}function Oa(l,t){return y(l,Wo)}function fo(l,t){return y(l,Wo)}function ji(l,t){return y(l,Wo)}var Fa=I('<div hidden id="'),po=I('">'),La=I("</div>"),Qa=I('<svg aria-hidden="true" style="display:none" id="'),ho=I('">'),go=I("</svg>"),_a=I('<math aria-hidden="true" style="display:none" id="'),Ha=I('">'),Na=I("</math>"),Go=I('<table hidden id="'),Ua=I('">'),v=I("</table>"),w=I('<table hidden><tbody id="'),k=I('">'),F=I("</tbody></table>"),$=I('<table hidden><tr id="'),X=I('">'),re=I("</tr></table>"),ce=I('<table hidden><colgroup id="'),Pe=I('">'),Re=I("</colgroup></table>");function Me(l,t,r,s){switch(r.insertionMode){case kn:case At:return m(l,Fa),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,po);case pn:return m(l,Qa),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,ho);case hn:return m(l,_a),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Ha);case Hn:return m(l,Go),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Ua);case mr:return m(l,w),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,k);case Kt:return m(l,$),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,X);case gn:return m(l,ce),m(l,t.segmentPrefix),m(l,E(s.toString(16))),y(l,Pe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function $e(l,t){switch(t.insertionMode){case kn:case At:return y(l,La);case pn:return y(l,go);case hn:return y(l,Na);case Hn:return y(l,v);case mr:return y(l,F);case Kt:return y(l,re);case gn:return y(l,Re);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Nt="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Zt='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',qt='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',mo=I(Nt+';$RS("'),za=I('$RS("'),Qr=I('","'),zc=I('")<\/script>');function jc(l,t,r){m(l,t.startInlineScript),t.sentCompleteSegmentFunction?m(l,za):(t.sentCompleteSegmentFunction=!0,m(l,mo)),m(l,t.segmentPrefix);var s=E(r.toString(16));return m(l,s),m(l,Qr),m(l,t.placeholderPrefix),m(l,s),y(l,zc)}var Wi=I(Zt+';$RC("'),Wc=I('$RC("'),Yc=I('","'),$s=I('")<\/script>');function Zs(l,t,r,s){if(m(l,t.startInlineScript),t.sentCompleteBoundaryFunction?m(l,Wc):(t.sentCompleteBoundaryFunction=!0,m(l,Wi)),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var f=E(s.toString(16));return m(l,r),m(l,Yc),m(l,t.segmentPrefix),m(l,f),y(l,$s)}var Gc=I(qt+';$RX("'),Vc=I('$RX("'),Xc=I('"'),Jc=I(")<\/script>"),Yt=I(",");function Kc(l,t,r,s,f,b){if(m(l,t.startInlineScript),t.sentClientRenderFunction?m(l,Vc):(t.sentClientRenderFunction=!0,m(l,Gc)),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(l,r),m(l,Xc),(s||f||b)&&(m(l,Yt),m(l,E(ja(s||"")))),(f||b)&&(m(l,Yt),m(l,E(ja(f||"")))),b&&(m(l,Yt),m(l,E(ja(b)))),y(l,Jc)}var qs=/[<\u2028\u2029]/g;function ja(l){var t=JSON.stringify(l);return t.replace(qs,function(r){switch(r){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var en=Object.assign,el=Symbol.for("react.element"),Wa=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),Ga=Symbol.for("react.strict_mode"),Va=Symbol.for("react.profiler"),Vo=Symbol.for("react.provider"),Xo=Symbol.for("react.context"),vo=Symbol.for("react.forward_ref"),Yi=Symbol.for("react.suspense"),Gi=Symbol.for("react.suspense_list"),Vi=Symbol.for("react.memo"),Xa=Symbol.for("react.lazy"),tl=Symbol.for("react.scope"),$c=Symbol.for("react.debug_trace_mode"),Zc=Symbol.for("react.legacy_hidden"),qc=Symbol.for("react.default_value"),Xi=Symbol.iterator,it="@@iterator";function Jo(l){if(l===null||typeof l!="object")return null;var t=Xi&&l[Xi]||l[it];return typeof t=="function"?t:null}function nl(l,t,r){var s=l.displayName;if(s)return s;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function Ji(l){return l.displayName||"Context"}function nt(l){if(l==null)return null;if(typeof l.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Ya:return"Fragment";case Wa:return"Portal";case Va:return"Profiler";case Ga:return"StrictMode";case Yi:return"Suspense";case Gi:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case Xo:var t=l;return Ji(t)+".Consumer";case Vo:var r=l;return Ji(r._context)+".Provider";case vo:return nl(l,l.render,"ForwardRef");case Vi:var s=l.displayName||null;return s!==null?s:nt(l.type)||"Memo";case Xa:{var f=l,b=f._payload,S=f._init;try{return nt(S(b))}catch{return null}}}return null}var yo=0,Ki,$i,Zi,qi,rl,ol,Ja;function Ka(){}Ka.__reactDisabledLog=!0;function Ko(){{if(yo===0){Ki=console.log,$i=console.info,Zi=console.warn,qi=console.error,rl=console.group,ol=console.groupCollapsed,Ja=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Ka,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}yo++}}function es(){{if(yo--,yo===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:en({},l,{value:Ki}),info:en({},l,{value:$i}),warn:en({},l,{value:Zi}),error:en({},l,{value:qi}),group:en({},l,{value:rl}),groupCollapsed:en({},l,{value:ol}),groupEnd:en({},l,{value:Ja})})}yo<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var bo=a.ReactCurrentDispatcher,ts;function _r(l,t,r){{if(ts===void 0)try{throw Error()}catch(f){var s=f.stack.trim().match(/\n( *(at )?)/);ts=s&&s[1]||""}return`
|
|
79
79
|
`+ts+l}}var ns=!1,$o;{var eu=typeof WeakMap=="function"?WeakMap:Map;$o=new eu}function Zo(l,t){if(!l||ns)return"";{var r=$o.get(l);if(r!==void 0)return r}var s;ns=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=bo.current,bo.current=null,Ko();try{if(t){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(je){s=je}Reflect.construct(l,[],S)}else{try{S.call()}catch(je){s=je}l.call(S.prototype)}}else{try{throw Error()}catch(je){s=je}l()}}catch(je){if(je&&s&&typeof je.stack=="string"){for(var P=je.stack.split(`
|
|
80
80
|
`),H=s.stack.split(`
|
|
81
81
|
`),V=P.length-1,oe=H.length-1;V>=1&&oe>=0&&P[V]!==H[oe];)oe--;for(;V>=1&&oe>=0;V--,oe--)if(P[V]!==H[oe]){if(V!==1||oe!==1)do if(V--,oe--,oe<0||P[V]!==H[oe]){var ae=`
|
|
82
|
-
`+P[V].replace(" at new "," at ");return l.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",l.displayName)),typeof l=="function"&&$o.set(l,ae),ae}while(V>=1&&oe>=0);break}}}finally{ns=!1,bo.current=b,es(),Error.prepareStackTrace=f}var pe=l?l.displayName||l.name:"",De=pe?_r(pe):"";return typeof l=="function"&&$o.set(l,De),De}function
|
|
82
|
+
`+P[V].replace(" at new "," at ");return l.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",l.displayName)),typeof l=="function"&&$o.set(l,ae),ae}while(V>=1&&oe>=0);break}}}finally{ns=!1,bo.current=b,es(),Error.prepareStackTrace=f}var pe=l?l.displayName||l.name:"",De=pe?_r(pe):"";return typeof l=="function"&&$o.set(l,De),De}function al(l,t,r){return Zo(l,!0)}function rs(l,t,r){return Zo(l,!1)}function $a(l){var t=l.prototype;return!!(t&&t.isReactComponent)}function Za(l,t,r){if(l==null)return"";if(typeof l=="function")return Zo(l,$a(l));if(typeof l=="string")return _r(l);switch(l){case Yi:return _r("Suspense");case Gi:return _r("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case vo:return rs(l.render);case Vi:return Za(l.type,t,r);case Xa:{var s=l,f=s._payload,b=s._init;try{return Za(b(f),t,r)}catch{}}}return""}var qa={},qo=a.ReactDebugCurrentFrame;function ea(l){if(l){var t=l._owner,r=Za(l.type,l._source,t?t.type:null);qo.setExtraStackFrame(r)}else qo.setExtraStackFrame(null)}function il(l,t,r,s,f){{var b=Function.call.bind(J);for(var S in l)if(b(l,S)){var P=void 0;try{if(typeof l[S]!="function"){var H=Error((s||"React class")+": "+r+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}P=l[S](t,S,s,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){P=V}P&&!(P instanceof Error)&&(ea(f),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",r,S,typeof P),ea(null)),P instanceof Error&&!(P.message in qa)&&(qa[P.message]=!0,ea(f),o("Failed %s type: %s",r,P.message),ea(null))}}}var Hr;Hr={};var ei={};Object.freeze(ei);function Sr(l,t){{var r=l.contextTypes;if(!r)return ei;var s={};for(var f in r)s[f]=t[f];{var b=nt(l)||"Unknown";il(r,s,"context",b)}return s}}function os(l,t,r,s){{if(typeof l.getChildContext!="function"){{var f=nt(t)||"Unknown";Hr[f]||(Hr[f]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",f,f))}return r}var b=l.getChildContext();for(var S in b)if(!(S in s))throw new Error((nt(t)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var P=nt(t)||"Unknown";il(s,b,"child context",P)}return en({},r,b)}}var Nr;Nr={};var ti=null,Er=null;function ni(l){l.context._currentValue=l.parentValue}function ri(l){l.context._currentValue=l.value}function ta(l,t){if(l!==t){ni(l);var r=l.parent,s=t.parent;if(r===null){if(s!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(s===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ta(r,s)}ri(t)}}function na(l){ni(l);var t=l.parent;t!==null&&na(t)}function sl(l){var t=l.parent;t!==null&&sl(t),ri(l)}function ll(l,t){ni(l);var r=l.parent;if(r===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");r.depth===t.depth?ta(r,t):ll(r,t)}function cl(l,t){var r=t.parent;if(r===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===r.depth?ta(l,r):cl(l,r),ri(t)}function kr(l){var t=Er,r=l;t!==r&&(t===null?sl(r):r===null?na(t):t.depth===r.depth?ta(t,r):t.depth>r.depth?ll(t,r):cl(t,r),Er=r)}function as(l,t){var r;r=l._currentValue,l._currentValue=t,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Nr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Nr;var s=Er,f={parent:s,depth:s===null?0:s.depth+1,context:l,parentValue:r,value:t};return Er=f,f}function tu(l){var t=Er;if(t===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");t.context!==l&&o("The parent context is not the expected context. This is probably a bug in React.");{var r=t.parentValue;r===qc?t.context._currentValue=t.context._defaultValue:t.context._currentValue=r,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Nr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Nr}return Er=t.parent}function ul(){return Er}function wo(l){var t=l._currentValue;return t}function ra(l){return l._reactInternals}function is(l,t){l._reactInternals=t}var oi={},ai={},ii,xo,oa,aa,si,ia,li,ci,ss;{ii=new Set,xo=new Set,oa=new Set,li=new Set,aa=new Set,ci=new Set,ss=new Set;var Al=new Set;ia=function(l,t){if(!(l===null||typeof l=="function")){var r=t+"_"+l;Al.has(r)||(Al.add(r),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,l))}},si=function(l,t){if(t===void 0){var r=nt(l)||"Component";aa.has(r)||(aa.add(r),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",r))}}}function dl(l,t){{var r=l.constructor,s=r&&nt(r)||"ReactClass",f=s+"."+t;if(oi[f])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
83
83
|
|
|
84
|
-
Please check the code for the %s component.`,t,t,s),oi[f]=!0}}var
|
|
84
|
+
Please check the code for the %s component.`,t,t,s),oi[f]=!0}}var fl={isMounted:function(l){return!1},enqueueSetState:function(l,t,r){var s=ra(l);s.queue===null?dl(l,"setState"):(s.queue.push(t),r!=null&&ia(r,"setState"))},enqueueReplaceState:function(l,t,r){var s=ra(l);s.replace=!0,s.queue=[t],r!=null&&ia(r,"setState")},enqueueForceUpdate:function(l,t){var r=ra(l);r.queue===null?dl(l,"forceUpdate"):t!=null&&ia(t,"setState")}};function nu(l,t,r,s,f){var b=r(f,s);si(t,b);var S=b==null?s:en({},s,b);return S}function pl(l,t,r){var s=ei,f=l.contextType;if("contextType"in l){var b=f===null||f!==void 0&&f.$$typeof===Xo&&f._context===void 0;if(!b&&!ss.has(l)){ss.add(l);var S="";f===void 0?S=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof f!="object"?S=" However, it is set to a "+typeof f+".":f.$$typeof===Vo?S=" Did you accidentally pass the Context.Provider instead?":f._context!==void 0?S=" Did you accidentally pass the Context.Consumer instead?":S=" However, it is set to an object with keys {"+Object.keys(f).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",nt(l)||"Component",S)}}typeof f=="object"&&f!==null?s=wo(f):s=r;var P=new l(t,s);{if(typeof l.getDerivedStateFromProps=="function"&&(P.state===null||P.state===void 0)){var H=nt(l)||"Component";ii.has(H)||(ii.add(H),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",H,P.state===null?"null":"undefined",H))}if(typeof l.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"){var V=null,oe=null,ae=null;if(typeof P.componentWillMount=="function"&&P.componentWillMount.__suppressDeprecationWarning!==!0?V="componentWillMount":typeof P.UNSAFE_componentWillMount=="function"&&(V="UNSAFE_componentWillMount"),typeof P.componentWillReceiveProps=="function"&&P.componentWillReceiveProps.__suppressDeprecationWarning!==!0?oe="componentWillReceiveProps":typeof P.UNSAFE_componentWillReceiveProps=="function"&&(oe="UNSAFE_componentWillReceiveProps"),typeof P.componentWillUpdate=="function"&&P.componentWillUpdate.__suppressDeprecationWarning!==!0?ae="componentWillUpdate":typeof P.UNSAFE_componentWillUpdate=="function"&&(ae="UNSAFE_componentWillUpdate"),V!==null||oe!==null||ae!==null){var pe=nt(l)||"Component",De=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";oa.has(pe)||(oa.add(pe),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
85
85
|
|
|
86
86
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
87
87
|
|
|
@@ -93,25 +93,25 @@ https://reactjs.org/link/unsafe-component-lifecycles`,pe,De,V!==null?`
|
|
|
93
93
|
|
|
94
94
|
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
95
95
|
|
|
96
|
-
Please update the following components: %s`,s),ai[s]=!0)}t.componentWillMount()}typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),r!==t.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",nt(l)||"Component"),
|
|
96
|
+
Please update the following components: %s`,s),ai[s]=!0)}t.componentWillMount()}typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),r!==t.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",nt(l)||"Component"),fl.enqueueReplaceState(t,t.state,null))}function ls(l,t,r,s){if(l.queue!==null&&l.queue.length>0){var f=l.queue,b=l.replace;if(l.queue=null,l.replace=!1,b&&f.length===1)t.state=f[0];else{for(var S=b?f[0]:t.state,P=!0,H=b?1:0;H<f.length;H++){var V=f[H],oe=typeof V=="function"?V.call(t,S,r,s):V;oe!=null&&(P?(P=!1,S=en({},S,oe)):en(S,oe))}t.state=S}}else l.queue=null}function sa(l,t,r,s){ru(l,t,r);var f=l.state!==void 0?l.state:null;l.updater=fl,l.props=r,l.state=f;var b={queue:[],replace:!1};is(l,b);var S=t.contextType;if(typeof S=="object"&&S!==null?l.context=wo(S):l.context=s,l.state===r){var P=nt(t)||"Component";li.has(P)||(li.add(P),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",P))}var H=t.getDerivedStateFromProps;typeof H=="function"&&(l.state=nu(l,t,H,f,r)),typeof t.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function")&&(ou(t,l),ls(b,l,r,s))}var au={id:1,overflow:""};function iu(l){var t=l.overflow,r=l.id,s=r&~su(r);return s.toString(32)+t}function cs(l,t,r){var s=l.id,f=l.overflow,b=ui(s)-1,S=s&~(1<<b),P=r+1,H=ui(t)+b;if(H>30){var V=b-b%5,oe=(1<<V)-1,ae=(S&oe).toString(32),pe=S>>V,De=b-V,je=ui(t)+De,Ct=P<<De,Vr=Ct|pe,Xr=ae+f;return{id:1<<je|Vr,overflow:Xr}}else{var ir=P<<b,Do=ir|S,Qu=f;return{id:1<<H|Do,overflow:Qu}}}function ui(l){return 32-lu(l)}function su(l){return 1<<ui(l)-1}var lu=Math.clz32?Math.clz32:us,cu=Math.log,nr=Math.LN2;function us(l){var t=l>>>0;return t===0?32:31-(cu(t)/nr|0)|0}function Ai(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var et=typeof Object.is=="function"?Object.is:Ai,tn=null,So=null,Ur=null,ze=null,Cr=!1,di=!1,nn=0,rn=null,Yn=0,uu=25,Tn=!1,Pr;function zr(){if(tn===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
97
97
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
98
98
|
2. You might be breaking the Rules of Hooks
|
|
99
99
|
3. You might have more than one copy of React in the same app
|
|
100
100
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Tn&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),tn}function Au(l,t){if(t===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Pr),!1;l.length!==t.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
101
101
|
|
|
102
102
|
Previous: %s
|
|
103
|
-
Incoming: %s`,Pr,"["+l.join(", ")+"]","["+t.join(", ")+"]");for(var r=0;r<t.length&&r<l.length;r++)if(!et(l[r],t[r]))return!1;return!0}function As(){if(Yn>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function la(){return ze===null?Ur===null?(Cr=!1,Ur=ze=As()):(Cr=!0,ze=Ur):ze.next===null?(Cr=!1,ze=ze.next=As()):(Cr=!0,ze=ze.next),ze}function du(l,t){tn=t,So=l,Tn=!1,nn=0}function fu(l,t,r,s){for(;di;)di=!1,nn=0,Yn+=1,ze=null,r=l(t,s);return ds(),r}function fi(){var l=nn!==0;return l}function ds(){Tn=!1,tn=null,So=null,di=!1,Ur=null,Yn=0,rn=null,ze=null}function
|
|
103
|
+
Incoming: %s`,Pr,"["+l.join(", ")+"]","["+t.join(", ")+"]");for(var r=0;r<t.length&&r<l.length;r++)if(!et(l[r],t[r]))return!1;return!0}function As(){if(Yn>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function la(){return ze===null?Ur===null?(Cr=!1,Ur=ze=As()):(Cr=!0,ze=Ur):ze.next===null?(Cr=!1,ze=ze.next=As()):(Cr=!0,ze=ze.next),ze}function du(l,t){tn=t,So=l,Tn=!1,nn=0}function fu(l,t,r,s){for(;di;)di=!1,nn=0,Yn+=1,ze=null,r=l(t,s);return ds(),r}function fi(){var l=nn!==0;return l}function ds(){Tn=!1,tn=null,So=null,di=!1,Ur=null,Yn=0,rn=null,ze=null}function hl(l){return Tn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),wo(l)}function gl(l){return Pr="useContext",zr(),wo(l)}function fs(l,t){return typeof t=="function"?t(l):t}function pu(l){return Pr="useState",ml(fs,l)}function ml(l,t,r){if(l!==fs&&(Pr="useReducer"),tn=zr(),ze=la(),Cr){var s=ze.queue,f=s.dispatch;if(rn!==null){var b=rn.get(s);if(b!==void 0){rn.delete(s);var S=ze.memoizedState,P=b;do{var H=P.action;Tn=!0,S=l(S,H),Tn=!1,P=P.next}while(P!==null);return ze.memoizedState=S,[S,f]}}return[ze.memoizedState,f]}else{Tn=!0;var V;l===fs?V=typeof t=="function"?t():t:V=r!==void 0?r(t):t,Tn=!1,ze.memoizedState=V;var oe=ze.queue={last:null,dispatch:null},ae=oe.dispatch=mu.bind(null,tn,oe);return[ze.memoizedState,ae]}}function vl(l,t){tn=zr(),ze=la();var r=t===void 0?null:t;if(ze!==null){var s=ze.memoizedState;if(s!==null&&r!==null){var f=s[1];if(Au(r,f))return s[0]}}Tn=!0;var b=l();return Tn=!1,ze.memoizedState=[b,r],b}function hu(l){tn=zr(),ze=la();var t=ze.memoizedState;if(t===null){var r={current:l};return Object.seal(r),ze.memoizedState=r,r}else return t}function gu(l,t){Pr="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function mu(l,t,r){if(Yn>=uu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===tn){di=!0;var s={action:r,next:null};rn===null&&(rn=new Map);var f=rn.get(t);if(f===void 0)rn.set(t,s);else{for(var b=f;b.next!==null;)b=b.next;b.next=s}}}function vu(l,t){return vl(function(){return l},t)}function yu(l,t,r){return zr(),t(l._source)}function bu(l,t,r){if(r===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return r()}function pi(l){return zr(),l}function yl(){throw new Error("startTransition cannot be called during server rendering.")}function ps(){return zr(),[!1,yl]}function bl(){var l=So,t=iu(l.treeContext),r=ca;if(r===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var s=nn++;return mn(r,t,s)}function hi(){}var gi={readContext:hl,useContext:gl,useMemo:vl,useReducer:ml,useRef:hu,useState:pu,useInsertionEffect:hi,useLayoutEffect:gu,useCallback:vu,useImperativeHandle:hi,useEffect:hi,useDebugValue:hi,useDeferredValue:pi,useTransition:ps,useId:bl,useMutableSource:yu,useSyncExternalStore:bu},ca=null;function mi(l){ca=l}function Eo(l){try{var t="",r=l;do{switch(r.tag){case 0:t+=_r(r.type,null,null);break;case 1:t+=rs(r.type,null,null);break;case 2:t+=al(r.type,null,null);break}r=r.parent}while(r);return t}catch(s){return`
|
|
104
104
|
Error generating stack: `+s.message+`
|
|
105
|
-
`+s.stack}}var vi=a.ReactCurrentDispatcher,yi=a.ReactDebugCurrentFrame,bi=0,ko=1,hs=2,jr=3,xl=4,wu=0,Co=1,Po=2,xu=12800;function Su(l){return console.error(l),null}function Wr(){}function wi(l,t,r,s,f,b,S,P,H){var V=[],oe=new Set,ae={destination:null,responseState:t,progressiveChunkSize:s===void 0?xu:s,status:wu,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:oe,pingedTasks:V,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:f===void 0?Su:f,onAllReady:b===void 0?Wr:b,onShellReady:S===void 0?Wr:S,onShellError:P===void 0?Wr:P,onFatalError:H===void 0?Wr:H},pe=ua(ae,0,null,r,!1,!1);pe.parentFlushed=!0;var De=Yr(ae,l,null,pe,oe,ei,ti,au);return V.push(De),ae}function rr(l,t){var r=l.pingedTasks;r.push(t),r.length===1&&u(function(){return Cs(l)})}function gs(l,t){return{id:vr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null}}function Yr(l,t,r,s,f,b,S,P){l.allPendingTasks++,r===null?l.pendingRootTasks++:r.pendingTasks++;var H={node:t,ping:function(){return rr(l,H)},blockedBoundary:r,blockedSegment:s,abortSet:f,legacyContext:b,context:S,treeContext:P};return H.componentStack=null,f.add(H),H}function ua(l,t,r,s,f,b){return{status:bi,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:s,boundary:r,lastPushedText:f,textEmbedded:b}}var or=null;function Gn(){return or===null||or.componentStack===null?"":Eo(or.componentStack)}function ar(l,t){l.componentStack={tag:0,parent:l.componentStack,type:t}}function xi(l,t){l.componentStack={tag:1,parent:l.componentStack,type:t}}function Aa(l,t){l.componentStack={tag:2,parent:l.componentStack,type:t}}function Dn(l){l.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var da=null;function ms(l,t){{var r;typeof t=="string"?r=t:t&&typeof t.message=="string"?r=t.message:r=String(t);var s=da||Gn();da=null,l.errorMessage=r,l.errorComponentStack=s}}function fa(l,t){var r=l.onError(t);if(r!=null&&typeof r!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof r+'" instead');return r}function pa(l,t){var r=l.onShellError;r(t);var s=l.onFatalError;s(t),l.destination!==null?(l.status=Po,_(l.destination,t)):(l.status=Co,l.fatalError=t)}function Sl(l,t,r){ar(t,"Suspense");var s=t.blockedBoundary,f=t.blockedSegment,b=r.fallback,S=r.children,P=new Set,H=gs(l,P),V=f.chunks.length,oe=ua(l,V,H,f.formatContext,!1,!1);f.children.push(oe),f.lastPushedText=!1;var ae=ua(l,0,null,f.formatContext,!1,!1);ae.parentFlushed=!0,t.blockedBoundary=H,t.blockedSegment=ae;try{if(To(l,t,S),_t(ae.chunks,l.responseState,ae.lastPushedText,ae.textEmbedded),ae.status=ko,Gr(H,ae),H.pendingTasks===0){Dn(t);return}}catch(De){ae.status=xl,H.forceClientRender=!0,H.errorDigest=fa(l,De),ms(H,De)}finally{t.blockedBoundary=s,t.blockedSegment=f}var pe=Yr(l,b,s,oe,P,t.legacyContext,t.context,t.treeContext);pe.componentStack=t.componentStack,l.pingedTasks.push(pe),Dn(t)}function Eu(l,t,r,s){ar(t,r);var f=t.blockedSegment,b=Or(f.chunks,r,s,l.responseState,f.formatContext);f.lastPushedText=!1;var S=f.formatContext;f.formatContext=$n(S,r,s),To(l,t,b),f.formatContext=S,Da(f.chunks,r),f.lastPushedText=!1,Dn(t)}function El(l){return l.prototype&&l.prototype.isReactComponent}function ha(l,t,r,s,f){var b={};du(t,b);var S=r(s,f);return fu(r,s,S,f)}function vs(l,t,r,s,f){var b=r.render();r.props!==f&&(xs||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",nt(s)||"a component"),xs=!0);{var S=s.childContextTypes;if(S!=null){var P=t.legacyContext,H=os(r,s,P,S);t.legacyContext=H,Ut(l,t,b),t.legacyContext=P;return}}Ut(l,t,b)}function kl(l,t,r,s){Aa(t,r);var f=Sr(r,t.legacyContext),b=hl(r,s,f);sa(b,r,s,f),vs(l,t,b,r,s),Dn(t)}var ys={},ga={},bs={},ws={},xs=!1,Cl={},Pl=!1,Ss=!1,Tl=!1;function ku(l,t,r,s){var f;if(f=Sr(r,t.legacyContext),xi(t,r),r.prototype&&typeof r.prototype.render=="function"){var b=nt(r)||"Unknown";ys[b]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",b,b),ys[b]=!0)}var S=ha(l,t,r,s,f),P=fi();if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var H=nt(r)||"Unknown";ga[H]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),ga[H]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var V=nt(r)||"Unknown";ga[V]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),ga[V]=!0)}sa(S,r,s,f),vs(l,t,S,r,s)}else if(Cu(r),P){var oe=t.treeContext,ae=1,pe=0;t.treeContext=cs(oe,ae,pe);try{Ut(l,t,S)}finally{t.treeContext=oe}}else Ut(l,t,S);Dn(t)}function Cu(l){{if(l&&l.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var t=nt(l)||"Unknown";Cl[t]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",t),Cl[t]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var r=nt(l)||"Unknown";ws[r]||(o("%s: Function components do not support getDerivedStateFromProps.",r),ws[r]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var s=nt(l)||"Unknown";bs[s]||(o("%s: Function components do not support contextType.",s),bs[s]=!0)}}}function Dl(l,t){if(l&&l.defaultProps){var r=en({},t),s=l.defaultProps;for(var f in s)r[f]===void 0&&(r[f]=s[f]);return r}return t}function Pu(l,t,r,s,f){xi(t,r.render);var b=ha(l,t,r.render,s,f),S=fi();if(S){var P=t.treeContext,H=1,V=0;t.treeContext=cs(P,H,V);try{Ut(l,t,b)}finally{t.treeContext=P}}else Ut(l,t,b);Dn(t)}function Es(l,t,r,s,f){var b=r.type,S=Dl(b,s);Si(l,t,b,S,f)}function Tu(l,t,r,s){r._context===void 0?r!==r.Consumer&&(Tl||(Tl=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var f=s.children;typeof f!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var b=wo(r),S=f(b);Ut(l,t,S)}function on(l,t,r,s){var f=r._context,b=s.value,S=s.children,P;P=t.context,t.context=as(f,b),Ut(l,t,S),t.context=tu(f),P!==t.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Du(l,t,r,s,f){ar(t,"Lazy");var b=r._payload,S=r._init,P=S(b),H=Dl(P,s);Si(l,t,P,H,f),Dn(t)}function Si(l,t,r,s,f){if(typeof r=="function")if(El(r)){kl(l,t,r,s);return}else{ku(l,t,r,s);return}if(typeof r=="string"){Eu(l,t,r,s);return}switch(r){case Zc:case $c:case Ga:case Va:case Ya:{Ut(l,t,s.children);return}case Gi:{ar(t,"SuspenseList"),Ut(l,t,s.children),Dn(t);return}case nl:throw new Error("ReactDOMServer does not yet support scope components.");case Yi:{Sl(l,t,s);return}}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case vo:{Pu(l,t,r,s,f);return}case Vi:{Es(l,t,r,s,f);return}case Vo:{on(l,t,r,s);return}case Xo:{Tu(l,t,r,s);return}case Xa:{Du(l,t,r,s);return}}var b="";throw(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+b))}function Iu(l,t){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Pl||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Pl=!0),l.entries===t&&(Ss||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ss=!0)}function Ut(l,t,r){try{return Bu(l,t,r)}catch(s){throw typeof s=="object"&&s!==null&&typeof s.then=="function"||(da=da!==null?da:Gn()),s}}function Bu(l,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case tl:{var s=r,f=s.type,b=s.props,S=s.ref;Si(l,t,f,b,S);return}case Wa:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Xa:{var P=r,H=P._payload,V=P._init,oe;try{oe=V(H)}catch(ir){throw typeof ir=="object"&&ir!==null&&typeof ir.then=="function"&&ar(t,"Lazy"),ir}Ut(l,t,oe);return}}if(Lt(r)){Il(l,t,r);return}var ae=Jo(r);if(ae){Iu(r,ae);var pe=ae.call(r);if(pe){var De=pe.next();if(!De.done){var je=[];do je.push(De.value),De=pe.next();while(!De.done);Il(l,t,je);return}return}}var Ct=Object.prototype.toString.call(r);throw new Error("Objects are not valid as a React child (found: "+(Ct==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":Ct)+"). If you meant to render a collection of children, use an array instead.")}if(typeof r=="string"){var Vr=t.blockedSegment;Vr.lastPushedText=wt(t.blockedSegment.chunks,r,l.responseState,Vr.lastPushedText);return}if(typeof r=="number"){var Xr=t.blockedSegment;Xr.lastPushedText=wt(t.blockedSegment.chunks,""+r,l.responseState,Xr.lastPushedText);return}typeof r=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Il(l,t,r){for(var s=r.length,f=0;f<s;f++){var b=t.treeContext;t.treeContext=cs(b,s,f);try{To(l,t,r[f])}finally{t.treeContext=b}}}function Bl(l,t,r){var s=t.blockedSegment,f=s.chunks.length,b=ua(l,f,null,s.formatContext,s.lastPushedText,!0);s.children.push(b),s.lastPushedText=!1;var S=Yr(l,t.node,t.blockedBoundary,b,t.abortSet,t.legacyContext,t.context,t.treeContext);t.componentStack!==null&&(S.componentStack=t.componentStack.parent);var P=S.ping;r.then(P,P)}function To(l,t,r){var s=t.blockedSegment.formatContext,f=t.legacyContext,b=t.context,S=null;S=t.componentStack;try{return Ut(l,t,r)}catch(P){if(ds(),typeof P=="object"&&P!==null&&typeof P.then=="function"){Bl(l,t,P),t.blockedSegment.formatContext=s,t.legacyContext=f,t.context=b,kr(b),t.componentStack=S;return}else throw t.blockedSegment.formatContext=s,t.legacyContext=f,t.context=b,kr(b),t.componentStack=S,P}}function Ml(l,t,r,s){var f=fa(l,s);if(t===null?pa(l,s):(t.pendingTasks--,t.forceClientRender||(t.forceClientRender=!0,t.errorDigest=f,ms(t,s),t.parentFlushed&&l.clientRenderedBoundaries.push(t))),l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Mu(l){var t=this,r=l.blockedBoundary,s=l.blockedSegment;s.status=jr,ma(t,r,s)}function ks(l,t,r){var s=l.blockedBoundary,f=l.blockedSegment;if(f.status=jr,s===null)t.allPendingTasks--,t.status!==Po&&(t.status=Po,t.destination!==null&&D(t.destination));else{if(s.pendingTasks--,!s.forceClientRender){s.forceClientRender=!0;var b=r===void 0?new Error("The render was aborted by the server without a reason."):r;s.errorDigest=t.onError(b);{var S="The server did not finish this Suspense boundary: ";b&&typeof b.message=="string"?b=S+b.message:b=S+String(b);var P=or;or=l;try{ms(s,b)}finally{or=P}}s.parentFlushed&&t.clientRenderedBoundaries.push(s)}if(s.fallbackAbortableTasks.forEach(function(V){return ks(V,t,r)}),s.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0){var H=t.onAllReady;H()}}}function Gr(l,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===ko&&Gr(l,r)}else{var s=l.completedSegments;s.push(t)}}function ma(l,t,r){if(t===null){if(r.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=r}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Wr;var s=l.onShellReady;s()}}else if(t.pendingTasks--,!t.forceClientRender){if(t.pendingTasks===0)r.parentFlushed&&r.status===ko&&Gr(t,r),t.parentFlushed&&l.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Mu,l),t.fallbackAbortableTasks.clear();else if(r.parentFlushed&&r.status===ko){Gr(t,r);var f=t.completedSegments;f.length===1&&t.parentFlushed&&l.partialBoundaries.push(t)}}if(l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Ru(l,t){var r=t.blockedSegment;if(r.status===bi){kr(t.context);var s=null;s=or,or=t;try{Ut(l,t,t.node),_t(r.chunks,l.responseState,r.lastPushedText,r.textEmbedded),t.abortSet.delete(t),r.status=ko,ma(l,t.blockedBoundary,r)}catch(b){if(ds(),typeof b=="object"&&b!==null&&typeof b.then=="function"){var f=t.ping;b.then(f,f)}else t.abortSet.delete(t),r.status=xl,Ml(l,t.blockedBoundary,r,b)}finally{or=s}}}function Cs(l){if(l.status!==Po){var t=Al(),r=vi.current;vi.current=gi;var s;s=yi.getCurrentStack,yi.getCurrentStack=Gn;var f=ca;mi(l.responseState);try{var b=l.pingedTasks,S;for(S=0;S<b.length;S++){var P=b[S];Ru(l,P)}b.splice(0,S),l.destination!==null&&Ps(l,l.destination)}catch(H){fa(l,H),pa(l,H)}finally{mi(f),vi.current=r,yi.getCurrentStack=s,r===gi&&kr(t)}}}function va(l,t,r){switch(r.parentFlushed=!0,r.status){case bi:{var s=r.id=l.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,Ia(t,l.responseState,s)}case ko:{r.status=hs;for(var f=!0,b=r.chunks,S=0,P=r.children,H=0;H<P.length;H++){for(var V=P[H];S<V.index;S++)m(t,b[S]);f=Ei(l,t,V)}for(;S<b.length-1;S++)m(t,b[S]);return S<b.length&&(f=y(t,b[S])),f}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ei(l,t,r){var s=r.boundary;if(s===null)return va(l,t,r);if(s.parentFlushed=!0,s.forceClientRender)return Ht(t,l.responseState,s.errorDigest,s.errorMessage,s.errorComponentStack),va(l,t,r),ji(t,l.responseState);if(s.pendingTasks>0){s.rootSegmentID=l.nextSegmentId++,s.completedSegments.length>0&&l.partialBoundaries.push(s);var f=s.id=Wt(l.responseState);return Ao(t,l.responseState,f),va(l,t,r),fo(t,l.responseState)}else{if(s.byteSize>l.progressiveChunkSize)return s.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(s),Ao(t,l.responseState,s.id),va(l,t,r),fo(t,l.responseState);Ra(t,l.responseState);var b=s.completedSegments;if(b.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var S=b[0];return Ei(l,t,S),Oa(t,l.responseState)}}function Rl(l,t,r){return Kc(t,l.responseState,r.id,r.errorDigest,r.errorMessage,r.errorComponentStack)}function ki(l,t,r){return Me(t,l.responseState,r.formatContext,r.id),Ei(l,t,r),$e(t,r.formatContext)}function Ol(l,t,r){for(var s=r.completedSegments,f=0;f<s.length;f++){var b=s[f];Fl(l,t,r,b)}return s.length=0,qs(t,l.responseState,r.id,r.rootSegmentID)}function Ou(l,t,r){for(var s=r.completedSegments,f=0;f<s.length;f++){var b=s[f];if(!Fl(l,t,r,b))return f++,s.splice(0,f),!1}return s.splice(0,f),!0}function Fl(l,t,r,s){if(s.status===hs)return!0;var f=s.id;if(f===-1){var b=s.id=r.rootSegmentID;if(b===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return ki(l,t,s)}else return ki(l,t,s),jc(t,l.responseState,f)}function Ps(l,t){h();try{var r=l.completedRootSegment;r!==null&&l.pendingRootTasks===0&&(Ei(l,t,r),l.completedRootSegment=null,Ni(t,l.responseState));var s=l.clientRenderedBoundaries,f;for(f=0;f<s.length;f++){var b=s[f];Rl(l,t,b)}s.splice(0,f);var S=l.completedBoundaries;for(f=0;f<S.length;f++){var P=S[f];Ol(l,t,P)}S.splice(0,f),C(t),h(t);var H=l.partialBoundaries;for(f=0;f<H.length;f++){var V=H[f];if(!Ou(l,t,V)){l.destination=null,f++,H.splice(0,f);return}}H.splice(0,f);var oe=l.completedBoundaries;for(f=0;f<oe.length;f++){var ae=oe[f];Ol(l,t,ae)}oe.splice(0,f)}finally{C(t),l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),D(t))}}function Ll(l){u(function(){return Cs(l)})}function Fu(l,t){if(l.status===Co){l.status=Po,_(t,l.fatalError);return}if(l.status!==Po&&l.destination===null){l.destination=t;try{Ps(l,t)}catch(r){fa(l,r),pa(l,r)}}}function Ql(l,t){try{var r=l.abortableTasks;r.forEach(function(s){return ks(s,l,t)}),r.clear(),l.destination!==null&&Ps(l,l.destination)}catch(s){fa(l,s),pa(l,s)}}function Lu(l,t){return new Promise(function(r,s){var f,b,S=new Promise(function(pe,De){b=pe,f=De});function P(){var pe=new ReadableStream({type:"bytes",pull:function(De){Fu(V,De)},cancel:function(De){Ql(V)}},{highWaterMark:0});pe.allReady=S,r(pe)}function H(pe){S.catch(function(){}),s(pe)}var V=wi(l,ro(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Nn(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,b,P,H,f);if(t&&t.signal){var oe=t.signal,ae=function(){Ql(V,oe.reason),oe.removeEventListener("abort",ae)};oe.addEventListener("abort",ae)}Ll(V)})}Ds.renderToReadableStream=Lu,Ds.version=n}()),Ds}var Ro,Hl;process.env.NODE_ENV==="production"?(Ro=rf(),Hl=of()):(Ro=af(),Hl=sf()),Io.version=Ro.version,Io.renderToString=Ro.renderToString,Io.renderToStaticMarkup=Ro.renderToStaticMarkup,Io.renderToNodeStream=Ro.renderToNodeStream,Io.renderToStaticNodeStream=Ro.renderToStaticNodeStream,Io.renderToReadableStream=Hl.renderToReadableStream;function zu(e,n){n===void 0&&(n={});var a=n.insertAt;if(e&&typeof document<"u"){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",a==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}zu('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const dt={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},ju="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",Wu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 0 637 637",ref:n,...e},lt.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),lt.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Yu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),lf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),cf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),uf=R.forwardRef((e,n)=>lt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:n,...e},lt.createElement("g",{strokeLinecap:"round",strokeWidth:10},lt.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),Af=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),df=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),ff=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Gu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),pf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),hf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),Vu={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:Wu},header:{title:N.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:ju,buttons:[dt.NOTIFICATION_BUTTON,dt.AUDIO_BUTTON,dt.CLOSE_CHAT_BUTTON],closeChatIcon:uf},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:lf,iconDisabled:cf,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/AQD//wQADgD///3/9/8FAPr/6/8EABAACQD9/wIA/P/5/w4A///t/wQA/P8LAB0ACQD5////AQD2/+7/AgD6//r//v/z/xIA9f8oAAMA4f8OANz/EQAdAAAA5P/w/2MAAQDq/w0A1/8bALz/BgDb/+j/lQD9/yMABAACAA0Alf8NAKr/CwCMAPD/QwDq/wkA9v+g/wgAk/8QAD0ABgAWAAQAMwD7/9T/8//f//z/JwAEAOL/DwBxAAwAzf/+/xUA8v+O//H/fAD5/xUA+/9m//P/yf/r/y8ACAAbAEQA3f9AAAcB9f/p/sD/+QHv/8/9EQCv+ez/j+v8/3pS7/83By4AF6Go/7PNjgDMEn7/Sk0NAeEfIv+9DCwAKfuY/9fRAv2A3mjzfQg/Ft3fzTQE703jljkirPskFOdBEUYzORerLDvvDg7C6dcbwNJj/b/CisId8XfblBZS/oYksP1YRd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QAGwAwAAQAHwD0/xUA8f/4/+L/2//7/8z/AwDc/woA6f8AAAQAAwAoAAcANAAAACcAAgAUAAEA+P8CANv/AgDR/wEA4v8BAOz/AgAIAPv/JAAVADMAFAAhAPP/GQDz//7/3P/l/+3/z/8BANf/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:pf,iconDisabled:hf},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:Af,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[dt.VOICE_MESSAGE_BUTTON,dt.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:ju,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:df,iconDisabled:ff},footer:{text:N.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[N.jsx("span",{children:"Powered By "},0),N.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:N.jsx(Wu,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),N.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[dt.FILE_ATTACHMENT_BUTTON,dt.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Yu,iconDisabled:Yu,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Gu,iconDisabled:Gu,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},Xu=R.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),Fe=()=>R.useContext(Xu),gf=({children:e,settings:n=Vu,setSyncedSettings:a,syncedSettingsRef:i})=>N.jsx(Xu.Provider,{value:{settings:n,setSyncedSettings:a,syncedSettingsRef:i},children:e}),Ju={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},Ku=R.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),Ze=()=>R.useContext(Ku),mf=({children:e,styles:n=Ju,setSyncedStyles:a,syncedStylesRef:i})=>N.jsx(Ku.Provider,{value:{styles:n,setSyncedStyles:a,syncedStylesRef:i},children:e}),vf=({buttons:e})=>{var n,a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h={backgroundImage:`linear-gradient(to right, ${(n=A.general)==null?void 0:n.secondaryColor},
|
|
106
|
-
${(a=A.general)==null?void 0:a.primaryColor})`,...p.headerStyle};return N.jsxs("div",{style:h,className:"rcb-chat-header-container",children:[N.jsxs("div",{className:"rcb-chat-header",children:[((i=A.header)==null?void 0:i.showAvatar)&&N.jsx("div",{style:{backgroundImage:`url("${(o=A.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),R.isValidElement((c=A.header)==null?void 0:c.title)?(u=A.header)==null?void 0:u.title:N.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(d=A.header)==null?void 0:d.title})]}),N.jsx("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((m,y)=>N.jsx(R.Fragment,{children:m},y))})]})},$u=R.createContext({}),xt=()=>R.useContext($u),yf=({children:e,botIdRef:n,flowRef:a})=>{const i=R.useRef(null),o=R.useRef(""),c=R.useRef(null),u=R.useRef(new Map),d=R.useRef(null),A=R.useRef(""),p=R.useRef(!1),h=R.useRef(null),m=R.useRef(null),y=R.useRef(null);return N.jsx($u.Provider,{value:{botIdRef:n,flowRef:a,inputRef:i,timeoutIdRef:c,streamMessageMap:u,chatBodyRef:d,paramsInputRef:A,keepVoiceOnRef:p,audioContextRef:h,audioBufferRef:m,gainNodeRef:y,prevInputRef:o},children:e})},bn=e=>{const[n,a]=R.useState(e),i=R.useRef(e);return[n,o=>{const c=typeof o=="function"?o(i.current):o;i.current=c,a(c)},i]},Zu=R.createContext({}),Et=()=>R.useContext(Zu),bf=({children:e,settings:n})=>{var a,i,o,c,u,d;const[A,p,h]=bn(!1),[m,y,C]=bn(((a=n==null?void 0:n.chatWindow)==null?void 0:a.defaultOpen)??!1),[D,Q,E]=bn(((i=n==null?void 0:n.audio)==null?void 0:i.defaultToggledOn)??!1),[I,_,B]=bn(((o=n==null?void 0:n.voice)==null?void 0:o.defaultToggledOn)??!1),[U,j,z]=bn(((c=n==null?void 0:n.notification)==null?void 0:c.defaultToggledOn)??!0),[W,te]=R.useState(!1),[J,Y]=R.useState(!1),[ee,Z,ie]=bn(!1),[ue,se,xe]=bn(!0),[ge,me,M]=bn(!1),[fe,O]=R.useState(!1),[de,Ee]=R.useState(!1),[he,ve]=R.useState(0),[Te,Qe]=R.useState(0),[tt,Le]=R.useState(!1),[Je,qe]=R.useState(((u=window.visualViewport)==null?void 0:u.height)??window.innerHeight),[ft,Ne]=R.useState(((d=window.visualViewport)==null?void 0:d.width)??window.innerWidth);return N.jsx(Zu.Provider,{value:{isBotTyping:A,setSyncedIsBotTyping:p,syncedIsBotTypingRef:h,isChatWindowOpen:m,setSyncedIsChatWindowOpen:y,syncedIsChatWindowOpenRef:C,audioToggledOn:D,setSyncedAudioToggledOn:Q,syncedAudioToggledOnRef:E,voiceToggledOn:I,setSyncedVoiceToggledOn:_,syncedVoiceToggledOnRef:B,notificationsToggledOn:U,setSyncedNotificationsToggledOn:j,syncedNotificationsToggledOnRef:z,isLoadingChatHistory:W,setIsLoadingChatHistory:te,hasChatHistoryLoaded:J,setHasChatHistoryLoaded:Y,isScrolling:ee,setSyncedIsScrolling:Z,syncedIsScrollingRef:ie,textAreaDisabled:ue,setSyncedTextAreaDisabled:se,syncedTextAreaDisabledRef:xe,textAreaSensitiveMode:ge,setSyncedTextAreaSensitiveMode:me,syncedTextAreaSensitiveModeRef:M,hasInteractedPage:fe,setHasInteractedPage:O,hasFlowStarted:de,setHasFlowStarted:Ee,unreadCount:he,setUnreadCount:ve,inputLength:Te,setInputLength:Qe,blockAllowsAttachment:tt,setBlockAllowsAttachment:Le,viewportHeight:Je,setViewportHeight:qe,viewportWidth:ft,setViewportWidth:Ne},children:e})};var ye=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(ye||{});const wf={[ye.START_SPEAK_AUDIO]:!0,[ye.TOGGLE_AUDIO]:!0,[ye.TOGGLE_VOICE]:!0,[ye.TOGGLE_NOTIFICATIONS]:!0,[ye.TOGGLE_CHAT_WINDOW]:!0,[ye.PRE_INJECT_MESSAGE]:!0,[ye.POST_INJECT_MESSAGE]:!1,[ye.PRE_LOAD_CHATBOT]:!0,[ye.POST_LOAD_CHATBOT]:!1,[ye.START_SIMULATE_STREAM_MESSAGE]:!0,[ye.STOP_SIMULATE_STREAM_MESSAGE]:!1,[ye.START_STREAM_MESSAGE]:!0,[ye.CHUNK_STREAM_MESSAGE]:!0,[ye.STOP_STREAM_MESSAGE]:!0,[ye.REMOVE_MESSAGE]:!0,[ye.LOAD_CHAT_HISTORY]:!0,[ye.CHANGE_PATH]:!0,[ye.SHOW_TOAST]:!0,[ye.DISMISS_TOAST]:!0,[ye.USER_SUBMIT_TEXT]:!0,[ye.USER_UPLOAD_FILE]:!0,[ye.TEXT_AREA_CHANGE_VALUE]:!0,[ye.PRE_PROCESS_BLOCK]:!0,[ye.POST_PROCESS_BLOCK]:!0},Nl=async(e,n,a)=>{const i=new CustomEvent(e,{detail:n,cancelable:wf[e]});return i.data=a,i.promises=[],window.dispatchEvent(i),await Promise.all(i.promises),i},qu=R.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Ci=()=>R.useContext(qu),xf=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(qu.Provider,{value:{paths:n,setSyncedPaths:a,syncedPathsRef:i},children:e})},Vn=()=>{const{botIdRef:e}=xt(),{syncedPathsRef:n}=Ci(),a=R.useCallback(()=>n.current.length>0?n.current.at(-1)??null:null,[]),i=R.useCallback(()=>n.current.length>1?n.current.at(-2)??null:null,[]);return{dispatchRcbEvent:R.useCallback(async(o,c)=>{const u={botId:e.current,currPath:a(),prevPath:i()};return await Nl(o,u,c)},[e])}},wn=()=>{const{settings:e}=Fe(),{isChatWindowOpen:n,setSyncedIsChatWindowOpen:a,viewportHeight:i,setViewportHeight:o,viewportWidth:c,setViewportWidth:u,setUnreadCount:d,setSyncedIsBotTyping:A,setSyncedIsScrolling:p,syncedIsBotTypingRef:h,syncedIsChatWindowOpenRef:m}=Et(),{chatBodyRef:y}=xt(),{dispatchRcbEvent:C}=Vn(),D=R.useCallback(()=>{if(!y.current)return!1;const B=y.current.getBoundingClientRect(),U=window.innerHeight??document.documentElement.clientHeight,j=window.innerWidth??document.documentElement.clientWidth;return B.top>=0&&B.left>=0&&B.bottom<=U&&B.right<=j},[y]),Q=R.useCallback(async B=>{var U;B!==m.current&&((U=e.event)!=null&&U.rcbToggleChatWindow&&(await C(ye.TOGGLE_CHAT_WINDOW,{currState:m.current,newState:!m.current})).defaultPrevented||a(j=>(j||d(0),!j)))},[m]),E=R.useCallback(async B=>{B!==h.current&&A(U=>!U)},[h]),I=R.useCallback((B,U,j,z)=>(B/=z/2)<1?j/2*B*B+U:-j/2*(--B*(B-2)-1)+U,[]),_=R.useCallback((B=0)=>{if(!y.current)return;const U=y.current.scrollHeight-y.current.clientHeight;if(B<=0)return y.current.scrollTop=U,void p(!1);const j=y.current.scrollTop,z=U-j;let W=0;const te=()=>{if(!y.current)return;W+=20;const J=I(W,j,z,B);y.current.scrollTop=J,W<B?requestAnimationFrame(te):p(!1)};te()},[y]);return{isChatWindowOpen:n,setSyncedIsChatWindowOpen:a,toggleChatWindow:Q,viewportHeight:i,setViewportHeight:o,viewportWidth:c,setViewportWidth:u,toggleIsBotTyping:E,scrollToBottom:_,getIsChatBotVisible:D}},Sf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{unreadCount:c,isScrolling:u}=Et(),{chatBodyRef:d}=xt(),{scrollToBottom:A}=wn(),[p,h]=R.useState(!1),m={color:(e=i.general)==null?void 0:e.primaryColor,borderColor:(n=i.general)==null?void 0:n.primaryColor,...o.chatMessagePromptHoveredStyle};return N.jsx("div",{className:"rcb-message-prompt-container "+(d.current&&((y=i.chatWindow)!=null&&y.showMessagePrompt)&&u&&c>0?"visible":"hidden"),children:N.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:p?m:{...o.chatMessagePromptStyle},onMouseDown:C=>{C.preventDefault(),A(600)},className:"rcb-message-prompt-text",children:(a=i.chatWindow)==null?void 0:a.messagePromptText})});var y},eA=R.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Ul=()=>R.useContext(eA),Ef=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(eA.Provider,{value:{messages:n,setSyncedMessages:a,syncedMessagesRef:i},children:e})},kf=({message:e,isNewSender:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h=typeof e.content=="string",m=e.content,y=e.contentWrapper?N.jsx(e.contentWrapper,{children:m}):m,C={backgroundColor:(a=A.general)==null?void 0:a.primaryColor,color:"#fff",maxWidth:(i=A.userBubble)!=null&&i.showAvatar?"65%":"70%",...p.userBubbleStyle},D=(o=A.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",Q=((c=A.userBubble)==null?void 0:c.showAvatar)&&n,E="rcb-user-message"+(!n&&(u=A.userBubble)!=null&&u.showAvatar?" rcb-user-message-offset":"");return N.jsxs("div",{className:"rcb-user-message-container",children:[h?N.jsx("div",{style:C,className:`${E} ${D}`,children:y}):N.jsx(N.Fragment,{children:y}),Q&&N.jsx("div",{style:{backgroundImage:`url("${(d=A.userBubble)==null?void 0:d.avatar}")`},className:"rcb-message-user-avatar"})]})},Cf=({message:e,isNewSender:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h=typeof e.content=="string",m=e.content,y=e.contentWrapper?N.jsx(e.contentWrapper,{children:m}):m,C={backgroundColor:(a=A.general)==null?void 0:a.secondaryColor,color:"#fff",maxWidth:(i=A.botBubble)!=null&&i.showAvatar?"65%":"70%",...p.botBubbleStyle},D=(o=A.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",Q=((c=A.botBubble)==null?void 0:c.showAvatar)&&n,E="rcb-bot-message"+(!n&&(u=A.botBubble)!=null&&u.showAvatar?" rcb-bot-message-offset":"");return N.jsxs("div",{className:"rcb-bot-message-container",children:[Q&&N.jsx("div",{style:{backgroundImage:`url("${(d=A.botBubble)==null?void 0:d.avatar}")`},className:"rcb-message-bot-avatar"}),h?N.jsx("div",{style:C,className:`${E} ${D}`,children:y}):N.jsx(N.Fragment,{children:y})]})},Pf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),c=(e=i.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return N.jsxs("div",{className:"rcb-bot-message-container",children:[((n=i.botBubble)==null?void 0:n.showAvatar)&&N.jsx("div",{style:{backgroundImage:`url("${(a=i.botBubble)==null?void 0:a.avatar}")`},className:"rcb-message-bot-avatar"}),N.jsx("div",{onMouseDown:u=>{u.preventDefault()},className:`rcb-bot-message ${c}`,children:N.jsxs("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Tf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{messages:c}=Ul(),{scrollToBottom:u}=wn(),{isBotTyping:d,syncedIsScrollingRef:A}=Et(),{chatBodyRef:p}=xt(),h={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=i.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return R.useEffect(()=>{A.current||u()},[(n=p.current)==null?void 0:n.scrollHeight]),N.jsxs("div",{style:h,className:"rcb-chat-body-container",ref:p,children:[c.map((m,y)=>{const C=(D=>D===0||c[D].sender!==c[D-1].sender)(y);return m.sender.toUpperCase()==="USER"?N.jsx(kf,{message:m,isNewSender:C},y):m.sender.toUpperCase()==="BOT"?N.jsx(Cf,{message:m,isNewSender:C},y):N.jsx("div",{children:m.content},y)}),d&&((a=i.chatWindow)==null?void 0:a.showTypingIndicator)&&N.jsx(Pf,{}),N.jsx(Sf,{})]})},Df=({checkboxes:e,checkedItems:n,path:a})=>{var i,o,c,u,d,A,p,h,m,y,C;const{settings:D}=Fe(),{styles:Q}=Ze(),{paths:E}=Ci(),{handleSubmitText:I}=ba(),[_,B]=R.useState(new Set),[U,j]=R.useState(!1),z={cursor:U?`url("${(i=D.general)==null?void 0:i.actionDisabledIcon}"), auto`:"pointer",color:(o=D.general)==null?void 0:o.primaryColor,borderColor:(c=D.general)==null?void 0:c.primaryColor,...Q.botCheckboxRowStyle},W={cursor:U||_.size<e.min?`url("${(u=D.general)==null?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:(d=D.general)==null?void 0:d.primaryColor,borderColor:(A=D.general)==null?void 0:A.primaryColor,...Q.botCheckboxNextStyle},te={cursor:U?`url("${(p=D.general)==null?void 0:p.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...Q.botCheckMarkStyle},J={cursor:U?`url("${(h=D.general)==null?void 0:h.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(m=D.general)==null?void 0:m.primaryColor,backgroundColor:(y=D.general)==null?void 0:y.primaryColor,...Q.botCheckMarkSelectedStyle};return R.useEffect(()=>{E.length>0&&E[E.length-1]!==a&&j(!e.reusable)},[E]),N.jsxs("div",{className:"rcb-checkbox-container "+((C=D.botBubble)!=null&&C.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(Y=>N.jsx("div",{onMouseDown:ee=>{ee.preventDefault(),(Z=>{U||B(ie=>{const ue=new Set(ie);if(ue.has(Z))n.delete(Z),ue.delete(Z);else{if(_.size==e.max)return ie;n.add(Z),ue.add(Z)}return ue})})(Y)},style:z,className:"rcb-checkbox-row-container",children:N.jsxs("div",{className:"rcb-checkbox-row",children:[N.jsx("div",{style:_.has(Y)?J:te,className:"rcb-checkbox-mark"}),N.jsx("div",{className:"rcb-checkbox-label",children:Y})]})},Y)),N.jsx("div",{style:W,className:"rcb-checkbox-next-button",onMouseDown:Y=>{var ee;if(Y.preventDefault(),U||_.size<e.min)return;const Z=Array.from(n).join(", ");let ie;j(!e.reusable),ie=e.sendOutput!=null?e.sendOutput:((ee=D.chatInput)==null?void 0:ee.sendCheckboxOutput)??!0,I(Z,ie)}})]})},If=async(e,n)=>{const a=e.checkboxes;if(!a)return;let i;if(typeof a=="function"?(i=a(n),i instanceof Promise&&(i=await i)):i=a,Array.isArray(i)&&(i={items:i}),!("items"in i)||i.items.length==0)return;i.min==null&&(i.min=1),i.max==null&&(i.max=i.items.length),i.min>i.max&&(i.min=i.max),i.reusable==null&&(i.reusable=!1);const o=new Set,c=n.currPath,u=N.jsx(Df,{checkboxes:i,checkedItems:o,path:c});await n.injectMessage(u)},Bf=async(e,n)=>{const a=e.function;if(!a)return;const i=a(n);return i instanceof Promise?await i:i},Mf=async(e,n,a)=>{const i=e.message;if(!i)return;if(typeof i=="string")return void(i.trim()!==""&&(a?await n.simulateStreamMessage(i):await n.injectMessage(i)));let o=i(n);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(a?await n.simulateStreamMessage(o):await n.injectMessage(o))},Rf=({options:e,path:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),{paths:h}=Ci(),{handleSubmitText:m}=ba(),[y,C]=R.useState([]),[D,Q]=R.useState(!1),E={cursor:D?`url("${(a=A.general)==null?void 0:a.actionDisabledIcon}"), auto`:"pointer",color:(i=A.general)==null?void 0:i.primaryColor,borderColor:(o=A.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...p.botOptionStyle},I={color:"#fff",borderColor:(c=A.general)==null?void 0:c.primaryColor,backgroundColor:(u=A.general)==null?void 0:u.primaryColor,...p.botOptionHoveredStyle};return R.useEffect(()=>{h.length>0&&h[h.length-1]!==n&&Q(!e.reusable)},[h]),N.jsx("div",{className:"rcb-options-container "+((d=A.botBubble)!=null&&d.showAvatar?"rcb-options-offset":""),children:e.items.map((_,B)=>{const U=y[B]&&!D;return N.jsx("div",{className:"rcb-options",style:U?I:E,onMouseEnter:()=>(j=>{C(z=>{const W=[...z];return W[j]=!0,W})})(B),onMouseLeave:()=>(j=>{C(z=>{const W=[...z];return W[j]=!1,W})})(B),onMouseDown:j=>{var z;if(j.preventDefault(),D)return;let W;Q(!e.reusable),W=e.sendOutput!=null?e.sendOutput:((z=A.chatInput)==null?void 0:z.sendOptionOutput)??!0,m(_,W)},children:_},_)})})},Of=async(e,n)=>{const a=e.options;if(!a)return;let i;if(typeof a=="function"?(i=a(n),i instanceof Promise&&(i=await i)):i=a,Array.isArray(i)&&(i={items:i}),!("items"in i)||i.items.length==0)return;i.reusable==null&&(i.reusable=!1);const o=n.currPath,c=N.jsx(Rf,{options:i,path:o});await n.injectMessage(c)},Ff=async(e,n)=>{const a=e.component;if(a){if(typeof a=="function"){let i=a(n);return i instanceof Promise&&(i=await i),i?void await n.injectMessage(i):void 0}await n.injectMessage(a)}},Lf=async(e,n,a,i)=>{const o=e.transition;let c;if(typeof o=="function"?(c=o(n),c instanceof Promise&&(c=await c)):c=o,typeof c=="number"&&(c={duration:c}),!c||c instanceof Promise||c.duration==null||typeof c.duration!="number")return;c.interruptable==null&&(c.interruptable=!1);const u=setTimeout(async()=>{const d=await i(e);d&&await nA(d,n)},c.duration);c.interruptable&&(a.current=u)},Qf=async(e,n,a)=>{const i=e.chatDisabled;if(i==null)return;let o;typeof i=="function"?(o=i(n),o instanceof Promise&&(o=await o)):o=i,a(o)},tA=async(e,n,a)=>{const i=e.isSensitive;if(!i)return void a(!1);let o;typeof i=="function"?(o=i(n),o instanceof Promise&&(o=await o)):o=i,a(o)},nA=async(e,n)=>{if(!e)throw new Error("Block is not valid.");const a=Object.keys(e);for(const i of a)i==="function"&&await Bf(e,n);a.includes("path")&&await(async(i,o)=>{const c=i.path;if(!c)return!1;if(typeof c=="string")return await o.goToPath(c),!0;let u=c(o);if(u instanceof Promise&&(u=await u),!u)return!1;const d=u;return await o.goToPath(d),!0})(e,n)},_f=()=>{var e;const{settings:n}=Fe(),{styles:a}=Ze();return N.jsx("div",{className:"rcb-line-break-container",children:N.jsx("div",{style:{...a.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(e=n.chatHistory)==null?void 0:e.chatHistoryLineBreakText})})},Hf=()=>{var e;const{settings:n}=Fe(),{styles:a}=Ze(),i={borderTop:`4px solid ${(e=n.general)==null?void 0:e.primaryColor}`,...a.loadingSpinnerStyle};return N.jsx("div",{className:"rcb-spinner-container",children:N.jsx("div",{style:i,className:"rcb-spinner"})})},Is=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const a=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(n==="x"?a:3&a|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},Jr=(e,n)=>({id:Is(),content:e,sender:n,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let Kr,rA=!1,Bs="rcb-history",Ms=30,oA=!1,Pi=[];const zl=async e=>{if(oA||!Kr)return;const n=[],a=rA?Pi.length:0;for(let o=e.length-1;o>=a;o--){const c=e[o];if(c.sender.toUpperCase()!=="SYSTEM"&&(c.content!==""&&n.unshift(c),n.length===Ms))break}let i=n.map(Uf);if(i.length<Ms){const o=Ms-i.length;i=[...Pi.slice(-o),...i]}aA(i)},jl=()=>Pi,Nf=e=>{aA(e),Pi=e},aA=e=>{Kr&&Kr.setItem(Bs,JSON.stringify(e))},Wl=e=>{var n,a,i,o,c;Kr=((a=(n=e.chatHistory)==null?void 0:n.storageType)==null?void 0:a.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,Bs=(i=e.chatHistory)==null?void 0:i.storageKey,Ms=(o=e.chatHistory)==null?void 0:o.maxEntries,oA=(c=e.chatHistory)==null?void 0:c.disabled,Pi=(u=>{if(u!=null)try{return JSON.parse(u)}catch{return[]}return[]})(Kr.getItem(Bs))},Uf=e=>R.isValidElement(e.content)?structuredClone({id:e.id,content:Io.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,iA=(e,n,a)=>{const i=new DOMParser().parseFromString(e,"text/html");return Array.from(i.body.childNodes).map((o,c)=>{var u;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const d=o.tagName.toLowerCase();let A=Array.from(o.attributes).reduce((p,h)=>{const m=h.name.toLowerCase();if(m==="style"){const y=h.value.split(";").filter(D=>D.trim()!==""),C={};y.forEach(D=>{const[Q,E]=D.split(":").map(_=>_.trim()),I=Q.replace(/-([a-z])/g,(_,B)=>B.toUpperCase());C[I]=E}),p[m]=C}else d!=="audio"&&d!=="video"||m!=="controls"||h.value!==""?p[m]=h.value:p[m]="true";return p},{});if(Object.prototype.hasOwnProperty.call(A,"class")){const p=o.classList;A.className=p.toString(),delete A.class,(u=n.botBubble)!=null&&u.showAvatar&&(A=zf(p,A)),A=jf(p,A,n,a),A=Wf(p,A,n,a),A=Yf(p,A,n,a),A=Gf(p,A,n,a)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(d))return R.createElement(d,{key:c,...A});{const p=iA(o.innerHTML,n,a);return R.createElement(d,{key:c,...A},...p)}}})},zf=(e,n)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(n.className=`${e.toString()} rcb-options-offset`),n),jf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-options")&&(n.style={...n.style,color:((o=i.botOptionStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botOptionStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botOptionStyle}),n},Wf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-checkbox-row-container")&&(n.style={...n.style,color:((o=i.botCheckboxRowStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botCheckboxRowStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botCheckboxRowStyle}),n},Yf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-checkbox-next-button")&&(n.style={...n.style,color:((o=i.botCheckboxNextStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botCheckboxNextStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botCheckboxNextStyle}),n},Gf=(e,n,a,i)=>{var o,c;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(n.style={...n.style,backgroundColor:(o=a.general)==null?void 0:o.primaryColor,maxWidth:(c=a.userBubble)!=null&&c.showAvatar?"65%":"70%",...i.mediaDisplayContainerStyle}),n},Yl=()=>{const{settings:e}=Fe(),{notificationsToggledOn:n,setSyncedNotificationsToggledOn:a,hasInteractedPage:i,unreadCount:o,setUnreadCount:c,syncedNotificationsToggledOnRef:u}=Et(),{audioBufferRef:d,audioContextRef:A,gainNodeRef:p}=xt(),{dispatchRcbEvent:h}=Vn(),m=R.useCallback(async()=>{var C,D;const Q=(C=e.notification)==null?void 0:C.sound;A.current=new AudioContext;const E=A.current.createGain();let I;if(E.gain.value=((D=e.notification)==null?void 0:D.volume)??.2,p.current=E,Q!=null&&Q.startsWith("data:audio")){const _=atob(Q.split(",")[1]),B=new ArrayBuffer(_.length),U=new Uint8Array(B);for(let j=0;j<_.length;j++)U[j]=_.charCodeAt(j);I=B}else I=await(await fetch(Q)).arrayBuffer();d.current=await A.current.decodeAudioData(I)},[e.notification]),y=R.useCallback(()=>{var C;if((C=e.notification)!=null&&C.disabled||!u.current||!i||!A.current||!d.current)return;const D=A.current.createBufferSource();D.buffer=d.current,D.connect(p.current).connect(A.current.destination),D.start()},[e.notification,u,i,A,d,p]);return{unreadCount:o,setUnreadCount:c,notificationsToggledOn:n,toggleNotifications:R.useCallback(async C=>{var D;C!==u.current&&((D=e.event)!=null&&D.rcbToggleNotifications&&(await h(ye.TOGGLE_NOTIFICATIONS,{currState:u.current,newState:!u.current})).defaultPrevented||a(Q=>!Q))},[u]),playNotificationSound:y,setUpNotifications:m}},Vf=(e,n)=>{var a,i,o,c;((u,d,A,p,h)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const m=new window.SpeechSynthesisUtterance;m.text=u,m.lang=d,m.rate=p,m.volume=h;let y=!1;for(const C of A)if(window.speechSynthesis.getVoices().find(D=>{if(D.name===C)return m.voice=D,window.speechSynthesis.speak(m),void(y=!0)}),y)break;y||window.speechSynthesis.speak(m)})(n,(a=e.audio)==null?void 0:a.language,(i=e.audio)==null?void 0:i.voiceNames,(o=e.audio)==null?void 0:o.rate,(c=e.audio)==null?void 0:c.volume)},sA=()=>{const{settings:e}=Fe(),{audioToggledOn:n,setSyncedAudioToggledOn:a,syncedAudioToggledOnRef:i}=Et(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async d=>{var A;d!==i.current&&((A=e.event)!=null&&A.rcbToggleAudio&&(await o(ye.TOGGLE_AUDIO,{currState:i.current,newState:!i.current})).defaultPrevented||a(p=>!p))},[i]),u=R.useCallback(async d=>{var A,p;if((A=e.audio)!=null&&A.disabled||!i.current)return;let h=d;if((p=e.event)!=null&&p.rcbStartSpeakAudio){const m=await o(ye.START_SPEAK_AUDIO,{textToRead:h});if(m.defaultPrevented)return;h=m.data.textToRead}Vf(e,h)},[e,i]);return{audioToggledOn:n,speakAudio:u,toggleAudio:c}},Oo=()=>{var e,n;const{settings:a}=Fe(),{messages:i,setSyncedMessages:o,syncedMessagesRef:c}=Ul(),{setSyncedIsBotTyping:u,setUnreadCount:d,syncedIsScrollingRef:A,syncedIsChatWindowOpenRef:p}=Et(),{streamMessageMap:h,chatBodyRef:m,paramsInputRef:y}=xt(),{scrollToBottom:C,getIsChatBotVisible:D}=wn(),{dispatchRcbEvent:Q}=Vn(),{speakAudio:E}=sA(),{playNotificationSound:I}=Yl(),_=R.useCallback((J,Y=!1)=>{var ee,Z;zl(J);let ie=!0;const ue=J[J.length-1];if(!ue)return;const se=ue.sender.toUpperCase();se==="USER"&&(ie=!1),(ee=a.general)!=null&&ee.embedded&&D()&&(ie=!1),(p.current&&!A.current||Y)&&(ie=!1),ie&&I(),!Y&&(se!=="USER"&&(Z=a.chatWindow)!=null&&Z.autoJumpToBottom||se==="USER"||!A.current)&&setTimeout(()=>C(),1)},[a,m,p,A,I,C,D]),B=R.useCallback(async(J,Y="BOT",ee=null)=>{var Z,ie,ue,se,xe;if(typeof J!="string")throw new Error("Content must be of type string to simulate stream.");Y=Y.toUpperCase();let ge=Jr(J,Y);if((Z=a.event)!=null&&Z.rcbStartSimulateStreamMessage){const he=await Q(ye.START_SIMULATE_STREAM_MESSAGE,{message:ge});if(he.defaultPrevented)return null;ee=he.data.simulateStreamChunker||ee,ge=he.data.message}u(!1);let me=30;me=Y==="BOT"?(ie=a.botBubble)==null?void 0:ie.streamSpeed:(ue=a.userBubble)==null?void 0:ue.streamSpeed;const M={...ge,content:""};o(he=>[...he,M]),_(c.current);let fe=ge.content;ee&&(fe=ee(fe));let O=0;const de=fe.length;ge.sender.toUpperCase()==="BOT"&&(p.current||(se=a.general)!=null&&se.embedded)&&typeof ge.content=="string"&&ge.content.trim()!==""&&E(ge.content);const Ee=new Promise(he=>{const ve=setInterval(()=>{if(O>=de)return clearInterval(ve),void he();o(Te=>{const Qe=[...Te];for(let tt=Qe.length-1;tt>=0;tt--)if(Qe[tt].id===M.id){const Le=fe[O];Le&&(M.content+=Le,Qe[tt]=M),O++;break}return Qe})},me)});return(A.current||!p.current)&&d(he=>he+1),await Ee,zl(c.current),(xe=a.event)!=null&&xe.rcbStopSimulateStreamMessage&&await Q(ye.STOP_SIMULATE_STREAM_MESSAGE,{message:ge}),Y==="USER"&&(y.current=J),ge},[a,Q,_,c,y,u,d,p,E]),U=R.useCallback(async(J,Y="BOT")=>{var ee,Z,ie;Y=Y.toUpperCase();let ue=Jr(J,Y);if((ee=a.event)!=null&&ee.rcbPreInjectMessage){const se=await Q(ye.PRE_INJECT_MESSAGE,{message:ue});if(se.defaultPrevented)return null;ue=se.data.message}return ue.sender.toUpperCase()==="BOT"&&(p.current||(Z=a.general)!=null&&Z.embedded)&&typeof ue.content=="string"&&ue.content.trim()!==""&&E(ue.content),(A.current||!p.current)&&d(se=>se+1),(ie=a.event)!=null&&ie.rcbPostInjectMessage&&await Q(ye.POST_INJECT_MESSAGE,{message:ue}),o(se=>[...se,ue]),_(c.current),Y==="USER"&&typeof J=="string"&&(y.current=J),ue},[a,Q,_,y,c,p,E,d]),j=R.useCallback(async J=>{var Y;const ee=c.current.find(Z=>Z.id===J);return!ee||(Y=a.event)!=null&&Y.rcbRemoveMessage&&(await Q(ye.REMOVE_MESSAGE,{message:ee})).defaultPrevented?null:(o(Z=>Z.filter(ie=>ie.id!==J)),_(c.current),d(Z=>Math.max(Z-1,0)),ee)},[Q,(e=a.event)==null?void 0:e.rcbRemoveMessage,_,c,d]),z=R.useCallback(async(J,Y="BOT")=>{var ee,Z;if(Y=Y.toUpperCase(),!h.current.has(Y)){const ue=Jr(J,Y);return(ee=a.event)!=null&&ee.rcbStartStreamMessage&&(await Q(ye.START_STREAM_MESSAGE,{message:ue})).defaultPrevented?null:(u(!1),o(se=>[...se,ue]),_(c.current),h.current.set(Y,ue.id),(A.current||!p.current)&&d(se=>se+1),ue)}const ie={...Jr(J,Y),id:h.current.get(Y)};return(Z=a.event)!=null&&Z.rcbChunkStreamMessage&&(await Q(ye.CHUNK_STREAM_MESSAGE,{message:ie})).defaultPrevented?null:(o(ue=>ue.map(se=>se.id===ie.id?ie:se)),_(c.current,!0),ie)},[Q,a.event,_,c,u,d,h]),W=R.useCallback(async(J="BOT")=>{var Y;if(J=J.toUpperCase(),!h.current.has(J))return!0;const ee=h.current.get(J);let Z;for(let ie=0;ie<3;ie++){const ue=c.current.find(se=>se.id===ee);ue&&(Z=ue),await new Promise(se=>setTimeout(se,20))}return((Y=a.event)==null||!Y.rcbStopStreamMessage||!(await Q(ye.STOP_STREAM_MESSAGE,{message:Z})).defaultPrevented)&&(h.current.delete(J),zl(c.current),J==="USER"&&typeof(Z==null?void 0:Z.content)=="string"&&(y.current=Z.content),!0)},[Q,(n=a.event)==null?void 0:n.rcbStopStreamMessage,h,y]),te=R.useCallback(J=>{const Y=typeof J=="function"?J(c.current):J;o(Y),_(Y)},[_,c]);return{simulateStreamMessage:B,injectMessage:U,removeMessage:j,streamMessage:z,endStreamMessage:W,replaceMessages:te,messages:i}};let Gl,sr,Rs,$r=!1,lr=null;const Vl=()=>{if(!Gl){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Gl=e!=null?new e:null}return Gl},Xf=(e,n,a,i,o,c)=>{var u,d,A;const p=Vl();if(!p)return;if(!$r)try{$r=!0,p.lang=(u=e.voice)==null?void 0:u.language,p.start()}catch{}const h=(d=e.voice)==null?void 0:d.timeoutPeriod,m=(A=e.voice)==null?void 0:A.autoSendPeriod;p.onresult=y=>{var C,D;clearTimeout(sr),sr=null,clearTimeout(Rs);const Q=y.results[y.results.length-1][0].transcript;if(c.current){const E=(C=e.chatInput)==null?void 0:C.characterLimit,I=c.current.value+Q;E!=null&&E>=0&&I.length>E?i(I.slice(0,E)):i(I),o(c.current.value.length)}h&&(sr=setTimeout(async()=>await Jl(n,c),h)),(D=e.voice)!=null&&D.autoSendDisabled||(Rs=setTimeout(a,m))},p.onend=()=>{$r?(p.start(),!sr&&h&&(sr=setTimeout(async()=>await Jl(n,c),h))):(clearTimeout(sr),sr=null,clearTimeout(Rs))},h&&(sr=setTimeout(async()=>await Jl(n,c),h))},Jf=(e,n)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(a=>{if(lr=new MediaRecorder(a),!$r)try{$r=!0,lr.start()}catch{}lr.ondataavailable=i=>{n.current&&n.current.push(i.data)},lr.onstop=()=>{e(),a.getTracks().forEach(i=>i.stop())}}).catch(a=>{console.error("Unable to use microphone:",a)})},Xl=()=>{const e=Vl();e&&($r=!1,e&&e.stop(),lr&&lr.state!=="inactive"&&(lr.stop(),lr=null),clearTimeout(sr),sr=null,clearTimeout(Rs))},Jl=async(e,n)=>{var a;(a=n.current)!=null&&a.disabled||await e(),Xl()},Kl=()=>{const{settings:e}=Fe(),{voiceToggledOn:n,setSyncedVoiceToggledOn:a,syncedVoiceToggledOnRef:i}=Et(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async d=>{var A;d!==i.current&&((A=e.event)!=null&&A.rcbToggleVoice&&(await o(ye.TOGGLE_VOICE,{currState:i.current,newState:!i.current})).defaultPrevented||a(p=>!p))},[i]),u=R.useCallback(d=>{((A,p)=>{var h,m,y;const C=Vl();(h=p.voice)!=null&&h.disabled||(m=p.chatInput)==null||!m.blockSpam||!C||(A&&!$r?($r=!0,(y=p.voice)!=null&&y.sendAsAudio?lr==null||lr.start():C.start()):A||Xl())})(d,e)},[e]);return{voiceToggledOn:n,toggleVoice:c,syncVoice:u}},Fo=()=>{var e;const{settings:n}=Fe(),{inputLength:a,setInputLength:i,textAreaDisabled:o,setSyncedTextAreaDisabled:c,textAreaSensitiveMode:u,setSyncedTextAreaSensitiveMode:d,syncedTextAreaDisabledRef:A,syncedTextAreaSensitiveModeRef:p}=Et(),{inputRef:h,chatBodyRef:m,prevInputRef:y}=xt(),{dispatchRcbEvent:C}=Vn(),{getIsChatBotVisible:D}=wn(),Q=R.useCallback(async z=>{var W,te,J;if(A.current&&h.current)h.current.value="";else if(h.current&&y.current!==null){const Y=(W=n.chatInput)==null?void 0:W.characterLimit,ee=(te=n.chatInput)!=null&&te.allowNewline?z:z.replace(/\n/g," ");if(Y!=null&&Y>=0&&ee.length>Y?h.current.value=ee.slice(0,Y):h.current.value=ee,(J=n.event)!=null&&J.rcbTextAreaChangeValue&&(await C(ye.TEXT_AREA_CHANGE_VALUE,{currValue:h.current.value,prevValue:y.current})).defaultPrevented)return void(h.current.value=y.current);y.current=h.current.value}},[A,h,y,n,C]),E=R.useCallback(z=>{var W;(W=h.current)!=null&&W.disabled||setTimeout(()=>{var te,J,Y;(te=n.general)!=null&&te.embedded?D()&&((J=h.current)==null||J.focus()):z!=="start"&&((Y=h.current)==null||Y.focus())},100)},[h,(e=n.general)==null?void 0:e.embedded,m,D]),I=R.useCallback(()=>{h.current&&h.current.focus()},[]),_=R.useCallback(()=>{h.current&&h.current.blur()},[]),B=R.useCallback(()=>h&&h.current?h.current.value:"",[]),U=R.useCallback(z=>{z!==A.current&&c(W=>!W)},[A]),j=R.useCallback(z=>{z!==p.current&&d(W=>!W)},[p]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:c,textAreaSensitiveMode:u,setSyncedTextAreaSensitiveMode:d,inputLength:a,setInputLength:i,getTextAreaValue:B,setTextAreaValue:Q,updateTextAreaFocus:E,focusTextArea:I,blurTextArea:_,toggleTextAreaDisabled:U,toggleTextAreaSensitiveMode:j}},lA=R.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),cA=()=>R.useContext(lA),Kf=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(lA.Provider,{value:{toasts:n,setSyncedToasts:a,syncedToastsRef:i},children:e})},ya=()=>{const{settings:e}=Fe(),{toasts:n,setSyncedToasts:a,syncedToastsRef:i}=cA(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async(A,p)=>{var h,m,y,C;let D=null;if(i.current.length>=(((h=e.toast)==null?void 0:h.maxCount)??3)){if((m=e.toast)!=null&&m.forbidOnMax)return null;D=Is();let E={id:D,content:A,timeout:p};if((y=e.event)!=null&&y.rcbShowToast){const I=await o(ye.SHOW_TOAST,{toast:E});if(I.defaultPrevented)return null;E=I.data.toast}return a(I=>[...I.slice(1),E]),D}D=Is();let Q={id:D,content:A,timeout:p};if((C=e.event)!=null&&C.rcbShowToast){const E=await o(ye.SHOW_TOAST,{toast:Q});if(E.defaultPrevented)return null;Q=E.data.toast}return a(E=>[...E,Q]),D},[e,o]),u=R.useCallback(async A=>{var p;const h=i.current.find(m=>m.id===A);return!h||(p=e.event)!=null&&p.rcbDismissToast&&(await o(ye.DISMISS_TOAST,{toast:h})).defaultPrevented?null:(a(m=>m.filter(y=>y.id!==A)),A)},[o]),d=R.useCallback(A=>{const p=typeof A=="function"?A(i.current):A;a(p)},[i]);return{showToast:c,dismissToast:u,toasts:n,replaceToasts:d}},Os=()=>{var e,n,a,i,o;const{settings:c}=Fe(),{paths:u,setSyncedPaths:d,syncedPathsRef:A}=Ci(),{flowRef:p,streamMessageMap:h,paramsInputRef:m,keepVoiceOnRef:y,timeoutIdRef:C}=xt(),{setSyncedIsBotTyping:D,setSyncedTextAreaDisabled:Q,setSyncedTextAreaSensitiveMode:E,blockAllowsAttachment:I,setBlockAllowsAttachment:_}=Et(),{dispatchRcbEvent:B}=Vn(),{endStreamMessage:U,injectMessage:j,removeMessage:z,simulateStreamMessage:W,streamMessage:te}=Oo(),{showToast:J,dismissToast:Y}=ya(),{toggleChatWindow:ee}=wn(),{updateTextAreaFocus:Z,setTextAreaValue:ie}=Fo(),{syncVoice:ue}=Kl(),se=R.useCallback(async O=>{var de;if((de=c.event)!=null&&de.rcbPostProcessBlock){const Ee=await B(ye.POST_PROCESS_BLOCK,{block:O});if(Ee.defaultPrevented)return null;O=Ee.data.block}return O},[(e=c.event)==null?void 0:e.rcbPostProcessBlock,B]),xe=R.useCallback(async(O,de)=>{var Ee,he,ve,Te;if(!O)return;let Qe=p.current[O];if(!Qe)return void D(!1);if((Ee=c.event)!=null&&Ee.rcbPreProcessBlock){const Le=await B(ye.PRE_PROCESS_BLOCK,{block:Qe});if(Le.defaultPrevented)return;Qe=Le.data.block}D(!0),(he=c.chatInput)!=null&&he.blockSpam&&Q(!0),E(!1);const tt={prevPath:de,currPath:O,goToPath:M,setTextAreaValue:ie,userInput:m.current,endStreamMessage:U,injectMessage:j,removeMessage:z,simulateStreamMessage:W,streamMessage:te,toggleChatWindow:ee,showToast:J,dismissToast:Y};await(async(Le,Je,qe,ft,Ne,We,ct)=>{if(!Le)throw new Error("Block is not valid.");for(const ht of Object.keys(Le))switch(ht){case"message":await Mf(Le,Je,qe);break;case"options":await Of(Le,Je);break;case"checkboxes":await If(Le,Je);break;case"component":await Ff(Le,Je);break;case"chatDisabled":await Qf(Le,Je,Ne);break;case"isSensitive":await tA(Le,Je,We);break;case"transition":await Lf(Le,Je,ft,ct)}})(Qe,tt,((ve=c.botBubble)==null?void 0:ve.simulateStream)??!1,C,Q,E,se),D(!1),"chatDisabled"in Qe||Q((Te=c.chatInput)==null?void 0:Te.disabled),"isSensitive"in Qe||E(!1),_(typeof Qe.file=="function"),Z(O),ue(y.current&&!Qe.chatDisabled),O!==de&&h.current.clear()},[p,Z,ue,(n=c.botBubble)==null?void 0:n.simulateStream,(a=c.chatInput)==null?void 0:a.disabled,m,U,j,z,W,te,ee,J,Y,y,h]),ge=R.useCallback(()=>A.current.length>0?A.current.at(-1)??null:null,[]),me=R.useCallback(()=>A.current.length>1?A.current.at(-2)??null:null,[]),M=R.useCallback(async O=>{var de;const Ee=ge(),he=me();return((de=c.event)==null||!de.rcbChangePath||!(await B(ye.CHANGE_PATH,{currPath:Ee,prevPath:he,nextPath:O})).defaultPrevented)&&(d(ve=>[...ve,O]),await xe(O,Ee),!0)},[(i=c.chatInput)==null?void 0:i.blockSpam,(o=c.event)==null?void 0:o.rcbChangePath,xe,B]),fe=R.useCallback(O=>{const de=typeof O=="function"?O(A.current):O;d(de)},[A]);return{getCurrPath:ge,getPrevPath:me,goToPath:M,blockAllowsAttachment:I,setBlockAllowsAttachment:_,paths:u,replacePaths:fe,firePostProcessBlockEvent:se}},ba=()=>{var e,n,a,i;const{settings:o}=Fe(),{endStreamMessage:c,injectMessage:u,removeMessage:d,simulateStreamMessage:A,streamMessage:p}=Oo(),{syncedPathsRef:h}=Ci(),{getCurrPath:m,getPrevPath:y,goToPath:C,firePostProcessBlockEvent:D}=Os(),{setSyncedTextAreaSensitiveMode:Q,setSyncedTextAreaDisabled:E,setSyncedIsBotTyping:I,setBlockAllowsAttachment:_,setInputLength:B,syncedVoiceToggledOnRef:U,syncedTextAreaSensitiveModeRef:j}=Et(),{flowRef:z,inputRef:W,keepVoiceOnRef:te,paramsInputRef:J,timeoutIdRef:Y}=xt(),{showToast:ee,dismissToast:Z}=ya(),{dispatchRcbEvent:ie}=Vn(),{syncVoice:ue}=Kl(),{setTextAreaValue:se}=Fo(),{toggleChatWindow:xe}=wn(),ge=R.useCallback(async M=>{var fe,O,de,Ee,he,ve;const Te=m();if(Te&&z.current[Te]){if(j.current){if((fe=o==null?void 0:o.sensitiveInput)!=null&&fe.hideInUserBubble)return;if((O=o==null?void 0:o.sensitiveInput)!=null&&O.maskInUserBubble)return void((de=o.userBubble)!=null&&de.simulateStream?await A("*".repeat(((Ee=o.sensitiveInput)==null?void 0:Ee.asterisksCount)??10),"USER"):await u("*".repeat(((he=o.sensitiveInput)==null?void 0:he.asterisksCount)??10),"USER"))}(ve=o.userBubble)!=null&&ve.simulateStream?await A(M,"USER"):await u(M,"USER")}},[z,m,o,u,A,j]),me=R.useCallback(async(M,fe=!0)=>{var O,de;if((M=M.trim())==="")return;fe&&await ge(M),Y.current&&clearTimeout(Y.current),W.current&&(se(""),B(0));const Ee=m();if(!Ee)return;let he=z.current[Ee];const ve=await D(he);ve&&((O=o.chatInput)!=null&&O.blockSpam&&E(!0),te.current=U.current,ue(!1),setTimeout(()=>{I(!0)},400),Q(!1),setTimeout(async()=>{var Te;const Qe={prevPath:y(),currPath:m(),goToPath:C,setTextAreaValue:se,userInput:J.current,injectMessage:u,simulateStreamMessage:A,streamMessage:p,removeMessage:d,endStreamMessage:c,toggleChatWindow:xe,showToast:ee,dismissToast:Z},tt=h.current.length;await nA(ve,Qe),h.current.length===tt&&(E("chatDisabled"in he?!!he.chatDisabled:!((Te=o.chatInput)==null||!Te.disabled)),tA(he,Qe,Q),_(typeof he.file=="function"),ue(te.current),I(!1))},(de=o.chatInput)==null?void 0:de.botDelay))},[Y,(e=o.chatInput)==null?void 0:e.blockSpam,(n=o.chatInput)==null?void 0:n.botDelay,(a=o.chatInput)==null?void 0:a.disabled,te,U,ue,ge,y,m,C,u,A,p,d,c,xe,ee,Z,z]);return{handleSubmitText:R.useCallback(async(M,fe=!0)=>{var O,de;M=M??((O=W.current)==null?void 0:O.value),!((de=o.event)!=null&&de.rcbUserSubmitText&&(await ie(ye.USER_SUBMIT_TEXT,{inputText:M,sendInChat:fe})).defaultPrevented||!m())&&me(M,fe)},[ie,m,me,W,(i=o.event)==null?void 0:i.rcbUserSubmitText])}},Fs=()=>{var e;const{settings:n}=Fe();return R.useMemo(()=>{var a;if(typeof window>"u"||!window.navigator)return!1;if((a=n.device)==null||!a.applyMobileOptimizations)return!0;const i=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i),c=window.innerWidth>=768;return o&&c},[(e=n.device)==null?void 0:e.applyMobileOptimizations])},$f=({buttons:e})=>{var n,a,i,o,c,u,d,A,p,h,m;const y=Fs(),{settings:C}=Fe(),{styles:D}=Ze(),{textAreaDisabled:Q,textAreaSensitiveMode:E,inputLength:I,hasFlowStarted:_,setHasFlowStarted:B,setInputLength:U}=Et(),{inputRef:j}=xt(),[z,W]=R.useState(!1),[te,J]=R.useState(!1),{handleSubmitText:Y}=ba(),{setTextAreaValue:ee}=Fo(),Z={boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle},ie={outline:Q?"":"none",boxShadow:Q?"":`0 0 5px ${(n=C.general)==null?void 0:n.primaryColor}`,boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle,...D.chatInputAreaFocusedStyle},ue={cursor:`url("${(a=C.general)==null?void 0:a.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle,...D.chatInputAreaDisabledStyle},se={color:"#989898",...D.characterLimitStyle},xe={color:"#ff0000",...D.characterLimitReachedStyle},ge=Q?(i=C.chatInput)==null?void 0:i.disabledPlaceholderText:(o=C.chatInput)==null?void 0:o.enabledPlaceholderText,me=()=>{Q||W(!0)},M=()=>{W(!1)},fe=()=>{J(!0)},O=()=>{J(!1)},de=async he=>{var ve;if(!te&&he.key==="Enter"){if(he.shiftKey)return void((ve=C.chatInput)!=null&&ve.allowNewline||he.preventDefault());he.preventDefault(),await Y()}},Ee=he=>{j.current&&(ee(he.target.value),U(j.current.value.length))};return N.jsxs("div",{"aria-label":((c=C.ariaLabel)==null?void 0:c.inputTextArea)??"input text area",role:"textbox",onMouseDown:he=>{var ve;he.stopPropagation(),!_&&((ve=C.general)==null?void 0:ve.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&B(!0)},style:{...D.chatInputContainerStyle},className:"rcb-chat-input",children:[E&&(u=C.sensitiveInput)!=null&&u.maskInTextArea?N.jsx("input",{ref:j,type:"password",className:"rcb-chat-input-textarea",style:Q?ue:z?ie:Z,placeholder:ge,onChange:Ee,onKeyDown:de,onFocus:me,onBlur:M,onCompositionStart:fe,onCompositionEnd:O}):N.jsx("textarea",{ref:j,style:Q?ue:z?ie:Z,rows:1,className:"rcb-chat-input-textarea",placeholder:ge,onChange:Ee,onKeyDown:de,onFocus:me,onBlur:M,onCompositionStart:fe,onCompositionEnd:O}),N.jsxs(N.Fragment,{children:[e==null?void 0:e.map((he,ve)=>N.jsx(R.Fragment,{children:he},ve)),((d=C.chatInput)==null?void 0:d.showCharacterCount)&&((A=C.chatInput)==null?void 0:A.characterLimit)!=null&&((p=C.chatInput)==null?void 0:p.characterLimit)>0&&N.jsxs("div",{className:"rcb-chat-input-char-counter",style:I>=((h=C.chatInput)==null?void 0:h.characterLimit)?xe:se,children:[I,"/",(m=C.chatInput)==null?void 0:m.characterLimit]})]})]})},Zf=({buttons:e})=>{var n;const{settings:a}=Fe(),{styles:i}=Ze();return N.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...i.footerStyle},className:"rcb-chat-footer-container",children:[N.jsx("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,c)=>N.jsx(R.Fragment,{children:o},c))}),N.jsx("span",{children:(n=a.footer)==null?void 0:n.text})]})},qf=()=>{var e,n,a,i,o,c,u;const{settings:d}=Fe(),{styles:A}=Ze(),{unreadCount:p}=Et(),{isChatWindowOpen:h,toggleChatWindow:m}=wn(),[y,C]=R.useState(!1),D={backgroundImage:`linear-gradient(to right, ${(e=d.general)==null?void 0:e.secondaryColor},
|
|
107
|
-
${(n=d.general)==null?void 0:n.primaryColor})`,...A.chatButtonStyle},Q={transform:"scale(1.05)",...A.chatButtonStyle,...A.chatButtonHoveredStyle},E={backgroundImage:`url(${(a=d.chatButton)==null?void 0:a.icon})`,fill:"#fff",width:75,height:75,...A.chatIconStyle};return N.jsx(N.Fragment,{children:!((i=d.general)!=null&&i.embedded)&&N.jsxs("div",{"aria-label":((o=d.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:y?Q:D,className:"rcb-toggle-button "+(h?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},onClick:()=>m(!0),children:[(()=>{var I;const _=(I=d.chatButton)==null?void 0:I.icon;return _&&typeof _!="string"?_&&N.jsx("span",{className:"rcb-toggle-icon",children:N.jsx(_,{style:E})}):N.jsx("span",{className:"rcb-toggle-icon",style:E})})(),!((c=d.notification)!=null&&c.disabled)&&((u=d.notification)==null?void 0:u.showCount)&&N.jsx("span",{style:{...A.notificationBadgeStyle},className:"rcb-badge",children:p})]})})},ep=()=>{var e,n,a,i;const o=Fs(),{settings:c}=Fe(),{styles:u}=Ze(),{chatBodyRef:d}=xt(),{isChatWindowOpen:A,toggleChatWindow:p}=wn(),[h,m]=R.useState(!1),[y,C]=R.useState(!1),[D,Q]=R.useState(0);R.useEffect(()=>{var _,B,U;const j=(_=c.tooltip)==null?void 0:_.mode;if(j==="ALWAYS")if(o){let z;z=A?(((B=d.current)==null?void 0:B.offsetWidth)??375)-(typeof((U=u.chatButtonStyle)==null?void 0:U.width)=="number"?u.chatButtonStyle.width:75):0,Q(z),m(!0)}else m(!A);else j==="NEVER"?m(!1):j==="START"?y?m(!1):(C(!0),m(!0)):j==="CLOSE"&&m(!A)},[A]);const E={transform:`translateX(-${D}px)`,right:(((e=u.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(n=c.general)==null?void 0:n.secondaryColor,color:"#fff",...u.tooltipStyle},I={borderColor:`transparent transparent transparent ${E.backgroundColor}`};return N.jsx(N.Fragment,{children:!((a=c.general)!=null&&a.embedded)&&N.jsxs("div",{"data-testid":"chat-tooltip",style:E,className:"rcb-chat-tooltip "+(h?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>p(!0),children:[N.jsx("span",{children:(i=c.tooltip)==null?void 0:i.text}),N.jsx("span",{className:"rcb-chat-tooltip-tail",style:I})]})})},tp=({id:e,content:n,timeout:a})=>{var i,o;const{settings:c}=Fe(),{styles:u}=Ze(),[d]=R.useState({toastPromptStyle:{...u.toastPromptStyle},toastPromptHoveredStyle:{...u.toastPromptHoveredStyle}}),{dismissToast:A}=ya(),[p,h]=R.useState(!1),m={color:(i=c.general)==null?void 0:i.primaryColor,borderColor:(o=c.general)==null?void 0:o.primaryColor,...d.toastPromptHoveredStyle};return R.useEffect(()=>{if(a){const y=setTimeout(()=>{A(e)},a);return()=>clearTimeout(y)}},[e,A,a]),typeof n=="string"?N.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:p?m:d.toastPromptStyle,onMouseDown:async y=>{var C;(C=c.toast)!=null&&C.dismissOnClick&&(y.preventDefault(),await A(e))},className:"rcb-toast-prompt",children:n}):N.jsx(N.Fragment,{children:n})},np=()=>{var e,n,a,i,o,c,u,d,A,p,h,m;const{styles:y}=Ze(),{toasts:C}=cA(),D={bottom:`calc(${typeof((e=y.footerStyle)==null?void 0:e.height)=="number"?`${(n=y.footerStyle)==null?void 0:n.height}px`:((a=y.footerStyle)==null?void 0:a.height)??"50px"} + ${typeof((i=y.chatInputContainerStyle)==null?void 0:i.height)=="number"?`${(o=y.chatInputContainerStyle)==null?void 0:o.height}px`:((c=y.chatInputContainerStyle)==null?void 0:c.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((u=y.chatWindowStyle)==null?void 0:u.width)=="number"?`${(d=y.chatWindowStyle)==null?void 0:d.width}px`:((A=y.chatWindowStyle)==null?void 0:A.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((p=y.chatWindowStyle)==null?void 0:p.width)=="number"?`${(h=y.chatWindowStyle)==null?void 0:h.width}px`:((m=y.chatWindowStyle)==null?void 0:m.width)??"375px"} - 50px)`,...y.toastPromptContainerStyle};return N.jsx("div",{className:"rcb-toast-prompt-container",style:D,children:C.map(Q=>N.jsx(tp,{id:Q.id,content:Q.content,timeout:Q.timeout},Q.id))})},uA=({file:e,fileType:n,fileUrl:a})=>{var i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),A={backgroundColor:(i=u.general)==null?void 0:i.primaryColor,maxWidth:(o=u.userBubble)!=null&&o.showAvatar?"65%":"70%",...d.mediaDisplayContainerStyle};return N.jsx(N.Fragment,{children:a?N.jsxs(N.Fragment,{children:[n==="image"&&a&&N.jsx("div",{style:A,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:N.jsx("img",{src:a,alt:"Image Display",className:"rcb-media-display-image"})}),n==="video"&&a&&N.jsx("div",{style:A,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:N.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[N.jsx("source",{src:a,type:e.type}),"Your browser does not support the video tag."]})}),n==="audio"&&a&&N.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(c=u.userBubble)!=null&&c.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[N.jsx("source",{src:a,type:e.type}),"Your browser does not support the audio tag."]})]}):N.jsx(N.Fragment,{})})},AA=async e=>{if(!e)return{fileType:null,fileUrl:null};const n=e.type.split("/")[0];if(!["image","video","audio"].includes(n))return{fileType:null,fileUrl:null};try{return{fileType:n,fileUrl:await new Promise((a,i)=>{const o=new FileReader;o.onload=()=>a(o.result),o.onerror=()=>i(new Error("File reading failed")),o.readAsDataURL(e)})}}catch(a){return console.error(a),{fileType:null,fileUrl:null}}},rp=()=>{var e,n,a,i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),{injectMessage:A,simulateStreamMessage:p,streamMessage:h,removeMessage:m,endStreamMessage:y}=Oo(),{getCurrPath:C,getPrevPath:D,goToPath:Q,blockAllowsAttachment:E}=Os(),{flowRef:I,inputRef:_}=xt(),B=I.current,{showToast:U,dismissToast:j}=ya(),{dispatchRcbEvent:z}=Vn(),{toggleChatWindow:W}=wn(),{setTextAreaValue:te}=Fo(),{handleSubmitText:J}=ba(),Y={cursor:`url("${(e=u.general)==null?void 0:e.actionDisabledIcon}"), auto`,...d.fileAttachmentButtonStyle,...d.fileAttachmentButtonDisabledStyle},ee={backgroundImage:`url(${(n=u.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...d.fileAttachmentIconStyle},Z={backgroundImage:`url(${(a=u.fileAttachment)==null?void 0:a.icon})`,fill:"#a6a6a6",...d.fileAttachmentIconStyle,...d.fileAttachmentIconDisabledStyle};return N.jsxs("label",{"aria-label":((i=u.ariaLabel)==null?void 0:i.fileAttachmentButton)??"upload file",role:"button",className:E?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:E?{...d.fileAttachmentButtonStyle}:Y,children:[N.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async ie=>{var ue,se,xe,ge;const me=ie.target.files;if(!me)return;const M=Array.from(me);if(ie.target.value="",(ue=u.event)!=null&&ue.rcbUserUploadFile&&(await z(ye.USER_UPLOAD_FILE,{files:M})).defaultPrevented)return;const fe=C();if(!fe)return;const O=B[fe];if(!O)return;const de=O.file;if(de!=null){const Ee=[];for(let he=0;he<M.length;he++){if(Ee.push(M[he].name),(se=u.fileAttachment)==null||!se.showMediaDisplay)continue;const ve=await AA(M[he]);!ve.fileType||!ve.fileUrl||await A(N.jsx(uA,{file:M[he],fileType:ve.fileType,fileUrl:ve.fileUrl}),"USER")}await J("📄 "+Ee.join(", "),(xe=u.fileAttachment)==null?void 0:xe.sendFileName),await de({userInput:(ge=_.current)==null?void 0:ge.value,prevPath:D(),currPath:C(),goToPath:Q,setTextAreaValue:te,injectMessage:A,simulateStreamMessage:p,streamMessage:h,removeMessage:m,endStreamMessage:y,toggleChatWindow:W,showToast:U,dismissToast:j,files:M})}},multiple:(o=u.fileAttachment)==null?void 0:o.multiple,accept:(c=u.fileAttachment)==null?void 0:c.accept,disabled:!E}),(()=>{var ie,ue;const se=E?(ie=u.fileAttachment)==null?void 0:ie.icon:(ue=u.fileAttachment)==null?void 0:ue.iconDisabled;return se&&typeof se!="string"?se&&N.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:N.jsx(se,{style:E?ee:Z})}):N.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:E?ee:Z})})()]})},op=()=>{var e,n,a,i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),{syncedTextAreaDisabledRef:A}=Et(),{inputRef:p}=xt(),{textAreaDisabled:h,setTextAreaValue:m}=Fo(),y=R.useRef(null),C=R.useRef(null),[D,Q]=R.useState(!1),E={cursor:`url("${(e=u.general)==null?void 0:e.actionDisabledIcon}"), auto`,...d.emojiButtonStyle,...d.emojiButtonDisabledStyle},I={backgroundImage:`url(${(n=u.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...d.emojiIconStyle},_={backgroundImage:`url(${(a=u.emoji)==null?void 0:a.icon})`,fill:"#a6a6a6",...d.emojiIconStyle,...d.emojiIconDisabledStyle};return R.useEffect(()=>{const B=j=>{const z=j.composedPath();y.current&&!z.includes(y.current)&&C.current&&!z.includes(C.current)&&Q(!1)},U=()=>{(()=>{if(y.current&&C.current){const j=C.current.getBoundingClientRect(),z=y.current.offsetHeight,W=j.top-z-8;y.current.style.left=`${j.left}px`,y.current.style.top=`${W}px`}})()};return document.addEventListener("mousedown",B),window.addEventListener("resize",U),()=>{document.removeEventListener("mousedown",B),window.removeEventListener("resize",U)}},[]),N.jsxs(N.Fragment,{children:[N.jsx("div",{"aria-label":((i=u.ariaLabel)==null?void 0:i.emojiButton)??"emoji picker",role:"button",ref:C,className:h?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:h?E:{...d.emojiButtonStyle},onMouseDown:B=>{B.preventDefault(),A.current?Q(!1):Q(U=>!U)},children:(()=>{var B,U;const j=h?(B=u.emoji)==null?void 0:B.iconDisabled:(U=u.emoji)==null?void 0:U.icon;return j&&typeof j!="string"?j&&N.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:N.jsx(j,{style:h?_:I})}):N.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:h?_:I})})()}),D&&N.jsx("div",{className:"rcb-emoji-button-popup",ref:y,children:(c=(o=u.emoji)==null?void 0:o.list)==null?void 0:c.map((B,U)=>N.jsx("span",{className:"rcb-emoji",onMouseDown:j=>((z,W)=>{z.preventDefault(),p.current&&(m(p.current.value+W),setTimeout(()=>{const te=p.current;if(te){te.focus();const J=te.value.length;te.setSelectionRange(J,J)}},50)),Q(!1)})(j,B),children:B},U))})]})},ap=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{audioToggledOn:c,toggleAudio:u}=sA(),d={backgroundImage:`url(${(e=i.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},A={backgroundImage:`url(${(n=i.audio)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.audioButton)??"toggle audio",role:"button",onMouseDown:async p=>{p.preventDefault(),await u()},style:c?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var p,h;const m=c?(p=i.audio)==null?void 0:p.icon:(h=i.audio)==null?void 0:h.iconDisabled;return m&&typeof m!="string"?m&&N.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:N.jsx(m,{style:c?d:A,"data-testid":"rcb-audio-icon-svg"})}):N.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:c?d:A})})()})},ip=()=>{var e,n;const{settings:a}=Fe(),{styles:i}=Ze(),{toggleChatWindow:o}=wn(),c={backgroundImage:`url(${(e=a.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...i.closeChatIconStyle};return N.jsx("div",{"aria-label":((n=a.ariaLabel)==null?void 0:n.closeChatButton)??"close chat",role:"button",onMouseDown:u=>{u.stopPropagation(),o(!1)},style:{...i.closeChatButtonStyle},children:(()=>{var u;const d=(u=a.header)==null?void 0:u.closeChatIcon;return d&&typeof d!="string"?d&&N.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:N.jsx(d,{style:c})}):N.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:c})})()})},sp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{notificationsToggledOn:c,toggleNotifications:u}=(()=>{const{notificationsToggledOn:p,toggleNotifications:h,playNotificationSound:m}=Yl();return{notificationsToggledOn:p,toggleNotifications:h,playNotificationSound:m}})(),d={backgroundImage:`url(${(e=i.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},A={backgroundImage:`url(${(n=i.notification)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.notificationButton)??"toggle notifications",role:"button",onMouseDown:async p=>{p.preventDefault(),await u()},style:c?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var p,h;const m=c?(p=i.notification)==null?void 0:p.icon:(h=i.notification)==null?void 0:h.iconDisabled;return m&&typeof m!="string"?m&&N.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:N.jsx(m,{style:c?d:A,"data-testid":"rcb-notification-icon-svg"})}):N.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:c?d:A})})()})},lp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{injectMessage:c}=Oo(),{inputRef:u}=xt(),{voiceToggledOn:d,toggleVoice:A}=Kl(),{setInputLength:p,setTextAreaValue:h,textAreaDisabled:m}=Fo(),{handleSubmitText:y}=ba(),C=R.useRef([]),[D,Q]=R.useState(!1);R.useEffect(()=>{var U;(U=i.voice)!=null&&U.sendAsAudio?(B(),C.current=[]):y()},[D]),R.useEffect(()=>{d?((U,j,z,W,te,J,Y)=>{var ee;(ee=U.voice)!=null&&ee.sendAsAudio?Jf(z,J):Xf(U,j,z,W,te,Y)})(i,A,_,h,p,C,u):Xl()},[d]);const E={backgroundImage:`url(${(e=i.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},I={backgroundImage:`url(${(n=i.voice)==null?void 0:n.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},_=()=>{Q(U=>!U)},B=async()=>{const U=new Blob(C.current,{type:"audio/wav"}),j=new File([U],"voice-input.wav",{type:"audio/wav"}),z=await AA(j);!z.fileType||!z.fileUrl||await c(N.jsx(uA,{file:j,fileType:z.fileType,fileUrl:z.fileUrl}),"USER")};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.voiceButton)??"toggle voice",role:"button",onMouseDown:async U=>{U.preventDefault(),!m&&await A()},style:d&&!m?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:d&&!m?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var U,j;const z=d?(U=i.voice)==null?void 0:U.icon:(j=i.voice)==null?void 0:j.iconDisabled;return z&&typeof z!="string"?z&&N.jsx("span",{className:"rcb-voice-icon "+(d&&!m?"on":""),children:N.jsx(z,{style:d&&!m?E:I})}):N.jsx("span",{className:"rcb-voice-icon"+(d&&!m?"-on":""),"data-testid":"rcb-voice-icon",style:d&&!m?E:I})})()})},cp=()=>{var e,n,a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),{textAreaDisabled:h}=Et(),[m,y]=R.useState(!1),{handleSubmitText:C}=ba(),D={backgroundColor:(e=A.general)==null?void 0:e.primaryColor,...p.sendButtonStyle},Q={cursor:`url("${(n=A.general)==null?void 0:n.actionDisabledIcon}"), auto`,backgroundColor:(a=A.general)==null?void 0:a.primaryColor,...p.sendButtonStyle,...p.sendButtonDisabledStyle},E={backgroundColor:(i=A.general)==null?void 0:i.secondaryColor,...p.sendButtonStyle,...p.sendButtonHoveredStyle},I={backgroundImage:`url(${(o=A.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle},_={backgroundImage:`url(${(c=A.chatInput)==null?void 0:c.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle,...p.sendIconDisabledStyle},B={backgroundImage:`url(${(u=A.chatInput)==null?void 0:u.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle,...p.sendIconHoveredStyle};return N.jsx("div",{"aria-label":((d=A.ariaLabel)==null?void 0:d.sendButton)??"send message",role:"button",onMouseEnter:()=>{y(!0)},onMouseLeave:()=>{y(!1)},onMouseDown:async U=>{U==null||U.preventDefault(),!h&&await C()},style:h?Q:m?E:D,className:"rcb-send-button",children:(()=>{var U;const j=(U=A.chatInput)==null?void 0:U.sendButtonIcon;return j&&typeof j!="string"?j&&N.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:N.jsx(j,{style:h?_:m?B:I})}):N.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:h?_:m?B:I})})()})},up=(e,n)=>{var a,i,o,c,u,d,A,p,h;const m={[dt.AUDIO_BUTTON]:(a=e.audio)==null?void 0:a.disabled,[dt.CLOSE_CHAT_BUTTON]:(i=e.general)==null?void 0:i.embedded,[dt.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[dt.FILE_ATTACHMENT_BUTTON]:(c=e.fileAttachment)==null?void 0:c.disabled,[dt.NOTIFICATION_BUTTON]:(u=e.notification)==null?void 0:u.disabled,[dt.SEND_MESSAGE_BUTTON]:!1,[dt.VOICE_MESSAGE_BUTTON]:(d=e.voice)==null?void 0:d.disabled},y={},C=D=>D?D.map(Q=>{if(typeof Q=="string"){if((E=>Object.values(dt).includes(E))(Q)&&!m[Q]){if(y[Q])return y[Q];const E=n[Q];if(typeof E=="function"){const I=E();return y[Q]=I,I}return null}return null}return Q}).filter(Q=>Q!==null):[];return{header:C((A=e.header)==null?void 0:A.buttons),chatInput:C((p=e.chatInput)==null?void 0:p.buttons),footer:C((h=e.footer)==null?void 0:h.buttons)}},Ap=()=>{const{settings:e}=Fe(),n=R.useMemo(()=>({[dt.CLOSE_CHAT_BUTTON]:()=>N.jsx(ip,{}),[dt.AUDIO_BUTTON]:()=>N.jsx(ap,{}),[dt.NOTIFICATION_BUTTON]:()=>N.jsx(sp,{}),[dt.EMOJI_PICKER_BUTTON]:()=>N.jsx(op,{}),[dt.FILE_ATTACHMENT_BUTTON]:()=>N.jsx(rp,{}),[dt.SEND_MESSAGE_BUTTON]:()=>N.jsx(cp,{}),[dt.VOICE_MESSAGE_BUTTON]:()=>N.jsx(lp,{})}),[]),{header:a,chatInput:i,footer:o}=R.useMemo(()=>up(e,n),[e,n]);return{headerButtons:R.useMemo(()=>a,[a]),chatInputButtons:R.useMemo(()=>i,[i]),footerButtons:R.useMemo(()=>o,[o])}},$l=()=>{const{settings:e}=Fe(),{styles:n}=Ze(),{setSyncedMessages:a,syncedMessagesRef:i}=Ul(),{isLoadingChatHistory:o,setIsLoadingChatHistory:c,hasChatHistoryLoaded:u,setHasChatHistoryLoaded:d}=Et(),{chatBodyRef:A}=xt(),{dispatchRcbEvent:p}=Vn(),h=R.useCallback(async()=>{var m,y;const C=jl();if(!C||(m=e.event)!=null&&m.rcbLoadChatHistory&&(await p(ye.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;c(!0);const D=((y=A.current)==null?void 0:y.scrollHeight)??0;((Q,E,I,_,B,U,j,z,W)=>{var te;if(rA=!0,I!=null)try{const J=Jr(N.jsx(Hf,{}),"SYSTEM"),Y=B.current.slice(1);_([J,...Y]);const ee=I.map(Z=>{if(Z.type==="object"){const ie=iA(Z.content,Q,E);return{...Z,content:ie}}return Z});setTimeout(()=>{var Z;const ie=B.current.slice(1);let ue=(Z=Q.chatHistory)!=null&&Z.autoLoad?Jr(N.jsx(N.Fragment,{}),"SYSTEM"):Jr(N.jsx(_f,{}),"SYSTEM");_([...ee,ue,...ie]),W(!0)},500),setTimeout(()=>{if(!U.current)return;const{scrollHeight:Z}=U.current,ie=Z-j;U.current.scrollTop+=ie,z(!1)},510)}catch{Kr.removeItem((te=Q.chatHistory)==null?void 0:te.storageKey)}})(e,n,C,a,i,A,D,c,d)},[e,n,p,i,A,c,d]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:c,hasChatHistoryLoaded:u,showChatHistory:h}},dp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{showChatHistory:c}=$l(),[u,d]=R.useState(!1),A={color:(e=i.general)==null?void 0:e.primaryColor,borderColor:(n=i.general)==null?void 0:n.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return N.jsx("div",{className:"rcb-view-history-container",children:N.jsx("div",{onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},style:u?A:{...o.chatHistoryButtonStyle},onMouseDown:p=>{p.preventDefault(),c()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:N.jsx("p",{children:(a=i.chatHistory)==null?void 0:a.viewChatHistoryButtonText})})})},fp=()=>{var e,n,a,i;const o=Fs(),{settings:c}=Fe(),{replaceMessages:u}=Oo(),{isBotTyping:d,isChatWindowOpen:A,setUnreadCount:p,setSyncedIsChatWindowOpen:h,setSyncedTextAreaDisabled:m,setSyncedAudioToggledOn:y,setSyncedVoiceToggledOn:C,setSyncedIsScrolling:D,syncedIsScrollingRef:Q,syncedIsChatWindowOpenRef:E}=Et(),{chatBodyRef:I}=xt(),{viewportHeight:_,setViewportHeight:B,setViewportWidth:U,scrollToBottom:j}=wn(),{setUpNotifications:z}=Yl(),{handleFirstInteraction:W}=(()=>{var ee;const{settings:Z}=Fe(),{hasInteractedPage:ie,setHasInteractedPage:ue,hasFlowStarted:se,setHasFlowStarted:xe}=Et(),ge=R.useCallback(()=>{var me;if(ue(!0),!se&&((me=Z.general)==null?void 0:me.flowStartTrigger)==="ON_PAGE_INTERACT"&&xe(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const M=new window.SpeechSynthesisUtterance;M.text="",M.onend=()=>{window.removeEventListener("click",ge),window.removeEventListener("keydown",ge),window.removeEventListener("touchstart",ge)},window.speechSynthesis.speak(M)},[se,(ee=Z.general)==null?void 0:ee.flowStartTrigger]);return{hasInteractedPage:ie,handleFirstInteraction:ge}})(),{showChatHistory:te}=$l(),J=R.useRef(0),Y=R.useRef(!1);R.useEffect(()=>(window.addEventListener("click",W),window.addEventListener("keydown",W),window.addEventListener("touchstart",W),()=>{window.removeEventListener("click",W),window.removeEventListener("keydown",W),window.removeEventListener("touchstart",W)}),[]),R.useEffect(()=>{const ee=I.current;if(!ee)return;const Z=()=>{Y.current||(Y.current=!0,requestAnimationFrame(()=>{var ie,ue;if(!ee)return;const{scrollTop:se,clientHeight:xe,scrollHeight:ge}=ee,me=se+xe<ge-(((ie=c.chatWindow)==null?void 0:ie.messagePromptOffset)??30);D(me),Q.current=me,me||(se+xe>=ge-1&&(ee.scrollTop=ge-xe-1),(E.current||(ue=c.general)!=null&&ue.embedded)&&p(0)),Y.current=!1}))};return ee.addEventListener("wheel",Z,{passive:!0}),ee.addEventListener("touchmove",Z,{passive:!0}),()=>{ee.removeEventListener("wheel",Z),ee.removeEventListener("touchmove",Z)}},[]),R.useEffect(()=>{var ee,Z,ie;m((ee=c.chatInput)==null?void 0:ee.disabled),h((Z=c.chatWindow)==null?void 0:Z.defaultOpen),y((ie=c.audio)==null?void 0:ie.defaultToggledOn),setTimeout(()=>{var ue;C((ue=c.voice)==null?void 0:ue.defaultToggledOn)},1)},[]),R.useEffect(()=>{var ee;(ee=c.notification)!=null&&ee.disabled||z()},[(e=c.notification)==null?void 0:e.disabled]),R.useEffect(()=>{!Q.current&&I!=null&&I.current&&j()},[d]),R.useEffect(()=>{var ee,Z;if((ee=c.chatHistory)!=null&&ee.disabled)Kr&&Kr.removeItem(Bs);else if(Wl(c),jl().length>0){const ie=Jr(N.jsx(dp,{}),"SYSTEM");u([ie]),(Z=c.chatHistory)!=null&&Z.autoLoad&&te()}},[(n=c.chatHistory)==null?void 0:n.storageKey,(a=c.chatHistory)==null?void 0:a.maxEntries,(i=c.chatHistory)==null?void 0:i.disabled]),R.useEffect(()=>{var ee;o||(ee=c.general)!=null&&ee.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",Z=>{if(!Z.target)return;const{x:ie,y:ue,width:se,height:xe}=Z.target.boundingRect;ie==0&&ue==0&&se==0&&xe==0?(setTimeout(()=>{var ge;B((ge=window.visualViewport)==null?void 0:ge.height)},101),setTimeout(()=>{var ge,me;_!=((ge=window.visualViewport)==null?void 0:ge.height)&&B((me=window.visualViewport)==null?void 0:me.height)},1001)):setTimeout(()=>{var ge;B(((ge=window.visualViewport)==null?void 0:ge.height)-xe)},101)}))},[o]),R.useEffect(()=>{var ee,Z,ie,ue;if(o)return;A&&(B((ee=window.visualViewport)==null?void 0:ee.height),U((Z=window.visualViewport)==null?void 0:Z.width));const se=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),xe=()=>J.current=window.scrollY,ge=()=>{var M,fe;B((M=window.visualViewport)==null?void 0:M.height),U((fe=window.visualViewport)==null?void 0:fe.width)},me=()=>{var M;window.removeEventListener("scroll",se),window.removeEventListener("scroll",xe),(M=window.visualViewport)==null||M.removeEventListener("resize",ge)};return A?(me(),document.body.style.position="fixed",window.addEventListener("scroll",se),(ie=window.visualViewport)==null||ie.addEventListener("resize",ge)):(document.body.style.position="static",me(),window.scrollTo({top:J.current,left:0,behavior:"auto"}),window.addEventListener("scroll",xe),(ue=window.visualViewport)==null||ue.removeEventListener("resize",ge)),me},[A,o])},pp="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",hp="2592000",dA="RCB_THEME_CACHE_DATA",fA=async(e,n)=>{const{id:a,version:i,baseUrl:o=pp,cacheDuration:c=hp}=n,u=i||await(async(I,_)=>{const B=`${_}/${I}/meta.json`;try{const U=await fetch(B);return U.ok?(await U.json()).version:(console.error(`Failed to fetch meta.json from ${B}`),null)}catch(U){return console.error(`Failed to fetch meta.json from ${B}`,U),null}})(a,o);if(!u)return console.error(`Unable to find version for theme: ${a}`),{settings:{},inlineStyles:{},cssStylesText:""};const d=((I,_,B)=>{const U=localStorage.getItem(`${dA}_${I}_${_}`);if(!U)return null;try{const j=JSON.parse(U),z=new Date().getTime(),W=Math.floor(z/1e3);return j.cacheDate+B>=W?j:null}catch(j){return console.error(`Unable to fetch cache for ${I}`,j),null}})(a,u,c);if(d){const I=pA(e,d.cssStylesText);return{settings:d.settings,inlineStyles:d.inlineStyles,cssStylesText:I}}const A=`${o}/${a}/${u}/styles.css`,p=`${o}/${a}/${u}/settings.json`,h=`${o}/${a}/${u}/styles.json`;let m="";const y=await fetch(A);y.ok?m=await y.text():console.info(`Could not fetch styles.css from ${A}`);const C=await fetch(p);let D={};C.ok?D=await C.json():console.info(`Could not fetch settings.json from ${p}`);const Q=await fetch(h);let E={};return Q.ok?E=await Q.json():console.info(`Could not fetch styles.json from ${h}`),((I,_,B,U,j)=>{const z=new Date().getTime(),W={settings:B,inlineStyles:U,cssStylesText:j,cacheDate:Math.floor(z/1e3)};localStorage.setItem(`${dA}_${I}_${_}`,JSON.stringify(W))})(a,u,D,E,m),{settings:D,inlineStyles:E,cssStylesText:pA(e,m)}},pA=(e,n)=>n.split(new RegExp("(?<=})")).map(a=>{const i=a.trim();return i.startsWith("@import")||i.startsWith("@keyframes")||i.startsWith("@media")?i:i?`#${e} ${i}`:""}).join(`
|
|
105
|
+
`+s.stack}}var vi=a.ReactCurrentDispatcher,yi=a.ReactDebugCurrentFrame,bi=0,ko=1,hs=2,jr=3,wl=4,wu=0,Co=1,Po=2,xu=12800;function Su(l){return console.error(l),null}function Wr(){}function wi(l,t,r,s,f,b,S,P,H){var V=[],oe=new Set,ae={destination:null,responseState:t,progressiveChunkSize:s===void 0?xu:s,status:wu,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:oe,pingedTasks:V,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:f===void 0?Su:f,onAllReady:b===void 0?Wr:b,onShellReady:S===void 0?Wr:S,onShellError:P===void 0?Wr:P,onFatalError:H===void 0?Wr:H},pe=ua(ae,0,null,r,!1,!1);pe.parentFlushed=!0;var De=Yr(ae,l,null,pe,oe,ei,ti,au);return V.push(De),ae}function rr(l,t){var r=l.pingedTasks;r.push(t),r.length===1&&u(function(){return Cs(l)})}function gs(l,t){return{id:vr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null}}function Yr(l,t,r,s,f,b,S,P){l.allPendingTasks++,r===null?l.pendingRootTasks++:r.pendingTasks++;var H={node:t,ping:function(){return rr(l,H)},blockedBoundary:r,blockedSegment:s,abortSet:f,legacyContext:b,context:S,treeContext:P};return H.componentStack=null,f.add(H),H}function ua(l,t,r,s,f,b){return{status:bi,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:s,boundary:r,lastPushedText:f,textEmbedded:b}}var or=null;function Gn(){return or===null||or.componentStack===null?"":Eo(or.componentStack)}function ar(l,t){l.componentStack={tag:0,parent:l.componentStack,type:t}}function xi(l,t){l.componentStack={tag:1,parent:l.componentStack,type:t}}function Aa(l,t){l.componentStack={tag:2,parent:l.componentStack,type:t}}function Dn(l){l.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var da=null;function ms(l,t){{var r;typeof t=="string"?r=t:t&&typeof t.message=="string"?r=t.message:r=String(t);var s=da||Gn();da=null,l.errorMessage=r,l.errorComponentStack=s}}function fa(l,t){var r=l.onError(t);if(r!=null&&typeof r!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof r+'" instead');return r}function pa(l,t){var r=l.onShellError;r(t);var s=l.onFatalError;s(t),l.destination!==null?(l.status=Po,_(l.destination,t)):(l.status=Co,l.fatalError=t)}function xl(l,t,r){ar(t,"Suspense");var s=t.blockedBoundary,f=t.blockedSegment,b=r.fallback,S=r.children,P=new Set,H=gs(l,P),V=f.chunks.length,oe=ua(l,V,H,f.formatContext,!1,!1);f.children.push(oe),f.lastPushedText=!1;var ae=ua(l,0,null,f.formatContext,!1,!1);ae.parentFlushed=!0,t.blockedBoundary=H,t.blockedSegment=ae;try{if(To(l,t,S),_t(ae.chunks,l.responseState,ae.lastPushedText,ae.textEmbedded),ae.status=ko,Gr(H,ae),H.pendingTasks===0){Dn(t);return}}catch(De){ae.status=wl,H.forceClientRender=!0,H.errorDigest=fa(l,De),ms(H,De)}finally{t.blockedBoundary=s,t.blockedSegment=f}var pe=Yr(l,b,s,oe,P,t.legacyContext,t.context,t.treeContext);pe.componentStack=t.componentStack,l.pingedTasks.push(pe),Dn(t)}function Eu(l,t,r,s){ar(t,r);var f=t.blockedSegment,b=Or(f.chunks,r,s,l.responseState,f.formatContext);f.lastPushedText=!1;var S=f.formatContext;f.formatContext=$n(S,r,s),To(l,t,b),f.formatContext=S,Da(f.chunks,r),f.lastPushedText=!1,Dn(t)}function Sl(l){return l.prototype&&l.prototype.isReactComponent}function ha(l,t,r,s,f){var b={};du(t,b);var S=r(s,f);return fu(r,s,S,f)}function vs(l,t,r,s,f){var b=r.render();r.props!==f&&(xs||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",nt(s)||"a component"),xs=!0);{var S=s.childContextTypes;if(S!=null){var P=t.legacyContext,H=os(r,s,P,S);t.legacyContext=H,Ut(l,t,b),t.legacyContext=P;return}}Ut(l,t,b)}function El(l,t,r,s){Aa(t,r);var f=Sr(r,t.legacyContext),b=pl(r,s,f);sa(b,r,s,f),vs(l,t,b,r,s),Dn(t)}var ys={},ga={},bs={},ws={},xs=!1,kl={},Cl=!1,Ss=!1,Pl=!1;function ku(l,t,r,s){var f;if(f=Sr(r,t.legacyContext),xi(t,r),r.prototype&&typeof r.prototype.render=="function"){var b=nt(r)||"Unknown";ys[b]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",b,b),ys[b]=!0)}var S=ha(l,t,r,s,f),P=fi();if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var H=nt(r)||"Unknown";ga[H]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),ga[H]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var V=nt(r)||"Unknown";ga[V]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),ga[V]=!0)}sa(S,r,s,f),vs(l,t,S,r,s)}else if(Cu(r),P){var oe=t.treeContext,ae=1,pe=0;t.treeContext=cs(oe,ae,pe);try{Ut(l,t,S)}finally{t.treeContext=oe}}else Ut(l,t,S);Dn(t)}function Cu(l){{if(l&&l.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var t=nt(l)||"Unknown";kl[t]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",t),kl[t]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var r=nt(l)||"Unknown";ws[r]||(o("%s: Function components do not support getDerivedStateFromProps.",r),ws[r]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var s=nt(l)||"Unknown";bs[s]||(o("%s: Function components do not support contextType.",s),bs[s]=!0)}}}function Tl(l,t){if(l&&l.defaultProps){var r=en({},t),s=l.defaultProps;for(var f in s)r[f]===void 0&&(r[f]=s[f]);return r}return t}function Pu(l,t,r,s,f){xi(t,r.render);var b=ha(l,t,r.render,s,f),S=fi();if(S){var P=t.treeContext,H=1,V=0;t.treeContext=cs(P,H,V);try{Ut(l,t,b)}finally{t.treeContext=P}}else Ut(l,t,b);Dn(t)}function Es(l,t,r,s,f){var b=r.type,S=Tl(b,s);Si(l,t,b,S,f)}function Tu(l,t,r,s){r._context===void 0?r!==r.Consumer&&(Pl||(Pl=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var f=s.children;typeof f!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var b=wo(r),S=f(b);Ut(l,t,S)}function on(l,t,r,s){var f=r._context,b=s.value,S=s.children,P;P=t.context,t.context=as(f,b),Ut(l,t,S),t.context=tu(f),P!==t.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Du(l,t,r,s,f){ar(t,"Lazy");var b=r._payload,S=r._init,P=S(b),H=Tl(P,s);Si(l,t,P,H,f),Dn(t)}function Si(l,t,r,s,f){if(typeof r=="function")if(Sl(r)){El(l,t,r,s);return}else{ku(l,t,r,s);return}if(typeof r=="string"){Eu(l,t,r,s);return}switch(r){case Zc:case $c:case Ga:case Va:case Ya:{Ut(l,t,s.children);return}case Gi:{ar(t,"SuspenseList"),Ut(l,t,s.children),Dn(t);return}case tl:throw new Error("ReactDOMServer does not yet support scope components.");case Yi:{xl(l,t,s);return}}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case vo:{Pu(l,t,r,s,f);return}case Vi:{Es(l,t,r,s,f);return}case Vo:{on(l,t,r,s);return}case Xo:{Tu(l,t,r,s);return}case Xa:{Du(l,t,r,s);return}}var b="";throw(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+b))}function Iu(l,t){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Cl||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Cl=!0),l.entries===t&&(Ss||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ss=!0)}function Ut(l,t,r){try{return Bu(l,t,r)}catch(s){throw typeof s=="object"&&s!==null&&typeof s.then=="function"||(da=da!==null?da:Gn()),s}}function Bu(l,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case el:{var s=r,f=s.type,b=s.props,S=s.ref;Si(l,t,f,b,S);return}case Wa:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Xa:{var P=r,H=P._payload,V=P._init,oe;try{oe=V(H)}catch(ir){throw typeof ir=="object"&&ir!==null&&typeof ir.then=="function"&&ar(t,"Lazy"),ir}Ut(l,t,oe);return}}if(Lt(r)){Dl(l,t,r);return}var ae=Jo(r);if(ae){Iu(r,ae);var pe=ae.call(r);if(pe){var De=pe.next();if(!De.done){var je=[];do je.push(De.value),De=pe.next();while(!De.done);Dl(l,t,je);return}return}}var Ct=Object.prototype.toString.call(r);throw new Error("Objects are not valid as a React child (found: "+(Ct==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":Ct)+"). If you meant to render a collection of children, use an array instead.")}if(typeof r=="string"){var Vr=t.blockedSegment;Vr.lastPushedText=wt(t.blockedSegment.chunks,r,l.responseState,Vr.lastPushedText);return}if(typeof r=="number"){var Xr=t.blockedSegment;Xr.lastPushedText=wt(t.blockedSegment.chunks,""+r,l.responseState,Xr.lastPushedText);return}typeof r=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Dl(l,t,r){for(var s=r.length,f=0;f<s;f++){var b=t.treeContext;t.treeContext=cs(b,s,f);try{To(l,t,r[f])}finally{t.treeContext=b}}}function Il(l,t,r){var s=t.blockedSegment,f=s.chunks.length,b=ua(l,f,null,s.formatContext,s.lastPushedText,!0);s.children.push(b),s.lastPushedText=!1;var S=Yr(l,t.node,t.blockedBoundary,b,t.abortSet,t.legacyContext,t.context,t.treeContext);t.componentStack!==null&&(S.componentStack=t.componentStack.parent);var P=S.ping;r.then(P,P)}function To(l,t,r){var s=t.blockedSegment.formatContext,f=t.legacyContext,b=t.context,S=null;S=t.componentStack;try{return Ut(l,t,r)}catch(P){if(ds(),typeof P=="object"&&P!==null&&typeof P.then=="function"){Il(l,t,P),t.blockedSegment.formatContext=s,t.legacyContext=f,t.context=b,kr(b),t.componentStack=S;return}else throw t.blockedSegment.formatContext=s,t.legacyContext=f,t.context=b,kr(b),t.componentStack=S,P}}function Bl(l,t,r,s){var f=fa(l,s);if(t===null?pa(l,s):(t.pendingTasks--,t.forceClientRender||(t.forceClientRender=!0,t.errorDigest=f,ms(t,s),t.parentFlushed&&l.clientRenderedBoundaries.push(t))),l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Mu(l){var t=this,r=l.blockedBoundary,s=l.blockedSegment;s.status=jr,ma(t,r,s)}function ks(l,t,r){var s=l.blockedBoundary,f=l.blockedSegment;if(f.status=jr,s===null)t.allPendingTasks--,t.status!==Po&&(t.status=Po,t.destination!==null&&D(t.destination));else{if(s.pendingTasks--,!s.forceClientRender){s.forceClientRender=!0;var b=r===void 0?new Error("The render was aborted by the server without a reason."):r;s.errorDigest=t.onError(b);{var S="The server did not finish this Suspense boundary: ";b&&typeof b.message=="string"?b=S+b.message:b=S+String(b);var P=or;or=l;try{ms(s,b)}finally{or=P}}s.parentFlushed&&t.clientRenderedBoundaries.push(s)}if(s.fallbackAbortableTasks.forEach(function(V){return ks(V,t,r)}),s.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0){var H=t.onAllReady;H()}}}function Gr(l,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===ko&&Gr(l,r)}else{var s=l.completedSegments;s.push(t)}}function ma(l,t,r){if(t===null){if(r.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=r}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Wr;var s=l.onShellReady;s()}}else if(t.pendingTasks--,!t.forceClientRender){if(t.pendingTasks===0)r.parentFlushed&&r.status===ko&&Gr(t,r),t.parentFlushed&&l.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Mu,l),t.fallbackAbortableTasks.clear();else if(r.parentFlushed&&r.status===ko){Gr(t,r);var f=t.completedSegments;f.length===1&&t.parentFlushed&&l.partialBoundaries.push(t)}}if(l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Ru(l,t){var r=t.blockedSegment;if(r.status===bi){kr(t.context);var s=null;s=or,or=t;try{Ut(l,t,t.node),_t(r.chunks,l.responseState,r.lastPushedText,r.textEmbedded),t.abortSet.delete(t),r.status=ko,ma(l,t.blockedBoundary,r)}catch(b){if(ds(),typeof b=="object"&&b!==null&&typeof b.then=="function"){var f=t.ping;b.then(f,f)}else t.abortSet.delete(t),r.status=wl,Bl(l,t.blockedBoundary,r,b)}finally{or=s}}}function Cs(l){if(l.status!==Po){var t=ul(),r=vi.current;vi.current=gi;var s;s=yi.getCurrentStack,yi.getCurrentStack=Gn;var f=ca;mi(l.responseState);try{var b=l.pingedTasks,S;for(S=0;S<b.length;S++){var P=b[S];Ru(l,P)}b.splice(0,S),l.destination!==null&&Ps(l,l.destination)}catch(H){fa(l,H),pa(l,H)}finally{mi(f),vi.current=r,yi.getCurrentStack=s,r===gi&&kr(t)}}}function va(l,t,r){switch(r.parentFlushed=!0,r.status){case bi:{var s=r.id=l.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,Ia(t,l.responseState,s)}case ko:{r.status=hs;for(var f=!0,b=r.chunks,S=0,P=r.children,H=0;H<P.length;H++){for(var V=P[H];S<V.index;S++)m(t,b[S]);f=Ei(l,t,V)}for(;S<b.length-1;S++)m(t,b[S]);return S<b.length&&(f=y(t,b[S])),f}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ei(l,t,r){var s=r.boundary;if(s===null)return va(l,t,r);if(s.parentFlushed=!0,s.forceClientRender)return Ht(t,l.responseState,s.errorDigest,s.errorMessage,s.errorComponentStack),va(l,t,r),ji(t,l.responseState);if(s.pendingTasks>0){s.rootSegmentID=l.nextSegmentId++,s.completedSegments.length>0&&l.partialBoundaries.push(s);var f=s.id=Wt(l.responseState);return Ao(t,l.responseState,f),va(l,t,r),fo(t,l.responseState)}else{if(s.byteSize>l.progressiveChunkSize)return s.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(s),Ao(t,l.responseState,s.id),va(l,t,r),fo(t,l.responseState);Ra(t,l.responseState);var b=s.completedSegments;if(b.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var S=b[0];return Ei(l,t,S),Oa(t,l.responseState)}}function Ml(l,t,r){return Kc(t,l.responseState,r.id,r.errorDigest,r.errorMessage,r.errorComponentStack)}function ki(l,t,r){return Me(t,l.responseState,r.formatContext,r.id),Ei(l,t,r),$e(t,r.formatContext)}function Rl(l,t,r){for(var s=r.completedSegments,f=0;f<s.length;f++){var b=s[f];Ol(l,t,r,b)}return s.length=0,Zs(t,l.responseState,r.id,r.rootSegmentID)}function Ou(l,t,r){for(var s=r.completedSegments,f=0;f<s.length;f++){var b=s[f];if(!Ol(l,t,r,b))return f++,s.splice(0,f),!1}return s.splice(0,f),!0}function Ol(l,t,r,s){if(s.status===hs)return!0;var f=s.id;if(f===-1){var b=s.id=r.rootSegmentID;if(b===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return ki(l,t,s)}else return ki(l,t,s),jc(t,l.responseState,f)}function Ps(l,t){h();try{var r=l.completedRootSegment;r!==null&&l.pendingRootTasks===0&&(Ei(l,t,r),l.completedRootSegment=null,Ni(t,l.responseState));var s=l.clientRenderedBoundaries,f;for(f=0;f<s.length;f++){var b=s[f];Ml(l,t,b)}s.splice(0,f);var S=l.completedBoundaries;for(f=0;f<S.length;f++){var P=S[f];Rl(l,t,P)}S.splice(0,f),C(t),h(t);var H=l.partialBoundaries;for(f=0;f<H.length;f++){var V=H[f];if(!Ou(l,t,V)){l.destination=null,f++,H.splice(0,f);return}}H.splice(0,f);var oe=l.completedBoundaries;for(f=0;f<oe.length;f++){var ae=oe[f];Rl(l,t,ae)}oe.splice(0,f)}finally{C(t),l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),D(t))}}function Fl(l){u(function(){return Cs(l)})}function Fu(l,t){if(l.status===Co){l.status=Po,_(t,l.fatalError);return}if(l.status!==Po&&l.destination===null){l.destination=t;try{Ps(l,t)}catch(r){fa(l,r),pa(l,r)}}}function Ll(l,t){try{var r=l.abortableTasks;r.forEach(function(s){return ks(s,l,t)}),r.clear(),l.destination!==null&&Ps(l,l.destination)}catch(s){fa(l,s),pa(l,s)}}function Lu(l,t){return new Promise(function(r,s){var f,b,S=new Promise(function(pe,De){b=pe,f=De});function P(){var pe=new ReadableStream({type:"bytes",pull:function(De){Fu(V,De)},cancel:function(De){Ll(V)}},{highWaterMark:0});pe.allReady=S,r(pe)}function H(pe){S.catch(function(){}),s(pe)}var V=wi(l,ro(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Nn(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,b,P,H,f);if(t&&t.signal){var oe=t.signal,ae=function(){Ll(V,oe.reason),oe.removeEventListener("abort",ae)};oe.addEventListener("abort",ae)}Fl(V)})}Ds.renderToReadableStream=Lu,Ds.version=n}()),Ds}var Ro,_l;process.env.NODE_ENV==="production"?(Ro=rf(),_l=of()):(Ro=af(),_l=sf()),Io.version=Ro.version,Io.renderToString=Ro.renderToString,Io.renderToStaticMarkup=Ro.renderToStaticMarkup,Io.renderToNodeStream=Ro.renderToNodeStream,Io.renderToStaticNodeStream=Ro.renderToStaticNodeStream,Io.renderToReadableStream=_l.renderToReadableStream;function zu(e,n){n===void 0&&(n={});var a=n.insertAt;if(e&&typeof document<"u"){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",a==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}zu('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const dt={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},ju="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",Wu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 0 637 637",ref:n,...e},lt.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),lt.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Yu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),lf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),cf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),uf=R.forwardRef((e,n)=>lt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:n,...e},lt.createElement("g",{strokeLinecap:"round",strokeWidth:10},lt.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),Af=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),df=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),ff=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Gu=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),pf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),hf=R.forwardRef((e,n)=>lt.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},lt.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),Vu={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:Wu},header:{title:N.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:ju,buttons:[dt.NOTIFICATION_BUTTON,dt.AUDIO_BUTTON,dt.CLOSE_CHAT_BUTTON],closeChatIcon:uf},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:lf,iconDisabled:cf,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wA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wCi/ywAxP8oAPn//v82APT/WwD4/00A+/8yAPv//f/8/83/+v+w/+T/sf/j/9b/AQACACoAIgAtAEIAHwBPAAEAQADe/xcA0v/k/+X/t/8IAKv/IgC//yEA6/8EACMA9/9PAPf/VAD+/zcA+/8JAPn/1P8AALf/6f+w/+P/zf////j/HAAdAC0APgAfAEsABwBCAOP/IADV/+//2v/B//3/rP8PALv/GADd/xEAFgABAEMABABaAP//QgACABcA+//n/wAAwP/w/67/4v+///3/6f8WABcAKQA0ACIARgAQAEcA8f8pANn/9f/U/87/7f+v/wgAtP8RANP/FgANAAIAOQACAFQA/f9HAAAAIAABAO3//P/E/wEAs//q/7n/9P/i/wYAEQAZADEAJABBABMASAAAADEA3/8CANL/1v/g/7H/AACy/w8Axf8ZAPv/CQAzAAIAVQD//1AAAAAsAAIA9v/7/8r/AwC2//P/tf/m/+H/AwADABEAKQApADoAHgBHAAgAPADr/wkA1//f/93/vP/6/7L/CgDA/x4A7/8hACkAAgBPAPz/UgD1/zIABAAEAPz/0v/5/7f/AACy//H/2f/+/wEAAAAkABUAMwAdADoAEQA9APD/EADU//L/1P/H/+z/tf8LALv/HADk/ygAGgADAEMA//9TAPn/QAAAABAAAQDc//z/wf8DALD/7P/Q//z/9/8HABoAFgA3ACMAMAAOADwA+P8ZANv/+P/Y/9H/5v+8/wUAu/8WANf/HgAMAAoAPQABAFMA/f9HAP7/HwAEAN//+v/H/wMAs//2/8r/8//y/wMADgAQAC4AIwAyABMAJwD8/xcA3v8LANP/5v/f/8j/AgC4/w4A1P8eAAQACgAxAAEAUgD+/0gA/v8nAAIA8f/5/8r/BAC6/+3/wP/l/+b/AQAIABkAIwArAC4AIAAoAAkAGADj/w0A0f/r/9//0P8DAL3/CgDN/xkA//8IACUAAgBJAAAATwD+/ysAAQD7//3/z/8DAMT/+f/K/+L/5P/1////EgAcACYALgApAC4ACwAcAPL/EADZ//L/1f/U//f/uv8KAMX/DwDu/wcAHwADAEUABgBNAAEANQAAAAYAAQDf////xf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AD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:pf,iconDisabled:hf},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:Af,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[dt.VOICE_MESSAGE_BUTTON,dt.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:ju,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:df,iconDisabled:ff},footer:{text:N.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[N.jsx("span",{children:"Powered By "},0),N.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:N.jsx(Wu,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),N.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[dt.FILE_ATTACHMENT_BUTTON,dt.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Yu,iconDisabled:Yu,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Gu,iconDisabled:Gu,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},Xu=R.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),Fe=()=>R.useContext(Xu),gf=({children:e,settings:n=Vu,setSyncedSettings:a,syncedSettingsRef:i})=>N.jsx(Xu.Provider,{value:{settings:n,setSyncedSettings:a,syncedSettingsRef:i},children:e}),Ju={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},Ku=R.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),Ze=()=>R.useContext(Ku),mf=({children:e,styles:n=Ju,setSyncedStyles:a,syncedStylesRef:i})=>N.jsx(Ku.Provider,{value:{styles:n,setSyncedStyles:a,syncedStylesRef:i},children:e}),vf=({buttons:e})=>{var n,a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h={backgroundImage:`linear-gradient(to right, ${(n=A.general)==null?void 0:n.secondaryColor},
|
|
106
|
+
${(a=A.general)==null?void 0:a.primaryColor})`,...p.headerStyle};return N.jsxs("div",{style:h,className:"rcb-chat-header-container",children:[N.jsxs("div",{className:"rcb-chat-header",children:[((i=A.header)==null?void 0:i.showAvatar)&&N.jsx("div",{style:{backgroundImage:`url("${(o=A.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),R.isValidElement((c=A.header)==null?void 0:c.title)?(u=A.header)==null?void 0:u.title:N.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(d=A.header)==null?void 0:d.title})]}),N.jsx("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((m,y)=>N.jsx(R.Fragment,{children:m},y))})]})},$u=R.createContext({}),xt=()=>R.useContext($u),yf=({children:e,botIdRef:n,flowRef:a})=>{const i=R.useRef(null),o=R.useRef(""),c=R.useRef(null),u=R.useRef(new Map),d=R.useRef(null),A=R.useRef(""),p=R.useRef(!1),h=R.useRef(null),m=R.useRef(null),y=R.useRef(null);return N.jsx($u.Provider,{value:{botIdRef:n,flowRef:a,inputRef:i,timeoutIdRef:c,streamMessageMap:u,chatBodyRef:d,paramsInputRef:A,keepVoiceOnRef:p,audioContextRef:h,audioBufferRef:m,gainNodeRef:y,prevInputRef:o},children:e})},bn=e=>{const[n,a]=R.useState(e),i=R.useRef(e);return[n,o=>{const c=typeof o=="function"?o(i.current):o;i.current=c,a(c)},i]},Zu=R.createContext({}),Et=()=>R.useContext(Zu),bf=({children:e,settings:n})=>{var a,i,o,c,u,d;const[A,p,h]=bn(!1),[m,y,C]=bn(((a=n==null?void 0:n.chatWindow)==null?void 0:a.defaultOpen)??!1),[D,Q,E]=bn(((i=n==null?void 0:n.audio)==null?void 0:i.defaultToggledOn)??!1),[I,_,B]=bn(((o=n==null?void 0:n.voice)==null?void 0:o.defaultToggledOn)??!1),[U,j,z]=bn(((c=n==null?void 0:n.notification)==null?void 0:c.defaultToggledOn)??!0),[W,te]=R.useState(!1),[J,Y]=R.useState(!1),[ee,Z,ie]=bn(!1),[ue,se,xe]=bn(!0),[ge,me,M]=bn(!1),[fe,O]=R.useState(!1),[de,Ee]=R.useState(!1),[he,ve]=R.useState(0),[Te,Qe]=R.useState(0),[tt,Le]=R.useState(!1),[Je,qe]=R.useState(((u=window.visualViewport)==null?void 0:u.height)??window.innerHeight),[ft,Ne]=R.useState(((d=window.visualViewport)==null?void 0:d.width)??window.innerWidth);return N.jsx(Zu.Provider,{value:{isBotTyping:A,setSyncedIsBotTyping:p,syncedIsBotTypingRef:h,isChatWindowOpen:m,setSyncedIsChatWindowOpen:y,syncedIsChatWindowOpenRef:C,audioToggledOn:D,setSyncedAudioToggledOn:Q,syncedAudioToggledOnRef:E,voiceToggledOn:I,setSyncedVoiceToggledOn:_,syncedVoiceToggledOnRef:B,notificationsToggledOn:U,setSyncedNotificationsToggledOn:j,syncedNotificationsToggledOnRef:z,isLoadingChatHistory:W,setIsLoadingChatHistory:te,hasChatHistoryLoaded:J,setHasChatHistoryLoaded:Y,isScrolling:ee,setSyncedIsScrolling:Z,syncedIsScrollingRef:ie,textAreaDisabled:ue,setSyncedTextAreaDisabled:se,syncedTextAreaDisabledRef:xe,textAreaSensitiveMode:ge,setSyncedTextAreaSensitiveMode:me,syncedTextAreaSensitiveModeRef:M,hasInteractedPage:fe,setHasInteractedPage:O,hasFlowStarted:de,setHasFlowStarted:Ee,unreadCount:he,setUnreadCount:ve,inputLength:Te,setInputLength:Qe,blockAllowsAttachment:tt,setBlockAllowsAttachment:Le,viewportHeight:Je,setViewportHeight:qe,viewportWidth:ft,setViewportWidth:Ne},children:e})};var ye=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(ye||{});const wf={[ye.START_SPEAK_AUDIO]:!0,[ye.TOGGLE_AUDIO]:!0,[ye.TOGGLE_VOICE]:!0,[ye.TOGGLE_NOTIFICATIONS]:!0,[ye.TOGGLE_CHAT_WINDOW]:!0,[ye.PRE_INJECT_MESSAGE]:!0,[ye.POST_INJECT_MESSAGE]:!1,[ye.PRE_LOAD_CHATBOT]:!0,[ye.POST_LOAD_CHATBOT]:!1,[ye.START_SIMULATE_STREAM_MESSAGE]:!0,[ye.STOP_SIMULATE_STREAM_MESSAGE]:!1,[ye.START_STREAM_MESSAGE]:!0,[ye.CHUNK_STREAM_MESSAGE]:!0,[ye.STOP_STREAM_MESSAGE]:!0,[ye.REMOVE_MESSAGE]:!0,[ye.LOAD_CHAT_HISTORY]:!0,[ye.CHANGE_PATH]:!0,[ye.SHOW_TOAST]:!0,[ye.DISMISS_TOAST]:!0,[ye.USER_SUBMIT_TEXT]:!0,[ye.USER_UPLOAD_FILE]:!0,[ye.TEXT_AREA_CHANGE_VALUE]:!0,[ye.PRE_PROCESS_BLOCK]:!0,[ye.POST_PROCESS_BLOCK]:!0},Hl=async(e,n,a)=>{const i=new CustomEvent(e,{detail:n,cancelable:wf[e]});return i.data=a,i.promises=[],window.dispatchEvent(i),await Promise.all(i.promises),i},qu=R.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Ci=()=>R.useContext(qu),xf=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(qu.Provider,{value:{paths:n,setSyncedPaths:a,syncedPathsRef:i},children:e})},Vn=()=>{const{botIdRef:e}=xt(),{syncedPathsRef:n}=Ci(),a=R.useCallback(()=>n.current.length>0?n.current.at(-1)??null:null,[]),i=R.useCallback(()=>n.current.length>1?n.current.at(-2)??null:null,[]);return{dispatchRcbEvent:R.useCallback(async(o,c)=>{const u={botId:e.current,currPath:a(),prevPath:i()};return await Hl(o,u,c)},[e])}},wn=()=>{const{settings:e}=Fe(),{isChatWindowOpen:n,setSyncedIsChatWindowOpen:a,viewportHeight:i,setViewportHeight:o,viewportWidth:c,setViewportWidth:u,setUnreadCount:d,setSyncedIsBotTyping:A,setSyncedIsScrolling:p,syncedIsBotTypingRef:h,syncedIsChatWindowOpenRef:m}=Et(),{chatBodyRef:y}=xt(),{dispatchRcbEvent:C}=Vn(),D=R.useCallback(()=>{if(!y.current)return!1;const B=y.current.getBoundingClientRect(),U=window.innerHeight??document.documentElement.clientHeight,j=window.innerWidth??document.documentElement.clientWidth;return B.top>=0&&B.left>=0&&B.bottom<=U&&B.right<=j},[y]),Q=R.useCallback(async B=>{var U;B!==m.current&&((U=e.event)!=null&&U.rcbToggleChatWindow&&(await C(ye.TOGGLE_CHAT_WINDOW,{currState:m.current,newState:!m.current})).defaultPrevented||a(j=>(j||d(0),!j)))},[m]),E=R.useCallback(async B=>{B!==h.current&&A(U=>!U)},[h]),I=R.useCallback((B,U,j,z)=>(B/=z/2)<1?j/2*B*B+U:-j/2*(--B*(B-2)-1)+U,[]),_=R.useCallback((B=0)=>{if(!y.current)return;const U=y.current.scrollHeight-y.current.clientHeight;if(B<=0)return y.current.scrollTop=U,void p(!1);const j=y.current.scrollTop,z=U-j;let W=0;const te=()=>{if(!y.current)return;W+=20;const J=I(W,j,z,B);y.current.scrollTop=J,W<B?requestAnimationFrame(te):p(!1)};te()},[y]);return{isChatWindowOpen:n,setSyncedIsChatWindowOpen:a,toggleChatWindow:Q,viewportHeight:i,setViewportHeight:o,viewportWidth:c,setViewportWidth:u,toggleIsBotTyping:E,scrollToBottom:_,getIsChatBotVisible:D}},Sf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{unreadCount:c,isScrolling:u}=Et(),{chatBodyRef:d}=xt(),{scrollToBottom:A}=wn(),[p,h]=R.useState(!1),m={color:(e=i.general)==null?void 0:e.primaryColor,borderColor:(n=i.general)==null?void 0:n.primaryColor,...o.chatMessagePromptHoveredStyle};return N.jsx("div",{className:"rcb-message-prompt-container "+(d.current&&((y=i.chatWindow)!=null&&y.showMessagePrompt)&&u&&c>0?"visible":"hidden"),children:N.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:p?m:{...o.chatMessagePromptStyle},onMouseDown:C=>{C.preventDefault(),A(600)},className:"rcb-message-prompt-text",children:(a=i.chatWindow)==null?void 0:a.messagePromptText})});var y},eA=R.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Nl=()=>R.useContext(eA),Ef=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(eA.Provider,{value:{messages:n,setSyncedMessages:a,syncedMessagesRef:i},children:e})},kf=({message:e,isNewSender:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h=typeof e.content=="string",m=e.content,y=e.contentWrapper?N.jsx(e.contentWrapper,{children:m}):m,C={backgroundColor:(a=A.general)==null?void 0:a.primaryColor,color:"#fff",maxWidth:(i=A.userBubble)!=null&&i.showAvatar?"65%":"70%",...p.userBubbleStyle},D=(o=A.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",Q=((c=A.userBubble)==null?void 0:c.showAvatar)&&n,E="rcb-user-message"+(!n&&(u=A.userBubble)!=null&&u.showAvatar?" rcb-user-message-offset":"");return N.jsxs("div",{className:"rcb-user-message-container",children:[h?N.jsx("div",{style:C,className:`${E} ${D}`,children:y}):N.jsx(N.Fragment,{children:y}),Q&&N.jsx("div",{style:{backgroundImage:`url("${(d=A.userBubble)==null?void 0:d.avatar}")`},className:"rcb-message-user-avatar"})]})},Cf=({message:e,isNewSender:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),h=typeof e.content=="string",m=e.content,y=e.contentWrapper?N.jsx(e.contentWrapper,{children:m}):m,C={backgroundColor:(a=A.general)==null?void 0:a.secondaryColor,color:"#fff",maxWidth:(i=A.botBubble)!=null&&i.showAvatar?"65%":"70%",...p.botBubbleStyle},D=(o=A.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",Q=((c=A.botBubble)==null?void 0:c.showAvatar)&&n,E="rcb-bot-message"+(!n&&(u=A.botBubble)!=null&&u.showAvatar?" rcb-bot-message-offset":"");return N.jsxs("div",{className:"rcb-bot-message-container",children:[Q&&N.jsx("div",{style:{backgroundImage:`url("${(d=A.botBubble)==null?void 0:d.avatar}")`},className:"rcb-message-bot-avatar"}),h?N.jsx("div",{style:C,className:`${E} ${D}`,children:y}):N.jsx(N.Fragment,{children:y})]})},Pf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),c=(e=i.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return N.jsxs("div",{className:"rcb-bot-message-container",children:[((n=i.botBubble)==null?void 0:n.showAvatar)&&N.jsx("div",{style:{backgroundImage:`url("${(a=i.botBubble)==null?void 0:a.avatar}")`},className:"rcb-message-bot-avatar"}),N.jsx("div",{onMouseDown:u=>{u.preventDefault()},className:`rcb-bot-message ${c}`,children:N.jsxs("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),N.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Tf=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{messages:c}=Nl(),{scrollToBottom:u}=wn(),{isBotTyping:d,syncedIsScrollingRef:A}=Et(),{chatBodyRef:p}=xt(),h={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=i.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return R.useEffect(()=>{A.current||u()},[(n=p.current)==null?void 0:n.scrollHeight]),N.jsxs("div",{style:h,className:"rcb-chat-body-container",ref:p,children:[c.map((m,y)=>{const C=(D=>D===0||c[D].sender!==c[D-1].sender)(y);return m.sender.toUpperCase()==="USER"?N.jsx(kf,{message:m,isNewSender:C},y):m.sender.toUpperCase()==="BOT"?N.jsx(Cf,{message:m,isNewSender:C},y):N.jsx("div",{children:m.content},y)}),d&&((a=i.chatWindow)==null?void 0:a.showTypingIndicator)&&N.jsx(Pf,{}),N.jsx(Sf,{})]})},Df=({checkboxes:e,checkedItems:n,path:a})=>{var i,o,c,u,d,A,p,h,m,y,C;const{settings:D}=Fe(),{styles:Q}=Ze(),{paths:E}=Ci(),{handleSubmitText:I}=ba(),[_,B]=R.useState(new Set),[U,j]=R.useState(!1),z={cursor:U?`url("${(i=D.general)==null?void 0:i.actionDisabledIcon}"), auto`:"pointer",color:(o=D.general)==null?void 0:o.primaryColor,borderColor:(c=D.general)==null?void 0:c.primaryColor,...Q.botCheckboxRowStyle},W={cursor:U||_.size<e.min?`url("${(u=D.general)==null?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:(d=D.general)==null?void 0:d.primaryColor,borderColor:(A=D.general)==null?void 0:A.primaryColor,...Q.botCheckboxNextStyle},te={cursor:U?`url("${(p=D.general)==null?void 0:p.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...Q.botCheckMarkStyle},J={cursor:U?`url("${(h=D.general)==null?void 0:h.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(m=D.general)==null?void 0:m.primaryColor,backgroundColor:(y=D.general)==null?void 0:y.primaryColor,...Q.botCheckMarkSelectedStyle};return R.useEffect(()=>{E.length>0&&E[E.length-1]!==a&&j(!e.reusable)},[E]),N.jsxs("div",{className:"rcb-checkbox-container "+((C=D.botBubble)!=null&&C.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(Y=>N.jsx("div",{onMouseDown:ee=>{ee.preventDefault(),(Z=>{U||B(ie=>{const ue=new Set(ie);if(ue.has(Z))n.delete(Z),ue.delete(Z);else{if(_.size==e.max)return ie;n.add(Z),ue.add(Z)}return ue})})(Y)},style:z,className:"rcb-checkbox-row-container",children:N.jsxs("div",{className:"rcb-checkbox-row",children:[N.jsx("div",{style:_.has(Y)?J:te,className:"rcb-checkbox-mark"}),N.jsx("div",{className:"rcb-checkbox-label",children:Y})]})},Y)),N.jsx("div",{style:W,className:"rcb-checkbox-next-button",onMouseDown:Y=>{var ee;if(Y.preventDefault(),U||_.size<e.min)return;const Z=Array.from(n).join(", ");let ie;j(!e.reusable),ie=e.sendOutput!=null?e.sendOutput:((ee=D.chatInput)==null?void 0:ee.sendCheckboxOutput)??!0,I(Z,ie)}})]})},If=async(e,n)=>{const a=e.checkboxes;if(!a)return;let i;if(typeof a=="function"?(i=a(n),i instanceof Promise&&(i=await i)):i=a,Array.isArray(i)&&(i={items:i}),!("items"in i)||i.items.length==0)return;i.min==null&&(i.min=1),i.max==null&&(i.max=i.items.length),i.min>i.max&&(i.min=i.max),i.reusable==null&&(i.reusable=!1);const o=new Set,c=n.currPath,u=N.jsx(Df,{checkboxes:i,checkedItems:o,path:c});await n.injectMessage(u)},Bf=async(e,n)=>{const a=e.function;if(!a)return;const i=a(n);return i instanceof Promise?await i:i},Mf=async(e,n,a)=>{const i=e.message;if(!i)return;if(typeof i=="string")return void(i.trim()!==""&&(a?await n.simulateStreamMessage(i):await n.injectMessage(i)));let o=i(n);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(a?await n.simulateStreamMessage(o):await n.injectMessage(o))},Rf=({options:e,path:n})=>{var a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),{paths:h}=Ci(),{handleSubmitText:m}=ba(),[y,C]=R.useState([]),[D,Q]=R.useState(!1),E={cursor:D?`url("${(a=A.general)==null?void 0:a.actionDisabledIcon}"), auto`:"pointer",color:(i=A.general)==null?void 0:i.primaryColor,borderColor:(o=A.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...p.botOptionStyle},I={color:"#fff",borderColor:(c=A.general)==null?void 0:c.primaryColor,backgroundColor:(u=A.general)==null?void 0:u.primaryColor,...p.botOptionHoveredStyle};return R.useEffect(()=>{h.length>0&&h[h.length-1]!==n&&Q(!e.reusable)},[h]),N.jsx("div",{className:"rcb-options-container "+((d=A.botBubble)!=null&&d.showAvatar?"rcb-options-offset":""),children:e.items.map((_,B)=>{const U=y[B]&&!D;return N.jsx("div",{className:"rcb-options",style:U?I:E,onMouseEnter:()=>(j=>{C(z=>{const W=[...z];return W[j]=!0,W})})(B),onMouseLeave:()=>(j=>{C(z=>{const W=[...z];return W[j]=!1,W})})(B),onMouseDown:j=>{var z;if(j.preventDefault(),D)return;let W;Q(!e.reusable),W=e.sendOutput!=null?e.sendOutput:((z=A.chatInput)==null?void 0:z.sendOptionOutput)??!0,m(_,W)},children:_},_)})})},Of=async(e,n)=>{const a=e.options;if(!a)return;let i;if(typeof a=="function"?(i=a(n),i instanceof Promise&&(i=await i)):i=a,Array.isArray(i)&&(i={items:i}),!("items"in i)||i.items.length==0)return;i.reusable==null&&(i.reusable=!1);const o=n.currPath,c=N.jsx(Rf,{options:i,path:o});await n.injectMessage(c)},Ff=async(e,n)=>{const a=e.component;if(a){if(typeof a=="function"){let i=a(n);return i instanceof Promise&&(i=await i),i?void await n.injectMessage(i):void 0}await n.injectMessage(a)}},Lf=async(e,n,a,i)=>{const o=e.transition;let c;if(typeof o=="function"?(c=o(n),c instanceof Promise&&(c=await c)):c=o,typeof c=="number"&&(c={duration:c}),!c||c instanceof Promise||c.duration==null||typeof c.duration!="number")return;c.interruptable==null&&(c.interruptable=!1);const u=setTimeout(async()=>{const d=await i(e);d&&await nA(d,n)},c.duration);c.interruptable&&(a.current=u)},Qf=async(e,n,a)=>{const i=e.chatDisabled;if(i==null)return;let o;typeof i=="function"?(o=i(n),o instanceof Promise&&(o=await o)):o=i,a(o)},tA=async(e,n,a)=>{const i=e.isSensitive;if(!i)return void a(!1);let o;typeof i=="function"?(o=i(n),o instanceof Promise&&(o=await o)):o=i,a(o)},nA=async(e,n)=>{if(!e)throw new Error("Block is not valid.");const a=Object.keys(e);for(const i of a)i==="function"&&await Bf(e,n);a.includes("path")&&await(async(i,o)=>{const c=i.path;if(!c)return!1;if(typeof c=="string")return await o.goToPath(c),!0;let u=c(o);if(u instanceof Promise&&(u=await u),!u)return!1;const d=u;return await o.goToPath(d),!0})(e,n)},_f=()=>{var e;const{settings:n}=Fe(),{styles:a}=Ze();return N.jsx("div",{className:"rcb-line-break-container",children:N.jsx("div",{style:{...a.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(e=n.chatHistory)==null?void 0:e.chatHistoryLineBreakText})})},Hf=()=>{var e;const{settings:n}=Fe(),{styles:a}=Ze(),i={borderTop:`4px solid ${(e=n.general)==null?void 0:e.primaryColor}`,...a.loadingSpinnerStyle};return N.jsx("div",{className:"rcb-spinner-container",children:N.jsx("div",{style:i,className:"rcb-spinner"})})},Is=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const a=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(n==="x"?a:3&a|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},Jr=(e,n)=>({id:Is(),content:e,sender:n,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let Kr,rA=!1,Bs="rcb-history",Ms=30,oA=!1,Pi=[];const Ul=async e=>{if(oA||!Kr)return;const n=[],a=rA?Pi.length:0;for(let o=e.length-1;o>=a;o--){const c=e[o];if(c.sender.toUpperCase()!=="SYSTEM"&&(c.content!==""&&n.unshift(c),n.length===Ms))break}let i=n.map(Uf);if(i.length<Ms){const o=Ms-i.length;i=[...Pi.slice(-o),...i]}aA(i)},zl=()=>Pi,Nf=e=>{aA(e),Pi=e},aA=e=>{Kr&&Kr.setItem(Bs,JSON.stringify(e))},jl=e=>{var n,a,i,o,c;Kr=((a=(n=e.chatHistory)==null?void 0:n.storageType)==null?void 0:a.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,Bs=(i=e.chatHistory)==null?void 0:i.storageKey,Ms=(o=e.chatHistory)==null?void 0:o.maxEntries,oA=(c=e.chatHistory)==null?void 0:c.disabled,Pi=(u=>{if(u!=null)try{return JSON.parse(u)}catch{return[]}return[]})(Kr.getItem(Bs))},Uf=e=>R.isValidElement(e.content)?structuredClone({id:e.id,content:Io.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,iA=(e,n,a)=>{const i=new DOMParser().parseFromString(e,"text/html");return Array.from(i.body.childNodes).map((o,c)=>{var u;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const d=o.tagName.toLowerCase();let A=Array.from(o.attributes).reduce((p,h)=>{const m=h.name.toLowerCase();if(m==="style"){const y=h.value.split(";").filter(D=>D.trim()!==""),C={};y.forEach(D=>{const[Q,E]=D.split(":").map(_=>_.trim()),I=Q.replace(/-([a-z])/g,(_,B)=>B.toUpperCase());C[I]=E}),p[m]=C}else d!=="audio"&&d!=="video"||m!=="controls"||h.value!==""?p[m]=h.value:p[m]="true";return p},{});if(Object.prototype.hasOwnProperty.call(A,"class")){const p=o.classList;A.className=p.toString(),delete A.class,(u=n.botBubble)!=null&&u.showAvatar&&(A=zf(p,A)),A=jf(p,A,n,a),A=Wf(p,A,n,a),A=Yf(p,A,n,a),A=Gf(p,A,n,a)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(d))return R.createElement(d,{key:c,...A});{const p=iA(o.innerHTML,n,a);return R.createElement(d,{key:c,...A},...p)}}})},zf=(e,n)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(n.className=`${e.toString()} rcb-options-offset`),n),jf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-options")&&(n.style={...n.style,color:((o=i.botOptionStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botOptionStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botOptionStyle}),n},Wf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-checkbox-row-container")&&(n.style={...n.style,color:((o=i.botCheckboxRowStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botCheckboxRowStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botCheckboxRowStyle}),n},Yf=(e,n,a,i)=>{var o,c,u,d,A;return e.contains("rcb-checkbox-next-button")&&(n.style={...n.style,color:((o=i.botCheckboxNextStyle)==null?void 0:o.color)??((c=a.general)==null?void 0:c.primaryColor),borderColor:((u=i.botCheckboxNextStyle)==null?void 0:u.color)??((d=a.general)==null?void 0:d.primaryColor),cursor:`url("${(A=a.general)==null?void 0:A.actionDisabledIcon}"), auto`,...i.botCheckboxNextStyle}),n},Gf=(e,n,a,i)=>{var o,c;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(n.style={...n.style,backgroundColor:(o=a.general)==null?void 0:o.primaryColor,maxWidth:(c=a.userBubble)!=null&&c.showAvatar?"65%":"70%",...i.mediaDisplayContainerStyle}),n},Wl=()=>{const{settings:e}=Fe(),{notificationsToggledOn:n,setSyncedNotificationsToggledOn:a,hasInteractedPage:i,unreadCount:o,setUnreadCount:c,syncedNotificationsToggledOnRef:u}=Et(),{audioBufferRef:d,audioContextRef:A,gainNodeRef:p}=xt(),{dispatchRcbEvent:h}=Vn(),m=R.useCallback(async()=>{var C,D;const Q=(C=e.notification)==null?void 0:C.sound;A.current=new AudioContext;const E=A.current.createGain();let I;if(E.gain.value=((D=e.notification)==null?void 0:D.volume)??.2,p.current=E,Q!=null&&Q.startsWith("data:audio")){const _=atob(Q.split(",")[1]),B=new ArrayBuffer(_.length),U=new Uint8Array(B);for(let j=0;j<_.length;j++)U[j]=_.charCodeAt(j);I=B}else I=await(await fetch(Q)).arrayBuffer();d.current=await A.current.decodeAudioData(I)},[e.notification]),y=R.useCallback(()=>{var C;if((C=e.notification)!=null&&C.disabled||!u.current||!i||!A.current||!d.current)return;const D=A.current.createBufferSource();D.buffer=d.current,D.connect(p.current).connect(A.current.destination),D.start()},[e.notification,u,i,A,d,p]);return{unreadCount:o,setUnreadCount:c,notificationsToggledOn:n,toggleNotifications:R.useCallback(async C=>{var D;C!==u.current&&((D=e.event)!=null&&D.rcbToggleNotifications&&(await h(ye.TOGGLE_NOTIFICATIONS,{currState:u.current,newState:!u.current})).defaultPrevented||a(Q=>!Q))},[u]),playNotificationSound:y,setUpNotifications:m}},Vf=(e,n)=>{var a,i,o,c;((u,d,A,p,h)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const m=new window.SpeechSynthesisUtterance;m.text=u,m.lang=d,m.rate=p,m.volume=h;let y=!1;for(const C of A)if(window.speechSynthesis.getVoices().find(D=>{if(D.name===C)return m.voice=D,window.speechSynthesis.speak(m),void(y=!0)}),y)break;y||window.speechSynthesis.speak(m)})(n,(a=e.audio)==null?void 0:a.language,(i=e.audio)==null?void 0:i.voiceNames,(o=e.audio)==null?void 0:o.rate,(c=e.audio)==null?void 0:c.volume)},sA=()=>{const{settings:e}=Fe(),{audioToggledOn:n,setSyncedAudioToggledOn:a,syncedAudioToggledOnRef:i}=Et(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async d=>{var A;d!==i.current&&((A=e.event)!=null&&A.rcbToggleAudio&&(await o(ye.TOGGLE_AUDIO,{currState:i.current,newState:!i.current})).defaultPrevented||a(p=>!p))},[i]),u=R.useCallback(async d=>{var A,p;if((A=e.audio)!=null&&A.disabled||!i.current)return;let h=d;if((p=e.event)!=null&&p.rcbStartSpeakAudio){const m=await o(ye.START_SPEAK_AUDIO,{textToRead:h});if(m.defaultPrevented)return;h=m.data.textToRead}Vf(e,h)},[e,i]);return{audioToggledOn:n,speakAudio:u,toggleAudio:c}},Oo=()=>{var e,n;const{settings:a}=Fe(),{messages:i,setSyncedMessages:o,syncedMessagesRef:c}=Nl(),{setSyncedIsBotTyping:u,setUnreadCount:d,syncedIsScrollingRef:A,syncedIsChatWindowOpenRef:p}=Et(),{streamMessageMap:h,chatBodyRef:m,paramsInputRef:y}=xt(),{scrollToBottom:C,getIsChatBotVisible:D}=wn(),{dispatchRcbEvent:Q}=Vn(),{speakAudio:E}=sA(),{playNotificationSound:I}=Wl(),_=R.useCallback((J,Y=!1)=>{var ee,Z;Ul(J);let ie=!0;const ue=J[J.length-1];if(!ue)return;const se=ue.sender.toUpperCase();se==="USER"&&(ie=!1),(ee=a.general)!=null&&ee.embedded&&D()&&(ie=!1),(p.current&&!A.current||Y)&&(ie=!1),ie&&I(),!Y&&(se!=="USER"&&(Z=a.chatWindow)!=null&&Z.autoJumpToBottom||se==="USER"||!A.current)&&setTimeout(()=>C(),1)},[a,m,p,A,I,C,D]),B=R.useCallback(async(J,Y="BOT",ee=null)=>{var Z,ie,ue,se,xe;if(typeof J!="string")throw new Error("Content must be of type string to simulate stream.");Y=Y.toUpperCase();let ge=Jr(J,Y);if((Z=a.event)!=null&&Z.rcbStartSimulateStreamMessage){const he=await Q(ye.START_SIMULATE_STREAM_MESSAGE,{message:ge});if(he.defaultPrevented)return null;ee=he.data.simulateStreamChunker||ee,ge=he.data.message}u(!1);let me=30;me=Y==="BOT"?(ie=a.botBubble)==null?void 0:ie.streamSpeed:(ue=a.userBubble)==null?void 0:ue.streamSpeed;const M={...ge,content:""};o(he=>[...he,M]),_(c.current);let fe=ge.content;ee&&(fe=ee(fe));let O=0;const de=fe.length;ge.sender.toUpperCase()==="BOT"&&(p.current||(se=a.general)!=null&&se.embedded)&&typeof ge.content=="string"&&ge.content.trim()!==""&&E(ge.content);const Ee=new Promise(he=>{const ve=setInterval(()=>{if(O>=de)return clearInterval(ve),void he();o(Te=>{const Qe=[...Te];for(let tt=Qe.length-1;tt>=0;tt--)if(Qe[tt].id===M.id){const Le=fe[O];Le&&(M.content+=Le,Qe[tt]=M),O++;break}return Qe})},me)});return(A.current||!p.current)&&d(he=>he+1),await Ee,Ul(c.current),(xe=a.event)!=null&&xe.rcbStopSimulateStreamMessage&&await Q(ye.STOP_SIMULATE_STREAM_MESSAGE,{message:ge}),Y==="USER"&&(y.current=J),ge},[a,Q,_,c,y,u,d,p,E]),U=R.useCallback(async(J,Y="BOT")=>{var ee,Z,ie;Y=Y.toUpperCase();let ue=Jr(J,Y);if((ee=a.event)!=null&&ee.rcbPreInjectMessage){const se=await Q(ye.PRE_INJECT_MESSAGE,{message:ue});if(se.defaultPrevented)return null;ue=se.data.message}return ue.sender.toUpperCase()==="BOT"&&(p.current||(Z=a.general)!=null&&Z.embedded)&&typeof ue.content=="string"&&ue.content.trim()!==""&&E(ue.content),(A.current||!p.current)&&d(se=>se+1),(ie=a.event)!=null&&ie.rcbPostInjectMessage&&await Q(ye.POST_INJECT_MESSAGE,{message:ue}),o(se=>[...se,ue]),_(c.current),Y==="USER"&&typeof J=="string"&&(y.current=J),ue},[a,Q,_,y,c,p,E,d]),j=R.useCallback(async J=>{var Y;const ee=c.current.find(Z=>Z.id===J);return!ee||(Y=a.event)!=null&&Y.rcbRemoveMessage&&(await Q(ye.REMOVE_MESSAGE,{message:ee})).defaultPrevented?null:(o(Z=>Z.filter(ie=>ie.id!==J)),_(c.current),d(Z=>Math.max(Z-1,0)),ee)},[Q,(e=a.event)==null?void 0:e.rcbRemoveMessage,_,c,d]),z=R.useCallback(async(J,Y="BOT")=>{var ee,Z;if(Y=Y.toUpperCase(),!h.current.has(Y)){const ue=Jr(J,Y);return(ee=a.event)!=null&&ee.rcbStartStreamMessage&&(await Q(ye.START_STREAM_MESSAGE,{message:ue})).defaultPrevented?null:(u(!1),o(se=>[...se,ue]),_(c.current),h.current.set(Y,ue.id),(A.current||!p.current)&&d(se=>se+1),ue)}const ie={...Jr(J,Y),id:h.current.get(Y)};return(Z=a.event)!=null&&Z.rcbChunkStreamMessage&&(await Q(ye.CHUNK_STREAM_MESSAGE,{message:ie})).defaultPrevented?null:(o(ue=>ue.map(se=>se.id===ie.id?ie:se)),_(c.current,!0),ie)},[Q,a.event,_,c,u,d,h]),W=R.useCallback(async(J="BOT")=>{var Y;if(J=J.toUpperCase(),!h.current.has(J))return!0;const ee=h.current.get(J);let Z;for(let ie=0;ie<3;ie++){const ue=c.current.find(se=>se.id===ee);ue&&(Z=ue),await new Promise(se=>setTimeout(se,20))}return((Y=a.event)==null||!Y.rcbStopStreamMessage||!(await Q(ye.STOP_STREAM_MESSAGE,{message:Z})).defaultPrevented)&&(h.current.delete(J),Ul(c.current),J==="USER"&&typeof(Z==null?void 0:Z.content)=="string"&&(y.current=Z.content),!0)},[Q,(n=a.event)==null?void 0:n.rcbStopStreamMessage,h,y]),te=R.useCallback(J=>{const Y=typeof J=="function"?J(c.current):J;o(Y),_(Y)},[_,c]);return{simulateStreamMessage:B,injectMessage:U,removeMessage:j,streamMessage:z,endStreamMessage:W,replaceMessages:te,messages:i}};let Yl,sr,Rs,$r=!1,lr=null;const Gl=()=>{if(!Yl){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Yl=e!=null?new e:null}return Yl},Xf=(e,n,a,i,o,c)=>{var u,d,A;const p=Gl();if(!p)return;if(!$r)try{$r=!0,p.lang=(u=e.voice)==null?void 0:u.language,p.start()}catch{}const h=(d=e.voice)==null?void 0:d.timeoutPeriod,m=(A=e.voice)==null?void 0:A.autoSendPeriod;p.onresult=y=>{var C,D;clearTimeout(sr),sr=null,clearTimeout(Rs);const Q=y.results[y.results.length-1][0].transcript;if(c.current){const E=(C=e.chatInput)==null?void 0:C.characterLimit,I=c.current.value+Q;E!=null&&E>=0&&I.length>E?i(I.slice(0,E)):i(I),o(c.current.value.length)}h&&(sr=setTimeout(async()=>await Xl(n,c),h)),(D=e.voice)!=null&&D.autoSendDisabled||(Rs=setTimeout(a,m))},p.onend=()=>{$r?(p.start(),!sr&&h&&(sr=setTimeout(async()=>await Xl(n,c),h))):(clearTimeout(sr),sr=null,clearTimeout(Rs))},h&&(sr=setTimeout(async()=>await Xl(n,c),h))},Jf=(e,n)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(a=>{if(lr=new MediaRecorder(a),!$r)try{$r=!0,lr.start()}catch{}lr.ondataavailable=i=>{n.current&&n.current.push(i.data)},lr.onstop=()=>{e(),a.getTracks().forEach(i=>i.stop())}}).catch(a=>{console.error("Unable to use microphone:",a)})},Vl=()=>{const e=Gl();e&&($r=!1,e&&e.stop(),lr&&lr.state!=="inactive"&&(lr.stop(),lr=null),clearTimeout(sr),sr=null,clearTimeout(Rs))},Xl=async(e,n)=>{var a;(a=n.current)!=null&&a.disabled||await e(),Vl()},Jl=()=>{const{settings:e}=Fe(),{voiceToggledOn:n,setSyncedVoiceToggledOn:a,syncedVoiceToggledOnRef:i}=Et(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async d=>{var A;d!==i.current&&((A=e.event)!=null&&A.rcbToggleVoice&&(await o(ye.TOGGLE_VOICE,{currState:i.current,newState:!i.current})).defaultPrevented||a(p=>!p))},[i]),u=R.useCallback(d=>{((A,p)=>{var h,m,y;const C=Gl();(h=p.voice)!=null&&h.disabled||(m=p.chatInput)==null||!m.blockSpam||!C||(A&&!$r?($r=!0,(y=p.voice)!=null&&y.sendAsAudio?lr==null||lr.start():C.start()):A||Vl())})(d,e)},[e]);return{voiceToggledOn:n,toggleVoice:c,syncVoice:u}},Fo=()=>{var e;const{settings:n}=Fe(),{inputLength:a,setInputLength:i,textAreaDisabled:o,setSyncedTextAreaDisabled:c,textAreaSensitiveMode:u,setSyncedTextAreaSensitiveMode:d,syncedTextAreaDisabledRef:A,syncedTextAreaSensitiveModeRef:p}=Et(),{inputRef:h,chatBodyRef:m,prevInputRef:y}=xt(),{dispatchRcbEvent:C}=Vn(),{getIsChatBotVisible:D}=wn(),Q=R.useCallback(async z=>{var W,te,J;if(A.current&&h.current)h.current.value="";else if(h.current&&y.current!==null){const Y=(W=n.chatInput)==null?void 0:W.characterLimit,ee=(te=n.chatInput)!=null&&te.allowNewline?z:z.replace(/\n/g," ");if(Y!=null&&Y>=0&&ee.length>Y?h.current.value=ee.slice(0,Y):h.current.value=ee,(J=n.event)!=null&&J.rcbTextAreaChangeValue&&(await C(ye.TEXT_AREA_CHANGE_VALUE,{currValue:h.current.value,prevValue:y.current})).defaultPrevented)return void(h.current.value=y.current);y.current=h.current.value}},[A,h,y,n,C]),E=R.useCallback(z=>{var W;(W=h.current)!=null&&W.disabled||setTimeout(()=>{var te,J,Y;(te=n.general)!=null&&te.embedded?D()&&((J=h.current)==null||J.focus()):z!=="start"&&((Y=h.current)==null||Y.focus())},100)},[h,(e=n.general)==null?void 0:e.embedded,m,D]),I=R.useCallback(()=>{h.current&&h.current.focus()},[]),_=R.useCallback(()=>{h.current&&h.current.blur()},[]),B=R.useCallback(()=>h&&h.current?h.current.value:"",[]),U=R.useCallback(z=>{z!==A.current&&c(W=>!W)},[A]),j=R.useCallback(z=>{z!==p.current&&d(W=>!W)},[p]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:c,textAreaSensitiveMode:u,setSyncedTextAreaSensitiveMode:d,inputLength:a,setInputLength:i,getTextAreaValue:B,setTextAreaValue:Q,updateTextAreaFocus:E,focusTextArea:I,blurTextArea:_,toggleTextAreaDisabled:U,toggleTextAreaSensitiveMode:j}},lA=R.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),cA=()=>R.useContext(lA),Kf=({children:e})=>{const[n,a,i]=bn([]);return N.jsx(lA.Provider,{value:{toasts:n,setSyncedToasts:a,syncedToastsRef:i},children:e})},ya=()=>{const{settings:e}=Fe(),{toasts:n,setSyncedToasts:a,syncedToastsRef:i}=cA(),{dispatchRcbEvent:o}=Vn(),c=R.useCallback(async(A,p)=>{var h,m,y,C;let D=null;if(i.current.length>=(((h=e.toast)==null?void 0:h.maxCount)??3)){if((m=e.toast)!=null&&m.forbidOnMax)return null;D=Is();let E={id:D,content:A,timeout:p};if((y=e.event)!=null&&y.rcbShowToast){const I=await o(ye.SHOW_TOAST,{toast:E});if(I.defaultPrevented)return null;E=I.data.toast}return a(I=>[...I.slice(1),E]),D}D=Is();let Q={id:D,content:A,timeout:p};if((C=e.event)!=null&&C.rcbShowToast){const E=await o(ye.SHOW_TOAST,{toast:Q});if(E.defaultPrevented)return null;Q=E.data.toast}return a(E=>[...E,Q]),D},[e,o]),u=R.useCallback(async A=>{var p;const h=i.current.find(m=>m.id===A);return!h||(p=e.event)!=null&&p.rcbDismissToast&&(await o(ye.DISMISS_TOAST,{toast:h})).defaultPrevented?null:(a(m=>m.filter(y=>y.id!==A)),A)},[o]),d=R.useCallback(A=>{const p=typeof A=="function"?A(i.current):A;a(p)},[i]);return{showToast:c,dismissToast:u,toasts:n,replaceToasts:d}},Os=()=>{var e,n,a,i,o;const{settings:c}=Fe(),{paths:u,setSyncedPaths:d,syncedPathsRef:A}=Ci(),{flowRef:p,streamMessageMap:h,paramsInputRef:m,keepVoiceOnRef:y,timeoutIdRef:C}=xt(),{setSyncedIsBotTyping:D,setSyncedTextAreaDisabled:Q,setSyncedTextAreaSensitiveMode:E,blockAllowsAttachment:I,setBlockAllowsAttachment:_}=Et(),{dispatchRcbEvent:B}=Vn(),{endStreamMessage:U,injectMessage:j,removeMessage:z,simulateStreamMessage:W,streamMessage:te}=Oo(),{showToast:J,dismissToast:Y}=ya(),{toggleChatWindow:ee}=wn(),{updateTextAreaFocus:Z,setTextAreaValue:ie}=Fo(),{syncVoice:ue}=Jl(),se=R.useCallback(async O=>{var de;if((de=c.event)!=null&&de.rcbPostProcessBlock){const Ee=await B(ye.POST_PROCESS_BLOCK,{block:O});if(Ee.defaultPrevented)return null;O=Ee.data.block}return O},[(e=c.event)==null?void 0:e.rcbPostProcessBlock,B]),xe=R.useCallback(async(O,de)=>{var Ee,he,ve,Te;if(!O)return;let Qe=p.current[O];if(!Qe)return void D(!1);if((Ee=c.event)!=null&&Ee.rcbPreProcessBlock){const Le=await B(ye.PRE_PROCESS_BLOCK,{block:Qe});if(Le.defaultPrevented)return;Qe=Le.data.block}D(!0),(he=c.chatInput)!=null&&he.blockSpam&&Q(!0),E(!1);const tt={prevPath:de,currPath:O,goToPath:M,setTextAreaValue:ie,userInput:m.current,endStreamMessage:U,injectMessage:j,removeMessage:z,simulateStreamMessage:W,streamMessage:te,toggleChatWindow:ee,showToast:J,dismissToast:Y};await(async(Le,Je,qe,ft,Ne,We,ct)=>{if(!Le)throw new Error("Block is not valid.");for(const ht of Object.keys(Le))switch(ht){case"message":await Mf(Le,Je,qe);break;case"options":await Of(Le,Je);break;case"checkboxes":await If(Le,Je);break;case"component":await Ff(Le,Je);break;case"chatDisabled":await Qf(Le,Je,Ne);break;case"isSensitive":await tA(Le,Je,We);break;case"transition":await Lf(Le,Je,ft,ct)}})(Qe,tt,((ve=c.botBubble)==null?void 0:ve.simulateStream)??!1,C,Q,E,se),D(!1),"chatDisabled"in Qe||Q((Te=c.chatInput)==null?void 0:Te.disabled),"isSensitive"in Qe||E(!1),_(typeof Qe.file=="function"),Z(O),ue(y.current&&!Qe.chatDisabled),O!==de&&h.current.clear()},[p,Z,ue,(n=c.botBubble)==null?void 0:n.simulateStream,(a=c.chatInput)==null?void 0:a.disabled,m,U,j,z,W,te,ee,J,Y,y,h]),ge=R.useCallback(()=>A.current.length>0?A.current.at(-1)??null:null,[]),me=R.useCallback(()=>A.current.length>1?A.current.at(-2)??null:null,[]),M=R.useCallback(async O=>{var de;const Ee=ge(),he=me();return((de=c.event)==null||!de.rcbChangePath||!(await B(ye.CHANGE_PATH,{currPath:Ee,prevPath:he,nextPath:O})).defaultPrevented)&&(d(ve=>[...ve,O]),await xe(O,Ee),!0)},[(i=c.chatInput)==null?void 0:i.blockSpam,(o=c.event)==null?void 0:o.rcbChangePath,xe,B]),fe=R.useCallback(O=>{const de=typeof O=="function"?O(A.current):O;d(de)},[A]);return{getCurrPath:ge,getPrevPath:me,goToPath:M,blockAllowsAttachment:I,setBlockAllowsAttachment:_,paths:u,replacePaths:fe,firePostProcessBlockEvent:se}},ba=()=>{var e,n,a,i;const{settings:o}=Fe(),{endStreamMessage:c,injectMessage:u,removeMessage:d,simulateStreamMessage:A,streamMessage:p}=Oo(),{syncedPathsRef:h}=Ci(),{getCurrPath:m,getPrevPath:y,goToPath:C,firePostProcessBlockEvent:D}=Os(),{setSyncedTextAreaSensitiveMode:Q,setSyncedTextAreaDisabled:E,setSyncedIsBotTyping:I,setBlockAllowsAttachment:_,setInputLength:B,syncedVoiceToggledOnRef:U,syncedTextAreaSensitiveModeRef:j}=Et(),{flowRef:z,inputRef:W,keepVoiceOnRef:te,paramsInputRef:J,timeoutIdRef:Y}=xt(),{showToast:ee,dismissToast:Z}=ya(),{dispatchRcbEvent:ie}=Vn(),{syncVoice:ue}=Jl(),{setTextAreaValue:se}=Fo(),{toggleChatWindow:xe}=wn(),ge=R.useCallback(async M=>{var fe,O,de,Ee,he,ve;const Te=m();if(Te&&z.current[Te]){if(j.current){if((fe=o==null?void 0:o.sensitiveInput)!=null&&fe.hideInUserBubble)return;if((O=o==null?void 0:o.sensitiveInput)!=null&&O.maskInUserBubble)return void((de=o.userBubble)!=null&&de.simulateStream?await A("*".repeat(((Ee=o.sensitiveInput)==null?void 0:Ee.asterisksCount)??10),"USER"):await u("*".repeat(((he=o.sensitiveInput)==null?void 0:he.asterisksCount)??10),"USER"))}(ve=o.userBubble)!=null&&ve.simulateStream?await A(M,"USER"):await u(M,"USER")}},[z,m,o,u,A,j]),me=R.useCallback(async(M,fe=!0)=>{var O,de;if((M=M.trim())==="")return;fe&&await ge(M),Y.current&&clearTimeout(Y.current),W.current&&(se(""),B(0));const Ee=m();if(!Ee)return;let he=z.current[Ee];const ve=await D(he);ve&&((O=o.chatInput)!=null&&O.blockSpam&&E(!0),te.current=U.current,ue(!1),setTimeout(()=>{I(!0)},400),Q(!1),setTimeout(async()=>{var Te;const Qe={prevPath:y(),currPath:m(),goToPath:C,setTextAreaValue:se,userInput:J.current,injectMessage:u,simulateStreamMessage:A,streamMessage:p,removeMessage:d,endStreamMessage:c,toggleChatWindow:xe,showToast:ee,dismissToast:Z},tt=h.current.length;await nA(ve,Qe),h.current.length===tt&&(E("chatDisabled"in he?!!he.chatDisabled:!((Te=o.chatInput)==null||!Te.disabled)),tA(he,Qe,Q),_(typeof he.file=="function"),ue(te.current),I(!1))},(de=o.chatInput)==null?void 0:de.botDelay))},[Y,(e=o.chatInput)==null?void 0:e.blockSpam,(n=o.chatInput)==null?void 0:n.botDelay,(a=o.chatInput)==null?void 0:a.disabled,te,U,ue,ge,y,m,C,u,A,p,d,c,xe,ee,Z,z]);return{handleSubmitText:R.useCallback(async(M,fe=!0)=>{var O,de;M=M??((O=W.current)==null?void 0:O.value),!((de=o.event)!=null&&de.rcbUserSubmitText&&(await ie(ye.USER_SUBMIT_TEXT,{inputText:M,sendInChat:fe})).defaultPrevented||!m())&&me(M,fe)},[ie,m,me,W,(i=o.event)==null?void 0:i.rcbUserSubmitText])}},Fs=()=>{var e;const{settings:n}=Fe();return R.useMemo(()=>{var a;if(typeof window>"u"||!window.navigator)return!1;if((a=n.device)==null||!a.applyMobileOptimizations)return!0;const i=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i),c=window.innerWidth>=768;return o&&c},[(e=n.device)==null?void 0:e.applyMobileOptimizations])},$f=({buttons:e})=>{var n,a,i,o,c,u,d,A,p,h,m;const y=Fs(),{settings:C}=Fe(),{styles:D}=Ze(),{textAreaDisabled:Q,textAreaSensitiveMode:E,inputLength:I,hasFlowStarted:_,setHasFlowStarted:B,setInputLength:U}=Et(),{inputRef:j}=xt(),[z,W]=R.useState(!1),[te,J]=R.useState(!1),{handleSubmitText:Y}=ba(),{setTextAreaValue:ee}=Fo(),Z={boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle},ie={outline:Q?"":"none",boxShadow:Q?"":`0 0 5px ${(n=C.general)==null?void 0:n.primaryColor}`,boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle,...D.chatInputAreaFocusedStyle},ue={cursor:`url("${(a=C.general)==null?void 0:a.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:y?"content-box":"border-box",...D.chatInputAreaStyle,...D.chatInputAreaDisabledStyle},se={color:"#989898",...D.characterLimitStyle},xe={color:"#ff0000",...D.characterLimitReachedStyle},ge=Q?(i=C.chatInput)==null?void 0:i.disabledPlaceholderText:(o=C.chatInput)==null?void 0:o.enabledPlaceholderText,me=()=>{Q||W(!0)},M=()=>{W(!1)},fe=()=>{J(!0)},O=()=>{J(!1)},de=async he=>{var ve;if(!te&&he.key==="Enter"){if(he.shiftKey)return void((ve=C.chatInput)!=null&&ve.allowNewline||he.preventDefault());he.preventDefault(),await Y()}},Ee=he=>{j.current&&(ee(he.target.value),U(j.current.value.length))};return N.jsxs("div",{"aria-label":((c=C.ariaLabel)==null?void 0:c.inputTextArea)??"input text area",role:"textbox",onMouseDown:he=>{var ve;he.stopPropagation(),!_&&((ve=C.general)==null?void 0:ve.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&B(!0)},style:{...D.chatInputContainerStyle},className:"rcb-chat-input",children:[E&&(u=C.sensitiveInput)!=null&&u.maskInTextArea?N.jsx("input",{ref:j,type:"password",className:"rcb-chat-input-textarea",style:Q?ue:z?ie:Z,placeholder:ge,onChange:Ee,onKeyDown:de,onFocus:me,onBlur:M,onCompositionStart:fe,onCompositionEnd:O}):N.jsx("textarea",{ref:j,style:Q?ue:z?ie:Z,rows:1,className:"rcb-chat-input-textarea",placeholder:ge,onChange:Ee,onKeyDown:de,onFocus:me,onBlur:M,onCompositionStart:fe,onCompositionEnd:O}),N.jsxs(N.Fragment,{children:[e==null?void 0:e.map((he,ve)=>N.jsx(R.Fragment,{children:he},ve)),((d=C.chatInput)==null?void 0:d.showCharacterCount)&&((A=C.chatInput)==null?void 0:A.characterLimit)!=null&&((p=C.chatInput)==null?void 0:p.characterLimit)>0&&N.jsxs("div",{className:"rcb-chat-input-char-counter",style:I>=((h=C.chatInput)==null?void 0:h.characterLimit)?xe:se,children:[I,"/",(m=C.chatInput)==null?void 0:m.characterLimit]})]})]})},Zf=({buttons:e})=>{var n;const{settings:a}=Fe(),{styles:i}=Ze();return N.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...i.footerStyle},className:"rcb-chat-footer-container",children:[N.jsx("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,c)=>N.jsx(R.Fragment,{children:o},c))}),N.jsx("span",{children:(n=a.footer)==null?void 0:n.text})]})},qf=()=>{var e,n,a,i,o,c,u;const{settings:d}=Fe(),{styles:A}=Ze(),{unreadCount:p}=Et(),{isChatWindowOpen:h,toggleChatWindow:m}=wn(),[y,C]=R.useState(!1),D={backgroundImage:`linear-gradient(to right, ${(e=d.general)==null?void 0:e.secondaryColor},
|
|
107
|
+
${(n=d.general)==null?void 0:n.primaryColor})`,...A.chatButtonStyle},Q={transform:"scale(1.05)",...A.chatButtonStyle,...A.chatButtonHoveredStyle},E={backgroundImage:`url(${(a=d.chatButton)==null?void 0:a.icon})`,fill:"#fff",width:75,height:75,...A.chatIconStyle};return N.jsx(N.Fragment,{children:!((i=d.general)!=null&&i.embedded)&&N.jsxs("div",{"aria-label":((o=d.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:y?Q:D,className:"rcb-toggle-button "+(h?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},onClick:()=>m(!0),children:[(()=>{var I;const _=(I=d.chatButton)==null?void 0:I.icon;return _&&typeof _!="string"?_&&N.jsx("span",{className:"rcb-toggle-icon",children:N.jsx(_,{style:E})}):N.jsx("span",{className:"rcb-toggle-icon",style:E})})(),!((c=d.notification)!=null&&c.disabled)&&((u=d.notification)==null?void 0:u.showCount)&&N.jsx("span",{style:{...A.notificationBadgeStyle},className:"rcb-badge",children:p})]})})},ep=()=>{var e,n,a,i;const o=Fs(),{settings:c}=Fe(),{styles:u}=Ze(),{chatBodyRef:d}=xt(),{isChatWindowOpen:A,toggleChatWindow:p}=wn(),[h,m]=R.useState(!1),[y,C]=R.useState(!1),[D,Q]=R.useState(0);R.useEffect(()=>{var _,B,U;const j=(_=c.tooltip)==null?void 0:_.mode;if(j==="ALWAYS")if(o){let z;z=A?(((B=d.current)==null?void 0:B.offsetWidth)??375)-(typeof((U=u.chatButtonStyle)==null?void 0:U.width)=="number"?u.chatButtonStyle.width:75):0,Q(z),m(!0)}else m(!A);else j==="NEVER"?m(!1):j==="START"?y?m(!1):(C(!0),m(!0)):j==="CLOSE"&&m(!A)},[A]);const E={transform:`translateX(-${D}px)`,right:(((e=u.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(n=c.general)==null?void 0:n.secondaryColor,color:"#fff",...u.tooltipStyle},I={borderColor:`transparent transparent transparent ${E.backgroundColor}`};return N.jsx(N.Fragment,{children:!((a=c.general)!=null&&a.embedded)&&N.jsxs("div",{"data-testid":"chat-tooltip",style:E,className:"rcb-chat-tooltip "+(h?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>p(!0),children:[N.jsx("span",{children:(i=c.tooltip)==null?void 0:i.text}),N.jsx("span",{className:"rcb-chat-tooltip-tail",style:I})]})})},tp=({id:e,content:n,timeout:a})=>{var i,o;const{settings:c}=Fe(),{styles:u}=Ze(),[d]=R.useState({toastPromptStyle:{...u.toastPromptStyle},toastPromptHoveredStyle:{...u.toastPromptHoveredStyle}}),{dismissToast:A}=ya(),[p,h]=R.useState(!1),m={color:(i=c.general)==null?void 0:i.primaryColor,borderColor:(o=c.general)==null?void 0:o.primaryColor,...d.toastPromptHoveredStyle};return R.useEffect(()=>{if(a){const y=setTimeout(()=>{A(e)},a);return()=>clearTimeout(y)}},[e,A,a]),typeof n=="string"?N.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:p?m:d.toastPromptStyle,onMouseDown:async y=>{var C;(C=c.toast)!=null&&C.dismissOnClick&&(y.preventDefault(),await A(e))},className:"rcb-toast-prompt",children:n}):N.jsx(N.Fragment,{children:n})},np=()=>{var e,n,a,i,o,c,u,d,A,p,h,m;const{styles:y}=Ze(),{toasts:C}=cA(),D={bottom:`calc(${typeof((e=y.footerStyle)==null?void 0:e.height)=="number"?`${(n=y.footerStyle)==null?void 0:n.height}px`:((a=y.footerStyle)==null?void 0:a.height)??"50px"} + ${typeof((i=y.chatInputContainerStyle)==null?void 0:i.height)=="number"?`${(o=y.chatInputContainerStyle)==null?void 0:o.height}px`:((c=y.chatInputContainerStyle)==null?void 0:c.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((u=y.chatWindowStyle)==null?void 0:u.width)=="number"?`${(d=y.chatWindowStyle)==null?void 0:d.width}px`:((A=y.chatWindowStyle)==null?void 0:A.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((p=y.chatWindowStyle)==null?void 0:p.width)=="number"?`${(h=y.chatWindowStyle)==null?void 0:h.width}px`:((m=y.chatWindowStyle)==null?void 0:m.width)??"375px"} - 50px)`,...y.toastPromptContainerStyle};return N.jsx("div",{className:"rcb-toast-prompt-container",style:D,children:C.map(Q=>N.jsx(tp,{id:Q.id,content:Q.content,timeout:Q.timeout},Q.id))})},uA=({file:e,fileType:n,fileUrl:a})=>{var i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),A={backgroundColor:(i=u.general)==null?void 0:i.primaryColor,maxWidth:(o=u.userBubble)!=null&&o.showAvatar?"65%":"70%",...d.mediaDisplayContainerStyle};return N.jsx(N.Fragment,{children:a?N.jsxs(N.Fragment,{children:[n==="image"&&a&&N.jsx("div",{style:A,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:N.jsx("img",{src:a,alt:"Image Display",className:"rcb-media-display-image"})}),n==="video"&&a&&N.jsx("div",{style:A,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:N.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[N.jsx("source",{src:a,type:e.type}),"Your browser does not support the video tag."]})}),n==="audio"&&a&&N.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(c=u.userBubble)!=null&&c.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[N.jsx("source",{src:a,type:e.type}),"Your browser does not support the audio tag."]})]}):N.jsx(N.Fragment,{})})},AA=async e=>{if(!e)return{fileType:null,fileUrl:null};const n=e.type.split("/")[0];if(!["image","video","audio"].includes(n))return{fileType:null,fileUrl:null};try{return{fileType:n,fileUrl:await new Promise((a,i)=>{const o=new FileReader;o.onload=()=>a(o.result),o.onerror=()=>i(new Error("File reading failed")),o.readAsDataURL(e)})}}catch(a){return console.error(a),{fileType:null,fileUrl:null}}},rp=()=>{var e,n,a,i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),{injectMessage:A,simulateStreamMessage:p,streamMessage:h,removeMessage:m,endStreamMessage:y}=Oo(),{getCurrPath:C,getPrevPath:D,goToPath:Q,blockAllowsAttachment:E}=Os(),{flowRef:I,inputRef:_}=xt(),B=I.current,{showToast:U,dismissToast:j}=ya(),{dispatchRcbEvent:z}=Vn(),{toggleChatWindow:W}=wn(),{setTextAreaValue:te}=Fo(),{handleSubmitText:J}=ba(),Y={cursor:`url("${(e=u.general)==null?void 0:e.actionDisabledIcon}"), auto`,...d.fileAttachmentButtonStyle,...d.fileAttachmentButtonDisabledStyle},ee={backgroundImage:`url(${(n=u.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...d.fileAttachmentIconStyle},Z={backgroundImage:`url(${(a=u.fileAttachment)==null?void 0:a.icon})`,fill:"#a6a6a6",...d.fileAttachmentIconStyle,...d.fileAttachmentIconDisabledStyle};return N.jsxs("label",{"aria-label":((i=u.ariaLabel)==null?void 0:i.fileAttachmentButton)??"upload file",role:"button",className:E?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:E?{...d.fileAttachmentButtonStyle}:Y,children:[N.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async ie=>{var ue,se,xe,ge;const me=ie.target.files;if(!me)return;const M=Array.from(me);if(ie.target.value="",(ue=u.event)!=null&&ue.rcbUserUploadFile&&(await z(ye.USER_UPLOAD_FILE,{files:M})).defaultPrevented)return;const fe=C();if(!fe)return;const O=B[fe];if(!O)return;const de=O.file;if(de!=null){const Ee=[];for(let he=0;he<M.length;he++){if(Ee.push(M[he].name),(se=u.fileAttachment)==null||!se.showMediaDisplay)continue;const ve=await AA(M[he]);!ve.fileType||!ve.fileUrl||await A(N.jsx(uA,{file:M[he],fileType:ve.fileType,fileUrl:ve.fileUrl}),"USER")}await J("📄 "+Ee.join(", "),(xe=u.fileAttachment)==null?void 0:xe.sendFileName),await de({userInput:(ge=_.current)==null?void 0:ge.value,prevPath:D(),currPath:C(),goToPath:Q,setTextAreaValue:te,injectMessage:A,simulateStreamMessage:p,streamMessage:h,removeMessage:m,endStreamMessage:y,toggleChatWindow:W,showToast:U,dismissToast:j,files:M})}},multiple:(o=u.fileAttachment)==null?void 0:o.multiple,accept:(c=u.fileAttachment)==null?void 0:c.accept,disabled:!E}),(()=>{var ie,ue;const se=E?(ie=u.fileAttachment)==null?void 0:ie.icon:(ue=u.fileAttachment)==null?void 0:ue.iconDisabled;return se&&typeof se!="string"?se&&N.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:N.jsx(se,{style:E?ee:Z})}):N.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:E?ee:Z})})()]})},op=()=>{var e,n,a,i,o,c;const{settings:u}=Fe(),{styles:d}=Ze(),{syncedTextAreaDisabledRef:A}=Et(),{inputRef:p}=xt(),{textAreaDisabled:h,setTextAreaValue:m}=Fo(),y=R.useRef(null),C=R.useRef(null),[D,Q]=R.useState(!1),E={cursor:`url("${(e=u.general)==null?void 0:e.actionDisabledIcon}"), auto`,...d.emojiButtonStyle,...d.emojiButtonDisabledStyle},I={backgroundImage:`url(${(n=u.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...d.emojiIconStyle},_={backgroundImage:`url(${(a=u.emoji)==null?void 0:a.icon})`,fill:"#a6a6a6",...d.emojiIconStyle,...d.emojiIconDisabledStyle};return R.useEffect(()=>{const B=j=>{const z=j.composedPath();y.current&&!z.includes(y.current)&&C.current&&!z.includes(C.current)&&Q(!1)},U=()=>{(()=>{if(y.current&&C.current){const j=C.current.getBoundingClientRect(),z=y.current.offsetHeight,W=j.top-z-8;y.current.style.left=`${j.left}px`,y.current.style.top=`${W}px`}})()};return document.addEventListener("mousedown",B),window.addEventListener("resize",U),()=>{document.removeEventListener("mousedown",B),window.removeEventListener("resize",U)}},[]),N.jsxs(N.Fragment,{children:[N.jsx("div",{"aria-label":((i=u.ariaLabel)==null?void 0:i.emojiButton)??"emoji picker",role:"button",ref:C,className:h?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:h?E:{...d.emojiButtonStyle},onMouseDown:B=>{B.preventDefault(),A.current?Q(!1):Q(U=>!U)},children:(()=>{var B,U;const j=h?(B=u.emoji)==null?void 0:B.iconDisabled:(U=u.emoji)==null?void 0:U.icon;return j&&typeof j!="string"?j&&N.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:N.jsx(j,{style:h?_:I})}):N.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:h?_:I})})()}),D&&N.jsx("div",{className:"rcb-emoji-button-popup",ref:y,children:(c=(o=u.emoji)==null?void 0:o.list)==null?void 0:c.map((B,U)=>N.jsx("span",{className:"rcb-emoji",onMouseDown:j=>((z,W)=>{z.preventDefault(),p.current&&(m(p.current.value+W),setTimeout(()=>{const te=p.current;if(te){te.focus();const J=te.value.length;te.setSelectionRange(J,J)}},50)),Q(!1)})(j,B),children:B},U))})]})},ap=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{audioToggledOn:c,toggleAudio:u}=sA(),d={backgroundImage:`url(${(e=i.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},A={backgroundImage:`url(${(n=i.audio)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.audioButton)??"toggle audio",role:"button",onMouseDown:async p=>{p.preventDefault(),await u()},style:c?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var p,h;const m=c?(p=i.audio)==null?void 0:p.icon:(h=i.audio)==null?void 0:h.iconDisabled;return m&&typeof m!="string"?m&&N.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:N.jsx(m,{style:c?d:A,"data-testid":"rcb-audio-icon-svg"})}):N.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:c?d:A})})()})},ip=()=>{var e,n;const{settings:a}=Fe(),{styles:i}=Ze(),{toggleChatWindow:o}=wn(),c={backgroundImage:`url(${(e=a.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...i.closeChatIconStyle};return N.jsx("div",{"aria-label":((n=a.ariaLabel)==null?void 0:n.closeChatButton)??"close chat",role:"button",onMouseDown:u=>{u.stopPropagation(),o(!1)},style:{...i.closeChatButtonStyle},children:(()=>{var u;const d=(u=a.header)==null?void 0:u.closeChatIcon;return d&&typeof d!="string"?d&&N.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:N.jsx(d,{style:c})}):N.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:c})})()})},sp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{notificationsToggledOn:c,toggleNotifications:u}=(()=>{const{notificationsToggledOn:p,toggleNotifications:h,playNotificationSound:m}=Wl();return{notificationsToggledOn:p,toggleNotifications:h,playNotificationSound:m}})(),d={backgroundImage:`url(${(e=i.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},A={backgroundImage:`url(${(n=i.notification)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.notificationButton)??"toggle notifications",role:"button",onMouseDown:async p=>{p.preventDefault(),await u()},style:c?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var p,h;const m=c?(p=i.notification)==null?void 0:p.icon:(h=i.notification)==null?void 0:h.iconDisabled;return m&&typeof m!="string"?m&&N.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:N.jsx(m,{style:c?d:A,"data-testid":"rcb-notification-icon-svg"})}):N.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:c?d:A})})()})},lp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{injectMessage:c}=Oo(),{inputRef:u}=xt(),{voiceToggledOn:d,toggleVoice:A}=Jl(),{setInputLength:p,setTextAreaValue:h,textAreaDisabled:m}=Fo(),{handleSubmitText:y}=ba(),C=R.useRef([]),[D,Q]=R.useState(!1);R.useEffect(()=>{var U;(U=i.voice)!=null&&U.sendAsAudio?(B(),C.current=[]):y()},[D]),R.useEffect(()=>{d?((U,j,z,W,te,J,Y)=>{var ee;(ee=U.voice)!=null&&ee.sendAsAudio?Jf(z,J):Xf(U,j,z,W,te,Y)})(i,A,_,h,p,C,u):Vl()},[d]);const E={backgroundImage:`url(${(e=i.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},I={backgroundImage:`url(${(n=i.voice)==null?void 0:n.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},_=()=>{Q(U=>!U)},B=async()=>{const U=new Blob(C.current,{type:"audio/wav"}),j=new File([U],"voice-input.wav",{type:"audio/wav"}),z=await AA(j);!z.fileType||!z.fileUrl||await c(N.jsx(uA,{file:j,fileType:z.fileType,fileUrl:z.fileUrl}),"USER")};return N.jsx("div",{"aria-label":((a=i.ariaLabel)==null?void 0:a.voiceButton)??"toggle voice",role:"button",onMouseDown:async U=>{U.preventDefault(),!m&&await A()},style:d&&!m?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:d&&!m?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var U,j;const z=d?(U=i.voice)==null?void 0:U.icon:(j=i.voice)==null?void 0:j.iconDisabled;return z&&typeof z!="string"?z&&N.jsx("span",{className:"rcb-voice-icon "+(d&&!m?"on":""),children:N.jsx(z,{style:d&&!m?E:I})}):N.jsx("span",{className:"rcb-voice-icon"+(d&&!m?"-on":""),"data-testid":"rcb-voice-icon",style:d&&!m?E:I})})()})},cp=()=>{var e,n,a,i,o,c,u,d;const{settings:A}=Fe(),{styles:p}=Ze(),{textAreaDisabled:h}=Et(),[m,y]=R.useState(!1),{handleSubmitText:C}=ba(),D={backgroundColor:(e=A.general)==null?void 0:e.primaryColor,...p.sendButtonStyle},Q={cursor:`url("${(n=A.general)==null?void 0:n.actionDisabledIcon}"), auto`,backgroundColor:(a=A.general)==null?void 0:a.primaryColor,...p.sendButtonStyle,...p.sendButtonDisabledStyle},E={backgroundColor:(i=A.general)==null?void 0:i.secondaryColor,...p.sendButtonStyle,...p.sendButtonHoveredStyle},I={backgroundImage:`url(${(o=A.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle},_={backgroundImage:`url(${(c=A.chatInput)==null?void 0:c.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle,...p.sendIconDisabledStyle},B={backgroundImage:`url(${(u=A.chatInput)==null?void 0:u.sendButtonIcon})`,fill:"#fff",...p.sendIconStyle,...p.sendIconHoveredStyle};return N.jsx("div",{"aria-label":((d=A.ariaLabel)==null?void 0:d.sendButton)??"send message",role:"button",onMouseEnter:()=>{y(!0)},onMouseLeave:()=>{y(!1)},onMouseDown:async U=>{U==null||U.preventDefault(),!h&&await C()},style:h?Q:m?E:D,className:"rcb-send-button",children:(()=>{var U;const j=(U=A.chatInput)==null?void 0:U.sendButtonIcon;return j&&typeof j!="string"?j&&N.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:N.jsx(j,{style:h?_:m?B:I})}):N.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:h?_:m?B:I})})()})},up=(e,n)=>{var a,i,o,c,u,d,A,p,h;const m={[dt.AUDIO_BUTTON]:(a=e.audio)==null?void 0:a.disabled,[dt.CLOSE_CHAT_BUTTON]:(i=e.general)==null?void 0:i.embedded,[dt.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[dt.FILE_ATTACHMENT_BUTTON]:(c=e.fileAttachment)==null?void 0:c.disabled,[dt.NOTIFICATION_BUTTON]:(u=e.notification)==null?void 0:u.disabled,[dt.SEND_MESSAGE_BUTTON]:!1,[dt.VOICE_MESSAGE_BUTTON]:(d=e.voice)==null?void 0:d.disabled},y={},C=D=>D?D.map(Q=>{if(typeof Q=="string"){if((E=>Object.values(dt).includes(E))(Q)&&!m[Q]){if(y[Q])return y[Q];const E=n[Q];if(typeof E=="function"){const I=E();return y[Q]=I,I}return null}return null}return Q}).filter(Q=>Q!==null):[];return{header:C((A=e.header)==null?void 0:A.buttons),chatInput:C((p=e.chatInput)==null?void 0:p.buttons),footer:C((h=e.footer)==null?void 0:h.buttons)}},Ap=()=>{const{settings:e}=Fe(),n=R.useMemo(()=>({[dt.CLOSE_CHAT_BUTTON]:()=>N.jsx(ip,{}),[dt.AUDIO_BUTTON]:()=>N.jsx(ap,{}),[dt.NOTIFICATION_BUTTON]:()=>N.jsx(sp,{}),[dt.EMOJI_PICKER_BUTTON]:()=>N.jsx(op,{}),[dt.FILE_ATTACHMENT_BUTTON]:()=>N.jsx(rp,{}),[dt.SEND_MESSAGE_BUTTON]:()=>N.jsx(cp,{}),[dt.VOICE_MESSAGE_BUTTON]:()=>N.jsx(lp,{})}),[]),{header:a,chatInput:i,footer:o}=R.useMemo(()=>up(e,n),[e,n]);return{headerButtons:R.useMemo(()=>a,[a]),chatInputButtons:R.useMemo(()=>i,[i]),footerButtons:R.useMemo(()=>o,[o])}},Kl=()=>{const{settings:e}=Fe(),{styles:n}=Ze(),{setSyncedMessages:a,syncedMessagesRef:i}=Nl(),{isLoadingChatHistory:o,setIsLoadingChatHistory:c,hasChatHistoryLoaded:u,setHasChatHistoryLoaded:d}=Et(),{chatBodyRef:A}=xt(),{dispatchRcbEvent:p}=Vn(),h=R.useCallback(async()=>{var m,y;const C=zl();if(!C||(m=e.event)!=null&&m.rcbLoadChatHistory&&(await p(ye.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;c(!0);const D=((y=A.current)==null?void 0:y.scrollHeight)??0;((Q,E,I,_,B,U,j,z,W)=>{var te;if(rA=!0,I!=null)try{const J=Jr(N.jsx(Hf,{}),"SYSTEM"),Y=B.current.slice(1);_([J,...Y]);const ee=I.map(Z=>{if(Z.type==="object"){const ie=iA(Z.content,Q,E);return{...Z,content:ie}}return Z});setTimeout(()=>{var Z;const ie=B.current.slice(1);let ue=(Z=Q.chatHistory)!=null&&Z.autoLoad?Jr(N.jsx(N.Fragment,{}),"SYSTEM"):Jr(N.jsx(_f,{}),"SYSTEM");_([...ee,ue,...ie]),W(!0)},500),setTimeout(()=>{if(!U.current)return;const{scrollHeight:Z}=U.current,ie=Z-j;U.current.scrollTop+=ie,z(!1)},510)}catch{Kr.removeItem((te=Q.chatHistory)==null?void 0:te.storageKey)}})(e,n,C,a,i,A,D,c,d)},[e,n,p,i,A,c,d]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:c,hasChatHistoryLoaded:u,showChatHistory:h}},dp=()=>{var e,n,a;const{settings:i}=Fe(),{styles:o}=Ze(),{showChatHistory:c}=Kl(),[u,d]=R.useState(!1),A={color:(e=i.general)==null?void 0:e.primaryColor,borderColor:(n=i.general)==null?void 0:n.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return N.jsx("div",{className:"rcb-view-history-container",children:N.jsx("div",{onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},style:u?A:{...o.chatHistoryButtonStyle},onMouseDown:p=>{p.preventDefault(),c()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:N.jsx("p",{children:(a=i.chatHistory)==null?void 0:a.viewChatHistoryButtonText})})})},fp=()=>{var e,n,a,i;const o=Fs(),{settings:c}=Fe(),{replaceMessages:u}=Oo(),{isBotTyping:d,isChatWindowOpen:A,setUnreadCount:p,setSyncedIsChatWindowOpen:h,setSyncedTextAreaDisabled:m,setSyncedAudioToggledOn:y,setSyncedVoiceToggledOn:C,setSyncedIsScrolling:D,syncedIsScrollingRef:Q,syncedIsChatWindowOpenRef:E}=Et(),{chatBodyRef:I}=xt(),{viewportHeight:_,setViewportHeight:B,setViewportWidth:U,scrollToBottom:j}=wn(),{setUpNotifications:z}=Wl(),{handleFirstInteraction:W}=(()=>{var ee;const{settings:Z}=Fe(),{hasInteractedPage:ie,setHasInteractedPage:ue,hasFlowStarted:se,setHasFlowStarted:xe}=Et(),ge=R.useCallback(()=>{var me;if(ue(!0),!se&&((me=Z.general)==null?void 0:me.flowStartTrigger)==="ON_PAGE_INTERACT"&&xe(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const M=new window.SpeechSynthesisUtterance;M.text="",M.onend=()=>{window.removeEventListener("click",ge),window.removeEventListener("keydown",ge),window.removeEventListener("touchstart",ge)},window.speechSynthesis.speak(M)},[se,(ee=Z.general)==null?void 0:ee.flowStartTrigger]);return{hasInteractedPage:ie,handleFirstInteraction:ge}})(),{showChatHistory:te}=Kl(),J=R.useRef(0),Y=R.useRef(!1);R.useEffect(()=>(window.addEventListener("click",W),window.addEventListener("keydown",W),window.addEventListener("touchstart",W),()=>{window.removeEventListener("click",W),window.removeEventListener("keydown",W),window.removeEventListener("touchstart",W)}),[]),R.useEffect(()=>{const ee=I.current;if(!ee)return;const Z=()=>{Y.current||(Y.current=!0,requestAnimationFrame(()=>{var ie,ue;if(!ee)return;const{scrollTop:se,clientHeight:xe,scrollHeight:ge}=ee,me=se+xe<ge-(((ie=c.chatWindow)==null?void 0:ie.messagePromptOffset)??30);D(me),Q.current=me,me||(se+xe>=ge-1&&(ee.scrollTop=ge-xe-1),(E.current||(ue=c.general)!=null&&ue.embedded)&&p(0)),Y.current=!1}))};return ee.addEventListener("wheel",Z,{passive:!0}),ee.addEventListener("touchmove",Z,{passive:!0}),()=>{ee.removeEventListener("wheel",Z),ee.removeEventListener("touchmove",Z)}},[]),R.useEffect(()=>{var ee,Z,ie;m((ee=c.chatInput)==null?void 0:ee.disabled),h((Z=c.chatWindow)==null?void 0:Z.defaultOpen),y((ie=c.audio)==null?void 0:ie.defaultToggledOn),setTimeout(()=>{var ue;C((ue=c.voice)==null?void 0:ue.defaultToggledOn)},1)},[]),R.useEffect(()=>{var ee;(ee=c.notification)!=null&&ee.disabled||z()},[(e=c.notification)==null?void 0:e.disabled]),R.useEffect(()=>{!Q.current&&I!=null&&I.current&&j()},[d]),R.useEffect(()=>{var ee,Z;if((ee=c.chatHistory)!=null&&ee.disabled)Kr&&Kr.removeItem(Bs);else if(jl(c),zl().length>0){const ie=Jr(N.jsx(dp,{}),"SYSTEM");u([ie]),(Z=c.chatHistory)!=null&&Z.autoLoad&&te()}},[(n=c.chatHistory)==null?void 0:n.storageKey,(a=c.chatHistory)==null?void 0:a.maxEntries,(i=c.chatHistory)==null?void 0:i.disabled]),R.useEffect(()=>{var ee;o||(ee=c.general)!=null&&ee.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",Z=>{if(!Z.target)return;const{x:ie,y:ue,width:se,height:xe}=Z.target.boundingRect;ie==0&&ue==0&&se==0&&xe==0?(setTimeout(()=>{var ge;B((ge=window.visualViewport)==null?void 0:ge.height)},101),setTimeout(()=>{var ge,me;_!=((ge=window.visualViewport)==null?void 0:ge.height)&&B((me=window.visualViewport)==null?void 0:me.height)},1001)):setTimeout(()=>{var ge;B(((ge=window.visualViewport)==null?void 0:ge.height)-xe)},101)}))},[o]),R.useEffect(()=>{var ee,Z,ie,ue;if(o)return;A&&(B((ee=window.visualViewport)==null?void 0:ee.height),U((Z=window.visualViewport)==null?void 0:Z.width));const se=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),xe=()=>J.current=window.scrollY,ge=()=>{var M,fe;B((M=window.visualViewport)==null?void 0:M.height),U((fe=window.visualViewport)==null?void 0:fe.width)},me=()=>{var M;window.removeEventListener("scroll",se),window.removeEventListener("scroll",xe),(M=window.visualViewport)==null||M.removeEventListener("resize",ge)};return A?(me(),document.body.style.position="fixed",window.addEventListener("scroll",se),(ie=window.visualViewport)==null||ie.addEventListener("resize",ge)):(document.body.style.position="static",me(),window.scrollTo({top:J.current,left:0,behavior:"auto"}),window.addEventListener("scroll",xe),(ue=window.visualViewport)==null||ue.removeEventListener("resize",ge)),me},[A,o])},pp="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",hp="2592000",dA="RCB_THEME_CACHE_DATA",fA=async(e,n)=>{const{id:a,version:i,baseUrl:o=pp,cacheDuration:c=hp}=n,u=i||await(async(I,_)=>{const B=`${_}/${I}/meta.json`;try{const U=await fetch(B);return U.ok?(await U.json()).version:(console.error(`Failed to fetch meta.json from ${B}`),null)}catch(U){return console.error(`Failed to fetch meta.json from ${B}`,U),null}})(a,o);if(!u)return console.error(`Unable to find version for theme: ${a}`),{settings:{},inlineStyles:{},cssStylesText:""};const d=((I,_,B)=>{const U=localStorage.getItem(`${dA}_${I}_${_}`);if(!U)return null;try{const j=JSON.parse(U),z=new Date().getTime(),W=Math.floor(z/1e3);return j.cacheDate+B>=W?j:null}catch(j){return console.error(`Unable to fetch cache for ${I}`,j),null}})(a,u,c);if(d){const I=pA(e,d.cssStylesText);return{settings:d.settings,inlineStyles:d.inlineStyles,cssStylesText:I}}const A=`${o}/${a}/${u}/styles.css`,p=`${o}/${a}/${u}/settings.json`,h=`${o}/${a}/${u}/styles.json`;let m="";const y=await fetch(A);y.ok?m=await y.text():console.info(`Could not fetch styles.css from ${A}`);const C=await fetch(p);let D={};C.ok?D=await C.json():console.info(`Could not fetch settings.json from ${p}`);const Q=await fetch(h);let E={};return Q.ok?E=await Q.json():console.info(`Could not fetch styles.json from ${h}`),((I,_,B,U,j)=>{const z=new Date().getTime(),W={settings:B,inlineStyles:U,cssStylesText:j,cacheDate:Math.floor(z/1e3)};localStorage.setItem(`${dA}_${I}_${_}`,JSON.stringify(W))})(a,u,D,E,m),{settings:D,inlineStyles:E,cssStylesText:pA(e,m)}},pA=(e,n)=>n.split(new RegExp("(?<=})")).map(a=>{const i=a.trim();return i.startsWith("@import")||i.startsWith("@keyframes")||i.startsWith("@media")?i:i?`#${e} ${i}`:""}).join(`
|
|
108
108
|
`),gp=async(e,n,a,i)=>{var o,c;let u=Ls(Vu),d=Ls(Ju),A="";if(i!=null)if(Array.isArray(i))for(const p of i){const h=await fA(e,p);u=cr(h.settings,u),d=cr(h.inlineStyles,d),A+=h.cssStylesText}else{const p=await fA(e,i);u=cr(p.settings,u),d=cr(p.inlineStyles,d),A+=p.cssStylesText}return n!=null&&(u=cr(n,u)),a!=null&&(d=cr(a,d)),((o=u.chatInput)==null?void 0:o.botDelay)!=null&&((c=u.chatInput)==null?void 0:c.botDelay)<500&&(u.chatInput.botDelay=500),{settings:u,inlineStyles:d,cssStylesText:A}},cr=(e,n)=>{const a=[{source:e,target:n}];for(;a.length;){const i=a.pop();if(i==null)continue;const{source:o,target:c}=i;for(const u of Object.keys(o)){const d=u;if(R.isValidElement(o[d]))c[d]=o[d];else if(typeof o[d]!="object"||o[d]===null||Array.isArray(o[d]))try{c[d]=o[d]}catch{}else(typeof c[d]!="object"||c[d]===null)&&(c[d]={}),a.push({source:o[d],target:c[d]})}}return n},Ls=e=>{if(e===null||typeof e!="object")return e;const n=Array.isArray(e)?[]:{},a=[{source:e,target:n}],i=new WeakMap;for(i.set(e,n);a.length;){const o=a.pop();if(o==null)continue;const{source:c,target:u}=o;for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d)){const A=c[d];if(A&&typeof A=="object")if(i.has(A))u[d]=i.get(A);else{const p=Array.isArray(A)?[]:{};i.set(A,p),u[d]=p,a.push({source:A,target:p})}else u[d]=A}}return n},hA=()=>{const{settings:e,setSyncedSettings:n,syncedSettingsRef:a}=Fe(),i=R.useCallback(c=>{!c||Object.keys(c).length===0||n(Ls(cr(c,e)))},[e]),o=R.useCallback(c=>{const u=typeof c=="function"?c(a.current):c;n(u)},[a]);return{settings:e,replaceSettings:o,updateSettings:i}},gA=()=>{const{styles:e,setSyncedStyles:n,syncedStylesRef:a}=Ze(),i=R.useCallback(c=>{!c||Object.keys(c).length===0||n(Ls(cr(c,e)))},[e]),o=R.useCallback(c=>{const u=typeof c=="function"?c(a.current):c;n(u)},[a]);return{styles:e,replaceStyles:o,updateStyles:i}},mp=({plugins:e,slots:n})=>{var a,i;const o=Fs(),{settings:c}=Fe(),{styles:u}=Ze(),{hasFlowStarted:d,setHasFlowStarted:A}=Et(),{inputRef:p}=xt(),{viewportHeight:h,viewportWidth:m,isChatWindowOpen:y}=wn(),{goToPath:C}=Os(),{headerButtons:D,chatInputButtons:Q,footerButtons:E}=Ap();fp(),(_=>{const{updateSettings:B}=hA(),{updateStyles:U}=gA(),j=_==null?void 0:_.map(z=>z());R.useEffect(()=>{let z={},W={};j==null||j.forEach(te=>{te!=null&&te.settings&&Object.keys(te==null?void 0:te.settings).length!==0&&(z=cr(te.settings,z)),te!=null&&te.styles&&Object.keys(te==null?void 0:te.styles).length!==0&&(W=cr(te.styles,W))}),B(z),U(W)},[])})(e),R.useEffect(()=>{var _;(d||((_=c.general)==null?void 0:_.flowStartTrigger)==="ON_LOAD")&&C("start")},[d,(a=c.general)==null?void 0:a.flowStartTrigger]);const I=R.useMemo(()=>{var _;const B="rcb-chatbot-global ";return(_=c.general)!=null&&_.embedded?B+"rcb-window-embedded":y?B+"rcb-window-open":B+"rcb-window-close"},[c,y]);return N.jsx(N.Fragment,{children:(()=>{var _,B;return o&&((_=c.device)==null?void 0:_.desktopEnabled)||!o&&((B=c.device)==null?void 0:B.mobileEnabled)})()&&N.jsxs("div",{onMouseDown:_=>{var B,U;!d&&((B=c.general)==null?void 0:B.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&A(!0),o?(U=p.current)==null||U.blur():_==null||_.preventDefault()},className:I,children:[N.jsx(ep,{}),N.jsx(qf,{}),y&&!o&&!((i=c.general)!=null&&i.embedded)&&N.jsxs(N.Fragment,{children:[N.jsx("style",{children:`
|
|
109
109
|
html {
|
|
110
110
|
overflow: hidden !important;
|
|
111
111
|
touch-action: none !important;
|
|
112
112
|
scroll-behavior: auto !important;
|
|
113
113
|
}
|
|
114
|
-
`}),N.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),N.jsx("div",{style:(()=>{var _,B;return o||(_=c.general)!=null&&_.embedded?(B=c.general)!=null&&B.embedded?{...u.chatWindowStyle}:{...u.chatWindowStyle,zIndex:1e4}:{...u.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${m}px`,height:`${h}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var _,B,U;const j=(n==null?void 0:n.chatBotHeader)||vf,z=(n==null?void 0:n.chatBotBody)||Tf,W=(n==null?void 0:n.chatBotInput)||$f,te=(n==null?void 0:n.chatBotFooter)||Zf;return N.jsxs(N.Fragment,{children:[((_=c.general)==null?void 0:_.showHeader)&&N.jsx(j,{buttons:D}),N.jsx(z,{}),N.jsx(np,{}),((B=c.general)==null?void 0:B.showInputRow)&&N.jsx(W,{buttons:Q}),((U=c.general)==null?void 0:U.showFooter)&&N.jsx(te,{buttons:E})]})})()})]})})},mA=R.createContext(void 0),vA=()=>R.useContext(mA),yA=({children:e})=>{var n;const a=R.useRef(""),i=R.useRef({}),[o,c,u]=bn({}),[d,A,p]=bn({}),[h,m]=R.useState(!1);return R.useEffect(()=>{m(!0)},[]),h?N.jsx("div",{style:{fontFamily:(n=o.general)==null?void 0:n.fontFamily},children:N.jsx(mA.Provider,{value:{loadConfig:async(y,C,D,Q,E,I)=>{a.current=y,i.current=C;const _=await gp(y,D,Q,E);I.current&&(I.current.textContent=_.cssStylesText),c(_.settings),A(_.inlineStyles)}},children:N.jsx(gf,{settings:o,setSyncedSettings:c,syncedSettingsRef:u,children:N.jsx(mf,{styles:d,setSyncedStyles:A,syncedStylesRef:p,children:N.jsx(Kf,{children:N.jsx(yf,{botIdRef:a,flowRef:i,children:N.jsx(xf,{children:N.jsx(bf,{settings:o,children:N.jsx(Ef,{children:e})})})})})})})})}):null},vp=({id:e,flow:n,settings:a,styles:i,themes:o,plugins:c,setConfigLoaded:u,styleRootRef:d})=>{const A=R.useMemo(()=>e,[]),p=vA(),{flowRef:h}=xt();return h&&h.current!==n&&(h.current=n),R.useEffect(()=>{(async()=>{var m,y;(m=a.event)!=null&&m.rcbPreLoadChatBot&&(await
|
|
114
|
+
`}),N.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),N.jsx("div",{style:(()=>{var _,B;return o||(_=c.general)!=null&&_.embedded?(B=c.general)!=null&&B.embedded?{...u.chatWindowStyle}:{...u.chatWindowStyle,zIndex:1e4}:{...u.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${m}px`,height:`${h}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var _,B,U;const j=(n==null?void 0:n.chatBotHeader)||vf,z=(n==null?void 0:n.chatBotBody)||Tf,W=(n==null?void 0:n.chatBotInput)||$f,te=(n==null?void 0:n.chatBotFooter)||Zf;return N.jsxs(N.Fragment,{children:[((_=c.general)==null?void 0:_.showHeader)&&N.jsx(j,{buttons:D}),N.jsx(z,{}),N.jsx(np,{}),((B=c.general)==null?void 0:B.showInputRow)&&N.jsx(W,{buttons:Q}),((U=c.general)==null?void 0:U.showFooter)&&N.jsx(te,{buttons:E})]})})()})]})})},mA=R.createContext(void 0),vA=()=>R.useContext(mA),yA=({children:e})=>{var n;const a=R.useRef(""),i=R.useRef({}),[o,c,u]=bn({}),[d,A,p]=bn({}),[h,m]=R.useState(!1);return R.useEffect(()=>{m(!0)},[]),h?N.jsx("div",{style:{fontFamily:(n=o.general)==null?void 0:n.fontFamily},children:N.jsx(mA.Provider,{value:{loadConfig:async(y,C,D,Q,E,I)=>{a.current=y,i.current=C;const _=await gp(y,D,Q,E);I.current&&(I.current.textContent=_.cssStylesText),c(_.settings),A(_.inlineStyles)}},children:N.jsx(gf,{settings:o,setSyncedSettings:c,syncedSettingsRef:u,children:N.jsx(mf,{styles:d,setSyncedStyles:A,syncedStylesRef:p,children:N.jsx(Kf,{children:N.jsx(yf,{botIdRef:a,flowRef:i,children:N.jsx(xf,{children:N.jsx(bf,{settings:o,children:N.jsx(Ef,{children:e})})})})})})})})}):null},vp=({id:e,flow:n,settings:a,styles:i,themes:o,plugins:c,setConfigLoaded:u,styleRootRef:d})=>{const A=R.useMemo(()=>e,[]),p=vA(),{flowRef:h}=xt();return h&&h.current!==n&&(h.current=n),R.useEffect(()=>{(async()=>{var m,y;(m=a.event)!=null&&m.rcbPreLoadChatBot&&(await Hl(ye.PRE_LOAD_CHATBOT,{botId:A,currPath:null,prevPath:null},{flow:n,settings:a,styles:i,themes:o,plugins:c})).defaultPrevented||(p!=null&&p.loadConfig&&(await p.loadConfig(A,n,a,i,o,d),u(!0)),(y=a.event)!=null&&y.rcbPostLoadChatBot&&Hl(ye.POST_LOAD_CHATBOT,{botId:A,currPath:null,prevPath:null},{flow:n,settings:a,styles:i,themes:o,plugins:c}))})()},[o]),null},$l=["Quickstart","API Docs","Examples","Github","Discord"],yp={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:$l,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:$l,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:$l,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let n="";switch(e.userInput){case"Quickstart":n="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":n="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":n="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":n="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":n="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(n)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},bp=({id:e,flow:n,settings:a,styles:i,themes:o,plugins:c,slots:u})=>{const d=R.useMemo(()=>e||"rcb-"+Is(),[]),A=n&&Object.keys(n).length!==0?n:yp,p=a||{},h=i||{},m=c||[],[y,C]=R.useState(!1),D=vA(),Q=R.useRef(null),[E,I]=R.useState(o||[]);R.useEffect(()=>{o&&I(o)},[o]);const _=()=>N.jsxs(N.Fragment,{children:[N.jsx(vp,{styleRootRef:Q,id:d,flow:A,settings:p,styles:h,themes:E,plugins:m,setConfigLoaded:C}),y&&N.jsx(mp,{plugins:c,slots:u})]});return N.jsxs(D==null?yA:N.Fragment,{children:[N.jsx("style",{ref:Q}),N.jsx("div",{id:d,children:_()})]})},wp=()=>{const{getBotId:e}=(()=>{const{botIdRef:n}=xt();return{getBotId:R.useCallback(()=>n.current,[n])}})();return{getBotId:e}},Qs=()=>{const{hasFlowStarted:e,restartFlow:n,getFlow:a}=(()=>{const{replaceMessages:i}=Oo(),{replacePaths:o,goToPath:c}=Os(),{replaceToasts:u}=ya(),{hasFlowStarted:d}=Et(),{flowRef:A,timeoutIdRef:p}=xt(),{settings:h}=Fe();return{hasFlowStarted:d,restartFlow:R.useCallback(async()=>{jl(h),p.current&&clearTimeout(p.current),i([]),u([]),o([]),await c("start")},[p,h,i,u,o,jl,c]),getFlow:R.useCallback(()=>(A==null?void 0:A.current)??{},[A])}})();return{hasFlowStarted:e,restartFlow:n,getFlow:a}},Zl=()=>{const{endStreamMessage:e,injectMessage:n,removeMessage:a,simulateStreamMessage:i,streamMessage:o,messages:c,replaceMessages:u}=Oo();return{endStreamMessage:e,injectMessage:n,removeMessage:a,simulateStreamMessage:i,streamMessage:o,messages:c,replaceMessages:u}},Bn=(e,n)=>{const{getBotId:a}=wp();R.useEffect(()=>{const i=o=>{o.detail.botId===a()&&n(o)};return window.addEventListener(e,i),()=>{window.removeEventListener(e,i)}},[a,e,n])},bA=()=>{const{settings:e,replaceSettings:n,updateSettings:a}=hA();return{settings:e,replaceSettings:n,updateSettings:a}},wA=()=>{const{showChatHistory:e,hasChatHistoryLoaded:n}=Kl();return{showChatHistory:e,getHistoryMessages:zl,setHistoryMessages:Nf,hasChatHistoryLoaded:n}},ql={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function Lo(e){return n=>{ql[n]={...e,...ql[n]}}}["address","main","div","figure","p","pre"].forEach(Lo({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(Lo({content:8,type:73})),["p","pre"].forEach(Lo({content:8,type:65})),["s","small","span","del","ins"].forEach(Lo({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Lo({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Lo({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Lo({type:89}));const ec=Object.freeze(ql),xp=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Sp=Object.keys(ec).filter(e=>e!=="canvas"&&e!=="iframe"),xA=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),Ep=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function _s(){return _s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},_s.apply(this,arguments)}function SA({attributes:e={},className:n,children:a=null,selfClose:i=!1,tagName:o}){const c=o;return i?R.createElement(c,_s({className:n},e)):R.createElement(c,_s({className:n},e),a)}class kp{attribute(n,a){return a}node(n,a){return a}}function Cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
115
115
|
* escape-html
|
|
116
116
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
117
117
|
* Copyright(c) 2015 Andreas Lubbe
|
|
@@ -121,26 +121,26 @@ Error generating stack: `+s.message+`
|
|
|
121
121
|
`);return i=i.replace(/\n{3,}/g,`
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
`),i=i.replace(/\n/g,"<br/>"),i}createContainer(e){var n;const a=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||Rp)();if(!a)return;const i=(n=this.props.containerTagName)!==null&&n!==void 0?n:"body",o=i==="body"||i==="fragment"?a.body:a.createElement(i);if(e.match(Ip)){if(process.env.NODE_ENV!=="production")throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?Pp(e):e);return o}extractAttributes(e){const{allowAttributes:n}=this.props,a={};let i=0;return e.nodeType===1&&e.attributes&&([...e.attributes].forEach(o=>{const{name:c,value:u}=o,d=c.toLowerCase(),A=xA[d]||xA[c];if(!this.isSafe(e)||!d.match(Bp)&&(!n&&(!A||A===2)||d.startsWith("on")||u.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let p=d==="style"?this.extractStyleAttribute(e):u;A===4?p=!0:A===3?p=Number.parseFloat(String(p)):A!==5&&(p=String(p)),a[Ep[d]||d]=this.applyAttributeFilters(d,p),i+=1}),i!==0)?a:null}extractStyleAttribute(e){const n={};return Array.from(e.style).forEach(a=>{const i=e.style[a];(typeof i=="string"||typeof i=="number")&&(n[a.replace(/-([a-z])/g,(o,c)=>String(c).toUpperCase())]=i)}),n}getTagConfig(e){const n={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return tc[e]?{...n,...tc[e],tagName:e}:n}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const n=e.getAttribute("href");if(n!=null&&n.startsWith("#"))return!0;const a=e.protocol.toLowerCase();return a===":"||a==="http:"||a==="https:"||a==="mailto:"||a==="tel:"}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,n){const{noHtml:a,noHtmlExceptMatchers:i,allowElements:o,transform:c,transformOnlyAllowList:u}=this.props;let d=[],A="";return[...e.childNodes].forEach(p=>{if(p.nodeType===1){const m=p.nodeName.toLowerCase(),y=this.getTagConfig(m);A&&(d.push(A),A="");const C=this.applyNodeFilters(m,p);if(!C)return;let D;if(c&&(!u||this.isTagAllowed(m))){this.keyIndex+=1;const Q=this.keyIndex;D=this.parseNode(C,y);const E=c(C,D,y);if(E===null)return;if(typeof E<"u")return void d.push(R.cloneElement(E,{key:Q}));this.keyIndex=Q-1}if(this.banned.has(m))return;if(a||i&&m!=="br"||!this.isTagAllowed(m)||!o&&!this.canRenderChild(n,y))d=[...d,...this.parseNode(C,y.tagName?y:n)];else{var h;this.keyIndex+=1;const Q=this.extractAttributes(C),E={tagName:m};Q&&(E.attributes=Q),y.void&&(E.selfClose=y.void),d.push(R.createElement(SA,{...E,key:this.keyIndex},(h=D)!==null&&h!==void 0?h:this.parseNode(C,y)))}}else if(p.nodeType===3){const m=a&&!i?p.textContent:this.applyMatchers(p.textContent||"",n);Array.isArray(m)?d=[...d,...m]:A+=m}}),A&&d.push(A),d}replaceTokens(e,n){if(!e.includes("{{{"))return e;const a=[];let i=e,o=null;for(;o=i.match(Mp);){const[c,u]=o,d=o.index,A=c.includes("/");if(process.env.NODE_ENV!=="production"&&!n[u])throw new Error(`Token "${u}" found but no matching element to replace with.`);d>0&&(a.push(i.slice(0,d)),i=i.slice(d));const{children:p,matcher:h,props:m}=n[u];let y;if(A)y=c.length,a.push(h.createElement(p,m));else{const C=i.match(new RegExp(`{{{/${u}}}}`));if(process.env.NODE_ENV!=="production"&&!C)throw new Error(`Closing token missing for interpolated element "${u}".`);y=C.index+C[0].length,a.push(h.createElement(this.replaceTokens(i.slice(c.length,C.index),n),m))}i=i.slice(y)}return i.length>0&&a.push(i),a.length===0?"":a.length===1&&typeof a[0]=="string"?a[0]:a}};function Op(e){var n;const{attributes:a,className:i,containerTagName:o,content:c,emptyContent:u,parsedContent:d,tagName:A,noWrap:p}=e,h=(n=o??A)!==null&&n!==void 0?n:"span",m=h==="fragment"||p;let y;if(d)y=d;else{const C=new CA(c??"",e).parse();C.length>0&&(y=C)}return y||(y=u),m?R.createElement(R.Fragment,null,y):R.createElement(SA,{attributes:a,className:i,tagName:h},y)}function Fp(e){const{attributes:n,className:a,content:i="",disableFilters:o=!1,disableMatchers:c=!1,emptyContent:u=null,filters:d=[],matchers:A=[],onAfterParse:p=null,onBeforeParse:h=null,tagName:m="span",noWrap:y=!1,...C}=e,D=c?[]:A,Q=o?[]:d,E=h?[h]:[],I=p?[p]:[];D.forEach(j=>{j.onBeforeParse&&E.push(j.onBeforeParse.bind(j)),j.onAfterParse&&I.push(j.onAfterParse.bind(j))});const _=E.reduce((j,z)=>{const W=z(j,e);if(process.env.NODE_ENV!=="production"&&typeof W!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return W},i??""),B=new CA(_,C,D,Q),U=I.reduce((j,z)=>{const W=z(j,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(W))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return W},B.parse());return R.createElement(Op,{attributes:n,className:a,containerTagName:e.containerTagName,emptyContent:u,noWrap:y,parsedContent:U.length===0?void 0:U,tagName:m})}const Lp=({children:e})=>N.jsx("div",{style:{whiteSpace:"normal"},children:N.jsx(Fp,{content:typeof e=="string"?e:""})}),Qp={autoConfig:!0},PA=(e,n,a)=>{var i;if(!e.detail.currPath)return!1;const o=n[e.detail.currPath];return!!o&&(((i=o.renderHtml)==null?void 0:i.map(c=>c.toUpperCase()).includes(a))??!1)},_p=e=>{const n=[];let a="",i=!1;for(let o=0;o<e.length;o++){const c=e[o];c==="<"?i?(n.push(a),a=c):(i=!0,a=c):c===">"?(a+=c,n.push(a),a="",i=!1):i?a+=c:n.push(c)}return a!==""&&n.push(a),n},Hp=e=>{const{getFlow:n}=Qs(),{messages:a,replaceMessages:i}=ql(),{settings:o}=bA(),{hasChatHistoryLoaded:c}=wA(),u={...e,...Qp},d=u.htmlComponent?u.htmlComponent:Lp;R.useEffect(()=>{var h,m;if(c){const y=[...a];for(let C=0;C<y.length&&C<(((h=o.chatHistory)==null?void 0:h.maxEntries)??30);C++){const D=y[C];(m=D.tags)!=null&&m.includes("rcb-html-renderer-plugin:parsed")&&(D.contentWrapper=d)}i(y)}},[c]);const A=async h=>{var m;const y=(m=h.data.message)==null?void 0:m.sender.toUpperCase();typeof h.data.message.content=="string"&&PA(h,n(),y)&&(h.type==="rcb-start-simulate-stream-message"&&(h.data.simulateStreamChunker=_p),h.data.message.contentWrapper=d,h.data.message.tags||(h.data.message.tags=[]),h.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};Bn(ye.PRE_INJECT_MESSAGE,A),Bn(ye.CHUNK_STREAM_MESSAGE,A),Bn(ye.START_STREAM_MESSAGE,A),Bn(ye.START_SIMULATE_STREAM_MESSAGE,A),Bn(ye.START_SPEAK_AUDIO,async h=>{PA(h,n(),"BOT")&&(h.data.textToRead=(m=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(m,"text/html").body.textContent||"":m.replace(/<\/?[^>]+(>|$)/g,""))(h.data.textToRead))});const p={name:"@rcb-plugins/html-renderer"};return u!=null&&u.autoConfig&&(p.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),p},Np=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Up=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zp={};function TA(e,n){return(zp.jsx?Up:Np).test(e)}const jp=/[ \t\n\f\r]/g;function DA(e){return e.replace(jp,"")===""}class Ti{constructor(n,a,i){this.property=n,this.normal=a,i&&(this.space=i)}}function IA(e,n){const a={},i={};let o=-1;for(;++o<e.length;)Object.assign(a,e[o].property),Object.assign(i,e[o].normal);return new Ti(a,i,n)}function nc(e){return e.toLowerCase()}Ti.prototype.property={},Ti.prototype.normal={},Ti.prototype.space=null;class Mn{constructor(n,a){this.property=n,this.attribute=a}}Mn.prototype.space=null,Mn.prototype.boolean=!1,Mn.prototype.booleanish=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.number=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.spaceSeparated=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.defined=!1;let Wp=0;const Oe=Qo(),St=Qo(),BA=Qo(),Ae=Qo(),rt=Qo(),wa=Qo(),xn=Qo();function Qo(){return 2**++Wp}const rc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:St,commaOrSpaceSeparated:xn,commaSeparated:wa,number:Ae,overloadedBoolean:BA,spaceSeparated:rt},Symbol.toStringTag,{value:"Module"})),oc=Object.keys(rc);class ac extends Mn{constructor(n,a,i,o){let c=-1;if(super(n,a),MA(this,"space",o),typeof i=="number")for(;++c<oc.length;){const u=oc[c];MA(this,oc[c],(i&rc[u])===rc[u])}}}function MA(e,n,a){a&&(e[n]=a)}ac.prototype.defined=!0;const Yp={}.hasOwnProperty;function xa(e){const n={},a={};let i;for(i in e.properties)if(Yp.call(e.properties,i)){const o=e.properties[i],c=new ac(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(c.mustUseProperty=!0),n[i]=c,a[nc(i)]=i,a[nc(c.attribute)]=i}return new Ti(n,a,e.space)}const RA=xa({space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),OA=xa({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function FA(e,n){return n in e?e[n]:n}function LA(e,n){return FA(e,n.toLowerCase())}const QA=xa({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:LA,properties:{xmlns:null,xmlnsXLink:null}}),_A=xa({transform:(e,n)=>n==="role"?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:St,ariaAutoComplete:null,ariaBusy:St,ariaChecked:St,ariaColCount:Ae,ariaColIndex:Ae,ariaColSpan:Ae,ariaControls:rt,ariaCurrent:null,ariaDescribedBy:rt,ariaDetails:null,ariaDisabled:St,ariaDropEffect:rt,ariaErrorMessage:null,ariaExpanded:St,ariaFlowTo:rt,ariaGrabbed:St,ariaHasPopup:null,ariaHidden:St,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rt,ariaLevel:Ae,ariaLive:null,ariaModal:St,ariaMultiLine:St,ariaMultiSelectable:St,ariaOrientation:null,ariaOwns:rt,ariaPlaceholder:null,ariaPosInSet:Ae,ariaPressed:St,ariaReadOnly:St,ariaRelevant:null,ariaRequired:St,ariaRoleDescription:rt,ariaRowCount:Ae,ariaRowIndex:Ae,ariaRowSpan:Ae,ariaSelected:St,ariaSetSize:Ae,ariaSort:null,ariaValueMax:Ae,ariaValueMin:Ae,ariaValueNow:Ae,ariaValueText:null,role:null}}),Gp=xa({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:LA,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wa,acceptCharset:rt,accessKey:rt,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:rt,autoFocus:Oe,autoPlay:Oe,blocking:rt,capture:null,charSet:null,checked:Oe,cite:null,className:rt,cols:Ae,colSpan:null,content:null,contentEditable:St,controls:Oe,controlsList:rt,coords:Ae|wa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:BA,draggable:St,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:rt,height:Ae,hidden:Oe,high:Ae,href:null,hrefLang:null,htmlFor:rt,httpEquiv:rt,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:rt,itemRef:rt,itemScope:Oe,itemType:rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:Ae,manifest:null,max:null,maxLength:Ae,media:null,method:null,min:null,minLength:Ae,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:Ae,pattern:null,ping:rt,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:rt,required:Oe,reversed:Oe,rows:Ae,rowSpan:Ae,sandbox:rt,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:Ae,sizes:null,slot:null,span:Ae,spellCheck:St,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ae,step:null,style:null,tabIndex:Ae,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:St,width:Ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rt,axis:null,background:null,bgColor:null,border:Ae,borderColor:null,bottomMargin:Ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:Ae,leftMargin:Ae,link:null,longDesc:null,lowSrc:null,marginHeight:Ae,marginWidth:Ae,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:Ae,rules:null,scheme:null,scrolling:St,standby:null,summary:null,text:null,topMargin:Ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:Ae,security:null,unselectable:null}}),Vp=xa({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:FA,properties:{about:xn,accentHeight:Ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ae,amplitude:Ae,arabicForm:null,ascent:Ae,attributeName:null,attributeType:null,azimuth:Ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ae,by:null,calcMode:null,capHeight:Ae,className:rt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ae,diffuseConstant:Ae,direction:null,display:null,dur:null,divisor:Ae,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ae,enableBackground:null,end:null,event:null,exponent:Ae,externalResourcesRequired:null,fill:null,fillOpacity:Ae,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wa,g2:wa,glyphName:wa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ae,horizOriginX:Ae,horizOriginY:Ae,id:null,ideographic:Ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ae,k:Ae,k1:Ae,k2:Ae,k3:Ae,k4:Ae,kernelMatrix:xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ae,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ae,overlineThickness:Ae,paintOrder:null,panose1:null,path:null,pathLength:Ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ae,pointsAtY:Ae,pointsAtZ:Ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xn,rev:xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xn,requiredFeatures:xn,requiredFonts:xn,requiredFormats:xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ae,specularExponent:Ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ae,strikethroughThickness:Ae,string:null,stroke:null,strokeDashArray:xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ae,strokeOpacity:Ae,strokeWidth:null,style:null,surfaceScale:Ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xn,tabIndex:Ae,tableValues:null,target:null,targetX:Ae,targetY:Ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ae,underlineThickness:Ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ae,values:null,vAlphabetic:Ae,vMathematical:Ae,vectorEffect:null,vHanging:Ae,vIdeographic:Ae,version:null,vertAdvY:Ae,vertOriginX:Ae,vertOriginY:Ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Xp=/^data[-\w.:]+$/i,HA=/-[a-z]/g,Jp=/[A-Z]/g;function Kp(e){return"-"+e.toLowerCase()}function $p(e){return e.charAt(1).toUpperCase()}const Zp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},qp=IA([OA,RA,QA,_A,Gp],"html"),ic=IA([OA,RA,QA,_A,Vp],"svg");function NA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sc,UA,zA,Sa={},eh=function(){if(zA)return Sa;zA=1;var e=Sa&&Sa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=function(a,i){var o=null;if(!a||typeof a!="string")return o;var c=(0,n.default)(a),u=typeof i=="function";return c.forEach(function(d){if(d.type==="declaration"){var A=d.property,p=d.value;u?i(A,p,d):p&&((o=o||{})[A]=p)}}),o};var n=e(function(){if(UA)return sc;UA=1;var a=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,o=/^\s*/,c=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,d=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,A=/^[;\s]*/,p=/^\s+|\s+$/g,h="";function m(y){return y?y.replace(p,h):h}return sc=function(y,C){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];C=C||{};var D=1,Q=1;function E(J){var Y=J.match(i);Y&&(D+=Y.length);var ee=J.lastIndexOf(`
|
|
125
|
-
`);Q=~ee?J.length-ee:Q+J.length}function I(){var J={line:D,column:Q};return function(Y){return Y.position=new _(J),j(),Y}}function _(J){this.start=J,this.end={line:D,column:Q},this.source=C.source}function B(J){var Y=new Error(C.source+":"+D+":"+Q+": "+J);if(Y.reason=J,Y.filename=C.source,Y.line=D,Y.column=Q,Y.source=y,!C.silent)throw Y}function U(J){var Y=J.exec(y);if(Y){var ee=Y[0];return E(ee),y=y.slice(ee.length),Y}}function j(){U(o)}function z(J){var Y;for(J=J||[];Y=W();)Y!==!1&&J.push(Y);return J}function W(){var J=I();if(y.charAt(0)=="/"&&y.charAt(1)=="*"){for(var Y=2;h!=y.charAt(Y)&&(y.charAt(Y)!="*"||y.charAt(Y+1)!="/");)++Y;if(Y+=2,h===y.charAt(Y-1))return B("End of comment missing");var ee=y.slice(2,Y-2);return Q+=2,E(ee),y=y.slice(Y),Q+=2,J({type:"comment",comment:ee})}}function te(){var J=I(),Y=U(c);if(Y){if(W(),!U(u))return B("property missing ':'");var ee=U(d),Z=J({type:"declaration",property:m(Y[0].replace(a,h)),value:ee?m(ee[0].replace(a,h)):h});return U(A),Z}}return _.prototype.content=y,j(),function(){var J,Y=[];for(z(Y);J=te();)J!==!1&&(Y.push(J),z(Y));return Y}()},sc}());return Sa}();const jA=NA(eh),th=jA.default||jA,WA=YA("end"),lc=YA("start");function YA(e){return function(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function Di(e){return e&&typeof e=="object"?"position"in e||"type"in e?GA(e.position):"start"in e||"end"in e?GA(e):"line"in e||"column"in e?cc(e):"":""}function cc(e){return VA(e&&e.line)+":"+VA(e&&e.column)}function GA(e){return cc(e&&e.start)+"-"+cc(e&&e.end)}function VA(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(n,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let o="",c={},u=!1;if(a&&(c="line"in a&&"column"in a||"start"in a&&"end"in a?{place:a}:"type"in a?{ancestors:[a],place:a.position}:{...a}),typeof n=="string"?o=n:!c.cause&&n&&(u=!0,o=n.message,c.cause=n),!c.ruleId&&!c.source&&typeof i=="string"){const A=i.indexOf(":");A===-1?c.ruleId=i:(c.source=i.slice(0,A),c.ruleId=i.slice(A+1))}if(!c.place&&c.ancestors&&c.ancestors){const A=c.ancestors[c.ancestors.length-1];A&&(c.place=A.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=d?d.line:void 0,this.name=Di(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=u&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual,this.expected,this.note,this.url}}zt.prototype.file="",zt.prototype.name="",zt.prototype.reason="",zt.prototype.message="",zt.prototype.stack="",zt.prototype.column=void 0,zt.prototype.line=void 0,zt.prototype.ancestors=void 0,zt.prototype.cause=void 0,zt.prototype.fatal=void 0,zt.prototype.place=void 0,zt.prototype.ruleId=void 0,zt.prototype.source=void 0;const uc={}.hasOwnProperty,nh=new Map,rh=/[A-Z]/g,oh=/-([a-z])/g,ah=new Set(["table","tbody","thead","tfoot","tr"]),ih=new Set(["td","th"]),XA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sh(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=function(u,d){return A;function A(p,h,m,y){const C=Array.isArray(m.children),D=lc(p);return d(h,m,y,C,{columnNumber:D?D.column-1:void 0,fileName:u,lineNumber:D?D.line:void 0},void 0)}}(a,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=function(u,d,A){return p;function p(h,m,y,C){const D=Array.isArray(y.children)?A:d;return C?D(m,y,C):D(m,y)}}(0,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?ic:qp,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},c=JA(o,e,void 0);return c&&typeof c!="string"?c:o.create(e,o.Fragment,{children:c||void 0},void 0)}function JA(e,n,a){return n.type==="element"?function(i,o,c){const u=i.schema;let d=u;o.tagName.toLowerCase()==="svg"&&u.space==="html"&&(d=ic,i.schema=d),i.ancestors.push(o);const A=$A(i,o.tagName,!1),p=function(m,y){const C={};let D,Q;for(Q in y.properties)if(Q!=="children"&&uc.call(y.properties,Q)){const E=lh(m,Q,y.properties[Q]);if(E){const[I,_]=E;m.tableCellAlignToStyle&&I==="align"&&typeof _=="string"&&ih.has(y.tagName)?D=_:C[I]=_}}return D&&((C.style||(C.style={}))[m.stylePropertyNameCase==="css"?"text-align":"textAlign"]=D),C}(i,o);let h=dc(i,o);return ah.has(o.tagName)&&(h=h.filter(function(m){return typeof m!="string"||!function(y){return typeof y=="object"?y.type==="text"&&DA(y.value):DA(y)}(m)})),KA(i,p,A,o),Ac(p,h),i.ancestors.pop(),i.schema=u,i.create(o,A,p,c)}(e,n,a):n.type==="mdxFlowExpression"||n.type==="mdxTextExpression"?function(i,o){if(o.data&&o.data.estree&&i.evaluater){const c=o.data.estree.body[0];return c.type,i.evaluater.evaluateExpression(c.expression)}Ii(i,o.position)}(e,n):n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?function(i,o,c){const u=i.schema;let d=u;o.name==="svg"&&u.space==="html"&&(d=ic,i.schema=d),i.ancestors.push(o);const A=o.name===null?i.Fragment:$A(i,o.name,!0),p=function(m,y){const C={};for(const D of y.attributes)if(D.type==="mdxJsxExpressionAttribute")if(D.data&&D.data.estree&&m.evaluater){const Q=D.data.estree.body[0];Q.type;const E=Q.expression;E.type;const I=E.properties[0];I.type,Object.assign(C,m.evaluater.evaluateExpression(I.argument))}else Ii(m,y.position);else{const Q=D.name;let E;if(D.value&&typeof D.value=="object")if(D.value.data&&D.value.data.estree&&m.evaluater){const I=D.value.data.estree.body[0];I.type,E=m.evaluater.evaluateExpression(I.expression)}else Ii(m,y.position);else E=D.value===null||D.value;C[Q]=E}return C}(i,o),h=dc(i,o);return KA(i,p,A,o),Ac(p,h),i.ancestors.pop(),i.schema=u,i.create(o,A,p,c)}(e,n,a):n.type==="mdxjsEsm"?function(i,o){if(o.data&&o.data.estree&&i.evaluater)return i.evaluater.evaluateProgram(o.data.estree);Ii(i,o.position)}(e,n):n.type==="root"?function(i,o,c){const u={};return Ac(u,dc(i,o)),i.create(o,i.Fragment,u,c)}(e,n,a):n.type==="text"?function(i,o){return o.value}(0,n):void 0}function KA(e,n,a,i){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=i)}function Ac(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function dc(e,n){const a=[];let i=-1;const o=e.passKeys?new Map:nh;for(;++i<n.children.length;){const c=n.children[i];let u;if(e.passKeys){const A=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(A){const p=o.get(A)||0;u=A+"-"+p,o.set(A,p+1)}}const d=JA(e,c,u);d!==void 0&&a.push(d)}return a}function lh(e,n,a){const i=function(o,c){const u=nc(c);let d=c,A=Mn;if(u in o.normal)return o.property[o.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&Xp.test(c)){if(c.charAt(4)==="-"){const p=c.slice(5).replace(HA,$p);d="data"+p.charAt(0).toUpperCase()+p.slice(1)}else{const p=c.slice(4);if(!HA.test(p)){let h=p.replace(Jp,Kp);h.charAt(0)!=="-"&&(h="-"+h),c="data"+h}}A=ac}return new A(d,c)}(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?function(o){const c={};return(o[o.length-1]===""?[...o,""]:o).join((c.padRight?" ":"")+","+(c.padLeft===!1?"":" ")).trim()}(a):function(o){return o.join(" ").trim()}(a)),i.property==="style"){let o=typeof a=="object"?a:function(c,u){const d={};try{th(u,A)}catch(p){if(!c.ignoreInvalidStyle){const h=p,m=new zt("Cannot parse `style` attribute",{ancestors:c.ancestors,cause:h,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw m.file=c.filePath||void 0,m.url=XA+"#cannot-parse-style-attribute",m}}return d;function A(p,h){let m=p;m.slice(0,2)!=="--"&&(m.slice(0,4)==="-ms-"&&(m="ms-"+m.slice(4)),m=m.replace(oh,uh)),d[m]=h}}(e,String(a));return e.stylePropertyNameCase==="css"&&(o=function(c){const u={};let d;for(d in c)uc.call(c,d)&&(u[ch(d)]=c[d]);return u}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?Zp[i.property]||i.property:i.attribute,a]}}function $A(e,n,a){let i;if(a)if(n.includes(".")){const o=n.split(".");let c,u=-1;for(;++u<o.length;){const d=TA(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!(!u||d.type!=="Literal"),optional:!1}:d}i=c}else i=TA(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};else i={type:"Literal",value:n};if(i.type==="Literal"){const o=i.value;return uc.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ii(e)}function Ii(e,n){const a=new zt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=XA+"#cannot-handle-mdx-estrees-without-createevaluater",a}function ch(e){let n=e.replace(rh,Ah);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function uh(e,n){return n.toUpperCase()}function Ah(e){return"-"+e.toLowerCase()}const fc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Hs={};function ZA(e,n,a){if(function(i){return!(!i||typeof i!="object")}(e)){if("value"in e)return e.type!=="html"||a?e.value:"";if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return qA(e.children,n,a)}return Array.isArray(e)?qA(e,n,a):""}function qA(e,n,a){const i=[];let o=-1;for(;++o<e.length;)i[o]=ZA(e[o],n,a);return i.join("")}const ed=document.createElement("i");function pc(e){const n="&"+e+";";ed.innerHTML=n;const a=ed.textContent;return(a.charCodeAt(a.length-1)!==59||e==="semi")&&a!==n&&a}function ur(e,n,a,i){const o=e.length;let c,u=0;if(n=n<0?-n>o?0:o+n:n>o?o:n,a=a>0?a:0,i.length<1e4)c=Array.from(i),c.unshift(n,a),e.splice(...c);else for(a&&e.splice(n,a);u<i.length;)c=i.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function Rn(e,n){return e.length>0?(ur(e,e.length,0,n),e):n}const td={}.hasOwnProperty;function dh(e){const n={};let a=-1;for(;++a<e.length;)fh(n,e[a]);return n}function fh(e,n){let a;for(a in n){const i=(td.call(e,a)?e[a]:void 0)||(e[a]={}),o=n[a];let c;if(o)for(c in o){td.call(i,c)||(i[c]=[]);const u=o[c];ph(i[c],Array.isArray(u)?u:u?[u]:[])}}}function ph(e,n){let a=-1;const i=[];for(;++a<n.length;)(n[a].add==="after"?e:i).push(n[a]);ur(e,0,0,i)}function nd(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||!(65535&~a)||(65535&a)==65534||a>1114111?"�":String.fromCodePoint(a)}function Ea(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ar=Zr(/[A-Za-z]/),Sn=Zr(/[\dA-Za-z]/),hh=Zr(/[#-'*+\--9=?A-Z^-~]/);function hc(e){return e!==null&&(e<32||e===127)}const gc=Zr(/\d/),gh=Zr(/[\dA-Fa-f]/),mh=Zr(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function an(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const vh=Zr(new RegExp("\\p{P}|\\p{S}","u")),yh=Zr(/\s/);function Zr(e){return function(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ka(e){const n=[];let a=-1,i=0,o=0;for(;++a<e.length;){const c=e.charCodeAt(a);let u="";if(c===37&&Sn(e.charCodeAt(a+1))&&Sn(e.charCodeAt(a+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(u=String.fromCharCode(c));else if(c>55295&&c<57344){const d=e.charCodeAt(a+1);c<56320&&d>56319&&d<57344?(u=String.fromCharCode(c,d),o=1):u="�"}else u=String.fromCharCode(c);u&&(n.push(e.slice(i,a),encodeURIComponent(u)),i=a+o+1,u=""),o&&(a+=o,o=0)}return n.join("")+e.slice(i)}function ot(e,n,a,i){const o=i?i-1:Number.POSITIVE_INFINITY;let c=0;return function(d){return Ve(d)?(e.enter(a),u(d)):n(d)};function u(d){return Ve(d)&&c++<o?(e.consume(d),u):(e.exit(a),n(d))}}const bh={tokenize:function(e){const n=e.attempt(this.parser.constructs.contentInitial,function(c){return c===null?void e.consume(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,n,"linePrefix"))},function(c){return e.enter("paragraph"),i(c)});let a;return n;function i(c){const u=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=u),a=u,o(c)}function o(c){return c===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(c)):Be(c)?(e.consume(c),e.exit("chunkText"),i):(e.consume(c),o)}}},wh={tokenize:function(e){const n=this,a=[];let i,o,c,u=0;return d;function d(B){if(u<a.length){const U=a[u];return n.containerState=U[1],e.attempt(U[0].continuation,A,p)(B)}return p(B)}function A(B){if(u++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&_();const U=n.events.length;let j,z=U;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){j=n.events[z][1].end;break}I(u);let W=U;for(;W<n.events.length;)n.events[W][1].end={...j},W++;return ur(n.events,z+1,0,n.events.slice(U)),n.events.length=W,p(B)}return d(B)}function p(B){if(u===a.length){if(!i)return y(B);if(i.currentConstruct&&i.currentConstruct.concrete)return D(B);n.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(rd,h,m)(B)}function h(B){return i&&_(),I(u),y(B)}function m(B){return n.parser.lazy[n.now().line]=u!==a.length,c=n.now().offset,D(B)}function y(B){return n.containerState={},e.attempt(rd,C,D)(B)}function C(B){return u++,a.push([n.currentConstruct,n.containerState]),y(B)}function D(B){return B===null?(i&&_(),I(0),void e.consume(B)):(i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),Q(B))}function Q(B){return B===null?(E(e.exit("chunkFlow"),!0),I(0),void e.consume(B)):Be(B)?(e.consume(B),E(e.exit("chunkFlow")),u=0,n.interrupt=void 0,d):(e.consume(B),Q)}function E(B,U){const j=n.sliceStream(B);if(U&&j.push(null),B.previous=o,o&&(o.next=B),o=B,i.defineSkip(B.start),i.write(j),n.parser.lazy[B.start.line]){let z=i.events.length;for(;z--;)if(i.events[z][1].start.offset<c&&(!i.events[z][1].end||i.events[z][1].end.offset>c))return;const W=n.events.length;let te,J,Y=W;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){if(te){J=n.events[Y][1].end;break}te=!0}for(I(u),z=W;z<n.events.length;)n.events[z][1].end={...J},z++;ur(n.events,Y+1,0,n.events.slice(W)),n.events.length=z}}function I(B){let U=a.length;for(;U-- >B;){const j=a[U];n.containerState=j[1],j[0].exit.call(n,e)}a.length=B}function _(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}},rd={tokenize:function(e,n,a){return ot(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function od(e){return e===null||an(e)||yh(e)?1:vh(e)?2:void 0}function mc(e,n,a){const i=[];let o=-1;for(;++o<e.length;){const c=e[o].resolveAll;c&&!i.includes(c)&&(n=c(n,a),i.push(c))}return n}const vc={name:"attention",resolveAll:function(e,n){let a,i,o,c,u,d,A,p,h=-1;for(;++h<e.length;)if(e[h][0]==="enter"&&e[h][1].type==="attentionSequence"&&e[h][1]._close){for(a=h;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[a][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;d=e[a][1].end.offset-e[a][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const m={...e[a][1].end},y={...e[h][1].start};ad(m,-d),ad(y,d),c={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[a][1].end}},u={type:d>1?"strongSequence":"emphasisSequence",start:{...e[h][1].start},end:y},o={type:d>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[h][1].start}},i={type:d>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[a][1].end={...c.start},e[h][1].start={...u.end},A=[],e[a][1].end.offset-e[a][1].start.offset&&(A=Rn(A,[["enter",e[a][1],n],["exit",e[a][1],n]])),A=Rn(A,[["enter",i,n],["enter",c,n],["exit",c,n],["enter",o,n]]),A=Rn(A,mc(n.parser.constructs.insideSpan.null,e.slice(a+1,h),n)),A=Rn(A,[["exit",o,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[h][1].end.offset-e[h][1].start.offset?(p=2,A=Rn(A,[["enter",e[h][1],n],["exit",e[h][1],n]])):p=0,ur(e,a-1,h-a+3,A),h=a+A.length-p-2;break}}for(h=-1;++h<e.length;)e[h][1].type==="attentionSequence"&&(e[h][1].type="data");return e},tokenize:function(e,n){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,o=od(i);let c;return function(d){return c=d,e.enter("attentionSequence"),u(d)};function u(d){if(d===c)return e.consume(d),u;const A=e.exit("attentionSequence"),p=od(d),h=!p||p===2&&o||a.includes(d),m=!o||o===2&&p||a.includes(i);return A._open=!!(c===42?h:h&&(o||!m)),A._close=!!(c===42?m:m&&(p||!h)),n(d)}}};function ad(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const xh={name:"autolink",tokenize:function(e,n,a){let i=0;return function(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(y){return Ar(y)?(e.consume(y),c):y===64?a(y):A(y)}function c(y){return y===43||y===45||y===46||Sn(y)?(i=1,u(y)):A(y)}function u(y){return y===58?(e.consume(y),i=0,d):(y===43||y===45||y===46||Sn(y))&&i++<32?(e.consume(y),u):(i=0,A(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):y===null||y===32||y===60||hc(y)?a(y):(e.consume(y),d)}function A(y){return y===64?(e.consume(y),p):hh(y)?(e.consume(y),A):a(y)}function p(y){return Sn(y)?h(y):a(y)}function h(y){return y===46?(e.consume(y),i=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):m(y)}function m(y){if((y===45||Sn(y))&&i++<63){const C=y===45?m:h;return e.consume(y),C}return a(y)}}},Ns={partial:!0,tokenize:function(e,n,a){return function(o){return Ve(o)?ot(e,i,"linePrefix")(o):i(o)};function i(o){return o===null||Be(o)?n(o):a(o)}}},id={continuation:{tokenize:function(e,n,a){const i=this;return function(c){return Ve(c)?ot(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)};function o(c){return e.attempt(id,n,a)(c)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,n,a){const i=this;return function(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return a(c)};function o(c){return Ve(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}},sd={name:"characterEscape",tokenize:function(e,n,a){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i};function i(o){return mh(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(o)}}},ld={name:"characterReference",tokenize:function(e,n,a){const i=this;let o,c,u=0;return function(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),d};function d(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),A):(e.enter("characterReferenceValue"),o=31,c=Sn,p(h))}function A(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=gh,p):(e.enter("characterReferenceValue"),o=7,c=gc,p(h))}function p(h){if(h===59&&u){const m=e.exit("characterReferenceValue");return c!==Sn||pc(i.sliceSerialize(m))?(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):a(h)}return c(h)&&u++<o?(e.consume(h),p):a(h)}}},cd={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return c===null?a(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)};function o(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}},ud={concrete:!0,name:"codeFenced",tokenize:function(e,n,a){const i=this,o={partial:!0,tokenize:function(B,U,j){let z=0;return W;function W(Z){return B.enter("lineEnding"),B.consume(Z),B.exit("lineEnding"),te}function te(Z){return B.enter("codeFencedFence"),Ve(Z)?ot(B,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):J(Z)}function J(Z){return Z===c?(B.enter("codeFencedFenceSequence"),Y(Z)):j(Z)}function Y(Z){return Z===c?(z++,B.consume(Z),Y):z>=d?(B.exit("codeFencedFenceSequence"),Ve(Z)?ot(B,ee,"whitespace")(Z):ee(Z)):j(Z)}function ee(Z){return Z===null||Be(Z)?(B.exit("codeFencedFence"),U(Z)):j(Z)}}};let c,u=0,d=0;return function(B){return function(U){const j=i.events[i.events.length-1];return u=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,c=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),A(U)}(B)};function A(B){return B===c?(d++,e.consume(B),A):d<3?a(B):(e.exit("codeFencedFenceSequence"),Ve(B)?ot(e,p,"whitespace")(B):p(B))}function p(B){return B===null||Be(B)?(e.exit("codeFencedFence"),i.interrupt?n(B):e.check(cd,C,_)(B)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(B))}function h(B){return B===null||Be(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(B)):Ve(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ot(e,m,"whitespace")(B)):B===96&&B===c?a(B):(e.consume(B),h)}function m(B){return B===null||Be(B)?p(B):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(B))}function y(B){return B===null||Be(B)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(B)):B===96&&B===c?a(B):(e.consume(B),y)}function C(B){return e.attempt(o,_,D)(B)}function D(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),Q}function Q(B){return u>0&&Ve(B)?ot(e,E,"linePrefix",u+1)(B):E(B)}function E(B){return B===null||Be(B)?e.check(cd,C,_)(B):(e.enter("codeFlowValue"),I(B))}function I(B){return B===null||Be(B)?(e.exit("codeFlowValue"),E(B)):(e.consume(B),I)}function _(B){return e.exit("codeFenced"),n(B)}}},yc={name:"codeIndented",tokenize:function(e,n,a){const i=this;return function(A){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(A)};function o(A){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(A):a(A)}function c(A){return A===null?d(A):Be(A)?e.attempt(Sh,c,d)(A):(e.enter("codeFlowValue"),u(A))}function u(A){return A===null||Be(A)?(e.exit("codeFlowValue"),c(A)):(e.consume(A),u)}function d(A){return e.exit("codeIndented"),n(A)}}},Sh={partial:!0,tokenize:function(e,n,a){const i=this;return o;function o(u){return i.parser.lazy[i.now().line]?a(u):Be(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):ot(e,c,"linePrefix",5)(u)}function c(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(u):Be(u)?o(u):a(u)}}},Eh={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let n,a,i=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[i][1].type!=="lineEnding"&&e[i][1].type!=="space")){for(n=o;++n<i;)if(e[n][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[i][1].type="codeTextPadding",o+=2,i-=2;break}}for(n=o-1,i++;++n<=i;)a===void 0?n!==i&&e[n][1].type!=="lineEnding"&&(a=n):(n===i||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),i-=n-a-2,n=a+2),a=void 0);return e},tokenize:function(e,n,a){let i,o,c=0;return function(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)};function u(h){return h===96?(e.consume(h),c++,u):(e.exit("codeTextSequence"),d(h))}function d(h){return h===null?a(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),d):h===96?(o=e.enter("codeTextSequence"),i=0,p(h)):Be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("codeTextData"),A(h))}function A(h){return h===null||h===32||h===96||Be(h)?(e.exit("codeTextData"),d(h)):(e.consume(h),A)}function p(h){return h===96?(e.consume(h),i++,p):i===c?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(o.type="codeTextData",A(h))}}};class kh{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,a){const i=a??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,a,i){const o=a||0;this.setCursor(Math.trunc(n));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&Bi(this.left,i),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Bi(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Bi(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const a=this.left.splice(n,Number.POSITIVE_INFINITY);Bi(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Bi(this.left,a.reverse())}}}function Bi(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function Ad(e){const n={};let a,i,o,c,u,d,A,p=-1;const h=new kh(e);for(;++p<h.length;){for(;p in n;)p=n[p];if(a=h.get(p),p&&a[1].type==="chunkFlow"&&h.get(p-1)[1].type==="listItemPrefix"&&(d=a[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,Ch(h,p)),p=n[p],A=!0);else if(a[1]._container){for(o=p,i=void 0;o--;)if(c=h.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),c[1].type="lineEnding",i=o);else if(c[1].type!=="linePrefix")break;i&&(a[1].end={...h.get(i)[1].start},u=h.slice(i,p),u.unshift(a),h.splice(i,p-i+1,u))}}return ur(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!A}function Ch(e,n){const a=e.get(n)[1],i=e.get(n)[2];let o=n-1;const c=[],u=a._tokenizer||i.parser[a.contentType](a.start),d=u.events,A=[],p={};let h,m,y=-1,C=a,D=0,Q=0;const E=[Q];for(;C;){for(;e.get(++o)[1]!==C;);c.push(o),C._tokenizer||(h=i.sliceStream(C),C.next||h.push(null),m&&u.defineSkip(C.start),C._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(h),C._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=C,C=C.next}for(C=a;++y<d.length;)d[y][0]==="exit"&&d[y-1][0]==="enter"&&d[y][1].type===d[y-1][1].type&&d[y][1].start.line!==d[y][1].end.line&&(Q=y+1,E.push(Q),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(u.events=[],C?(C._tokenizer=void 0,C.previous=void 0):E.pop(),y=E.length;y--;){const I=d.slice(E[y],E[y+1]),_=c.pop();A.push([_,_+I.length-1]),e.splice(_,2,I)}for(A.reverse(),y=-1;++y<A.length;)p[D+A[y][0]]=D+A[y][1],D+=A[y][1]-A[y][0]-1;return p}const Ph={resolve:function(e){return Ad(e),e},tokenize:function(e,n){let a;return function(u){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),i(u)};function i(u){return u===null?o(u):Be(u)?e.check(Th,c,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function c(u){return e.consume(u),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,i}}},Th={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,o,"linePrefix")};function o(c){if(c===null||Be(c))return a(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,a,n)(c)}}};function dd(e,n,a,i,o,c,u,d,A){const p=A||Number.POSITIVE_INFINITY;let h=0;return function(E){return E===60?(e.enter(i),e.enter(o),e.enter(c),e.consume(E),e.exit(c),m):E===null||E===32||E===41||hc(E)?a(E):(e.enter(i),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),D(E))};function m(E){return E===62?(e.enter(c),e.consume(E),e.exit(c),e.exit(o),e.exit(i),n):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===62?(e.exit("chunkString"),e.exit(d),m(E)):E===null||E===60||Be(E)?a(E):(e.consume(E),E===92?C:y)}function C(E){return E===60||E===62||E===92?(e.consume(E),y):y(E)}function D(E){return h||E!==null&&E!==41&&!an(E)?h<p&&E===40?(e.consume(E),h++,D):E===41?(e.consume(E),h--,D):E===null||E===32||E===40||hc(E)?a(E):(e.consume(E),E===92?Q:D):(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(i),n(E))}function Q(E){return E===40||E===41||E===92?(e.consume(E),D):D(E)}}function fd(e,n,a,i,o,c){const u=this;let d,A=0;return function(y){return e.enter(i),e.enter(o),e.consume(y),e.exit(o),e.enter(c),p};function p(y){return A>999||y===null||y===91||y===93&&!d||y===94&&!A&&"_hiddenFootnoteSupport"in u.parser.constructs?a(y):y===93?(e.exit(c),e.enter(o),e.consume(y),e.exit(o),e.exit(i),n):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||Be(y)||A++>999?(e.exit("chunkString"),p(y)):(e.consume(y),d||(d=!Ve(y)),y===92?m:h)}function m(y){return y===91||y===92||y===93?(e.consume(y),A++,h):h(y)}}function pd(e,n,a,i,o,c){let u;return function(m){return m===34||m===39||m===40?(e.enter(i),e.enter(o),e.consume(m),e.exit(o),u=m===40?41:m,d):a(m)};function d(m){return m===u?(e.enter(o),e.consume(m),e.exit(o),e.exit(i),n):(e.enter(c),A(m))}function A(m){return m===u?(e.exit(c),d(u)):m===null?a(m):Be(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ot(e,A,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===u||m===null||Be(m)?(e.exit("chunkString"),A(m)):(e.consume(m),m===92?h:p)}function h(m){return m===u||m===92?(e.consume(m),p):p(m)}}function Mi(e,n){let a;return function i(o){return Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a=!0,i):Ve(o)?ot(e,i,a?"linePrefix":"lineSuffix")(o):n(o)}}const Dh={name:"definition",tokenize:function(e,n,a){const i=this;let o;return function(m){return e.enter("definition"),function(y){return fd.call(i,e,c,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}(m)};function c(m){return o=Ea(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):a(m)}function u(m){return an(m)?Mi(e,d)(m):d(m)}function d(m){return dd(e,A,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function A(m){return e.attempt(Ih,p,p)(m)}function p(m){return Ve(m)?ot(e,h,"whitespace")(m):h(m)}function h(m){return m===null||Be(m)?(e.exit("definition"),i.parser.defined.push(o),n(m)):a(m)}}},Ih={partial:!0,tokenize:function(e,n,a){return function(u){return an(u)?Mi(e,i)(u):a(u)};function i(u){return pd(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return Ve(u)?ot(e,c,"whitespace")(u):c(u)}function c(u){return u===null||Be(u)?n(u):a(u)}}},Bh={name:"hardBreakEscape",tokenize:function(e,n,a){return function(o){return e.enter("hardBreakEscape"),e.consume(o),i};function i(o){return Be(o)?(e.exit("hardBreakEscape"),n(o)):a(o)}}},Mh={name:"headingAtx",resolve:function(e,n){let a,i,o=e.length-2,c=3;return e[c][1].type==="whitespace"&&(c+=2),o-2>c&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(c===o-1||o-4>c&&e[o-2][1].type==="whitespace")&&(o-=c+1===o?2:4),o>c&&(a={type:"atxHeadingText",start:e[c][1].start,end:e[o][1].end},i={type:"chunkText",start:e[c][1].start,end:e[o][1].end,contentType:"text"},ur(e,c,o-c+1,[["enter",a,n],["enter",i,n],["exit",i,n],["exit",a,n]])),e},tokenize:function(e,n,a){let i=0;return function(A){return e.enter("atxHeading"),function(p){return e.enter("atxHeadingSequence"),o(p)}(A)};function o(A){return A===35&&i++<6?(e.consume(A),o):A===null||an(A)?(e.exit("atxHeadingSequence"),c(A)):a(A)}function c(A){return A===35?(e.enter("atxHeadingSequence"),u(A)):A===null||Be(A)?(e.exit("atxHeading"),n(A)):Ve(A)?ot(e,c,"whitespace")(A):(e.enter("atxHeadingText"),d(A))}function u(A){return A===35?(e.consume(A),u):(e.exit("atxHeadingSequence"),c(A))}function d(A){return A===null||A===35||an(A)?(e.exit("atxHeadingText"),c(A)):(e.consume(A),d)}}},Rh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hd=["pre","script","style","textarea"],Oh={concrete:!0,name:"htmlFlow",resolveTo:function(e){let n=e.length;for(;n--&&(e[n][0]!=="enter"||e[n][1].type!=="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},tokenize:function(e,n,a){const i=this;let o,c,u,d,A;return function(O){return function(de){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(de),p}(O)};function p(O){return O===33?(e.consume(O),h):O===47?(e.consume(O),c=!0,C):O===63?(e.consume(O),o=3,i.interrupt?n:me):Ar(O)?(e.consume(O),u=String.fromCharCode(O),D):a(O)}function h(O){return O===45?(e.consume(O),o=2,m):O===91?(e.consume(O),o=5,d=0,y):Ar(O)?(e.consume(O),o=4,i.interrupt?n:me):a(O)}function m(O){return O===45?(e.consume(O),i.interrupt?n:me):a(O)}function y(O){return O==="CDATA[".charCodeAt(d++)?(e.consume(O),d===6?i.interrupt?n:Y:y):a(O)}function C(O){return Ar(O)?(e.consume(O),u=String.fromCharCode(O),D):a(O)}function D(O){if(O===null||O===47||O===62||an(O)){const de=O===47,Ee=u.toLowerCase();return de||c||!hd.includes(Ee)?Rh.includes(u.toLowerCase())?(o=6,de?(e.consume(O),Q):i.interrupt?n(O):Y(O)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(O):c?E(O):I(O)):(o=1,i.interrupt?n(O):Y(O))}return O===45||Sn(O)?(e.consume(O),u+=String.fromCharCode(O),D):a(O)}function Q(O){return O===62?(e.consume(O),i.interrupt?n:Y):a(O)}function E(O){return Ve(O)?(e.consume(O),E):te(O)}function I(O){return O===47?(e.consume(O),te):O===58||O===95||Ar(O)?(e.consume(O),_):Ve(O)?(e.consume(O),I):te(O)}function _(O){return O===45||O===46||O===58||O===95||Sn(O)?(e.consume(O),_):B(O)}function B(O){return O===61?(e.consume(O),U):Ve(O)?(e.consume(O),B):I(O)}function U(O){return O===null||O===60||O===61||O===62||O===96?a(O):O===34||O===39?(e.consume(O),A=O,j):Ve(O)?(e.consume(O),U):z(O)}function j(O){return O===A?(e.consume(O),A=null,W):O===null||Be(O)?a(O):(e.consume(O),j)}function z(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||an(O)?B(O):(e.consume(O),z)}function W(O){return O===47||O===62||Ve(O)?I(O):a(O)}function te(O){return O===62?(e.consume(O),J):a(O)}function J(O){return O===null||Be(O)?Y(O):Ve(O)?(e.consume(O),J):a(O)}function Y(O){return O===45&&o===2?(e.consume(O),ue):O===60&&o===1?(e.consume(O),se):O===62&&o===4?(e.consume(O),M):O===63&&o===3?(e.consume(O),me):O===93&&o===5?(e.consume(O),ge):!Be(O)||o!==6&&o!==7?O===null||Be(O)?(e.exit("htmlFlowData"),ee(O)):(e.consume(O),Y):(e.exit("htmlFlowData"),e.check(Fh,fe,ee)(O))}function ee(O){return e.check(Lh,Z,fe)(O)}function Z(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ie}function ie(O){return O===null||Be(O)?ee(O):(e.enter("htmlFlowData"),Y(O))}function ue(O){return O===45?(e.consume(O),me):Y(O)}function se(O){return O===47?(e.consume(O),u="",xe):Y(O)}function xe(O){if(O===62){const de=u.toLowerCase();return hd.includes(de)?(e.consume(O),M):Y(O)}return Ar(O)&&u.length<8?(e.consume(O),u+=String.fromCharCode(O),xe):Y(O)}function ge(O){return O===93?(e.consume(O),me):Y(O)}function me(O){return O===62?(e.consume(O),M):O===45&&o===2?(e.consume(O),me):Y(O)}function M(O){return O===null||Be(O)?(e.exit("htmlFlowData"),fe(O)):(e.consume(O),M)}function fe(O){return e.exit("htmlFlow"),n(O)}}},Fh={partial:!0,tokenize:function(e,n,a){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ns,n,a)}}},Lh={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):a(c)};function o(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}},Qh={name:"htmlText",tokenize:function(e,n,a){const i=this;let o,c,u;return function(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),d};function d(M){return M===33?(e.consume(M),A):M===47?(e.consume(M),U):M===63?(e.consume(M),_):Ar(M)?(e.consume(M),W):a(M)}function A(M){return M===45?(e.consume(M),p):M===91?(e.consume(M),c=0,C):Ar(M)?(e.consume(M),I):a(M)}function p(M){return M===45?(e.consume(M),y):a(M)}function h(M){return M===null?a(M):M===45?(e.consume(M),m):Be(M)?(u=h,xe(M)):(e.consume(M),h)}function m(M){return M===45?(e.consume(M),y):h(M)}function y(M){return M===62?se(M):M===45?m(M):h(M)}function C(M){return M==="CDATA[".charCodeAt(c++)?(e.consume(M),c===6?D:C):a(M)}function D(M){return M===null?a(M):M===93?(e.consume(M),Q):Be(M)?(u=D,xe(M)):(e.consume(M),D)}function Q(M){return M===93?(e.consume(M),E):D(M)}function E(M){return M===62?se(M):M===93?(e.consume(M),E):D(M)}function I(M){return M===null||M===62?se(M):Be(M)?(u=I,xe(M)):(e.consume(M),I)}function _(M){return M===null?a(M):M===63?(e.consume(M),B):Be(M)?(u=_,xe(M)):(e.consume(M),_)}function B(M){return M===62?se(M):_(M)}function U(M){return Ar(M)?(e.consume(M),j):a(M)}function j(M){return M===45||Sn(M)?(e.consume(M),j):z(M)}function z(M){return Be(M)?(u=z,xe(M)):Ve(M)?(e.consume(M),z):se(M)}function W(M){return M===45||Sn(M)?(e.consume(M),W):M===47||M===62||an(M)?te(M):a(M)}function te(M){return M===47?(e.consume(M),se):M===58||M===95||Ar(M)?(e.consume(M),J):Be(M)?(u=te,xe(M)):Ve(M)?(e.consume(M),te):se(M)}function J(M){return M===45||M===46||M===58||M===95||Sn(M)?(e.consume(M),J):Y(M)}function Y(M){return M===61?(e.consume(M),ee):Be(M)?(u=Y,xe(M)):Ve(M)?(e.consume(M),Y):te(M)}function ee(M){return M===null||M===60||M===61||M===62||M===96?a(M):M===34||M===39?(e.consume(M),o=M,Z):Be(M)?(u=ee,xe(M)):Ve(M)?(e.consume(M),ee):(e.consume(M),ie)}function Z(M){return M===o?(e.consume(M),o=void 0,ue):M===null?a(M):Be(M)?(u=Z,xe(M)):(e.consume(M),Z)}function ie(M){return M===null||M===34||M===39||M===60||M===61||M===96?a(M):M===47||M===62||an(M)?te(M):(e.consume(M),ie)}function ue(M){return M===47||M===62||an(M)?te(M):a(M)}function se(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),n):a(M)}function xe(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ge}function ge(M){return Ve(M)?ot(e,me,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):me(M)}function me(M){return e.enter("htmlTextData"),u(M)}}},bc={name:"labelEnd",resolveAll:function(e){let n=-1;const a=[];for(;++n<e.length;){const i=e[n][1];if(a.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",n+=o}}return e.length!==a.length&&ur(e,0,e.length,a),e},resolveTo:function(e,n){let a,i,o,c,u=e.length,d=0;for(;u--;)if(a=e[u][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[u][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[u][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=u,a.type!=="labelLink")){d=2;break}}else a.type==="labelEnd"&&(o=u);const A={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[i+d+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",A,n],["enter",p,n]],c=Rn(c,e.slice(i+1,i+d+3)),c=Rn(c,[["enter",h,n]]),c=Rn(c,mc(n.parser.constructs.insideSpan.null,e.slice(i+d+4,o-3),n)),c=Rn(c,[["exit",h,n],e[o-2],e[o-1],["exit",p,n]]),c=Rn(c,e.slice(o+1)),c=Rn(c,[["exit",A,n]]),ur(e,i,e.length,c),e},tokenize:function(e,n,a){const i=this;let o,c,u=i.events.length;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){o=i.events[u][1];break}return function(m){return o?o._inactive?h(m):(c=i.parser.defined.includes(Ea(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),d):a(m)};function d(m){return m===40?e.attempt(_h,p,c?p:h)(m):m===91?e.attempt(Hh,p,c?A:h)(m):c?p(m):h(m)}function A(m){return e.attempt(Nh,p,h)(m)}function p(m){return n(m)}function h(m){return o._balanced=!0,a(m)}}},_h={tokenize:function(e,n,a){return function(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i};function i(h){return an(h)?Mi(e,o)(h):o(h)}function o(h){return h===41?p(h):dd(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function c(h){return an(h)?Mi(e,d)(h):p(h)}function u(h){return a(h)}function d(h){return h===34||h===39||h===40?pd(e,A,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function A(h){return an(h)?Mi(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):a(h)}}},Hh={tokenize:function(e,n,a){const i=this;return function(u){return fd.call(i,e,o,c,"reference","referenceMarker","referenceString")(u)};function o(u){return i.parser.defined.includes(Ea(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(u):a(u)}function c(u){return a(u)}}},Nh={tokenize:function(e,n,a){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i};function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):a(o)}}},Uh={name:"labelStartImage",resolveAll:bc.resolveAll,tokenize:function(e,n,a){const i=this;return function(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o};function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):a(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(u):n(u)}}},zh={name:"labelStartLink",resolveAll:bc.resolveAll,tokenize:function(e,n,a){const i=this;return function(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o};function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(c):n(c)}}},wc={name:"lineEnding",tokenize:function(e,n){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ot(e,n,"linePrefix")}}},Us={name:"thematicBreak",tokenize:function(e,n,a){let i,o=0;return function(d){return e.enter("thematicBreak"),function(A){return i=A,c(A)}(d)};function c(d){return d===i?(e.enter("thematicBreakSequence"),u(d)):o>=3&&(d===null||Be(d))?(e.exit("thematicBreak"),n(d)):a(d)}function u(d){return d===i?(e.consume(d),o++,u):(e.exit("thematicBreakSequence"),Ve(d)?ot(e,c,"whitespace")(d):c(d))}}},sn={continuation:{tokenize:function(e,n,a){const i=this;return i.containerState._closeFlow=void 0,e.check(Ns,function(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ot(e,n,"listItemIndent",i.containerState.size+1)(c)},function(c){return i.containerState.furtherBlankLines||!Ve(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Wh,n,o)(c))});function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,ot(e,e.attempt(sn,n,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,n,a){const i=this,o=i.events[i.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return function(y){const C=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:gc(y)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Us,a,A)(y):A(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return a(y)};function d(y){return gc(y)&&++u<10?(e.consume(y),d):(!i.interrupt||u<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),A(y)):a(y)}function A(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(Ns,i.interrupt?a:p,e.attempt(jh,m,h))}function p(y){return i.containerState.initialBlankLine=!0,c++,m(y)}function h(y){return Ve(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),m):a(y)}function m(y){return i.containerState.size=c+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(y)}}},jh={partial:!0,tokenize:function(e,n,a){const i=this;return ot(e,function(o){const c=i.events[i.events.length-1];return!Ve(o)&&c&&c[1].type==="listItemPrefixWhitespace"?n(o):a(o)},"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Wh={partial:!0,tokenize:function(e,n,a){const i=this;return ot(e,function(o){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(o):a(o)},"listItemIndent",i.containerState.size+1)}},gd={name:"setextUnderline",resolveTo:function(e,n){let a,i,o,c=e.length;for(;c--;)if(e[c][0]==="enter"){if(e[c][1].type==="content"){a=c;break}e[c][1].type==="paragraph"&&(i=c)}else e[c][1].type==="content"&&e.splice(c,1),!o&&e[c][1].type==="definition"&&(o=c);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",u,n]),e.splice(o+1,0,["exit",e[a][1],n]),e[a][1].end={...e[o][1].end}):e[a][1]=u,e.push(["exit",u,n]),e},tokenize:function(e,n,a){const i=this;let o;return function(d){let A,p=i.events.length;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){A=i.events[p][1].type==="paragraph";break}return i.parser.lazy[i.now().line]||!i.interrupt&&!A?a(d):(e.enter("setextHeadingLine"),o=d,function(h){return e.enter("setextHeadingLineSequence"),c(h)}(d))};function c(d){return d===o?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Ve(d)?ot(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||Be(d)?(e.exit("setextHeadingLine"),n(d)):a(d)}}},Yh={tokenize:function(e){const n=this,a=e.attempt(Ns,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a)},e.attempt(this.parser.constructs.flowInitial,i,ot(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ph,i)),"linePrefix")));return a;function i(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,a;e.consume(o)}}},Gh={resolveAll:vd()},Vh=md("string"),Xh=md("text");function md(e){return{resolveAll:vd(e==="text"?Jh:void 0),tokenize:function(n){const a=this,i=this.parser.constructs[e],o=n.attempt(i,c,u);return c;function c(p){return A(p)?o(p):u(p)}function u(p){if(p!==null)return n.enter("data"),n.consume(p),d;n.consume(p)}function d(p){return A(p)?(n.exit("data"),o(p)):(n.consume(p),d)}function A(p){if(p===null)return!0;const h=i[p];let m=-1;if(h)for(;++m<h.length;){const y=h[m];if(!y.previous||y.previous.call(a,a.previous))return!0}return!1}}}}function vd(e){return function(n,a){let i,o=-1;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,a):n}}function Jh(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const i=e[a-1][1],o=n.sliceStream(i);let c,u=o.length,d=-1,A=0;for(;u--;){const p=o[u];if(typeof p=="string"){for(d=p.length;p.charCodeAt(d-1)===32;)A++,d--;if(d)break;d=-1}else if(p===-2)c=!0,A++;else if(p!==-1){u++;break}}if(A){const p={type:a===e.length||c||A<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?d:i.start._bufferIndex+d,_index:i.start._index+u,line:i.end.line,column:i.end.column-A,offset:i.end.offset-A},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(a,0,["enter",p,n],["exit",p,n]),a+=2)}a++}return e}const Kh={42:sn,43:sn,45:sn,48:sn,49:sn,50:sn,51:sn,52:sn,53:sn,54:sn,55:sn,56:sn,57:sn,62:id},$h={91:Dh},Zh={[-2]:yc,[-1]:yc,32:yc},qh={35:Mh,42:Us,45:[gd,Us],60:Oh,61:gd,95:Us,96:ud,126:ud},eg={38:ld,92:sd},tg={[-5]:wc,[-4]:wc,[-3]:wc,33:Uh,38:ld,42:vc,60:[xh,Qh],91:zh,92:[Bh,sd],93:bc,95:vc,96:Eh},ng={null:[vc,Gh]},rg=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:$h,disable:{null:[]},document:Kh,flow:qh,flowInitial:Zh,insideSpan:ng,string:eg,text:tg},Symbol.toStringTag,{value:"Module"}));function og(e,n,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const o={},c=[];let u=[],d=[];const A={attempt:Q(function(_,B){E(_,B.from)}),check:Q(D),consume:function(_){Be(_)?(i.line++,i.column=1,i.offset+=_===-3?2:1,I()):_!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=_},enter:function(_,B){const U=B||{};return U.type=_,U.start=y(),p.events.push(["enter",U,p]),d.push(U),U},exit:function(_){const B=d.pop();return B.end=y(),p.events.push(["exit",B,p]),B},interrupt:Q(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:function(_){o[_.line]=_.column,I()},events:[],now:y,parser:e,previous:null,sliceSerialize:function(_,B){return function(U,j){let z=-1;const W=[];let te;for(;++z<U.length;){const J=U[z];let Y;if(typeof J=="string")Y=J;else switch(J){case-5:Y="\r";break;case-4:Y=`
|
|
124
|
+
`),i=i.replace(/\n/g,"<br/>"),i}createContainer(e){var n;const a=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||Rp)();if(!a)return;const i=(n=this.props.containerTagName)!==null&&n!==void 0?n:"body",o=i==="body"||i==="fragment"?a.body:a.createElement(i);if(e.match(Ip)){if(process.env.NODE_ENV!=="production")throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?Pp(e):e);return o}extractAttributes(e){const{allowAttributes:n}=this.props,a={};let i=0;return e.nodeType===1&&e.attributes&&([...e.attributes].forEach(o=>{const{name:c,value:u}=o,d=c.toLowerCase(),A=xA[d]||xA[c];if(!this.isSafe(e)||!d.match(Bp)&&(!n&&(!A||A===2)||d.startsWith("on")||u.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let p=d==="style"?this.extractStyleAttribute(e):u;A===4?p=!0:A===3?p=Number.parseFloat(String(p)):A!==5&&(p=String(p)),a[Ep[d]||d]=this.applyAttributeFilters(d,p),i+=1}),i!==0)?a:null}extractStyleAttribute(e){const n={};return Array.from(e.style).forEach(a=>{const i=e.style[a];(typeof i=="string"||typeof i=="number")&&(n[a.replace(/-([a-z])/g,(o,c)=>String(c).toUpperCase())]=i)}),n}getTagConfig(e){const n={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return ec[e]?{...n,...ec[e],tagName:e}:n}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const n=e.getAttribute("href");if(n!=null&&n.startsWith("#"))return!0;const a=e.protocol.toLowerCase();return a===":"||a==="http:"||a==="https:"||a==="mailto:"||a==="tel:"}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,n){const{noHtml:a,noHtmlExceptMatchers:i,allowElements:o,transform:c,transformOnlyAllowList:u}=this.props;let d=[],A="";return[...e.childNodes].forEach(p=>{if(p.nodeType===1){const m=p.nodeName.toLowerCase(),y=this.getTagConfig(m);A&&(d.push(A),A="");const C=this.applyNodeFilters(m,p);if(!C)return;let D;if(c&&(!u||this.isTagAllowed(m))){this.keyIndex+=1;const Q=this.keyIndex;D=this.parseNode(C,y);const E=c(C,D,y);if(E===null)return;if(typeof E<"u")return void d.push(R.cloneElement(E,{key:Q}));this.keyIndex=Q-1}if(this.banned.has(m))return;if(a||i&&m!=="br"||!this.isTagAllowed(m)||!o&&!this.canRenderChild(n,y))d=[...d,...this.parseNode(C,y.tagName?y:n)];else{var h;this.keyIndex+=1;const Q=this.extractAttributes(C),E={tagName:m};Q&&(E.attributes=Q),y.void&&(E.selfClose=y.void),d.push(R.createElement(SA,{...E,key:this.keyIndex},(h=D)!==null&&h!==void 0?h:this.parseNode(C,y)))}}else if(p.nodeType===3){const m=a&&!i?p.textContent:this.applyMatchers(p.textContent||"",n);Array.isArray(m)?d=[...d,...m]:A+=m}}),A&&d.push(A),d}replaceTokens(e,n){if(!e.includes("{{{"))return e;const a=[];let i=e,o=null;for(;o=i.match(Mp);){const[c,u]=o,d=o.index,A=c.includes("/");if(process.env.NODE_ENV!=="production"&&!n[u])throw new Error(`Token "${u}" found but no matching element to replace with.`);d>0&&(a.push(i.slice(0,d)),i=i.slice(d));const{children:p,matcher:h,props:m}=n[u];let y;if(A)y=c.length,a.push(h.createElement(p,m));else{const C=i.match(new RegExp(`{{{/${u}}}}`));if(process.env.NODE_ENV!=="production"&&!C)throw new Error(`Closing token missing for interpolated element "${u}".`);y=C.index+C[0].length,a.push(h.createElement(this.replaceTokens(i.slice(c.length,C.index),n),m))}i=i.slice(y)}return i.length>0&&a.push(i),a.length===0?"":a.length===1&&typeof a[0]=="string"?a[0]:a}};function Op(e){var n;const{attributes:a,className:i,containerTagName:o,content:c,emptyContent:u,parsedContent:d,tagName:A,noWrap:p}=e,h=(n=o??A)!==null&&n!==void 0?n:"span",m=h==="fragment"||p;let y;if(d)y=d;else{const C=new CA(c??"",e).parse();C.length>0&&(y=C)}return y||(y=u),m?R.createElement(R.Fragment,null,y):R.createElement(SA,{attributes:a,className:i,tagName:h},y)}function Fp(e){const{attributes:n,className:a,content:i="",disableFilters:o=!1,disableMatchers:c=!1,emptyContent:u=null,filters:d=[],matchers:A=[],onAfterParse:p=null,onBeforeParse:h=null,tagName:m="span",noWrap:y=!1,...C}=e,D=c?[]:A,Q=o?[]:d,E=h?[h]:[],I=p?[p]:[];D.forEach(j=>{j.onBeforeParse&&E.push(j.onBeforeParse.bind(j)),j.onAfterParse&&I.push(j.onAfterParse.bind(j))});const _=E.reduce((j,z)=>{const W=z(j,e);if(process.env.NODE_ENV!=="production"&&typeof W!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return W},i??""),B=new CA(_,C,D,Q),U=I.reduce((j,z)=>{const W=z(j,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(W))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return W},B.parse());return R.createElement(Op,{attributes:n,className:a,containerTagName:e.containerTagName,emptyContent:u,noWrap:y,parsedContent:U.length===0?void 0:U,tagName:m})}const Lp=({children:e})=>N.jsx("div",{style:{whiteSpace:"normal"},children:N.jsx(Fp,{content:typeof e=="string"?e:""})}),Qp={autoConfig:!0},PA=(e,n,a)=>{var i;if(!e.detail.currPath)return!1;const o=n[e.detail.currPath];return!!o&&(((i=o.renderHtml)==null?void 0:i.map(c=>c.toUpperCase()).includes(a))??!1)},_p=e=>{const n=[];let a="",i=!1;for(let o=0;o<e.length;o++){const c=e[o];c==="<"?i?(n.push(a),a=c):(i=!0,a=c):c===">"?(a+=c,n.push(a),a="",i=!1):i?a+=c:n.push(c)}return a!==""&&n.push(a),n},Hp=e=>{const{getFlow:n}=Qs(),{messages:a,replaceMessages:i}=Zl(),{settings:o}=bA(),{hasChatHistoryLoaded:c}=wA(),u={...e,...Qp},d=u.htmlComponent?u.htmlComponent:Lp;R.useEffect(()=>{var h,m;if(c){const y=[...a];for(let C=0;C<y.length&&C<(((h=o.chatHistory)==null?void 0:h.maxEntries)??30);C++){const D=y[C];(m=D.tags)!=null&&m.includes("rcb-html-renderer-plugin:parsed")&&(D.contentWrapper=d)}i(y)}},[c]);const A=async h=>{var m;const y=(m=h.data.message)==null?void 0:m.sender.toUpperCase();typeof h.data.message.content=="string"&&PA(h,n(),y)&&(h.type==="rcb-start-simulate-stream-message"&&(h.data.simulateStreamChunker=_p),h.data.message.contentWrapper=d,h.data.message.tags||(h.data.message.tags=[]),h.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};Bn(ye.PRE_INJECT_MESSAGE,A),Bn(ye.CHUNK_STREAM_MESSAGE,A),Bn(ye.START_STREAM_MESSAGE,A),Bn(ye.START_SIMULATE_STREAM_MESSAGE,A),Bn(ye.START_SPEAK_AUDIO,async h=>{PA(h,n(),"BOT")&&(h.data.textToRead=(m=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(m,"text/html").body.textContent||"":m.replace(/<\/?[^>]+(>|$)/g,""))(h.data.textToRead))});const p={name:"@rcb-plugins/html-renderer"};return u!=null&&u.autoConfig&&(p.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),p},Np=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Up=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zp={};function TA(e,n){return(zp.jsx?Up:Np).test(e)}const jp=/[ \t\n\f\r]/g;function DA(e){return e.replace(jp,"")===""}class Ti{constructor(n,a,i){this.property=n,this.normal=a,i&&(this.space=i)}}function IA(e,n){const a={},i={};let o=-1;for(;++o<e.length;)Object.assign(a,e[o].property),Object.assign(i,e[o].normal);return new Ti(a,i,n)}function tc(e){return e.toLowerCase()}Ti.prototype.property={},Ti.prototype.normal={},Ti.prototype.space=null;class Mn{constructor(n,a){this.property=n,this.attribute=a}}Mn.prototype.space=null,Mn.prototype.boolean=!1,Mn.prototype.booleanish=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.number=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.spaceSeparated=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.defined=!1;let Wp=0;const Oe=Qo(),St=Qo(),BA=Qo(),Ae=Qo(),rt=Qo(),wa=Qo(),xn=Qo();function Qo(){return 2**++Wp}const nc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:St,commaOrSpaceSeparated:xn,commaSeparated:wa,number:Ae,overloadedBoolean:BA,spaceSeparated:rt},Symbol.toStringTag,{value:"Module"})),rc=Object.keys(nc);class oc extends Mn{constructor(n,a,i,o){let c=-1;if(super(n,a),MA(this,"space",o),typeof i=="number")for(;++c<rc.length;){const u=rc[c];MA(this,rc[c],(i&nc[u])===nc[u])}}}function MA(e,n,a){a&&(e[n]=a)}oc.prototype.defined=!0;const Yp={}.hasOwnProperty;function xa(e){const n={},a={};let i;for(i in e.properties)if(Yp.call(e.properties,i)){const o=e.properties[i],c=new oc(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(c.mustUseProperty=!0),n[i]=c,a[tc(i)]=i,a[tc(c.attribute)]=i}return new Ti(n,a,e.space)}const RA=xa({space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),OA=xa({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function FA(e,n){return n in e?e[n]:n}function LA(e,n){return FA(e,n.toLowerCase())}const QA=xa({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:LA,properties:{xmlns:null,xmlnsXLink:null}}),_A=xa({transform:(e,n)=>n==="role"?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:St,ariaAutoComplete:null,ariaBusy:St,ariaChecked:St,ariaColCount:Ae,ariaColIndex:Ae,ariaColSpan:Ae,ariaControls:rt,ariaCurrent:null,ariaDescribedBy:rt,ariaDetails:null,ariaDisabled:St,ariaDropEffect:rt,ariaErrorMessage:null,ariaExpanded:St,ariaFlowTo:rt,ariaGrabbed:St,ariaHasPopup:null,ariaHidden:St,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rt,ariaLevel:Ae,ariaLive:null,ariaModal:St,ariaMultiLine:St,ariaMultiSelectable:St,ariaOrientation:null,ariaOwns:rt,ariaPlaceholder:null,ariaPosInSet:Ae,ariaPressed:St,ariaReadOnly:St,ariaRelevant:null,ariaRequired:St,ariaRoleDescription:rt,ariaRowCount:Ae,ariaRowIndex:Ae,ariaRowSpan:Ae,ariaSelected:St,ariaSetSize:Ae,ariaSort:null,ariaValueMax:Ae,ariaValueMin:Ae,ariaValueNow:Ae,ariaValueText:null,role:null}}),Gp=xa({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:LA,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wa,acceptCharset:rt,accessKey:rt,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:rt,autoFocus:Oe,autoPlay:Oe,blocking:rt,capture:null,charSet:null,checked:Oe,cite:null,className:rt,cols:Ae,colSpan:null,content:null,contentEditable:St,controls:Oe,controlsList:rt,coords:Ae|wa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:BA,draggable:St,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:rt,height:Ae,hidden:Oe,high:Ae,href:null,hrefLang:null,htmlFor:rt,httpEquiv:rt,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:rt,itemRef:rt,itemScope:Oe,itemType:rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:Ae,manifest:null,max:null,maxLength:Ae,media:null,method:null,min:null,minLength:Ae,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:Ae,pattern:null,ping:rt,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:rt,required:Oe,reversed:Oe,rows:Ae,rowSpan:Ae,sandbox:rt,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:Ae,sizes:null,slot:null,span:Ae,spellCheck:St,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ae,step:null,style:null,tabIndex:Ae,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:St,width:Ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rt,axis:null,background:null,bgColor:null,border:Ae,borderColor:null,bottomMargin:Ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:Ae,leftMargin:Ae,link:null,longDesc:null,lowSrc:null,marginHeight:Ae,marginWidth:Ae,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:Ae,rules:null,scheme:null,scrolling:St,standby:null,summary:null,text:null,topMargin:Ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:Ae,security:null,unselectable:null}}),Vp=xa({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:FA,properties:{about:xn,accentHeight:Ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ae,amplitude:Ae,arabicForm:null,ascent:Ae,attributeName:null,attributeType:null,azimuth:Ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ae,by:null,calcMode:null,capHeight:Ae,className:rt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ae,diffuseConstant:Ae,direction:null,display:null,dur:null,divisor:Ae,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ae,enableBackground:null,end:null,event:null,exponent:Ae,externalResourcesRequired:null,fill:null,fillOpacity:Ae,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wa,g2:wa,glyphName:wa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ae,horizOriginX:Ae,horizOriginY:Ae,id:null,ideographic:Ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ae,k:Ae,k1:Ae,k2:Ae,k3:Ae,k4:Ae,kernelMatrix:xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ae,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ae,overlineThickness:Ae,paintOrder:null,panose1:null,path:null,pathLength:Ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ae,pointsAtY:Ae,pointsAtZ:Ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xn,rev:xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xn,requiredFeatures:xn,requiredFonts:xn,requiredFormats:xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ae,specularExponent:Ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ae,strikethroughThickness:Ae,string:null,stroke:null,strokeDashArray:xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ae,strokeOpacity:Ae,strokeWidth:null,style:null,surfaceScale:Ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xn,tabIndex:Ae,tableValues:null,target:null,targetX:Ae,targetY:Ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ae,underlineThickness:Ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ae,values:null,vAlphabetic:Ae,vMathematical:Ae,vectorEffect:null,vHanging:Ae,vIdeographic:Ae,version:null,vertAdvY:Ae,vertOriginX:Ae,vertOriginY:Ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Xp=/^data[-\w.:]+$/i,HA=/-[a-z]/g,Jp=/[A-Z]/g;function Kp(e){return"-"+e.toLowerCase()}function $p(e){return e.charAt(1).toUpperCase()}const Zp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},qp=IA([OA,RA,QA,_A,Gp],"html"),ac=IA([OA,RA,QA,_A,Vp],"svg");function NA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ic,UA,zA,Sa={},eh=function(){if(zA)return Sa;zA=1;var e=Sa&&Sa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=function(a,i){var o=null;if(!a||typeof a!="string")return o;var c=(0,n.default)(a),u=typeof i=="function";return c.forEach(function(d){if(d.type==="declaration"){var A=d.property,p=d.value;u?i(A,p,d):p&&((o=o||{})[A]=p)}}),o};var n=e(function(){if(UA)return ic;UA=1;var a=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,o=/^\s*/,c=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,d=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,A=/^[;\s]*/,p=/^\s+|\s+$/g,h="";function m(y){return y?y.replace(p,h):h}return ic=function(y,C){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];C=C||{};var D=1,Q=1;function E(J){var Y=J.match(i);Y&&(D+=Y.length);var ee=J.lastIndexOf(`
|
|
125
|
+
`);Q=~ee?J.length-ee:Q+J.length}function I(){var J={line:D,column:Q};return function(Y){return Y.position=new _(J),j(),Y}}function _(J){this.start=J,this.end={line:D,column:Q},this.source=C.source}function B(J){var Y=new Error(C.source+":"+D+":"+Q+": "+J);if(Y.reason=J,Y.filename=C.source,Y.line=D,Y.column=Q,Y.source=y,!C.silent)throw Y}function U(J){var Y=J.exec(y);if(Y){var ee=Y[0];return E(ee),y=y.slice(ee.length),Y}}function j(){U(o)}function z(J){var Y;for(J=J||[];Y=W();)Y!==!1&&J.push(Y);return J}function W(){var J=I();if(y.charAt(0)=="/"&&y.charAt(1)=="*"){for(var Y=2;h!=y.charAt(Y)&&(y.charAt(Y)!="*"||y.charAt(Y+1)!="/");)++Y;if(Y+=2,h===y.charAt(Y-1))return B("End of comment missing");var ee=y.slice(2,Y-2);return Q+=2,E(ee),y=y.slice(Y),Q+=2,J({type:"comment",comment:ee})}}function te(){var J=I(),Y=U(c);if(Y){if(W(),!U(u))return B("property missing ':'");var ee=U(d),Z=J({type:"declaration",property:m(Y[0].replace(a,h)),value:ee?m(ee[0].replace(a,h)):h});return U(A),Z}}return _.prototype.content=y,j(),function(){var J,Y=[];for(z(Y);J=te();)J!==!1&&(Y.push(J),z(Y));return Y}()},ic}());return Sa}();const jA=NA(eh),th=jA.default||jA,WA=YA("end"),sc=YA("start");function YA(e){return function(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function Di(e){return e&&typeof e=="object"?"position"in e||"type"in e?GA(e.position):"start"in e||"end"in e?GA(e):"line"in e||"column"in e?lc(e):"":""}function lc(e){return VA(e&&e.line)+":"+VA(e&&e.column)}function GA(e){return lc(e&&e.start)+"-"+lc(e&&e.end)}function VA(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(n,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let o="",c={},u=!1;if(a&&(c="line"in a&&"column"in a||"start"in a&&"end"in a?{place:a}:"type"in a?{ancestors:[a],place:a.position}:{...a}),typeof n=="string"?o=n:!c.cause&&n&&(u=!0,o=n.message,c.cause=n),!c.ruleId&&!c.source&&typeof i=="string"){const A=i.indexOf(":");A===-1?c.ruleId=i:(c.source=i.slice(0,A),c.ruleId=i.slice(A+1))}if(!c.place&&c.ancestors&&c.ancestors){const A=c.ancestors[c.ancestors.length-1];A&&(c.place=A.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=d?d.line:void 0,this.name=Di(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=u&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual,this.expected,this.note,this.url}}zt.prototype.file="",zt.prototype.name="",zt.prototype.reason="",zt.prototype.message="",zt.prototype.stack="",zt.prototype.column=void 0,zt.prototype.line=void 0,zt.prototype.ancestors=void 0,zt.prototype.cause=void 0,zt.prototype.fatal=void 0,zt.prototype.place=void 0,zt.prototype.ruleId=void 0,zt.prototype.source=void 0;const cc={}.hasOwnProperty,nh=new Map,rh=/[A-Z]/g,oh=/-([a-z])/g,ah=new Set(["table","tbody","thead","tfoot","tr"]),ih=new Set(["td","th"]),XA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sh(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=function(u,d){return A;function A(p,h,m,y){const C=Array.isArray(m.children),D=sc(p);return d(h,m,y,C,{columnNumber:D?D.column-1:void 0,fileName:u,lineNumber:D?D.line:void 0},void 0)}}(a,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=function(u,d,A){return p;function p(h,m,y,C){const D=Array.isArray(y.children)?A:d;return C?D(m,y,C):D(m,y)}}(0,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?ac:qp,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},c=JA(o,e,void 0);return c&&typeof c!="string"?c:o.create(e,o.Fragment,{children:c||void 0},void 0)}function JA(e,n,a){return n.type==="element"?function(i,o,c){const u=i.schema;let d=u;o.tagName.toLowerCase()==="svg"&&u.space==="html"&&(d=ac,i.schema=d),i.ancestors.push(o);const A=$A(i,o.tagName,!1),p=function(m,y){const C={};let D,Q;for(Q in y.properties)if(Q!=="children"&&cc.call(y.properties,Q)){const E=lh(m,Q,y.properties[Q]);if(E){const[I,_]=E;m.tableCellAlignToStyle&&I==="align"&&typeof _=="string"&&ih.has(y.tagName)?D=_:C[I]=_}}return D&&((C.style||(C.style={}))[m.stylePropertyNameCase==="css"?"text-align":"textAlign"]=D),C}(i,o);let h=Ac(i,o);return ah.has(o.tagName)&&(h=h.filter(function(m){return typeof m!="string"||!function(y){return typeof y=="object"?y.type==="text"&&DA(y.value):DA(y)}(m)})),KA(i,p,A,o),uc(p,h),i.ancestors.pop(),i.schema=u,i.create(o,A,p,c)}(e,n,a):n.type==="mdxFlowExpression"||n.type==="mdxTextExpression"?function(i,o){if(o.data&&o.data.estree&&i.evaluater){const c=o.data.estree.body[0];return c.type,i.evaluater.evaluateExpression(c.expression)}Ii(i,o.position)}(e,n):n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?function(i,o,c){const u=i.schema;let d=u;o.name==="svg"&&u.space==="html"&&(d=ac,i.schema=d),i.ancestors.push(o);const A=o.name===null?i.Fragment:$A(i,o.name,!0),p=function(m,y){const C={};for(const D of y.attributes)if(D.type==="mdxJsxExpressionAttribute")if(D.data&&D.data.estree&&m.evaluater){const Q=D.data.estree.body[0];Q.type;const E=Q.expression;E.type;const I=E.properties[0];I.type,Object.assign(C,m.evaluater.evaluateExpression(I.argument))}else Ii(m,y.position);else{const Q=D.name;let E;if(D.value&&typeof D.value=="object")if(D.value.data&&D.value.data.estree&&m.evaluater){const I=D.value.data.estree.body[0];I.type,E=m.evaluater.evaluateExpression(I.expression)}else Ii(m,y.position);else E=D.value===null||D.value;C[Q]=E}return C}(i,o),h=Ac(i,o);return KA(i,p,A,o),uc(p,h),i.ancestors.pop(),i.schema=u,i.create(o,A,p,c)}(e,n,a):n.type==="mdxjsEsm"?function(i,o){if(o.data&&o.data.estree&&i.evaluater)return i.evaluater.evaluateProgram(o.data.estree);Ii(i,o.position)}(e,n):n.type==="root"?function(i,o,c){const u={};return uc(u,Ac(i,o)),i.create(o,i.Fragment,u,c)}(e,n,a):n.type==="text"?function(i,o){return o.value}(0,n):void 0}function KA(e,n,a,i){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=i)}function uc(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function Ac(e,n){const a=[];let i=-1;const o=e.passKeys?new Map:nh;for(;++i<n.children.length;){const c=n.children[i];let u;if(e.passKeys){const A=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(A){const p=o.get(A)||0;u=A+"-"+p,o.set(A,p+1)}}const d=JA(e,c,u);d!==void 0&&a.push(d)}return a}function lh(e,n,a){const i=function(o,c){const u=tc(c);let d=c,A=Mn;if(u in o.normal)return o.property[o.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&Xp.test(c)){if(c.charAt(4)==="-"){const p=c.slice(5).replace(HA,$p);d="data"+p.charAt(0).toUpperCase()+p.slice(1)}else{const p=c.slice(4);if(!HA.test(p)){let h=p.replace(Jp,Kp);h.charAt(0)!=="-"&&(h="-"+h),c="data"+h}}A=oc}return new A(d,c)}(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?function(o){const c={};return(o[o.length-1]===""?[...o,""]:o).join((c.padRight?" ":"")+","+(c.padLeft===!1?"":" ")).trim()}(a):function(o){return o.join(" ").trim()}(a)),i.property==="style"){let o=typeof a=="object"?a:function(c,u){const d={};try{th(u,A)}catch(p){if(!c.ignoreInvalidStyle){const h=p,m=new zt("Cannot parse `style` attribute",{ancestors:c.ancestors,cause:h,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw m.file=c.filePath||void 0,m.url=XA+"#cannot-parse-style-attribute",m}}return d;function A(p,h){let m=p;m.slice(0,2)!=="--"&&(m.slice(0,4)==="-ms-"&&(m="ms-"+m.slice(4)),m=m.replace(oh,uh)),d[m]=h}}(e,String(a));return e.stylePropertyNameCase==="css"&&(o=function(c){const u={};let d;for(d in c)cc.call(c,d)&&(u[ch(d)]=c[d]);return u}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?Zp[i.property]||i.property:i.attribute,a]}}function $A(e,n,a){let i;if(a)if(n.includes(".")){const o=n.split(".");let c,u=-1;for(;++u<o.length;){const d=TA(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!(!u||d.type!=="Literal"),optional:!1}:d}i=c}else i=TA(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};else i={type:"Literal",value:n};if(i.type==="Literal"){const o=i.value;return cc.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ii(e)}function Ii(e,n){const a=new zt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=XA+"#cannot-handle-mdx-estrees-without-createevaluater",a}function ch(e){let n=e.replace(rh,Ah);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function uh(e,n){return n.toUpperCase()}function Ah(e){return"-"+e.toLowerCase()}const dc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Hs={};function ZA(e,n,a){if(function(i){return!(!i||typeof i!="object")}(e)){if("value"in e)return e.type!=="html"||a?e.value:"";if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return qA(e.children,n,a)}return Array.isArray(e)?qA(e,n,a):""}function qA(e,n,a){const i=[];let o=-1;for(;++o<e.length;)i[o]=ZA(e[o],n,a);return i.join("")}const ed=document.createElement("i");function fc(e){const n="&"+e+";";ed.innerHTML=n;const a=ed.textContent;return(a.charCodeAt(a.length-1)!==59||e==="semi")&&a!==n&&a}function ur(e,n,a,i){const o=e.length;let c,u=0;if(n=n<0?-n>o?0:o+n:n>o?o:n,a=a>0?a:0,i.length<1e4)c=Array.from(i),c.unshift(n,a),e.splice(...c);else for(a&&e.splice(n,a);u<i.length;)c=i.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function Rn(e,n){return e.length>0?(ur(e,e.length,0,n),e):n}const td={}.hasOwnProperty;function dh(e){const n={};let a=-1;for(;++a<e.length;)fh(n,e[a]);return n}function fh(e,n){let a;for(a in n){const i=(td.call(e,a)?e[a]:void 0)||(e[a]={}),o=n[a];let c;if(o)for(c in o){td.call(i,c)||(i[c]=[]);const u=o[c];ph(i[c],Array.isArray(u)?u:u?[u]:[])}}}function ph(e,n){let a=-1;const i=[];for(;++a<n.length;)(n[a].add==="after"?e:i).push(n[a]);ur(e,0,0,i)}function nd(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||!(65535&~a)||(65535&a)==65534||a>1114111?"�":String.fromCodePoint(a)}function Ea(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ar=Zr(/[A-Za-z]/),Sn=Zr(/[\dA-Za-z]/),hh=Zr(/[#-'*+\--9=?A-Z^-~]/);function pc(e){return e!==null&&(e<32||e===127)}const hc=Zr(/\d/),gh=Zr(/[\dA-Fa-f]/),mh=Zr(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function an(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const vh=Zr(new RegExp("\\p{P}|\\p{S}","u")),yh=Zr(/\s/);function Zr(e){return function(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ka(e){const n=[];let a=-1,i=0,o=0;for(;++a<e.length;){const c=e.charCodeAt(a);let u="";if(c===37&&Sn(e.charCodeAt(a+1))&&Sn(e.charCodeAt(a+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(u=String.fromCharCode(c));else if(c>55295&&c<57344){const d=e.charCodeAt(a+1);c<56320&&d>56319&&d<57344?(u=String.fromCharCode(c,d),o=1):u="�"}else u=String.fromCharCode(c);u&&(n.push(e.slice(i,a),encodeURIComponent(u)),i=a+o+1,u=""),o&&(a+=o,o=0)}return n.join("")+e.slice(i)}function ot(e,n,a,i){const o=i?i-1:Number.POSITIVE_INFINITY;let c=0;return function(d){return Ve(d)?(e.enter(a),u(d)):n(d)};function u(d){return Ve(d)&&c++<o?(e.consume(d),u):(e.exit(a),n(d))}}const bh={tokenize:function(e){const n=e.attempt(this.parser.constructs.contentInitial,function(c){return c===null?void e.consume(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,n,"linePrefix"))},function(c){return e.enter("paragraph"),i(c)});let a;return n;function i(c){const u=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=u),a=u,o(c)}function o(c){return c===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(c)):Be(c)?(e.consume(c),e.exit("chunkText"),i):(e.consume(c),o)}}},wh={tokenize:function(e){const n=this,a=[];let i,o,c,u=0;return d;function d(B){if(u<a.length){const U=a[u];return n.containerState=U[1],e.attempt(U[0].continuation,A,p)(B)}return p(B)}function A(B){if(u++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&_();const U=n.events.length;let j,z=U;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){j=n.events[z][1].end;break}I(u);let W=U;for(;W<n.events.length;)n.events[W][1].end={...j},W++;return ur(n.events,z+1,0,n.events.slice(U)),n.events.length=W,p(B)}return d(B)}function p(B){if(u===a.length){if(!i)return y(B);if(i.currentConstruct&&i.currentConstruct.concrete)return D(B);n.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(rd,h,m)(B)}function h(B){return i&&_(),I(u),y(B)}function m(B){return n.parser.lazy[n.now().line]=u!==a.length,c=n.now().offset,D(B)}function y(B){return n.containerState={},e.attempt(rd,C,D)(B)}function C(B){return u++,a.push([n.currentConstruct,n.containerState]),y(B)}function D(B){return B===null?(i&&_(),I(0),void e.consume(B)):(i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),Q(B))}function Q(B){return B===null?(E(e.exit("chunkFlow"),!0),I(0),void e.consume(B)):Be(B)?(e.consume(B),E(e.exit("chunkFlow")),u=0,n.interrupt=void 0,d):(e.consume(B),Q)}function E(B,U){const j=n.sliceStream(B);if(U&&j.push(null),B.previous=o,o&&(o.next=B),o=B,i.defineSkip(B.start),i.write(j),n.parser.lazy[B.start.line]){let z=i.events.length;for(;z--;)if(i.events[z][1].start.offset<c&&(!i.events[z][1].end||i.events[z][1].end.offset>c))return;const W=n.events.length;let te,J,Y=W;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){if(te){J=n.events[Y][1].end;break}te=!0}for(I(u),z=W;z<n.events.length;)n.events[z][1].end={...J},z++;ur(n.events,Y+1,0,n.events.slice(W)),n.events.length=z}}function I(B){let U=a.length;for(;U-- >B;){const j=a[U];n.containerState=j[1],j[0].exit.call(n,e)}a.length=B}function _(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}},rd={tokenize:function(e,n,a){return ot(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function od(e){return e===null||an(e)||yh(e)?1:vh(e)?2:void 0}function gc(e,n,a){const i=[];let o=-1;for(;++o<e.length;){const c=e[o].resolveAll;c&&!i.includes(c)&&(n=c(n,a),i.push(c))}return n}const mc={name:"attention",resolveAll:function(e,n){let a,i,o,c,u,d,A,p,h=-1;for(;++h<e.length;)if(e[h][0]==="enter"&&e[h][1].type==="attentionSequence"&&e[h][1]._close){for(a=h;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[a][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;d=e[a][1].end.offset-e[a][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const m={...e[a][1].end},y={...e[h][1].start};ad(m,-d),ad(y,d),c={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[a][1].end}},u={type:d>1?"strongSequence":"emphasisSequence",start:{...e[h][1].start},end:y},o={type:d>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[h][1].start}},i={type:d>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[a][1].end={...c.start},e[h][1].start={...u.end},A=[],e[a][1].end.offset-e[a][1].start.offset&&(A=Rn(A,[["enter",e[a][1],n],["exit",e[a][1],n]])),A=Rn(A,[["enter",i,n],["enter",c,n],["exit",c,n],["enter",o,n]]),A=Rn(A,gc(n.parser.constructs.insideSpan.null,e.slice(a+1,h),n)),A=Rn(A,[["exit",o,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[h][1].end.offset-e[h][1].start.offset?(p=2,A=Rn(A,[["enter",e[h][1],n],["exit",e[h][1],n]])):p=0,ur(e,a-1,h-a+3,A),h=a+A.length-p-2;break}}for(h=-1;++h<e.length;)e[h][1].type==="attentionSequence"&&(e[h][1].type="data");return e},tokenize:function(e,n){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,o=od(i);let c;return function(d){return c=d,e.enter("attentionSequence"),u(d)};function u(d){if(d===c)return e.consume(d),u;const A=e.exit("attentionSequence"),p=od(d),h=!p||p===2&&o||a.includes(d),m=!o||o===2&&p||a.includes(i);return A._open=!!(c===42?h:h&&(o||!m)),A._close=!!(c===42?m:m&&(p||!h)),n(d)}}};function ad(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const xh={name:"autolink",tokenize:function(e,n,a){let i=0;return function(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(y){return Ar(y)?(e.consume(y),c):y===64?a(y):A(y)}function c(y){return y===43||y===45||y===46||Sn(y)?(i=1,u(y)):A(y)}function u(y){return y===58?(e.consume(y),i=0,d):(y===43||y===45||y===46||Sn(y))&&i++<32?(e.consume(y),u):(i=0,A(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):y===null||y===32||y===60||pc(y)?a(y):(e.consume(y),d)}function A(y){return y===64?(e.consume(y),p):hh(y)?(e.consume(y),A):a(y)}function p(y){return Sn(y)?h(y):a(y)}function h(y){return y===46?(e.consume(y),i=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):m(y)}function m(y){if((y===45||Sn(y))&&i++<63){const C=y===45?m:h;return e.consume(y),C}return a(y)}}},Ns={partial:!0,tokenize:function(e,n,a){return function(o){return Ve(o)?ot(e,i,"linePrefix")(o):i(o)};function i(o){return o===null||Be(o)?n(o):a(o)}}},id={continuation:{tokenize:function(e,n,a){const i=this;return function(c){return Ve(c)?ot(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)};function o(c){return e.attempt(id,n,a)(c)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,n,a){const i=this;return function(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return a(c)};function o(c){return Ve(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}},sd={name:"characterEscape",tokenize:function(e,n,a){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i};function i(o){return mh(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(o)}}},ld={name:"characterReference",tokenize:function(e,n,a){const i=this;let o,c,u=0;return function(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),d};function d(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),A):(e.enter("characterReferenceValue"),o=31,c=Sn,p(h))}function A(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=gh,p):(e.enter("characterReferenceValue"),o=7,c=hc,p(h))}function p(h){if(h===59&&u){const m=e.exit("characterReferenceValue");return c!==Sn||fc(i.sliceSerialize(m))?(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):a(h)}return c(h)&&u++<o?(e.consume(h),p):a(h)}}},cd={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return c===null?a(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)};function o(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}},ud={concrete:!0,name:"codeFenced",tokenize:function(e,n,a){const i=this,o={partial:!0,tokenize:function(B,U,j){let z=0;return W;function W(Z){return B.enter("lineEnding"),B.consume(Z),B.exit("lineEnding"),te}function te(Z){return B.enter("codeFencedFence"),Ve(Z)?ot(B,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):J(Z)}function J(Z){return Z===c?(B.enter("codeFencedFenceSequence"),Y(Z)):j(Z)}function Y(Z){return Z===c?(z++,B.consume(Z),Y):z>=d?(B.exit("codeFencedFenceSequence"),Ve(Z)?ot(B,ee,"whitespace")(Z):ee(Z)):j(Z)}function ee(Z){return Z===null||Be(Z)?(B.exit("codeFencedFence"),U(Z)):j(Z)}}};let c,u=0,d=0;return function(B){return function(U){const j=i.events[i.events.length-1];return u=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,c=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),A(U)}(B)};function A(B){return B===c?(d++,e.consume(B),A):d<3?a(B):(e.exit("codeFencedFenceSequence"),Ve(B)?ot(e,p,"whitespace")(B):p(B))}function p(B){return B===null||Be(B)?(e.exit("codeFencedFence"),i.interrupt?n(B):e.check(cd,C,_)(B)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(B))}function h(B){return B===null||Be(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(B)):Ve(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ot(e,m,"whitespace")(B)):B===96&&B===c?a(B):(e.consume(B),h)}function m(B){return B===null||Be(B)?p(B):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(B))}function y(B){return B===null||Be(B)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(B)):B===96&&B===c?a(B):(e.consume(B),y)}function C(B){return e.attempt(o,_,D)(B)}function D(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),Q}function Q(B){return u>0&&Ve(B)?ot(e,E,"linePrefix",u+1)(B):E(B)}function E(B){return B===null||Be(B)?e.check(cd,C,_)(B):(e.enter("codeFlowValue"),I(B))}function I(B){return B===null||Be(B)?(e.exit("codeFlowValue"),E(B)):(e.consume(B),I)}function _(B){return e.exit("codeFenced"),n(B)}}},vc={name:"codeIndented",tokenize:function(e,n,a){const i=this;return function(A){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(A)};function o(A){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(A):a(A)}function c(A){return A===null?d(A):Be(A)?e.attempt(Sh,c,d)(A):(e.enter("codeFlowValue"),u(A))}function u(A){return A===null||Be(A)?(e.exit("codeFlowValue"),c(A)):(e.consume(A),u)}function d(A){return e.exit("codeIndented"),n(A)}}},Sh={partial:!0,tokenize:function(e,n,a){const i=this;return o;function o(u){return i.parser.lazy[i.now().line]?a(u):Be(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):ot(e,c,"linePrefix",5)(u)}function c(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(u):Be(u)?o(u):a(u)}}},Eh={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let n,a,i=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[i][1].type!=="lineEnding"&&e[i][1].type!=="space")){for(n=o;++n<i;)if(e[n][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[i][1].type="codeTextPadding",o+=2,i-=2;break}}for(n=o-1,i++;++n<=i;)a===void 0?n!==i&&e[n][1].type!=="lineEnding"&&(a=n):(n===i||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),i-=n-a-2,n=a+2),a=void 0);return e},tokenize:function(e,n,a){let i,o,c=0;return function(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)};function u(h){return h===96?(e.consume(h),c++,u):(e.exit("codeTextSequence"),d(h))}function d(h){return h===null?a(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),d):h===96?(o=e.enter("codeTextSequence"),i=0,p(h)):Be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("codeTextData"),A(h))}function A(h){return h===null||h===32||h===96||Be(h)?(e.exit("codeTextData"),d(h)):(e.consume(h),A)}function p(h){return h===96?(e.consume(h),i++,p):i===c?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(o.type="codeTextData",A(h))}}};class kh{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,a){const i=a??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,a,i){const o=a||0;this.setCursor(Math.trunc(n));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&Bi(this.left,i),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Bi(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Bi(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const a=this.left.splice(n,Number.POSITIVE_INFINITY);Bi(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Bi(this.left,a.reverse())}}}function Bi(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function Ad(e){const n={};let a,i,o,c,u,d,A,p=-1;const h=new kh(e);for(;++p<h.length;){for(;p in n;)p=n[p];if(a=h.get(p),p&&a[1].type==="chunkFlow"&&h.get(p-1)[1].type==="listItemPrefix"&&(d=a[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,Ch(h,p)),p=n[p],A=!0);else if(a[1]._container){for(o=p,i=void 0;o--;)if(c=h.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),c[1].type="lineEnding",i=o);else if(c[1].type!=="linePrefix")break;i&&(a[1].end={...h.get(i)[1].start},u=h.slice(i,p),u.unshift(a),h.splice(i,p-i+1,u))}}return ur(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!A}function Ch(e,n){const a=e.get(n)[1],i=e.get(n)[2];let o=n-1;const c=[],u=a._tokenizer||i.parser[a.contentType](a.start),d=u.events,A=[],p={};let h,m,y=-1,C=a,D=0,Q=0;const E=[Q];for(;C;){for(;e.get(++o)[1]!==C;);c.push(o),C._tokenizer||(h=i.sliceStream(C),C.next||h.push(null),m&&u.defineSkip(C.start),C._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(h),C._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=C,C=C.next}for(C=a;++y<d.length;)d[y][0]==="exit"&&d[y-1][0]==="enter"&&d[y][1].type===d[y-1][1].type&&d[y][1].start.line!==d[y][1].end.line&&(Q=y+1,E.push(Q),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(u.events=[],C?(C._tokenizer=void 0,C.previous=void 0):E.pop(),y=E.length;y--;){const I=d.slice(E[y],E[y+1]),_=c.pop();A.push([_,_+I.length-1]),e.splice(_,2,I)}for(A.reverse(),y=-1;++y<A.length;)p[D+A[y][0]]=D+A[y][1],D+=A[y][1]-A[y][0]-1;return p}const Ph={resolve:function(e){return Ad(e),e},tokenize:function(e,n){let a;return function(u){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),i(u)};function i(u){return u===null?o(u):Be(u)?e.check(Th,c,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function c(u){return e.consume(u),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,i}}},Th={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,o,"linePrefix")};function o(c){if(c===null||Be(c))return a(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,a,n)(c)}}};function dd(e,n,a,i,o,c,u,d,A){const p=A||Number.POSITIVE_INFINITY;let h=0;return function(E){return E===60?(e.enter(i),e.enter(o),e.enter(c),e.consume(E),e.exit(c),m):E===null||E===32||E===41||pc(E)?a(E):(e.enter(i),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),D(E))};function m(E){return E===62?(e.enter(c),e.consume(E),e.exit(c),e.exit(o),e.exit(i),n):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===62?(e.exit("chunkString"),e.exit(d),m(E)):E===null||E===60||Be(E)?a(E):(e.consume(E),E===92?C:y)}function C(E){return E===60||E===62||E===92?(e.consume(E),y):y(E)}function D(E){return h||E!==null&&E!==41&&!an(E)?h<p&&E===40?(e.consume(E),h++,D):E===41?(e.consume(E),h--,D):E===null||E===32||E===40||pc(E)?a(E):(e.consume(E),E===92?Q:D):(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(i),n(E))}function Q(E){return E===40||E===41||E===92?(e.consume(E),D):D(E)}}function fd(e,n,a,i,o,c){const u=this;let d,A=0;return function(y){return e.enter(i),e.enter(o),e.consume(y),e.exit(o),e.enter(c),p};function p(y){return A>999||y===null||y===91||y===93&&!d||y===94&&!A&&"_hiddenFootnoteSupport"in u.parser.constructs?a(y):y===93?(e.exit(c),e.enter(o),e.consume(y),e.exit(o),e.exit(i),n):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||Be(y)||A++>999?(e.exit("chunkString"),p(y)):(e.consume(y),d||(d=!Ve(y)),y===92?m:h)}function m(y){return y===91||y===92||y===93?(e.consume(y),A++,h):h(y)}}function pd(e,n,a,i,o,c){let u;return function(m){return m===34||m===39||m===40?(e.enter(i),e.enter(o),e.consume(m),e.exit(o),u=m===40?41:m,d):a(m)};function d(m){return m===u?(e.enter(o),e.consume(m),e.exit(o),e.exit(i),n):(e.enter(c),A(m))}function A(m){return m===u?(e.exit(c),d(u)):m===null?a(m):Be(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ot(e,A,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===u||m===null||Be(m)?(e.exit("chunkString"),A(m)):(e.consume(m),m===92?h:p)}function h(m){return m===u||m===92?(e.consume(m),p):p(m)}}function Mi(e,n){let a;return function i(o){return Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a=!0,i):Ve(o)?ot(e,i,a?"linePrefix":"lineSuffix")(o):n(o)}}const Dh={name:"definition",tokenize:function(e,n,a){const i=this;let o;return function(m){return e.enter("definition"),function(y){return fd.call(i,e,c,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}(m)};function c(m){return o=Ea(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):a(m)}function u(m){return an(m)?Mi(e,d)(m):d(m)}function d(m){return dd(e,A,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function A(m){return e.attempt(Ih,p,p)(m)}function p(m){return Ve(m)?ot(e,h,"whitespace")(m):h(m)}function h(m){return m===null||Be(m)?(e.exit("definition"),i.parser.defined.push(o),n(m)):a(m)}}},Ih={partial:!0,tokenize:function(e,n,a){return function(u){return an(u)?Mi(e,i)(u):a(u)};function i(u){return pd(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return Ve(u)?ot(e,c,"whitespace")(u):c(u)}function c(u){return u===null||Be(u)?n(u):a(u)}}},Bh={name:"hardBreakEscape",tokenize:function(e,n,a){return function(o){return e.enter("hardBreakEscape"),e.consume(o),i};function i(o){return Be(o)?(e.exit("hardBreakEscape"),n(o)):a(o)}}},Mh={name:"headingAtx",resolve:function(e,n){let a,i,o=e.length-2,c=3;return e[c][1].type==="whitespace"&&(c+=2),o-2>c&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(c===o-1||o-4>c&&e[o-2][1].type==="whitespace")&&(o-=c+1===o?2:4),o>c&&(a={type:"atxHeadingText",start:e[c][1].start,end:e[o][1].end},i={type:"chunkText",start:e[c][1].start,end:e[o][1].end,contentType:"text"},ur(e,c,o-c+1,[["enter",a,n],["enter",i,n],["exit",i,n],["exit",a,n]])),e},tokenize:function(e,n,a){let i=0;return function(A){return e.enter("atxHeading"),function(p){return e.enter("atxHeadingSequence"),o(p)}(A)};function o(A){return A===35&&i++<6?(e.consume(A),o):A===null||an(A)?(e.exit("atxHeadingSequence"),c(A)):a(A)}function c(A){return A===35?(e.enter("atxHeadingSequence"),u(A)):A===null||Be(A)?(e.exit("atxHeading"),n(A)):Ve(A)?ot(e,c,"whitespace")(A):(e.enter("atxHeadingText"),d(A))}function u(A){return A===35?(e.consume(A),u):(e.exit("atxHeadingSequence"),c(A))}function d(A){return A===null||A===35||an(A)?(e.exit("atxHeadingText"),c(A)):(e.consume(A),d)}}},Rh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hd=["pre","script","style","textarea"],Oh={concrete:!0,name:"htmlFlow",resolveTo:function(e){let n=e.length;for(;n--&&(e[n][0]!=="enter"||e[n][1].type!=="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},tokenize:function(e,n,a){const i=this;let o,c,u,d,A;return function(O){return function(de){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(de),p}(O)};function p(O){return O===33?(e.consume(O),h):O===47?(e.consume(O),c=!0,C):O===63?(e.consume(O),o=3,i.interrupt?n:me):Ar(O)?(e.consume(O),u=String.fromCharCode(O),D):a(O)}function h(O){return O===45?(e.consume(O),o=2,m):O===91?(e.consume(O),o=5,d=0,y):Ar(O)?(e.consume(O),o=4,i.interrupt?n:me):a(O)}function m(O){return O===45?(e.consume(O),i.interrupt?n:me):a(O)}function y(O){return O==="CDATA[".charCodeAt(d++)?(e.consume(O),d===6?i.interrupt?n:Y:y):a(O)}function C(O){return Ar(O)?(e.consume(O),u=String.fromCharCode(O),D):a(O)}function D(O){if(O===null||O===47||O===62||an(O)){const de=O===47,Ee=u.toLowerCase();return de||c||!hd.includes(Ee)?Rh.includes(u.toLowerCase())?(o=6,de?(e.consume(O),Q):i.interrupt?n(O):Y(O)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(O):c?E(O):I(O)):(o=1,i.interrupt?n(O):Y(O))}return O===45||Sn(O)?(e.consume(O),u+=String.fromCharCode(O),D):a(O)}function Q(O){return O===62?(e.consume(O),i.interrupt?n:Y):a(O)}function E(O){return Ve(O)?(e.consume(O),E):te(O)}function I(O){return O===47?(e.consume(O),te):O===58||O===95||Ar(O)?(e.consume(O),_):Ve(O)?(e.consume(O),I):te(O)}function _(O){return O===45||O===46||O===58||O===95||Sn(O)?(e.consume(O),_):B(O)}function B(O){return O===61?(e.consume(O),U):Ve(O)?(e.consume(O),B):I(O)}function U(O){return O===null||O===60||O===61||O===62||O===96?a(O):O===34||O===39?(e.consume(O),A=O,j):Ve(O)?(e.consume(O),U):z(O)}function j(O){return O===A?(e.consume(O),A=null,W):O===null||Be(O)?a(O):(e.consume(O),j)}function z(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||an(O)?B(O):(e.consume(O),z)}function W(O){return O===47||O===62||Ve(O)?I(O):a(O)}function te(O){return O===62?(e.consume(O),J):a(O)}function J(O){return O===null||Be(O)?Y(O):Ve(O)?(e.consume(O),J):a(O)}function Y(O){return O===45&&o===2?(e.consume(O),ue):O===60&&o===1?(e.consume(O),se):O===62&&o===4?(e.consume(O),M):O===63&&o===3?(e.consume(O),me):O===93&&o===5?(e.consume(O),ge):!Be(O)||o!==6&&o!==7?O===null||Be(O)?(e.exit("htmlFlowData"),ee(O)):(e.consume(O),Y):(e.exit("htmlFlowData"),e.check(Fh,fe,ee)(O))}function ee(O){return e.check(Lh,Z,fe)(O)}function Z(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ie}function ie(O){return O===null||Be(O)?ee(O):(e.enter("htmlFlowData"),Y(O))}function ue(O){return O===45?(e.consume(O),me):Y(O)}function se(O){return O===47?(e.consume(O),u="",xe):Y(O)}function xe(O){if(O===62){const de=u.toLowerCase();return hd.includes(de)?(e.consume(O),M):Y(O)}return Ar(O)&&u.length<8?(e.consume(O),u+=String.fromCharCode(O),xe):Y(O)}function ge(O){return O===93?(e.consume(O),me):Y(O)}function me(O){return O===62?(e.consume(O),M):O===45&&o===2?(e.consume(O),me):Y(O)}function M(O){return O===null||Be(O)?(e.exit("htmlFlowData"),fe(O)):(e.consume(O),M)}function fe(O){return e.exit("htmlFlow"),n(O)}}},Fh={partial:!0,tokenize:function(e,n,a){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ns,n,a)}}},Lh={partial:!0,tokenize:function(e,n,a){const i=this;return function(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):a(c)};function o(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}},Qh={name:"htmlText",tokenize:function(e,n,a){const i=this;let o,c,u;return function(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),d};function d(M){return M===33?(e.consume(M),A):M===47?(e.consume(M),U):M===63?(e.consume(M),_):Ar(M)?(e.consume(M),W):a(M)}function A(M){return M===45?(e.consume(M),p):M===91?(e.consume(M),c=0,C):Ar(M)?(e.consume(M),I):a(M)}function p(M){return M===45?(e.consume(M),y):a(M)}function h(M){return M===null?a(M):M===45?(e.consume(M),m):Be(M)?(u=h,xe(M)):(e.consume(M),h)}function m(M){return M===45?(e.consume(M),y):h(M)}function y(M){return M===62?se(M):M===45?m(M):h(M)}function C(M){return M==="CDATA[".charCodeAt(c++)?(e.consume(M),c===6?D:C):a(M)}function D(M){return M===null?a(M):M===93?(e.consume(M),Q):Be(M)?(u=D,xe(M)):(e.consume(M),D)}function Q(M){return M===93?(e.consume(M),E):D(M)}function E(M){return M===62?se(M):M===93?(e.consume(M),E):D(M)}function I(M){return M===null||M===62?se(M):Be(M)?(u=I,xe(M)):(e.consume(M),I)}function _(M){return M===null?a(M):M===63?(e.consume(M),B):Be(M)?(u=_,xe(M)):(e.consume(M),_)}function B(M){return M===62?se(M):_(M)}function U(M){return Ar(M)?(e.consume(M),j):a(M)}function j(M){return M===45||Sn(M)?(e.consume(M),j):z(M)}function z(M){return Be(M)?(u=z,xe(M)):Ve(M)?(e.consume(M),z):se(M)}function W(M){return M===45||Sn(M)?(e.consume(M),W):M===47||M===62||an(M)?te(M):a(M)}function te(M){return M===47?(e.consume(M),se):M===58||M===95||Ar(M)?(e.consume(M),J):Be(M)?(u=te,xe(M)):Ve(M)?(e.consume(M),te):se(M)}function J(M){return M===45||M===46||M===58||M===95||Sn(M)?(e.consume(M),J):Y(M)}function Y(M){return M===61?(e.consume(M),ee):Be(M)?(u=Y,xe(M)):Ve(M)?(e.consume(M),Y):te(M)}function ee(M){return M===null||M===60||M===61||M===62||M===96?a(M):M===34||M===39?(e.consume(M),o=M,Z):Be(M)?(u=ee,xe(M)):Ve(M)?(e.consume(M),ee):(e.consume(M),ie)}function Z(M){return M===o?(e.consume(M),o=void 0,ue):M===null?a(M):Be(M)?(u=Z,xe(M)):(e.consume(M),Z)}function ie(M){return M===null||M===34||M===39||M===60||M===61||M===96?a(M):M===47||M===62||an(M)?te(M):(e.consume(M),ie)}function ue(M){return M===47||M===62||an(M)?te(M):a(M)}function se(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),n):a(M)}function xe(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ge}function ge(M){return Ve(M)?ot(e,me,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):me(M)}function me(M){return e.enter("htmlTextData"),u(M)}}},yc={name:"labelEnd",resolveAll:function(e){let n=-1;const a=[];for(;++n<e.length;){const i=e[n][1];if(a.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",n+=o}}return e.length!==a.length&&ur(e,0,e.length,a),e},resolveTo:function(e,n){let a,i,o,c,u=e.length,d=0;for(;u--;)if(a=e[u][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[u][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[u][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=u,a.type!=="labelLink")){d=2;break}}else a.type==="labelEnd"&&(o=u);const A={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[i+d+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",A,n],["enter",p,n]],c=Rn(c,e.slice(i+1,i+d+3)),c=Rn(c,[["enter",h,n]]),c=Rn(c,gc(n.parser.constructs.insideSpan.null,e.slice(i+d+4,o-3),n)),c=Rn(c,[["exit",h,n],e[o-2],e[o-1],["exit",p,n]]),c=Rn(c,e.slice(o+1)),c=Rn(c,[["exit",A,n]]),ur(e,i,e.length,c),e},tokenize:function(e,n,a){const i=this;let o,c,u=i.events.length;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){o=i.events[u][1];break}return function(m){return o?o._inactive?h(m):(c=i.parser.defined.includes(Ea(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),d):a(m)};function d(m){return m===40?e.attempt(_h,p,c?p:h)(m):m===91?e.attempt(Hh,p,c?A:h)(m):c?p(m):h(m)}function A(m){return e.attempt(Nh,p,h)(m)}function p(m){return n(m)}function h(m){return o._balanced=!0,a(m)}}},_h={tokenize:function(e,n,a){return function(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i};function i(h){return an(h)?Mi(e,o)(h):o(h)}function o(h){return h===41?p(h):dd(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function c(h){return an(h)?Mi(e,d)(h):p(h)}function u(h){return a(h)}function d(h){return h===34||h===39||h===40?pd(e,A,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function A(h){return an(h)?Mi(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):a(h)}}},Hh={tokenize:function(e,n,a){const i=this;return function(u){return fd.call(i,e,o,c,"reference","referenceMarker","referenceString")(u)};function o(u){return i.parser.defined.includes(Ea(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(u):a(u)}function c(u){return a(u)}}},Nh={tokenize:function(e,n,a){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i};function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):a(o)}}},Uh={name:"labelStartImage",resolveAll:yc.resolveAll,tokenize:function(e,n,a){const i=this;return function(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o};function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):a(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(u):n(u)}}},zh={name:"labelStartLink",resolveAll:yc.resolveAll,tokenize:function(e,n,a){const i=this;return function(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o};function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(c):n(c)}}},bc={name:"lineEnding",tokenize:function(e,n){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ot(e,n,"linePrefix")}}},Us={name:"thematicBreak",tokenize:function(e,n,a){let i,o=0;return function(d){return e.enter("thematicBreak"),function(A){return i=A,c(A)}(d)};function c(d){return d===i?(e.enter("thematicBreakSequence"),u(d)):o>=3&&(d===null||Be(d))?(e.exit("thematicBreak"),n(d)):a(d)}function u(d){return d===i?(e.consume(d),o++,u):(e.exit("thematicBreakSequence"),Ve(d)?ot(e,c,"whitespace")(d):c(d))}}},sn={continuation:{tokenize:function(e,n,a){const i=this;return i.containerState._closeFlow=void 0,e.check(Ns,function(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ot(e,n,"listItemIndent",i.containerState.size+1)(c)},function(c){return i.containerState.furtherBlankLines||!Ve(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Wh,n,o)(c))});function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,ot(e,e.attempt(sn,n,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,n,a){const i=this,o=i.events[i.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return function(y){const C=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:hc(y)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Us,a,A)(y):A(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return a(y)};function d(y){return hc(y)&&++u<10?(e.consume(y),d):(!i.interrupt||u<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),A(y)):a(y)}function A(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(Ns,i.interrupt?a:p,e.attempt(jh,m,h))}function p(y){return i.containerState.initialBlankLine=!0,c++,m(y)}function h(y){return Ve(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),m):a(y)}function m(y){return i.containerState.size=c+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(y)}}},jh={partial:!0,tokenize:function(e,n,a){const i=this;return ot(e,function(o){const c=i.events[i.events.length-1];return!Ve(o)&&c&&c[1].type==="listItemPrefixWhitespace"?n(o):a(o)},"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Wh={partial:!0,tokenize:function(e,n,a){const i=this;return ot(e,function(o){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(o):a(o)},"listItemIndent",i.containerState.size+1)}},gd={name:"setextUnderline",resolveTo:function(e,n){let a,i,o,c=e.length;for(;c--;)if(e[c][0]==="enter"){if(e[c][1].type==="content"){a=c;break}e[c][1].type==="paragraph"&&(i=c)}else e[c][1].type==="content"&&e.splice(c,1),!o&&e[c][1].type==="definition"&&(o=c);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",u,n]),e.splice(o+1,0,["exit",e[a][1],n]),e[a][1].end={...e[o][1].end}):e[a][1]=u,e.push(["exit",u,n]),e},tokenize:function(e,n,a){const i=this;let o;return function(d){let A,p=i.events.length;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){A=i.events[p][1].type==="paragraph";break}return i.parser.lazy[i.now().line]||!i.interrupt&&!A?a(d):(e.enter("setextHeadingLine"),o=d,function(h){return e.enter("setextHeadingLineSequence"),c(h)}(d))};function c(d){return d===o?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Ve(d)?ot(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||Be(d)?(e.exit("setextHeadingLine"),n(d)):a(d)}}},Yh={tokenize:function(e){const n=this,a=e.attempt(Ns,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a)},e.attempt(this.parser.constructs.flowInitial,i,ot(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ph,i)),"linePrefix")));return a;function i(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,a;e.consume(o)}}},Gh={resolveAll:vd()},Vh=md("string"),Xh=md("text");function md(e){return{resolveAll:vd(e==="text"?Jh:void 0),tokenize:function(n){const a=this,i=this.parser.constructs[e],o=n.attempt(i,c,u);return c;function c(p){return A(p)?o(p):u(p)}function u(p){if(p!==null)return n.enter("data"),n.consume(p),d;n.consume(p)}function d(p){return A(p)?(n.exit("data"),o(p)):(n.consume(p),d)}function A(p){if(p===null)return!0;const h=i[p];let m=-1;if(h)for(;++m<h.length;){const y=h[m];if(!y.previous||y.previous.call(a,a.previous))return!0}return!1}}}}function vd(e){return function(n,a){let i,o=-1;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,a):n}}function Jh(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const i=e[a-1][1],o=n.sliceStream(i);let c,u=o.length,d=-1,A=0;for(;u--;){const p=o[u];if(typeof p=="string"){for(d=p.length;p.charCodeAt(d-1)===32;)A++,d--;if(d)break;d=-1}else if(p===-2)c=!0,A++;else if(p!==-1){u++;break}}if(A){const p={type:a===e.length||c||A<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?d:i.start._bufferIndex+d,_index:i.start._index+u,line:i.end.line,column:i.end.column-A,offset:i.end.offset-A},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(a,0,["enter",p,n],["exit",p,n]),a+=2)}a++}return e}const Kh={42:sn,43:sn,45:sn,48:sn,49:sn,50:sn,51:sn,52:sn,53:sn,54:sn,55:sn,56:sn,57:sn,62:id},$h={91:Dh},Zh={[-2]:vc,[-1]:vc,32:vc},qh={35:Mh,42:Us,45:[gd,Us],60:Oh,61:gd,95:Us,96:ud,126:ud},eg={38:ld,92:sd},tg={[-5]:bc,[-4]:bc,[-3]:bc,33:Uh,38:ld,42:mc,60:[xh,Qh],91:zh,92:[Bh,sd],93:yc,95:mc,96:Eh},ng={null:[mc,Gh]},rg=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:$h,disable:{null:[]},document:Kh,flow:qh,flowInitial:Zh,insideSpan:ng,string:eg,text:tg},Symbol.toStringTag,{value:"Module"}));function og(e,n,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const o={},c=[];let u=[],d=[];const A={attempt:Q(function(_,B){E(_,B.from)}),check:Q(D),consume:function(_){Be(_)?(i.line++,i.column=1,i.offset+=_===-3?2:1,I()):_!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=_},enter:function(_,B){const U=B||{};return U.type=_,U.start=y(),p.events.push(["enter",U,p]),d.push(U),U},exit:function(_){const B=d.pop();return B.end=y(),p.events.push(["exit",B,p]),B},interrupt:Q(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:function(_){o[_.line]=_.column,I()},events:[],now:y,parser:e,previous:null,sliceSerialize:function(_,B){return function(U,j){let z=-1;const W=[];let te;for(;++z<U.length;){const J=U[z];let Y;if(typeof J=="string")Y=J;else switch(J){case-5:Y="\r";break;case-4:Y=`
|
|
126
126
|
`;break;case-3:Y=`\r
|
|
127
|
-
`;break;case-2:Y=j?" ":" ";break;case-1:if(!j&&te)continue;Y=" ";break;default:Y=String.fromCharCode(J)}te=J===-2,W.push(Y)}return W.join("")}(m(_),B)},sliceStream:m,write:function(_){return u=Rn(u,_),function(){let B;for(;i._index<u.length;){const U=u[i._index];if(typeof U=="string")for(B=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===B&&i._bufferIndex<U.length;)C(U.charCodeAt(i._bufferIndex));else C(U)}}(),u[u.length-1]!==null?[]:(E(n,0),p.events=mc(c,p.events,p),p.events)}};let h=n.tokenize.call(p,A);return n.resolveAll&&c.push(n),p;function m(_){return function(B,U){const j=U.start._index,z=U.start._bufferIndex,W=U.end._index,te=U.end._bufferIndex;let J;if(j===W)J=[B[j].slice(z,te)];else{if(J=B.slice(j,W),z>-1){const Y=J[0];typeof Y=="string"?J[0]=Y.slice(z):J.shift()}te>0&&J.push(B[W].slice(0,te))}return J}(u,_)}function y(){const{_bufferIndex:_,_index:B,line:U,column:j,offset:z}=i;return{_bufferIndex:_,_index:B,line:U,column:j,offset:z}}function C(_){h=h(_)}function D(_,B){B.restore()}function Q(_,B){return function(U,j,z){let W,te,J,Y;return Array.isArray(U)?ee(U):"tokenize"in U?ee([U]):function(se){return xe;function xe(ge){const me=ge!==null&&se[ge],M=ge!==null&&se.null;return ee([...Array.isArray(me)?me:me?[me]:[],...Array.isArray(M)?M:M?[M]:[]])(ge)}}(U);function ee(se){return W=se,te=0,se.length===0?z:Z(se[te])}function Z(se){return function(xe){return Y=function(){const ge=y(),me=p.previous,M=p.currentConstruct,fe=p.events.length,O=Array.from(d);return{from:fe,restore:de};function de(){i=ge,p.previous=me,p.currentConstruct=M,p.events.length=fe,d=O,I()}}(),J=se,se.partial||(p.currentConstruct=se),se.name&&p.parser.constructs.disable.null.includes(se.name)?ue():se.tokenize.call(B?Object.assign(Object.create(p),B):p,A,ie,ue)(xe)}}function ie(se){return _(J,Y),j}function ue(se){return Y.restore(),++te<W.length?Z(W[te]):z}}}function E(_,B){_.resolveAll&&!c.includes(_)&&c.push(_),_.resolve&&ur(p.events,B,p.events.length-B,_.resolve(p.events.slice(B),p)),_.resolveTo&&(p.events=_.resolveTo(p.events,p))}function I(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}const yd=/[\0\t\n\r]/g,ag=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ig(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const i=a.charCodeAt(1),o=i===120||i===88;return nd(a.slice(o?2:1),o?16:10)}return pc(a)||e}const bd={}.hasOwnProperty;function sg(e,n,a){return typeof n!="string"&&(a=n,n=void 0),function(i){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:A(gt),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:A(pt),blockQuote:A(Ne),characterEscape:Z,characterReference:Z,codeFenced:A(We),codeFencedFenceInfo:p,codeFencedFenceMeta:p,codeIndented:A(We,p),codeText:A(ct,p),codeTextData:Z,data:Z,codeFlowValue:Z,definition:A(ht),definitionDestinationString:p,definitionLabelString:p,definitionTitleString:p,emphasis:A(ln),hardBreakEscape:A(Ft),hardBreakTrailing:A(Ft),htmlFlow:A(jt,p),htmlFlowData:Z,htmlText:A(jt,p),htmlTextData:Z,image:A(Gt),label:p,link:A(gt),listItem:A(Xe),listItemValue:Q,listOrdered:A(st,D),listUnordered:A(st),paragraph:A(Vt),reference:Te,referenceString:p,resourceDestinationString:p,resourceTitleString:p,setextHeading:A(pt),strong:A(cn),thematicBreak:A(at)},exit:{atxHeading:m(),atxHeadingSequence:te,autolink:m(),autolinkEmail:ft,autolinkProtocol:qe,blockQuote:m(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:tt,characterReferenceMarkerNumeric:tt,characterReferenceValue:Le,characterReference:Je,codeFenced:m(B),codeFencedFence:_,codeFencedFenceInfo:E,codeFencedFenceMeta:I,codeFlowValue:ie,codeIndented:m(U),codeText:m(me),codeTextData:ie,data:ie,definition:m(),definitionDestinationString:W,definitionLabelString:j,definitionTitleString:z,emphasis:m(),hardBreakEscape:m(se),hardBreakTrailing:m(se),htmlFlow:m(xe),htmlFlowData:ie,htmlText:m(ge),htmlTextData:ie,image:m(fe),label:de,labelText:O,lineEnding:ue,link:m(M),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:Qe,resourceDestinationString:Ee,resourceTitleString:he,resource:ve,setextHeading:m(ee),setextHeadingLineSequence:Y,setextHeadingText:J,strong:m(),thematicBreak:m()}};wd(o,(i||{}).mdastExtensions||[]);const c={};return u;function u(ne){let we={type:"root",children:[]};const ke={stack:[we],tokenStack:[],config:o,enter:h,exit:y,buffer:p,resume:C,data:c},He=[];let _e=-1;for(;++_e<ne.length;)(ne[_e][1].type==="listOrdered"||ne[_e][1].type==="listUnordered")&&(ne[_e][0]==="enter"?He.push(_e):_e=d(ne,He.pop(),_e));for(_e=-1;++_e<ne.length;){const kt=o[ne[_e][0]];bd.call(kt,ne[_e][1].type)&&kt[ne[_e][1].type].call(Object.assign({sliceSerialize:ne[_e][2].sliceSerialize},ke),ne[_e][1])}if(ke.tokenStack.length>0){const kt=ke.tokenStack[ke.tokenStack.length-1];(kt[1]||xd).call(ke,void 0,kt[0])}for(we.position={start:qr(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:qr(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<o.transforms.length;)we=o.transforms[_e](we)||we;return we}function d(ne,we,ke){let He,_e,kt,Xt,yt=we-1,Jt=-1,Jn=!1;for(;++yt<=ke;){const Ge=ne[yt];switch(Ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Ge[0]==="enter"?Jt++:Jt--,Xt=void 0;break;case"lineEndingBlank":Ge[0]==="enter"&&(He&&!Xt&&!Jt&&!kt&&(kt=yt),Xt=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xt=void 0}if(!Jt&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||Jt===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(He){let bt=yt;for(_e=void 0;bt--;){const mt=ne[bt];if(mt[1].type==="lineEnding"||mt[1].type==="lineEndingBlank"){if(mt[0]==="exit")continue;_e&&(ne[_e][1].type="lineEndingBlank",Jn=!0),mt[1].type="lineEnding",_e=bt}else if(mt[1].type!=="linePrefix"&&mt[1].type!=="blockQuotePrefix"&&mt[1].type!=="blockQuotePrefixWhitespace"&&mt[1].type!=="blockQuoteMarker"&&mt[1].type!=="listItemIndent")break}kt&&(!_e||kt<_e)&&(He._spread=!0),He.end=Object.assign({},_e?ne[_e][1].start:Ge[1].end),ne.splice(_e||yt,0,["exit",He,Ge[2]]),yt++,ke++}if(Ge[1].type==="listItemPrefix"){const bt={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start),end:void 0};He=bt,ne.splice(yt,0,["enter",bt,Ge[2]]),yt++,ke++,kt=void 0,Xt=!0}}}return ne[we][1]._spread=Jn,ke}function A(ne,we){return ke;function ke(He){h.call(this,ne(He),He),we&&we.call(this,He)}}function p(){this.stack.push({type:"fragment",children:[]})}function h(ne,we,ke){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([we,ke||void 0]),ne.position={start:qr(we.start),end:void 0}}function m(ne){return we;function we(ke){ne&&ne.call(this,ke),y.call(this,ke)}}function y(ne,we){const ke=this.stack.pop(),He=this.tokenStack.pop();if(!He)throw new Error("Cannot close `"+ne.type+"` ("+Di({start:ne.start,end:ne.end})+"): it’s not open");He[0].type!==ne.type&&(we?we.call(this,ne,He[0]):(He[1]||xd).call(this,ne,He[0])),ke.position.end=qr(ne.end)}function C(){return function(ne){return ZA(ne,typeof Hs.includeImageAlt!="boolean"||Hs.includeImageAlt,typeof Hs.includeHtml!="boolean"||Hs.includeHtml)}(this.stack.pop())}function D(){this.data.expectingFirstListItemValue=!0}function Q(ne){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0)}function E(){const ne=this.resume();this.stack[this.stack.length-1].lang=ne}function I(){const ne=this.resume();this.stack[this.stack.length-1].meta=ne}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function U(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/(\r?\n|\r)$/g,"")}function j(ne){const we=this.resume(),ke=this.stack[this.stack.length-1];ke.label=we,ke.identifier=Ea(this.sliceSerialize(ne)).toLowerCase()}function z(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function W(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function te(ne){const we=this.stack[this.stack.length-1];if(!we.depth){const ke=this.sliceSerialize(ne).length;we.depth=ke}}function J(){this.data.setextHeadingSlurpLineEnding=!0}function Y(ne){this.stack[this.stack.length-1].depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(ne){const we=this.stack[this.stack.length-1].children;let ke=we[we.length-1];(!ke||ke.type!=="text")&&(ke=Xn(),ke.position={start:qr(ne.start),end:void 0},we.push(ke)),this.stack.push(ke)}function ie(ne){const we=this.stack.pop();we.value+=this.sliceSerialize(ne),we.position.end=qr(ne.end)}function ue(ne){const we=this.stack[this.stack.length-1];if(this.data.atHardBreak)return we.children[we.children.length-1].position.end=qr(ne.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(we.type)&&(Z.call(this,ne),ie.call(this,ne))}function se(){this.data.atHardBreak=!0}function xe(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function ge(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function me(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function M(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=we,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function fe(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=we,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function O(ne){const we=this.sliceSerialize(ne),ke=this.stack[this.stack.length-2];ke.label=function(He){return He.replace(ag,ig)}(we),ke.identifier=Ea(we).toLowerCase()}function de(){const ne=this.stack[this.stack.length-1],we=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const He=ne.children;ke.children=He}else ke.alt=we}function Ee(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function he(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function ve(){this.data.inReference=void 0}function Te(){this.data.referenceType="collapsed"}function Qe(ne){const we=this.resume(),ke=this.stack[this.stack.length-1];ke.label=we,ke.identifier=Ea(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function tt(ne){this.data.characterReferenceType=ne.type}function Le(ne){const we=this.sliceSerialize(ne),ke=this.data.characterReferenceType;let He;ke?(He=nd(we,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=pc(we),this.stack[this.stack.length-1].value+=He}function Je(ne){this.stack.pop().position.end=qr(ne.end)}function qe(ne){ie.call(this,ne),this.stack[this.stack.length-1].url=this.sliceSerialize(ne)}function ft(ne){ie.call(this,ne),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(ne)}function Ne(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function ct(){return{type:"inlineCode",value:""}}function ht(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ln(){return{type:"emphasis",children:[]}}function pt(){return{type:"heading",depth:0,children:[]}}function Ft(){return{type:"break"}}function jt(){return{type:"html",value:""}}function Gt(){return{type:"image",title:null,url:"",alt:null}}function gt(){return{type:"link",title:null,url:"",children:[]}}function st(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function Xe(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function Vt(){return{type:"paragraph",children:[]}}function cn(){return{type:"strong",children:[]}}function Xn(){return{type:"text",value:""}}function at(){return{type:"thematicBreak"}}}(a)(function(i){for(;!Ad(i););return i}(function(i){const o={constructs:dh([rg,...(i||{}).extensions||[]]),content:c(bh),defined:[],document:c(wh),flow:c(Yh),lazy:{},string:c(Vh),text:c(Xh)};return o;function c(u){return function(d){return og(o,u,d)}}}(a).document().write(function(){let i,o=1,c="",u=!0;return function(d,A,p){const h=[];let m,y,C,D,Q;for(d=c+(typeof d=="string"?d.toString():new TextDecoder(A||void 0).decode(d)),C=0,c="",u&&(d.charCodeAt(0)===65279&&C++,u=void 0);C<d.length;){if(yd.lastIndex=C,m=yd.exec(d),D=m&&m.index!==void 0?m.index:d.length,Q=d.charCodeAt(D),!m){c=d.slice(C);break}if(Q===10&&C===D&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),C<D&&(h.push(d.slice(C,D)),o+=D-C),Q){case 0:h.push(65533),o++;break;case 9:for(y=4*Math.ceil(o/4),h.push(-2);o++<y;)h.push(-1);break;case 10:h.push(-4),o=1;break;default:i=!0,o=1}C=D+1}return p&&(i&&h.push(-5),c&&h.push(c),h.push(null)),h}}()(e,n,!0))))}function qr(e){return{line:e.line,column:e.column,offset:e.offset}}function wd(e,n){let a=-1;for(;++a<n.length;){const i=n[a];Array.isArray(i)?wd(e,i):lg(e,i)}}function lg(e,n){let a;for(a in n)if(bd.call(n,a))switch(a){case"canContainEols":{const i=n[a];i&&e[a].push(...i);break}case"transforms":{const i=n[a];i&&e[a].push(...i);break}case"enter":case"exit":{const i=n[a];i&&Object.assign(e[a],i);break}}}function xd(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Di({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Di({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Di({start:n.start,end:n.end})+") is still open")}function cg(e){const n=this;n.parser=function(a){return sg(a,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Sd(e,n){const a=n.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const o=e.all(n),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=i:o.push({type:"text",value:i}),o}function Ed(e){return e.spread??e.children.length>1}function ug(e){const n=String(e),a=/\r?\n|\r/g;let i=a.exec(n),o=0;const c=[];for(;i;)c.push(kd(n.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=a.exec(n);return c.push(kd(n.slice(o),o>0,!1)),c.join("")}function kd(e,n,a){let i=0,o=e.length;if(n){let c=e.codePointAt(i);for(;c===9||c===32;)i++,c=e.codePointAt(i)}if(a){let c=e.codePointAt(o-1);for(;c===9||c===32;)o--,c=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}const Ag={blockquote:function(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)},break:function(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
|
|
127
|
+
`;break;case-2:Y=j?" ":" ";break;case-1:if(!j&&te)continue;Y=" ";break;default:Y=String.fromCharCode(J)}te=J===-2,W.push(Y)}return W.join("")}(m(_),B)},sliceStream:m,write:function(_){return u=Rn(u,_),function(){let B;for(;i._index<u.length;){const U=u[i._index];if(typeof U=="string")for(B=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===B&&i._bufferIndex<U.length;)C(U.charCodeAt(i._bufferIndex));else C(U)}}(),u[u.length-1]!==null?[]:(E(n,0),p.events=gc(c,p.events,p),p.events)}};let h=n.tokenize.call(p,A);return n.resolveAll&&c.push(n),p;function m(_){return function(B,U){const j=U.start._index,z=U.start._bufferIndex,W=U.end._index,te=U.end._bufferIndex;let J;if(j===W)J=[B[j].slice(z,te)];else{if(J=B.slice(j,W),z>-1){const Y=J[0];typeof Y=="string"?J[0]=Y.slice(z):J.shift()}te>0&&J.push(B[W].slice(0,te))}return J}(u,_)}function y(){const{_bufferIndex:_,_index:B,line:U,column:j,offset:z}=i;return{_bufferIndex:_,_index:B,line:U,column:j,offset:z}}function C(_){h=h(_)}function D(_,B){B.restore()}function Q(_,B){return function(U,j,z){let W,te,J,Y;return Array.isArray(U)?ee(U):"tokenize"in U?ee([U]):function(se){return xe;function xe(ge){const me=ge!==null&&se[ge],M=ge!==null&&se.null;return ee([...Array.isArray(me)?me:me?[me]:[],...Array.isArray(M)?M:M?[M]:[]])(ge)}}(U);function ee(se){return W=se,te=0,se.length===0?z:Z(se[te])}function Z(se){return function(xe){return Y=function(){const ge=y(),me=p.previous,M=p.currentConstruct,fe=p.events.length,O=Array.from(d);return{from:fe,restore:de};function de(){i=ge,p.previous=me,p.currentConstruct=M,p.events.length=fe,d=O,I()}}(),J=se,se.partial||(p.currentConstruct=se),se.name&&p.parser.constructs.disable.null.includes(se.name)?ue():se.tokenize.call(B?Object.assign(Object.create(p),B):p,A,ie,ue)(xe)}}function ie(se){return _(J,Y),j}function ue(se){return Y.restore(),++te<W.length?Z(W[te]):z}}}function E(_,B){_.resolveAll&&!c.includes(_)&&c.push(_),_.resolve&&ur(p.events,B,p.events.length-B,_.resolve(p.events.slice(B),p)),_.resolveTo&&(p.events=_.resolveTo(p.events,p))}function I(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}const yd=/[\0\t\n\r]/g,ag=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ig(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const i=a.charCodeAt(1),o=i===120||i===88;return nd(a.slice(o?2:1),o?16:10)}return fc(a)||e}const bd={}.hasOwnProperty;function sg(e,n,a){return typeof n!="string"&&(a=n,n=void 0),function(i){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:A(gt),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:A(pt),blockQuote:A(Ne),characterEscape:Z,characterReference:Z,codeFenced:A(We),codeFencedFenceInfo:p,codeFencedFenceMeta:p,codeIndented:A(We,p),codeText:A(ct,p),codeTextData:Z,data:Z,codeFlowValue:Z,definition:A(ht),definitionDestinationString:p,definitionLabelString:p,definitionTitleString:p,emphasis:A(ln),hardBreakEscape:A(Ft),hardBreakTrailing:A(Ft),htmlFlow:A(jt,p),htmlFlowData:Z,htmlText:A(jt,p),htmlTextData:Z,image:A(Gt),label:p,link:A(gt),listItem:A(Xe),listItemValue:Q,listOrdered:A(st,D),listUnordered:A(st),paragraph:A(Vt),reference:Te,referenceString:p,resourceDestinationString:p,resourceTitleString:p,setextHeading:A(pt),strong:A(cn),thematicBreak:A(at)},exit:{atxHeading:m(),atxHeadingSequence:te,autolink:m(),autolinkEmail:ft,autolinkProtocol:qe,blockQuote:m(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:tt,characterReferenceMarkerNumeric:tt,characterReferenceValue:Le,characterReference:Je,codeFenced:m(B),codeFencedFence:_,codeFencedFenceInfo:E,codeFencedFenceMeta:I,codeFlowValue:ie,codeIndented:m(U),codeText:m(me),codeTextData:ie,data:ie,definition:m(),definitionDestinationString:W,definitionLabelString:j,definitionTitleString:z,emphasis:m(),hardBreakEscape:m(se),hardBreakTrailing:m(se),htmlFlow:m(xe),htmlFlowData:ie,htmlText:m(ge),htmlTextData:ie,image:m(fe),label:de,labelText:O,lineEnding:ue,link:m(M),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:Qe,resourceDestinationString:Ee,resourceTitleString:he,resource:ve,setextHeading:m(ee),setextHeadingLineSequence:Y,setextHeadingText:J,strong:m(),thematicBreak:m()}};wd(o,(i||{}).mdastExtensions||[]);const c={};return u;function u(ne){let we={type:"root",children:[]};const ke={stack:[we],tokenStack:[],config:o,enter:h,exit:y,buffer:p,resume:C,data:c},He=[];let _e=-1;for(;++_e<ne.length;)(ne[_e][1].type==="listOrdered"||ne[_e][1].type==="listUnordered")&&(ne[_e][0]==="enter"?He.push(_e):_e=d(ne,He.pop(),_e));for(_e=-1;++_e<ne.length;){const kt=o[ne[_e][0]];bd.call(kt,ne[_e][1].type)&&kt[ne[_e][1].type].call(Object.assign({sliceSerialize:ne[_e][2].sliceSerialize},ke),ne[_e][1])}if(ke.tokenStack.length>0){const kt=ke.tokenStack[ke.tokenStack.length-1];(kt[1]||xd).call(ke,void 0,kt[0])}for(we.position={start:qr(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:qr(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<o.transforms.length;)we=o.transforms[_e](we)||we;return we}function d(ne,we,ke){let He,_e,kt,Xt,yt=we-1,Jt=-1,Jn=!1;for(;++yt<=ke;){const Ge=ne[yt];switch(Ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Ge[0]==="enter"?Jt++:Jt--,Xt=void 0;break;case"lineEndingBlank":Ge[0]==="enter"&&(He&&!Xt&&!Jt&&!kt&&(kt=yt),Xt=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xt=void 0}if(!Jt&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||Jt===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(He){let bt=yt;for(_e=void 0;bt--;){const mt=ne[bt];if(mt[1].type==="lineEnding"||mt[1].type==="lineEndingBlank"){if(mt[0]==="exit")continue;_e&&(ne[_e][1].type="lineEndingBlank",Jn=!0),mt[1].type="lineEnding",_e=bt}else if(mt[1].type!=="linePrefix"&&mt[1].type!=="blockQuotePrefix"&&mt[1].type!=="blockQuotePrefixWhitespace"&&mt[1].type!=="blockQuoteMarker"&&mt[1].type!=="listItemIndent")break}kt&&(!_e||kt<_e)&&(He._spread=!0),He.end=Object.assign({},_e?ne[_e][1].start:Ge[1].end),ne.splice(_e||yt,0,["exit",He,Ge[2]]),yt++,ke++}if(Ge[1].type==="listItemPrefix"){const bt={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start),end:void 0};He=bt,ne.splice(yt,0,["enter",bt,Ge[2]]),yt++,ke++,kt=void 0,Xt=!0}}}return ne[we][1]._spread=Jn,ke}function A(ne,we){return ke;function ke(He){h.call(this,ne(He),He),we&&we.call(this,He)}}function p(){this.stack.push({type:"fragment",children:[]})}function h(ne,we,ke){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([we,ke||void 0]),ne.position={start:qr(we.start),end:void 0}}function m(ne){return we;function we(ke){ne&&ne.call(this,ke),y.call(this,ke)}}function y(ne,we){const ke=this.stack.pop(),He=this.tokenStack.pop();if(!He)throw new Error("Cannot close `"+ne.type+"` ("+Di({start:ne.start,end:ne.end})+"): it’s not open");He[0].type!==ne.type&&(we?we.call(this,ne,He[0]):(He[1]||xd).call(this,ne,He[0])),ke.position.end=qr(ne.end)}function C(){return function(ne){return ZA(ne,typeof Hs.includeImageAlt!="boolean"||Hs.includeImageAlt,typeof Hs.includeHtml!="boolean"||Hs.includeHtml)}(this.stack.pop())}function D(){this.data.expectingFirstListItemValue=!0}function Q(ne){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0)}function E(){const ne=this.resume();this.stack[this.stack.length-1].lang=ne}function I(){const ne=this.resume();this.stack[this.stack.length-1].meta=ne}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function U(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/(\r?\n|\r)$/g,"")}function j(ne){const we=this.resume(),ke=this.stack[this.stack.length-1];ke.label=we,ke.identifier=Ea(this.sliceSerialize(ne)).toLowerCase()}function z(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function W(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function te(ne){const we=this.stack[this.stack.length-1];if(!we.depth){const ke=this.sliceSerialize(ne).length;we.depth=ke}}function J(){this.data.setextHeadingSlurpLineEnding=!0}function Y(ne){this.stack[this.stack.length-1].depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(ne){const we=this.stack[this.stack.length-1].children;let ke=we[we.length-1];(!ke||ke.type!=="text")&&(ke=Xn(),ke.position={start:qr(ne.start),end:void 0},we.push(ke)),this.stack.push(ke)}function ie(ne){const we=this.stack.pop();we.value+=this.sliceSerialize(ne),we.position.end=qr(ne.end)}function ue(ne){const we=this.stack[this.stack.length-1];if(this.data.atHardBreak)return we.children[we.children.length-1].position.end=qr(ne.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(we.type)&&(Z.call(this,ne),ie.call(this,ne))}function se(){this.data.atHardBreak=!0}function xe(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function ge(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function me(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function M(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=we,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function fe(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=we,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function O(ne){const we=this.sliceSerialize(ne),ke=this.stack[this.stack.length-2];ke.label=function(He){return He.replace(ag,ig)}(we),ke.identifier=Ea(we).toLowerCase()}function de(){const ne=this.stack[this.stack.length-1],we=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const He=ne.children;ke.children=He}else ke.alt=we}function Ee(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function he(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function ve(){this.data.inReference=void 0}function Te(){this.data.referenceType="collapsed"}function Qe(ne){const we=this.resume(),ke=this.stack[this.stack.length-1];ke.label=we,ke.identifier=Ea(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function tt(ne){this.data.characterReferenceType=ne.type}function Le(ne){const we=this.sliceSerialize(ne),ke=this.data.characterReferenceType;let He;ke?(He=nd(we,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=fc(we),this.stack[this.stack.length-1].value+=He}function Je(ne){this.stack.pop().position.end=qr(ne.end)}function qe(ne){ie.call(this,ne),this.stack[this.stack.length-1].url=this.sliceSerialize(ne)}function ft(ne){ie.call(this,ne),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(ne)}function Ne(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function ct(){return{type:"inlineCode",value:""}}function ht(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ln(){return{type:"emphasis",children:[]}}function pt(){return{type:"heading",depth:0,children:[]}}function Ft(){return{type:"break"}}function jt(){return{type:"html",value:""}}function Gt(){return{type:"image",title:null,url:"",alt:null}}function gt(){return{type:"link",title:null,url:"",children:[]}}function st(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function Xe(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function Vt(){return{type:"paragraph",children:[]}}function cn(){return{type:"strong",children:[]}}function Xn(){return{type:"text",value:""}}function at(){return{type:"thematicBreak"}}}(a)(function(i){for(;!Ad(i););return i}(function(i){const o={constructs:dh([rg,...(i||{}).extensions||[]]),content:c(bh),defined:[],document:c(wh),flow:c(Yh),lazy:{},string:c(Vh),text:c(Xh)};return o;function c(u){return function(d){return og(o,u,d)}}}(a).document().write(function(){let i,o=1,c="",u=!0;return function(d,A,p){const h=[];let m,y,C,D,Q;for(d=c+(typeof d=="string"?d.toString():new TextDecoder(A||void 0).decode(d)),C=0,c="",u&&(d.charCodeAt(0)===65279&&C++,u=void 0);C<d.length;){if(yd.lastIndex=C,m=yd.exec(d),D=m&&m.index!==void 0?m.index:d.length,Q=d.charCodeAt(D),!m){c=d.slice(C);break}if(Q===10&&C===D&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),C<D&&(h.push(d.slice(C,D)),o+=D-C),Q){case 0:h.push(65533),o++;break;case 9:for(y=4*Math.ceil(o/4),h.push(-2);o++<y;)h.push(-1);break;case 10:h.push(-4),o=1;break;default:i=!0,o=1}C=D+1}return p&&(i&&h.push(-5),c&&h.push(c),h.push(null)),h}}()(e,n,!0))))}function qr(e){return{line:e.line,column:e.column,offset:e.offset}}function wd(e,n){let a=-1;for(;++a<n.length;){const i=n[a];Array.isArray(i)?wd(e,i):lg(e,i)}}function lg(e,n){let a;for(a in n)if(bd.call(n,a))switch(a){case"canContainEols":{const i=n[a];i&&e[a].push(...i);break}case"transforms":{const i=n[a];i&&e[a].push(...i);break}case"enter":case"exit":{const i=n[a];i&&Object.assign(e[a],i);break}}}function xd(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Di({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Di({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Di({start:n.start,end:n.end})+") is still open")}function cg(e){const n=this;n.parser=function(a){return sg(a,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Sd(e,n){const a=n.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const o=e.all(n),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=i:o.push({type:"text",value:i}),o}function Ed(e){return e.spread??e.children.length>1}function ug(e){const n=String(e),a=/\r?\n|\r/g;let i=a.exec(n),o=0;const c=[];for(;i;)c.push(kd(n.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=a.exec(n);return c.push(kd(n.slice(o),o>0,!1)),c.join("")}function kd(e,n,a){let i=0,o=e.length;if(n){let c=e.codePointAt(i);for(;c===9||c===32;)i++,c=e.codePointAt(i)}if(a){let c=e.codePointAt(o-1);for(;c===9||c===32;)o--,c=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}const Ag={blockquote:function(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)},break:function(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
|
|
128
128
|
`}]},code:function(e,n){const a=n.value?n.value+`
|
|
129
129
|
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:a}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o},delete:function(e,n){const a={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},emphasis:function(e,n){const a={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},footnoteReference:function(e,n){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),o=ka(i.toLowerCase()),c=e.footnoteOrder.indexOf(i);let u,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=c+1,d+=1,e.footnoteCounts.set(i,d);const A={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+o,id:a+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(n,A);const p={type:"element",tagName:"sup",properties:{},children:[A]};return e.patch(n,p),e.applyData(n,p)},heading:function(e,n){const a={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},html:function(e,n){if(e.options.allowDangerousHtml){const a={type:"raw",value:n.value};return e.patch(n,a),e.applyData(n,a)}},imageReference:function(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Sd(e,n);const o={src:ka(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const c={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,c),e.applyData(n,c)},image:function(e,n){const a={src:ka(n.url)};n.alt!==null&&n.alt!==void 0&&(a.alt=n.alt),n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,i),e.applyData(n,i)},inlineCode:function(e,n){const a={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,a);const i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(n,i),e.applyData(n,i)},linkReference:function(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Sd(e,n);const o={href:ka(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const c={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,c),e.applyData(n,c)},link:function(e,n){const a={href:ka(n.url)};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)},listItem:function(e,n,a){const i=e.all(n),o=a?function(h){let m=!1;if(h.type==="list"){m=h.spread||!1;const y=h.children;let C=-1;for(;!m&&++C<y.length;)m=Ed(y[C])}return m}(a):Ed(n),c={},u=[];if(typeof n.checked=="boolean"){const h=i[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},i.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const h=i[d];(o||d!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
|
|
130
130
|
`}),h.type!=="element"||h.tagName!=="p"||o?u.push(h):u.push(...h.children)}const A=i[i.length-1];A&&(o||A.type!=="element"||A.tagName!=="p")&&u.push({type:"text",value:`
|
|
131
|
-
`});const p={type:"element",tagName:"li",properties:c,children:u};return e.patch(n,p),e.applyData(n,p)},list:function(e,n){const a={},i=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(a.start=n.start);++o<i.length;){const u=i[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const c={type:"element",tagName:n.ordered?"ol":"ul",properties:a,children:e.wrap(i,!0)};return e.patch(n,c),e.applyData(n,c)},paragraph:function(e,n){const a={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},root:function(e,n){const a={type:"root",children:e.wrap(e.all(n))};return e.patch(n,a),e.applyData(n,a)},strong:function(e,n){const a={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},table:function(e,n){const a=e.all(n),i=a.shift(),o=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],u),o.push(u)}if(a.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},d=
|
|
131
|
+
`});const p={type:"element",tagName:"li",properties:c,children:u};return e.patch(n,p),e.applyData(n,p)},list:function(e,n){const a={},i=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(a.start=n.start);++o<i.length;){const u=i[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const c={type:"element",tagName:n.ordered?"ol":"ul",properties:a,children:e.wrap(i,!0)};return e.patch(n,c),e.applyData(n,c)},paragraph:function(e,n){const a={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},root:function(e,n){const a={type:"root",children:e.wrap(e.all(n))};return e.patch(n,a),e.applyData(n,a)},strong:function(e,n){const a={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},table:function(e,n){const a=e.all(n),i=a.shift(),o=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],u),o.push(u)}if(a.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},d=sc(n.children[1]),A=WA(n.children[n.children.length-1]);d&&A&&(u.position={start:d,end:A}),o.push(u)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,c),e.applyData(n,c)},tableCell:function(e,n){const a={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},tableRow:function(e,n,a){const i=a?a.children:void 0,o=(i?i.indexOf(n):1)===0?"th":"td",c=a&&a.type==="table"?a.align:void 0,u=c?c.length:n.children.length;let d=-1;const A=[];for(;++d<u;){const h=n.children[d],m={},y=c?c[d]:void 0;y&&(m.align=y);let C={type:"element",tagName:o,properties:m,children:[]};h&&(C.children=e.all(h),e.patch(h,C),C=e.applyData(h,C)),A.push(C)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(A,!0)};return e.patch(n,p),e.applyData(n,p)},text:function(e,n){const a={type:"text",value:ug(String(n.value))};return e.patch(n,a),e.applyData(n,a)},thematicBreak:function(e,n){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,a),e.applyData(n,a)},toml:zs,yaml:zs,definition:zs,footnoteDefinition:zs};function zs(){}const Cd=typeof self=="object"?self:globalThis,Pd=e=>((n,a)=>{const i=(c,u)=>(n.set(u,c),c),o=c=>{if(n.has(c))return n.get(c);const[u,d]=a[c];switch(u){case 0:case-1:return i(d,c);case 1:{const A=i([],c);for(const p of d)A.push(o(p));return A}case 2:{const A=i({},c);for(const[p,h]of d)A[o(p)]=o(h);return A}case 3:return i(new Date(d),c);case 4:{const{source:A,flags:p}=d;return i(new RegExp(A,p),c)}case 5:{const A=i(new Map,c);for(const[p,h]of d)A.set(o(p),o(h));return A}case 6:{const A=i(new Set,c);for(const p of d)A.add(o(p));return A}case 7:{const{name:A,message:p}=d;return i(new Cd[A](p),c)}case 8:return i(BigInt(d),c);case"BigInt":return i(Object(BigInt(d)),c);case"ArrayBuffer":return i(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:A}=new Uint8Array(d);return i(new DataView(A),d)}}return i(new Cd[u](d),c)};return o})(new Map,e)(0),Ca="",{toString:dg}={},{keys:fg}=Object,Ri=e=>{const n=typeof e;if(n!=="object"||!e)return[0,n];const a=dg.call(e).slice(8,-1);switch(a){case"Array":return[1,Ca];case"Object":return[2,Ca];case"Date":return[3,Ca];case"RegExp":return[4,Ca];case"Map":return[5,Ca];case"Set":return[6,Ca];case"DataView":return[1,a]}return a.includes("Array")?[1,a]:a.includes("Error")?[7,a]:[2,a]},js=([e,n])=>e===0&&(n==="function"||n==="symbol"),Td=(e,{json:n,lossy:a}={})=>{const i=[];return((o,c,u,d)=>{const A=(h,m)=>{const y=d.push(h)-1;return u.set(m,y),y},p=h=>{if(u.has(h))return u.get(h);let[m,y]=Ri(h);switch(m){case 0:{let D=h;switch(y){case"bigint":m=8,D=h.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+y);D=null;break;case"undefined":return A([-1],h)}return A([m,D],h)}case 1:{if(y){let E=h;return y==="DataView"?E=new Uint8Array(h.buffer):y==="ArrayBuffer"&&(E=new Uint8Array(h)),A([y,[...E]],h)}const D=[],Q=A([m,D],h);for(const E of h)D.push(p(E));return Q}case 2:{if(y)switch(y){case"BigInt":return A([y,h.toString()],h);case"Boolean":case"Number":case"String":return A([y,h.valueOf()],h)}if(c&&"toJSON"in h)return p(h.toJSON());const D=[],Q=A([m,D],h);for(const E of fg(h))(o||!js(Ri(h[E])))&&D.push([p(E),p(h[E])]);return Q}case 3:return A([m,h.toISOString()],h);case 4:{const{source:D,flags:Q}=h;return A([m,{source:D,flags:Q}],h)}case 5:{const D=[],Q=A([m,D],h);for(const[E,I]of h)(o||!js(Ri(E))&&!js(Ri(I)))&&D.push([p(E),p(I)]);return Q}case 6:{const D=[],Q=A([m,D],h);for(const E of h)(o||!js(Ri(E)))&&D.push(p(E));return Q}}const{message:C}=h;return A([m,{name:y,message:C}],h)};return p})(!(n||a),!!n,new Map,i)(e),i},Ws=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Pd(Td(e,n)):structuredClone(e):(e,n)=>Pd(Td(e,n));function pg(e,n){const a=[{type:"text",value:"↩"}];return n>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),a}function hg(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}const Dd=function(e){if(e==null)return gg;if(typeof e=="function")return Ys(e);if(typeof e=="object")return Array.isArray(e)?function(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=Dd(n[i]);return Ys(o);function o(...c){let u=-1;for(;++u<a.length;)if(a[u].apply(this,c))return!0;return!1}}(e):function(n){const a=n;return Ys(i);function i(o){const c=o;let u;for(u in n)if(c[u]!==a[u])return!1;return!0}}(e);if(typeof e=="string")return function(n){return Ys(a);function a(i){return i&&i.type===n}}(e);throw new Error("Expected function, string, or object as test")};function Ys(e){return function(n,a,i){return!(!function(o){return o!==null&&typeof o=="object"&&"type"in o}(n)||!e.call(this,n,typeof a=="number"?a:void 0,i||void 0))}}function gg(){return!0}const Id=[],mg=!0,Bd=!1;function vg(e,n,a,i){let o;typeof n=="function"&&typeof a!="function"?(i=a,a=n):o=n;const c=Dd(o),u=i?-1:1;(function d(A,p,h){const m=A&&typeof A=="object"?A:{};if(typeof m.type=="string"){const C=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(y,"name",{value:"node ("+A.type+(C?"<"+C+">":"")+")"})}return y;function y(){let C,D,Q,E=Id;if((!n||c(A,p,h[h.length-1]||void 0))&&(E=function(I){return Array.isArray(I)?I:typeof I=="number"?[mg,I]:I==null?Id:[I]}(a(A,h)),E[0]===Bd))return E;if("children"in A&&A.children){const I=A;if(I.children&&E[0]!=="skip")for(D=(i?I.children.length:-1)+u,Q=h.concat(I);D>-1&&D<I.children.length;){const _=I.children[D];if(C=d(_,D,Q)(),C[0]===Bd)return C;D=typeof C[1]=="number"?C[1]:D+u}}return E}})(e,void 0,[])()}function Md(e,n,a,i){let o,c,u;typeof n=="function"?(c=void 0,u=n,o=a):(c=n,u=a,o=i),vg(e,c,function(d,A){const p=A[A.length-1],h=p?p.children.indexOf(d):void 0;return u(d,h,p)},o)}const wc={}.hasOwnProperty,yg={};function bg(e,n){const a=n||yg,i=new Map,o=new Map,c=new Map,u={...Ag,...a.handlers},d={all:function(A){const p=[];if("children"in A){const h=A.children;let m=-1;for(;++m<h.length;){const y=d.one(h[m],A);if(y){if(m&&h[m-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=Rd(y.value)),!Array.isArray(y)&&y.type==="element")){const C=y.children[0];C&&C.type==="text"&&(C.value=Rd(C.value))}Array.isArray(y)?p.push(...y):p.push(y)}}}return p},applyData:xg,definitionById:i,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:u,one:function(A,p){const h=A.type,m=d.handlers[h];if(wc.call(d.handlers,h)&&m)return m(d,A,p);if(d.options.passThrough&&d.options.passThrough.includes(h)){if("children"in A){const{children:y,...C}=A,D=Ws(C);return D.children=d.all(A),D}return Ws(A)}return(d.options.unknownHandler||Sg)(d,A,p)},options:a,patch:wg,wrap:Eg};return Md(e,function(A){if(A.type==="definition"||A.type==="footnoteDefinition"){const p=A.type==="definition"?i:o,h=String(A.identifier).toUpperCase();p.has(h)||p.set(h,A)}}),d}function wg(e,n){e.position&&(n.position=function(a){const i=sc(a),o=WA(a);if(i&&o)return{start:i,end:o}}(e))}function xg(e,n){let a=n;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,c=e.data.hProperties;typeof i=="string"&&(a.type==="element"?a.tagName=i:a={type:"element",tagName:i,properties:{},children:"children"in a?a.children:[a]}),a.type==="element"&&c&&Object.assign(a.properties,Ws(c)),"children"in a&&a.children&&o!=null&&(a.children=o)}return a}function Sg(e,n){const a=n.data||{},i=!("value"in n)||wc.call(a,"hProperties")||wc.call(a,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(n)}:{type:"text",value:n.value};return e.patch(n,i),e.applyData(n,i)}function Eg(e,n){const a=[];let i=-1;for(n&&a.push({type:"text",value:`
|
|
132
132
|
`});++i<e.length;)i&&a.push({type:"text",value:`
|
|
133
133
|
`}),a.push(e[i]);return n&&e.length>0&&a.push({type:"text",value:`
|
|
134
134
|
`}),a}function Rd(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function Od(e,n){const a=bg(e,n),i=a.one(e,void 0),o=function(u){const d=typeof u.options.clobberPrefix=="string"?u.options.clobberPrefix:"user-content-",A=u.options.footnoteBackContent||pg,p=u.options.footnoteBackLabel||hg,h=u.options.footnoteLabel||"Footnotes",m=u.options.footnoteLabelTagName||"h2",y=u.options.footnoteLabelProperties||{className:["sr-only"]},C=[];let D=-1;for(;++D<u.footnoteOrder.length;){const Q=u.footnoteById.get(u.footnoteOrder[D]);if(!Q)continue;const E=u.all(Q),I=String(Q.identifier).toUpperCase(),_=ka(I.toLowerCase());let B=0;const U=[],j=u.footnoteCounts.get(I);for(;j!==void 0&&++B<=j;){U.length>0&&U.push({type:"text",value:" "});let te=typeof A=="string"?A:A(D,B);typeof te=="string"&&(te={type:"text",value:te}),U.push({type:"element",tagName:"a",properties:{href:"#"+d+"fnref-"+_+(B>1?"-"+B:""),dataFootnoteBackref:"",ariaLabel:typeof p=="string"?p:p(D,B),className:["data-footnote-backref"]},children:Array.isArray(te)?te:[te]})}const z=E[E.length-1];if(z&&z.type==="element"&&z.tagName==="p"){const te=z.children[z.children.length-1];te&&te.type==="text"?te.value+=" ":z.children.push({type:"text",value:" "}),z.children.push(...U)}else E.push(...U);const W={type:"element",tagName:"li",properties:{id:d+"fn-"+_},children:u.wrap(E,!0)};u.patch(Q,W),C.push(W)}if(C.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:m,properties:{...Ws(y),id:"footnote-label"},children:[{type:"text",value:h}]},{type:"text",value:`
|
|
135
135
|
`},{type:"element",tagName:"ol",properties:{},children:u.wrap(C,!0)},{type:"text",value:`
|
|
136
136
|
`}]}}(a),c=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
|
|
137
|
-
`},o),c}function kg(e,n){return e&&"run"in e?async function(a,i){const o=Od(a,{file:i,...n});await e.run(o,i)}:function(a,i){return Od(a,{file:i,...e||n})}}function Fd(e){if(e)throw e}var Sc,Ld,Cg=function(){if(Ld)return Sc;Ld=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(A){return typeof Array.isArray=="function"?Array.isArray(A):n.call(A)==="[object Array]"},c=function(A){if(!A||n.call(A)!=="[object Object]")return!1;var p,h=e.call(A,"constructor"),m=A.constructor&&A.constructor.prototype&&e.call(A.constructor.prototype,"isPrototypeOf");if(A.constructor&&!h&&!m)return!1;for(p in A);return typeof p>"u"||e.call(A,p)},u=function(A,p){a&&p.name==="__proto__"?a(A,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):A[p.name]=p.newValue},d=function(A,p){if(p==="__proto__"){if(!e.call(A,p))return;if(i)return i(A,p).value}return A[p]};return Sc=function A(){var p,h,m,y,C,D,Q=arguments[0],E=1,I=arguments.length,_=!1;for(typeof Q=="boolean"&&(_=Q,Q=arguments[1]||{},E=2),(Q==null||typeof Q!="object"&&typeof Q!="function")&&(Q={});E<I;++E)if((p=arguments[E])!=null)for(h in p)m=d(Q,h),Q!==(y=d(p,h))&&(_&&y&&(c(y)||(C=o(y)))?(C?(C=!1,D=m&&o(m)?m:[]):D=m&&c(m)?m:{},u(Q,{name:h,newValue:A(_,D,y)})):typeof y<"u"&&u(Q,{name:h,newValue:y}));return Q},Sc}();const Ec=NA(Cg);function kc(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Pg(){const e=[],n={run:function(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function c(u,...d){const A=e[++i];let p=-1;if(u)o(u);else{for(;++p<a.length;)(d[p]===null||d[p]===void 0)&&(d[p]=a[p]);a=d,A?function(h,m){let y;return C;function C(...E){const I=h.length>E.length;let _;I&&E.push(D);try{_=h.apply(this,E)}catch(B){if(I&&y)throw B;return D(B)}I||(_&&_.then&&typeof _.then=="function"?_.then(Q,D):_ instanceof Error?D(_):Q(_))}function D(E,...I){y||(y=!0,m(E,...I))}function Q(E){D(null,E)}}(A,c)(...d):o(null,...d)}})(null,...a)},use:function(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),n}};return n}const dr={basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Oi(e);let a,i=0,o=-1,c=e.length;if(n===void 0||n.length===0||n.length>e.length){for(;c--;)if(e.codePointAt(c)===47){if(a){i=c+1;break}}else o<0&&(a=!0,o=c+1);return o<0?"":e.slice(i,o)}if(n===e)return"";let u=-1,d=n.length-1;for(;c--;)if(e.codePointAt(c)===47){if(a){i=c+1;break}}else u<0&&(a=!0,u=c+1),d>-1&&(e.codePointAt(c)===n.codePointAt(d--)?d<0&&(o=c):(d=-1,o=u));return i===o?o=u:o<0&&(o=e.length),e.slice(i,o)},dirname:function(e){if(Oi(e),e.length===0)return".";let n,a=-1,i=e.length;for(;--i;)if(e.codePointAt(i)===47){if(n){a=i;break}}else n||(n=!0);return a<0?e.codePointAt(0)===47?"/":".":a===1&&e.codePointAt(0)===47?"//":e.slice(0,a)},extname:function(e){Oi(e);let n,a=e.length,i=-1,o=0,c=-1,u=0;for(;a--;){const d=e.codePointAt(a);if(d!==47)i<0&&(n=!0,i=a+1),d===46?c<0?c=a:u!==1&&(u=1):c>-1&&(u=-1);else if(n){o=a+1;break}}return c<0||i<0||u===0||u===1&&c===i-1&&c===o+1?"":e.slice(c,i)},join:function(...e){let n,a=-1;for(;++a<e.length;)Oi(e[a]),e[a]&&(n=n===void 0?e[a]:n+"/"+e[a]);return n===void 0?".":function(i){Oi(i);const o=i.codePointAt(0)===47;let c=function(u,d){let A,p,h="",m=0,y=-1,C=0,D=-1;for(;++D<=u.length;){if(D<u.length)A=u.codePointAt(D);else{if(A===47)break;A=47}if(A===47){if(y!==D-1&&C!==1)if(y!==D-1&&C===2){if(h.length<2||m!==2||h.codePointAt(h.length-1)!==46||h.codePointAt(h.length-2)!==46){if(h.length>2){if(p=h.lastIndexOf("/"),p!==h.length-1){p<0?(h="",m=0):(h=h.slice(0,p),m=h.length-1-h.lastIndexOf("/")),y=D,C=0;continue}}else if(h.length>0){h="",m=0,y=D,C=0;continue}}d&&(h=h.length>0?h+"/..":"..",m=2)}else h.length>0?h+="/"+u.slice(y+1,D):h=u.slice(y+1,D),m=D-y-1;y=D,C=0}else A===46&&C>-1?C++:C=-1}return h}(i,!o);return c.length===0&&!o&&(c="."),c.length>0&&i.codePointAt(i.length-1)===47&&(c+="/"),o?"/"+c:c}(n)},sep:"/"};function Oi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Tg={cwd:function(){return"/"}};function Cc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dg(e){if(typeof e=="string")e=new URL(e);else if(!Cc(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=n.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const o=a.codePointAt(i+2);if(o===70||o===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(a)}(e)}const Pc=["history","path","basename","stem","extname","dirname"];class Qd{constructor(n){let a;var i;a=n?Cc(n)?{path:n}:typeof n=="string"||(i=n)&&typeof i=="object"&&"byteLength"in i&&"byteOffset"in i?{value:n}:n:{},this.cwd="cwd"in a?"":Tg.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,c=-1;for(;++c<Pc.length;){const u=Pc[c];u in a&&a[u]!==void 0&&a[u]!==null&&(this[u]=u==="history"?[...a[u]]:a[u])}for(o in a)Pc.includes(o)||(this[o]=a[o])}get basename(){return typeof this.path=="string"?dr.basename(this.path):void 0}set basename(n){Dc(n,"basename"),Tc(n,"basename"),this.path=dr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?dr.dirname(this.path):void 0}set dirname(n){_d(this.basename,"dirname"),this.path=dr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?dr.extname(this.path):void 0}set extname(n){if(Tc(n,"extname"),_d(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=dr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Cc(n)&&(n=Dg(n)),Dc(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?dr.basename(this.path,this.extname):void 0}set stem(n){Dc(n,"stem"),Tc(n,"stem"),this.path=dr.join(this.dirname||"",n+(this.extname||""))}fail(n,a,i){const o=this.message(n,a,i);throw o.fatal=!0,o}info(n,a,i){const o=this.message(n,a,i);return o.fatal=void 0,o}message(n,a,i){const o=new zt(n,a,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Tc(e,n){if(e&&e.includes(dr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+dr.sep+"`")}function Dc(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function _d(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}const Ig=function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i},Bg={}.hasOwnProperty;class Ic extends Ig{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Pg()}copy(){const n=new Ic;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];n.use(...i)}return n.data(Ec(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(Rc("data",this.frozen),this.namespace[n]=a,this):Bg.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Rc("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=a.call(n,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=Gs(n),i=this.parser||this.Parser;return Bc("parse",i),i(String(a),a)}process(n,a){const i=this;return this.freeze(),Bc("process",this.parser||this.Parser),Mc("process",this.compiler||this.Compiler),a?o(void 0,a):new Promise(o);function o(c,u){const d=Gs(n),A=i.parse(d);function p(h,m){h||!m?u(h):c?c(m):a(void 0,m)}i.run(A,d,function(h,m,y){if(h||!m||!y)return p(h);const C=m,D=i.stringify(C,y);var Q;typeof(Q=D)=="string"||function(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}(Q)?y.value=D:y.result=D,p(h,y)})}}processSync(n){let a,i=!1;return this.freeze(),Bc("processSync",this.parser||this.Parser),Mc("processSync",this.compiler||this.Compiler),this.process(n,function(o,c){i=!0,Fd(o),a=c}),Nd("processSync","process",i),a}run(n,a,i){Hd(n),this.freeze();const o=this.transformers;return!i&&typeof a=="function"&&(i=a,a=void 0),i?c(void 0,i):new Promise(c);function c(u,d){const A=Gs(a);o.run(n,A,function(p,h,m){const y=h||n;p?d(p):u?u(y):i(void 0,y,m)})}}runSync(n,a){let i,o=!1;return this.run(n,a,function(c,u){Fd(c),i=u,o=!0}),Nd("runSync","run",o),i}stringify(n,a){this.freeze();const i=Gs(a),o=this.compiler||this.Compiler;return Mc("stringify",o),Hd(n),o(n,i)}use(n,...a){const i=this.attachers,o=this.namespace;if(Rc("use",this.frozen),n!=null)if(typeof n=="function")A(n,a);else{if(typeof n!="object")throw new TypeError("Expected usable value, not `"+n+"`");Array.isArray(n)?d(n):u(n)}return this;function c(p){if(typeof p=="function")A(p,[]);else{if(typeof p!="object")throw new TypeError("Expected usable value, not `"+p+"`");if(Array.isArray(p)){const[h,...m]=p;A(h,m)}else u(p)}}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=Ec(!0,o.settings,p.settings))}function d(p){let h=-1;if(p!=null){if(!Array.isArray(p))throw new TypeError("Expected a list of plugins, not `"+p+"`");for(;++h<p.length;)c(p[h])}}function A(p,h){let m=-1,y=-1;for(;++m<i.length;)if(i[m][0]===p){y=m;break}if(y===-1)i.push([p,...h]);else if(h.length>0){let[C,...D]=h;const Q=i[y][1];kc(Q)&&kc(C)&&(C=Ec(!0,Q,C)),i[y]=[p,C,...D]}}}}const Mg=new Ic().freeze();function Bc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rc(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hd(e){if(!kc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Nd(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Gs(e){return function(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}(e)?e:new Qd(e)}const Ud=[],zd={allowDangerousHtml:!0},Rg=/^(https?|ircs?|mailto|xmpp)$/i,Og=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Fg(e){const n=e.allowedElements,a=e.allowElement,i=e.children||"",o=e.className,c=e.components,u=e.disallowedElements,d=e.rehypePlugins||Ud,A=e.remarkPlugins||Ud,p=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zd}:zd,h=e.skipHtml,m=e.unwrapDisallowed,y=e.urlTransform||Lg,C=Mg().use(cg).use(A).use(kg,p).use(d),D=new Qd;typeof i=="string"&&(D.value=i);for(const I of Og)Object.hasOwn(e,I.from)&&(I.from,I.to&&I.to,I.id);const Q=C.parse(D);let E=C.runSync(Q,D);return o&&(E={type:"element",tagName:"div",properties:{className:o},children:E.type==="root"?E.children:[E]}),Md(E,function(I,_,B){if(I.type==="raw"&&B&&typeof _=="number")return h?B.children.splice(_,1):B.children[_]={type:"text",value:I.value},_;if(I.type==="element"){let U;for(U in fc)if(Object.hasOwn(fc,U)&&Object.hasOwn(I.properties,U)){const j=I.properties[U],z=fc[U];(z===null||z.includes(I.tagName))&&(I.properties[U]=y(String(j||""),U,I))}}if(I.type==="element"){let U=n?!n.includes(I.tagName):!!u&&u.includes(I.tagName);if(!U&&a&&typeof _=="number"&&(U=!a(I,_,B)),U&&B&&typeof _=="number")return m&&I.children?B.children.splice(_,1,...I.children):B.children.splice(_,1),_}}),sh(E,{Fragment:N.Fragment,components:c,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0})}function Lg(e){const n=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||a!==-1&&n>a||i!==-1&&n>i||Rg.test(e.slice(0,n))?e:""}const Qg=({children:e})=>N.jsx("div",{style:{whiteSpace:"normal"},children:N.jsx(Fg,{components:{p:({...n})=>N.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:n.children}),ul:({...n})=>N.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),ol:({...n})=>N.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),li:({...n})=>N.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:n.children}),code:({inline:n,children:a})=>n?N.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:a}):N.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:N.jsx("code",{children:a})}),blockquote:({...n})=>N.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:n.children})},children:typeof e=="string"?e:""})}),_g={autoConfig:!0},Hg=e=>()=>(n=>{const{getFlow:a}=Qs(),{messages:i,replaceMessages:o}=ql(),{settings:c}=bA(),{hasChatHistoryLoaded:u}=wA(),d={...n,..._g},A=d.markdownComponent?d.markdownComponent:Qg;R.useEffect(()=>{var m,y;if(u){const C=[...i];for(let D=0;D<C.length&&D<(((m=c.chatHistory)==null?void 0:m.maxEntries)??30);D++){const Q=C[D];(y=Q.tags)!=null&&y.includes("rcb-markdown-renderer-plugin:parsed")&&(Q.contentWrapper=A)}o(C)}},[u]);const p=async m=>{var y;const C=(y=m.data.message)==null?void 0:y.sender.toUpperCase();((D,Q,E)=>{var I;if(typeof D.data.message.content!="string"||!D.detail.currPath)return!1;const _=Q[D.detail.currPath];return!!_&&(((I=_.renderMarkdown)==null?void 0:I.map(B=>B.toUpperCase()).includes(E))??!1)})(m,a(),C)&&(m.data.message.contentWrapper=A,m.data.message.tags||(m.data.message.tags=[]),m.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};Bn(ye.PRE_INJECT_MESSAGE,p),Bn(ye.CHUNK_STREAM_MESSAGE,p),Bn(ye.START_STREAM_MESSAGE,p),Bn(ye.START_SIMULATE_STREAM_MESSAGE,p);const h={name:"@rcb-plugins/markdown-renderer"};return d!=null&&d.autoConfig&&(h.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),h})(e),Vs={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},jd=(e,n,a="validateTextInput")=>{var i;if((i=e.detail)==null||!i.currPath)return;const o=n[e.detail.currPath];if(!o)return;const c=o[a];return typeof c=="function"?c:void 0},Ng=e=>{const{showToast:n}=(()=>{const{showToast:m,dismissToast:y,toasts:C,replaceToasts:D}=ya();return{showToast:m,dismissToast:y,toasts:C,replaceToasts:D}})(),{getFlow:a}=Qs(),{styles:i,updateStyles:o,replaceStyles:c}=(()=>{const{styles:m,replaceStyles:y,updateStyles:C}=gA();return{styles:m,replaceStyles:y,updateStyles:C}})(),u=(m=>({...Vs,...m,promptBaseColors:{...Vs.promptBaseColors},promptHoveredColors:{...Vs.promptHoveredColors},textAreaHighlightColors:{...Vs.textAreaHighlightColors}}))(e),[d,A]=R.useState(0),p=R.useRef({});Bn(ye.USER_SUBMIT_TEXT,m=>{const y=m,C=jd(y,a(),"validateTextInput");if(!C)return;const D=C(y.data.inputText);if(D!=null&&D.success||m.preventDefault(),!D.promptContent)return;d===0&&(p.current=structuredClone(i));const Q=((E,I)=>{const _=E.promptType??"info";let B={};return I.advancedStyles&&(B=I.advancedStyles[_]),I.promptBaseColors&&(B.toastPromptStyle={color:I.promptBaseColors[_],borderColor:I.promptBaseColors[_]}),I.promptHoveredColors&&(B.toastPromptHoveredStyle={color:I.promptHoveredColors[_],borderColor:I.promptHoveredColors[_]}),I.textAreaHighlightColors&&(E.highlightTextArea??!0)&&(B.chatInputAreaStyle={boxShadow:`${I.textAreaHighlightColors[_]} 0px 0px 5px`}),B})(D,u);o(Q),n(D.promptContent,D.promptDuration??3e3),A(E=>E+1)}),Bn(ye.USER_UPLOAD_FILE,m=>{var y,C;const D=m,Q=(C=(y=D.data)==null?void 0:y.files)==null?void 0:C[0];if(!Q)return console.error("No file uploaded."),void m.preventDefault();const E=jd(D,a(),"validateFileInput");if(!E)return void console.error("Validator not found for file input.");const I=E(Q);if(!I.success)return console.error("Validation failed:",I),I.promptContent&&n(I.promptContent,I.promptDuration??3e3),void m.preventDefault();console.log("Validation successful:",I)}),Bn(ye.DISMISS_TOAST,()=>{A(m=>m-1)}),R.useEffect(()=>{d===0&&setTimeout(()=>{c(p.current)})},[d,c]);const h={name:"@rcb-plugins/input-validator"};return u.autoConfig&&(h.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),h},Wd=R.forwardRef((e,n)=>{let{embedded:a,currentOpen:i,enabled:o,onSetEnabled:c}=e;const u=ql(),d=(()=>{const{isChatWindowOpen:h,toggleChatWindow:m,toggleIsBotTyping:y,scrollToBottom:C,getIsChatBotVisible:D}=wn();return{isChatWindowOpen:h,toggleChatWindow:m,toggleIsBotTyping:y,scrollToBottom:C,getIsChatBotVisible:D}})(),A=R.useRef(null),p=R.useRef(!1);return R.useEffect(()=>{!a&&d&&d.toggleChatWindow&&(A.current===i||p.current||(setTimeout(()=>{d&&d.toggleChatWindow&&d.toggleChatWindow(i)},0),A.current=i),p.current=!1)},[i,a,d]),R.useEffect(()=>{const h=()=>{p.current=!0};return window.addEventListener("rcb-toggle-chat-window",h),()=>window.removeEventListener("rcb-toggle-chat-window",h)}),R.useImperativeHandle(n,()=>({addMessage:h=>{u&&u.injectMessage&&u.injectMessage(h)},openChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow(!0)},closeChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow(!1)},toggleChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow()},setBotEnabled:h=>{c&&c(h)}}),[u,d,a,c]),null});Wd.displayName="BotController";const Yd=e=>{let{loginUrl:n,className:a="",style:i,isHeaderButton:o=!1}=e;const c=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return R.createElement(R.Fragment,null,o&&R.createElement("style",null,`
|
|
137
|
+
`},o),c}function kg(e,n){return e&&"run"in e?async function(a,i){const o=Od(a,{file:i,...n});await e.run(o,i)}:function(a,i){return Od(a,{file:i,...e||n})}}function Fd(e){if(e)throw e}var xc,Ld,Cg=function(){if(Ld)return xc;Ld=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(A){return typeof Array.isArray=="function"?Array.isArray(A):n.call(A)==="[object Array]"},c=function(A){if(!A||n.call(A)!=="[object Object]")return!1;var p,h=e.call(A,"constructor"),m=A.constructor&&A.constructor.prototype&&e.call(A.constructor.prototype,"isPrototypeOf");if(A.constructor&&!h&&!m)return!1;for(p in A);return typeof p>"u"||e.call(A,p)},u=function(A,p){a&&p.name==="__proto__"?a(A,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):A[p.name]=p.newValue},d=function(A,p){if(p==="__proto__"){if(!e.call(A,p))return;if(i)return i(A,p).value}return A[p]};return xc=function A(){var p,h,m,y,C,D,Q=arguments[0],E=1,I=arguments.length,_=!1;for(typeof Q=="boolean"&&(_=Q,Q=arguments[1]||{},E=2),(Q==null||typeof Q!="object"&&typeof Q!="function")&&(Q={});E<I;++E)if((p=arguments[E])!=null)for(h in p)m=d(Q,h),Q!==(y=d(p,h))&&(_&&y&&(c(y)||(C=o(y)))?(C?(C=!1,D=m&&o(m)?m:[]):D=m&&c(m)?m:{},u(Q,{name:h,newValue:A(_,D,y)})):typeof y<"u"&&u(Q,{name:h,newValue:y}));return Q},xc}();const Sc=NA(Cg);function Ec(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Pg(){const e=[],n={run:function(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function c(u,...d){const A=e[++i];let p=-1;if(u)o(u);else{for(;++p<a.length;)(d[p]===null||d[p]===void 0)&&(d[p]=a[p]);a=d,A?function(h,m){let y;return C;function C(...E){const I=h.length>E.length;let _;I&&E.push(D);try{_=h.apply(this,E)}catch(B){if(I&&y)throw B;return D(B)}I||(_&&_.then&&typeof _.then=="function"?_.then(Q,D):_ instanceof Error?D(_):Q(_))}function D(E,...I){y||(y=!0,m(E,...I))}function Q(E){D(null,E)}}(A,c)(...d):o(null,...d)}})(null,...a)},use:function(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),n}};return n}const dr={basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Oi(e);let a,i=0,o=-1,c=e.length;if(n===void 0||n.length===0||n.length>e.length){for(;c--;)if(e.codePointAt(c)===47){if(a){i=c+1;break}}else o<0&&(a=!0,o=c+1);return o<0?"":e.slice(i,o)}if(n===e)return"";let u=-1,d=n.length-1;for(;c--;)if(e.codePointAt(c)===47){if(a){i=c+1;break}}else u<0&&(a=!0,u=c+1),d>-1&&(e.codePointAt(c)===n.codePointAt(d--)?d<0&&(o=c):(d=-1,o=u));return i===o?o=u:o<0&&(o=e.length),e.slice(i,o)},dirname:function(e){if(Oi(e),e.length===0)return".";let n,a=-1,i=e.length;for(;--i;)if(e.codePointAt(i)===47){if(n){a=i;break}}else n||(n=!0);return a<0?e.codePointAt(0)===47?"/":".":a===1&&e.codePointAt(0)===47?"//":e.slice(0,a)},extname:function(e){Oi(e);let n,a=e.length,i=-1,o=0,c=-1,u=0;for(;a--;){const d=e.codePointAt(a);if(d!==47)i<0&&(n=!0,i=a+1),d===46?c<0?c=a:u!==1&&(u=1):c>-1&&(u=-1);else if(n){o=a+1;break}}return c<0||i<0||u===0||u===1&&c===i-1&&c===o+1?"":e.slice(c,i)},join:function(...e){let n,a=-1;for(;++a<e.length;)Oi(e[a]),e[a]&&(n=n===void 0?e[a]:n+"/"+e[a]);return n===void 0?".":function(i){Oi(i);const o=i.codePointAt(0)===47;let c=function(u,d){let A,p,h="",m=0,y=-1,C=0,D=-1;for(;++D<=u.length;){if(D<u.length)A=u.codePointAt(D);else{if(A===47)break;A=47}if(A===47){if(y!==D-1&&C!==1)if(y!==D-1&&C===2){if(h.length<2||m!==2||h.codePointAt(h.length-1)!==46||h.codePointAt(h.length-2)!==46){if(h.length>2){if(p=h.lastIndexOf("/"),p!==h.length-1){p<0?(h="",m=0):(h=h.slice(0,p),m=h.length-1-h.lastIndexOf("/")),y=D,C=0;continue}}else if(h.length>0){h="",m=0,y=D,C=0;continue}}d&&(h=h.length>0?h+"/..":"..",m=2)}else h.length>0?h+="/"+u.slice(y+1,D):h=u.slice(y+1,D),m=D-y-1;y=D,C=0}else A===46&&C>-1?C++:C=-1}return h}(i,!o);return c.length===0&&!o&&(c="."),c.length>0&&i.codePointAt(i.length-1)===47&&(c+="/"),o?"/"+c:c}(n)},sep:"/"};function Oi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Tg={cwd:function(){return"/"}};function kc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dg(e){if(typeof e=="string")e=new URL(e);else if(!kc(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=n.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const o=a.codePointAt(i+2);if(o===70||o===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(a)}(e)}const Cc=["history","path","basename","stem","extname","dirname"];class Qd{constructor(n){let a;var i;a=n?kc(n)?{path:n}:typeof n=="string"||(i=n)&&typeof i=="object"&&"byteLength"in i&&"byteOffset"in i?{value:n}:n:{},this.cwd="cwd"in a?"":Tg.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,c=-1;for(;++c<Cc.length;){const u=Cc[c];u in a&&a[u]!==void 0&&a[u]!==null&&(this[u]=u==="history"?[...a[u]]:a[u])}for(o in a)Cc.includes(o)||(this[o]=a[o])}get basename(){return typeof this.path=="string"?dr.basename(this.path):void 0}set basename(n){Tc(n,"basename"),Pc(n,"basename"),this.path=dr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?dr.dirname(this.path):void 0}set dirname(n){_d(this.basename,"dirname"),this.path=dr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?dr.extname(this.path):void 0}set extname(n){if(Pc(n,"extname"),_d(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=dr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){kc(n)&&(n=Dg(n)),Tc(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?dr.basename(this.path,this.extname):void 0}set stem(n){Tc(n,"stem"),Pc(n,"stem"),this.path=dr.join(this.dirname||"",n+(this.extname||""))}fail(n,a,i){const o=this.message(n,a,i);throw o.fatal=!0,o}info(n,a,i){const o=this.message(n,a,i);return o.fatal=void 0,o}message(n,a,i){const o=new zt(n,a,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Pc(e,n){if(e&&e.includes(dr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+dr.sep+"`")}function Tc(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function _d(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}const Ig=function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i},Bg={}.hasOwnProperty;class Dc extends Ig{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Pg()}copy(){const n=new Dc;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];n.use(...i)}return n.data(Sc(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(Mc("data",this.frozen),this.namespace[n]=a,this):Bg.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Mc("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=a.call(n,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=Gs(n),i=this.parser||this.Parser;return Ic("parse",i),i(String(a),a)}process(n,a){const i=this;return this.freeze(),Ic("process",this.parser||this.Parser),Bc("process",this.compiler||this.Compiler),a?o(void 0,a):new Promise(o);function o(c,u){const d=Gs(n),A=i.parse(d);function p(h,m){h||!m?u(h):c?c(m):a(void 0,m)}i.run(A,d,function(h,m,y){if(h||!m||!y)return p(h);const C=m,D=i.stringify(C,y);var Q;typeof(Q=D)=="string"||function(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}(Q)?y.value=D:y.result=D,p(h,y)})}}processSync(n){let a,i=!1;return this.freeze(),Ic("processSync",this.parser||this.Parser),Bc("processSync",this.compiler||this.Compiler),this.process(n,function(o,c){i=!0,Fd(o),a=c}),Nd("processSync","process",i),a}run(n,a,i){Hd(n),this.freeze();const o=this.transformers;return!i&&typeof a=="function"&&(i=a,a=void 0),i?c(void 0,i):new Promise(c);function c(u,d){const A=Gs(a);o.run(n,A,function(p,h,m){const y=h||n;p?d(p):u?u(y):i(void 0,y,m)})}}runSync(n,a){let i,o=!1;return this.run(n,a,function(c,u){Fd(c),i=u,o=!0}),Nd("runSync","run",o),i}stringify(n,a){this.freeze();const i=Gs(a),o=this.compiler||this.Compiler;return Bc("stringify",o),Hd(n),o(n,i)}use(n,...a){const i=this.attachers,o=this.namespace;if(Mc("use",this.frozen),n!=null)if(typeof n=="function")A(n,a);else{if(typeof n!="object")throw new TypeError("Expected usable value, not `"+n+"`");Array.isArray(n)?d(n):u(n)}return this;function c(p){if(typeof p=="function")A(p,[]);else{if(typeof p!="object")throw new TypeError("Expected usable value, not `"+p+"`");if(Array.isArray(p)){const[h,...m]=p;A(h,m)}else u(p)}}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=Sc(!0,o.settings,p.settings))}function d(p){let h=-1;if(p!=null){if(!Array.isArray(p))throw new TypeError("Expected a list of plugins, not `"+p+"`");for(;++h<p.length;)c(p[h])}}function A(p,h){let m=-1,y=-1;for(;++m<i.length;)if(i[m][0]===p){y=m;break}if(y===-1)i.push([p,...h]);else if(h.length>0){let[C,...D]=h;const Q=i[y][1];Ec(Q)&&Ec(C)&&(C=Sc(!0,Q,C)),i[y]=[p,C,...D]}}}}const Mg=new Dc().freeze();function Ic(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Bc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Mc(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hd(e){if(!Ec(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Nd(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Gs(e){return function(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}(e)?e:new Qd(e)}const Ud=[],zd={allowDangerousHtml:!0},Rg=/^(https?|ircs?|mailto|xmpp)$/i,Og=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Fg(e){const n=e.allowedElements,a=e.allowElement,i=e.children||"",o=e.className,c=e.components,u=e.disallowedElements,d=e.rehypePlugins||Ud,A=e.remarkPlugins||Ud,p=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zd}:zd,h=e.skipHtml,m=e.unwrapDisallowed,y=e.urlTransform||Lg,C=Mg().use(cg).use(A).use(kg,p).use(d),D=new Qd;typeof i=="string"&&(D.value=i);for(const I of Og)Object.hasOwn(e,I.from)&&(I.from,I.to&&I.to,I.id);const Q=C.parse(D);let E=C.runSync(Q,D);return o&&(E={type:"element",tagName:"div",properties:{className:o},children:E.type==="root"?E.children:[E]}),Md(E,function(I,_,B){if(I.type==="raw"&&B&&typeof _=="number")return h?B.children.splice(_,1):B.children[_]={type:"text",value:I.value},_;if(I.type==="element"){let U;for(U in dc)if(Object.hasOwn(dc,U)&&Object.hasOwn(I.properties,U)){const j=I.properties[U],z=dc[U];(z===null||z.includes(I.tagName))&&(I.properties[U]=y(String(j||""),U,I))}}if(I.type==="element"){let U=n?!n.includes(I.tagName):!!u&&u.includes(I.tagName);if(!U&&a&&typeof _=="number"&&(U=!a(I,_,B)),U&&B&&typeof _=="number")return m&&I.children?B.children.splice(_,1,...I.children):B.children.splice(_,1),_}}),sh(E,{Fragment:N.Fragment,components:c,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0})}function Lg(e){const n=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||a!==-1&&n>a||i!==-1&&n>i||Rg.test(e.slice(0,n))?e:""}const Qg=({children:e})=>N.jsx("div",{style:{whiteSpace:"normal"},children:N.jsx(Fg,{components:{p:({...n})=>N.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:n.children}),ul:({...n})=>N.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),ol:({...n})=>N.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),li:({...n})=>N.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:n.children}),code:({inline:n,children:a})=>n?N.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:a}):N.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:N.jsx("code",{children:a})}),blockquote:({...n})=>N.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:n.children})},children:typeof e=="string"?e:""})}),_g={autoConfig:!0},Hg=e=>()=>(n=>{const{getFlow:a}=Qs(),{messages:i,replaceMessages:o}=Zl(),{settings:c}=bA(),{hasChatHistoryLoaded:u}=wA(),d={...n,..._g},A=d.markdownComponent?d.markdownComponent:Qg;R.useEffect(()=>{var m,y;if(u){const C=[...i];for(let D=0;D<C.length&&D<(((m=c.chatHistory)==null?void 0:m.maxEntries)??30);D++){const Q=C[D];(y=Q.tags)!=null&&y.includes("rcb-markdown-renderer-plugin:parsed")&&(Q.contentWrapper=A)}o(C)}},[u]);const p=async m=>{var y;const C=(y=m.data.message)==null?void 0:y.sender.toUpperCase();((D,Q,E)=>{var I;if(typeof D.data.message.content!="string"||!D.detail.currPath)return!1;const _=Q[D.detail.currPath];return!!_&&(((I=_.renderMarkdown)==null?void 0:I.map(B=>B.toUpperCase()).includes(E))??!1)})(m,a(),C)&&(m.data.message.contentWrapper=A,m.data.message.tags||(m.data.message.tags=[]),m.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};Bn(ye.PRE_INJECT_MESSAGE,p),Bn(ye.CHUNK_STREAM_MESSAGE,p),Bn(ye.START_STREAM_MESSAGE,p),Bn(ye.START_SIMULATE_STREAM_MESSAGE,p);const h={name:"@rcb-plugins/markdown-renderer"};return d!=null&&d.autoConfig&&(h.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),h})(e),Vs={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},jd=(e,n,a="validateTextInput")=>{var i;if((i=e.detail)==null||!i.currPath)return;const o=n[e.detail.currPath];if(!o)return;const c=o[a];return typeof c=="function"?c:void 0},Ng=e=>{const{showToast:n}=(()=>{const{showToast:m,dismissToast:y,toasts:C,replaceToasts:D}=ya();return{showToast:m,dismissToast:y,toasts:C,replaceToasts:D}})(),{getFlow:a}=Qs(),{styles:i,updateStyles:o,replaceStyles:c}=(()=>{const{styles:m,replaceStyles:y,updateStyles:C}=gA();return{styles:m,replaceStyles:y,updateStyles:C}})(),u=(m=>({...Vs,...m,promptBaseColors:{...Vs.promptBaseColors},promptHoveredColors:{...Vs.promptHoveredColors},textAreaHighlightColors:{...Vs.textAreaHighlightColors}}))(e),[d,A]=R.useState(0),p=R.useRef({});Bn(ye.USER_SUBMIT_TEXT,m=>{const y=m,C=jd(y,a(),"validateTextInput");if(!C)return;const D=C(y.data.inputText);if(D!=null&&D.success||m.preventDefault(),!D.promptContent)return;d===0&&(p.current=structuredClone(i));const Q=((E,I)=>{const _=E.promptType??"info";let B={};return I.advancedStyles&&(B=I.advancedStyles[_]),I.promptBaseColors&&(B.toastPromptStyle={color:I.promptBaseColors[_],borderColor:I.promptBaseColors[_]}),I.promptHoveredColors&&(B.toastPromptHoveredStyle={color:I.promptHoveredColors[_],borderColor:I.promptHoveredColors[_]}),I.textAreaHighlightColors&&(E.highlightTextArea??!0)&&(B.chatInputAreaStyle={boxShadow:`${I.textAreaHighlightColors[_]} 0px 0px 5px`}),B})(D,u);o(Q),n(D.promptContent,D.promptDuration??3e3),A(E=>E+1)}),Bn(ye.USER_UPLOAD_FILE,m=>{var y,C;const D=m,Q=(C=(y=D.data)==null?void 0:y.files)==null?void 0:C[0];if(!Q)return console.error("No file uploaded."),void m.preventDefault();const E=jd(D,a(),"validateFileInput");if(!E)return void console.error("Validator not found for file input.");const I=E(Q);if(!I.success)return console.error("Validation failed:",I),I.promptContent&&n(I.promptContent,I.promptDuration??3e3),void m.preventDefault();console.log("Validation successful:",I)}),Bn(ye.DISMISS_TOAST,()=>{A(m=>m-1)}),R.useEffect(()=>{d===0&&setTimeout(()=>{c(p.current)})},[d,c]);const h={name:"@rcb-plugins/input-validator"};return u.autoConfig&&(h.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),h},Wd=R.forwardRef((e,n)=>{let{embedded:a,currentOpen:i,enabled:o,onSetEnabled:c}=e;const u=Zl(),d=(()=>{const{isChatWindowOpen:h,toggleChatWindow:m,toggleIsBotTyping:y,scrollToBottom:C,getIsChatBotVisible:D}=wn();return{isChatWindowOpen:h,toggleChatWindow:m,toggleIsBotTyping:y,scrollToBottom:C,getIsChatBotVisible:D}})(),A=R.useRef(null),p=R.useRef(!1);return R.useEffect(()=>{!a&&d&&d.toggleChatWindow&&(A.current===i||p.current||(setTimeout(()=>{d&&d.toggleChatWindow&&d.toggleChatWindow(i)},0),A.current=i),p.current=!1)},[i,a,d]),R.useEffect(()=>{const h=()=>{p.current=!0};return window.addEventListener("rcb-toggle-chat-window",h),()=>window.removeEventListener("rcb-toggle-chat-window",h)}),R.useImperativeHandle(n,()=>({addMessage:h=>{u&&u.injectMessage&&u.injectMessage(h)},openChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow(!0)},closeChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow(!1)},toggleChat:()=>{!a&&d&&d.toggleChatWindow&&d.toggleChatWindow()},setBotEnabled:h=>{c&&c(h)}}),[u,d,a,c]),null});Wd.displayName="BotController";const Yd=e=>{let{loginUrl:n,className:a="",style:i,isHeaderButton:o=!1}=e;const c=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return R.createElement(R.Fragment,null,o&&R.createElement("style",null,`
|
|
138
138
|
.rcb-chat-header-container .qa-bot-header-login-button:hover {
|
|
139
139
|
background-color: #0000001a !important;
|
|
140
140
|
opacity: 1 !important;
|
|
141
141
|
}
|
|
142
|
-
`),R.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(a),style:Object.assign(Object.assign({},c),i)},"Log In"))},Ug=()=>R.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},R.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},R.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),R.createElement("circle",{cx:"12",cy:"7",r:"4"})));function Oc(){return Oc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Oc.apply(null,arguments)}const Gd=({width:e=24,height:n=24,color:a="currentColor",children:i,...o})=>R.createElement("svg",Oc({xmlns:"http://www.w3.org/2000/svg",width:e,height:n,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),i),zg=e=>R.createElement(Gd,e,R.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),Vd=R.createContext(void 0),jg=e=>{let{children:n,resetSession:a,clearResettingFlag:i}=e;return R.createElement(Vd.Provider,{value:{resetSession:a,clearResettingFlag:i}},n)},Wg=()=>{const{restartFlow:e}=Qs(),{setTextAreaValue:n}=(()=>{const{textAreaDisabled:o,toggleTextAreaDisabled:c,textAreaSensitiveMode:u,toggleTextAreaSensitiveMode:d,getTextAreaValue:A,setTextAreaValue:p,focusTextArea:h,blurTextArea:m}=Fo();return{textAreaDisabled:o,toggleTextAreaDisabled:c,textAreaSensitiveMode:u,toggleTextAreaSensitiveMode:d,getTextAreaValue:A,setTextAreaValue:p,focusTextArea:h,blurTextArea:m}})(),{resetSession:a,clearResettingFlag:i}=(()=>{const o=R.useContext(Vd);if(!o)throw new Error("useSession must be used within a SessionProvider");return o})();return R.createElement("button",{onClick:async()=>{a(),await n(""),await e(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:o=>{o.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:o=>{o.target.style.backgroundColor="var(--primaryColor, #107180)"}},R.createElement(zg,{width:16,height:16}),"New Chat")},Yg=()=>(R.useEffect(()=>{const e=c=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(c.key))return;const u=document.activeElement;if(u&&(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.contentEditable==="true"||u.classList.contains("rcb-chat-input-textarea")))return;const d=document.querySelector(".rcb-chat-window");if(!d)return;const A=Array.from(d.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(m=>m.offsetParent!==null);if(A.length>0){const m=A[A.length-1].querySelector(".rcb-checkbox-container");if(m&&m.offsetParent!==null){const y=Array.from(m.querySelectorAll(".rcb-checkbox-row-container")),C=m.querySelector(".rcb-checkbox-next-button");if(y.length>0){const D=[...y];return C&&D.push(C),void((Q,E)=>{Q.preventDefault();let I=-1;for(let B=0;B<E.length;B++)if(E[B]===document.activeElement||E[B].contains(document.activeElement)){I=B;break}I===-1&&(I=0);let _=I;switch(Q.key){case"ArrowDown":case"ArrowRight":_=I<E.length-1?I+1:0;break;case"ArrowUp":case"ArrowLeft":_=I>0?I-1:E.length-1;break;case"Home":_=0;break;case"End":_=E.length-1;break;case"Enter":case" ":{const B=E[I],U=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void B.dispatchEvent(U)}default:return}E[_].focus(),E[_].setAttribute("tabindex","0"),E[_].classList.add("keyboard-focused"),E.forEach((B,U)=>{U!==_&&(B.setAttribute("tabindex","-1"),B.classList.remove("keyboard-focused"))})})(c,D)}}}let p=[];if(A.length>0){const m=A[A.length-1],y=Array.from(m.querySelectorAll(".rcb-options-container")).filter(C=>C.offsetParent!==null);if(y.length>0){const C=y[y.length-1];p=Array.from(C.querySelectorAll(".rcb-options"))}}if(p.length===0)return;const h=p.findIndex(m=>m===document.activeElement);switch(c.key){case"ArrowDown":case"ArrowRight":{let m;c.preventDefault(),m=h<p.length-1?h+1:0,p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus();break}case"ArrowUp":case"ArrowLeft":{let m;c.preventDefault(),m=h>0?h-1:p.length-1,p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus();break}case"Enter":case" ":if(c.preventDefault(),document.activeElement&&p.includes(document.activeElement)){const m=document.activeElement;if(m.classList.contains("rcb-checkbox-row-container")||m.closest(".rcb-checkbox-row-container")){const y=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});m.dispatchEvent(y);const C=m.querySelector(".rcb-checkbox-label"),D=C?C.textContent:m.textContent||"checkbox",Q=m.querySelector(".rcb-checkbox-mark"),E=Q&&Q.style.backgroundColor?"checked":"unchecked";n(`${D} ${E}`)}else{const y=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});m.dispatchEvent(y);const C=m.textContent||m.innerText;n(`Selected: ${C}`)}}break;case"Home":c.preventDefault(),p.length>0&&(p[0].setAttribute("tabindex","0"),p.forEach((m,y)=>{y!==0&&(m.setAttribute("tabindex","-1"),m.classList.remove("keyboard-focused"))}),p[0].classList.add("keyboard-focused"),p[0].focus());break;case"End":if(c.preventDefault(),p.length>0){const m=p.length-1;p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus()}}},n=c=>{const u=document.createElement("div");u.setAttribute("aria-live","assertive"),u.setAttribute("aria-atomic","true"),u.className="sr-only",u.textContent=c,document.body.appendChild(u),setTimeout(()=>{document.body.contains(u)&&document.body.removeChild(u)},1e3)},a=(c=null)=>{let u=c;if(u||(u=document.querySelector(".rcb-chat-window"),u||(u=document.querySelector('[class*="rcb-chat"]')),u||(u=document.querySelector(".qa-bot"))),!u)return;const d=u.closest(".embedded-qa-bot")!==null,A=Array.from(u.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(y=>y.offsetParent!==null);if(A.length===0)return;const p=A[A.length-1],h=Array.from(p.querySelectorAll(".rcb-options-container")).filter(y=>y.offsetParent!==null);let m=[];if(h.length>0){const y=h[h.length-1];m=Array.from(y.querySelectorAll(".rcb-options"))}if(m.length===0){let y=p.querySelector(".rcb-checkbox-container");if(!y&&u&&(y=u.querySelector(".rcb-checkbox-container")),y&&y.offsetParent!==null){const C=Array.from(y.querySelectorAll(".rcb-checkbox-row-container")).filter(D=>D.offsetParent!==null&&D.style.display!=="none");if(C.length>0){const D=y.querySelector(".rcb-checkbox-next-button"),Q=[...C];if(D&&D.offsetParent!==null&&Q.push(D),Q.forEach((E,I)=>{E.setAttribute("tabindex",I===0?"0":"-1"),I===0?E.classList.add("keyboard-focused"):E.classList.remove("keyboard-focused")}),C.length>1){y.querySelectorAll(".keyboard-nav-hint").forEach(I=>I.remove());const E=document.createElement("div");E.className="keyboard-nav-hint",E.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",E.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",y.insertBefore(E,y.firstChild)}return void setTimeout(()=>{Q[0]&&Q[0].offsetParent!==null&&!d&&Q[0].focus()},150)}}}if(m.length>0){if(m.forEach((y,C)=>{const D=C===0?"0":"-1";y.setAttribute("tabindex",D),y.setAttribute("role","option"),y.setAttribute("aria-posinset",C+1),y.setAttribute("aria-setsize",m.length),C===0?y.classList.add("keyboard-focused"):y.classList.remove("keyboard-focused")}),m.length>1){const y=h.length>0?h[h.length-1]:null;if(y){y.querySelectorAll(".keyboard-nav-hint").forEach(D=>D.remove());const C=document.createElement("div");C.className="keyboard-nav-hint",C.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",C.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",y.insertBefore(C,y.firstChild)}}else{const y=h.length>0?h[h.length-1]:null;y&&y.querySelectorAll(".keyboard-nav-hint").forEach(C=>C.remove())}setTimeout(()=>{m[0]&&m[0].offsetParent!==null&&!d&&(m[0].focus(),m.length>1&&n(`${m.length} options available. Use arrow keys to navigate.`))},200)}},i=new MutationObserver(c=>{c.forEach(u=>{var d,A;if(u.type==="childList"){const p=Array.from(u.addedNodes),h=p.some(y=>{var C,D,Q,E;return y.nodeType===Node.ELEMENT_NODE&&(((C=y.classList)==null?void 0:C.contains("rcb-options-container"))||((D=y.classList)==null?void 0:D.contains("rcb-options"))||((Q=y.querySelector)==null?void 0:Q.call(y,".rcb-options-container"))||((E=y.querySelector)==null?void 0:E.call(y,".rcb-options")))}),m=p.some(y=>{var C,D;return y.nodeType===Node.ELEMENT_NODE&&(((C=y.classList)==null?void 0:C.contains("rcb-checkbox-container"))||((D=y.querySelector)==null?void 0:D.call(y,".rcb-checkbox-container")))});if(h||m){let y=u.target;for(;y&&!((d=y.classList)!=null&&d.contains("qa-bot"))&&!((A=y.classList)!=null&&A.contains("rcb-chat-window"));)y=y.parentElement;(y||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(C=>{C.setAttribute("tabindex","-1"),C.classList.remove("keyboard-focused")}),setTimeout(()=>a(y),100)}}})});i.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),a();const o=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(c=>{const u=c.querySelectorAll(".rcb-options-container .rcb-options").length>0,d=c.querySelectorAll(".rcb-checkbox-row-container").length>0;if(u){const A=c.querySelectorAll(".rcb-options[tabindex]").length;c.querySelectorAll(".rcb-options").length>A&&a(c)}if(d){const A=c.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;c.querySelectorAll(".rcb-checkbox-row-container").length>A&&a(c)}})},1e3);return()=>{document.removeEventListener("keydown",e),i.disconnect(),clearInterval(o)}},[]),null),Mt=[];for(let e=0;e<256;++e)Mt.push((e+256).toString(16).slice(1));let Fc;const Gg=new Uint8Array(16);var Xd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Jd(e,n,a){var o;if(Xd.randomUUID&&!e)return Xd.randomUUID();const i=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!Fc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fc=crypto.getRandomValues.bind(crypto)}return Fc(Gg)}();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=15&i[6]|64,i[8]=63&i[8]|128,function(c,u=0){return(Mt[c[u+0]]+Mt[c[u+1]]+Mt[c[u+2]]+Mt[c[u+3]]+"-"+Mt[c[u+4]]+Mt[c[u+5]]+"-"+Mt[c[u+6]]+Mt[c[u+7]]+"-"+Mt[c[u+8]]+Mt[c[u+9]]+"-"+Mt[c[u+10]]+Mt[c[u+11]]+Mt[c[u+12]]+Mt[c[u+13]]+Mt[c[u+14]]+Mt[c[u+15]]).toLowerCase()}(i)}const Kd=()=>"qa_bot_session_".concat(Jd()),Vg="#1a5b6e",Xg="#107180",Jg="Arial, sans-serif",$d="Q&A Bot",Kg="/chat-icon.svg",$g="Type your question here...",Zg="Select an option to continue",qg=!1,em="Ask me a question!",Zd="/login",tm={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},Lc=R.forwardRef((e,n)=>{var a,i;const{apiKey:o,qaEndpoint:c,ratingEndpoint:u,welcomeMessage:d,open:A,onOpenChange:p,isLoggedIn:h,allowAnonAccess:m=!1,primaryColor:y,secondaryColor:C,botName:D,logo:Q,placeholder:E,errorMessage:I,embedded:_,footerText:B,footerLink:U,tooltipText:j,loginUrl:z,customFlow:W}=e,te=R.useRef("bot_".concat(Math.random().toString(36).substr(2,9))),J=R.useRef(Kd()),Y=R.useRef(!1),ee=R.useRef({getSessionId:()=>J.current,isResetting:()=>Y.current}),[Z,ie]=R.useState(h);R.useEffect(()=>{ie(h)},[h]);const ue=R.useMemo(()=>{const M=Object.assign({},tm);M.general=Object.assign(Object.assign({},M.general),{primaryColor:y||Vg,secondaryColor:C||Xg,fontFamily:Jg,embedded:_!==void 0?_:qg});const fe=Z===!1?R.createElement(Yd,{key:"login-button",loginUrl:z||Zd,isHeaderButton:!0}):R.createElement(Ug,{key:"user-icon"});M.header={title:D||$d,showAvatar:!0,avatar:Q||Kg,buttons:[fe,dt.CLOSE_CHAT_BUTTON]},M.chatInput=Object.assign(Object.assign({},M.chatInput),{disabled:!1,enabledPlaceholderText:E||$g,disabledPlaceholderText:I||Zg}),M.tooltip=Object.assign(Object.assign({},M.tooltip),{text:j||em});const O=B?U?R.createElement("a",{href:U,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},B):R.createElement("span",{key:"footer-text"},B):null;return M.footer={text:O,buttons:[R.createElement(Wg,{key:"new-chat-button"})]},M},[y,C,D,Q,E,I,_,j,Z,z,B,U]),se=R.useRef(null),xe=function(M){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R.useMemo(()=>{const O=(de,Ee)=>{if(M.current){const he=getComputedStyle(M.current).getPropertyValue(de);if(he&&he.trim()!=="")return he.trim();if(M.current.parentElement){const ve=getComputedStyle(M.current.parentElement).getPropertyValue(de);if(ve&&ve.trim()!=="")return ve.trim()}}return Ee};return{primaryColor:O("--primaryColor",fe.primaryColor),secondaryColor:O("--secondaryColor",fe.secondaryColor),fontFamily:O("--fontFamily",fe.fontFamily)}},[M,fe])}(se,ue.general);((M,fe)=>{R.useEffect(()=>{fe.current&&(M?fe.current.classList.add("bot-logged-in"):fe.current.classList.remove("bot-logged-in"))},[M,fe])})(Z!==!1,se),(M=>{let{settings:fe,themeColors:O}=M;R.useEffect(()=>{O&&(Object.entries(O).forEach(de=>{let[Ee,he]=de;he&&document.documentElement.style.setProperty("--".concat(Ee),he)}),O.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",O.primaryColor),O.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",O.secondaryColor))},[O]),R.useEffect(()=>{var de,Ee,he;!((de=fe.header)===null||de===void 0)&&de.title&&typeof fe.header.title=="string"&&(fe.header.title=R.createElement("div",{key:"header-title"},R.createElement("h1",{className:"sr-only"},fe.header.title),R.createElement("span",{"aria-hidden":"true"},fe.header.title))),!((Ee=fe.general)===null||Ee===void 0)&&Ee.embedded&&fe.chatWindow&&(fe.chatWindow.defaultOpen=!0),fe.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},fe.chatHistory={disabled:!1},fe.chatButton=Object.assign(Object.assign({},fe.chatButton),{icon:(he=fe.header)===null||he===void 0?void 0:he.avatar}),fe.event={rcbToggleChatWindow:!0}},[fe])})({settings:ue,themeColors:xe});const ge=R.useMemo(()=>{const M=(O=>{let{endpoint:de,ratingEndpoint:Ee,apiKey:he,sessionId:ve,isResetting:Te=()=>!1,isLoggedIn:Qe,allowAnonAccess:tt=!1,loginUrl:Le="/login"}=O;if(Qe===!1&&!tt)return{qa_loop:{message:"To ask questions, please log in first.",component:R.createElement(Yd,{loginUrl:Le}),chatDisabled:!0,path:"qa_loop"}};let Je=null,qe=!1;if(!de)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async ft=>{const{userInput:Ne}=ft;if(Te&&Te()||!Ne||Ne.trim()==="")return null;if(Ne==="👍 Helpful"||Ne==="👎 Not helpful"){if(Ee&&Je)try{const We=Ne==="👍 Helpful",ct={"Content-Type":"application/json"};he&&(ct["X-API-KEY"]=he);const ht=ve();ht&&(ct["X-Session-ID"]=ht,ct["X-Query-ID"]=Je),await fetch(Ee,{method:"POST",headers:ct,body:JSON.stringify({sessionId:ht,queryId:Je,rating:We?1:0})})}catch(We){console.error("Error sending feedback:",We)}return"Thanks for the feedback! Feel free to ask another question."}try{const We=Jd();Je=We;const ct={"Content-Type":"application/json"};he&&(ct["X-API-KEY"]=he);const ht=ve();ht&&(ct["X-Session-ID"]=ht,ct["X-Query-ID"]=We);const ln=await fetch(de,{method:"POST",headers:ct,body:JSON.stringify({query:Ne})});if(!ln.ok)throw new Error("API returned ".concat(ln.status));const pt=await ln.json(),Ft=pt.response||pt.answer||pt.text||pt.message;if(!Ft)throw new Error("Invalid response format from API");const jt=(Gt=>{if(!Gt||typeof Gt!="string")return Gt;let gt=Gt.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return gt=gt.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),st=>{let Xe=st,Vt="";const cn=Xe.match(/([.,;:!?]+)$/);return cn&&(Vt=cn[1],Xe=Xe.slice(0,-Vt.length)),"[".concat(Xe,"](").concat(Xe,")").concat(Vt)}),gt})(Ft);return await ft.injectMessage(jt),qe=!0,setTimeout(async()=>{await ft.injectMessage("Feel free to ask another question.")},100),null}catch(We){return console.error("Error in Q&A flow:",We),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:ft=>Te&&Te()||ft.userInput==="👍 Helpful"||ft.userInput==="👎 Not helpful"?[]:Ee&&qe?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:c,ratingEndpoint:u,apiKey:o,sessionId:ee.current.getSessionId,isResetting:ee.current.isResetting,isLoggedIn:Z,allowAnonAccess:m,loginUrl:z||Zd});return Object.assign(Object.assign({start:{message:d,transition:{duration:0},path:"qa_loop"}},M),W||{})},[o,c,u,d,Z,m,z,W]),me=R.useMemo(()=>{return[()=>Hp(fe),Hg(),()=>Ng(M)];var M,fe},[]);return R.useEffect(()=>{const M=()=>{const O=document.querySelector(".rcb-chat-window");if(!O)return;const de=O.querySelector(".rcb-send-button");de&&(de.hasAttribute("tabindex")||de.setAttribute("tabindex","0"),de.hasAttribute("data-keyboard-enabled")||(de.setAttribute("data-keyboard-enabled","true"),de.addEventListener("keydown",Ee=>{if(Ee.key==="Enter"||Ee.key===" "){Ee.preventDefault();const he=de&&Object.keys(de).find(Te=>Te.startsWith("__reactProps"));if(he){const Te=de[he],Qe=Te==null?void 0:Te.onMouseDown;if(Qe&&typeof Qe=="function")return void Qe(Ee)}const ve=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});de.dispatchEvent(ve)}})))},fe=setInterval(M,1e3);return M(),()=>clearInterval(fe)},[]),Yg(),R.useEffect(()=>{if(!_&&p){const M=fe=>{const O=fe.data.newState;p(O)};return window.addEventListener("rcb-toggle-chat-window",M),()=>{window.removeEventListener("rcb-toggle-chat-window",M)}}},[_,p]),R.createElement("div",{className:"qa-bot ".concat(!((a=ue.general)===null||a===void 0)&&a.embedded?"embedded-qa-bot":""),ref:se,role:"region","aria-label":D||$d},R.createElement(jg,{resetSession:()=>{Y.current=!0,J.current=Kd()},clearResettingFlag:()=>{Y.current=!1}},R.createElement(yA,null,R.createElement("div",null,R.createElement(Wd,{ref:n,embedded:((i=ue.general)===null||i===void 0?void 0:i.embedded)||!1,currentOpen:A||!1,enabled:Z!==!1,onSetEnabled:M=>ie(!!M&&void 0)}),R.createElement(bp,{key:"chatbot-".concat(te.current,"-").concat(Z),settings:ue,flow:ge,plugins:me}),R.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),R.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options.")))))});Lc.displayName="QABot",zu('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const nm=()=>{const[e,n]=R.useState(!1),a=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!a())throw new Error("Screen capture is not available in this environment");try{n(!0);const i=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=i,await new Promise(h=>{o.onloadedmetadata=()=>{o.play(),h()}});const c=document.createElement("canvas");c.width=o.videoWidth,c.height=o.videoHeight;const u=c.getContext("2d");if(!u)throw new Error("Could not get canvas context");u.drawImage(o,0,0,c.width,c.height);const d=await new Promise(h=>c.toBlob(h,"image/png"));if(!d)throw new Error("Could not create image blob");const A=new Date().toISOString().replace(/[:.]/g,"-"),p=new File([d],"screenshot-".concat(A,".png"),{type:"image/png"});return i.getTracks().forEach(h=>h.stop()),n(!1),p}catch(i){throw console.error("Error capturing screenshot:",i),n(!1),i}},isCapturing:e,isScreenCaptureAvailable:a()}},rm=e=>R.createElement(Gd,e,R.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.createElement("polyline",{points:"17 8 12 3 7 8"}),R.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),om=e=>new Promise((n,a)=>{const i=new FileReader;i.onload=()=>{if(typeof i.result!="string")return void a(new Error("Failed to read file ".concat(e.name)));const o=i.result.split(",")[1];n({fileName:e.name,contentType:e.type,size:e.size,fileData:o})},i.onerror=()=>a(new Error("Failed to read file ".concat(e.name))),i.readAsDataURL(e)}),am=e=>Promise.all(e.map(om)),im=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),Xs=e=>{let{onFileUpload:n,maxSizeMB:a=10,acceptedTypes:i="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:c}=e;const[u,d]=R.useState(!1),[A,p]=R.useState([]),[h,m]=R.useState(null),y=R.useRef(null),{captureScreenshot:C,isCapturing:D,isScreenCaptureAvailable:Q}=nm(),E=z=>{const W=document.createElement("div");W.setAttribute("aria-live","assertive"),W.setAttribute("aria-atomic","true"),W.className="sr-only",W.textContent=z,document.body.appendChild(W),setTimeout(()=>document.body.removeChild(W),1e3)},I=z=>{if(!z||z.length===0)return void console.warn("FileUploadComponent: No valid files provided to handleFiles");let W;try{W=Array.from(z)}catch(ee){return console.error("FileUploadComponent: Error converting files to array:",ee),void E("Error processing selected files. Please try again.")}const te=[...A,...W];p(te);const J=W.length,Y=W.map(ee=>ee.name).join(", ");E("".concat(J," file").concat(J>1?"s":""," selected: ").concat(Y)),setTimeout(()=>{const ee=document.querySelector(".rcb-chat-content");ee&&(ee.scrollTop=ee.scrollHeight)},100),n&&n(te)},_=z=>{z.preventDefault(),z.stopPropagation(),z.type==="dragenter"||z.type==="dragover"?d(!0):z.type==="dragleave"&&d(!1)},B=()=>{try{y.current&&y.current.click()}catch(z){console.error("FileUploadComponent: Error in handleButtonClick:",z),E("Error opening file selection dialog. Please try again.")}},U=()=>{m(null)},j=o&&Q;return R.createElement("div",{className:"file-upload-container ".concat(c||""),style:{padding:"16px",margin:"8px 0"}},j&&R.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},R.createElement("button",{onClick:z=>{z.preventDefault(),(async()=>{try{const W=await C();I([W]),E("Screenshot captured successfully")}catch{E("Error capturing screenshot. Please try again.")}})()},disabled:D,"aria-describedby":"screenshot-help","aria-label":D?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:D?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),R.createElement("circle",{cx:"12",cy:"13",r:"4"})),D?"Taking screenshot...":"Take screenshot..."),R.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),R.createElement("div",{className:"file-upload-dropzone ".concat(u?"active":""),onDragEnter:_,onDragLeave:_,onDragOver:_,onDrop:z=>{var W;z.preventDefault(),z.stopPropagation(),d(!1);try{!((W=z.dataTransfer)===null||W===void 0)&&W.files&&z.dataTransfer.files.length>0&&I(z.dataTransfer.files)}catch(te){console.error("FileUploadComponent: Error in handleDrop:",te),E("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:z=>{z.key!=="Enter"&&z.key!==" "||(z.preventDefault(),B())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:u?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},R.createElement("input",{ref:y,type:"file",className:"file-input",onChange:z=>{var W;try{!((W=z.target)===null||W===void 0)&&W.files&&z.target.files.length>0&&I(z.target.files)}catch(te){console.error("FileUploadComponent: Error in handleFileSelect:",te),E("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:i}),R.createElement("div",{className:"upload-content",onClick:B,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},R.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},R.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},R.createElement(rm,null),R.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),R.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",a,"MB each)")),A.length>0&&R.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},R.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),A.map((z,W)=>R.createElement("span",{key:W,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:te=>{te.stopPropagation(),(J=>{m(J)})(z)}},R.createElement("span",{onClick:te=>{te.stopPropagation(),(J=>{const Y=A.filter((ee,Z)=>Z!==J);p(Y),n&&n(Y)})(W)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(z.name)},"×"),z.name," (",im(z.size),")"))))),(()=>{if(!h)return null;const z=h.type.startsWith("image/"),W=h.type.startsWith("text/"),te=h.type==="application/pdf";return R.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:U},R.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:J=>J.stopPropagation()},R.createElement("button",{onClick:U,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),R.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},h.name),z&&R.createElement("img",{src:URL.createObjectURL(h),alt:h.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),W&&R.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(h)),te&&R.createElement("iframe",{src:URL.createObjectURL(h),style:{width:"100%",height:"70vh",border:"none"},title:h.name}),!z&&!W&&!te&&R.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function sm(e,n){if(!n||Object.keys(n).length===0)return e;const a={};for(const[i,o]of Object.entries(e)){let c=Object.assign({},o);if(c.chatDisabled===void 0){const u=!(!c.options&&!c.checkboxes);c.chatDisabled=u}a[i]=c}return a}const lm=R.forwardRef((e,n)=>{const[a,i]=R.useState(e.defaultOpen||!1),o=R.useRef(null);return R.useImperativeHandle(n,()=>({addMessage:c=>{var u;(u=o.current)===null||u===void 0||u.addMessage(c)},setBotEnabled:c=>{var u;(u=o.current)===null||u===void 0||u.setBotEnabled(c)},openChat:()=>{var c;i(!0),(c=o.current)===null||c===void 0||c.openChat()},closeChat:()=>{var c;i(!1),(c=o.current)===null||c===void 0||c.closeChat()},toggleChat:()=>{var c;i(u=>!u),(c=o.current)===null||c===void 0||c.toggleChat()}}),[]),R.createElement(Lc,{ref:o,apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,open:a,onOpenChange:i,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText})});lm.displayName="ProgrammaticQABot";const eo={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"4nn5l4T4TnkMdzsK0AwAtnGRcheBDnjawuAT42LaOLc"},Dr={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},qd={SESSION_ID:"access-qa-bot-session-id"};function cm({welcome:e,setTicketForm:n,isLoggedIn:a}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:i=>i.userInput==="Ask a question about ACCESS"?a?"go_ahead_and_ask":"qa_loop":i.userInput==="Open a Help Ticket"?(n({}),"help_ticket"):i.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":i.userInput==="Report a security issue"?(n({}),"security_incident"):"start"},go_ahead_and_ask:{message:"Go ahead and ask your question! I'll do my best to help.",path:"qa_loop"}}}let Qc=null;function um(e){Qc=e}function Ie(){return Qc?Qc.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Rt(e={}){const n=Ie();return{...n,email:e.email||n.email,name:e.name||n.name,accessId:e.accessId||n.accessId}}function _c(e){return e&&e.length>0?`
|
|
143
|
-
Attachments: ${e.length} file(s) attached`:""}const Pa={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function Am(e,n="support",a=[]){const o={support:Pa.SUPPORT,general_help:Pa.SUPPORT,loginAccess:Pa.LOGIN_ACCESS,loginProvider:Pa.LOGIN_PROVIDER,security:Pa.SECURITY}[n]||Pa.SUPPORT,u={serviceDeskId:n==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return a.length>0&&(u.attachments=await am(a)),u}async function dm(e,n){var o,c;const i=`${eo.NETLIFY_BASE_URL}/api/v1/${n}`;try{const u=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!u.ok){let A="";try{const p=await u.text();try{const h=JSON.parse(p);A=h.message||h.error||p}catch{A=p}}catch{A=`HTTP ${u.status} ${u.statusText}`}return u.status===403?A="The ticket service is temporarily unavailable. Please try again later or contact support directly.":u.status===404?A="Ticket service not found. Please try again later.":u.status===500?A="Server error. Please try again later.":u.status===401&&(A="Authentication error with the ticket service. Please contact support."),{success:!1,status:u.status,error:A}}const d=await u.json();return{success:!0,ticketKey:(o=d.data)==null?void 0:o.ticketKey,ticketUrl:(c=d.data)==null?void 0:c.ticketUrl}}catch(u){return{success:!1,error:u instanceof Error?u.message:"Unknown error"}}}async function Js(e,n,a=[]){try{const i=await Am(e,n,a);return await dm(i,n==="security"?"security-incidents":"tickets")}catch(i){return{success:!1,error:i instanceof Error?i.message:"Unknown error"}}}function
|
|
142
|
+
`),R.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(a),style:Object.assign(Object.assign({},c),i)},"Log In"))},Ug=()=>R.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},R.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},R.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),R.createElement("circle",{cx:"12",cy:"7",r:"4"})));function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Rc.apply(null,arguments)}const Gd=({width:e=24,height:n=24,color:a="currentColor",children:i,...o})=>R.createElement("svg",Rc({xmlns:"http://www.w3.org/2000/svg",width:e,height:n,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),i),zg=e=>R.createElement(Gd,e,R.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),Vd=R.createContext(void 0),jg=e=>{let{children:n,resetSession:a,clearResettingFlag:i}=e;return R.createElement(Vd.Provider,{value:{resetSession:a,clearResettingFlag:i}},n)},Wg=()=>{const{restartFlow:e}=Qs(),{setTextAreaValue:n}=(()=>{const{textAreaDisabled:o,toggleTextAreaDisabled:c,textAreaSensitiveMode:u,toggleTextAreaSensitiveMode:d,getTextAreaValue:A,setTextAreaValue:p,focusTextArea:h,blurTextArea:m}=Fo();return{textAreaDisabled:o,toggleTextAreaDisabled:c,textAreaSensitiveMode:u,toggleTextAreaSensitiveMode:d,getTextAreaValue:A,setTextAreaValue:p,focusTextArea:h,blurTextArea:m}})(),{resetSession:a,clearResettingFlag:i}=(()=>{const o=R.useContext(Vd);if(!o)throw new Error("useSession must be used within a SessionProvider");return o})();return R.createElement("button",{onClick:async()=>{a(),await n(""),await e(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:o=>{o.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:o=>{o.target.style.backgroundColor="var(--primaryColor, #107180)"}},R.createElement(zg,{width:16,height:16}),"New Chat")},Yg=()=>(R.useEffect(()=>{const e=c=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(c.key))return;const u=document.activeElement;if(u&&(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.contentEditable==="true"||u.classList.contains("rcb-chat-input-textarea")))return;const d=document.querySelector(".rcb-chat-window");if(!d)return;const A=Array.from(d.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(m=>m.offsetParent!==null);if(A.length>0){const m=A[A.length-1].querySelector(".rcb-checkbox-container");if(m&&m.offsetParent!==null){const y=Array.from(m.querySelectorAll(".rcb-checkbox-row-container")),C=m.querySelector(".rcb-checkbox-next-button");if(y.length>0){const D=[...y];return C&&D.push(C),void((Q,E)=>{Q.preventDefault();let I=-1;for(let B=0;B<E.length;B++)if(E[B]===document.activeElement||E[B].contains(document.activeElement)){I=B;break}I===-1&&(I=0);let _=I;switch(Q.key){case"ArrowDown":case"ArrowRight":_=I<E.length-1?I+1:0;break;case"ArrowUp":case"ArrowLeft":_=I>0?I-1:E.length-1;break;case"Home":_=0;break;case"End":_=E.length-1;break;case"Enter":case" ":{const B=E[I],U=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void B.dispatchEvent(U)}default:return}E[_].focus(),E[_].setAttribute("tabindex","0"),E[_].classList.add("keyboard-focused"),E.forEach((B,U)=>{U!==_&&(B.setAttribute("tabindex","-1"),B.classList.remove("keyboard-focused"))})})(c,D)}}}let p=[];if(A.length>0){const m=A[A.length-1],y=Array.from(m.querySelectorAll(".rcb-options-container")).filter(C=>C.offsetParent!==null);if(y.length>0){const C=y[y.length-1];p=Array.from(C.querySelectorAll(".rcb-options"))}}if(p.length===0)return;const h=p.findIndex(m=>m===document.activeElement);switch(c.key){case"ArrowDown":case"ArrowRight":{let m;c.preventDefault(),m=h<p.length-1?h+1:0,p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus();break}case"ArrowUp":case"ArrowLeft":{let m;c.preventDefault(),m=h>0?h-1:p.length-1,p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus();break}case"Enter":case" ":if(c.preventDefault(),document.activeElement&&p.includes(document.activeElement)){const m=document.activeElement;if(m.classList.contains("rcb-checkbox-row-container")||m.closest(".rcb-checkbox-row-container")){const y=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});m.dispatchEvent(y);const C=m.querySelector(".rcb-checkbox-label"),D=C?C.textContent:m.textContent||"checkbox",Q=m.querySelector(".rcb-checkbox-mark"),E=Q&&Q.style.backgroundColor?"checked":"unchecked";n(`${D} ${E}`)}else{const y=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});m.dispatchEvent(y);const C=m.textContent||m.innerText;n(`Selected: ${C}`)}}break;case"Home":c.preventDefault(),p.length>0&&(p[0].setAttribute("tabindex","0"),p.forEach((m,y)=>{y!==0&&(m.setAttribute("tabindex","-1"),m.classList.remove("keyboard-focused"))}),p[0].classList.add("keyboard-focused"),p[0].focus());break;case"End":if(c.preventDefault(),p.length>0){const m=p.length-1;p[m].setAttribute("tabindex","0"),p.forEach((y,C)=>{C!==m&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),p[m].classList.add("keyboard-focused"),p[m].focus()}}},n=c=>{const u=document.createElement("div");u.setAttribute("aria-live","assertive"),u.setAttribute("aria-atomic","true"),u.className="sr-only",u.textContent=c,document.body.appendChild(u),setTimeout(()=>{document.body.contains(u)&&document.body.removeChild(u)},1e3)},a=(c=null)=>{let u=c;if(u||(u=document.querySelector(".rcb-chat-window"),u||(u=document.querySelector('[class*="rcb-chat"]')),u||(u=document.querySelector(".qa-bot"))),!u)return;const d=u.closest(".embedded-qa-bot")!==null,A=Array.from(u.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(y=>y.offsetParent!==null);if(A.length===0)return;const p=A[A.length-1],h=Array.from(p.querySelectorAll(".rcb-options-container")).filter(y=>y.offsetParent!==null);let m=[];if(h.length>0){const y=h[h.length-1];m=Array.from(y.querySelectorAll(".rcb-options"))}if(m.length===0){let y=p.querySelector(".rcb-checkbox-container");if(!y&&u&&(y=u.querySelector(".rcb-checkbox-container")),y&&y.offsetParent!==null){const C=Array.from(y.querySelectorAll(".rcb-checkbox-row-container")).filter(D=>D.offsetParent!==null&&D.style.display!=="none");if(C.length>0){const D=y.querySelector(".rcb-checkbox-next-button"),Q=[...C];if(D&&D.offsetParent!==null&&Q.push(D),Q.forEach((E,I)=>{E.setAttribute("tabindex",I===0?"0":"-1"),I===0?E.classList.add("keyboard-focused"):E.classList.remove("keyboard-focused")}),C.length>1){y.querySelectorAll(".keyboard-nav-hint").forEach(I=>I.remove());const E=document.createElement("div");E.className="keyboard-nav-hint",E.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",E.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",y.insertBefore(E,y.firstChild)}return void setTimeout(()=>{Q[0]&&Q[0].offsetParent!==null&&!d&&Q[0].focus()},150)}}}if(m.length>0){if(m.forEach((y,C)=>{const D=C===0?"0":"-1";y.setAttribute("tabindex",D),y.setAttribute("role","option"),y.setAttribute("aria-posinset",C+1),y.setAttribute("aria-setsize",m.length),C===0?y.classList.add("keyboard-focused"):y.classList.remove("keyboard-focused")}),m.length>1){const y=h.length>0?h[h.length-1]:null;if(y){y.querySelectorAll(".keyboard-nav-hint").forEach(D=>D.remove());const C=document.createElement("div");C.className="keyboard-nav-hint",C.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",C.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",y.insertBefore(C,y.firstChild)}}else{const y=h.length>0?h[h.length-1]:null;y&&y.querySelectorAll(".keyboard-nav-hint").forEach(C=>C.remove())}setTimeout(()=>{m[0]&&m[0].offsetParent!==null&&!d&&(m[0].focus(),m.length>1&&n(`${m.length} options available. Use arrow keys to navigate.`))},200)}},i=new MutationObserver(c=>{c.forEach(u=>{var d,A;if(u.type==="childList"){const p=Array.from(u.addedNodes),h=p.some(y=>{var C,D,Q,E;return y.nodeType===Node.ELEMENT_NODE&&(((C=y.classList)==null?void 0:C.contains("rcb-options-container"))||((D=y.classList)==null?void 0:D.contains("rcb-options"))||((Q=y.querySelector)==null?void 0:Q.call(y,".rcb-options-container"))||((E=y.querySelector)==null?void 0:E.call(y,".rcb-options")))}),m=p.some(y=>{var C,D;return y.nodeType===Node.ELEMENT_NODE&&(((C=y.classList)==null?void 0:C.contains("rcb-checkbox-container"))||((D=y.querySelector)==null?void 0:D.call(y,".rcb-checkbox-container")))});if(h||m){let y=u.target;for(;y&&!((d=y.classList)!=null&&d.contains("qa-bot"))&&!((A=y.classList)!=null&&A.contains("rcb-chat-window"));)y=y.parentElement;(y||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(C=>{C.setAttribute("tabindex","-1"),C.classList.remove("keyboard-focused")}),setTimeout(()=>a(y),100)}}})});i.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),a();const o=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(c=>{const u=c.querySelectorAll(".rcb-options-container .rcb-options").length>0,d=c.querySelectorAll(".rcb-checkbox-row-container").length>0;if(u){const A=c.querySelectorAll(".rcb-options[tabindex]").length;c.querySelectorAll(".rcb-options").length>A&&a(c)}if(d){const A=c.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;c.querySelectorAll(".rcb-checkbox-row-container").length>A&&a(c)}})},1e3);return()=>{document.removeEventListener("keydown",e),i.disconnect(),clearInterval(o)}},[]),null),Mt=[];for(let e=0;e<256;++e)Mt.push((e+256).toString(16).slice(1));let Oc;const Gg=new Uint8Array(16);var Xd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Jd(e,n,a){var o;if(Xd.randomUUID&&!e)return Xd.randomUUID();const i=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!Oc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Oc=crypto.getRandomValues.bind(crypto)}return Oc(Gg)}();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=15&i[6]|64,i[8]=63&i[8]|128,function(c,u=0){return(Mt[c[u+0]]+Mt[c[u+1]]+Mt[c[u+2]]+Mt[c[u+3]]+"-"+Mt[c[u+4]]+Mt[c[u+5]]+"-"+Mt[c[u+6]]+Mt[c[u+7]]+"-"+Mt[c[u+8]]+Mt[c[u+9]]+"-"+Mt[c[u+10]]+Mt[c[u+11]]+Mt[c[u+12]]+Mt[c[u+13]]+Mt[c[u+14]]+Mt[c[u+15]]).toLowerCase()}(i)}const Kd=()=>"qa_bot_session_".concat(Jd()),Vg="#1a5b6e",Xg="#107180",Jg="Arial, sans-serif",$d="Q&A Bot",Kg="/chat-icon.svg",$g="Type your question here...",Zg="Select an option to continue",qg=!1,em="Ask me a question!",Zd="/login",tm={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},Fc=R.forwardRef((e,n)=>{var a,i;const{apiKey:o,qaEndpoint:c,ratingEndpoint:u,welcomeMessage:d,open:A,onOpenChange:p,isLoggedIn:h,allowAnonAccess:m=!1,primaryColor:y,secondaryColor:C,botName:D,logo:Q,placeholder:E,errorMessage:I,embedded:_,footerText:B,footerLink:U,tooltipText:j,loginUrl:z,customFlow:W}=e,te=R.useRef("bot_".concat(Math.random().toString(36).substr(2,9))),J=R.useRef(Kd()),Y=R.useRef(!1),ee=R.useRef({getSessionId:()=>J.current,isResetting:()=>Y.current}),[Z,ie]=R.useState(h);R.useEffect(()=>{ie(h)},[h]);const ue=R.useMemo(()=>{const M=Object.assign({},tm);M.general=Object.assign(Object.assign({},M.general),{primaryColor:y||Vg,secondaryColor:C||Xg,fontFamily:Jg,embedded:_!==void 0?_:qg});const fe=Z===!1?R.createElement(Yd,{key:"login-button",loginUrl:z||Zd,isHeaderButton:!0}):R.createElement(Ug,{key:"user-icon"});M.header={title:D||$d,showAvatar:!0,avatar:Q||Kg,buttons:[fe,dt.CLOSE_CHAT_BUTTON]},M.chatInput=Object.assign(Object.assign({},M.chatInput),{disabled:!1,enabledPlaceholderText:E||$g,disabledPlaceholderText:I||Zg}),M.tooltip=Object.assign(Object.assign({},M.tooltip),{text:j||em});const O=B?U?R.createElement("a",{href:U,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},B):R.createElement("span",{key:"footer-text"},B):null;return M.footer={text:O,buttons:[R.createElement(Wg,{key:"new-chat-button"})]},M},[y,C,D,Q,E,I,_,j,Z,z,B,U]),se=R.useRef(null),xe=function(M){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R.useMemo(()=>{const O=(de,Ee)=>{if(M.current){const he=getComputedStyle(M.current).getPropertyValue(de);if(he&&he.trim()!=="")return he.trim();if(M.current.parentElement){const ve=getComputedStyle(M.current.parentElement).getPropertyValue(de);if(ve&&ve.trim()!=="")return ve.trim()}}return Ee};return{primaryColor:O("--primaryColor",fe.primaryColor),secondaryColor:O("--secondaryColor",fe.secondaryColor),fontFamily:O("--fontFamily",fe.fontFamily)}},[M,fe])}(se,ue.general);((M,fe)=>{R.useEffect(()=>{fe.current&&(M?fe.current.classList.add("bot-logged-in"):fe.current.classList.remove("bot-logged-in"))},[M,fe])})(Z!==!1,se),(M=>{let{settings:fe,themeColors:O}=M;R.useEffect(()=>{O&&(Object.entries(O).forEach(de=>{let[Ee,he]=de;he&&document.documentElement.style.setProperty("--".concat(Ee),he)}),O.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",O.primaryColor),O.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",O.secondaryColor))},[O]),R.useEffect(()=>{var de,Ee,he;!((de=fe.header)===null||de===void 0)&&de.title&&typeof fe.header.title=="string"&&(fe.header.title=R.createElement("div",{key:"header-title"},R.createElement("h1",{className:"sr-only"},fe.header.title),R.createElement("span",{"aria-hidden":"true"},fe.header.title))),!((Ee=fe.general)===null||Ee===void 0)&&Ee.embedded&&fe.chatWindow&&(fe.chatWindow.defaultOpen=!0),fe.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},fe.chatHistory={disabled:!1},fe.chatButton=Object.assign(Object.assign({},fe.chatButton),{icon:(he=fe.header)===null||he===void 0?void 0:he.avatar}),fe.event={rcbToggleChatWindow:!0}},[fe])})({settings:ue,themeColors:xe});const ge=R.useMemo(()=>{const M=(O=>{let{endpoint:de,ratingEndpoint:Ee,apiKey:he,sessionId:ve,isResetting:Te=()=>!1,isLoggedIn:Qe,allowAnonAccess:tt=!1,loginUrl:Le="/login"}=O;if(Qe===!1&&!tt)return{qa_loop:{message:"To ask questions, please log in first.",component:R.createElement(Yd,{loginUrl:Le}),chatDisabled:!0,path:"qa_loop"}};let Je=null,qe=!1;if(!de)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async ft=>{const{userInput:Ne}=ft;if(Te&&Te()||!Ne||Ne.trim()==="")return null;if(Ne==="👍 Helpful"||Ne==="👎 Not helpful"){if(Ee&&Je)try{const We=Ne==="👍 Helpful",ct={"Content-Type":"application/json"};he&&(ct["X-API-KEY"]=he);const ht=ve();ht&&(ct["X-Session-ID"]=ht,ct["X-Query-ID"]=Je),await fetch(Ee,{method:"POST",headers:ct,body:JSON.stringify({sessionId:ht,queryId:Je,rating:We?1:0})})}catch(We){console.error("Error sending feedback:",We)}return"Thanks for the feedback! Feel free to ask another question."}try{const We=Jd();Je=We;const ct={"Content-Type":"application/json"};he&&(ct["X-API-KEY"]=he);const ht=ve();ht&&(ct["X-Session-ID"]=ht,ct["X-Query-ID"]=We);const ln=await fetch(de,{method:"POST",headers:ct,body:JSON.stringify({query:Ne})});if(!ln.ok)throw new Error("API returned ".concat(ln.status));const pt=await ln.json(),Ft=pt.response||pt.answer||pt.text||pt.message;if(!Ft)throw new Error("Invalid response format from API");const jt=(Gt=>{if(!Gt||typeof Gt!="string")return Gt;let gt=Gt.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return gt=gt.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),st=>{let Xe=st,Vt="";const cn=Xe.match(/([.,;:!?]+)$/);return cn&&(Vt=cn[1],Xe=Xe.slice(0,-Vt.length)),"[".concat(Xe,"](").concat(Xe,")").concat(Vt)}),gt})(Ft);return await ft.injectMessage(jt),qe=!0,setTimeout(async()=>{await ft.injectMessage("Feel free to ask another question.")},100),null}catch(We){return console.error("Error in Q&A flow:",We),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:ft=>Te&&Te()||ft.userInput==="👍 Helpful"||ft.userInput==="👎 Not helpful"?[]:Ee&&qe?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:c,ratingEndpoint:u,apiKey:o,sessionId:ee.current.getSessionId,isResetting:ee.current.isResetting,isLoggedIn:Z,allowAnonAccess:m,loginUrl:z||Zd});return Object.assign(Object.assign({start:{message:d,transition:{duration:0},path:"qa_loop"}},M),W||{})},[o,c,u,d,Z,m,z,W]),me=R.useMemo(()=>{return[()=>Hp(fe),Hg(),()=>Ng(M)];var M,fe},[]);return R.useEffect(()=>{const M=()=>{const O=document.querySelector(".rcb-chat-window");if(!O)return;const de=O.querySelector(".rcb-send-button");de&&(de.hasAttribute("tabindex")||de.setAttribute("tabindex","0"),de.hasAttribute("data-keyboard-enabled")||(de.setAttribute("data-keyboard-enabled","true"),de.addEventListener("keydown",Ee=>{if(Ee.key==="Enter"||Ee.key===" "){Ee.preventDefault();const he=de&&Object.keys(de).find(Te=>Te.startsWith("__reactProps"));if(he){const Te=de[he],Qe=Te==null?void 0:Te.onMouseDown;if(Qe&&typeof Qe=="function")return void Qe(Ee)}const ve=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});de.dispatchEvent(ve)}})))},fe=setInterval(M,1e3);return M(),()=>clearInterval(fe)},[]),Yg(),R.useEffect(()=>{if(!_&&p){const M=fe=>{const O=fe.data.newState;p(O)};return window.addEventListener("rcb-toggle-chat-window",M),()=>{window.removeEventListener("rcb-toggle-chat-window",M)}}},[_,p]),R.createElement("div",{className:"qa-bot ".concat(!((a=ue.general)===null||a===void 0)&&a.embedded?"embedded-qa-bot":""),ref:se,role:"region","aria-label":D||$d},R.createElement(jg,{resetSession:()=>{Y.current=!0,J.current=Kd()},clearResettingFlag:()=>{Y.current=!1}},R.createElement(yA,null,R.createElement("div",null,R.createElement(Wd,{ref:n,embedded:((i=ue.general)===null||i===void 0?void 0:i.embedded)||!1,currentOpen:A||!1,enabled:Z!==!1,onSetEnabled:M=>ie(!!M&&void 0)}),R.createElement(bp,{key:"chatbot-".concat(te.current,"-").concat(Z),settings:ue,flow:ge,plugins:me}),R.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),R.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options.")))))});Fc.displayName="QABot",zu('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const nm=()=>{const[e,n]=R.useState(!1),a=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!a())throw new Error("Screen capture is not available in this environment");try{n(!0);const i=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=i,await new Promise(h=>{o.onloadedmetadata=()=>{o.play(),h()}});const c=document.createElement("canvas");c.width=o.videoWidth,c.height=o.videoHeight;const u=c.getContext("2d");if(!u)throw new Error("Could not get canvas context");u.drawImage(o,0,0,c.width,c.height);const d=await new Promise(h=>c.toBlob(h,"image/png"));if(!d)throw new Error("Could not create image blob");const A=new Date().toISOString().replace(/[:.]/g,"-"),p=new File([d],"screenshot-".concat(A,".png"),{type:"image/png"});return i.getTracks().forEach(h=>h.stop()),n(!1),p}catch(i){throw console.error("Error capturing screenshot:",i),n(!1),i}},isCapturing:e,isScreenCaptureAvailable:a()}},rm=e=>R.createElement(Gd,e,R.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.createElement("polyline",{points:"17 8 12 3 7 8"}),R.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),om=e=>new Promise((n,a)=>{const i=new FileReader;i.onload=()=>{if(typeof i.result!="string")return void a(new Error("Failed to read file ".concat(e.name)));const o=i.result.split(",")[1];n({fileName:e.name,contentType:e.type,size:e.size,fileData:o})},i.onerror=()=>a(new Error("Failed to read file ".concat(e.name))),i.readAsDataURL(e)}),am=e=>Promise.all(e.map(om)),im=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),Xs=e=>{let{onFileUpload:n,maxSizeMB:a=10,acceptedTypes:i="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:c}=e;const[u,d]=R.useState(!1),[A,p]=R.useState([]),[h,m]=R.useState(null),y=R.useRef(null),{captureScreenshot:C,isCapturing:D,isScreenCaptureAvailable:Q}=nm(),E=z=>{const W=document.createElement("div");W.setAttribute("aria-live","assertive"),W.setAttribute("aria-atomic","true"),W.className="sr-only",W.textContent=z,document.body.appendChild(W),setTimeout(()=>document.body.removeChild(W),1e3)},I=z=>{if(!z||z.length===0)return void console.warn("FileUploadComponent: No valid files provided to handleFiles");let W;try{W=Array.from(z)}catch(ee){return console.error("FileUploadComponent: Error converting files to array:",ee),void E("Error processing selected files. Please try again.")}const te=[...A,...W];p(te);const J=W.length,Y=W.map(ee=>ee.name).join(", ");E("".concat(J," file").concat(J>1?"s":""," selected: ").concat(Y)),setTimeout(()=>{const ee=document.querySelector(".rcb-chat-content");ee&&(ee.scrollTop=ee.scrollHeight)},100),n&&n(te)},_=z=>{z.preventDefault(),z.stopPropagation(),z.type==="dragenter"||z.type==="dragover"?d(!0):z.type==="dragleave"&&d(!1)},B=()=>{try{y.current&&y.current.click()}catch(z){console.error("FileUploadComponent: Error in handleButtonClick:",z),E("Error opening file selection dialog. Please try again.")}},U=()=>{m(null)},j=o&&Q;return R.createElement("div",{className:"file-upload-container ".concat(c||""),style:{padding:"16px",margin:"8px 0"}},j&&R.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},R.createElement("button",{onClick:z=>{z.preventDefault(),(async()=>{try{const W=await C();I([W]),E("Screenshot captured successfully")}catch{E("Error capturing screenshot. Please try again.")}})()},disabled:D,"aria-describedby":"screenshot-help","aria-label":D?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:D?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),R.createElement("circle",{cx:"12",cy:"13",r:"4"})),D?"Taking screenshot...":"Take screenshot..."),R.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),R.createElement("div",{className:"file-upload-dropzone ".concat(u?"active":""),onDragEnter:_,onDragLeave:_,onDragOver:_,onDrop:z=>{var W;z.preventDefault(),z.stopPropagation(),d(!1);try{!((W=z.dataTransfer)===null||W===void 0)&&W.files&&z.dataTransfer.files.length>0&&I(z.dataTransfer.files)}catch(te){console.error("FileUploadComponent: Error in handleDrop:",te),E("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:z=>{z.key!=="Enter"&&z.key!==" "||(z.preventDefault(),B())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:u?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},R.createElement("input",{ref:y,type:"file",className:"file-input",onChange:z=>{var W;try{!((W=z.target)===null||W===void 0)&&W.files&&z.target.files.length>0&&I(z.target.files)}catch(te){console.error("FileUploadComponent: Error in handleFileSelect:",te),E("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:i}),R.createElement("div",{className:"upload-content",onClick:B,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},R.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},R.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},R.createElement(rm,null),R.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),R.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",a,"MB each)")),A.length>0&&R.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},R.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),A.map((z,W)=>R.createElement("span",{key:W,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:te=>{te.stopPropagation(),(J=>{m(J)})(z)}},R.createElement("span",{onClick:te=>{te.stopPropagation(),(J=>{const Y=A.filter((ee,Z)=>Z!==J);p(Y),n&&n(Y)})(W)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(z.name)},"×"),z.name," (",im(z.size),")"))))),(()=>{if(!h)return null;const z=h.type.startsWith("image/"),W=h.type.startsWith("text/"),te=h.type==="application/pdf";return R.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:U},R.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:J=>J.stopPropagation()},R.createElement("button",{onClick:U,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),R.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},h.name),z&&R.createElement("img",{src:URL.createObjectURL(h),alt:h.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),W&&R.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(h)),te&&R.createElement("iframe",{src:URL.createObjectURL(h),style:{width:"100%",height:"70vh",border:"none"},title:h.name}),!z&&!W&&!te&&R.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function sm(e,n){if(!n||Object.keys(n).length===0)return e;const a={};for(const[i,o]of Object.entries(e)){let c=Object.assign({},o);if(c.chatDisabled===void 0){const u=!(!c.options&&!c.checkboxes);c.chatDisabled=u}a[i]=c}return a}const lm=R.forwardRef((e,n)=>{const[a,i]=R.useState(e.defaultOpen||!1),o=R.useRef(null);return R.useImperativeHandle(n,()=>({addMessage:c=>{var u;(u=o.current)===null||u===void 0||u.addMessage(c)},setBotEnabled:c=>{var u;(u=o.current)===null||u===void 0||u.setBotEnabled(c)},openChat:()=>{var c;i(!0),(c=o.current)===null||c===void 0||c.openChat()},closeChat:()=>{var c;i(!1),(c=o.current)===null||c===void 0||c.closeChat()},toggleChat:()=>{var c;i(u=>!u),(c=o.current)===null||c===void 0||c.toggleChat()}}),[]),R.createElement(Fc,{ref:o,apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,open:a,onOpenChange:i,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText})});lm.displayName="ProgrammaticQABot";const eo={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"4nn5l4T4TnkMdzsK0AwAtnGRcheBDnjawuAT42LaOLc"},Dr={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},qd={SESSION_ID:"access-qa-bot-session-id"};function cm({welcome:e,setTicketForm:n,isLoggedIn:a}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:i=>i.userInput==="Ask a question about ACCESS"?a?"go_ahead_and_ask":"qa_loop":i.userInput==="Open a Help Ticket"?(n({}),"help_ticket"):i.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":i.userInput==="Report a security issue"?(n({}),"security_incident"):"start"},go_ahead_and_ask:{message:"Go ahead and ask your question! I'll do my best to help.",path:"qa_loop"}}}let Lc=null;function um(e){Lc=e}function Ie(){return Lc?Lc.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Rt(e={}){const n=Ie();return{...n,email:e.email||n.email,name:e.name||n.name,accessId:e.accessId||n.accessId}}function Qc(e){return e&&e.length>0?`
|
|
143
|
+
Attachments: ${e.length} file(s) attached`:""}const Pa={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function Am(e,n="support",a=[]){const o={support:Pa.SUPPORT,general_help:Pa.SUPPORT,loginAccess:Pa.LOGIN_ACCESS,loginProvider:Pa.LOGIN_PROVIDER,security:Pa.SECURITY}[n]||Pa.SUPPORT,u={serviceDeskId:n==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return a.length>0&&(u.attachments=await am(a)),u}async function dm(e,n){var o,c;const i=`${eo.NETLIFY_BASE_URL}/api/v1/${n}`;try{const u=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!u.ok){let A="";try{const p=await u.text();try{const h=JSON.parse(p);A=h.message||h.error||p}catch{A=p}}catch{A=`HTTP ${u.status} ${u.statusText}`}return u.status===403?A="The ticket service is temporarily unavailable. Please try again later or contact support directly.":u.status===404?A="Ticket service not found. Please try again later.":u.status===500?A="Server error. Please try again later.":u.status===401&&(A="Authentication error with the ticket service. Please contact support."),{success:!1,status:u.status,error:A}}const d=await u.json();return{success:!0,ticketKey:(o=d.data)==null?void 0:o.ticketKey,ticketUrl:(c=d.data)==null?void 0:c.ticketUrl}}catch(u){return{success:!1,error:u instanceof Error?u.message:"Unknown error"}}}async function Js(e,n,a=[]){try{const i=await Am(e,n,a);return await dm(i,n==="security"?"security-incidents":"tickets")}catch(i){return{success:!1,error:i instanceof Error?i.message:"Unknown error"}}}function _c(e,n="ticket"){return e?e.success?e.ticketUrl&&e.ticketKey?`Your ${n} has been submitted successfully.
|
|
144
144
|
|
|
145
145
|
Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
|
|
146
146
|
|
|
@@ -156,7 +156,7 @@ Please try again or contact our support team directly.`}function Ks(e){return!e|
|
|
|
156
156
|
• Clear your browser cookies and cache
|
|
157
157
|
• Check if you're using the correct identity provider
|
|
158
158
|
|
|
159
|
-
Would you like to submit a help ticket for ACCESS login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],path:u=>u.userInput==="Yes, let's create a ticket"?"access_login_description":"start"},access_login_description:{message:"Describe your login issue.",function:u=>{const d=Ie();n({...d,description:u.userInput,email:a.email||d.email,name:a.name||d.name,accessId:a.accessId||d.accessId})},path:"access_login_identity"},access_login_identity:{message:"Which identity provider were you using?",options:["ACCESS","Github","Google","Institution","Microsoft","ORCID","Other"],function:u=>{const d=Ie();n({...d,identityProvider:u.userInput})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],function:u=>{const d=Ie();n({...d,browser:u.userInput})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,wantsAttachment:u.userInput})},path:u=>{if(u.userInput==="Yes")return"access_login_upload";const d=Rt(a);return d.email?d.name?d.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_upload:{message:"Please upload your screenshot.",component:N.jsx(Xs,{onFileUpload:u=>{n(d=>({...d,uploadedFiles:u}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const u=Ie();n({...u,uploadConfirmed:!0})},path:()=>{const u=Rt(a);return u.email?u.name?u.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_email:{message:"What is your email?",validateTextInput:Ks,function:u=>{const d=Ie();n({...d,email:u.userInput})},path:()=>{const u=Rt(a);return u.name?u.accessId?"access_login_summary":"access_login_accessid":"access_login_name"}},access_login_name:{message:"What is your name?",function:u=>{const d=Ie();n({...d,name:u.userInput})},path:()=>Rt(a).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,accessId:Li(u.userInput)})},path:"access_login_summary"},access_login_summary:{message:u=>{const d=Ie(),A=Rt(a),p=
|
|
159
|
+
Would you like to submit a help ticket for ACCESS login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],path:u=>u.userInput==="Yes, let's create a ticket"?"access_login_description":"start"},access_login_description:{message:"Describe your login issue.",function:u=>{const d=Ie();n({...d,description:u.userInput,email:a.email||d.email,name:a.name||d.name,accessId:a.accessId||d.accessId})},path:"access_login_identity"},access_login_identity:{message:"Which identity provider were you using?",options:["ACCESS","Github","Google","Institution","Microsoft","ORCID","Other"],function:u=>{const d=Ie();n({...d,identityProvider:u.userInput})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],function:u=>{const d=Ie();n({...d,browser:u.userInput})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,wantsAttachment:u.userInput})},path:u=>{if(u.userInput==="Yes")return"access_login_upload";const d=Rt(a);return d.email?d.name?d.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_upload:{message:"Please upload your screenshot.",component:N.jsx(Xs,{onFileUpload:u=>{n(d=>({...d,uploadedFiles:u}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const u=Ie();n({...u,uploadConfirmed:!0})},path:()=>{const u=Rt(a);return u.email?u.name?u.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_email:{message:"What is your email?",validateTextInput:Ks,function:u=>{const d=Ie();n({...d,email:u.userInput})},path:()=>{const u=Rt(a);return u.name?u.accessId?"access_login_summary":"access_login_accessid":"access_login_name"}},access_login_name:{message:"What is your name?",function:u=>{const d=Ie();n({...d,name:u.userInput})},path:()=>Rt(a).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,accessId:Li(u.userInput)})},path:"access_login_summary"},access_login_summary:{message:u=>{const d=Ie(),A=Rt(a),p=Qc(d.uploadedFiles);let h=A.accessId;return u.prevPath==="access_login_accessid"&&u.userInput&&(h=u.userInput),`Thank you for providing your ACCESS login issue details. Here's a summary:
|
|
160
160
|
|
|
161
161
|
Name: ${A.name||"Not provided"}
|
|
162
162
|
Email: ${A.email||"Not provided"}
|
|
@@ -165,13 +165,13 @@ Identity Provider: ${d.identityProvider||"Not provided"}
|
|
|
165
165
|
Browser: ${d.browser||"Not provided"}
|
|
166
166
|
Issue Description: ${d.description||"Not provided"}${p}
|
|
167
167
|
|
|
168
|
-
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],renderHtml:["BOT","USER"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",name:A.name||"",accessId:A.accessId||"",description:d.description||"",identityProvider:d.identityProvider||"",browser:d.browser||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"access_login_success":"start"},access_login_success:{message:()=>
|
|
168
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],renderHtml:["BOT","USER"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",name:A.name||"",accessId:A.accessId||"",description:d.description||"",identityProvider:d.identityProvider||"",browser:d.browser||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"access_login_success":"start"},access_login_success:{message:()=>_c(i,"ACCESS login ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function pm({ticketForm:e,setTicketForm:n,userInfo:a}){let i=null;const o=async(u,d=[])=>{i=await Js(u,"loginProvider",d),i.success?n(A=>({...A,ticketKey:i.ticketKey,ticketUrl:i.ticketUrl})):n(A=>({...A,submissionError:i.error}))};return{resource_help:{message:`If you're having trouble logging into an affiliated infrastructure or resource provider, here are some common issues:
|
|
169
169
|
|
|
170
170
|
• Ensure your allocation is active
|
|
171
171
|
• Confirm you have the correct username for that resource
|
|
172
172
|
• Check <a href="https://operations.access-ci.org/infrastructure_news_view">System Status News</a> to see if the resource is undergoing maintenance
|
|
173
173
|
|
|
174
|
-
Would you like to submit a help ticket for resource provider login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],renderHtml:["BOT"],path:u=>u.userInput==="Yes, let's create a ticket"?"resource_login_resource":"start"},resource_login_resource:{message:"Which ACCESS Resource are you trying to access?",options:["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"],function:u=>{const d=Ie();n({...d,resource:u.userInput})},path:"resource_login_userid"},resource_login_userid:{message:"What is your user ID at the resource?",function:u=>{const d=Ie();n({...d,userIdResource:u.userInput})},path:"resource_login_description"},resource_login_description:{message:"Please describe the issue you're having logging in.",function:u=>{const d=Ie();n({...d,description:u.userInput,email:a.email||d.email,name:a.name||d.name,accessId:a.accessId||d.accessId})},path:"resource_login_attachment"},resource_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,wantsAttachment:u.userInput})},path:u=>{if(u.userInput==="Yes")return"resource_login_upload";const d=Rt(a);return d.email?d.name?d.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_upload:{message:"Please upload your screenshot.",component:N.jsx(Xs,{onFileUpload:u=>{n(d=>({...d,uploadedFiles:u}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const u=Ie();n({...u,uploadConfirmed:!0})},path:()=>{const u=Rt(a);return u.email?u.name?u.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_email:{message:"What is your email?",validateTextInput:Ks,function:u=>{const d=Ie();n({...d,email:u.userInput})},path:()=>{const u=Rt(a);return u.name?u.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name"}},resource_login_name:{message:"What is your name?",function:u=>{const d=Ie();n({...d,name:u.userInput})},path:()=>Rt(a).accessId?"resource_login_summary":"resource_login_accessid"},resource_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,accessId:Li(u.userInput)})},path:"resource_login_summary"},resource_login_summary:{message:u=>{const d=Ie(),A=Rt(a),p=
|
|
174
|
+
Would you like to submit a help ticket for resource provider login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],renderHtml:["BOT"],path:u=>u.userInput==="Yes, let's create a ticket"?"resource_login_resource":"start"},resource_login_resource:{message:"Which ACCESS Resource are you trying to access?",options:["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"],function:u=>{const d=Ie();n({...d,resource:u.userInput})},path:"resource_login_userid"},resource_login_userid:{message:"What is your user ID at the resource?",function:u=>{const d=Ie();n({...d,userIdResource:u.userInput})},path:"resource_login_description"},resource_login_description:{message:"Please describe the issue you're having logging in.",function:u=>{const d=Ie();n({...d,description:u.userInput,email:a.email||d.email,name:a.name||d.name,accessId:a.accessId||d.accessId})},path:"resource_login_attachment"},resource_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,wantsAttachment:u.userInput})},path:u=>{if(u.userInput==="Yes")return"resource_login_upload";const d=Rt(a);return d.email?d.name?d.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_upload:{message:"Please upload your screenshot.",component:N.jsx(Xs,{onFileUpload:u=>{n(d=>({...d,uploadedFiles:u}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const u=Ie();n({...u,uploadConfirmed:!0})},path:()=>{const u=Rt(a);return u.email?u.name?u.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_email:{message:"What is your email?",validateTextInput:Ks,function:u=>{const d=Ie();n({...d,email:u.userInput})},path:()=>{const u=Rt(a);return u.name?u.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name"}},resource_login_name:{message:"What is your name?",function:u=>{const d=Ie();n({...d,name:u.userInput})},path:()=>Rt(a).accessId?"resource_login_summary":"resource_login_accessid"},resource_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,accessId:Li(u.userInput)})},path:"resource_login_summary"},resource_login_summary:{message:u=>{const d=Ie(),A=Rt(a),p=Qc(d.uploadedFiles);let h=A.accessId;return u.prevPath==="resource_login_accessid"&&u.userInput&&(h=u.userInput),`Thank you for providing your resource login issue details. Here's a summary:
|
|
175
175
|
|
|
176
176
|
Name: ${A.name||"Not provided"}
|
|
177
177
|
Email: ${A.email||"Not provided"}
|
|
@@ -180,7 +180,7 @@ Resource: ${d.resource||"Not provided"}
|
|
|
180
180
|
Resource User ID: ${d.userIdResource||"Not provided"}
|
|
181
181
|
Issue Description: ${d.description||"Not provided"}${p}
|
|
182
182
|
|
|
183
|
-
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",name:A.name||"",accessId:A.accessId||"",accessResource:d.resource||"",description:d.description||"",userIdAtResource:d.userIdResource||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:()=>
|
|
183
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",name:A.name||"",accessId:A.accessId||"",accessResource:d.resource||"",description:d.description||"",userIdAtResource:d.userIdResource||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:()=>_c(i,"resource login ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const hm=[" C, C++","Abaqus","ACCESS","ACCESS-credits","ACCESS-website","Accounts","ACLS","Adding users","Affiliations","Affinity Groups","AI","Algorithms","Allocation extension","Allocation Management","Allocation proposal","Allocation Time","Allocation users","AMBER","AMIE","Anaconda","Analysis","API","Application Status","ARCGIS","Architecture","Archiving","Astrophysics","ATLAS","Authentication","AWS","AZURE","Backup","BASH","Batch Jobs","Benchmarking","Big Data","Bioinformatics","Biology","Ceph","CFD","cgroups","CHARMM","Checkpoint","cilogon","citation","Cloud","Cloud Computing","Cloud Lab","Cloud Storage","Cluster Management","Cluster Support","CMMC","Community Outreach","Compiling","Composible Systems","Computataional Chemistry","COMSOL","Conda","Condo","Containers","Core dump","Core hours","CP2K","CPU architecture","CPU bound","CUDA","Cybersecurity","CYVERSE","Data","Data Storage","Data-access-protocols","Data-analysis","Data-compliance","Data-lifecycle","Data-management","Data-management-software","Data-provenance","Data-reproducibility","Data-retention","Data-science","Data-sharing","Data-transfer","Data-wrangling","Database-update","Debugging","Debugging, Optimizatio and Profiling","Deep-learning","Dependencies","Deployment","DFT","Distributed-computing","DNS","Docker","Documentation","DOI","DTN","Easybuild","Email","Encryption","Environment-modules","Errors","Extension","FastX","Federated-authentication","File transfers","File-formats","File-limits","File-systems","File-transfer","Finite-element-analysis","Firewall","Fortran","Frameworks and IDE's","GAMESS","Gateways","GATK","Gaussian","GCC","Genomics","GIS","Git","Globus","GPFS","GPU","Gravitational-waves","Gridengine","GROMACS","Hadoop","Hardware","Image-processing","Infiniband","Interactive-mode","Interconnect","IO-Issue","ISILON","Java","Jekyll","Jetstream","Job-accounting","Job-array","Job-charging","Job-failure","Job-sizing","Job-submission","Julia","Jupyterhub","Key-management","Kubernetes","KyRIC","LAMMPS","Library-paths","License","Linear-programming","Linux","LMOD","login","LSF","Lustre","Machine-learning","Management","Materials-science","Mathematica","MATLAB","Memory","Metadata","Modules","Molecular-dynamics","Monte-carlo","MPI","NAMD","NetCDF","Networking","Neural-networks","NFS","NLP","NoMachine","Nvidia","Oceanography","OnDemnad","Open-science-grid","Open-storage-network","OpenCV","Openfoam","OpenMP","OpenMPI","OpenSHIFT","Openstack","Optimization","OS","OSG","Parallelization","Parameter-sweeps","Paraview","Particle-physics","password","PBS","Pegasus","Pending-jobs","Performance-tuning","Permissions","Physiology","PIP","PODMAN","Portals","Pre-emption","Professional and Workforce Development","Professional-development","Profile","Profiling","Programming","Programming Languages","Programming-best-practices","Project-management","Project-renewal","Provisioning","Pthreads","Publication-database","Putty","Python","Pytorch","Quantum-computing","Quantum-mechanics","Quota","R","RDP","React","Reporting","Research-facilitation","Research-grants","Resources","Rstudio-server","S3","Samba","SAS","Scaling","Schedulers","Scheduling","Science DMZ","Science Gateways","Scikit-learn","Scratch","screen","scripting","SDN","Secure Computing and Data","Secure-data-architecture","Serverless-hpc","setup","sftp","SGE","Shell Scripting","Shifter","Singularity","SLURM","SMB","Smrtanalysis","Software Installations","Software-carpentry","SPACK","SPARK","Spectrum-scale","SPSS","SQL","SSH","Stampede2","STATA","Storage","Supplement","Support","TCP","Technical-training-for-hpc","Tensorflow","Terminal-emulation-and-window-management","Tickets","Timing-issue","TMUX","Tools","Training","Transfer SUs","Trinity","Tuning","Unix-environment","Upgrading","Vectorization","Version-control","vim","VNC","VPN","Workflow","Workforce-development","X11","Xalt","XDMoD","XML","XSEDE","I don't see a relevant keyword"],gm=["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"];function mm({ticketForm:e,setTicketForm:n,userInfo:a}){let i=null;const o=async(u,d=[])=>{i=await Js(u,"support",d),i.success?n(A=>({...A,ticketKey:i.ticketKey,ticketUrl:i.ticketUrl})):n(A=>({...A,submissionError:i.error}))};return{general_help_summary_subject:{message:"Provide a short title for your ticket.",function:u=>{const d=Ie();n({...d,summary:u.userInput,email:a.email||d.email,name:a.name||d.name,accessId:a.accessId||d.accessId})},path:"general_help_category"},general_help_category:{message:"What type of issue are you experiencing?",options:["User Account Question","Allocation Question","User Support Question","CSSN/CCEP Question","Training Question","Metrics Question","OnDemand Question","Pegasus Question","XDMoD Question","Some Other Question"],function:u=>{const d=Ie();n({...d,category:u.userInput})},path:"general_help_description"},general_help_description:{message:"Please describe your issue.",function:u=>{const d=Ie();n({...d,description:u.userInput})},path:"general_help_attachment"},general_help_attachment:{message:"Would you like to attach a file to your ticket?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,wantsAttachment:u.userInput})},path:u=>u.userInput==="Yes"?"general_help_upload":"general_help_resource"},general_help_upload:{message:"Please upload your file.",component:N.jsx(Xs,{onFileUpload:u=>{n(d=>({...d,uploadedFiles:u}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const u=Ie();n({...u,uploadConfirmed:!0})},path:"general_help_resource"},general_help_resource:{message:"Does your problem involve an ACCESS Resource?",options:["Yes","No"],function:u=>{const d=Ie();n({...d,involvesResource:u.userInput.toLowerCase()})},path:u=>u.userInput==="Yes"?"general_help_resource_details":"general_help_keywords"},general_help_resource_details:{message:"Please select the ACCESS Resource involved with your issue:",options:gm,function:u=>{const d=Ie();n({...d,resourceDetails:u.userInput})},path:"general_help_user_id_at_resource"},general_help_user_id_at_resource:{message:"What is your User ID at the selected resource(s)? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,userIdAtResource:Li(u.userInput)})},path:"general_help_keywords"},general_help_keywords:{message:"Please add up to 5 keywords to help route your ticket.",checkboxes:{items:hm,min:0,max:5},function:u=>{const d=Ie();n({...d,keywords:u.userInput})},path:u=>u.userInput&&u.userInput.includes("I don't see a relevant keyword")?"general_help_additional_keywords":"general_help_priority"},general_help_additional_keywords:{message:"Please enter additional keywords, separated by commas:",function:u=>{const d=Ie(),A=d.keywords||[],p=u.userInput,m=(Array.isArray(A)?[...A]:String(A).split(",").map(C=>C.trim())).filter(C=>C!=="I don't see a relevant keyword"),y=m.length>0?[...m,p].join(", "):p;n({...d,keywords:y,suggestedKeyword:p})},path:"general_help_priority"},general_help_priority:{message:"Please select a priority for your issue:",options:["Lowest","Low","Medium","High","Highest"],function:u=>{const d=Ie();n({...d,priority:u.userInput.toLowerCase()})},path:()=>{const u=Rt(a);return u.email?u.name?u.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name":"general_help_email"}},general_help_email:{message:"What is your email address?",validateTextInput:Ks,function:u=>{const d=Ie();n({...d,email:u.userInput})},path:()=>{const u=Rt(a);return u.name?u.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name"}},general_help_name:{message:"What is your name?",function:u=>{const d=Ie();n({...d,name:u.userInput})},path:()=>Rt(a).accessId?"general_help_ticket_summary":"general_help_accessid"},general_help_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Fi(),function:u=>{const d=Ie();n({...d,accessId:Li(u.userInput)})},path:"general_help_ticket_summary"},general_help_ticket_summary:{message:u=>{const d=Ie(),A=Rt(a),p=Qc(d.uploadedFiles);let h=A.accessId;u.prevPath==="general_help_accessid"&&u.userInput&&(h=u.userInput);let m="";return d.involvesResource==="yes"&&(m=`
|
|
184
184
|
Resource: ${d.resourceDetails||"Not specified"}`,d.userIdAtResource&&(m+=`
|
|
185
185
|
User ID at Resource: ${d.userIdAtResource}`)),`Thank you for providing your issue details. Here's a summary:
|
|
186
186
|
|
|
@@ -193,7 +193,7 @@ Priority: ${d.priority||"Not provided"}
|
|
|
193
193
|
Keywords: ${d.keywords||"Not provided"}
|
|
194
194
|
Issue Description: ${d.description||"Not provided"}${m}${p}
|
|
195
195
|
|
|
196
|
-
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",summary:d.summary||"General Support Ticket",description:d.description||"",priority:d.priority||"medium",accessId:A.accessId||"",name:A.name||"",issueType:d.category||"",hasResourceProblem:d.involvesResource==="yes"?"Yes":"No",userIdAtResource:d.userIdAtResource||"",resourceName:d.resourceDetails||"",keywords:d.keywords||"",noRelevantKeyword:d.suggestedKeyword?"checked":"",suggestedKeyword:d.suggestedKeyword||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"general_help_success":"start"},general_help_success:{message:()=>
|
|
196
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async u=>{if(u.userInput==="Submit Ticket"){const d=Ie(),A=Rt(a),p={email:A.email||"",summary:d.summary||"General Support Ticket",description:d.description||"",priority:d.priority||"medium",accessId:A.accessId||"",name:A.name||"",issueType:d.category||"",hasResourceProblem:d.involvesResource==="yes"?"Yes":"No",userIdAtResource:d.userIdAtResource||"",resourceName:d.resourceDetails||"",keywords:d.keywords||"",noRelevantKeyword:d.suggestedKeyword?"checked":"",suggestedKeyword:d.suggestedKeyword||""};await o(p,d.uploadedFiles||[])}},path:u=>u.userInput==="Submit Ticket"?"general_help_success":"start"},general_help_success:{message:()=>_c(i,"support ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function vm({ticketForm:e,setTicketForm:n,userInfo:a}){const i=fm({ticketForm:e,setTicketForm:n,userInfo:a}),o=pm({ticketForm:e,setTicketForm:n,userInfo:a}),c=mm({ticketForm:e,setTicketForm:n,userInfo:a});return{help_ticket:{message:"What is your help ticket related to?",options:["Logging into ACCESS website","Logging into a resource","Another question"],function:u=>{n(d=>({...d,ticketType:u.userInput}))},path:u=>u.userInput==="Logging into ACCESS website"?"access_help":u.userInput==="Logging into a resource"?"resource_help":u.userInput==="Another question"?"general_help_summary_subject":"help_ticket"},...i,...o,...c}}function _o(e){const n=Ie();return{...n,email:e.email||n.email,name:e.name||n.name,accessId:e.accessId||n.accessId}}function ym(e){return e?e.success?e.ticketUrl&&e.ticketKey?`Your security incident report has been submitted successfully.
|
|
197
197
|
|
|
198
198
|
Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
|
|
199
199
|
|
|
@@ -219,5 +219,5 @@ Email: ${p.email||"Not provided"}
|
|
|
219
219
|
ACCESS ID: ${m}
|
|
220
220
|
Description: ${p.description||"Not provided"}${h}
|
|
221
221
|
|
|
222
|
-
Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async d=>{if(d.userInput==="Submit Security Report"){const A=Ie(),p=_o(a),h={...A,name:p.name||A.name,email:p.email||A.email,accessId:i||p.accessId||A.accessId},m={summary:h.summary||"",priority:h.priority||"",description:h.description||"",name:h.name||"",email:h.email||"",accessId:h.accessId||""};await c(m,A.uploadedFiles||[])}},path:d=>d.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:()=>ym(o),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}
|
|
222
|
+
Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async d=>{if(d.userInput==="Submit Security Report"){const A=Ie(),p=_o(a),h={...A,name:p.name||A.name,email:p.email||A.email,accessId:i||p.accessId||A.accessId},m={summary:h.summary||"",priority:h.priority||"",description:h.description||"",name:h.name||"",email:h.email||"",accessId:h.accessId||""};await c(m,A.uploadedFiles||[])}},path:d=>d.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:()=>ym(o),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const Ot=[];for(let e=0;e<256;++e)Ot.push((e+256).toString(16).slice(1));function wm(e,n=0){return(Ot[e[n+0]]+Ot[e[n+1]]+Ot[e[n+2]]+Ot[e[n+3]]+"-"+Ot[e[n+4]]+Ot[e[n+5]]+"-"+Ot[e[n+6]]+Ot[e[n+7]]+"-"+Ot[e[n+8]]+Ot[e[n+9]]+"-"+Ot[e[n+10]]+Ot[e[n+11]]+Ot[e[n+12]]+Ot[e[n+13]]+Ot[e[n+14]]+Ot[e[n+15]]).toLowerCase()}let Hc;const xm=new Uint8Array(16);function Sm(){if(!Hc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Hc=crypto.getRandomValues.bind(crypto)}return Hc(xm)}const ef={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nc(e,n,a){var o;if(ef.randomUUID&&!e)return ef.randomUUID();e=e||{};const i=e.random??((o=e.rng)==null?void 0:o.call(e))??Sm();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,wm(i)}function Tm(e){return e}function Em({sessionId:e,apiKey:n}){let a=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${eo.METRICS_QUESTIONS_URL}">examples here</a>.`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async i=>{const{userInput:o}=i;if(o==="👍 Helpful"||o==="👎 Not helpful"){if(n&&e&&a){const u={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":n,"X-Session-ID":e,"X-Query-ID":a,"X-Feedback":o==="👍 Helpful"?"1":"0"};try{await fetch(eo.METRICS_RATING_ENDPOINT,{method:"POST",headers:u})}catch(d){console.error("Error sending metrics feedback:",d)}}return"Thanks for the feedback! Ask another question about usage and performance metrics (XDMoD) or start a new chat."}else try{const c=Nc();a=c;const u={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":n,"X-Session-ID":e,"X-Query-ID":c},p=(await(await fetch(eo.METRICS_API_ENDPOINT,{method:"POST",headers:u,body:JSON.stringify({query:o})})).json()).response,h=p;return await i.injectMessage(h),setTimeout(async()=>{await i.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")},100),null}catch(c){return console.error("Error in metrics flow:",c),"I'm sorry, there was an error processing your question. Please try again."}},renderMarkdown:["BOT"],options:i=>i.userInput==="👍 Helpful"||i.userInput==="👎 Not helpful"?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"metrics_loop"}}}function km(){if(typeof window>"u")return Nc();let e=localStorage.getItem(qd.SESSION_ID);return e||(e=Nc(),localStorage.setItem(qd.SESSION_ID,e)),e}const Uc=R.forwardRef((e,n)=>{const{apiKey:a=eo.DEFAULT_API_KEY,isLoggedIn:i=!1,loginUrl:o=Dr.LOGIN_URL,userEmail:c,userName:u,accessId:d,ringEffect:A,defaultOpen:p,onClose:h,open:m,onOpenChange:y,embedded:C=!1,welcome:D}=e,Q=R.useRef(null),[E,I]=R.useState({}),_=R.useMemo(()=>({email:c,name:u,accessId:d}),[c,u,d]);R.useEffect(()=>{um({ticketForm:E,setTicketForm:I})},[E]),R.useImperativeHandle(n,()=>({addMessage:z=>{var W,te;(te=(W=Q.current)==null?void 0:W.addMessage)==null||te.call(W,z)}}));const B=D||(i?Dr.WELCOME_MESSAGE:Dr.WELCOME_MESSAGE_LOGGED_OUT),U=R.useMemo(()=>km(),[]),j=R.useMemo(()=>{const z=cm({welcome:B,setTicketForm:I,isLoggedIn:i}),W=vm({ticketForm:E,setTicketForm:I,userInfo:_}),te=bm({ticketForm:E,setTicketForm:I,userInfo:_}),J=Em({sessionId:U,apiKey:a}),Y={...z,...W,...te,...J};return sm(Y,{disableOnOptions:!0})},[B,E,_,U,a,i]);return N.jsx(Fc,{ref:Q,isLoggedIn:i,apiKey:a,qaEndpoint:eo.QA_ENDPOINT,ratingEndpoint:eo.RATING_ENDPOINT,botName:Dr.BOT_NAME,logo:Dr.LOGO,primaryColor:Dr.PRIMARY_COLOR,secondaryColor:Dr.SECONDARY_COLOR,welcomeMessage:B,tooltipText:Dr.TOOLTIP,loginUrl:o,open:m,onOpenChange:y,embedded:C,footerText:"Need more help?",footerLink:"https://support.access-ci.org",customFlow:j})});Uc.displayName="AccessQABot",In.API_CONFIG=eo,In.AccessQABot=Uc,In.BOT_CONFIG=Dr,In.QABot=Uc,Object.defineProperty(In,Symbol.toStringTag,{value:"Module"})});
|
|
223
223
|
//# sourceMappingURL=access-qa-bot.umd.cjs.map
|