@koredev/agentai-web-sdk 1.0.0-rc → 1.0.1-rc
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,(()=>(()=>{"use strict";var e={1958:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i),a=n(7088),l=n(9502),c=r()(s());c.i(a.A),c.i(l.A),c.push([e.id,'.aa-heading-two-xl{letter-spacing:-0.02em;font-size:72px;font-weight:400;line-height:90px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-two-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-two-xl.medium{font-weight:500}.aa-heading-two-xl.semibold{font-weight:600}.aa-heading-two-xl.bold{font-weight:700}.aa-heading-two-xl.center{text-align:center}.aa-heading-xl{letter-spacing:-0.02em;font-size:60px;font-weight:400;line-height:72px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-xl.medium{font-weight:500}.aa-heading-xl.semibold{font-weight:600}.aa-heading-xl.bold{font-weight:700}.aa-heading-xl.center{text-align:center}.aa-heading-lg{letter-spacing:-0.96px;font-size:48px;font-weight:400;line-height:60px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-lg.medium{font-weight:500}.aa-heading-lg.semibold{font-weight:600}.aa-heading-lg.bold{font-weight:700}.aa-heading-lg.center{text-align:center}.aa-heading-md{font-size:36px;font-weight:400;line-height:44px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-md.medium{font-weight:500}.aa-heading-md.semibold{font-weight:600}.aa-heading-md.bold{font-weight:700}.aa-heading-md.center{text-align:center}.aa-heading-sm{font-size:36px;font-weight:400;line-height:44px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-sm.medium{font-weight:500}.aa-heading-sm.semibold{font-weight:600}.aa-heading-sm.bold{font-weight:700}.aa-heading-sm.center{text-align:center}.aa-heading-xs{font-size:24px;font-weight:400;line-height:32px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-heading-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-heading-xs.medium{font-weight:500}.aa-heading-xs.semibold{font-weight:600}.aa-heading-xs.bold{font-weight:700}.aa-heading-xs.center{text-align:center}.aa-text-xl{font-size:20px;font-weight:400;line-height:30px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xl.medium{font-weight:500}.aa-text-xl.semibold{font-weight:600}.aa-text-xl.bold{font-weight:700}.aa-text-xl.center{text-align:center}.aa-text-lg{font-size:18px;font-weight:400;line-height:28px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-lg.medium{font-weight:500}.aa-text-lg.semibold{font-weight:600}.aa-text-lg.bold{font-weight:700}.aa-text-lg.center{text-align:center}.aa-text-md{font-size:16px;font-weight:400;line-height:24px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-md.medium{font-weight:500}.aa-text-md.semibold{font-weight:600}.aa-text-md.bold{font-weight:700}.aa-text-md.center{text-align:center}.aa-text-sm{font-size:14px;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-sm.medium{font-weight:500}.aa-text-sm.semibold{font-weight:600}.aa-text-sm.bold{font-weight:700}.aa-text-sm.center{text-align:center}.aa-text-xs{font-size:12px;font-weight:400;line-height:18px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xs.medium{font-weight:500}.aa-text-xs.semibold{font-weight:600}.aa-text-xs.bold{font-weight:700}.aa-text-xs.center{text-align:center}.aa-text-xxs{font-size:10px;font-weight:400;line-height:16px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:1}.aa-text-xxs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-text-xxs.medium{font-weight:500}.aa-text-xxs.semibold{font-weight:600}.aa-text-xxs.bold{font-weight:700}.aa-text-xxs.center{text-align:center}.aa-desc-xl{font-size:20px;font-weight:400;line-height:30px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xl i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xl.medium{font-weight:500}.aa-desc-xl.semibold{font-weight:600}.aa-desc-xl.bold{font-weight:700}.aa-desc-xl.center{text-align:center}.aa-desc-lg{font-size:18px;font-weight:400;line-height:28px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-lg i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-lg.medium{font-weight:500}.aa-desc-lg.semibold{font-weight:600}.aa-desc-lg.bold{font-weight:700}.aa-desc-lg.center{text-align:center}.aa-desc-md{font-size:16px;font-weight:400;line-height:24px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-md i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-md.medium{font-weight:500}.aa-desc-md.semibold{font-weight:600}.aa-desc-md.bold{font-weight:700}.aa-desc-md.center{text-align:center}.aa-desc-sm{font-size:14px;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-sm i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-sm.medium{font-weight:500}.aa-desc-sm.semibold{font-weight:600}.aa-desc-sm.bold{font-weight:700}.aa-desc-sm.center{text-align:center}.aa-desc-xs{font-size:12px;font-weight:400;line-height:18px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xs.medium{font-weight:500}.aa-desc-xs.semibold{font-weight:600}.aa-desc-xs.bold{font-weight:700}.aa-desc-xs.center{text-align:center}.aa-desc-xxs{font-size:10px;font-weight:400;line-height:16px;color:var(--AA-gloabl-text-color);text-align:start;margin:0;opacity:.5}.aa-desc-xxs i{flex-shrink:0;cursor:pointer;color:var(--AA-gloabl-text-color);opacity:.5}.aa-desc-xxs.medium{font-weight:500}.aa-desc-xxs.semibold{font-weight:600}.aa-desc-xxs.bold{font-weight:700}.aa-desc-xxs.center{text-align:center}*::before,*::after{box-sizing:border-box}*{font-family:var(--AA-font-family);box-sizing:border-box}button{cursor:pointer}applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,caption,tbody,tfoot,thead,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,summary,time,mark,audio,video{margin:0;padding:0;border:0;vertical-align:baseline}h1,h2,h3,h4,h5,h6{text-align:start}html{overflow:hidden;height:100%}body{height:100%;line-height:normal;color:var(--AA-gloabl-text-color);padding:20px}:focus-visible{outline-color:var(--AA-global-theme-bg);outline-offset:1px;outline-style:auto}body::-webkit-scrollbar{width:10px;height:10px;cursor:pointer}::-webkit-scrollbar{width:6px;height:6px;cursor:pointer}::-webkit-scrollbar-thumb{background-color:var(--AA-gloabl-bg-secondary);border-radius:7px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out}::-webkit-scrollbar-thumb:hover{background-color:var(--AA-gloabl-border)}body{margin:0;font-size:14px;font-weight:400;line-height:normal;color:var(--AA-gloabl-text-color);background-color:var(--AA-global-white-bg);-webkit-text-size-adjust:100%}h6,h5,h4,h3,h2,h1{margin-top:0;margin-bottom:0px;font-weight:400;line-height:normal}.paragraph{margin:0;font-weight:400;line-height:20px;color:var(--AA-gloabl-text-color)}.paragraph.semibold{font-weight:600}.h-100{height:100%}.w-100{width:100%}p{margin:0}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}.disabled-msg{opacity:.5;pointer-events:none}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dd{margin-bottom:.5rem;margin-left:0}b,strong{font-weight:700}sub,sup{position:relative;line-height:0;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}a{color:var(--AA-global-theme-text-color);text-decoration:none}a:hover{color:var(--AA-global-theme-text-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}figure{margin:0;line-height:0}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}th{font-weight:500;text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none !important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button:disabled,[type=button]:disabled,[type=reset]:disabled,[type=submit]:disabled{opacity:.3;pointer-events:none}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}iframe{border:0}[hidden]{display:none !important}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.aa-d-none{display:none !important}.more-link-text{cursor:pointer;border:0;background:rgba(0,0,0,0);padding:0;color:var(--AA-global-theme-text-color)}.aa-solidbtn{border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);padding:5px 11px;display:flex;align-items:center;justify-content:center;min-height:24px}:root{--AA-font-family: "Inter";--AA-primary-color:#2970FF;--AA-secondary-color:#EAECF0;--AA-primary-text:#101828;--AA-secondary-text:#FFFFFF;--AA-body-background:#FFFFFF;--AA-warning-color:#D92D20;--AA-global-theme-bg:var(--AA-primary-color);--AA-global-theme-text-color:var(--AA-primary-color);--AA-gloabl-bg-secondary:var(--AA-secondary-color);--AA-global-white-color:var(--AA-secondary-text);--AA-global-white-bg:var(--AA-body-background);--AA-gloabl-text-color:var(--AA-primary-text);--AA-gloabl-text-desc-color:var(--AA-primary-text);--AA-gloabl-border:var(--AA-secondary-color);--AA-gloabl-scrollbar-bg:var(--AA-secondary-color)}.aa-toggle-switch{position:relative;display:block}.aa-toggle-switch input{opacity:0;position:absolute;z-index:9;cursor:pointer;width:28px;height:16px;left:0;top:0px;line-height:normal;font-size:0}.aa-toggle-switch input:checked+.aa-slider .slide-parent .slider-btn{background-color:var(--AA-global-theme-bg)}.aa-toggle-switch input:checked+.aa-slider .slide-parent .slider-btn::before{-webkit-transform:translateX(12px);-ms-transform:translateX(12px);transform:translateX(12px)}.aa-toggle-switch input:checked+.aa-slider span{font-size:12px;color:var(--AA-gloabl-text-color);cursor:pointer;font-weight:500}.aa-toggle-switch input:checked+.aa-slider span.enabled{display:block}.aa-toggle-switch input:checked+.aa-slider span.disabled{display:none}.aa-toggle-switch input:checked:disabled+.aa-slider .slide-parent .slider-btn{opacity:.5}.aa-toggle-switch input:disabled{cursor:auto}.aa-toggle-switch input:disabled+.aa-slider .slide-parent .slider-btn{opacity:.5}.aa-toggle-switch .aa-slider{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:rgba(0,0,0,0);padding:0;border:0;outline:0}.aa-toggle-switch .aa-slider .slide-parent{position:relative;width:28px;height:16px}.aa-toggle-switch .aa-slider .slide-parent .slider-btn{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0;right:0;bottom:0;transition:.4s;border-radius:10px;background:var(--AA-global-white-bg);border:0;padding:0;outline:0}.aa-toggle-switch .aa-slider .slide-parent .slider-btn:focus{box-shadow:0px 0px 0px 4px #eff4ff}.aa-toggle-switch .aa-slider .slide-parent .slider-btn::before{position:absolute;content:"";height:12px;width:12px;top:2px;left:2px;right:0;background-color:var(--AA-global-white-bg);transition:.4s;border-radius:50%;filter:drop-shadow(0px 0.778px 1.556px rgba(16, 24, 40, 0.06)) drop-shadow(0px 0.778px 2.333px rgba(16, 24, 40, 0.1))}.aa-toggle-switch .aa-slider span{font-size:12px;color:var(--AA-gloabl-text-color);cursor:pointer;font-weight:500}.aa-toggle-switch .aa-slider span.no{color:var(--AA-gloabl-text-color)}.aa-toggle-switch .aa-slider span.enabled{color:var(--AA-gloabl-text-color);display:none}.aa-toggle-switch .aa-slider span.disabled{display:block}',""]);const u=c},2773:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i)()(s());r.push([e.id,".agentassist-widget-main-chat-container-wrapper{height:100%;display:flex}.agentassist-widget-main-chat-container-wrapper.left-menu-nav-enable{box-shadow:0px 4px 12px 2px rgba(32,33,36,.12);border-radius:4px}.agentassist-widget-main-chat-container-wrapper.left-menu-nav-enable .section-agent-aa-wrapper{box-shadow:none}.agentassist-widget-main-chat-container-wrapper nav{flex-shrink:0;border-radius:4px 0px 0px 4px;border-right:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);display:flex;padding:11px;flex-direction:column;align-items:center;gap:12px;width:72px}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper{width:100%;display:flex;flex-direction:column;height:100%;box-shadow:0px 4px 12px 2px rgba(32,33,36,.12)}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper header{border-radius:4px 4px 0px 0px;border-bottom:1px solid var(--AA-gloabl-border);background:var(--AA-gloabl-bg-secondary)}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper .body-container-aa{flex:1 1 auto;position:relative;overflow:hidden}.agentassist-widget-main-chat-container-wrapper .section-agent-aa-wrapper footer{border-radius:0px 0px 4px 4px;background:var(--AA-gloabl-bg-secondary)}",""]);const a=r},4567:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i)()(s());r.push([e.id,"@keyframes slideInUpText{0%{-webkit-transform:translateY(5px);transform:translateY(5px);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.dis-none{display:none}.widget-footer-wrapper{display:inline-block;width:100%;position:relative}.widget-footer-wrapper .logo-left-menu{display:none}.widget-footer-wrapper .line-divider{background:var(--AA-gloabl-bg-secondary);width:10px;height:2px;display:none;border-radius:4px;margin:0 auto;flex-shrink:0}.widget-footer-wrapper .footer-links-data{display:flex;padding:8px 16px;display:flex;width:100%;gap:32px;min-height:50px}@media screen and (max-width: 500px){.widget-footer-wrapper .footer-links-data{gap:initial}}.widget-footer-wrapper .footer-links-data .logo-sec{display:none}.widget-footer-wrapper .footer-links-data .footer-list-buttons{width:100%;display:flex;align-items:center}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{border:0;padding:0;background:rgba(0,0,0,0);min-width:62px;height:40px;display:flex;justify-content:center;align-items:center;gap:4px;flex:1;transition:.2s all ease;color:var(--AA-gloabl-text-color);border-radius:45px}@media screen and (max-width: 600px){.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{flex-direction:column}}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab{color:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab p{display:block}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg:hover{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover{color:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover p{display:block}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer .svg_icon{line-height:0;font-size:16px}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer p{margin:0;font-size:10px;font-weight:600;line-height:normal;-webkit-animation-name:slideInUpText;animation-name:slideInUpText;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.widget-footer-wrapper .settings-dark-theme{display:none}.widget-footer-wrapper .footer-action-items{padding:10px 0;display:none}nav{display:block;height:100%;width:100%;border-radius:4px 0px 0px 4px;background:var(--AA-global-theme-bg)}nav .widget-footer-wrapper{height:100%;border-radius:4px 0px 0px 4px;display:flex;flex-direction:column;gap:12px;justify-content:center}nav .widget-footer-wrapper .logo-left-menu{display:flex;align-items:center;height:48px;justify-content:center;border-radius:4px;width:100%;background:var(--AA-gloabl-bg-secondary)}nav .widget-footer-wrapper .logo-left-menu svg{stroke:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .line-divider{display:block}nav .widget-footer-wrapper .footer-links-data{flex-direction:column;padding:0px;gap:12px;flex:1 1 auto;overflow:auto}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer{flex-direction:column;padding:8px 0;border-radius:4px;gap:8px;min-width:auto;height:auto;overflow:hidden}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer p{font-weight:500;width:100%}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab{color:var(--AA-global-theme-text-color) !important;background:var(--AA-gloabl-bg-secondary) !important}nav .widget-footer-wrapper .settings-dark-theme{flex-shrink:0;display:flex !important;flex-direction:column;gap:8px}nav .widget-footer-wrapper .settings-dark-theme button{display:flex;padding:0px;flex-direction:column;align-items:center;gap:8px;align-self:stretch;border:0;background:rgba(0,0,0,0);height:32px;justify-content:center;font-size:16px;color:var(--AA-gloabl-text-color);transition:.2s all ease}nav .widget-footer-wrapper .settings-dark-theme button:hover,nav .widget-footer-wrapper .settings-dark-theme button.selected-tab-action{color:var(--AA-global-theme-text-color)}nav .widget-footer-wrapper .footer-action-items{padding:10px 0;display:flex;align-items:center;justify-content:center}",""]);const a=r},9144:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i)()(s());r.push([e.id,".widget-header-sec{display:flex;align-items:center;width:100%;padding:6px 16px;min-height:auto;min-height:50px}.widget-header-sec .logo-sec{display:flex;align-items:center;gap:8px;width:100%}.widget-header-sec .logo-sec svg path{stroke:var(--AA-gloabl-text-color)}.widget-header-sec .logo-sec .divider-line{background:var(--AA-gloabl-bg-secondary);width:1px;flex-shrink:0;height:15px}.widget-header-sec .right-chart-data{transition:.2s all ease-in-out;flex-shrink:0;display:flex;align-items:center;gap:8px}.widget-header-sec .right-chart-data button:not(.aa-slider){padding:0;height:28px;width:28px;border:0;display:flex;align-items:center;justify-content:center;border-radius:100%;font-size:18px;transition:.2s all ease;background:rgba(0,0,0,0);color:var(--AA-gloabl-text-color)}.widget-header-sec .right-chart-data button:not(.aa-slider):hover,.widget-header-sec .right-chart-data button:not(.aa-slider).active-action{background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}",""]);const a=r},3478:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i)()(s());r.push([e.id,".input-control{display:block;width:100%;padding:7px 11px;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);width:100%;height:36px;appearance:none}.input-control::placeholder{color:var(--AA-gloabl-border);font-size:14px;font-weight:400;line-height:20px}.input-control:focus{border:1px solid #84adff;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #eff4ff}.input-control:active{border:1px solid #84adff;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #eff4ff}.input-control:disabled{border:1px solid var(--AA-gloabl-border);background:#f9fafb;pointer-events:none;cursor:not-allowed}.input-control.error{border:1px solid #fda29b;box-shadow:0px 1px 2px 0px rgba(16,24,40,.05),0px 0px 0px 4px #fee4e2}@keyframes bottomToTopMove{0%{opacity:0;transform:translateY(100%);display:none}60%{display:none;opacity:0}100%{opacity:1;display:block;transform:translateY(0%)}}.search-block-data-suggestions-wrapper{height:100%;padding:8px;animation-name:bottomToTopMove;animation-duration:.5s;animation-fill-mode:forwards}.search-block-data-suggestions-wrapper .search-block-data-suggestions{height:100%;display:flex;flex-direction:column;justify-content:flex-end;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .empty-search-container-wrapper{display:flex;align-items:center;justify-content:center;width:277px;margin:0 auto;gap:10px;flex-direction:column;height:100%;text-align:center;min-height:300px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search{padding:8px 12px 0px 12px;flex:1 1 auto;overflow:auto;display:flex;flex-direction:column;gap:4px;position:relative}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-header h1{max-width:100%}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-header .count-text{flex-shrink:0;border-radius:16px;background:var(--AA-gloabl-bg-secondary);padding:0px 8px;height:15px;display:flex;justify-content:center;align-items:center;color:var(--AA-global-theme-text-color)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease;min-height:24px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec{width:100%;display:flex;align-items:center;gap:4px;overflow:hidden}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .sent-msg-text{color:var(--AA-global-theme-text-color);margin:0 0 0 auto}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names{display:flex;align-items:flex-start;gap:8px;overflow:hidden;flex-wrap:wrap;width:100%}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag{display:flex;padding:2px 8px;justify-content:center;align-items:center;gap:4px;border-radius:16px;background:var(--AA-gloabl-bg-secondary);transition:.2s all ease;flex:0 auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover a{text-decoration-line:underline;opacity:1}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag span{display:flex;width:14px;height:14px;padding:0;justify-content:center;align-items:center;flex-shrink:0;border-radius:16px;background:var(--AA-global-white-bg);color:var(--AA-gloabl-text-color);font-size:12px;font-weight:400;line-height:16px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .suggestionslist-conntent-search .sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag a{overflow:hidden;color:var(--AA-gloabl-text-desc-color);text-align:center;text-overflow:ellipsis;font-size:12px;font-weight:400;line-height:18px;opacity:.8}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input{padding:8px 12px;flex-shrink:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info button{position:relative;padding:2px 10px;border-radius:16px;background:var(--AA-gloabl-bg-secondary);color:var(--AA-gloabl-text-color);border:0;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .suggestions-info p{font-style:italic;margin:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block{position:relative;background:var(--themeBgWhiteColor);border-radius:8px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control{z-index:1;position:relative;background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input{display:block;width:100%;color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0);position:absolute;top:0;left:0;z-index:0}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input::-moz-selection{color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .input-control.suggestion-input::selection{color:var(--AA-gloabl-text-color);background:rgba(0,0,0,0)}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block svg{position:absolute;right:12px;top:12px;z-index:2}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search{position:absolute;right:8px;top:10px;z-index:2;cursor:pointer;background:border-box;border:0;padding:0;font-size:16px;line-height:0;color:var(--AA-gloabl-text-color)}",""]);const a=r},5390:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i)()(s());r.push([e.id,"",""]);const a=r},4370:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i)()(s());r.push([e.id,"",""]);const a=r},2798:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i)()(s());r.push([e.id,"",""]);const a=r},9762:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i)()(s());r.push([e.id,".transcript-tepmlate-wrapper{height:100%;padding:8px;width:100%;animation-name:bottomToTopMove;animation-duration:.5s;animation-fill-mode:forwards}.transcript-tepmlate-wrapper .transcript-tepmlate-data{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);border-radius:4px}.transcript-tepmlate-wrapper .transcript-tepmlate-data .transcript-header{padding:7px 11px;border-radius:4px 4px 0px 0px;border-bottom:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.transcript-tepmlate-wrapper .transcript-tepmlate-data .transcript-body-wrapper{flex:1 1 auto;overflow:auto;display:flex;flex-direction:column;height:100%;padding:12px 11px;gap:12px}.aa-agent-bubble-comp{display:flex;width:100%;justify-content:flex-end}.aa-agent-bubble-comp .agent-bubble-content{display:flex;flex-wrap:wrap;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:6px;max-width:90%;transition:.5s all ease;word-break:break-word}.aa-agent-bubble-comp .agent-bubble-content .top-info{display:flex;align-items:center;gap:4px}.aa-agent-bubble-comp .agent-bubble-content .top-info .time-tamp{font-weight:400;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color)}.aa-agent-bubble-comp .agent-bubble-content .top-info .you-text{font-weight:600;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color)}.aa-agent-bubble-comp .agent-bubble-content .bubble-msg{background:var(--AA-global-theme-bg);border-radius:8px 8px 2px 8px;font-weight:400;font-size:14px;line-height:18px;color:var(--AA-global-white-color);padding:8px 12px}.aa-bot-bubble-comp{display:flex;width:100%;justify-content:flex-start}.aa-bot-bubble-comp .bot-bubble-content{display:flex;flex-wrap:wrap;flex-direction:column;max-width:90%;justify-content:flex-start;align-items:flex-start;transition:.5s all ease;word-break:break-word;gap:6px}.aa-bot-bubble-comp .bot-bubble-content .top-info{display:flex;align-items:center;gap:4px;width:100%}.aa-bot-bubble-comp .bot-bubble-content .top-info .time-tamp{font-weight:400;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color);flex-shrink:0}.aa-bot-bubble-comp .bot-bubble-content .top-info .you-text{font-weight:600;font-size:12px;line-height:15px;color:var(--AA-gloabl-text-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.aa-bot-bubble-comp .bot-bubble-content .bubble-msg{background:var(--AA-gloabl-bg-secondary);border-radius:8px 8px 2px 8px;font-weight:400;font-size:14px;line-height:18px;color:var(--AA-gloabl-text-color);padding:8px 12px;word-break:break-word;white-space:break-spaces}.agent-joined-banner{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:20px}.agent-joined-banner .line-border{width:100%;border-top:1px solid var(--AA-gloabl-border)}.agent-joined-banner .info-joined-details{display:flex;flex-direction:column;align-items:center;gap:2px;flex-shrink:0}.summery-wrapper{border-radius:8px;border:1px solid var(--AA-gloabl-border);background:var(--AA-gloabl-bg-secondary);display:inline-flex;padding:12px;justify-content:center;align-items:center;align-self:stretch;flex-direction:column;width:auto;margin:10px auto;gap:6px}.summery-wrapper .summery-header{display:flex;align-items:center;gap:6px}.summery-wrapper .summery-header i{font-size:18px}",""]);const a=r},9502:(e,t,n)=>{n.d(t,{A:()=>y});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i),a=n(4417),l=n.n(a),c=new URL(n(4189),n.b),u=new URL(n(9563),n.b),d=new URL(n(3701),n.b),p=new URL(n(1675),n.b),h=r()(s()),f=l()(c),g=l()(c,{hash:"#iefix"}),b=l()(u),m=l()(d),v=l()(p,{hash:"#krIocnsFont"});h.push([e.id,`@font-face {\n font-family: 'krIocnsFont';\n src: url(${f});\n src: url(${g}) format('embedded-opentype'),\n url(${b}) format('truetype'),\n url(${m}) format('woff'),\n url(${v}) format('svg');\n font-weight: normal;\n font-style: normal;\n font-display: block;\n}\n\n[class^="krIocnsFont-"], [class*=" krIocnsFont-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: 'krIocnsFont' !important;\n speak: never;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.krIocnsFont-moon-01:before {\n content: "\\e924";\n}\n.krIocnsFont-sun:before {\n content: "\\e925";\n}\n.krIocnsFont-agent:before {\n content: "\\e923";\n}\n.krIocnsFont-chevron-up:before {\n content: "\\e922";\n}\n.krIocnsFont-terminate-playbook:before {\n content: "\\e921";\n}\n.krIocnsFont-play:before {\n content: "\\e91f";\n}\n.krIocnsFont-pause:before {\n content: "\\e920";\n}\n.krIocnsFont-Aimark:before {\n content: "\\e91e";\n}\n.krIocnsFont-keyboard:before {\n content: "\\e91d";\n}\n.krIocnsFont-warning-solid:before {\n content: "\\e91c";\n}\n.krIocnsFont-check:before {\n content: "\\e919";\n}\n.krIocnsFont-check-circle:before {\n content: "\\e91b";\n}\n.krIocnsFont-thumbs-up-solid:before {\n content: "\\e918";\n}\n.krIocnsFont-thumbs-down:before {\n content: "\\e91a";\n}\n.krIocnsFont-exclamation:before {\n content: "\\e917";\n}\n.krIocnsFont-hand:before {\n content: "\\e911";\n}\n.krIocnsFont-info-circle:before {\n content: "\\e912";\n}\n.krIocnsFont-alert-triangle:before {\n content: "\\e913";\n}\n.krIocnsFont-close-md:before {\n content: "\\e914";\n}\n.krIocnsFont-close:before {\n content: "\\e915";\n}\n.krIocnsFont-thumbs-up:before {\n content: "\\e916";\n}\n.krIocnsFont-copy:before {\n content: "\\e910";\n}\n.krIocnsFont-outlined:before {\n content: "\\e90f";\n}\n.krIocnsFont-list:before {\n content: "\\e90a";\n}\n.krIocnsFont-refresh:before {\n content: "\\e90b";\n}\n.krIocnsFont-chevron-down:before {\n content: "\\e90c";\n}\n.krIocnsFont-maximize:before {\n content: "\\e90d";\n}\n.krIocnsFont-minimize:before {\n content: "\\e90e";\n}\n.krIocnsFont-light-bulb:before {\n content: "\\e909";\n}\n.krIocnsFont-link-external-02:before {\n content: "\\e900";\n}\n.krIocnsFont-search-md:before {\n content: "\\e901";\n}\n.krIocnsFont-my-bot:before {\n content: "\\e902";\n}\n.krIocnsFont-settings:before {\n content: "\\e903";\n}\n.krIocnsFont-assist:before {\n content: "\\e904";\n}\n.krIocnsFont-chevron-left:before {\n content: "\\e905";\n}\n.krIocnsFont-chevron-right:before {\n content: "\\e906";\n}\n.krIocnsFont-transcript:before {\n content: "\\e907";\n}\n.krIocnsFont-image-01:before {\n content: "\\e908";\n}\n`,""]);const y=h},7088:(e,t,n)=>{n.d(t,{A:()=>Se});var o=n(1601),s=n.n(o),i=n(6314),r=n.n(i),a=n(4417),l=n.n(a),c=new URL(n(8323),n.b),u=new URL(n(651),n.b),d=new URL(n(6555),n.b),p=new URL(n(883),n.b),h=new URL(n(2677),n.b),f=new URL(n(3197),n.b),g=new URL(n(5496),n.b),b=new URL(n(7422),n.b),m=new URL(n(3954),n.b),v=new URL(n(3248),n.b),y=new URL(n(1618),n.b),_=new URL(n(5520),n.b),x=new URL(n(4472),n.b),w=new URL(n(6702),n.b),k=new URL(n(8700),n.b),A=new URL(n(2202),n.b),I=new URL(n(1630),n.b),N=new URL(n(532),n.b),T=new URL(n(5599),n.b),S=new URL(n(2559),n.b),E=new URL(n(1430),n.b),R=new URL(n(9836),n.b),C=new URL(n(8359),n.b),O=new URL(n(7703),n.b),L=new URL(n(8668),n.b),M=new URL(n(3594),n.b),F=new URL(n(5653),n.b),q=new URL(n(141),n.b),B=new URL(n(4142),n.b),D=new URL(n(2196),n.b),P=new URL(n(8255),n.b),j=new URL(n(9135),n.b),U=new URL(n(1728),n.b),H=new URL(n(4934),n.b),z=new URL(n(9017),n.b),W=new URL(n(8569),n.b),V=r()(s()),Y=l()(c),$=l()(u),G=l()(d),Q=l()(p),J=l()(h),K=l()(f),X=l()(g),Z=l()(b),ee=l()(m),te=l()(v),ne=l()(y),oe=l()(_),se=l()(x),ie=l()(w),re=l()(k),ae=l()(A),le=l()(I),ce=l()(N),ue=l()(T),de=l()(S),pe=l()(E),he=l()(R),fe=l()(C),ge=l()(O),be=l()(L),me=l()(M),ve=l()(F),ye=l()(q),_e=l()(B),xe=l()(D),we=l()(P),ke=l()(j),Ae=l()(U),Ie=l()(H),Ne=l()(z),Te=l()(W);V.push([e.id,`/*!\n\tInter font.\n*/\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url(${Y}) format("woff2"),\n url(${$}) format("woff");\n}\n\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(${G}) format("woff2"),\n url(${Q}) format("woff");\n}\n\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(${J}) format("woff2"),\n url(${K}) format("woff");\n}\n\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(${X}) format("woff2"),\n url(${Z}) format("woff");\n}\n\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(${ee}) format("woff2"),\n url(${te}) format("woff");\n}\n\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 600;\n font-display: swap;\n src: url(${ne}) format("woff2"),\n url(${oe}) format("woff");\n}\n\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(${se}) format("woff2"),\n url(${ie}) format("woff");\n}\n\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url(${re}) format("woff2"),\n url(${ae}) format("woff");\n}\n\n\n\n/*!\n\tLato font.\n*/\n/* Lato (hairline, regular) */\n\n/* Lato (normal, regular) */\n@font-face {\n font-family: 'Lato';\n font-weight: 400;\n font-style: normal;\n text-rendering: optimizeLegibility;\n src: url(${le}) format("woff2"), url(${ce}) format("woff");\n}\n\n/* Lato (normal, italic) */\n@font-face {\n font-family: 'Lato';\n font-weight: 400;\n font-style: italic;\n text-rendering: optimizeLegibility;\n src: url(${ue}) format("woff2"), url(${de}) format("woff");\n}\n\n/* Lato (medium, regular) */\n@font-face {\n font-family: "Lato Medium";\n font-weight: 400;\n font-style: normal;\n text-rendering: optimizeLegibility;\n src: url(${pe}) format("woff2"), url(${he}) format("woff");\n}\n\n/* Lato (medium, italic) */\n@font-face {\n font-family: "Lato Medium";\n font-weight: 400;\n font-style: italic;\n text-rendering: optimizeLegibility;\n src: url(${fe}) format("woff2"), url(${ge}) format("woff");\n}\n\n/* Lato (semibold, regular) */\n@font-face {\n font-family: 'Lato';\n font-weight: 500;\n font-style: normal;\n text-rendering: optimizeLegibility;\n src: url(${be}) format("woff2"), url(${me}) format("woff");\n}\n\n/* Lato (semibold, italic) */\n@font-face {\n font-family: 'Lato';\n font-weight: 500;\n font-style: italic;\n text-rendering: optimizeLegibility;\n src: url(${ve}) format("woff2"), url(${ye}) format("woff");\n}\n\n/* Lato (bold, regular) */\n@font-face {\n font-family: 'Lato';\n font-weight: 600;\n font-style: normal;\n text-rendering: optimizeLegibility;\n src: url(${_e}) format("woff2"), url(${xe}) format("woff");\n}\n\n/* Lato (bold, italic) */\n@font-face {\n font-family: 'Lato';\n font-weight: 600;\n font-style: italic;\n text-rendering: optimizeLegibility;\n src: url(${we}) format("woff2"), url(${ke}) format("woff");\n}\n\n/* Lato (black, regular) */\n@font-face {\n font-family: 'Lato';\n font-weight: 900;\n font-style: normal;\n text-rendering: optimizeLegibility;\n src: url(${Ae}) format("woff2"), url(${Ie}) format("woff");\n}\n\n/* Lato (black, italic) */\n@font-face {\n font-family: 'Lato';\n font-weight: 900;\n font-style: italic;\n text-rendering: optimizeLegibility;\n src: url(${Ne}) format("woff2"), url(${Te}) format("woff");\n}`,""]);const Se=V},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,s,i){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&r[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),s&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=s):u[4]="".concat(s)),t.push(u))}},t}},4417:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},1601:e=>{e.exports=function(e){return e[1]}},5072:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},r=[],a=0;a<e.length;a++){var l=e[a],c=o.base?l[0]+o.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=s(h,o);o.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}r.push(d)}return r}function s(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,s){var i=o(e=e||[],s=s||{});return function(e){e=e||[];for(var r=0;r<i.length;r++){var a=n(i[r]);t[a].references--}for(var l=o(e,s),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},7659:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,s&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6702:(e,t,n)=>{e.exports=n.p+"c7c0091f1b2b06064572.woff"},4472:(e,t,n)=>{e.exports=n.p+"3c747ac4004be3a30e98.woff2"},2202:(e,t,n)=>{e.exports=n.p+"aa42f3d22ea9fae2b945.woff"},8700:(e,t,n)=>{e.exports=n.p+"86b501b4ef9d20d70996.woff2"},3197:(e,t,n)=>{e.exports=n.p+"fa701b4b599a803effc3.woff"},2677:(e,t,n)=>{e.exports=n.p+"1b084c69c69a1b3a2618.woff2"},651:(e,t,n)=>{e.exports=n.p+"0cde50f90fe61871de0a.woff"},8323:(e,t,n)=>{e.exports=n.p+"15bbe3b76e0bedd9c4d5.woff2"},7422:(e,t,n)=>{e.exports=n.p+"cc6a88688869161eb836.woff"},5496:(e,t,n)=>{e.exports=n.p+"5b53c519b3184a74a98c.woff2"},883:(e,t,n)=>{e.exports=n.p+"fc49d131f795b4d48f26.woff"},6555:(e,t,n)=>{e.exports=n.p+"2505c0d4b34ffca98f8f.woff2"},3248:(e,t,n)=>{e.exports=n.p+"8b4a1cc3e20e6ede50a5.woff"},3954:(e,t,n)=>{e.exports=n.p+"70214cc266c6a06739cc.woff2"},5520:(e,t,n)=>{e.exports=n.p+"5f2383ba1f21218136e8.woff"},1618:(e,t,n)=>{e.exports=n.p+"bf4e61df34aa7aaef4cf.woff2"},8569:(e,t,n)=>{e.exports=n.p+"0d0882bc6997a213dace.woff"},9017:(e,t,n)=>{e.exports=n.p+"b9c017a718cdeb8538b8.woff2"},4934:(e,t,n)=>{e.exports=n.p+"6cfa65c63939188f33ef.woff"},1728:(e,t,n)=>{e.exports=n.p+"6d20cff5b3255dd0078f.woff2"},9135:(e,t,n)=>{e.exports=n.p+"3e6b99809852a8290c42.woff"},8255:(e,t,n)=>{e.exports=n.p+"e48918f9c91871c0ce3e.woff2"},2196:(e,t,n)=>{e.exports=n.p+"89b618086a797a8be0f4.woff"},4142:(e,t,n)=>{e.exports=n.p+"21b3848a32fce5b0f501.woff2"},7703:(e,t,n)=>{e.exports=n.p+"9ba7233345056c919454.woff"},8359:(e,t,n)=>{e.exports=n.p+"3e22a5367c2e68d6e4ba.woff2"},9836:(e,t,n)=>{e.exports=n.p+"08eb0932dc2145b3f6b2.woff"},1430:(e,t,n)=>{e.exports=n.p+"a071abba7e9bd90947f7.woff2"},2559:(e,t,n)=>{e.exports=n.p+"62a9c838c99d073c7ba6.woff"},5599:(e,t,n)=>{e.exports=n.p+"bb5de40edffdbd3ab519.woff2"},532:(e,t,n)=>{e.exports=n.p+"1d2ca94dfba6f8d87cfd.woff"},1630:(e,t,n)=>{e.exports=n.p+"75614cfcfedd509b1f7a.woff2"},141:(e,t,n)=>{e.exports=n.p+"3fdee263fe69b843601f.woff"},5653:(e,t,n)=>{e.exports=n.p+"34b49f334f41cea8e365.woff2"},3594:(e,t,n)=>{e.exports=n.p+"c66465590541129e82d3.woff"},8668:(e,t,n)=>{e.exports=n.p+"a6069540692725c247f1.woff2"},4189:(e,t,n)=>{e.exports=n.p+"e8251a8e718efab2c8d4.eot?oez4oh"},1675:(e,t,n)=>{e.exports=n.p+"d1b8fe27f27857a021fd.svg?oez4oh"},9563:(e,t,n)=>{e.exports=n.p+"8802efd7433cd416030e.ttf?oez4oh"},3701:(e,t,n)=>{e.exports=n.p+"3781075241905d291dad.woff?oez4oh"}},t={};function n(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",n.b=void 0,n.nc=void 0;var o={};n.r(o),n.d(o,{aaConfig:()=>Wn,aaWindow:()=>zn});var s={};n.r(s),n.d(s,{Decoder:()=>Sn,Encoder:()=>Nn,PacketType:()=>In,protocol:()=>An});var i=n(5072),r=n.n(i),a=n(7825),l=n.n(a),c=n(7659),u=n.n(c),d=n(5056),p=n.n(d),h=n(540),f=n.n(h),g=n(1113),b=n.n(g),m=n(1958),v={};v.styleTagTransform=b(),v.setAttributes=p(),v.insert=u().bind(null,"head"),v.domAPI=l(),v.insertStyleElement=f();r()(m.A,v);m.A&&m.A.locals&&m.A.locals;var y,_,x,w,k,A,I,N=function(){function e(){this.eventListeners={}}return e.prototype.on=function(e,t){this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t)},e.prototype.off=function(e,t){this.eventListeners[e]&&(this.eventListeners[e]=this.eventListeners[e].filter((function(e){return e!==t})))},e.prototype.emit=function(e,t,n){var o=this.eventListeners[e];o&&o.forEach((function(e){return e(t,n)}))},e}(),T={},S=[],E=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,R=Array.isArray;function C(e,t){for(var n in t)e[n]=t[n];return e}function O(e){var t=e.parentNode;t&&t.removeChild(e)}function L(e,t,n){var o,s,i,r={};for(i in t)"key"==i?o=t[i]:"ref"==i?s=t[i]:r[i]=t[i];if(arguments.length>2&&(r.children=arguments.length>3?y.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===r[i]&&(r[i]=e.defaultProps[i]);return M(e,r,o,s,null)}function M(e,t,n,o,s){var i={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++x:s};return null==s&&null!=_.vnode&&_.vnode(i),i}function F(e){return e.children}function q(e,t){this.props=e,this.context=t}function B(e,t){if(null==t)return e.__?B(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?B(e):null}function D(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return D(e)}}function P(e){(!e.__d&&(e.__d=!0)&&w.push(e)&&!j.__r++||k!==_.debounceRendering)&&((k=_.debounceRendering)||A)(j)}function j(){var e,t,n,o,s,i,r,a,l;for(w.sort(I);e=w.shift();)e.__d&&(t=w.length,o=void 0,s=void 0,i=void 0,a=(r=(n=e).__v).__e,(l=n.__P)&&(o=[],s=[],(i=C({},r)).__v=r.__v+1,Q(l,r,i,n.__n,void 0!==l.ownerSVGElement,null!=r.__h?[a]:null,o,null==a?B(r):a,r.__h,s),J(o,r,s),r.__e!=a&&D(r)),w.length>t&&w.sort(I));j.__r=0}function U(e,t,n,o,s,i,r,a,l,c,u){var d,p,h,f,g,b,m,v,y,_=0,x=o&&o.__k||S,w=x.length,k=w,A=t.length;for(n.__k=[],d=0;d<A;d++)null!=(f=n.__k[d]=null==(f=t[d])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?M(null,f,null,null,f):R(f)?M(F,{children:f},null,null,null):f.__b>0?M(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(v=W(f,x,m=d+_,k))?h=T:(h=x[v]||T,x[v]=void 0,k--),Q(e,f,h,s,i,r,a,l,c,u),g=f.__e,(p=f.ref)&&h.ref!=p&&(h.ref&&X(h.ref,null,f),u.push(p,f.__c||g,f)),null!=g&&(null==b&&(b=g),(y=h===T||null===h.__v)?-1==v&&_--:v!==m&&(v===m+1?_++:v>m?k>A-m?_+=v-m:_--:_=v<m&&v==m-1?v-m:0),m=d+_,"function"!=typeof f.type||v===m&&h.__k!==f.__k?"function"==typeof f.type||v===m&&!y?void 0!==f.__d?(l=f.__d,f.__d=void 0):l=g.nextSibling:l=z(e,g,l):l=H(f,l,e),"function"==typeof n.type&&(n.__d=l))):(h=x[d])&&null==h.key&&h.__e&&(h.__e==l&&(l=B(h)),Z(h,h,!1),x[d]=null);for(n.__e=b,d=w;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=x[d].__e.nextSibling),Z(x[d],x[d]))}function H(e,t,n){for(var o,s=e.__k,i=0;s&&i<s.length;i++)(o=s[i])&&(o.__=e,t="function"==typeof o.type?H(o,t,n):z(n,o.__e,t));return t}function z(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function W(e,t,n,o){var s=e.key,i=e.type,r=n-1,a=n+1,l=t[n];if(null===l||l&&s==l.key&&i===l.type)return n;if(o>(null!=l?1:0))for(;r>=0||a<t.length;){if(r>=0){if((l=t[r])&&s==l.key&&i===l.type)return r;r--}if(a<t.length){if((l=t[a])&&s==l.key&&i===l.type)return a;a++}}return-1}function V(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||E.test(t)?n:n+"px"}function Y(e,t,n,o,s){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||V(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||V(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o||e.addEventListener(t,i?G:$,i):e.removeEventListener(t,i?G:$,i);else if("dangerouslySetInnerHTML"!==t){if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function $(e){return this.l[e.type+!1](_.event?_.event(e):e)}function G(e){return this.l[e.type+!0](_.event?_.event(e):e)}function Q(e,t,n,o,s,i,r,a,l,c){var u,d,p,h,f,g,b,m,v,y,x,w,k,A,I,N=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(u=_.__b)&&u(t);e:if("function"==typeof N)try{if(m=t.props,v=(u=N.contextType)&&o[u.__c],y=u?v?v.props.value:u.__:o,n.__c?b=(d=t.__c=n.__c).__=d.__E:("prototype"in N&&N.prototype.render?t.__c=d=new N(m,y):(t.__c=d=new q(m,y),d.constructor=N,d.render=ee),v&&v.sub(d),d.props=m,d.state||(d.state={}),d.context=y,d.__n=o,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=N.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=C({},d.__s)),C(d.__s,N.getDerivedStateFromProps(m,d.__s))),h=d.props,f=d.state,d.__v=t,p)null==N.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==N.getDerivedStateFromProps&&m!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(m,y),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(m,d.__s,y)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=m,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&r.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(m,d.__s,y),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,g)}))}if(d.context=y,d.props=m,d.__P=e,d.__e=!1,w=_.__r,k=0,"prototype"in N&&N.prototype.render){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[]}else do{d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(o=C(C({},o),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(h,f)),U(e,R(I=null!=u&&u.type===F&&null==u.key?u.props.children:u)?I:[I],t,n,o,s,i,r,a,l,c),d.base=t.__e,t.__h=null,d.__h.length&&r.push(d),b&&(d.__E=d.__=null)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=a,t.__h=!!l,i[i.indexOf(a)]=null),_.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=K(n.__e,t,n,o,s,i,r,l,c);(u=_.diffed)&&u(t)}function J(e,t,n){for(var o=0;o<n.length;o++)X(n[o],n[++o],n[++o]);_.__c&&_.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){_.__e(e,t.__v)}}))}function K(e,t,n,o,s,i,r,a,l){var c,u,d,p=n.props,h=t.props,f=t.type,g=0;if("svg"===f&&(s=!0),null!=i)for(;g<i.length;g++)if((c=i[g])&&"setAttribute"in c==!!f&&(f?c.localName===f:3===c.nodeType)){e=c,i[g]=null;break}if(null==e){if(null===f)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),i=null,a=!1}if(null===f)p===h||a&&e.data===h||(e.data=h);else{if(i=i&&y.call(e.childNodes),u=(p=n.props||T).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(null!=i)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,o,s){var i;for(i in n)"children"===i||"key"===i||i in t||Y(e,i,null,n[i],o);for(i in t)s&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||Y(e,i,t[i],n[i],o)}(e,h,p,s,a),d)t.__k=[];else if(U(e,R(g=t.props.children)?g:[g],t,n,o,s&&"foreignObject"!==f,i,r,i?i[0]:n.__k&&B(n,0),a,l),null!=i)for(g=i.length;g--;)null!=i[g]&&O(i[g]);a||("value"in h&&void 0!==(g=h.value)&&(g!==e.value||"progress"===f&&!g||"option"===f&&g!==p.value)&&Y(e,"value",g,p.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==e.checked&&Y(e,"checked",g,p.checked,!1))}return e}function X(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){_.__e(e,n)}}function Z(e,t,n){var o,s;if(_.unmount&&_.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||X(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){_.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&Z(o[s],t,n||"function"!=typeof e.type);n||null==e.__e||O(e.__e),e.__=e.__e=e.__d=void 0}function ee(e,t,n){return this.constructor(e,n)}function te(e,t,n){var o,s,i,r;_.__&&_.__(e,t),s=(o="function"==typeof n)?null:n&&n.__k||t.__k,i=[],r=[],Q(t,e=(!o&&n||t).__k=L(F,null,[e]),s||T,T,void 0!==t.ownerSVGElement,!o&&n?[n]:s?null:t.firstChild?y.call(t.childNodes):null,i,!o&&n?n:s?s.__e:t.firstChild,o,r),J(i,e,r)}y=S.slice,_={__e:function(e,t,n,o){for(var s,i,r;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&null!=i.getDerivedStateFromError&&(s.setState(i.getDerivedStateFromError(e)),r=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,o||{}),r=s.__d),r)return s.__E=s}catch(t){e=t}throw e}},x=0,q.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=C({},this.state),"function"==typeof e&&(e=e(C({},n),this.props)),e&&C(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},q.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},q.prototype.render=F,w=[],A="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,I=function(e,t){return e.__v.__b-t.__v.__b},j.__r=0;var ne=function(){function e(e,t){this.component=e,this.hostInstance=t}return e.prototype.renderMessage=function(e){var t=this.hostInstance,n=document.createElement("div");return te(L(this.component,{hostInstance:t,msgData:e}),n),n.childNodes[0]},e}();function oe(e,t,n){return new ne(e,n).renderMessage(t)}var se=n(2773),ie={};ie.styleTagTransform=b(),ie.setAttributes=p(),ie.insert=u().bind(null,"head"),ie.domAPI=l(),ie.insertStyleElement=f();r()(se.A,ie);se.A&&se.A.locals&&se.A.locals;var re,ae,le,ce,ue=0,de=[],pe=[],he=_.__b,fe=_.__r,ge=_.diffed,be=_.__c,me=_.unmount;function ve(e,t){_.__h&&_.__h(ae,e,ue||t),ue=0;var n=ae.__H||(ae.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:pe}),n.__[e]}function ye(e){return ue=1,function(e,t,n){var o=ve(re++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):Ee(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=ae,!ae.u)){var s=function(e,t,n){if(!o.__c.__H)return!0;var s=o.__c.__H.__.filter((function(e){return e.__c}));if(s.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var r=!1;return s.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(r=!0)}})),!(!r&&o.__c.props===e)&&(!i||i.call(this,e,t,n))};ae.u=!0;var i=ae.shouldComponentUpdate,r=ae.componentWillUpdate;ae.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,s(e,t,n),i=o}r&&r.call(this,e,t,n)},ae.shouldComponentUpdate=s}return o.__N||o.__}(Ee,e)}function _e(e,t){var n=ve(re++,3);!_.__s&&Se(n.__H,t)&&(n.__=e,n.i=t,ae.__H.__h.push(n))}function xe(e){return ue=5,we((function(){return{current:e}}),[])}function we(e,t){var n=ve(re++,7);return Se(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(){for(var e;e=de.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ne),e.__H.__h.forEach(Te),e.__H.__h=[]}catch(t){e.__H.__h=[],_.__e(t,e.__v)}}_.__b=function(e){ae=null,he&&he(e)},_.__r=function(e){fe&&fe(e),re=0;var t=(ae=e.__c).__H;t&&(le===ae?(t.__h=[],ae.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=pe,e.__N=e.i=void 0}))):(t.__h.forEach(Ne),t.__h.forEach(Te),t.__h=[],re=0)),le=ae},_.diffed=function(e){ge&&ge(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==de.push(t)&&ce===_.requestAnimationFrame||((ce=_.requestAnimationFrame)||Ie)(ke)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==pe&&(e.__=e.__V),e.i=void 0,e.__V=pe}))),le=ae=null},_.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ne),e.__h=e.__h.filter((function(e){return!e.__||Te(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],_.__e(n,e.__v)}})),be&&be(e,t)},_.unmount=function(e){me&&me(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ne(e)}catch(e){t=e}})),n.__H=void 0,t&&_.__e(t,n.__v))};var Ae="function"==typeof requestAnimationFrame;function Ie(e){var t,n=function(){clearTimeout(o),Ae&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function Ne(e){var t=ae,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ae=t}function Te(e){var t=ae;e.__c=e.__(),ae=t}function Se(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ee(e,t){return"function"==typeof t?t(e):t}var Re={SEARCH:"SEARCH",MYBOT:"MYBOT",ASSIST:"ASSIST",TRANSCRIPT:"TRANSCRIPT",HISTORY:"HISTORY",SETTINGS:"SETTINGS",SMARTASSIST_SOURCE:"SMARTASSIST_SOURCE"},Ce="FEEDBACK",Oe={ASSIST:"Assist",MYBOT:"My Bot",TRANSCRIPT:"Transcript",LIBRARY:"Library",SETTINGS:"Settings",SEARCH:"Search",VOICE:"voice",CHAT:"chat",BOTID:"botId",CONVESATIONID:"conversationId",RUN:"RUN",AGENTASSIST_RUN:"Run with Agent Inputs",SEND:"Send",COPY:"Copy",COPIED:"COPIED",SHOW_MORE:"Show more",SHOW_LESS:"Show less",READ_MORE:"Read more",READ_LESS:"Read less",EXPAND:"Expand",READ_MORE_EXPAND:"Read more | Expand",CLOSE:"Close",DIALOG:"Dialog task",FAQ:"FAQ",ARTICLE:"Article",SNIPPET:"Snippet",VIEW_ALL_FAQ:"View All FAQs",VIEW_FEW_FAQ:"View Few FAQs",VIEW_ALL_ARTICLES:"View All Articles",VIEW_FEW_ARTICLES:"View Few Articles",VIEW_ALL_SNIPPETS:"View All Snippets",VIEW_FEW_SNIPPETS:"View Few Snippets",AGENT_SEARCH:"Agent Search",LIBRARY_SEARCH:"Library Search",ENTER_DETAILS:"EnterDetails",DISCARD_ALL:"discard all",TERMINATE:"Terminate",INTERRUPT:"Interrupt",LISTVIEW:"ListView",RESTORE:"Restore",RESTART:"Restart",SUMMARY:"Summary",INTENT:"IntentName",HISTORY:"History",STARTOVER:"STARTOVER",RESTART_INPUTS:"CAPTURED_INPUTS",PS_Y_REACH_START:"ps-y-reach-start",PS_Y_REACH_END:"ps-y-reach-end",PS_SCROLL_UP:"ps-scroll-up",PROACTIVE_INITIAL_MODE:"proactive_initial_mode",SMARTASSIST_SOURCE:"smartassist-color-scheme",INCOMING:"incoming",OUTGOING:"outgoing",ASK_CUSTOMER:"Ask Customer",TELL_CUSTOMER:"Tell Customer",WELCOME_MSG:"Welcome Message",YES:"yes",NO:"no",SENDMSG:"agentAssist.SendMessage",COPYMSG:"agentAssist.CopyMessage",SEND_METHOD:"send",COPY_METHOD:"copy",AWAITING:"Awaiting Response | Type to override",OVERRIDE:"Type to override",ACCEPT_RESPONSE:"Response Accepted",AGENT_ENTERED:"Agent Entered",WIDGET_LOADER:"widget",INDIVIDUAL_LOADER:"individual",LOGO_PATH:"assets/images/logo/koreLogo.svg",DOCUMENTATION_LINK:"https://docs.kore.ai/agentassist/",FAQ_LINK:"https://docs.kore.ai/agentassist/frequently-asked-questions/faq/",KOREACADEMY_LINK:"https://academy.kore.ai/",WRONG_SUGGESTION:"Wrong suggestions",INCORRECT_INTENT:"Incorrect intent",ACCIDENTAL_CLICK:"Accidental click",TIME_TAKING:"Time taking",OTHER:"Other",SETTINGS_DOCUMENTATION:"documentation",SETTINGS_FAQ:"faq",SETTINGS_KOREACADEMY:"koreAcademy",SUGGESTION_LINEHEIGHT:18,SUGGESTION_ADDHEIGHT:10,SUGGESTION_MAXHEIGHT:12,jToken:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NjUzODYxNzgyMjMsImV4cCI6MTY2NTM4NjE3OTEyMywiYXVkIjoiIiwiaXNzIjoiY3MtZTRhMmI0YjYtM2RiZC01NWQwLWIwMjUtNDY2ZTVkMDRjOTgxIiwic3ViIjoiYy00NzJhNjYyLTQ5ZDYtNDM5Ny1hMjY1LTViNzE4ZDQ0MWNiNCIsImlzQW5vbnltb3VzIjpmYWxzZX0.1SN5BIEaQ4Rr6XpyKXR1AerNcIEmyDcnK6P0cpPkQzM"},Le=n(4567),Me={};Me.styleTagTransform=b(),Me.setAttributes=p(),Me.insert=u().bind(null,"head"),Me.domAPI=l(),Me.insertStyleElement=f();r()(Le.A,Me);Le.A&&Le.A.locals&&Le.A.locals;function Fe(e){var t=e.tabsNTitles,n=e.selectedTab,o=e.showTranscript,s=(e.connectionDetails,e.sourceDesktop,e.hideUserBotHistory,e.changeTab),i=e.projConstants,r=e.selectedTheme,a=(e.chooseTheme,ye(r));a[0],a[1];return _e((function(){})),L("div",{className:"widget-footer-wrapper"},L("div",{className:"logo-left-menu"},L("figure",null,L("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},L("path",{d:"M3 8.33333L3 11.6667M6.75 5L6.75 15M10.5 2.5V17.5M14.25 5V15M18 8.33333V11.6667",stroke:"#101828","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})))),L("div",{className:"line-divider"}),L("div",{className:"footer-links-data"},t.map((function(e,t){return L("div",{className:"footer-list-buttons"},"srch"===e.type&&L("button",{className:"btn_footer ".concat(n===i.SEARCH?"selected-tab sel-bg":""),onClick:function(){return s(i.SEARCH)}},L("div",{className:"svg_icon"},L("i",{className:"krIocnsFont-search-md"})),L("p",{className:"text-truncate",title:e.title},e.title)),"mB"===e.type&&L("button",{className:"btn_footer ".concat(n===i.MYBOT?"selected-tab sel-bg":""),onClick:function(){return s(i.MYBOT)}},L("div",{className:"svg_icon"},L("i",{className:"krIocnsFont-my-bot"})),L("p",{className:"text-truncate",title:e.title},e.title)),"ast"===e.type&&L("button",{className:"btn_footer ".concat(n===i.ASSIST?"selected-tab sel-bg":""),onClick:function(){return s(i.ASSIST)}},L("div",{className:"svg_icon"},L("i",{className:"krIocnsFont-assist"})),L("p",{className:"text-truncate",title:e.title},e.title)),"trnspt"===e.type&&o&&L("button",{className:"btn_footer ".concat(n===i.TRANSCRIPT?"selected-tab sel-bg":""),onClick:function(){return s(i.TRANSCRIPT)}},L("div",{className:"svg_icon"},L("i",{className:"krIocnsFont-transcript"})),L("p",{className:"text-truncate",title:e.title},e.title)))}))),L("div",{className:"footer-action-items"},L("div",{className:"aa-toggle-switch"},L("input",{type:"checkbox",checked:!0}),L("button",{className:"aa-slider"},L("div",{className:"slide-parent"},L("div",{className:"slider-btn"}))))))}function qe(e){return L("div",null,L("h1",null," Assist "))}var Be,De;!function(e){e.event="event",e.request_port="request_port",e.control_message="control_message",e.connect="connect",e.disconnect="disconnect",e.error="error",e.connect_error="connect_error",e.conversation_closed="conversation_closed",e.welcome_message_request="welcome_message_request",e.user_message="user_message",e.agent_message="agent_message",e.agent_assist_request="agent_assist_request",e.agent_assist_response="agent_assist_response",e.agent_menu_request="agent_menu_request",e.agent_menu_response="agent_menu_response",e.agent_assist_user_message="agent_assist_user_message",e.agent_feedback_request="agent_feedback_request",e.agent_feedback_response="agent_feedback_response",e.agent_usage_feedback="agent_usage_feedback",e.agent_assist_agent_request="agent_assist_agent_request",e.agent_assist_agent_response="agent_assist_agent_response",e.agent_assist_endoftask="agent_assist_endoftask",e.request_resolution_comments="request_resolution_comments",e.response_resolution_comments="response_resolution_comments",e.enable_override_userinput="enable_override_userinput",e.agent_send_or_copy="agent_send_or_copy",e.end_of_conversation="end_of_conversation",e.user_sent_message="user_sent_message",e.agent_sent_message="agent_sent_message",e.agent_coaching_response="agent_coaching_response",e.realtime_sentiment_response="realtime_sentiment_response",e.agent_coaching_ackpress="agent_coaching_ackpress",e.checklist_opened="checklist_opened",e.checklist_step_closed="checklist_step_closed",e.checklist_closed="checklist_closed",e.checklist_step_response="checklist_step_response",e.checklist_response="checklist_response",e.checklist_resume="checklist_resume",e.checklist_proceed_to_closed="checklist_proceed_to_closed",e.internal_transfer="internal_transfer",e.agent_activity_request="agent_activity_request",e.submit_summary_request="submit_summary_request",e.agentassist_control_response="agentassist_control_response",e.response_resolution_comments_ack="response_resolution_comments_ack"}(Be||(Be={})),function(e){e.BEFORE_VIEW_INIT="BEFORE_VIEW_INIT",e.TRANSCRIPT_BUBBLE="TRANSCRIPT_BUBBLE"}(De||(De={}));var Pe=n(3478),je={};je.styleTagTransform=b(),je.setAttributes=p(),je.insert=u().bind(null,"head"),je.domAPI=l(),je.insertStyleElement=f();r()(Pe.A,je);Pe.A&&Pe.A.locals&&Pe.A.locals;var Ue=n(5390),He={};He.styleTagTransform=b(),He.setAttributes=p(),He.insert=u().bind(null,"head"),He.domAPI=l(),He.insertStyleElement=f();r()(Ue.A,He);Ue.A&&Ue.A.locals&&Ue.A.locals;var ze=function(e,t,n){if(n||2===arguments.length)for(var o,s=0,i=t.length;s<i;s++)!o&&s in t||(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))};function We(e){e.msgData.searchResponse;var t=e.msgData.hostInstance.rootService,n=ye(!1),o=n[0],s=n[1],i=ye(!1),r=i[0],a=i[1],l=ye(!1),c=l[0],u=l[1],d=ye([]),p=d[0],h=d[1],f=ye(!1),g=f[0],b=f[1],m=ye(2),v=m[0],y=m[1],_=ye(Oe),x=_[0],w=(_[1],ye(t.numOfLines)),k=w[0],A=(w[1],ye(t.scrollHeight)),I=A[0],N=(A[1],ye(t.maxHeight)),T=N[0];N[1];_e((function(){h(e.msgData.articles),S()}),[]),_e((function(){C()}),p);var S=function(){var e,n,o=!1,i=!1;s(!!t.connectionDetails.isCallConversation),!1===(null===(e=null==t?void 0:t.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(a(!0),i=!0),!1===(null===(n=null==t?void 0:t.settingsData)||void 0===n?void 0:n.isAgentResponseCopyEnabled)&&(u(!0),o=!0),i&&o&&s(!0)},E=function(e,n,o,s){var i,r,a,l,c=p[s];n.send=e===x.SEND?"send":"copied";var u=(null===(r=null===(i=null==t?void 0:t.settingsData)||void 0===i?void 0:i.agentActions)||void 0===r?void 0:r.sharingFormat)?null===(l=null===(a=null==t?void 0:t.settingsData)||void 0===a?void 0:a.agentActions)||void 0===l?void 0:l.sharingFormat:"plainString";n.sendContent="plainString"===u?t.extractTextFromElement(c):n.content},R=function(e){e.showMoreButton=!e.showMoreButton,h(ze([],p,!0))},C=function(){b(!1),y(p&&p.length<=2?p.length:2)},O=function(e){t.openurlInBrowser(e)};return L("div",null,p.slice(0,v).map((function(e,t){return L("div",{key:t,className:"faq-suggestions-wrapper ".concat((null==e?void 0:e.send)?"grayout-msgs-node":"")},L("div",{className:"faq-s-header"},L("div",{className:"titles-info-heading"},!e.link&&e.title&&L("h1",{className:"text-truncate"},e.title),e.link&&e.title&&L("h1",{className:"text-truncate"},L("a",{className:"moreText",role:"link",onClick:function(){return O(e.link)}},e.title)),e.send&&L("div",{className:"sent-msg-text"},"send"===e.send?"SENT":"COPIED")),!o&&(null==e?void 0:e.content)&&!e.internalFlag&&L("div",{className:"faq-actions ".concat((null==e?void 0:e.title)?"":"faq-actions-top")},!c&&L("button",{className:"solidbtn","aria-label":"button",onClick:function(){return E(x.COPY,e,x.ARTICLE,t)}},L("i",{className:"krIocnsFont-copy"})),!r&&L("button",{className:"solidbtn","aria-label":"button",onClick:function(){return E(x.SEND,e,x.ARTICLE,t)}},"Send"))),L("div",{className:"faq-body-content"},L("div",{className:"data-faq-paragraph"},L("div",{className:"text-info-more-data-link"},L("p",{className:"text-info-more-data-link ".concat(e.showMoreButton?"":"show-full-text"),style:{"--max-height":"".concat(T,"px")},dangerouslySetInnerHTML:{__html:null==e?void 0:e.content}}),L("div",{className:"more-links-actions"},-1!==k&&e.scrollHeight>I&&L("a",{className:"moreText",role:"link"},(null==e?void 0:e.showMoreButton)?L("span",{className:"more-text",onClick:function(){return R(e)}},"More"):L("span",{className:"less-text",onClick:function(){return R(e)}},"Less")),e.scrollHeight>I&&e.link&&!e.title&&L("p",null,"|"),e.link&&!e.title&&L("a",{className:"moreText",role:"link",onClick:function(){return O(e.link)}},"View Full Article"))))))})),(null==p?void 0:p.length)>2&&L("a",{className:"moreText-bottom"},g?L("span",{className:"less-text",onClick:C},"Less Article"):L("span",{className:"more-text",onClick:function(){b(!0),y(p.length)}},"More Article")))}var Ve=n(4370),Ye={};Ye.styleTagTransform=b(),Ye.setAttributes=p(),Ye.insert=u().bind(null,"head"),Ye.domAPI=l(),Ye.insertStyleElement=f();r()(Ve.A,Ye);Ve.A&&Ve.A.locals&&Ve.A.locals;function $e(e){console.log("faq suggestion********");e.msgData.searchResponse;var t=e.msgData.hostInstance.rootService,n=ye(!1),o=n[0],s=n[1],i=ye(!1),r=i[0],a=i[1],l=ye(!1),c=l[0],u=l[1],d=ye([]),p=d[0],h=d[1],f=ye(!1),g=f[0],b=f[1],m=ye(2),v=m[0],y=m[1],_=ye(Oe),x=_[0],w=(_[1],ye(t.numOfLines)),k=(w[0],w[1],ye(t.scrollHeight)),A=(k[0],k[1],ye(t.maxHeight));A[0],A[1];_e((function(){console.log(e,"props*****"),h(e.msgData.faqs),I()}),[]),_e((function(){console.log("faq list",p),T()}),p);var I=function(){var e,n,o=!1,i=!1;s(!!t.connectionDetails.isCallConversation),!1===(null===(e=null==t?void 0:t.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(a(!0),i=!0),!1===(null===(n=null==t?void 0:t.settingsData)||void 0===n?void 0:n.isAgentResponseCopyEnabled)&&(u(!0),o=!0),i&&o&&s(!0)},N=function(e,n,o,s,i){var r,a,l,c,u=p[i];n.send=e===x.SEND?"send":"copied",n.sourceMsgId=s;var d=(null===(a=null===(r=null==t?void 0:t.settingsData)||void 0===r?void 0:r.agentActions)||void 0===a?void 0:a.sharingFormat)?null===(c=null===(l=null==t?void 0:t.settingsData)||void 0===l?void 0:l.agentActions)||void 0===c?void 0:c.sharingFormat:"plainString";n.sendContent="plainString"==d?t.extractTextFromElement(u):n.answer||n.ans},T=function(){b(!1),y(p&&(null==p?void 0:p.length)<=2?null==p?void 0:p.length:2)},S=function(e){e.toggle=!e.toggle,e.seeMoreWrapper=!1,e.answer||(e.showSpinner=!0)};return L("div",null,null==p?void 0:p.slice(0,v).map((function(e,t){var n,s,i,a,l,u,d,p;return L("div",{className:"faq-suggestions-wrapper ".concat((null===(n=e.answer[0])||void 0===n?void 0:n.send)?"grayout-msgs-node":"")},L("div",{className:"faq-s-header"},L("div",{className:"titles-info-heading"},L("h1",{className:"text-truncate"},e.displayName||e.question),e.answer&&(null===(s=null==e?void 0:e.answer)||void 0===s?void 0:s.length)>1&&(!e.seeMoreWrapper&&e.answerRender||e.toggle&&!e.answerRender&&!e.seeMoreWrapper)&&L("span",null,"1/",null===(i=null==e?void 0:e.answer)||void 0===i?void 0:i.length),e.childBotName&&L("span",null,"(",e.childBotName,")"),!e.answerRender&&!e.toggle&&L("i",{className:"krIocnsFont-chevron-down",onClick:function(){return S(e)}}),!e.answerRender&&e.toggle&&L("i",{className:"krIocnsFont-chevron-up",onClick:function(){return S(e)}}),(null===(a=e.answer[0])||void 0===a?void 0:a.send)&&L("div",{className:"sent-msg-text"},"send"===(null===(l=e.answer[0])||void 0===l?void 0:l.send)?"SENT":"COPIED")),!e.seeMoreWrapper&&e.answer&&(null===(u=null==e?void 0:e.answer)||void 0===u?void 0:u.length)>0&&!o&&L("div",{className:"faq-actions"},!c&&L("button",{className:"solidbtn",onClick:function(){return N(x.COPY,e.answer[0],x.FAQ,e.sourceMsgId,t)}},L("i",{className:"krIocnsFont-copy"})),!r&&L("button",{className:"solidbtn",onClick:function(){return N(x.SEND,e.answer[0],x.FAQ,e.sourceMsgId,t)}},"SEND"))),e.answer&&(null===(d=null==e?void 0:e.answer)||void 0===d?void 0:d.length)>0&&(e.toggle&&!e.answerRender||e.answerRender)&&e.answer.slice(0,e.answerCount).map((function(n,s){return L("div",{className:"faq-body-content",key:s},!o&&(0!==s||0===s&&e.seeMoreWrapper)&&L("div",{className:"faq-actions"},!c&&L("button",{className:"solidbtn",onClick:function(){return N(x.COPY,n,x.FAQ,e.sourceMsgId,t)}},L("i",{className:"krIocnsFont-copy"})),!r&&L("button",{className:"solidbtn",onClick:function(){return N(x.SEND,n,x.FAQ,e.sourceMsgId,t)}},"SEND")))})),(null===(p=null==e?void 0:e.answer)||void 0===p?void 0:p.length)>1&&L("button",{className:"close-expand btn_link",onClick:function(){return S(e)}},e.seeMoreWrapper?"CLOSE_TEXT":"EXPAND_MORE"))})),(null==p?void 0:p.length)>2&&L("a",{className:"moreText-bottom"},L("span",{className:"more-text",onClick:function(){b(!0),y(null==p?void 0:p.length)}},g?"SHOW_LESS_FAQ":"SHOW_MORE_FAQ")))}var Ge=n(2798),Qe={};Qe.styleTagTransform=b(),Qe.setAttributes=p(),Qe.insert=u().bind(null,"head"),Qe.domAPI=l(),Qe.insertStyleElement=f();r()(Ge.A,Qe);Ge.A&&Ge.A.locals&&Ge.A.locals;function Je(e){e.msgData.searchResponse;var t=e.msgData.hostInstance,n=t.rootService,o=ye(!1),s=o[0],i=o[1],r=ye(!1),a=r[0],l=r[1],c=ye(!1),u=c[0],d=c[1],p=ye([]),h=p[0],f=p[1],g=ye(!1),b=g[0],m=g[1],v=ye(2),y=v[0],_=v[1],x=ye(Oe),w=x[0],k=(x[1],ye(n.numOfLines)),A=(k[0],k[1],ye(n.scrollHeight)),I=(A[0],A[1],ye(n.maxHeight)),N=I[0],T=(I[1],ye(!0)),S=T[0],E=(T[1],ye(!0)),R=E[0],C=(E[1],ye("")),O=C[0],M=(C[1],xe(null)),q=xe(null);_e((function(){f(e.msgData.snippets),B(),M.current&&console.log("snippetContent:",M.current),q.current&&console.log("snippetContent1:",q.current)}),[]),_e((function(){j()}),h);var B=function(){var e,t,o=!1,s=!1;i(!!n.connectionDetails.isCallConversation),!1===(null===(e=null==n?void 0:n.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(l(!0),s=!0),!1===(null===(t=null==n?void 0:n.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(d(!0),o=!0),s&&o&&i(!0)},D=function(e,t,o){var s,i,r,a,l=(null===(i=null===(s=null==n?void 0:n.settingsData)||void 0===s?void 0:s.agentActions)||void 0===i?void 0:i.sharingFormat)?null===(a=null===(r=null==n?void 0:n.settingsData)||void 0===r?void 0:r.agentActions)||void 0===a?void 0:a.sharingFormat:"plainString";t.sendContent="plainString"==l&&null!==(null==M?void 0:M.current)?n.extractTextFromElement(null==M?void 0:M.current):t.sendCopyText,t.send=e===w.SEND?"send":"copied",JSON.parse(JSON.stringify(t)).content=null==t?void 0:t.sendCopyText},P=function(){var e;O&&(null===(e=document.querySelectorAll(O))||void 0===e||e.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.remove("selection-on-snippet-color")})))},j=function(){m(!1),_(h&&(null==h?void 0:h.length)<=2?null==h?void 0:h.length:2)};return L("div",null,null==h?void 0:h.slice(0,y).map((function(e,t){var o,i;return L("div",{className:"faq-suggestions-wrapper ".concat((null==e?void 0:e.send)?"grayout-msgs-node":""),key:t},L("div",{className:"faq-s-header"},L("div",{className:"titles-info-heading"},e.title&&L("h1",{className:"text-truncate"},e.title),e.send&&L("div",{className:"sent-msg-text"},"send"===e.send?"SENT":"COPIED")),!s&&e.contentArray.length>0&&L("div",{className:"faq-actions ".concat(e.title?"":"faq-actions-top")},!u&&L("button",{className:"solidbtn",onClick:function(){return D("COPY",e)}},L("i",{className:"krIocnsFont-copy"})),!a&&L("button",{className:"solidbtn",onClick:function(){return D("SEND",e)}},"SEND"))),L("div",{className:"faq-body-content"},L("div",{className:"data-faq-paragraph"},L("div",{className:"text-info-more-data-link"},L("div",{className:"text-info-more-data-block"},L("p",{ref:M,className:"show-full-text ".concat(S?"show-full-text":""),style:{"--max-height":"".concat(N,"px")}},e.contentArray.map((function(t,n){return(null==t?void 0:t.length)>0&&L("div",{key:n,className:"inner-text-snippet-selection ".concat(e.contentArray.length>1&&!e.isActCit?"snippet-list-style":""),dangerouslySetInnerHTML:{__html:t}})})))),(null===(o=e.internalInfo)||void 0===o?void 0:o.length)>0&&L(F,null,L("div",{className:"line-with-text-heading"},L("h2",null,"Internal Information"),L("span",null)),L("div",{className:"text-info-more-data-block"},L("p",{ref:q,className:"show-full-text ".concat(R?"show-full-text":""),style:{"--max-height":"".concat(N,"px")}},e.internalInfo.map((function(t,n){return(null==t?void 0:t.length)>0&&L("div",{key:n,className:"inner-text-snippet-selection ".concat(e.internalInfo.length>1&&!e.isActCit?"snippet-list-style":""),dangerouslySetInnerHTML:{__html:t}})}))))),(null===(i=null==e?void 0:e.sources)||void 0===i?void 0:i.length)>0&&L("div",{className:"souces-names-wrapper"},L("h1",null,"Sources :"),L("div",{className:"source-names"},e.sources.map((function(t,o){return t.url&&L("div",{key:o,className:"source-tag",onMouseOver:function(){return function(e){var t,n;O&&(null===(t=document.querySelectorAll(O))||void 0===t||t.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.remove("selection-on-snippet-color")}))),O=".fragment-ext-"+e,null===(n=document.querySelectorAll(O))||void 0===n||n.forEach((function(e){var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.add("selection-on-snippet-color")}))}(o+1)},onMouseLeave:P},e.isActCit&&L("span",null,o+1),L("a",{onClick:function(){return function(e){n.openurlInBrowser(e)}(t.url)},title:t.title},(null==t?void 0:t.title)||"Know More"))}))))))))})),(null==h?void 0:h.length)>2&&L("a",{className:"moreText-bottom"},L("span",{className:"more-text",onClick:function(){m(!b),m(!0),_(null==h?void 0:h.length)},hidden:b},"SHOW_MORE_SNIPPET"),L("span",{className:"less-text",onClick:function(){m(!b),j()},hidden:!b},"SHOW_LESS_SNIPPET")))}var Ke=function(){return Ke=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},Ke.apply(this,arguments)},Xe=function(e,t,n,o){return new(n||(n=Promise))((function(s,i){function r(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?s(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(r,a)}l((o=o.apply(e,t||[])).next())}))},Ze=function(e,t){var n,o,s,i,r={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(r=0)),r;)try{if(n=1,o&&(s=2&a[0]?o.return:a[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,a[1])).done)return s;switch(o=0,s&&(a=[2&a[0],s.value]),a[0]){case 0:case 1:s=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(s=r.trys,(s=s.length>0&&s[s.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]<s[3])){r.label=a[1];break}if(6===a[0]&&r.label<s[1]){r.label=s[1],s=a;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(a);break}s[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e],o=0}finally{n=s=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}};const et=function(e,t,n){return void 0===t&&(t={}),Xe(void 0,void 0,void 0,(function(){var o,s,i,r,a,l,c,u,d,p,h,f,g,b,m,v,y,_,x;return Ze(this,(function(w){switch(w.label){case 0:t.body&&t.body.isExternalWn&&delete t.body.isExternalWn,o=n.rootService.connectionDetails,s=o.fromSAT,i=o.token,r=o.accountId,a=new Headers(t.headers||{}),l=a.get("botId"),c={iid:l||"st-1c3a28c8-335d-5322-bd21-f5753dc7f1f9"},u=s?"bearer ".concat(i):"".concat(null===(m=null===(b=n.rootService.grantResponseObj)||void 0===b?void 0:b.authorization)||void 0===m?void 0:m.token_type," ").concat(null===(y=null===(v=n.rootService.grantResponseObj)||void 0===v?void 0:v.authorization)||void 0===y?void 0:y.accessToken),d=s?r:null===(x=null===(_=n.rootService.grantResponseObj)||void 0===_?void 0:_.userInfo)||void 0===x?void 0:x.accountId,u&&d&&(s?(c.eAD="false",c.accountId=d):a.has("excludeAccountId")||(c.accountId=d),c.Authorization=u,a.has("excludeAccountId")&&a.delete("excludeAccountId"),a.has("botId")&&a.delete("botId")),(e.includes("/attachment/file")||e.includes("/file"))&&((t.body instanceof FormData||e.includes("/chunk"))&&"POST"===t.method&&(c.contentType="multipart/form-data"),c.iid="",c.accountId=""),Object.keys(c).forEach((function(e){a.set(e,c[e])})),p=Ke(Ke({},t),{headers:a}),w.label=1;case 1:return w.trys.push([1,6,,7]),[4,fetch(e,p)];case 2:return h=w.sent(),console.log("Response:",h),h.ok?[3,4]:[4,h.json()];case 3:throw f=w.sent(),new Error(f.message||"Something went wrong");case 4:return[4,h.json()];case 5:return[2,w.sent()];case 6:throw g=w.sent(),console.error("Fetch error:",g),g;case 7:return[2]}}))}))};var tt=function(){return tt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},tt.apply(this,arguments)},nt=function(e,t,n,o){return new(n||(n=Promise))((function(s,i){function r(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?s(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(r,a)}l((o=o.apply(e,t||[])).next())}))},ot=function(e,t){var n,o,s,i,r={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(r=0)),r;)try{if(n=1,o&&(s=2&a[0]?o.return:a[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,a[1])).done)return s;switch(o=0,s&&(a=[2&a[0],s.value]),a[0]){case 0:case 1:s=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(s=r.trys,(s=s.length>0&&s[s.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]<s[3])){r.label=a[1];break}if(6===a[0]&&r.label<s[1]){r.label=s[1],s=a;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(a);break}s[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e],o=0}finally{n=s=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},st=function(e,t,n){if(n||2===arguments.length)for(var o,s=0,i=t.length;s<i;s++)!o&&s in t||(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))};function it(e){var t=this,n=e.hostInstance,o=ye({value:"",isEntered:!1}),s=o[0],i=o[1],r=ye(""),a=r[0],l=r[1],c=ye([]),u=c[0],d=c[1],p=ye({}),h=p[0],f=p[1],g=ye(!1),b=g[0],m=g[1],v=ye(null),y=v[0],_=v[1],x=ye(null),w=x[0],k=x[1],A=xe(null),I=ye(!0),N=I[0],T=I[1],S=ye(0),E=S[0],R=(S[1],ye([])),C=(R[0],R[1]),O=ye([]),M=O[0],F=O[1],q=ye(""),B=q[0],D=q[1],P=ye(!0),j=P[0],U=P[1],H=n.rootService;_e((function(){n.on("agentassistAgentResponse",(function(e){e&&(e.isSearch||u.length)&&G(e)}))}),[]),_e((function(){var e=setTimeout((function(){D(s.value)}),300);return function(){clearTimeout(e)}}),[s]),_e((function(){B&&z(B,{agentassisturl:"https://huddl-agentassist-dev.kore.ai/agentassist/api/v1/searchaccounts/autosearch?botId=st-083b8bee-f198-5b52-88ab-026bccb9f243"})}),[B]);var z=function(e,t){return ue=8,we((function(){return e}),t)}((function(e,o){return nt(t,void 0,void 0,(function(){var t,i,r,a,c,u,d,p,h;return ot(this,(function(f){switch(f.label){case 0:t=H.connectionDetails,t.botId,t.conversationId,i=t.channel,r={query:e,maxNumOfResults:3,lang:"en",experience:i},f.label=1;case 1:return f.trys.push([1,5,6,7]),[4,et(o.agentassisturl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},n)];case 2:return(a=f.sent())?[4,a]:[3,4];case 3:c=f.sent(),F(null==c?void 0:c.querySuggestions),C(null==c?void 0:c.typeAheads),(null===(h=null==c?void 0:c.typeAheads)||void 0===h?void 0:h.length)?(u=s.value.trim().split(" ").pop(),d=c.typeAheads[0],l(d?s.value.trim()+d.replace(u,""):s.value)):l(""),f.label=4;case 4:return[3,7];case 5:return p=f.sent(),console.error("Error fetching auto search results:",p),[3,7];case 6:return T(!0),[7];case 7:return[2]}}))}))}),[H,s.value]),W=function(e){V(e.target.value,!0),l("")};_e((function(){s.isEntered&&$(s.value,!0)}),[s]),_e((function(){Q()}),[h]);var V=function(e,t){void 0===t&&(t=!1),i({value:e,isEntered:t})},Y=function(){i({value:"",isEntered:!1}),l(""),m(!1),f({}),_(null)},$=function(e,t,o){var s,i;void 0===o&&(o={});var r=tt(tt({},null===(i=null===(s=null==n?void 0:n.socketConnection)||void 0===s?void 0:s.configOptions)||void 0===i?void 0:i.connectionDetails),{value:e,isSearch:t});r.interactiveLanguage&&"string"==typeof r.interactiveLanguage&&"''"!==r.interactiveLanguage&&(r.language=r.interactiveLanguage),o&&o.sourceMsgId&&(r.sourceMsgId=o.sourceMsgId);var a=n.prepareAgentAssistAgentRequestParams(r);k(new Date),a.startTime=y,a.endTime=w,n.socketConnection.emitEvents(Be.agent_assist_agent_request,a)},G=function(e){var t,n,o,s,i;if(m(!0),null==e?void 0:e.suggestions){if(0===u.length){var r=H.formatSearchResponse(e,!0);r&&Object.keys(r).length>0&&(r=tt(tt({},r),{totalSearchResults:((null===(t=r.dialogs)||void 0===t?void 0:t.length)||0)+((null===(n=r.faqs)||void 0===n?void 0:n.length)||0)+((null===(o=r.articles)||void 0===o?void 0:o.length)||0)+((null===(s=r.files)||void 0===s?void 0:s.length)||0)+((null===(i=r.snippets)||void 0===i?void 0:i.length)||0)}),J(),f(r))}else if(u.length>0){e.suggestions.faqs=H.formatFAQResponse(e.suggestions.faqs);var a=u.find((function(t){return t.input===e.suggestions.faqs[0].question}));if(a){var l=e.suggestions.faqs.reduce((function(e,t){return t.question===a.input?(e[t.question]=t,e):e}),{});f((function(e){return tt(tt({},e),{faqs:e.faqs.map((function(e){return l[e.question]&&l[e.question].answer&&(e.answer=l[e.question].answer),l[e.question]&&(e.showSpinner=!1),e}))})})),d((function(e){return e.filter((function(e){return e.input!==a.input}))}))}}}else f({})},Q=function(){var e,t,o,s,i,r;if(null===(e=null==h?void 0:h.articles)||void 0===e?void 0:e.length){var a;a=oe(We,{searchResponse:h,hostInstance:n,articles:h.articles},n),null===(t=document.getElementById("articleSuggestion"))||void 0===t||t.append(a)}if(null===(o=null==h?void 0:h.faqs)||void 0===o?void 0:o.length){var l;l=oe($e,{searchResponse:h,hostInstance:n,faqs:h.faqs},n),null===(s=document.getElementById("faqSuggestion"))||void 0===s||s.append(l)}if(null===(i=null==h?void 0:h.snippets)||void 0===i?void 0:i.length){var c;c=oe(Je,{searchResponse:h,hostInstance:n,snippets:h.snippets},n),null===(r=document.getElementById("snippetSuggestion"))||void 0===r||r.append(c)}},J=function(){var e,t=null===(e=h.faqs)||void 0===e?void 0:e.filter((function(e){return!e.answer}));1===(null==t?void 0:t.length)&&K(t[0])},K=function(e){e.toggle=!e.toggle,e.seeMoreWrapper=!1,X(e)},X=function(e){!e.answer&&e.toggle&&(d((function(t){return st(st([],t,!0),[{input:e.question}],!1)})),$(e.displayName,!1,e))};return L("div",{className:"search-block-data-suggestions-wrapper"},L("div",{class:"search-block-data-suggestions"},("{}"!==JSON.stringify(h)||b)&&L("div",{className:"suggestionslist-conntent-search"},L("div",{className:"sugestions-block"},L("div",{className:"suggestion-header"},L("div",{className:"icon_block"},L("figure",null,L("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Top Dialog Suggestion"}))),L("h1",{className:"aa-text-xxs semibold text-truncate"},"Article"),L("span",{className:"count-text aa-text-xxs"},"2"),L("span",{class:"by-n-ai"},L("span",{class:"snippet-by-label aa-desc-xxs"},"by"),L("i",{class:"krIocnsFont-Aimark"}))),L("div",{className:"suggestion-body-search"},L("div",{className:"suggestion-item-card"},L("div",{className:"suggestion-header-faq"},L("div",{className:"titles-info-sec"},L("h2",{className:"aa-text-xs"},"How to check eligibility for a Refund?"),L("div",{className:"aa-text-xs sent-msg-text"},"Sent")),L("div",{className:"action-buttons"},L("button",{className:"aa-solidbtn","aria-label":"button"},L("i",{className:"krIocnsFont-copy"})),L("button",{className:"aa-solidbtn aa-text-xxs","aria-label":"button"},"Send"))),L("div",{className:"suggestion-body-faq"},L("p",{className:"aa-desc-xs"},"Here is how to check your eligibility for refund : 1. Find the email of order confirmation. 2) Click on the link to view order. 3) Select the option to cancel the order"),L("div",{className:"souces-names-wrapper"},L("h1",{className:"aa-desc-xs"},"Sources :"),L("div",{className:"source-names"},L("div",{className:"source-tag"},L("span",null,"1"),L("a",null,"Microsoft.pdf")))),L("div",{className:"more-links-buttons"},L("button",{className:"more-link-text aa-text-xs"},"More")))),L("div",{className:"suggestion-item-card"},L("div",{className:"suggestion-header-faq"},L("div",{className:"titles-info-sec"},L("h2",{className:"aa-text-xs"},"How to check eligibility for a Refund?"),L("div",{className:"aa-text-xs sent-msg-text"},"Sent")),L("div",{className:"action-buttons"},L("button",{className:"aa-solidbtn","aria-label":"button"},L("i",{className:"krIocnsFont-copy"})),L("button",{className:"aa-solidbtn aa-text-xxs","aria-label":"button"},"Send"))),L("div",{className:"suggestion-body-faq"},L("p",{className:"aa-desc-xs"},"Here is how to check your eligibility for refund : 1. Find the email of order confirmation. 2) Click on the link to view order. 3) Select the option to cancel the order"),L("div",{className:"souces-names-wrapper"},L("h1",{className:"aa-desc-xs"},"Sources :"),L("div",{className:"source-names"},L("div",{className:"source-tag"},L("span",null,"1"),L("a",null,"Microsoft.pdf")))),L("div",{className:"more-links-buttons"},L("button",{className:"more-link-text aa-text-xs"},"More")))))),L("div",{class:"empty-search-container-wrapper aa-d-none"},L("figure",null,L("img",{src:"/src/assets/images/icons/search-empty.png"})),L("h1",{className:"aa-text-md m-0 center"},"No Search Result Found"),L("p",{className:"aa-desc-sm m-0 center"},'"Could you rephrase your question or ask something else?"'))),L("div",{className:"search-block-input",id:"searchBlockInput"},s.value&&(null==M?void 0:M.length)&&!j&&L("div",{className:"suggestions-info"},M.map((function(e){return L("button",{key:e,title:e,onClick:function(){!function(e){i({value:e,isEntered:!1}),l(""),W({target:{value:e}})}(e),U(!0)}},e)})),L("p",null,"Suggested")),L("div",{className:"input-block"},L("input",{ref:A,type:"text",className:"input-control","aria-describedby":"search",placeholder:"Ask a customer",value:s.value,onChange:function(e){i({value:e.target.value,isEntered:!1});var t=e.target.value;t.length>0?a===t||a.includes(t)?T(!0):T(!1):(T(!0),Y())},onKeyUp:function(e){return"Enter"===e.key&&W(e)}}),N&&0===E&&L("input",{tabIndex:-1,className:"input-control suggestion-input",value:a,readOnly:!0}),!s&&L("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},L("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33342 1.66675C4.65152 1.66675 1.66675 4.65152 1.66675 8.33342C1.66675 12.0153 4.65152 15.0001 8.33342 15.0001C9.87401 15.0001 11.2925 14.4775 12.4215 13.6L16.9108 18.0893C17.2363 18.4148 17.7639 18.4148 18.0893 18.0893C18.4148 17.7639 18.4148 17.2363 18.0893 16.9108L13.6 12.4215C14.4775 11.2925 15.0001 9.87401 15.0001 8.33342C15.0001 4.65152 12.0153 1.66675 8.33342 1.66675ZM3.33341 8.33342C3.33341 5.57199 5.57199 3.33341 8.33342 3.33341C11.0948 3.33341 13.3334 5.57199 13.3334 8.33342C13.3334 11.0948 11.0948 13.3334 8.33342 13.3334C5.57199 13.3334 3.33341 11.0948 3.33341 8.33342Z",fill:"#667085"})),s&&L("button",{className:"clear-search",onClick:Y},L("i",{className:"krIocnsFont-close-md"}))))))}var rt=n(9762),at={};at.styleTagTransform=b(),at.setAttributes=p(),at.insert=u().bind(null,"head"),at.domAPI=l(),at.insertStyleElement=f();r()(rt.A,at);rt.A&&rt.A.locals&&rt.A.locals;function lt(e){var t=ye(0);t[0],t[1];return L(F,null,L("div",{className:"transcript-tepmlate-wrapper"},L("div",{className:"transcript-tepmlate-data"},L("h1",{className:"transcript-header aa-text-md semibold"},"Transcript"),L("div",{className:"transcript-body-wrapper"},L("div",{className:"agent-joined-banner"},L("div",{className:"line-border"}),L("div",{className:"info-joined-details"},L("h4",{className:"aa-text-sm"},"Agent joined the conversation"),L("p",{className:"aa-desc-xs"},"Today at 2:45pm")),L("div",{className:"line-border"})),L("div",{className:"aa-bot-bubble-comp"},L("div",{className:"bot-bubble-content"},L("div",{className:"top-info"},L("div",{className:"you-text",title:"test4"},"Primary Bot"),L("div",{className:"time-tamp"},L("time",null,"2:32pm, Today"))),L("div",{className:"bubble-msg"},"I am closing our current conversation as I have not received any input from you. We can start over when you need."))),L("div",{className:"aa-agent-bubble-comp"},L("div",{className:"agent-bubble-content"},L("div",{className:"top-info"},L("div",{className:"time-tamp"},L("time",null,"06:21 pm, 11/07/24")),L("div",{className:"you-text"},"Winona")),L("div",{className:"bubble-msg"},"Hi Charlie. Yes, I need help with my current policy."))),L("div",{className:"summery-wrapper"},L("div",{className:"summery-header"},L("i",{className:"krIocnsFont-Aimark"}),L("span",{className:"aa-text-md medium"},"SUMMARY")),L("p",{className:"aa-text-sm"},"Customer states that their loan repayment amount is too high. Customer wants to see if there is a way to reduce loan repayment amount"))))))}var ct=n(9144),ut={};ut.styleTagTransform=b(),ut.setAttributes=p(),ut.insert=u().bind(null,"head"),ut.domAPI=l(),ut.insertStyleElement=f();r()(ct.A,ut);ct.A&&ct.A.locals&&ct.A.locals;var dt=function(e){return L("div",{className:"widget-header-sec"},L("div",{className:"logo-sec"},L("figure",null,L("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},L("path",{d:"M3 8.33333L3 11.6667M6.75 5L6.75 15M10.5 2.5V17.5M14.25 5V15M18 8.33333V11.6667",stroke:"#101828","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})))),L("div",{className:"right-chart-data"},L("div",{className:"aa-toggle-switch"},L("input",{type:"checkbox",checked:!0}),L("button",{className:"aa-slider"},L("div",{className:"slide-parent"},L("div",{className:"slider-btn"})),L("div",{class:"aa-text-xs"},"Proactive Mode")))))};function pt(e){var t=ye(Re.ASSIST),n=t[0],o=t[1],s=ye("light"),i=s[0],r=s[1],a=e.connectionDetails,l=e.hostInstance;return _e((function(){})),L("div",{className:"agentassist-widget-main-chat-container-wrapper","aria-label":"agent-window-section"},L("section",{className:"section-agent-aa-wrapper"},L("header",null,L(dt,null)),L("section",{className:"body-container-aa"},n===Re.ASSIST&&L(qe,{hostInstance:l}),n===Re.SEARCH&&L(it,{hostInstance:l}),n===Re.TRANSCRIPT&&L(lt,{hostInstance:l}),n===Re.MYBOT&&L(qe,null)),L("footer",null,L(Fe,{tabsNTitles:[{type:"srch",title:"Search"},{type:"mB",title:"My Bot"},{type:"ast",title:"Assist"},{type:"trnspt",title:"Transcript"}],selectedTab:n,showTranscript:!0,connectionDetails:a,sourceDesktop:"SomeSource",hideUserBotHistory:!1,changeTab:function(e){o(e)},projConstants:Re,selectedTheme:i,chooseTheme:function(){r("light"===i?"dark":"light")},hostInstance:l}))))}const ht=Object.create(null);ht.open="0",ht.close="1",ht.ping="2",ht.pong="3",ht.message="4",ht.upgrade="5",ht.noop="6";const ft=Object.create(null);Object.keys(ht).forEach((e=>{ft[ht[e]]=e}));const gt={type:"error",data:"parser error"},bt="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),mt="function"==typeof ArrayBuffer,vt=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,yt=({type:e,data:t},n,o)=>bt&&t instanceof Blob?n?o(t):_t(t,o):mt&&(t instanceof ArrayBuffer||vt(t))?n?o(t):_t(new Blob([t]),o):o(ht[e]+(t||"")),_t=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function xt(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let wt;const kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",At="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)At[kt.charCodeAt(e)]=e;const It="function"==typeof ArrayBuffer,Nt=(e,t)=>{if("string"!=typeof e)return{type:"message",data:St(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:Tt(e.substring(1),t)};return ft[n]?e.length>1?{type:ft[n],data:e.substring(1)}:{type:ft[n]}:gt},Tt=(e,t)=>{if(It){const n=(e=>{let t,n,o,s,i,r=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(r--,"="===e[e.length-2]&&r--);const c=new ArrayBuffer(r),u=new Uint8Array(c);for(t=0;t<a;t+=4)n=At[e.charCodeAt(t)],o=At[e.charCodeAt(t+1)],s=At[e.charCodeAt(t+2)],i=At[e.charCodeAt(t+3)],u[l++]=n<<2|o>>4,u[l++]=(15&o)<<4|s>>2,u[l++]=(3&s)<<6|63&i;return c})(e);return St(n,t)}return{base64:!0,data:e}},St=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Et=String.fromCharCode(30);function Rt(){return new TransformStream({transform(e,t){!function(e,t){bt&&e.data instanceof Blob?e.data.arrayBuffer().then(xt).then(t):mt&&(e.data instanceof ArrayBuffer||vt(e.data))?t(xt(e.data)):yt(e,!1,(e=>{wt||(wt=new TextEncoder),t(wt.encode(e))}))}(e,(n=>{const o=n.length;let s;if(o<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,o);else if(o<65536){s=new Uint8Array(3);const e=new DataView(s.buffer);e.setUint8(0,126),e.setUint16(1,o)}else{s=new Uint8Array(9);const e=new DataView(s.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(o))}e.data&&"string"!=typeof e.data&&(s[0]|=128),t.enqueue(s),t.enqueue(n)}))}})}let Ct;function Ot(e){return e.reduce(((e,t)=>e+t.length),0)}function Lt(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let o=0;for(let s=0;s<t;s++)n[s]=e[0][o++],o===e[0].length&&(e.shift(),o=0);return e.length&&o<e[0].length&&(e[0]=e[0].slice(o)),n}function Mt(e){if(e)return function(e){for(var t in Mt.prototype)e[t]=Mt.prototype[t];return e}(e)}Mt.prototype.on=Mt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Mt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Mt.prototype.off=Mt.prototype.removeListener=Mt.prototype.removeAllListeners=Mt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,o=this._callbacks["$"+e];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<o.length;s++)if((n=o[s])===t||n.fn===t){o.splice(s,1);break}return 0===o.length&&delete this._callbacks["$"+e],this},Mt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(n){o=0;for(var s=(n=n.slice(0)).length;o<s;++o)n[o].apply(this,t)}return this},Mt.prototype.emitReserved=Mt.prototype.emit,Mt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Mt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ft="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function qt(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const Bt=Ft.setTimeout,Dt=Ft.clearTimeout;function Pt(e,t){t.useNativeTimers?(e.setTimeoutFn=Bt.bind(Ft),e.clearTimeoutFn=Dt.bind(Ft)):(e.setTimeoutFn=Ft.setTimeout.bind(Ft),e.clearTimeoutFn=Ft.clearTimeout.bind(Ft))}class jt extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class Ut extends Mt{constructor(e){super(),this.writable=!1,Pt(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new jt(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Nt(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const Ht="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),zt=64,Wt={};let Vt,Yt=0,$t=0;function Gt(e){let t="";do{t=Ht[e%zt]+t,e=Math.floor(e/zt)}while(e>0);return t}function Qt(){const e=Gt(+new Date);return e!==Vt?(Yt=0,Vt=e):e+"."+Gt(Yt++)}for(;$t<zt;$t++)Wt[Ht[$t]]=$t;let Jt=!1;try{Jt="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const Kt=Jt;function Xt(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||Kt))return new XMLHttpRequest}catch(e){}if(!t)try{return new(Ft[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function Zt(){}const en=null!=new Xt({xdomain:!1}).responseType;class tn extends Mt{constructor(e,t){super(),Pt(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=qt(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new Xt(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=tn.requestsCount++,tn.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Zt,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete tn.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(tn.requestsCount=0,tn.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",nn);else if("function"==typeof addEventListener){addEventListener("onpagehide"in Ft?"pagehide":"unload",nn,!1)}function nn(){for(let e in tn.requests)tn.requests.hasOwnProperty(e)&&tn.requests[e].abort()}const on="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),sn=Ft.WebSocket||Ft.MozWebSocket,rn="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const an={websocket:class extends Ut{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=rn?{}:qt(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=rn?new sn(e,t,n):t?new sn(e,t):new sn(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],o=t===e.length-1;yt(n,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(e){}o&&on((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Qt()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!sn}},webtransport:class extends Ut{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){Ct||(Ct=new TextDecoder);const n=[];let o=0,s=-1,i=!1;return new TransformStream({transform(r,a){for(n.push(r);;){if(0===o){if(Ot(n)<1)break;const e=Lt(n,1);i=!(128&~e[0]),s=127&e[0],o=s<126?3:126===s?1:2}else if(1===o){if(Ot(n)<2)break;const e=Lt(n,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),o=3}else if(2===o){if(Ot(n)<8)break;const e=Lt(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){a.enqueue(gt);break}s=i*Math.pow(2,32)+t.getUint32(4),o=3}else{if(Ot(n)<s)break;const e=Lt(n,s);a.enqueue(Nt(i?e:Ct.decode(e),t)),o=0}if(0===s||s>e){a.enqueue(gt);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=Rt();o.readable.pipeTo(e.writable),this.writer=o.writable.getWriter();const s=()=>{n.read().then((({done:e,value:t})=>{e||(this.onPacket(t),s())})).catch((e=>{}))};s();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],o=t===e.length-1;this.writer.write(n).then((()=>{o&&on((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends Ut{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=en&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(Et),o=[];for(let e=0;e<n.length;e++){const s=Nt(n[e],t);if(o.push(s),"error"===s.type)break}return o})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,o=new Array(n);let s=0;e.forEach(((e,i)=>{yt(e,!1,(e=>{o[i]=e,++s===n&&t(o.join(Et))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Qt()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new tn(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},ln=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,cn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function un(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));let s=ln.exec(e||""),i={},r=14;for(;r--;)i[cn[r]]=s[r]||"";return-1!=n&&-1!=o&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=/\/{2,9}/g,o=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||o.splice(0,1);"/"==t.slice(-1)&&o.splice(o.length-1,1);return o}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}(0,i.query),i}class dn extends Mt{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=un(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=un(t.host).host),Pt(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,o=n.length;e<o;e++){let o=n[e].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new an[e](n)}open(){let e;if(this.opts.rememberUpgrade&&dn.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),n=!1;dn.priorWebsocketSuccess=!1;const o=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;dn.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function s(){n||(n=!0,c(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,s(),this.emitReserved("upgradeError",n)};function r(){i("transport closed")}function a(){i("socket closed")}function l(e){t&&e.name!==t.name&&s()}const c=()=>{t.removeListener("open",o),t.removeListener("error",i),t.removeListener("close",r),this.off("close",a),this.off("upgrading",l)};t.once("open",o),t.once("error",i),t.once("close",r),this.once("close",a),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",dn.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const o=this.writeBuffer[n].data;if(o&&(e+="string"==typeof(t=o)?function(e){let t=0,n=0;for(let o=0,s=e.length;o<s;o++)t=e.charCodeAt(o),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(o++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,o){if("function"==typeof t&&(o=t,t=void 0),"function"==typeof n&&(o=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const s={type:e,data:t,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){dn.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const o=e.length;for(;n<o;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}dn.protocol=4;dn.protocol;const pn="function"==typeof ArrayBuffer,hn=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,fn=Object.prototype.toString,gn="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===fn.call(Blob),bn="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===fn.call(File);function mn(e){return pn&&(e instanceof ArrayBuffer||hn(e))||gn&&e instanceof Blob||bn&&e instanceof File}function vn(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(vn(e[t]))return!0;return!1}if(mn(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return vn(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&vn(e[t]))return!0;return!1}function yn(e){const t=[],n=e.data,o=e;return o.data=_n(n,t),o.attachments=t.length,{packet:o,buffers:t}}function _n(e,t){if(!e)return e;if(mn(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let o=0;o<e.length;o++)n[o]=_n(e[o],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=_n(e[o],t));return n}return e}function xn(e,t){return e.data=wn(e.data,t),delete e.attachments,e}function wn(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=wn(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=wn(e[n],t));return e}const kn=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],An=5;var In;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(In||(In={}));class Nn{constructor(e){this.replacer=e}encode(e){return e.type!==In.EVENT&&e.type!==In.ACK||!vn(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===In.EVENT?In.BINARY_EVENT:In.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==In.BINARY_EVENT&&e.type!==In.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=yn(e),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}}function Tn(e){return"[object Object]"===Object.prototype.toString.call(e)}class Sn extends Mt{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===In.BINARY_EVENT;n||t.type===In.BINARY_ACK?(t.type=n?In.EVENT:In.ACK,this.reconstructor=new En(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!mn(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===In[n.type])throw new Error("unknown packet type "+n.type);if(n.type===In.BINARY_EVENT||n.type===In.BINARY_ACK){const o=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const s=e.substring(o,t);if(s!=Number(s)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(s)}if("/"===e.charAt(t+1)){const o=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(o,t)}else n.nsp="/";const o=e.charAt(t+1);if(""!==o&&Number(o)==o){const o=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=this.tryParse(e.substr(t));if(!Sn.isPayloadValid(n.type,o))throw new Error("invalid payload");n.data=o}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case In.CONNECT:return Tn(t);case In.DISCONNECT:return void 0===t;case In.CONNECT_ERROR:return"string"==typeof t||Tn(t);case In.EVENT:case In.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===kn.indexOf(t[0]));case In.ACK:case In.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class En{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=xn(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Rn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Cn=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class On extends Mt{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Rn(e,"open",this.onopen.bind(this)),Rn(e,"packet",this.onpacket.bind(this)),Rn(e,"error",this.onerror.bind(this)),Rn(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(Cn.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:In.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,o=t.pop();this._registerAckCallback(e,o),n.id=e}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const o=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===o)return void(this.acks[e]=t);const s=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),o),i=(...e)=>{this.io.clearTimeoutFn(s),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise(((n,o)=>{const s=(e,t)=>e?o(e):n(t);s.withError=!0,t.push(s),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...o)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...o)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:In.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case In.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case In.EVENT:case In.BINARY_EVENT:this.onevent(e);break;case In.ACK:case In.BINARY_ACK:this.onack(e);break;case In.DISCONNECT:this.ondisconnect();break;case In.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...o){n||(n=!0,t.packet({type:In.ACK,id:e,data:o}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:In.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function Ln(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ln.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},Ln.prototype.reset=function(){this.attempts=0},Ln.prototype.setMin=function(e){this.ms=e},Ln.prototype.setMax=function(e){this.max=e},Ln.prototype.setJitter=function(e){this.jitter=e};class Mn extends Mt{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,Pt(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new Ln({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||s;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new dn(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=Rn(t,"open",(function(){n.onopen(),e&&e()})),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=Rn(t,"error",s);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{o(),s(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Rn(e,"ping",this.onping.bind(this)),Rn(e,"data",this.ondata.bind(this)),Rn(e,"error",this.onerror.bind(this)),Rn(e,"close",this.onclose.bind(this)),Rn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){on((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new On(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Fn={};function qn(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=un(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const s=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+t,o.href=o.protocol+"://"+s+(n&&n.port===o.port?"":":"+o.port),o}(e,(t=t||{}).path||"/socket.io"),o=n.source,s=n.id,i=n.path,r=Fn[s]&&i in Fn[s].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||r?a=new Mn(o,t):(Fn[s]||(Fn[s]=new Mn(o,t)),a=Fn[s]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(qn,{Manager:Mn,Socket:On,io:qn,connect:qn});const Bn=function(){function e(e){this.hostIns=e}return e.prototype.socketConnection=function(e){var t=this;this.configOptions=e;var n={url:"https://huddl-agentassist-dev.kore.ai/koreagentassist",options:{path:"/agentassist/api/v1/chat",autoConnect:!1,transports:["websocket","polling","flashsocket"],reconnection:!0,reconnectionDelay:5e3,reconnectionAttempts:13,query:{jToken:e.token}}};this._agentAssistSocket=qn(n.url,n.options),this._agentAssistSocket.connect(),this.listenEvents(),this._agentAssistSocket.on("connect",(function(){t.hostIns.emit("beforeWSSendMessage",e)}))},e.prototype.emitEvents=function(e,t,n){void 0===n&&(n=!1);var o=this.configOptions.connectionDetails,s=o.fromSAT,i=o.source,r=(o.isCall,o.autoBotId,o.channel),a=o.interactiveLanguage,l=o.botId;t&&(t.isExtAD=!s,t.source=i,t.experience=r,t.traceId=n&&t.traceId?t.traceId:"ua-6bd75af6-e53a-43ab-b676-58a33ee3f0f9",t.language=a),"internal_transfer"==e&&(t.botId=l),this._agentAssistSocket.emit(e,t)},e.prototype.listenEvents=function(){var e=this;this._agentAssistSocket.on(Be.agent_assist_response,(function(t){console.log("agent assist response",t),e.hostIns.emit("agentAssistRespone",t)})),this._agentAssistSocket.on(Be.agent_menu_response,(function(e){console.log("menu response",e)})),this._agentAssistSocket.on(Be.agent_coaching_response,(function(e){})),this._agentAssistSocket.on(Be.checklist_step_response,(function(e){})),this._agentAssistSocket.on(Be.checklist_response,(function(e){})),this._agentAssistSocket.on(Be.realtime_sentiment_response,(function(e){})),this._agentAssistSocket.on(Be.agent_assist_agent_response,(function(t){e.hostIns.emit("agentassistAgentResponse",t)})),this._agentAssistSocket.on(Be.agent_assist_endoftask,(function(e){})),this._agentAssistSocket.on(Be.user_message,(function(e){})),this._agentAssistSocket.on(Be.agent_message,(function(e){})),this._agentAssistSocket.on(Be.agent_assist_user_message,(function(e){})),this._agentAssistSocket.on(Be.agent_feedback_response,(function(e){})),this._agentAssistSocket.on(Be.response_resolution_comments,(function(e){})),this._agentAssistSocket.on(Be.agentassist_control_response,(function(e){}))},e}();var Dn=function(){function e(){this.grantResponseObj={},this.prefsAccessObj={tabsNTitles:[],prefs:{}},this.connectionDetails={},this.settingsData={},this.numOfLines=4,this.maxHeight="max-content",this.scrollHeight=Number.MAX_VALUE}return e.prototype.formatSearchResponse=function(e,t){var n,o,s,i,r,a,l,c,u,d,p,h,f;void 0===t&&(t=!1);var g=e.suggestions,b=g.dialogs||[],m=g.faqs||[],v=this.formatSnippetResponse((null===(n=null==g?void 0:g.searchassist)||void 0===n?void 0:n.snippets)||[],e),y=(null===(o=null==g?void 0:g.searchassist)||void 0===o?void 0:o.files)||[],_={};(null==g?void 0:g.searchassist)&&(null===(s=null==g?void 0:g.searchassist)||void 0===s?void 0:s.snippets)&&0==(null===(r=null===(i=null==g?void 0:g.searchassist)||void 0===i?void 0:i.snippets)||void 0===r?void 0:r.length)&&delete g.searchassist.snippets;var x=Object.keys((null==g?void 0:g.searchassist)||{});if((null==g?void 0:g.searchassist)&&1==(null==x?void 0:x.length)&&"searchRequestId"===x[0]&&(g.searchassist={}),b.length||m.length||v.length||y.length||(null==g?void 0:g.searchassist)&&(null===(a=Object.keys(null==g?void 0:g.searchassist))||void 0===a?void 0:a.length)){if(_.dialogs=[],_.faqs=[],_.articles=[],_.snippets=[],_.files=[],g.searchassist&&(null===(l=Object.keys(g.searchassist))||void 0===l?void 0:l.length)>0){var w=function(e){"snippets"!=e&&"file"!=e&&"searchRequestId"!=e&&(g.searchassist[e]=k.checkEmptyObjectsInArray(g.searchassist[e]),g.searchassist[e]&&(null===(c=Object.keys(g.searchassist[e]))||void 0===c?void 0:c.length)>0&&_.articles.push.apply(_.articles,g.searchassist[e])),"file"==e&&(g.searchassist[e]=k.checkEmptyObjectsInArray(g.searchassist[e]),g.searchassist[e]&&(null===(u=Object.keys(g.searchassist[e]))||void 0===u?void 0:u.length)>0&&_.files.push.apply(_.files,g.searchassist[e])),e&&"searchRequestId"!=e&&(null===(d=null==g?void 0:g.searchassist[e])||void 0===d||d.forEach((function(t){t.subType=e})))},k=this;for(var A in g.searchassist)w(A);for(var I=0,N=_.articles;I<N.length;I++){var T=N[I];T.showMoreButton=!0,T.showLessButton=!1,T.content=T.content?T.content:"",T.contentId=T.contentId,T.userInput=e.userInput,T.sourceMsgId=e.sourceMsgId||"",T.subType=T.subType,T.intType=t?"mybot":"assist",T.feedbackData=this.prepareFeedbackForSuggestions("article",T,{})}for(var S=0,E=_.files;S<E.length;S++){var R=E[S];R.showMoreButton=!0,R.showLessButton=!1,R.content=R.content?R.content:"",R.contentId=R.contentId,R.userInput=e.userInput,R.sourceMsgId=e.sourceMsgId||"",R.subType=R.subType,R.intType=t?"mybot":"assist",R.feedbackData=this.prepareFeedbackForSuggestions("file",R,{})}}for(var C=0,O=m;C<O.length;C++){var L=O[C],M={question:L.question,displayName:L.displayName,taskRefId:null==L?void 0:L.taskRefId,answer:!!(L.answer&&L.answer.length>0)&&[],showMoreButton:!0,showLessButton:!1,answerRender:L.answer||!1,childBotId:L.childBotId,childBotName:L.childBotName,answerCount:1,sourceMsgId:e.sourceMsgId||"",positionId:L.positionId,userInput:e.userInput,intType:e.intType};if(L.answer&&L.answer.length>0)for(var F=0,q=L.answer;F<q.length;F++){var B={ans:q[F],taskRefId:L.taskRefId,showMoreButton:!0,showLessButton:!1,displayName:L.displayName,sourceMsgId:e.sourceMsgId||"",positionId:L.positionId};M.answer.push(B)}var D=L.historyFeedback?L.historyFeedback:{};M.feedbackData=this.prepareFeedbackForSuggestions("faqs",M,D),M.feedbackData.interactionType=t?"mybot":"assist",_.faqs.push(M)}if((null===(h=null===(p=null==g?void 0:g.searchassist)||void 0===p?void 0:p.snippets)||void 0===h?void 0:h.length)>0){(null==v?void 0:v.length)>0&&(_.snippets=Object.assign([],v));for(var P=0,j=_.snippets;P<j.length;P++){var U=j[P];U.showMoreButton=!0,U.showLessButton=!1,U.subType="snippets"}}for(var H=0,z=b;H<z.length;H++){var W=z[H];W.entities&&(null===(f=W.entities)||void 0===f?void 0:f.length)>0&&W.entities.forEach((function(e){e.editMode=!1})),_.dialogs.push({name:W.name,agentRunButton:!1,childBotId:W.childBotId,childBotName:W.childBotName,entities:W.entities,userInput:e.userInput,sourceMsgId:e.sourceMsgId||""})}}return _},e.prototype.formatSnippetResponse=function(e,t){var n,o={contentArray:[],sources:[],internalInfo:[],sendCopyText:""},s=[];if((null==e?void 0:e.length)>0){e.forEach((function(e){var n;if(null==e?void 0:e.templateType){if("active_citation_snippet"==e.templateType||"citation_snippet"==e.templateType)(null==e?void 0:e.content)&&Array.isArray(null==e?void 0:e.content)&&(null===(n=null==e?void 0:e.content)||void 0===n?void 0:n.length)>0&&e.content.forEach((function(t){var n={ans:t.answer_fragment,sources:(null==t?void 0:t.sources)||[],internalFlag:e.internalFlag};o.contentArray.push(n),o.internalFlag=e.internalFlag||!1,o.isActCit=!0}));else if(null==e?void 0:e.content){Array.isArray(null==e?void 0:e.content)&&(e.content=null==e?void 0:e.content.join("\n")),o.internalFlag=e.internalFlag||!1;var s={ans:e.content,internalFlag:e.internalFlag};e.url&&(s.sources=[{title:e.source,url:e.url}]),o.contentArray.push(s)}o.templateType=e.templateType,o.positionId=e.positionId,o.sourceMsgId=t.sourceMsgId||"",o.intType=t.intType,o.isFromGeneratedSummary=t.isFromGeneratedSummary,o.userInput=t.userInput||""}}));var i="",r="",a=[];null===(n=o.contentArray)||void 0===n||n.forEach((function(e){var t,n,s="";(t=o.sources).push.apply(t,((null==e?void 0:e.sources)||[]).filter((function(e){var t=e.url&&-1==a.indexOf(e.title);return t&&a.push(e.title),-1!=a.indexOf(e.title)&&(s+="fragment-ext-".concat(a.indexOf(e.title)+1," ")),t}))),e.internalFlag||(o.sendCopyText+=e.ans);var l='<span class="'.concat(s,'">').concat(e.ans," ");if(Array.isArray(null==e?void 0:e.sources)&&(null===(n=null==e?void 0:e.sources)||void 0===n?void 0:n.length))for(var c=0,u=null==e?void 0:e.sources;c<u.length;c++){var d=u[c];if((null==d?void 0:d.title)&&-1!=a.indexOf(null==d?void 0:d.title)){var p=a.indexOf(d.title);l+='<span class="source-count-num">'.concat(p+1,"</span>")}}l+="</span>",e.internalFlag?r+=l:i+=l})),o.contentArray=[],o.internalInfo=[],(null==r?void 0:r.trim())&&o.internalInfo.push(null==r?void 0:r.trim()),(null==i?void 0:i.trim())&&o.contentArray.push(null==i?void 0:i.trim()),o.feedbackData=this.prepareFeedbackForSuggestions("answer",o,{}),s.push(o)}return s},e.prototype.prepareFeedbackForSuggestions=function(e,t,n){var o,s,i;void 0===n&&(n={});var r={type:Ce,connectionDetails:this.connectionDetails,positionId:t.positionId,submitForm:!!(null==n?void 0:n.feedback),feedback:(null==n?void 0:n.feedback)?n.feedback:"",feedbackDetails:(null===(o=null==n?void 0:n.feedbackDetails)||void 0===o?void 0:o.length)?n.feedbackDetails:[],comment:(null==n?void 0:n.comment)?null==n?void 0:n.comment:"",sourceMsgId:t.sourceMsgId||"",query:t.userInput,suggestionType:e,dialogPositionId:t.positionId,subType:t.subType||""};if("answer"==e)r.isFromGeneratedSummary=t.isFromGeneratedSummary,r.answerType=t.templateType,r.title=t.title,r.answer=t.sendCopyText||"",r.interactionType=t.intType,r.sources=t.sources,(null===(s=t.internalInfo)||void 0===s?void 0:s.length)>0&&(r.answer+=t.internalInfo.join(" "));else if("article"==e||"file"==e)r.title=t.title,r.answer=t.content||"",r.interactionType=t.intType;else if("faqs"==e){var a="";Array.isArray(null==t?void 0:t.answer)&&(null===(i=null==t?void 0:t.answer)||void 0===i||i.forEach((function(e){a+=e.ans}))),r.title=t.question,r.answer=a}return r},e.prototype.checkEmptyObjectsInArray=function(e){return e=e.filter((function(e){var t;return e&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&(e.title||e.content)}))},e.prototype.formatFAQResponse=function(e){for(var t=[],n=0,o=e;n<o.length;n++){var s=o[n],i={question:s.question,taskRefId:null==s?void 0:s.taskRefId,answer:!!(s.answer&&s.answer.length>0)&&[]};if(s.answer&&s.answer.length>0)for(var r=0,a=s.answer;r<a.length;r++){var l=a[r],c={taskRefId:s.taskRefId,ans:l,showMoreButton:!0,showLessButton:!1};i.answer.push(c)}t.push(i)}return t},e.prototype.openurlInBrowser=function(e){var t,n,o;if((null===(t=this.settingsData)||void 0===t?void 0:t.urlOpenBehaviour)&&(null===(o=null===(n=this.settingsData)||void 0===n?void 0:n.urlOpenBehaviour)||void 0===o?void 0:o.sendPostEvent)){var s={method:"AgentAssist.UrlClickedMessage",from:"agent_assist",url:e};window.parent.postMessage(s,"*")}else window.open(e,"_blank")},e.prototype.extractTextFromElement=function(e){var t="";if(e){var n=function(e){if(e.nodeType===Node.TEXT_NODE)t+=e.textContent;else if(e.nodeType===Node.ELEMENT_NODE)for(var o=e.childNodes,s=0;s<o.length;s++)n(o[s])};n(e)}return t.trim()},e}();const Pn=Dn;var jn,Un=(jn=function(e,t){return jn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},jn(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}jn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Hn=function(e){function t(){return e.call(this)||this}return Un(t,e),t.prototype.show=function(e){this.initShow(e)},t.prototype.initShow=function(e){var t,n=this;this.socketConnection=new Bn(this),this.rootService=new Pn,this.JWTSetup(e).then((function(e){return e.ok?e.json():e.json().then((function(e){throw new Error(e)}))})).then((function(t){n.rootService.grantResponseObj=t,e.JWT_RESP=t,n.socketConnection.configOptions=e,n.rootService.connectionDetails=e.connectionDetails,n.socketConnection.socketConnection(e),n.bindEvents()})).catch((function(e){})),console.log("inside jew setup"),t=oe(pt,{},this),this.chatEle=t,this.render(t)},t.prototype.JWTSetup=function(e){var t={assertion:e.connectionDetails.token,botInfo:e.botInfo,token:{}};return fetch(e.JWTUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})},t.prototype.render=function(e){document.getElementsByTagName("body")[0].append(e)},t.prototype.bindEvents=function(){var e=this;this.on("beforeWSSendMessage",(function(t){console.log("🚀 ~ aaWindow ~ this.on ~ config:",t),e.commonEmitEvents(t)}))},t.prototype.commonEmitEvents=function(e){var t,n,o=null==e?void 0:e.connectionDetails,s=o.botId,i=o.conversationId,r=(o.isCall,o.autoBotId),a=o.interactiveLanguage,l=o.userName,c=o.customData,u=o.token,d=o.channel,p="",h="",f="";c&&(null===(t=Object.keys(c))||void 0===t?void 0:t.length)>0&&"smartassist-color-scheme"!==(null===(n=null==e?void 0:e.connectionDetails)||void 0===n?void 0:n.source)&&(p=c),null!=a&&"''"!==a&&(h=a),r&&"undefined"!==r&&(f=r);var g={waitTime:2e3,userName:l,id:i,isSendWelcomeMessage:!0,agentassistInfo:{},botId:s,sendMenuRequest:!0,uId:"",sId:"",experience:d,jToken:u,conversationId:i,autoBotId:f,language:h,allQueryParams:null==e?void 0:e.connectionDetials,customData:p};this.welComeMsgReq(g);var b={botId:s,conversationId:i,experience:d,autoBotId:f,language:h};this.menuReq(b)},t.prototype.prepareAgentAssistAgentRequestParams=function(e){var t,n,o,s,i,r=null===(n=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===n?void 0:n.connectionDetails,a={isSearch:e.isSearch,conversationId:e.conversationId,query:e.value,botId:e.botId,experience:null==r?void 0:r.channel,positionId:null==e?void 0:e.positionId,childBotId:(null==e?void 0:e.childBotId)||"",childBotName:(null==e?void 0:e.childBotName)||"",intType:"myBot"};return e.intentName&&(a.intentName=e.intentName),(null==r?void 0:r.autoBotId)&&"undefined"!==(null==r?void 0:r.autoBotId)?a.autoBotId=r.autoBotId:a.autoBotId="",e.intentName&&e.userInput&&(a.query=e.userInput),Array.isArray(e.traits)&&(null===(o=null==e?void 0:e.traits)||void 0===o?void 0:o.length)&&(a.traits=e.traits),e.taskRefId&&(a.taskRefId=e.taskRefId),e.dialogId&&(a.dialogId=e.dialogId),e.isDiscard&&(a.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(a.query=(null===(i=null===(s=null==e?void 0:e.attachments[0])||void 0===s?void 0:s.url)||void 0===i?void 0:i.fileUrl)||"",a.attachments=null==e?void 0:e.attachments),a=this.addSourceMsgIdToRequestParams(e,a)},t.prototype.addSourceMsgIdToRequestParams=function(e,t){return e.sourceMsgId&&("fromLibrary"==e.sourceMsgId?t.fromLibrary=!0:t.sourceMsgId=e.sourceMsgId),t},t.prototype.welComeMsgReq=function(e){this.socketConnection.emitEvents(Be.welcome_message_request,e)},t.prototype.menuReq=function(e){this.socketConnection.emitEvents(Be.agent_menu_request,e)},t}(N);const zn=Hn;const Wn={aaParams:{JWTUrl:"https://huddl-agentassist-dev.kore.ai/api/1.1/oAuth/token/jwtgrant",assertion:"",botInfo:{chatBot:"sample Bot",taskBotId:""},token:{}},container:"body",branding:{general:{},footer:{}}};return o})()));
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@koredev/agentai-web-sdk","version":"1.0.
|
|
1
|
+
{"name":"@koredev/agentai-web-sdk","version":"1.0.1-rc","description":"","main":"index.js","author":"sathish rambathini","license":"ISC"}
|