@snf/qa-bot-core 0.2.6 → 0.2.8

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.
@@ -26,12 +26,12 @@
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */function vf(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var bf=null,yf=0;function wf(e,t){if(0!==t.length)if(512<t.length)0<yf&&(e.enqueue(new Uint8Array(bf.buffer,0,yf)),bf=new Uint8Array(512),yf=0),e.enqueue(t);else{var n=bf.length-yf;n<t.length&&(0===n?e.enqueue(bf):(bf.set(t.subarray(0,n),yf),e.enqueue(bf),t=t.subarray(n)),bf=new Uint8Array(512),yf=0),bf.set(t,yf),yf+=t.length}}function xf(e,t){return wf(e,t),!0}function kf(e){bf&&0<yf&&(e.enqueue(new Uint8Array(bf.buffer,0,yf)),bf=null,yf=0)}var Ef=new TextEncoder;function Sf(e){return Ef.encode(e)}function Cf(e){return Ef.encode(e)}function Pf(e,t){"function"==typeof e.error?e.error(t):e.close()}var Bf=Object.prototype.hasOwnProperty,Df=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Tf={},If={};function Qf(e){return!!Bf.call(If,e)||!Bf.call(Tf,e)&&(Df.test(e)?If[e]=!0:(Tf[e]=!0,!1))}function Mf(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Lf={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lf[e]=new Mf(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lf[t]=new Mf(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lf[e]=new Mf(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lf[e]=new Mf(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lf[e]=new Mf(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Lf[e]=new Mf(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Lf[e]=new Mf(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Lf[e]=new Mf(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Lf[e]=new Mf(e,5,!1,e.toLowerCase(),null,!1,!1)});var Of=/[\-:]([a-z])/g;function Nf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Of,Nf);Lf[t]=new Mf(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Of,Nf);Lf[t]=new Mf(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Of,Nf);Lf[t]=new Mf(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Lf[e]=new Mf(e,1,!1,e.toLowerCase(),null,!1,!1)}),Lf.xlinkHref=new Mf("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Lf[e]=new Mf(e,1,!1,e.toLowerCase(),null,!0,!0)});var Rf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ff=["Webkit","ms","Moz","O"];Object.keys(Rf).forEach(function(e){Ff.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rf[t]=Rf[e]})});var zf=/["'&<>]/;function jf(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=zf.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var Hf=/([A-Z])/g,_f=/^ms-/,Uf=Array.isArray,qf=Cf("<script>"),Vf=Cf("<\/script>"),Wf=Cf('<script src="'),Yf=Cf('<script type="module" src="'),Gf=Cf('" async=""><\/script>'),Xf=/(<\/|<)(s)(cript)/gi;function Kf(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function Jf(e,t){return{insertionMode:e,selectedValue:t}}var Zf=Cf("\x3c!-- --\x3e");function $f(e,t,n,r){return""===t?r:(r&&e.push(Zf),e.push(Sf(jf(t))),!0)}var ep=new Map,tp=Cf(' style="'),np=Cf(":"),rp=Cf(";");function op(e,t,n){if("object"!=typeof n)throw Error(vf(62));for(var r in t=!0,n)if(Bf.call(n,r)){var o=n[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var a=Sf(jf(r));o=Sf(jf((""+o).trim()))}else{a=r;var i=ep.get(a);void 0!==i||(i=Cf(jf(a.replace(Hf,"-$1").toLowerCase().replace(_f,"-ms-"))),ep.set(a,i)),a=i,o="number"==typeof o?0===o||Bf.call(Rf,r)?Sf(""+o):Sf(o+"px"):Sf(jf((""+o).trim()))}t?(t=!1,e.push(tp,a,np,o)):e.push(rp,a,np,o)}}t||e.push(lp)}var ap=Cf(" "),ip=Cf('="'),lp=Cf('"'),sp=Cf('=""');function cp(e,t,n,r){switch(n){case"style":return void op(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=Lf.hasOwnProperty(n)?Lf[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=Sf(t.attributeName),t.type){case 3:r&&e.push(ap,n,sp);break;case 4:!0===r?e.push(ap,n,sp):!1!==r&&e.push(ap,n,ip,Sf(jf(r)),lp);break;case 5:isNaN(r)||e.push(ap,n,ip,Sf(jf(r)),lp);break;case 6:!isNaN(r)&&1<=r&&e.push(ap,n,ip,Sf(jf(r)),lp);break;default:t.sanitizeURL&&(r=""+r),e.push(ap,n,ip,Sf(jf(r)),lp)}}else if(Qf(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(ap,Sf(n),ip,Sf(jf(r)),lp)}}var up=Cf(">"),Ap=Cf("/>");function dp(e,t,n){if(null!=t){if(null!=n)throw Error(vf(60));if("object"!=typeof t||!("__html"in t))throw Error(vf(61));null!=(t=t.__html)&&e.push(Sf(""+t))}}var fp=Cf(' selected=""');function pp(e,t,n,r){e.push(vp(n));var o,a=n=null;for(o in t)if(Bf.call(t,o)){var i=t[o];if(null!=i)switch(o){case"children":n=i;break;case"dangerouslySetInnerHTML":a=i;break;default:cp(e,r,o,i)}}return e.push(up),dp(e,a,n),"string"==typeof n?(e.push(Sf(jf(n))),null):n}var hp=Cf("\n"),gp=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,mp=new Map;function vp(e){var t=mp.get(e);if(void 0===t){if(!gp.test(e))throw Error(vf(65,e));t=Cf("<"+e),mp.set(e,t)}return t}var bp=Cf("<!DOCTYPE html>");function yp(e,t,n,r,o){switch(t){case"select":e.push(vp("select"));var a=null,i=null;for(u in n)if(Bf.call(n,u)){var l=n[u];if(null!=l)switch(u){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;case"defaultValue":case"value":break;default:cp(e,r,u,l)}}return e.push(up),dp(e,i,a),a;case"option":i=o.selectedValue,e.push(vp("option"));var s=l=null,c=null,u=null;for(a in n)if(Bf.call(n,a)){var A=n[a];if(null!=A)switch(a){case"children":l=A;break;case"selected":c=A;break;case"dangerouslySetInnerHTML":u=A;break;case"value":s=A;default:cp(e,r,a,A)}}if(null!=i)if(n=null!==s?""+s:function(e){var t="";return mf.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(l),Uf(i)){for(r=0;r<i.length;r++)if(""+i[r]===n){e.push(fp);break}}else""+i===n&&e.push(fp);else c&&e.push(fp);return e.push(up),dp(e,u,l),l;case"textarea":for(l in e.push(vp("textarea")),u=i=a=null,n)if(Bf.call(n,l)&&null!=(s=n[l]))switch(l){case"children":u=s;break;case"value":a=s;break;case"defaultValue":i=s;break;case"dangerouslySetInnerHTML":throw Error(vf(91));default:cp(e,r,l,s)}if(null===a&&null!==i&&(a=i),e.push(up),null!=u){if(null!=a)throw Error(vf(92));if(Uf(u)&&1<u.length)throw Error(vf(93));a=""+u}return"string"==typeof a&&"\n"===a[0]&&e.push(hp),null!==a&&e.push(Sf(jf(""+a))),null;case"input":for(i in e.push(vp("input")),s=u=l=a=null,n)if(Bf.call(n,i)&&null!=(c=n[i]))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(vf(399,"input"));case"defaultChecked":s=c;break;case"defaultValue":l=c;break;case"checked":u=c;break;case"value":a=c;break;default:cp(e,r,i,c)}return null!==u?cp(e,r,"checked",u):null!==s&&cp(e,r,"checked",s),null!==a?cp(e,r,"value",a):null!==l&&cp(e,r,"value",l),e.push(Ap),null;case"menuitem":for(var d in e.push(vp("menuitem")),n)if(Bf.call(n,d)&&null!=(a=n[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(vf(400));default:cp(e,r,d,a)}return e.push(up),null;case"title":for(A in e.push(vp("title")),a=null,n)if(Bf.call(n,A)&&null!=(i=n[A]))switch(A){case"children":a=i;break;case"dangerouslySetInnerHTML":throw Error(vf(434));default:cp(e,r,A,i)}return e.push(up),a;case"listing":case"pre":for(s in e.push(vp(t)),i=a=null,n)if(Bf.call(n,s)&&null!=(l=n[s]))switch(s){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;default:cp(e,r,s,l)}if(e.push(up),null!=i){if(null!=a)throw Error(vf(60));if("object"!=typeof i||!("__html"in i))throw Error(vf(61));null!=(n=i.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(hp,Sf(n)):e.push(Sf(""+n)))}return"string"==typeof a&&"\n"===a[0]&&e.push(hp),a;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":for(var f in e.push(vp(t)),n)if(Bf.call(n,f)&&null!=(a=n[f]))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(vf(399,t));default:cp(e,r,f,a)}return e.push(Ap),null;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 pp(e,n,t,r);case"html":return 0===o.insertionMode&&e.push(bp),pp(e,n,t,r);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return pp(e,n,t,r);for(c in e.push(vp(t)),i=a=null,n)if(Bf.call(n,c)&&null!=(l=n[c]))switch(c){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;case"style":op(e,r,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Qf(c)&&"function"!=typeof l&&"symbol"!=typeof l&&e.push(ap,Sf(c),ip,Sf(jf(l)),lp)}return e.push(up),dp(e,i,a),a}}var wp=Cf("</"),xp=Cf(">"),kp=Cf('<template id="'),Ep=Cf('"></template>'),Sp=Cf("\x3c!--$--\x3e"),Cp=Cf('\x3c!--$?--\x3e<template id="'),Pp=Cf('"></template>'),Bp=Cf("\x3c!--$!--\x3e"),Dp=Cf("\x3c!--/$--\x3e"),Tp=Cf("<template"),Ip=Cf('"'),Qp=Cf(' data-dgst="');Cf(' data-msg="'),Cf(' data-stck="');var Mp=Cf("></template>");function Lp(e,t,n){if(wf(e,Cp),null===n)throw Error(vf(395));return wf(e,n),xf(e,Pp)}var Op=Cf('<div hidden id="'),Np=Cf('">'),Rp=Cf("</div>"),Fp=Cf('<svg aria-hidden="true" style="display:none" id="'),zp=Cf('">'),jp=Cf("</svg>"),Hp=Cf('<math aria-hidden="true" style="display:none" id="'),_p=Cf('">'),Up=Cf("</math>"),qp=Cf('<table hidden id="'),Vp=Cf('">'),Wp=Cf("</table>"),Yp=Cf('<table hidden><tbody id="'),Gp=Cf('">'),Xp=Cf("</tbody></table>"),Kp=Cf('<table hidden><tr id="'),Jp=Cf('">'),Zp=Cf("</tr></table>"),$p=Cf('<table hidden><colgroup id="'),eh=Cf('">'),th=Cf("</colgroup></table>");var nh=Cf('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)};$RS("'),rh=Cf('$RS("'),oh=Cf('","'),ah=Cf('")<\/script>'),ih=Cf('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()}};$RC("'),lh=Cf('$RC("'),sh=Cf('","'),ch=Cf('")<\/script>'),uh=Cf('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())};$RX("'),Ah=Cf('$RX("'),dh=Cf('"'),fh=Cf(")<\/script>"),ph=Cf(","),hh=/[<\u2028\u2029]/g;function gh(e){return JSON.stringify(e).replace(hh,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw 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 mh=Object.assign,vh=Symbol.for("react.element"),bh=Symbol.for("react.portal"),yh=Symbol.for("react.fragment"),wh=Symbol.for("react.strict_mode"),xh=Symbol.for("react.profiler"),kh=Symbol.for("react.provider"),Eh=Symbol.for("react.context"),Sh=Symbol.for("react.forward_ref"),Ch=Symbol.for("react.suspense"),Ph=Symbol.for("react.suspense_list"),Bh=Symbol.for("react.memo"),Dh=Symbol.for("react.lazy"),Th=Symbol.for("react.scope"),Ih=Symbol.for("react.debug_trace_mode"),Qh=Symbol.for("react.legacy_hidden"),Mh=Symbol.for("react.default_value"),Lh=Symbol.iterator;function Oh(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case yh:return"Fragment";case bh:return"Portal";case xh:return"Profiler";case wh:return"StrictMode";case Ch:return"Suspense";case Ph:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Eh:return(e.displayName||"Context")+".Consumer";case kh:return(e._context.displayName||"Context")+".Provider";case Sh:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Bh:return null!==(t=e.displayName||null)?t:Oh(e.type)||"Memo";case Dh:t=e._payload,e=e._init;try{return Oh(e(t))}catch(e){}}return null}var Nh={};function Rh(e,t){if(!(e=e.contextTypes))return Nh;var n,r={};for(n in e)r[n]=t[n];return r}var Fh=null;function zh(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(vf(401))}else{if(null===n)throw Error(vf(401));zh(e,n)}t.context._currentValue=t.value}}function jh(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&jh(e)}function Hh(e){var t=e.parent;null!==t&&Hh(t),e.context._currentValue=e.value}function _h(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(vf(402));e.depth===t.depth?zh(e,t):_h(e,t)}function Uh(e,t){var n=t.parent;if(null===n)throw Error(vf(402));e.depth===n.depth?zh(e,n):Uh(e,n),t.context._currentValue=t.value}function qh(e){var t=Fh;t!==e&&(null===t?Hh(e):null===e?jh(t):t.depth===e.depth?zh(t,e):t.depth>e.depth?_h(t,e):Uh(t,e),Fh=e)}var Vh={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Wh(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=Vh,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:mh({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Vh.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var l=t[i];null!=(l="function"==typeof l?l.call(e,a,n,r):l)&&(o?(o=!1,a=mh({},a,l)):mh(a,l))}e.state=a}else a.queue=null}var Yh={id:1,overflow:""};function Gh(e,t,n){var r=e.id;e=e.overflow;var o=32-Xh(r)-1;r&=~(1<<o),n+=1;var a=32-Xh(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-Xh(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var Xh=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Kh(e)/Jh|0)|0},Kh=Math.log,Jh=Math.LN2;var Zh="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},$h=null,eg=null,tg=null,ng=null,rg=!1,og=!1,ag=0,ig=null,lg=0;function sg(){if(null===$h)throw Error(vf(321));return $h}function cg(){if(0<lg)throw Error(vf(312));return{memoizedState:null,queue:null,next:null}}function ug(){return null===ng?null===tg?(rg=!1,tg=ng=cg()):(rg=!0,ng=tg):null===ng.next?(rg=!1,ng=ng.next=cg()):(rg=!0,ng=ng.next),ng}function Ag(){eg=$h=null,og=!1,tg=null,lg=0,ng=ig=null}function dg(e,t){return"function"==typeof t?t(e):t}function fg(e,t,n){if($h=sg(),ng=ug(),rg){var r=ng.queue;if(t=r.dispatch,null!==ig&&void 0!==(n=ig.get(r))){ig.delete(r),r=ng.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return ng.memoizedState=r,[r,t]}return[ng.memoizedState,t]}return e=e===dg?"function"==typeof t?t():t:void 0!==n?n(t):t,ng.memoizedState=e,e=(e=ng.queue={last:null,dispatch:null}).dispatch=hg.bind(null,$h,e),[ng.memoizedState,e]}function pg(e,t){if($h=sg(),t=void 0===t?null:t,null!==(ng=ug())){var n=ng.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Zh(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),ng.memoizedState=[e,t],e}function hg(e,t,n){if(25<=lg)throw Error(vf(301));if(e===$h)if(og=!0,e={action:n,next:null},null===ig&&(ig=new Map),void 0===(n=ig.get(t)))ig.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function gg(){throw Error(vf(394))}function mg(){}var vg,bg,yg={readContext:function(e){return e._currentValue},useContext:function(e){return sg(),e._currentValue},useMemo:pg,useReducer:fg,useRef:function(e){$h=sg();var t=(ng=ug()).memoizedState;return null===t?(e={current:e},ng.memoizedState=e):t},useState:function(e){return fg(dg,e)},useInsertionEffect:mg,useLayoutEffect:function(){},useCallback:function(e,t){return pg(function(){return e},t)},useImperativeHandle:mg,useEffect:mg,useDebugValue:mg,useDeferredValue:function(e){return sg(),e},useTransition:function(){return sg(),[!1,gg]},useId:function(){var e=eg.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Xh(e)-1)).toString(32)+t;var n=wg;if(null===n)throw Error(vf(404));return t=ag++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return sg(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(vf(407));return n()}},wg=null,xg=mf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function kg(e){return console.error(e),null}function Eg(){}function Sg(e,t,n,r,o,a,i,l){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&jg(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:l};return o.add(s),s}function Cg(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function Pg(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw 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 e+'" instead');return e}function Bg(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,Pf(e.destination,t)):(e.status=1,e.fatalError=t)}function Dg(e,t,n,r,o){for($h={},eg=t,ag=0,e=n(r,o);og;)og=!1,ag=0,lg+=1,ng=null,e=n(r,o);return Ag(),e}function Tg(e,t,n,r){var o=n.render(),a=r.childContextTypes;if(null!=a){var i=t.legacyContext;if("function"!=typeof n.getChildContext)r=i;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(vf(108,Oh(r)||"Unknown",l));r=mh({},i,n)}t.legacyContext=r,Mg(e,t,o),t.legacyContext=i}else Mg(e,t,o)}function Ig(e,t){if(e&&e.defaultProps){for(var n in t=mh({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Qg(e,t,n,r,o){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){o=Rh(n,t.legacyContext);var a=n.contextType;Wh(a=new n(r,"object"==typeof a&&null!==a?a._currentValue:o),n,r,o),Tg(e,t,a,n)}else{o=Dg(e,t,n,r,a=Rh(n,t.legacyContext));var i=0!==ag;if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof)Wh(o,n,r,a),Tg(e,t,o,n);else if(i){r=t.treeContext,t.treeContext=Gh(r,1,0);try{Mg(e,t,o)}finally{t.treeContext=r}}else Mg(e,t,o)}else{if("string"!=typeof n){switch(n){case Qh:case Ih:case wh:case xh:case yh:case Ph:return void Mg(e,t,r.children);case Th:throw Error(vf(343));case Ch:e:{n=t.blockedBoundary,o=t.blockedSegment,a=r.fallback,r=r.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:i=new Set,errorDigest:null},s=Cg(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(s),o.lastPushedText=!1;var c=Cg(0,0,null,o.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(Og(e,t,r),c.lastPushedText&&c.textEmbedded&&c.chunks.push(Zf),c.status=1,Fg(l,c),0===l.pendingTasks)break e}catch(t){c.status=4,l.forceClientRender=!0,l.errorDigest=Pg(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=Sg(e,a,n,s,i,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case Sh:if(r=Dg(e,t,n.render,r,o),0!==ag){n=t.treeContext,t.treeContext=Gh(n,1,0);try{Mg(e,t,r)}finally{t.treeContext=n}}else Mg(e,t,r);return;case Bh:return void Qg(e,t,n=n.type,r=Ig(n,r),o);case kh:if(o=r.children,n=n._context,r=r.value,a=n._currentValue,n._currentValue=r,Fh=r={parent:i=Fh,depth:null===i?0:i.depth+1,context:n,parentValue:a,value:r},t.context=r,Mg(e,t,o),null===(e=Fh))throw Error(vf(403));return r=e.parentValue,e.context._currentValue=r===Mh?e.context._defaultValue:r,e=Fh=e.parent,void(t.context=e);case Eh:return void Mg(e,t,r=(r=r.children)(n._currentValue));case Dh:return void Qg(e,t,n=(o=n._init)(n._payload),r=Ig(n,r),void 0)}throw Error(vf(130,null==n?n:typeof n,""))}switch(a=yp((o=t.blockedSegment).chunks,n,r,e.responseState,o.formatContext),o.lastPushedText=!1,i=o.formatContext,o.formatContext=function(e,t,n){switch(t){case"select":return Jf(1,null!=n.value?n.value:n.defaultValue);case"svg":return Jf(2,null);case"math":return Jf(3,null);case"foreignObject":return Jf(1,null);case"table":return Jf(4,null);case"thead":case"tbody":case"tfoot":return Jf(5,null);case"colgroup":return Jf(7,null);case"tr":return Jf(6,null)}return 4<=e.insertionMode||0===e.insertionMode?Jf(1,null):e}(i,n,r),Og(e,t,a),o.formatContext=i,n){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:o.chunks.push(wp,Sf(n),xp)}o.lastPushedText=!1}}function Mg(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case vh:return void Qg(e,t,n.type,n.props,n.ref);case bh:throw Error(vf(257));case Dh:var r=n._init;return void Mg(e,t,n=r(n._payload))}if(Uf(n))return void Lg(e,t,n);if(null===n||"object"!=typeof n?r=null:r="function"==typeof(r=Lh&&n[Lh]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);Lg(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(vf(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=$f(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=$f(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Lg(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=Gh(a,r,o);try{Og(e,t,n[o])}finally{t.treeContext=a}}}function Og(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return Mg(e,t,n)}catch(s){if(Ag(),"object"!=typeof s||null===s||"function"!=typeof s.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,qh(a),s;n=s;var i=t.blockedSegment,l=Cg(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(l),i.lastPushedText=!1,e=Sg(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,qh(a)}}function Ng(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,zg(this,t,e)}function Rg(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(vf(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Rg(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Fg(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Fg(e,n)}else e.completedSegments.push(t)}function zg(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(vf(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Eg,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Fg(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ng,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Fg(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function jg(e){if(2!==e.status){var t=Fh,n=xg.current;xg.current=yg;var r=wg;wg=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],l=e,s=i.blockedSegment;if(0===s.status){qh(i.context);try{Mg(l,i,i.node),s.lastPushedText&&s.textEmbedded&&s.chunks.push(Zf),i.abortSet.delete(i),s.status=1,zg(l,i.blockedBoundary,s)}catch(e){if(Ag(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=i.ping;e.then(c,c)}else{i.abortSet.delete(i),s.status=4;var u=i.blockedBoundary,A=e,d=Pg(l,A);if(null===u?Bg(l,A):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=d,u.parentFlushed&&l.clientRenderedBoundaries.push(u))),l.allPendingTasks--,0===l.allPendingTasks)(0,l.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&Wg(e,e.destination)}catch(t){Pg(e,t),Bg(e,t)}finally{wg=r,xg.current=n,n===yg&&qh(t)}}}function Hg(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,wf(t,kp),wf(t,e.placeholderPrefix),wf(t,e=Sf(r.toString(16))),xf(t,Ep);case 1:n.status=2;var o=!0;r=n.chunks;var a=0;n=n.children;for(var i=0;i<n.length;i++){for(o=n[i];a<o.index;a++)wf(t,r[a]);o=_g(e,t,o)}for(;a<r.length-1;a++)wf(t,r[a]);return a<r.length&&(o=xf(t,r[a])),o;default:throw Error(vf(390))}}function _g(e,t,n){var r=n.boundary;if(null===r)return Hg(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,xf(t,Bp),wf(t,Tp),r&&(wf(t,Qp),wf(t,Sf(jf(r))),wf(t,Ip)),xf(t,Mp),Hg(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,a=o.nextSuspenseID++;o=Cf(o.boundaryPrefix+a.toString(16)),r=r.id=o,Lp(t,e.responseState,r),Hg(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),Lp(t,e.responseState,r.id),Hg(e,t,n);else{if(xf(t,Sp),1!==(n=r.completedSegments).length)throw Error(vf(391));_g(e,t,n[0])}return xf(t,Dp)}function Ug(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return wf(e,Op),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,Np);case 2:return wf(e,Fp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,zp);case 3:return wf(e,Hp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,_p);case 4:return wf(e,qp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,Vp);case 5:return wf(e,Yp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,Gp);case 6:return wf(e,Kp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,Jp);case 7:return wf(e,$p),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,eh);default:throw Error(vf(397))}}(t,e.responseState,n.formatContext,n.id),_g(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return xf(e,Rp);case 2:return xf(e,jp);case 3:return xf(e,Up);case 4:return xf(e,Wp);case 5:return xf(e,Xp);case 6:return xf(e,Zp);case 7:return xf(e,th);default:throw Error(vf(397))}}(t,n.formatContext)}function qg(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)Vg(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,wf(t,e.startInlineScript),e.sentCompleteBoundaryFunction?wf(t,lh):(e.sentCompleteBoundaryFunction=!0,wf(t,ih)),null===r)throw Error(vf(395));return n=Sf(n.toString(16)),wf(t,r),wf(t,sh),wf(t,e.segmentPrefix),wf(t,n),xf(t,ch)}function Vg(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(vf(392));return Ug(e,t,r)}return Ug(e,t,r),wf(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?wf(t,rh):(e.sentCompleteSegmentFunction=!0,wf(t,nh)),wf(t,e.segmentPrefix),wf(t,o=Sf(o.toString(16))),wf(t,oh),wf(t,e.placeholderPrefix),wf(t,o),xf(t,ah)}function Wg(e,t){bf=new Uint8Array(512),yf=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){_g(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)wf(t,r[n]);n<r.length&&xf(t,r[n])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var i=a[o];r=t;var l=e.responseState,s=i.id,c=i.errorDigest,u=i.errorMessage,A=i.errorComponentStack;if(wf(r,l.startInlineScript),l.sentClientRenderFunction?wf(r,Ah):(l.sentClientRenderFunction=!0,wf(r,uh)),null===s)throw Error(vf(395));wf(r,s),wf(r,dh),(c||u||A)&&(wf(r,ph),wf(r,Sf(gh(c||"")))),(u||A)&&(wf(r,ph),wf(r,Sf(gh(u||"")))),A&&(wf(r,ph),wf(r,Sf(gh(A)))),xf(r,fh)}a.splice(0,o);var d=e.completedBoundaries;for(o=0;o<d.length;o++)qg(e,t,d[o]);d.splice(0,o),kf(t),bf=new Uint8Array(512),yf=0;var f=e.partialBoundaries;for(o=0;o<f.length;o++){var p=f[o];e:{a=e,i=t;var h=p.completedSegments;for(l=0;l<h.length;l++)if(!Vg(a,i,p,h[l])){l++,h.splice(0,l);var g=!1;break e}h.splice(0,l),g=!0}if(!g)return e.destination=null,o++,void f.splice(0,o)}f.splice(0,o);var m=e.completedBoundaries;for(o=0;o<m.length;o++)qg(e,t,m[o]);m.splice(0,o)}finally{kf(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Yg(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Rg(n,e,t)}),n.clear(),null!==e.destination&&Wg(e,e.destination)}catch(t){Pg(e,t),Bg(e,t)}}gf.renderToReadableStream=function(e,t){return new Promise(function(n,r){var o,a,i=new Promise(function(e,t){a=e,o=t}),l=function(e,t,n,r,o,a,i,l,s){var c=[],u=new Set;return(n=Cg(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?kg:o,onAllReady:void 0===a?Eg:a,onShellReady:void 0===i?Eg:i,onShellError:void 0===l?Eg:l,onFatalError:void 0===s?Eg:s},0,null,n,!1,!1)).parentFlushed=!0,e=Sg(t,e,null,n,u,Nh,null,Yh),c.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?qf:Cf('<script nonce="'+jf(t)+'">');var a=[];if(void 0!==n&&a.push(t,Sf((""+n).replace(Xf,Kf)),Vf),void 0!==r)for(n=0;n<r.length;n++)a.push(Wf,Sf(jf(r[n])),Gf);if(void 0!==o)for(r=0;r<o.length;r++)a.push(Yf,Sf(jf(o[r])),Gf);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:Cf(e+"P:"),segmentPrefix:Cf(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(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),function(e){return Jf("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===l.status)l.status=2,Pf(e,l.fatalError);else if(2!==l.status&&null===l.destination){l.destination=e;try{Wg(l,e)}catch(e){Pg(l,e),Bg(l,e)}}},cancel:function(){Yg(l)}},{highWaterMark:0});e.allReady=i,n(e)},function(e){i.catch(function(){}),r(e)},o);if(t&&t.signal){var s=t.signal,c=function(){Yg(l,s.reason),s.removeEventListener("abort",c)};s.addEventListener("abort",c)}jg(l)})},gf.version="18.3.1",vg=aA,bg=gf,oA.version=vg.version,oA.renderToString=vg.renderToString,oA.renderToStaticMarkup=vg.renderToStaticMarkup,oA.renderToNodeStream=vg.renderToNodeStream,oA.renderToStaticNodeStream=vg.renderToStaticNodeStream,oA.renderToReadableStream=bg.renderToReadableStream;const Gg={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"},Xg="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",Kg=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 0 637 637",ref:t,...e},R.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"}),R.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"}))),Jg=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),Zg=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),$g=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),em=R.forwardRef((e,t)=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},R.createElement("g",{strokeLinecap:"round",strokeWidth:10},R.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),tm=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),nm=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),rm=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),om=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),am=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),im=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),lm={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:Kg},header:{title:rA.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:Xg,buttons:[Gg.NOTIFICATION_BUTTON,Gg.AUDIO_BUTTON,Gg.CLOSE_CHAT_BUTTON],closeChatIcon:em},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:Zg,iconDisabled:$g,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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////EAAHADEAAQArAAIAHQAEAAcAAADr/wEAzv8CANj//f/k/wEA+f/+/xQABwAqAB4ALAD+/x4A8P8SAOb/8//f/9j//f/N/wEA3v8LAO7/AgAMAAQALAAEAC0AAQAdAAQADwABAPP/BADV/wMA0/8AAOH/AQD1/wAAEAADACQAGwAwAAQAHwD0/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:am,iconDisabled:im},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:tm,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[Gg.VOICE_MESSAGE_BUTTON,Gg.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:Xg,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:nm,iconDisabled:rm},footer:{text:rA.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[rA.jsx("span",{children:"Powered By "},0),rA.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:rA.jsx(Kg,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),rA.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[Gg.FILE_ATTACHMENT_BUTTON,Gg.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Jg,iconDisabled:Jg,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:om,iconDisabled:om,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}},sm=R.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),cm=()=>R.useContext(sm),um=({children:e,settings:t=lm,setSyncedSettings:n,syncedSettingsRef:r})=>rA.jsx(sm.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),Am={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:{}},dm=R.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),fm=()=>R.useContext(dm),pm=({children:e,styles:t=Am,setSyncedStyles:n,syncedStylesRef:r})=>rA.jsx(dm.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),hm=({buttons:e})=>{var t,n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),u={backgroundImage:`linear-gradient(to right, ${null==(t=s.general)?void 0:t.secondaryColor},\n\t\t\t${null==(n=s.general)?void 0:n.primaryColor})`,...c.headerStyle};return rA.jsxs("div",{style:u,className:"rcb-chat-header-container",children:[rA.jsxs("div",{className:"rcb-chat-header",children:[(null==(r=s.header)?void 0:r.showAvatar)&&rA.jsx("div",{style:{backgroundImage:`url("${null==(o=s.header)?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),R.isValidElement(null==(a=s.header)?void 0:a.title)?null==(i=s.header)?void 0:i.title:rA.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:null==(l=s.header)?void 0:l.title})]}),rA.jsx("div",{className:"rcb-chat-header",children:null==e?void 0:e.map((e,t)=>rA.jsx(R.Fragment,{children:e},t))})]})},gm=R.createContext({}),mm=()=>R.useContext(gm),vm=({children:e,botIdRef:t,flowRef:n})=>{const r=R.useRef(null),o=R.useRef(""),a=R.useRef(null),i=R.useRef(new Map),l=R.useRef(null),s=R.useRef(""),c=R.useRef(!1),u=R.useRef(null),A=R.useRef(null),d=R.useRef(null);return rA.jsx(gm.Provider,{value:{botIdRef:t,flowRef:n,inputRef:r,timeoutIdRef:a,streamMessageMap:i,chatBodyRef:l,paramsInputRef:s,keepVoiceOnRef:c,audioContextRef:u,audioBufferRef:A,gainNodeRef:d,prevInputRef:o},children:e})},bm=e=>{const[t,n]=R.useState(e),r=R.useRef(e);return[t,e=>{const t="function"==typeof e?e(r.current):e;r.current=t,n(t)},r]},ym=R.createContext({}),wm=()=>R.useContext(ym),xm=({children:e,settings:t})=>{var n,r,o,a,i,l;const[s,c,u]=bm(!1),[A,d,f]=bm((null==(n=null==t?void 0:t.chatWindow)?void 0:n.defaultOpen)??!1),[p,h,g]=bm((null==(r=null==t?void 0:t.audio)?void 0:r.defaultToggledOn)??!1),[m,v,b]=bm((null==(o=null==t?void 0:t.voice)?void 0:o.defaultToggledOn)??!1),[y,w,x]=bm((null==(a=null==t?void 0:t.notification)?void 0:a.defaultToggledOn)??!0),[k,E]=R.useState(!1),[S,C]=R.useState(!1),[P,B,D]=bm(!1),[T,I,Q]=bm(!0),[M,L,O]=bm(!1),[N,F]=R.useState(!1),[z,j]=R.useState(!1),[H,_]=R.useState(0),[U,q]=R.useState(0),[V,W]=R.useState(!1),[Y,G]=R.useState((null==(i=window.visualViewport)?void 0:i.height)??window.innerHeight),[X,K]=R.useState((null==(l=window.visualViewport)?void 0:l.width)??window.innerWidth);return rA.jsx(ym.Provider,{value:{isBotTyping:s,setSyncedIsBotTyping:c,syncedIsBotTypingRef:u,isChatWindowOpen:A,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:f,audioToggledOn:p,setSyncedAudioToggledOn:h,syncedAudioToggledOnRef:g,voiceToggledOn:m,setSyncedVoiceToggledOn:v,syncedVoiceToggledOnRef:b,notificationsToggledOn:y,setSyncedNotificationsToggledOn:w,syncedNotificationsToggledOnRef:x,isLoadingChatHistory:k,setIsLoadingChatHistory:E,hasChatHistoryLoaded:S,setHasChatHistoryLoaded:C,isScrolling:P,setSyncedIsScrolling:B,syncedIsScrollingRef:D,textAreaDisabled:T,setSyncedTextAreaDisabled:I,syncedTextAreaDisabledRef:Q,textAreaSensitiveMode:M,setSyncedTextAreaSensitiveMode:L,syncedTextAreaSensitiveModeRef:O,hasInteractedPage:N,setHasInteractedPage:F,hasFlowStarted:z,setHasFlowStarted:j,unreadCount:H,setUnreadCount:_,inputLength:U,setInputLength:q,blockAllowsAttachment:V,setBlockAllowsAttachment:W,viewportHeight:Y,setViewportHeight:G,viewportWidth:X,setViewportWidth:K},children:e})};var km=(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))(km||{});const Em={[km.START_SPEAK_AUDIO]:!0,[km.TOGGLE_AUDIO]:!0,[km.TOGGLE_VOICE]:!0,[km.TOGGLE_NOTIFICATIONS]:!0,[km.TOGGLE_CHAT_WINDOW]:!0,[km.PRE_INJECT_MESSAGE]:!0,[km.POST_INJECT_MESSAGE]:!1,[km.PRE_LOAD_CHATBOT]:!0,[km.POST_LOAD_CHATBOT]:!1,[km.START_SIMULATE_STREAM_MESSAGE]:!0,[km.STOP_SIMULATE_STREAM_MESSAGE]:!1,[km.START_STREAM_MESSAGE]:!0,[km.CHUNK_STREAM_MESSAGE]:!0,[km.STOP_STREAM_MESSAGE]:!0,[km.REMOVE_MESSAGE]:!0,[km.LOAD_CHAT_HISTORY]:!0,[km.CHANGE_PATH]:!0,[km.SHOW_TOAST]:!0,[km.DISMISS_TOAST]:!0,[km.USER_SUBMIT_TEXT]:!0,[km.USER_UPLOAD_FILE]:!0,[km.TEXT_AREA_CHANGE_VALUE]:!0,[km.PRE_PROCESS_BLOCK]:!0,[km.POST_PROCESS_BLOCK]:!0},Sm=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:Em[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Cm=R.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Pm=()=>R.useContext(Cm),Bm=({children:e})=>{const[t,n,r]=bm([]);return rA.jsx(Cm.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},Dm=()=>{const{botIdRef:e}=mm(),{syncedPathsRef:t}=Pm(),n=R.useCallback(()=>t.current.length>0?t.current.at(-1)??null:null,[]),r=R.useCallback(()=>t.current.length>1?t.current.at(-2)??null:null,[]);return{dispatchRcbEvent:R.useCallback(async(t,o)=>{const a={botId:e.current,currPath:n(),prevPath:r()};return await Sm(t,a,o)},[e])}},Tm=()=>{const{settings:e}=cm(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:a,setViewportWidth:i,setUnreadCount:l,setSyncedIsBotTyping:s,setSyncedIsScrolling:c,syncedIsBotTypingRef:u,syncedIsChatWindowOpenRef:A}=wm(),{chatBodyRef:d}=mm(),{dispatchRcbEvent:f}=Dm(),p=R.useCallback(()=>{if(!d.current)return!1;const e=d.current.getBoundingClientRect(),t=window.innerHeight??document.documentElement.clientHeight,n=window.innerWidth??document.documentElement.clientWidth;return e.top>=0&&e.left>=0&&e.bottom<=t&&e.right<=n},[d]),h=R.useCallback(async t=>{var r;t!==A.current&&(null!=(r=e.event)&&r.rcbToggleChatWindow&&(await f(km.TOGGLE_CHAT_WINDOW,{currState:A.current,newState:!A.current})).defaultPrevented||n(e=>(e||l(0),!e)))},[A]),g=R.useCallback(async e=>{e!==u.current&&s(e=>!e)},[u]),m=R.useCallback((e,t,n,r)=>(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t,[]),v=R.useCallback((e=0)=>{if(!d.current)return;const t=d.current.scrollHeight-d.current.clientHeight;if(e<=0)return d.current.scrollTop=t,void c(!1);const n=d.current.scrollTop,r=t-n;let o=0;const a=()=>{if(!d.current)return;o+=20;const t=m(o,n,r,e);d.current.scrollTop=t,o<e?requestAnimationFrame(a):c(!1)};a()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:h,viewportHeight:r,setViewportHeight:o,viewportWidth:a,setViewportWidth:i,toggleIsBotTyping:g,scrollToBottom:v,getIsChatBotVisible:p}},Im=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{unreadCount:a,isScrolling:i}=wm(),{chatBodyRef:l}=mm(),{scrollToBottom:s}=Tm(),[c,u]=R.useState(!1),A={color:null==(e=r.general)?void 0:e.primaryColor,borderColor:null==(t=r.general)?void 0:t.primaryColor,...o.chatMessagePromptHoveredStyle};return rA.jsx("div",{className:`rcb-message-prompt-container ${(()=>{var e;return l.current&&(null==(e=r.chatWindow)?void 0:e.showMessagePrompt)&&i&&a>0?"visible":"hidden"})()}`,children:rA.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?A:{...o.chatMessagePromptStyle},onMouseDown:e=>{e.preventDefault(),s(600)},className:"rcb-message-prompt-text",children:null==(n=r.chatWindow)?void 0:n.messagePromptText})})},Qm=R.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Mm=()=>R.useContext(Qm),Lm=({children:e})=>{const[t,n,r]=bm([]);return rA.jsx(Qm.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},Om=({message:e,isNewSender:t})=>{var n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),u="string"==typeof e.content,A=e.content,d=e.contentWrapper?rA.jsx(e.contentWrapper,{children:A}):A,f={backgroundColor:null==(n=s.general)?void 0:n.primaryColor,color:"#fff",maxWidth:null!=(r=s.userBubble)&&r.showAvatar?"65%":"70%",...c.userBubbleStyle},p=null!=(o=s.userBubble)&&o.animate?"rcb-user-message-entry":"",h=(null==(a=s.userBubble)?void 0:a.showAvatar)&&t,g="rcb-user-message"+(!t&&null!=(i=s.userBubble)&&i.showAvatar?" rcb-user-message-offset":"");return rA.jsxs("div",{className:"rcb-user-message-container",children:[u?rA.jsx("div",{style:f,className:`${g} ${p}`,children:d}):rA.jsx(rA.Fragment,{children:d}),h&&rA.jsx("div",{style:{backgroundImage:`url("${null==(l=s.userBubble)?void 0:l.avatar}")`},className:"rcb-message-user-avatar"})]})},Nm=({message:e,isNewSender:t})=>{var n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),u="string"==typeof e.content,A=e.content,d=e.contentWrapper?rA.jsx(e.contentWrapper,{children:A}):A,f={backgroundColor:null==(n=s.general)?void 0:n.secondaryColor,color:"#fff",maxWidth:null!=(r=s.botBubble)&&r.showAvatar?"65%":"70%",...c.botBubbleStyle},p=null!=(o=s.botBubble)&&o.animate?"rcb-bot-message-entry":"",h=(null==(a=s.botBubble)?void 0:a.showAvatar)&&t,g="rcb-bot-message"+(!t&&null!=(i=s.botBubble)&&i.showAvatar?" rcb-bot-message-offset":"");return rA.jsxs("div",{className:"rcb-bot-message-container",children:[h&&rA.jsx("div",{style:{backgroundImage:`url("${null==(l=s.botBubble)?void 0:l.avatar}")`},className:"rcb-message-bot-avatar"}),u?rA.jsx("div",{style:f,className:`${g} ${p}`,children:d}):rA.jsx(rA.Fragment,{children:d})]})},Rm=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),a=null!=(e=r.botBubble)&&e.animate?"rcb-bot-message-entry":"";return rA.jsxs("div",{className:"rcb-bot-message-container",children:[(null==(t=r.botBubble)?void 0:t.showAvatar)&&rA.jsx("div",{style:{backgroundImage:`url("${null==(n=r.botBubble)?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),rA.jsx("div",{onMouseDown:e=>{e.preventDefault()},className:`rcb-bot-message ${a}`,children:rA.jsxs("div",{className:"rcb-typing-indicator",style:{...null==o?void 0:o.rcbTypingIndicatorContainerStyle},children:[rA.jsx("span",{className:"rcb-dot",style:{...null==o?void 0:o.rcbTypingIndicatorDotStyle}}),rA.jsx("span",{className:"rcb-dot",style:{...null==o?void 0:o.rcbTypingIndicatorDotStyle}}),rA.jsx("span",{className:"rcb-dot",style:{...null==o?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Fm=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{messages:a}=Mm(),{scrollToBottom:i}=Tm(),{isBotTyping:l,syncedIsScrollingRef:s}=wm(),{chatBodyRef:c}=mm(),u={...null==o?void 0:o.bodyStyle,scrollbarWidth:null!=(e=r.chatWindow)&&e.showScrollbar?"auto":"none"};R.useEffect(()=>{s.current||i()},[null==(t=c.current)?void 0:t.scrollHeight]);return rA.jsxs("div",{style:u,className:"rcb-chat-body-container",ref:c,children:[a.map((e,t)=>{const n=(e=>0===e||a[e].sender!==a[e-1].sender)(t);return"USER"===e.sender.toUpperCase()?rA.jsx(Om,{message:e,isNewSender:n},t):"BOT"===e.sender.toUpperCase()?rA.jsx(Nm,{message:e,isNewSender:n},t):rA.jsx("div",{children:e.content},t)}),l&&(null==(n=r.chatWindow)?void 0:n.showTypingIndicator)&&rA.jsx(Rm,{}),rA.jsx(Im,{})]})},zm=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,a,i,l,s,c,u,A,d,f;const{settings:p}=cm(),{styles:h}=fm(),{paths:g}=Pm(),{handleSubmitText:m}=zv(),[v,b]=R.useState(new Set),[y,w]=R.useState(!1),x={cursor:y?`url("${null==(r=p.general)?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:null==(o=p.general)?void 0:o.primaryColor,borderColor:null==(a=p.general)?void 0:a.primaryColor,...h.botCheckboxRowStyle},k={cursor:y||v.size<e.min?`url("${null==(i=p.general)?void 0:i.actionDisabledIcon}"), auto`:"pointer",color:null==(l=p.general)?void 0:l.primaryColor,borderColor:null==(s=p.general)?void 0:s.primaryColor,...h.botCheckboxNextStyle},E={cursor:y?`url("${null==(c=p.general)?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...h.botCheckMarkStyle},S={cursor:y?`url("${null==(u=p.general)?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:null==(A=p.general)?void 0:A.primaryColor,backgroundColor:null==(d=p.general)?void 0:d.primaryColor,...h.botCheckMarkSelectedStyle};R.useEffect(()=>{g.length>0&&g[g.length-1]!==n&&w(!e.reusable)},[g]);return rA.jsxs("div",{className:"rcb-checkbox-container "+(null!=(f=p.botBubble)&&f.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(n=>rA.jsx("div",{onMouseDown:r=>{r.preventDefault(),(n=>{y||b(r=>{const o=new Set(r);if(o.has(n))t.delete(n),o.delete(n);else{if(v.size==e.max)return r;t.add(n),o.add(n)}return o})})(n)},style:x,className:"rcb-checkbox-row-container",children:rA.jsxs("div",{className:"rcb-checkbox-row",children:[rA.jsx("div",{style:v.has(n)?S:E,className:"rcb-checkbox-mark"}),rA.jsx("div",{className:"rcb-checkbox-label",children:n})]})},n)),rA.jsx("div",{style:k,className:"rcb-checkbox-next-button",onMouseDown:n=>{var r;if(n.preventDefault(),y||v.size<e.min)return;const o=Array.from(t).join(", ");let a;w(!e.reusable),a=null!=e.sendOutput?e.sendOutput:(null==(r=p.chatInput)?void 0:r.sendCheckboxOutput)??!0,m(o,a)}})]})},jm=async(e,t)=>{const n=e.checkboxes;if(!n)return;let r;if("function"==typeof n?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||0==r.items.length)return;null==r.min&&(r.min=1),null==r.max&&(r.max=r.items.length),r.min>r.max&&(r.min=r.max),null==r.reusable&&(r.reusable=!1);const o=new Set,a=t.currPath,i=rA.jsx(zm,{checkboxes:r,checkedItems:o,path:a});await t.injectMessage(i)},Hm=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},_m=async(e,t,n)=>{const r=e.message;if(!r)return;if("string"==typeof r)return void(""!==r.trim()&&(n?await t.simulateStreamMessage(r):await t.injectMessage(r)));let o=r(t);o instanceof Promise&&(o=await o),"string"==typeof o&&""!==o.trim()&&(n?await t.simulateStreamMessage(o):await t.injectMessage(o))},Um=({options:e,path:t})=>{var n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),{paths:u}=Pm(),{handleSubmitText:A}=zv(),[d,f]=R.useState([]),[p,h]=R.useState(!1),g={cursor:p?`url("${null==(n=s.general)?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:null==(r=s.general)?void 0:r.primaryColor,borderColor:null==(o=s.general)?void 0:o.primaryColor,backgroundColor:"#fff",...c.botOptionStyle},m={color:"#fff",borderColor:null==(a=s.general)?void 0:a.primaryColor,backgroundColor:null==(i=s.general)?void 0:i.primaryColor,...c.botOptionHoveredStyle};R.useEffect(()=>{u.length>0&&u[u.length-1]!==t&&h(!e.reusable)},[u]);return rA.jsx("div",{className:"rcb-options-container "+(null!=(l=s.botBubble)&&l.showAvatar?"rcb-options-offset":""),children:e.items.map((t,n)=>{const r=d[n]&&!p;return rA.jsx("div",{className:"rcb-options",style:r?m:g,onMouseEnter:()=>(e=>{f(t=>{const n=[...t];return n[e]=!0,n})})(n),onMouseLeave:()=>(e=>{f(t=>{const n=[...t];return n[e]=!1,n})})(n),onMouseDown:n=>{var r;if(n.preventDefault(),p)return;let o;h(!e.reusable),o=null!=e.sendOutput?e.sendOutput:(null==(r=s.chatInput)?void 0:r.sendOptionOutput)??!0,A(t,o)},children:t},t)})})},qm=async(e,t)=>{const n=e.options;if(!n)return;let r;if("function"==typeof n?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||0==r.items.length)return;null==r.reusable&&(r.reusable=!1);const o=t.currPath,a=rA.jsx(Um,{options:r,path:o});await t.injectMessage(a)},Vm=async(e,t)=>{const n=e.component;if(n){if("function"==typeof n){let e=n(t);if(e instanceof Promise&&(e=await e),!e)return;return void await t.injectMessage(e)}await t.injectMessage(n)}},Wm=async(e,t,n,r)=>{const o=e.transition;let a;if("function"==typeof o?(a=o(t),a instanceof Promise&&(a=await a)):a=o,"number"==typeof a&&(a={duration:a}),!a||a instanceof Promise||null==a.duration||"number"!=typeof a.duration)return;null==a.interruptable&&(a.interruptable=!1);const i=setTimeout(async()=>{const n=await r(e);n&&await Xm(n,t)},a.duration);a.interruptable&&(n.current=i)},Ym=async(e,t,n)=>{const r=e.chatDisabled;if(null==r)return;let o;"function"==typeof r?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},Gm=async(e,t,n)=>{const r=e.isSensitive;if(!r)return void n(!1);let o;"function"==typeof r?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},Xm=async(e,t)=>{if(!e)throw new Error("Block is not valid.");const n=Object.keys(e);for(const r of n)"function"===r&&await Hm(e,t);n.includes("path")&&await(async(e,t)=>{const n=e.path;if(!n)return!1;if("string"==typeof n)return await t.goToPath(n),!0;let r=n(t);if(r instanceof Promise&&(r=await r),!r)return!1;const o=r;return await t.goToPath(o),!0})(e,t)},Km=()=>{var e;const{settings:t}=cm(),{styles:n}=fm();return rA.jsx("div",{className:"rcb-line-break-container",children:rA.jsx("div",{style:{...n.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:null==(e=t.chatHistory)?void 0:e.chatHistoryLineBreakText})})},Jm=()=>{var e;const{settings:t}=cm(),{styles:n}=fm(),r={borderTop:`4px solid ${null==(e=t.general)?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return rA.jsx("div",{className:"rcb-spinner-container",children:rA.jsx("div",{style:r,className:"rcb-spinner"})})},Zm=()=>{try{if(typeof crypto<"u"&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&"function"==typeof crypto.getRandomValues)return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=crypto.getRandomValues(new Uint8Array(1))[0]%16;return("x"===e?t:3&t|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},$m=(e,t)=>({id:Zm(),content:e,sender:t,type:"string"==typeof e?"string":"object",timestamp:(new Date).toUTCString(),tags:[]});let ev,tv=!1,nv="rcb-history",rv=30,ov=!1,av=[];const iv=async e=>{if(ov||!ev)return;const t=[],n=tv?av.length:0;for(let r=e.length-1;r>=n;r--){const n=e[r];if("SYSTEM"!==n.sender.toUpperCase()&&(""!==n.content&&t.unshift(n),t.length===rv))break}let r=t.map(Av);if(r.length<rv){const e=rv-r.length;r=[...av.slice(-e),...r]}cv(r)},lv=()=>av,sv=e=>{cv(e),av=e},cv=e=>{ev&&ev.setItem(nv,JSON.stringify(e))},uv=e=>{var t,n,r,o,a;ev="SESSION_STORAGE"===(null==(n=null==(t=e.chatHistory)?void 0:t.storageType)?void 0:n.toUpperCase())?sessionStorage:localStorage,nv=null==(r=e.chatHistory)?void 0:r.storageKey,rv=null==(o=e.chatHistory)?void 0:o.maxEntries,ov=null==(a=e.chatHistory)?void 0:a.disabled,av=(e=>{if(null!=e)try{return JSON.parse(e)}catch{return[]}return[]})(ev.getItem(nv))},Av=e=>R.isValidElement(e.content)?structuredClone({id:e.id,content:oA.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,dv=(e,t,n)=>{const r=(new DOMParser).parseFromString(e,"text/html");return Array.from(r.body.childNodes).map((e,r)=>{var o;if(e.nodeType===Node.TEXT_NODE)return e.textContent;{const a=e.tagName.toLowerCase();let i=Array.from(e.attributes).reduce((e,t)=>{const n=t.name.toLowerCase();if("style"===n){const r=t.value.split(";").filter(e=>""!==e.trim()),o={};r.forEach(e=>{const[t,n]=e.split(":").map(e=>e.trim()),r=t.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());o[r]=n}),e[n]=o}else"audio"!==a&&"video"!==a||"controls"!==n||""!==t.value?e[n]=t.value:e[n]="true";return e},{});if(Object.prototype.hasOwnProperty.call(i,"class")){const r=e.classList;i.className=r.toString(),delete i.class,null!=(o=t.botBubble)&&o.showAvatar&&(i=fv(r,i)),i=pv(r,i,t,n),i=hv(r,i,t,n),i=gv(r,i,t,n),i=mv(r,i,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(a))return R.createElement(a,{key:r,...i});{const o=dv(e.innerHTML,t,n);return R.createElement(a,{key:r,...i},...o)}}})},fv=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),pv=(e,t,n,r)=>{var o,a,i,l,s;return e.contains("rcb-options")&&(t.style={...t.style,color:(null==(o=r.botOptionStyle)?void 0:o.color)??(null==(a=n.general)?void 0:a.primaryColor),borderColor:(null==(i=r.botOptionStyle)?void 0:i.color)??(null==(l=n.general)?void 0:l.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},hv=(e,t,n,r)=>{var o,a,i,l,s;return e.contains("rcb-checkbox-row-container")&&(t.style={...t.style,color:(null==(o=r.botCheckboxRowStyle)?void 0:o.color)??(null==(a=n.general)?void 0:a.primaryColor),borderColor:(null==(i=r.botCheckboxRowStyle)?void 0:i.color)??(null==(l=n.general)?void 0:l.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},gv=(e,t,n,r)=>{var o,a,i,l,s;return e.contains("rcb-checkbox-next-button")&&(t.style={...t.style,color:(null==(o=r.botCheckboxNextStyle)?void 0:o.color)??(null==(a=n.general)?void 0:a.primaryColor),borderColor:(null==(i=r.botCheckboxNextStyle)?void 0:i.color)??(null==(l=n.general)?void 0:l.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},mv=(e,t,n,r)=>{var o,a;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(t.style={...t.style,backgroundColor:null==(o=n.general)?void 0:o.primaryColor,maxWidth:null!=(a=n.userBubble)&&a.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),t},vv=()=>{const{settings:e}=cm(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:a,syncedNotificationsToggledOnRef:i}=wm(),{audioBufferRef:l,audioContextRef:s,gainNodeRef:c}=mm(),{dispatchRcbEvent:u}=Dm(),A=R.useCallback(async()=>{var t,n;const r=null==(t=e.notification)?void 0:t.sound;s.current=new AudioContext;const o=s.current.createGain();let a;if(o.gain.value=(null==(n=e.notification)?void 0:n.volume)??.2,c.current=o,null!=r&&r.startsWith("data:audio")){const e=atob(r.split(",")[1]),t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);a=t}else a=await(await fetch(r)).arrayBuffer();l.current=await s.current.decodeAudioData(a)},[e.notification]),d=R.useCallback(()=>{var t;if(null!=(t=e.notification)&&t.disabled||!i.current||!r||!s.current||!l.current)return;const n=s.current.createBufferSource();n.buffer=l.current,n.connect(c.current).connect(s.current.destination),n.start()},[e.notification,i,r,s,l,c]),f=R.useCallback(async t=>{var r;t!==i.current&&(null!=(r=e.event)&&r.rcbToggleNotifications&&(await u(km.TOGGLE_NOTIFICATIONS,{currState:i.current,newState:!i.current})).defaultPrevented||n(e=>!e))},[i]);return{unreadCount:o,setUnreadCount:a,notificationsToggledOn:t,toggleNotifications:f,playNotificationSound:d,setUpNotifications:A}},bv=(e,t)=>{var n,r,o,a;((e,t,n,r,o)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const a=new window.SpeechSynthesisUtterance;a.text=e,a.lang=t,a.rate=r,a.volume=o;let i=!1;for(const e of n)if(window.speechSynthesis.getVoices().find(t=>{if(t.name===e)return a.voice=t,window.speechSynthesis.speak(a),void(i=!0)}),i)break;i||window.speechSynthesis.speak(a)})(t,null==(n=e.audio)?void 0:n.language,null==(r=e.audio)?void 0:r.voiceNames,null==(o=e.audio)?void 0:o.rate,null==(a=e.audio)?void 0:a.volume)},yv=()=>{const{settings:e}=cm(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=wm(),{dispatchRcbEvent:o}=Dm(),a=R.useCallback(async t=>{var a;t!==r.current&&(null!=(a=e.event)&&a.rcbToggleAudio&&(await o(km.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(e=>!e))},[r]),i=R.useCallback(async t=>{var n,a;if(null!=(n=e.audio)&&n.disabled||!r.current)return;let i=t;if(null!=(a=e.event)&&a.rcbStartSpeakAudio){const e=await o(km.START_SPEAK_AUDIO,{textToRead:i});if(e.defaultPrevented)return;i=e.data.textToRead}bv(e,i)},[e,r]);return{audioToggledOn:t,speakAudio:i,toggleAudio:a}},wv=()=>{var e,t;const{settings:n}=cm(),{messages:r,setSyncedMessages:o,syncedMessagesRef:a}=Mm(),{setSyncedIsBotTyping:i,setUnreadCount:l,syncedIsScrollingRef:s,syncedIsChatWindowOpenRef:c}=wm(),{streamMessageMap:u,chatBodyRef:A,paramsInputRef:d}=mm(),{scrollToBottom:f,getIsChatBotVisible:p}=Tm(),{dispatchRcbEvent:h}=Dm(),{speakAudio:g}=yv(),{playNotificationSound:m}=vv(),v=R.useCallback((e,t=!1)=>{var r,o;iv(e);let a=!0;const i=e[e.length-1];if(!i)return;const l=i.sender.toUpperCase();"USER"===l&&(a=!1),null!=(r=n.general)&&r.embedded&&p()&&(a=!1),(c.current&&!s.current||t)&&(a=!1),a&&m(),!t&&("USER"!==l&&null!=(o=n.chatWindow)&&o.autoJumpToBottom||"USER"===l||!s.current)&&setTimeout(()=>f(),1)},[n,A,c,s,m,f,p]),b=R.useCallback(async(e,t="BOT",r=null)=>{var u,A,f,p,m;if("string"!=typeof e)throw new Error("Content must be of type string to simulate stream.");t=t.toUpperCase();let b=$m(e,t);if(null!=(u=n.event)&&u.rcbStartSimulateStreamMessage){const e=await h(km.START_SIMULATE_STREAM_MESSAGE,{message:b});if(e.defaultPrevented)return null;r=e.data.simulateStreamChunker||r,b=e.data.message}i(!1);let y=30;y="BOT"===t?null==(A=n.botBubble)?void 0:A.streamSpeed:null==(f=n.userBubble)?void 0:f.streamSpeed;const w={...b,content:""};o(e=>[...e,w]),v(a.current);let x=b.content;r&&(x=r(x));let k=0;const E=x.length;"BOT"===b.sender.toUpperCase()&&(c.current||null!=(p=n.general)&&p.embedded)&&"string"==typeof b.content&&""!==b.content.trim()&&g(b.content);const S=new Promise(e=>{const t=setInterval(()=>{if(k>=E)return clearInterval(t),void e();o(e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)if(t[e].id===w.id){const n=x[k];n&&(w.content+=n,t[e]=w),k++;break}return t})},y)});return(s.current||!c.current)&&l(e=>e+1),await S,iv(a.current),null!=(m=n.event)&&m.rcbStopSimulateStreamMessage&&await h(km.STOP_SIMULATE_STREAM_MESSAGE,{message:b}),"USER"===t&&(d.current=e),b},[n,h,v,a,d,i,l,c,g]),y=R.useCallback(async(e,t="BOT")=>{var r,i,u;t=t.toUpperCase();let A=$m(e,t);if(null!=(r=n.event)&&r.rcbPreInjectMessage){const e=await h(km.PRE_INJECT_MESSAGE,{message:A});if(e.defaultPrevented)return null;A=e.data.message}return"BOT"===A.sender.toUpperCase()&&(c.current||null!=(i=n.general)&&i.embedded)&&"string"==typeof A.content&&""!==A.content.trim()&&g(A.content),(s.current||!c.current)&&l(e=>e+1),null!=(u=n.event)&&u.rcbPostInjectMessage&&await h(km.POST_INJECT_MESSAGE,{message:A}),o(e=>[...e,A]),v(a.current),"USER"===t&&"string"==typeof e&&(d.current=e),A},[n,h,v,d,a,c,g,l]),w=R.useCallback(async e=>{var t;const r=a.current.find(t=>t.id===e);return!r||null!=(t=n.event)&&t.rcbRemoveMessage&&(await h(km.REMOVE_MESSAGE,{message:r})).defaultPrevented?null:(o(t=>t.filter(t=>t.id!==e)),v(a.current),l(e=>Math.max(e-1,0)),r)},[h,null==(e=n.event)?void 0:e.rcbRemoveMessage,v,a,l]),x=R.useCallback(async(e,t="BOT")=>{var r,A;if(t=t.toUpperCase(),!u.current.has(t)){const A=$m(e,t);return null!=(r=n.event)&&r.rcbStartStreamMessage&&(await h(km.START_STREAM_MESSAGE,{message:A})).defaultPrevented?null:(i(!1),o(e=>[...e,A]),v(a.current),u.current.set(t,A.id),(s.current||!c.current)&&l(e=>e+1),A)}const d={...$m(e,t),id:u.current.get(t)};return null!=(A=n.event)&&A.rcbChunkStreamMessage&&(await h(km.CHUNK_STREAM_MESSAGE,{message:d})).defaultPrevented?null:(o(e=>e.map(e=>e.id===d.id?d:e)),v(a.current,!0),d)},[h,n.event,v,a,i,l,u]),k=R.useCallback(async(e="BOT")=>{var t;if(e=e.toUpperCase(),!u.current.has(e))return!0;const r=u.current.get(e);let o;for(let e=0;e<3;e++){const e=a.current.find(e=>e.id===r);e&&(o=e),await new Promise(e=>setTimeout(e,20))}return(null==(t=n.event)||!t.rcbStopStreamMessage||!(await h(km.STOP_STREAM_MESSAGE,{message:o})).defaultPrevented)&&(u.current.delete(e),iv(a.current),"USER"===e&&"string"==typeof(null==o?void 0:o.content)&&(d.current=o.content),!0)},[h,null==(t=n.event)?void 0:t.rcbStopStreamMessage,u,d]),E=R.useCallback(e=>{const t="function"==typeof e?e(a.current):e;o(t),v(t)},[v,a]);return{simulateStreamMessage:b,injectMessage:y,removeMessage:w,streamMessage:x,endStreamMessage:k,replaceMessages:E,messages:r}};let xv,kv,Ev,Sv=!1,Cv=null;const Pv=()=>{if(!xv){const e=window.SpeechRecognition||window.webkitSpeechRecognition;xv=null!=e?new e:null}return xv},Bv=(e,t,n,r,o,a)=>{var i,l,s;const c=Pv();if(!c)return;if(!Sv)try{Sv=!0,c.lang=null==(i=e.voice)?void 0:i.language,c.start()}catch{}const u=null==(l=e.voice)?void 0:l.timeoutPeriod,A=null==(s=e.voice)?void 0:s.autoSendPeriod;c.onresult=i=>{var l,s;clearTimeout(kv),kv=null,clearTimeout(Ev);const c=i.results[i.results.length-1][0].transcript;if(a.current){const t=null==(l=e.chatInput)?void 0:l.characterLimit,n=a.current.value+c;null!=t&&t>=0&&n.length>t?r(n.slice(0,t)):r(n),o(a.current.value.length)}u&&(kv=setTimeout(async()=>await Iv(t,a),u)),null!=(s=e.voice)&&s.autoSendDisabled||(Ev=setTimeout(n,A))},c.onend=()=>{Sv?(c.start(),!kv&&u&&(kv=setTimeout(async()=>await Iv(t,a),u))):(clearTimeout(kv),kv=null,clearTimeout(Ev))},u&&(kv=setTimeout(async()=>await Iv(t,a),u))},Dv=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(Cv=new MediaRecorder(n),!Sv)try{Sv=!0,Cv.start()}catch{}Cv.ondataavailable=e=>{t.current&&t.current.push(e.data)},Cv.onstop=()=>{e(),n.getTracks().forEach(e=>e.stop())}}).catch(e=>{console.error("Unable to use microphone:",e)})},Tv=()=>{const e=Pv();e&&(Sv=!1,e&&e.stop(),Cv&&"inactive"!==Cv.state&&(Cv.stop(),Cv=null),clearTimeout(kv),kv=null,clearTimeout(Ev))},Iv=async(e,t)=>{var n;null!=(n=t.current)&&n.disabled||await e(),Tv()},Qv=()=>{const{settings:e}=cm(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=wm(),{dispatchRcbEvent:o}=Dm(),a=R.useCallback(async t=>{var a;t!==r.current&&(null!=(a=e.event)&&a.rcbToggleVoice&&(await o(km.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(e=>!e))},[r]),i=R.useCallback(t=>{((e,t)=>{var n,r,o;const a=Pv();null!=(n=t.voice)&&n.disabled||null==(r=t.chatInput)||!r.blockSpam||!a||(e&&!Sv?(Sv=!0,null!=(o=t.voice)&&o.sendAsAudio?null==Cv||Cv.start():a.start()):e||Tv())})(t,e)},[e]);return{voiceToggledOn:t,toggleVoice:a,syncVoice:i}},Mv=()=>{var e;const{settings:t}=cm(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:a,textAreaSensitiveMode:i,setSyncedTextAreaSensitiveMode:l,syncedTextAreaDisabledRef:s,syncedTextAreaSensitiveModeRef:c}=wm(),{inputRef:u,chatBodyRef:A,prevInputRef:d}=mm(),{dispatchRcbEvent:f}=Dm(),{getIsChatBotVisible:p}=Tm(),h=R.useCallback(async e=>{var n,r,o;if(s.current&&u.current)u.current.value="";else if(u.current&&null!==d.current){const a=null==(n=t.chatInput)?void 0:n.characterLimit,i=(null==(r=t.chatInput)?void 0:r.allowNewline)?e:e.replace(/\n/g," ");if(null!=a&&a>=0&&i.length>a?u.current.value=i.slice(0,a):u.current.value=i,null!=(o=t.event)&&o.rcbTextAreaChangeValue&&(await f(km.TEXT_AREA_CHANGE_VALUE,{currValue:u.current.value,prevValue:d.current})).defaultPrevented)return void(u.current.value=d.current);d.current=u.current.value}},[s,u,d,t,f]),g=R.useCallback(e=>{var n;null!=(n=u.current)&&n.disabled||setTimeout(()=>{var n,r,o;null!=(n=t.general)&&n.embedded?p()&&(null==(r=u.current)||r.focus()):"start"!==e&&(null==(o=u.current)||o.focus())},100)},[u,null==(e=t.general)?void 0:e.embedded,A,p]),m=R.useCallback(()=>{u.current&&u.current.focus()},[]),v=R.useCallback(()=>{u.current&&u.current.blur()},[]),b=R.useCallback(()=>u&&u.current?u.current.value:"",[]),y=R.useCallback(e=>{e!==s.current&&a(e=>!e)},[s]),w=R.useCallback(e=>{e!==c.current&&l(e=>!e)},[c]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:a,textAreaSensitiveMode:i,setSyncedTextAreaSensitiveMode:l,inputLength:n,setInputLength:r,getTextAreaValue:b,setTextAreaValue:h,updateTextAreaFocus:g,focusTextArea:m,blurTextArea:v,toggleTextAreaDisabled:y,toggleTextAreaSensitiveMode:w}},Lv=R.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Ov=()=>R.useContext(Lv),Nv=({children:e})=>{const[t,n,r]=bm([]);return rA.jsx(Lv.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},Rv=()=>{const{settings:e}=cm(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=Ov(),{dispatchRcbEvent:o}=Dm(),a=R.useCallback(async(t,a)=>{var i,l,s,c;let u=null;if(r.current.length>=((null==(i=e.toast)?void 0:i.maxCount)??3)){if(null!=(l=e.toast)&&l.forbidOnMax)return null;u=Zm();let r={id:u,content:t,timeout:a};if(null!=(s=e.event)&&s.rcbShowToast){const e=await o(km.SHOW_TOAST,{toast:r});if(e.defaultPrevented)return null;r=e.data.toast}return n(e=>[...e.slice(1),r]),u}u=Zm();let A={id:u,content:t,timeout:a};if(null!=(c=e.event)&&c.rcbShowToast){const e=await o(km.SHOW_TOAST,{toast:A});if(e.defaultPrevented)return null;A=e.data.toast}return n(e=>[...e,A]),u},[e,o]),i=R.useCallback(async t=>{var a;const i=r.current.find(e=>e.id===t);return!i||null!=(a=e.event)&&a.rcbDismissToast&&(await o(km.DISMISS_TOAST,{toast:i})).defaultPrevented?null:(n(e=>e.filter(e=>e.id!==t)),t)},[o]),l=R.useCallback(e=>{const t="function"==typeof e?e(r.current):e;n(t)},[r]);return{showToast:a,dismissToast:i,toasts:t,replaceToasts:l}},Fv=()=>{var e,t,n,r,o;const{settings:a}=cm(),{paths:i,setSyncedPaths:l,syncedPathsRef:s}=Pm(),{flowRef:c,streamMessageMap:u,paramsInputRef:A,keepVoiceOnRef:d,timeoutIdRef:f}=mm(),{setSyncedIsBotTyping:p,setSyncedTextAreaDisabled:h,setSyncedTextAreaSensitiveMode:g,blockAllowsAttachment:m,setBlockAllowsAttachment:v}=wm(),{dispatchRcbEvent:b}=Dm(),{endStreamMessage:y,injectMessage:w,removeMessage:x,simulateStreamMessage:k,streamMessage:E}=wv(),{showToast:S,dismissToast:C}=Rv(),{toggleChatWindow:P}=Tm(),{updateTextAreaFocus:B,setTextAreaValue:D}=Mv(),{syncVoice:T}=Qv(),I=R.useCallback(async e=>{var t;if(null!=(t=a.event)&&t.rcbPostProcessBlock){const t=await b(km.POST_PROCESS_BLOCK,{block:e});if(t.defaultPrevented)return null;e=t.data.block}return e},[null==(e=a.event)?void 0:e.rcbPostProcessBlock,b]),Q=R.useCallback(async(e,t)=>{var n,r,o,i;if(!e)return;let l=c.current[e];if(!l)return void p(!1);if(null!=(n=a.event)&&n.rcbPreProcessBlock){const e=await b(km.PRE_PROCESS_BLOCK,{block:l});if(e.defaultPrevented)return;l=e.data.block}p(!0),null!=(r=a.chatInput)&&r.blockSpam&&h(!0),g(!1);const s={prevPath:t,currPath:e,goToPath:O,setTextAreaValue:D,userInput:A.current,endStreamMessage:y,injectMessage:w,removeMessage:x,simulateStreamMessage:k,streamMessage:E,toggleChatWindow:P,showToast:S,dismissToast:C};await(async(e,t,n,r,o,a,i)=>{if(!e)throw new Error("Block is not valid.");for(const l of Object.keys(e))switch(l){case"message":await _m(e,t,n);break;case"options":await qm(e,t);break;case"checkboxes":await jm(e,t);break;case"component":await Vm(e,t);break;case"chatDisabled":await Ym(e,t,o);break;case"isSensitive":await Gm(e,t,a);break;case"transition":await Wm(e,t,r,i)}})(l,s,(null==(o=a.botBubble)?void 0:o.simulateStream)??!1,f,h,g,I),p(!1),"chatDisabled"in l||h(null==(i=a.chatInput)?void 0:i.disabled),"isSensitive"in l||g(!1),v("function"==typeof l.file),B(e),T(d.current&&!l.chatDisabled),e!==t&&u.current.clear()},[c,B,T,null==(t=a.botBubble)?void 0:t.simulateStream,null==(n=a.chatInput)?void 0:n.disabled,A,y,w,x,k,E,P,S,C,d,u]),M=R.useCallback(()=>s.current.length>0?s.current.at(-1)??null:null,[]),L=R.useCallback(()=>s.current.length>1?s.current.at(-2)??null:null,[]),O=R.useCallback(async e=>{var t;const n=M(),r=L();return(null==(t=a.event)||!t.rcbChangePath||!(await b(km.CHANGE_PATH,{currPath:n,prevPath:r,nextPath:e})).defaultPrevented)&&(l(t=>[...t,e]),await Q(e,n),!0)},[null==(r=a.chatInput)?void 0:r.blockSpam,null==(o=a.event)?void 0:o.rcbChangePath,Q,b]),N=R.useCallback(e=>{const t="function"==typeof e?e(s.current):e;l(t)},[s]);return{getCurrPath:M,getPrevPath:L,goToPath:O,blockAllowsAttachment:m,setBlockAllowsAttachment:v,paths:i,replacePaths:N,firePostProcessBlockEvent:I}},zv=()=>{var e,t,n,r;const{settings:o}=cm(),{endStreamMessage:a,injectMessage:i,removeMessage:l,simulateStreamMessage:s,streamMessage:c}=wv(),{syncedPathsRef:u}=Pm(),{getCurrPath:A,getPrevPath:d,goToPath:f,firePostProcessBlockEvent:p}=Fv(),{setSyncedTextAreaSensitiveMode:h,setSyncedTextAreaDisabled:g,setSyncedIsBotTyping:m,setBlockAllowsAttachment:v,setInputLength:b,syncedVoiceToggledOnRef:y,syncedTextAreaSensitiveModeRef:w}=wm(),{flowRef:x,inputRef:k,keepVoiceOnRef:E,paramsInputRef:S,timeoutIdRef:C}=mm(),{showToast:P,dismissToast:B}=Rv(),{dispatchRcbEvent:D}=Dm(),{syncVoice:T}=Qv(),{setTextAreaValue:I}=Mv(),{toggleChatWindow:Q}=Tm(),M=R.useCallback(async e=>{var t,n,r,a,l,c;const u=A();if(u&&x.current[u]){if(w.current){if(null!=(t=null==o?void 0:o.sensitiveInput)&&t.hideInUserBubble)return;if(null!=(n=null==o?void 0:o.sensitiveInput)&&n.maskInUserBubble)return void(null!=(r=o.userBubble)&&r.simulateStream?await s("*".repeat((null==(a=o.sensitiveInput)?void 0:a.asterisksCount)??10),"USER"):await i("*".repeat((null==(l=o.sensitiveInput)?void 0:l.asterisksCount)??10),"USER"))}null!=(c=o.userBubble)&&c.simulateStream?await s(e,"USER"):await i(e,"USER")}},[x,A,o,i,s,w]),L=R.useCallback(async(e,t=!0)=>{var n,r;if(""===(e=e.trim()))return;t&&await M(e),C.current&&clearTimeout(C.current),k.current&&(I(""),b(0));const w=A();if(!w)return;let D=x.current[w];const L=await p(D);L&&(null!=(n=o.chatInput)&&n.blockSpam&&g(!0),E.current=y.current,T(!1),setTimeout(()=>{m(!0)},400),h(!1),setTimeout(async()=>{var e;const t={prevPath:d(),currPath:A(),goToPath:f,setTextAreaValue:I,userInput:S.current,injectMessage:i,simulateStreamMessage:s,streamMessage:c,removeMessage:l,endStreamMessage:a,toggleChatWindow:Q,showToast:P,dismissToast:B},n=u.current.length;await Xm(L,t),u.current.length===n&&(g("chatDisabled"in D?!!D.chatDisabled:!(null==(e=o.chatInput)||!e.disabled)),Gm(D,t,h),v("function"==typeof D.file),T(E.current),m(!1))},null==(r=o.chatInput)?void 0:r.botDelay))},[C,null==(e=o.chatInput)?void 0:e.blockSpam,null==(t=o.chatInput)?void 0:t.botDelay,null==(n=o.chatInput)?void 0:n.disabled,E,y,T,M,d,A,f,i,s,c,l,a,Q,P,B,x]);return{handleSubmitText:R.useCallback(async(e,t=!0)=>{var n,r;e=e??(null==(n=k.current)?void 0:n.value),!(null!=(r=o.event)&&r.rcbUserSubmitText&&(await D(km.USER_SUBMIT_TEXT,{inputText:e,sendInChat:t})).defaultPrevented||!A())&&L(e,t)},[D,A,L,k,null==(r=o.event)?void 0:r.rcbUserSubmitText])}},jv=()=>{var e;const{settings:t}=cm();return R.useMemo(()=>{var e;if(typeof window>"u"||!window.navigator)return!1;if(null==(e=t.device)||!e.applyMobileOptimizations)return!0;const n=navigator.userAgent,r=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n),o=window.innerWidth>=768;return r&&o},[null==(e=t.device)?void 0:e.applyMobileOptimizations])},Hv=({buttons:e})=>{var t,n,r,o,a,i,l,s,c,u,A;const d=jv(),{settings:f}=cm(),{styles:p}=fm(),{textAreaDisabled:h,textAreaSensitiveMode:g,inputLength:m,hasFlowStarted:v,setHasFlowStarted:b,setInputLength:y}=wm(),{inputRef:w}=mm(),[x,k]=R.useState(!1),[E,S]=R.useState(!1),{handleSubmitText:C}=zv(),{setTextAreaValue:P}=Mv(),B={boxSizing:d?"content-box":"border-box",...p.chatInputAreaStyle},D={outline:h?"":"none",boxShadow:h?"":`0 0 5px ${null==(t=f.general)?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...p.chatInputAreaStyle,...p.chatInputAreaFocusedStyle},T={cursor:`url("${null==(n=f.general)?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...p.chatInputAreaStyle,...p.chatInputAreaDisabledStyle},I={color:"#989898",...p.characterLimitStyle},Q={color:"#ff0000",...p.characterLimitReachedStyle},M=h?null==(r=f.chatInput)?void 0:r.disabledPlaceholderText:null==(o=f.chatInput)?void 0:o.enabledPlaceholderText,L=()=>{h||k(!0)},O=()=>{k(!1)},N=()=>{S(!0)},F=()=>{S(!1)},z=async e=>{var t;if(!E&&"Enter"===e.key){if(e.shiftKey)return void(null!=(t=f.chatInput)&&t.allowNewline||e.preventDefault());e.preventDefault(),await C()}},j=e=>{w.current&&(P(e.target.value),y(w.current.value.length))};return rA.jsxs("div",{"aria-label":(null==(a=f.ariaLabel)?void 0:a.inputTextArea)??"input text area",role:"textbox",onMouseDown:e=>{var t;e.stopPropagation(),!v&&"ON_CHATBOT_INTERACT"===(null==(t=f.general)?void 0:t.flowStartTrigger)&&b(!0)},style:{...p.chatInputContainerStyle},className:"rcb-chat-input",children:[g&&null!=(i=f.sensitiveInput)&&i.maskInTextArea?rA.jsx("input",{ref:w,type:"password",className:"rcb-chat-input-textarea",style:h?T:x?D:B,placeholder:M,onChange:j,onKeyDown:z,onFocus:L,onBlur:O,onCompositionStart:N,onCompositionEnd:F}):rA.jsx("textarea",{ref:w,style:h?T:x?D:B,rows:1,className:"rcb-chat-input-textarea",placeholder:M,onChange:j,onKeyDown:z,onFocus:L,onBlur:O,onCompositionStart:N,onCompositionEnd:F}),rA.jsxs(rA.Fragment,{children:[null==e?void 0:e.map((e,t)=>rA.jsx(R.Fragment,{children:e},t)),(null==(l=f.chatInput)?void 0:l.showCharacterCount)&&null!=(null==(s=f.chatInput)?void 0:s.characterLimit)&&(null==(c=f.chatInput)?void 0:c.characterLimit)>0&&rA.jsxs("div",{className:"rcb-chat-input-char-counter",style:m>=(null==(u=f.chatInput)?void 0:u.characterLimit)?Q:I,children:[m,"/",null==(A=f.chatInput)?void 0:A.characterLimit]})]})]})},_v=({buttons:e})=>{var t;const{settings:n}=cm(),{styles:r}=fm();return rA.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[rA.jsx("div",{className:"rcb-chat-footer",children:null==e?void 0:e.map((e,t)=>rA.jsx(R.Fragment,{children:e},t))}),rA.jsx("span",{children:null==(t=n.footer)?void 0:t.text})]})},Uv=()=>{var e,t,n,r,o,a,i;const{settings:l}=cm(),{styles:s}=fm(),{unreadCount:c}=wm(),{isChatWindowOpen:u,toggleChatWindow:A}=Tm(),[d,f]=R.useState(!1),p={backgroundImage:`linear-gradient(to right, ${null==(e=l.general)?void 0:e.secondaryColor},\n\t\t\t${null==(t=l.general)?void 0:t.primaryColor})`,...s.chatButtonStyle},h={transform:"scale(1.05)",...s.chatButtonStyle,...s.chatButtonHoveredStyle},g={backgroundImage:`url(${null==(n=l.chatButton)?void 0:n.icon})`,fill:"#fff",width:75,height:75,...s.chatIconStyle};return rA.jsx(rA.Fragment,{children:!(null!=(r=l.general)&&r.embedded)&&rA.jsxs("div",{"aria-label":(null==(o=l.ariaLabel)?void 0:o.chatButton)??"open chat",role:"button",style:d?h:p,className:"rcb-toggle-button "+(u?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{f(!0)},onMouseLeave:()=>{f(!1)},onClick:()=>A(!0),children:[(()=>{var e;const t=null==(e=l.chatButton)?void 0:e.icon;return t&&"string"!=typeof t?t&&rA.jsx("span",{className:"rcb-toggle-icon",children:rA.jsx(t,{style:g})}):rA.jsx("span",{className:"rcb-toggle-icon",style:g})})(),!(null!=(a=l.notification)&&a.disabled)&&(null==(i=l.notification)?void 0:i.showCount)&&rA.jsx("span",{style:{...s.notificationBadgeStyle},className:"rcb-badge",children:c})]})})},qv=()=>{var e,t,n,r;const o=jv(),{settings:a}=cm(),{styles:i}=fm(),{chatBodyRef:l}=mm(),{isChatWindowOpen:s,toggleChatWindow:c}=Tm(),[u,A]=R.useState(!1),[d,f]=R.useState(!1),[p,h]=R.useState(0);R.useEffect(()=>{var e,t,n;const r=null==(e=a.tooltip)?void 0:e.mode;if("ALWAYS"===r)if(o){let e;e=s?((null==(t=l.current)?void 0:t.offsetWidth)??375)-("number"==typeof(null==(n=i.chatButtonStyle)?void 0:n.width)?i.chatButtonStyle.width:75):0,h(e),A(!0)}else A(!s);else"NEVER"===r?A(!1):"START"===r?d?A(!1):(f(!0),A(!0)):"CLOSE"===r&&A(!s)},[s]);const g={transform:`translateX(-${p}px)`,right:((null==(e=i.chatButtonStyle)?void 0:e.width)??75)+40,bottom:30,backgroundColor:null==(t=a.general)?void 0:t.secondaryColor,color:"#fff",...i.tooltipStyle},m={borderColor:`transparent transparent transparent ${g.backgroundColor}`};return rA.jsx(rA.Fragment,{children:!(null!=(n=a.general)&&n.embedded)&&rA.jsxs("div",{"data-testid":"chat-tooltip",style:g,className:"rcb-chat-tooltip "+(u?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>c(!0),children:[rA.jsx("span",{children:null==(r=a.tooltip)?void 0:r.text}),rA.jsx("span",{className:"rcb-chat-tooltip-tail",style:m})]})})},Vv=({id:e,content:t,timeout:n})=>{var r,o;const{settings:a}=cm(),{styles:i}=fm(),[l]=R.useState({toastPromptStyle:{...i.toastPromptStyle},toastPromptHoveredStyle:{...i.toastPromptHoveredStyle}}),{dismissToast:s}=Rv(),[c,u]=R.useState(!1),A={color:null==(r=a.general)?void 0:r.primaryColor,borderColor:null==(o=a.general)?void 0:o.primaryColor,...l.toastPromptHoveredStyle};return R.useEffect(()=>{if(n){const t=setTimeout(()=>{s(e)},n);return()=>clearTimeout(t)}},[e,s,n]),"string"==typeof t?rA.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?A:l.toastPromptStyle,onMouseDown:async t=>{var n;null!=(n=a.toast)&&n.dismissOnClick&&(t.preventDefault(),await s(e))},className:"rcb-toast-prompt",children:t}):rA.jsx(rA.Fragment,{children:t})},Wv=()=>{var e,t,n,r,o,a,i,l,s,c,u,A;const{styles:d}=fm(),{toasts:f}=Ov(),p={bottom:`calc(${"number"==typeof(null==(e=d.footerStyle)?void 0:e.height)?`${null==(t=d.footerStyle)?void 0:t.height}px`:(null==(n=d.footerStyle)?void 0:n.height)??"50px"} + ${"number"==typeof(null==(r=d.chatInputContainerStyle)?void 0:r.height)?`${null==(o=d.chatInputContainerStyle)?void 0:o.height}px`:(null==(a=d.chatInputContainerStyle)?void 0:a.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${"number"==typeof(null==(i=d.chatWindowStyle)?void 0:i.width)?`${null==(l=d.chatWindowStyle)?void 0:l.width}px`:(null==(s=d.chatWindowStyle)?void 0:s.width)??"375px"} / 2)`,maxWidth:`calc(${"number"==typeof(null==(c=d.chatWindowStyle)?void 0:c.width)?`${null==(u=d.chatWindowStyle)?void 0:u.width}px`:(null==(A=d.chatWindowStyle)?void 0:A.width)??"375px"} - 50px)`,...d.toastPromptContainerStyle};return rA.jsx("div",{className:"rcb-toast-prompt-container",style:p,children:f.map(e=>rA.jsx(Vv,{id:e.id,content:e.content,timeout:e.timeout},e.id))})},Yv=({file:e,fileType:t,fileUrl:n})=>{var r,o,a;const{settings:i}=cm(),{styles:l}=fm(),s={backgroundColor:null==(r=i.general)?void 0:r.primaryColor,maxWidth:null!=(o=i.userBubble)&&o.showAvatar?"65%":"70%",...l.mediaDisplayContainerStyle};return rA.jsx(rA.Fragment,{children:n?rA.jsxs(rA.Fragment,{children:["image"===t&&n&&rA.jsx("div",{style:s,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:rA.jsx("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),"video"===t&&n&&rA.jsx("div",{style:s,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:rA.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[rA.jsx("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),"audio"===t&&n&&rA.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:null!=(a=i.userBubble)&&a.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[rA.jsx("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):rA.jsx(rA.Fragment,{})})},Gv=async e=>{if(!e)return{fileType:null,fileUrl:null};const t=e.type.split("/")[0];if(!["image","video","audio"].includes(t))return{fileType:null,fileUrl:null};try{const n=await new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(new Error("File reading failed")),r.readAsDataURL(e)});return{fileType:t,fileUrl:n}}catch(e){return console.error(e),{fileType:null,fileUrl:null}}},Xv=()=>{var e,t,n,r,o,a;const{settings:i}=cm(),{styles:l}=fm(),{injectMessage:s,simulateStreamMessage:c,streamMessage:u,removeMessage:A,endStreamMessage:d}=wv(),{getCurrPath:f,getPrevPath:p,goToPath:h,blockAllowsAttachment:g}=Fv(),{flowRef:m,inputRef:v}=mm(),b=m.current,{showToast:y,dismissToast:w}=Rv(),{dispatchRcbEvent:x}=Dm(),{toggleChatWindow:k}=Tm(),{setTextAreaValue:E}=Mv(),{handleSubmitText:S}=zv(),C={cursor:`url("${null==(e=i.general)?void 0:e.actionDisabledIcon}"), auto`,...l.fileAttachmentButtonStyle,...l.fileAttachmentButtonDisabledStyle},P={backgroundImage:`url(${null==(t=i.fileAttachment)?void 0:t.icon})`,fill:"#a6a6a6",...l.fileAttachmentIconStyle},B={backgroundImage:`url(${null==(n=i.fileAttachment)?void 0:n.icon})`,fill:"#a6a6a6",...l.fileAttachmentIconStyle,...l.fileAttachmentIconDisabledStyle};return rA.jsxs("label",{"aria-label":(null==(r=i.ariaLabel)?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:g?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:g?{...l.fileAttachmentButtonStyle}:C,children:[rA.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async e=>{var t,n,r,o;const a=e.target.files;if(!a)return;const l=Array.from(a);if(e.target.value="",null!=(t=i.event)&&t.rcbUserUploadFile&&(await x(km.USER_UPLOAD_FILE,{files:l})).defaultPrevented)return;const g=f();if(!g)return;const m=b[g];if(!m)return;const C=m.file;if(null!=C){const e=[];for(let t=0;t<l.length;t++){if(e.push(l[t].name),null==(n=i.fileAttachment)||!n.showMediaDisplay)continue;const r=await Gv(l[t]);!r.fileType||!r.fileUrl||await s(rA.jsx(Yv,{file:l[t],fileType:r.fileType,fileUrl:r.fileUrl}),"USER")}await S("📄 "+e.join(", "),null==(r=i.fileAttachment)?void 0:r.sendFileName),await C({userInput:null==(o=v.current)?void 0:o.value,prevPath:p(),currPath:f(),goToPath:h,setTextAreaValue:E,injectMessage:s,simulateStreamMessage:c,streamMessage:u,removeMessage:A,endStreamMessage:d,toggleChatWindow:k,showToast:y,dismissToast:w,files:l})}},multiple:null==(o=i.fileAttachment)?void 0:o.multiple,accept:null==(a=i.fileAttachment)?void 0:a.accept,disabled:!g}),(()=>{var e,t;const n=g?null==(e=i.fileAttachment)?void 0:e.icon:null==(t=i.fileAttachment)?void 0:t.iconDisabled;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:g?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:rA.jsx(n,{style:g?P:B})}):rA.jsx("span",{className:g?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:g?P:B})})()]})},Kv=()=>{var e,t,n,r,o,a;const{settings:i}=cm(),{styles:l}=fm(),{syncedTextAreaDisabledRef:s}=wm(),{inputRef:c}=mm(),{textAreaDisabled:u,setTextAreaValue:A}=Mv(),d=R.useRef(null),f=R.useRef(null),[p,h]=R.useState(!1),g={cursor:`url("${null==(e=i.general)?void 0:e.actionDisabledIcon}"), auto`,...l.emojiButtonStyle,...l.emojiButtonDisabledStyle},m={backgroundImage:`url(${null==(t=i.emoji)?void 0:t.icon})`,fill:"#a6a6a6",...l.emojiIconStyle},v={backgroundImage:`url(${null==(n=i.emoji)?void 0:n.icon})`,fill:"#a6a6a6",...l.emojiIconStyle,...l.emojiIconDisabledStyle};R.useEffect(()=>{const e=e=>{const t=e.composedPath();d.current&&!t.includes(d.current)&&f.current&&!t.includes(f.current)&&h(!1)},t=()=>{(()=>{if(d.current&&f.current){const e=f.current.getBoundingClientRect(),t=d.current.offsetHeight,n=e.top-t-8;d.current.style.left=`${e.left}px`,d.current.style.top=`${n}px`}})()};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t)}},[]);return rA.jsxs(rA.Fragment,{children:[rA.jsx("div",{"aria-label":(null==(r=i.ariaLabel)?void 0:r.emojiButton)??"emoji picker",role:"button",ref:f,className:""+(u?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled"),style:u?g:{...l.emojiButtonStyle},onMouseDown:e=>{e.preventDefault(),s.current?h(!1):h(e=>!e)},children:(()=>{var e,t;const n=u?null==(e=i.emoji)?void 0:e.iconDisabled:null==(t=i.emoji)?void 0:t.icon;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:""+(u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled"),children:rA.jsx(n,{style:u?v:m})}):rA.jsx("span",{className:""+(u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled"),style:u?v:m})})()}),p&&rA.jsx("div",{className:"rcb-emoji-button-popup",ref:d,children:null==(a=null==(o=i.emoji)?void 0:o.list)?void 0:a.map((e,t)=>rA.jsx("span",{className:"rcb-emoji",onMouseDown:t=>((e,t)=>{e.preventDefault(),c.current&&(A(c.current.value+t),setTimeout(()=>{const e=c.current;if(e){e.focus();const t=e.value.length;e.setSelectionRange(t,t)}},50)),h(!1)})(t,e),children:e},t))})]})},Jv=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{audioToggledOn:a,toggleAudio:i}=yv(),l={backgroundImage:`url(${null==(e=r.audio)?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},s={backgroundImage:`url(${null==(t=r.audio)?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return rA.jsx("div",{"aria-label":(null==(n=r.ariaLabel)?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async e=>{e.preventDefault(),await i()},style:a?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var e,t;const n=a?null==(e=r.audio)?void 0:e.icon:null==(t=r.audio)?void 0:t.iconDisabled;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:rA.jsx(n,{style:a?l:s,"data-testid":"rcb-audio-icon-svg"})}):rA.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:a?l:s})})()})},Zv=()=>{var e,t;const{settings:n}=cm(),{styles:r}=fm(),{toggleChatWindow:o}=Tm(),a={backgroundImage:`url(${null==(e=n.header)?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return rA.jsx("div",{"aria-label":(null==(t=n.ariaLabel)?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:e=>{e.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var e;const t=null==(e=n.header)?void 0:e.closeChatIcon;return t&&"string"!=typeof t?t&&rA.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:rA.jsx(t,{style:a})}):rA.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:a})})()})},$v=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{notificationsToggledOn:a,toggleNotifications:i}=(()=>{const{notificationsToggledOn:e,toggleNotifications:t,playNotificationSound:n}=vv();return{notificationsToggledOn:e,toggleNotifications:t,playNotificationSound:n}})(),l={backgroundImage:`url(${null==(e=r.notification)?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},s={backgroundImage:`url(${null==(t=r.notification)?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return rA.jsx("div",{"aria-label":(null==(n=r.ariaLabel)?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async e=>{e.preventDefault(),await i()},style:a?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var e,t;const n=a?null==(e=r.notification)?void 0:e.icon:null==(t=r.notification)?void 0:t.iconDisabled;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:rA.jsx(n,{style:a?l:s,"data-testid":"rcb-notification-icon-svg"})}):rA.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:a?l:s})})()})},eb=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{injectMessage:a}=wv(),{inputRef:i}=mm(),{voiceToggledOn:l,toggleVoice:s}=Qv(),{setInputLength:c,setTextAreaValue:u,textAreaDisabled:A}=Mv(),{handleSubmitText:d}=zv(),f=R.useRef([]),[p,h]=R.useState(!1);R.useEffect(()=>{var e;null!=(e=r.voice)&&e.sendAsAudio?(b(),f.current=[]):d()},[p]),R.useEffect(()=>{l?((e,t,n,r,o,a,i)=>{var l;null!=(l=e.voice)&&l.sendAsAudio?Dv(n,a):Bv(e,t,n,r,o,i)})(r,s,v,u,c,f,i):Tv()},[l]);const g={backgroundImage:`url(${null==(e=r.voice)?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},m={backgroundImage:`url(${null==(t=r.voice)?void 0:t.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},v=()=>{h(e=>!e)},b=async()=>{const e=new Blob(f.current,{type:"audio/wav"}),t=new File([e],"voice-input.wav",{type:"audio/wav"}),n=await Gv(t);!n.fileType||!n.fileUrl||await a(rA.jsx(Yv,{file:t,fileType:n.fileType,fileUrl:n.fileUrl}),"USER")};return rA.jsx("div",{"aria-label":(null==(n=r.ariaLabel)?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async e=>{e.preventDefault(),!A&&await s()},style:l&&!A?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:l&&!A?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var e,t;const n=l?null==(e=r.voice)?void 0:e.icon:null==(t=r.voice)?void 0:t.iconDisabled;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:"rcb-voice-icon "+(l&&!A?"on":""),children:rA.jsx(n,{style:l&&!A?g:m})}):rA.jsx("span",{className:"rcb-voice-icon"+(l&&!A?"-on":""),"data-testid":"rcb-voice-icon",style:l&&!A?g:m})})()})},tb=()=>{var e,t,n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),{textAreaDisabled:u}=wm(),[A,d]=R.useState(!1),{handleSubmitText:f}=zv(),p={backgroundColor:null==(e=s.general)?void 0:e.primaryColor,...c.sendButtonStyle},h={cursor:`url("${null==(t=s.general)?void 0:t.actionDisabledIcon}"), auto`,backgroundColor:null==(n=s.general)?void 0:n.primaryColor,...c.sendButtonStyle,...c.sendButtonDisabledStyle},g={backgroundColor:null==(r=s.general)?void 0:r.secondaryColor,...c.sendButtonStyle,...c.sendButtonHoveredStyle},m={backgroundImage:`url(${null==(o=s.chatInput)?void 0:o.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle},v={backgroundImage:`url(${null==(a=s.chatInput)?void 0:a.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconDisabledStyle},b={backgroundImage:`url(${null==(i=s.chatInput)?void 0:i.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconHoveredStyle};return rA.jsx("div",{"aria-label":(null==(l=s.ariaLabel)?void 0:l.sendButton)??"send message",role:"button",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},onMouseDown:async e=>{null==e||e.preventDefault(),!u&&await f()},style:u?h:A?g:p,className:"rcb-send-button",children:(()=>{var e;const t=null==(e=s.chatInput)?void 0:e.sendButtonIcon;return t&&"string"!=typeof t?t&&rA.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:rA.jsx(t,{style:u?v:A?b:m})}):rA.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:u?v:A?b:m})})()})},nb=(e,t)=>{var n,r,o,a,i,l,s,c,u;const A={[Gg.AUDIO_BUTTON]:null==(n=e.audio)?void 0:n.disabled,[Gg.CLOSE_CHAT_BUTTON]:null==(r=e.general)?void 0:r.embedded,[Gg.EMOJI_PICKER_BUTTON]:null==(o=e.emoji)?void 0:o.disabled,[Gg.FILE_ATTACHMENT_BUTTON]:null==(a=e.fileAttachment)?void 0:a.disabled,[Gg.NOTIFICATION_BUTTON]:null==(i=e.notification)?void 0:i.disabled,[Gg.SEND_MESSAGE_BUTTON]:!1,[Gg.VOICE_MESSAGE_BUTTON]:null==(l=e.voice)?void 0:l.disabled},d={},f=e=>e?e.map(e=>{if("string"==typeof e){if((e=>Object.values(Gg).includes(e))(e)&&!A[e]){if(d[e])return d[e];const n=t[e];if("function"==typeof n){const t=n();return d[e]=t,t}return null}return null}return e}).filter(e=>null!==e):[];return{header:f(null==(s=e.header)?void 0:s.buttons),chatInput:f(null==(c=e.chatInput)?void 0:c.buttons),footer:f(null==(u=e.footer)?void 0:u.buttons)}},rb=()=>{const{settings:e}=cm(),t=R.useMemo(()=>({[Gg.CLOSE_CHAT_BUTTON]:()=>rA.jsx(Zv,{}),[Gg.AUDIO_BUTTON]:()=>rA.jsx(Jv,{}),[Gg.NOTIFICATION_BUTTON]:()=>rA.jsx($v,{}),[Gg.EMOJI_PICKER_BUTTON]:()=>rA.jsx(Kv,{}),[Gg.FILE_ATTACHMENT_BUTTON]:()=>rA.jsx(Xv,{}),[Gg.SEND_MESSAGE_BUTTON]:()=>rA.jsx(tb,{}),[Gg.VOICE_MESSAGE_BUTTON]:()=>rA.jsx(eb,{})}),[]),{header:n,chatInput:r,footer:o}=R.useMemo(()=>nb(e,t),[e,t]);return{headerButtons:R.useMemo(()=>n,[n]),chatInputButtons:R.useMemo(()=>r,[r]),footerButtons:R.useMemo(()=>o,[o])}},ob=()=>{const{settings:e}=cm(),{styles:t}=fm(),{setSyncedMessages:n,syncedMessagesRef:r}=Mm(),{isLoadingChatHistory:o,setIsLoadingChatHistory:a,hasChatHistoryLoaded:i,setHasChatHistoryLoaded:l}=wm(),{chatBodyRef:s}=mm(),{dispatchRcbEvent:c}=Dm(),u=R.useCallback(async()=>{var o,i;const u=lv();if(!u||null!=(o=e.event)&&o.rcbLoadChatHistory&&(await c(km.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;a(!0);const A=(null==(i=s.current)?void 0:i.scrollHeight)??0;((e,t,n,r,o,a,i,l,s)=>{var c;if(tv=!0,null!=n)try{const c=$m(rA.jsx(Jm,{}),"SYSTEM"),u=o.current.slice(1);r([c,...u]);const A=n.map(n=>{if("object"===n.type){const r=dv(n.content,e,t);return{...n,content:r}}return n});setTimeout(()=>{var t;const n=o.current.slice(1);let a=null!=(t=e.chatHistory)&&t.autoLoad?$m(rA.jsx(rA.Fragment,{}),"SYSTEM"):$m(rA.jsx(Km,{}),"SYSTEM");r([...A,a,...n]),s(!0)},500),setTimeout(()=>{if(!a.current)return;const{scrollHeight:e}=a.current,t=e-i;a.current.scrollTop+=t,l(!1)},510)}catch{ev.removeItem(null==(c=e.chatHistory)?void 0:c.storageKey)}})(e,t,u,n,r,s,A,a,l)},[e,t,c,r,s,a,l]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:a,hasChatHistoryLoaded:i,showChatHistory:u}},ab=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{showChatHistory:a}=ob(),[i,l]=R.useState(!1),s={color:null==(e=r.general)?void 0:e.primaryColor,borderColor:null==(t=r.general)?void 0:t.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return rA.jsx("div",{className:"rcb-view-history-container",children:rA.jsx("div",{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},style:i?s:{...o.chatHistoryButtonStyle},onMouseDown:e=>{e.preventDefault(),a()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:rA.jsx("p",{children:null==(n=r.chatHistory)?void 0:n.viewChatHistoryButtonText})})})},ib=()=>{var e,t,n,r;const o=jv(),{settings:a}=cm(),{replaceMessages:i}=wv(),{isBotTyping:l,isChatWindowOpen:s,setUnreadCount:c,setSyncedIsChatWindowOpen:u,setSyncedTextAreaDisabled:A,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:f,setSyncedIsScrolling:p,syncedIsScrollingRef:h,syncedIsChatWindowOpenRef:g}=wm(),{chatBodyRef:m}=mm(),{viewportHeight:v,setViewportHeight:b,setViewportWidth:y,scrollToBottom:w}=Tm(),{setUpNotifications:x}=vv(),{handleFirstInteraction:k}=(()=>{var e;const{settings:t}=cm(),{hasInteractedPage:n,setHasInteractedPage:r,hasFlowStarted:o,setHasFlowStarted:a}=wm(),i=R.useCallback(()=>{var e;if(r(!0),!o&&"ON_PAGE_INTERACT"===(null==(e=t.general)?void 0:e.flowStartTrigger)&&a(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const n=new window.SpeechSynthesisUtterance;n.text="",n.onend=()=>{window.removeEventListener("click",i),window.removeEventListener("keydown",i),window.removeEventListener("touchstart",i)},window.speechSynthesis.speak(n)},[o,null==(e=t.general)?void 0:e.flowStartTrigger]);return{hasInteractedPage:n,handleFirstInteraction:i}})(),{showChatHistory:E}=ob(),S=R.useRef(0),C=R.useRef(!1);R.useEffect(()=>(window.addEventListener("click",k),window.addEventListener("keydown",k),window.addEventListener("touchstart",k),()=>{window.removeEventListener("click",k),window.removeEventListener("keydown",k),window.removeEventListener("touchstart",k)}),[]),R.useEffect(()=>{const e=m.current;if(!e)return;const t=()=>{C.current||(C.current=!0,requestAnimationFrame(()=>{var t,n;if(!e)return;const{scrollTop:r,clientHeight:o,scrollHeight:i}=e,l=r+o<i-((null==(t=a.chatWindow)?void 0:t.messagePromptOffset)??30);p(l),h.current=l,l||(r+o>=i-1&&(e.scrollTop=i-o-1),(g.current||null!=(n=a.general)&&n.embedded)&&c(0)),C.current=!1}))};return e.addEventListener("wheel",t,{passive:!0}),e.addEventListener("touchmove",t,{passive:!0}),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchmove",t)}},[]),R.useEffect(()=>{var e,t,n;A(null==(e=a.chatInput)?void 0:e.disabled),u(null==(t=a.chatWindow)?void 0:t.defaultOpen),d(null==(n=a.audio)?void 0:n.defaultToggledOn),setTimeout(()=>{var e;f(null==(e=a.voice)?void 0:e.defaultToggledOn)},1)},[]),R.useEffect(()=>{var e;null!=(e=a.notification)&&e.disabled||x()},[null==(e=a.notification)?void 0:e.disabled]),R.useEffect(()=>{!h.current&&null!=m&&m.current&&w()},[l]),R.useEffect(()=>{var e,t;if(null!=(e=a.chatHistory)&&e.disabled)ev&&ev.removeItem(nv);else if(uv(a),lv().length>0){const e=$m(rA.jsx(ab,{}),"SYSTEM");i([e]),null!=(t=a.chatHistory)&&t.autoLoad&&E()}},[null==(t=a.chatHistory)?void 0:t.storageKey,null==(n=a.chatHistory)?void 0:n.maxEntries,null==(r=a.chatHistory)?void 0:r.disabled]),R.useEffect(()=>{var e;o||null!=(e=a.general)&&e.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",e=>{if(!e.target)return;const{x:t,y:n,width:r,height:o}=e.target.boundingRect;0==t&&0==n&&0==r&&0==o?(setTimeout(()=>{var e;b(null==(e=window.visualViewport)?void 0:e.height)},101),setTimeout(()=>{var e,t;v!=(null==(e=window.visualViewport)?void 0:e.height)&&b(null==(t=window.visualViewport)?void 0:t.height)},1001)):setTimeout(()=>{var e;b((null==(e=window.visualViewport)?void 0:e.height)-o)},101)}))},[o]),R.useEffect(()=>{var e,t,n,r;if(o)return;s&&(b(null==(e=window.visualViewport)?void 0:e.height),y(null==(t=window.visualViewport)?void 0:t.width));const a=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),i=()=>S.current=window.scrollY,l=()=>{var e,t;b(null==(e=window.visualViewport)?void 0:e.height),y(null==(t=window.visualViewport)?void 0:t.width)},c=()=>{var e;window.removeEventListener("scroll",a),window.removeEventListener("scroll",i),null==(e=window.visualViewport)||e.removeEventListener("resize",l)};return s?(c(),document.body.style.position="fixed",window.addEventListener("scroll",a),null==(n=window.visualViewport)||n.addEventListener("resize",l)):(document.body.style.position="static",c(),window.scrollTo({top:S.current,left:0,behavior:"auto"}),window.addEventListener("scroll",i),null==(r=window.visualViewport)||r.removeEventListener("resize",l)),c},[s,o])},lb="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",sb="2592000",cb="RCB_THEME_CACHE_DATA",ub=async(e,t)=>{const{id:n,version:r,baseUrl:o=lb,cacheDuration:a=sb}=t,i=r||await(async(e,t)=>{const n=`${t}/${e}/meta.json`;try{const e=await fetch(n);return e.ok?(await e.json()).version:(console.error(`Failed to fetch meta.json from ${n}`),null)}catch(e){return console.error(`Failed to fetch meta.json from ${n}`,e),null}})(n,o);if(!i)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const l=((e,t,n)=>{const r=localStorage.getItem(`${cb}_${e}_${t}`);if(!r)return null;try{const e=JSON.parse(r),t=(new Date).getTime(),o=Math.floor(t/1e3);return e.cacheDate+n>=o?e:null}catch(t){return console.error(`Unable to fetch cache for ${e}`,t),null}})(n,i,a);if(l){const t=Ab(e,l.cssStylesText);return{settings:l.settings,inlineStyles:l.inlineStyles,cssStylesText:t}}const s=`${o}/${n}/${i}/styles.css`,c=`${o}/${n}/${i}/settings.json`,u=`${o}/${n}/${i}/styles.json`;let A="";const d=await fetch(s);d.ok?A=await d.text():console.info(`Could not fetch styles.css from ${s}`);const f=await fetch(c);let p={};f.ok?p=await f.json():console.info(`Could not fetch settings.json from ${c}`);const h=await fetch(u);let g={};h.ok?g=await h.json():console.info(`Could not fetch styles.json from ${u}`),((e,t,n,r,o)=>{const a=(new Date).getTime(),i={settings:n,inlineStyles:r,cssStylesText:o,cacheDate:Math.floor(a/1e3)};localStorage.setItem(`${cb}_${e}_${t}`,JSON.stringify(i))})(n,i,p,g,A);return{settings:p,inlineStyles:g,cssStylesText:Ab(e,A)}},Ab=(e,t)=>t.split(new RegExp("(?<=})")).map(t=>{const n=t.trim();return n.startsWith("@import")||n.startsWith("@keyframes")||n.startsWith("@media")?n:n?`#${e} ${n}`:""}).join("\n"),db=async(e,t,n,r)=>{var o,a;let i=pb(lm),l=pb(Am),s="";if(null!=r)if(Array.isArray(r))for(const t of r){const n=await ub(e,t);i=fb(n.settings,i),l=fb(n.inlineStyles,l),s+=n.cssStylesText}else{const t=await ub(e,r);i=fb(t.settings,i),l=fb(t.inlineStyles,l),s+=t.cssStylesText}return null!=t&&(i=fb(t,i)),null!=n&&(l=fb(n,l)),null!=(null==(o=i.chatInput)?void 0:o.botDelay)&&(null==(a=i.chatInput)?void 0:a.botDelay)<500&&(i.chatInput.botDelay=500),{settings:i,inlineStyles:l,cssStylesText:s}},fb=(e,t)=>{const n=[{source:e,target:t}];for(;n.length;){const e=n.pop();if(null==e)continue;const{source:t,target:r}=e;for(const e of Object.keys(t)){const o=e;if(R.isValidElement(t[o]))r[o]=t[o];else if("object"!=typeof t[o]||null===t[o]||Array.isArray(t[o]))try{r[o]=t[o]}catch{}else("object"!=typeof r[o]||null===r[o])&&(r[o]={}),n.push({source:t[o],target:r[o]})}}return t},pb=e=>{if(null===e||"object"!=typeof e)return e;const t=Array.isArray(e)?[]:{},n=[{source:e,target:t}],r=new WeakMap;for(r.set(e,t);n.length;){const e=n.pop();if(null==e)continue;const{source:t,target:o}=e;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const a=t[e];if(a&&"object"==typeof a)if(r.has(a))o[e]=r.get(a);else{const t=Array.isArray(a)?[]:{};r.set(a,t),o[e]=t,n.push({source:a,target:t})}else o[e]=a}}return t},hb=()=>{const{settings:e,setSyncedSettings:t,syncedSettingsRef:n}=cm(),r=R.useCallback(n=>{!n||0===Object.keys(n).length||t(pb(fb(n,e)))},[e]),o=R.useCallback(e=>{const r="function"==typeof e?e(n.current):e;t(r)},[n]);return{settings:e,replaceSettings:o,updateSettings:r}},gb=()=>{const{styles:e,setSyncedStyles:t,syncedStylesRef:n}=fm(),r=R.useCallback(n=>{!n||0===Object.keys(n).length||t(pb(fb(n,e)))},[e]),o=R.useCallback(e=>{const r="function"==typeof e?e(n.current):e;t(r)},[n]);return{styles:e,replaceStyles:o,updateStyles:r}},mb=({plugins:e,slots:t})=>{var n,r;const o=jv(),{settings:a}=cm(),{styles:i}=fm(),{hasFlowStarted:l,setHasFlowStarted:s}=wm(),{inputRef:c}=mm(),{viewportHeight:u,viewportWidth:A,isChatWindowOpen:d}=Tm(),{goToPath:f}=Fv(),{headerButtons:p,chatInputButtons:h,footerButtons:g}=rb();ib(),(e=>{const{updateSettings:t}=hb(),{updateStyles:n}=gb(),r=null==e?void 0:e.map(e=>e());R.useEffect(()=>{let e={},o={};null==r||r.forEach(t=>{null!=t&&t.settings&&0!==Object.keys(null==t?void 0:t.settings).length&&(e=fb(t.settings,e)),null!=t&&t.styles&&0!==Object.keys(null==t?void 0:t.styles).length&&(o=fb(t.styles,o))}),t(e),n(o)},[])})(e),R.useEffect(()=>{var e;(l||"ON_LOAD"===(null==(e=a.general)?void 0:e.flowStartTrigger))&&f("start")},[l,null==(n=a.general)?void 0:n.flowStartTrigger]);const m=R.useMemo(()=>{var e;const t="rcb-chatbot-global ";return null!=(e=a.general)&&e.embedded?t+"rcb-window-embedded":d?t+"rcb-window-open":t+"rcb-window-close"},[a,d]);return rA.jsx(rA.Fragment,{children:(()=>{var e,t;return o&&(null==(e=a.device)?void 0:e.desktopEnabled)||!o&&(null==(t=a.device)?void 0:t.mobileEnabled)})()&&rA.jsxs("div",{onMouseDown:e=>{var t,n;!l&&"ON_CHATBOT_INTERACT"===(null==(t=a.general)?void 0:t.flowStartTrigger)&&s(!0),o?null==(n=c.current)||n.blur():null==e||e.preventDefault()},className:m,children:[rA.jsx(qv,{}),rA.jsx(Uv,{}),d&&!o&&!(null!=(r=a.general)&&r.embedded)&&rA.jsxs(rA.Fragment,{children:[rA.jsx("style",{children:"\n\t\t\t\t\t\t\t\t\thtml {\n\t\t\t\t\t\t\t\t\t\toverflow: hidden !important;\n\t\t\t\t\t\t\t\t\t\ttouch-action: none !important;\n\t\t\t\t\t\t\t\t\t\tscroll-behavior: auto !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t"}),rA.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),rA.jsx("div",{style:(()=>{var e,t;return o||null!=(e=a.general)&&e.embedded?null!=(t=a.general)&&t.embedded?{...i.chatWindowStyle}:{...i.chatWindowStyle,zIndex:1e4}:{...i.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${A}px`,height:`${u}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var e,n,r;const o=(null==t?void 0:t.chatBotHeader)||hm,i=(null==t?void 0:t.chatBotBody)||Fm,l=(null==t?void 0:t.chatBotInput)||Hv,s=(null==t?void 0:t.chatBotFooter)||_v;return rA.jsxs(rA.Fragment,{children:[(null==(e=a.general)?void 0:e.showHeader)&&rA.jsx(o,{buttons:p}),rA.jsx(i,{}),rA.jsx(Wv,{}),(null==(n=a.general)?void 0:n.showInputRow)&&rA.jsx(l,{buttons:h}),(null==(r=a.general)?void 0:r.showFooter)&&rA.jsx(s,{buttons:g})]})})()})]})})},vb=R.createContext(void 0),bb=()=>R.useContext(vb),yb=({children:e})=>{var t;const n=R.useRef(""),r=R.useRef({}),[o,a,i]=bm({}),[l,s,c]=bm({}),[u,A]=R.useState(!1);R.useEffect(()=>{A(!0)},[]);return u?rA.jsx("div",{style:{fontFamily:null==(t=o.general)?void 0:t.fontFamily},children:rA.jsx(vb.Provider,{value:{loadConfig:async(e,t,o,i,l,c)=>{n.current=e,r.current=t;const u=await db(e,o,i,l);c.current&&(c.current.textContent=u.cssStylesText),a(u.settings),s(u.inlineStyles)}},children:rA.jsx(um,{settings:o,setSyncedSettings:a,syncedSettingsRef:i,children:rA.jsx(pm,{styles:l,setSyncedStyles:s,syncedStylesRef:c,children:rA.jsx(Nv,{children:rA.jsx(vm,{botIdRef:n,flowRef:r,children:rA.jsx(Bm,{children:rA.jsx(xm,{settings:o,children:rA.jsx(Lm,{children:e})})})})})})})})}):null},wb=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:a,setConfigLoaded:i,styleRootRef:l})=>{const s=R.useMemo(()=>e,[]),c=bb(),{flowRef:u}=mm();u&&u.current!==t&&(u.current=t);return R.useEffect(()=>{(async()=>{var e,u;null!=(e=n.event)&&e.rcbPreLoadChatBot&&(await Sm(km.PRE_LOAD_CHATBOT,{botId:s,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:a})).defaultPrevented||(null!=c&&c.loadConfig&&(await c.loadConfig(s,t,n,r,o,l),i(!0)),null!=(u=n.event)&&u.rcbPostLoadChatBot&&Sm(km.POST_LOAD_CHATBOT,{botId:s,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:a}))})()},[o]),null},xb=["Quickstart","API Docs","Examples","Github","Discord"],kb={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:xb,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:xb,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:xb,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let t="";switch(e.userInput){case"Quickstart":t="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":t="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":t="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":t="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":t="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(t)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},Eb=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:a,slots:i})=>{const l=R.useMemo(()=>e||"rcb-"+Zm(),[]),s=t&&0!==Object.keys(t).length?t:kb,c=n||{},u=r||{},A=a||[],[d,f]=R.useState(!1),p=bb(),h=R.useRef(null),[g,m]=R.useState(o||[]);R.useEffect(()=>{o&&m(o)},[o]);const v=()=>rA.jsxs(rA.Fragment,{children:[rA.jsx(wb,{styleRootRef:h,id:l,flow:s,settings:c,styles:u,themes:g,plugins:A,setConfigLoaded:f}),d&&rA.jsx(mb,{plugins:a,slots:i})]});return null==p?rA.jsxs(yb,{children:[rA.jsx("style",{ref:h}),rA.jsx("div",{id:l,children:v()})]}):rA.jsxs(rA.Fragment,{children:[rA.jsx("style",{ref:h}),rA.jsx("div",{id:l,children:v()})]})},Sb=()=>{const{getBotId:e}=(()=>{const{botIdRef:e}=mm();return{getBotId:R.useCallback(()=>e.current,[e])}})();return{getBotId:e}},Cb=()=>{const{hasFlowStarted:e,restartFlow:t,getFlow:n}=(()=>{const{replaceMessages:e}=wv(),{replacePaths:t,goToPath:n}=Fv(),{replaceToasts:r}=Rv(),{hasFlowStarted:o}=wm(),{flowRef:a,timeoutIdRef:i}=mm(),{settings:l}=cm();return{hasFlowStarted:o,restartFlow:R.useCallback(async()=>{uv(l),i.current&&clearTimeout(i.current),e([]),r([]),t([]),await n("start")},[i,l,e,r,t,uv,n]),getFlow:R.useCallback(()=>(null==a?void 0:a.current)??{},[a])}})();return{hasFlowStarted:e,restartFlow:t,getFlow:n}},Pb=()=>{const{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:a,replaceMessages:i}=wv();return{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:a,replaceMessages:i}},Bb=(e,t)=>{const{getBotId:n}=Sb();R.useEffect(()=>{const r=e=>{e.detail.botId===n()&&t(e)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[n,e,t])},Db=()=>{const{settings:e,replaceSettings:t,updateSettings:n}=hb();return{settings:e,replaceSettings:t,updateSettings:n}},Tb=()=>{const{showChatHistory:e,hasChatHistoryLoaded:t}=ob();return{showChatHistory:e,getHistoryMessages:lv,setHistoryMessages:sv,hasChatHistoryLoaded:t}},Ib={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 Qb(e){return t=>{Ib[t]={...e,...Ib[t]}}}["address","main","div","figure","p","pre"].forEach(Qb({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(Qb({content:8,type:73})),["p","pre"].forEach(Qb({content:8,type:65})),["s","small","span","del","ins"].forEach(Qb({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Qb({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Qb({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Qb({type:89}));const Mb=Object.freeze(Ib),Lb=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Ob=Object.keys(Mb).filter(e=>"canvas"!==e&&"iframe"!==e),Nb=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}),Rb=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function Fb(){return Fb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fb.apply(this,arguments)}function zb({attributes:e={},className:t,children:n=null,selfClose:r=!1,tagName:o}){const a=o;return r?F.createElement(a,Fb({className:t},e)):F.createElement(a,Fb({className:t},e),n)}class jb{attribute(e,t){return t}node(e,t){return t}}function Hb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
29
+ */function vf(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var bf=null,yf=0;function wf(e,t){if(0!==t.length)if(512<t.length)0<yf&&(e.enqueue(new Uint8Array(bf.buffer,0,yf)),bf=new Uint8Array(512),yf=0),e.enqueue(t);else{var n=bf.length-yf;n<t.length&&(0===n?e.enqueue(bf):(bf.set(t.subarray(0,n),yf),e.enqueue(bf),t=t.subarray(n)),bf=new Uint8Array(512),yf=0),bf.set(t,yf),yf+=t.length}}function xf(e,t){return wf(e,t),!0}function kf(e){bf&&0<yf&&(e.enqueue(new Uint8Array(bf.buffer,0,yf)),bf=null,yf=0)}var Ef=new TextEncoder;function Sf(e){return Ef.encode(e)}function Cf(e){return Ef.encode(e)}function Pf(e,t){"function"==typeof e.error?e.error(t):e.close()}var Bf=Object.prototype.hasOwnProperty,Df=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Tf={},If={};function Qf(e){return!!Bf.call(If,e)||!Bf.call(Tf,e)&&(Df.test(e)?If[e]=!0:(Tf[e]=!0,!1))}function Mf(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Lf={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lf[e]=new Mf(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lf[t]=new Mf(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lf[e]=new Mf(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lf[e]=new Mf(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lf[e]=new Mf(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Lf[e]=new Mf(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Lf[e]=new Mf(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Lf[e]=new Mf(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Lf[e]=new Mf(e,5,!1,e.toLowerCase(),null,!1,!1)});var Of=/[\-:]([a-z])/g;function Nf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Of,Nf);Lf[t]=new Mf(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Of,Nf);Lf[t]=new Mf(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Of,Nf);Lf[t]=new Mf(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Lf[e]=new Mf(e,1,!1,e.toLowerCase(),null,!1,!1)}),Lf.xlinkHref=new Mf("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Lf[e]=new Mf(e,1,!1,e.toLowerCase(),null,!0,!0)});var Rf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ff=["Webkit","ms","Moz","O"];Object.keys(Rf).forEach(function(e){Ff.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rf[t]=Rf[e]})});var zf=/["'&<>]/;function jf(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=zf.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var Hf=/([A-Z])/g,_f=/^ms-/,Uf=Array.isArray,qf=Cf("<script>"),Vf=Cf("<\/script>"),Wf=Cf('<script src="'),Yf=Cf('<script type="module" src="'),Gf=Cf('" async=""><\/script>'),Xf=/(<\/|<)(s)(cript)/gi;function Kf(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function Jf(e,t){return{insertionMode:e,selectedValue:t}}var Zf=Cf("\x3c!-- --\x3e");function $f(e,t,n,r){return""===t?r:(r&&e.push(Zf),e.push(Sf(jf(t))),!0)}var ep=new Map,tp=Cf(' style="'),np=Cf(":"),rp=Cf(";");function op(e,t,n){if("object"!=typeof n)throw Error(vf(62));for(var r in t=!0,n)if(Bf.call(n,r)){var o=n[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var a=Sf(jf(r));o=Sf(jf((""+o).trim()))}else{a=r;var i=ep.get(a);void 0!==i||(i=Cf(jf(a.replace(Hf,"-$1").toLowerCase().replace(_f,"-ms-"))),ep.set(a,i)),a=i,o="number"==typeof o?0===o||Bf.call(Rf,r)?Sf(""+o):Sf(o+"px"):Sf(jf((""+o).trim()))}t?(t=!1,e.push(tp,a,np,o)):e.push(rp,a,np,o)}}t||e.push(lp)}var ap=Cf(" "),ip=Cf('="'),lp=Cf('"'),sp=Cf('=""');function cp(e,t,n,r){switch(n){case"style":return void op(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=Lf.hasOwnProperty(n)?Lf[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=Sf(t.attributeName),t.type){case 3:r&&e.push(ap,n,sp);break;case 4:!0===r?e.push(ap,n,sp):!1!==r&&e.push(ap,n,ip,Sf(jf(r)),lp);break;case 5:isNaN(r)||e.push(ap,n,ip,Sf(jf(r)),lp);break;case 6:!isNaN(r)&&1<=r&&e.push(ap,n,ip,Sf(jf(r)),lp);break;default:t.sanitizeURL&&(r=""+r),e.push(ap,n,ip,Sf(jf(r)),lp)}}else if(Qf(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(ap,Sf(n),ip,Sf(jf(r)),lp)}}var up=Cf(">"),Ap=Cf("/>");function dp(e,t,n){if(null!=t){if(null!=n)throw Error(vf(60));if("object"!=typeof t||!("__html"in t))throw Error(vf(61));null!=(t=t.__html)&&e.push(Sf(""+t))}}var fp=Cf(' selected=""');function pp(e,t,n,r){e.push(vp(n));var o,a=n=null;for(o in t)if(Bf.call(t,o)){var i=t[o];if(null!=i)switch(o){case"children":n=i;break;case"dangerouslySetInnerHTML":a=i;break;default:cp(e,r,o,i)}}return e.push(up),dp(e,a,n),"string"==typeof n?(e.push(Sf(jf(n))),null):n}var hp=Cf("\n"),gp=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,mp=new Map;function vp(e){var t=mp.get(e);if(void 0===t){if(!gp.test(e))throw Error(vf(65,e));t=Cf("<"+e),mp.set(e,t)}return t}var bp=Cf("<!DOCTYPE html>");function yp(e,t,n,r,o){switch(t){case"select":e.push(vp("select"));var a=null,i=null;for(u in n)if(Bf.call(n,u)){var l=n[u];if(null!=l)switch(u){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;case"defaultValue":case"value":break;default:cp(e,r,u,l)}}return e.push(up),dp(e,i,a),a;case"option":i=o.selectedValue,e.push(vp("option"));var s=l=null,c=null,u=null;for(a in n)if(Bf.call(n,a)){var A=n[a];if(null!=A)switch(a){case"children":l=A;break;case"selected":c=A;break;case"dangerouslySetInnerHTML":u=A;break;case"value":s=A;default:cp(e,r,a,A)}}if(null!=i)if(n=null!==s?""+s:function(e){var t="";return mf.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(l),Uf(i)){for(r=0;r<i.length;r++)if(""+i[r]===n){e.push(fp);break}}else""+i===n&&e.push(fp);else c&&e.push(fp);return e.push(up),dp(e,u,l),l;case"textarea":for(l in e.push(vp("textarea")),u=i=a=null,n)if(Bf.call(n,l)&&null!=(s=n[l]))switch(l){case"children":u=s;break;case"value":a=s;break;case"defaultValue":i=s;break;case"dangerouslySetInnerHTML":throw Error(vf(91));default:cp(e,r,l,s)}if(null===a&&null!==i&&(a=i),e.push(up),null!=u){if(null!=a)throw Error(vf(92));if(Uf(u)&&1<u.length)throw Error(vf(93));a=""+u}return"string"==typeof a&&"\n"===a[0]&&e.push(hp),null!==a&&e.push(Sf(jf(""+a))),null;case"input":for(i in e.push(vp("input")),s=u=l=a=null,n)if(Bf.call(n,i)&&null!=(c=n[i]))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(vf(399,"input"));case"defaultChecked":s=c;break;case"defaultValue":l=c;break;case"checked":u=c;break;case"value":a=c;break;default:cp(e,r,i,c)}return null!==u?cp(e,r,"checked",u):null!==s&&cp(e,r,"checked",s),null!==a?cp(e,r,"value",a):null!==l&&cp(e,r,"value",l),e.push(Ap),null;case"menuitem":for(var d in e.push(vp("menuitem")),n)if(Bf.call(n,d)&&null!=(a=n[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(vf(400));default:cp(e,r,d,a)}return e.push(up),null;case"title":for(A in e.push(vp("title")),a=null,n)if(Bf.call(n,A)&&null!=(i=n[A]))switch(A){case"children":a=i;break;case"dangerouslySetInnerHTML":throw Error(vf(434));default:cp(e,r,A,i)}return e.push(up),a;case"listing":case"pre":for(s in e.push(vp(t)),i=a=null,n)if(Bf.call(n,s)&&null!=(l=n[s]))switch(s){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;default:cp(e,r,s,l)}if(e.push(up),null!=i){if(null!=a)throw Error(vf(60));if("object"!=typeof i||!("__html"in i))throw Error(vf(61));null!=(n=i.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(hp,Sf(n)):e.push(Sf(""+n)))}return"string"==typeof a&&"\n"===a[0]&&e.push(hp),a;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":for(var f in e.push(vp(t)),n)if(Bf.call(n,f)&&null!=(a=n[f]))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(vf(399,t));default:cp(e,r,f,a)}return e.push(Ap),null;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 pp(e,n,t,r);case"html":return 0===o.insertionMode&&e.push(bp),pp(e,n,t,r);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return pp(e,n,t,r);for(c in e.push(vp(t)),i=a=null,n)if(Bf.call(n,c)&&null!=(l=n[c]))switch(c){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;case"style":op(e,r,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Qf(c)&&"function"!=typeof l&&"symbol"!=typeof l&&e.push(ap,Sf(c),ip,Sf(jf(l)),lp)}return e.push(up),dp(e,i,a),a}}var wp=Cf("</"),xp=Cf(">"),kp=Cf('<template id="'),Ep=Cf('"></template>'),Sp=Cf("\x3c!--$--\x3e"),Cp=Cf('\x3c!--$?--\x3e<template id="'),Pp=Cf('"></template>'),Bp=Cf("\x3c!--$!--\x3e"),Dp=Cf("\x3c!--/$--\x3e"),Tp=Cf("<template"),Ip=Cf('"'),Qp=Cf(' data-dgst="');Cf(' data-msg="'),Cf(' data-stck="');var Mp=Cf("></template>");function Lp(e,t,n){if(wf(e,Cp),null===n)throw Error(vf(395));return wf(e,n),xf(e,Pp)}var Op=Cf('<div hidden id="'),Np=Cf('">'),Rp=Cf("</div>"),Fp=Cf('<svg aria-hidden="true" style="display:none" id="'),zp=Cf('">'),jp=Cf("</svg>"),Hp=Cf('<math aria-hidden="true" style="display:none" id="'),_p=Cf('">'),Up=Cf("</math>"),qp=Cf('<table hidden id="'),Vp=Cf('">'),Wp=Cf("</table>"),Yp=Cf('<table hidden><tbody id="'),Gp=Cf('">'),Xp=Cf("</tbody></table>"),Kp=Cf('<table hidden><tr id="'),Jp=Cf('">'),Zp=Cf("</tr></table>"),$p=Cf('<table hidden><colgroup id="'),eh=Cf('">'),th=Cf("</colgroup></table>");var nh=Cf('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)};$RS("'),rh=Cf('$RS("'),oh=Cf('","'),ah=Cf('")<\/script>'),ih=Cf('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()}};$RC("'),lh=Cf('$RC("'),sh=Cf('","'),ch=Cf('")<\/script>'),uh=Cf('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())};$RX("'),Ah=Cf('$RX("'),dh=Cf('"'),fh=Cf(")<\/script>"),ph=Cf(","),hh=/[<\u2028\u2029]/g;function gh(e){return JSON.stringify(e).replace(hh,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw 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 mh=Object.assign,vh=Symbol.for("react.element"),bh=Symbol.for("react.portal"),yh=Symbol.for("react.fragment"),wh=Symbol.for("react.strict_mode"),xh=Symbol.for("react.profiler"),kh=Symbol.for("react.provider"),Eh=Symbol.for("react.context"),Sh=Symbol.for("react.forward_ref"),Ch=Symbol.for("react.suspense"),Ph=Symbol.for("react.suspense_list"),Bh=Symbol.for("react.memo"),Dh=Symbol.for("react.lazy"),Th=Symbol.for("react.scope"),Ih=Symbol.for("react.debug_trace_mode"),Qh=Symbol.for("react.legacy_hidden"),Mh=Symbol.for("react.default_value"),Lh=Symbol.iterator;function Oh(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case yh:return"Fragment";case bh:return"Portal";case xh:return"Profiler";case wh:return"StrictMode";case Ch:return"Suspense";case Ph:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Eh:return(e.displayName||"Context")+".Consumer";case kh:return(e._context.displayName||"Context")+".Provider";case Sh:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Bh:return null!==(t=e.displayName||null)?t:Oh(e.type)||"Memo";case Dh:t=e._payload,e=e._init;try{return Oh(e(t))}catch(e){}}return null}var Nh={};function Rh(e,t){if(!(e=e.contextTypes))return Nh;var n,r={};for(n in e)r[n]=t[n];return r}var Fh=null;function zh(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(vf(401))}else{if(null===n)throw Error(vf(401));zh(e,n)}t.context._currentValue=t.value}}function jh(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&jh(e)}function Hh(e){var t=e.parent;null!==t&&Hh(t),e.context._currentValue=e.value}function _h(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(vf(402));e.depth===t.depth?zh(e,t):_h(e,t)}function Uh(e,t){var n=t.parent;if(null===n)throw Error(vf(402));e.depth===n.depth?zh(e,n):Uh(e,n),t.context._currentValue=t.value}function qh(e){var t=Fh;t!==e&&(null===t?Hh(e):null===e?jh(t):t.depth===e.depth?zh(t,e):t.depth>e.depth?_h(t,e):Uh(t,e),Fh=e)}var Vh={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Wh(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=Vh,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:mh({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Vh.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var l=t[i];null!=(l="function"==typeof l?l.call(e,a,n,r):l)&&(o?(o=!1,a=mh({},a,l)):mh(a,l))}e.state=a}else a.queue=null}var Yh={id:1,overflow:""};function Gh(e,t,n){var r=e.id;e=e.overflow;var o=32-Xh(r)-1;r&=~(1<<o),n+=1;var a=32-Xh(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-Xh(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var Xh=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Kh(e)/Jh|0)|0},Kh=Math.log,Jh=Math.LN2;var Zh="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},$h=null,eg=null,tg=null,ng=null,rg=!1,og=!1,ag=0,ig=null,lg=0;function sg(){if(null===$h)throw Error(vf(321));return $h}function cg(){if(0<lg)throw Error(vf(312));return{memoizedState:null,queue:null,next:null}}function ug(){return null===ng?null===tg?(rg=!1,tg=ng=cg()):(rg=!0,ng=tg):null===ng.next?(rg=!1,ng=ng.next=cg()):(rg=!0,ng=ng.next),ng}function Ag(){eg=$h=null,og=!1,tg=null,lg=0,ng=ig=null}function dg(e,t){return"function"==typeof t?t(e):t}function fg(e,t,n){if($h=sg(),ng=ug(),rg){var r=ng.queue;if(t=r.dispatch,null!==ig&&void 0!==(n=ig.get(r))){ig.delete(r),r=ng.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return ng.memoizedState=r,[r,t]}return[ng.memoizedState,t]}return e=e===dg?"function"==typeof t?t():t:void 0!==n?n(t):t,ng.memoizedState=e,e=(e=ng.queue={last:null,dispatch:null}).dispatch=hg.bind(null,$h,e),[ng.memoizedState,e]}function pg(e,t){if($h=sg(),t=void 0===t?null:t,null!==(ng=ug())){var n=ng.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Zh(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),ng.memoizedState=[e,t],e}function hg(e,t,n){if(25<=lg)throw Error(vf(301));if(e===$h)if(og=!0,e={action:n,next:null},null===ig&&(ig=new Map),void 0===(n=ig.get(t)))ig.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function gg(){throw Error(vf(394))}function mg(){}var vg,bg,yg={readContext:function(e){return e._currentValue},useContext:function(e){return sg(),e._currentValue},useMemo:pg,useReducer:fg,useRef:function(e){$h=sg();var t=(ng=ug()).memoizedState;return null===t?(e={current:e},ng.memoizedState=e):t},useState:function(e){return fg(dg,e)},useInsertionEffect:mg,useLayoutEffect:function(){},useCallback:function(e,t){return pg(function(){return e},t)},useImperativeHandle:mg,useEffect:mg,useDebugValue:mg,useDeferredValue:function(e){return sg(),e},useTransition:function(){return sg(),[!1,gg]},useId:function(){var e=eg.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Xh(e)-1)).toString(32)+t;var n=wg;if(null===n)throw Error(vf(404));return t=ag++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return sg(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(vf(407));return n()}},wg=null,xg=mf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function kg(e){return console.error(e),null}function Eg(){}function Sg(e,t,n,r,o,a,i,l){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&jg(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:l};return o.add(s),s}function Cg(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function Pg(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw 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 e+'" instead');return e}function Bg(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,Pf(e.destination,t)):(e.status=1,e.fatalError=t)}function Dg(e,t,n,r,o){for($h={},eg=t,ag=0,e=n(r,o);og;)og=!1,ag=0,lg+=1,ng=null,e=n(r,o);return Ag(),e}function Tg(e,t,n,r){var o=n.render(),a=r.childContextTypes;if(null!=a){var i=t.legacyContext;if("function"!=typeof n.getChildContext)r=i;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(vf(108,Oh(r)||"Unknown",l));r=mh({},i,n)}t.legacyContext=r,Mg(e,t,o),t.legacyContext=i}else Mg(e,t,o)}function Ig(e,t){if(e&&e.defaultProps){for(var n in t=mh({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Qg(e,t,n,r,o){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){o=Rh(n,t.legacyContext);var a=n.contextType;Wh(a=new n(r,"object"==typeof a&&null!==a?a._currentValue:o),n,r,o),Tg(e,t,a,n)}else{o=Dg(e,t,n,r,a=Rh(n,t.legacyContext));var i=0!==ag;if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof)Wh(o,n,r,a),Tg(e,t,o,n);else if(i){r=t.treeContext,t.treeContext=Gh(r,1,0);try{Mg(e,t,o)}finally{t.treeContext=r}}else Mg(e,t,o)}else{if("string"!=typeof n){switch(n){case Qh:case Ih:case wh:case xh:case yh:case Ph:return void Mg(e,t,r.children);case Th:throw Error(vf(343));case Ch:e:{n=t.blockedBoundary,o=t.blockedSegment,a=r.fallback,r=r.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:i=new Set,errorDigest:null},s=Cg(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(s),o.lastPushedText=!1;var c=Cg(0,0,null,o.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(Og(e,t,r),c.lastPushedText&&c.textEmbedded&&c.chunks.push(Zf),c.status=1,Fg(l,c),0===l.pendingTasks)break e}catch(t){c.status=4,l.forceClientRender=!0,l.errorDigest=Pg(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=Sg(e,a,n,s,i,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case Sh:if(r=Dg(e,t,n.render,r,o),0!==ag){n=t.treeContext,t.treeContext=Gh(n,1,0);try{Mg(e,t,r)}finally{t.treeContext=n}}else Mg(e,t,r);return;case Bh:return void Qg(e,t,n=n.type,r=Ig(n,r),o);case kh:if(o=r.children,n=n._context,r=r.value,a=n._currentValue,n._currentValue=r,Fh=r={parent:i=Fh,depth:null===i?0:i.depth+1,context:n,parentValue:a,value:r},t.context=r,Mg(e,t,o),null===(e=Fh))throw Error(vf(403));return r=e.parentValue,e.context._currentValue=r===Mh?e.context._defaultValue:r,e=Fh=e.parent,void(t.context=e);case Eh:return void Mg(e,t,r=(r=r.children)(n._currentValue));case Dh:return void Qg(e,t,n=(o=n._init)(n._payload),r=Ig(n,r),void 0)}throw Error(vf(130,null==n?n:typeof n,""))}switch(a=yp((o=t.blockedSegment).chunks,n,r,e.responseState,o.formatContext),o.lastPushedText=!1,i=o.formatContext,o.formatContext=function(e,t,n){switch(t){case"select":return Jf(1,null!=n.value?n.value:n.defaultValue);case"svg":return Jf(2,null);case"math":return Jf(3,null);case"foreignObject":return Jf(1,null);case"table":return Jf(4,null);case"thead":case"tbody":case"tfoot":return Jf(5,null);case"colgroup":return Jf(7,null);case"tr":return Jf(6,null)}return 4<=e.insertionMode||0===e.insertionMode?Jf(1,null):e}(i,n,r),Og(e,t,a),o.formatContext=i,n){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:o.chunks.push(wp,Sf(n),xp)}o.lastPushedText=!1}}function Mg(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case vh:return void Qg(e,t,n.type,n.props,n.ref);case bh:throw Error(vf(257));case Dh:var r=n._init;return void Mg(e,t,n=r(n._payload))}if(Uf(n))return void Lg(e,t,n);if(null===n||"object"!=typeof n?r=null:r="function"==typeof(r=Lh&&n[Lh]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);Lg(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(vf(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=$f(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=$f(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Lg(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=Gh(a,r,o);try{Og(e,t,n[o])}finally{t.treeContext=a}}}function Og(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return Mg(e,t,n)}catch(s){if(Ag(),"object"!=typeof s||null===s||"function"!=typeof s.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,qh(a),s;n=s;var i=t.blockedSegment,l=Cg(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(l),i.lastPushedText=!1,e=Sg(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,qh(a)}}function Ng(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,zg(this,t,e)}function Rg(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(vf(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Rg(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Fg(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Fg(e,n)}else e.completedSegments.push(t)}function zg(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(vf(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Eg,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Fg(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ng,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Fg(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function jg(e){if(2!==e.status){var t=Fh,n=xg.current;xg.current=yg;var r=wg;wg=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],l=e,s=i.blockedSegment;if(0===s.status){qh(i.context);try{Mg(l,i,i.node),s.lastPushedText&&s.textEmbedded&&s.chunks.push(Zf),i.abortSet.delete(i),s.status=1,zg(l,i.blockedBoundary,s)}catch(e){if(Ag(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=i.ping;e.then(c,c)}else{i.abortSet.delete(i),s.status=4;var u=i.blockedBoundary,A=e,d=Pg(l,A);if(null===u?Bg(l,A):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=d,u.parentFlushed&&l.clientRenderedBoundaries.push(u))),l.allPendingTasks--,0===l.allPendingTasks)(0,l.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&Wg(e,e.destination)}catch(t){Pg(e,t),Bg(e,t)}finally{wg=r,xg.current=n,n===yg&&qh(t)}}}function Hg(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,wf(t,kp),wf(t,e.placeholderPrefix),wf(t,e=Sf(r.toString(16))),xf(t,Ep);case 1:n.status=2;var o=!0;r=n.chunks;var a=0;n=n.children;for(var i=0;i<n.length;i++){for(o=n[i];a<o.index;a++)wf(t,r[a]);o=_g(e,t,o)}for(;a<r.length-1;a++)wf(t,r[a]);return a<r.length&&(o=xf(t,r[a])),o;default:throw Error(vf(390))}}function _g(e,t,n){var r=n.boundary;if(null===r)return Hg(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,xf(t,Bp),wf(t,Tp),r&&(wf(t,Qp),wf(t,Sf(jf(r))),wf(t,Ip)),xf(t,Mp),Hg(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,a=o.nextSuspenseID++;o=Cf(o.boundaryPrefix+a.toString(16)),r=r.id=o,Lp(t,e.responseState,r),Hg(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),Lp(t,e.responseState,r.id),Hg(e,t,n);else{if(xf(t,Sp),1!==(n=r.completedSegments).length)throw Error(vf(391));_g(e,t,n[0])}return xf(t,Dp)}function Ug(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return wf(e,Op),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,Np);case 2:return wf(e,Fp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,zp);case 3:return wf(e,Hp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,_p);case 4:return wf(e,qp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,Vp);case 5:return wf(e,Yp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,Gp);case 6:return wf(e,Kp),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,Jp);case 7:return wf(e,$p),wf(e,t.segmentPrefix),wf(e,Sf(r.toString(16))),xf(e,eh);default:throw Error(vf(397))}}(t,e.responseState,n.formatContext,n.id),_g(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return xf(e,Rp);case 2:return xf(e,jp);case 3:return xf(e,Up);case 4:return xf(e,Wp);case 5:return xf(e,Xp);case 6:return xf(e,Zp);case 7:return xf(e,th);default:throw Error(vf(397))}}(t,n.formatContext)}function qg(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)Vg(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,wf(t,e.startInlineScript),e.sentCompleteBoundaryFunction?wf(t,lh):(e.sentCompleteBoundaryFunction=!0,wf(t,ih)),null===r)throw Error(vf(395));return n=Sf(n.toString(16)),wf(t,r),wf(t,sh),wf(t,e.segmentPrefix),wf(t,n),xf(t,ch)}function Vg(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(vf(392));return Ug(e,t,r)}return Ug(e,t,r),wf(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?wf(t,rh):(e.sentCompleteSegmentFunction=!0,wf(t,nh)),wf(t,e.segmentPrefix),wf(t,o=Sf(o.toString(16))),wf(t,oh),wf(t,e.placeholderPrefix),wf(t,o),xf(t,ah)}function Wg(e,t){bf=new Uint8Array(512),yf=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){_g(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)wf(t,r[n]);n<r.length&&xf(t,r[n])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var i=a[o];r=t;var l=e.responseState,s=i.id,c=i.errorDigest,u=i.errorMessage,A=i.errorComponentStack;if(wf(r,l.startInlineScript),l.sentClientRenderFunction?wf(r,Ah):(l.sentClientRenderFunction=!0,wf(r,uh)),null===s)throw Error(vf(395));wf(r,s),wf(r,dh),(c||u||A)&&(wf(r,ph),wf(r,Sf(gh(c||"")))),(u||A)&&(wf(r,ph),wf(r,Sf(gh(u||"")))),A&&(wf(r,ph),wf(r,Sf(gh(A)))),xf(r,fh)}a.splice(0,o);var d=e.completedBoundaries;for(o=0;o<d.length;o++)qg(e,t,d[o]);d.splice(0,o),kf(t),bf=new Uint8Array(512),yf=0;var f=e.partialBoundaries;for(o=0;o<f.length;o++){var p=f[o];e:{a=e,i=t;var h=p.completedSegments;for(l=0;l<h.length;l++)if(!Vg(a,i,p,h[l])){l++,h.splice(0,l);var g=!1;break e}h.splice(0,l),g=!0}if(!g)return e.destination=null,o++,void f.splice(0,o)}f.splice(0,o);var m=e.completedBoundaries;for(o=0;o<m.length;o++)qg(e,t,m[o]);m.splice(0,o)}finally{kf(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Yg(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Rg(n,e,t)}),n.clear(),null!==e.destination&&Wg(e,e.destination)}catch(t){Pg(e,t),Bg(e,t)}}gf.renderToReadableStream=function(e,t){return new Promise(function(n,r){var o,a,i=new Promise(function(e,t){a=e,o=t}),l=function(e,t,n,r,o,a,i,l,s){var c=[],u=new Set;return(n=Cg(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?kg:o,onAllReady:void 0===a?Eg:a,onShellReady:void 0===i?Eg:i,onShellError:void 0===l?Eg:l,onFatalError:void 0===s?Eg:s},0,null,n,!1,!1)).parentFlushed=!0,e=Sg(t,e,null,n,u,Nh,null,Yh),c.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?qf:Cf('<script nonce="'+jf(t)+'">');var a=[];if(void 0!==n&&a.push(t,Sf((""+n).replace(Xf,Kf)),Vf),void 0!==r)for(n=0;n<r.length;n++)a.push(Wf,Sf(jf(r[n])),Gf);if(void 0!==o)for(r=0;r<o.length;r++)a.push(Yf,Sf(jf(o[r])),Gf);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:Cf(e+"P:"),segmentPrefix:Cf(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(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),function(e){return Jf("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===l.status)l.status=2,Pf(e,l.fatalError);else if(2!==l.status&&null===l.destination){l.destination=e;try{Wg(l,e)}catch(e){Pg(l,e),Bg(l,e)}}},cancel:function(){Yg(l)}},{highWaterMark:0});e.allReady=i,n(e)},function(e){i.catch(function(){}),r(e)},o);if(t&&t.signal){var s=t.signal,c=function(){Yg(l,s.reason),s.removeEventListener("abort",c)};s.addEventListener("abort",c)}jg(l)})},gf.version="18.3.1",vg=aA,bg=gf,oA.version=vg.version,oA.renderToString=vg.renderToString,oA.renderToStaticMarkup=vg.renderToStaticMarkup,oA.renderToNodeStream=vg.renderToNodeStream,oA.renderToStaticNodeStream=vg.renderToStaticNodeStream,oA.renderToReadableStream=bg.renderToReadableStream;const Gg={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"},Xg="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",Kg=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 0 637 637",ref:t,...e},R.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"}),R.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"}))),Jg=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),Zg=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),$g=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),em=R.forwardRef((e,t)=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},R.createElement("g",{strokeLinecap:"round",strokeWidth:10},R.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),tm=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),nm=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),rm=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),om=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),am=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),im=R.forwardRef((e,t)=>R.createElement("svg",{viewBox:"0 -960 960 960",ref:t,...e},R.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"}))),lm={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:Kg},header:{title:rA.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:Xg,buttons:[Gg.NOTIFICATION_BUTTON,Gg.AUDIO_BUTTON,Gg.CLOSE_CHAT_BUTTON],closeChatIcon:em},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:Zg,iconDisabled:$g,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/oYksP1YRdoQJjjDJbwGNSTX66wU48FG8Iu1eM+/5ITdKwGN8jUTGfehN3oUszrBH7kmdhFKB+YNheG6B9fOivltwZ38JMcC66z7o9pJNBnxgTd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gAIAPv/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:am,iconDisabled:im},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:tm,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[Gg.VOICE_MESSAGE_BUTTON,Gg.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:Xg,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:nm,iconDisabled:rm},footer:{text:rA.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[rA.jsx("span",{children:"Powered By "},0),rA.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:rA.jsx(Kg,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),rA.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[Gg.FILE_ATTACHMENT_BUTTON,Gg.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Jg,iconDisabled:Jg,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:om,iconDisabled:om,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}},sm=R.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),cm=()=>R.useContext(sm),um=({children:e,settings:t=lm,setSyncedSettings:n,syncedSettingsRef:r})=>rA.jsx(sm.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),Am={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:{}},dm=R.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),fm=()=>R.useContext(dm),pm=({children:e,styles:t=Am,setSyncedStyles:n,syncedStylesRef:r})=>rA.jsx(dm.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),hm=({buttons:e})=>{var t,n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),u={backgroundImage:`linear-gradient(to right, ${null==(t=s.general)?void 0:t.secondaryColor},\n\t\t\t${null==(n=s.general)?void 0:n.primaryColor})`,...c.headerStyle};return rA.jsxs("div",{style:u,className:"rcb-chat-header-container",children:[rA.jsxs("div",{className:"rcb-chat-header",children:[(null==(r=s.header)?void 0:r.showAvatar)&&rA.jsx("div",{style:{backgroundImage:`url("${null==(o=s.header)?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),R.isValidElement(null==(a=s.header)?void 0:a.title)?null==(i=s.header)?void 0:i.title:rA.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:null==(l=s.header)?void 0:l.title})]}),rA.jsx("div",{className:"rcb-chat-header",children:null==e?void 0:e.map((e,t)=>rA.jsx(R.Fragment,{children:e},t))})]})},gm=R.createContext({}),mm=()=>R.useContext(gm),vm=({children:e,botIdRef:t,flowRef:n})=>{const r=R.useRef(null),o=R.useRef(""),a=R.useRef(null),i=R.useRef(new Map),l=R.useRef(null),s=R.useRef(""),c=R.useRef(!1),u=R.useRef(null),A=R.useRef(null),d=R.useRef(null);return rA.jsx(gm.Provider,{value:{botIdRef:t,flowRef:n,inputRef:r,timeoutIdRef:a,streamMessageMap:i,chatBodyRef:l,paramsInputRef:s,keepVoiceOnRef:c,audioContextRef:u,audioBufferRef:A,gainNodeRef:d,prevInputRef:o},children:e})},bm=e=>{const[t,n]=R.useState(e),r=R.useRef(e);return[t,e=>{const t="function"==typeof e?e(r.current):e;r.current=t,n(t)},r]},ym=R.createContext({}),wm=()=>R.useContext(ym),xm=({children:e,settings:t})=>{var n,r,o,a,i,l;const[s,c,u]=bm(!1),[A,d,f]=bm((null==(n=null==t?void 0:t.chatWindow)?void 0:n.defaultOpen)??!1),[p,h,g]=bm((null==(r=null==t?void 0:t.audio)?void 0:r.defaultToggledOn)??!1),[m,v,b]=bm((null==(o=null==t?void 0:t.voice)?void 0:o.defaultToggledOn)??!1),[y,w,x]=bm((null==(a=null==t?void 0:t.notification)?void 0:a.defaultToggledOn)??!0),[k,E]=R.useState(!1),[S,C]=R.useState(!1),[P,B,D]=bm(!1),[T,I,Q]=bm(!0),[M,L,O]=bm(!1),[N,F]=R.useState(!1),[z,j]=R.useState(!1),[H,_]=R.useState(0),[U,q]=R.useState(0),[V,W]=R.useState(!1),[Y,G]=R.useState((null==(i=window.visualViewport)?void 0:i.height)??window.innerHeight),[X,K]=R.useState((null==(l=window.visualViewport)?void 0:l.width)??window.innerWidth);return rA.jsx(ym.Provider,{value:{isBotTyping:s,setSyncedIsBotTyping:c,syncedIsBotTypingRef:u,isChatWindowOpen:A,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:f,audioToggledOn:p,setSyncedAudioToggledOn:h,syncedAudioToggledOnRef:g,voiceToggledOn:m,setSyncedVoiceToggledOn:v,syncedVoiceToggledOnRef:b,notificationsToggledOn:y,setSyncedNotificationsToggledOn:w,syncedNotificationsToggledOnRef:x,isLoadingChatHistory:k,setIsLoadingChatHistory:E,hasChatHistoryLoaded:S,setHasChatHistoryLoaded:C,isScrolling:P,setSyncedIsScrolling:B,syncedIsScrollingRef:D,textAreaDisabled:T,setSyncedTextAreaDisabled:I,syncedTextAreaDisabledRef:Q,textAreaSensitiveMode:M,setSyncedTextAreaSensitiveMode:L,syncedTextAreaSensitiveModeRef:O,hasInteractedPage:N,setHasInteractedPage:F,hasFlowStarted:z,setHasFlowStarted:j,unreadCount:H,setUnreadCount:_,inputLength:U,setInputLength:q,blockAllowsAttachment:V,setBlockAllowsAttachment:W,viewportHeight:Y,setViewportHeight:G,viewportWidth:X,setViewportWidth:K},children:e})};var km=(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))(km||{});const Em={[km.START_SPEAK_AUDIO]:!0,[km.TOGGLE_AUDIO]:!0,[km.TOGGLE_VOICE]:!0,[km.TOGGLE_NOTIFICATIONS]:!0,[km.TOGGLE_CHAT_WINDOW]:!0,[km.PRE_INJECT_MESSAGE]:!0,[km.POST_INJECT_MESSAGE]:!1,[km.PRE_LOAD_CHATBOT]:!0,[km.POST_LOAD_CHATBOT]:!1,[km.START_SIMULATE_STREAM_MESSAGE]:!0,[km.STOP_SIMULATE_STREAM_MESSAGE]:!1,[km.START_STREAM_MESSAGE]:!0,[km.CHUNK_STREAM_MESSAGE]:!0,[km.STOP_STREAM_MESSAGE]:!0,[km.REMOVE_MESSAGE]:!0,[km.LOAD_CHAT_HISTORY]:!0,[km.CHANGE_PATH]:!0,[km.SHOW_TOAST]:!0,[km.DISMISS_TOAST]:!0,[km.USER_SUBMIT_TEXT]:!0,[km.USER_UPLOAD_FILE]:!0,[km.TEXT_AREA_CHANGE_VALUE]:!0,[km.PRE_PROCESS_BLOCK]:!0,[km.POST_PROCESS_BLOCK]:!0},Sm=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:Em[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Cm=R.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Pm=()=>R.useContext(Cm),Bm=({children:e})=>{const[t,n,r]=bm([]);return rA.jsx(Cm.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},Dm=()=>{const{botIdRef:e}=mm(),{syncedPathsRef:t}=Pm(),n=R.useCallback(()=>t.current.length>0?t.current.at(-1)??null:null,[]),r=R.useCallback(()=>t.current.length>1?t.current.at(-2)??null:null,[]);return{dispatchRcbEvent:R.useCallback(async(t,o)=>{const a={botId:e.current,currPath:n(),prevPath:r()};return await Sm(t,a,o)},[e])}},Tm=()=>{const{settings:e}=cm(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:a,setViewportWidth:i,setUnreadCount:l,setSyncedIsBotTyping:s,setSyncedIsScrolling:c,syncedIsBotTypingRef:u,syncedIsChatWindowOpenRef:A}=wm(),{chatBodyRef:d}=mm(),{dispatchRcbEvent:f}=Dm(),p=R.useCallback(()=>{if(!d.current)return!1;const e=d.current.getBoundingClientRect(),t=window.innerHeight??document.documentElement.clientHeight,n=window.innerWidth??document.documentElement.clientWidth;return e.top>=0&&e.left>=0&&e.bottom<=t&&e.right<=n},[d]),h=R.useCallback(async t=>{var r;t!==A.current&&(null!=(r=e.event)&&r.rcbToggleChatWindow&&(await f(km.TOGGLE_CHAT_WINDOW,{currState:A.current,newState:!A.current})).defaultPrevented||n(e=>(e||l(0),!e)))},[A]),g=R.useCallback(async e=>{e!==u.current&&s(e=>!e)},[u]),m=R.useCallback((e,t,n,r)=>(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t,[]),v=R.useCallback((e=0)=>{if(!d.current)return;const t=d.current.scrollHeight-d.current.clientHeight;if(e<=0)return d.current.scrollTop=t,void c(!1);const n=d.current.scrollTop,r=t-n;let o=0;const a=()=>{if(!d.current)return;o+=20;const t=m(o,n,r,e);d.current.scrollTop=t,o<e?requestAnimationFrame(a):c(!1)};a()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:h,viewportHeight:r,setViewportHeight:o,viewportWidth:a,setViewportWidth:i,toggleIsBotTyping:g,scrollToBottom:v,getIsChatBotVisible:p}},Im=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{unreadCount:a,isScrolling:i}=wm(),{chatBodyRef:l}=mm(),{scrollToBottom:s}=Tm(),[c,u]=R.useState(!1),A={color:null==(e=r.general)?void 0:e.primaryColor,borderColor:null==(t=r.general)?void 0:t.primaryColor,...o.chatMessagePromptHoveredStyle};return rA.jsx("div",{className:`rcb-message-prompt-container ${(()=>{var e;return l.current&&(null==(e=r.chatWindow)?void 0:e.showMessagePrompt)&&i&&a>0?"visible":"hidden"})()}`,children:rA.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?A:{...o.chatMessagePromptStyle},onMouseDown:e=>{e.preventDefault(),s(600)},className:"rcb-message-prompt-text",children:null==(n=r.chatWindow)?void 0:n.messagePromptText})})},Qm=R.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Mm=()=>R.useContext(Qm),Lm=({children:e})=>{const[t,n,r]=bm([]);return rA.jsx(Qm.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},Om=({message:e,isNewSender:t})=>{var n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),u="string"==typeof e.content,A=e.content,d=e.contentWrapper?rA.jsx(e.contentWrapper,{children:A}):A,f={backgroundColor:null==(n=s.general)?void 0:n.primaryColor,color:"#fff",maxWidth:null!=(r=s.userBubble)&&r.showAvatar?"65%":"70%",...c.userBubbleStyle},p=null!=(o=s.userBubble)&&o.animate?"rcb-user-message-entry":"",h=(null==(a=s.userBubble)?void 0:a.showAvatar)&&t,g="rcb-user-message"+(!t&&null!=(i=s.userBubble)&&i.showAvatar?" rcb-user-message-offset":"");return rA.jsxs("div",{className:"rcb-user-message-container",children:[u?rA.jsx("div",{style:f,className:`${g} ${p}`,children:d}):rA.jsx(rA.Fragment,{children:d}),h&&rA.jsx("div",{style:{backgroundImage:`url("${null==(l=s.userBubble)?void 0:l.avatar}")`},className:"rcb-message-user-avatar"})]})},Nm=({message:e,isNewSender:t})=>{var n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),u="string"==typeof e.content,A=e.content,d=e.contentWrapper?rA.jsx(e.contentWrapper,{children:A}):A,f={backgroundColor:null==(n=s.general)?void 0:n.secondaryColor,color:"#fff",maxWidth:null!=(r=s.botBubble)&&r.showAvatar?"65%":"70%",...c.botBubbleStyle},p=null!=(o=s.botBubble)&&o.animate?"rcb-bot-message-entry":"",h=(null==(a=s.botBubble)?void 0:a.showAvatar)&&t,g="rcb-bot-message"+(!t&&null!=(i=s.botBubble)&&i.showAvatar?" rcb-bot-message-offset":"");return rA.jsxs("div",{className:"rcb-bot-message-container",children:[h&&rA.jsx("div",{style:{backgroundImage:`url("${null==(l=s.botBubble)?void 0:l.avatar}")`},className:"rcb-message-bot-avatar"}),u?rA.jsx("div",{style:f,className:`${g} ${p}`,children:d}):rA.jsx(rA.Fragment,{children:d})]})},Rm=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),a=null!=(e=r.botBubble)&&e.animate?"rcb-bot-message-entry":"";return rA.jsxs("div",{className:"rcb-bot-message-container",children:[(null==(t=r.botBubble)?void 0:t.showAvatar)&&rA.jsx("div",{style:{backgroundImage:`url("${null==(n=r.botBubble)?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),rA.jsx("div",{onMouseDown:e=>{e.preventDefault()},className:`rcb-bot-message ${a}`,children:rA.jsxs("div",{className:"rcb-typing-indicator",style:{...null==o?void 0:o.rcbTypingIndicatorContainerStyle},children:[rA.jsx("span",{className:"rcb-dot",style:{...null==o?void 0:o.rcbTypingIndicatorDotStyle}}),rA.jsx("span",{className:"rcb-dot",style:{...null==o?void 0:o.rcbTypingIndicatorDotStyle}}),rA.jsx("span",{className:"rcb-dot",style:{...null==o?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Fm=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{messages:a}=Mm(),{scrollToBottom:i}=Tm(),{isBotTyping:l,syncedIsScrollingRef:s}=wm(),{chatBodyRef:c}=mm(),u={...null==o?void 0:o.bodyStyle,scrollbarWidth:null!=(e=r.chatWindow)&&e.showScrollbar?"auto":"none"};R.useEffect(()=>{s.current||i()},[null==(t=c.current)?void 0:t.scrollHeight]);return rA.jsxs("div",{style:u,className:"rcb-chat-body-container",ref:c,children:[a.map((e,t)=>{const n=(e=>0===e||a[e].sender!==a[e-1].sender)(t);return"USER"===e.sender.toUpperCase()?rA.jsx(Om,{message:e,isNewSender:n},t):"BOT"===e.sender.toUpperCase()?rA.jsx(Nm,{message:e,isNewSender:n},t):rA.jsx("div",{children:e.content},t)}),l&&(null==(n=r.chatWindow)?void 0:n.showTypingIndicator)&&rA.jsx(Rm,{}),rA.jsx(Im,{})]})},zm=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,a,i,l,s,c,u,A,d,f;const{settings:p}=cm(),{styles:h}=fm(),{paths:g}=Pm(),{handleSubmitText:m}=zv(),[v,b]=R.useState(new Set),[y,w]=R.useState(!1),x={cursor:y?`url("${null==(r=p.general)?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:null==(o=p.general)?void 0:o.primaryColor,borderColor:null==(a=p.general)?void 0:a.primaryColor,...h.botCheckboxRowStyle},k={cursor:y||v.size<e.min?`url("${null==(i=p.general)?void 0:i.actionDisabledIcon}"), auto`:"pointer",color:null==(l=p.general)?void 0:l.primaryColor,borderColor:null==(s=p.general)?void 0:s.primaryColor,...h.botCheckboxNextStyle},E={cursor:y?`url("${null==(c=p.general)?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...h.botCheckMarkStyle},S={cursor:y?`url("${null==(u=p.general)?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:null==(A=p.general)?void 0:A.primaryColor,backgroundColor:null==(d=p.general)?void 0:d.primaryColor,...h.botCheckMarkSelectedStyle};R.useEffect(()=>{g.length>0&&g[g.length-1]!==n&&w(!e.reusable)},[g]);return rA.jsxs("div",{className:"rcb-checkbox-container "+(null!=(f=p.botBubble)&&f.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(n=>rA.jsx("div",{onMouseDown:r=>{r.preventDefault(),(n=>{y||b(r=>{const o=new Set(r);if(o.has(n))t.delete(n),o.delete(n);else{if(v.size==e.max)return r;t.add(n),o.add(n)}return o})})(n)},style:x,className:"rcb-checkbox-row-container",children:rA.jsxs("div",{className:"rcb-checkbox-row",children:[rA.jsx("div",{style:v.has(n)?S:E,className:"rcb-checkbox-mark"}),rA.jsx("div",{className:"rcb-checkbox-label",children:n})]})},n)),rA.jsx("div",{style:k,className:"rcb-checkbox-next-button",onMouseDown:n=>{var r;if(n.preventDefault(),y||v.size<e.min)return;const o=Array.from(t).join(", ");let a;w(!e.reusable),a=null!=e.sendOutput?e.sendOutput:(null==(r=p.chatInput)?void 0:r.sendCheckboxOutput)??!0,m(o,a)}})]})},jm=async(e,t)=>{const n=e.checkboxes;if(!n)return;let r;if("function"==typeof n?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||0==r.items.length)return;null==r.min&&(r.min=1),null==r.max&&(r.max=r.items.length),r.min>r.max&&(r.min=r.max),null==r.reusable&&(r.reusable=!1);const o=new Set,a=t.currPath,i=rA.jsx(zm,{checkboxes:r,checkedItems:o,path:a});await t.injectMessage(i)},Hm=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},_m=async(e,t,n)=>{const r=e.message;if(!r)return;if("string"==typeof r)return void(""!==r.trim()&&(n?await t.simulateStreamMessage(r):await t.injectMessage(r)));let o=r(t);o instanceof Promise&&(o=await o),"string"==typeof o&&""!==o.trim()&&(n?await t.simulateStreamMessage(o):await t.injectMessage(o))},Um=({options:e,path:t})=>{var n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),{paths:u}=Pm(),{handleSubmitText:A}=zv(),[d,f]=R.useState([]),[p,h]=R.useState(!1),g={cursor:p?`url("${null==(n=s.general)?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:null==(r=s.general)?void 0:r.primaryColor,borderColor:null==(o=s.general)?void 0:o.primaryColor,backgroundColor:"#fff",...c.botOptionStyle},m={color:"#fff",borderColor:null==(a=s.general)?void 0:a.primaryColor,backgroundColor:null==(i=s.general)?void 0:i.primaryColor,...c.botOptionHoveredStyle};R.useEffect(()=>{u.length>0&&u[u.length-1]!==t&&h(!e.reusable)},[u]);return rA.jsx("div",{className:"rcb-options-container "+(null!=(l=s.botBubble)&&l.showAvatar?"rcb-options-offset":""),children:e.items.map((t,n)=>{const r=d[n]&&!p;return rA.jsx("div",{className:"rcb-options",style:r?m:g,onMouseEnter:()=>(e=>{f(t=>{const n=[...t];return n[e]=!0,n})})(n),onMouseLeave:()=>(e=>{f(t=>{const n=[...t];return n[e]=!1,n})})(n),onMouseDown:n=>{var r;if(n.preventDefault(),p)return;let o;h(!e.reusable),o=null!=e.sendOutput?e.sendOutput:(null==(r=s.chatInput)?void 0:r.sendOptionOutput)??!0,A(t,o)},children:t},t)})})},qm=async(e,t)=>{const n=e.options;if(!n)return;let r;if("function"==typeof n?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||0==r.items.length)return;null==r.reusable&&(r.reusable=!1);const o=t.currPath,a=rA.jsx(Um,{options:r,path:o});await t.injectMessage(a)},Vm=async(e,t)=>{const n=e.component;if(n){if("function"==typeof n){let e=n(t);if(e instanceof Promise&&(e=await e),!e)return;return void await t.injectMessage(e)}await t.injectMessage(n)}},Wm=async(e,t,n,r)=>{const o=e.transition;let a;if("function"==typeof o?(a=o(t),a instanceof Promise&&(a=await a)):a=o,"number"==typeof a&&(a={duration:a}),!a||a instanceof Promise||null==a.duration||"number"!=typeof a.duration)return;null==a.interruptable&&(a.interruptable=!1);const i=setTimeout(async()=>{const n=await r(e);n&&await Xm(n,t)},a.duration);a.interruptable&&(n.current=i)},Ym=async(e,t,n)=>{const r=e.chatDisabled;if(null==r)return;let o;"function"==typeof r?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},Gm=async(e,t,n)=>{const r=e.isSensitive;if(!r)return void n(!1);let o;"function"==typeof r?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},Xm=async(e,t)=>{if(!e)throw new Error("Block is not valid.");const n=Object.keys(e);for(const r of n)"function"===r&&await Hm(e,t);n.includes("path")&&await(async(e,t)=>{const n=e.path;if(!n)return!1;if("string"==typeof n)return await t.goToPath(n),!0;let r=n(t);if(r instanceof Promise&&(r=await r),!r)return!1;const o=r;return await t.goToPath(o),!0})(e,t)},Km=()=>{var e;const{settings:t}=cm(),{styles:n}=fm();return rA.jsx("div",{className:"rcb-line-break-container",children:rA.jsx("div",{style:{...n.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:null==(e=t.chatHistory)?void 0:e.chatHistoryLineBreakText})})},Jm=()=>{var e;const{settings:t}=cm(),{styles:n}=fm(),r={borderTop:`4px solid ${null==(e=t.general)?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return rA.jsx("div",{className:"rcb-spinner-container",children:rA.jsx("div",{style:r,className:"rcb-spinner"})})},Zm=()=>{try{if(typeof crypto<"u"&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&"function"==typeof crypto.getRandomValues)return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=crypto.getRandomValues(new Uint8Array(1))[0]%16;return("x"===e?t:3&t|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},$m=(e,t)=>({id:Zm(),content:e,sender:t,type:"string"==typeof e?"string":"object",timestamp:(new Date).toUTCString(),tags:[]});let ev,tv=!1,nv="rcb-history",rv=30,ov=!1,av=[];const iv=async e=>{if(ov||!ev)return;const t=[],n=tv?av.length:0;for(let r=e.length-1;r>=n;r--){const n=e[r];if("SYSTEM"!==n.sender.toUpperCase()&&(""!==n.content&&t.unshift(n),t.length===rv))break}let r=t.map(Av);if(r.length<rv){const e=rv-r.length;r=[...av.slice(-e),...r]}cv(r)},lv=()=>av,sv=e=>{cv(e),av=e},cv=e=>{ev&&ev.setItem(nv,JSON.stringify(e))},uv=e=>{var t,n,r,o,a;ev="SESSION_STORAGE"===(null==(n=null==(t=e.chatHistory)?void 0:t.storageType)?void 0:n.toUpperCase())?sessionStorage:localStorage,nv=null==(r=e.chatHistory)?void 0:r.storageKey,rv=null==(o=e.chatHistory)?void 0:o.maxEntries,ov=null==(a=e.chatHistory)?void 0:a.disabled,av=(e=>{if(null!=e)try{return JSON.parse(e)}catch{return[]}return[]})(ev.getItem(nv))},Av=e=>R.isValidElement(e.content)?structuredClone({id:e.id,content:oA.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,dv=(e,t,n)=>{const r=(new DOMParser).parseFromString(e,"text/html");return Array.from(r.body.childNodes).map((e,r)=>{var o;if(e.nodeType===Node.TEXT_NODE)return e.textContent;{const a=e.tagName.toLowerCase();let i=Array.from(e.attributes).reduce((e,t)=>{const n=t.name.toLowerCase();if("style"===n){const r=t.value.split(";").filter(e=>""!==e.trim()),o={};r.forEach(e=>{const[t,n]=e.split(":").map(e=>e.trim()),r=t.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());o[r]=n}),e[n]=o}else"audio"!==a&&"video"!==a||"controls"!==n||""!==t.value?e[n]=t.value:e[n]="true";return e},{});if(Object.prototype.hasOwnProperty.call(i,"class")){const r=e.classList;i.className=r.toString(),delete i.class,null!=(o=t.botBubble)&&o.showAvatar&&(i=fv(r,i)),i=pv(r,i,t,n),i=hv(r,i,t,n),i=gv(r,i,t,n),i=mv(r,i,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(a))return R.createElement(a,{key:r,...i});{const o=dv(e.innerHTML,t,n);return R.createElement(a,{key:r,...i},...o)}}})},fv=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),pv=(e,t,n,r)=>{var o,a,i,l,s;return e.contains("rcb-options")&&(t.style={...t.style,color:(null==(o=r.botOptionStyle)?void 0:o.color)??(null==(a=n.general)?void 0:a.primaryColor),borderColor:(null==(i=r.botOptionStyle)?void 0:i.color)??(null==(l=n.general)?void 0:l.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},hv=(e,t,n,r)=>{var o,a,i,l,s;return e.contains("rcb-checkbox-row-container")&&(t.style={...t.style,color:(null==(o=r.botCheckboxRowStyle)?void 0:o.color)??(null==(a=n.general)?void 0:a.primaryColor),borderColor:(null==(i=r.botCheckboxRowStyle)?void 0:i.color)??(null==(l=n.general)?void 0:l.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},gv=(e,t,n,r)=>{var o,a,i,l,s;return e.contains("rcb-checkbox-next-button")&&(t.style={...t.style,color:(null==(o=r.botCheckboxNextStyle)?void 0:o.color)??(null==(a=n.general)?void 0:a.primaryColor),borderColor:(null==(i=r.botCheckboxNextStyle)?void 0:i.color)??(null==(l=n.general)?void 0:l.primaryColor),cursor:`url("${null==(s=n.general)?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},mv=(e,t,n,r)=>{var o,a;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(t.style={...t.style,backgroundColor:null==(o=n.general)?void 0:o.primaryColor,maxWidth:null!=(a=n.userBubble)&&a.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),t},vv=()=>{const{settings:e}=cm(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:a,syncedNotificationsToggledOnRef:i}=wm(),{audioBufferRef:l,audioContextRef:s,gainNodeRef:c}=mm(),{dispatchRcbEvent:u}=Dm(),A=R.useCallback(async()=>{var t,n;const r=null==(t=e.notification)?void 0:t.sound;s.current=new AudioContext;const o=s.current.createGain();let a;if(o.gain.value=(null==(n=e.notification)?void 0:n.volume)??.2,c.current=o,null!=r&&r.startsWith("data:audio")){const e=atob(r.split(",")[1]),t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);a=t}else a=await(await fetch(r)).arrayBuffer();l.current=await s.current.decodeAudioData(a)},[e.notification]),d=R.useCallback(()=>{var t;if(null!=(t=e.notification)&&t.disabled||!i.current||!r||!s.current||!l.current)return;const n=s.current.createBufferSource();n.buffer=l.current,n.connect(c.current).connect(s.current.destination),n.start()},[e.notification,i,r,s,l,c]),f=R.useCallback(async t=>{var r;t!==i.current&&(null!=(r=e.event)&&r.rcbToggleNotifications&&(await u(km.TOGGLE_NOTIFICATIONS,{currState:i.current,newState:!i.current})).defaultPrevented||n(e=>!e))},[i]);return{unreadCount:o,setUnreadCount:a,notificationsToggledOn:t,toggleNotifications:f,playNotificationSound:d,setUpNotifications:A}},bv=(e,t)=>{var n,r,o,a;((e,t,n,r,o)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const a=new window.SpeechSynthesisUtterance;a.text=e,a.lang=t,a.rate=r,a.volume=o;let i=!1;for(const e of n)if(window.speechSynthesis.getVoices().find(t=>{if(t.name===e)return a.voice=t,window.speechSynthesis.speak(a),void(i=!0)}),i)break;i||window.speechSynthesis.speak(a)})(t,null==(n=e.audio)?void 0:n.language,null==(r=e.audio)?void 0:r.voiceNames,null==(o=e.audio)?void 0:o.rate,null==(a=e.audio)?void 0:a.volume)},yv=()=>{const{settings:e}=cm(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=wm(),{dispatchRcbEvent:o}=Dm(),a=R.useCallback(async t=>{var a;t!==r.current&&(null!=(a=e.event)&&a.rcbToggleAudio&&(await o(km.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(e=>!e))},[r]),i=R.useCallback(async t=>{var n,a;if(null!=(n=e.audio)&&n.disabled||!r.current)return;let i=t;if(null!=(a=e.event)&&a.rcbStartSpeakAudio){const e=await o(km.START_SPEAK_AUDIO,{textToRead:i});if(e.defaultPrevented)return;i=e.data.textToRead}bv(e,i)},[e,r]);return{audioToggledOn:t,speakAudio:i,toggleAudio:a}},wv=()=>{var e,t;const{settings:n}=cm(),{messages:r,setSyncedMessages:o,syncedMessagesRef:a}=Mm(),{setSyncedIsBotTyping:i,setUnreadCount:l,syncedIsScrollingRef:s,syncedIsChatWindowOpenRef:c}=wm(),{streamMessageMap:u,chatBodyRef:A,paramsInputRef:d}=mm(),{scrollToBottom:f,getIsChatBotVisible:p}=Tm(),{dispatchRcbEvent:h}=Dm(),{speakAudio:g}=yv(),{playNotificationSound:m}=vv(),v=R.useCallback((e,t=!1)=>{var r,o;iv(e);let a=!0;const i=e[e.length-1];if(!i)return;const l=i.sender.toUpperCase();"USER"===l&&(a=!1),null!=(r=n.general)&&r.embedded&&p()&&(a=!1),(c.current&&!s.current||t)&&(a=!1),a&&m(),!t&&("USER"!==l&&null!=(o=n.chatWindow)&&o.autoJumpToBottom||"USER"===l||!s.current)&&setTimeout(()=>f(),1)},[n,A,c,s,m,f,p]),b=R.useCallback(async(e,t="BOT",r=null)=>{var u,A,f,p,m;if("string"!=typeof e)throw new Error("Content must be of type string to simulate stream.");t=t.toUpperCase();let b=$m(e,t);if(null!=(u=n.event)&&u.rcbStartSimulateStreamMessage){const e=await h(km.START_SIMULATE_STREAM_MESSAGE,{message:b});if(e.defaultPrevented)return null;r=e.data.simulateStreamChunker||r,b=e.data.message}i(!1);let y=30;y="BOT"===t?null==(A=n.botBubble)?void 0:A.streamSpeed:null==(f=n.userBubble)?void 0:f.streamSpeed;const w={...b,content:""};o(e=>[...e,w]),v(a.current);let x=b.content;r&&(x=r(x));let k=0;const E=x.length;"BOT"===b.sender.toUpperCase()&&(c.current||null!=(p=n.general)&&p.embedded)&&"string"==typeof b.content&&""!==b.content.trim()&&g(b.content);const S=new Promise(e=>{const t=setInterval(()=>{if(k>=E)return clearInterval(t),void e();o(e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)if(t[e].id===w.id){const n=x[k];n&&(w.content+=n,t[e]=w),k++;break}return t})},y)});return(s.current||!c.current)&&l(e=>e+1),await S,iv(a.current),null!=(m=n.event)&&m.rcbStopSimulateStreamMessage&&await h(km.STOP_SIMULATE_STREAM_MESSAGE,{message:b}),"USER"===t&&(d.current=e),b},[n,h,v,a,d,i,l,c,g]),y=R.useCallback(async(e,t="BOT")=>{var r,i,u;t=t.toUpperCase();let A=$m(e,t);if(null!=(r=n.event)&&r.rcbPreInjectMessage){const e=await h(km.PRE_INJECT_MESSAGE,{message:A});if(e.defaultPrevented)return null;A=e.data.message}return"BOT"===A.sender.toUpperCase()&&(c.current||null!=(i=n.general)&&i.embedded)&&"string"==typeof A.content&&""!==A.content.trim()&&g(A.content),(s.current||!c.current)&&l(e=>e+1),null!=(u=n.event)&&u.rcbPostInjectMessage&&await h(km.POST_INJECT_MESSAGE,{message:A}),o(e=>[...e,A]),v(a.current),"USER"===t&&"string"==typeof e&&(d.current=e),A},[n,h,v,d,a,c,g,l]),w=R.useCallback(async e=>{var t;const r=a.current.find(t=>t.id===e);return!r||null!=(t=n.event)&&t.rcbRemoveMessage&&(await h(km.REMOVE_MESSAGE,{message:r})).defaultPrevented?null:(o(t=>t.filter(t=>t.id!==e)),v(a.current),l(e=>Math.max(e-1,0)),r)},[h,null==(e=n.event)?void 0:e.rcbRemoveMessage,v,a,l]),x=R.useCallback(async(e,t="BOT")=>{var r,A;if(t=t.toUpperCase(),!u.current.has(t)){const A=$m(e,t);return null!=(r=n.event)&&r.rcbStartStreamMessage&&(await h(km.START_STREAM_MESSAGE,{message:A})).defaultPrevented?null:(i(!1),o(e=>[...e,A]),v(a.current),u.current.set(t,A.id),(s.current||!c.current)&&l(e=>e+1),A)}const d={...$m(e,t),id:u.current.get(t)};return null!=(A=n.event)&&A.rcbChunkStreamMessage&&(await h(km.CHUNK_STREAM_MESSAGE,{message:d})).defaultPrevented?null:(o(e=>e.map(e=>e.id===d.id?d:e)),v(a.current,!0),d)},[h,n.event,v,a,i,l,u]),k=R.useCallback(async(e="BOT")=>{var t;if(e=e.toUpperCase(),!u.current.has(e))return!0;const r=u.current.get(e);let o;for(let e=0;e<3;e++){const e=a.current.find(e=>e.id===r);e&&(o=e),await new Promise(e=>setTimeout(e,20))}return(null==(t=n.event)||!t.rcbStopStreamMessage||!(await h(km.STOP_STREAM_MESSAGE,{message:o})).defaultPrevented)&&(u.current.delete(e),iv(a.current),"USER"===e&&"string"==typeof(null==o?void 0:o.content)&&(d.current=o.content),!0)},[h,null==(t=n.event)?void 0:t.rcbStopStreamMessage,u,d]),E=R.useCallback(e=>{const t="function"==typeof e?e(a.current):e;o(t),v(t)},[v,a]);return{simulateStreamMessage:b,injectMessage:y,removeMessage:w,streamMessage:x,endStreamMessage:k,replaceMessages:E,messages:r}};let xv,kv,Ev,Sv=!1,Cv=null;const Pv=()=>{if(!xv){const e=window.SpeechRecognition||window.webkitSpeechRecognition;xv=null!=e?new e:null}return xv},Bv=(e,t,n,r,o,a)=>{var i,l,s;const c=Pv();if(!c)return;if(!Sv)try{Sv=!0,c.lang=null==(i=e.voice)?void 0:i.language,c.start()}catch{}const u=null==(l=e.voice)?void 0:l.timeoutPeriod,A=null==(s=e.voice)?void 0:s.autoSendPeriod;c.onresult=i=>{var l,s;clearTimeout(kv),kv=null,clearTimeout(Ev);const c=i.results[i.results.length-1][0].transcript;if(a.current){const t=null==(l=e.chatInput)?void 0:l.characterLimit,n=a.current.value+c;null!=t&&t>=0&&n.length>t?r(n.slice(0,t)):r(n),o(a.current.value.length)}u&&(kv=setTimeout(async()=>await Iv(t,a),u)),null!=(s=e.voice)&&s.autoSendDisabled||(Ev=setTimeout(n,A))},c.onend=()=>{Sv?(c.start(),!kv&&u&&(kv=setTimeout(async()=>await Iv(t,a),u))):(clearTimeout(kv),kv=null,clearTimeout(Ev))},u&&(kv=setTimeout(async()=>await Iv(t,a),u))},Dv=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(Cv=new MediaRecorder(n),!Sv)try{Sv=!0,Cv.start()}catch{}Cv.ondataavailable=e=>{t.current&&t.current.push(e.data)},Cv.onstop=()=>{e(),n.getTracks().forEach(e=>e.stop())}}).catch(e=>{console.error("Unable to use microphone:",e)})},Tv=()=>{const e=Pv();e&&(Sv=!1,e&&e.stop(),Cv&&"inactive"!==Cv.state&&(Cv.stop(),Cv=null),clearTimeout(kv),kv=null,clearTimeout(Ev))},Iv=async(e,t)=>{var n;null!=(n=t.current)&&n.disabled||await e(),Tv()},Qv=()=>{const{settings:e}=cm(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=wm(),{dispatchRcbEvent:o}=Dm(),a=R.useCallback(async t=>{var a;t!==r.current&&(null!=(a=e.event)&&a.rcbToggleVoice&&(await o(km.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(e=>!e))},[r]),i=R.useCallback(t=>{((e,t)=>{var n,r,o;const a=Pv();null!=(n=t.voice)&&n.disabled||null==(r=t.chatInput)||!r.blockSpam||!a||(e&&!Sv?(Sv=!0,null!=(o=t.voice)&&o.sendAsAudio?null==Cv||Cv.start():a.start()):e||Tv())})(t,e)},[e]);return{voiceToggledOn:t,toggleVoice:a,syncVoice:i}},Mv=()=>{var e;const{settings:t}=cm(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:a,textAreaSensitiveMode:i,setSyncedTextAreaSensitiveMode:l,syncedTextAreaDisabledRef:s,syncedTextAreaSensitiveModeRef:c}=wm(),{inputRef:u,chatBodyRef:A,prevInputRef:d}=mm(),{dispatchRcbEvent:f}=Dm(),{getIsChatBotVisible:p}=Tm(),h=R.useCallback(async e=>{var n,r,o;if(s.current&&u.current)u.current.value="";else if(u.current&&null!==d.current){const a=null==(n=t.chatInput)?void 0:n.characterLimit,i=(null==(r=t.chatInput)?void 0:r.allowNewline)?e:e.replace(/\n/g," ");if(null!=a&&a>=0&&i.length>a?u.current.value=i.slice(0,a):u.current.value=i,null!=(o=t.event)&&o.rcbTextAreaChangeValue&&(await f(km.TEXT_AREA_CHANGE_VALUE,{currValue:u.current.value,prevValue:d.current})).defaultPrevented)return void(u.current.value=d.current);d.current=u.current.value}},[s,u,d,t,f]),g=R.useCallback(e=>{var n;null!=(n=u.current)&&n.disabled||setTimeout(()=>{var n,r,o;null!=(n=t.general)&&n.embedded?p()&&(null==(r=u.current)||r.focus()):"start"!==e&&(null==(o=u.current)||o.focus())},100)},[u,null==(e=t.general)?void 0:e.embedded,A,p]),m=R.useCallback(()=>{u.current&&u.current.focus()},[]),v=R.useCallback(()=>{u.current&&u.current.blur()},[]),b=R.useCallback(()=>u&&u.current?u.current.value:"",[]),y=R.useCallback(e=>{e!==s.current&&a(e=>!e)},[s]),w=R.useCallback(e=>{e!==c.current&&l(e=>!e)},[c]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:a,textAreaSensitiveMode:i,setSyncedTextAreaSensitiveMode:l,inputLength:n,setInputLength:r,getTextAreaValue:b,setTextAreaValue:h,updateTextAreaFocus:g,focusTextArea:m,blurTextArea:v,toggleTextAreaDisabled:y,toggleTextAreaSensitiveMode:w}},Lv=R.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Ov=()=>R.useContext(Lv),Nv=({children:e})=>{const[t,n,r]=bm([]);return rA.jsx(Lv.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},Rv=()=>{const{settings:e}=cm(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=Ov(),{dispatchRcbEvent:o}=Dm(),a=R.useCallback(async(t,a)=>{var i,l,s,c;let u=null;if(r.current.length>=((null==(i=e.toast)?void 0:i.maxCount)??3)){if(null!=(l=e.toast)&&l.forbidOnMax)return null;u=Zm();let r={id:u,content:t,timeout:a};if(null!=(s=e.event)&&s.rcbShowToast){const e=await o(km.SHOW_TOAST,{toast:r});if(e.defaultPrevented)return null;r=e.data.toast}return n(e=>[...e.slice(1),r]),u}u=Zm();let A={id:u,content:t,timeout:a};if(null!=(c=e.event)&&c.rcbShowToast){const e=await o(km.SHOW_TOAST,{toast:A});if(e.defaultPrevented)return null;A=e.data.toast}return n(e=>[...e,A]),u},[e,o]),i=R.useCallback(async t=>{var a;const i=r.current.find(e=>e.id===t);return!i||null!=(a=e.event)&&a.rcbDismissToast&&(await o(km.DISMISS_TOAST,{toast:i})).defaultPrevented?null:(n(e=>e.filter(e=>e.id!==t)),t)},[o]),l=R.useCallback(e=>{const t="function"==typeof e?e(r.current):e;n(t)},[r]);return{showToast:a,dismissToast:i,toasts:t,replaceToasts:l}},Fv=()=>{var e,t,n,r,o;const{settings:a}=cm(),{paths:i,setSyncedPaths:l,syncedPathsRef:s}=Pm(),{flowRef:c,streamMessageMap:u,paramsInputRef:A,keepVoiceOnRef:d,timeoutIdRef:f}=mm(),{setSyncedIsBotTyping:p,setSyncedTextAreaDisabled:h,setSyncedTextAreaSensitiveMode:g,blockAllowsAttachment:m,setBlockAllowsAttachment:v}=wm(),{dispatchRcbEvent:b}=Dm(),{endStreamMessage:y,injectMessage:w,removeMessage:x,simulateStreamMessage:k,streamMessage:E}=wv(),{showToast:S,dismissToast:C}=Rv(),{toggleChatWindow:P}=Tm(),{updateTextAreaFocus:B,setTextAreaValue:D}=Mv(),{syncVoice:T}=Qv(),I=R.useCallback(async e=>{var t;if(null!=(t=a.event)&&t.rcbPostProcessBlock){const t=await b(km.POST_PROCESS_BLOCK,{block:e});if(t.defaultPrevented)return null;e=t.data.block}return e},[null==(e=a.event)?void 0:e.rcbPostProcessBlock,b]),Q=R.useCallback(async(e,t)=>{var n,r,o,i;if(!e)return;let l=c.current[e];if(!l)return void p(!1);if(null!=(n=a.event)&&n.rcbPreProcessBlock){const e=await b(km.PRE_PROCESS_BLOCK,{block:l});if(e.defaultPrevented)return;l=e.data.block}p(!0),null!=(r=a.chatInput)&&r.blockSpam&&h(!0),g(!1);const s={prevPath:t,currPath:e,goToPath:O,setTextAreaValue:D,userInput:A.current,endStreamMessage:y,injectMessage:w,removeMessage:x,simulateStreamMessage:k,streamMessage:E,toggleChatWindow:P,showToast:S,dismissToast:C};await(async(e,t,n,r,o,a,i)=>{if(!e)throw new Error("Block is not valid.");for(const l of Object.keys(e))switch(l){case"message":await _m(e,t,n);break;case"options":await qm(e,t);break;case"checkboxes":await jm(e,t);break;case"component":await Vm(e,t);break;case"chatDisabled":await Ym(e,t,o);break;case"isSensitive":await Gm(e,t,a);break;case"transition":await Wm(e,t,r,i)}})(l,s,(null==(o=a.botBubble)?void 0:o.simulateStream)??!1,f,h,g,I),p(!1),"chatDisabled"in l||h(null==(i=a.chatInput)?void 0:i.disabled),"isSensitive"in l||g(!1),v("function"==typeof l.file),B(e),T(d.current&&!l.chatDisabled),e!==t&&u.current.clear()},[c,B,T,null==(t=a.botBubble)?void 0:t.simulateStream,null==(n=a.chatInput)?void 0:n.disabled,A,y,w,x,k,E,P,S,C,d,u]),M=R.useCallback(()=>s.current.length>0?s.current.at(-1)??null:null,[]),L=R.useCallback(()=>s.current.length>1?s.current.at(-2)??null:null,[]),O=R.useCallback(async e=>{var t;const n=M(),r=L();return(null==(t=a.event)||!t.rcbChangePath||!(await b(km.CHANGE_PATH,{currPath:n,prevPath:r,nextPath:e})).defaultPrevented)&&(l(t=>[...t,e]),await Q(e,n),!0)},[null==(r=a.chatInput)?void 0:r.blockSpam,null==(o=a.event)?void 0:o.rcbChangePath,Q,b]),N=R.useCallback(e=>{const t="function"==typeof e?e(s.current):e;l(t)},[s]);return{getCurrPath:M,getPrevPath:L,goToPath:O,blockAllowsAttachment:m,setBlockAllowsAttachment:v,paths:i,replacePaths:N,firePostProcessBlockEvent:I}},zv=()=>{var e,t,n,r;const{settings:o}=cm(),{endStreamMessage:a,injectMessage:i,removeMessage:l,simulateStreamMessage:s,streamMessage:c}=wv(),{syncedPathsRef:u}=Pm(),{getCurrPath:A,getPrevPath:d,goToPath:f,firePostProcessBlockEvent:p}=Fv(),{setSyncedTextAreaSensitiveMode:h,setSyncedTextAreaDisabled:g,setSyncedIsBotTyping:m,setBlockAllowsAttachment:v,setInputLength:b,syncedVoiceToggledOnRef:y,syncedTextAreaSensitiveModeRef:w}=wm(),{flowRef:x,inputRef:k,keepVoiceOnRef:E,paramsInputRef:S,timeoutIdRef:C}=mm(),{showToast:P,dismissToast:B}=Rv(),{dispatchRcbEvent:D}=Dm(),{syncVoice:T}=Qv(),{setTextAreaValue:I}=Mv(),{toggleChatWindow:Q}=Tm(),M=R.useCallback(async e=>{var t,n,r,a,l,c;const u=A();if(u&&x.current[u]){if(w.current){if(null!=(t=null==o?void 0:o.sensitiveInput)&&t.hideInUserBubble)return;if(null!=(n=null==o?void 0:o.sensitiveInput)&&n.maskInUserBubble)return void(null!=(r=o.userBubble)&&r.simulateStream?await s("*".repeat((null==(a=o.sensitiveInput)?void 0:a.asterisksCount)??10),"USER"):await i("*".repeat((null==(l=o.sensitiveInput)?void 0:l.asterisksCount)??10),"USER"))}null!=(c=o.userBubble)&&c.simulateStream?await s(e,"USER"):await i(e,"USER")}},[x,A,o,i,s,w]),L=R.useCallback(async(e,t=!0)=>{var n,r;if(""===(e=e.trim()))return;t&&await M(e),C.current&&clearTimeout(C.current),k.current&&(I(""),b(0));const w=A();if(!w)return;let D=x.current[w];const L=await p(D);L&&(null!=(n=o.chatInput)&&n.blockSpam&&g(!0),E.current=y.current,T(!1),setTimeout(()=>{m(!0)},400),h(!1),setTimeout(async()=>{var e;const t={prevPath:d(),currPath:A(),goToPath:f,setTextAreaValue:I,userInput:S.current,injectMessage:i,simulateStreamMessage:s,streamMessage:c,removeMessage:l,endStreamMessage:a,toggleChatWindow:Q,showToast:P,dismissToast:B},n=u.current.length;await Xm(L,t),u.current.length===n&&(g("chatDisabled"in D?!!D.chatDisabled:!(null==(e=o.chatInput)||!e.disabled)),Gm(D,t,h),v("function"==typeof D.file),T(E.current),m(!1))},null==(r=o.chatInput)?void 0:r.botDelay))},[C,null==(e=o.chatInput)?void 0:e.blockSpam,null==(t=o.chatInput)?void 0:t.botDelay,null==(n=o.chatInput)?void 0:n.disabled,E,y,T,M,d,A,f,i,s,c,l,a,Q,P,B,x]);return{handleSubmitText:R.useCallback(async(e,t=!0)=>{var n,r;e=e??(null==(n=k.current)?void 0:n.value),!(null!=(r=o.event)&&r.rcbUserSubmitText&&(await D(km.USER_SUBMIT_TEXT,{inputText:e,sendInChat:t})).defaultPrevented||!A())&&L(e,t)},[D,A,L,k,null==(r=o.event)?void 0:r.rcbUserSubmitText])}},jv=()=>{var e;const{settings:t}=cm();return R.useMemo(()=>{var e;if(typeof window>"u"||!window.navigator)return!1;if(null==(e=t.device)||!e.applyMobileOptimizations)return!0;const n=navigator.userAgent,r=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n),o=window.innerWidth>=768;return r&&o},[null==(e=t.device)?void 0:e.applyMobileOptimizations])},Hv=({buttons:e})=>{var t,n,r,o,a,i,l,s,c,u,A;const d=jv(),{settings:f}=cm(),{styles:p}=fm(),{textAreaDisabled:h,textAreaSensitiveMode:g,inputLength:m,hasFlowStarted:v,setHasFlowStarted:b,setInputLength:y}=wm(),{inputRef:w}=mm(),[x,k]=R.useState(!1),[E,S]=R.useState(!1),{handleSubmitText:C}=zv(),{setTextAreaValue:P}=Mv(),B={boxSizing:d?"content-box":"border-box",...p.chatInputAreaStyle},D={outline:h?"":"none",boxShadow:h?"":`0 0 5px ${null==(t=f.general)?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...p.chatInputAreaStyle,...p.chatInputAreaFocusedStyle},T={cursor:`url("${null==(n=f.general)?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...p.chatInputAreaStyle,...p.chatInputAreaDisabledStyle},I={color:"#989898",...p.characterLimitStyle},Q={color:"#ff0000",...p.characterLimitReachedStyle},M=h?null==(r=f.chatInput)?void 0:r.disabledPlaceholderText:null==(o=f.chatInput)?void 0:o.enabledPlaceholderText,L=()=>{h||k(!0)},O=()=>{k(!1)},N=()=>{S(!0)},F=()=>{S(!1)},z=async e=>{var t;if(!E&&"Enter"===e.key){if(e.shiftKey)return void(null!=(t=f.chatInput)&&t.allowNewline||e.preventDefault());e.preventDefault(),await C()}},j=e=>{w.current&&(P(e.target.value),y(w.current.value.length))};return rA.jsxs("div",{"aria-label":(null==(a=f.ariaLabel)?void 0:a.inputTextArea)??"input text area",role:"textbox",onMouseDown:e=>{var t;e.stopPropagation(),!v&&"ON_CHATBOT_INTERACT"===(null==(t=f.general)?void 0:t.flowStartTrigger)&&b(!0)},style:{...p.chatInputContainerStyle},className:"rcb-chat-input",children:[g&&null!=(i=f.sensitiveInput)&&i.maskInTextArea?rA.jsx("input",{ref:w,type:"password",className:"rcb-chat-input-textarea",style:h?T:x?D:B,placeholder:M,onChange:j,onKeyDown:z,onFocus:L,onBlur:O,onCompositionStart:N,onCompositionEnd:F}):rA.jsx("textarea",{ref:w,style:h?T:x?D:B,rows:1,className:"rcb-chat-input-textarea",placeholder:M,onChange:j,onKeyDown:z,onFocus:L,onBlur:O,onCompositionStart:N,onCompositionEnd:F}),rA.jsxs(rA.Fragment,{children:[null==e?void 0:e.map((e,t)=>rA.jsx(R.Fragment,{children:e},t)),(null==(l=f.chatInput)?void 0:l.showCharacterCount)&&null!=(null==(s=f.chatInput)?void 0:s.characterLimit)&&(null==(c=f.chatInput)?void 0:c.characterLimit)>0&&rA.jsxs("div",{className:"rcb-chat-input-char-counter",style:m>=(null==(u=f.chatInput)?void 0:u.characterLimit)?Q:I,children:[m,"/",null==(A=f.chatInput)?void 0:A.characterLimit]})]})]})},_v=({buttons:e})=>{var t;const{settings:n}=cm(),{styles:r}=fm();return rA.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[rA.jsx("div",{className:"rcb-chat-footer",children:null==e?void 0:e.map((e,t)=>rA.jsx(R.Fragment,{children:e},t))}),rA.jsx("span",{children:null==(t=n.footer)?void 0:t.text})]})},Uv=()=>{var e,t,n,r,o,a,i;const{settings:l}=cm(),{styles:s}=fm(),{unreadCount:c}=wm(),{isChatWindowOpen:u,toggleChatWindow:A}=Tm(),[d,f]=R.useState(!1),p={backgroundImage:`linear-gradient(to right, ${null==(e=l.general)?void 0:e.secondaryColor},\n\t\t\t${null==(t=l.general)?void 0:t.primaryColor})`,...s.chatButtonStyle},h={transform:"scale(1.05)",...s.chatButtonStyle,...s.chatButtonHoveredStyle},g={backgroundImage:`url(${null==(n=l.chatButton)?void 0:n.icon})`,fill:"#fff",width:75,height:75,...s.chatIconStyle};return rA.jsx(rA.Fragment,{children:!(null!=(r=l.general)&&r.embedded)&&rA.jsxs("div",{"aria-label":(null==(o=l.ariaLabel)?void 0:o.chatButton)??"open chat",role:"button",style:d?h:p,className:"rcb-toggle-button "+(u?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{f(!0)},onMouseLeave:()=>{f(!1)},onClick:()=>A(!0),children:[(()=>{var e;const t=null==(e=l.chatButton)?void 0:e.icon;return t&&"string"!=typeof t?t&&rA.jsx("span",{className:"rcb-toggle-icon",children:rA.jsx(t,{style:g})}):rA.jsx("span",{className:"rcb-toggle-icon",style:g})})(),!(null!=(a=l.notification)&&a.disabled)&&(null==(i=l.notification)?void 0:i.showCount)&&rA.jsx("span",{style:{...s.notificationBadgeStyle},className:"rcb-badge",children:c})]})})},qv=()=>{var e,t,n,r;const o=jv(),{settings:a}=cm(),{styles:i}=fm(),{chatBodyRef:l}=mm(),{isChatWindowOpen:s,toggleChatWindow:c}=Tm(),[u,A]=R.useState(!1),[d,f]=R.useState(!1),[p,h]=R.useState(0);R.useEffect(()=>{var e,t,n;const r=null==(e=a.tooltip)?void 0:e.mode;if("ALWAYS"===r)if(o){let e;e=s?((null==(t=l.current)?void 0:t.offsetWidth)??375)-("number"==typeof(null==(n=i.chatButtonStyle)?void 0:n.width)?i.chatButtonStyle.width:75):0,h(e),A(!0)}else A(!s);else"NEVER"===r?A(!1):"START"===r?d?A(!1):(f(!0),A(!0)):"CLOSE"===r&&A(!s)},[s]);const g={transform:`translateX(-${p}px)`,right:((null==(e=i.chatButtonStyle)?void 0:e.width)??75)+40,bottom:30,backgroundColor:null==(t=a.general)?void 0:t.secondaryColor,color:"#fff",...i.tooltipStyle},m={borderColor:`transparent transparent transparent ${g.backgroundColor}`};return rA.jsx(rA.Fragment,{children:!(null!=(n=a.general)&&n.embedded)&&rA.jsxs("div",{"data-testid":"chat-tooltip",style:g,className:"rcb-chat-tooltip "+(u?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>c(!0),children:[rA.jsx("span",{children:null==(r=a.tooltip)?void 0:r.text}),rA.jsx("span",{className:"rcb-chat-tooltip-tail",style:m})]})})},Vv=({id:e,content:t,timeout:n})=>{var r,o;const{settings:a}=cm(),{styles:i}=fm(),[l]=R.useState({toastPromptStyle:{...i.toastPromptStyle},toastPromptHoveredStyle:{...i.toastPromptHoveredStyle}}),{dismissToast:s}=Rv(),[c,u]=R.useState(!1),A={color:null==(r=a.general)?void 0:r.primaryColor,borderColor:null==(o=a.general)?void 0:o.primaryColor,...l.toastPromptHoveredStyle};return R.useEffect(()=>{if(n){const t=setTimeout(()=>{s(e)},n);return()=>clearTimeout(t)}},[e,s,n]),"string"==typeof t?rA.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?A:l.toastPromptStyle,onMouseDown:async t=>{var n;null!=(n=a.toast)&&n.dismissOnClick&&(t.preventDefault(),await s(e))},className:"rcb-toast-prompt",children:t}):rA.jsx(rA.Fragment,{children:t})},Wv=()=>{var e,t,n,r,o,a,i,l,s,c,u,A;const{styles:d}=fm(),{toasts:f}=Ov(),p={bottom:`calc(${"number"==typeof(null==(e=d.footerStyle)?void 0:e.height)?`${null==(t=d.footerStyle)?void 0:t.height}px`:(null==(n=d.footerStyle)?void 0:n.height)??"50px"} + ${"number"==typeof(null==(r=d.chatInputContainerStyle)?void 0:r.height)?`${null==(o=d.chatInputContainerStyle)?void 0:o.height}px`:(null==(a=d.chatInputContainerStyle)?void 0:a.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${"number"==typeof(null==(i=d.chatWindowStyle)?void 0:i.width)?`${null==(l=d.chatWindowStyle)?void 0:l.width}px`:(null==(s=d.chatWindowStyle)?void 0:s.width)??"375px"} / 2)`,maxWidth:`calc(${"number"==typeof(null==(c=d.chatWindowStyle)?void 0:c.width)?`${null==(u=d.chatWindowStyle)?void 0:u.width}px`:(null==(A=d.chatWindowStyle)?void 0:A.width)??"375px"} - 50px)`,...d.toastPromptContainerStyle};return rA.jsx("div",{className:"rcb-toast-prompt-container",style:p,children:f.map(e=>rA.jsx(Vv,{id:e.id,content:e.content,timeout:e.timeout},e.id))})},Yv=({file:e,fileType:t,fileUrl:n})=>{var r,o,a;const{settings:i}=cm(),{styles:l}=fm(),s={backgroundColor:null==(r=i.general)?void 0:r.primaryColor,maxWidth:null!=(o=i.userBubble)&&o.showAvatar?"65%":"70%",...l.mediaDisplayContainerStyle};return rA.jsx(rA.Fragment,{children:n?rA.jsxs(rA.Fragment,{children:["image"===t&&n&&rA.jsx("div",{style:s,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:rA.jsx("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),"video"===t&&n&&rA.jsx("div",{style:s,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:rA.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[rA.jsx("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),"audio"===t&&n&&rA.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:null!=(a=i.userBubble)&&a.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[rA.jsx("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):rA.jsx(rA.Fragment,{})})},Gv=async e=>{if(!e)return{fileType:null,fileUrl:null};const t=e.type.split("/")[0];if(!["image","video","audio"].includes(t))return{fileType:null,fileUrl:null};try{const n=await new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(new Error("File reading failed")),r.readAsDataURL(e)});return{fileType:t,fileUrl:n}}catch(e){return console.error(e),{fileType:null,fileUrl:null}}},Xv=()=>{var e,t,n,r,o,a;const{settings:i}=cm(),{styles:l}=fm(),{injectMessage:s,simulateStreamMessage:c,streamMessage:u,removeMessage:A,endStreamMessage:d}=wv(),{getCurrPath:f,getPrevPath:p,goToPath:h,blockAllowsAttachment:g}=Fv(),{flowRef:m,inputRef:v}=mm(),b=m.current,{showToast:y,dismissToast:w}=Rv(),{dispatchRcbEvent:x}=Dm(),{toggleChatWindow:k}=Tm(),{setTextAreaValue:E}=Mv(),{handleSubmitText:S}=zv(),C={cursor:`url("${null==(e=i.general)?void 0:e.actionDisabledIcon}"), auto`,...l.fileAttachmentButtonStyle,...l.fileAttachmentButtonDisabledStyle},P={backgroundImage:`url(${null==(t=i.fileAttachment)?void 0:t.icon})`,fill:"#a6a6a6",...l.fileAttachmentIconStyle},B={backgroundImage:`url(${null==(n=i.fileAttachment)?void 0:n.icon})`,fill:"#a6a6a6",...l.fileAttachmentIconStyle,...l.fileAttachmentIconDisabledStyle};return rA.jsxs("label",{"aria-label":(null==(r=i.ariaLabel)?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:g?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:g?{...l.fileAttachmentButtonStyle}:C,children:[rA.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async e=>{var t,n,r,o;const a=e.target.files;if(!a)return;const l=Array.from(a);if(e.target.value="",null!=(t=i.event)&&t.rcbUserUploadFile&&(await x(km.USER_UPLOAD_FILE,{files:l})).defaultPrevented)return;const g=f();if(!g)return;const m=b[g];if(!m)return;const C=m.file;if(null!=C){const e=[];for(let t=0;t<l.length;t++){if(e.push(l[t].name),null==(n=i.fileAttachment)||!n.showMediaDisplay)continue;const r=await Gv(l[t]);!r.fileType||!r.fileUrl||await s(rA.jsx(Yv,{file:l[t],fileType:r.fileType,fileUrl:r.fileUrl}),"USER")}await S("📄 "+e.join(", "),null==(r=i.fileAttachment)?void 0:r.sendFileName),await C({userInput:null==(o=v.current)?void 0:o.value,prevPath:p(),currPath:f(),goToPath:h,setTextAreaValue:E,injectMessage:s,simulateStreamMessage:c,streamMessage:u,removeMessage:A,endStreamMessage:d,toggleChatWindow:k,showToast:y,dismissToast:w,files:l})}},multiple:null==(o=i.fileAttachment)?void 0:o.multiple,accept:null==(a=i.fileAttachment)?void 0:a.accept,disabled:!g}),(()=>{var e,t;const n=g?null==(e=i.fileAttachment)?void 0:e.icon:null==(t=i.fileAttachment)?void 0:t.iconDisabled;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:g?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:rA.jsx(n,{style:g?P:B})}):rA.jsx("span",{className:g?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:g?P:B})})()]})},Kv=()=>{var e,t,n,r,o,a;const{settings:i}=cm(),{styles:l}=fm(),{syncedTextAreaDisabledRef:s}=wm(),{inputRef:c}=mm(),{textAreaDisabled:u,setTextAreaValue:A}=Mv(),d=R.useRef(null),f=R.useRef(null),[p,h]=R.useState(!1),g={cursor:`url("${null==(e=i.general)?void 0:e.actionDisabledIcon}"), auto`,...l.emojiButtonStyle,...l.emojiButtonDisabledStyle},m={backgroundImage:`url(${null==(t=i.emoji)?void 0:t.icon})`,fill:"#a6a6a6",...l.emojiIconStyle},v={backgroundImage:`url(${null==(n=i.emoji)?void 0:n.icon})`,fill:"#a6a6a6",...l.emojiIconStyle,...l.emojiIconDisabledStyle};R.useEffect(()=>{const e=e=>{const t=e.composedPath();d.current&&!t.includes(d.current)&&f.current&&!t.includes(f.current)&&h(!1)},t=()=>{(()=>{if(d.current&&f.current){const e=f.current.getBoundingClientRect(),t=d.current.offsetHeight,n=e.top-t-8;d.current.style.left=`${e.left}px`,d.current.style.top=`${n}px`}})()};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t)}},[]);return rA.jsxs(rA.Fragment,{children:[rA.jsx("div",{"aria-label":(null==(r=i.ariaLabel)?void 0:r.emojiButton)??"emoji picker",role:"button",ref:f,className:""+(u?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled"),style:u?g:{...l.emojiButtonStyle},onMouseDown:e=>{e.preventDefault(),s.current?h(!1):h(e=>!e)},children:(()=>{var e,t;const n=u?null==(e=i.emoji)?void 0:e.iconDisabled:null==(t=i.emoji)?void 0:t.icon;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:""+(u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled"),children:rA.jsx(n,{style:u?v:m})}):rA.jsx("span",{className:""+(u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled"),style:u?v:m})})()}),p&&rA.jsx("div",{className:"rcb-emoji-button-popup",ref:d,children:null==(a=null==(o=i.emoji)?void 0:o.list)?void 0:a.map((e,t)=>rA.jsx("span",{className:"rcb-emoji",onMouseDown:t=>((e,t)=>{e.preventDefault(),c.current&&(A(c.current.value+t),setTimeout(()=>{const e=c.current;if(e){e.focus();const t=e.value.length;e.setSelectionRange(t,t)}},50)),h(!1)})(t,e),children:e},t))})]})},Jv=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{audioToggledOn:a,toggleAudio:i}=yv(),l={backgroundImage:`url(${null==(e=r.audio)?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},s={backgroundImage:`url(${null==(t=r.audio)?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return rA.jsx("div",{"aria-label":(null==(n=r.ariaLabel)?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async e=>{e.preventDefault(),await i()},style:a?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var e,t;const n=a?null==(e=r.audio)?void 0:e.icon:null==(t=r.audio)?void 0:t.iconDisabled;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:rA.jsx(n,{style:a?l:s,"data-testid":"rcb-audio-icon-svg"})}):rA.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:a?l:s})})()})},Zv=()=>{var e,t;const{settings:n}=cm(),{styles:r}=fm(),{toggleChatWindow:o}=Tm(),a={backgroundImage:`url(${null==(e=n.header)?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return rA.jsx("div",{"aria-label":(null==(t=n.ariaLabel)?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:e=>{e.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var e;const t=null==(e=n.header)?void 0:e.closeChatIcon;return t&&"string"!=typeof t?t&&rA.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:rA.jsx(t,{style:a})}):rA.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:a})})()})},$v=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{notificationsToggledOn:a,toggleNotifications:i}=(()=>{const{notificationsToggledOn:e,toggleNotifications:t,playNotificationSound:n}=vv();return{notificationsToggledOn:e,toggleNotifications:t,playNotificationSound:n}})(),l={backgroundImage:`url(${null==(e=r.notification)?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},s={backgroundImage:`url(${null==(t=r.notification)?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return rA.jsx("div",{"aria-label":(null==(n=r.ariaLabel)?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async e=>{e.preventDefault(),await i()},style:a?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var e,t;const n=a?null==(e=r.notification)?void 0:e.icon:null==(t=r.notification)?void 0:t.iconDisabled;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:rA.jsx(n,{style:a?l:s,"data-testid":"rcb-notification-icon-svg"})}):rA.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:a?l:s})})()})},eb=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{injectMessage:a}=wv(),{inputRef:i}=mm(),{voiceToggledOn:l,toggleVoice:s}=Qv(),{setInputLength:c,setTextAreaValue:u,textAreaDisabled:A}=Mv(),{handleSubmitText:d}=zv(),f=R.useRef([]),[p,h]=R.useState(!1);R.useEffect(()=>{var e;null!=(e=r.voice)&&e.sendAsAudio?(b(),f.current=[]):d()},[p]),R.useEffect(()=>{l?((e,t,n,r,o,a,i)=>{var l;null!=(l=e.voice)&&l.sendAsAudio?Dv(n,a):Bv(e,t,n,r,o,i)})(r,s,v,u,c,f,i):Tv()},[l]);const g={backgroundImage:`url(${null==(e=r.voice)?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},m={backgroundImage:`url(${null==(t=r.voice)?void 0:t.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},v=()=>{h(e=>!e)},b=async()=>{const e=new Blob(f.current,{type:"audio/wav"}),t=new File([e],"voice-input.wav",{type:"audio/wav"}),n=await Gv(t);!n.fileType||!n.fileUrl||await a(rA.jsx(Yv,{file:t,fileType:n.fileType,fileUrl:n.fileUrl}),"USER")};return rA.jsx("div",{"aria-label":(null==(n=r.ariaLabel)?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async e=>{e.preventDefault(),!A&&await s()},style:l&&!A?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:l&&!A?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var e,t;const n=l?null==(e=r.voice)?void 0:e.icon:null==(t=r.voice)?void 0:t.iconDisabled;return n&&"string"!=typeof n?n&&rA.jsx("span",{className:"rcb-voice-icon "+(l&&!A?"on":""),children:rA.jsx(n,{style:l&&!A?g:m})}):rA.jsx("span",{className:"rcb-voice-icon"+(l&&!A?"-on":""),"data-testid":"rcb-voice-icon",style:l&&!A?g:m})})()})},tb=()=>{var e,t,n,r,o,a,i,l;const{settings:s}=cm(),{styles:c}=fm(),{textAreaDisabled:u}=wm(),[A,d]=R.useState(!1),{handleSubmitText:f}=zv(),p={backgroundColor:null==(e=s.general)?void 0:e.primaryColor,...c.sendButtonStyle},h={cursor:`url("${null==(t=s.general)?void 0:t.actionDisabledIcon}"), auto`,backgroundColor:null==(n=s.general)?void 0:n.primaryColor,...c.sendButtonStyle,...c.sendButtonDisabledStyle},g={backgroundColor:null==(r=s.general)?void 0:r.secondaryColor,...c.sendButtonStyle,...c.sendButtonHoveredStyle},m={backgroundImage:`url(${null==(o=s.chatInput)?void 0:o.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle},v={backgroundImage:`url(${null==(a=s.chatInput)?void 0:a.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconDisabledStyle},b={backgroundImage:`url(${null==(i=s.chatInput)?void 0:i.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconHoveredStyle};return rA.jsx("div",{"aria-label":(null==(l=s.ariaLabel)?void 0:l.sendButton)??"send message",role:"button",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},onMouseDown:async e=>{null==e||e.preventDefault(),!u&&await f()},style:u?h:A?g:p,className:"rcb-send-button",children:(()=>{var e;const t=null==(e=s.chatInput)?void 0:e.sendButtonIcon;return t&&"string"!=typeof t?t&&rA.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:rA.jsx(t,{style:u?v:A?b:m})}):rA.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:u?v:A?b:m})})()})},nb=(e,t)=>{var n,r,o,a,i,l,s,c,u;const A={[Gg.AUDIO_BUTTON]:null==(n=e.audio)?void 0:n.disabled,[Gg.CLOSE_CHAT_BUTTON]:null==(r=e.general)?void 0:r.embedded,[Gg.EMOJI_PICKER_BUTTON]:null==(o=e.emoji)?void 0:o.disabled,[Gg.FILE_ATTACHMENT_BUTTON]:null==(a=e.fileAttachment)?void 0:a.disabled,[Gg.NOTIFICATION_BUTTON]:null==(i=e.notification)?void 0:i.disabled,[Gg.SEND_MESSAGE_BUTTON]:!1,[Gg.VOICE_MESSAGE_BUTTON]:null==(l=e.voice)?void 0:l.disabled},d={},f=e=>e?e.map(e=>{if("string"==typeof e){if((e=>Object.values(Gg).includes(e))(e)&&!A[e]){if(d[e])return d[e];const n=t[e];if("function"==typeof n){const t=n();return d[e]=t,t}return null}return null}return e}).filter(e=>null!==e):[];return{header:f(null==(s=e.header)?void 0:s.buttons),chatInput:f(null==(c=e.chatInput)?void 0:c.buttons),footer:f(null==(u=e.footer)?void 0:u.buttons)}},rb=()=>{const{settings:e}=cm(),t=R.useMemo(()=>({[Gg.CLOSE_CHAT_BUTTON]:()=>rA.jsx(Zv,{}),[Gg.AUDIO_BUTTON]:()=>rA.jsx(Jv,{}),[Gg.NOTIFICATION_BUTTON]:()=>rA.jsx($v,{}),[Gg.EMOJI_PICKER_BUTTON]:()=>rA.jsx(Kv,{}),[Gg.FILE_ATTACHMENT_BUTTON]:()=>rA.jsx(Xv,{}),[Gg.SEND_MESSAGE_BUTTON]:()=>rA.jsx(tb,{}),[Gg.VOICE_MESSAGE_BUTTON]:()=>rA.jsx(eb,{})}),[]),{header:n,chatInput:r,footer:o}=R.useMemo(()=>nb(e,t),[e,t]);return{headerButtons:R.useMemo(()=>n,[n]),chatInputButtons:R.useMemo(()=>r,[r]),footerButtons:R.useMemo(()=>o,[o])}},ob=()=>{const{settings:e}=cm(),{styles:t}=fm(),{setSyncedMessages:n,syncedMessagesRef:r}=Mm(),{isLoadingChatHistory:o,setIsLoadingChatHistory:a,hasChatHistoryLoaded:i,setHasChatHistoryLoaded:l}=wm(),{chatBodyRef:s}=mm(),{dispatchRcbEvent:c}=Dm(),u=R.useCallback(async()=>{var o,i;const u=lv();if(!u||null!=(o=e.event)&&o.rcbLoadChatHistory&&(await c(km.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;a(!0);const A=(null==(i=s.current)?void 0:i.scrollHeight)??0;((e,t,n,r,o,a,i,l,s)=>{var c;if(tv=!0,null!=n)try{const c=$m(rA.jsx(Jm,{}),"SYSTEM"),u=o.current.slice(1);r([c,...u]);const A=n.map(n=>{if("object"===n.type){const r=dv(n.content,e,t);return{...n,content:r}}return n});setTimeout(()=>{var t;const n=o.current.slice(1);let a=null!=(t=e.chatHistory)&&t.autoLoad?$m(rA.jsx(rA.Fragment,{}),"SYSTEM"):$m(rA.jsx(Km,{}),"SYSTEM");r([...A,a,...n]),s(!0)},500),setTimeout(()=>{if(!a.current)return;const{scrollHeight:e}=a.current,t=e-i;a.current.scrollTop+=t,l(!1)},510)}catch{ev.removeItem(null==(c=e.chatHistory)?void 0:c.storageKey)}})(e,t,u,n,r,s,A,a,l)},[e,t,c,r,s,a,l]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:a,hasChatHistoryLoaded:i,showChatHistory:u}},ab=()=>{var e,t,n;const{settings:r}=cm(),{styles:o}=fm(),{showChatHistory:a}=ob(),[i,l]=R.useState(!1),s={color:null==(e=r.general)?void 0:e.primaryColor,borderColor:null==(t=r.general)?void 0:t.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return rA.jsx("div",{className:"rcb-view-history-container",children:rA.jsx("div",{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},style:i?s:{...o.chatHistoryButtonStyle},onMouseDown:e=>{e.preventDefault(),a()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:rA.jsx("p",{children:null==(n=r.chatHistory)?void 0:n.viewChatHistoryButtonText})})})},ib=()=>{var e,t,n,r;const o=jv(),{settings:a}=cm(),{replaceMessages:i}=wv(),{isBotTyping:l,isChatWindowOpen:s,setUnreadCount:c,setSyncedIsChatWindowOpen:u,setSyncedTextAreaDisabled:A,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:f,setSyncedIsScrolling:p,syncedIsScrollingRef:h,syncedIsChatWindowOpenRef:g}=wm(),{chatBodyRef:m}=mm(),{viewportHeight:v,setViewportHeight:b,setViewportWidth:y,scrollToBottom:w}=Tm(),{setUpNotifications:x}=vv(),{handleFirstInteraction:k}=(()=>{var e;const{settings:t}=cm(),{hasInteractedPage:n,setHasInteractedPage:r,hasFlowStarted:o,setHasFlowStarted:a}=wm(),i=R.useCallback(()=>{var e;if(r(!0),!o&&"ON_PAGE_INTERACT"===(null==(e=t.general)?void 0:e.flowStartTrigger)&&a(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const n=new window.SpeechSynthesisUtterance;n.text="",n.onend=()=>{window.removeEventListener("click",i),window.removeEventListener("keydown",i),window.removeEventListener("touchstart",i)},window.speechSynthesis.speak(n)},[o,null==(e=t.general)?void 0:e.flowStartTrigger]);return{hasInteractedPage:n,handleFirstInteraction:i}})(),{showChatHistory:E}=ob(),S=R.useRef(0),C=R.useRef(!1);R.useEffect(()=>(window.addEventListener("click",k),window.addEventListener("keydown",k),window.addEventListener("touchstart",k),()=>{window.removeEventListener("click",k),window.removeEventListener("keydown",k),window.removeEventListener("touchstart",k)}),[]),R.useEffect(()=>{const e=m.current;if(!e)return;const t=()=>{C.current||(C.current=!0,requestAnimationFrame(()=>{var t,n;if(!e)return;const{scrollTop:r,clientHeight:o,scrollHeight:i}=e,l=r+o<i-((null==(t=a.chatWindow)?void 0:t.messagePromptOffset)??30);p(l),h.current=l,l||(r+o>=i-1&&(e.scrollTop=i-o-1),(g.current||null!=(n=a.general)&&n.embedded)&&c(0)),C.current=!1}))};return e.addEventListener("wheel",t,{passive:!0}),e.addEventListener("touchmove",t,{passive:!0}),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchmove",t)}},[]),R.useEffect(()=>{var e,t,n;A(null==(e=a.chatInput)?void 0:e.disabled),u(null==(t=a.chatWindow)?void 0:t.defaultOpen),d(null==(n=a.audio)?void 0:n.defaultToggledOn),setTimeout(()=>{var e;f(null==(e=a.voice)?void 0:e.defaultToggledOn)},1)},[]),R.useEffect(()=>{var e;null!=(e=a.notification)&&e.disabled||x()},[null==(e=a.notification)?void 0:e.disabled]),R.useEffect(()=>{!h.current&&null!=m&&m.current&&w()},[l]),R.useEffect(()=>{var e,t;if(null!=(e=a.chatHistory)&&e.disabled)ev&&ev.removeItem(nv);else if(uv(a),lv().length>0){const e=$m(rA.jsx(ab,{}),"SYSTEM");i([e]),null!=(t=a.chatHistory)&&t.autoLoad&&E()}},[null==(t=a.chatHistory)?void 0:t.storageKey,null==(n=a.chatHistory)?void 0:n.maxEntries,null==(r=a.chatHistory)?void 0:r.disabled]),R.useEffect(()=>{var e;o||null!=(e=a.general)&&e.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",e=>{if(!e.target)return;const{x:t,y:n,width:r,height:o}=e.target.boundingRect;0==t&&0==n&&0==r&&0==o?(setTimeout(()=>{var e;b(null==(e=window.visualViewport)?void 0:e.height)},101),setTimeout(()=>{var e,t;v!=(null==(e=window.visualViewport)?void 0:e.height)&&b(null==(t=window.visualViewport)?void 0:t.height)},1001)):setTimeout(()=>{var e;b((null==(e=window.visualViewport)?void 0:e.height)-o)},101)}))},[o]),R.useEffect(()=>{var e,t,n,r;if(o)return;s&&(b(null==(e=window.visualViewport)?void 0:e.height),y(null==(t=window.visualViewport)?void 0:t.width));const a=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),i=()=>S.current=window.scrollY,l=()=>{var e,t;b(null==(e=window.visualViewport)?void 0:e.height),y(null==(t=window.visualViewport)?void 0:t.width)},c=()=>{var e;window.removeEventListener("scroll",a),window.removeEventListener("scroll",i),null==(e=window.visualViewport)||e.removeEventListener("resize",l)};return s?(c(),document.body.style.position="fixed",window.addEventListener("scroll",a),null==(n=window.visualViewport)||n.addEventListener("resize",l)):(document.body.style.position="static",c(),window.scrollTo({top:S.current,left:0,behavior:"auto"}),window.addEventListener("scroll",i),null==(r=window.visualViewport)||r.removeEventListener("resize",l)),c},[s,o])},lb="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",sb="2592000",cb="RCB_THEME_CACHE_DATA",ub=async(e,t)=>{const{id:n,version:r,baseUrl:o=lb,cacheDuration:a=sb}=t,i=r||await(async(e,t)=>{const n=`${t}/${e}/meta.json`;try{const e=await fetch(n);return e.ok?(await e.json()).version:(console.error(`Failed to fetch meta.json from ${n}`),null)}catch(e){return console.error(`Failed to fetch meta.json from ${n}`,e),null}})(n,o);if(!i)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const l=((e,t,n)=>{const r=localStorage.getItem(`${cb}_${e}_${t}`);if(!r)return null;try{const e=JSON.parse(r),t=(new Date).getTime(),o=Math.floor(t/1e3);return e.cacheDate+n>=o?e:null}catch(t){return console.error(`Unable to fetch cache for ${e}`,t),null}})(n,i,a);if(l){const t=Ab(e,l.cssStylesText);return{settings:l.settings,inlineStyles:l.inlineStyles,cssStylesText:t}}const s=`${o}/${n}/${i}/styles.css`,c=`${o}/${n}/${i}/settings.json`,u=`${o}/${n}/${i}/styles.json`;let A="";const d=await fetch(s);d.ok?A=await d.text():console.info(`Could not fetch styles.css from ${s}`);const f=await fetch(c);let p={};f.ok?p=await f.json():console.info(`Could not fetch settings.json from ${c}`);const h=await fetch(u);let g={};h.ok?g=await h.json():console.info(`Could not fetch styles.json from ${u}`),((e,t,n,r,o)=>{const a=(new Date).getTime(),i={settings:n,inlineStyles:r,cssStylesText:o,cacheDate:Math.floor(a/1e3)};localStorage.setItem(`${cb}_${e}_${t}`,JSON.stringify(i))})(n,i,p,g,A);return{settings:p,inlineStyles:g,cssStylesText:Ab(e,A)}},Ab=(e,t)=>t.split(new RegExp("(?<=})")).map(t=>{const n=t.trim();return n.startsWith("@import")||n.startsWith("@keyframes")||n.startsWith("@media")?n:n?`#${e} ${n}`:""}).join("\n"),db=async(e,t,n,r)=>{var o,a;let i=pb(lm),l=pb(Am),s="";if(null!=r)if(Array.isArray(r))for(const t of r){const n=await ub(e,t);i=fb(n.settings,i),l=fb(n.inlineStyles,l),s+=n.cssStylesText}else{const t=await ub(e,r);i=fb(t.settings,i),l=fb(t.inlineStyles,l),s+=t.cssStylesText}return null!=t&&(i=fb(t,i)),null!=n&&(l=fb(n,l)),null!=(null==(o=i.chatInput)?void 0:o.botDelay)&&(null==(a=i.chatInput)?void 0:a.botDelay)<500&&(i.chatInput.botDelay=500),{settings:i,inlineStyles:l,cssStylesText:s}},fb=(e,t)=>{const n=[{source:e,target:t}];for(;n.length;){const e=n.pop();if(null==e)continue;const{source:t,target:r}=e;for(const e of Object.keys(t)){const o=e;if(R.isValidElement(t[o]))r[o]=t[o];else if("object"!=typeof t[o]||null===t[o]||Array.isArray(t[o]))try{r[o]=t[o]}catch{}else("object"!=typeof r[o]||null===r[o])&&(r[o]={}),n.push({source:t[o],target:r[o]})}}return t},pb=e=>{if(null===e||"object"!=typeof e)return e;const t=Array.isArray(e)?[]:{},n=[{source:e,target:t}],r=new WeakMap;for(r.set(e,t);n.length;){const e=n.pop();if(null==e)continue;const{source:t,target:o}=e;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const a=t[e];if(a&&"object"==typeof a)if(r.has(a))o[e]=r.get(a);else{const t=Array.isArray(a)?[]:{};r.set(a,t),o[e]=t,n.push({source:a,target:t})}else o[e]=a}}return t},hb=()=>{const{settings:e,setSyncedSettings:t,syncedSettingsRef:n}=cm(),r=R.useCallback(n=>{!n||0===Object.keys(n).length||t(pb(fb(n,e)))},[e]),o=R.useCallback(e=>{const r="function"==typeof e?e(n.current):e;t(r)},[n]);return{settings:e,replaceSettings:o,updateSettings:r}},gb=()=>{const{styles:e,setSyncedStyles:t,syncedStylesRef:n}=fm(),r=R.useCallback(n=>{!n||0===Object.keys(n).length||t(pb(fb(n,e)))},[e]),o=R.useCallback(e=>{const r="function"==typeof e?e(n.current):e;t(r)},[n]);return{styles:e,replaceStyles:o,updateStyles:r}},mb=({plugins:e,slots:t})=>{var n,r;const o=jv(),{settings:a}=cm(),{styles:i}=fm(),{hasFlowStarted:l,setHasFlowStarted:s}=wm(),{inputRef:c}=mm(),{viewportHeight:u,viewportWidth:A,isChatWindowOpen:d}=Tm(),{goToPath:f}=Fv(),{headerButtons:p,chatInputButtons:h,footerButtons:g}=rb();ib(),(e=>{const{updateSettings:t}=hb(),{updateStyles:n}=gb(),r=null==e?void 0:e.map(e=>e());R.useEffect(()=>{let e={},o={};null==r||r.forEach(t=>{null!=t&&t.settings&&0!==Object.keys(null==t?void 0:t.settings).length&&(e=fb(t.settings,e)),null!=t&&t.styles&&0!==Object.keys(null==t?void 0:t.styles).length&&(o=fb(t.styles,o))}),t(e),n(o)},[])})(e),R.useEffect(()=>{var e;(l||"ON_LOAD"===(null==(e=a.general)?void 0:e.flowStartTrigger))&&f("start")},[l,null==(n=a.general)?void 0:n.flowStartTrigger]);const m=R.useMemo(()=>{var e;const t="rcb-chatbot-global ";return null!=(e=a.general)&&e.embedded?t+"rcb-window-embedded":d?t+"rcb-window-open":t+"rcb-window-close"},[a,d]);return rA.jsx(rA.Fragment,{children:(()=>{var e,t;return o&&(null==(e=a.device)?void 0:e.desktopEnabled)||!o&&(null==(t=a.device)?void 0:t.mobileEnabled)})()&&rA.jsxs("div",{onMouseDown:e=>{var t,n;!l&&"ON_CHATBOT_INTERACT"===(null==(t=a.general)?void 0:t.flowStartTrigger)&&s(!0),o?null==(n=c.current)||n.blur():null==e||e.preventDefault()},className:m,children:[rA.jsx(qv,{}),rA.jsx(Uv,{}),d&&!o&&!(null!=(r=a.general)&&r.embedded)&&rA.jsxs(rA.Fragment,{children:[rA.jsx("style",{children:"\n\t\t\t\t\t\t\t\t\thtml {\n\t\t\t\t\t\t\t\t\t\toverflow: hidden !important;\n\t\t\t\t\t\t\t\t\t\ttouch-action: none !important;\n\t\t\t\t\t\t\t\t\t\tscroll-behavior: auto !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t"}),rA.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),rA.jsx("div",{style:(()=>{var e,t;return o||null!=(e=a.general)&&e.embedded?null!=(t=a.general)&&t.embedded?{...i.chatWindowStyle}:{...i.chatWindowStyle,zIndex:1e4}:{...i.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${A}px`,height:`${u}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var e,n,r;const o=(null==t?void 0:t.chatBotHeader)||hm,i=(null==t?void 0:t.chatBotBody)||Fm,l=(null==t?void 0:t.chatBotInput)||Hv,s=(null==t?void 0:t.chatBotFooter)||_v;return rA.jsxs(rA.Fragment,{children:[(null==(e=a.general)?void 0:e.showHeader)&&rA.jsx(o,{buttons:p}),rA.jsx(i,{}),rA.jsx(Wv,{}),(null==(n=a.general)?void 0:n.showInputRow)&&rA.jsx(l,{buttons:h}),(null==(r=a.general)?void 0:r.showFooter)&&rA.jsx(s,{buttons:g})]})})()})]})})},vb=R.createContext(void 0),bb=()=>R.useContext(vb),yb=({children:e})=>{var t;const n=R.useRef(""),r=R.useRef({}),[o,a,i]=bm({}),[l,s,c]=bm({}),[u,A]=R.useState(!1);R.useEffect(()=>{A(!0)},[]);return u?rA.jsx("div",{style:{fontFamily:null==(t=o.general)?void 0:t.fontFamily},children:rA.jsx(vb.Provider,{value:{loadConfig:async(e,t,o,i,l,c)=>{n.current=e,r.current=t;const u=await db(e,o,i,l);c.current&&(c.current.textContent=u.cssStylesText),a(u.settings),s(u.inlineStyles)}},children:rA.jsx(um,{settings:o,setSyncedSettings:a,syncedSettingsRef:i,children:rA.jsx(pm,{styles:l,setSyncedStyles:s,syncedStylesRef:c,children:rA.jsx(Nv,{children:rA.jsx(vm,{botIdRef:n,flowRef:r,children:rA.jsx(Bm,{children:rA.jsx(xm,{settings:o,children:rA.jsx(Lm,{children:e})})})})})})})})}):null},wb=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:a,setConfigLoaded:i,styleRootRef:l})=>{const s=R.useMemo(()=>e,[]),c=bb(),{flowRef:u}=mm();u&&u.current!==t&&(u.current=t);return R.useEffect(()=>{(async()=>{var e,u;null!=(e=n.event)&&e.rcbPreLoadChatBot&&(await Sm(km.PRE_LOAD_CHATBOT,{botId:s,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:a})).defaultPrevented||(null!=c&&c.loadConfig&&(await c.loadConfig(s,t,n,r,o,l),i(!0)),null!=(u=n.event)&&u.rcbPostLoadChatBot&&Sm(km.POST_LOAD_CHATBOT,{botId:s,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:a}))})()},[o]),null},xb=["Quickstart","API Docs","Examples","Github","Discord"],kb={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:xb,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:xb,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:xb,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let t="";switch(e.userInput){case"Quickstart":t="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":t="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":t="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":t="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":t="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(t)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},Eb=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:a,slots:i})=>{const l=R.useMemo(()=>e||"rcb-"+Zm(),[]),s=t&&0!==Object.keys(t).length?t:kb,c=n||{},u=r||{},A=a||[],[d,f]=R.useState(!1),p=bb(),h=R.useRef(null),[g,m]=R.useState(o||[]);R.useEffect(()=>{o&&m(o)},[o]);const v=()=>rA.jsxs(rA.Fragment,{children:[rA.jsx(wb,{styleRootRef:h,id:l,flow:s,settings:c,styles:u,themes:g,plugins:A,setConfigLoaded:f}),d&&rA.jsx(mb,{plugins:a,slots:i})]});return null==p?rA.jsxs(yb,{children:[rA.jsx("style",{ref:h}),rA.jsx("div",{id:l,children:v()})]}):rA.jsxs(rA.Fragment,{children:[rA.jsx("style",{ref:h}),rA.jsx("div",{id:l,children:v()})]})},Sb=()=>{const{getBotId:e}=(()=>{const{botIdRef:e}=mm();return{getBotId:R.useCallback(()=>e.current,[e])}})();return{getBotId:e}},Cb=()=>{const{hasFlowStarted:e,restartFlow:t,getFlow:n}=(()=>{const{replaceMessages:e}=wv(),{replacePaths:t,goToPath:n}=Fv(),{replaceToasts:r}=Rv(),{hasFlowStarted:o}=wm(),{flowRef:a,timeoutIdRef:i}=mm(),{settings:l}=cm();return{hasFlowStarted:o,restartFlow:R.useCallback(async()=>{uv(l),i.current&&clearTimeout(i.current),e([]),r([]),t([]),await n("start")},[i,l,e,r,t,uv,n]),getFlow:R.useCallback(()=>(null==a?void 0:a.current)??{},[a])}})();return{hasFlowStarted:e,restartFlow:t,getFlow:n}},Pb=()=>{const{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:a,replaceMessages:i}=wv();return{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:a,replaceMessages:i}},Bb=(e,t)=>{const{getBotId:n}=Sb();R.useEffect(()=>{const r=e=>{e.detail.botId===n()&&t(e)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[n,e,t])},Db=()=>{const{settings:e,replaceSettings:t,updateSettings:n}=hb();return{settings:e,replaceSettings:t,updateSettings:n}},Tb=()=>{const{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:a,focusTextArea:i,blurTextArea:l}=Mv();return{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:a,focusTextArea:i,blurTextArea:l}},Ib=()=>{const{showChatHistory:e,hasChatHistoryLoaded:t}=ob();return{showChatHistory:e,getHistoryMessages:lv,setHistoryMessages:sv,hasChatHistoryLoaded:t}},Qb={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 Mb(e){return t=>{Qb[t]={...e,...Qb[t]}}}["address","main","div","figure","p","pre"].forEach(Mb({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(Mb({content:8,type:73})),["p","pre"].forEach(Mb({content:8,type:65})),["s","small","span","del","ins"].forEach(Mb({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Mb({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Mb({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Mb({type:89}));const Lb=Object.freeze(Qb),Ob=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Nb=Object.keys(Lb).filter(e=>"canvas"!==e&&"iframe"!==e),Rb=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}),Fb=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function zb(){return zb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zb.apply(this,arguments)}function jb({attributes:e={},className:t,children:n=null,selfClose:r=!1,tagName:o}){const a=o;return r?F.createElement(a,zb({className:t},e)):F.createElement(a,zb({className:t},e),n)}class Hb{attribute(e,t){return t}node(e,t){return t}}function _b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
30
30
  /*!
31
31
  * escape-html
32
32
  * Copyright(c) 2012-2013 TJ Holowaychuk
33
33
  * Copyright(c) 2015 Andreas Lubbe
34
34
  * Copyright(c) 2015 Tiancheng "Timothy" Gu
35
35
  * MIT Licensed
36
- */var _b,Ub;var qb=function(){if(Ub)return _b;Ub=1;var e=/["'&<>]/;return _b=function(t){var n=""+t,r=e.exec(n);if(!r)return n;var o,a="",i=0,l=0;for(i=r.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}l!==i&&(a+=n.substring(l,i)),l=i+1,a+=o}return l!==i?a+n.substring(l,i):a},_b}();const Vb=Hb(qb);function Wb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yb=/(url|image|image-set)\(/i;class Gb extends jb{attribute(e,t){return"style"===e&&Object.keys(t).forEach(e=>{String(t[e]).match(Yb)&&delete t[e]}),t}}const Xb=/^<(!doctype|(html|head|body)(\s|>))/i,Kb=/^(aria-|data-|\w+:)/iu,Jb=/{{{(\w+)\/?}}}/;function Zb(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}let $b=class{constructor(e,t={},n=[],r=[]){var o;Wb(this,"allowed",void 0),Wb(this,"banned",void 0),Wb(this,"blocked",void 0),Wb(this,"container",void 0),Wb(this,"content",[]),Wb(this,"props",void 0),Wb(this,"matchers",void 0),Wb(this,"filters",void 0),Wb(this,"keyIndex",void 0),this.props=t,this.matchers=n,this.filters=[...r,new Gb],this.keyIndex=-1,this.container=this.createContainer(e||""),this.allowed=new Set(null!==(o=t.allowList)&&void 0!==o?o:Ob),this.banned=new Set(Lb),this.blocked=new Set(t.blockList)}applyAttributeFilters(e,t){return this.filters.reduce((t,n)=>null!==t&&"function"==typeof n.attribute?n.attribute(e,t):t,t)}applyNodeFilters(e,t){return this.filters.reduce((t,n)=>null!==t&&"function"==typeof n.node?n.node(e,t):t,t)}applyMatchers(e,t){const n={},{props:r}=this;let o=e,a=0,i=null;return this.matchers.forEach(e=>{const l=e.asTag().toLowerCase(),s=this.getTagConfig(l);if(r[e.inverseName]||!this.isTagAllowed(l)||!this.canRenderChild(t,s))return;let c="";for(;o&&(i=e.match(o));){const{index:t,length:l,match:s,valid:u,void:A,...d}=i,f=e.propName+String(a);t>0&&(c+=o.slice(0,t)),u?(c+=A?`{{{${f}/}}}`:`{{{${f}}}}${s}{{{/${f}}}}`,this.keyIndex+=1,a+=1,n[f]={children:s,matcher:e,props:{...r,...d,key:this.keyIndex}}):c+=s,e.greedy?(o=c+o.slice(t+l),c=""):o=o.slice(t+(l||s.length))}e.greedy||(o=c+o)}),0===a?e:this.replaceTokens(o,n)}canRenderChild(e,t){return!(!e.tagName||!t.tagName||e.void)&&(e.children.length>0?e.children.includes(t.tagName):!(e.invalid.length>0&&e.invalid.includes(t.tagName))&&(t.parent.length>0?t.parent.includes(e.tagName):!(!e.self&&e.tagName===t.tagName)&&!!(e&&e.content&t.type)))}convertLineBreaks(e){const{noHtml:t,disableLineBreaks:n}=this.props;if(t||n||e.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return e;let r=e.replace(/\r\n/g,"\n");return r=r.replace(/\n{3,}/g,"\n\n\n"),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||Zb)();if(!n)return;const r=null!==(t=this.props.containerTagName)&&void 0!==t?t:"body",o="body"===r||"fragment"===r?n.body:n.createElement(r);return e.match(Xb)||(o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?Vb(e):e)),o}extractAttributes(e){const{allowAttributes:t}=this.props,n={};let r=0;return 1===e.nodeType&&e.attributes&&([...e.attributes].forEach(o=>{const{name:a,value:i}=o,l=a.toLowerCase(),s=Nb[l]||Nb[a];if(!this.isSafe(e)||!l.match(Kb)&&(!t&&(!s||2===s)||l.startsWith("on")||i.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let c="style"===l?this.extractStyleAttribute(e):i;4===s?c=!0:3===s?c=Number.parseFloat(String(c)):5!==s&&(c=String(c)),n[Rb[l]||l]=this.applyAttributeFilters(l,c),r+=1}),0!==r)?n:null}extractStyleAttribute(e){const t={};return Array.from(e.style).forEach(n=>{const r=e.style[n];("string"==typeof r||"number"==typeof r)&&(t[n.replace(/-([a-z])/g,(e,t)=>String(t).toUpperCase())]=r)}),t}getTagConfig(e){const t={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return Mb[e]?{...t,...Mb[e],tagName:e}:t}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const t=e.getAttribute("href");if(null!=t&&t.startsWith("#"))return!0;const n=e.protocol.toLowerCase();return":"===n||"http:"===n||"https:"===n||"mailto:"===n||"tel:"===n}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,t){const{noHtml:n,noHtmlExceptMatchers:r,allowElements:o,transform:a,transformOnlyAllowList:i}=this.props;let l=[],s="";return[...e.childNodes].forEach(e=>{if(1===e.nodeType){const u=e.nodeName.toLowerCase(),A=this.getTagConfig(u);s&&(l.push(s),s="");const d=this.applyNodeFilters(u,e);if(!d)return;let f;if(a&&(!i||this.isTagAllowed(u))){this.keyIndex+=1;const e=this.keyIndex;f=this.parseNode(d,A);const t=a(d,f,A);if(null===t)return;if(typeof t<"u")return void l.push(F.cloneElement(t,{key:e}));this.keyIndex=e-1}if(this.banned.has(u))return;if(n||r&&"br"!==u||!this.isTagAllowed(u)||!o&&!this.canRenderChild(t,A))l=[...l,...this.parseNode(d,A.tagName?A:t)];else{var c;this.keyIndex+=1;const e=this.extractAttributes(d),t={tagName:u};e&&(t.attributes=e),A.void&&(t.selfClose=A.void),l.push(F.createElement(zb,{...t,key:this.keyIndex},null!==(c=f)&&void 0!==c?c:this.parseNode(d,A)))}}else if(3===e.nodeType){const o=n&&!r?e.textContent:this.applyMatchers(e.textContent||"",t);Array.isArray(o)?l=[...l,...o]:s+=o}}),s&&l.push(s),l}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(Jb);){const[e,a]=o,i=o.index,l=e.includes("/");i>0&&(n.push(r.slice(0,i)),r=r.slice(i));const{children:s,matcher:c,props:u}=t[a];let A;if(l)A=e.length,n.push(c.createElement(s,u));else{const o=r.match(new RegExp(`{{{/${a}}}}`));A=o.index+o[0].length,n.push(c.createElement(this.replaceTokens(r.slice(e.length,o.index),t),u))}r=r.slice(A)}return r.length>0&&n.push(r),0===n.length?"":1===n.length&&"string"==typeof n[0]?n[0]:n}};function ey(e){var t;const{attributes:n,className:r,containerTagName:o,content:a,emptyContent:i,parsedContent:l,tagName:s,noWrap:c}=e,u=null!==(t=o??s)&&void 0!==t?t:"span",A="fragment"===u||c;let d;if(l)d=l;else{const t=new $b(a??"",e).parse();t.length>0&&(d=t)}return d||(d=i),A?F.createElement(F.Fragment,null,d):F.createElement(zb,{attributes:n,className:r,tagName:u},d)}function ty(e){const{attributes:t,className:n,content:r="",disableFilters:o=!1,disableMatchers:a=!1,emptyContent:i=null,filters:l=[],matchers:s=[],onAfterParse:c=null,onBeforeParse:u=null,tagName:A="span",noWrap:d=!1,...f}=e,p=a?[]:s,h=o?[]:l,g=u?[u]:[],m=c?[c]:[];p.forEach(e=>{e.onBeforeParse&&g.push(e.onBeforeParse.bind(e)),e.onAfterParse&&m.push(e.onAfterParse.bind(e))});const v=g.reduce((t,n)=>n(t,e),r??""),b=new $b(v,f,p,h),y=m.reduce((t,n)=>n(t,e),b.parse());return F.createElement(ey,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:i,noWrap:d,parsedContent:0===y.length?void 0:y,tagName:A})}const ny=({children:e})=>rA.jsx("div",{style:{whiteSpace:"normal"},children:rA.jsx(ty,{content:"string"==typeof e?e:""})}),ry={autoConfig:!0},oy=(e,t,n)=>{var r;if(!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&((null==(r=o.renderHtml)?void 0:r.map(e=>e.toUpperCase()).includes(n))??!1)},ay=e=>{const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const a=e[o];"<"===a?r?(t.push(n),n=a):(r=!0,n=a):">"===a?(n+=a,t.push(n),n="",r=!1):r?n+=a:t.push(a)}return""!==n&&t.push(n),t},iy=e=>{const{getFlow:t}=Cb(),{messages:n,replaceMessages:r}=Pb(),{settings:o}=Db(),{hasChatHistoryLoaded:a}=Tb(),i={...e,...ry},l=i.htmlComponent?i.htmlComponent:ny;R.useEffect(()=>{var e,t;if(a){const a=[...n];for(let n=0;n<a.length&&n<((null==(e=o.chatHistory)?void 0:e.maxEntries)??30);n++){const e=a[n];null!=(t=e.tags)&&t.includes("rcb-html-renderer-plugin:parsed")&&(e.contentWrapper=l)}r(a)}},[a]);const s=async e=>{var n;const r=null==(n=e.data.message)?void 0:n.sender.toUpperCase();"string"==typeof e.data.message.content&&oy(e,t(),r)&&("rcb-start-simulate-stream-message"===e.type&&(e.data.simulateStreamChunker=ay),e.data.message.contentWrapper=l,e.data.message.tags||(e.data.message.tags=[]),e.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};Bb(km.PRE_INJECT_MESSAGE,s),Bb(km.CHUNK_STREAM_MESSAGE,s),Bb(km.START_STREAM_MESSAGE,s),Bb(km.START_SIMULATE_STREAM_MESSAGE,s),Bb(km.START_SPEAK_AUDIO,async e=>{oy(e,t(),"BOT")&&(e.data.textToRead=(e=>typeof window.DOMParser<"u"?(new DOMParser).parseFromString(e,"text/html").body.textContent||"":e.replace(/<\/?[^>]+(>|$)/g,""))(e.data.textToRead))});const c={name:"@rcb-plugins/html-renderer"};return null!=i&&i.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),c},ly=e=>()=>iy(e);const sy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uy={};function Ay(e,t){return(uy.jsx?cy:sy).test(e)}const dy=/[ \t\n\f\r]/g;function fy(e){return""===e.replace(dy,"")}class py{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function hy(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new py(n,r,t)}function gy(e){return e.toLowerCase()}py.prototype.property={},py.prototype.normal={},py.prototype.space=null;class my{constructor(e,t){this.property=e,this.attribute=t}}my.prototype.space=null,my.prototype.boolean=!1,my.prototype.booleanish=!1,my.prototype.overloadedBoolean=!1,my.prototype.number=!1,my.prototype.commaSeparated=!1,my.prototype.spaceSeparated=!1,my.prototype.commaOrSpaceSeparated=!1,my.prototype.mustUseProperty=!1,my.prototype.defined=!1;let vy=0;const by=Cy(),yy=Cy(),wy=Cy(),xy=Cy(),ky=Cy(),Ey=Cy(),Sy=Cy();function Cy(){return 2**++vy}const Py=Object.freeze(Object.defineProperty({__proto__:null,boolean:by,booleanish:yy,commaOrSpaceSeparated:Sy,commaSeparated:Ey,number:xy,overloadedBoolean:wy,spaceSeparated:ky},Symbol.toStringTag,{value:"Module"})),By=Object.keys(Py);class Dy extends my{constructor(e,t,n,r){let o=-1;if(super(e,t),Ty(this,"space",r),"number"==typeof n)for(;++o<By.length;){const e=By[o];Ty(this,By[o],(n&Py[e])===Py[e])}}}function Ty(e,t,n){n&&(e[t]=n)}Dy.prototype.defined=!0;const Iy={}.hasOwnProperty;function Qy(e){const t={},n={};let r;for(r in e.properties)if(Iy.call(e.properties,r)){const o=e.properties[r],a=new Dy(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[gy(r)]=r,n[gy(a.attribute)]=r}return new py(t,n,e.space)}const My=Qy({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ly=Qy({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Oy(e,t){return t in e?e[t]:t}function Ny(e,t){return Oy(e,t.toLowerCase())}const Ry=Qy({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ny,properties:{xmlns:null,xmlnsXLink:null}}),Fy=Qy({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:yy,ariaAutoComplete:null,ariaBusy:yy,ariaChecked:yy,ariaColCount:xy,ariaColIndex:xy,ariaColSpan:xy,ariaControls:ky,ariaCurrent:null,ariaDescribedBy:ky,ariaDetails:null,ariaDisabled:yy,ariaDropEffect:ky,ariaErrorMessage:null,ariaExpanded:yy,ariaFlowTo:ky,ariaGrabbed:yy,ariaHasPopup:null,ariaHidden:yy,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ky,ariaLevel:xy,ariaLive:null,ariaModal:yy,ariaMultiLine:yy,ariaMultiSelectable:yy,ariaOrientation:null,ariaOwns:ky,ariaPlaceholder:null,ariaPosInSet:xy,ariaPressed:yy,ariaReadOnly:yy,ariaRelevant:null,ariaRequired:yy,ariaRoleDescription:ky,ariaRowCount:xy,ariaRowIndex:xy,ariaRowSpan:xy,ariaSelected:yy,ariaSetSize:xy,ariaSort:null,ariaValueMax:xy,ariaValueMin:xy,ariaValueNow:xy,ariaValueText:null,role:null}}),zy=Qy({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ny,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ey,acceptCharset:ky,accessKey:ky,action:null,allow:null,allowFullScreen:by,allowPaymentRequest:by,allowUserMedia:by,alt:null,as:null,async:by,autoCapitalize:null,autoComplete:ky,autoFocus:by,autoPlay:by,blocking:ky,capture:null,charSet:null,checked:by,cite:null,className:ky,cols:xy,colSpan:null,content:null,contentEditable:yy,controls:by,controlsList:ky,coords:xy|Ey,crossOrigin:null,data:null,dateTime:null,decoding:null,default:by,defer:by,dir:null,dirName:null,disabled:by,download:wy,draggable:yy,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:by,formTarget:null,headers:ky,height:xy,hidden:by,high:xy,href:null,hrefLang:null,htmlFor:ky,httpEquiv:ky,id:null,imageSizes:null,imageSrcSet:null,inert:by,inputMode:null,integrity:null,is:null,isMap:by,itemId:null,itemProp:ky,itemRef:ky,itemScope:by,itemType:ky,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:by,low:xy,manifest:null,max:null,maxLength:xy,media:null,method:null,min:null,minLength:xy,multiple:by,muted:by,name:null,nonce:null,noModule:by,noValidate:by,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:by,optimum:xy,pattern:null,ping:ky,placeholder:null,playsInline:by,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:by,referrerPolicy:null,rel:ky,required:by,reversed:by,rows:xy,rowSpan:xy,sandbox:ky,scope:null,scoped:by,seamless:by,selected:by,shadowRootClonable:by,shadowRootDelegatesFocus:by,shadowRootMode:null,shape:null,size:xy,sizes:null,slot:null,span:xy,spellCheck:yy,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xy,step:null,style:null,tabIndex:xy,target:null,title:null,translate:null,type:null,typeMustMatch:by,useMap:null,value:yy,width:xy,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ky,axis:null,background:null,bgColor:null,border:xy,borderColor:null,bottomMargin:xy,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:by,declare:by,event:null,face:null,frame:null,frameBorder:null,hSpace:xy,leftMargin:xy,link:null,longDesc:null,lowSrc:null,marginHeight:xy,marginWidth:xy,noResize:by,noHref:by,noShade:by,noWrap:by,object:null,profile:null,prompt:null,rev:null,rightMargin:xy,rules:null,scheme:null,scrolling:yy,standby:null,summary:null,text:null,topMargin:xy,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xy,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:by,disableRemotePlayback:by,prefix:null,property:null,results:xy,security:null,unselectable:null}}),jy=Qy({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:Oy,properties:{about:Sy,accentHeight:xy,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xy,amplitude:xy,arabicForm:null,ascent:xy,attributeName:null,attributeType:null,azimuth:xy,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xy,by:null,calcMode:null,capHeight:xy,className:ky,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:xy,diffuseConstant:xy,direction:null,display:null,dur:null,divisor:xy,dominantBaseline:null,download:by,dx:null,dy:null,edgeMode:null,editable:null,elevation:xy,enableBackground:null,end:null,event:null,exponent:xy,externalResourcesRequired:null,fill:null,fillOpacity:xy,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:Ey,g2:Ey,glyphName:Ey,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xy,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xy,horizOriginX:xy,horizOriginY:xy,id:null,ideographic:xy,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xy,k:xy,k1:xy,k2:xy,k3:xy,k4:xy,kernelMatrix:Sy,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xy,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:xy,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:xy,overlineThickness:xy,paintOrder:null,panose1:null,path:null,pathLength:xy,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ky,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xy,pointsAtY:xy,pointsAtZ:xy,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sy,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sy,rev:Sy,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sy,requiredFeatures:Sy,requiredFonts:Sy,requiredFormats:Sy,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:xy,specularExponent:xy,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xy,strikethroughThickness:xy,string:null,stroke:null,strokeDashArray:Sy,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xy,strokeOpacity:xy,strokeWidth:null,style:null,surfaceScale:xy,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sy,tabIndex:xy,tableValues:null,target:null,targetX:xy,targetY:xy,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sy,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xy,underlineThickness:xy,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xy,values:null,vAlphabetic:xy,vMathematical:xy,vectorEffect:null,vHanging:xy,vIdeographic:xy,version:null,vertAdvY:xy,vertOriginX:xy,vertOriginY:xy,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xy,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Hy=/^data[-\w.:]+$/i,_y=/-[a-z]/g,Uy=/[A-Z]/g;function qy(e){return"-"+e.toLowerCase()}function Vy(e){return e.charAt(1).toUpperCase()}const Wy={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"},Yy=hy([Ly,My,Ry,Fy,zy],"html"),Gy=hy([Ly,My,Ry,Fy,jy],"svg");function Xy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ky,Jy,Zy,$y={};var ew=function(){if(Zy)return $y;Zy=1;var e=$y&&$y.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($y,"__esModule",{value:!0}),$y.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),a="function"==typeof n;return o.forEach(function(e){if("declaration"===e.type){var t=e.property,o=e.value;a?n(t,o,e):o&&((r=r||{})[t]=o)}}),r};var t=e(function(){if(Jy)return Ky;Jy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,l=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(l,s):s}return Ky=function(l,u){if("string"!=typeof l)throw new TypeError("First argument must be a string");if(!l)return[];u=u||{};var A=1,d=1;function f(e){var n=e.match(t);n&&(A+=n.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:A,column:d};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:A,column:d},this.source=u.source}function g(e){var t=new Error(u.source+":"+A+":"+d+": "+e);if(t.reason=e,t.filename=u.source,t.line=A,t.column=d,t.source=l,!u.silent)throw t}function m(e){var t=e.exec(l);if(t){var n=t[0];return f(n),l=l.slice(n.length),t}}function v(){m(n)}function b(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var e=p();if("/"==l.charAt(0)&&"*"==l.charAt(1)){for(var t=2;s!=l.charAt(t)&&("*"!=l.charAt(t)||"/"!=l.charAt(t+1));)++t;if(t+=2,s===l.charAt(t-1))return g("End of comment missing");var n=l.slice(2,t-2);return d+=2,f(n),l=l.slice(t),d+=2,e({type:"comment",comment:n})}}function w(){var t=p(),n=m(r);if(n){if(y(),!m(o))return g("property missing ':'");var l=m(a),u=t({type:"declaration",property:c(n[0].replace(e,s)),value:l?c(l[0].replace(e,s)):s});return m(i),u}}return h.prototype.content=l,v(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()},Ky}());return $y}();const tw=Xy(ew),nw=tw.default||tw,rw=aw("end"),ow=aw("start");function aw(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function iw(e){return e&&"object"==typeof e?"position"in e||"type"in e?sw(e.position):"start"in e||"end"in e?sw(e):"line"in e||"column"in e?lw(e):"":""}function lw(e){return cw(e&&e.line)+":"+cw(e&&e.column)}function sw(e){return lw(e&&e.start)+"-"+lw(e&&e.end)}function cw(e){return e&&"number"==typeof e?e:1}class uw extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},a=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(a=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const i=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=iw(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}uw.prototype.file="",uw.prototype.name="",uw.prototype.reason="",uw.prototype.message="",uw.prototype.stack="",uw.prototype.column=void 0,uw.prototype.line=void 0,uw.prototype.ancestors=void 0,uw.prototype.cause=void 0,uw.prototype.fatal=void 0,uw.prototype.place=void 0,uw.prototype.ruleId=void 0,uw.prototype.source=void 0;const Aw={}.hasOwnProperty,dw=new Map,fw=/[A-Z]/g,pw=/-([a-z])/g,hw=new Set(["table","tbody","thead","tfoot","tr"]),gw=new Set(["td","th"]),mw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vw(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,a){const i=Array.isArray(o.children),l=ow(n);return t(r,o,a,i,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,a){const i=Array.isArray(o.children)?n:t;return a?i(r,o,a):i(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Gy:Yy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=bw(o,e,void 0);return a&&"string"!=typeof a?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function bw(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Gy,e.schema=o),e.ancestors.push(t);const a=Ew(e,t.tagName,!1),i=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&Aw.call(t.properties,o)){const a=kw(e,o,t.properties[o]);if(a){const[o,i]=a;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof i&&gw.has(t.tagName)?r=i:n[o]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=xw(e,t);return hw.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!function(e){return"object"==typeof e?"text"===e.type&&fy(e.value):fy(e)}(e)})),yw(e,i,a,t),ww(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Sw(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Gy,e.schema=o),e.ancestors.push(t);const a=null===t.name?e.Fragment:Ew(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Sw(e,t.position);else{const o=r.name;let a;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Sw(e,t.position);else a=null===r.value||r.value;n[o]=a}return n}(e,t),l=xw(e,t);return yw(e,i,a,t),ww(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Sw(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return ww(r,xw(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function yw(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ww(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function xw(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:dw;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=o.get(e)||0;i=e+"-"+t,o.set(e,t+1)}}const l=bw(e,a,i);void 0!==l&&n.push(l)}return n}function kw(e,t,n){const r=function(e,t){const n=gy(t);let r=t,o=my;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Hy.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(_y,Vy);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!_y.test(e)){let n=e.replace(Uy,qy);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Dy}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{nw(t,r)}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new uw("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=mw+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(pw,Pw)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Aw.call(e,n)&&(t[Cw(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Wy[r.property]||r.property:r.attribute,n]}}function Ew(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Ay(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:!(!o||"Literal"!==t.type),optional:!1}:t}r=n}else r=Ay(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Aw.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Sw(e)}function Sw(e,t){const n=new uw("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=mw+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Cw(e){let t=e.replace(fw,Bw);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Pw(e,t){return t.toUpperCase()}function Bw(e){return"-"+e.toLowerCase()}const Dw={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"]},Tw={};function Iw(e,t,n){if(function(e){return!(!e||"object"!=typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qw(e.children,t,n)}return Array.isArray(e)?Qw(e,t,n):""}function Qw(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Iw(e[o],t,n);return r.join("")}const Mw=document.createElement("i");function Lw(e){const t="&"+e+";";Mw.innerHTML=t;const n=Mw.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function Ow(e,t,n,r){const o=e.length;let a,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function Nw(e,t){return e.length>0?(Ow(e,e.length,0,t),e):t}const Rw={}.hasOwnProperty;function Fw(e){const t={};let n=-1;for(;++n<e.length;)zw(t,e[n]);return t}function zw(e,t){let n;for(n in t){const r=(Rw.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Rw.call(r,a)||(r[a]=[]);const e=o[a];jw(r[a],Array.isArray(e)?e:e?[e]:[])}}}function jw(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Ow(e,0,0,r)}function Hw(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function _w(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Uw=tx(/[A-Za-z]/),qw=tx(/[\dA-Za-z]/),Vw=tx(/[#-'*+\--9=?A-Z^-~]/);function Ww(e){return null!==e&&(e<32||127===e)}const Yw=tx(/\d/),Gw=tx(/[\dA-Fa-f]/),Xw=tx(/[!-/:-@[-`{-~]/);function Kw(e){return null!==e&&e<-2}function Jw(e){return null!==e&&(e<0||32===e)}function Zw(e){return-2===e||-1===e||32===e}const $w=tx(new RegExp("\\p{P}|\\p{S}","u")),ex=tx(/\s/);function tx(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function nx(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(37===a&&qw(e.charCodeAt(n+1))&&qw(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function rx(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Zw(r)?(e.enter(n),i(r)):t(r)};function i(r){return Zw(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}const ox={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rx(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Kw(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const ax={tokenize:function(e){const t=this,n=[];let r,o,a,i=0;return l;function l(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){o=t.events[a][1].end;break}m(i);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Ow(t.events,a+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(i===n.length){if(!r)return d(o);if(r.currentConstruct&&r.currentConstruct.concrete)return p(o);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ix,u,A)(o)}function u(e){return r&&v(),m(i),d(e)}function A(e){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,p(e)}function d(n){return t.containerState={},e.attempt(ix,f,p)(n)}function f(e){return i++,n.push([t.currentConstruct,t.containerState]),d(e)}function p(n){return null===n?(r&&v(),m(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),h(n))}function h(n){return null===n?(g(e.exit("chunkFlow"),!0),m(0),void e.consume(n)):Kw(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(n),h)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(m(i),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Ow(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function m(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ix={tokenize:function(e,t,n){return rx(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function lx(e){return null===e||Jw(e)||ex(e)?1:$w(e)?2:void 0}function sx(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const cx={name:"attention",resolveAll:function(e,t){let n,r,o,a,i,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const A={...e[n][1].end},d={...e[u][1].start};ux(A,-l),ux(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:A,end:{...e[n][1].end}},i={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:d},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...a.start},end:{...i.end}},e[n][1].end={...a.start},e[u][1].start={...i.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Nw(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Nw(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=Nw(s,sx(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=Nw(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=Nw(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ow(e,n-1,u-n+3,s),u=n+s.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=lx(r);let a;return function(t){return a=t,e.enter("attentionSequence"),i(t)};function i(l){if(l===a)return e.consume(l),i;const s=e.exit("attentionSequence"),c=lx(l),u=!c||2===c&&o||n.includes(l),A=!o||2===o&&c||n.includes(r);return s._open=!!(42===a?u:u&&(o||!A)),s._close=!!(42===a?A:A&&(c||!u)),t(l)}}};function ux(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ax={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Uw(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(e){return 43===e||45===e||46===e||qw(e)?(r=1,i(e)):s(e)}function i(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||qw(t))&&r++<32?(e.consume(t),i):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Ww(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):Vw(t)?(e.consume(t),s):n(t)}function c(e){return qw(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):A(n)}function A(t){if((45===t||qw(t))&&r++<63){const n=45===t?A:u;return e.consume(t),n}return n(t)}}};const dx={partial:!0,tokenize:function(e,t,n){return function(t){return Zw(t)?rx(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Kw(e)?t(e):n(e)}}};const fx={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Zw(t)?rx(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(fx,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Zw(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const px={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Xw(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const hx={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,a,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,a=qw,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Gw,c):(e.enter("characterReferenceValue"),o=7,a=Yw,c(t))}function c(l){if(59===l&&i){const o=e.exit("characterReferenceValue");return a!==qw||Lw(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return a(l)&&i++<o?(e.consume(l),c):n(l)}}};const gx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},mx={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),Zw(t)?rx(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===a?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===a?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),Zw(t)?rx(e,A,"whitespace")(t):A(t)):n(t)}function A(r){return null===r||Kw(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,i=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===a?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),Zw(t)?rx(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Kw(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(gx,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Kw(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Zw(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rx(e,A,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function A(t){return null===t||Kw(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Kw(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),d)}function f(t){return e.attempt(o,v,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&Zw(t)?rx(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||Kw(t)?e.check(gx,f,v)(t):(e.enter("codeFlowValue"),m(t))}function m(t){return null===t||Kw(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),m)}function v(n){return e.exit("codeFenced"),t(n)}}};const vx={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),rx(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?l(t):Kw(t)?e.attempt(bx,a,l)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Kw(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function l(n){return e.exit("codeIndented"),t(n)}}},bx={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Kw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):rx(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Kw(e)?o(e):n(e)}}};const yx={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Kw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Kw(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class wx{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&xx(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),xx(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),xx(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);xx(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);xx(this.left,t.reverse())}}}function xx(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function kx(e){const t={};let n,r,o,a,i,l,s,c=-1;const u=new wx(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Ex(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(a=u.get(o),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);else if("linePrefix"!==a[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return Ow(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Ex(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[],i=n._tokenizer||r.parser[n.contentType](n.start),l=i.events,s=[],c={};let u,A,d=-1,f=n,p=0,h=0;const g=[h];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),A&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),A=f,f=f.next}for(f=n;++d<l.length;)"exit"===l[d][0]&&"enter"===l[d-1][0]&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(h=d+1,g.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),d=g.length;d--;){const t=l.slice(g[d],g[d+1]),n=a.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),d=-1;++d<s.length;)c[p+s[d][0]]=p+s[d][1],p+=s[d][1]-s[d][0]-1;return c}const Sx={resolve:function(e){return kx(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Kw(t)?e.check(Cx,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Cx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rx(e,o,"linePrefix")};function o(o){if(null===o||Kw(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Px(e,t,n,r,o,a,i,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),A):null===t||32===t||41===t||Ww(t)?n(t):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),p(t))};function A(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(l),A(t)):null===t||60===t||Kw(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(o){return u||null!==o&&41!==o&&!Jw(o)?u<c&&40===o?(e.consume(o),u++,p):41===o?(e.consume(o),u--,p):null===o||32===o||40===o||Ww(o)?n(o):(e.consume(o),92===o?h:p):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function Bx(e,t,n,r,o,a){const i=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),c};function c(A){return s>999||null===A||91===A||93===A&&!l||94===A&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(A):93===A?(e.exit(a),e.enter(o),e.consume(A),e.exit(o),e.exit(r),t):Kw(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(A))}function u(t){return null===t||91===t||93===t||Kw(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!Zw(t)),92===t?A:u)}function A(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Dx(e,t,n,r,o,a){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l):n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):Kw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rx(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||Kw(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function Tx(e,t){let n;return function r(o){return Kw(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Zw(o)?rx(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const Ix={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Bx.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return o=_w(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return Jw(t)?Tx(e,l)(t):l(t)}function l(t){return Px(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Qx,c,c)(t)}function c(t){return Zw(t)?rx(e,u,"whitespace")(t):u(t)}function u(a){return null===a||Kw(a)?(e.exit("definition"),r.parser.defined.push(o),t(a)):n(a)}}},Qx={partial:!0,tokenize:function(e,t,n){return function(t){return Jw(t)?Tx(e,r)(t):n(t)};function r(t){return Dx(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Zw(t)?rx(e,a,"whitespace")(t):a(t)}function a(e){return null===e||Kw(e)?t(e):n(e)}}};const Mx={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Kw(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Lx={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),o-2>a&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4),o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},Ow(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Jw(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||Kw(n)?(e.exit("atxHeading"),t(n)):Zw(n)?rx(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||Jw(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}}};const Ox=["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"],Nx=["pre","script","style","textarea"],Rx={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,a,i,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),a=!0,f):63===l?(e.consume(l),o=3,r.interrupt?t:L):Uw(l)?(e.consume(l),i=String.fromCharCode(l),p):n(l)}function u(a){return 45===a?(e.consume(a),o=2,A):91===a?(e.consume(a),o=5,l=0,d):Uw(a)?(e.consume(a),o=4,r.interrupt?t:L):n(a)}function A(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function d(o){const a="CDATA[";return o===a.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:C:d):n(o)}function f(t){return Uw(t)?(e.consume(t),i=String.fromCharCode(t),p):n(t)}function p(l){if(null===l||47===l||62===l||Jw(l)){const s=47===l,c=i.toLowerCase();return s||a||!Nx.includes(c)?Ox.includes(i.toLowerCase())?(o=6,s?(e.consume(l),h):r.interrupt?t(l):C(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):a?g(l):m(l)):(o=1,r.interrupt?t(l):C(l))}return 45===l||qw(l)?(e.consume(l),i+=String.fromCharCode(l),p):n(l)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function g(t){return Zw(t)?(e.consume(t),g):E(t)}function m(t){return 47===t?(e.consume(t),E):58===t||95===t||Uw(t)?(e.consume(t),v):Zw(t)?(e.consume(t),m):E(t)}function v(t){return 45===t||46===t||58===t||95===t||qw(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),y):Zw(t)?(e.consume(t),b):m(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):Zw(t)?(e.consume(t),y):x(t)}function w(t){return t===s?(e.consume(t),s=null,k):null===t||Kw(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Jw(t)?b(t):(e.consume(t),x)}function k(e){return 47===e||62===e||Zw(e)?m(e):n(e)}function E(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||Kw(t)?C(t):Zw(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),T):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),O):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),M):!Kw(t)||6!==o&&7!==o?null===t||Kw(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Fx,N,P)(t))}function P(t){return e.check(zx,B,N)(t)}function B(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return null===t||Kw(t)?P(t):(e.enter("htmlFlowData"),C(t))}function T(t){return 45===t?(e.consume(t),L):C(t)}function I(t){return 47===t?(e.consume(t),i="",Q):C(t)}function Q(t){if(62===t){const n=i.toLowerCase();return Nx.includes(n)?(e.consume(t),O):C(t)}return Uw(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),Q):C(t)}function M(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),O):45===t&&2===o?(e.consume(t),L):C(t)}function O(t){return null===t||Kw(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),O)}function N(n){return e.exit("htmlFlow"),t(n)}}},Fx={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(dx,t,n)}}},zx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Kw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const jx={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,a,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),y):63===t?(e.consume(t),v):Uw(t)?(e.consume(t),k):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,f):Uw(t)?(e.consume(t),m):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),A):Kw(t)?(i=u,Q(t)):(e.consume(t),u)}function A(t){return 45===t?(e.consume(t),d):u(t)}function d(e){return 62===e?I(e):45===e?A(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),6===a?p:f):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),h):Kw(t)?(i=p,Q(t)):(e.consume(t),p)}function h(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):p(t)}function m(t){return null===t||62===t?I(t):Kw(t)?(i=m,Q(t)):(e.consume(t),m)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Kw(t)?(i=v,Q(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function y(t){return Uw(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||qw(t)?(e.consume(t),w):x(t)}function x(t){return Kw(t)?(i=x,Q(t)):Zw(t)?(e.consume(t),x):I(t)}function k(t){return 45===t||qw(t)?(e.consume(t),k):47===t||62===t||Jw(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),I):58===t||95===t||Uw(t)?(e.consume(t),S):Kw(t)?(i=E,Q(t)):Zw(t)?(e.consume(t),E):I(t)}function S(t){return 45===t||46===t||58===t||95===t||qw(t)?(e.consume(t),S):C(t)}function C(t){return 61===t?(e.consume(t),P):Kw(t)?(i=C,Q(t)):Zw(t)?(e.consume(t),C):E(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,B):Kw(t)?(i=P,Q(t)):Zw(t)?(e.consume(t),P):(e.consume(t),D)}function B(t){return t===o?(e.consume(t),o=void 0,T):null===t?n(t):Kw(t)?(i=B,Q(t)):(e.consume(t),B)}function D(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Jw(t)?E(t):(e.consume(t),D)}function T(e){return 47===e||62===e||Jw(e)?E(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function Q(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return Zw(t)?rx(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const Hx={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Ow(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,a,i=e.length,l=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=i);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",c,t]],a=Nw(a,e.slice(r+1,r+l+3)),a=Nw(a,[["enter",u,t]]),a=Nw(a,sx(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),a=Nw(a,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),a=Nw(a,e.slice(o+1)),a=Nw(a,[["exit",s,t]]),Ow(e,r,e.length,a),e},tokenize:function(e,t,n){const r=this;let o,a,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){return o?o._inactive?u(t):(a=r.parser.defined.includes(_w(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(_x,c,a?c:u)(t):91===t?e.attempt(Ux,c,a?s:u)(t):a?c(t):u(t)}function s(t){return e.attempt(qx,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},_x={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Jw(t)?Tx(e,o)(t):o(t)}function o(t){return 41===t?c(t):Px(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Jw(t)?Tx(e,l)(t):c(t)}function i(e){return n(e)}function l(t){return 34===t||39===t||40===t?Dx(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return Jw(t)?Tx(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Ux={tokenize:function(e,t,n){const r=this;return function(t){return Bx.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(_w(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},qx={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Vx={name:"labelStartImage",resolveAll:Hx.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Wx={name:"labelStartLink",resolveAll:Hx.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Yx={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),rx(e,t,"linePrefix")}}};const Gx={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||Kw(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),Zw(t)?rx(e,a,"whitespace")(t):a(t))}}};const Xx={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(dx,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rx(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Zw(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Jx,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,rx(e,e.attempt(Xx,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Yw(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Gx,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Yw(t)&&++i<10?(e.consume(t),l):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(dx,r.interrupt?n:c,e.attempt(Kx,A,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,A(e)}function u(t){return Zw(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),A):n(t)}function A(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Kx={partial:!0,tokenize:function(e,t,n){const r=this;return rx(e,function(e){const o=r.events[r.events.length-1];return!Zw(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Jx={partial:!0,tokenize:function(e,t,n){const r=this;return rx(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Zx={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),!o&&"definition"===e[a][1].type&&(o=a);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i,e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Zw(t)?rx(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||Kw(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const $x={tokenize:function(e){const t=this,n=e.attempt(dx,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,rx(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Sx,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ek={resolveAll:ok()},tk=rk("string"),nk=rk("text");function rk(e){return{resolveAll:ok("text"===e?ak:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ok(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):(!t[o]||"data"!==t[o][1].type)&&(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function ak(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let a,i=o.length,l=-1,s=0;for(;i--;){const e=o[i];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)a=!0,s++;else if(-1!==e){i++;break}}if(s){const o={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const ik={42:Xx,43:Xx,45:Xx,48:Xx,49:Xx,50:Xx,51:Xx,52:Xx,53:Xx,54:Xx,55:Xx,56:Xx,57:Xx,62:fx},lk={91:Ix},sk={[-2]:vx,[-1]:vx,32:vx},ck={35:Lx,42:Gx,45:[Zx,Gx],60:Rx,61:Zx,95:Gx,96:mx,126:mx},uk={38:hx,92:px},Ak={[-5]:Yx,[-4]:Yx,[-3]:Yx,33:Vx,38:hx,42:cx,60:[Ax,jx],91:Wx,92:[Mx,px],93:Hx,95:cx,96:yx},dk={null:[cx,ek]},fk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:lk,disable:{null:[]},document:ik,flow:ck,flowInitial:sk,insideSpan:dk,string:uk,text:Ak},Symbol.toStringTag,{value:"Module"}));function pk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let i=[],l=[];const s={attempt:h(function(e,t){g(e,t.from)}),check:h(p),consume:function(e){Kw(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=d(),c.events.push(["exit",t,c]),t},interrupt:h(p,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,m()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if("string"==typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(a)}o=-2===a,r.push(i)}return r.join("")}(A(e),t)},sliceStream:A,write:function(e){return i=Nw(i,e),function(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}(),null!==i[i.length-1]?[]:(g(t,0),c.events=sx(a,c.events,c),c.events)}};let u=t.tokenize.call(c,s);return t.resolveAll&&a.push(t),c;function A(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}(i,e)}function d(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:a}}function f(e){u=u(e)}function p(e,t){t.restore()}function h(e,t){return function(n,o,a){let i,u,A,f;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return p([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function p(e){return i=e,u=0,0===e.length?a:h(e[u])}function h(e){return function(n){return f=function(){const e=d(),t=c.previous,n=c.currentConstruct,o=c.events.length,a=Array.from(l);return{from:o,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=a,m()}}(),A=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?v():e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,v)(n)}}function g(t){return e(A,f),o}function v(e){return f.restore(),++u<i.length?h(i[u]):a}}}function g(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Ow(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function m(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const hk=/[\0\t\n\r]/g;const gk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function mk(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Hw(n.slice(t?2:1),t?16:10)}return Lw(n)||e}const vk={}.hasOwnProperty;function bk(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:a(J),blockQuote:a(W),characterEscape:S,characterReference:S,codeFenced:a(Y),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(Y,i),codeText:a(G,i),codeTextData:S,data:S,codeFlowValue:S,definition:a(X),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(K),hardBreakEscape:a(Z),hardBreakTrailing:a(Z),htmlFlow:a($,i),htmlFlowData:S,htmlText:a($,i),htmlTextData:S,image:a(ee),label:i,link:a(te),listItem:a(re),listItemValue:d,listOrdered:a(ne,A),listUnordered:a(ne),paragraph:a(oe),reference:z,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(J),strong:a(ae),thematicBreak:a(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:V,autolinkProtocol:q,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:_,characterReference:U,codeFenced:s(g),codeFencedFence:h,codeFencedFenceInfo:f,codeFencedFenceMeta:p,codeFlowValue:C,codeIndented:s(m),codeText:s(I),codeTextData:C,data:C,definition:s(),definitionDestinationString:y,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(B),hardBreakTrailing:s(B),htmlFlow:s(D),htmlFlowData:C,htmlText:s(T),htmlTextData:C,image:s(M),label:O,labelText:L,lineEnding:P,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:j,resourceDestinationString:N,resourceTitleString:R,resource:F,setextHeading:s(E),setextHeadingLineSequence:k,setextHeadingText:x,strong:s(),thematicBreak:s()}};wk(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const a={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:i,resume:u,data:n},s=[];let A=-1;for(;++A<e.length;)if("listOrdered"===e[A][1].type||"listUnordered"===e[A][1].type)if("enter"===e[A][0])s.push(A);else{A=o(e,s.pop(),A)}for(A=-1;++A<e.length;){const n=t[e[A][0]];vk.call(n,e[A][1].type)&&n[e[A][1].type].call(Object.assign({sliceSerialize:e[A][2].sliceSerialize},a),e[A][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||kk).call(a,void 0,e[0])}for(r.position={start:yk(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:yk(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},A=-1;++A<t.transforms.length;)r=t.transforms[A](r)||r;return r}function o(e,t,n){let r,o,a,i,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(r&&!i&&!s&&!a&&(a=l),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=l;for(o=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!o||a<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,a=void 0,i=!0}}}return e[t][1]._spread=c,n}function a(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:yk(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+iw({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||kk).call(this,e,r[0])),n.position.end=yk(e.end)}function u(){return function(e){return Iw(e,"boolean"!=typeof Tw.includeImageAlt||Tw.includeImageAlt,"boolean"!=typeof Tw.includeHtml||Tw.includeHtml)}(this.stack.pop())}function A(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function p(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=_w(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function y(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];(!n||"text"!==n.type)&&(n=ie(),n.position={start:yk(e.start),end:void 0},t.push(n)),this.stack.push(n)}function C(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=yk(e.end)}function P(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=yk(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),C.call(this,e))}function B(){this.data.atHardBreak=!0}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function Q(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(gk,mk)}(t),n.identifier=_w(t).toLowerCase()}function O(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function N(){const e=this.resume();this.stack[this.stack.length-1].url=e}function R(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function j(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=_w(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function H(e){this.data.characterReferenceType=e.type}function _(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=Hw(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Lw(t);this.stack[this.stack.length-1].value+=r}function U(e){this.stack.pop().position.end=yk(e.end)}function q(e){C.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){C.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function $(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!kx(e););return e}(function(e){const t={constructs:Fw([fk,...(e||{}).extensions||[]]),content:n(ox),defined:[],document:n(ax),flow:n($x),lazy:{},string:n(tk),text:n(nk)};return t;function n(e){return function(n){return pk(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,a,i){const l=[];let s,c,u,A,d;for(o=n+("string"==typeof o?o.toString():new TextDecoder(a||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(hk.lastIndex=u,s=hk.exec(o),A=s&&void 0!==s.index?s.index:o.length,d=o.charCodeAt(A),!s){n=o.slice(u);break}if(10===d&&u===A&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<A&&(l.push(o.slice(u,A)),t+=A-u),d){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=A+1}return i&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function yk(e){return{line:e.line,column:e.column,offset:e.offset}}function wk(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?wk(e,r):xk(e,r)}}function xk(e,t){let n;for(n in t)if(vk.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function kk(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+iw({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+iw({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+iw({start:t.start,end:t.end})+") is still open")}function Ek(e){const t=this;t.parser=function(n){return bk(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Sk(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function Ck(e){return e.spread??e.children.length>1}function Pk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(Bk(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(Bk(t.slice(o),o>0,!1)),a.join("")}function Bk(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Dk={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=nx(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sk(e,t);const o={src:nx(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:nx(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sk(e,t);const o={href:nx(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:nx(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ck(n[r])}return t}(n):Ck(t),a={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=ow(t.children[1]),i=rw(t.children[t.children.length-1]);a&&i&&(r.position={start:a,end:i}),o.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length;let l=-1;const s=[];for(;++l<i;){const n=t.children[l],r={},i=a?a[l]:void 0;i&&(r.align=i);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Pk(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Tk,yaml:Tk,definition:Tk,footnoteDefinition:Tk};function Tk(){}const Ik="object"==typeof self?self:globalThis,Qk=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case 0:case-1:return n(i,o);case 1:{const e=n([],o);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),o);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new Ik[e](t),o)}case 8:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new Ik[a](i),o)};return r})(new Map,e)(0),Mk="",{toString:Lk}={},{keys:Ok}=Object,Nk=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Lk.call(e).slice(8,-1);switch(n){case"Array":return[1,Mk];case"Object":return[2,Mk];case"Date":return[3,Mk];case"RegExp":return[4,Mk];case"Map":return[5,Mk];case"Set":return[6,Mk];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Rk=([e,t])=>0===e&&("function"===t||"symbol"===t),Fk=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},a=r=>{if(n.has(r))return n.get(r);let[i,l]=Nk(r);switch(i){case 0:{let t=r;switch(l){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([i,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([i,e],r);for(const t of r)e.push(a(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],s=o([i,n],r);for(const t of Ok(r))(e||!Rk(Nk(r[t])))&&n.push([a(t),a(r[t])]);return s}case 3:return o([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([i,{source:e,flags:t}],r)}case 5:{const t=[],n=o([i,t],r);for(const[n,o]of r)(e||!Rk(Nk(n))&&!Rk(Nk(o)))&&t.push([a(n),a(o)]);return n}case 6:{const t=[],n=o([i,t],r);for(const n of r)(e||!Rk(Nk(n)))&&t.push(a(n));return n}}const{message:s}=r;return o([i,{name:l,message:s}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},zk="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Qk(Fk(e,t)):structuredClone(e):(e,t)=>Qk(Fk(e,t));function jk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Hk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const _k=function(e){if(null==e)return qk;if("function"==typeof e)return Uk(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=_k(e[n]);return Uk(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Uk(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Uk(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Uk(e){return function(t,n,r){return!(!function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)||!e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function qk(){return!0}const Vk=[],Wk=!0,Yk=!1;function Gk(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const a=_k(o),i=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,A,d=Vk;if((!t||a(o,l,s[s.length-1]||void 0))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[Wk,e]:null==e?Vk:[e]}(n(o,s)),d[0]===Yk))return d;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==d[0])for(u=(r?t.children.length:-1)+i,A=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,A)(),c[0]===Yk)return c;u="number"==typeof c[1]?c[1]:u+i}}return d}}(e,void 0,[])()}function Xk(e,t,n,r){let o,a,i;"function"==typeof t?(a=void 0,i=t,o=n):(a=t,i=n,o=r),Gk(e,a,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},o)}const Kk={}.hasOwnProperty,Jk={};function Zk(e,t){const n=t||Jk,r=new Map,o=new Map,a=new Map,i={...Dk,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(!Array.isArray(o)&&"text"===o.type&&(o.value=rE(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=rE(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:eE,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=l.handlers[n];if(Kk.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=zk(n);return r.children=l.all(e),r}return zk(e)}return(l.options.unknownHandler||tE)(l,e,t)},options:n,patch:$k,wrap:nE};return Xk(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}function $k(e,t){e.position&&(t.position=function(e){const t=ow(e),n=rw(e);if(t&&n)return{start:t,end:n}}(e))}function eE(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,zk(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tE(e,t){const n=t.data||{},r=!("value"in t)||Kk.call(n,"hProperties")||Kk.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function nE(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function rE(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function oE(e,t){const n=Zk(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||jk,r=e.options.footnoteBackLabel||Hk,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const a=e.all(o),i=String(o.identifier).toUpperCase(),c=nx(i.toLowerCase());let u=0;const A=[],d=e.footnoteCounts.get(i);for(;void 0!==d&&++u<=d;){A.length>0&&A.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),A.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...A)}else a.push(...A);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(o,p),l.push(p)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...zk(i),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:"\n"},o),a}function aE(e,t){return e&&"run"in e?async function(n,r){const o=oE(n,{file:r,...t});await e.run(o,r)}:function(n,r){return oE(n,{file:r,...e||t})}}function iE(e){if(e)throw e}var lE,sE;var cE=function(){if(sE)return lE;sE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!a)return!1;for(r in n);return typeof r>"u"||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return lE=function e(){var t,n,r,s,c,u,A=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"==typeof A&&(p=A,A=arguments[1]||{},d=2),(null==A||"object"!=typeof A&&"function"!=typeof A)&&(A={});d<f;++d)if(null!=(t=arguments[d]))for(n in t)r=l(A,n),A!==(s=l(t,n))&&(p&&s&&(a(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},i(A,{name:n,newValue:e(p,u,s)})):typeof s<"u"&&i(A,{name:n,newValue:s}));return A},lE}();const uE=Xy(cE);function AE(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function dE(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(a,...i){const l=e[++n];let s=-1;if(a)r(a);else{for(;++s<t.length;)(null===i[s]||void 0===i[s])&&(i[s]=t[s]);t=i,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let i;r&&t.push(o);try{i=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(i&&i.then&&"function"==typeof i.then?i.then(a,o):i instanceof Error?o(i):a(i))}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)}}(l,o)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const fE={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');pE(e);let n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(o=a):(l=-1,o=i));return r===o?o=i:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(pE(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){pE(e);let t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}return a<0||r<0||0===i||1===i&&a===r-1&&a===o+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)pE(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){pE(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",a=0,i=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(i!==s-1&&1!==l)if(i!==s-1&&2===l){if(o.length<2||2!==a||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",a=0):(o=o.slice(0,r),a=o.length-1-o.lastIndexOf("/")),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0===n.length&&!t&&(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function pE(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const hE={cwd:function(){return"/"}};function gE(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function mE(e){if("string"==typeof e)e=new URL(e);else if(!gE(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const vE=["history","path","basename","stem","extname","dirname"];class bE{constructor(e){let t;var n;t=e?gE(e)?{path:e}:"string"==typeof e||(n=e)&&"object"==typeof n&&"byteLength"in n&&"byteOffset"in n?{value:e}:e:{},this.cwd="cwd"in t?"":hE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,o=-1;for(;++o<vE.length;){const e=vE[o];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)vE.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?fE.basename(this.path):void 0}set basename(e){wE(e,"basename"),yE(e,"basename"),this.path=fE.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?fE.dirname(this.path):void 0}set dirname(e){xE(this.basename,"dirname"),this.path=fE.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?fE.extname(this.path):void 0}set extname(e){if(yE(e,"extname"),xE(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fE.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){gE(e)&&(e=mE(e)),wE(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?fE.basename(this.path,this.extname):void 0}set stem(e){wE(e,"stem"),yE(e,"stem"),this.path=fE.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new uw(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function yE(e,t){if(e&&e.includes(fE.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+fE.sep+"`")}function wE(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const kE=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},EE={}.hasOwnProperty;class SE extends kE{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=dE()}copy(){const e=new SE;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(uE(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(DE("data",this.frozen),this.namespace[e]=t,this):EE.call(this.namespace,e)&&this.namespace[e]||void 0:e?(DE("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=QE(e),n=this.parser||this.Parser;return PE("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),PE("process",this.parser||this.Parser),BE("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const a=QE(e),i=n.parse(a);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(i,a,function(e,t,r){if(e||!t||!r)return l(e);const o=t,a=n.stringify(o,r);var i;"string"==typeof(i=a)||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=a:r.result=a,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),PE("processSync",this.parser||this.Parser),BE("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,iE(e),t=r}),IE("processSync","process",n),t}run(e,t,n){TE(e),this.freeze();const r=this.transformers;return!n&&"function"==typeof t&&(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,a){const i=QE(t);r.run(e,i,function(t,r,i){const l=r||e;t?a(t):o?o(l):n(void 0,l,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){iE(e),n=t,r=!0}),IE("runSync","run",r),n}stringify(e,t){this.freeze();const n=QE(t),r=this.compiler||this.Compiler;return BE("stringify",r),TE(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(DE("use",this.frozen),null!=e)if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):a(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))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");i(e.plugins),e.settings&&(r.settings=uE(!0,r.settings,e.settings))}function i(e){let t=-1;if(null!=e){if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...a]=t;const i=n[o][1];AE(i)&&AE(r)&&(r=uE(!0,i,r)),n[o]=[e,r,...a]}}}}const CE=(new SE).freeze();function PE(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function BE(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function DE(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function TE(e){if(!AE(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function IE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function QE(e){return function(e){return!!(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new bE(e)}const ME=[],LE={allowDangerousHtml:!0},OE=/^(https?|ircs?|mailto|xmpp)$/i,NE=[{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 RE(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,i=e.disallowedElements,l=e.rehypePlugins||ME,s=e.remarkPlugins||ME,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...LE}:LE,u=e.skipHtml,A=e.unwrapDisallowed,d=e.urlTransform||FE,f=CE().use(Ek).use(s).use(aE,c).use(l),p=new bE;"string"==typeof r&&(p.value=r);for(const t of NE)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const h=f.parse(p);let g=f.runSync(h,p);return o&&(g={type:"element",tagName:"div",properties:{className:o},children:"root"===g.type?g.children:[g]}),Xk(g,function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return u?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Dw)if(Object.hasOwn(Dw,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Dw[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let a=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&n&&"number"==typeof r&&(a=!n(e,r,o)),a&&o&&"number"==typeof r)return A&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}}),vw(g,{Fragment:rA.Fragment,components:a,ignoreInvalidStyle:!0,jsx:rA.jsx,jsxs:rA.jsxs,passKeys:!0,passNode:!0})}function FE(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||OE.test(e.slice(0,t))?e:""}const zE=({children:e})=>rA.jsx("div",{style:{whiteSpace:"normal"},children:rA.jsx(RE,{components:{p:({...e})=>rA.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:e.children}),ul:({...e})=>rA.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),ol:({...e})=>rA.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),li:({...e})=>rA.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:e.children}),code:({inline:e,children:t})=>e?rA.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:t}):rA.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:rA.jsx("code",{children:t})}),blockquote:({...e})=>rA.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:e.children})},children:"string"==typeof e?e:""})}),jE={autoConfig:!0},HE=e=>()=>(e=>{const{getFlow:t}=Cb(),{messages:n,replaceMessages:r}=Pb(),{settings:o}=Db(),{hasChatHistoryLoaded:a}=Tb(),i={...e,...jE},l=i.markdownComponent?i.markdownComponent:zE;R.useEffect(()=>{var e,t;if(a){const a=[...n];for(let n=0;n<a.length&&n<((null==(e=o.chatHistory)?void 0:e.maxEntries)??30);n++){const e=a[n];null!=(t=e.tags)&&t.includes("rcb-markdown-renderer-plugin:parsed")&&(e.contentWrapper=l)}r(a)}},[a]);const s=async e=>{var n;const r=null==(n=e.data.message)?void 0:n.sender.toUpperCase();((e,t,n)=>{var r;if("string"!=typeof e.data.message.content||!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&((null==(r=o.renderMarkdown)?void 0:r.map(e=>e.toUpperCase()).includes(n))??!1)})(e,t(),r)&&(e.data.message.contentWrapper=l,e.data.message.tags||(e.data.message.tags=[]),e.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};Bb(km.PRE_INJECT_MESSAGE,s),Bb(km.CHUNK_STREAM_MESSAGE,s),Bb(km.START_STREAM_MESSAGE,s),Bb(km.START_SIMULATE_STREAM_MESSAGE,s);const c={name:"@rcb-plugins/markdown-renderer"};return null!=i&&i.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),c})(e),_E={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"}},UE=(e,t,n="validateTextInput")=>{var r;if(null==(r=e.detail)||!r.currPath)return;const o=t[e.detail.currPath];if(!o)return;const a=o[n];return"function"==typeof a?a:void 0},qE=e=>{const{showToast:t}=(()=>{const{showToast:e,dismissToast:t,toasts:n,replaceToasts:r}=Rv();return{showToast:e,dismissToast:t,toasts:n,replaceToasts:r}})(),{getFlow:n}=Cb(),{styles:r,updateStyles:o,replaceStyles:a}=(()=>{const{styles:e,replaceStyles:t,updateStyles:n}=gb();return{styles:e,replaceStyles:t,updateStyles:n}})(),i=(e=>({..._E,...e,promptBaseColors:{..._E.promptBaseColors},promptHoveredColors:{..._E.promptHoveredColors},textAreaHighlightColors:{..._E.textAreaHighlightColors}}))(e),[l,s]=R.useState(0),c=R.useRef({});Bb(km.USER_SUBMIT_TEXT,e=>{const a=e,u=UE(a,n(),"validateTextInput");if(!u)return;const A=u(a.data.inputText);if(null!=A&&A.success||e.preventDefault(),!A.promptContent)return;0===l&&(c.current=structuredClone(r));const d=((e,t)=>{const n=e.promptType??"info";let r={};return t.advancedStyles&&(r=t.advancedStyles[n]),t.promptBaseColors&&(r.toastPromptStyle={color:t.promptBaseColors[n],borderColor:t.promptBaseColors[n]}),t.promptHoveredColors&&(r.toastPromptHoveredStyle={color:t.promptHoveredColors[n],borderColor:t.promptHoveredColors[n]}),t.textAreaHighlightColors&&(e.highlightTextArea??!0)&&(r.chatInputAreaStyle={boxShadow:`${t.textAreaHighlightColors[n]} 0px 0px 5px`}),r})(A,i);o(d),t(A.promptContent,A.promptDuration??3e3),s(e=>e+1)}),Bb(km.USER_UPLOAD_FILE,e=>{var r,o;const a=e,i=null==(o=null==(r=a.data)?void 0:r.files)?void 0:o[0];if(!i)return console.error("No file uploaded."),void e.preventDefault();const l=UE(a,n(),"validateFileInput");if(!l)return void console.error("Validator not found for file input.");const s=l(i);if(!s.success)return console.error("Validation failed:",s),s.promptContent&&t(s.promptContent,s.promptDuration??3e3),void e.preventDefault();console.log("Validation successful:",s)}),Bb(km.DISMISS_TOAST,()=>{s(e=>e-1)}),R.useEffect(()=>{0===l&&setTimeout(()=>{a(c.current)})},[l,a]);const u={name:"@rcb-plugins/input-validator"};return i.autoConfig&&(u.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),u},VE=e=>()=>qE(e),WE=R.forwardRef(({embedded:e,currentOpen:t,enabled:n,onSetEnabled:r},o)=>{const a=Pb(),i=(()=>{const{isChatWindowOpen:e,toggleChatWindow:t,toggleIsBotTyping:n,scrollToBottom:r,getIsChatBotVisible:o}=Tm();return{isChatWindowOpen:e,toggleChatWindow:t,toggleIsBotTyping:n,scrollToBottom:r,getIsChatBotVisible:o}})(),l=R.useRef(null),s=R.useRef(!1);return R.useEffect(()=>{!e&&i&&i.toggleChatWindow&&(l.current===t||s.current||(setTimeout(()=>{i&&i.toggleChatWindow&&i.toggleChatWindow(t)},0),l.current=t),s.current=!1)},[t,e,i]),R.useEffect(()=>{const e=()=>{s.current=!0};return window.addEventListener("rcb-toggle-chat-window",e),()=>window.removeEventListener("rcb-toggle-chat-window",e)}),R.useImperativeHandle(o,()=>({addMessage:e=>{a&&a.injectMessage&&a.injectMessage(e)},openChat:()=>{!e&&i&&i.toggleChatWindow&&i.toggleChatWindow(!0)},closeChat:()=>{!e&&i&&i.toggleChatWindow&&i.toggleChatWindow(!1)},toggleChat:()=>{!e&&i&&i.toggleChatWindow&&i.toggleChatWindow()},setBotEnabled:e=>{r&&r(e)}}),[a,i,e,r]),null});WE.displayName="BotController";const YE=({loginUrl:e,className:t="",style:n,isHeaderButton:r=!1})=>{const o=r?{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 F.createElement(F.Fragment,null,r&&F.createElement("style",null,"\n .rcb-chat-header-container .qa-bot-header-login-button:hover {\n background-color: #0000001a !important;\n opacity: 1 !important;\n }\n "),F.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:`qa-bot-login-button ${r?"qa-bot-header-login-button":""} ${t}`,style:Object.assign(Object.assign({},o),n)},"Log In"))},GE=()=>F.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"},F.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"},F.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),F.createElement("circle",{cx:"12",cy:"7",r:"4"}))),XE=[];for(let e=0;e<256;++e)XE.push((e+256).toString(16).slice(1));let KE;const JE=new Uint8Array(16);var ZE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $E(e,t,n){if(ZE.randomUUID&&!e)return ZE.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!KE){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");KE=crypto.getRandomValues.bind(crypto)}return KE(JE)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(XE[e[t+0]]+XE[e[t+1]]+XE[e[t+2]]+XE[e[t+3]]+"-"+XE[e[t+4]]+XE[e[t+5]]+"-"+XE[e[t+6]]+XE[e[t+7]]+"-"+XE[e[t+8]]+XE[e[t+9]]+"-"+XE[e[t+10]]+XE[e[t+11]]+XE[e[t+12]]+XE[e[t+13]]+XE[e[t+14]]+XE[e[t+15]]).toLowerCase()}(r)}function eS(){return"undefined"!=typeof localStorage&&"true"===localStorage.getItem("QA_BOT_DEBUG")}const tS="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",nS="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",rS="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",oS="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",aS=()=>{eS()&&console.log("%c QA Bot Core %c v0.2.6 ",rS,oS)},iS=(e,...t)=>{eS()&&console.log(`%c[Session]%c ${e}`,tS,"",...t)},lS=(e,...t)=>{eS()&&console.log(`%c[History]%c ${e}`,nS,"",...t)},sS=(...e)=>{console.error(...e)},cS="qa_bot_session_messages",uS=()=>`qa_bot_session_${$E()}`,AS=()=>{try{const e=localStorage.getItem(cS);return e?JSON.parse(e):{}}catch(e){return{}}},dS=(e,t,n,r,o)=>{const a=AS();!a[e]&&(a[e]={messages:[],startedAt:(new Date).toISOString(),preview:""},lS("NEW session created",{sessionId:e.slice(-12)}));const i=a[e].messages.some(e=>e.id===t);if(i)return void lS("DUPLICATE message skipped",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r});const l={id:t,content:n,sender:r,type:o,timestamp:Date.now()};if(a[e].messages.push(l),lS("MESSAGE added",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r,totalInSession:a[e].messages.length}),!a[e].preview&&"user"===r.toLowerCase()&&n){const t=n.slice(0,50)+(n.length>50?"...":"");a[e].preview=t}(e=>{var t;const n=()=>Object.values(e).reduce((e,t)=>e+t.messages.length,0);for(;n()>100&&Object.keys(e).length>1;){const n=null===(t=Object.entries(e).sort(([,e],[,t])=>new Date(e.startedAt).getTime()-new Date(t.startedAt).getTime())[0])||void 0===t?void 0:t[0];if(!n)break;delete e[n]}localStorage.setItem(cS,JSON.stringify(e))})(a),lS("STORAGE state",{ourSessions:Object.keys(a).length,ourTotalMessages:Object.values(a).reduce((e,t)=>e+t.messages.length,0)})},fS=e=>{var t,n;return null!==(n=null===(t=AS()[e])||void 0===t?void 0:t.messages.length)&&void 0!==n?n:0},pS=e=>{const t=AS()[e];return(null==t?void 0:t.startedAt)?Date.now()-new Date(t.startedAt).getTime():0},hS=R.createContext(void 0),gS=({children:e,getSessionId:t,setSessionId:n,resetSession:r,clearResettingFlag:o})=>F.createElement(hS.Provider,{value:{getSessionId:t,setSessionId:n,resetSession:r,clearResettingFlag:o}},e),mS=()=>{const e=R.useContext(hS);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},vS=()=>{const[e,t]=R.useState(!1),[n,r]=R.useState([]),o=R.useRef(null),a=R.useRef(null),{replaceMessages:i}=Pb(),{setSessionId:l,getSessionId:s}=mS();R.useEffect(()=>{const n=e=>{o.current&&!o.current.contains(e.target)&&a.current&&!a.current.contains(e.target)&&t(!1)};return e&&document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e]);const c=e=>{const n=s();if(lS("RESTORE requested",{targetSession:e.slice(-12),currentSession:null==n?void 0:n.slice(-12)}),e===n)return lS("RESTORE skipped - already on this session"),void t(!1);const r=(e=>{var t;return(null===(t=AS()[e])||void 0===t?void 0:t.messages)||[]})(e).filter(e=>{var t;return null===(t=e.content)||void 0===t?void 0:t.trim()});lS("Stored messages from our localStorage",{count:r.length,ids:r.map(e=>e.id.slice(-8))});const o=r.map(e=>({id:e.id,content:e.content,sender:e.sender.toUpperCase(),type:e.type||"string",timestamp:new Date(e.timestamp).toISOString()}));i(o),lS("replaceMessages called",{count:o.length}),setTimeout(()=>{const e=document.querySelector(".rcb-chat-body-container");e&&e.querySelectorAll(".rcb-bot-message").forEach(e=>{e.innerHTML.includes("](")&&(e.innerHTML=e.innerHTML.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'))})},50),l(e),lS("Session ID updated",{newSession:e.slice(-12)}),t(!1)};return F.createElement("div",{style:{position:"relative"}},F.createElement("button",{ref:a,className:"history-button",onClick:()=>{e||r((()=>{const e=AS();return Object.entries(e).map(([e,t])=>Object.assign({sessionId:e},t)).sort((e,t)=>new Date(t.startedAt).getTime()-new Date(e.startedAt).getTime())})()),t(!e)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":e,"aria-haspopup":"menu"},F.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},F.createElement("circle",{cx:"12",cy:"12",r:"10"}),F.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&F.createElement("div",{ref:o,role:"menu",style:{position:"fixed",left:0,right:0,top:"auto",marginTop:"8px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},0===n.length?F.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(e=>F.createElement("button",{key:e.sessionId,role:"menuitem",onClick:()=>c(e.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"}},F.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},e.preview||"New conversation"),F.createElement("span",{style:{fontSize:"12px",color:"#888"}},(e=>{const t=new Date(e),n=(new Date).getTime()-t.getTime(),r=Math.floor(n/864e5);return 0===r?t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):1===r?"Yesterday":r<7?t.toLocaleDateString([],{weekday:"short"}):t.toLocaleDateString([],{month:"short",day:"numeric"})})(e.startedAt))))))};function bS(){return bS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bS.apply(null,arguments)}const yS=({width:e=24,height:t=24,color:n="currentColor",children:r,...o})=>F.createElement("svg",bS({xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),r),wS=e=>F.createElement(yS,e,F.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"})),xS=R.createContext(null),kS=({onAnalyticsEvent:e,getSessionId:t,children:n})=>{const r=R.useRef(e);r.current=e;const o=R.useCallback(e=>{var n,o;r.current&&r.current(Object.assign(Object.assign({},e),{timestamp:Date.now(),sessionId:null!==(o=null!==(n=e.sessionId)&&void 0!==n?n:t())&&void 0!==o?o:void 0}))},[t]);return F.createElement(xS.Provider,{value:{trackEvent:o}},n)},ES=()=>{const{restartFlow:e}=Cb(),{setTextAreaValue:t}=(()=>{const{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:a,focusTextArea:i,blurTextArea:l}=Mv();return{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:a,focusTextArea:i,blurTextArea:l}})(),{messages:n}=Pb(),{getSessionId:r,resetSession:o,clearResettingFlag:a}=mS(),{trackEvent:i}=R.useContext(xS)||{trackEvent:()=>{}};return F.createElement("button",{onClick:async()=>{const n=r(),l=n?fS(n):0;i({type:"qa_new_chat_started",previousMessageCount:l}),o(),await t(""),await e(),setTimeout(()=>{a()},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:e=>{e.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:e=>{e.target.style.backgroundColor="var(--primaryColor, #107180)"}},F.createElement(wS,{width:16,height:16}),"New Chat")},SS=()=>{const{getSessionId:e}=mS(),t=R.useCallback(t=>{var n;const r=null===(n=t.data)||void 0===n?void 0:n.message;if(!(null==r?void 0:r.id))return;const o=r.sender,a=r.type||"string";if("string"!=typeof r.content)return;const i=r.content;if(i.includes("rcb-options-container"))return;if(!i.trim())return;const l=e();dS(l,r.id,i,o,a)},[e]);return R.useEffect(()=>(window.addEventListener("rcb-pre-inject-message",t),()=>{window.removeEventListener("rcb-pre-inject-message",t)}),[t]),null},CS=()=>(R.useEffect(()=>{const e=e=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(e.key))return;const n=document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||"true"===n.contentEditable||n.classList.contains("rcb-chat-input-textarea")))return;const r=document.querySelector(".rcb-chat-window");if(!r)return;const o=Array.from(r.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(e=>null!==e.offsetParent);if(o.length>0){const t=o[o.length-1].querySelector(".rcb-checkbox-container");if(t&&null!==t.offsetParent){const n=Array.from(t.querySelectorAll(".rcb-checkbox-row-container")),r=t.querySelector(".rcb-checkbox-next-button");if(n.length>0){const t=[...n];return r&&t.push(r),void((e,t)=>{e.preventDefault();let n=-1;for(let e=0;e<t.length;e++)if(t[e]===document.activeElement||t[e].contains(document.activeElement)){n=e;break}-1===n&&(n=0);let r=n;switch(e.key){case"ArrowDown":case"ArrowRight":r=n<t.length-1?n+1:0;break;case"ArrowUp":case"ArrowLeft":r=n>0?n-1:t.length-1;break;case"Home":r=0;break;case"End":r=t.length-1;break;case"Enter":case" ":{const e=t[n],r=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void e.dispatchEvent(r)}default:return}t[r].focus(),t[r].setAttribute("tabindex","0"),t[r].classList.add("keyboard-focused"),t.forEach((e,t)=>{t!==r&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))})})(e,t)}}}let a=[];if(o.length>0){const e=o[o.length-1],t=Array.from(e.querySelectorAll(".rcb-options-container")).filter(e=>null!==e.offsetParent);if(t.length>0){const e=t[t.length-1];a=Array.from(e.querySelectorAll(".rcb-options"))}}if(0===a.length)return;const i=a.findIndex(e=>e===document.activeElement);switch(e.key){case"ArrowDown":case"ArrowRight":{let t;e.preventDefault(),t=i<a.length-1?i+1:0,a[t].setAttribute("tabindex","0"),a.forEach((e,n)=>{n!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))}),a[t].classList.add("keyboard-focused"),a[t].focus();break}case"ArrowUp":case"ArrowLeft":{let t;e.preventDefault(),t=i>0?i-1:a.length-1,a[t].setAttribute("tabindex","0"),a.forEach((e,n)=>{n!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))}),a[t].classList.add("keyboard-focused"),a[t].focus();break}case"Enter":case" ":if(e.preventDefault(),document.activeElement&&a.includes(document.activeElement)){const e=document.activeElement;if(e.classList.contains("rcb-checkbox-row-container")||e.closest(".rcb-checkbox-row-container")){const n=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(n);const r=e.querySelector(".rcb-checkbox-label"),o=r?r.textContent:e.textContent||"checkbox",a=e.querySelector(".rcb-checkbox-mark"),i=a&&a.style.backgroundColor?"checked":"unchecked";t(`${o} ${i}`)}else{const n=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(n);const r=e.textContent||e.innerText;t(`Selected: ${r}`)}}break;case"Home":e.preventDefault(),a.length>0&&(a[0].setAttribute("tabindex","0"),a.forEach((e,t)=>{0!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))}),a[0].classList.add("keyboard-focused"),a[0].focus());break;case"End":if(e.preventDefault(),a.length>0){const e=a.length-1;a[e].setAttribute("tabindex","0"),a.forEach((t,n)=>{n!==e&&(t.setAttribute("tabindex","-1"),t.classList.remove("keyboard-focused"))}),a[e].classList.add("keyboard-focused"),a[e].focus()}}},t=e=>{const t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="sr-only",t.textContent=e,document.body.appendChild(t),setTimeout(()=>{document.body.contains(t)&&document.body.removeChild(t)},1e3)},n=(e=null)=>{let n=e;if(n||(n=document.querySelector(".rcb-chat-window"),n||(n=document.querySelector('[class*="rcb-chat"]')),n||(n=document.querySelector(".qa-bot"))),!n)return;const r=null!==n.closest(".embedded-qa-bot"),o=Array.from(n.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(e=>null!==e.offsetParent);if(0===o.length)return;const a=o[o.length-1],i=Array.from(a.querySelectorAll(".rcb-options-container")).filter(e=>null!==e.offsetParent);let l=[];if(i.length>0){const e=i[i.length-1];l=Array.from(e.querySelectorAll(".rcb-options"))}if(0===l.length){let e=a.querySelector(".rcb-checkbox-container");if(!e&&n&&(e=n.querySelector(".rcb-checkbox-container")),e&&null!==e.offsetParent){const t=Array.from(e.querySelectorAll(".rcb-checkbox-row-container")).filter(e=>null!==e.offsetParent&&"none"!==e.style.display);if(t.length>0){const n=e.querySelector(".rcb-checkbox-next-button"),o=[...t];if(n&&null!==n.offsetParent&&o.push(n),o.forEach((e,t)=>{e.setAttribute("tabindex",0===t?"0":"-1"),0===t?e.classList.add("keyboard-focused"):e.classList.remove("keyboard-focused")}),t.length>1){e.querySelectorAll(".keyboard-nav-hint").forEach(e=>e.remove());const t=document.createElement("div");t.className="keyboard-nav-hint",t.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",t.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",e.insertBefore(t,e.firstChild)}return void setTimeout(()=>{o[0]&&null!==o[0].offsetParent&&!r&&o[0].focus()},150)}}}if(l.length>0){if(l.forEach((e,t)=>{const n=0===t?"0":"-1";e.setAttribute("tabindex",n),e.setAttribute("role","option"),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",l.length),0===t?e.classList.add("keyboard-focused"):e.classList.remove("keyboard-focused")}),l.length>1){const e=i.length>0?i[i.length-1]:null;if(e){e.querySelectorAll(".keyboard-nav-hint").forEach(e=>e.remove());const t=document.createElement("div");t.className="keyboard-nav-hint",t.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",t.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",e.insertBefore(t,e.firstChild)}}else{const e=i.length>0?i[i.length-1]:null;if(e){e.querySelectorAll(".keyboard-nav-hint").forEach(e=>e.remove())}}setTimeout(()=>{l[0]&&null!==l[0].offsetParent&&!r&&(l[0].focus(),l.length>1&&t(`${l.length} options available. Use arrow keys to navigate.`))},200)}},r=new MutationObserver(e=>{e.forEach(e=>{if("childList"===e.type){const t=Array.from(e.addedNodes),r=t.some(e=>e.nodeType===Node.ELEMENT_NODE&&(e.classList?.contains("rcb-options-container")||e.classList?.contains("rcb-options")||e.querySelector?.(".rcb-options-container")||e.querySelector?.(".rcb-options"))),o=t.some(e=>e.nodeType===Node.ELEMENT_NODE&&(e.classList?.contains("rcb-checkbox-container")||e.querySelector?.(".rcb-checkbox-container")));if(r||o){let t=e.target;for(;t&&!t.classList?.contains("qa-bot")&&!t.classList?.contains("rcb-chat-window");)t=t.parentElement;(t||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(e=>{e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused")}),setTimeout(()=>n(t),100)}}})});r.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),n();const o=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(e=>{const t=e.querySelectorAll(".rcb-options-container .rcb-options").length>0,r=e.querySelectorAll(".rcb-checkbox-row-container").length>0;if(t){const t=e.querySelectorAll(".rcb-options[tabindex]").length;e.querySelectorAll(".rcb-options").length>t&&n(e)}if(r){const t=e.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;e.querySelectorAll(".rcb-checkbox-row-container").length>t&&n(e)}})},1e3);return()=>{document.removeEventListener("keydown",e),r.disconnect(),clearInterval(o)}},[]),null);const PS="#1a5b6e",BS="#107180",DS="Arial, sans-serif",TS="Q&A Bot",IS="/chat-icon.svg",QS="Type your question here...",MS="Select an option to continue",LS=!1,OS="Ask me a question!",NS="/login",RS={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}},FS=R.forwardRef((e,t)=>{var n,r;const{apiKey:o,qaEndpoint:a,ratingEndpoint:i,welcomeMessage:l,open:s,onOpenChange:c,isLoggedIn:u,allowAnonAccess:A=!1,actingUser:d,primaryColor:f,secondaryColor:p,botName:h,logo:g,placeholder:m,errorMessage:v,embedded:b,footerText:y,footerLink:w,tooltipText:x,loginUrl:k,customFlow:E,onAnalyticsEvent:S}=e,C=R.useRef(`bot_${Math.random().toString(36).substr(2,9)}`);R.useEffect(()=>{aS()},[]);const P=R.useRef(null);null===P.current&&(P.current=uS(),iS("CREATED",P.current));const B=R.useRef(!1),D=R.useRef({getSessionId:()=>P.current,isResetting:()=>B.current}),[T,I]=R.useState(u);R.useEffect(()=>{I(u)},[u]);const Q=R.useMemo(()=>{const e=Object.assign({},RS);e.general=Object.assign(Object.assign({},e.general),{primaryColor:f||PS,secondaryColor:p||BS,fontFamily:DS,embedded:void 0!==b?b:LS});const t=!1===T?[F.createElement(YE,{key:"login-button",loginUrl:k||NS,isHeaderButton:!0})]:[F.createElement(vS,{key:"history-button"}),F.createElement(GE,{key:"user-icon"})];e.header={title:F.createElement("span",{style:{fontSize:14,fontWeight:500}},h||TS),showAvatar:!0,avatar:g||IS,buttons:[...t,Gg.CLOSE_CHAT_BUTTON]},e.chatInput=Object.assign(Object.assign({},e.chatInput),{disabled:!1,enabledPlaceholderText:m||QS,disabledPlaceholderText:v||MS}),e.tooltip=Object.assign(Object.assign({},e.tooltip),{text:x||OS});const n=y?w?F.createElement("a",{href:w,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},y):F.createElement("span",{key:"footer-text"},y):null;return e.footer={text:n,buttons:[F.createElement(ES,{key:"new-chat-button"})]},e.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},e},[f,p,h,g,m,v,b,x,T,k,y,w]),M=R.useRef(null),L=((e,t={})=>R.useMemo(()=>{const n=(t,n)=>{if(e.current){const n=getComputedStyle(e.current).getPropertyValue(t);if(n&&""!==n.trim())return n.trim();if(e.current.parentElement){const n=getComputedStyle(e.current.parentElement).getPropertyValue(t);if(n&&""!==n.trim())return n.trim()}}return n};return{primaryColor:n("--primaryColor",t.primaryColor),secondaryColor:n("--secondaryColor",t.secondaryColor),fontFamily:n("--fontFamily",t.fontFamily)}},[e,t]))(M,Q.general);((e,t)=>{R.useEffect(()=>{t.current&&(e?t.current.classList.add("bot-logged-in"):t.current.classList.remove("bot-logged-in"))},[e,t])})(!1!==T,M),(({settings:e,themeColors:t})=>{R.useEffect(()=>{t&&(Object.entries(t).forEach(([e,t])=>{t&&document.documentElement.style.setProperty(`--${e}`,t)}),t.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",t.primaryColor),t.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",t.secondaryColor))},[t]),R.useEffect(()=>{var t,n,r;(null===(t=e.header)||void 0===t?void 0:t.title)&&"string"==typeof e.header.title&&(e.header.title=F.createElement("div",{key:"header-title"},F.createElement("h1",{className:"sr-only"},e.header.title),F.createElement("span",{"aria-hidden":"true"},e.header.title))),(null===(n=e.general)||void 0===n?void 0:n.embedded)&&e.chatWindow&&(e.chatWindow.defaultOpen=!0),e.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},e.chatHistory={disabled:!1},e.chatButton=Object.assign(Object.assign({},e.chatButton),{icon:null===(r=e.header)||void 0===r?void 0:r.avatar}),e.event={rcbToggleChatWindow:!0}},[e])})({settings:Q,themeColors:L});const O=R.useMemo(()=>{const e=(({endpoint:e,ratingEndpoint:t,apiKey:n,sessionId:r,isResetting:o=()=>!1,isLoggedIn:a,allowAnonAccess:i=!1,loginUrl:l="/login",actingUser:s,onAnalyticsEvent:c})=>{const u=e=>{var t,n;c&&c(Object.assign(Object.assign({},e),{timestamp:Date.now(),sessionId:null!==(n=null!==(t=e.sessionId)&&void 0!==t?t:r())&&void 0!==n?n:void 0}))};if(!1===a&&!i)return u({type:"qa_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:F.createElement(YE,{loginUrl:l}),chatDisabled:!0,path:"qa_loop"}};let A=null,d=!1;if(!e)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async a=>{const{userInput:i}=a;if(o&&o())return null;if(!i||""===i.trim())return null;if("👍 Helpful"===i||"👎 Not helpful"===i){if(t&&A)try{const e="👍 Helpful"===i,o={"Content-Type":"application/json"};n&&(o["X-API-KEY"]=n);const a=r();a&&(o["X-Session-ID"]=a,o["X-Query-ID"]=A),await fetch(t,{method:"POST",headers:o,body:JSON.stringify({sessionId:a,queryId:A,rating:e?1:0})}),u({type:"qa_response_rated",queryId:A,rating:e?"helpful":"not_helpful"})}catch(e){sS("Error sending feedback:",e)}return"Thanks for the feedback! Feel free to ask another question."}try{const t=$E();A=t,u({type:"qa_question_asked",queryId:t,questionLength:i.length});const o={"Content-Type":"application/json"};n&&(o["X-API-KEY"]=n);const l=r();l&&(o["X-Session-ID"]=l,o["X-Query-ID"]=t),s&&(o["X-Acting-User"]=s);const c={query:i,session_id:l,question_id:t};s&&(c.acting_user=s),iS("SENT to API",{session_id:l,question_id:t,acting_user:s||"(not set)"});const f=Date.now(),p=await fetch(e,{method:"POST",headers:o,body:JSON.stringify(c)}),h=Date.now()-f;if(!p.ok)throw new Error(`API returned ${p.status}`);const g=await p.json(),m=g.response||g.answer||g.text||g.message;if(!m)throw new Error("Invalid response format from API");const v=(e=>{if(!e||"string"!=typeof e)return e;let t=e.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return t=t.replace(/(?<!\]\(|href=["']|\[)https?:\/\/[^\s[\]()]+/gi,e=>{let t=e,n="";const r=t.match(/([.,;:!?]+)$/);return r&&(n=r[1],t=t.slice(0,-n.length)),`[${t}](${t})${n}`}),t})(m),b=function(e){const{confidence:t,tools_used:n,metadata:r}=e;if(!(t||n&&0!==n.length))return"";const o=[];return t&&o.push(`• Confidence: ${t}`),n&&n.length>0&&o.push(`• Tools used: ${n.join(", ")}`),(null==r?void 0:r.agent)&&o.push(`• Agent: ${r.agent}`),`---\n${o.join("\n")}`}(g),y=b?`${v}\n\n${b}`:v;return await a.injectMessage(y),u({type:"qa_response_received",queryId:t,responseTimeMs:h,success:!0,responseLength:m.length,hasMetadata:!!b}),d=!0,setTimeout(async()=>{await a.injectMessage("Feel free to ask another question.")},100),null}catch(e){return sS("Error in Q&A flow:",e),u({type:"qa_response_error",queryId:null!=A?A:void 0,errorType:e instanceof Error?e.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:e=>o&&o()||"👍 Helpful"===e.userInput||"👎 Not helpful"===e.userInput?[]:t&&d?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:a,ratingEndpoint:i,apiKey:o,sessionId:D.current.getSessionId,isResetting:D.current.isResetting,isLoggedIn:T,allowAnonAccess:A,loginUrl:k||NS,actingUser:d,onAnalyticsEvent:S}),t={message:l,transition:{duration:0},path:"qa_loop"};return Object.assign(Object.assign({start:t},e),E||{})},[o,a,i,l,T,A,k,E,d,S]),N=R.useMemo(()=>[ly(),HE(),VE()],[]);return R.useEffect(()=>{const e=()=>{const e=document.querySelector(".rcb-chat-window");if(!e)return;const t=e.querySelector(".rcb-send-button");t&&(t.hasAttribute("tabindex")||t.setAttribute("tabindex","0"),t.hasAttribute("data-keyboard-enabled")||(t.setAttribute("data-keyboard-enabled","true"),t.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key){e.preventDefault();const n=t&&Object.keys(t).find(e=>e.startsWith("__reactProps"));if(n){const r=t[n],o=null==r?void 0:r.onMouseDown;if(o&&"function"==typeof o)return void o(e)}const r=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(r)}})))},t=setInterval(e,1e3);return e(),()=>clearInterval(t)},[]),CS(),R.useEffect(()=>{if(!b){const e=e=>{const t=e.data.newState;null==c||c(t);const n=P.current;t?null==S||S({type:"qa_bot_opened",timestamp:Date.now(),sessionId:null!=n?n:void 0}):null==S||S({type:"qa_bot_closed",timestamp:Date.now(),sessionId:null!=n?n:void 0,messageCount:n?fS(n):0,durationMs:n?pS(n):0})};return window.addEventListener("rcb-toggle-chat-window",e),()=>{window.removeEventListener("rcb-toggle-chat-window",e)}}},[b,c,S]),F.createElement("div",{className:"qa-bot "+((null===(n=Q.general)||void 0===n?void 0:n.embedded)?"embedded-qa-bot":""),ref:M,role:"region","aria-label":h||TS},F.createElement(gS,{getSessionId:()=>P.current,setSessionId:e=>{const t=P.current;P.current=e,iS("RESTORED",`${null==t?void 0:t.slice(-12)} -> ${e.slice(-12)}`)},resetSession:()=>{const e=P.current;B.current=!0,P.current=uS(),iS("RESET",`${null==e?void 0:e.slice(-12)} -> ${P.current.slice(-12)}`)},clearResettingFlag:()=>{B.current=!1}},F.createElement(kS,{onAnalyticsEvent:S,getSessionId:()=>P.current},F.createElement(yb,null,F.createElement("div",null,F.createElement(SS,null),F.createElement(WE,{ref:t,embedded:(null===(r=Q.general)||void 0===r?void 0:r.embedded)||!1,currentOpen:s||!1,enabled:!1!==T,onSetEnabled:e=>I(!!e&&void 0)}),F.createElement(Eb,{key:`chatbot-${C.current}-${T}`,settings:Q,flow:O,plugins:N}),F.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),F.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."))))))});FS.displayName="QABot";Yu('.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 .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset: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 zS=F.forwardRef((e,t)=>{const[n,r]=F.useState(e.defaultOpen||!1),o=F.useRef(null);return F.useImperativeHandle(t,()=>({addMessage:e=>{var t;null===(t=o.current)||void 0===t||t.addMessage(e)},setBotEnabled:e=>{var t;null===(t=o.current)||void 0===t||t.setBotEnabled(e)},openChat:()=>{var e;r(!0),null===(e=o.current)||void 0===e||e.openChat()},closeChat:()=>{var e;r(!1),null===(e=o.current)||void 0===e||e.closeChat()},toggleChat:()=>{var e;r(e=>!e),null===(e=o.current)||void 0===e||e.toggleChat()}}),[]),F.createElement(FS,{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:n,onOpenChange:r,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent})});return zS.displayName="ProgrammaticQABot",function(e){if(!(e.target&&e.target instanceof HTMLElement))return void sS("QA Bot: A valid target DOM element is required");const t=z.createRoot(e.target),n={current:null};return t.render(F.createElement(F.StrictMode,null,F.createElement(zS,{ref:e=>{n.current=e},apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,defaultOpen:e.defaultOpen,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent}))),{addMessage:e=>{var t;return null===(t=n.current)||void 0===t?void 0:t.addMessage(e)},setBotEnabled:e=>{var t;return null===(t=n.current)||void 0===t?void 0:t.setBotEnabled(e)},openChat:()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.openChat()},closeChat:()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.closeChat()},toggleChat:()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.toggleChat()},destroy:()=>{n.current=null,t.unmount()}}}});
36
+ */var Ub,qb;var Vb=function(){if(qb)return Ub;qb=1;var e=/["'&<>]/;return Ub=function(t){var n=""+t,r=e.exec(n);if(!r)return n;var o,a="",i=0,l=0;for(i=r.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}l!==i&&(a+=n.substring(l,i)),l=i+1,a+=o}return l!==i?a+n.substring(l,i):a},Ub}();const Wb=_b(Vb);function Yb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gb=/(url|image|image-set)\(/i;class Xb extends Hb{attribute(e,t){return"style"===e&&Object.keys(t).forEach(e=>{String(t[e]).match(Gb)&&delete t[e]}),t}}const Kb=/^<(!doctype|(html|head|body)(\s|>))/i,Jb=/^(aria-|data-|\w+:)/iu,Zb=/{{{(\w+)\/?}}}/;function $b(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}let ey=class{constructor(e,t={},n=[],r=[]){var o;Yb(this,"allowed",void 0),Yb(this,"banned",void 0),Yb(this,"blocked",void 0),Yb(this,"container",void 0),Yb(this,"content",[]),Yb(this,"props",void 0),Yb(this,"matchers",void 0),Yb(this,"filters",void 0),Yb(this,"keyIndex",void 0),this.props=t,this.matchers=n,this.filters=[...r,new Xb],this.keyIndex=-1,this.container=this.createContainer(e||""),this.allowed=new Set(null!==(o=t.allowList)&&void 0!==o?o:Nb),this.banned=new Set(Ob),this.blocked=new Set(t.blockList)}applyAttributeFilters(e,t){return this.filters.reduce((t,n)=>null!==t&&"function"==typeof n.attribute?n.attribute(e,t):t,t)}applyNodeFilters(e,t){return this.filters.reduce((t,n)=>null!==t&&"function"==typeof n.node?n.node(e,t):t,t)}applyMatchers(e,t){const n={},{props:r}=this;let o=e,a=0,i=null;return this.matchers.forEach(e=>{const l=e.asTag().toLowerCase(),s=this.getTagConfig(l);if(r[e.inverseName]||!this.isTagAllowed(l)||!this.canRenderChild(t,s))return;let c="";for(;o&&(i=e.match(o));){const{index:t,length:l,match:s,valid:u,void:A,...d}=i,f=e.propName+String(a);t>0&&(c+=o.slice(0,t)),u?(c+=A?`{{{${f}/}}}`:`{{{${f}}}}${s}{{{/${f}}}}`,this.keyIndex+=1,a+=1,n[f]={children:s,matcher:e,props:{...r,...d,key:this.keyIndex}}):c+=s,e.greedy?(o=c+o.slice(t+l),c=""):o=o.slice(t+(l||s.length))}e.greedy||(o=c+o)}),0===a?e:this.replaceTokens(o,n)}canRenderChild(e,t){return!(!e.tagName||!t.tagName||e.void)&&(e.children.length>0?e.children.includes(t.tagName):!(e.invalid.length>0&&e.invalid.includes(t.tagName))&&(t.parent.length>0?t.parent.includes(e.tagName):!(!e.self&&e.tagName===t.tagName)&&!!(e&&e.content&t.type)))}convertLineBreaks(e){const{noHtml:t,disableLineBreaks:n}=this.props;if(t||n||e.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return e;let r=e.replace(/\r\n/g,"\n");return r=r.replace(/\n{3,}/g,"\n\n\n"),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||$b)();if(!n)return;const r=null!==(t=this.props.containerTagName)&&void 0!==t?t:"body",o="body"===r||"fragment"===r?n.body:n.createElement(r);return e.match(Kb)||(o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?Wb(e):e)),o}extractAttributes(e){const{allowAttributes:t}=this.props,n={};let r=0;return 1===e.nodeType&&e.attributes&&([...e.attributes].forEach(o=>{const{name:a,value:i}=o,l=a.toLowerCase(),s=Rb[l]||Rb[a];if(!this.isSafe(e)||!l.match(Jb)&&(!t&&(!s||2===s)||l.startsWith("on")||i.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let c="style"===l?this.extractStyleAttribute(e):i;4===s?c=!0:3===s?c=Number.parseFloat(String(c)):5!==s&&(c=String(c)),n[Fb[l]||l]=this.applyAttributeFilters(l,c),r+=1}),0!==r)?n:null}extractStyleAttribute(e){const t={};return Array.from(e.style).forEach(n=>{const r=e.style[n];("string"==typeof r||"number"==typeof r)&&(t[n.replace(/-([a-z])/g,(e,t)=>String(t).toUpperCase())]=r)}),t}getTagConfig(e){const t={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return Lb[e]?{...t,...Lb[e],tagName:e}:t}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const t=e.getAttribute("href");if(null!=t&&t.startsWith("#"))return!0;const n=e.protocol.toLowerCase();return":"===n||"http:"===n||"https:"===n||"mailto:"===n||"tel:"===n}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,t){const{noHtml:n,noHtmlExceptMatchers:r,allowElements:o,transform:a,transformOnlyAllowList:i}=this.props;let l=[],s="";return[...e.childNodes].forEach(e=>{if(1===e.nodeType){const u=e.nodeName.toLowerCase(),A=this.getTagConfig(u);s&&(l.push(s),s="");const d=this.applyNodeFilters(u,e);if(!d)return;let f;if(a&&(!i||this.isTagAllowed(u))){this.keyIndex+=1;const e=this.keyIndex;f=this.parseNode(d,A);const t=a(d,f,A);if(null===t)return;if(typeof t<"u")return void l.push(F.cloneElement(t,{key:e}));this.keyIndex=e-1}if(this.banned.has(u))return;if(n||r&&"br"!==u||!this.isTagAllowed(u)||!o&&!this.canRenderChild(t,A))l=[...l,...this.parseNode(d,A.tagName?A:t)];else{var c;this.keyIndex+=1;const e=this.extractAttributes(d),t={tagName:u};e&&(t.attributes=e),A.void&&(t.selfClose=A.void),l.push(F.createElement(jb,{...t,key:this.keyIndex},null!==(c=f)&&void 0!==c?c:this.parseNode(d,A)))}}else if(3===e.nodeType){const o=n&&!r?e.textContent:this.applyMatchers(e.textContent||"",t);Array.isArray(o)?l=[...l,...o]:s+=o}}),s&&l.push(s),l}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(Zb);){const[e,a]=o,i=o.index,l=e.includes("/");i>0&&(n.push(r.slice(0,i)),r=r.slice(i));const{children:s,matcher:c,props:u}=t[a];let A;if(l)A=e.length,n.push(c.createElement(s,u));else{const o=r.match(new RegExp(`{{{/${a}}}}`));A=o.index+o[0].length,n.push(c.createElement(this.replaceTokens(r.slice(e.length,o.index),t),u))}r=r.slice(A)}return r.length>0&&n.push(r),0===n.length?"":1===n.length&&"string"==typeof n[0]?n[0]:n}};function ty(e){var t;const{attributes:n,className:r,containerTagName:o,content:a,emptyContent:i,parsedContent:l,tagName:s,noWrap:c}=e,u=null!==(t=o??s)&&void 0!==t?t:"span",A="fragment"===u||c;let d;if(l)d=l;else{const t=new ey(a??"",e).parse();t.length>0&&(d=t)}return d||(d=i),A?F.createElement(F.Fragment,null,d):F.createElement(jb,{attributes:n,className:r,tagName:u},d)}function ny(e){const{attributes:t,className:n,content:r="",disableFilters:o=!1,disableMatchers:a=!1,emptyContent:i=null,filters:l=[],matchers:s=[],onAfterParse:c=null,onBeforeParse:u=null,tagName:A="span",noWrap:d=!1,...f}=e,p=a?[]:s,h=o?[]:l,g=u?[u]:[],m=c?[c]:[];p.forEach(e=>{e.onBeforeParse&&g.push(e.onBeforeParse.bind(e)),e.onAfterParse&&m.push(e.onAfterParse.bind(e))});const v=g.reduce((t,n)=>n(t,e),r??""),b=new ey(v,f,p,h),y=m.reduce((t,n)=>n(t,e),b.parse());return F.createElement(ty,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:i,noWrap:d,parsedContent:0===y.length?void 0:y,tagName:A})}const ry=({children:e})=>rA.jsx("div",{style:{whiteSpace:"normal"},children:rA.jsx(ny,{content:"string"==typeof e?e:""})}),oy={autoConfig:!0},ay=(e,t,n)=>{var r;if(!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&((null==(r=o.renderHtml)?void 0:r.map(e=>e.toUpperCase()).includes(n))??!1)},iy=e=>{const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const a=e[o];"<"===a?r?(t.push(n),n=a):(r=!0,n=a):">"===a?(n+=a,t.push(n),n="",r=!1):r?n+=a:t.push(a)}return""!==n&&t.push(n),t},ly=e=>{const{getFlow:t}=Cb(),{messages:n,replaceMessages:r}=Pb(),{settings:o}=Db(),{hasChatHistoryLoaded:a}=Ib(),i={...e,...oy},l=i.htmlComponent?i.htmlComponent:ry;R.useEffect(()=>{var e,t;if(a){const a=[...n];for(let n=0;n<a.length&&n<((null==(e=o.chatHistory)?void 0:e.maxEntries)??30);n++){const e=a[n];null!=(t=e.tags)&&t.includes("rcb-html-renderer-plugin:parsed")&&(e.contentWrapper=l)}r(a)}},[a]);const s=async e=>{var n;const r=null==(n=e.data.message)?void 0:n.sender.toUpperCase();"string"==typeof e.data.message.content&&ay(e,t(),r)&&("rcb-start-simulate-stream-message"===e.type&&(e.data.simulateStreamChunker=iy),e.data.message.contentWrapper=l,e.data.message.tags||(e.data.message.tags=[]),e.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};Bb(km.PRE_INJECT_MESSAGE,s),Bb(km.CHUNK_STREAM_MESSAGE,s),Bb(km.START_STREAM_MESSAGE,s),Bb(km.START_SIMULATE_STREAM_MESSAGE,s),Bb(km.START_SPEAK_AUDIO,async e=>{ay(e,t(),"BOT")&&(e.data.textToRead=(e=>typeof window.DOMParser<"u"?(new DOMParser).parseFromString(e,"text/html").body.textContent||"":e.replace(/<\/?[^>]+(>|$)/g,""))(e.data.textToRead))});const c={name:"@rcb-plugins/html-renderer"};return null!=i&&i.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),c},sy=e=>()=>ly(e);const cy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ay={};function dy(e,t){return(Ay.jsx?uy:cy).test(e)}const fy=/[ \t\n\f\r]/g;function py(e){return""===e.replace(fy,"")}class hy{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function gy(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new hy(n,r,t)}function my(e){return e.toLowerCase()}hy.prototype.property={},hy.prototype.normal={},hy.prototype.space=null;class vy{constructor(e,t){this.property=e,this.attribute=t}}vy.prototype.space=null,vy.prototype.boolean=!1,vy.prototype.booleanish=!1,vy.prototype.overloadedBoolean=!1,vy.prototype.number=!1,vy.prototype.commaSeparated=!1,vy.prototype.spaceSeparated=!1,vy.prototype.commaOrSpaceSeparated=!1,vy.prototype.mustUseProperty=!1,vy.prototype.defined=!1;let by=0;const yy=Py(),wy=Py(),xy=Py(),ky=Py(),Ey=Py(),Sy=Py(),Cy=Py();function Py(){return 2**++by}const By=Object.freeze(Object.defineProperty({__proto__:null,boolean:yy,booleanish:wy,commaOrSpaceSeparated:Cy,commaSeparated:Sy,number:ky,overloadedBoolean:xy,spaceSeparated:Ey},Symbol.toStringTag,{value:"Module"})),Dy=Object.keys(By);class Ty extends vy{constructor(e,t,n,r){let o=-1;if(super(e,t),Iy(this,"space",r),"number"==typeof n)for(;++o<Dy.length;){const e=Dy[o];Iy(this,Dy[o],(n&By[e])===By[e])}}}function Iy(e,t,n){n&&(e[t]=n)}Ty.prototype.defined=!0;const Qy={}.hasOwnProperty;function My(e){const t={},n={};let r;for(r in e.properties)if(Qy.call(e.properties,r)){const o=e.properties[r],a=new Ty(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[my(r)]=r,n[my(a.attribute)]=r}return new hy(t,n,e.space)}const Ly=My({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Oy=My({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ny(e,t){return t in e?e[t]:t}function Ry(e,t){return Ny(e,t.toLowerCase())}const Fy=My({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ry,properties:{xmlns:null,xmlnsXLink:null}}),zy=My({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:wy,ariaAutoComplete:null,ariaBusy:wy,ariaChecked:wy,ariaColCount:ky,ariaColIndex:ky,ariaColSpan:ky,ariaControls:Ey,ariaCurrent:null,ariaDescribedBy:Ey,ariaDetails:null,ariaDisabled:wy,ariaDropEffect:Ey,ariaErrorMessage:null,ariaExpanded:wy,ariaFlowTo:Ey,ariaGrabbed:wy,ariaHasPopup:null,ariaHidden:wy,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ey,ariaLevel:ky,ariaLive:null,ariaModal:wy,ariaMultiLine:wy,ariaMultiSelectable:wy,ariaOrientation:null,ariaOwns:Ey,ariaPlaceholder:null,ariaPosInSet:ky,ariaPressed:wy,ariaReadOnly:wy,ariaRelevant:null,ariaRequired:wy,ariaRoleDescription:Ey,ariaRowCount:ky,ariaRowIndex:ky,ariaRowSpan:ky,ariaSelected:wy,ariaSetSize:ky,ariaSort:null,ariaValueMax:ky,ariaValueMin:ky,ariaValueNow:ky,ariaValueText:null,role:null}}),jy=My({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ry,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Sy,acceptCharset:Ey,accessKey:Ey,action:null,allow:null,allowFullScreen:yy,allowPaymentRequest:yy,allowUserMedia:yy,alt:null,as:null,async:yy,autoCapitalize:null,autoComplete:Ey,autoFocus:yy,autoPlay:yy,blocking:Ey,capture:null,charSet:null,checked:yy,cite:null,className:Ey,cols:ky,colSpan:null,content:null,contentEditable:wy,controls:yy,controlsList:Ey,coords:ky|Sy,crossOrigin:null,data:null,dateTime:null,decoding:null,default:yy,defer:yy,dir:null,dirName:null,disabled:yy,download:xy,draggable:wy,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:yy,formTarget:null,headers:Ey,height:ky,hidden:yy,high:ky,href:null,hrefLang:null,htmlFor:Ey,httpEquiv:Ey,id:null,imageSizes:null,imageSrcSet:null,inert:yy,inputMode:null,integrity:null,is:null,isMap:yy,itemId:null,itemProp:Ey,itemRef:Ey,itemScope:yy,itemType:Ey,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:yy,low:ky,manifest:null,max:null,maxLength:ky,media:null,method:null,min:null,minLength:ky,multiple:yy,muted:yy,name:null,nonce:null,noModule:yy,noValidate:yy,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:yy,optimum:ky,pattern:null,ping:Ey,placeholder:null,playsInline:yy,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:yy,referrerPolicy:null,rel:Ey,required:yy,reversed:yy,rows:ky,rowSpan:ky,sandbox:Ey,scope:null,scoped:yy,seamless:yy,selected:yy,shadowRootClonable:yy,shadowRootDelegatesFocus:yy,shadowRootMode:null,shape:null,size:ky,sizes:null,slot:null,span:ky,spellCheck:wy,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ky,step:null,style:null,tabIndex:ky,target:null,title:null,translate:null,type:null,typeMustMatch:yy,useMap:null,value:wy,width:ky,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ey,axis:null,background:null,bgColor:null,border:ky,borderColor:null,bottomMargin:ky,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:yy,declare:yy,event:null,face:null,frame:null,frameBorder:null,hSpace:ky,leftMargin:ky,link:null,longDesc:null,lowSrc:null,marginHeight:ky,marginWidth:ky,noResize:yy,noHref:yy,noShade:yy,noWrap:yy,object:null,profile:null,prompt:null,rev:null,rightMargin:ky,rules:null,scheme:null,scrolling:wy,standby:null,summary:null,text:null,topMargin:ky,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ky,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:yy,disableRemotePlayback:yy,prefix:null,property:null,results:ky,security:null,unselectable:null}}),Hy=My({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:Ny,properties:{about:Cy,accentHeight:ky,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ky,amplitude:ky,arabicForm:null,ascent:ky,attributeName:null,attributeType:null,azimuth:ky,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ky,by:null,calcMode:null,capHeight:ky,className:Ey,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:ky,diffuseConstant:ky,direction:null,display:null,dur:null,divisor:ky,dominantBaseline:null,download:yy,dx:null,dy:null,edgeMode:null,editable:null,elevation:ky,enableBackground:null,end:null,event:null,exponent:ky,externalResourcesRequired:null,fill:null,fillOpacity:ky,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:Sy,g2:Sy,glyphName:Sy,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ky,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ky,horizOriginX:ky,horizOriginY:ky,id:null,ideographic:ky,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ky,k:ky,k1:ky,k2:ky,k3:ky,k4:ky,kernelMatrix:Cy,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ky,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:ky,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:ky,overlineThickness:ky,paintOrder:null,panose1:null,path:null,pathLength:ky,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ey,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ky,pointsAtY:ky,pointsAtZ:ky,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Cy,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Cy,rev:Cy,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Cy,requiredFeatures:Cy,requiredFonts:Cy,requiredFormats:Cy,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:ky,specularExponent:ky,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ky,strikethroughThickness:ky,string:null,stroke:null,strokeDashArray:Cy,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ky,strokeOpacity:ky,strokeWidth:null,style:null,surfaceScale:ky,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Cy,tabIndex:ky,tableValues:null,target:null,targetX:ky,targetY:ky,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Cy,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ky,underlineThickness:ky,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ky,values:null,vAlphabetic:ky,vMathematical:ky,vectorEffect:null,vHanging:ky,vIdeographic:ky,version:null,vertAdvY:ky,vertOriginX:ky,vertOriginY:ky,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ky,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),_y=/^data[-\w.:]+$/i,Uy=/-[a-z]/g,qy=/[A-Z]/g;function Vy(e){return"-"+e.toLowerCase()}function Wy(e){return e.charAt(1).toUpperCase()}const Yy={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"},Gy=gy([Oy,Ly,Fy,zy,jy],"html"),Xy=gy([Oy,Ly,Fy,zy,Hy],"svg");function Ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jy,Zy,$y,ew={};var tw=function(){if($y)return ew;$y=1;var e=ew&&ew.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ew,"__esModule",{value:!0}),ew.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),a="function"==typeof n;return o.forEach(function(e){if("declaration"===e.type){var t=e.property,o=e.value;a?n(t,o,e):o&&((r=r||{})[t]=o)}}),r};var t=e(function(){if(Zy)return Jy;Zy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,l=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(l,s):s}return Jy=function(l,u){if("string"!=typeof l)throw new TypeError("First argument must be a string");if(!l)return[];u=u||{};var A=1,d=1;function f(e){var n=e.match(t);n&&(A+=n.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:A,column:d};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:A,column:d},this.source=u.source}function g(e){var t=new Error(u.source+":"+A+":"+d+": "+e);if(t.reason=e,t.filename=u.source,t.line=A,t.column=d,t.source=l,!u.silent)throw t}function m(e){var t=e.exec(l);if(t){var n=t[0];return f(n),l=l.slice(n.length),t}}function v(){m(n)}function b(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var e=p();if("/"==l.charAt(0)&&"*"==l.charAt(1)){for(var t=2;s!=l.charAt(t)&&("*"!=l.charAt(t)||"/"!=l.charAt(t+1));)++t;if(t+=2,s===l.charAt(t-1))return g("End of comment missing");var n=l.slice(2,t-2);return d+=2,f(n),l=l.slice(t),d+=2,e({type:"comment",comment:n})}}function w(){var t=p(),n=m(r);if(n){if(y(),!m(o))return g("property missing ':'");var l=m(a),u=t({type:"declaration",property:c(n[0].replace(e,s)),value:l?c(l[0].replace(e,s)):s});return m(i),u}}return h.prototype.content=l,v(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()},Jy}());return ew}();const nw=Ky(tw),rw=nw.default||nw,ow=iw("end"),aw=iw("start");function iw(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function lw(e){return e&&"object"==typeof e?"position"in e||"type"in e?cw(e.position):"start"in e||"end"in e?cw(e):"line"in e||"column"in e?sw(e):"":""}function sw(e){return uw(e&&e.line)+":"+uw(e&&e.column)}function cw(e){return sw(e&&e.start)+"-"+sw(e&&e.end)}function uw(e){return e&&"number"==typeof e?e:1}class Aw extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},a=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(a=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const i=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=lw(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Aw.prototype.file="",Aw.prototype.name="",Aw.prototype.reason="",Aw.prototype.message="",Aw.prototype.stack="",Aw.prototype.column=void 0,Aw.prototype.line=void 0,Aw.prototype.ancestors=void 0,Aw.prototype.cause=void 0,Aw.prototype.fatal=void 0,Aw.prototype.place=void 0,Aw.prototype.ruleId=void 0,Aw.prototype.source=void 0;const dw={}.hasOwnProperty,fw=new Map,pw=/[A-Z]/g,hw=/-([a-z])/g,gw=new Set(["table","tbody","thead","tfoot","tr"]),mw=new Set(["td","th"]),vw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bw(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,a){const i=Array.isArray(o.children),l=aw(n);return t(r,o,a,i,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,a){const i=Array.isArray(o.children)?n:t;return a?i(r,o,a):i(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Xy:Gy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=yw(o,e,void 0);return a&&"string"!=typeof a?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function yw(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Xy,e.schema=o),e.ancestors.push(t);const a=Sw(e,t.tagName,!1),i=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&dw.call(t.properties,o)){const a=Ew(e,o,t.properties[o]);if(a){const[o,i]=a;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof i&&mw.has(t.tagName)?r=i:n[o]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=kw(e,t);return gw.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!function(e){return"object"==typeof e?"text"===e.type&&py(e.value):py(e)}(e)})),ww(e,i,a,t),xw(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Cw(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Xy,e.schema=o),e.ancestors.push(t);const a=null===t.name?e.Fragment:Sw(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Cw(e,t.position);else{const o=r.name;let a;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Cw(e,t.position);else a=null===r.value||r.value;n[o]=a}return n}(e,t),l=kw(e,t);return ww(e,i,a,t),xw(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Cw(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return xw(r,kw(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ww(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function kw(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:fw;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=o.get(e)||0;i=e+"-"+t,o.set(e,t+1)}}const l=yw(e,a,i);void 0!==l&&n.push(l)}return n}function Ew(e,t,n){const r=function(e,t){const n=my(t);let r=t,o=vy;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&_y.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Uy,Wy);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Uy.test(e)){let n=e.replace(qy,Vy);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Ty}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){const n={};try{rw(t,r)}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new Aw("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=vw+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(hw,Bw)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)dw.call(e,n)&&(t[Pw(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Yy[r.property]||r.property:r.attribute,n]}}function Sw(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=dy(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:!(!o||"Literal"!==t.type),optional:!1}:t}r=n}else r=dy(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return dw.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Cw(e)}function Cw(e,t){const n=new Aw("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=vw+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Pw(e){let t=e.replace(pw,Dw);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Bw(e,t){return t.toUpperCase()}function Dw(e){return"-"+e.toLowerCase()}const Tw={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"]},Iw={};function Qw(e,t,n){if(function(e){return!(!e||"object"!=typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Mw(e.children,t,n)}return Array.isArray(e)?Mw(e,t,n):""}function Mw(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Qw(e[o],t,n);return r.join("")}const Lw=document.createElement("i");function Ow(e){const t="&"+e+";";Lw.innerHTML=t;const n=Lw.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function Nw(e,t,n,r){const o=e.length;let a,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function Rw(e,t){return e.length>0?(Nw(e,e.length,0,t),e):t}const Fw={}.hasOwnProperty;function zw(e){const t={};let n=-1;for(;++n<e.length;)jw(t,e[n]);return t}function jw(e,t){let n;for(n in t){const r=(Fw.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Fw.call(r,a)||(r[a]=[]);const e=o[a];Hw(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Hw(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Nw(e,0,0,r)}function _w(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Uw(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qw=nx(/[A-Za-z]/),Vw=nx(/[\dA-Za-z]/),Ww=nx(/[#-'*+\--9=?A-Z^-~]/);function Yw(e){return null!==e&&(e<32||127===e)}const Gw=nx(/\d/),Xw=nx(/[\dA-Fa-f]/),Kw=nx(/[!-/:-@[-`{-~]/);function Jw(e){return null!==e&&e<-2}function Zw(e){return null!==e&&(e<0||32===e)}function $w(e){return-2===e||-1===e||32===e}const ex=nx(new RegExp("\\p{P}|\\p{S}","u")),tx=nx(/\s/);function nx(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function rx(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(37===a&&Vw(e.charCodeAt(n+1))&&Vw(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ox(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return $w(r)?(e.enter(n),i(r)):t(r)};function i(r){return $w(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}const ax={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ox(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Jw(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const ix={tokenize:function(e){const t=this,n=[];let r,o,a,i=0;return l;function l(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){o=t.events[a][1].end;break}m(i);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Nw(t.events,a+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(i===n.length){if(!r)return d(o);if(r.currentConstruct&&r.currentConstruct.concrete)return p(o);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(lx,u,A)(o)}function u(e){return r&&v(),m(i),d(e)}function A(e){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,p(e)}function d(n){return t.containerState={},e.attempt(lx,f,p)(n)}function f(e){return i++,n.push([t.currentConstruct,t.containerState]),d(e)}function p(n){return null===n?(r&&v(),m(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),h(n))}function h(n){return null===n?(g(e.exit("chunkFlow"),!0),m(0),void e.consume(n)):Jw(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(n),h)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(m(i),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Nw(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function m(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},lx={tokenize:function(e,t,n){return ox(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function sx(e){return null===e||Zw(e)||tx(e)?1:ex(e)?2:void 0}function cx(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const ux={name:"attention",resolveAll:function(e,t){let n,r,o,a,i,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const A={...e[n][1].end},d={...e[u][1].start};Ax(A,-l),Ax(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:A,end:{...e[n][1].end}},i={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:d},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...a.start},end:{...i.end}},e[n][1].end={...a.start},e[u][1].start={...i.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Rw(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Rw(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=Rw(s,cx(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=Rw(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=Rw(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Nw(e,n-1,u-n+3,s),u=n+s.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=sx(r);let a;return function(t){return a=t,e.enter("attentionSequence"),i(t)};function i(l){if(l===a)return e.consume(l),i;const s=e.exit("attentionSequence"),c=sx(l),u=!c||2===c&&o||n.includes(l),A=!o||2===o&&c||n.includes(r);return s._open=!!(42===a?u:u&&(o||!A)),s._close=!!(42===a?A:A&&(c||!u)),t(l)}}};function Ax(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const dx={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return qw(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(e){return 43===e||45===e||46===e||Vw(e)?(r=1,i(e)):s(e)}function i(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Vw(t))&&r++<32?(e.consume(t),i):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Yw(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):Ww(t)?(e.consume(t),s):n(t)}function c(e){return Vw(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):A(n)}function A(t){if((45===t||Vw(t))&&r++<63){const n=45===t?A:u;return e.consume(t),n}return n(t)}}};const fx={partial:!0,tokenize:function(e,t,n){return function(t){return $w(t)?ox(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Jw(e)?t(e):n(e)}}};const px={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return $w(t)?ox(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(px,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return $w(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const hx={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Kw(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const gx={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,a,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,a=Vw,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Xw,c):(e.enter("characterReferenceValue"),o=7,a=Gw,c(t))}function c(l){if(59===l&&i){const o=e.exit("characterReferenceValue");return a!==Vw||Ow(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return a(l)&&i++<o?(e.consume(l),c):n(l)}}};const mx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},vx={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),$w(t)?ox(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===a?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===a?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),$w(t)?ox(e,A,"whitespace")(t):A(t)):n(t)}function A(r){return null===r||Jw(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,i=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===a?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),$w(t)?ox(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Jw(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(mx,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Jw(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):$w(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ox(e,A,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function A(t){return null===t||Jw(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Jw(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),d)}function f(t){return e.attempt(o,v,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&$w(t)?ox(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||Jw(t)?e.check(mx,f,v)(t):(e.enter("codeFlowValue"),m(t))}function m(t){return null===t||Jw(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),m)}function v(n){return e.exit("codeFenced"),t(n)}}};const bx={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ox(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?l(t):Jw(t)?e.attempt(yx,a,l)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Jw(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function l(n){return e.exit("codeIndented"),t(n)}}},yx={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Jw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ox(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Jw(e)?o(e):n(e)}}};const wx={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Jw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Jw(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class xx{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&kx(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),kx(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),kx(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);kx(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);kx(this.left,t.reverse())}}}function kx(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ex(e){const t={};let n,r,o,a,i,l,s,c=-1;const u=new xx(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Sx(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(a=u.get(o),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);else if("linePrefix"!==a[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return Nw(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Sx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[],i=n._tokenizer||r.parser[n.contentType](n.start),l=i.events,s=[],c={};let u,A,d=-1,f=n,p=0,h=0;const g=[h];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),A&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),A=f,f=f.next}for(f=n;++d<l.length;)"exit"===l[d][0]&&"enter"===l[d-1][0]&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(h=d+1,g.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),d=g.length;d--;){const t=l.slice(g[d],g[d+1]),n=a.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),d=-1;++d<s.length;)c[p+s[d][0]]=p+s[d][1],p+=s[d][1]-s[d][0]-1;return c}const Cx={resolve:function(e){return Ex(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Jw(t)?e.check(Px,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Px={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ox(e,o,"linePrefix")};function o(o){if(null===o||Jw(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Bx(e,t,n,r,o,a,i,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),A):null===t||32===t||41===t||Yw(t)?n(t):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),p(t))};function A(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(l),A(t)):null===t||60===t||Jw(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(o){return u||null!==o&&41!==o&&!Zw(o)?u<c&&40===o?(e.consume(o),u++,p):41===o?(e.consume(o),u--,p):null===o||32===o||40===o||Yw(o)?n(o):(e.consume(o),92===o?h:p):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function Dx(e,t,n,r,o,a){const i=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),c};function c(A){return s>999||null===A||91===A||93===A&&!l||94===A&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(A):93===A?(e.exit(a),e.enter(o),e.consume(A),e.exit(o),e.exit(r),t):Jw(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(A))}function u(t){return null===t||91===t||93===t||Jw(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!$w(t)),92===t?A:u)}function A(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Tx(e,t,n,r,o,a){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l):n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):Jw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ox(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||Jw(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function Ix(e,t){let n;return function r(o){return Jw(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):$w(o)?ox(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const Qx={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Dx.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return o=Uw(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return Zw(t)?Ix(e,l)(t):l(t)}function l(t){return Bx(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Mx,c,c)(t)}function c(t){return $w(t)?ox(e,u,"whitespace")(t):u(t)}function u(a){return null===a||Jw(a)?(e.exit("definition"),r.parser.defined.push(o),t(a)):n(a)}}},Mx={partial:!0,tokenize:function(e,t,n){return function(t){return Zw(t)?Ix(e,r)(t):n(t)};function r(t){return Tx(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return $w(t)?ox(e,a,"whitespace")(t):a(t)}function a(e){return null===e||Jw(e)?t(e):n(e)}}};const Lx={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Jw(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Ox={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),o-2>a&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4),o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},Nw(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Zw(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||Jw(n)?(e.exit("atxHeading"),t(n)):$w(n)?ox(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||Zw(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}}};const Nx=["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"],Rx=["pre","script","style","textarea"],Fx={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,a,i,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),a=!0,f):63===l?(e.consume(l),o=3,r.interrupt?t:L):qw(l)?(e.consume(l),i=String.fromCharCode(l),p):n(l)}function u(a){return 45===a?(e.consume(a),o=2,A):91===a?(e.consume(a),o=5,l=0,d):qw(a)?(e.consume(a),o=4,r.interrupt?t:L):n(a)}function A(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function d(o){const a="CDATA[";return o===a.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:C:d):n(o)}function f(t){return qw(t)?(e.consume(t),i=String.fromCharCode(t),p):n(t)}function p(l){if(null===l||47===l||62===l||Zw(l)){const s=47===l,c=i.toLowerCase();return s||a||!Rx.includes(c)?Nx.includes(i.toLowerCase())?(o=6,s?(e.consume(l),h):r.interrupt?t(l):C(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):a?g(l):m(l)):(o=1,r.interrupt?t(l):C(l))}return 45===l||Vw(l)?(e.consume(l),i+=String.fromCharCode(l),p):n(l)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function g(t){return $w(t)?(e.consume(t),g):E(t)}function m(t){return 47===t?(e.consume(t),E):58===t||95===t||qw(t)?(e.consume(t),v):$w(t)?(e.consume(t),m):E(t)}function v(t){return 45===t||46===t||58===t||95===t||Vw(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),y):$w(t)?(e.consume(t),b):m(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):$w(t)?(e.consume(t),y):x(t)}function w(t){return t===s?(e.consume(t),s=null,k):null===t||Jw(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Zw(t)?b(t):(e.consume(t),x)}function k(e){return 47===e||62===e||$w(e)?m(e):n(e)}function E(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||Jw(t)?C(t):$w(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),T):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),O):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),M):!Jw(t)||6!==o&&7!==o?null===t||Jw(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(zx,N,P)(t))}function P(t){return e.check(jx,B,N)(t)}function B(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return null===t||Jw(t)?P(t):(e.enter("htmlFlowData"),C(t))}function T(t){return 45===t?(e.consume(t),L):C(t)}function I(t){return 47===t?(e.consume(t),i="",Q):C(t)}function Q(t){if(62===t){const n=i.toLowerCase();return Rx.includes(n)?(e.consume(t),O):C(t)}return qw(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),Q):C(t)}function M(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),O):45===t&&2===o?(e.consume(t),L):C(t)}function O(t){return null===t||Jw(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),O)}function N(n){return e.exit("htmlFlow"),t(n)}}},zx={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(fx,t,n)}}},jx={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Jw(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Hx={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,a,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),y):63===t?(e.consume(t),v):qw(t)?(e.consume(t),k):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,f):qw(t)?(e.consume(t),m):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),A):Jw(t)?(i=u,Q(t)):(e.consume(t),u)}function A(t){return 45===t?(e.consume(t),d):u(t)}function d(e){return 62===e?I(e):45===e?A(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),6===a?p:f):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),h):Jw(t)?(i=p,Q(t)):(e.consume(t),p)}function h(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):p(t)}function m(t){return null===t||62===t?I(t):Jw(t)?(i=m,Q(t)):(e.consume(t),m)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Jw(t)?(i=v,Q(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function y(t){return qw(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Vw(t)?(e.consume(t),w):x(t)}function x(t){return Jw(t)?(i=x,Q(t)):$w(t)?(e.consume(t),x):I(t)}function k(t){return 45===t||Vw(t)?(e.consume(t),k):47===t||62===t||Zw(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),I):58===t||95===t||qw(t)?(e.consume(t),S):Jw(t)?(i=E,Q(t)):$w(t)?(e.consume(t),E):I(t)}function S(t){return 45===t||46===t||58===t||95===t||Vw(t)?(e.consume(t),S):C(t)}function C(t){return 61===t?(e.consume(t),P):Jw(t)?(i=C,Q(t)):$w(t)?(e.consume(t),C):E(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,B):Jw(t)?(i=P,Q(t)):$w(t)?(e.consume(t),P):(e.consume(t),D)}function B(t){return t===o?(e.consume(t),o=void 0,T):null===t?n(t):Jw(t)?(i=B,Q(t)):(e.consume(t),B)}function D(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Zw(t)?E(t):(e.consume(t),D)}function T(e){return 47===e||62===e||Zw(e)?E(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function Q(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return $w(t)?ox(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const _x={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Nw(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,a,i=e.length,l=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=i);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",c,t]],a=Rw(a,e.slice(r+1,r+l+3)),a=Rw(a,[["enter",u,t]]),a=Rw(a,cx(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),a=Rw(a,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),a=Rw(a,e.slice(o+1)),a=Rw(a,[["exit",s,t]]),Nw(e,r,e.length,a),e},tokenize:function(e,t,n){const r=this;let o,a,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){return o?o._inactive?u(t):(a=r.parser.defined.includes(Uw(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(Ux,c,a?c:u)(t):91===t?e.attempt(qx,c,a?s:u)(t):a?c(t):u(t)}function s(t){return e.attempt(Vx,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Ux={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Zw(t)?Ix(e,o)(t):o(t)}function o(t){return 41===t?c(t):Bx(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Zw(t)?Ix(e,l)(t):c(t)}function i(e){return n(e)}function l(t){return 34===t||39===t||40===t?Tx(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return Zw(t)?Ix(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},qx={tokenize:function(e,t,n){const r=this;return function(t){return Dx.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Uw(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},Vx={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Wx={name:"labelStartImage",resolveAll:_x.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Yx={name:"labelStartLink",resolveAll:_x.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Gx={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ox(e,t,"linePrefix")}}};const Xx={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||Jw(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),$w(t)?ox(e,a,"whitespace")(t):a(t))}}};const Kx={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(fx,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ox(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!$w(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Zx,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ox(e,e.attempt(Kx,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Gw(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Xx,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Gw(t)&&++i<10?(e.consume(t),l):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(fx,r.interrupt?n:c,e.attempt(Jx,A,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,A(e)}function u(t){return $w(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),A):n(t)}function A(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Jx={partial:!0,tokenize:function(e,t,n){const r=this;return ox(e,function(e){const o=r.events[r.events.length-1];return!$w(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Zx={partial:!0,tokenize:function(e,t,n){const r=this;return ox(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const $x={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),!o&&"definition"===e[a][1].type&&(o=a);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i,e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),$w(t)?ox(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||Jw(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const ek={tokenize:function(e){const t=this,n=e.attempt(fx,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,ox(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Cx,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const tk={resolveAll:ak()},nk=ok("string"),rk=ok("text");function ok(e){return{resolveAll:ak("text"===e?ik:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ak(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):(!t[o]||"data"!==t[o][1].type)&&(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function ik(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let a,i=o.length,l=-1,s=0;for(;i--;){const e=o[i];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)a=!0,s++;else if(-1!==e){i++;break}}if(s){const o={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const lk={42:Kx,43:Kx,45:Kx,48:Kx,49:Kx,50:Kx,51:Kx,52:Kx,53:Kx,54:Kx,55:Kx,56:Kx,57:Kx,62:px},sk={91:Qx},ck={[-2]:bx,[-1]:bx,32:bx},uk={35:Ox,42:Xx,45:[$x,Xx],60:Fx,61:$x,95:Xx,96:vx,126:vx},Ak={38:gx,92:hx},dk={[-5]:Gx,[-4]:Gx,[-3]:Gx,33:Wx,38:gx,42:ux,60:[dx,Hx],91:Yx,92:[Lx,hx],93:_x,95:ux,96:wx},fk={null:[ux,tk]},pk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:sk,disable:{null:[]},document:lk,flow:uk,flowInitial:ck,insideSpan:fk,string:Ak,text:dk},Symbol.toStringTag,{value:"Module"}));function hk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let i=[],l=[];const s={attempt:h(function(e,t){g(e,t.from)}),check:h(p),consume:function(e){Jw(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=d(),c.events.push(["exit",t,c]),t},interrupt:h(p,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,m()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if("string"==typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(a)}o=-2===a,r.push(i)}return r.join("")}(A(e),t)},sliceStream:A,write:function(e){return i=Rw(i,e),function(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}(),null!==i[i.length-1]?[]:(g(t,0),c.events=cx(a,c.events,c),c.events)}};let u=t.tokenize.call(c,s);return t.resolveAll&&a.push(t),c;function A(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}(i,e)}function d(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:a}}function f(e){u=u(e)}function p(e,t){t.restore()}function h(e,t){return function(n,o,a){let i,u,A,f;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return p([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function p(e){return i=e,u=0,0===e.length?a:h(e[u])}function h(e){return function(n){return f=function(){const e=d(),t=c.previous,n=c.currentConstruct,o=c.events.length,a=Array.from(l);return{from:o,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=a,m()}}(),A=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?v():e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,v)(n)}}function g(t){return e(A,f),o}function v(e){return f.restore(),++u<i.length?h(i[u]):a}}}function g(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Nw(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function m(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const gk=/[\0\t\n\r]/g;const mk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vk(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return _w(n.slice(t?2:1),t?16:10)}return Ow(n)||e}const bk={}.hasOwnProperty;function yk(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:a(J),blockQuote:a(W),characterEscape:S,characterReference:S,codeFenced:a(Y),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(Y,i),codeText:a(G,i),codeTextData:S,data:S,codeFlowValue:S,definition:a(X),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(K),hardBreakEscape:a(Z),hardBreakTrailing:a(Z),htmlFlow:a($,i),htmlFlowData:S,htmlText:a($,i),htmlTextData:S,image:a(ee),label:i,link:a(te),listItem:a(re),listItemValue:d,listOrdered:a(ne,A),listUnordered:a(ne),paragraph:a(oe),reference:z,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(J),strong:a(ae),thematicBreak:a(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:V,autolinkProtocol:q,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:_,characterReference:U,codeFenced:s(g),codeFencedFence:h,codeFencedFenceInfo:f,codeFencedFenceMeta:p,codeFlowValue:C,codeIndented:s(m),codeText:s(I),codeTextData:C,data:C,definition:s(),definitionDestinationString:y,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(B),hardBreakTrailing:s(B),htmlFlow:s(D),htmlFlowData:C,htmlText:s(T),htmlTextData:C,image:s(M),label:O,labelText:L,lineEnding:P,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:j,resourceDestinationString:N,resourceTitleString:R,resource:F,setextHeading:s(E),setextHeadingLineSequence:k,setextHeadingText:x,strong:s(),thematicBreak:s()}};xk(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const a={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:i,resume:u,data:n},s=[];let A=-1;for(;++A<e.length;)if("listOrdered"===e[A][1].type||"listUnordered"===e[A][1].type)if("enter"===e[A][0])s.push(A);else{A=o(e,s.pop(),A)}for(A=-1;++A<e.length;){const n=t[e[A][0]];bk.call(n,e[A][1].type)&&n[e[A][1].type].call(Object.assign({sliceSerialize:e[A][2].sliceSerialize},a),e[A][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||Ek).call(a,void 0,e[0])}for(r.position={start:wk(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:wk(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},A=-1;++A<t.transforms.length;)r=t.transforms[A](r)||r;return r}function o(e,t,n){let r,o,a,i,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(r&&!i&&!s&&!a&&(a=l),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=l;for(o=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!o||a<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,a=void 0,i=!0}}}return e[t][1]._spread=c,n}function a(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:wk(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+lw({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Ek).call(this,e,r[0])),n.position.end=wk(e.end)}function u(){return function(e){return Qw(e,"boolean"!=typeof Iw.includeImageAlt||Iw.includeImageAlt,"boolean"!=typeof Iw.includeHtml||Iw.includeHtml)}(this.stack.pop())}function A(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function p(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Uw(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function y(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];(!n||"text"!==n.type)&&(n=ie(),n.position={start:wk(e.start),end:void 0},t.push(n)),this.stack.push(n)}function C(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=wk(e.end)}function P(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=wk(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),C.call(this,e))}function B(){this.data.atHardBreak=!0}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function Q(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(mk,vk)}(t),n.identifier=Uw(t).toLowerCase()}function O(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function N(){const e=this.resume();this.stack[this.stack.length-1].url=e}function R(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function j(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Uw(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function H(e){this.data.characterReferenceType=e.type}function _(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=_w(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Ow(t);this.stack[this.stack.length-1].value+=r}function U(e){this.stack.pop().position.end=wk(e.end)}function q(e){C.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){C.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function $(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ex(e););return e}(function(e){const t={constructs:zw([pk,...(e||{}).extensions||[]]),content:n(ax),defined:[],document:n(ix),flow:n(ek),lazy:{},string:n(nk),text:n(rk)};return t;function n(e){return function(n){return hk(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,a,i){const l=[];let s,c,u,A,d;for(o=n+("string"==typeof o?o.toString():new TextDecoder(a||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(gk.lastIndex=u,s=gk.exec(o),A=s&&void 0!==s.index?s.index:o.length,d=o.charCodeAt(A),!s){n=o.slice(u);break}if(10===d&&u===A&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<A&&(l.push(o.slice(u,A)),t+=A-u),d){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=A+1}return i&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function wk(e){return{line:e.line,column:e.column,offset:e.offset}}function xk(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?xk(e,r):kk(e,r)}}function kk(e,t){let n;for(n in t)if(bk.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ek(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lw({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lw({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lw({start:t.start,end:t.end})+") is still open")}function Sk(e){const t=this;t.parser=function(n){return yk(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ck(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function Pk(e){return e.spread??e.children.length>1}function Bk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(Dk(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(Dk(t.slice(o),o>0,!1)),a.join("")}function Dk(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Tk={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=rx(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ck(e,t);const o={src:rx(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:rx(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ck(e,t);const o={href:rx(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:rx(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Pk(n[r])}return t}(n):Pk(t),a={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=aw(t.children[1]),i=ow(t.children[t.children.length-1]);a&&i&&(r.position={start:a,end:i}),o.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length;let l=-1;const s=[];for(;++l<i;){const n=t.children[l],r={},i=a?a[l]:void 0;i&&(r.align=i);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Bk(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Ik,yaml:Ik,definition:Ik,footnoteDefinition:Ik};function Ik(){}const Qk="object"==typeof self?self:globalThis,Mk=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case 0:case-1:return n(i,o);case 1:{const e=n([],o);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),o);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new Qk[e](t),o)}case 8:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new Qk[a](i),o)};return r})(new Map,e)(0),Lk="",{toString:Ok}={},{keys:Nk}=Object,Rk=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ok.call(e).slice(8,-1);switch(n){case"Array":return[1,Lk];case"Object":return[2,Lk];case"Date":return[3,Lk];case"RegExp":return[4,Lk];case"Map":return[5,Lk];case"Set":return[6,Lk];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Fk=([e,t])=>0===e&&("function"===t||"symbol"===t),zk=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},a=r=>{if(n.has(r))return n.get(r);let[i,l]=Rk(r);switch(i){case 0:{let t=r;switch(l){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([i,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([i,e],r);for(const t of r)e.push(a(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],s=o([i,n],r);for(const t of Nk(r))(e||!Fk(Rk(r[t])))&&n.push([a(t),a(r[t])]);return s}case 3:return o([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([i,{source:e,flags:t}],r)}case 5:{const t=[],n=o([i,t],r);for(const[n,o]of r)(e||!Fk(Rk(n))&&!Fk(Rk(o)))&&t.push([a(n),a(o)]);return n}case 6:{const t=[],n=o([i,t],r);for(const n of r)(e||!Fk(Rk(n)))&&t.push(a(n));return n}}const{message:s}=r;return o([i,{name:l,message:s}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},jk="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Mk(zk(e,t)):structuredClone(e):(e,t)=>Mk(zk(e,t));function Hk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function _k(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Uk=function(e){if(null==e)return Vk;if("function"==typeof e)return qk(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Uk(e[n]);return qk(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return qk(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return qk(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function qk(e){return function(t,n,r){return!(!function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)||!e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Vk(){return!0}const Wk=[],Yk=!0,Gk=!1;function Xk(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const a=Uk(o),i=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,A,d=Wk;if((!t||a(o,l,s[s.length-1]||void 0))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[Yk,e]:null==e?Wk:[e]}(n(o,s)),d[0]===Gk))return d;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==d[0])for(u=(r?t.children.length:-1)+i,A=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,A)(),c[0]===Gk)return c;u="number"==typeof c[1]?c[1]:u+i}}return d}}(e,void 0,[])()}function Kk(e,t,n,r){let o,a,i;"function"==typeof t?(a=void 0,i=t,o=n):(a=t,i=n,o=r),Xk(e,a,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},o)}const Jk={}.hasOwnProperty,Zk={};function $k(e,t){const n=t||Zk,r=new Map,o=new Map,a=new Map,i={...Tk,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(!Array.isArray(o)&&"text"===o.type&&(o.value=oE(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=oE(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:tE,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=l.handlers[n];if(Jk.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=jk(n);return r.children=l.all(e),r}return jk(e)}return(l.options.unknownHandler||nE)(l,e,t)},options:n,patch:eE,wrap:rE};return Kk(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}function eE(e,t){e.position&&(t.position=function(e){const t=aw(e),n=ow(e);if(t&&n)return{start:t,end:n}}(e))}function tE(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,jk(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nE(e,t){const n=t.data||{},r=!("value"in t)||Jk.call(n,"hProperties")||Jk.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function rE(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function oE(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function aE(e,t){const n=$k(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Hk,r=e.options.footnoteBackLabel||_k,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const a=e.all(o),i=String(o.identifier).toUpperCase(),c=rx(i.toLowerCase());let u=0;const A=[],d=e.footnoteCounts.get(i);for(;void 0!==d&&++u<=d;){A.length>0&&A.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),A.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...A)}else a.push(...A);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(o,p),l.push(p)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...jk(i),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:"\n"},o),a}function iE(e,t){return e&&"run"in e?async function(n,r){const o=aE(n,{file:r,...t});await e.run(o,r)}:function(n,r){return aE(n,{file:r,...e||t})}}function lE(e){if(e)throw e}var sE,cE;var uE=function(){if(cE)return sE;cE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!a)return!1;for(r in n);return typeof r>"u"||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return sE=function e(){var t,n,r,s,c,u,A=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"==typeof A&&(p=A,A=arguments[1]||{},d=2),(null==A||"object"!=typeof A&&"function"!=typeof A)&&(A={});d<f;++d)if(null!=(t=arguments[d]))for(n in t)r=l(A,n),A!==(s=l(t,n))&&(p&&s&&(a(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},i(A,{name:n,newValue:e(p,u,s)})):typeof s<"u"&&i(A,{name:n,newValue:s}));return A},sE}();const AE=Ky(uE);function dE(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function fE(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(a,...i){const l=e[++n];let s=-1;if(a)r(a);else{for(;++s<t.length;)(null===i[s]||void 0===i[s])&&(i[s]=t[s]);t=i,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let i;r&&t.push(o);try{i=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(i&&i.then&&"function"==typeof i.then?i.then(a,o):i instanceof Error?o(i):a(i))}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)}}(l,o)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const pE={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');hE(e);let n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(o=a):(l=-1,o=i));return r===o?o=i:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(hE(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){hE(e);let t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}return a<0||r<0||0===i||1===i&&a===r-1&&a===o+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)hE(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){hE(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",a=0,i=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(i!==s-1&&1!==l)if(i!==s-1&&2===l){if(o.length<2||2!==a||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",a=0):(o=o.slice(0,r),a=o.length-1-o.lastIndexOf("/")),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0===n.length&&!t&&(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function hE(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gE={cwd:function(){return"/"}};function mE(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function vE(e){if("string"==typeof e)e=new URL(e);else if(!mE(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const bE=["history","path","basename","stem","extname","dirname"];class yE{constructor(e){let t;var n;t=e?mE(e)?{path:e}:"string"==typeof e||(n=e)&&"object"==typeof n&&"byteLength"in n&&"byteOffset"in n?{value:e}:e:{},this.cwd="cwd"in t?"":gE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,o=-1;for(;++o<bE.length;){const e=bE[o];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)bE.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?pE.basename(this.path):void 0}set basename(e){xE(e,"basename"),wE(e,"basename"),this.path=pE.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?pE.dirname(this.path):void 0}set dirname(e){kE(this.basename,"dirname"),this.path=pE.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?pE.extname(this.path):void 0}set extname(e){if(wE(e,"extname"),kE(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pE.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){mE(e)&&(e=vE(e)),xE(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?pE.basename(this.path,this.extname):void 0}set stem(e){xE(e,"stem"),wE(e,"stem"),this.path=pE.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Aw(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function wE(e,t){if(e&&e.includes(pE.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pE.sep+"`")}function xE(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const EE=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},SE={}.hasOwnProperty;class CE extends EE{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=fE()}copy(){const e=new CE;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(AE(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(TE("data",this.frozen),this.namespace[e]=t,this):SE.call(this.namespace,e)&&this.namespace[e]||void 0:e?(TE("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=ME(e),n=this.parser||this.Parser;return BE("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),BE("process",this.parser||this.Parser),DE("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const a=ME(e),i=n.parse(a);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(i,a,function(e,t,r){if(e||!t||!r)return l(e);const o=t,a=n.stringify(o,r);var i;"string"==typeof(i=a)||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=a:r.result=a,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),BE("processSync",this.parser||this.Parser),DE("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,lE(e),t=r}),QE("processSync","process",n),t}run(e,t,n){IE(e),this.freeze();const r=this.transformers;return!n&&"function"==typeof t&&(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,a){const i=ME(t);r.run(e,i,function(t,r,i){const l=r||e;t?a(t):o?o(l):n(void 0,l,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){lE(e),n=t,r=!0}),QE("runSync","run",r),n}stringify(e,t){this.freeze();const n=ME(t),r=this.compiler||this.Compiler;return DE("stringify",r),IE(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(TE("use",this.frozen),null!=e)if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):a(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))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");i(e.plugins),e.settings&&(r.settings=AE(!0,r.settings,e.settings))}function i(e){let t=-1;if(null!=e){if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...a]=t;const i=n[o][1];dE(i)&&dE(r)&&(r=AE(!0,i,r)),n[o]=[e,r,...a]}}}}const PE=(new CE).freeze();function BE(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function DE(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function TE(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function IE(e){if(!dE(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function QE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ME(e){return function(e){return!!(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new yE(e)}const LE=[],OE={allowDangerousHtml:!0},NE=/^(https?|ircs?|mailto|xmpp)$/i,RE=[{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 FE(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,i=e.disallowedElements,l=e.rehypePlugins||LE,s=e.remarkPlugins||LE,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...OE}:OE,u=e.skipHtml,A=e.unwrapDisallowed,d=e.urlTransform||zE,f=PE().use(Sk).use(s).use(iE,c).use(l),p=new yE;"string"==typeof r&&(p.value=r);for(const t of RE)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const h=f.parse(p);let g=f.runSync(h,p);return o&&(g={type:"element",tagName:"div",properties:{className:o},children:"root"===g.type?g.children:[g]}),Kk(g,function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return u?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Tw)if(Object.hasOwn(Tw,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Tw[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let a=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&n&&"number"==typeof r&&(a=!n(e,r,o)),a&&o&&"number"==typeof r)return A&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}}),bw(g,{Fragment:rA.Fragment,components:a,ignoreInvalidStyle:!0,jsx:rA.jsx,jsxs:rA.jsxs,passKeys:!0,passNode:!0})}function zE(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||NE.test(e.slice(0,t))?e:""}const jE=({children:e})=>rA.jsx("div",{style:{whiteSpace:"normal"},children:rA.jsx(FE,{components:{p:({...e})=>rA.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:e.children}),ul:({...e})=>rA.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),ol:({...e})=>rA.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),li:({...e})=>rA.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:e.children}),code:({inline:e,children:t})=>e?rA.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:t}):rA.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:rA.jsx("code",{children:t})}),blockquote:({...e})=>rA.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:e.children})},children:"string"==typeof e?e:""})}),HE={autoConfig:!0},_E=e=>()=>(e=>{const{getFlow:t}=Cb(),{messages:n,replaceMessages:r}=Pb(),{settings:o}=Db(),{hasChatHistoryLoaded:a}=Ib(),i={...e,...HE},l=i.markdownComponent?i.markdownComponent:jE;R.useEffect(()=>{var e,t;if(a){const a=[...n];for(let n=0;n<a.length&&n<((null==(e=o.chatHistory)?void 0:e.maxEntries)??30);n++){const e=a[n];null!=(t=e.tags)&&t.includes("rcb-markdown-renderer-plugin:parsed")&&(e.contentWrapper=l)}r(a)}},[a]);const s=async e=>{var n;const r=null==(n=e.data.message)?void 0:n.sender.toUpperCase();((e,t,n)=>{var r;if("string"!=typeof e.data.message.content||!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&((null==(r=o.renderMarkdown)?void 0:r.map(e=>e.toUpperCase()).includes(n))??!1)})(e,t(),r)&&(e.data.message.contentWrapper=l,e.data.message.tags||(e.data.message.tags=[]),e.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};Bb(km.PRE_INJECT_MESSAGE,s),Bb(km.CHUNK_STREAM_MESSAGE,s),Bb(km.START_STREAM_MESSAGE,s),Bb(km.START_SIMULATE_STREAM_MESSAGE,s);const c={name:"@rcb-plugins/markdown-renderer"};return null!=i&&i.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),c})(e),UE={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"}},qE=(e,t,n="validateTextInput")=>{var r;if(null==(r=e.detail)||!r.currPath)return;const o=t[e.detail.currPath];if(!o)return;const a=o[n];return"function"==typeof a?a:void 0},VE=e=>{const{showToast:t}=(()=>{const{showToast:e,dismissToast:t,toasts:n,replaceToasts:r}=Rv();return{showToast:e,dismissToast:t,toasts:n,replaceToasts:r}})(),{getFlow:n}=Cb(),{styles:r,updateStyles:o,replaceStyles:a}=(()=>{const{styles:e,replaceStyles:t,updateStyles:n}=gb();return{styles:e,replaceStyles:t,updateStyles:n}})(),i=(e=>({...UE,...e,promptBaseColors:{...UE.promptBaseColors},promptHoveredColors:{...UE.promptHoveredColors},textAreaHighlightColors:{...UE.textAreaHighlightColors}}))(e),[l,s]=R.useState(0),c=R.useRef({});Bb(km.USER_SUBMIT_TEXT,e=>{const a=e,u=qE(a,n(),"validateTextInput");if(!u)return;const A=u(a.data.inputText);if(null!=A&&A.success||e.preventDefault(),!A.promptContent)return;0===l&&(c.current=structuredClone(r));const d=((e,t)=>{const n=e.promptType??"info";let r={};return t.advancedStyles&&(r=t.advancedStyles[n]),t.promptBaseColors&&(r.toastPromptStyle={color:t.promptBaseColors[n],borderColor:t.promptBaseColors[n]}),t.promptHoveredColors&&(r.toastPromptHoveredStyle={color:t.promptHoveredColors[n],borderColor:t.promptHoveredColors[n]}),t.textAreaHighlightColors&&(e.highlightTextArea??!0)&&(r.chatInputAreaStyle={boxShadow:`${t.textAreaHighlightColors[n]} 0px 0px 5px`}),r})(A,i);o(d),t(A.promptContent,A.promptDuration??3e3),s(e=>e+1)}),Bb(km.USER_UPLOAD_FILE,e=>{var r,o;const a=e,i=null==(o=null==(r=a.data)?void 0:r.files)?void 0:o[0];if(!i)return console.error("No file uploaded."),void e.preventDefault();const l=qE(a,n(),"validateFileInput");if(!l)return void console.error("Validator not found for file input.");const s=l(i);if(!s.success)return console.error("Validation failed:",s),s.promptContent&&t(s.promptContent,s.promptDuration??3e3),void e.preventDefault();console.log("Validation successful:",s)}),Bb(km.DISMISS_TOAST,()=>{s(e=>e-1)}),R.useEffect(()=>{0===l&&setTimeout(()=>{a(c.current)})},[l,a]);const u={name:"@rcb-plugins/input-validator"};return i.autoConfig&&(u.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),u},WE=e=>()=>VE(e),YE=R.forwardRef(({embedded:e,currentOpen:t,enabled:n,onSetEnabled:r},o)=>{const a=Pb(),i=(()=>{const{isChatWindowOpen:e,toggleChatWindow:t,toggleIsBotTyping:n,scrollToBottom:r,getIsChatBotVisible:o}=Tm();return{isChatWindowOpen:e,toggleChatWindow:t,toggleIsBotTyping:n,scrollToBottom:r,getIsChatBotVisible:o}})(),l=R.useRef(null),s=R.useRef(!1);return R.useEffect(()=>{!e&&i&&i.toggleChatWindow&&(l.current===t||s.current||(setTimeout(()=>{i&&i.toggleChatWindow&&i.toggleChatWindow(t)},0),l.current=t),s.current=!1)},[t,e,i]),R.useEffect(()=>{const e=()=>{s.current=!0};return window.addEventListener("rcb-toggle-chat-window",e),()=>window.removeEventListener("rcb-toggle-chat-window",e)}),R.useImperativeHandle(o,()=>({addMessage:e=>{a&&a.injectMessage&&a.injectMessage(e)},openChat:()=>{!e&&i&&i.toggleChatWindow&&i.toggleChatWindow(!0)},closeChat:()=>{!e&&i&&i.toggleChatWindow&&i.toggleChatWindow(!1)},toggleChat:()=>{!e&&i&&i.toggleChatWindow&&i.toggleChatWindow()},setBotEnabled:e=>{r&&r(e)}}),[a,i,e,r]),null});YE.displayName="BotController";const GE=({loginUrl:e,className:t="",style:n,isHeaderButton:r=!1})=>{const o=r?{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 F.createElement(F.Fragment,null,r&&F.createElement("style",null,"\n .rcb-chat-header-container .qa-bot-header-login-button:hover {\n background-color: #0000001a !important;\n opacity: 1 !important;\n }\n "),F.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:`qa-bot-login-button ${r?"qa-bot-header-login-button":""} ${t}`,style:Object.assign(Object.assign({},o),n)},"Log In"))},XE=()=>F.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"},F.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"},F.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),F.createElement("circle",{cx:"12",cy:"7",r:"4"}))),KE=[];for(let e=0;e<256;++e)KE.push((e+256).toString(16).slice(1));let JE;const ZE=new Uint8Array(16);var $E={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function eS(e,t,n){if($E.randomUUID&&!e)return $E.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!JE){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");JE=crypto.getRandomValues.bind(crypto)}return JE(ZE)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(KE[e[t+0]]+KE[e[t+1]]+KE[e[t+2]]+KE[e[t+3]]+"-"+KE[e[t+4]]+KE[e[t+5]]+"-"+KE[e[t+6]]+KE[e[t+7]]+"-"+KE[e[t+8]]+KE[e[t+9]]+"-"+KE[e[t+10]]+KE[e[t+11]]+KE[e[t+12]]+KE[e[t+13]]+KE[e[t+14]]+KE[e[t+15]]).toLowerCase()}(r)}function tS(){return"undefined"!=typeof localStorage&&"true"===localStorage.getItem("QA_BOT_DEBUG")}const nS="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",rS="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",oS="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",aS="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",iS=()=>{tS()&&console.log("%c QA Bot Core %c v0.2.8 ",oS,aS)},lS=(e,...t)=>{tS()&&console.log(`%c[Session]%c ${e}`,nS,"",...t)},sS=(e,...t)=>{tS()&&console.log(`%c[History]%c ${e}`,rS,"",...t)},cS=(...e)=>{console.error(...e)},uS="qa_bot_session_messages",AS=()=>`qa_bot_session_${eS()}`,dS=()=>{try{const e=localStorage.getItem(uS);return e?JSON.parse(e):{}}catch(e){return{}}},fS=(e,t,n,r,o)=>{const a=dS();!a[e]&&(a[e]={messages:[],startedAt:(new Date).toISOString(),preview:""},sS("NEW session created",{sessionId:e.slice(-12)}));const i=a[e].messages.some(e=>e.id===t);if(i)return void sS("DUPLICATE message skipped",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r});const l={id:t,content:n,sender:r,type:o,timestamp:Date.now()};a[e].messages.push(l),sS("MESSAGE added",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r,totalInSession:a[e].messages.length});const s=a[e].messages,c=s.find(e=>{var t;return"bot"===e.sender.toLowerCase()&&(null===(t=e.content)||void 0===t?void 0:t.trim())&&e.content.length>=100});if(c){const t=c.content;a[e].preview=t.slice(0,50)+(t.length>50?"...":"")}else{const t=s.find(e=>{var t;return"user"===e.sender.toLowerCase()&&(null===(t=e.content)||void 0===t?void 0:t.trim())});if(t&&!a[e].preview){const n=t.content;a[e].preview=n.slice(0,50)+(n.length>50?"...":"")}}(e=>{var t;const n=()=>Object.values(e).reduce((e,t)=>e+t.messages.length,0);for(;n()>100&&Object.keys(e).length>1;){const n=null===(t=Object.entries(e).sort(([,e],[,t])=>new Date(e.startedAt).getTime()-new Date(t.startedAt).getTime())[0])||void 0===t?void 0:t[0];if(!n)break;delete e[n]}localStorage.setItem(uS,JSON.stringify(e))})(a),sS("STORAGE state",{ourSessions:Object.keys(a).length,ourTotalMessages:Object.values(a).reduce((e,t)=>e+t.messages.length,0)})},pS=e=>{var t,n;return null!==(n=null===(t=dS()[e])||void 0===t?void 0:t.messages.length)&&void 0!==n?n:0},hS=e=>{const t=dS()[e];return(null==t?void 0:t.startedAt)?Date.now()-new Date(t.startedAt).getTime():0},gS=R.createContext(void 0),mS=({children:e,getSessionId:t,setSessionId:n,resetSession:r,clearResettingFlag:o})=>F.createElement(gS.Provider,{value:{getSessionId:t,setSessionId:n,resetSession:r,clearResettingFlag:o}},e),vS=()=>{const e=R.useContext(gS);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},bS=()=>{const[e,t]=R.useState(!1),[n,r]=R.useState([]),o=R.useRef(null),a=R.useRef(null),{replaceMessages:i}=Pb(),{toggleTextAreaDisabled:l}=Tb(),{setSessionId:s,getSessionId:c}=vS();R.useEffect(()=>{const n=e=>{o.current&&!o.current.contains(e.target)&&a.current&&!a.current.contains(e.target)&&t(!1)};return e&&document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e]);const u=e=>{const n=c();if(sS("RESTORE requested",{targetSession:e.slice(-12),currentSession:null==n?void 0:n.slice(-12)}),e===n)return sS("RESTORE skipped - already on this session"),void t(!1);const r=(e=>{var t;return(null===(t=dS()[e])||void 0===t?void 0:t.messages)||[]})(e).filter(e=>{var t;return null===(t=e.content)||void 0===t?void 0:t.trim()});sS("Stored messages from our localStorage",{count:r.length,ids:r.map(e=>e.id.slice(-8))});const o=r.map(e=>({id:e.id,content:e.content,sender:e.sender.toUpperCase(),type:e.type||"string",timestamp:new Date(e.timestamp).toISOString()}));i(o),sS("replaceMessages called",{count:o.length}),setTimeout(()=>{const e=document.querySelector(".rcb-chat-body-container");e&&e.querySelectorAll(".rcb-bot-message").forEach(e=>{e.innerHTML.includes("](")&&(e.innerHTML=e.innerHTML.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'))})},50),s(e),sS("Session ID updated",{newSession:e.slice(-12)}),l(!1),sS("Chat input enabled after restore"),t(!1)};return F.createElement("div",{style:{position:"relative"}},F.createElement("button",{ref:a,className:"history-button",onClick:()=>{e||r((()=>{const e=dS();return Object.entries(e).map(([e,t])=>Object.assign({sessionId:e},t)).sort((e,t)=>new Date(t.startedAt).getTime()-new Date(e.startedAt).getTime())})()),t(!e)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":e,"aria-haspopup":"menu"},F.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},F.createElement("circle",{cx:"12",cy:"12",r:"10"}),F.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&F.createElement("div",{ref:o,role:"menu",style:{position:"fixed",left:0,right:0,top:"auto",marginTop:"8px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},0===n.length?F.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(e=>F.createElement("button",{key:e.sessionId,role:"menuitem",onClick:()=>u(e.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"}},F.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},e.preview||"New conversation"),F.createElement("span",{style:{fontSize:"12px",color:"#888"}},(e=>{const t=new Date(e),n=(new Date).getTime()-t.getTime(),r=Math.floor(n/864e5);return 0===r?t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):1===r?"Yesterday":r<7?t.toLocaleDateString([],{weekday:"short"}):t.toLocaleDateString([],{month:"short",day:"numeric"})})(e.startedAt))))))};function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yS.apply(null,arguments)}const wS=({width:e=24,height:t=24,color:n="currentColor",children:r,...o})=>F.createElement("svg",yS({xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),r),xS=e=>F.createElement(wS,e,F.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"})),kS=R.createContext(null),ES=({onAnalyticsEvent:e,getSessionId:t,children:n})=>{const r=R.useRef(e);r.current=e;const o=R.useCallback(e=>{var n,o;r.current&&r.current(Object.assign(Object.assign({},e),{timestamp:Date.now(),sessionId:null!==(o=null!==(n=e.sessionId)&&void 0!==n?n:t())&&void 0!==o?o:void 0}))},[t]);return F.createElement(kS.Provider,{value:{trackEvent:o}},n)},SS=()=>{const{restartFlow:e}=Cb(),{setTextAreaValue:t}=Tb(),{messages:n}=Pb(),{getSessionId:r,resetSession:o,clearResettingFlag:a}=vS(),{trackEvent:i}=R.useContext(kS)||{trackEvent:()=>{}};return F.createElement("button",{onClick:async()=>{const n=r(),l=n?pS(n):0;i({type:"qa_new_chat_started",previousMessageCount:l}),o(),await t(""),await e(),setTimeout(()=>{a()},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:e=>{e.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:e=>{e.target.style.backgroundColor="var(--primaryColor, #107180)"}},F.createElement(xS,{width:16,height:16}),"New Chat")},CS=()=>{const{getSessionId:e}=vS(),t=R.useCallback(t=>{var n;const r=null===(n=t.data)||void 0===n?void 0:n.message;if(!(null==r?void 0:r.id))return;const o=r.sender,a=r.type||"string";if("string"!=typeof r.content)return;const i=r.content;if(i.includes("rcb-options-container"))return;if(!i.trim())return;const l=e();fS(l,r.id,i,o,a)},[e]);return R.useEffect(()=>(window.addEventListener("rcb-pre-inject-message",t),()=>{window.removeEventListener("rcb-pre-inject-message",t)}),[t]),null},PS=()=>(R.useEffect(()=>{const e=e=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(e.key))return;const n=document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||"true"===n.contentEditable||n.classList.contains("rcb-chat-input-textarea")))return;const r=document.querySelector(".rcb-chat-window");if(!r)return;const o=Array.from(r.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(e=>null!==e.offsetParent);if(o.length>0){const t=o[o.length-1].querySelector(".rcb-checkbox-container");if(t&&null!==t.offsetParent){const n=Array.from(t.querySelectorAll(".rcb-checkbox-row-container")),r=t.querySelector(".rcb-checkbox-next-button");if(n.length>0){const t=[...n];return r&&t.push(r),void((e,t)=>{e.preventDefault();let n=-1;for(let e=0;e<t.length;e++)if(t[e]===document.activeElement||t[e].contains(document.activeElement)){n=e;break}-1===n&&(n=0);let r=n;switch(e.key){case"ArrowDown":case"ArrowRight":r=n<t.length-1?n+1:0;break;case"ArrowUp":case"ArrowLeft":r=n>0?n-1:t.length-1;break;case"Home":r=0;break;case"End":r=t.length-1;break;case"Enter":case" ":{const e=t[n],r=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void e.dispatchEvent(r)}default:return}t[r].focus(),t[r].setAttribute("tabindex","0"),t[r].classList.add("keyboard-focused"),t.forEach((e,t)=>{t!==r&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))})})(e,t)}}}let a=[];if(o.length>0){const e=o[o.length-1],t=Array.from(e.querySelectorAll(".rcb-options-container")).filter(e=>null!==e.offsetParent);if(t.length>0){const e=t[t.length-1];a=Array.from(e.querySelectorAll(".rcb-options"))}}if(0===a.length)return;const i=a.findIndex(e=>e===document.activeElement);switch(e.key){case"ArrowDown":case"ArrowRight":{let t;e.preventDefault(),t=i<a.length-1?i+1:0,a[t].setAttribute("tabindex","0"),a.forEach((e,n)=>{n!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))}),a[t].classList.add("keyboard-focused"),a[t].focus();break}case"ArrowUp":case"ArrowLeft":{let t;e.preventDefault(),t=i>0?i-1:a.length-1,a[t].setAttribute("tabindex","0"),a.forEach((e,n)=>{n!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))}),a[t].classList.add("keyboard-focused"),a[t].focus();break}case"Enter":case" ":if(e.preventDefault(),document.activeElement&&a.includes(document.activeElement)){const e=document.activeElement;if(e.classList.contains("rcb-checkbox-row-container")||e.closest(".rcb-checkbox-row-container")){const n=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(n);const r=e.querySelector(".rcb-checkbox-label"),o=r?r.textContent:e.textContent||"checkbox",a=e.querySelector(".rcb-checkbox-mark"),i=a&&a.style.backgroundColor?"checked":"unchecked";t(`${o} ${i}`)}else{const n=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(n);const r=e.textContent||e.innerText;t(`Selected: ${r}`)}}break;case"Home":e.preventDefault(),a.length>0&&(a[0].setAttribute("tabindex","0"),a.forEach((e,t)=>{0!==t&&(e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused"))}),a[0].classList.add("keyboard-focused"),a[0].focus());break;case"End":if(e.preventDefault(),a.length>0){const e=a.length-1;a[e].setAttribute("tabindex","0"),a.forEach((t,n)=>{n!==e&&(t.setAttribute("tabindex","-1"),t.classList.remove("keyboard-focused"))}),a[e].classList.add("keyboard-focused"),a[e].focus()}}},t=e=>{const t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="sr-only",t.textContent=e,document.body.appendChild(t),setTimeout(()=>{document.body.contains(t)&&document.body.removeChild(t)},1e3)},n=(e=null)=>{let n=e;if(n||(n=document.querySelector(".rcb-chat-window"),n||(n=document.querySelector('[class*="rcb-chat"]')),n||(n=document.querySelector(".qa-bot"))),!n)return;const r=null!==n.closest(".embedded-qa-bot"),o=Array.from(n.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(e=>null!==e.offsetParent);if(0===o.length)return;const a=o[o.length-1],i=Array.from(a.querySelectorAll(".rcb-options-container")).filter(e=>null!==e.offsetParent);let l=[];if(i.length>0){const e=i[i.length-1];l=Array.from(e.querySelectorAll(".rcb-options"))}if(0===l.length){let e=a.querySelector(".rcb-checkbox-container");if(!e&&n&&(e=n.querySelector(".rcb-checkbox-container")),e&&null!==e.offsetParent){const t=Array.from(e.querySelectorAll(".rcb-checkbox-row-container")).filter(e=>null!==e.offsetParent&&"none"!==e.style.display);if(t.length>0){const n=e.querySelector(".rcb-checkbox-next-button"),o=[...t];if(n&&null!==n.offsetParent&&o.push(n),o.forEach((e,t)=>{e.setAttribute("tabindex",0===t?"0":"-1"),0===t?e.classList.add("keyboard-focused"):e.classList.remove("keyboard-focused")}),t.length>1){e.querySelectorAll(".keyboard-nav-hint").forEach(e=>e.remove());const t=document.createElement("div");t.className="keyboard-nav-hint",t.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",t.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",e.insertBefore(t,e.firstChild)}return void setTimeout(()=>{o[0]&&null!==o[0].offsetParent&&!r&&o[0].focus()},150)}}}if(l.length>0){if(l.forEach((e,t)=>{const n=0===t?"0":"-1";e.setAttribute("tabindex",n),e.setAttribute("role","option"),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",l.length),0===t?e.classList.add("keyboard-focused"):e.classList.remove("keyboard-focused")}),l.length>1){const e=i.length>0?i[i.length-1]:null;if(e){e.querySelectorAll(".keyboard-nav-hint").forEach(e=>e.remove());const t=document.createElement("div");t.className="keyboard-nav-hint",t.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",t.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",e.insertBefore(t,e.firstChild)}}else{const e=i.length>0?i[i.length-1]:null;if(e){e.querySelectorAll(".keyboard-nav-hint").forEach(e=>e.remove())}}setTimeout(()=>{l[0]&&null!==l[0].offsetParent&&!r&&(l[0].focus(),l.length>1&&t(`${l.length} options available. Use arrow keys to navigate.`))},200)}},r=new MutationObserver(e=>{e.forEach(e=>{if("childList"===e.type){const t=Array.from(e.addedNodes),r=t.some(e=>e.nodeType===Node.ELEMENT_NODE&&(e.classList?.contains("rcb-options-container")||e.classList?.contains("rcb-options")||e.querySelector?.(".rcb-options-container")||e.querySelector?.(".rcb-options"))),o=t.some(e=>e.nodeType===Node.ELEMENT_NODE&&(e.classList?.contains("rcb-checkbox-container")||e.querySelector?.(".rcb-checkbox-container")));if(r||o){let t=e.target;for(;t&&!t.classList?.contains("qa-bot")&&!t.classList?.contains("rcb-chat-window");)t=t.parentElement;(t||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(e=>{e.setAttribute("tabindex","-1"),e.classList.remove("keyboard-focused")}),setTimeout(()=>n(t),100)}}})});r.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),n();const o=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(e=>{const t=e.querySelectorAll(".rcb-options-container .rcb-options").length>0,r=e.querySelectorAll(".rcb-checkbox-row-container").length>0;if(t){const t=e.querySelectorAll(".rcb-options[tabindex]").length;e.querySelectorAll(".rcb-options").length>t&&n(e)}if(r){const t=e.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;e.querySelectorAll(".rcb-checkbox-row-container").length>t&&n(e)}})},1e3);return()=>{document.removeEventListener("keydown",e),r.disconnect(),clearInterval(o)}},[]),null);const BS="#1a5b6e",DS="#107180",TS="Arial, sans-serif",IS="Q&A Bot",QS="/chat-icon.svg",MS="Type your question here...",LS="Select an option to continue",OS=!1,NS="Ask me a question!",RS="/login",FS={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}},zS=R.forwardRef((e,t)=>{var n,r;const{apiKey:o,qaEndpoint:a,ratingEndpoint:i,welcomeMessage:l,open:s,onOpenChange:c,isLoggedIn:u,allowAnonAccess:A=!1,actingUser:d,primaryColor:f,secondaryColor:p,botName:h,logo:g,placeholder:m,errorMessage:v,embedded:b,footerText:y,footerLink:w,tooltipText:x,loginUrl:k,customFlow:E,onAnalyticsEvent:S}=e,C=R.useRef(`bot_${Math.random().toString(36).substr(2,9)}`);R.useEffect(()=>{iS()},[]);const P=R.useRef(null);null===P.current&&(P.current=AS(),lS("CREATED",P.current));const B=R.useRef(!1),D=R.useRef({getSessionId:()=>P.current,isResetting:()=>B.current}),[T,I]=R.useState(u);R.useEffect(()=>{I(u)},[u]);const Q=R.useMemo(()=>{const e=Object.assign({},FS);e.general=Object.assign(Object.assign({},e.general),{primaryColor:f||BS,secondaryColor:p||DS,fontFamily:TS,embedded:void 0!==b?b:OS});const t=!1===T?[F.createElement(GE,{key:"login-button",loginUrl:k||RS,isHeaderButton:!0})]:[F.createElement(bS,{key:"history-button"}),F.createElement(XE,{key:"user-icon"})];e.header={title:F.createElement("span",{style:{fontSize:14,fontWeight:500}},h||IS),showAvatar:!0,avatar:g||QS,buttons:[...t,Gg.CLOSE_CHAT_BUTTON]},e.chatInput=Object.assign(Object.assign({},e.chatInput),{disabled:!1,enabledPlaceholderText:m||MS,disabledPlaceholderText:v||LS}),e.tooltip=Object.assign(Object.assign({},e.tooltip),{text:x||NS});const n=y?w?F.createElement("a",{href:w,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},y):F.createElement("span",{key:"footer-text"},y):null;return e.footer={text:n,buttons:[F.createElement(SS,{key:"new-chat-button"})]},e.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},e},[f,p,h,g,m,v,b,x,T,k,y,w]),M=R.useRef(null),L=((e,t={})=>R.useMemo(()=>{const n=(t,n)=>{if(e.current){const n=getComputedStyle(e.current).getPropertyValue(t);if(n&&""!==n.trim())return n.trim();if(e.current.parentElement){const n=getComputedStyle(e.current.parentElement).getPropertyValue(t);if(n&&""!==n.trim())return n.trim()}}return n};return{primaryColor:n("--primaryColor",t.primaryColor),secondaryColor:n("--secondaryColor",t.secondaryColor),fontFamily:n("--fontFamily",t.fontFamily)}},[e,t]))(M,Q.general);((e,t)=>{R.useEffect(()=>{t.current&&(e?t.current.classList.add("bot-logged-in"):t.current.classList.remove("bot-logged-in"))},[e,t])})(!1!==T,M),(({settings:e,themeColors:t})=>{R.useEffect(()=>{t&&(Object.entries(t).forEach(([e,t])=>{t&&document.documentElement.style.setProperty(`--${e}`,t)}),t.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",t.primaryColor),t.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",t.secondaryColor))},[t]),R.useEffect(()=>{var t,n,r;(null===(t=e.header)||void 0===t?void 0:t.title)&&"string"==typeof e.header.title&&(e.header.title=F.createElement("div",{key:"header-title"},F.createElement("h1",{className:"sr-only"},e.header.title),F.createElement("span",{"aria-hidden":"true"},e.header.title))),(null===(n=e.general)||void 0===n?void 0:n.embedded)&&e.chatWindow&&(e.chatWindow.defaultOpen=!0),e.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},e.chatHistory={disabled:!1},e.chatButton=Object.assign(Object.assign({},e.chatButton),{icon:null===(r=e.header)||void 0===r?void 0:r.avatar}),e.event={rcbToggleChatWindow:!0}},[e])})({settings:Q,themeColors:L});const O=R.useMemo(()=>{const e=(({endpoint:e,ratingEndpoint:t,apiKey:n,sessionId:r,isResetting:o=()=>!1,isLoggedIn:a,allowAnonAccess:i=!1,loginUrl:l="/login",actingUser:s,onAnalyticsEvent:c})=>{const u=e=>{var t,n;c&&c(Object.assign(Object.assign({},e),{timestamp:Date.now(),sessionId:null!==(n=null!==(t=e.sessionId)&&void 0!==t?t:r())&&void 0!==n?n:void 0}))};if(!1===a&&!i)return u({type:"qa_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:F.createElement(GE,{loginUrl:l}),chatDisabled:!0,path:"qa_loop"}};let A=null,d=!1;if(!e)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async a=>{const{userInput:i}=a;if(o&&o())return null;if(!i||""===i.trim())return null;if("👍 Helpful"===i||"👎 Not helpful"===i){if(t&&A)try{const e="👍 Helpful"===i,o={"Content-Type":"application/json"};n&&(o["X-API-KEY"]=n);const a=r();a&&(o["X-Session-ID"]=a,o["X-Query-ID"]=A),await fetch(t,{method:"POST",headers:o,body:JSON.stringify({sessionId:a,queryId:A,rating:e?1:0})}),u({type:"qa_response_rated",queryId:A,rating:e?"helpful":"not_helpful"})}catch(e){cS("Error sending feedback:",e)}return"Thanks for the feedback! Feel free to ask another question."}try{const t=eS();A=t,u({type:"qa_question_asked",queryId:t,questionLength:i.length});const o={"Content-Type":"application/json"};n&&(o["X-API-KEY"]=n);const l=r();l&&(o["X-Session-ID"]=l,o["X-Query-ID"]=t),s&&(o["X-Acting-User"]=s);const c={query:i,session_id:l,question_id:t};s&&(c.acting_user=s),lS("SENT to API",{session_id:l,question_id:t,acting_user:s||"(not set)"});const f=Date.now(),p=await fetch(e,{method:"POST",headers:o,body:JSON.stringify(c)}),h=Date.now()-f;if(!p.ok)throw new Error(`API returned ${p.status}`);const g=await p.json(),m=g.response||g.answer||g.text||g.message;if(!m)throw new Error("Invalid response format from API");const v=(e=>{if(!e||"string"!=typeof e)return e;let t=e.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return t=t.replace(/(?<!\]\(|href=["']|\[)https?:\/\/[^\s[\]()]+/gi,e=>{let t=e,n="";const r=t.match(/([.,;:!?]+)$/);return r&&(n=r[1],t=t.slice(0,-n.length)),`[${t}](${t})${n}`}),t})(m),b=function(e){const{confidence:t,tools_used:n,metadata:r}=e;if(!(t||n&&0!==n.length))return"";const o=[];return t&&o.push(`• Confidence: ${t}`),n&&n.length>0&&o.push(`• Tools used: ${n.join(", ")}`),(null==r?void 0:r.agent)&&o.push(`• Agent: ${r.agent}`),`---\n${o.join("\n")}`}(g),y=b?`${v}\n\n${b}`:v;return await a.injectMessage(y),u({type:"qa_response_received",queryId:t,responseTimeMs:h,success:!0,responseLength:m.length,hasMetadata:!!b}),d=!0,setTimeout(async()=>{await a.injectMessage("Feel free to ask another question.")},100),null}catch(e){return cS("Error in Q&A flow:",e),u({type:"qa_response_error",queryId:null!=A?A:void 0,errorType:e instanceof Error?e.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:e=>o&&o()||"👍 Helpful"===e.userInput||"👎 Not helpful"===e.userInput?[]:t&&d?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:a,ratingEndpoint:i,apiKey:o,sessionId:D.current.getSessionId,isResetting:D.current.isResetting,isLoggedIn:T,allowAnonAccess:A,loginUrl:k||RS,actingUser:d,onAnalyticsEvent:S}),t={message:l,transition:{duration:0},path:"qa_loop"};return Object.assign(Object.assign({start:t},e),E||{})},[o,a,i,l,T,A,k,E,d,S]),N=R.useMemo(()=>[sy(),_E(),WE()],[]);return R.useEffect(()=>{const e=()=>{const e=document.querySelector(".rcb-chat-window");if(!e)return;const t=e.querySelector(".rcb-send-button");t&&(t.hasAttribute("tabindex")||t.setAttribute("tabindex","0"),t.hasAttribute("data-keyboard-enabled")||(t.setAttribute("data-keyboard-enabled","true"),t.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key){e.preventDefault();const n=t&&Object.keys(t).find(e=>e.startsWith("__reactProps"));if(n){const r=t[n],o=null==r?void 0:r.onMouseDown;if(o&&"function"==typeof o)return void o(e)}const r=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(r)}})))},t=setInterval(e,1e3);return e(),()=>clearInterval(t)},[]),PS(),R.useEffect(()=>{if(!b){const e=e=>{const t=e.data.newState;null==c||c(t);const n=P.current;t?null==S||S({type:"qa_bot_opened",timestamp:Date.now(),sessionId:null!=n?n:void 0}):null==S||S({type:"qa_bot_closed",timestamp:Date.now(),sessionId:null!=n?n:void 0,messageCount:n?pS(n):0,durationMs:n?hS(n):0})};return window.addEventListener("rcb-toggle-chat-window",e),()=>{window.removeEventListener("rcb-toggle-chat-window",e)}}},[b,c,S]),F.createElement("div",{className:"qa-bot "+((null===(n=Q.general)||void 0===n?void 0:n.embedded)?"embedded-qa-bot":""),ref:M,role:"region","aria-label":h||IS},F.createElement(mS,{getSessionId:()=>P.current,setSessionId:e=>{const t=P.current;P.current=e,lS("RESTORED",`${null==t?void 0:t.slice(-12)} -> ${e.slice(-12)}`)},resetSession:()=>{const e=P.current;B.current=!0,P.current=AS(),lS("RESET",`${null==e?void 0:e.slice(-12)} -> ${P.current.slice(-12)}`)},clearResettingFlag:()=>{B.current=!1}},F.createElement(ES,{onAnalyticsEvent:S,getSessionId:()=>P.current},F.createElement(yb,null,F.createElement("div",null,F.createElement(CS,null),F.createElement(YE,{ref:t,embedded:(null===(r=Q.general)||void 0===r?void 0:r.embedded)||!1,currentOpen:s||!1,enabled:!1!==T,onSetEnabled:e=>I(!!e&&void 0)}),F.createElement(Eb,{key:`chatbot-${C.current}-${T}`,settings:Q,flow:O,plugins:N}),F.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),F.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."))))))});zS.displayName="QABot";Yu('.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 .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset: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 jS=F.forwardRef((e,t)=>{const[n,r]=F.useState(e.defaultOpen||!1),o=F.useRef(null);return F.useImperativeHandle(t,()=>({addMessage:e=>{var t;null===(t=o.current)||void 0===t||t.addMessage(e)},setBotEnabled:e=>{var t;null===(t=o.current)||void 0===t||t.setBotEnabled(e)},openChat:()=>{var e;r(!0),null===(e=o.current)||void 0===e||e.openChat()},closeChat:()=>{var e;r(!1),null===(e=o.current)||void 0===e||e.closeChat()},toggleChat:()=>{var e;r(e=>!e),null===(e=o.current)||void 0===e||e.toggleChat()}}),[]),F.createElement(zS,{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:n,onOpenChange:r,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent})});return jS.displayName="ProgrammaticQABot",function(e){if(!(e.target&&e.target instanceof HTMLElement))return void cS("QA Bot: A valid target DOM element is required");const t=z.createRoot(e.target),n={current:null};return t.render(F.createElement(F.StrictMode,null,F.createElement(jS,{ref:e=>{n.current=e},apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,defaultOpen:e.defaultOpen,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent}))),{addMessage:e=>{var t;return null===(t=n.current)||void 0===t?void 0:t.addMessage(e)},setBotEnabled:e=>{var t;return null===(t=n.current)||void 0===t?void 0:t.setBotEnabled(e)},openChat:()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.openChat()},closeChat:()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.closeChat()},toggleChat:()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.toggleChat()},destroy:()=>{n.current=null,t.unmount()}}}});
37
37
  //# sourceMappingURL=qa-bot-core.standalone.js.map