@koredev/agentai-web-sdk 1.1.1-rc → 1.1.2-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.
@@ -1 +1 @@
1
- var e={958:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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;cursor:pointer}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}.aa-hidden{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}.aa_btn{padding:4px 14px;height:30px;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);box-shadow:0px 1px 2px 0px rgba(16,24,40,.05);display:inline-flex;align-items:center;justify-content:center;text-align:center;color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;transition:.2s all ease}.aa_btn.w-100{width:100%}.aa_btn:disabled{opacity:.3}.primaryBtn{border:1px solid var(--AA-global-theme-text-color);background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.primaryBtn:focus{box-shadow:0px 0px 0px 4px #eff4ff,0px 1px 2px 0px rgba(16,24,40,.05)}.primaryBtn:active{box-shadow:0px 0px 0px 4px #eff4ff,0px 1px 2px 0px rgba(16,24,40,.05)}.primaryBtn:hover{border:1px solid var(--AA-global-theme-bg);background:var(--AA-global-theme-bg)}.h_100{height:100%}@keyframes bottomToTopMove{0%{opacity:0;transform:translateY(100%);display:none}60%{display:none;opacity:0}100%{opacity:1;display:block;transform:translateY(0%)}}.animate-compo-slide-up-wrapper{height:100%;animation-name:bottomToTopMove;animation-duration:.5s;animation-fill-mode:forwards}: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 r=a},773:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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%;position:relative;overflow:hidden;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)}@-webkit-keyframes NudgeslideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes NudgeslideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.nudges-wrapper-fixed{position:absolute;width:100%;height:auto;z-index:9999;max-width:418px;margin:0 auto;left:0;right:0;display:flex;align-items:flex-start;justify-content:center;top:40px;padding:10px 16px;-webkit-animation-name:NudgeslideInDown;animation-name:NudgeslideInDown;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.nudges-wrapper-fixed .nudges-template-data{display:flex;flex-direction:column;gap:6px}.nudges-wrapper-fixed .nudges-template-data .nudges-card{border-radius:24px;background:var(--success-500-main, #22C55E);box-shadow:15px 15px 26px 0px rgba(0,0,0,.15);display:flex;align-items:center;padding:6px 16px;gap:6px}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge{background:var(--AA-gloabl-border)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge p{color:var(--AA-gloabl-text-color)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge .close-nudge svg path{stroke:#000}.nudges-wrapper-fixed .nudges-template-data .nudges-card.warning-nudge{background:var(--warning-500-main, #F59E0B)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.danger-nudge{background:var(--destructive-500-main, #EF4444)}.nudges-wrapper-fixed .nudges-template-data .nudges-card .icon_block{flex-shrink:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:var(--AA-global-white-color)}.nudges-wrapper-fixed .nudges-template-data .nudges-card .icon_block svg path{fill:#fff}.nudges-wrapper-fixed .nudges-template-data .nudges-card p{color:var(--AA-global-white-color);font-size:14px;font-weight:500;line-height:20px;margin:0;width:100%}.nudges-wrapper-fixed .nudges-template-data .nudges-card .close-nudge{width:16px;height:16px;background:rgba(0,0,0,0);padding:0;border:0;display:flex;align-items:center;justify-content:center;color:var(--AA-global-white-color);font-size:16px}.nudges-wrapper-fixed .nudges-template-data .nudges-card .close-nudge svg path{stroke:#fff}@-webkit-keyframes HintslideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes HintslideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes shakeHint{0%,100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px, 0, 0);transform:translate3d(-10px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}@keyframes shakeHint{0%,100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px, 0, 0);transform:translate3d(-10px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}.hints-wrapper-fixed{position:absolute;width:100%;height:auto;z-index:9999;display:flex;align-items:flex-end;justify-content:center;bottom:56px;overflow:auto;max-height:80%;max-width:100%;margin:0 auto;left:0;right:0;-webkit-animation-name:HintslideInUp;animation-name:HintslideInUp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.hints-wrapper-fixed .hints-template-data{display:flex;flex-direction:column;gap:10px;overflow:auto;height:100%;max-height:100%;padding:10px 16px}.hints-wrapper-fixed .hints-template-data .hint-card{border-radius:12px;background:var(--success-600, #16A34A);box-shadow:0px 25px 50px -12px rgba(16,24,40,.25);position:relative;padding:12px;-webkit-animation-name:shakeHint;animation-name:shakeHint;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;animation-delay:1s;-webkit-animation-delay:1s}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint{background:var(--gray-neutral-500, #6C737F)}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint .top-card-info .icon_block{border:2px solid var(--Neutral-200, #E5E5E5)}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint .top-card-info .icon_block svg path{fill:#667085}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint{background:var(--warning-500, #F79009)}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint .top-card-info .icon_block{border:2px solid var(--Warning-100, #FEF0C7)}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint .top-card-info .icon_block svg path{fill:#f79009}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint{background:var(--destructive-500-main, #EF4444)}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint .top-card-info .icon_block{border:2px solid var(--error-200, #FECDCA)}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint .top-card-info .icon_block svg path{stroke:#f04438}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info{display:flex;align-items:center;gap:6px}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info .icon_block{display:flex;width:24px;height:24px;justify-content:center;align-items:center;border-radius:28px;border:2px solid var(--success-100, #D1FADF);background:#fff;flex-shrink:0;color:#039855}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info h1{color:#fff;font-size:14px;font-weight:500;line-height:20px;margin:0;width:100%}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info .close-hint{flex-shrink:0;width:20px;height:20px;background:rgba(0,0,0,0);padding:0;border:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px}.hints-wrapper-fixed .hints-template-data .hint-card .body-hint{padding:6px 0;color:#fff;font-size:14px;font-weight:400;line-height:20px;margin:0}.hints-wrapper-fixed .hints-template-data .hint-card .footer-hint{text-align:right}.hints-wrapper-fixed .hints-template-data .hint-card .footer-hint button{color:#fff;font-size:14px;font-weight:500;line-height:20px;padding:0;border:0;background:rgba(0,0,0,0);cursor:pointer}@-webkit-keyframes kr-spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes kr-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.loader-progress{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999}.loader-progress .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:40px;height:40px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress img{width:30px;height:30px}.loader-progress-individual{display:flex;align-items:center;justify-content:center;position:absolute;top:0;width:100%;height:100%;z-index:9999}.loader-progress-individual .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:24px;height:24px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress-individual img{width:24px;height:24px}.summery-wrapper-container{position:absolute;width:100%;height:100%;background:rgba(52,64,84,.7);border-radius:6px;display:flex;align-items:center;justify-content:center}.summery-wrapper-container .summery-popup-data{background:var(--AA-global-white-bg);border-radius:6px;max-height:80%}.summery-wrapper-container .summery-popup-data .title-block{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--AA-gloabl-border)}.summery-wrapper-container .summery-popup-data .title-block h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:600;line-height:16px;width:100%}.summery-wrapper-container .summery-popup-data .title-block .ai-block{flex-shrink:0;display:flex;align-items:center;color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:18px;gap:10px;opacity:.6}.summery-wrapper-container .summery-popup-data .title-block .ai-block svg path{fill:var(--AA-gloabl-text-color)}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery{background:rgba(0,0,0,0);border:0;display:flex;align-items:center;justify-content:center;padding:0;width:16px;height:16px;font-size:16px;color:var(--AA-gloabl-text-color);cursor:pointer}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery svg{width:16px;height:16px}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery svg path{stroke:var(--AA-gloabl-text-color)}.summery-wrapper-container .summery-popup-data .input-block{padding:8px;position:relative}.summery-wrapper-container .summery-popup-data .input-block textarea{min-height:200px}.summery-wrapper-container .summery-popup-data .input-block .recylin-bin-btn{border:0;padding:0;background:var(--AA-global-white-bg);cursor:pointer;z-index:1;position:absolute;right:20px;bottom:20px}.summery-wrapper-container .summery-popup-data .actions-footer{padding:8px;display:flex;align-items:center;gap:10px;justify-content:end;position:relative;min-height:52px;border-top:1px solid var(--AA-gloabl-border)}.summery-wrapper-container .summery-popup-data .actions-footer .footer-btns-left-sec{display:flex;align-items:center;gap:8px}",""]);const r=a},567:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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.selected-tab svg path{stroke:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-white-color)}.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.selected-tab svg path{stroke:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab.aa-footer-btn-srch svg path{fill: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.aa-footer-btn-srch svg path{fill:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-mB svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-ast svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-trnspt svg path{stroke:var(--AA-gloabl-text-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:hover svg path{stroke:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover.aa-footer-btn-srch svg path{fill:var(--AA-global-theme-text-color)}.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 .svg_icon svg{width:18px;height:18px}.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 svg path{stroke:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-srch svg path{fill:var(--AA-gloabl-text-color)}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 .footer-links-data .footer-list-buttons .btn_footer.selected-tab svg path{stroke:var(--AA-global-theme-text-color) !important}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-theme-text-color) !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 r=a},724:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,".sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.sugestions-block .suggestion-header h1{max-width:100%}.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)}.sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.sugestions-block .suggestion-header .by-n-ai svg{opacity:.5;width:14px;height:14px}.sugestions-block .suggestion-header .by-n-ai svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0;position:relative}.sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card.hidden{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease}.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}.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}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows{flex-shrink:0;cursor:pointer}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg{height:14px;width:14px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-copy-btn-suggestion svg path{stroke:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq:hover .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0;z-index:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading{display:flex;align-items:center;gap:6px;width:100%;margin:6px 0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading h2{font-size:12px;font-weight:500;line-height:18px;margin:0;flex-shrink:0;color:#f04438}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading span{width:100%;height:1px;background:var(--AA-gloabl-border)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.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%}.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}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.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}.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}.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}.sugestions-block .suggestion-body-search .less-text.hidden{display:none}.sugestions-block .suggestion-body-search .more-text.hidden{display:none}.assist-suggestions-list{width:100%;display:flex;flex-direction:column;gap:8px;padding:8px}.assist-suggestions-list .sugestions-block{width:100%;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.assist-suggestions-list .sugestions-block .suggestion-body-search{padding-bottom:8px}",""]);const r=a},544:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,".assist-data-wrapper-container{height:100%;padding:8px;width:100%}.assist-data-wrapper-container .assist-block-content{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);border-radius:4px}.assist-data-wrapper-container .assist-block-content .assist-header-content{display:flex;align-items:center;padding:8px;min-height:36px;gap:10px;border-bottom:1px solid var(--AA-gloabl-border)}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info{width:100%;overflow:hidden}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info .text-dropdown-info{display:flex;align-items:center;gap:6px}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info .text-dropdown-info h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:600;line-height:20px;margin:0 0 2px 0}.assist-data-wrapper-container .assist-block-content .scroll-data-assist{flex:1 1 auto;height:100%;overflow:auto}",""]);const r=a},144:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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 r=a},478:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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}textarea.input-control{min-height:70px}.sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.sugestions-block .suggestion-header h1{max-width:100%}.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)}.sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.sugestions-block .suggestion-header .by-n-ai svg{opacity:.5;width:14px;height:14px}.sugestions-block .suggestion-header .by-n-ai svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0;position:relative}.sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card.hidden{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease}.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}.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}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows{flex-shrink:0;cursor:pointer}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg{height:14px;width:14px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-copy-btn-suggestion svg path{stroke:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq:hover .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0;z-index:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading{display:flex;align-items:center;gap:6px;width:100%;margin:6px 0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading h2{font-size:12px;font-weight:500;line-height:18px;margin:0;flex-shrink:0;color:#f04438}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading span{width:100%;height:1px;background:var(--AA-gloabl-border)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.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%}.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}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.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}.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}.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}.sugestions-block .suggestion-body-search .less-text.hidden{display:none}.sugestions-block .suggestion-body-search .more-text.hidden{display:none}.search-block-data-suggestions-wrapper{height:100%;padding:8px}.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 .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:8px;z-index:2}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block svg path{fill:var(--AA-gloabl-text-color);opacity:.5}.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:--AA-gloabl-text-color}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search svg{width:16px;height:16px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search svg path{stroke:--AA-gloabl-text-color}",""]);const r=a},390:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,"",""]);const r=a},370:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,"",""]);const r=a},36:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,"",""]);const r=a},798:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,".selection-on-snippet-color{background:var(--AA-gloabl-bg-secondary)}.selection-on-snippet-color ul li{background:var(--AA-global-white-color)}.selection-on-snippet-color .source-count-num{color:var(--AA-global-white-color);background:var(--AA-global-theme-bg);display:inline-block;padding:0px 5px;border-radius:100%;min-width:18px;text-align:center}",""]);const r=a},762:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,".transcript-tepmlate-wrapper{height:100%;padding:8px;width:100%}.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 svg path{fill:var(--AA-gloabl-text-color)}",""]);const r=a},314: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 a={};if(o)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);o&&a[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),t.push(d))}},t}},601:e=>{e.exports=function(e){return e[1]}},72: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={},a=[],r=0;r<e.length;r++){var l=e[r],c=o.base?l[0]+o.base:l[0],d=i[c]||0,u="".concat(c," ").concat(d);i[c]=d+1;var p=n(u),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 g=s(h,o);o.byIndex=r,t.splice(r,0,{identifier:u,updater:g,references:1})}a.push(u)}return a}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 a=0;a<i.length;a++){var r=n(i[a]);t[r].references--}for(var l=o(e,s),c=0;c<i.length;c++){var d=n(i[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}i=l}}},659: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}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825: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)}}}},113: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))}}}},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.nc=void 0;var o={};n.d(o,{$:()=>yo,T:()=>_o});var s={};n.r(s),n.d(s,{Decoder:()=>Kn,Encoder:()=>Yn,PacketType:()=>Qn,protocol:()=>zn});var i=n(72),a=n.n(i),r=n(825),l=n.n(r),c=n(659),d=n.n(c),u=n(56),p=n.n(u),h=n(540),g=n.n(h),f=n(113),v=n.n(f),b=n(958),m={};m.styleTagTransform=v(),m.setAttributes=p(),m.insert=d().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=g();a()(b.A,m);b.A&&b.A.locals&&b.A.locals;var _,y,x,w,A,k,E,C=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}(),S={},T=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,N=Array.isArray;function O(e,t){for(var n in t)e[n]=t[n];return e}function L(e){var t=e.parentNode;t&&t.removeChild(e)}function R(e,t,n){var o,s,i,a={};for(i in t)"key"==i?o=t[i]:"ref"==i?s=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?_.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return M(e,a,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!=y.vnode&&y.vnode(i),i}function q(e){return e.children}function B(e,t){this.props=e,this.context=t}function F(e,t){if(null==t)return e.__?F(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?F(e):null}function H(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 H(e)}}function G(e){(!e.__d&&(e.__d=!0)&&w.push(e)&&!D.__r++||A!==y.debounceRendering)&&((A=y.debounceRendering)||k)(D)}function D(){var e,t,n,o,s,i,a,r,l;for(w.sort(E);e=w.shift();)e.__d&&(t=w.length,o=void 0,s=void 0,i=void 0,r=(a=(n=e).__v).__e,(l=n.__P)&&(o=[],s=[],(i=O({},a)).__v=a.__v+1,Z(l,a,i,n.__n,void 0!==l.ownerSVGElement,null!=a.__h?[r]:null,o,null==r?F(a):r,a.__h,s),K(o,a,s),a.__e!=r&&H(a)),w.length>t&&w.sort(E));D.__r=0}function P(e,t,n,o,s,i,a,r,l,c,d){var u,p,h,g,f,v,b,m,_,y=0,x=o&&o.__k||T,w=x.length,A=w,k=t.length;for(n.__k=[],u=0;u<k;u++)null!=(g=n.__k[u]=null==(g=t[u])||"boolean"==typeof g||"function"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?M(null,g,null,null,g):N(g)?M(q,{children:g},null,null,null):g.__b>0?M(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=n,g.__b=n.__b+1,-1===(m=j(g,x,b=u+y,A))?h=S:(h=x[m]||S,x[m]=void 0,A--),Z(e,g,h,s,i,a,r,l,c,d),f=g.__e,(p=g.ref)&&h.ref!=p&&(h.ref&&X(h.ref,null,g),d.push(p,g.__c||f,g)),null!=f&&(null==v&&(v=f),(_=h===S||null===h.__v)?-1==m&&y--:m!==b&&(m===b+1?y++:m>b?A>k-b?y+=m-b:y--:y=m<b&&m==b-1?m-b:0),b=u+y,"function"!=typeof g.type||m===b&&h.__k!==g.__k?"function"==typeof g.type||m===b&&!_?void 0!==g.__d?(l=g.__d,g.__d=void 0):l=f.nextSibling:l=V(e,f,l):l=U(g,l,e),"function"==typeof n.type&&(n.__d=l))):(h=x[u])&&null==h.key&&h.__e&&(h.__e==l&&(l=F(h)),$(h,h,!1),x[u]=null);for(n.__e=v,u=w;u--;)null!=x[u]&&("function"==typeof n.type&&null!=x[u].__e&&x[u].__e==n.__d&&(n.__d=x[u].__e.nextSibling),$(x[u],x[u]))}function U(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?U(o,t,n):V(n,o.__e,t));return t}function V(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 j(e,t,n,o){var s=e.key,i=e.type,a=n-1,r=n+1,l=t[n];if(null===l||l&&s==l.key&&i===l.type)return n;if(o>(null!=l?1:0))for(;a>=0||r<t.length;){if(a>=0){if((l=t[a])&&s==l.key&&i===l.type)return a;a--}if(r<t.length){if((l=t[r])&&s==l.key&&i===l.type)return r;r++}}return-1}function W(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||I.test(t)?n:n+"px"}function z(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||W(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||W(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?Y:Q,i):e.removeEventListener(t,i?Y:Q,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 Q(e){return this.l[e.type+!1](y.event?y.event(e):e)}function Y(e){return this.l[e.type+!0](y.event?y.event(e):e)}function Z(e,t,n,o,s,i,a,r,l,c){var d,u,p,h,g,f,v,b,m,_,x,w,A,k,E,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,r=t.__e=n.__e,t.__h=null,i=[r]),(d=y.__b)&&d(t);e:if("function"==typeof C)try{if(b=t.props,m=(d=C.contextType)&&o[d.__c],_=d?m?m.props.value:d.__:o,n.__c?v=(u=t.__c=n.__c).__=u.__E:("prototype"in C&&C.prototype.render?t.__c=u=new C(b,_):(t.__c=u=new B(b,_),u.constructor=C,u.render=ee),m&&m.sub(u),u.props=b,u.state||(u.state={}),u.context=_,u.__n=o,p=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=C.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=O({},u.__s)),O(u.__s,C.getDerivedStateFromProps(b,u.__s))),h=u.props,g=u.state,u.__v=t,p)null==C.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==C.getDerivedStateFromProps&&b!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(b,_),!u.__e&&(null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(b,u.__s,_)||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=b,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(b,u.__s,_),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(h,g,f)}))}if(u.context=_,u.props=b,u.__P=e,u.__e=!1,w=y.__r,A=0,"prototype"in C&&C.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(t),d=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do{u.__d=!1,w&&w(t),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++A<25);u.state=u.__s,null!=u.getChildContext&&(o=O(O({},o),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(h,g)),P(e,N(E=null!=d&&d.type===q&&null==d.key?d.props.children:d)?E:[E],t,n,o,s,i,a,r,l,c),u.base=t.__e,t.__h=null,u.__h.length&&a.push(u),v&&(u.__E=u.__=null)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=r,t.__h=!!l,i[i.indexOf(r)]=null),y.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=J(n.__e,t,n,o,s,i,a,l,c);(d=y.diffed)&&d(t)}function K(e,t,n){for(var o=0;o<n.length;o++)X(n[o],n[++o],n[++o]);y.__c&&y.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){y.__e(e,t.__v)}}))}function J(e,t,n,o,s,i,a,r,l){var c,d,u,p=n.props,h=t.props,g=t.type,f=0;if("svg"===g&&(s=!0),null!=i)for(;f<i.length;f++)if((c=i[f])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,i[f]=null;break}if(null==e){if(null===g)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,h.is&&h),i=null,r=!1}if(null===g)p===h||r&&e.data===h||(e.data=h);else{if(i=i&&_.call(e.childNodes),d=(p=n.props||S).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!r){if(null!=i)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,o,s){var i;for(i in n)"children"===i||"key"===i||i in t||z(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]||z(e,i,t[i],n[i],o)}(e,h,p,s,r),u)t.__k=[];else if(P(e,N(f=t.props.children)?f:[f],t,n,o,s&&"foreignObject"!==g,i,a,i?i[0]:n.__k&&F(n,0),r,l),null!=i)for(f=i.length;f--;)null!=i[f]&&L(i[f]);r||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===g&&!f||"option"===g&&f!==p.value)&&z(e,"value",f,p.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&z(e,"checked",f,p.checked,!1))}return e}function X(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){y.__e(e,n)}}function $(e,t,n){var o,s;if(y.unmount&&y.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){y.__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]&&$(o[s],t,n||"function"!=typeof e.type);n||null==e.__e||L(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,a;y.__&&y.__(e,t),s=(o="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],Z(t,e=(!o&&n||t).__k=R(q,null,[e]),s||S,S,void 0!==t.ownerSVGElement,!o&&n?[n]:s?null:t.firstChild?_.call(t.childNodes):null,i,!o&&n?n:s?s.__e:t.firstChild,o,a),K(i,e,a)}_=T.slice,y={__e:function(e,t,n,o){for(var s,i,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&null!=i.getDerivedStateFromError&&(s.setState(i.getDerivedStateFromError(e)),a=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,o||{}),a=s.__d),a)return s.__E=s}catch(t){e=t}throw e}},x=0,B.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=O({},this.state),"function"==typeof e&&(e=e(O({},n),this.props)),e&&O(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),G(this))},B.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),G(this))},B.prototype.render=q,w=[],k="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E=function(e,t){return e.__v.__b-t.__v.__b},D.__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(R(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(773),ie={};ie.styleTagTransform=v(),ie.setAttributes=p(),ie.insert=d().bind(null,"head"),ie.domAPI=l(),ie.insertStyleElement=g();a()(se.A,ie);se.A&&se.A.locals&&se.A.locals;var ae,re,le,ce,de=0,ue=[],pe=[],he=y.__b,ge=y.__r,fe=y.diffed,ve=y.__c,be=y.unmount;function me(e,t){y.__h&&y.__h(re,e,de||t),de=0;var n=re.__H||(re.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:pe}),n.__[e]}function _e(e){return de=1,function(e,t,n){var o=me(ae++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):Ie(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=re,!re.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 a=!1;return s.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&o.__c.props===e)&&(!i||i.call(this,e,t,n))};re.u=!0;var i=re.shouldComponentUpdate,a=re.componentWillUpdate;re.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,s(e,t,n),i=o}a&&a.call(this,e,t,n)},re.shouldComponentUpdate=s}return o.__N||o.__}(Ie,e)}function ye(e,t){var n=me(ae++,3);!y.__s&&Te(n.__H,t)&&(n.__=e,n.i=t,re.__H.__h.push(n))}function xe(e){return de=5,we((function(){return{current:e}}),[])}function we(e,t){var n=me(ae++,7);return Te(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ae(){for(var e;e=ue.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ce),e.__H.__h.forEach(Se),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){re=null,he&&he(e)},y.__r=function(e){ge&&ge(e),ae=0;var t=(re=e.__c).__H;t&&(le===re?(t.__h=[],re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=pe,e.__N=e.i=void 0}))):(t.__h.forEach(Ce),t.__h.forEach(Se),t.__h=[],ae=0)),le=re},y.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ue.push(t)&&ce===y.requestAnimationFrame||((ce=y.requestAnimationFrame)||Ee)(Ae)),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=re=null},y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ce),e.__h=e.__h.filter((function(e){return!e.__||Se(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],y.__e(n,e.__v)}})),ve&&ve(e,t)},y.unmount=function(e){be&&be(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ce(e)}catch(e){t=e}})),n.__H=void 0,t&&y.__e(t,n.__v))};var ke="function"==typeof requestAnimationFrame;function Ee(e){var t,n=function(){clearTimeout(o),ke&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);ke&&(t=requestAnimationFrame(n))}function Ce(e){var t=re,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),re=t}function Se(e){var t=re;e.__c=e.__(),re=t}function Te(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ie(e,t){return"function"==typeof t?t(e):t}var Ne={SEARCH:"SEARCH",MYBOT:"MYBOT",ASSIST:"ASSIST",TRANSCRIPT:"TRANSCRIPT",HISTORY:"HISTORY",SETTINGS:"SETTINGS",SMARTASSIST_SOURCE:"SMARTASSIST_SOURCE"},Oe={SUGGESTIONS:"SUGGESTIONS",SMALLTALK:"SMALLTALK",AUTOMATION:"AUTOMATION",USERMSG:"USERMSG",ASSISTRESPONSE:"ASSISTRESPONSE",FEEDBACK:"FEEDBACK",WELCOME_MSG:"WELCOME_MSG"},Le={ASSIST:"Assist",MYBOT:"My Bot",TRANSCRIPT:"Transcript",LIBRARY:"Library",SETTINGS:"Settings",SEARCH:"Search",PLAYBOOK:"Playbook",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",SENDMSG:"agentAssist.SendMessage",COPYMSG:"agentAssist.CopyMessage"},Re={ast:Ne.ASSIST,srch:Ne.SEARCH,trnspt:Ne.TRANSCRIPT,mB:Ne.MYBOT},Me={HEADER:".aa-header",FOOTER:".aa-footer",FOOTER_BTN:".aa-footer-btn-",FOOTER_BTN_SEARCH:".aa-footer-btn-srch",FOOTER_BTN_MYBOT:".aa-footer-btn-mB",FOOTER_BTN_ASSIST:".aa-footer-btn-ast",FOOTER_BTN_TRANSCRIPT:".aa-footer-btn-trnspt",ASSIST_SECTION:".aa-assist-section",SUGGESTION_EACH:".aa-each-suggestion",SUGGESTION_EACH_HEADER:".aa-suggestion-header",SUGGESTION_EACH_TITLE:".aa-suggestion-title",SUGGESTION_EACH_BODY:".aa-each-suggestion-faq-body",SUGGESTION_LESS_LINK:".aa-less-link",SUGGESTION_MORE_LINK:".aa-more-link",SUGGESTION_SEND_BTN:".aa-send-btn-suggestion",SUGGESTION_COPY_BTN:".aa-copy-btn-suggestion",SUGGESTION_SENDCPY_ACTION:".aa-action-buttons",SUGGESTION_FAQ_UP_ARROW:".aa-faq-up-arrow",SUGGESTION_FAQ_DOWN_ARROW:".aa-faq-down-arrow",SUGGESTION_FAQ_EXPAND:".aa-expand-btn-link",SUGGESTION_FAQ_CLOSE:".aa-close-btn-link",SUGGESTION_FAQ_ANS_LENGTH:".aa-faq-ans-length",SUGGESTION_FAQ_ANS_LOADER:".aa-faq-answer-loader",SUGGESTION_SNIPPET_SOURCE_TAG:".aa-source-tag",SUGGESTION_SNIPPET_LINK:".aa-snippet-link",SUGGESTION_ARTICLE_LINK:".aa-article-link",SUGGESTION_FILE_LINK:".aa-file-link",SEARCH_INPUT_BLOCK:".aa-input-block",SEARCH_INPUT_CLOSE:".aa-input-search-close",SEARCH_INPUT_ICON:".aa-input-search-icon",SUGGESTION_SENT_TEXT:".aa-sent-text",SEARCH_SUGGESTION_WRAPPER:".aa-search-suggestion-wrapper",HIDE_ELEMENT:"aa-hidden",SDK_MAIN_WRAPPER:"agentassist-widget-main-chat-container-wrapper"},qe={PROACTIVE_BTN:"aa-proactiveBtn",ASSIST_FAQ_SUGGESTION:"aa-faqSuggestion-",ASSIST_SNIPPET_SUGGESTION:"aa-snippetSuggestion-",ASSIST_ARTICLE_SUGGESTION:"aa-articleSuggestion-",ASSIST_FILE_SUGGESTION:"aa-fileSuggestion-",SEARCH_FAQ_SUGGESTION:"aa-faqSuggestion",SEARCH_SNIPPET_SUGGESTION:"aa-snippetSuggestion",SEARCH_ARTICLE_SUGGESTION:"aa-articleSuggestion",SEARCH_FILE_SUGGESTION:"aa-fileSuggestion",SEARCH_INPUT:"aa-search-input",SEARCH_SUGGESTION_BLOCK:"searchSuggestionsBlock"},Be=n(567),Fe={};Fe.styleTagTransform=v(),Fe.setAttributes=p(),Fe.insert=d().bind(null,"head"),Fe.domAPI=l(),Fe.insertStyleElement=g();a()(Be.A,Fe);Be.A&&Be.A.locals&&Be.A.locals;function He(e){var t=e.msgData,n=t.tabsNTitles,o=t.selectedTab,s=t.showTranscript;t.selectedTheme;return ye((function(){})),R("div",{className:"widget-footer-wrapper"},R("div",{className:"logo-left-menu"},R("figure",null,R("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R("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"})))),R("div",{className:"line-divider"}),R("div",{className:"footer-links-data"},n.map((function(e,t){return R("div",{className:"footer-list-buttons"},"srch"===e.type&&R("button",{className:"aa-footer-btn-srch btn_footer ".concat(o===Ne.SEARCH?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none"},R("path",{d:"M21.75 22.2001C21.55 22.2001 21.45 22.1001 21.35 22.0001L17.45 18.1001C15.95 19.4001 13.95 20.2001 11.85 20.2001C7.15 20.2001 3.25 16.3001 3.25 11.6001C3.25 6.90006 7.05 3.00006 11.75 3.00006C16.45 3.00006 20.35 6.90006 20.35 11.6001C20.35 13.8001 19.55 15.7001 18.25 17.2001L22.15 21.1001C22.35 21.3001 22.35 21.7001 22.15 21.9001C22.05 22.1001 21.95 22.2001 21.75 22.2001ZM11.75 4.20006C7.65 4.20006 4.35 7.50006 4.35 11.6001C4.35 15.7001 7.65 19.0001 11.75 19.0001C13.75 19.0001 15.55 18.2001 16.95 16.9001C16.95 16.9001 16.95 16.9001 17.05 16.8001C17.05 16.8001 17.05 16.8001 17.15 16.7001C18.45 15.4001 19.25 13.5001 19.25 11.5001C19.15 7.50006 15.85 4.20006 11.75 4.20006Z",fill:"#202939"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"mB"===e.type&&R("button",{className:"aa-footer-btn-mB btn_footer ".concat(o===Ne.MYBOT?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"26",height:"25",viewBox:"0 0 26 25",fill:"none"},R("path",{d:"M4.92794 4.20001V21",stroke:"#202939","stroke-width":"1.2"}),R("path",{d:"M8.92794 4.20001V21",stroke:"#202939","stroke-width":"1.2"}),R("path",{d:"M12.9279 20V5.64677C12.9279 4.94753 13.6272 4.46419 14.2813 4.7113L21.1755 7.31574C21.5646 7.46274 21.8221 7.83526 21.8221 8.25121V20C21.8221 20.5523 21.3743 21 20.8221 21H13.9279C13.3757 21 12.9279 20.5523 12.9279 20Z",stroke:"#202939","stroke-width":"1.2"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"ast"===e.type&&R("button",{className:"aa-footer-btn-ast btn_footer ".concat(o===Ne.ASSIST?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none"},R("path",{opacity:"0.12",d:"M13 17.0999C13 20.1374 10.5965 22.5999 7.63158 22.5999C7.01911 22.5999 6.43059 22.4948 5.88227 22.3013C5.67416 22.2278 5.5701 22.1911 5.50011 22.1771C5.42641 22.1624 5.38652 22.1584 5.31137 22.1578C5.24 22.1574 5.15827 22.1685 4.9948 22.1909L2 22.5999L2.61134 19.8382C2.65141 19.6572 2.67145 19.5666 2.67608 19.4866C2.68091 19.403 2.67864 19.3565 2.66566 19.2738C2.65322 19.1946 2.61533 19.0786 2.53955 18.8466C2.36028 18.2978 2.26316 17.7104 2.26316 17.0999C2.26316 14.0623 4.66668 11.5999 7.63158 11.5999C10.5965 11.5999 13 14.0623 13 17.0999Z",fill:""}),R("path",{d:"M6.09436 11.8286C6.03221 11.4281 5.99996 11.0177 5.99996 10.5999C5.99996 6.18158 9.60525 2.59985 14.0526 2.59985C18.4999 2.59985 22.1052 6.18158 22.1052 10.5999C22.1052 11.5979 21.9213 12.5533 21.5852 13.4344C21.5154 13.6173 21.4804 13.7088 21.4646 13.7803C21.4489 13.851 21.4428 13.9008 21.4411 13.9733C21.4394 14.0465 21.4493 14.127 21.4692 14.2882L21.8717 17.5584C21.9153 17.9124 21.9371 18.0894 21.8782 18.2181C21.8266 18.3308 21.735 18.4204 21.6211 18.4694C21.4911 18.5253 21.3146 18.4994 20.9617 18.4477L17.7765 17.9808C17.6101 17.9564 17.527 17.9442 17.4512 17.9446C17.3763 17.945 17.3245 17.9506 17.2511 17.966C17.177 17.9816 17.0823 18.017 16.893 18.088C16.0097 18.4188 15.0524 18.5999 14.0526 18.5999C13.6344 18.5999 13.2237 18.5682 12.8227 18.5071M7.63158 22.5999C10.5965 22.5999 13 20.1374 13 17.0999C13 14.0623 10.5965 11.5999 7.63158 11.5999C4.66668 11.5999 2.26316 14.0623 2.26316 17.0999C2.26316 17.7104 2.36028 18.2978 2.53955 18.8466C2.61533 19.0786 2.65322 19.1946 2.66566 19.2738C2.67864 19.3565 2.68091 19.403 2.67608 19.4866C2.67145 19.5666 2.65141 19.6572 2.61134 19.8382L2 22.5999L4.9948 22.1909C5.15827 22.1685 5.24 22.1574 5.31137 22.1578C5.38652 22.1584 5.42641 22.1624 5.50011 22.1771C5.5701 22.1911 5.67416 22.2278 5.88227 22.3013C6.43059 22.4948 7.01911 22.5999 7.63158 22.5999Z",stroke:"#202939","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"trnspt"===e.type&&s&&R("button",{className:"aa-footer-btn-trnspt btn_footer ".concat(o===Ne.TRANSCRIPT?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none"},R("path",{d:"M20.625 10.5999V7.39985C20.625 5.7197 20.625 4.87962 20.298 4.23788C20.0104 3.6734 19.5515 3.21445 18.987 2.92683C18.3452 2.59985 17.5052 2.59985 15.825 2.59985H9.425C7.74484 2.59985 6.90476 2.59985 6.26303 2.92683C5.69854 3.21445 5.2396 3.6734 4.95198 4.23788C4.625 4.87962 4.625 5.7197 4.625 7.39985V17.7999C4.625 19.48 4.625 20.3201 4.95198 20.9618C5.2396 21.5263 5.69854 21.9853 6.26303 22.2729C6.90476 22.5999 7.74484 22.5999 9.425 22.5999H12.625M13.125 11.5999H8.625M9.625 15.5999H8.625M16.625 7.59985H8.625M14.125 16.5999C14.2782 19.4612 14.8347 20.5857 17.625 20.9618M17.625 20.9618C20.4768 20.4358 21.0708 19.3717 21.125 16.5999M17.625 20.9618V22.5999H15.825H19.625",stroke:"#202939","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),R("path",{d:"M16.125 13.6V18.1C16.7101 18.8457 17.0454 19.0111 17.625 19.1C18.4009 18.9793 18.6961 18.7335 19.125 18.1V13.6C18.702 12.8834 18.3994 12.5877 17.625 12.6C16.7358 12.7661 16.4766 13.0363 16.125 13.6Z",stroke:"#202939","stroke-width":"1.2"}))),R("p",{className:"text-truncate",title:e.title},e.title)))}))),R("div",{className:"footer-action-items"},R("div",{className:"aa-toggle-switch"},R("input",{type:"checkbox",checked:!0}),R("button",{className:"aa-slider"},R("div",{className:"slide-parent"},R("div",{className:"slider-btn"}))))))}const Ge=function(){var e=(new Date).getTime();window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var t="ua-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}));return t};var De,Pe,Ue;!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"}(De||(De={})),function(e){e.BEFORE_VIEW_INIT="BEFORE_VIEW_INIT",e.TRANSCRIPT_BUBBLE="TRANSCRIPT_BUBBLE",e.ARTICE_TEMPLATE="ARTICLE_TEMPLATE",e.SNIPPET_TEMPLATE="SNIPPET_TEMPLATE",e.FILE_TEMPLATE="FILE_TEMPLATE",e.FAQ_TEMPLATE="FAQ_TEMPLATE",e.FOOTER_TEMPLATE="FOOTER_TEMPLATE",e.HEADER_TEMPLATE="HEADER_TEMPLATE",e.SEARCH_INPUT="SEARCH_INPUT",e.FAQ_ANSWER_AFTER_TOGGLE="FAQ_ANSWER_AFTER_TOGGLE",e.SEARCH_ARTICE_TEMPLATE="SEARCH_ARTICE_TEMPLATE",e.SEARCH_SNIPPET_TEMPLATE="SEARCH_SNIPPET_TEMPLATE",e.SEARCH_FILE_TEMPLATE="SEARCH_FILE_TEMPLATE",e.SEARCH_FAQ_TEMPLATE="SEARCH_FAQ_TEMPLATE"}(Pe||(Pe={})),function(e){e.agentAssistRespone="agentAssistRespone",e.agentassistAgentResponse="agentassistAgentResponse",e.proactiveChange="proactiveChange"}(Ue||(Ue={}));var Ve=n(390),je={};je.styleTagTransform=v(),je.setAttributes=p(),je.insert=d().bind(null,"head"),je.domAPI=l(),je.insertStyleElement=g();a()(Ve.A,je);Ve.A&&Ve.A.locals&&Ve.A.locals;function We(e){var t;return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.article.send)?"Sent":"Copied")}function ze(e){var t,n;return R(q,null,(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.articles)||void 0===n?void 0:n.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less Article"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"More Article")))}function Qe(e){var t,n,o,s,i,a,r;return R(q,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(o=null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.article)||void 0===o?void 0:o.content)&&!(null===(i=null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.article)||void 0===i?void 0:i.internalFlag)&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(a=null==e?void 0:e.msgData)||void 0===a?void 0:a.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(r=null==e?void 0:e.msgData)||void 0===r?void 0:r.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function Ye(e){var t,n;return R("div",null,null===(n=(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.articles)||[])||void 0===n?void 0:n.map((function(t,n){var o;return R("div",{className:"suggestion-item-card aa-each-suggestion "+(n<(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.viewCount)?"":"aa-hidden")},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},!t.link&&t.title&&R("h2",{className:"aa-text-xs"},t.title),t.link&&t.title&&R("h2",{className:"aa-text-xs"},R("a",{className:"moreText aa-article-link",role:"link"},t.title)))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs",dangerouslySetInnerHTML:{__html:null==t?void 0:t.content}}),t.link&&!t.title&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-article-link",role:"link"},"View Full Article"))))})))}var Ze=n(370),Ke={};Ke.styleTagTransform=v(),Ke.setAttributes=p(),Ke.insert=d().bind(null,"head"),Ke.domAPI=l(),Ke.insertStyleElement=g();a()(Ze.A,Ke);Ze.A&&Ze.A.locals&&Ze.A.locals;function Je(e){var t,n,o,s=_e(null===(t=e.msgData)||void 0===t?void 0:t.faq),i=s[0];s[1];return R(q,null,i.answer&&(null===(n=null==i?void 0:i.answer)||void 0===n?void 0:n.length)>0&&(i.toggle&&!i.answerRender||i.answerRender)&&(null===(o=null==i?void 0:i.answer)||void 0===o?void 0:o.map((function(e,t){return R("div",{className:"suggestion-body-faq aa-each-suggestion-faq-body "+(t<=0?"":"aa-hidden"),key:t},R("p",{className:"aa-desc-xs",dangerouslySetInnerHTML:{__html:e.ans}}))}))))}function Xe(e){return R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs expand-link aa-close-btn-link aa-hidden",role:"link"},"Close"),R("button",{className:"more-link-text aa-text-xs expand-link aa-expand-btn-link",role:"link"},"Expand/More"))}function $e(e){var t,n;return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.ansObj)||void 0===n?void 0:n.send)?"Sent":"Copied")}function et(e){var t,n;return R(q,null,(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.faqs)||void 0===n?void 0:n.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less FAQ"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"More FAQ")))}function tt(e){var t,n,o;return R("div",{className:"action-buttons aa-action-buttons "+((null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.addHideClass)?"aa-hidden":"")},!(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send"))}function nt(e){var t,n;return R("div",null,null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.faqs)||void 0===n?void 0:n.map((function(t,n){var o,s,i,a,r;return R("div",{className:"suggestion-item-card aa-each-suggestion "+(n<(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.viewCount)?"":"aa-hidden"),key:n},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},(!t.displayName||t.question)&&R("h2",{className:"aa-text-xs semibold text-truncate"},t.displayName||t.question),t.answer&&(null===(s=null==t?void 0:t.answer)||void 0===s?void 0:s.length)>1&&(!t.seeMoreWrapper&&t.answerRender||t.toggle&&!t.answerRender&&!t.seeMoreWrapper)&&R("span",{className:"aa-faq-ans-length"},"1/",null===(i=null==t?void 0:t.answer)||void 0===i?void 0:i.length),t.childBotName&&R("span",{className:"aa-desc-sm semibold child-bot-name text-truncate"},"(",t.childBotName,")"),R("span",{className:"up-down-arrows aa-faq-down-arrow "+(t.answerRender||t.toggle?"aa-hidden":"")},R("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.36437 10.3494C8.17497 10.5383 7.87481 10.5494 7.67239 10.3828L7.63563 10.3494L3.15093 6.07722C2.94969 5.87653 2.94969 5.55115 3.15093 5.35047C3.34033 5.16158 3.64048 5.15047 3.84291 5.31713L3.87967 5.35047L8 9.25923L12.1203 5.35047C12.3097 5.16158 12.6099 5.15047 12.8123 5.31713L12.8491 5.35047C13.0385 5.53935 13.0496 5.83868 12.8825 6.04056L12.8491 6.07722L8.36437 10.3494Z",fill:"#9AA4B2"}))),R("span",{className:"up-down-arrows aa-faq-up-arrow "+(!t.answerRender&&t.toggle?"":"aa-hidden")},R("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.63563 5.35054C7.82503 5.16166 8.12519 5.15055 8.32761 5.31721L8.36437 5.35054L12.8491 9.6227C13.0503 9.82338 13.0503 10.1488 12.8491 10.3494C12.6597 10.5383 12.3595 10.5494 12.1571 10.3828L12.1203 10.3494L8 6.44074L3.87967 10.3494C3.69027 10.5383 3.39012 10.5494 3.18769 10.3828L3.15093 10.3494C2.96153 10.1606 2.95039 9.86123 3.1175 9.65936L3.15093 9.6227L7.63563 5.35054Z",fill:"#9AA4B2"}))),R("div",{id:"loader",className:"loader-progress-individual aa-faq-answer-loader aa-hidden"},R("div",{className:"loading-border"})))),t.answer&&(null===(a=null==t?void 0:t.answer)||void 0===a?void 0:a.length)>0&&(t.toggle&&!t.answerRender||t.answerRender)&&(null===(r=null==t?void 0:t.answer)||void 0===r?void 0:r.map((function(e,t){return R("div",{className:"suggestion-body-faq aa-each-suggestion-faq-body "+(t<=0?"":"aa-hidden"),key:t},R("p",{className:"aa-desc-xs",dangerouslySetInnerHTML:{__html:e.ans}}))}))))})))}var ot=n(36),st={};st.styleTagTransform=v(),st.setAttributes=p(),st.insert=d().bind(null,"head"),st.domAPI=l(),st.insertStyleElement=g();a()(ot.A,st);ot.A&&ot.A.locals&&ot.A.locals;function it(e){var t,n;return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.file)||void 0===n?void 0:n.send)?"Sent":"Copied")}function at(e){var t,n;return R(q,null,(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.files)||void 0===n?void 0:n.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less File"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"More File")))}function rt(e){var t,n,o,s,i,a,r;return R(q,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(o=null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.file)||void 0===o?void 0:o.content)&&!(null===(i=null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.file)||void 0===i?void 0:i.internalFlag)&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(a=null==e?void 0:e.msgData)||void 0===a?void 0:a.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(r=null==e?void 0:e.msgData)||void 0===r?void 0:r.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function lt(e){var t,n;return R("div",null,null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.files)||void 0===n?void 0:n.map((function(e,t){return R("div",{key:t,className:"suggestion-item-card aa-each-suggestion "},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},!e.link&&e.title&&R("h2",{className:"aa-text-xs"},e.title),e.link&&e.title&&R("h2",{className:"aa-text-xs"},R("a",{className:"moreText aa-file-link",role:"link"},e.title)))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs",dangerouslySetInnerHTML:{__html:null==e?void 0:e.content}}),e.link&&!e.title&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-file-link",role:"link"},"View Full File"))))})))}var ct=n(798),dt={};dt.styleTagTransform=v(),dt.setAttributes=p(),dt.insert=d().bind(null,"head"),dt.domAPI=l(),dt.insertStyleElement=g();a()(ct.A,dt);ct.A&&ct.A.locals&&ct.A.locals;function ut(e){var t,n;return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.snippet)||void 0===n?void 0:n.send)?"Sent":"Copied")}function pt(e){var t,n,o,s;return R(q,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.snippet.contentArray.length)>0&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function ht(e){var t,n,o=_e(""),s=o[0],i=(o[1],xe(null),xe(null),function(){var e;s&&(null===(e=document.querySelectorAll(s))||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")})))});return R("div",null,null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.snippets)||void 0===n?void 0:n.map((function(e,t){var n,o;return R("div",{className:"suggestion-item-card aa-each-suggestion ",key:t},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},e.title&&R("h2",{className:"aa-text-xs"},e.title),e.send&&R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===e.send?"SENT":"COPIED"))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs aa-snippet-content-ref1"},e.contentArray.map((function(e,t){return(null==e?void 0:e.length)>0&&R("div",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),(null===(n=e.internalInfo)||void 0===n?void 0:n.length)>0&&R(q,null,R("div",{className:"line-with-text-heading"},R("h2",null,"Internal Information"),R("span",null)),R("p",{className:"aa-desc-xs aa-snippet-content-ref2"},e.internalInfo.map((function(t,n){return(null==t?void 0:t.length)>0&&R("div",{key:n,className:"inner-text-snippet-selection ".concat(e.internalInfo.length>1&&!e.isActCit?"snippet-list-style":""),dangerouslySetInnerHTML:{__html:t}})}))),R("div",{className:"line-with-text-heading"},R("span",null),R("h2",null,"Internal Information"))),(null===(o=null==e?void 0:e.sources)||void 0===o?void 0:o.length)>0&&R("div",{className:"souces-names-wrapper"},R("h1",{className:"aa-desc-xs"},"Sources :"),R("div",{className:"source-names"},e.sources.map((function(t,n){return t.url&&R("div",{key:n,className:"source-tag aa-source-tag",onMouseOver:function(){return function(e){var t,n;s&&(null===(t=document.querySelectorAll(s))||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")}))),s=".fragment-ext-"+e,null===(n=document.querySelectorAll(s))||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")}))}(n+1)},onMouseLeave:i},e.isActCit&&R("span",null,n+1),R("a",{title:t.title,className:"aa-snippet-link"},(null==t?void 0:t.title)||"Know More"))}))))))})))}function gt(e){var t,n,o,s,i,a,r,l,c,d,u,p,h,g,f,v,b=qe;return R(q,null,(null===(n=(null===(t=e.searchResponse)||void 0===t?void 0:t.articles)||[])||void 0===n?void 0:n.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Article"),R("span",{className:"count-text aa-text-xxs"},null===(s=null===(o=e.searchResponse)||void 0===o?void 0:o.articles)||void 0===s?void 0:s.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(b.ASSIST_ARTICLE_SUGGESTION).concat(e.suggestionIndex):"".concat(b.SEARCH_ARTICLE_SUGGESTION)})),(null===(a=(null===(i=e.searchResponse)||void 0===i?void 0:i.snippets)||[])||void 0===a?void 0:a.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Snippet"),R("span",{className:"count-text aa-text-xxs"},null===(l=null===(r=e.searchResponse)||void 0===r?void 0:r.snippets)||void 0===l?void 0:l.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(b.ASSIST_SNIPPET_SUGGESTION).concat(e.suggestionIndex):"".concat(b.SEARCH_SNIPPET_SUGGESTION)})),(null===(d=(null===(c=e.searchResponse)||void 0===c?void 0:c.faqs)||[])||void 0===d?void 0:d.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"FAQ"),R("span",{className:"count-text aa-text-xxs"},null===(p=null===(u=e.searchResponse)||void 0===u?void 0:u.faqs)||void 0===p?void 0:p.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(b.ASSIST_FAQ_SUGGESTION).concat(e.suggestionIndex):"".concat(b.SEARCH_FAQ_SUGGESTION)})),(null===(g=(null===(h=e.searchResponse)||void 0===h?void 0:h.files)||[])||void 0===g?void 0:g.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"File Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Files"),R("span",{className:"count-text aa-text-xxs"},null===(v=null===(f=e.searchResponse)||void 0===f?void 0:f.files)||void 0===v?void 0:v.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(b.ASSIST_FILE_SUGGESTION).concat(e.suggestionIndex):"".concat(b.SEARCH_FILE_SUGGESTION)})))}var ft=n(724),vt={};vt.styleTagTransform=v(),vt.setAttributes=p(),vt.insert=d().bind(null,"head"),vt.domAPI=l(),vt.insertStyleElement=g();a()(ft.A,vt);ft.A&&ft.A.locals&&ft.A.locals;function bt(e){var t,n=_e(e.suggestions.searchResponse),o=n[0],s=(n[1],_e(!1)),i=s[0],a=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),u=d[0],p=d[1],h=e.hostInstance,g=h.rootService,f=Me,v=qe;ye((function(){b()}),[]),ye((function(){var t;if(e.ambiguityToken&&(null===(t=Object.keys(e.ambiguityToken))||void 0===t?void 0:t.length)>0){var n=v.ASSIST_FAQ_SUGGESTION+e.suggestionIndex;g.handleFaqAmbiguityDescElement(n,e.ambiguityToken,null==o?void 0:o.faqs,i,u,l,h)}}),[e.suggestions]);var b=function(){var t,n,s,a,r=document.getElementById(v.ASSIST_FAQ_SUGGESTION+e.suggestionIndex),c=document.getElementById(v.ASSIST_SNIPPET_SUGGESTION+e.suggestionIndex),d=document.getElementById(v.ASSIST_ARTICLE_SUGGESTION+e.suggestionIndex),p=document.getElementById(v.ASSIST_FILE_SUGGESTION+e.suggestionIndex);if(y(),null===(t=(null==o?void 0:o.faqs)||[])||void 0===t?void 0:t.length){var b,_=void 0;_=oe(nt,{searchResponse:o,hostInstance:h,faqs:o.faqs,viewCount:2},h),(b=oe(et,{hostInstance:h,faqs:o.faqs,moreClick:!1},h))&&(null==_||_.append(b)),null==r||r.append(_),h.emit(Pe.BEFORE_VIEW_INIT,_,{event:Pe.FAQ_TEMPLATE,data:o.faqs});var x=_.querySelectorAll(f.SUGGESTION_EACH);g.renderEachFaqInSuggestionList(o,x,i,u,l,h,!0,e),b&&(g.handleSuggestionMoreClickEvent(b,r,x,h),g.handleSuggestionLessClickEvent(b,r,x,h))}if(null===(n=null==o?void 0:o.snippets)||void 0===n?void 0:n.length){var w=void 0;w=oe(ht,{searchResponse:o,hostInstance:h,snippets:o.snippets},h),null==c||c.append(w),h.emit(Pe.BEFORE_VIEW_INIT,w,{event:Pe.SNIPPET_TEMPLATE,data:o.snippets});var A=w.querySelectorAll(f.SUGGESTION_EACH);g.renderEachSnippetInSuggestionList(o,A,i,u,l,h)}if((null===(s=(null==o?void 0:o.articles)||[])||void 0===s?void 0:s.length)>0){var k,E=void 0;E=oe(Ye,{searchResponse:o,hostInstance:h,articles:o.articles,viewCount:2},h),(k=oe(ze,{hostInstance:h,articles:o.articles,moreClick:!1},h))&&(null==E||E.append(k)),null==d||d.append(E),h.emit(Pe.BEFORE_VIEW_INIT,E,{event:Pe.ARTICE_TEMPLATE,data:o.articles});var C=E.querySelectorAll(f.SUGGESTION_EACH);g.renderEachArticleInSuggestionList(o,C,i,u,l,h),k&&(g.handleSuggestionMoreClickEvent(k,d,C,h),g.handleSuggestionLessClickEvent(k,d,C,h))}if(null===(a=null==o?void 0:o.files)||void 0===a?void 0:a.length){var S,T=void 0;T=oe(lt,{searchResponse:o,hostInstance:h,files:o.files},h),(S=oe(at,{hostInstance:h,files:o.files,moreClick:!1},h))&&(null==T||T.append(S)),null==p||p.append(T),h.emit(Pe.BEFORE_VIEW_INIT,T,{event:Pe.FILE_TEMPLATE,data:o.files});var I=T.querySelectorAll(f.SUGGESTION_EACH);g.renderEachFileInSuggestionList(o,I,i,u,l,h),S&&(g.handleSuggestionMoreClickEvent(S,p,I,h),g.handleSuggestionLessClickEvent(S,p,I,h))}m()},m=function(){var e,t,n=null===(e=o.faqs)||void 0===e?void 0:e.filter((function(e,t){return!e.answer&&(e.index=t,!0)}));1===(null==n?void 0:n.length)&&_(n[0],null===(t=n[0])||void 0===t?void 0:t.index)},_=function(t,n){var o=v.ASSIST_FAQ_SUGGESTION+e.suggestionIndex;g.toggleArrows(n,o),t.toggle=!t.toggle,t.seeMoreWrapper=!1,g.checkAnswerAndToggleForAssist(t,n,h,e)},y=function(){var e,t,n=!1,o=!1;a(g.connectionDetails.channel===Le.VOICE),!1===(null===(e=null==g?void 0:g.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(c(!0),o=!0),!1===(null===(t=null==g?void 0:g.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(p(!0),n=!0),o&&n&&a(!0)};return R(q,null,(null===(t=Object.keys(o))||void 0===t?void 0:t.length)>0&&R("div",{className:"assist-suggestions-list"},R(gt,{hostInstance:h,searchResponse:o,suggestionIndex:e.suggestionIndex,isAssist:!0})))}var mt=n(544),_t={};_t.styleTagTransform=v(),_t.setAttributes=p(),_t.insert=d().bind(null,"head"),_t.domAPI=l(),_t.insertStyleElement=g();a()(mt.A,_t);mt.A&&mt.A.locals&&mt.A.locals;var yt=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 xt(e){var t,n=e.hostInstance,o=n.rootService,s=_e([]),i=s[0],a=s[1],r=_e({}),l=r[0],c=r[1],d=Me;ye((function(){var e=function(e){var t;e&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&u(e)};return n.on("agentAssistRespone",e),function(){n.off("agentAssistRespone",e)}}),[]),ye((function(){var e=document.querySelector(d.ASSIST_SECTION);e.scrollTop=e.scrollHeight}),[i]);var u=function(e){var t,n,s=Ge(),i={};if(!o.isAutomationOnGoing&&e.suggestions&&(null===(t=Object.keys(e.suggestions))||void 0===t?void 0:t.length)>0)if(e.uiunqref){if(e.uiunqref){var r=JSON.parse(atob(e.uiunqref));a((function(t){var n;return r&&(null==r?void 0:r.question)===(null===(n=e.suggestions)||void 0===n?void 0:n.faqs[0].question)?o.updateSearchResponse(t,e,r):t})),c(r)}}else(i=p(e,s))&&(null===(n=Object.keys(i))||void 0===n?void 0:n.length)>0&&a((function(e){return yt(yt([],e,!0),[i],!1)}))},p=function(e,t){var n;return e&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)>0&&(e.suggestionFrom=Le.ASSIST),{data:e,type:Oe.SUGGESTIONS,uuid:t,searchResponse:o.formatSearchResponse(e),connectionDetails:o.connectionDetails}};return R("div",{className:"assist-data-wrapper-container"},R("div",{className:"assist-block-content"},R("div",{className:"assist-header-content"},R("div",{className:"left-title-info"},R("div",{className:"text-dropdown-info"},R("h1",null,"Assist")))),R("div",{className:"scroll-data-assist aa-assist-section"},null===(t=i)||void 0===t?void 0:t.map((function(e,t){return e.type===Oe.SUGGESTIONS&&R(bt,{hostInstance:n,suggestions:e,suggestionIndex:t,key:t,ambiguityToken:l})})))))}var wt=n(478),At={};At.styleTagTransform=v(),At.setAttributes=p(),At.insert=d().bind(null,"head"),At.domAPI=l(),At.insertStyleElement=g();a()(wt.A,At);wt.A&&wt.A.locals&&wt.A.locals;var kt=function(){return kt=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},kt.apply(this,arguments)};function Et(){return R("div",{className:"input-block aa-input-block"},R("input",{id:"aa-search-input",type:"text",className:"input-control","aria-describedby":"search",placeholder:"Ask a customer",value:""}),R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"aa-input-search-icon"},R("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"})),R("button",{className:"clear-search aa-input-search-close aa-hidden"},R("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},R("path",{d:"M15 5.2002L5 15.2002M5 5.2002L15 15.2002",stroke:"#667085","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}))))}function Ct(e){var t,n,o=e.hostInstance,s=_e({value:"",isEntered:!1}),i=s[0],a=s[1],r=_e(""),l=r[0],c=r[1],d=_e({}),u=d[0],p=d[1],h=_e(!1),g=h[0],f=h[1],v=_e(null),b=(v[0],v[1]),m=_e(null),_=(m[0],m[1],_e(!1)),y=_[0],x=_[1],w=o.rootService,A=_e(!1),k=A[0],E=A[1],C=_e(!1),S=C[0],T=C[1],I=_e(!1),N=I[0],O=I[1],L=Me,M=qe;ye((function(){var e=function(e){var t;(null==e?void 0:e.suggestions)&&(null===(t=Object.keys(null==e?void 0:e.suggestions))||void 0===t?void 0:t.length)>0&&(e.isSearch||e.uiunqref)&&(U(e),x(!1))};return o.on("agentassistAgentResponse",e),F(),function(){o.off("agentassistAgentResponse",e)}}),[]),ye((function(){w.handleSearchText(i,o)}),[i]),ye((function(){B(y)}),[y]),ye((function(){var e;!w.faqAnswerIdsPlace&&u&&(null===(e=Object.keys(u))||void 0===e?void 0:e.length)>0&&(V(),j())}),[u]);var B=function(e){var t,n=null===(t=null==o?void 0:o.chatEle)||void 0===t?void 0:t.querySelector(L.SEARCH_INPUT_BLOCK);n&&((null==n?void 0:n.querySelector(L.SEARCH_INPUT_CLOSE)).disabled=e)},F=function(){var e,t,n,s,i,a=oe(Et,{},o);o.emit(Pe.BEFORE_VIEW_INIT,a,{event:Pe.SEARCH_INPUT}),a&&(null===(n=null===(t=null===(e=null==o?void 0:o.chatEle)||void 0===e?void 0:e.querySelector(L.SEARCH_SUGGESTION_WRAPPER))||void 0===t?void 0:t.querySelector("#".concat(M.SEARCH_SUGGESTION_BLOCK)))||void 0===n||n.append(a),null===(s=o.eventManager)||void 0===s||s.addEventListener("#".concat(M.SEARCH_INPUT),"keyup",(function(e){"Enter"===e.key?G(e):H(e)}),a),null===(i=o.eventManager)||void 0===i||i.addEventListener(L.SEARCH_INPUT_CLOSE,"click",(function(e){P()}),a))},H=function(e){a({value:e.target.value,isEntered:!1});var t=e.target.value;t.length>0?l===t||l.includes(t):P()},G=function(e){x(!0),D(e.target.value,!0),c(""),setTimeout((function(){x(!1)}),15e3)},D=function(e,t){void 0===t&&(t=!1),a({value:e,isEntered:t})},P=function(){a({value:"",isEntered:!1}),c(""),f(!1),p({}),b(null),w.faqAnswerIdsPlace=!1},U=function(e){var t,n,s,i,a,r,l,c,d;if(f(!0),null==e?void 0:e.suggestions)if(e.uiunqref){if(e.uiunqref){var u=JSON.parse(atob(e.uiunqref));if(e.suggestions.faqs=w.formatFAQResponse(e.suggestions.faqs),w.faqAnswerIdsPlace=!(!u||(null==u?void 0:u.question)!==e.suggestions.faqs[0].question),w.faqAnswerIdsPlace){var h=null===(l=null===(r=null==e?void 0:e.suggestions)||void 0===r?void 0:r.faqs)||void 0===l?void 0:l.findIndex((function(e,t){if(e.question===u.question)return e})),g={};if(h>=0&&(g=null===(c=null==e?void 0:e.suggestions)||void 0===c?void 0:c.faqs[h]),g&&(null===(d=Object.keys(g))||void 0===d?void 0:d.length)>0){var v=[];p((function(e){var t;return v=null===(t=null==e?void 0:e.faqs)||void 0===t?void 0:t.map((function(e,t){return g&&g.answer&&t===u.index&&(e.answer=g.answer),g&&(e.showSpinner=!1),e})),e})),w.handleFaqAmbiguityDescElement(M.SEARCH_FAQ_SUGGESTION,u,v,k,N,S,o),p((function(e){return kt(kt({},e),{faqs:v})}))}}}}else{w.faqAnswerIdsPlace=!1;var b=w.formatSearchResponse(e,!0);b&&Object.keys(b).length>0&&(b=kt(kt({},b),{totalSearchResults:((null===(t=b.dialogs)||void 0===t?void 0:t.length)||0)+((null===(n=b.faqs)||void 0===n?void 0:n.length)||0)+((null===(s=b.articles)||void 0===s?void 0:s.length)||0)+((null===(i=b.files)||void 0===i?void 0:i.length)||0)+((null===(a=b.snippets)||void 0===a?void 0:a.length)||0)}),p(b))}else p({})},V=function(){var e,t,n,s,i,a=document.getElementById(M.SEARCH_FAQ_SUGGESTION),r=document.getElementById(M.SEARCH_SNIPPET_SUGGESTION),l=document.getElementById(M.SEARCH_ARTICLE_SUGGESTION),c=document.getElementById(M.SEARCH_FILE_SUGGESTION);if(z(),null==(i=[a,r,l,c])||i.forEach((function(e){e&&(e.innerHTML="")})),null===(e=(null==u?void 0:u.faqs)||[])||void 0===e?void 0:e.length){var d,p=void 0;p=oe(nt,{searchResponse:u,hostInstance:o,faqs:u.faqs,viewCount:2},o),(d=oe(et,{hostInstance:o,faqs:u.faqs,moreClick:!1},o))&&(null==p||p.append(d)),null==a||a.append(p),o.emit(Pe.BEFORE_VIEW_INIT,p,{event:Pe.SEARCH_FAQ_TEMPLATE,data:u.faqs});var h=p.querySelectorAll(L.SUGGESTION_EACH);w.renderEachFaqInSuggestionList(u,h,k,N,S,o,!1,{}),d&&(w.handleSuggestionMoreClickEvent(d,a,h,o),w.handleSuggestionLessClickEvent(d,a,h,o))}if(null===(t=null==u?void 0:u.snippets)||void 0===t?void 0:t.length){var g=void 0;g=oe(ht,{searchResponse:u,hostInstance:o,snippets:u.snippets},o),null==r||r.append(g),o.emit(Pe.BEFORE_VIEW_INIT,g,{event:Pe.SEARCH_SNIPPET_TEMPLATE,data:u.snippets});var f=g.querySelectorAll(L.SUGGESTION_EACH);w.renderEachSnippetInSuggestionList(u,f,k,N,S,o)}if((null===(n=(null==u?void 0:u.articles)||[])||void 0===n?void 0:n.length)>0){var v,b=void 0;b=oe(Ye,{searchResponse:u,hostInstance:o,articles:u.articles,viewCount:2},o),(v=oe(ze,{hostInstance:o,articles:u.articles,moreClick:!1},o))&&(null==b||b.append(v)),null==l||l.append(b),o.emit(Pe.BEFORE_VIEW_INIT,b,{event:Pe.SEARCH_ARTICE_TEMPLATE,data:u.articles});var m=b.querySelectorAll(L.SUGGESTION_EACH);w.renderEachArticleInSuggestionList(u,m,k,N,S,o),v&&(w.handleSuggestionMoreClickEvent(v,l,m,o),w.handleSuggestionLessClickEvent(v,l,m,o))}if(null===(s=null==u?void 0:u.files)||void 0===s?void 0:s.length){var _,y=void 0;y=oe(lt,{searchResponse:u,hostInstance:o,files:u.files},o),(_=oe(at,{hostInstance:o,files:u.files,moreClick:!1},o))&&(null==y||y.append(_)),null==c||c.append(y),o.emit(Pe.BEFORE_VIEW_INIT,y,{event:Pe.SEARCH_FILE_TEMPLATE,data:u.files});var x=y.querySelectorAll(L.SUGGESTION_EACH);w.renderEachFileInSuggestionList(u,x,k,N,S,o),_&&(w.handleSuggestionMoreClickEvent(_,c,x,o),w.handleSuggestionLessClickEvent(_,c,x,o))}},j=function(){var e,t,n=null===(e=u.faqs)||void 0===e?void 0:e.filter((function(e,t){return!e.answer&&(e.index=t,!0)}));1===(null==n?void 0:n.length)&&W(n[0],null===(t=n[0])||void 0===t?void 0:t.index)},W=function(e,t){e.toggle=!e.toggle,e.seeMoreWrapper=!1;var n=M.SEARCH_FAQ_SUGGESTION;w.toggleArrows(t,n),w.checkAnswerAndToggleForSearch(e,t,o)},z=function(){var e,t,n=!1,o=!1;E(w.connectionDetails.channel===Le.VOICE),!1===(null===(e=null==w?void 0:w.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(T(!0),o=!0),!1===(null===(t=null==w?void 0:w.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(O(!0),n=!0),o&&n&&E(!0)};return R("div",{className:"search-block-data-suggestions-wrapper aa-search-suggestion-wrapper"},R("div",{class:"search-block-data-suggestions"},R("div",{className:"suggestionslist-conntent-search"},((null===(t=Object.keys(u))||void 0===t?void 0:t.length)>0||g)&&R(q,null,R(gt,{hostInstance:o,searchResponse:u,isAssist:!1})),0==(null===(n=Object.keys(u))||void 0===n?void 0:n.length)&&g&&!y&&R("div",{class:"empty-search-container-wrapper"},R("figure",null,R("img",{src:"/src/assets/images/icons/search-empty.png"})),R("h1",{className:"aa-text-md m-0 center"},"No Search Result Found"),R("p",{className:"aa-desc-sm m-0 center"},'"Could you rephrase your question or ask something else?"')),y&&R("div",{id:"loader",className:"loader-progress-individual"},R("div",{className:"loading-border"}))),R("div",{className:"search-block-input",id:"searchSuggestionsBlock"})))}var St=n(762),Tt={};Tt.styleTagTransform=v(),Tt.setAttributes=p(),Tt.insert=d().bind(null,"head"),Tt.domAPI=l(),Tt.insertStyleElement=g();a()(St.A,Tt);St.A&&St.A.locals&&St.A.locals;function It(e){var t=_e(0);t[0],t[1];return R(q,null,R("div",{className:"transcript-tepmlate-wrapper"},R("div",{className:"transcript-tepmlate-data"},R("h1",{className:"transcript-header aa-text-md semibold"},"Transcript"),R("div",{className:"transcript-body-wrapper"},R("div",{className:"agent-joined-banner"},R("div",{className:"line-border"}),R("div",{className:"info-joined-details"},R("h4",{className:"aa-text-sm"},"Agent joined the conversation"),R("p",{className:"aa-desc-xs"},"Today at 2:45pm")),R("div",{className:"line-border"})),R("div",{className:"aa-bot-bubble-comp"},R("div",{className:"bot-bubble-content"},R("div",{className:"top-info"},R("div",{className:"you-text",title:"test4"},"Primary Bot"),R("div",{className:"time-tamp"},R("time",null,"2:32pm, Today"))),R("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."))),R("div",{className:"aa-agent-bubble-comp"},R("div",{className:"agent-bubble-content"},R("div",{className:"top-info"},R("div",{className:"time-tamp"},R("time",null,"06:21 pm, 11/07/24")),R("div",{className:"you-text"},"Winona")),R("div",{className:"bubble-msg"},"Hi Charlie. Yes, I need help with my current policy."))),R("div",{className:"summery-wrapper"},R("div",{className:"summery-header"},R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81524V8.01866C9.56245 8.60838 8.98161 8.80996 8.40024 8.80996C7.3657 8.80996 6.64453 7.93073 6.64453 6.92499C6.64453 5.90316 7.3657 5.00732 8.40024 5.00732C8.98161 5.00732 9.56245 5.21212 9.99979 5.81524Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})),R("span",{className:"aa-text-md medium"},"SUMMARY")),R("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 Nt=n(144),Ot={};Ot.styleTagTransform=v(),Ot.setAttributes=p(),Ot.insert=d().bind(null,"head"),Ot.domAPI=l(),Ot.insertStyleElement=g();a()(Nt.A,Ot);Nt.A&&Nt.A.locals&&Nt.A.locals;var Lt=function(e){return R("div",{className:"widget-header-sec"},R("div",{className:"logo-sec"},R("figure",null,R("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R("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"})))),R("div",{className:"right-chart-data"},R("div",{className:"aa-toggle-switch"},R("input",{type:"checkbox",checked:!0,id:"aa-proactiveBtn"}),R("button",{className:"aa-slider"},R("div",{className:"slide-parent"},R("div",{className:"slider-btn"})),R("div",{class:"aa-text-xs"},"Proactive Mode")))))};function Rt(e){e.hostInstance.rootService;return R("div",null,R("h1",null," MyBot "))}function Mt(e){var t=_e(!0),n=t[0],o=t[1],s=_e(!1),i=s[0],a=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),u=d[0],p=d[1],h=_e("light"),g=h[0],f=h[1],v=[{type:"srch",title:"Search"},{type:"mB",title:"My Bot"},{type:"ast",title:"Assist"},{type:"trnspt",title:"Transcript"}],b=e.connectionDetails,m=Re,_=e.hostInstance,y=Me,x=qe,w=y.SDK_MAIN_WRAPPER;ye((function(){k(),E(),_.on("updateActiveTab",(function(e){C(e.activeTab,e.footerTag)}))}),[]);var A=function(){f("light"===g?"dark":"light")},k=function(){var e,t;t=oe(Lt,{},_);var n=_.chatEle.querySelector(y.HEADER);n&&t&&(_.emit(Pe.BEFORE_VIEW_INIT,t,{event:Pe.HEADER_TEMPLATE,data:{}}),n.append(t),null===(e=null==_?void 0:_.eventManager)||void 0===e||e.addEventListener("#".concat(x.PROACTIVE_BTN),"click",(function(e){null==_||_.emit(Ue.proactiveChange,e.target.checked),null==_||_.handleOverrideMode(e.target.checked)}),t))},E=function(){var e;e=oe(He,{tabsNTitles:v,selectedTab:m.ast,showTranscript:!0,connectionDetails:b,sourceDesktop:"SomeSource",hideUserBotHistory:false,projConstants:Ne,selectedTheme:g,chooseTheme:A,hostInstance:_},_);var t=_.chatEle.querySelector(y.FOOTER);t&&(_.emit(Pe.BEFORE_VIEW_INIT,e,{event:Pe.FOOTER_TEMPLATE,data:{tabsNTitles:v,footerTag:t}}),t.append(e),v.forEach((function(e){var n;null===(n=_.eventManager)||void 0===n||n.addEventListener("".concat(y.FOOTER_BTN).concat(e.type),"click",(function(){C(e.type,t)}),t)})))},C=function(e,t){S(e),v.forEach((function(n){var o,s,i=t.querySelector("".concat(y.FOOTER_BTN).concat(n.type));n.type===e?(o=i.classList).add.apply(o,["selected-tab","sel-bg"]):(s=i.classList).remove.apply(s,["selected-tab","sel-bg"])}))},S=function(e,t){switch(void 0===t&&(t=!0),t&&(o(!1),a(!1),c(!1),p(!1)),e){case"ast":default:o(!0);break;case"srch":c(!0);break;case"mB":a(!0);break;case"trnspt":p(!0)}};return R("div",{className:w,"aria-label":"agent-window-section"},R("section",{className:"section-agent-aa-wrapper"},R("header",{className:"aa-header"}),R("section",{className:"body-container-aa"},R("div",{className:n?"animate-compo-slide-up-wrapper":"aa-hidden"},R(xt,{hostInstance:_})),R("div",{className:l?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Ct,{hostInstance:_})),R("div",{className:u?"animate-compo-slide-up-wrapper":"aa-hidden"},R(It,{hostInstance:_})),R("div",{className:i?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Rt,{hostInstance:_}))),R("footer",{className:"aa-footer"}),R("div",{className:"nudges-wrapper-fixed aa-d-none"},R("div",{className:"nudges-template-data"},R("div",{className:"nudges-card"},R("div",{className:"icon_block"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M2.55371 8.35C2.55371 7.7701 3.02381 7.3 3.60371 7.3C4.18361 7.3 4.65371 7.7701 4.65371 8.35V12.55C4.65371 13.1299 4.18361 13.6 3.60371 13.6C3.02381 13.6 2.55371 13.1299 2.55371 12.55V8.35Z",fill:"white"}),R("path",{d:"M5.35371 8.23334V12.0348C5.35371 12.565 5.65331 13.0498 6.12761 13.287L6.1625 13.3044C6.5513 13.4988 6.98002 13.6 7.4147 13.6H11.206C11.8733 13.6 12.4479 13.129 12.5788 12.4746L13.4188 8.27457C13.5921 7.40826 12.9295 6.6 12.046 6.6H9.55371V3.8C9.55371 3.0268 8.92691 2.4 8.15371 2.4C7.76711 2.4 7.45371 2.7134 7.45371 3.1V3.56667C7.45371 4.1725 7.25721 4.762 6.89371 5.24667L5.91371 6.55334C5.55021 7.038 5.35371 7.6275 5.35371 8.23334Z",fill:"white"}))),R("p",null,"Great Job"),R("button",{className:"close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"nudges-card info-nudge"},R("p",null,"Check customer’s account"),R("button",{className:"close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"nudges-card warning-nudge"},R("div",{className:"icon_block"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.71312 3.61289C7.27776 2.60908 8.72302 2.60908 9.28766 3.61289L13.4086 10.9389C13.9624 11.9235 13.2509 13.14 12.1213 13.14H3.87949C2.74988 13.14 2.03841 11.9235 2.59222 10.9389L6.71312 3.61289ZM8.7388 10.9246C8.7388 11.3325 8.40817 11.6631 8.00033 11.6631C7.59248 11.6631 7.26185 11.3325 7.26185 10.9246C7.26185 10.5168 7.59248 10.1862 8.00033 10.1862C8.40817 10.1862 8.7388 10.5168 8.7388 10.9246ZM8.00033 5.01685C7.59248 5.01685 7.26185 5.34748 7.26185 5.75533V7.97075C7.26185 8.37859 7.59248 8.70922 8.00033 8.70922C8.40817 8.70922 8.7388 8.37859 8.7388 7.97075V5.75533C8.7388 5.34748 8.40817 5.01685 8.00033 5.01685Z",fill:"white"}))),R("p",null,"Offer Discounts"),R("button",{className:"close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"nudges-card danger-nudge"},R("div",{className:"icon_block"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M7.29961 3.1C7.29961 2.7134 7.61301 2.4 7.99961 2.4C8.38621 2.4 8.69961 2.7134 8.69961 3.1V6.95C8.69961 7.1433 8.85631 7.3 9.04961 7.3C9.24291 7.3 9.39961 7.1433 9.39961 6.95V3.8C9.39961 3.4134 9.71301 3.1 10.0996 3.1C10.4862 3.1 10.7996 3.4134 10.7996 3.8V6.95C10.7996 7.1433 10.9563 7.3 11.1496 7.3C11.3429 7.3 11.4996 7.1433 11.4996 6.95V5.2C11.4996 4.8134 11.813 4.5 12.1996 4.5C12.5862 4.5 12.8996 4.8134 12.8996 5.2V8.7C12.8996 11.4062 10.7058 13.6 7.99961 13.6C5.29341 13.6 3.09961 11.4062 3.09961 8.7V7.3C3.09961 6.9134 3.41301 6.6 3.79961 6.6C4.18621 6.6 4.49961 6.9134 4.49961 7.3V9.05C4.49961 9.2433 4.65631 9.4 4.84961 9.4C5.04291 9.4 5.19961 9.2433 5.19961 9.05V3.8C5.19961 3.4134 5.51301 3.1 5.89961 3.1C6.28621 3.1 6.59961 3.4134 6.59961 3.8V6.95C6.59961 7.1433 6.75631 7.3 6.94961 7.3C7.14291 7.3 7.29961 7.1433 7.29961 6.95V3.1Z",fill:"white"}))),R("p",null,"Transfer to Manager"),R("button",{className:"close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"})))))),R("div",{className:"hints-wrapper-fixed aa-d-none"},R("div",{className:"hints-template-data"},R("div",{className:"hint-card"},R("div",{className:"top-card-info"},R("div",{className:"icon_block"},R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M5.76708 0.5C5.40707 0.5 5.08084 0.712015 4.93462 1.04099L3.25425 4.82184C3.21348 4.91357 3.19219 4.96087 3.17474 4.99418L3.17319 4.99711L3.16988 4.99734C3.13236 4.99976 3.08048 5 2.9801 5L2.58073 5C2.31715 4.99999 2.08977 4.99998 1.90249 5.01528C1.70481 5.03144 1.50821 5.06709 1.31902 5.16349C1.03677 5.3073 0.807302 5.53677 0.663492 5.81901C0.567095 6.0082 0.531437 6.20481 0.515286 6.40249C0.499985 6.58977 0.499992 6.81714 0.5 7.08071V9.41927C0.499992 9.68284 0.499985 9.91023 0.515286 10.0975C0.531437 10.2952 0.567095 10.4918 0.663492 10.681C0.807302 10.9632 1.03677 11.1927 1.31902 11.3365C1.50821 11.4329 1.70481 11.4686 1.90249 11.4847C2.08977 11.5 2.31715 11.5 2.58072 11.5C2.81228 11.5 3 11.3123 3 11.0807L3 7C3 6.72386 3.22386 6.5 3.5 6.5C3.77614 6.5 4 6.72386 4 7L4 10.7C4 10.98 4 11.12 4.0545 11.227C4.10243 11.3211 4.17892 11.3976 4.27301 11.4455C4.37996 11.5 4.51997 11.5 4.8 11.5H7.9598C8.30918 11.5 8.59925 11.5 8.83792 11.4818C9.08711 11.4629 9.31681 11.4222 9.53857 11.3217C9.88536 11.1646 10.1801 10.9117 10.3881 10.5929C10.5212 10.3889 10.5963 10.1681 10.6529 9.9247C10.7072 9.69158 10.7513 9.40489 10.8044 9.05958L11.0722 7.31883C11.1426 6.86136 11.2003 6.4863 11.2207 6.18021C11.2418 5.86439 11.228 5.56971 11.1203 5.28725C10.9548 4.85354 10.6437 4.49087 10.2402 4.26142C9.9774 4.11199 9.68824 4.05357 9.37289 4.02636C9.06724 3.99999 8.68779 3.99999 8.22491 4H7.8C7.65174 4 7.57061 3.99961 7.51232 3.99485L7.50573 3.99428L7.50515 3.98768C7.50039 3.92939 7.5 3.84826 7.5 3.7V2.23292C7.5 1.27585 6.72415 0.5 5.76708 0.5Z",fill:"#039855"}))),R("h1",null,"Great Job!"),R("button",{className:"close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},"You did a fantastic job providing the customer with the latest discounts."),R("div",{className:"footer-hint"},R("button",{"aria-label":"button"},"OK, Great!"))),R("div",{className:"hint-card info-hint"},R("div",{className:"top-card-info"},R("div",{className:"icon_block"},R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2008 6.00005C10.2008 8.31964 8.32038 10.2 6.00078 10.2C3.68119 10.2 1.80078 8.31964 1.80078 6.00005C1.80078 3.68045 3.68119 1.80005 6.00078 1.80005C8.32038 1.80005 10.2008 3.68045 10.2008 6.00005ZM6.52578 8.10005C6.52578 8.39 6.29073 8.62505 6.00078 8.62505C5.71083 8.62505 5.47578 8.39 5.47578 8.10005C5.47578 7.8101 5.71083 7.57505 6.00078 7.57505C6.29073 7.57505 6.52578 7.8101 6.52578 8.10005ZM6.00078 3.37505C5.71083 3.37505 5.47578 3.6101 5.47578 3.90005V6.00005C5.47578 6.29 5.71083 6.52505 6.00078 6.52505C6.29073 6.52505 6.52578 6.29 6.52578 6.00005V3.90005C6.52578 3.6101 6.29073 3.37505 6.00078 3.37505Z",fill:"#667085"}))),R("h1",null,"Warm Greeting for Customer"),R("button",{className:"close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},"Greet the customer with a warm and thoughtful greeting."),R("div",{className:"footer-hint"},R("button",{"aria-label":"button"},"OK, Great!"))),R("div",{className:"hint-card warning-hint"},R("div",{className:"top-card-info"},R("div",{className:"icon_block"},R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.40714 0.834185C6.14848 0.719172 5.8532 0.719172 5.59454 0.834185C5.39478 0.923011 5.26501 1.07947 5.17471 1.20696C5.08593 1.3323 4.99087 1.49651 4.88634 1.67711L0.75276 8.81693C0.647804 8.99818 0.552428 9.16289 0.487757 9.30268C0.422033 9.44475 0.35073 9.63572 0.373455 9.85369C0.40286 10.1357 0.550631 10.392 0.779988 10.5588C0.957236 10.6877 1.15823 10.7217 1.31411 10.736C1.46749 10.75 1.65782 10.75 1.86726 10.75H10.1344C10.3438 10.75 10.5342 10.75 10.6876 10.736C10.8434 10.7217 11.0444 10.6877 11.2217 10.5588C11.451 10.392 11.5988 10.1357 11.6282 9.85369C11.651 9.63572 11.5796 9.44475 11.5139 9.30268C11.4493 9.1629 11.3539 8.9982 11.2489 8.81697L7.11533 1.67709C7.0108 1.49651 6.91575 1.3323 6.82697 1.20696C6.73667 1.07947 6.6069 0.923011 6.40714 0.834185ZM6.50085 4.5C6.50085 4.22386 6.277 4 6.00085 4C5.72471 4 5.50085 4.22386 5.50085 4.5V6.5C5.50085 6.77614 5.72471 7 6.00085 7C6.277 7 6.50085 6.77614 6.50085 6.5V4.5ZM6.00085 8C5.72471 8 5.50085 8.22386 5.50085 8.5C5.50085 8.77614 5.72471 9 6.00085 9H6.00585C6.282 9 6.50585 8.77614 6.50585 8.5C6.50585 8.22386 6.282 8 6.00585 8H6.00085Z",fill:"#F79009"}))),R("h1",null,"Offer latest discounts"),R("button",{className:"close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},"Price objection was detected. Provide the customer with one of the current discount offers."),R("div",{className:"footer-hint"},R("button",{"aria-label":"button"},"OK, Great!"))),R("div",{className:"hint-card danger-hint"},R("div",{className:"top-card-info"},R("div",{className:"icon_block"},R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M3.45 5.72222V7.11111M3.45 5.72222V2.38889C3.45 1.92865 3.83056 1.55556 4.3 1.55556C4.76944 1.55556 5.15 1.92865 5.15 2.38889M3.45 5.72222C3.45 5.26198 3.06944 4.88889 2.6 4.88889C2.13056 4.88889 1.75 5.26198 1.75 5.72222V6.83333C1.75 9.13452 3.65279 11 6 11C8.34721 11 10.25 9.13452 10.25 6.83333V4.05556C10.25 3.59532 9.86944 3.22222 9.4 3.22222C8.93056 3.22222 8.55 3.59532 8.55 4.05556M5.15 2.38889V5.44444M5.15 2.38889V1.83333C5.15 1.3731 5.53056 1 6 1C6.46944 1 6.85 1.3731 6.85 1.83333V2.38889M6.85 2.38889V5.44444M6.85 2.38889C6.85 1.92865 7.23056 1.55556 7.7 1.55556C8.16944 1.55556 8.55 1.92865 8.55 2.38889V4.05556M8.55 4.05556V5.44444",stroke:"#F04438","stroke-linecap":"round","stroke-linejoin":"round"}))),R("h1",null,"Fowl Language Warning"),R("button",{className:"close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},"Please refrain from using words and phrases that are not allowed when conversing with the customer... more"),R("div",{className:"footer-hint"},R("button",{"aria-label":"button"},"OK, Great!"))))),R("div",{className:"summery-wrapper-container aa-d-none"},R("div",{className:"summery-popup-data",id:"summary"},R("div",{className:"title-block"},R("h1",null,"Summary"),R("div",{className:"ai-block"},R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81524V8.01866C9.56245 8.60838 8.98161 8.80996 8.40024 8.80996C7.3657 8.80996 6.64453 7.93073 6.64453 6.92499C6.64453 5.90316 7.3657 5.00732 8.40024 5.00732C8.98161 5.00732 9.56245 5.21212 9.99979 5.81524Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})),R("span",null,"Suggested"),R("button",{type:"button",className:"close-summery"},R("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},R("path",{d:"M15 5.2002L5 15.2002M5 5.2002L15 15.2002",stroke:"#667085","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}))))),R("div",{className:"input-block"},R("textarea",{className:"input-control",id:"summaryText",placeholder:"Type Summary...",rows:4,cols:50}),R("button",{className:"recylin-bin-btn"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M13.3333 4.99996V4.33329C13.3333 3.39987 13.3333 2.93316 13.1517 2.57664C12.9919 2.26304 12.7369 2.00807 12.4233 1.84828C12.0668 1.66663 11.6001 1.66663 10.6667 1.66663H9.33333C8.39991 1.66663 7.9332 1.66663 7.57668 1.84828C7.26308 2.00807 7.00811 2.26304 6.84832 2.57664C6.66667 2.93316 6.66667 3.39987 6.66667 4.33329V4.99996M8.33333 9.58329V13.75M11.6667 9.58329V13.75M2.5 4.99996H17.5M15.8333 4.99996V14.3333C15.8333 15.7334 15.8333 16.4335 15.5608 16.9683C15.3212 17.4387 14.9387 17.8211 14.4683 18.0608C13.9335 18.3333 13.2335 18.3333 11.8333 18.3333H8.16667C6.76654 18.3333 6.06647 18.3333 5.53169 18.0608C5.06129 17.8211 4.67883 17.4387 4.43915 16.9683C4.16667 16.4335 4.16667 15.7334 4.16667 14.3333V4.99996",stroke:"#D92D20","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"actions-footer"},R("div",{className:"footer-btns-left-sec"},R("button",{className:"aa_btn primaryBtn",id:"summarySubmit"},"Submit"),R("button",{className:"aa_btn aa-solidbtn",id:"summaryCopy"},"Copy")))))))}const qt=Object.create(null);qt.open="0",qt.close="1",qt.ping="2",qt.pong="3",qt.message="4",qt.upgrade="5",qt.noop="6";const Bt=Object.create(null);Object.keys(qt).forEach((e=>{Bt[qt[e]]=e}));const Ft={type:"error",data:"parser error"},Ht="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Gt="function"==typeof ArrayBuffer,Dt=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Pt=({type:e,data:t},n,o)=>Ht&&t instanceof Blob?n?o(t):Ut(t,o):Gt&&(t instanceof ArrayBuffer||Dt(t))?n?o(t):Ut(new Blob([t]),o):o(qt[e]+(t||"")),Ut=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Vt(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let jt;const Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)zt[Wt.charCodeAt(e)]=e;const Qt="function"==typeof ArrayBuffer,Yt=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Kt(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:Zt(e.substring(1),t)};return Bt[n]?e.length>1?{type:Bt[n],data:e.substring(1)}:{type:Bt[n]}:Ft},Zt=(e,t)=>{if(Qt){const n=(e=>{let t,n,o,s,i,a=.75*e.length,r=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),d=new Uint8Array(c);for(t=0;t<r;t+=4)n=zt[e.charCodeAt(t)],o=zt[e.charCodeAt(t+1)],s=zt[e.charCodeAt(t+2)],i=zt[e.charCodeAt(t+3)],d[l++]=n<<2|o>>4,d[l++]=(15&o)<<4|s>>2,d[l++]=(3&s)<<6|63&i;return c})(e);return Kt(n,t)}return{base64:!0,data:e}},Kt=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Jt=String.fromCharCode(30);function Xt(){return new TransformStream({transform(e,t){!function(e,t){Ht&&e.data instanceof Blob?e.data.arrayBuffer().then(Vt).then(t):Gt&&(e.data instanceof ArrayBuffer||Dt(e.data))?t(Vt(e.data)):Pt(e,!1,(e=>{jt||(jt=new TextEncoder),t(jt.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 $t;function en(e){return e.reduce(((e,t)=>e+t.length),0)}function tn(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 nn(e){if(e)return function(e){for(var t in nn.prototype)e[t]=nn.prototype[t];return e}(e)}nn.prototype.on=nn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},nn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},nn.prototype.off=nn.prototype.removeListener=nn.prototype.removeAllListeners=nn.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},nn.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},nn.prototype.emitReserved=nn.prototype.emit,nn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},nn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const on="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function sn(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const an=on.setTimeout,rn=on.clearTimeout;function ln(e,t){t.useNativeTimers?(e.setTimeoutFn=an.bind(on),e.clearTimeoutFn=rn.bind(on)):(e.setTimeoutFn=on.setTimeout.bind(on),e.clearTimeoutFn=on.clearTimeout.bind(on))}class cn extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class dn extends nn{constructor(e){super(),this.writable=!1,ln(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new cn(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=Yt(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 un="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),pn=64,hn={};let gn,fn=0,vn=0;function bn(e){let t="";do{t=un[e%pn]+t,e=Math.floor(e/pn)}while(e>0);return t}function mn(){const e=bn(+new Date);return e!==gn?(fn=0,gn=e):e+"."+bn(fn++)}for(;vn<pn;vn++)hn[un[vn]]=vn;let _n=!1;try{_n="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const yn=_n;function xn(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||yn))return new XMLHttpRequest}catch(e){}if(!t)try{return new(on[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function wn(){}const An=null!=new xn({xdomain:!1}).responseType;class kn extends nn{constructor(e,t){super(),ln(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=sn(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new xn(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=kn.requestsCount++,kn.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=wn,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete kn.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(kn.requestsCount=0,kn.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",En);else if("function"==typeof addEventListener){addEventListener("onpagehide"in on?"pagehide":"unload",En,!1)}function En(){for(let e in kn.requests)kn.requests.hasOwnProperty(e)&&kn.requests[e].abort()}const Cn="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Sn=on.WebSocket||on.MozWebSocket,Tn="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const In={websocket:class extends dn{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=Tn?{}:sn(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=Tn?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;Pt(n,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(e){}o&&Cn((()=>{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]=mn()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Sn}},webtransport:class extends dn{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){$t||($t=new TextDecoder);const n=[];let o=0,s=-1,i=!1;return new TransformStream({transform(a,r){for(n.push(a);;){if(0===o){if(en(n)<1)break;const e=tn(n,1);i=!(128&~e[0]),s=127&e[0],o=s<126?3:126===s?1:2}else if(1===o){if(en(n)<2)break;const e=tn(n,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),o=3}else if(2===o){if(en(n)<8)break;const e=tn(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){r.enqueue(Ft);break}s=i*Math.pow(2,32)+t.getUint32(4),o=3}else{if(en(n)<s)break;const e=tn(n,s);r.enqueue(Yt(i?e:$t.decode(e),t)),o=0}if(0===s||s>e){r.enqueue(Ft);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=Xt();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&&Cn((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends dn{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=An&&!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(Jt),o=[];for(let e=0;e<n.length;e++){const s=Yt(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)=>{Pt(e,!1,(e=>{o[i]=e,++s===n&&t(o.join(Jt))}))}))})(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]=mn()),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 kn(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}}},Nn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,On=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ln(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=Nn.exec(e||""),i={},a=14;for(;a--;)i[On[a]]=s[a]||"";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 Rn extends nn{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=Ln(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=Ln(t.host).host),ln(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 In[e](n)}open(){let e;if(this.opts.rememberUpgrade&&Rn.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;Rn.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;Rn.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 a(){i("transport closed")}function r(){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",a),this.off("close",r),this.off("upgrading",l)};t.once("open",o),t.once("error",i),t.once("close",a),this.once("close",r),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",Rn.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){Rn.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}}Rn.protocol=4;Rn.protocol;const Mn="function"==typeof ArrayBuffer,qn=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Bn=Object.prototype.toString,Fn="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Bn.call(Blob),Hn="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===Bn.call(File);function Gn(e){return Mn&&(e instanceof ArrayBuffer||qn(e))||Fn&&e instanceof Blob||Hn&&e instanceof File}function Dn(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Dn(e[t]))return!0;return!1}if(Gn(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return Dn(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Dn(e[t]))return!0;return!1}function Pn(e){const t=[],n=e.data,o=e;return o.data=Un(n,t),o.attachments=t.length,{packet:o,buffers:t}}function Un(e,t){if(!e)return e;if(Gn(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]=Un(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]=Un(e[o],t));return n}return e}function Vn(e,t){return e.data=jn(e.data,t),delete e.attachments,e}function jn(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]=jn(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=jn(e[n],t));return e}const Wn=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],zn=5;var Qn;!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"}(Qn||(Qn={}));class Yn{constructor(e){this.replacer=e}encode(e){return e.type!==Qn.EVENT&&e.type!==Qn.ACK||!Dn(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Qn.EVENT?Qn.BINARY_EVENT:Qn.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==Qn.BINARY_EVENT&&e.type!==Qn.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=Pn(e),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}}function Zn(e){return"[object Object]"===Object.prototype.toString.call(e)}class Kn extends nn{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===Qn.BINARY_EVENT;n||t.type===Qn.BINARY_ACK?(t.type=n?Qn.EVENT:Qn.ACK,this.reconstructor=new Jn(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!Gn(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===Qn[n.type])throw new Error("unknown packet type "+n.type);if(n.type===Qn.BINARY_EVENT||n.type===Qn.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(!Kn.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 Qn.CONNECT:return Zn(t);case Qn.DISCONNECT:return void 0===t;case Qn.CONNECT_ERROR:return"string"==typeof t||Zn(t);case Qn.EVENT:case Qn.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===Wn.indexOf(t[0]));case Qn.ACK:case Qn.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Jn{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=Vn(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Xn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const $n=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eo extends nn{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=[Xn(e,"open",this.onopen.bind(this)),Xn(e,"packet",this.onpacket.bind(this)),Xn(e,"error",this.onerror.bind(this)),Xn(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($n.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:Qn.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:Qn.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 Qn.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 Qn.EVENT:case Qn.BINARY_EVENT:this.onevent(e);break;case Qn.ACK:case Qn.BINARY_ACK:this.onack(e);break;case Qn.DISCONNECT:this.ondisconnect();break;case Qn.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:Qn.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:Qn.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 to(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}to.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)},to.prototype.reset=function(){this.attempts=0},to.prototype.setMin=function(e){this.ms=e},to.prototype.setMax=function(e){this.max=e},to.prototype.setJitter=function(e){this.jitter=e};class no extends nn{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,ln(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 to({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 Rn(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=Xn(t,"open",(function(){n.onopen(),e&&e()})),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=Xn(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(Xn(e,"ping",this.onping.bind(this)),Xn(e,"data",this.ondata.bind(this)),Xn(e,"error",this.onerror.bind(this)),Xn(e,"close",this.onclose.bind(this)),Xn(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){Cn((()=>{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 eo(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 oo={};function so(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=Ln(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,a=oo[s]&&i in oo[s].nsps;let r;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?r=new no(o,t):(oo[s]||(oo[s]=new no(o,t)),r=oo[s]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(so,{Manager:no,Socket:eo,io:so,connect:so});const io=function(){function e(e){this.hostIns=e}return e.prototype.socketConnection=function(e){var t,n=this;this.configOptions=e;var o={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:null===(t=null==e?void 0:e.connectionDetails)||void 0===t?void 0:t.token}}};this._agentAssistSocket=so(o.url,o.options),this._agentAssistSocket.connect(),this.listenEvents(),this._agentAssistSocket.on("connect",(function(){n.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,a=(o.autoBotId,o.channel),r=o.interactiveLanguage,l=o.botId;t&&(t.isExtAD=!s,t.source=i,t.experience=a,t.traceId=n&&t.traceId?t.traceId:"ua-f0f3edc3-16ca-4e02-9363-4f48c602df62",t.language=r),"internal_transfer"==e&&(t.botId=l),this._agentAssistSocket.emit(e,t)},e.prototype.listenEvents=function(){var e=this;this._agentAssistSocket.on(De.agent_assist_response,(function(t){e.hostIns.emit(Ue.agentAssistRespone,t)})),this._agentAssistSocket.on(De.agent_menu_response,(function(e){})),this._agentAssistSocket.on(De.agent_coaching_response,(function(e){})),this._agentAssistSocket.on(De.checklist_step_response,(function(e){})),this._agentAssistSocket.on(De.checklist_response,(function(e){})),this._agentAssistSocket.on(De.realtime_sentiment_response,(function(e){})),this._agentAssistSocket.on(De.agent_assist_agent_response,(function(t){e.hostIns.emit(Ue.agentassistAgentResponse,t)})),this._agentAssistSocket.on(De.agent_assist_endoftask,(function(e){})),this._agentAssistSocket.on(De.user_message,(function(e){})),this._agentAssistSocket.on(De.agent_message,(function(e){})),this._agentAssistSocket.on(De.agent_assist_user_message,(function(e){})),this._agentAssistSocket.on(De.agent_feedback_response,(function(e){})),this._agentAssistSocket.on(De.response_resolution_comments,(function(e){})),this._agentAssistSocket.on(De.agentassist_control_response,(function(e){}))},e}();var ao=function(){return ao=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},ao.apply(this,arguments)},ro=function(){function e(){this.isAutomationOnGoing=!1,this.grantResponseObj={},this.prefsAccessObj={tabsNTitles:[],prefs:{}},this.connectionDetails={},this.settingsData={},this.numOfLines=4,this.maxHeight="max-content",this.scrollHeight=Number.MAX_VALUE,this.classConstants=Me,this.idConstants=qe,this.faqambiguityResponse=!1}return e.prototype.formatSearchResponse=function(e,t){var n,o,s,i,a,r,l,c,d,u,p,h,g;void 0===t&&(t=!1);var f=e.suggestions,v=f.dialogs||[],b=f.faqs||[],m=this.formatSnippetResponse((null===(n=null==f?void 0:f.searchassist)||void 0===n?void 0:n.snippets)||[],e),_=(null===(o=null==f?void 0:f.searchassist)||void 0===o?void 0:o.files)||[],y={};(null==f?void 0:f.searchassist)&&(null===(s=null==f?void 0:f.searchassist)||void 0===s?void 0:s.snippets)&&0==(null===(a=null===(i=null==f?void 0:f.searchassist)||void 0===i?void 0:i.snippets)||void 0===a?void 0:a.length)&&delete f.searchassist.snippets;var x=Object.keys((null==f?void 0:f.searchassist)||{});if((null==f?void 0:f.searchassist)&&1==(null==x?void 0:x.length)&&"searchRequestId"===x[0]&&(f.searchassist={}),v.length||b.length||m.length||_.length||(null==f?void 0:f.searchassist)&&(null===(r=Object.keys(null==f?void 0:f.searchassist))||void 0===r?void 0:r.length)){if(y.dialogs=[],y.faqs=[],y.articles=[],y.snippets=[],y.files=[],f.searchassist&&(null===(l=Object.keys(f.searchassist))||void 0===l?void 0:l.length)>0){var w=function(e){"snippets"!=e&&"file"!=e&&"searchRequestId"!=e&&(f.searchassist[e]=A.checkEmptyObjectsInArray(f.searchassist[e]),f.searchassist[e]&&(null===(c=Object.keys(f.searchassist[e]))||void 0===c?void 0:c.length)>0&&y.articles.push.apply(y.articles,f.searchassist[e])),"file"==e&&(f.searchassist[e]=A.checkEmptyObjectsInArray(f.searchassist[e]),f.searchassist[e]&&(null===(d=Object.keys(f.searchassist[e]))||void 0===d?void 0:d.length)>0&&y.files.push.apply(y.files,f.searchassist[e])),e&&"searchRequestId"!=e&&(null===(u=null==f?void 0:f.searchassist[e])||void 0===u||u.forEach((function(t){t.subType=e})))},A=this;for(var k in f.searchassist)w(k);for(var E=0,C=y.articles;E<C.length;E++){var S=C[E];S.showMoreButton=!0,S.showLessButton=!1,S.content=S.content?S.content:"",S.contentId=S.contentId,S.userInput=e.userInput,S.sourceMsgId=e.sourceMsgId||"",S.subType=S.subType,S.intType=t?"mybot":"assist",S.feedbackData=this.prepareFeedbackForSuggestions("article",S,{})}for(var T=0,I=y.files;T<I.length;T++){var N=I[T];N.showMoreButton=!0,N.showLessButton=!1,N.content=N.content?N.content:"",N.contentId=N.contentId,N.userInput=e.userInput,N.sourceMsgId=e.sourceMsgId||"",N.subType=N.subType,N.intType=t?"mybot":"assist",N.feedbackData=this.prepareFeedbackForSuggestions("file",N,{})}}for(var O=0,L=b;O<L.length;O++){var R=L[O],M={question:R.question,displayName:R.displayName,taskRefId:null==R?void 0:R.taskRefId,answer:!!(R.answer&&R.answer.length>0)&&[],showMoreButton:!0,showLessButton:!1,answerRender:R.answer||!1,childBotId:R.childBotId,childBotName:R.childBotName,answerCount:1,sourceMsgId:e.sourceMsgId||"",positionId:R.positionId,userInput:e.userInput,intType:e.intType};if(R.answer&&R.answer.length>0)for(var q=0,B=R.answer;q<B.length;q++){var F={ans:B[q],taskRefId:R.taskRefId,showMoreButton:!0,showLessButton:!1,displayName:R.displayName,sourceMsgId:e.sourceMsgId||"",positionId:R.positionId};M.answer.push(F)}var H=R.historyFeedback?R.historyFeedback:{};M.feedbackData=this.prepareFeedbackForSuggestions("faqs",M,H),M.feedbackData.interactionType=t?"mybot":"assist",y.faqs.push(M)}if((null===(h=null===(p=null==f?void 0:f.searchassist)||void 0===p?void 0:p.snippets)||void 0===h?void 0:h.length)>0){(null==m?void 0:m.length)>0&&(y.snippets=Object.assign([],m));for(var G=0,D=y.snippets;G<D.length;G++){var P=D[G];P.showMoreButton=!0,P.showLessButton=!1,P.subType="snippets"}}for(var U=0,V=v;U<V.length;U++){var j=V[U];j.entities&&(null===(g=j.entities)||void 0===g?void 0:g.length)>0&&j.entities.forEach((function(e){e.editMode=!1})),y.dialogs.push({name:j.name,agentRunButton:!1,childBotId:j.childBotId,childBotName:j.childBotName,entities:j.entities,userInput:e.userInput,sourceMsgId:e.sourceMsgId||""})}}return y},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="",a="",r=[];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==r.indexOf(e.title);return t&&r.push(e.title),-1!=r.indexOf(e.title)&&(s+="fragment-ext-".concat(r.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,d=null==e?void 0:e.sources;c<d.length;c++){var u=d[c];if((null==u?void 0:u.title)&&-1!=r.indexOf(null==u?void 0:u.title)){var p=r.indexOf(u.title);l+='<span class="source-count-num">'.concat(p+1,"</span>")}}l+="</span>",e.internalFlag?a+=l:i+=l})),o.contentArray=[],o.internalInfo=[],(null==a?void 0:a.trim())&&o.internalInfo.push(null==a?void 0:a.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.updateSearchResponse=function(e,t,n){var o,s,i,a;t.suggestions.faqs=this.formatFAQResponse(t.suggestions.faqs);var r=null===(s=null===(o=null==t?void 0:t.suggestions)||void 0===o?void 0:o.faqs)||void 0===s?void 0:s.findIndex((function(e,t){if(e.question===n.question)return e})),l={};if(r>=0&&(l=null===(i=null==t?void 0:t.suggestions)||void 0===i?void 0:i.faqs[r]),l&&(null===(a=Object.keys(l))||void 0===a?void 0:a.length)>0){var c=e.map((function(e,t){var o;if(t===n.assistSuggestion){var s=ao({},e),i=null===(o=s.searchResponse)||void 0===o?void 0:o.faqs[n.index];return i&&l&&(null==l?void 0:l.answer)&&(i.answer=null==l?void 0:l.answer,i.toggle=!0,i.showMoreButton=!1,i.showLessButton=!1,i.showSpinner=!1),s.faqArrowClickResponse=!0,s}return e}));return c}},e.prototype.prepareFeedbackForSuggestions=function(e,t,n){var o,s,i;void 0===n&&(n={});var a={type:Oe.FEEDBACK,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)a.isFromGeneratedSummary=t.isFromGeneratedSummary,a.answerType=t.templateType,a.title=t.title,a.answer=t.sendCopyText||"",a.interactionType=t.intType,a.sources=t.sources,(null===(s=t.internalInfo)||void 0===s?void 0:s.length)>0&&(a.answer+=t.internalInfo.join(" "));else if("article"==e||"file"==e)a.title=t.title,a.answer=t.content||"",a.interactionType=t.intType;else if("faqs"==e){var r="";Array.isArray(null==t?void 0:t.answer)&&(null===(i=null==t?void 0:t.answer)||void 0===i||i.forEach((function(e){r+=e.ans}))),a.title=t.question,a.answer=r}return a},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){var t,n,o=[];if(e&&(null==e?void 0:e.length)>0)for(var s=0,i=e;s<i.length;s++){var a=i[s],r={question:a.question,taskRefId:null==a?void 0:a.taskRefId,answer:!!((null==a?void 0:a.answer)&&(null===(t=null==a?void 0:a.answer)||void 0===t?void 0:t.length)>0)&&[]};if(a.answer&&a.answer.length>0)for(var l=0,c=a.answer;l<c.length;l++){var d=c[l],u={taskRefId:a.taskRefId,ans:d,showMoreButton:!0,showLessButton:!1};null===(n=null==r?void 0:r.answer)||void 0===n||n.push(u)}o.push(r)}return o},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.prototype.handleSendCopyButton=function(e,t,n){var o={};return e==Le.SEND?(o={method:"send",name:Le.SENDMSG,conversationId:this.connectionDetails.conversationId,payload:t.sendContent},n===Le.ARTICLE?(o.title=t.title,o.contentId=t.contentId):(o.title=t.displayName,o.contentId=t.taskRefId)):(o={method:"copy",name:Le.COPYMSG,conversationId:this.connectionDetails.conversationId,payload:t.sendContent},n===Le.ARTICLE?(o.title=t.title,o.contentId=t.contentId):(o.title=t.displayName,o.contentId=t.taskRefId)),o.type=n==Le.FAQ?"faq":"article",window.parent.postMessage(o,"*"),console.log("🚀 ~ postMessage ~ agentAssist"+o.name),this.faqArticleSendorCopyEvent(n,o,t)},e.prototype.faqArticleSendorCopyEvent=function(e,t,n){var o,s={botId:this.connectionDetails.botId,conversationId:this.connectionDetails.conversationId,experience:null===(o=this.connectionDetails)||void 0===o?void 0:o.channel,source:this.connectionDetails.source,usedType:t.method,type:t.type,name:t.name,payload:t.payload,title:t.title,contentId:t.contentId,positionId:n.positionId?n.positionId:""};return s=this.addSourceMsgIdToRequestParams(n,s),n.subType&&(s.subType=n.subType),s},e.prototype.addSourceMsgIdToRequestParams=function(e,t){return e.sourceMsgId&&("fromLibrary"==e.sourceMsgId?t.fromLibrary=!0:t.sourceMsgId=e.sourceMsgId),t},e.prototype.addSentOrCopiedTextForFaqs=function(e,t,n,o){var s=t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE),i=t.querySelector("".concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_SENT_TEXT));if(!e.send&&!i){e.send=n;var a=oe($e,{ansObj:e},o);s.append(a)}},e.prototype.addSentOrCopiedTextForFiles=function(e,t,n,o){if(!e.send){e.send=n;var s=oe(it,{file:e},o);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}},e.prototype.addSentOrCopiedTextForArticle=function(e,t,n,o){if(!e.send){e.send=n;var s=oe(We,{article:e},o);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}},e.prototype.addSentOrCopiedTextForSnippets=function(e,t,n,o){if(!e.send){e.send=n;var s=oe(ut,{snippet:e},o);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}},e.prototype.handleSendCopyButtonForFaq=function(e,t,n,o,s){t.sourceMsgId=o,t.sendContent=t.answer||t.ans;var i=this.handleSendCopyButton(e,t,n);s.socketConnection.emitEvents(De.agent_send_or_copy,i)},e.prototype.handleSendCopyButtonForSnippet=function(e,t,n,o){t.sendContent=t.sendCopyText;var s=this.handleSendCopyButton(e,t,n);o.socketConnection.emitEvents(De.agent_send_or_copy,s)},e.prototype.handleSendCopyButtonArticleOrFile=function(e,t,n,o){t.sendContent=t.content;var s=this.handleSendCopyButton(e,t,n);o.socketConnection.emitEvents(De.agent_send_or_copy,s)},e.prototype.handleActionTemplateClickEventsForFAQ=function(e,t,n,o,s){var i,a,r=this;null===(i=s.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){r.handleSendCopyButtonForFaq(Le.SEND,n,Le.FAQ,t.sourceMsgId,s),r.addSentOrCopiedTextForFaqs(n,o,"send",s)}),e),null===(a=s.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){r.handleSendCopyButtonForFaq(Le.COPY,n,Le.FAQ,t.sourceMsgId,s),r.addSentOrCopiedTextForFaqs(n,o,"copy",s)}),e)},e.prototype.handleFaqExpandCloseBtnClickEvents=function(e,t,n,o,s){var i,a,r=this,l=e.querySelector(this.classConstants.SUGGESTION_FAQ_EXPAND),c=e.querySelector(this.classConstants.SUGGESTION_FAQ_CLOSE),d=null==o?void 0:o.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_FAQ_ANS_LENGTH));null===(i=s.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_FAQ_EXPAND,"click",(function(){var e,o,s,i,a,u,p,h;(null===(e=null==c?void 0:c.classList)||void 0===e?void 0:e.contains(r.classConstants.HIDE_ELEMENT))&&(null===(o=null==c?void 0:c.classList)||void 0===o||o.remove(r.classConstants.HIDE_ELEMENT)),null===(s=null==l?void 0:l.classList)||void 0===s||s.add(r.classConstants.HIDE_ELEMENT),t.forEach((function(e,t){var n,o;(null===(n=null==e?void 0:e.classList)||void 0===n?void 0:n.contains(r.classConstants.HIDE_ELEMENT))&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.remove(r.classConstants.HIDE_ELEMENT))})),null===(i=null==d?void 0:d.classList)||void 0===i||i.add(r.classConstants.HIDE_ELEMENT),null===(a=null==n?void 0:n.classList)||void 0===a||a.add(r.classConstants.HIDE_ELEMENT);var g=null===(u=t[0])||void 0===u?void 0:u.querySelector(r.classConstants.SUGGESTION_SENDCPY_ACTION);(null===(p=null==g?void 0:g.classList)||void 0===p?void 0:p.contains(r.classConstants.HIDE_ELEMENT))&&(null===(h=null==g?void 0:g.classList)||void 0===h||h.remove(r.classConstants.HIDE_ELEMENT))}),e),null===(a=s.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_FAQ_CLOSE,"click",(function(){var e,o,s,i,a,u,p,h,g;(null===(e=null==l?void 0:l.classList)||void 0===e?void 0:e.contains(r.classConstants.HIDE_ELEMENT))&&(null===(o=null==l?void 0:l.classList)||void 0===o||o.remove(r.classConstants.HIDE_ELEMENT)),null===(s=null==c?void 0:c.classList)||void 0===s||s.add(r.classConstants.HIDE_ELEMENT),t.forEach((function(e,t){var n;0!=t&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.add(r.classConstants.HIDE_ELEMENT))})),(null===(i=null==d?void 0:d.classList)||void 0===i?void 0:i.contains(r.classConstants.HIDE_ELEMENT))&&(null===(a=null==d?void 0:d.classList)||void 0===a||a.remove(r.classConstants.HIDE_ELEMENT)),(null===(u=null==n?void 0:n.classList)||void 0===u?void 0:u.contains(r.classConstants.HIDE_ELEMENT))&&(null===(p=null==n?void 0:n.classList)||void 0===p||p.remove(r.classConstants.HIDE_ELEMENT));var f=null===(h=t[0])||void 0===h?void 0:h.querySelector(r.classConstants.SUGGESTION_SENDCPY_ACTION);null===(g=null==f?void 0:f.classList)||void 0===g||g.add(r.classConstants.HIDE_ELEMENT)}),e)},e.prototype.handleActionTemplateClickEventsForSnippet=function(e,t,n,o){var s,i,a=this;null===(s=o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){a.handleSendCopyButtonForSnippet(Le.SEND,t,Le.ARTICLE,o),a.addSentOrCopiedTextForSnippets(t,n,"send",o)}),e),null===(i=o.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){a.handleSendCopyButtonForSnippet(Le.COPY,t,Le.ARTICLE,o),a.addSentOrCopiedTextForSnippets(t,n,"copy",o)}),e)},e.prototype.handleActionTemplateClickEventsForArticle=function(e,t,n,o){var s,i,a=this;null===(s=o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){a.handleSendCopyButtonArticleOrFile(Le.SEND,t,Le.ARTICLE,o),a.addSentOrCopiedTextForArticle(t,n,"send",o)}),e),null===(i=o.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){a.handleSendCopyButtonArticleOrFile(Le.COPY,t,Le.ARTICLE,o),a.addSentOrCopiedTextForArticle(t,n,"copy",o)}),e)},e.prototype.handleActionTemplateClickEventsForFile=function(e,t,n,o){var s,i,a=this;null===(s=o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){a.handleSendCopyButtonArticleOrFile(Le.SEND,t,Le.ARTICLE,o),a.addSentOrCopiedTextForFiles(t,n,"send",o)}),e),null===(i=o.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){a.handleSendCopyButtonArticleOrFile(Le.COPY,t,Le.ARTICLE,o),a.addSentOrCopiedTextForFiles(t,n,"copy",o)}),e)},e.prototype.handleSuggestionLessClickEvent=function(e,t,n,o){var s,i=this,a=e.querySelector(this.classConstants.SUGGESTION_MORE_LINK),r=e.querySelector(this.classConstants.SUGGESTION_LESS_LINK);null===(s=o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_MORE_LINK,"click",(function(){var e,t,o;(null===(e=null==r?void 0:r.classList)||void 0===e?void 0:e.contains(i.classConstants.HIDE_ELEMENT))&&(null===(t=null==r?void 0:r.classList)||void 0===t||t.remove(i.classConstants.HIDE_ELEMENT)),null===(o=null==a?void 0:a.classList)||void 0===o||o.add(i.classConstants.HIDE_ELEMENT),n.forEach((function(e){var t,n;(null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains(i.classConstants.HIDE_ELEMENT))&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.remove(i.classConstants.HIDE_ELEMENT))}))}),t)},e.prototype.handleSuggestionMoreClickEvent=function(e,t,n,o){var s,i=this,a=e.querySelector(this.classConstants.SUGGESTION_MORE_LINK),r=e.querySelector(this.classConstants.SUGGESTION_LESS_LINK);null===(s=null==o?void 0:o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_LESS_LINK,"click",(function(){var e,t,o;(null===(e=null==a?void 0:a.classList)||void 0===e?void 0:e.contains(i.classConstants.HIDE_ELEMENT))&&(null===(t=null==a?void 0:a.classList)||void 0===t||t.remove(i.classConstants.HIDE_ELEMENT)),null===(o=null==r?void 0:r.classList)||void 0===o||o.add(i.classConstants.HIDE_ELEMENT),n.forEach((function(e,t){var n;t>=2&&e&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.add(i.classConstants.HIDE_ELEMENT))}))}),t)},e.prototype.setFaqIndividualLoader=function(e,t,n){var o,s,i,a,r=this;void 0===t&&(t=!1);var l=document.getElementById(n),c=null===(o=(null==l?void 0:l.querySelectorAll(this.classConstants.SUGGESTION_EACH))[e])||void 0===o?void 0:o.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_FAQ_ANS_LOADER));t&&c?null===(s=null==c?void 0:c.classList)||void 0===s||s.add(this.classConstants.HIDE_ELEMENT):c&&((null===(i=null==c?void 0:c.classList)||void 0===i?void 0:i.contains(this.classConstants.HIDE_ELEMENT))&&(null===(a=null==c?void 0:c.classList)||void 0===a||a.remove(this.classConstants.HIDE_ELEMENT)),setTimeout((function(){var e;null===(e=null==c?void 0:c.classList)||void 0===e||e.add(r.classConstants.HIDE_ELEMENT)}),1e4))},e.prototype.addOrHideFAQArrows=function(e,t,n){var o,s,i,a,r,l;"up"===n?((null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(this.classConstants.HIDE_ELEMENT))&&(null===(s=null==t?void 0:t.classList)||void 0===s||s.remove(this.classConstants.HIDE_ELEMENT)),null===(i=null==e?void 0:e.classList)||void 0===i||i.add(this.classConstants.HIDE_ELEMENT)):((null===(a=null==e?void 0:e.classList)||void 0===a?void 0:a.contains(this.classConstants.HIDE_ELEMENT))&&(null===(r=null==e?void 0:e.classList)||void 0===r||r.remove(this.classConstants.HIDE_ELEMENT)),null===(l=null==t?void 0:t.classList)||void 0===l||l.add(this.classConstants.HIDE_ELEMENT))},e.prototype.toggleArrows=function(e,t){var n,o=document.getElementById(t),s=null===(n=(null==o?void 0:o.querySelectorAll(this.classConstants.SUGGESTION_EACH))[e])||void 0===n?void 0:n.querySelector(this.classConstants.SUGGESTION_EACH_HEADER),i=null==s?void 0:s.querySelector(this.classConstants.SUGGESTION_FAQ_UP_ARROW),a=null==s?void 0:s.querySelector(this.classConstants.SUGGESTION_FAQ_DOWN_ARROW);this.addOrHideFAQArrows(i,a,"down")},e.prototype.openLinksInBrowser=function(e){this.openurlInBrowser(e)},e.prototype.openurlInBrowserForSnippet=function(e,t,n){this.openurlInBrowser(e),this.handleUrlClickEvent(e,t,n)},e.prototype.handleUrlClickEvent=function(e,t,n){var o=this.commonRequestParamsForActivity(t);o.eventType="url_clicked",o.url=e,n.socketConnection.emitEvents(De.agent_activity_request,o)},e.prototype.commonRequestParamsForActivity=function(e){var t=this.connectionDetails,n=t.botId,o=t.conversationId;t.channel;return{botId:n,conversationId:o,event:"clicked",sourceMsgId:e.sourceMsgId,dataSource:"snippet",positionId:e.positionId}},e.prototype.emitSearchRequestForAssistSuggestions=function(e,t,n,o){var s=Object.assign({},this.connectionDetails);s.value=e,s.isSearch=t,s.interactiveLanguage&&"string"==typeof s.interactiveLanguage&&"''"!=s.interactiveLanguage&&(s.language=s.interactiveLanguage),n.sourceMsgId&&(s.sourceMsgId=n.sourceMsgId);var i=o.prepareAgentAssistRequestParams(s);n.ambiguityToken&&(i.uiunqref=n.ambiguityToken),o.socketConnection.emitEvents(De.agent_assist_request,i)},e.prototype.emitSearchRequestForSearch=function(e,t,n,o){var s,i;void 0===n&&(n={});var a=ao(ao({},null===(i=null===(s=null==o?void 0:o.socketConnection)||void 0===s?void 0:s.configOptions)||void 0===i?void 0:i.connectionDetails),{value:e,isSearch:t});a.interactiveLanguage&&"string"==typeof a.interactiveLanguage&&"''"!==a.interactiveLanguage&&(a.language=a.interactiveLanguage),n&&n.sourceMsgId&&(a.sourceMsgId=n.sourceMsgId);var r=o.prepareAgentAssistAgentRequestParams(a);n.ambiguityToken&&(r.uiunqref=n.ambiguityToken),o.socketConnection.emitEvents(De.agent_assist_agent_request,r)},e.prototype.handleFaqAmbiguityDescElement=function(e,t,n,o,s,i,a){var r,l,c,d=document.getElementById(e),u=null==d?void 0:d.querySelectorAll(this.classConstants.SUGGESTION_EACH),p=null==t?void 0:t.index,h=n[p];this.setFaqIndividualLoader(p,!0,e),h&&(null===(r=null==h?void 0:h.answer)||void 0===r?void 0:r.length)>0&&u[p]&&(c=oe(Je,{faq:h},a),a.emit(Pe.BEFORE_VIEW_INIT,c,{event:Pe.FAQ_ANSWER_AFTER_TOGGLE,data:n}),c&&u[p].append(c));var g=null===(l=u[p])||void 0===l?void 0:l.querySelector(this.classConstants.SUGGESTION_EACH_HEADER);this.addOrHideFAQActionExpandCloseElements(h,o,s,i,g,u,p,a)},e.prototype.handleFaqToggle=function(e,t,n,o,s,i,a){var r,l=this;e.toggle=!e.toggle,e.seeMoreWrapper=!1;var c=null===(r=o[t])||void 0===r?void 0:r.querySelectorAll(this.classConstants.SUGGESTION_EACH_BODY);"down"!=n||e.answer?"down"==n&&e.answer?c.forEach((function(e,t){var n,o;(null===(n=null==e?void 0:e.classList)||void 0===n?void 0:n.contains(l.classConstants.HIDE_ELEMENT))&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.remove(l.classConstants.HIDE_ELEMENT))})):"up"==n&&c.forEach((function(e,t){var n;null===(n=null==e?void 0:e.classList)||void 0===n||n.add(l.classConstants.HIDE_ELEMENT)})):i?this.checkAnswerAndToggleForAssist(e,t,s,a):this.checkAnswerAndToggleForSearch(e,t,s)},e.prototype.checkAnswerAndToggleForAssist=function(e,t,n,o){if(!e.answer&&e.toggle){e.ambiguityToken=btoa(JSON.stringify({question:e.question,index:t,assistSuggestion:o.suggestionIndex})),this.emitSearchRequestForAssistSuggestions(e.displayName,!1,e,n);var s=this.idConstants.ASSIST_FAQ_SUGGESTION+o.suggestionIndex;this.setFaqIndividualLoader(t,!1,s)}},e.prototype.checkAnswerAndToggleForSearch=function(e,t,n){!e.answer&&e.toggle&&(e.ambiguityToken=btoa(JSON.stringify({question:e.question,index:t})),this.emitSearchRequestForSearch(e.displayName,!1,e,n),this.setFaqIndividualLoader(t,!1,this.idConstants.SEARCH_FAQ_SUGGESTION))},e.prototype.renderEachFaqInSuggestionList=function(e,t,n,o,s,i,a,r){var l,c=this;null===(l=null==e?void 0:e.faqs)||void 0===l||l.forEach((function(e,l){var d,u,p,h,g=null===(d=t[l])||void 0===d?void 0:d.querySelector(c.classConstants.SUGGESTION_EACH_HEADER),f=null==g?void 0:g.querySelector(c.classConstants.SUGGESTION_FAQ_UP_ARROW),v=null==g?void 0:g.querySelector(c.classConstants.SUGGESTION_FAQ_DOWN_ARROW);null===(u=i.eventManager)||void 0===u||u.addEventListener(c.classConstants.SUGGESTION_FAQ_UP_ARROW,"click",(function(){c.addOrHideFAQArrows(f,v,"up"),c.handleFaqToggle(e,l,"up",t,i,a,r)}),g),null===(p=i.eventManager)||void 0===p||p.addEventListener(c.classConstants.SUGGESTION_FAQ_DOWN_ARROW,"click",(function(){c.addOrHideFAQArrows(f,v,"down"),c.handleFaqToggle(e,l,"down",t,i,a,r)}),g),e.answer&&(null===(h=null==e?void 0:e.answer)||void 0===h?void 0:h.length)>0&&!n&&c.addOrHideFAQActionExpandCloseElements(e,n,o,s,g,t,l,i)}))},e.prototype.renderEachSnippetInSuggestionList=function(e,t,n,o,s,i){var a,r=this;null===(a=null==e?void 0:e.snippets)||void 0===a||a.forEach((function(e,a){var l,c,d=oe(pt,{snippet:e,hostInstance:i,hideActionButtons:n,hideCopyButton:o,hideSendButton:s},i);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[a])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForSnippet(d,e,t[a],i));var u=t[a].querySelectorAll(r.classConstants.SUGGESTION_SNIPPET_SOURCE_TAG);null===(c=e.sources)||void 0===c||c.forEach((function(t,n){var o;null===(o=i.eventManager)||void 0===o||o.addEventListener(r.classConstants.SUGGESTION_SNIPPET_LINK,"click",(function(){r.openurlInBrowserForSnippet(t.url,e,i)}),u[n])}))}))},e.prototype.renderEachArticleInSuggestionList=function(e,t,n,o,s,i){var a,r=this;null===(a=null==e?void 0:e.articles)||void 0===a||a.forEach((function(e,a){var l,c,d=oe(Qe,{article:e,hostInstance:i,hideActionButtons:n,hideCopyButton:o,hideSendButton:s},i);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[a])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForArticle(d,e,t[a],i)),null===(c=i.eventManager)||void 0===c||c.addEventListener(r.classConstants.SUGGESTION_ARTICLE_LINK,"click",(function(){r.openLinksInBrowser(e.link)}),t[a])}))},e.prototype.renderEachFileInSuggestionList=function(e,t,n,o,s,i){var a,r=this;null===(a=null==e?void 0:e.files)||void 0===a||a.forEach((function(e,a){var l,c,d=oe(rt,{file:e,hostInstance:i,hideActionButtons:n,hideCopyButton:o,hideSendButton:s},i);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[a])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForFile(d,e,t[a],i)),null===(c=i.eventManager)||void 0===c||c.addEventListener(r.classConstants.SUGGESTION_FILE_LINK,"click",(function(){r.openLinksInBrowser(e.link)}),t[a])}))},e.prototype.handleSearchText=function(e,t){var n,o;e.isEntered&&this.emitSearchRequestForSearch(e.value,!0,{},t);var s=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector(this.classConstants.SEARCH_INPUT_BLOCK),i=null===(o=null==t?void 0:t.chatEle)||void 0===o?void 0:o.querySelector("#".concat(this.idConstants.SEARCH_INPUT));if(s){var a=null==s?void 0:s.querySelector(this.classConstants.SEARCH_INPUT_ICON),r=null==s?void 0:s.querySelector(this.classConstants.SEARCH_INPUT_CLOSE);e.value?(a.classList.add(this.classConstants.HIDE_ELEMENT),r.classList.remove(this.classConstants.HIDE_ELEMENT)):(r.classList.add(this.classConstants.HIDE_ELEMENT),a.classList.remove(this.classConstants.HIDE_ELEMENT)),i.value=e.value}},e.prototype.addOrHideFAQActionExpandCloseElements=function(e,t,n,o,s,i,a,r){var l,c,d,u,p,h=this,g=oe(tt,{ansObj:e.answer[0],hostInstance:r,hideActionButtons:t,hideCopyButton:n,hideSendButton:o,addHideClass:!1},r);if(s&&g&&"#text"!=(null==g?void 0:g.nodeName)&&(s.append(g),this.handleActionTemplateClickEventsForFAQ(g,e,e.answer[0],i[a],r)),(null===(l=e.answer)||void 0===l?void 0:l.length)>1){var f=null===(c=i[a])||void 0===c?void 0:c.querySelectorAll(this.classConstants.SUGGESTION_EACH_BODY);null===(d=e.answer)||void 0===d||d.forEach((function(s,l){var c=oe(tt,{ansObj:s,hostInstance:r,hideActionButtons:t,hideCopyButton:n,hideSendButton:o,addHideClass:0==l},r);c&&"#text"!=(null==c?void 0:c.nodeName)&&f&&(null==f?void 0:f.length)>0&&(f[l].prepend(c),h.handleActionTemplateClickEventsForFAQ(c,e,s,i[a],r))}));var v=oe(Xe,{},r);null===(u=i[a])||void 0===u||u.append(v);var b=null===(p=i[a])||void 0===p?void 0:p.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_SENDCPY_ACTION));this.handleFaqExpandCloseBtnClickEvents(v,f,b,i[a],r)}},e}();const lo=ro;const co=function(){function e(e){this.eventMapper=[],this.hostInstance=e}return e.prototype.addEventListener=function(e,t,n,o){var s;o||!this.eventMapper.filter((function(n){return n.querySelector===e&&n.event==t})).length?(this.eventMapper.push({querySelector:e,event:t,cb:n}),null===(s=(o||this.hostInstance.chatEle).querySelector(e))||void 0===s||s.addEventListener(t,n)):console.log("An event already registered with the class")},e.prototype.removeEventListener=function(e,t,n){var o,s,i=this.eventMapper.filter((function(n){return n.querySelector==e&&n.event==t}));null===(o=(n||this.hostInstance.chatEle).querySelector(e))||void 0===o||o.removeEventListener(t,null===(s=i[0])||void 0===s?void 0:s.cb),this.eventMapper.splice(this.eventMapper.findIndex((function(n){return n.querySelector==e&&n.event==t})),1)},e}();var uo=function(){return uo=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},uo.apply(this,arguments)},po=function(e,t,n,o){return new(n||(n=Promise))((function(s,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function r(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(a,r)}l((o=o.apply(e,t||[])).next())}))},ho=function(e,t){var n,o,s,i,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function r(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,r[0]&&(a=0)),a;)try{if(n=1,o&&(s=2&r[0]?o.return:r[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;switch(o=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(s=a.trys,(s=s.length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(6===r[0]&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}},go={jwt_grant:"/api/1.1/oAuth/token/jwtgrant",get_aa_settings:"/agentassist/api/v1/agentassist/:botId/agentassistsetting?e=:channel"};const fo=function(e,t,n,o){return void 0===t&&(t={}),po(void 0,void 0,void 0,(function(){var s,i,a,r,l,c,d,u,p,h,g,f,v,b;return ho(this,(function(m){switch(m.label){case 0:return m.trys.push([0,5,,6]),_=o,s=go[e].replace(/:(\w+)/g,(function(e,t){return void 0!==_[t]?_[t]:":".concat(t)})),i=n.rootService.connectionDetails,a=i.domainURL,r=i.botId,l=((null===(v=n.rootService.grantResponseObj)||void 0===v?void 0:v.userInfo)||{}).accountId,c=((null===(b=n.rootService.grantResponseObj)||void 0===b?void 0:b.authorization)||{}).accessToken,d=new Headers(t.headers||{}),u={iid:r,accountId:l,Authorization:"bearer "+c,"Content-Type":"application/json"},Object.keys(u).forEach((function(e){d.set(e,u[e])})),p=uo(uo({},t),{headers:d}),[4,fetch(a+s,p)];case 1:return(h=m.sent()).ok?[3,3]:[4,h.json()];case 2:throw g=m.sent(),new Error(g.message||"Something went wrong");case 3:return[4,h.json()];case 4:return[2,m.sent()];case 5:throw f=m.sent(),console.error("Fetch error:",f),f;case 6:return[2]}var _}))}))};var vo,bo=(vo=function(e,t){return vo=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])},vo(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}vo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mo=function(e){function t(){var t=e.call(this)||this;return t.handleOverrideMode=function(e,n){var o,s=t.rootService.connectionDetails,i={agentId:"",botId:s.botId,conversationId:s.conversationId,query:"",enable_override_userinput:e,experience:null===(o=t.rootService.connectionDetails)||void 0===o?void 0:o.channel,positionId:n};t.socketConnection.emitEvents(De.enable_override_userinput,i),t.rootService.OverRideMode=e},t}return bo(t,e),t.prototype.show=function(e){var t=this;t.initShow(e),t.eventManager=new co(t)},t.prototype.handleAgentUserMessage=function(e){var t,n,o,s,i,a,r;if("agentAssist.AgentMessage"===(null==e?void 0:e.name)||"AGENT"===e.type||"AGENT"===(null===(t=null==e?void 0:e.author)||void 0===t?void 0:t.type)?(console.log("🚀 ~ handleAgentUserMessage ~ agentAssist.AgentMessage"),this.emitUserAgentMessage(e,"agent_inp_msg")):"agentAssist.CustomerMessage"!==(null==e?void 0:e.name)&&"USER"!==e.type&&"USER"!==(null===(n=null==e?void 0:e.author)||void 0===n?void 0:n.type)||(console.log("🚀 ~ handleAgentUserMessage ~ agentAssist.CustomerMessage"),this.emitUserAgentMessage(e,"user_inp_msg")),e.value){var l=e,c={author:{firstName:null===(o=l.author)||void 0===o?void 0:o.firstName,lastName:null===(s=l.author)||void 0===s?void 0:s.lastName,type:null===(i=l.author)||void 0===i?void 0:i.type},botId:this.rootService.connectionDetails.botId,conversationId:l.conversationid,experience:null===(a=this.rootService.connectionDetails)||void 0===a?void 0:a.channel,query:l.value,positionId:this.rootService.isAutomationOnGoing?this.rootService.currentPositionId:null};(null==l?void 0:l.customData)&&(c.customData=JSON.parse(JSON.stringify(null==l?void 0:l.customData))),(null==l?void 0:l.secureCustomData)?c.secureCustomData=null==l?void 0:l.secureCustomData:"USER"===(null===(r=null==l?void 0:l.author)||void 0===r?void 0:r.type)&&this.socketConnection.emitEvents(De.agent_assist_request,c)}},t.prototype.emitUserAgentMessage=function(e,t){void 0===t&&(t=""),"user_inp_msg"===t?this.socketConnection.emitEvents(De.user_sent_message,e):"agent_inp_msg"===t&&this.socketConnection.emitEvents(De.agent_sent_message,e)},t.prototype.initShow=function(e){var t,n=this;this.socketConnection=new io(this),this.rootService=new lo,this.rootService.connectionDetails=e.connectionDetails,this.JWTSetup(e).then((function(t){n.rootService.grantResponseObj=t,e.JWT_RESP=t,n.socketConnection.configOptions=e;var o=e.connectionDetails.botId;n.getAASettings(o).then((function(t){n.rootService.aaSettings=(null==t?void 0:t.agentAssistSettings)||{},n.socketConnection.socketConnection(e),n.bindEvents()}))})).catch((function(e){})),console.log("inside jew setup"),t=oe(Mt,{},this),this.chatEle=t,this.render(t)},t.prototype.getAASettings=function(e){var t=this.rootService.connectionDetails.channel;return fo("get_aa_settings",{method:"GET",headers:{"Content-Type":"application/json"}},this,{botId:e,channel:t})},t.prototype.JWTSetup=function(e){var t=e.connectionDetails||{},n={assertion:t.token,botInfo:{taskBotId:t.botId,chatBot:"Sample Bot"},token:{}};return fo("jwt_grant",{method:"POST",body:JSON.stringify(n)},this)},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,a=o.autoBotId,r=o.interactiveLanguage,l=o.userName,c=o.customData,d=o.token,u=o.channel,p="",h="",g="";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!=r&&"''"!==r&&(h=r),a&&"undefined"!==a&&(g=a);var f={waitTime:2e3,userName:l,id:i,isSendWelcomeMessage:!0,agentassistInfo:{},botId:s,sendMenuRequest:!0,uId:"",sId:"",experience:u,jToken:d,conversationId:i,autoBotId:g,language:h,allQueryParams:null==e?void 0:e.connectionDetials,customData:p};this.welComeMsgReq(f);var v={botId:s,conversationId:i,experience:u,autoBotId:g,language:h};this.menuReq(v)},t.prototype.prepareAgentAssistRequestParams=function(e){var t,n,o,s,i,a=null===(n=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===n?void 0:n.connectionDetails,r={conversationId:e.conversationId,query:e.value,botId:e.botId,agentId:"",experience:null==a?void 0:a.channel,positionId:e.positionId,intType:"assist"};return e.intentName&&(r.intentName=e.value),e.entities?r.entities=e.entities:r.entities=[],e.childBotId&&(r.childBotId=e.childBotId),e.childBotName&&(r.childBotName=e.childBotName),(null==a?void 0:a.autoBotId)&&"undefined"!==(null==a?void 0:a.autoBotId)?r.autoBotId=a.autoBotId:r.autoBotId="",e.intentName&&e.userInput&&(r.query=e.userInput),this.rootService.isAutomationOnGoing&&(r.positionId=this.rootService.currentPositionId),Array.isArray(e.traits)&&(null===(o=null==e?void 0:e.traits)||void 0===o?void 0:o.length)&&(r.traits=e.traits),e.taskRefId&&(r.taskRefId=e.taskRefId),e.dialogId&&(r.dialogId=e.dialogId),e.isDiscard&&(r.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(r.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)||"",r.attachments=null==e?void 0:e.attachments),r=this.addSourceMsgIdToRequestParams(e,r)},t.prototype.prepareAgentAssistAgentRequestParams=function(e){var t,n,o,s,i,a=null===(n=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===n?void 0:n.connectionDetails,r={isSearch:e.isSearch,conversationId:e.conversationId,query:e.value,botId:e.botId,experience:null==a?void 0:a.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&&(r.intentName=e.intentName),(null==a?void 0:a.autoBotId)&&"undefined"!==(null==a?void 0:a.autoBotId)?r.autoBotId=a.autoBotId:r.autoBotId="",e.intentName&&e.userInput&&(r.query=e.userInput),Array.isArray(e.traits)&&(null===(o=null==e?void 0:e.traits)||void 0===o?void 0:o.length)&&(r.traits=e.traits),e.taskRefId&&(r.taskRefId=e.taskRefId),e.dialogId&&(r.dialogId=e.dialogId),e.isDiscard&&(r.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(r.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)||"",r.attachments=null==e?void 0:e.attachments),r=this.addSourceMsgIdToRequestParams(e,r)},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(De.welcome_message_request,e)},t.prototype.menuReq=function(e){this.socketConnection.emitEvents(De.agent_menu_request,e)},t.prototype.openAssistTab=function(e,t){this.emit("updateActiveTab",{activeTab:"ast",isActive:t,footerTag:e})},t.prototype.openTranscriptTab=function(e,t){this.emit("updateActiveTab",{activeTab:"trnspt",isActive:t,footerTag:e})},t.prototype.openSearchTab=function(e,t){this.emit("updateActiveTab",{activeTab:"srch",isActive:t,footerTag:e})},t.prototype.openMybotTab=function(e,t){this.emit("updateActiveTab",{activeTab:"mB",isActive:t,footerTag:e})},t.prototype.openPlaybookTab=function(e,t){this.emit("updateActiveTab",{activeTab:"playbook",isActive:t,footerTag:e})},t}(C);const _o=mo;const yo={aaParams:{token:{}},container:"body",branding:{general:{},footer:{}}};var xo=o.$,wo=o.T;export{xo as aaConfig,wo as aaWindow};
1
+ var e={958:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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;cursor:pointer}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}.aa-hidden{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}.aa_btn{padding:4px 14px;height:30px;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);box-shadow:0px 1px 2px 0px rgba(16,24,40,.05);display:inline-flex;align-items:center;justify-content:center;text-align:center;color:var(--AA-gloabl-text-color);font-size:14px;font-weight:500;line-height:20px;transition:.2s all ease}.aa_btn.w-100{width:100%}.aa_btn:disabled{opacity:.3}.primaryBtn{border:1px solid var(--AA-global-theme-text-color);background:var(--AA-global-theme-bg);color:var(--AA-global-white-color)}.primaryBtn:focus{box-shadow:0px 0px 0px 4px #eff4ff,0px 1px 2px 0px rgba(16,24,40,.05)}.primaryBtn:active{box-shadow:0px 0px 0px 4px #eff4ff,0px 1px 2px 0px rgba(16,24,40,.05)}.primaryBtn:hover{border:1px solid var(--AA-global-theme-bg);background:var(--AA-global-theme-bg)}.h_100{height:100%}@keyframes bottomToTopMove{0%{opacity:0;transform:translateY(100%);display:none}60%{display:none;opacity:0}100%{opacity:1;display:block;transform:translateY(0%)}}.animate-compo-slide-up-wrapper{height:100%;animation-name:bottomToTopMove;animation-duration:.5s;animation-fill-mode:forwards}: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:state(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 r=a},773:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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%;position:relative;overflow:hidden;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)}@-webkit-keyframes NudgeslideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes NudgeslideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}.nudges-wrapper-fixed{position:absolute;width:100%;height:auto;z-index:9999;max-width:418px;margin:0 auto;left:0;right:0;display:flex;align-items:flex-start;justify-content:center;top:40px;padding:10px 16px;-webkit-animation-name:NudgeslideInDown;animation-name:NudgeslideInDown;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.nudges-wrapper-fixed .nudges-template-data{display:flex;flex-direction:column;gap:6px}.nudges-wrapper-fixed .nudges-template-data .nudges-card{border-radius:24px;background:var(--success-500-main, #22C55E);box-shadow:15px 15px 26px 0px rgba(0,0,0,.15);display:flex;align-items:center;padding:6px 16px;gap:6px}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge{background:var(--AA-gloabl-border)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge p{color:var(--AA-gloabl-text-color)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.info-nudge .close-nudge svg path{stroke:#000}.nudges-wrapper-fixed .nudges-template-data .nudges-card.warning-nudge{background:var(--warning-500-main, #F59E0B)}.nudges-wrapper-fixed .nudges-template-data .nudges-card.danger-nudge{background:var(--destructive-500-main, #EF4444)}.nudges-wrapper-fixed .nudges-template-data .nudges-card .icon_block{flex-shrink:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:var(--AA-global-white-color)}.nudges-wrapper-fixed .nudges-template-data .nudges-card .icon_block svg path{fill:#fff}.nudges-wrapper-fixed .nudges-template-data .nudges-card p{color:var(--AA-global-white-color);font-size:14px;font-weight:500;line-height:20px;margin:0;width:100%}.nudges-wrapper-fixed .nudges-template-data .nudges-card .close-nudge{width:16px;height:16px;background:rgba(0,0,0,0);padding:0;border:0;display:flex;align-items:center;justify-content:center;color:var(--AA-global-white-color);font-size:16px}.nudges-wrapper-fixed .nudges-template-data .nudges-card .close-nudge svg path{stroke:#fff}@-webkit-keyframes HintslideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes HintslideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes shakeHint{0%,100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px, 0, 0);transform:translate3d(-10px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}@keyframes shakeHint{0%,100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px, 0, 0);transform:translate3d(-10px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px, 0, 0);transform:translate3d(10px, 0, 0)}}.hints-wrapper-fixed{position:absolute;width:100%;height:auto;z-index:9999;display:flex;align-items:flex-end;justify-content:center;bottom:56px;overflow:auto;max-height:80%;max-width:100%;margin:0 auto;left:0;right:0;-webkit-animation-name:HintslideInUp;animation-name:HintslideInUp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.hints-wrapper-fixed .hints-template-data{display:flex;flex-direction:column;gap:10px;overflow:auto;height:100%;max-height:100%;padding:10px 16px}.hints-wrapper-fixed .hints-template-data .hint-card{border-radius:12px;background:var(--success-600, #16A34A);box-shadow:0px 25px 50px -12px rgba(16,24,40,.25);position:relative;padding:12px;-webkit-animation-name:shakeHint;animation-name:shakeHint;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;animation-delay:1s;-webkit-animation-delay:1s}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint{background:var(--gray-neutral-500, #6C737F)}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint .top-card-info .icon_block{border:2px solid var(--Neutral-200, #E5E5E5)}.hints-wrapper-fixed .hints-template-data .hint-card.info-hint .top-card-info .icon_block svg path{fill:#667085}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint{background:var(--warning-500, #F79009)}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint .top-card-info .icon_block{border:2px solid var(--Warning-100, #FEF0C7)}.hints-wrapper-fixed .hints-template-data .hint-card.warning-hint .top-card-info .icon_block svg path{fill:#f79009}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint{background:var(--destructive-500-main, #EF4444)}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint .top-card-info .icon_block{border:2px solid var(--error-200, #FECDCA)}.hints-wrapper-fixed .hints-template-data .hint-card.danger-hint .top-card-info .icon_block svg path{stroke:#f04438}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info{display:flex;align-items:center;gap:6px}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info .icon_block{display:flex;width:24px;height:24px;justify-content:center;align-items:center;border-radius:28px;border:2px solid var(--success-100, #D1FADF);background:#fff;flex-shrink:0;color:#039855}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info h1{color:#fff;font-size:14px;font-weight:500;line-height:20px;margin:0;width:100%}.hints-wrapper-fixed .hints-template-data .hint-card .top-card-info .close-hint{flex-shrink:0;width:20px;height:20px;background:rgba(0,0,0,0);padding:0;border:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px}.hints-wrapper-fixed .hints-template-data .hint-card .body-hint{padding:6px 0;color:#fff;font-size:14px;font-weight:400;line-height:20px;margin:0}.hints-wrapper-fixed .hints-template-data .hint-card .footer-hint{text-align:right}.hints-wrapper-fixed .hints-template-data .hint-card .footer-hint button{color:#fff;font-size:14px;font-weight:500;line-height:20px;padding:0;border:0;background:rgba(0,0,0,0);cursor:pointer}@-webkit-keyframes kr-spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes kr-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.loader-progress{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999}.loader-progress .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:40px;height:40px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress img{width:30px;height:30px}.loader-progress-individual{display:flex;align-items:center;justify-content:center;position:absolute;top:0;width:100%;height:100%;z-index:9999}.loader-progress-individual .loading-border{border:3px solid var(--AA-gloabl-border);border-radius:50%;border-top:3px solid var(--AA-global-theme-bg);width:24px;height:24px;-webkit-animation:kr-spin 2s linear infinite;animation:kr-spin 2s linear infinite}.loader-progress-individual img{width:24px;height:24px}.summery-wrapper-container{position:absolute;width:100%;height:100%;background:rgba(52,64,84,.7);border-radius:6px;display:flex;align-items:center;justify-content:center}.summery-wrapper-container .summery-popup-data{background:var(--AA-global-white-bg);border-radius:6px;max-height:80%}.summery-wrapper-container .summery-popup-data .title-block{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--AA-gloabl-border)}.summery-wrapper-container .summery-popup-data .title-block h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:600;line-height:16px;width:100%}.summery-wrapper-container .summery-popup-data .title-block .ai-block{flex-shrink:0;display:flex;align-items:center;color:var(--AA-gloabl-text-color);font-size:12px;font-weight:500;line-height:18px;gap:10px;opacity:.6}.summery-wrapper-container .summery-popup-data .title-block .ai-block svg path{fill:var(--AA-gloabl-text-color)}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery{background:rgba(0,0,0,0);border:0;display:flex;align-items:center;justify-content:center;padding:0;width:16px;height:16px;font-size:16px;color:var(--AA-gloabl-text-color);cursor:pointer}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery svg{width:16px;height:16px}.summery-wrapper-container .summery-popup-data .title-block .ai-block .close-summery svg path{stroke:var(--AA-gloabl-text-color)}.summery-wrapper-container .summery-popup-data .input-block{padding:8px;position:relative}.summery-wrapper-container .summery-popup-data .input-block textarea{min-height:200px}.summery-wrapper-container .summery-popup-data .input-block .recylin-bin-btn{border:0;padding:0;background:var(--AA-global-white-bg);cursor:pointer;z-index:1;position:absolute;right:20px;bottom:20px}.summery-wrapper-container .summery-popup-data .actions-footer{padding:8px;display:flex;align-items:center;gap:10px;justify-content:end;position:relative;min-height:52px;border-top:1px solid var(--AA-gloabl-border)}.summery-wrapper-container .summery-popup-data .actions-footer .footer-btns-left-sec{display:flex;align-items:center;gap:8px}",""]);const r=a},567:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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.selected-tab svg path{stroke:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-white-color)}.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.selected-tab svg path{stroke:var(--AA-global-white-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.sel-bg.selected-tab.aa-footer-btn-srch svg path{fill: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.aa-footer-btn-srch svg path{fill:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-mB svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-ast svg path{stroke:var(--AA-gloabl-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-trnspt svg path{stroke:var(--AA-gloabl-text-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:hover svg path{stroke:var(--AA-global-theme-text-color)}.widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer:hover.aa-footer-btn-srch svg path{fill:var(--AA-global-theme-text-color)}.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 .svg_icon svg{width:18px;height:18px}.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 svg path{stroke:var(--AA-gloabl-text-color)}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.aa-footer-btn-srch svg path{fill:var(--AA-gloabl-text-color)}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 .footer-links-data .footer-list-buttons .btn_footer.selected-tab svg path{stroke:var(--AA-global-theme-text-color) !important}nav .widget-footer-wrapper .footer-links-data .footer-list-buttons .btn_footer.selected-tab.aa-footer-btn-srch svg path{fill:var(--AA-global-theme-text-color) !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 r=a},724:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,".sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.sugestions-block .suggestion-header h1{max-width:100%}.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)}.sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.sugestions-block .suggestion-header .by-n-ai svg{opacity:.5;width:14px;height:14px}.sugestions-block .suggestion-header .by-n-ai svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0;position:relative}.sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card.hidden{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease}.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}.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}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows{flex-shrink:0;cursor:pointer}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg{height:14px;width:14px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-copy-btn-suggestion svg path{stroke:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq:hover .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0;z-index:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading{display:flex;align-items:center;gap:6px;width:100%;margin:6px 0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading h2{font-size:12px;font-weight:500;line-height:18px;margin:0;flex-shrink:0;color:#f04438}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading span{width:100%;height:1px;background:var(--AA-gloabl-border)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.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%}.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}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.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}.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}.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}.sugestions-block .suggestion-body-search .less-text.hidden{display:none}.sugestions-block .suggestion-body-search .more-text.hidden{display:none}.assist-suggestions-list{width:100%;display:flex;flex-direction:column;gap:8px;padding:8px}.assist-suggestions-list .sugestions-block{width:100%;border-radius:4px;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg)}.assist-suggestions-list .sugestions-block .suggestion-body-search{padding-bottom:8px}",""]);const r=a},544:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,".assist-data-wrapper-container{height:100%;padding:8px;width:100%}.assist-data-wrapper-container .assist-block-content{height:100%;display:flex;flex-direction:column;border:1px solid var(--AA-gloabl-border);background:var(--AA-global-white-bg);border-radius:4px}.assist-data-wrapper-container .assist-block-content .assist-header-content{display:flex;align-items:center;padding:8px;min-height:36px;gap:10px;border-bottom:1px solid var(--AA-gloabl-border)}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info{width:100%;overflow:hidden}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info .text-dropdown-info{display:flex;align-items:center;gap:6px}.assist-data-wrapper-container .assist-block-content .assist-header-content .left-title-info .text-dropdown-info h1{color:var(--AA-gloabl-text-color);font-size:14px;font-weight:600;line-height:20px;margin:0 0 2px 0}.assist-data-wrapper-container .assist-block-content .scroll-data-assist{flex:1 1 auto;height:100%;overflow:auto}",""]);const r=a},144:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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 r=a},478:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.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}textarea.input-control{min-height:70px}.sugestions-block{border-radius:4px;border:1px solid var(--borderSuggestions);background:var(--AA-global-white-bg);display:flex;flex-direction:column}.sugestions-block .suggestion-header{display:flex;align-items:center;padding:4px 8px;min-height:32px;gap:5px;width:100%;overflow:hidden;position:relative}.sugestions-block .suggestion-header .icon_block{flex-shrink:0;line-height:0}.sugestions-block .suggestion-header h1{max-width:100%}.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)}.sugestions-block .suggestion-header .by-n-ai{display:flex;align-items:center;color:var(--AA-gloabl-text-desc-color);gap:2px}.sugestions-block .suggestion-header .by-n-ai svg{opacity:.5;width:14px;height:14px}.sugestions-block .suggestion-header .by-n-ai svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-header .by-n-ai i{opacity:.5}.sugestions-block .suggestion-header .by-n-ai .snippet-by-label{color:var(--AA-gloabl-text-desc-color);font-style:italic}.sugestions-block .suggestion-body-search{padding:0px 8px;display:flex;flex-direction:column;gap:8px;width:100%}.sugestions-block .suggestion-body-search .suggestion-item-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:8px 0;position:relative}.sugestions-block .suggestion-body-search .suggestion-item-card:hover{transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card:hover .suggestion-header-faq .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card.hidden{display:none}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq{display:flex;align-items:center;gap:10px;position:relative;transition:.2s all ease}.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}.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}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows{flex-shrink:0;cursor:pointer}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg{height:14px;width:14px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .titles-info-sec .up-down-arrows svg path{fill:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-copy-btn-suggestion svg path{stroke:var(--AA-gloabl-text-color)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-header-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq{width:100%;display:flex;flex-direction:column;gap:8px;position:relative;transition:.2s all ease}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq:hover .action-buttons{display:flex}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons{flex-shrink:0;display:none;align-items:center;gap:4px;position:absolute;right:0;z-index:1}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .action-buttons .aa-solidbtn{height:24px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .more-links-buttons{display:flex;align-items:center;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading{display:flex;align-items:center;gap:6px;width:100%;margin:6px 0}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading h2{font-size:12px;font-weight:500;line-height:18px;margin:0;flex-shrink:0;color:#f04438}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .line-with-text-heading span{width:100%;height:1px;background:var(--AA-gloabl-border)}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper{display:flex;align-items:flex-start;gap:4px}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper h1{font-style:italic;flex-shrink:0}.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%}.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}.sugestions-block .suggestion-body-search .suggestion-item-card .suggestion-body-faq .souces-names-wrapper .source-names .source-tag:hover span{opacity:1}.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}.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}.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}.sugestions-block .suggestion-body-search .less-text.hidden{display:none}.sugestions-block .suggestion-body-search .more-text.hidden{display:none}.search-block-data-suggestions-wrapper{height:100%;padding:8px}.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 .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:8px;z-index:2}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block svg path{fill:var(--AA-gloabl-text-color);opacity:.5}.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:--AA-gloabl-text-color}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search svg{width:16px;height:16px}.search-block-data-suggestions-wrapper .search-block-data-suggestions .search-block-input .input-block .clear-search svg path{stroke:--AA-gloabl-text-color}",""]);const r=a},390:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,"",""]);const r=a},370:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,"",""]);const r=a},36:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,"",""]);const r=a},798:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,".selection-on-snippet-color{background:var(--AA-gloabl-bg-secondary)}.selection-on-snippet-color ul li{background:var(--AA-global-white-color)}.selection-on-snippet-color .source-count-num{color:var(--AA-global-white-color);background:var(--AA-global-theme-bg);display:inline-block;padding:0px 5px;border-radius:100%;min-width:18px;text-align:center}",""]);const r=a},762:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(601),s=n.n(o),i=n(314),a=n.n(i)()(s());a.push([e.id,".transcript-tepmlate-wrapper{height:100%;padding:8px;width:100%}.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 svg path{fill:var(--AA-gloabl-text-color)}",""]);const r=a},314: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 a={};if(o)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);o&&a[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),t.push(d))}},t}},601:e=>{e.exports=function(e){return e[1]}},72: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={},a=[],r=0;r<e.length;r++){var l=e[r],c=o.base?l[0]+o.base:l[0],d=i[c]||0,u="".concat(c," ").concat(d);i[c]=d+1;var p=n(u),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 g=s(h,o);o.byIndex=r,t.splice(r,0,{identifier:u,updater:g,references:1})}a.push(u)}return a}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 a=0;a<i.length;a++){var r=n(i[a]);t[r].references--}for(var l=o(e,s),c=0;c<i.length;c++){var d=n(i[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}i=l}}},659: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}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825: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)}}}},113: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))}}}},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.nc=void 0;var o={};n.d(o,{$:()=>yo,T:()=>_o});var s={};n.r(s),n.d(s,{Decoder:()=>Kn,Encoder:()=>Yn,PacketType:()=>Qn,protocol:()=>zn});var i=n(72),a=n.n(i),r=n(825),l=n.n(r),c=n(659),d=n.n(c),u=n(56),p=n.n(u),h=n(540),g=n.n(h),f=n(113),v=n.n(f),b=n(958),m={};m.styleTagTransform=v(),m.setAttributes=p(),m.insert=d().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=g();a()(b.A,m);b.A&&b.A.locals&&b.A.locals;var _,y,x,w,A,k,E,C=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}(),S={},T=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,N=Array.isArray;function O(e,t){for(var n in t)e[n]=t[n];return e}function L(e){var t=e.parentNode;t&&t.removeChild(e)}function R(e,t,n){var o,s,i,a={};for(i in t)"key"==i?o=t[i]:"ref"==i?s=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?_.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return M(e,a,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!=y.vnode&&y.vnode(i),i}function q(e){return e.children}function B(e,t){this.props=e,this.context=t}function F(e,t){if(null==t)return e.__?F(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?F(e):null}function H(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 H(e)}}function G(e){(!e.__d&&(e.__d=!0)&&w.push(e)&&!D.__r++||A!==y.debounceRendering)&&((A=y.debounceRendering)||k)(D)}function D(){var e,t,n,o,s,i,a,r,l;for(w.sort(E);e=w.shift();)e.__d&&(t=w.length,o=void 0,s=void 0,i=void 0,r=(a=(n=e).__v).__e,(l=n.__P)&&(o=[],s=[],(i=O({},a)).__v=a.__v+1,Z(l,a,i,n.__n,void 0!==l.ownerSVGElement,null!=a.__h?[r]:null,o,null==r?F(a):r,a.__h,s),K(o,a,s),a.__e!=r&&H(a)),w.length>t&&w.sort(E));D.__r=0}function P(e,t,n,o,s,i,a,r,l,c,d){var u,p,h,g,f,v,b,m,_,y=0,x=o&&o.__k||T,w=x.length,A=w,k=t.length;for(n.__k=[],u=0;u<k;u++)null!=(g=n.__k[u]=null==(g=t[u])||"boolean"==typeof g||"function"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?M(null,g,null,null,g):N(g)?M(q,{children:g},null,null,null):g.__b>0?M(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=n,g.__b=n.__b+1,-1===(m=j(g,x,b=u+y,A))?h=S:(h=x[m]||S,x[m]=void 0,A--),Z(e,g,h,s,i,a,r,l,c,d),f=g.__e,(p=g.ref)&&h.ref!=p&&(h.ref&&X(h.ref,null,g),d.push(p,g.__c||f,g)),null!=f&&(null==v&&(v=f),(_=h===S||null===h.__v)?-1==m&&y--:m!==b&&(m===b+1?y++:m>b?A>k-b?y+=m-b:y--:y=m<b&&m==b-1?m-b:0),b=u+y,"function"!=typeof g.type||m===b&&h.__k!==g.__k?"function"==typeof g.type||m===b&&!_?void 0!==g.__d?(l=g.__d,g.__d=void 0):l=f.nextSibling:l=V(e,f,l):l=U(g,l,e),"function"==typeof n.type&&(n.__d=l))):(h=x[u])&&null==h.key&&h.__e&&(h.__e==l&&(l=F(h)),$(h,h,!1),x[u]=null);for(n.__e=v,u=w;u--;)null!=x[u]&&("function"==typeof n.type&&null!=x[u].__e&&x[u].__e==n.__d&&(n.__d=x[u].__e.nextSibling),$(x[u],x[u]))}function U(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?U(o,t,n):V(n,o.__e,t));return t}function V(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 j(e,t,n,o){var s=e.key,i=e.type,a=n-1,r=n+1,l=t[n];if(null===l||l&&s==l.key&&i===l.type)return n;if(o>(null!=l?1:0))for(;a>=0||r<t.length;){if(a>=0){if((l=t[a])&&s==l.key&&i===l.type)return a;a--}if(r<t.length){if((l=t[r])&&s==l.key&&i===l.type)return r;r++}}return-1}function W(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||I.test(t)?n:n+"px"}function z(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||W(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||W(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?Y:Q,i):e.removeEventListener(t,i?Y:Q,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 Q(e){return this.l[e.type+!1](y.event?y.event(e):e)}function Y(e){return this.l[e.type+!0](y.event?y.event(e):e)}function Z(e,t,n,o,s,i,a,r,l,c){var d,u,p,h,g,f,v,b,m,_,x,w,A,k,E,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,r=t.__e=n.__e,t.__h=null,i=[r]),(d=y.__b)&&d(t);e:if("function"==typeof C)try{if(b=t.props,m=(d=C.contextType)&&o[d.__c],_=d?m?m.props.value:d.__:o,n.__c?v=(u=t.__c=n.__c).__=u.__E:("prototype"in C&&C.prototype.render?t.__c=u=new C(b,_):(t.__c=u=new B(b,_),u.constructor=C,u.render=ee),m&&m.sub(u),u.props=b,u.state||(u.state={}),u.context=_,u.__n=o,p=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=C.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=O({},u.__s)),O(u.__s,C.getDerivedStateFromProps(b,u.__s))),h=u.props,g=u.state,u.__v=t,p)null==C.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==C.getDerivedStateFromProps&&b!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(b,_),!u.__e&&(null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(b,u.__s,_)||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=b,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(b,u.__s,_),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(h,g,f)}))}if(u.context=_,u.props=b,u.__P=e,u.__e=!1,w=y.__r,A=0,"prototype"in C&&C.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(t),d=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do{u.__d=!1,w&&w(t),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++A<25);u.state=u.__s,null!=u.getChildContext&&(o=O(O({},o),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(h,g)),P(e,N(E=null!=d&&d.type===q&&null==d.key?d.props.children:d)?E:[E],t,n,o,s,i,a,r,l,c),u.base=t.__e,t.__h=null,u.__h.length&&a.push(u),v&&(u.__E=u.__=null)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=r,t.__h=!!l,i[i.indexOf(r)]=null),y.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=J(n.__e,t,n,o,s,i,a,l,c);(d=y.diffed)&&d(t)}function K(e,t,n){for(var o=0;o<n.length;o++)X(n[o],n[++o],n[++o]);y.__c&&y.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){y.__e(e,t.__v)}}))}function J(e,t,n,o,s,i,a,r,l){var c,d,u,p=n.props,h=t.props,g=t.type,f=0;if("svg"===g&&(s=!0),null!=i)for(;f<i.length;f++)if((c=i[f])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,i[f]=null;break}if(null==e){if(null===g)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,h.is&&h),i=null,r=!1}if(null===g)p===h||r&&e.data===h||(e.data=h);else{if(i=i&&_.call(e.childNodes),d=(p=n.props||S).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!r){if(null!=i)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,o,s){var i;for(i in n)"children"===i||"key"===i||i in t||z(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]||z(e,i,t[i],n[i],o)}(e,h,p,s,r),u)t.__k=[];else if(P(e,N(f=t.props.children)?f:[f],t,n,o,s&&"foreignObject"!==g,i,a,i?i[0]:n.__k&&F(n,0),r,l),null!=i)for(f=i.length;f--;)null!=i[f]&&L(i[f]);r||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===g&&!f||"option"===g&&f!==p.value)&&z(e,"value",f,p.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&z(e,"checked",f,p.checked,!1))}return e}function X(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){y.__e(e,n)}}function $(e,t,n){var o,s;if(y.unmount&&y.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){y.__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]&&$(o[s],t,n||"function"!=typeof e.type);n||null==e.__e||L(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,a;y.__&&y.__(e,t),s=(o="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],Z(t,e=(!o&&n||t).__k=R(q,null,[e]),s||S,S,void 0!==t.ownerSVGElement,!o&&n?[n]:s?null:t.firstChild?_.call(t.childNodes):null,i,!o&&n?n:s?s.__e:t.firstChild,o,a),K(i,e,a)}_=T.slice,y={__e:function(e,t,n,o){for(var s,i,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&null!=i.getDerivedStateFromError&&(s.setState(i.getDerivedStateFromError(e)),a=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,o||{}),a=s.__d),a)return s.__E=s}catch(t){e=t}throw e}},x=0,B.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=O({},this.state),"function"==typeof e&&(e=e(O({},n),this.props)),e&&O(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),G(this))},B.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),G(this))},B.prototype.render=q,w=[],k="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E=function(e,t){return e.__v.__b-t.__v.__b},D.__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(R(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(773),ie={};ie.styleTagTransform=v(),ie.setAttributes=p(),ie.insert=d().bind(null,"head"),ie.domAPI=l(),ie.insertStyleElement=g();a()(se.A,ie);se.A&&se.A.locals&&se.A.locals;var ae,re,le,ce,de=0,ue=[],pe=[],he=y.__b,ge=y.__r,fe=y.diffed,ve=y.__c,be=y.unmount;function me(e,t){y.__h&&y.__h(re,e,de||t),de=0;var n=re.__H||(re.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:pe}),n.__[e]}function _e(e){return de=1,function(e,t,n){var o=me(ae++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):Ie(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=re,!re.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 a=!1;return s.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&o.__c.props===e)&&(!i||i.call(this,e,t,n))};re.u=!0;var i=re.shouldComponentUpdate,a=re.componentWillUpdate;re.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,s(e,t,n),i=o}a&&a.call(this,e,t,n)},re.shouldComponentUpdate=s}return o.__N||o.__}(Ie,e)}function ye(e,t){var n=me(ae++,3);!y.__s&&Te(n.__H,t)&&(n.__=e,n.i=t,re.__H.__h.push(n))}function xe(e){return de=5,we((function(){return{current:e}}),[])}function we(e,t){var n=me(ae++,7);return Te(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ae(){for(var e;e=ue.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ce),e.__H.__h.forEach(Se),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){re=null,he&&he(e)},y.__r=function(e){ge&&ge(e),ae=0;var t=(re=e.__c).__H;t&&(le===re?(t.__h=[],re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=pe,e.__N=e.i=void 0}))):(t.__h.forEach(Ce),t.__h.forEach(Se),t.__h=[],ae=0)),le=re},y.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ue.push(t)&&ce===y.requestAnimationFrame||((ce=y.requestAnimationFrame)||Ee)(Ae)),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=re=null},y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ce),e.__h=e.__h.filter((function(e){return!e.__||Se(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],y.__e(n,e.__v)}})),ve&&ve(e,t)},y.unmount=function(e){be&&be(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ce(e)}catch(e){t=e}})),n.__H=void 0,t&&y.__e(t,n.__v))};var ke="function"==typeof requestAnimationFrame;function Ee(e){var t,n=function(){clearTimeout(o),ke&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);ke&&(t=requestAnimationFrame(n))}function Ce(e){var t=re,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),re=t}function Se(e){var t=re;e.__c=e.__(),re=t}function Te(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ie(e,t){return"function"==typeof t?t(e):t}var Ne={SEARCH:"SEARCH",MYBOT:"MYBOT",ASSIST:"ASSIST",TRANSCRIPT:"TRANSCRIPT",HISTORY:"HISTORY",SETTINGS:"SETTINGS",SMARTASSIST_SOURCE:"SMARTASSIST_SOURCE"},Oe={SUGGESTIONS:"SUGGESTIONS",SMALLTALK:"SMALLTALK",AUTOMATION:"AUTOMATION",USERMSG:"USERMSG",ASSISTRESPONSE:"ASSISTRESPONSE",FEEDBACK:"FEEDBACK",WELCOME_MSG:"WELCOME_MSG"},Le={ASSIST:"Assist",MYBOT:"My Bot",TRANSCRIPT:"Transcript",LIBRARY:"Library",SETTINGS:"Settings",SEARCH:"Search",PLAYBOOK:"Playbook",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",SENDMSG:"agentAssist.SendMessage",COPYMSG:"agentAssist.CopyMessage"},Re={ast:Ne.ASSIST,srch:Ne.SEARCH,trnspt:Ne.TRANSCRIPT,mB:Ne.MYBOT},Me={HEADER:".aa-header",FOOTER:".aa-footer",FOOTER_BTN:".aa-footer-btn-",FOOTER_BTN_SEARCH:".aa-footer-btn-srch",FOOTER_BTN_MYBOT:".aa-footer-btn-mB",FOOTER_BTN_ASSIST:".aa-footer-btn-ast",FOOTER_BTN_TRANSCRIPT:".aa-footer-btn-trnspt",ASSIST_SECTION:".aa-assist-section",SUGGESTION_EACH:".aa-each-suggestion",SUGGESTION_EACH_HEADER:".aa-suggestion-header",SUGGESTION_EACH_TITLE:".aa-suggestion-title",SUGGESTION_EACH_BODY:".aa-each-suggestion-faq-body",SUGGESTION_LESS_LINK:".aa-less-link",SUGGESTION_MORE_LINK:".aa-more-link",SUGGESTION_SEND_BTN:".aa-send-btn-suggestion",SUGGESTION_COPY_BTN:".aa-copy-btn-suggestion",SUGGESTION_SENDCPY_ACTION:".aa-action-buttons",SUGGESTION_FAQ_UP_ARROW:".aa-faq-up-arrow",SUGGESTION_FAQ_DOWN_ARROW:".aa-faq-down-arrow",SUGGESTION_FAQ_EXPAND:".aa-expand-btn-link",SUGGESTION_FAQ_CLOSE:".aa-close-btn-link",SUGGESTION_FAQ_ANS_LENGTH:".aa-faq-ans-length",SUGGESTION_FAQ_ANS_LOADER:".aa-faq-answer-loader",SUGGESTION_SNIPPET_SOURCE_TAG:".aa-source-tag",SUGGESTION_SNIPPET_LINK:".aa-snippet-link",SUGGESTION_ARTICLE_LINK:".aa-article-link",SUGGESTION_FILE_LINK:".aa-file-link",SEARCH_INPUT_BLOCK:".aa-input-block",SEARCH_INPUT_CLOSE:".aa-input-search-close",SEARCH_INPUT_ICON:".aa-input-search-icon",SUGGESTION_SENT_TEXT:".aa-sent-text",SEARCH_SUGGESTION_WRAPPER:".aa-search-suggestion-wrapper",HIDE_ELEMENT:"aa-hidden",SDK_MAIN_WRAPPER:"agentassist-widget-main-chat-container-wrapper"},qe={PROACTIVE_BTN:"aa-proactiveBtn",ASSIST_FAQ_SUGGESTION:"aa-faqSuggestion-",ASSIST_SNIPPET_SUGGESTION:"aa-snippetSuggestion-",ASSIST_ARTICLE_SUGGESTION:"aa-articleSuggestion-",ASSIST_FILE_SUGGESTION:"aa-fileSuggestion-",SEARCH_FAQ_SUGGESTION:"aa-faqSuggestion",SEARCH_SNIPPET_SUGGESTION:"aa-snippetSuggestion",SEARCH_ARTICLE_SUGGESTION:"aa-articleSuggestion",SEARCH_FILE_SUGGESTION:"aa-fileSuggestion",SEARCH_INPUT:"aa-search-input",SEARCH_SUGGESTION_BLOCK:"searchSuggestionsBlock"},Be=n(567),Fe={};Fe.styleTagTransform=v(),Fe.setAttributes=p(),Fe.insert=d().bind(null,"head"),Fe.domAPI=l(),Fe.insertStyleElement=g();a()(Be.A,Fe);Be.A&&Be.A.locals&&Be.A.locals;function He(e){var t=e.msgData,n=t.tabsNTitles,o=t.selectedTab,s=t.showTranscript;t.selectedTheme;return ye((function(){})),R("div",{className:"widget-footer-wrapper"},R("div",{className:"logo-left-menu"},R("figure",null,R("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R("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"})))),R("div",{className:"line-divider"}),R("div",{className:"footer-links-data"},R("div",{className:"footer-list-buttons"},n.map((function(e,t){return R(q,null,"srch"===e.type&&R("button",{className:"aa-footer-btn-srch btn_footer ".concat(o===Ne.SEARCH?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none"},R("path",{d:"M21.75 22.2001C21.55 22.2001 21.45 22.1001 21.35 22.0001L17.45 18.1001C15.95 19.4001 13.95 20.2001 11.85 20.2001C7.15 20.2001 3.25 16.3001 3.25 11.6001C3.25 6.90006 7.05 3.00006 11.75 3.00006C16.45 3.00006 20.35 6.90006 20.35 11.6001C20.35 13.8001 19.55 15.7001 18.25 17.2001L22.15 21.1001C22.35 21.3001 22.35 21.7001 22.15 21.9001C22.05 22.1001 21.95 22.2001 21.75 22.2001ZM11.75 4.20006C7.65 4.20006 4.35 7.50006 4.35 11.6001C4.35 15.7001 7.65 19.0001 11.75 19.0001C13.75 19.0001 15.55 18.2001 16.95 16.9001C16.95 16.9001 16.95 16.9001 17.05 16.8001C17.05 16.8001 17.05 16.8001 17.15 16.7001C18.45 15.4001 19.25 13.5001 19.25 11.5001C19.15 7.50006 15.85 4.20006 11.75 4.20006Z",fill:"#202939"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"mB"===e.type&&!1,"ast"===e.type&&R("button",{className:"aa-footer-btn-ast btn_footer ".concat(o===Ne.ASSIST?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none"},R("path",{opacity:"0.12",d:"M13 17.0999C13 20.1374 10.5965 22.5999 7.63158 22.5999C7.01911 22.5999 6.43059 22.4948 5.88227 22.3013C5.67416 22.2278 5.5701 22.1911 5.50011 22.1771C5.42641 22.1624 5.38652 22.1584 5.31137 22.1578C5.24 22.1574 5.15827 22.1685 4.9948 22.1909L2 22.5999L2.61134 19.8382C2.65141 19.6572 2.67145 19.5666 2.67608 19.4866C2.68091 19.403 2.67864 19.3565 2.66566 19.2738C2.65322 19.1946 2.61533 19.0786 2.53955 18.8466C2.36028 18.2978 2.26316 17.7104 2.26316 17.0999C2.26316 14.0623 4.66668 11.5999 7.63158 11.5999C10.5965 11.5999 13 14.0623 13 17.0999Z",fill:""}),R("path",{d:"M6.09436 11.8286C6.03221 11.4281 5.99996 11.0177 5.99996 10.5999C5.99996 6.18158 9.60525 2.59985 14.0526 2.59985C18.4999 2.59985 22.1052 6.18158 22.1052 10.5999C22.1052 11.5979 21.9213 12.5533 21.5852 13.4344C21.5154 13.6173 21.4804 13.7088 21.4646 13.7803C21.4489 13.851 21.4428 13.9008 21.4411 13.9733C21.4394 14.0465 21.4493 14.127 21.4692 14.2882L21.8717 17.5584C21.9153 17.9124 21.9371 18.0894 21.8782 18.2181C21.8266 18.3308 21.735 18.4204 21.6211 18.4694C21.4911 18.5253 21.3146 18.4994 20.9617 18.4477L17.7765 17.9808C17.6101 17.9564 17.527 17.9442 17.4512 17.9446C17.3763 17.945 17.3245 17.9506 17.2511 17.966C17.177 17.9816 17.0823 18.017 16.893 18.088C16.0097 18.4188 15.0524 18.5999 14.0526 18.5999C13.6344 18.5999 13.2237 18.5682 12.8227 18.5071M7.63158 22.5999C10.5965 22.5999 13 20.1374 13 17.0999C13 14.0623 10.5965 11.5999 7.63158 11.5999C4.66668 11.5999 2.26316 14.0623 2.26316 17.0999C2.26316 17.7104 2.36028 18.2978 2.53955 18.8466C2.61533 19.0786 2.65322 19.1946 2.66566 19.2738C2.67864 19.3565 2.68091 19.403 2.67608 19.4866C2.67145 19.5666 2.65141 19.6572 2.61134 19.8382L2 22.5999L4.9948 22.1909C5.15827 22.1685 5.24 22.1574 5.31137 22.1578C5.38652 22.1584 5.42641 22.1624 5.50011 22.1771C5.5701 22.1911 5.67416 22.2278 5.88227 22.3013C6.43059 22.4948 7.01911 22.5999 7.63158 22.5999Z",stroke:"#202939","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}))),R("p",{className:"text-truncate",title:e.title},e.title)),"trnspt"===e.type&&s&&R("button",{className:"aa-footer-btn-trnspt btn_footer ".concat(o===Ne.TRANSCRIPT?"selected-tab sel-bg":"")},R("div",{className:"svg_icon"},R("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none"},R("path",{d:"M20.625 10.5999V7.39985C20.625 5.7197 20.625 4.87962 20.298 4.23788C20.0104 3.6734 19.5515 3.21445 18.987 2.92683C18.3452 2.59985 17.5052 2.59985 15.825 2.59985H9.425C7.74484 2.59985 6.90476 2.59985 6.26303 2.92683C5.69854 3.21445 5.2396 3.6734 4.95198 4.23788C4.625 4.87962 4.625 5.7197 4.625 7.39985V17.7999C4.625 19.48 4.625 20.3201 4.95198 20.9618C5.2396 21.5263 5.69854 21.9853 6.26303 22.2729C6.90476 22.5999 7.74484 22.5999 9.425 22.5999H12.625M13.125 11.5999H8.625M9.625 15.5999H8.625M16.625 7.59985H8.625M14.125 16.5999C14.2782 19.4612 14.8347 20.5857 17.625 20.9618M17.625 20.9618C20.4768 20.4358 21.0708 19.3717 21.125 16.5999M17.625 20.9618V22.5999H15.825H19.625",stroke:"#202939","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),R("path",{d:"M16.125 13.6V18.1C16.7101 18.8457 17.0454 19.0111 17.625 19.1C18.4009 18.9793 18.6961 18.7335 19.125 18.1V13.6C18.702 12.8834 18.3994 12.5877 17.625 12.6C16.7358 12.7661 16.4766 13.0363 16.125 13.6Z",stroke:"#202939","stroke-width":"1.2"}))),R("p",{className:"text-truncate",title:e.title},e.title)))})))),R("div",{className:"footer-action-items"},R("div",{className:"aa-toggle-switch"},R("input",{type:"checkbox",checked:!0}),R("button",{className:"aa-slider"},R("div",{className:"slide-parent"},R("div",{className:"slider-btn"}))))))}const Ge=function(){var e=(new Date).getTime();window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var t="ua-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}));return t};var De,Pe,Ue;!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"}(De||(De={})),function(e){e.BEFORE_VIEW_INIT="BEFORE_VIEW_INIT",e.TRANSCRIPT_BUBBLE="TRANSCRIPT_BUBBLE",e.ARTICE_TEMPLATE="ARTICLE_TEMPLATE",e.SNIPPET_TEMPLATE="SNIPPET_TEMPLATE",e.FILE_TEMPLATE="FILE_TEMPLATE",e.FAQ_TEMPLATE="FAQ_TEMPLATE",e.FOOTER_TEMPLATE="FOOTER_TEMPLATE",e.HEADER_TEMPLATE="HEADER_TEMPLATE",e.SEARCH_INPUT="SEARCH_INPUT",e.FAQ_ANSWER_AFTER_TOGGLE="FAQ_ANSWER_AFTER_TOGGLE",e.SEARCH_ARTICE_TEMPLATE="SEARCH_ARTICE_TEMPLATE",e.SEARCH_SNIPPET_TEMPLATE="SEARCH_SNIPPET_TEMPLATE",e.SEARCH_FILE_TEMPLATE="SEARCH_FILE_TEMPLATE",e.SEARCH_FAQ_TEMPLATE="SEARCH_FAQ_TEMPLATE"}(Pe||(Pe={})),function(e){e.agentAssistRespone="agentAssistRespone",e.agentassistAgentResponse="agentassistAgentResponse",e.proactiveChange="proactiveChange"}(Ue||(Ue={}));var Ve=n(390),je={};je.styleTagTransform=v(),je.setAttributes=p(),je.insert=d().bind(null,"head"),je.domAPI=l(),je.insertStyleElement=g();a()(Ve.A,je);Ve.A&&Ve.A.locals&&Ve.A.locals;function We(e){var t;return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.article.send)?"Sent":"Copied")}function ze(e){var t,n;return R(q,null,(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.articles)||void 0===n?void 0:n.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less Article"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"More Article")))}function Qe(e){var t,n,o,s,i,a,r;return R(q,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(o=null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.article)||void 0===o?void 0:o.content)&&!(null===(i=null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.article)||void 0===i?void 0:i.internalFlag)&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(a=null==e?void 0:e.msgData)||void 0===a?void 0:a.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(r=null==e?void 0:e.msgData)||void 0===r?void 0:r.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function Ye(e){var t,n;return R("div",null,null===(n=(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.articles)||[])||void 0===n?void 0:n.map((function(t,n){var o;return R("div",{className:"suggestion-item-card aa-each-suggestion "+(n<(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.viewCount)?"":"aa-hidden")},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},!t.link&&t.title&&R("h2",{className:"aa-text-xs"},t.title),t.link&&t.title&&R("h2",{className:"aa-text-xs"},R("a",{className:"moreText aa-article-link",role:"link"},t.title)))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs",dangerouslySetInnerHTML:{__html:null==t?void 0:t.content}}),t.link&&!t.title&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-article-link",role:"link"},"View Full Article"))))})))}var Ze=n(370),Ke={};Ke.styleTagTransform=v(),Ke.setAttributes=p(),Ke.insert=d().bind(null,"head"),Ke.domAPI=l(),Ke.insertStyleElement=g();a()(Ze.A,Ke);Ze.A&&Ze.A.locals&&Ze.A.locals;function Je(e){var t,n,o,s=_e(null===(t=e.msgData)||void 0===t?void 0:t.faq),i=s[0];s[1];return R(q,null,i.answer&&(null===(n=null==i?void 0:i.answer)||void 0===n?void 0:n.length)>0&&(i.toggle&&!i.answerRender||i.answerRender)&&(null===(o=null==i?void 0:i.answer)||void 0===o?void 0:o.map((function(e,t){return R("div",{className:"suggestion-body-faq aa-each-suggestion-faq-body "+(t<=0?"":"aa-hidden"),key:t},R("p",{className:"aa-desc-xs",dangerouslySetInnerHTML:{__html:e.ans}}))}))))}function Xe(e){return R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs expand-link aa-close-btn-link aa-hidden",role:"link"},"Close"),R("button",{className:"more-link-text aa-text-xs expand-link aa-expand-btn-link",role:"link"},"Expand/More"))}function $e(e){var t,n;return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.ansObj)||void 0===n?void 0:n.send)?"Sent":"Copied")}function et(e){var t,n;return R(q,null,(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.faqs)||void 0===n?void 0:n.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less FAQ"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"More FAQ")))}function tt(e){var t,n,o;return R("div",{className:"action-buttons aa-action-buttons "+((null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.addHideClass)?"aa-hidden":"")},!(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send"))}function nt(e){var t,n;return R("div",null,null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.faqs)||void 0===n?void 0:n.map((function(t,n){var o,s,i,a,r;return R("div",{className:"suggestion-item-card aa-each-suggestion "+(n<(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.viewCount)?"":"aa-hidden"),key:n},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},(!t.displayName||t.question)&&R("h2",{className:"aa-text-xs semibold text-truncate"},t.displayName||t.question),t.answer&&(null===(s=null==t?void 0:t.answer)||void 0===s?void 0:s.length)>1&&(!t.seeMoreWrapper&&t.answerRender||t.toggle&&!t.answerRender&&!t.seeMoreWrapper)&&R("span",{className:"aa-faq-ans-length"},"1/",null===(i=null==t?void 0:t.answer)||void 0===i?void 0:i.length),t.childBotName&&R("span",{className:"aa-desc-sm semibold child-bot-name text-truncate"},"(",t.childBotName,")"),R("span",{className:"up-down-arrows aa-faq-down-arrow "+(t.answerRender||t.toggle?"aa-hidden":"")},R("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.36437 10.3494C8.17497 10.5383 7.87481 10.5494 7.67239 10.3828L7.63563 10.3494L3.15093 6.07722C2.94969 5.87653 2.94969 5.55115 3.15093 5.35047C3.34033 5.16158 3.64048 5.15047 3.84291 5.31713L3.87967 5.35047L8 9.25923L12.1203 5.35047C12.3097 5.16158 12.6099 5.15047 12.8123 5.31713L12.8491 5.35047C13.0385 5.53935 13.0496 5.83868 12.8825 6.04056L12.8491 6.07722L8.36437 10.3494Z",fill:"#9AA4B2"}))),R("span",{className:"up-down-arrows aa-faq-up-arrow "+(!t.answerRender&&t.toggle?"":"aa-hidden")},R("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.63563 5.35054C7.82503 5.16166 8.12519 5.15055 8.32761 5.31721L8.36437 5.35054L12.8491 9.6227C13.0503 9.82338 13.0503 10.1488 12.8491 10.3494C12.6597 10.5383 12.3595 10.5494 12.1571 10.3828L12.1203 10.3494L8 6.44074L3.87967 10.3494C3.69027 10.5383 3.39012 10.5494 3.18769 10.3828L3.15093 10.3494C2.96153 10.1606 2.95039 9.86123 3.1175 9.65936L3.15093 9.6227L7.63563 5.35054Z",fill:"#9AA4B2"}))),R("div",{id:"loader",className:"loader-progress-individual aa-faq-answer-loader aa-hidden"},R("div",{className:"loading-border"})))),t.answer&&(null===(a=null==t?void 0:t.answer)||void 0===a?void 0:a.length)>0&&(t.toggle&&!t.answerRender||t.answerRender)&&(null===(r=null==t?void 0:t.answer)||void 0===r?void 0:r.map((function(e,t){return R("div",{className:"suggestion-body-faq aa-each-suggestion-faq-body "+(t<=0?"":"aa-hidden"),key:t},R("p",{className:"aa-desc-xs",dangerouslySetInnerHTML:{__html:e.ans}}))}))))})))}var ot=n(36),st={};st.styleTagTransform=v(),st.setAttributes=p(),st.insert=d().bind(null,"head"),st.domAPI=l(),st.insertStyleElement=g();a()(ot.A,st);ot.A&&ot.A.locals&&ot.A.locals;function it(e){var t,n;return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.file)||void 0===n?void 0:n.send)?"Sent":"Copied")}function at(e){var t,n;return R(q,null,(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.files)||void 0===n?void 0:n.length)>2&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-hidden aa-less-link",role:"link"},"Less File"),R("button",{className:"more-link-text aa-text-xs aa-more-link",role:"link"},"More File")))}function rt(e){var t,n,o,s,i,a,r;return R(q,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(o=null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.file)||void 0===o?void 0:o.content)&&!(null===(i=null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.file)||void 0===i?void 0:i.internalFlag)&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(a=null==e?void 0:e.msgData)||void 0===a?void 0:a.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(r=null==e?void 0:e.msgData)||void 0===r?void 0:r.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function lt(e){var t,n;return R("div",null,null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.files)||void 0===n?void 0:n.map((function(e,t){return R("div",{key:t,className:"suggestion-item-card aa-each-suggestion "},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},!e.link&&e.title&&R("h2",{className:"aa-text-xs"},e.title),e.link&&e.title&&R("h2",{className:"aa-text-xs"},R("a",{className:"moreText aa-file-link",role:"link"},e.title)))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs",dangerouslySetInnerHTML:{__html:null==e?void 0:e.content}}),e.link&&!e.title&&R("div",{className:"more-links-buttons"},R("button",{className:"more-link-text aa-text-xs aa-file-link",role:"link"},"View Full File"))))})))}var ct=n(798),dt={};dt.styleTagTransform=v(),dt.setAttributes=p(),dt.insert=d().bind(null,"head"),dt.domAPI=l(),dt.insertStyleElement=g();a()(ct.A,dt);ct.A&&ct.A.locals&&ct.A.locals;function ut(e){var t,n;return R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===(null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.snippet)||void 0===n?void 0:n.send)?"Sent":"Copied")}function pt(e){var t,n,o,s;return R(q,null,!(null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.hideActionButtons)&&(null===(n=null==e?void 0:e.msgData)||void 0===n?void 0:n.snippet.contentArray.length)>0&&R("div",{className:"action-buttons aa-action-buttons"},!(null===(o=null==e?void 0:e.msgData)||void 0===o?void 0:o.hideCopyButton)&&R("button",{className:"aa-solidbtn aa-copy-btn-suggestion","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("g",{"clip-path":"url(#clip0_9506_130502)"},R("path",{d:"M10.6663 10.6663V12.533C10.6663 13.2797 10.6663 13.6531 10.521 13.9383C10.3932 14.1892 10.1892 14.3932 9.93833 14.521C9.65311 14.6663 9.27974 14.6663 8.53301 14.6663H3.46634C2.7196 14.6663 2.34624 14.6663 2.06102 14.521C1.81014 14.3932 1.60616 14.1892 1.47833 13.9383C1.33301 13.6531 1.33301 13.2797 1.33301 12.533V7.46634C1.33301 6.7196 1.33301 6.34624 1.47833 6.06102C1.60616 5.81014 1.81014 5.60616 2.06102 5.47833C2.34624 5.33301 2.7196 5.33301 3.46634 5.33301H5.33301M7.46634 10.6663H12.533C13.2797 10.6663 13.6531 10.6663 13.9383 10.521C14.1892 10.3932 14.3932 10.1892 14.521 9.93833C14.6663 9.65311 14.6663 9.27974 14.6663 8.53301V3.46634C14.6663 2.7196 14.6663 2.34624 14.521 2.06102C14.3932 1.81014 14.1892 1.60616 13.9383 1.47833C13.6531 1.33301 13.2797 1.33301 12.533 1.33301H7.46634C6.7196 1.33301 6.34624 1.33301 6.06102 1.47833C5.81014 1.60616 5.60616 1.81014 5.47833 2.06102C5.33301 2.34624 5.33301 2.7196 5.33301 3.46634V8.53301C5.33301 9.27974 5.33301 9.65311 5.47833 9.93833C5.60616 10.1892 5.81014 10.3932 6.06102 10.521C6.34624 10.6663 6.7196 10.6663 7.46634 10.6663Z",stroke:"#101828","stroke-linecap":"round","stroke-linejoin":"round"})),R("defs",null,R("clipPath",{id:"clip0_9506_130502"},R("rect",{width:"16",height:"16",fill:"white"}))))),!(null===(s=null==e?void 0:e.msgData)||void 0===s?void 0:s.hideSendButton)&&R("button",{className:"aa-solidbtn aa-text-xxs aa-send-btn-suggestion","aria-label":"button"},"Send")))}function ht(e){var t,n,o=_e(""),s=o[0],i=(o[1],xe(null),xe(null),function(){var e;s&&(null===(e=document.querySelectorAll(s))||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")})))});return R("div",null,null===(n=null===(t=null==e?void 0:e.msgData)||void 0===t?void 0:t.snippets)||void 0===n?void 0:n.map((function(e,t){var n,o;return R("div",{className:"suggestion-item-card aa-each-suggestion ",key:t},R("div",{className:"suggestion-header-faq aa-suggestion-header"},R("div",{className:"titles-info-sec aa-suggestion-title"},e.title&&R("h2",{className:"aa-text-xs"},e.title),e.send&&R("div",{className:"aa-text-xs sent-msg-text aa-sent-text"},"send"===e.send?"SENT":"COPIED"))),R("div",{className:"suggestion-body-faq"},R("p",{className:"aa-desc-xs aa-snippet-content-ref1"},e.contentArray.map((function(e,t){return(null==e?void 0:e.length)>0&&R("div",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),(null===(n=e.internalInfo)||void 0===n?void 0:n.length)>0&&R(q,null,R("div",{className:"line-with-text-heading"},R("h2",null,"Internal Information"),R("span",null)),R("p",{className:"aa-desc-xs aa-snippet-content-ref2"},e.internalInfo.map((function(t,n){return(null==t?void 0:t.length)>0&&R("div",{key:n,className:"inner-text-snippet-selection ".concat(e.internalInfo.length>1&&!e.isActCit?"snippet-list-style":""),dangerouslySetInnerHTML:{__html:t}})}))),R("div",{className:"line-with-text-heading"},R("span",null),R("h2",null,"Internal Information"))),(null===(o=null==e?void 0:e.sources)||void 0===o?void 0:o.length)>0&&R("div",{className:"souces-names-wrapper"},R("h1",{className:"aa-desc-xs"},"Sources :"),R("div",{className:"source-names"},e.sources.map((function(t,n){return t.url&&R("div",{key:n,className:"source-tag aa-source-tag",onMouseOver:function(){return function(e){var t,n;s&&(null===(t=document.querySelectorAll(s))||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")}))),s=".fragment-ext-"+e,null===(n=document.querySelectorAll(s))||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")}))}(n+1)},onMouseLeave:i},e.isActCit&&R("span",null,n+1),R("a",{title:t.title,className:"aa-snippet-link"},(null==t?void 0:t.title)||"Know More"))}))))))})))}function gt(e){var t,n,o,s,i,a,r,l,c,d,u,p,h,g,f,v,b=qe;return R(q,null,(null===(n=(null===(t=e.searchResponse)||void 0===t?void 0:t.articles)||[])||void 0===n?void 0:n.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Article"),R("span",{className:"count-text aa-text-xxs"},null===(s=null===(o=e.searchResponse)||void 0===o?void 0:o.articles)||void 0===s?void 0:s.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(b.ASSIST_ARTICLE_SUGGESTION).concat(e.suggestionIndex):"".concat(b.SEARCH_ARTICLE_SUGGESTION)})),(null===(a=(null===(i=e.searchResponse)||void 0===i?void 0:i.snippets)||[])||void 0===a?void 0:a.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Snippet"),R("span",{className:"count-text aa-text-xxs"},null===(l=null===(r=e.searchResponse)||void 0===r?void 0:r.snippets)||void 0===l?void 0:l.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(b.ASSIST_SNIPPET_SUGGESTION).concat(e.suggestionIndex):"".concat(b.SEARCH_SNIPPET_SUGGESTION)})),(null===(d=(null===(c=e.searchResponse)||void 0===c?void 0:c.faqs)||[])||void 0===d?void 0:d.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"Article Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"FAQ"),R("span",{className:"count-text aa-text-xxs"},null===(p=null===(u=e.searchResponse)||void 0===u?void 0:u.faqs)||void 0===p?void 0:p.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(b.ASSIST_FAQ_SUGGESTION).concat(e.suggestionIndex):"".concat(b.SEARCH_FAQ_SUGGESTION)})),(null===(g=(null===(h=e.searchResponse)||void 0===h?void 0:h.files)||[])||void 0===g?void 0:g.length)>0&&R("div",{className:"sugestions-block"},R("div",{className:"suggestion-header"},R("div",{className:"icon_block"},R("figure",null,R("img",{src:"/src/assets/images/icons/dialog.svg",alt:"File Suggestions"}))),R("h1",{className:"aa-text-xxs semibold text-truncate"},"Files"),R("span",{className:"count-text aa-text-xxs"},null===(v=null===(f=e.searchResponse)||void 0===f?void 0:f.files)||void 0===v?void 0:v.length),R("span",{class:"by-n-ai"},R("span",{class:"snippet-by-label aa-desc-xxs"},"by"),R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81573V8.01915C9.56245 8.60887 8.98161 8.81044 8.40024 8.81044C7.3657 8.81044 6.64453 7.93122 6.64453 6.92548C6.64453 5.90365 7.3657 5.00781 8.40024 5.00781C8.98161 5.00781 9.56245 5.21261 9.99979 5.81573Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})))),R("div",{className:"suggestion-body-search",id:(null==e?void 0:e.isAssist)?"".concat(b.ASSIST_FILE_SUGGESTION).concat(e.suggestionIndex):"".concat(b.SEARCH_FILE_SUGGESTION)})))}var ft=n(724),vt={};vt.styleTagTransform=v(),vt.setAttributes=p(),vt.insert=d().bind(null,"head"),vt.domAPI=l(),vt.insertStyleElement=g();a()(ft.A,vt);ft.A&&ft.A.locals&&ft.A.locals;function bt(e){var t,n=_e(e.suggestions.searchResponse),o=n[0],s=(n[1],_e(!1)),i=s[0],a=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),u=d[0],p=d[1],h=e.hostInstance,g=h.rootService,f=Me,v=qe;ye((function(){b()}),[]),ye((function(){var t;if(e.ambiguityToken&&(null===(t=Object.keys(e.ambiguityToken))||void 0===t?void 0:t.length)>0){var n=v.ASSIST_FAQ_SUGGESTION+e.suggestionIndex;g.handleFaqAmbiguityDescElement(n,e.ambiguityToken,null==o?void 0:o.faqs,i,u,l,h)}}),[e.suggestions]);var b=function(){var t,n,s,a,r=document.getElementById(v.ASSIST_FAQ_SUGGESTION+e.suggestionIndex),c=document.getElementById(v.ASSIST_SNIPPET_SUGGESTION+e.suggestionIndex),d=document.getElementById(v.ASSIST_ARTICLE_SUGGESTION+e.suggestionIndex),p=document.getElementById(v.ASSIST_FILE_SUGGESTION+e.suggestionIndex);if(y(),null===(t=(null==o?void 0:o.faqs)||[])||void 0===t?void 0:t.length){var b,_=void 0;_=oe(nt,{searchResponse:o,hostInstance:h,faqs:o.faqs,viewCount:2},h),(b=oe(et,{hostInstance:h,faqs:o.faqs,moreClick:!1},h))&&(null==_||_.append(b)),null==r||r.append(_),h.emit(Pe.BEFORE_VIEW_INIT,_,{event:Pe.FAQ_TEMPLATE,data:o.faqs});var x=_.querySelectorAll(f.SUGGESTION_EACH);g.renderEachFaqInSuggestionList(o,x,i,u,l,h,!0,e),b&&(g.handleSuggestionMoreClickEvent(b,r,x,h),g.handleSuggestionLessClickEvent(b,r,x,h))}if(null===(n=null==o?void 0:o.snippets)||void 0===n?void 0:n.length){var w=void 0;w=oe(ht,{searchResponse:o,hostInstance:h,snippets:o.snippets},h),null==c||c.append(w),h.emit(Pe.BEFORE_VIEW_INIT,w,{event:Pe.SNIPPET_TEMPLATE,data:o.snippets});var A=w.querySelectorAll(f.SUGGESTION_EACH);g.renderEachSnippetInSuggestionList(o,A,i,u,l,h)}if((null===(s=(null==o?void 0:o.articles)||[])||void 0===s?void 0:s.length)>0){var k,E=void 0;E=oe(Ye,{searchResponse:o,hostInstance:h,articles:o.articles,viewCount:2},h),(k=oe(ze,{hostInstance:h,articles:o.articles,moreClick:!1},h))&&(null==E||E.append(k)),null==d||d.append(E),h.emit(Pe.BEFORE_VIEW_INIT,E,{event:Pe.ARTICE_TEMPLATE,data:o.articles});var C=E.querySelectorAll(f.SUGGESTION_EACH);g.renderEachArticleInSuggestionList(o,C,i,u,l,h),k&&(g.handleSuggestionMoreClickEvent(k,d,C,h),g.handleSuggestionLessClickEvent(k,d,C,h))}if(null===(a=null==o?void 0:o.files)||void 0===a?void 0:a.length){var S,T=void 0;T=oe(lt,{searchResponse:o,hostInstance:h,files:o.files},h),(S=oe(at,{hostInstance:h,files:o.files,moreClick:!1},h))&&(null==T||T.append(S)),null==p||p.append(T),h.emit(Pe.BEFORE_VIEW_INIT,T,{event:Pe.FILE_TEMPLATE,data:o.files});var I=T.querySelectorAll(f.SUGGESTION_EACH);g.renderEachFileInSuggestionList(o,I,i,u,l,h),S&&(g.handleSuggestionMoreClickEvent(S,p,I,h),g.handleSuggestionLessClickEvent(S,p,I,h))}m()},m=function(){var e,t,n=null===(e=o.faqs)||void 0===e?void 0:e.filter((function(e,t){return!e.answer&&(e.index=t,!0)}));1===(null==n?void 0:n.length)&&_(n[0],null===(t=n[0])||void 0===t?void 0:t.index)},_=function(t,n){var o=v.ASSIST_FAQ_SUGGESTION+e.suggestionIndex;g.toggleArrows(n,o),t.toggle=!t.toggle,t.seeMoreWrapper=!1,g.checkAnswerAndToggleForAssist(t,n,h,e)},y=function(){var e,t,n=!1,o=!1;a(g.connectionDetails.channel===Le.VOICE),!1===(null===(e=null==g?void 0:g.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(c(!0),o=!0),!1===(null===(t=null==g?void 0:g.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(p(!0),n=!0),o&&n&&a(!0)};return R(q,null,(null===(t=Object.keys(o))||void 0===t?void 0:t.length)>0&&R("div",{className:"assist-suggestions-list"},R(gt,{hostInstance:h,searchResponse:o,suggestionIndex:e.suggestionIndex,isAssist:!0})))}var mt=n(544),_t={};_t.styleTagTransform=v(),_t.setAttributes=p(),_t.insert=d().bind(null,"head"),_t.domAPI=l(),_t.insertStyleElement=g();a()(mt.A,_t);mt.A&&mt.A.locals&&mt.A.locals;var yt=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 xt(e){var t,n=e.hostInstance,o=n.rootService,s=_e([]),i=s[0],a=s[1],r=_e({}),l=r[0],c=r[1],d=Me;ye((function(){var e=function(e){var t;e&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&u(e)};return n.on("agentAssistRespone",e),function(){n.off("agentAssistRespone",e)}}),[]),ye((function(){var e=document.querySelector(d.ASSIST_SECTION);e.scrollTop=e.scrollHeight}),[i]);var u=function(e){var t,n,s=Ge(),i={};if(!o.isAutomationOnGoing&&e.suggestions&&(null===(t=Object.keys(e.suggestions))||void 0===t?void 0:t.length)>0)if(e.uiunqref){if(e.uiunqref){var r=JSON.parse(atob(e.uiunqref));a((function(t){var n;return r&&(null==r?void 0:r.question)===(null===(n=e.suggestions)||void 0===n?void 0:n.faqs[0].question)?o.updateSearchResponse(t,e,r):t})),c(r)}}else(i=p(e,s))&&(null===(n=Object.keys(i))||void 0===n?void 0:n.length)>0&&a((function(e){return yt(yt([],e,!0),[i],!1)}))},p=function(e,t){var n;return e&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)>0&&(e.suggestionFrom=Le.ASSIST),{data:e,type:Oe.SUGGESTIONS,uuid:t,searchResponse:o.formatSearchResponse(e),connectionDetails:o.connectionDetails}};return R("div",{className:"assist-data-wrapper-container"},R("div",{className:"assist-block-content"},R("div",{className:"assist-header-content"},R("div",{className:"left-title-info"},R("div",{className:"text-dropdown-info"},R("h1",null,"Assist")))),R("div",{className:"scroll-data-assist aa-assist-section"},null===(t=i)||void 0===t?void 0:t.map((function(e,t){return e.type===Oe.SUGGESTIONS&&R(bt,{hostInstance:n,suggestions:e,suggestionIndex:t,key:t,ambiguityToken:l})})))))}var wt=n(478),At={};At.styleTagTransform=v(),At.setAttributes=p(),At.insert=d().bind(null,"head"),At.domAPI=l(),At.insertStyleElement=g();a()(wt.A,At);wt.A&&wt.A.locals&&wt.A.locals;var kt=function(){return kt=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},kt.apply(this,arguments)};function Et(){return R("div",{className:"input-block aa-input-block"},R("input",{id:"aa-search-input",type:"text",className:"input-control","aria-describedby":"search",placeholder:"Ask a customer",value:""}),R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"aa-input-search-icon"},R("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"})),R("button",{className:"clear-search aa-input-search-close aa-hidden"},R("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},R("path",{d:"M15 5.2002L5 15.2002M5 5.2002L15 15.2002",stroke:"#667085","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}))))}function Ct(e){var t,n,o=e.hostInstance,s=_e({value:"",isEntered:!1}),i=s[0],a=s[1],r=_e(""),l=r[0],c=r[1],d=_e({}),u=d[0],p=d[1],h=_e(!1),g=h[0],f=h[1],v=_e(null),b=(v[0],v[1]),m=_e(null),_=(m[0],m[1],_e(!1)),y=_[0],x=_[1],w=o.rootService,A=_e(!1),k=A[0],E=A[1],C=_e(!1),S=C[0],T=C[1],I=_e(!1),N=I[0],O=I[1],L=Me,M=qe;ye((function(){var e=function(e){var t;(null==e?void 0:e.suggestions)&&(null===(t=Object.keys(null==e?void 0:e.suggestions))||void 0===t?void 0:t.length)>0&&(e.isSearch||e.uiunqref)&&(U(e),x(!1))};return o.on("agentassistAgentResponse",e),F(),function(){o.off("agentassistAgentResponse",e)}}),[]),ye((function(){w.handleSearchText(i,o)}),[i]),ye((function(){B(y)}),[y]),ye((function(){var e;!w.faqAnswerIdsPlace&&u&&(null===(e=Object.keys(u))||void 0===e?void 0:e.length)>0&&(V(),j())}),[u]);var B=function(e){var t,n=null===(t=null==o?void 0:o.chatEle)||void 0===t?void 0:t.querySelector(L.SEARCH_INPUT_BLOCK);n&&((null==n?void 0:n.querySelector(L.SEARCH_INPUT_CLOSE)).disabled=e)},F=function(){var e,t,n,s,i,a=oe(Et,{},o);o.emit(Pe.BEFORE_VIEW_INIT,a,{event:Pe.SEARCH_INPUT}),a&&(null===(n=null===(t=null===(e=null==o?void 0:o.chatEle)||void 0===e?void 0:e.querySelector(L.SEARCH_SUGGESTION_WRAPPER))||void 0===t?void 0:t.querySelector("#".concat(M.SEARCH_SUGGESTION_BLOCK)))||void 0===n||n.append(a),null===(s=o.eventManager)||void 0===s||s.addEventListener("#".concat(M.SEARCH_INPUT),"keyup",(function(e){"Enter"===e.key?G(e):H(e)}),a),null===(i=o.eventManager)||void 0===i||i.addEventListener(L.SEARCH_INPUT_CLOSE,"click",(function(e){P()}),a))},H=function(e){a({value:e.target.value,isEntered:!1});var t=e.target.value;t.length>0?l===t||l.includes(t):P()},G=function(e){x(!0),D(e.target.value,!0),c(""),setTimeout((function(){x(!1)}),15e3)},D=function(e,t){void 0===t&&(t=!1),a({value:e,isEntered:t})},P=function(){a({value:"",isEntered:!1}),c(""),f(!1),p({}),b(null),w.faqAnswerIdsPlace=!1},U=function(e){var t,n,s,i,a,r,l,c,d;if(f(!0),null==e?void 0:e.suggestions)if(e.uiunqref){if(e.uiunqref){var u=JSON.parse(atob(e.uiunqref));if(e.suggestions.faqs=w.formatFAQResponse(e.suggestions.faqs),w.faqAnswerIdsPlace=!(!u||(null==u?void 0:u.question)!==e.suggestions.faqs[0].question),w.faqAnswerIdsPlace){var h=null===(l=null===(r=null==e?void 0:e.suggestions)||void 0===r?void 0:r.faqs)||void 0===l?void 0:l.findIndex((function(e,t){if(e.question===u.question)return e})),g={};if(h>=0&&(g=null===(c=null==e?void 0:e.suggestions)||void 0===c?void 0:c.faqs[h]),g&&(null===(d=Object.keys(g))||void 0===d?void 0:d.length)>0){var v=[];p((function(e){var t;return v=null===(t=null==e?void 0:e.faqs)||void 0===t?void 0:t.map((function(e,t){return g&&g.answer&&t===u.index&&(e.answer=g.answer),g&&(e.showSpinner=!1),e})),e})),w.handleFaqAmbiguityDescElement(M.SEARCH_FAQ_SUGGESTION,u,v,k,N,S,o),p((function(e){return kt(kt({},e),{faqs:v})}))}}}}else{w.faqAnswerIdsPlace=!1;var b=w.formatSearchResponse(e,!0);b&&Object.keys(b).length>0&&(b=kt(kt({},b),{totalSearchResults:((null===(t=b.dialogs)||void 0===t?void 0:t.length)||0)+((null===(n=b.faqs)||void 0===n?void 0:n.length)||0)+((null===(s=b.articles)||void 0===s?void 0:s.length)||0)+((null===(i=b.files)||void 0===i?void 0:i.length)||0)+((null===(a=b.snippets)||void 0===a?void 0:a.length)||0)}),p(b))}else p({})},V=function(){var e,t,n,s,i,a=document.getElementById(M.SEARCH_FAQ_SUGGESTION),r=document.getElementById(M.SEARCH_SNIPPET_SUGGESTION),l=document.getElementById(M.SEARCH_ARTICLE_SUGGESTION),c=document.getElementById(M.SEARCH_FILE_SUGGESTION);if(z(),null==(i=[a,r,l,c])||i.forEach((function(e){e&&(e.innerHTML="")})),null===(e=(null==u?void 0:u.faqs)||[])||void 0===e?void 0:e.length){var d,p=void 0;p=oe(nt,{searchResponse:u,hostInstance:o,faqs:u.faqs,viewCount:2},o),(d=oe(et,{hostInstance:o,faqs:u.faqs,moreClick:!1},o))&&(null==p||p.append(d)),null==a||a.append(p),o.emit(Pe.BEFORE_VIEW_INIT,p,{event:Pe.SEARCH_FAQ_TEMPLATE,data:u.faqs});var h=p.querySelectorAll(L.SUGGESTION_EACH);w.renderEachFaqInSuggestionList(u,h,k,N,S,o,!1,{}),d&&(w.handleSuggestionMoreClickEvent(d,a,h,o),w.handleSuggestionLessClickEvent(d,a,h,o))}if(null===(t=null==u?void 0:u.snippets)||void 0===t?void 0:t.length){var g=void 0;g=oe(ht,{searchResponse:u,hostInstance:o,snippets:u.snippets},o),null==r||r.append(g),o.emit(Pe.BEFORE_VIEW_INIT,g,{event:Pe.SEARCH_SNIPPET_TEMPLATE,data:u.snippets});var f=g.querySelectorAll(L.SUGGESTION_EACH);w.renderEachSnippetInSuggestionList(u,f,k,N,S,o)}if((null===(n=(null==u?void 0:u.articles)||[])||void 0===n?void 0:n.length)>0){var v,b=void 0;b=oe(Ye,{searchResponse:u,hostInstance:o,articles:u.articles,viewCount:2},o),(v=oe(ze,{hostInstance:o,articles:u.articles,moreClick:!1},o))&&(null==b||b.append(v)),null==l||l.append(b),o.emit(Pe.BEFORE_VIEW_INIT,b,{event:Pe.SEARCH_ARTICE_TEMPLATE,data:u.articles});var m=b.querySelectorAll(L.SUGGESTION_EACH);w.renderEachArticleInSuggestionList(u,m,k,N,S,o),v&&(w.handleSuggestionMoreClickEvent(v,l,m,o),w.handleSuggestionLessClickEvent(v,l,m,o))}if(null===(s=null==u?void 0:u.files)||void 0===s?void 0:s.length){var _,y=void 0;y=oe(lt,{searchResponse:u,hostInstance:o,files:u.files},o),(_=oe(at,{hostInstance:o,files:u.files,moreClick:!1},o))&&(null==y||y.append(_)),null==c||c.append(y),o.emit(Pe.BEFORE_VIEW_INIT,y,{event:Pe.SEARCH_FILE_TEMPLATE,data:u.files});var x=y.querySelectorAll(L.SUGGESTION_EACH);w.renderEachFileInSuggestionList(u,x,k,N,S,o),_&&(w.handleSuggestionMoreClickEvent(_,c,x,o),w.handleSuggestionLessClickEvent(_,c,x,o))}},j=function(){var e,t,n=null===(e=u.faqs)||void 0===e?void 0:e.filter((function(e,t){return!e.answer&&(e.index=t,!0)}));1===(null==n?void 0:n.length)&&W(n[0],null===(t=n[0])||void 0===t?void 0:t.index)},W=function(e,t){e.toggle=!e.toggle,e.seeMoreWrapper=!1;var n=M.SEARCH_FAQ_SUGGESTION;w.toggleArrows(t,n),w.checkAnswerAndToggleForSearch(e,t,o)},z=function(){var e,t,n=!1,o=!1;E(w.connectionDetails.channel===Le.VOICE),!1===(null===(e=null==w?void 0:w.settingsData)||void 0===e?void 0:e.isAgentResponseEnabled)&&(T(!0),o=!0),!1===(null===(t=null==w?void 0:w.settingsData)||void 0===t?void 0:t.isAgentResponseCopyEnabled)&&(O(!0),n=!0),o&&n&&E(!0)};return R("div",{className:"search-block-data-suggestions-wrapper aa-search-suggestion-wrapper"},R("div",{class:"search-block-data-suggestions"},R("div",{className:"suggestionslist-conntent-search"},((null===(t=Object.keys(u))||void 0===t?void 0:t.length)>0||g)&&R(q,null,R(gt,{hostInstance:o,searchResponse:u,isAssist:!1})),0==(null===(n=Object.keys(u))||void 0===n?void 0:n.length)&&g&&!y&&R("div",{class:"empty-search-container-wrapper"},R("figure",null,R("img",{src:"/src/assets/images/icons/search-empty.png"})),R("h1",{className:"aa-text-md m-0 center"},"No Search Result Found"),R("p",{className:"aa-desc-sm m-0 center"},'"Could you rephrase your question or ask something else?"')),y&&R("div",{id:"loader",className:"loader-progress-individual"},R("div",{className:"loading-border"}))),R("div",{className:"search-block-input",id:"searchSuggestionsBlock"})))}var St=n(762),Tt={};Tt.styleTagTransform=v(),Tt.setAttributes=p(),Tt.insert=d().bind(null,"head"),Tt.domAPI=l(),Tt.insertStyleElement=g();a()(St.A,Tt);St.A&&St.A.locals&&St.A.locals;function It(e){var t=_e(0);t[0],t[1];return R(q,null,R("div",{className:"transcript-tepmlate-wrapper"},R("div",{className:"transcript-tepmlate-data"},R("h1",{className:"transcript-header aa-text-md semibold"},"Transcript"),R("div",{className:"transcript-body-wrapper"},R("div",{className:"agent-joined-banner"},R("div",{className:"line-border"}),R("div",{className:"info-joined-details"},R("h4",{className:"aa-text-sm"},"Agent joined the conversation"),R("p",{className:"aa-desc-xs"},"Today at 2:45pm")),R("div",{className:"line-border"})),R("div",{className:"aa-bot-bubble-comp"},R("div",{className:"bot-bubble-content"},R("div",{className:"top-info"},R("div",{className:"you-text",title:"test4"},"Primary Bot"),R("div",{className:"time-tamp"},R("time",null,"2:32pm, Today"))),R("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."))),R("div",{className:"aa-agent-bubble-comp"},R("div",{className:"agent-bubble-content"},R("div",{className:"top-info"},R("div",{className:"time-tamp"},R("time",null,"06:21 pm, 11/07/24")),R("div",{className:"you-text"},"Winona")),R("div",{className:"bubble-msg"},"Hi Charlie. Yes, I need help with my current policy."))),R("div",{className:"summery-wrapper"},R("div",{className:"summery-header"},R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81524V8.01866C9.56245 8.60838 8.98161 8.80996 8.40024 8.80996C7.3657 8.80996 6.64453 7.93073 6.64453 6.92499C6.64453 5.90316 7.3657 5.00732 8.40024 5.00732C8.98161 5.00732 9.56245 5.21212 9.99979 5.81524Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})),R("span",{className:"aa-text-md medium"},"SUMMARY")),R("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 Nt=n(144),Ot={};Ot.styleTagTransform=v(),Ot.setAttributes=p(),Ot.insert=d().bind(null,"head"),Ot.domAPI=l(),Ot.insertStyleElement=g();a()(Nt.A,Ot);Nt.A&&Nt.A.locals&&Nt.A.locals;var Lt=function(e){return R("div",{className:"widget-header-sec"},R("div",{className:"logo-sec"},R("figure",null,R("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R("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"})))),R("div",{className:"right-chart-data"},R("div",{className:"aa-toggle-switch"},R("input",{type:"checkbox",checked:!0,id:"aa-proactiveBtn"}),R("button",{className:"aa-slider"},R("div",{className:"slide-parent"},R("div",{className:"slider-btn"})),R("div",{class:"aa-text-xs"},"Proactive Mode")))))};function Rt(e){e.hostInstance.rootService;return R("div",null,R("h1",null," MyBot "))}function Mt(e){var t=_e(!0),n=t[0],o=t[1],s=_e(!1),i=s[0],a=s[1],r=_e(!1),l=r[0],c=r[1],d=_e(!1),u=d[0],p=d[1],h=_e("light"),g=h[0],f=h[1],v=[{type:"srch",title:"Search"},{type:"mB",title:"My Bot"},{type:"ast",title:"Assist"},{type:"trnspt",title:"Transcript"}],b=e.connectionDetails,m=Re,_=e.hostInstance,y=Me,x=qe,w=y.SDK_MAIN_WRAPPER;ye((function(){k(),E(),_.on("updateActiveTab",(function(e){C(e.activeTab,e.footerTag)}))}),[]);var A=function(){f("light"===g?"dark":"light")},k=function(){var e,t;t=oe(Lt,{},_);var n=_.chatEle.querySelector(y.HEADER);n&&t&&(_.emit(Pe.BEFORE_VIEW_INIT,t,{event:Pe.HEADER_TEMPLATE,data:{}}),n.append(t),null===(e=null==_?void 0:_.eventManager)||void 0===e||e.addEventListener("#".concat(x.PROACTIVE_BTN),"click",(function(e){null==_||_.emit(Ue.proactiveChange,e.target.checked),null==_||_.handleOverrideMode(e.target.checked)}),t))},E=function(){var e;e=oe(He,{tabsNTitles:v,selectedTab:m.ast,showTranscript:!0,connectionDetails:b,sourceDesktop:"SomeSource",hideUserBotHistory:false,projConstants:Ne,selectedTheme:g,chooseTheme:A,hostInstance:_},_);var t=_.chatEle.querySelector(y.FOOTER);t&&(_.emit(Pe.BEFORE_VIEW_INIT,e,{event:Pe.FOOTER_TEMPLATE,data:{tabsNTitles:v,footerTag:t}}),t.append(e),v.forEach((function(e){var n;null===(n=_.eventManager)||void 0===n||n.addEventListener("".concat(y.FOOTER_BTN).concat(e.type),"click",(function(){C(e.type,t)}),t)})))},C=function(e,t){S(e),v.forEach((function(n){var o,s,i=t.querySelector("".concat(y.FOOTER_BTN).concat(n.type));n.type===e?null===(o=null==i?void 0:i.classList)||void 0===o||o.add.apply(o,["selected-tab","sel-bg"]):null===(s=null==i?void 0:i.classList)||void 0===s||s.remove.apply(s,["selected-tab","sel-bg"])}))},S=function(e,t){switch(void 0===t&&(t=!0),t&&(o(!1),a(!1),c(!1),p(!1)),e){case"ast":default:o(!0);break;case"srch":c(!0);break;case"mB":a(!0);break;case"trnspt":p(!0)}};return R("div",{className:w,"aria-label":"agent-window-section"},R("section",{className:"section-agent-aa-wrapper"},R("header",{className:"aa-header"}),R("section",{className:"body-container-aa"},R("div",{className:n?"animate-compo-slide-up-wrapper":"aa-hidden"},R(xt,{hostInstance:_})),R("div",{className:l?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Ct,{hostInstance:_})),R("div",{className:u?"animate-compo-slide-up-wrapper":"aa-hidden"},R(It,{hostInstance:_})),R("div",{className:i?"animate-compo-slide-up-wrapper":"aa-hidden"},R(Rt,{hostInstance:_}))),R("footer",{className:"aa-footer"}),R("div",{className:"nudges-wrapper-fixed aa-d-none"},R("div",{className:"nudges-template-data"},R("div",{className:"nudges-card"},R("div",{className:"icon_block"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M2.55371 8.35C2.55371 7.7701 3.02381 7.3 3.60371 7.3C4.18361 7.3 4.65371 7.7701 4.65371 8.35V12.55C4.65371 13.1299 4.18361 13.6 3.60371 13.6C3.02381 13.6 2.55371 13.1299 2.55371 12.55V8.35Z",fill:"white"}),R("path",{d:"M5.35371 8.23334V12.0348C5.35371 12.565 5.65331 13.0498 6.12761 13.287L6.1625 13.3044C6.5513 13.4988 6.98002 13.6 7.4147 13.6H11.206C11.8733 13.6 12.4479 13.129 12.5788 12.4746L13.4188 8.27457C13.5921 7.40826 12.9295 6.6 12.046 6.6H9.55371V3.8C9.55371 3.0268 8.92691 2.4 8.15371 2.4C7.76711 2.4 7.45371 2.7134 7.45371 3.1V3.56667C7.45371 4.1725 7.25721 4.762 6.89371 5.24667L5.91371 6.55334C5.55021 7.038 5.35371 7.6275 5.35371 8.23334Z",fill:"white"}))),R("p",null,"Great Job"),R("button",{className:"close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"nudges-card info-nudge"},R("p",null,"Check customer’s account"),R("button",{className:"close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"nudges-card warning-nudge"},R("div",{className:"icon_block"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.71312 3.61289C7.27776 2.60908 8.72302 2.60908 9.28766 3.61289L13.4086 10.9389C13.9624 11.9235 13.2509 13.14 12.1213 13.14H3.87949C2.74988 13.14 2.03841 11.9235 2.59222 10.9389L6.71312 3.61289ZM8.7388 10.9246C8.7388 11.3325 8.40817 11.6631 8.00033 11.6631C7.59248 11.6631 7.26185 11.3325 7.26185 10.9246C7.26185 10.5168 7.59248 10.1862 8.00033 10.1862C8.40817 10.1862 8.7388 10.5168 8.7388 10.9246ZM8.00033 5.01685C7.59248 5.01685 7.26185 5.34748 7.26185 5.75533V7.97075C7.26185 8.37859 7.59248 8.70922 8.00033 8.70922C8.40817 8.70922 8.7388 8.37859 8.7388 7.97075V5.75533C8.7388 5.34748 8.40817 5.01685 8.00033 5.01685Z",fill:"white"}))),R("p",null,"Offer Discounts"),R("button",{className:"close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"nudges-card danger-nudge"},R("div",{className:"icon_block"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M7.29961 3.1C7.29961 2.7134 7.61301 2.4 7.99961 2.4C8.38621 2.4 8.69961 2.7134 8.69961 3.1V6.95C8.69961 7.1433 8.85631 7.3 9.04961 7.3C9.24291 7.3 9.39961 7.1433 9.39961 6.95V3.8C9.39961 3.4134 9.71301 3.1 10.0996 3.1C10.4862 3.1 10.7996 3.4134 10.7996 3.8V6.95C10.7996 7.1433 10.9563 7.3 11.1496 7.3C11.3429 7.3 11.4996 7.1433 11.4996 6.95V5.2C11.4996 4.8134 11.813 4.5 12.1996 4.5C12.5862 4.5 12.8996 4.8134 12.8996 5.2V8.7C12.8996 11.4062 10.7058 13.6 7.99961 13.6C5.29341 13.6 3.09961 11.4062 3.09961 8.7V7.3C3.09961 6.9134 3.41301 6.6 3.79961 6.6C4.18621 6.6 4.49961 6.9134 4.49961 7.3V9.05C4.49961 9.2433 4.65631 9.4 4.84961 9.4C5.04291 9.4 5.19961 9.2433 5.19961 9.05V3.8C5.19961 3.4134 5.51301 3.1 5.89961 3.1C6.28621 3.1 6.59961 3.4134 6.59961 3.8V6.95C6.59961 7.1433 6.75631 7.3 6.94961 7.3C7.14291 7.3 7.29961 7.1433 7.29961 6.95V3.1Z",fill:"white"}))),R("p",null,"Transfer to Manager"),R("button",{className:"close-nudge","aria-label":"button"},R("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},R("path",{d:"M4 12L12 4M4 4L12 12",stroke:"white","stroke-width":"1.67","stroke-linecap":"round","stroke-linejoin":"round"})))))),R("div",{className:"hints-wrapper-fixed aa-d-none"},R("div",{className:"hints-template-data"},R("div",{className:"hint-card"},R("div",{className:"top-card-info"},R("div",{className:"icon_block"},R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M5.76708 0.5C5.40707 0.5 5.08084 0.712015 4.93462 1.04099L3.25425 4.82184C3.21348 4.91357 3.19219 4.96087 3.17474 4.99418L3.17319 4.99711L3.16988 4.99734C3.13236 4.99976 3.08048 5 2.9801 5L2.58073 5C2.31715 4.99999 2.08977 4.99998 1.90249 5.01528C1.70481 5.03144 1.50821 5.06709 1.31902 5.16349C1.03677 5.3073 0.807302 5.53677 0.663492 5.81901C0.567095 6.0082 0.531437 6.20481 0.515286 6.40249C0.499985 6.58977 0.499992 6.81714 0.5 7.08071V9.41927C0.499992 9.68284 0.499985 9.91023 0.515286 10.0975C0.531437 10.2952 0.567095 10.4918 0.663492 10.681C0.807302 10.9632 1.03677 11.1927 1.31902 11.3365C1.50821 11.4329 1.70481 11.4686 1.90249 11.4847C2.08977 11.5 2.31715 11.5 2.58072 11.5C2.81228 11.5 3 11.3123 3 11.0807L3 7C3 6.72386 3.22386 6.5 3.5 6.5C3.77614 6.5 4 6.72386 4 7L4 10.7C4 10.98 4 11.12 4.0545 11.227C4.10243 11.3211 4.17892 11.3976 4.27301 11.4455C4.37996 11.5 4.51997 11.5 4.8 11.5H7.9598C8.30918 11.5 8.59925 11.5 8.83792 11.4818C9.08711 11.4629 9.31681 11.4222 9.53857 11.3217C9.88536 11.1646 10.1801 10.9117 10.3881 10.5929C10.5212 10.3889 10.5963 10.1681 10.6529 9.9247C10.7072 9.69158 10.7513 9.40489 10.8044 9.05958L11.0722 7.31883C11.1426 6.86136 11.2003 6.4863 11.2207 6.18021C11.2418 5.86439 11.228 5.56971 11.1203 5.28725C10.9548 4.85354 10.6437 4.49087 10.2402 4.26142C9.9774 4.11199 9.68824 4.05357 9.37289 4.02636C9.06724 3.99999 8.68779 3.99999 8.22491 4H7.8C7.65174 4 7.57061 3.99961 7.51232 3.99485L7.50573 3.99428L7.50515 3.98768C7.50039 3.92939 7.5 3.84826 7.5 3.7V2.23292C7.5 1.27585 6.72415 0.5 5.76708 0.5Z",fill:"#039855"}))),R("h1",null,"Great Job!"),R("button",{className:"close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},"You did a fantastic job providing the customer with the latest discounts."),R("div",{className:"footer-hint"},R("button",{"aria-label":"button"},"OK, Great!"))),R("div",{className:"hint-card info-hint"},R("div",{className:"top-card-info"},R("div",{className:"icon_block"},R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2008 6.00005C10.2008 8.31964 8.32038 10.2 6.00078 10.2C3.68119 10.2 1.80078 8.31964 1.80078 6.00005C1.80078 3.68045 3.68119 1.80005 6.00078 1.80005C8.32038 1.80005 10.2008 3.68045 10.2008 6.00005ZM6.52578 8.10005C6.52578 8.39 6.29073 8.62505 6.00078 8.62505C5.71083 8.62505 5.47578 8.39 5.47578 8.10005C5.47578 7.8101 5.71083 7.57505 6.00078 7.57505C6.29073 7.57505 6.52578 7.8101 6.52578 8.10005ZM6.00078 3.37505C5.71083 3.37505 5.47578 3.6101 5.47578 3.90005V6.00005C5.47578 6.29 5.71083 6.52505 6.00078 6.52505C6.29073 6.52505 6.52578 6.29 6.52578 6.00005V3.90005C6.52578 3.6101 6.29073 3.37505 6.00078 3.37505Z",fill:"#667085"}))),R("h1",null,"Warm Greeting for Customer"),R("button",{className:"close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},"Greet the customer with a warm and thoughtful greeting."),R("div",{className:"footer-hint"},R("button",{"aria-label":"button"},"OK, Great!"))),R("div",{className:"hint-card warning-hint"},R("div",{className:"top-card-info"},R("div",{className:"icon_block"},R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.40714 0.834185C6.14848 0.719172 5.8532 0.719172 5.59454 0.834185C5.39478 0.923011 5.26501 1.07947 5.17471 1.20696C5.08593 1.3323 4.99087 1.49651 4.88634 1.67711L0.75276 8.81693C0.647804 8.99818 0.552428 9.16289 0.487757 9.30268C0.422033 9.44475 0.35073 9.63572 0.373455 9.85369C0.40286 10.1357 0.550631 10.392 0.779988 10.5588C0.957236 10.6877 1.15823 10.7217 1.31411 10.736C1.46749 10.75 1.65782 10.75 1.86726 10.75H10.1344C10.3438 10.75 10.5342 10.75 10.6876 10.736C10.8434 10.7217 11.0444 10.6877 11.2217 10.5588C11.451 10.392 11.5988 10.1357 11.6282 9.85369C11.651 9.63572 11.5796 9.44475 11.5139 9.30268C11.4493 9.1629 11.3539 8.9982 11.2489 8.81697L7.11533 1.67709C7.0108 1.49651 6.91575 1.3323 6.82697 1.20696C6.73667 1.07947 6.6069 0.923011 6.40714 0.834185ZM6.50085 4.5C6.50085 4.22386 6.277 4 6.00085 4C5.72471 4 5.50085 4.22386 5.50085 4.5V6.5C5.50085 6.77614 5.72471 7 6.00085 7C6.277 7 6.50085 6.77614 6.50085 6.5V4.5ZM6.00085 8C5.72471 8 5.50085 8.22386 5.50085 8.5C5.50085 8.77614 5.72471 9 6.00085 9H6.00585C6.282 9 6.50585 8.77614 6.50585 8.5C6.50585 8.22386 6.282 8 6.00585 8H6.00085Z",fill:"#F79009"}))),R("h1",null,"Offer latest discounts"),R("button",{className:"close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},"Price objection was detected. Provide the customer with one of the current discount offers."),R("div",{className:"footer-hint"},R("button",{"aria-label":"button"},"OK, Great!"))),R("div",{className:"hint-card danger-hint"},R("div",{className:"top-card-info"},R("div",{className:"icon_block"},R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},R("path",{d:"M3.45 5.72222V7.11111M3.45 5.72222V2.38889C3.45 1.92865 3.83056 1.55556 4.3 1.55556C4.76944 1.55556 5.15 1.92865 5.15 2.38889M3.45 5.72222C3.45 5.26198 3.06944 4.88889 2.6 4.88889C2.13056 4.88889 1.75 5.26198 1.75 5.72222V6.83333C1.75 9.13452 3.65279 11 6 11C8.34721 11 10.25 9.13452 10.25 6.83333V4.05556C10.25 3.59532 9.86944 3.22222 9.4 3.22222C8.93056 3.22222 8.55 3.59532 8.55 4.05556M5.15 2.38889V5.44444M5.15 2.38889V1.83333C5.15 1.3731 5.53056 1 6 1C6.46944 1 6.85 1.3731 6.85 1.83333V2.38889M6.85 2.38889V5.44444M6.85 2.38889C6.85 1.92865 7.23056 1.55556 7.7 1.55556C8.16944 1.55556 8.55 1.92865 8.55 2.38889V4.05556M8.55 4.05556V5.44444",stroke:"#F04438","stroke-linecap":"round","stroke-linejoin":"round"}))),R("h1",null,"Fowl Language Warning"),R("button",{className:"close-hint","aria-label":"button"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M15 5L5 15M5 5L15 15",stroke:"#E3E8EF","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"body-hint"},"Please refrain from using words and phrases that are not allowed when conversing with the customer... more"),R("div",{className:"footer-hint"},R("button",{"aria-label":"button"},"OK, Great!"))))),R("div",{className:"summery-wrapper-container aa-d-none"},R("div",{className:"summery-popup-data",id:"summary"},R("div",{className:"title-block"},R("h1",null,"Summary"),R("div",{className:"ai-block"},R("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none"},R("path",{d:"M9.99979 5.81524V8.01866C9.56245 8.60838 8.98161 8.80996 8.40024 8.80996C7.3657 8.80996 6.64453 7.93073 6.64453 6.92499C6.64453 5.90316 7.3657 5.00732 8.40024 5.00732C8.98161 5.00732 9.56245 5.21212 9.99979 5.81524Z",fill:"#111827"}),R("path",{d:"M16.4016 0.310059H4.49325C4.21767 0.309988 3.94477 0.36504 3.69014 0.47207C3.43552 0.579099 3.20415 0.73601 3.00926 0.93384C2.81437 1.13167 2.65978 1.36654 2.5543 1.62505C2.44882 1.88355 2.39453 2.16062 2.39453 2.44043V9.25632C3.97002 9.26274 5.2009 10.4831 5.2009 12.0474C5.20345 12.5621 5.06557 13.0674 4.80255 13.5074H16.4016C16.9579 13.507 17.4914 13.2824 17.8848 12.883C18.2782 12.4836 18.4994 11.9419 18.4998 11.3771V2.44257C18.5001 2.1626 18.4461 1.88532 18.3408 1.62657C18.2355 1.36782 18.081 1.13269 17.8861 0.934628C17.6913 0.736565 17.4598 0.579454 17.2051 0.472284C16.9504 0.365115 16.6773 0.309988 16.4016 0.310059ZM12.2015 10.4932H10.234V9.94594C9.71132 10.2921 9.0748 10.4932 8.3113 10.4932C6.44232 10.4932 4.92796 8.91285 4.92796 6.91516C4.92796 4.88858 6.44232 3.32104 8.3113 3.32104C9.07322 3.32104 9.71132 3.5222 10.234 3.86834V3.32104H12.2015V10.4932ZM15.9679 10.4932H14.0004V3.32104H15.9706L15.9679 10.4932Z",fill:"#111827"}),R("path",{d:"M2.16101 10.5996C1.30956 10.5996 0.605469 11.2231 0.605469 12.0442C0.605469 12.884 1.30956 13.5075 2.16101 13.5075C3.03295 13.5075 3.73705 12.884 3.73705 12.0442C3.73705 11.2226 3.03295 10.5996 2.16101 10.5996Z",fill:"#111827"})),R("span",null,"Suggested"),R("button",{type:"button",className:"close-summery"},R("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},R("path",{d:"M15 5.2002L5 15.2002M5 5.2002L15 15.2002",stroke:"#667085","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}))))),R("div",{className:"input-block"},R("textarea",{className:"input-control",id:"summaryText",placeholder:"Type Summary...",rows:4,cols:50}),R("button",{className:"recylin-bin-btn"},R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R("path",{d:"M13.3333 4.99996V4.33329C13.3333 3.39987 13.3333 2.93316 13.1517 2.57664C12.9919 2.26304 12.7369 2.00807 12.4233 1.84828C12.0668 1.66663 11.6001 1.66663 10.6667 1.66663H9.33333C8.39991 1.66663 7.9332 1.66663 7.57668 1.84828C7.26308 2.00807 7.00811 2.26304 6.84832 2.57664C6.66667 2.93316 6.66667 3.39987 6.66667 4.33329V4.99996M8.33333 9.58329V13.75M11.6667 9.58329V13.75M2.5 4.99996H17.5M15.8333 4.99996V14.3333C15.8333 15.7334 15.8333 16.4335 15.5608 16.9683C15.3212 17.4387 14.9387 17.8211 14.4683 18.0608C13.9335 18.3333 13.2335 18.3333 11.8333 18.3333H8.16667C6.76654 18.3333 6.06647 18.3333 5.53169 18.0608C5.06129 17.8211 4.67883 17.4387 4.43915 16.9683C4.16667 16.4335 4.16667 15.7334 4.16667 14.3333V4.99996",stroke:"#D92D20","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})))),R("div",{className:"actions-footer"},R("div",{className:"footer-btns-left-sec"},R("button",{className:"aa_btn primaryBtn",id:"summarySubmit"},"Submit"),R("button",{className:"aa_btn aa-solidbtn",id:"summaryCopy"},"Copy")))))))}const qt=Object.create(null);qt.open="0",qt.close="1",qt.ping="2",qt.pong="3",qt.message="4",qt.upgrade="5",qt.noop="6";const Bt=Object.create(null);Object.keys(qt).forEach((e=>{Bt[qt[e]]=e}));const Ft={type:"error",data:"parser error"},Ht="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Gt="function"==typeof ArrayBuffer,Dt=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Pt=({type:e,data:t},n,o)=>Ht&&t instanceof Blob?n?o(t):Ut(t,o):Gt&&(t instanceof ArrayBuffer||Dt(t))?n?o(t):Ut(new Blob([t]),o):o(qt[e]+(t||"")),Ut=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Vt(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let jt;const Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)zt[Wt.charCodeAt(e)]=e;const Qt="function"==typeof ArrayBuffer,Yt=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Kt(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:Zt(e.substring(1),t)};return Bt[n]?e.length>1?{type:Bt[n],data:e.substring(1)}:{type:Bt[n]}:Ft},Zt=(e,t)=>{if(Qt){const n=(e=>{let t,n,o,s,i,a=.75*e.length,r=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),d=new Uint8Array(c);for(t=0;t<r;t+=4)n=zt[e.charCodeAt(t)],o=zt[e.charCodeAt(t+1)],s=zt[e.charCodeAt(t+2)],i=zt[e.charCodeAt(t+3)],d[l++]=n<<2|o>>4,d[l++]=(15&o)<<4|s>>2,d[l++]=(3&s)<<6|63&i;return c})(e);return Kt(n,t)}return{base64:!0,data:e}},Kt=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Jt=String.fromCharCode(30);function Xt(){return new TransformStream({transform(e,t){!function(e,t){Ht&&e.data instanceof Blob?e.data.arrayBuffer().then(Vt).then(t):Gt&&(e.data instanceof ArrayBuffer||Dt(e.data))?t(Vt(e.data)):Pt(e,!1,(e=>{jt||(jt=new TextEncoder),t(jt.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 $t;function en(e){return e.reduce(((e,t)=>e+t.length),0)}function tn(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 nn(e){if(e)return function(e){for(var t in nn.prototype)e[t]=nn.prototype[t];return e}(e)}nn.prototype.on=nn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},nn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},nn.prototype.off=nn.prototype.removeListener=nn.prototype.removeAllListeners=nn.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},nn.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},nn.prototype.emitReserved=nn.prototype.emit,nn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},nn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const on="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function sn(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const an=on.setTimeout,rn=on.clearTimeout;function ln(e,t){t.useNativeTimers?(e.setTimeoutFn=an.bind(on),e.clearTimeoutFn=rn.bind(on)):(e.setTimeoutFn=on.setTimeout.bind(on),e.clearTimeoutFn=on.clearTimeout.bind(on))}class cn extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class dn extends nn{constructor(e){super(),this.writable=!1,ln(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new cn(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=Yt(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 un="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),pn=64,hn={};let gn,fn=0,vn=0;function bn(e){let t="";do{t=un[e%pn]+t,e=Math.floor(e/pn)}while(e>0);return t}function mn(){const e=bn(+new Date);return e!==gn?(fn=0,gn=e):e+"."+bn(fn++)}for(;vn<pn;vn++)hn[un[vn]]=vn;let _n=!1;try{_n="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const yn=_n;function xn(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||yn))return new XMLHttpRequest}catch(e){}if(!t)try{return new(on[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function wn(){}const An=null!=new xn({xdomain:!1}).responseType;class kn extends nn{constructor(e,t){super(),ln(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=sn(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new xn(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=kn.requestsCount++,kn.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=wn,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete kn.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(kn.requestsCount=0,kn.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",En);else if("function"==typeof addEventListener){addEventListener("onpagehide"in on?"pagehide":"unload",En,!1)}function En(){for(let e in kn.requests)kn.requests.hasOwnProperty(e)&&kn.requests[e].abort()}const Cn="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Sn=on.WebSocket||on.MozWebSocket,Tn="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const In={websocket:class extends dn{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=Tn?{}:sn(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=Tn?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;Pt(n,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(e){}o&&Cn((()=>{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]=mn()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Sn}},webtransport:class extends dn{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){$t||($t=new TextDecoder);const n=[];let o=0,s=-1,i=!1;return new TransformStream({transform(a,r){for(n.push(a);;){if(0===o){if(en(n)<1)break;const e=tn(n,1);i=!(128&~e[0]),s=127&e[0],o=s<126?3:126===s?1:2}else if(1===o){if(en(n)<2)break;const e=tn(n,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),o=3}else if(2===o){if(en(n)<8)break;const e=tn(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){r.enqueue(Ft);break}s=i*Math.pow(2,32)+t.getUint32(4),o=3}else{if(en(n)<s)break;const e=tn(n,s);r.enqueue(Yt(i?e:$t.decode(e),t)),o=0}if(0===s||s>e){r.enqueue(Ft);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=Xt();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&&Cn((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends dn{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=An&&!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(Jt),o=[];for(let e=0;e<n.length;e++){const s=Yt(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)=>{Pt(e,!1,(e=>{o[i]=e,++s===n&&t(o.join(Jt))}))}))})(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]=mn()),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 kn(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}}},Nn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,On=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ln(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=Nn.exec(e||""),i={},a=14;for(;a--;)i[On[a]]=s[a]||"";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 Rn extends nn{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=Ln(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=Ln(t.host).host),ln(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 In[e](n)}open(){let e;if(this.opts.rememberUpgrade&&Rn.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;Rn.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;Rn.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 a(){i("transport closed")}function r(){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",a),this.off("close",r),this.off("upgrading",l)};t.once("open",o),t.once("error",i),t.once("close",a),this.once("close",r),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",Rn.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){Rn.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}}Rn.protocol=4;Rn.protocol;const Mn="function"==typeof ArrayBuffer,qn=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Bn=Object.prototype.toString,Fn="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Bn.call(Blob),Hn="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===Bn.call(File);function Gn(e){return Mn&&(e instanceof ArrayBuffer||qn(e))||Fn&&e instanceof Blob||Hn&&e instanceof File}function Dn(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Dn(e[t]))return!0;return!1}if(Gn(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return Dn(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Dn(e[t]))return!0;return!1}function Pn(e){const t=[],n=e.data,o=e;return o.data=Un(n,t),o.attachments=t.length,{packet:o,buffers:t}}function Un(e,t){if(!e)return e;if(Gn(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]=Un(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]=Un(e[o],t));return n}return e}function Vn(e,t){return e.data=jn(e.data,t),delete e.attachments,e}function jn(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]=jn(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=jn(e[n],t));return e}const Wn=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],zn=5;var Qn;!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"}(Qn||(Qn={}));class Yn{constructor(e){this.replacer=e}encode(e){return e.type!==Qn.EVENT&&e.type!==Qn.ACK||!Dn(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Qn.EVENT?Qn.BINARY_EVENT:Qn.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==Qn.BINARY_EVENT&&e.type!==Qn.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=Pn(e),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}}function Zn(e){return"[object Object]"===Object.prototype.toString.call(e)}class Kn extends nn{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===Qn.BINARY_EVENT;n||t.type===Qn.BINARY_ACK?(t.type=n?Qn.EVENT:Qn.ACK,this.reconstructor=new Jn(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!Gn(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===Qn[n.type])throw new Error("unknown packet type "+n.type);if(n.type===Qn.BINARY_EVENT||n.type===Qn.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(!Kn.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 Qn.CONNECT:return Zn(t);case Qn.DISCONNECT:return void 0===t;case Qn.CONNECT_ERROR:return"string"==typeof t||Zn(t);case Qn.EVENT:case Qn.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===Wn.indexOf(t[0]));case Qn.ACK:case Qn.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Jn{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=Vn(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Xn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const $n=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eo extends nn{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=[Xn(e,"open",this.onopen.bind(this)),Xn(e,"packet",this.onpacket.bind(this)),Xn(e,"error",this.onerror.bind(this)),Xn(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($n.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:Qn.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:Qn.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 Qn.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 Qn.EVENT:case Qn.BINARY_EVENT:this.onevent(e);break;case Qn.ACK:case Qn.BINARY_ACK:this.onack(e);break;case Qn.DISCONNECT:this.ondisconnect();break;case Qn.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:Qn.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:Qn.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 to(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}to.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)},to.prototype.reset=function(){this.attempts=0},to.prototype.setMin=function(e){this.ms=e},to.prototype.setMax=function(e){this.max=e},to.prototype.setJitter=function(e){this.jitter=e};class no extends nn{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,ln(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 to({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 Rn(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=Xn(t,"open",(function(){n.onopen(),e&&e()})),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=Xn(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(Xn(e,"ping",this.onping.bind(this)),Xn(e,"data",this.ondata.bind(this)),Xn(e,"error",this.onerror.bind(this)),Xn(e,"close",this.onclose.bind(this)),Xn(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){Cn((()=>{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 eo(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 oo={};function so(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=Ln(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,a=oo[s]&&i in oo[s].nsps;let r;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?r=new no(o,t):(oo[s]||(oo[s]=new no(o,t)),r=oo[s]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(so,{Manager:no,Socket:eo,io:so,connect:so});const io=function(){function e(e){this.hostIns=e}return e.prototype.socketConnection=function(e){var t,n=this;this.configOptions=e;var o={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:null===(t=null==e?void 0:e.connectionDetails)||void 0===t?void 0:t.token}}};this._agentAssistSocket=so(o.url,o.options),this._agentAssistSocket.connect(),this.listenEvents(),this._agentAssistSocket.on("connect",(function(){n.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,a=(o.autoBotId,o.channel),r=o.interactiveLanguage,l=o.botId;t&&(t.isExtAD=!s,t.source=i,t.experience=a,t.traceId=n&&t.traceId?t.traceId:"ua-f0f3edc3-16ca-4e02-9363-4f48c602df62",t.language=r),"internal_transfer"==e&&(t.botId=l),this._agentAssistSocket.emit(e,t)},e.prototype.listenEvents=function(){var e=this;this._agentAssistSocket.on(De.agent_assist_response,(function(t){e.hostIns.emit(Ue.agentAssistRespone,t)})),this._agentAssistSocket.on(De.agent_menu_response,(function(e){})),this._agentAssistSocket.on(De.agent_coaching_response,(function(e){})),this._agentAssistSocket.on(De.checklist_step_response,(function(e){})),this._agentAssistSocket.on(De.checklist_response,(function(e){})),this._agentAssistSocket.on(De.realtime_sentiment_response,(function(e){})),this._agentAssistSocket.on(De.agent_assist_agent_response,(function(t){e.hostIns.emit(Ue.agentassistAgentResponse,t)})),this._agentAssistSocket.on(De.agent_assist_endoftask,(function(e){})),this._agentAssistSocket.on(De.user_message,(function(e){})),this._agentAssistSocket.on(De.agent_message,(function(e){})),this._agentAssistSocket.on(De.agent_assist_user_message,(function(e){})),this._agentAssistSocket.on(De.agent_feedback_response,(function(e){})),this._agentAssistSocket.on(De.response_resolution_comments,(function(e){})),this._agentAssistSocket.on(De.agentassist_control_response,(function(e){}))},e}();var ao=function(){return ao=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},ao.apply(this,arguments)},ro=function(){function e(){this.isAutomationOnGoing=!1,this.grantResponseObj={},this.prefsAccessObj={tabsNTitles:[],prefs:{}},this.connectionDetails={},this.settingsData={},this.numOfLines=4,this.maxHeight="max-content",this.scrollHeight=Number.MAX_VALUE,this.classConstants=Me,this.idConstants=qe,this.faqambiguityResponse=!1}return e.prototype.formatSearchResponse=function(e,t){var n,o,s,i,a,r,l,c,d,u,p,h,g;void 0===t&&(t=!1);var f=e.suggestions,v=f.dialogs||[],b=f.faqs||[],m=this.formatSnippetResponse((null===(n=null==f?void 0:f.searchassist)||void 0===n?void 0:n.snippets)||[],e),_=(null===(o=null==f?void 0:f.searchassist)||void 0===o?void 0:o.files)||[],y={};(null==f?void 0:f.searchassist)&&(null===(s=null==f?void 0:f.searchassist)||void 0===s?void 0:s.snippets)&&0==(null===(a=null===(i=null==f?void 0:f.searchassist)||void 0===i?void 0:i.snippets)||void 0===a?void 0:a.length)&&delete f.searchassist.snippets;var x=Object.keys((null==f?void 0:f.searchassist)||{});if((null==f?void 0:f.searchassist)&&1==(null==x?void 0:x.length)&&"searchRequestId"===x[0]&&(f.searchassist={}),v.length||b.length||m.length||_.length||(null==f?void 0:f.searchassist)&&(null===(r=Object.keys(null==f?void 0:f.searchassist))||void 0===r?void 0:r.length)){if(y.dialogs=[],y.faqs=[],y.articles=[],y.snippets=[],y.files=[],f.searchassist&&(null===(l=Object.keys(f.searchassist))||void 0===l?void 0:l.length)>0){var w=function(e){"snippets"!=e&&"file"!=e&&"searchRequestId"!=e&&(f.searchassist[e]=A.checkEmptyObjectsInArray(f.searchassist[e]),f.searchassist[e]&&(null===(c=Object.keys(f.searchassist[e]))||void 0===c?void 0:c.length)>0&&y.articles.push.apply(y.articles,f.searchassist[e])),"file"==e&&(f.searchassist[e]=A.checkEmptyObjectsInArray(f.searchassist[e]),f.searchassist[e]&&(null===(d=Object.keys(f.searchassist[e]))||void 0===d?void 0:d.length)>0&&y.files.push.apply(y.files,f.searchassist[e])),e&&"searchRequestId"!=e&&(null===(u=null==f?void 0:f.searchassist[e])||void 0===u||u.forEach((function(t){t.subType=e})))},A=this;for(var k in f.searchassist)w(k);for(var E=0,C=y.articles;E<C.length;E++){var S=C[E];S.showMoreButton=!0,S.showLessButton=!1,S.content=S.content?S.content:"",S.contentId=S.contentId,S.userInput=e.userInput,S.sourceMsgId=e.sourceMsgId||"",S.subType=S.subType,S.intType=t?"mybot":"assist",S.feedbackData=this.prepareFeedbackForSuggestions("article",S,{})}for(var T=0,I=y.files;T<I.length;T++){var N=I[T];N.showMoreButton=!0,N.showLessButton=!1,N.content=N.content?N.content:"",N.contentId=N.contentId,N.userInput=e.userInput,N.sourceMsgId=e.sourceMsgId||"",N.subType=N.subType,N.intType=t?"mybot":"assist",N.feedbackData=this.prepareFeedbackForSuggestions("file",N,{})}}for(var O=0,L=b;O<L.length;O++){var R=L[O],M={question:R.question,displayName:R.displayName,taskRefId:null==R?void 0:R.taskRefId,answer:!!(R.answer&&R.answer.length>0)&&[],showMoreButton:!0,showLessButton:!1,answerRender:R.answer||!1,childBotId:R.childBotId,childBotName:R.childBotName,answerCount:1,sourceMsgId:e.sourceMsgId||"",positionId:R.positionId,userInput:e.userInput,intType:e.intType};if(R.answer&&R.answer.length>0)for(var q=0,B=R.answer;q<B.length;q++){var F={ans:B[q],taskRefId:R.taskRefId,showMoreButton:!0,showLessButton:!1,displayName:R.displayName,sourceMsgId:e.sourceMsgId||"",positionId:R.positionId};M.answer.push(F)}var H=R.historyFeedback?R.historyFeedback:{};M.feedbackData=this.prepareFeedbackForSuggestions("faqs",M,H),M.feedbackData.interactionType=t?"mybot":"assist",y.faqs.push(M)}if((null===(h=null===(p=null==f?void 0:f.searchassist)||void 0===p?void 0:p.snippets)||void 0===h?void 0:h.length)>0){(null==m?void 0:m.length)>0&&(y.snippets=Object.assign([],m));for(var G=0,D=y.snippets;G<D.length;G++){var P=D[G];P.showMoreButton=!0,P.showLessButton=!1,P.subType="snippets"}}for(var U=0,V=v;U<V.length;U++){var j=V[U];j.entities&&(null===(g=j.entities)||void 0===g?void 0:g.length)>0&&j.entities.forEach((function(e){e.editMode=!1})),y.dialogs.push({name:j.name,agentRunButton:!1,childBotId:j.childBotId,childBotName:j.childBotName,entities:j.entities,userInput:e.userInput,sourceMsgId:e.sourceMsgId||""})}}return y},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="",a="",r=[];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==r.indexOf(e.title);return t&&r.push(e.title),-1!=r.indexOf(e.title)&&(s+="fragment-ext-".concat(r.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,d=null==e?void 0:e.sources;c<d.length;c++){var u=d[c];if((null==u?void 0:u.title)&&-1!=r.indexOf(null==u?void 0:u.title)){var p=r.indexOf(u.title);l+='<span class="source-count-num">'.concat(p+1,"</span>")}}l+="</span>",e.internalFlag?a+=l:i+=l})),o.contentArray=[],o.internalInfo=[],(null==a?void 0:a.trim())&&o.internalInfo.push(null==a?void 0:a.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.updateSearchResponse=function(e,t,n){var o,s,i,a;t.suggestions.faqs=this.formatFAQResponse(t.suggestions.faqs);var r=null===(s=null===(o=null==t?void 0:t.suggestions)||void 0===o?void 0:o.faqs)||void 0===s?void 0:s.findIndex((function(e,t){if(e.question===n.question)return e})),l={};if(r>=0&&(l=null===(i=null==t?void 0:t.suggestions)||void 0===i?void 0:i.faqs[r]),l&&(null===(a=Object.keys(l))||void 0===a?void 0:a.length)>0){var c=e.map((function(e,t){var o;if(t===n.assistSuggestion){var s=ao({},e),i=null===(o=s.searchResponse)||void 0===o?void 0:o.faqs[n.index];return i&&l&&(null==l?void 0:l.answer)&&(i.answer=null==l?void 0:l.answer,i.toggle=!0,i.showMoreButton=!1,i.showLessButton=!1,i.showSpinner=!1),s.faqArrowClickResponse=!0,s}return e}));return c}},e.prototype.prepareFeedbackForSuggestions=function(e,t,n){var o,s,i;void 0===n&&(n={});var a={type:Oe.FEEDBACK,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)a.isFromGeneratedSummary=t.isFromGeneratedSummary,a.answerType=t.templateType,a.title=t.title,a.answer=t.sendCopyText||"",a.interactionType=t.intType,a.sources=t.sources,(null===(s=t.internalInfo)||void 0===s?void 0:s.length)>0&&(a.answer+=t.internalInfo.join(" "));else if("article"==e||"file"==e)a.title=t.title,a.answer=t.content||"",a.interactionType=t.intType;else if("faqs"==e){var r="";Array.isArray(null==t?void 0:t.answer)&&(null===(i=null==t?void 0:t.answer)||void 0===i||i.forEach((function(e){r+=e.ans}))),a.title=t.question,a.answer=r}return a},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){var t,n,o=[];if(e&&(null==e?void 0:e.length)>0)for(var s=0,i=e;s<i.length;s++){var a=i[s],r={question:a.question,taskRefId:null==a?void 0:a.taskRefId,answer:!!((null==a?void 0:a.answer)&&(null===(t=null==a?void 0:a.answer)||void 0===t?void 0:t.length)>0)&&[]};if(a.answer&&a.answer.length>0)for(var l=0,c=a.answer;l<c.length;l++){var d=c[l],u={taskRefId:a.taskRefId,ans:d,showMoreButton:!0,showLessButton:!1};null===(n=null==r?void 0:r.answer)||void 0===n||n.push(u)}o.push(r)}return o},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.prototype.handleSendCopyButton=function(e,t,n){var o={};return e==Le.SEND?(o={method:"send",name:Le.SENDMSG,conversationId:this.connectionDetails.conversationId,payload:t.sendContent},n===Le.ARTICLE?(o.title=t.title,o.contentId=t.contentId):(o.title=t.displayName,o.contentId=t.taskRefId)):(o={method:"copy",name:Le.COPYMSG,conversationId:this.connectionDetails.conversationId,payload:t.sendContent},n===Le.ARTICLE?(o.title=t.title,o.contentId=t.contentId):(o.title=t.displayName,o.contentId=t.taskRefId)),o.type=n==Le.FAQ?"faq":"article",window.parent.postMessage(o,"*"),this.faqArticleSendorCopyEvent(n,o,t)},e.prototype.faqArticleSendorCopyEvent=function(e,t,n){var o,s={botId:this.connectionDetails.botId,conversationId:this.connectionDetails.conversationId,experience:null===(o=this.connectionDetails)||void 0===o?void 0:o.channel,source:this.connectionDetails.source,usedType:t.method,type:t.type,name:t.name,payload:t.payload,title:t.title,contentId:t.contentId,positionId:n.positionId?n.positionId:""};return s=this.addSourceMsgIdToRequestParams(n,s),n.subType&&(s.subType=n.subType),s},e.prototype.addSourceMsgIdToRequestParams=function(e,t){return e.sourceMsgId&&("fromLibrary"==e.sourceMsgId?t.fromLibrary=!0:t.sourceMsgId=e.sourceMsgId),t},e.prototype.addSentOrCopiedTextForFaqs=function(e,t,n,o){var s=t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE),i=t.querySelector("".concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_SENT_TEXT));if(!e.send&&!i){e.send=n;var a=oe($e,{ansObj:e},o);s.append(a)}},e.prototype.addSentOrCopiedTextForFiles=function(e,t,n,o){if(!e.send){e.send=n;var s=oe(it,{file:e},o);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}},e.prototype.addSentOrCopiedTextForArticle=function(e,t,n,o){if(!e.send){e.send=n;var s=oe(We,{article:e},o);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}},e.prototype.addSentOrCopiedTextForSnippets=function(e,t,n,o){if(!e.send){e.send=n;var s=oe(ut,{snippet:e},o);t.querySelector(this.classConstants.SUGGESTION_EACH_TITLE).append(s)}},e.prototype.handleSendCopyButtonForFaq=function(e,t,n,o,s){t.sourceMsgId=o,t.sendContent=t.answer||t.ans;var i=this.handleSendCopyButton(e,t,n);s.socketConnection.emitEvents(De.agent_send_or_copy,i)},e.prototype.handleSendCopyButtonForSnippet=function(e,t,n,o){t.sendContent=t.sendCopyText;var s=this.handleSendCopyButton(e,t,n);o.socketConnection.emitEvents(De.agent_send_or_copy,s)},e.prototype.handleSendCopyButtonArticleOrFile=function(e,t,n,o){t.sendContent=t.content;var s=this.handleSendCopyButton(e,t,n);o.socketConnection.emitEvents(De.agent_send_or_copy,s)},e.prototype.handleActionTemplateClickEventsForFAQ=function(e,t,n,o,s){var i,a,r=this;null===(i=s.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){r.handleSendCopyButtonForFaq(Le.SEND,n,Le.FAQ,t.sourceMsgId,s),r.addSentOrCopiedTextForFaqs(n,o,"send",s)}),e),null===(a=s.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){r.handleSendCopyButtonForFaq(Le.COPY,n,Le.FAQ,t.sourceMsgId,s),r.addSentOrCopiedTextForFaqs(n,o,"copy",s)}),e)},e.prototype.handleFaqExpandCloseBtnClickEvents=function(e,t,n,o,s){var i,a,r=this,l=e.querySelector(this.classConstants.SUGGESTION_FAQ_EXPAND),c=e.querySelector(this.classConstants.SUGGESTION_FAQ_CLOSE),d=null==o?void 0:o.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_FAQ_ANS_LENGTH));null===(i=s.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_FAQ_EXPAND,"click",(function(){var e,o,s,i,a,u,p,h;(null===(e=null==c?void 0:c.classList)||void 0===e?void 0:e.contains(r.classConstants.HIDE_ELEMENT))&&(null===(o=null==c?void 0:c.classList)||void 0===o||o.remove(r.classConstants.HIDE_ELEMENT)),null===(s=null==l?void 0:l.classList)||void 0===s||s.add(r.classConstants.HIDE_ELEMENT),t.forEach((function(e,t){var n,o;(null===(n=null==e?void 0:e.classList)||void 0===n?void 0:n.contains(r.classConstants.HIDE_ELEMENT))&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.remove(r.classConstants.HIDE_ELEMENT))})),null===(i=null==d?void 0:d.classList)||void 0===i||i.add(r.classConstants.HIDE_ELEMENT),null===(a=null==n?void 0:n.classList)||void 0===a||a.add(r.classConstants.HIDE_ELEMENT);var g=null===(u=t[0])||void 0===u?void 0:u.querySelector(r.classConstants.SUGGESTION_SENDCPY_ACTION);(null===(p=null==g?void 0:g.classList)||void 0===p?void 0:p.contains(r.classConstants.HIDE_ELEMENT))&&(null===(h=null==g?void 0:g.classList)||void 0===h||h.remove(r.classConstants.HIDE_ELEMENT))}),e),null===(a=s.eventManager)||void 0===a||a.addEventListener(this.classConstants.SUGGESTION_FAQ_CLOSE,"click",(function(){var e,o,s,i,a,u,p,h,g;(null===(e=null==l?void 0:l.classList)||void 0===e?void 0:e.contains(r.classConstants.HIDE_ELEMENT))&&(null===(o=null==l?void 0:l.classList)||void 0===o||o.remove(r.classConstants.HIDE_ELEMENT)),null===(s=null==c?void 0:c.classList)||void 0===s||s.add(r.classConstants.HIDE_ELEMENT),t.forEach((function(e,t){var n;0!=t&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.add(r.classConstants.HIDE_ELEMENT))})),(null===(i=null==d?void 0:d.classList)||void 0===i?void 0:i.contains(r.classConstants.HIDE_ELEMENT))&&(null===(a=null==d?void 0:d.classList)||void 0===a||a.remove(r.classConstants.HIDE_ELEMENT)),(null===(u=null==n?void 0:n.classList)||void 0===u?void 0:u.contains(r.classConstants.HIDE_ELEMENT))&&(null===(p=null==n?void 0:n.classList)||void 0===p||p.remove(r.classConstants.HIDE_ELEMENT));var f=null===(h=t[0])||void 0===h?void 0:h.querySelector(r.classConstants.SUGGESTION_SENDCPY_ACTION);null===(g=null==f?void 0:f.classList)||void 0===g||g.add(r.classConstants.HIDE_ELEMENT)}),e)},e.prototype.handleActionTemplateClickEventsForSnippet=function(e,t,n,o){var s,i,a=this;null===(s=o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){a.handleSendCopyButtonForSnippet(Le.SEND,t,Le.ARTICLE,o),a.addSentOrCopiedTextForSnippets(t,n,"send",o)}),e),null===(i=o.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){a.handleSendCopyButtonForSnippet(Le.COPY,t,Le.ARTICLE,o),a.addSentOrCopiedTextForSnippets(t,n,"copy",o)}),e)},e.prototype.handleActionTemplateClickEventsForArticle=function(e,t,n,o){var s,i,a=this;null===(s=o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){a.handleSendCopyButtonArticleOrFile(Le.SEND,t,Le.ARTICLE,o),a.addSentOrCopiedTextForArticle(t,n,"send",o)}),e),null===(i=o.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){a.handleSendCopyButtonArticleOrFile(Le.COPY,t,Le.ARTICLE,o),a.addSentOrCopiedTextForArticle(t,n,"copy",o)}),e)},e.prototype.handleActionTemplateClickEventsForFile=function(e,t,n,o){var s,i,a=this;null===(s=o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_SEND_BTN,"click",(function(){a.handleSendCopyButtonArticleOrFile(Le.SEND,t,Le.ARTICLE,o),a.addSentOrCopiedTextForFiles(t,n,"send",o)}),e),null===(i=o.eventManager)||void 0===i||i.addEventListener(this.classConstants.SUGGESTION_COPY_BTN,"click",(function(){a.handleSendCopyButtonArticleOrFile(Le.COPY,t,Le.ARTICLE,o),a.addSentOrCopiedTextForFiles(t,n,"copy",o)}),e)},e.prototype.handleSuggestionLessClickEvent=function(e,t,n,o){var s,i=this,a=e.querySelector(this.classConstants.SUGGESTION_MORE_LINK),r=e.querySelector(this.classConstants.SUGGESTION_LESS_LINK);null===(s=o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_MORE_LINK,"click",(function(){var e,t,o;(null===(e=null==r?void 0:r.classList)||void 0===e?void 0:e.contains(i.classConstants.HIDE_ELEMENT))&&(null===(t=null==r?void 0:r.classList)||void 0===t||t.remove(i.classConstants.HIDE_ELEMENT)),null===(o=null==a?void 0:a.classList)||void 0===o||o.add(i.classConstants.HIDE_ELEMENT),n.forEach((function(e){var t,n;(null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains(i.classConstants.HIDE_ELEMENT))&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.remove(i.classConstants.HIDE_ELEMENT))}))}),t)},e.prototype.handleSuggestionMoreClickEvent=function(e,t,n,o){var s,i=this,a=e.querySelector(this.classConstants.SUGGESTION_MORE_LINK),r=e.querySelector(this.classConstants.SUGGESTION_LESS_LINK);null===(s=null==o?void 0:o.eventManager)||void 0===s||s.addEventListener(this.classConstants.SUGGESTION_LESS_LINK,"click",(function(){var e,t,o;(null===(e=null==a?void 0:a.classList)||void 0===e?void 0:e.contains(i.classConstants.HIDE_ELEMENT))&&(null===(t=null==a?void 0:a.classList)||void 0===t||t.remove(i.classConstants.HIDE_ELEMENT)),null===(o=null==r?void 0:r.classList)||void 0===o||o.add(i.classConstants.HIDE_ELEMENT),n.forEach((function(e,t){var n;t>=2&&e&&(null===(n=null==e?void 0:e.classList)||void 0===n||n.add(i.classConstants.HIDE_ELEMENT))}))}),t)},e.prototype.setFaqIndividualLoader=function(e,t,n){var o,s,i,a,r=this;void 0===t&&(t=!1);var l=document.getElementById(n),c=null===(o=(null==l?void 0:l.querySelectorAll(this.classConstants.SUGGESTION_EACH))[e])||void 0===o?void 0:o.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_EACH_TITLE," ").concat(this.classConstants.SUGGESTION_FAQ_ANS_LOADER));t&&c?null===(s=null==c?void 0:c.classList)||void 0===s||s.add(this.classConstants.HIDE_ELEMENT):c&&((null===(i=null==c?void 0:c.classList)||void 0===i?void 0:i.contains(this.classConstants.HIDE_ELEMENT))&&(null===(a=null==c?void 0:c.classList)||void 0===a||a.remove(this.classConstants.HIDE_ELEMENT)),setTimeout((function(){var e;null===(e=null==c?void 0:c.classList)||void 0===e||e.add(r.classConstants.HIDE_ELEMENT)}),1e4))},e.prototype.addOrHideFAQArrows=function(e,t,n){var o,s,i,a,r,l;"up"===n?((null===(o=null==t?void 0:t.classList)||void 0===o?void 0:o.contains(this.classConstants.HIDE_ELEMENT))&&(null===(s=null==t?void 0:t.classList)||void 0===s||s.remove(this.classConstants.HIDE_ELEMENT)),null===(i=null==e?void 0:e.classList)||void 0===i||i.add(this.classConstants.HIDE_ELEMENT)):((null===(a=null==e?void 0:e.classList)||void 0===a?void 0:a.contains(this.classConstants.HIDE_ELEMENT))&&(null===(r=null==e?void 0:e.classList)||void 0===r||r.remove(this.classConstants.HIDE_ELEMENT)),null===(l=null==t?void 0:t.classList)||void 0===l||l.add(this.classConstants.HIDE_ELEMENT))},e.prototype.toggleArrows=function(e,t){var n,o=document.getElementById(t),s=null===(n=(null==o?void 0:o.querySelectorAll(this.classConstants.SUGGESTION_EACH))[e])||void 0===n?void 0:n.querySelector(this.classConstants.SUGGESTION_EACH_HEADER),i=null==s?void 0:s.querySelector(this.classConstants.SUGGESTION_FAQ_UP_ARROW),a=null==s?void 0:s.querySelector(this.classConstants.SUGGESTION_FAQ_DOWN_ARROW);this.addOrHideFAQArrows(i,a,"down")},e.prototype.openLinksInBrowser=function(e){this.openurlInBrowser(e)},e.prototype.openurlInBrowserForSnippet=function(e,t,n){this.openurlInBrowser(e),this.handleUrlClickEvent(e,t,n)},e.prototype.handleUrlClickEvent=function(e,t,n){var o=this.commonRequestParamsForActivity(t);o.eventType="url_clicked",o.url=e,n.socketConnection.emitEvents(De.agent_activity_request,o)},e.prototype.commonRequestParamsForActivity=function(e){var t=this.connectionDetails,n=t.botId,o=t.conversationId;t.channel;return{botId:n,conversationId:o,event:"clicked",sourceMsgId:e.sourceMsgId,dataSource:"snippet",positionId:e.positionId}},e.prototype.emitSearchRequestForAssistSuggestions=function(e,t,n,o){var s=Object.assign({},this.connectionDetails);s.value=e,s.isSearch=t,s.interactiveLanguage&&"string"==typeof s.interactiveLanguage&&"''"!=s.interactiveLanguage&&(s.language=s.interactiveLanguage),n.sourceMsgId&&(s.sourceMsgId=n.sourceMsgId);var i=o.prepareAgentAssistRequestParams(s);n.ambiguityToken&&(i.uiunqref=n.ambiguityToken),o.socketConnection.emitEvents(De.agent_assist_request,i)},e.prototype.emitSearchRequestForSearch=function(e,t,n,o){var s,i;void 0===n&&(n={});var a=ao(ao({},null===(i=null===(s=null==o?void 0:o.socketConnection)||void 0===s?void 0:s.configOptions)||void 0===i?void 0:i.connectionDetails),{value:e,isSearch:t});a.interactiveLanguage&&"string"==typeof a.interactiveLanguage&&"''"!==a.interactiveLanguage&&(a.language=a.interactiveLanguage),n&&n.sourceMsgId&&(a.sourceMsgId=n.sourceMsgId);var r=o.prepareAgentAssistAgentRequestParams(a);n.ambiguityToken&&(r.uiunqref=n.ambiguityToken),o.socketConnection.emitEvents(De.agent_assist_agent_request,r)},e.prototype.handleFaqAmbiguityDescElement=function(e,t,n,o,s,i,a){var r,l,c,d=document.getElementById(e),u=null==d?void 0:d.querySelectorAll(this.classConstants.SUGGESTION_EACH),p=null==t?void 0:t.index,h=n[p];this.setFaqIndividualLoader(p,!0,e),h&&(null===(r=null==h?void 0:h.answer)||void 0===r?void 0:r.length)>0&&u[p]&&(c=oe(Je,{faq:h},a),a.emit(Pe.BEFORE_VIEW_INIT,c,{event:Pe.FAQ_ANSWER_AFTER_TOGGLE,data:n}),c&&u[p].append(c));var g=null===(l=u[p])||void 0===l?void 0:l.querySelector(this.classConstants.SUGGESTION_EACH_HEADER);this.addOrHideFAQActionExpandCloseElements(h,o,s,i,g,u,p,a)},e.prototype.handleFaqToggle=function(e,t,n,o,s,i,a){var r,l=this;e.toggle=!e.toggle,e.seeMoreWrapper=!1;var c=null===(r=o[t])||void 0===r?void 0:r.querySelectorAll(this.classConstants.SUGGESTION_EACH_BODY);"down"!=n||e.answer?"down"==n&&e.answer?c.forEach((function(e,t){var n,o;(null===(n=null==e?void 0:e.classList)||void 0===n?void 0:n.contains(l.classConstants.HIDE_ELEMENT))&&(null===(o=null==e?void 0:e.classList)||void 0===o||o.remove(l.classConstants.HIDE_ELEMENT))})):"up"==n&&c.forEach((function(e,t){var n;null===(n=null==e?void 0:e.classList)||void 0===n||n.add(l.classConstants.HIDE_ELEMENT)})):i?this.checkAnswerAndToggleForAssist(e,t,s,a):this.checkAnswerAndToggleForSearch(e,t,s)},e.prototype.checkAnswerAndToggleForAssist=function(e,t,n,o){if(!e.answer&&e.toggle){e.ambiguityToken=btoa(JSON.stringify({question:e.question,index:t,assistSuggestion:o.suggestionIndex})),this.emitSearchRequestForAssistSuggestions(e.displayName,!1,e,n);var s=this.idConstants.ASSIST_FAQ_SUGGESTION+o.suggestionIndex;this.setFaqIndividualLoader(t,!1,s)}},e.prototype.checkAnswerAndToggleForSearch=function(e,t,n){!e.answer&&e.toggle&&(e.ambiguityToken=btoa(JSON.stringify({question:e.question,index:t})),this.emitSearchRequestForSearch(e.displayName,!1,e,n),this.setFaqIndividualLoader(t,!1,this.idConstants.SEARCH_FAQ_SUGGESTION))},e.prototype.renderEachFaqInSuggestionList=function(e,t,n,o,s,i,a,r){var l,c=this;null===(l=null==e?void 0:e.faqs)||void 0===l||l.forEach((function(e,l){var d,u,p,h,g=null===(d=t[l])||void 0===d?void 0:d.querySelector(c.classConstants.SUGGESTION_EACH_HEADER),f=null==g?void 0:g.querySelector(c.classConstants.SUGGESTION_FAQ_UP_ARROW),v=null==g?void 0:g.querySelector(c.classConstants.SUGGESTION_FAQ_DOWN_ARROW);null===(u=i.eventManager)||void 0===u||u.addEventListener(c.classConstants.SUGGESTION_FAQ_UP_ARROW,"click",(function(){c.addOrHideFAQArrows(f,v,"up"),c.handleFaqToggle(e,l,"up",t,i,a,r)}),g),null===(p=i.eventManager)||void 0===p||p.addEventListener(c.classConstants.SUGGESTION_FAQ_DOWN_ARROW,"click",(function(){c.addOrHideFAQArrows(f,v,"down"),c.handleFaqToggle(e,l,"down",t,i,a,r)}),g),e.answer&&(null===(h=null==e?void 0:e.answer)||void 0===h?void 0:h.length)>0&&!n&&c.addOrHideFAQActionExpandCloseElements(e,n,o,s,g,t,l,i)}))},e.prototype.renderEachSnippetInSuggestionList=function(e,t,n,o,s,i){var a,r=this;null===(a=null==e?void 0:e.snippets)||void 0===a||a.forEach((function(e,a){var l,c,d=oe(pt,{snippet:e,hostInstance:i,hideActionButtons:n,hideCopyButton:o,hideSendButton:s},i);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[a])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForSnippet(d,e,t[a],i));var u=t[a].querySelectorAll(r.classConstants.SUGGESTION_SNIPPET_SOURCE_TAG);null===(c=e.sources)||void 0===c||c.forEach((function(t,n){var o;null===(o=i.eventManager)||void 0===o||o.addEventListener(r.classConstants.SUGGESTION_SNIPPET_LINK,"click",(function(){r.openurlInBrowserForSnippet(t.url,e,i)}),u[n])}))}))},e.prototype.renderEachArticleInSuggestionList=function(e,t,n,o,s,i){var a,r=this;null===(a=null==e?void 0:e.articles)||void 0===a||a.forEach((function(e,a){var l,c,d=oe(Qe,{article:e,hostInstance:i,hideActionButtons:n,hideCopyButton:o,hideSendButton:s},i);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[a])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForArticle(d,e,t[a],i)),null===(c=i.eventManager)||void 0===c||c.addEventListener(r.classConstants.SUGGESTION_ARTICLE_LINK,"click",(function(){r.openLinksInBrowser(e.link)}),t[a])}))},e.prototype.renderEachFileInSuggestionList=function(e,t,n,o,s,i){var a,r=this;null===(a=null==e?void 0:e.files)||void 0===a||a.forEach((function(e,a){var l,c,d=oe(rt,{file:e,hostInstance:i,hideActionButtons:n,hideCopyButton:o,hideSendButton:s},i);d&&"#text"!=(null==d?void 0:d.nodeName)&&(null===(l=t[a])||void 0===l||l.querySelector(r.classConstants.SUGGESTION_EACH_HEADER).append(d),r.handleActionTemplateClickEventsForFile(d,e,t[a],i)),null===(c=i.eventManager)||void 0===c||c.addEventListener(r.classConstants.SUGGESTION_FILE_LINK,"click",(function(){r.openLinksInBrowser(e.link)}),t[a])}))},e.prototype.handleSearchText=function(e,t){var n,o;e.isEntered&&this.emitSearchRequestForSearch(e.value,!0,{},t);var s=null===(n=null==t?void 0:t.chatEle)||void 0===n?void 0:n.querySelector(this.classConstants.SEARCH_INPUT_BLOCK),i=null===(o=null==t?void 0:t.chatEle)||void 0===o?void 0:o.querySelector("#".concat(this.idConstants.SEARCH_INPUT));if(s){var a=null==s?void 0:s.querySelector(this.classConstants.SEARCH_INPUT_ICON),r=null==s?void 0:s.querySelector(this.classConstants.SEARCH_INPUT_CLOSE);e.value?(a.classList.add(this.classConstants.HIDE_ELEMENT),r.classList.remove(this.classConstants.HIDE_ELEMENT)):(r.classList.add(this.classConstants.HIDE_ELEMENT),a.classList.remove(this.classConstants.HIDE_ELEMENT)),i.value=e.value}},e.prototype.addOrHideFAQActionExpandCloseElements=function(e,t,n,o,s,i,a,r){var l,c,d,u,p,h=this,g=oe(tt,{ansObj:e.answer[0],hostInstance:r,hideActionButtons:t,hideCopyButton:n,hideSendButton:o,addHideClass:!1},r);if(s&&g&&"#text"!=(null==g?void 0:g.nodeName)&&(s.append(g),this.handleActionTemplateClickEventsForFAQ(g,e,e.answer[0],i[a],r)),(null===(l=e.answer)||void 0===l?void 0:l.length)>1){var f=null===(c=i[a])||void 0===c?void 0:c.querySelectorAll(this.classConstants.SUGGESTION_EACH_BODY);null===(d=e.answer)||void 0===d||d.forEach((function(s,l){var c=oe(tt,{ansObj:s,hostInstance:r,hideActionButtons:t,hideCopyButton:n,hideSendButton:o,addHideClass:0==l},r);c&&"#text"!=(null==c?void 0:c.nodeName)&&f&&(null==f?void 0:f.length)>0&&(f[l].prepend(c),h.handleActionTemplateClickEventsForFAQ(c,e,s,i[a],r))}));var v=oe(Xe,{},r);null===(u=i[a])||void 0===u||u.append(v);var b=null===(p=i[a])||void 0===p?void 0:p.querySelector("".concat(this.classConstants.SUGGESTION_EACH_HEADER," ").concat(this.classConstants.SUGGESTION_SENDCPY_ACTION));this.handleFaqExpandCloseBtnClickEvents(v,f,b,i[a],r)}},e}();const lo=ro;const co=function(){function e(e){this.eventMapper=[],this.hostInstance=e}return e.prototype.addEventListener=function(e,t,n,o){var s;!o&&this.eventMapper.filter((function(n){return n.querySelector===e&&n.event==t})).length||(this.eventMapper.push({querySelector:e,event:t,cb:n}),null===(s=(o||this.hostInstance.chatEle).querySelector(e))||void 0===s||s.addEventListener(t,n))},e.prototype.removeEventListener=function(e,t,n){var o,s,i=this.eventMapper.filter((function(n){return n.querySelector==e&&n.event==t}));null===(o=(n||this.hostInstance.chatEle).querySelector(e))||void 0===o||o.removeEventListener(t,null===(s=i[0])||void 0===s?void 0:s.cb),this.eventMapper.splice(this.eventMapper.findIndex((function(n){return n.querySelector==e&&n.event==t})),1)},e}();var uo=function(){return uo=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},uo.apply(this,arguments)},po=function(e,t,n,o){return new(n||(n=Promise))((function(s,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function r(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(a,r)}l((o=o.apply(e,t||[])).next())}))},ho=function(e,t){var n,o,s,i,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function r(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,r[0]&&(a=0)),a;)try{if(n=1,o&&(s=2&r[0]?o.return:r[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;switch(o=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(s=a.trys,(s=s.length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(6===r[0]&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}},go={jwt_grant:"/api/1.1/oAuth/token/jwtgrant",get_aa_settings:"/agentassist/api/v1/agentassist/:botId/agentassistsetting?e=:channel"};const fo=function(e,t,n,o){return void 0===t&&(t={}),po(void 0,void 0,void 0,(function(){var s,i,a,r,l,c,d,u,p,h,g,f,v,b;return ho(this,(function(m){switch(m.label){case 0:return m.trys.push([0,5,,6]),_=o,s=go[e].replace(/:(\w+)/g,(function(e,t){return void 0!==_[t]?_[t]:":".concat(t)})),i=n.rootService.connectionDetails,a=i.domainURL,r=i.botId,l=((null===(v=n.rootService.grantResponseObj)||void 0===v?void 0:v.userInfo)||{}).accountId,c=((null===(b=n.rootService.grantResponseObj)||void 0===b?void 0:b.authorization)||{}).accessToken,d=new Headers(t.headers||{}),u={iid:r,accountId:l,Authorization:"bearer "+c,"Content-Type":"application/json"},Object.keys(u).forEach((function(e){d.set(e,u[e])})),p=uo(uo({},t),{headers:d}),[4,fetch(a+s,p)];case 1:return(h=m.sent()).ok?[3,3]:[4,h.json()];case 2:throw g=m.sent(),new Error(g.message||"Something went wrong");case 3:return[4,h.json()];case 4:return[2,m.sent()];case 5:throw f=m.sent(),console.error("Fetch error:",f),f;case 6:return[2]}var _}))}))};var vo,bo=(vo=function(e,t){return vo=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])},vo(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}vo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mo=function(e){function t(){var t=e.call(this)||this;return t.handleOverrideMode=function(e,n){var o,s=t.rootService.connectionDetails,i={agentId:"",botId:s.botId,conversationId:s.conversationId,query:"",enable_override_userinput:e,experience:null===(o=t.rootService.connectionDetails)||void 0===o?void 0:o.channel,positionId:n};t.socketConnection.emitEvents(De.enable_override_userinput,i),t.rootService.OverRideMode=e},t}return bo(t,e),t.prototype.show=function(e){var t=this;t.initShow(e),t.eventManager=new co(t)},t.prototype.handleAgentUserMessage=function(e){var t,n,o,s,i,a,r;if("agentAssist.AgentMessage"===(null==e?void 0:e.name)||"AGENT"===e.type||"AGENT"===(null===(t=null==e?void 0:e.author)||void 0===t?void 0:t.type)?this.emitUserAgentMessage(e,"agent_inp_msg"):"agentAssist.CustomerMessage"!==(null==e?void 0:e.name)&&"USER"!==e.type&&"USER"!==(null===(n=null==e?void 0:e.author)||void 0===n?void 0:n.type)||this.emitUserAgentMessage(e,"user_inp_msg"),e.value){var l=e,c={author:{firstName:null===(o=l.author)||void 0===o?void 0:o.firstName,lastName:null===(s=l.author)||void 0===s?void 0:s.lastName,type:null===(i=l.author)||void 0===i?void 0:i.type},botId:this.rootService.connectionDetails.botId,conversationId:l.conversationId,experience:null===(a=this.rootService.connectionDetails)||void 0===a?void 0:a.channel,query:l.value,positionId:this.rootService.isAutomationOnGoing?this.rootService.currentPositionId:null};(null==l?void 0:l.customData)&&(c.customData=JSON.parse(JSON.stringify(null==l?void 0:l.customData))),(null==l?void 0:l.secureCustomData)?c.secureCustomData=null==l?void 0:l.secureCustomData:"USER"===(null===(r=null==l?void 0:l.author)||void 0===r?void 0:r.type)&&this.socketConnection.emitEvents(De.agent_assist_request,c)}},t.prototype.emitUserAgentMessage=function(e,t){void 0===t&&(t=""),"user_inp_msg"===t?this.socketConnection.emitEvents(De.user_sent_message,e):"agent_inp_msg"===t&&this.socketConnection.emitEvents(De.agent_sent_message,e)},t.prototype.initShow=function(e){var t=this;this.socketConnection=new io(this),this.rootService=new lo,this.rootService.connectionDetails=e.connectionDetails,this.JWTSetup(e).then((function(n){t.rootService.grantResponseObj=n,e.JWT_RESP=n,t.socketConnection.configOptions=e;var o=e.connectionDetails.botId;t.getAASettings(o).then((function(n){var o;t.rootService.aaSettings=(null==n?void 0:n.agentAssistSettings)||{},t.socketConnection.socketConnection(e),o=oe(Mt,{},t),t.chatEle=o,t.render(o),t.bindEvents()}))})).catch((function(e){}))},t.prototype.getAASettings=function(e){var t=this.rootService.connectionDetails.channel;return fo("get_aa_settings",{method:"GET",headers:{"Content-Type":"application/json"}},this,{botId:e,channel:t})},t.prototype.JWTSetup=function(e){var t=e.connectionDetails||{},n={assertion:t.token,botInfo:{taskBotId:t.botId,chatBot:"Sample Bot"},token:{}};return fo("jwt_grant",{method:"POST",body:JSON.stringify(n)},this)},t.prototype.render=function(e){document.getElementsByTagName("body")[0].append(e)},t.prototype.bindEvents=function(){var e=this;this.on("beforeWSSendMessage",(function(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,a=o.autoBotId,r=o.interactiveLanguage,l=o.userName,c=o.customData,d=o.token,u=o.channel,p="",h="",g="";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!=r&&"''"!==r&&(h=r),a&&"undefined"!==a&&(g=a);var f={waitTime:2e3,userName:l,id:i,isSendWelcomeMessage:!0,agentassistInfo:{},botId:s,sendMenuRequest:!0,uId:"",sId:"",experience:u,jToken:d,conversationId:i,autoBotId:g,language:h,allQueryParams:null==e?void 0:e.connectionDetials,customData:p};this.welComeMsgReq(f);var v={botId:s,conversationId:i,experience:u,autoBotId:g,language:h};this.menuReq(v)},t.prototype.prepareAgentAssistRequestParams=function(e){var t,n,o,s,i,a=null===(n=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===n?void 0:n.connectionDetails,r={conversationId:e.conversationId,query:e.value,botId:e.botId,agentId:"",experience:null==a?void 0:a.channel,positionId:e.positionId,intType:"assist"};return e.intentName&&(r.intentName=e.value),e.entities?r.entities=e.entities:r.entities=[],e.childBotId&&(r.childBotId=e.childBotId),e.childBotName&&(r.childBotName=e.childBotName),(null==a?void 0:a.autoBotId)&&"undefined"!==(null==a?void 0:a.autoBotId)?r.autoBotId=a.autoBotId:r.autoBotId="",e.intentName&&e.userInput&&(r.query=e.userInput),this.rootService.isAutomationOnGoing&&(r.positionId=this.rootService.currentPositionId),Array.isArray(e.traits)&&(null===(o=null==e?void 0:e.traits)||void 0===o?void 0:o.length)&&(r.traits=e.traits),e.taskRefId&&(r.taskRefId=e.taskRefId),e.dialogId&&(r.dialogId=e.dialogId),e.isDiscard&&(r.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(r.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)||"",r.attachments=null==e?void 0:e.attachments),r=this.addSourceMsgIdToRequestParams(e,r)},t.prototype.prepareAgentAssistAgentRequestParams=function(e){var t,n,o,s,i,a=null===(n=null===(t=this.socketConnection)||void 0===t?void 0:t.configOptions)||void 0===n?void 0:n.connectionDetails,r={isSearch:e.isSearch,conversationId:e.conversationId,query:e.value,botId:e.botId,experience:null==a?void 0:a.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&&(r.intentName=e.intentName),(null==a?void 0:a.autoBotId)&&"undefined"!==(null==a?void 0:a.autoBotId)?r.autoBotId=a.autoBotId:r.autoBotId="",e.intentName&&e.userInput&&(r.query=e.userInput),Array.isArray(e.traits)&&(null===(o=null==e?void 0:e.traits)||void 0===o?void 0:o.length)&&(r.traits=e.traits),e.taskRefId&&(r.taskRefId=e.taskRefId),e.dialogId&&(r.dialogId=e.dialogId),e.isDiscard&&(r.terminateTask=e.isDiscard),(null==e?void 0:e.attachments)&&(r.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)||"",r.attachments=null==e?void 0:e.attachments),r=this.addSourceMsgIdToRequestParams(e,r)},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(De.welcome_message_request,e)},t.prototype.menuReq=function(e){this.socketConnection.emitEvents(De.agent_menu_request,e)},t.prototype.openAssistTab=function(e,t){this.emit("updateActiveTab",{activeTab:"ast",isActive:t,footerTag:e})},t.prototype.openTranscriptTab=function(e,t){this.emit("updateActiveTab",{activeTab:"trnspt",isActive:t,footerTag:e})},t.prototype.openSearchTab=function(e,t){this.emit("updateActiveTab",{activeTab:"srch",isActive:t,footerTag:e})},t.prototype.openMybotTab=function(e,t){this.emit("updateActiveTab",{activeTab:"mB",isActive:t,footerTag:e})},t.prototype.openPlaybookTab=function(e,t){this.emit("updateActiveTab",{activeTab:"playbook",isActive:t,footerTag:e})},t}(C);const _o=mo;const yo={aaParams:{token:{}},container:"body",branding:{general:{},footer:{}}};var xo=o.$,wo=o.T;export{xo as aaConfig,wo as aaWindow};