@khvavuong/ezchat 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ezchat.umd.js +10 -4
- package/dist/ezchat.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ezchat.umd.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.chat-messages-container{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;box-sizing:border-box;transform:translateZ(0);-webkit-transform:translateZ(0);will-change:scroll-position;background-attachment:fixed;background-size:cover;background-repeat:no-repeat;background-position:center}.chat-popup-window--fullscreen .chat-messages-container{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.chat-messages-container{background-image:url("data:image/svg+xml,%3csvg%20width='702'%20height='333'%20viewBox='0%200%20702%20333'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='702'%20height='332.5'%20transform='translate(0%200.5)'%20fill='%23F9F9F9'/%3e%3cmask%20id='mask0_2126_250272'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='702'%20height='333'%3e%3crect%20y='0.5'%20width='702'%20height='332.5'%20fill='%23F9F9F9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2126_250272)'%3e%3cg%20opacity='0.4'%20filter='url(%23filter0_f_2126_250272)'%3e%3cellipse%20cx='217.889'%20cy='89.4345'%20rx='92.9028'%20ry='132.599'%20fill='url(%23paint0_linear_2126_250272)'/%3e%3cellipse%20cx='267.576'%20cy='251.281'%20rx='94.725'%20ry='141.383'%20fill='url(%23paint1_linear_2126_250272)'/%3e%3cellipse%20cx='198.685'%20cy='149.02'%20rx='145.472'%20ry='113.673'%20fill='url(%23paint2_linear_2126_250272)'/%3e%3cellipse%20cx='502.354'%20cy='219.212'%20rx='76.572'%20ry='89.1293'%20fill='url(%23paint3_linear_2126_250272)'/%3e%3cellipse%20cx='329.854'%20cy='242.986'%20rx='90.3027'%20ry='136.639'%20fill='url(%23paint4_linear_2126_250272)'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_f_2126_250272'%20x='-152.057'%20y='-248.434'%20width='936.253'%20height='846.368'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='102.635'%20result='effect1_foregroundBlur_2126_250272'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_2126_250272'%20x1='124.986'%20y1='89.4345'%20x2='310.792'%20y2='89.4345'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231AAF74'/%3e%3cstop%20offset='1'%20stop-color='%231AAF74'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2126_250272'%20x1='172.851'%20y1='251.281'%20x2='362.301'%20y2='251.281'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231AAF74'/%3e%3cstop%20offset='1'%20stop-color='%231AAF74'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2126_250272'%20x1='53.2129'%20y1='149.02'%20x2='344.158'%20y2='149.02'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F8FF99'/%3e%3cstop%20offset='1'%20stop-color='%23F8FF99'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2126_250272'%20x1='425.782'%20y1='219.212'%20x2='578.926'%20y2='219.212'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231AAF74'/%3e%3cstop%20offset='1'%20stop-color='%231AAF74'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2126_250272'%20x1='239.552'%20y1='242.986'%20x2='420.157'%20y2='242.986'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231AAF74'/%3e%3cstop%20offset='1'%20stop-color='%231AAF74'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")}.chat-popup-window--mobile .chat-messages-container{flex:1;min-height:0;max-height:100%}.chat-messages-container:before,.chat-messages-container:after{content:"";flex-shrink:0}.chat-messages-container:before{height:20px}.chat-messages-container:after{height:20px}.chat-messages-container>*{margin-left:24px;margin-right:24px}.chat-message{margin-bottom:12px;display:flex;justify-content:flex-end;flex-shrink:0}.chat-message.bot{justify-content:flex-start}.feedback-button{background:transparent;border:none;width:16px;height:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.feedback-button:hover{transform:scale(1.1)}.feedback-button:active{transform:scale(.95)}.survey-message{background:#fff;border-radius:24px;box-shadow:0 2px 8px #00000014;padding:16px;max-width:70vh}.survey-options{display:flex;flex-direction:column;gap:12px;align-items:flex-start}.survey-option{border:1px solid #51D6A1;border-radius:24px;padding:12px 16px;background:none;font-size:16px;cursor:grab;text-align:left;user-select:none;transition:all .2s ease}.survey-option:active{cursor:grabbing}.survey-option:hover:not(.dragging){cursor:pointer;background:#eafaf3}.survey-option.dragging{opacity:.4;transform:scale(.95);cursor:grabbing}.survey-option.hovered{background:#d4f5ed;transform:translateY(5px)}.survey-option.multi-selected.selected{background:#1aaf741a}.survey-submit-button{background:transparent;font-weight:400;color:#1aaf74;font-size:16px;padding:8px 12px;border-radius:4px;border:none;cursor:pointer;transition:background-color .2s ease}.survey-submit-button:hover{background:#1aaf741a}.survey-submit-button:active{background:#1aaf7433}.survey-input{width:100%;padding:12px 16px;border-radius:12px;font-size:14px;font-weight:500;background:#efefef;border:0px solid #fff;box-sizing:border-box}.survey-input::placeholder{color:#1113154d}.survey-input:focus{border:1px solid #1AAF74;outline:none}.chat-input-container{padding:15px;background:#fff;border-top:1px solid #e0e0e0;display:flex;gap:10px;flex-shrink:0;box-sizing:border-box}.chat-input-field{padding:15px 12px;width:100%;background:#efefef;border:1px solid #EFEFEF;border-radius:100px;outline:none;font-size:16px;font-weight:500;box-sizing:border-box;font-family:Manrope,Arial,sans-serif;overflow-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;transition:height .12s ease}.chat-input-field:focus{border:1px solid #1AAF74;background:#efefef}.chat-input-field::-webkit-scrollbar{width:0;height:0}.chat-input-container.is-maxed .chat-input-field{border-radius:28px;transition:border-radius .12s ease}.chat-input-button{padding:10px 20px;background:#1677ff;color:#fff;border:none;border-radius:20px;cursor:pointer;font-weight:500}.chat-input-floating-box .chat-input-container{background:transparent;box-shadow:none;width:100%;padding:0;border-top:none;gap:0}.chat-input-floating-box .chat-input-field{background:#efefef;border-radius:100px;width:100%;box-shadow:none;padding:15px 24px}.chat-input-field::-webkit-scrollbar{display:none}.chat-popup-button{position:absolute;bottom:12px;right:12px;width:60px;height:60px;border-radius:50%;background:#fff;border:none;color:#fff;font-size:24px;cursor:pointer;box-shadow:0 4px 12px #00000026;z-index:1000;display:flex;align-items:center;justify-content:center}.chat-popup-button:hover{transform:scale(1.1)}.chat-popup-window{position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;border-radius:12px;box-shadow:0 8px 32px #0000001a;z-index:999;display:flex;flex-direction:column;overflow:hidden;transform:scale(.85);opacity:0;transition:opacity .25s;transform-origin:right bottom}.chat-popup-window:not(.chat-popup-window--fullscreen):not(.chat-popup-window--mobile)>div:last-child{flex:1;overflow:hidden;display:flex;flex-direction:column}.chat-popup-window--open{transform:scale(1);opacity:1;transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .25s}.chat-popup-window--fullscreen:not(.chat-popup-window--open),.chat-popup-window--mobile:not(.chat-popup-window--open){transition:opacity .25s!important}.chat-popup-window--fullscreen{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none;max-height:none;border-radius:12px;z-index:9999;background:#fff;display:flex;flex-direction:column}.chat-popup-window--fullscreen .chat-input-floating-box{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);width:60%;max-width:70%;gap:16px;display:flex;flex-direction:column;align-items:center}.chat-popup-window--fullscreen .chat-input-floating-box--with-messages{top:auto;bottom:24px;transform:translate(-50%);width:95%;max-width:95%}.chat-popup-window--mobile{inset:0!important;width:100%!important;height:100%!important;max-width:none;max-height:none;border-radius:12px;z-index:9999;background:#fff;display:flex;flex-direction:column}.chat-popup-window--mobile>div:last-child{flex:1;overflow:hidden;display:flex;flex-direction:column}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 16px;background:#fff;color:#fff;font-weight:700;font-size:18px;flex-shrink:0;box-sizing:border-box}.chat-popup-title{flex:1;text-align:center;font-weight:700;font-size:24px;display:flex;justify-content:center;align-items:center}.chat-input-floating-box{position:absolute;left:50%;transform:translate(-50%);background:transparent;border-radius:24px;padding:0;z-index:10;width:60%;max-width:70%;display:flex;flex-direction:column;align-items:center;gap:28px;justify-content:flex-start}.chat-popup-action-buttons{display:flex;justify-content:center;align-items:center;gap:16px;width:100%;flex-wrap:wrap;background:transparent!important;box-shadow:none;border:none;padding:0;margin:0;position:static}.sidebar-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#1e1e1e40;z-index:9;opacity:0;pointer-events:none;transition:opacity .2s}.sidebar-overlay--open{opacity:1;pointer-events:auto}.sidebar{position:absolute;top:0;left:0;width:420px;height:100%;background:#fff;box-shadow:2px 0 8px #00000014;z-index:10;padding:12px;transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .25s;border-radius:12px;transform:translate(-100%);opacity:0;pointer-events:none}.sidebar--open{transform:translate(0);opacity:1;pointer-events:auto}.sidebar--fullscreen{position:static!important;width:320px!important;height:100%;box-shadow:none!important;transform:none!important;opacity:1!important;pointer-events:auto!important}.sidebar-header{width:100%;display:flex;align-items:center;font-weight:700;font-size:24px;text-align:center;justify-content:left}.sidebar-section{display:flex;align-items:center;cursor:pointer;border-radius:8px;padding:8px;margin-top:18px;transition:background .2s}.sidebar-header-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.sidebar-section--no-padding{margin-top:0!important}.sidebar-section:hover,.sidebar-section:focus{background:#f5f5f5}.sidebar-section .sidebar-section-icon{width:24px;height:24px;margin-right:8px}.sidebar-section .sidebar-section-title{font-weight:600;font-size:16px;user-select:none}.sidebar-conversation-row{display:flex;justify-content:space-between;align-items:center;margin-top:16px;border-radius:16px;padding:8px}.sidebar-conversation-action{display:flex;align-items:center;cursor:pointer;border-radius:8px;padding:8px;transition:background .2s}.sidebar-conversation-action:hover,.sidebar-conversation-action:focus{background:#f5f5f5}.sidebar-search-box{margin-top:8px;padding:12px;background:#f5f5f5;border-radius:8px;display:flex;align-items:center}.sidebar-search-box input{border:none;outline:none;background:transparent;width:100%;font-size:16px;font-weight:500}.sidebar-search-box input::placeholder{color:#1113154d;opacity:1}.sidebar-menu-row{display:flex;justify-content:space-between;align-items:center;margin-top:18px;cursor:pointer;border-radius:8px;padding:8px;transition:background .2s}.sidebar-menu-row:hover,.sidebar-menu-row:focus{background:#f5f5f5}.sidebar-popover{position:absolute;top:32px;right:0;background:#efefef;border:1px solid #858B934D;border-radius:12px;box-shadow:0 2px 8px #00000014;z-index:100;min-width:170px;padding:8px 0}.sidebar-popover-item{font-size:14px;padding:8px 16px;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background .2s}.sidebar-popover-item:hover{background:#f5f5f5}.sidebar-menu-dot{opacity:0;pointer-events:none;transition:opacity .15s}.sidebar-menu-row:hover .sidebar-menu-dot,.sidebar-menu-row:focus .sidebar-menu-dot{opacity:1;pointer-events:auto}.chat-action-btn{background:#1aaf741a;border:1px solid #1AAF744D;color:#1a1d1f;border-radius:24px;padding:8px 12px;font-size:14px;font-weight:400;cursor:pointer;transition:background .2s;outline:none;margin:0 8px}.chat-action-btn:hover{background:#d2f1e0}.header-steps{display:flex;justify-content:space-between;align-items:center;padding:12px 24px;border-bottom:1px solid #e0e0e0;background:#fff;position:sticky;top:0;z-index:10;gap:16px}.header-steps-title{font-weight:700;font-size:18px;color:#1a1d1f;flex-shrink:0}.header-steps-container{display:flex;gap:0px;align-items:center;flex-shrink:0}.header-step{width:28px;height:28px;border-radius:50%;background:#f4f4f499;color:#000;border:2px solid #EFEFEF;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;transition:background-color .2s ease,color .2s ease}.header-step.active{background:#1aaf74;border:2px solid #1AAF74;color:#fff}.header-step-line{width:16px;height:2px;background:#858b934d;margin:0 4px;border-radius:1px;flex-shrink:0}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
(function(q,O){typeof exports=="object"&&typeof module!="undefined"?O(exports):typeof define=="function"&&define.amd?define(["exports"],O):(q=typeof globalThis!="undefined"?globalThis:q||self,O(q.EzChat={}))})(this,(function(q){"use strict";var w1=Object.defineProperty,m1=Object.defineProperties;var x1=Object.getOwnPropertyDescriptors;var e0=Object.getOwnPropertySymbols;var b1=Object.prototype.hasOwnProperty,$1=Object.prototype.propertyIsEnumerable;var t0=(q,O,j)=>O in q?w1(q,O,{enumerable:!0,configurable:!0,writable:!0,value:j}):q[O]=j,T2=(q,O)=>{for(var j in O||(O={}))b1.call(O,j)&&t0(q,j,O[j]);if(e0)for(var j of e0(O))$1.call(O,j)&&t0(q,j,O[j]);return q},I2=(q,O)=>m1(q,x1(O));var G=(q,O,j)=>new Promise((L2,s2)=>{var w2=Q=>{try{t2(j.next(Q))}catch(H){s2(H)}},W=Q=>{try{t2(j.throw(Q))}catch(H){s2(H)}},t2=Q=>Q.done?L2(Q.value):Promise.resolve(Q.value).then(w2,W);t2((j=j.apply(q,O)).next())});const j=(e,t)=>e===t,L2=Symbol("solid-track"),s2={equals:j};let w2=O2;const W=1,t2=2,Q={owned:null,cleanups:null,context:null,owner:null};var H=null;let A2=null,n0=null,F=null,X=null,J=null,m2=0;function x2(e,t){const n=F,i=H,o=e.length===0,l=t===void 0?i:t,a=o?Q:{owned:null,cleanups:null,context:l?l.context:null,owner:l},c=o?e:()=>e(()=>n2(()=>p2(a)));H=a,F=null;try{return g2(c,!0)}finally{F=n,H=i}}function R(e,t){t=t?Object.assign({},s2,t):s2;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},i=o=>(typeof o=="function"&&(o=o(n.value)),P2(n,o));return[F2.bind(n),i]}function K(e,t,n){const i=H2(e,t,!1,W);C2(i)}function a2(e,t,n){w2=l0;const i=H2(e,t,!1,W);i.user=!0,J?J.push(i):C2(i)}function f2(e,t,n){n=n?Object.assign({},s2,n):s2;const i=H2(e,t,!0,0);return i.observers=null,i.observerSlots=null,i.comparator=n.equals||void 0,C2(i),F2.bind(i)}function n2(e){if(F===null)return e();const t=F;F=null;try{return e()}finally{F=t}}function b2(e){a2(()=>n2(e))}function D2(e){return H===null||(H.cleanups===null?H.cleanups=[e]:H.cleanups.push(e)),e}function F2(){if(this.sources&&this.state)if(this.state===W)C2(this);else{const e=X;X=null,g2(()=>y2(this),!1),X=e}if(F){const e=this.observers?this.observers.length:0;F.sources?(F.sources.push(this),F.sourceSlots.push(e)):(F.sources=[this],F.sourceSlots=[e]),this.observers?(this.observers.push(F),this.observerSlots.push(F.sources.length-1)):(this.observers=[F],this.observerSlots=[F.sources.length-1])}return this.value}function P2(e,t,n){let i=e.value;return(!e.comparator||!e.comparator(i,t))&&(e.value=t,e.observers&&e.observers.length&&g2(()=>{for(let o=0;o<e.observers.length;o+=1){const l=e.observers[o],a=A2&&A2.running;a&&A2.disposed.has(l),(a?!l.tState:!l.state)&&(l.pure?X.push(l):J.push(l),l.observers&&R2(l)),a||(l.state=W)}if(X.length>1e6)throw X=[],new Error},!1)),t}function C2(e){if(!e.fn)return;p2(e);const t=m2;i0(e,e.value,t)}function i0(e,t,n){let i;const o=H,l=F;F=H=e;try{i=e.fn(t)}catch(a){return e.pure&&(e.state=W,e.owned&&e.owned.forEach(p2),e.owned=null),e.updatedAt=n+1,N2(a)}finally{F=l,H=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?P2(e,i):e.value=i,e.updatedAt=n)}function H2(e,t,n,i=W,o){const l={fn:e,state:i,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:H,context:H?H.context:null,pure:n};return H===null||H!==Q&&(H.owned?H.owned.push(l):H.owned=[l]),l}function $2(e){if(e.state===0)return;if(e.state===t2)return y2(e);if(e.suspense&&n2(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<m2);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===W)C2(e);else if(e.state===t2){const i=X;X=null,g2(()=>y2(e,t[0]),!1),X=i}}function g2(e,t){if(X)return e();let n=!1;t||(X=[]),J?n=!0:J=[],m2++;try{const i=e();return s0(n),i}catch(i){n||(J=null),X=null,N2(i)}}function s0(e){if(X&&(O2(X),X=null),e)return;const t=J;J=null,t.length&&g2(()=>w2(t),!1)}function O2(e){for(let t=0;t<e.length;t++)$2(e[t])}function l0(e){let t,n=0;for(t=0;t<e.length;t++){const i=e[t];i.user?e[n++]=i:$2(i)}for(t=0;t<n;t++)$2(e[t])}function y2(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const i=e.sources[n];if(i.sources){const o=i.state;o===W?i!==t&&(!i.updatedAt||i.updatedAt<m2)&&$2(i):o===t2&&y2(i,t)}}}function R2(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=t2,n.pure?X.push(n):J.push(n),n.observers&&R2(n))}}function p2(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),i=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const l=o.pop(),a=n.observerSlots.pop();i<o.length&&(l.sourceSlots[a]=i,o[i]=l,n.observerSlots[i]=a)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)p2(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)p2(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function o0(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function N2(e,t=H){throw o0(e)}const r0=Symbol("fallback");function q2(e){for(let t=0;t<e.length;t++)e[t]()}function c0(e,t,n={}){let i=[],o=[],l=[],a=0,c=t.length>1?[]:null;return D2(()=>q2(l)),()=>{let h=e()||[],d=h.length,f,r;return h[L2],n2(()=>{let v,y,M,k,E,P,B,N,u;if(d===0)a!==0&&(q2(l),l=[],i=[],o=[],a=0,c&&(c=[])),n.fallback&&(i=[r0],o[0]=x2(m=>(l[0]=m,n.fallback())),a=1);else if(a===0){for(o=new Array(d),r=0;r<d;r++)i[r]=h[r],o[r]=x2(g);a=d}else{for(M=new Array(d),k=new Array(d),c&&(E=new Array(d)),P=0,B=Math.min(a,d);P<B&&i[P]===h[P];P++);for(B=a-1,N=d-1;B>=P&&N>=P&&i[B]===h[N];B--,N--)M[N]=o[B],k[N]=l[B],c&&(E[N]=c[B]);for(v=new Map,y=new Array(N+1),r=N;r>=P;r--)u=h[r],f=v.get(u),y[r]=f===void 0?-1:f,v.set(u,r);for(f=P;f<=B;f++)u=i[f],r=v.get(u),r!==void 0&&r!==-1?(M[r]=o[f],k[r]=l[f],c&&(E[r]=c[f]),r=y[r],v.set(u,r)):l[f]();for(r=P;r<d;r++)r in M?(o[r]=M[r],l[r]=k[r],c&&(c[r]=E[r],c[r](r))):o[r]=x2(g);o=o.slice(0,a=d),i=h.slice(0)}return o});function g(v){if(l[r]=v,c){const[y,M]=R(r);return c[r]=M,t(h[r],y)}return t(h[r])}}}function U(e,t){return n2(()=>e(t||{}))}const a0=e=>`Stale read from <${e}>.`;function B2(e){const t="fallback"in e&&{fallback:()=>e.fallback};return f2(c0(()=>e.each,e.children,t||void 0))}function d0(e){const t=e.keyed,n=f2(()=>e.when,void 0,void 0),i=t?n:f2(n,void 0,{equals:(o,l)=>!o==!l});return f2(()=>{const o=i();if(o){const l=e.children;return typeof l=="function"&&l.length>0?n2(()=>l(t?o:()=>{if(!n2(i))throw a0("Show");return n()})):l}return e.fallback},void 0,void 0)}const I=e=>f2(()=>e());function u0(e,t,n){let i=n.length,o=t.length,l=i,a=0,c=0,h=t[o-1].nextSibling,d=null;for(;a<o||c<l;){if(t[a]===n[c]){a++,c++;continue}for(;t[o-1]===n[l-1];)o--,l--;if(o===a){const f=l<i?c?n[c-1].nextSibling:n[l-c]:h;for(;c<l;)e.insertBefore(n[c++],f)}else if(l===c)for(;a<o;)(!d||!d.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[l-1]&&n[c]===t[o-1]){const f=t[--o].nextSibling;e.insertBefore(n[c++],t[a++].nextSibling),e.insertBefore(n[--l],f),t[o]=n[l]}else{if(!d){d=new Map;let r=c;for(;r<l;)d.set(n[r],r++)}const f=d.get(t[a]);if(f!=null)if(c<f&&f<l){let r=a,g=1,v;for(;++r<o&&r<l&&!((v=d.get(t[r]))==null||v!==f+g);)g++;if(g>f-c){const y=t[a];for(;c<f;)e.insertBefore(n[c++],y)}else e.replaceChild(n[c++],t[a++])}else a++;else t[a++].remove()}}}const z2="_$DX_DELEGATE";function h0(e,t,n,i={}){let o;return x2(l=>{o=l,t===document?e():b(t,e(),t.firstChild?null:void 0,n)},i.owner),()=>{o(),t.textContent=""}}function _(e,t,n,i){let o;const l=()=>{const c=document.createElement("template");return c.innerHTML=e,c.content.firstChild},a=()=>(o||(o=l())).cloneNode(!0);return a.cloneNode=a,a}function d2(e,t=window.document){const n=t[z2]||(t[z2]=new Set);for(let i=0,o=e.length;i<o;i++){const l=e[i];n.has(l)||(n.add(l),t.addEventListener(l,f0))}}function L(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function l2(e,t){t==null?e.removeAttribute("class"):e.className=t}function u2(e,t,n,i){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n}function j2(e,t,n){if(!t)return n?L(e,"style"):t;const i=e.style;if(typeof t=="string")return i.cssText=t;typeof n=="string"&&(i.cssText=n=void 0),n||(n={}),t||(t={});let o,l;for(l in n)t[l]==null&&i.removeProperty(l),delete n[l];for(l in t)o=t[l],o!==n[l]&&(i.setProperty(l,o),n[l]=o);return n}function s(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function M2(e,t,n){return n2(()=>e(t,n))}function b(e,t,n,i){if(n!==void 0&&!i&&(i=[]),typeof t!="function")return _2(e,t,i,n);K(o=>_2(e,t(),o,n),i)}function f0(e){let t=e.target;const n=`$$${e.type}`,i=e.target,o=e.currentTarget,l=h=>Object.defineProperty(e,"target",{configurable:!0,value:h}),a=()=>{const h=t[n];if(h&&!t.disabled){const d=t[`${n}Data`];if(d!==void 0?h.call(t,d,e):h.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&l(t.host),!0},c=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const h=e.composedPath();l(h[0]);for(let d=0;d<h.length-2&&(t=h[d],!!a());d++){if(t._$host){t=t._$host,c();break}if(t.parentNode===o)break}}else c();l(i)}function _2(e,t,n,i,o){for(;typeof n=="function";)n=n();if(t===n)return n;const l=typeof t,a=i!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(t=t.toString(),t===n))return n;if(a){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=h2(e,n,i,c)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||l==="boolean")n=h2(e,n,i);else{if(l==="function")return K(()=>{let c=t();for(;typeof c=="function";)c=c();n=_2(e,c,n,i)}),()=>n;if(Array.isArray(t)){const c=[],h=n&&Array.isArray(n);if(E2(c,t,n,o))return K(()=>n=_2(e,c,n,i,!0)),()=>n;if(c.length===0){if(n=h2(e,n,i),a)return n}else h?n.length===0?X2(e,c,i):u0(e,n,c):(n&&h2(e),X2(e,c));n=c}else if(t.nodeType){if(Array.isArray(n)){if(a)return n=h2(e,n,i,t);h2(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function E2(e,t,n,i){let o=!1;for(let l=0,a=t.length;l<a;l++){let c=t[l],h=n&&n[e.length],d;if(!(c==null||c===!0||c===!1))if((d=typeof c)=="object"&&c.nodeType)e.push(c);else if(Array.isArray(c))o=E2(e,c,h)||o;else if(d==="function")if(i){for(;typeof c=="function";)c=c();o=E2(e,Array.isArray(c)?c:[c],Array.isArray(h)?h:[h])||o}else e.push(c),o=!0;else{const f=String(c);h&&h.nodeType===3&&h.data===f?e.push(h):e.push(document.createTextNode(f))}}return o}function X2(e,t,n=null){for(let i=0,o=t.length;i<o;i++)e.insertBefore(t[i],n)}function h2(e,t,n,i){if(n===void 0)return e.textContent="";const o=i||document.createTextNode("");if(t.length){let l=!1;for(let a=t.length-1;a>=0;a--){const c=t[a];if(o!==c){const h=c.parentNode===e;!l&&!a?h?e.replaceChild(o,c):e.insertBefore(o,n):h&&c.remove()}else l=!0}}else e.insertBefore(o,n);return[o]}const V2="data:image/svg+xml,%3csvg%20width='44'%20height='40'%20viewBox='0%200%2044%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M36.4826%2032.6733C35.865%2033.1908%2035.1941%2033.6282%2034.4904%2033.957L33.74%2034.2621L29.7612%2035.8775C27.1272%2036.125%2024.4866%2036.253%2021.8465%2036.2542C21.235%2036.2549%2020.6236%2036.2482%2020.0127%2036.2348V33.2478L36.4826%2032.6733Z'%20fill='%239EACBA'/%3e%3cpath%20d='M0.438355%2018.8047C0.245806%2020.9769%200.245812%2023.1226%200.438355%2025.2946C0.535045%2025.9265%200.94889%2026.5048%201.4516%2026.8841C2.21046%2027.3799%202.95285%2027.8531%203.87299%2027.9711C4.74581%2027.9246%205.47724%2026.84%205.59973%2026.0356C5.89635%2023.3667%205.89636%2020.7328%205.59973%2018.0638C5.47724%2017.2593%204.74582%2016.1747%203.873%2016.1282C2.95286%2016.2462%202.21046%2016.7194%201.45161%2017.2152C0.948896%2017.5945%200.535045%2018.1729%200.438355%2018.8047Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M43.0616%2018.8047C43.2541%2020.9769%2043.2541%2023.1226%2043.0616%2025.2946C42.9649%2025.9265%2042.551%2026.5048%2042.0483%2026.8841C41.2895%2027.3799%2040.5471%2027.8531%2039.6269%2027.9711C38.7541%2027.9246%2038.0227%2026.84%2037.9002%2026.0356C37.6036%2023.3667%2037.6036%2020.7328%2037.9002%2018.0638C38.0227%2017.2593%2038.7541%2016.1747%2039.6269%2016.1282C40.5471%2016.2462%2041.2895%2016.7194%2042.0483%2017.2152C42.551%2017.5945%2042.9649%2018.1729%2043.0616%2018.8047Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M25.8389%208.85439H21.8867V7.22803H21.9359C22.2919%207.22803%2022.6365%207.24805%2022.9641%207.28506C24.6208%207.47311%2025.8389%208.10461%2025.8389%208.85439Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M22.9637%208.85422V11.641H20.9072V3.74219H21.8863V8.85422H22.9637Z'%20fill='%23171A3B'/%3e%3cpath%20d='M25.8393%208.85439C25.8393%209.60419%2024.6212%2010.2357%2022.9645%2010.4237C22.6369%2010.4607%2022.2923%2010.4808%2021.9362%2010.4808C21.5801%2010.4808%2021.2356%2010.4607%2020.908%2010.4237C19.2513%2010.2357%2018.0332%209.60419%2018.0332%208.85439C18.0332%208.104%2019.2513%207.47311%2020.908%207.28506C21.2204%207.24987%2021.5486%207.22985%2021.8871%207.22803V8.85439H25.8393Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M21.8871%208.85499V35.245H21.8465C21.235%2035.2456%2020.6235%2035.2389%2020.0127%2035.2256C17.1712%2035.1637%2014.331%2034.9538%2011.5017%2034.5856C7.74793%2034.0979%204.29685%2030.281%203.74784%2026.4459C3.32624%2023.5019%203.32624%2020.598%203.74784%2017.6541C4.29684%2013.819%207.74793%2010.0021%2011.5017%209.5144C14.9401%209.06731%2018.393%208.85317%2021.8465%208.85499H21.8871Z'%20fill='%23E7E9EB'/%3e%3cpath%20d='M40.114%2026.4452C39.7718%2028.7455%2038.3748%2031.0864%2036.4821%2032.6728C35.8646%2033.1902%2035.1936%2033.6276%2034.49%2033.9564C34.2437%2034.0716%2033.9931%2034.1736%2033.7396%2034.2615C33.2888%2034.4168%2032.8272%2034.5272%2032.3601%2034.5848C28.8781%2035.0149%2025.3827%2035.2406%2021.8867%2035.2442V8.85425C25.3821%208.85789%2028.8787%209.08355%2032.3601%209.51366C36.1382%209.98014%2039.5516%2013.8729%2040.114%2017.6533C40.5489%2020.5785%2040.5489%2023.5206%2040.114%2026.4452Z'%20fill='%23D1D3D4'/%3e%3cpath%20d='M27.1787%2013.3372C28.7256%2013.4409%2030.2804%2013.5888%2031.834%2013.7805C33.5282%2013.9898%2035.5612%2016.263%2035.8623%2018.2854C36.2336%2020.7829%2036.2336%2023.3159%2035.8623%2025.8127C35.6791%2027.0417%2034.8396%2028.4416%2033.7217%2029.3782C33.3772%2029.6675%2033.0233%2029.8974%2032.6709%2030.0618C32.5593%2030.1145%2032.4464%2030.1603%2032.3359%2030.1985C32.1609%2030.259%2031.9925%2030.2992%2031.835%2030.3186C28.467%2030.7347%2025.0907%2030.9456%2021.7998%2030.9456C21.2369%2030.9456%2020.667%2030.9391%2020.1064%2030.927C17.3961%2030.8675%2014.6875%2030.6643%2012.0566%2030.3215C11.6382%2030.2669%2011.1776%2030.0829%2010.7197%2029.7961L27.1787%2013.3372ZM21.7988%2013.1536C22.397%2013.1536%2022.9986%2013.1605%2023.6016%2013.175H23.6006C24.7855%2013.2017%2025.9795%2013.2559%2027.1777%2013.3372L10.7188%2029.7961C10.3196%2029.5462%209.92292%2029.2179%209.55957%2028.8303C9.2952%2028.5484%209.05604%2028.2435%208.84863%2027.927V27.926C8.40193%2027.2445%208.10127%2026.5082%208.00488%2025.8352C7.82534%2024.5778%207.73289%2023.3374%207.73047%2022.0969C7.72805%2020.825%207.8205%2019.5531%208.00488%2018.2629C8.14621%2017.2772%208.72802%2016.1571%209.56152%2015.2678C10.341%2014.4363%2011.2736%2013.8785%2012.0566%2013.7766C13.5174%2013.5867%2014.9995%2013.4403%2016.4912%2013.3372C18.2497%2013.2152%2020.0239%2013.1536%2021.7988%2013.1536Z'%20fill='%2333383F'/%3e%3cpath%20d='M21.8877%200.164557V4.90412C21.5382%204.90412%2021.207%204.8289%2020.9086%204.69301C20.0878%204.32054%2019.5176%203.49371%2019.5176%202.53403C19.5176%201.22554%2020.5786%200.164557%2021.8877%200.164557Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M29.7612%2035.877L20.0127%2039.8352V36.2343C20.6236%2036.2476%2021.235%2036.2543%2021.8465%2036.2537C24.4866%2036.2525%2027.1272%2036.1245%2029.7612%2035.877Z'%20fill='%23D1D3D4'/%3e%3cpath%20d='M24.2562%202.53403C24.2562%203.45488%2023.7309%204.2532%2022.9641%204.64569C22.6414%204.8107%2022.275%204.90411%2021.8867%204.90411V0.164551C23.1952%200.164551%2024.2562%201.22553%2024.2562%202.53403Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M22.9641%204.646V7.28541C22.6365%207.24841%2022.2919%207.22839%2021.9359%207.22839H21.8867V4.90441C22.275%204.90441%2022.6414%204.811%2022.9641%204.646Z'%20fill='%2301052B'/%3e%3cpath%20d='M15.4282%2025.5157C14.6141%2025.6903%2014.1949%2025.6903%2013.3808%2025.5157C12.8325%2025.2805%2012.4157%2024.7097%2012.2918%2024.124C12.0811%2022.4009%2012.0811%2020.7336%2012.2918%2019.0104C12.4157%2018.4248%2012.8325%2017.854%2013.3808%2017.6188C14.1949%2017.4441%2014.6141%2017.4441%2015.4282%2017.6188C15.9765%2017.854%2016.3933%2018.4248%2016.5173%2019.0104C16.7279%2020.7336%2016.7279%2022.4009%2016.5173%2024.124C16.3933%2024.7097%2015.9765%2025.2805%2015.4282%2025.5157Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M29.4946%2025.5157C28.6805%2025.6903%2028.2613%2025.6903%2027.4472%2025.5157C26.8989%2025.2805%2026.4821%2024.7097%2026.3582%2024.124C26.1475%2022.4009%2026.1475%2020.7336%2026.3582%2019.0104C26.4821%2018.4248%2026.8989%2017.854%2027.4472%2017.6188C28.2613%2017.4441%2028.6805%2017.4441%2029.4946%2017.6188C30.0429%2017.854%2030.4597%2018.4248%2030.5837%2019.0104C30.7943%2020.7336%2030.7943%2022.4009%2030.5837%2024.124C30.4597%2024.7097%2030.0429%2025.2805%2029.4946%2025.5157Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M18.9688%2024.187H23.91C24.2911%2024.187%2024.6004%2024.5023%2024.6004%2024.8906V24.9011C24.6004%2026.6789%2023.184%2028.1222%2021.4394%2028.1222C19.6948%2028.1222%2018.2783%2026.6789%2018.2783%2024.9011V24.8906C18.2783%2024.5023%2018.5877%2024.187%2018.9688%2024.187Z'%20fill='%2351D6A1'/%3e%3c/svg%3e",C0="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%23EFEFEF'/%3e%3cpath%20d='M20.667%209.83325L7.33366%209.83325'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M16.5%2014L7.33333%2014'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M11.5%2018.1667H7.33333'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",g0="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.5977%2016.0232C11.8613%2015.7596%2012.2882%2015.7596%2012.5518%2016.0232C12.8152%2016.2868%2012.8153%2016.7137%2012.5518%2016.9773L7.87109%2021.658H11.1221C11.4949%2021.658%2011.7969%2021.9609%2011.7969%2022.3337C11.7967%2022.7064%2011.4948%2023.0085%2011.1221%2023.0085H6.24121C5.86853%2023.0085%205.56658%2022.7064%205.56641%2022.3337V17.4529C5.56641%2017.0801%205.86842%2016.7771%206.24121%2016.7771C6.614%2016.7771%206.91602%2017.0801%206.91602%2017.4529V20.7039L11.5977%2016.0232ZM22.9082%204.99194C23.2808%204.99212%2023.583%205.29406%2023.583%205.66675V10.5476C23.583%2010.9203%2023.2808%2011.2222%2022.9082%2011.2224C22.5354%2011.2224%2022.2324%2010.9204%2022.2324%2010.5476V7.29663L17.5518%2011.9773C17.2882%2012.2408%2016.8613%2012.2407%2016.5977%2011.9773C16.3341%2011.7137%2016.3341%2011.2868%2016.5977%2011.0232L21.2783%206.34155H18.0273C17.6546%206.34155%2017.3516%206.03954%2017.3516%205.66675C17.3516%205.29396%2017.6546%204.99194%2018.0273%204.99194H22.9082Z'%20fill='%23858B93'%20stroke='%23858B93'%20stroke-width='0.1'/%3e%3c/svg%3e",p0="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.0737%2015.8249C12.4464%2015.8249%2012.7493%2016.127%2012.7495%2016.4997V21.3805C12.7495%2021.7533%2012.4465%2022.0563%2012.0737%2022.0563C11.7011%2022.0561%2011.3989%2021.7532%2011.3989%2021.3805V18.1296L6.71826%2022.8102C6.45466%2023.0738%206.02679%2023.0738%205.76318%2022.8102C5.49996%2022.5466%205.49985%2022.1196%205.76318%2021.8561L10.4438%2017.1755H7.19287C6.82019%2017.1753%206.51807%2016.8724%206.51807%2016.4997C6.51824%2016.1271%206.82029%2015.825%207.19287%2015.8249H12.0737ZM22.4302%205.18913C22.6937%204.9258%2023.1207%204.92591%2023.3843%205.18913C23.6479%205.45274%2023.6479%205.88061%2023.3843%206.14421L18.7046%2010.8249H21.9546C22.3273%2010.8249%2022.6302%2011.127%2022.6304%2011.4997C22.6304%2011.8725%2022.3274%2012.1755%2021.9546%2012.1755H17.0737C16.7011%2012.1753%2016.3989%2011.8724%2016.3989%2011.4997V6.61882C16.3991%206.24624%2016.7012%205.94419%2017.0737%205.94402C17.4464%205.94402%2017.7494%206.24613%2017.7495%206.61882V9.8698L22.4302%205.18913Z'%20fill='%23858B93'%20stroke='%23858B93'%20stroke-width='0.1'/%3e%3c/svg%3e",v0="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.55273%2013.6665C5.55273%2013.3904%205.95149%2013.1665%206.44338%2013.1665L20.6139%2013.1665C21.1058%2013.1665%2021.5046%2013.3904%2021.5046%2013.6665C21.5046%2013.9426%2021.1058%2014.1665%2020.6139%2014.1665H6.44338C5.95149%2014.1665%205.55273%2013.9426%205.55273%2013.6665Z'%20stroke='%23858B93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",K2="data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.2391%208.55011C9.85199%208.16298%209.22434%208.16298%208.83722%208.55011C8.45009%208.93723%208.45009%209.56488%208.83722%209.95201L15.885%2016.9998L8.83728%2024.0476C8.45016%2024.4347%208.45016%2025.0624%208.83728%2025.4495C9.22441%2025.8366%209.85206%2025.8366%2010.2392%2025.4495L17.2869%2018.4017L24.3346%2025.4494C24.7217%2025.8365%2025.3494%2025.8365%2025.7365%2025.4494C26.1236%2025.0623%2026.1236%2024.4346%2025.7365%2024.0475L18.6888%2016.9998L25.7366%209.95207C26.1237%209.56495%2026.1237%208.9373%2025.7366%208.55017C25.3495%208.16305%2024.7218%208.16305%2024.3347%208.55017L17.2869%2015.5979L10.2391%208.55011Z'%20fill='%23858B93'/%3e%3c/svg%3e",w0="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.9912%202.92969C11.4392%202.92969%2010.9912%203.37769%2010.9912%203.92969V10.9297H3.99121C3.43921%2010.9297%202.99121%2011.3777%202.99121%2011.9297C2.99121%2012.4817%203.43921%2012.9297%203.99121%2012.9297H10.9912V19.9297C10.9912%2020.4817%2011.4392%2020.9297%2011.9912%2020.9297C12.5432%2020.9297%2012.9912%2020.4817%2012.9912%2019.9297V12.9297H19.9912C20.5432%2012.9297%2020.9912%2012.4817%2020.9912%2011.9297C20.9912%2011.3777%2020.5432%2010.9297%2019.9912%2010.9297H12.9912V3.92969C12.9912%203.37769%2012.5432%202.92969%2011.9912%202.92969Z'%20fill='%23858B93'/%3e%3c/svg%3e",m0="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.6464%2010.3132C15.8417%2010.1179%2016.1583%2010.1179%2016.3536%2010.3132L20.3536%2014.3132C20.5488%2014.5085%2020.5488%2014.825%2020.3536%2015.0203C20.1583%2015.2156%2019.8417%2015.2156%2019.6464%2015.0203L16.5%2011.8739L16.5%2021.3334C16.5%2021.6096%2016.2761%2021.8334%2016%2021.8334C15.7239%2021.8334%2015.5%2021.6096%2015.5%2021.3334L15.5%2011.8739L12.3536%2015.0203C12.1583%2015.2156%2011.8417%2015.2156%2011.6464%2015.0203C11.4512%2014.825%2011.4512%2014.5085%2011.6464%2014.3132L15.6464%2010.3132Z'%20fill='%23858B93'/%3e%3c/svg%3e",x0="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%231AAF74'%20fill-opacity='0.1'/%3e%3cpath%20d='M20.667%209.83325L7.33366%209.83325'%20stroke='%231AAF74'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M16.5%2014L7.33333%2014'%20stroke='%231AAF74'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M11.5%2018.1667H7.33333'%20stroke='%231AAF74'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",b0="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='6.5'%20r='4'%20stroke='%23858B93'%20stroke-width='1.3'/%3e%3cellipse%20cx='12'%20cy='17.5'%20rx='7'%20ry='4'%20stroke='%23858B93'%20stroke-width='1.3'/%3e%3c/svg%3e",$0="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2012.5C2%207.78595%202%205.42893%203.46447%203.96447C4.92893%202.5%207.28595%202.5%2012%202.5C16.714%202.5%2019.0711%202.5%2020.5355%203.96447C22%205.42893%2022%207.78595%2022%2012.5C22%2017.214%2022%2019.5711%2020.5355%2021.0355C19.0711%2022.5%2016.714%2022.5%2012%2022.5C7.28595%2022.5%204.92893%2022.5%203.46447%2021.0355C2%2019.5711%202%2017.214%202%2012.5Z'%20stroke='%23858B93'%20stroke-width='1.3'/%3e%3cpath%20d='M7%2014.5L8.79689%2012.3437C9.50894%2011.4893%209.86496%2011.062%2010.3333%2011.062C10.8017%2011.062%2011.1577%2011.4893%2011.8698%2012.3437L12.1302%2012.6563C12.8423%2013.5107%2013.1983%2013.938%2013.6667%2013.938C14.135%2013.938%2014.4911%2013.5107%2015.2031%2012.6563L17%2010.5'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",y0="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%2011V12.5C22%2017.214%2022%2019.5711%2020.5355%2021.0355C19.0711%2022.5%2016.714%2022.5%2012%2022.5C7.28595%2022.5%204.92893%2022.5%203.46447%2021.0355C2%2019.5711%202%2017.214%202%2012.5C2%207.78595%202%205.42893%203.46447%203.96447C4.92893%202.5%207.28595%202.5%2012%202.5H13.5'%20stroke='%23858B93'%20stroke-width='1.3'%20stroke-linecap='round'/%3e%3cpath%20d='M16.652%203.95506L17.3009%203.30624C18.3759%202.23125%2020.1188%202.23125%2021.1938%203.30624C22.2687%204.38124%2022.2687%206.12415%2021.1938%207.19914L20.5449%207.84795M16.652%203.95506C16.652%203.95506%2016.7331%205.33379%2017.9497%206.55032C19.1662%207.76685%2020.5449%207.84795%2020.5449%207.84795M16.652%203.95506L10.6872%209.91993C10.2832%2010.3239%2010.0812%2010.5259%209.90743%2010.7487C9.70249%2011.0114%209.52679%2011.2957%209.38344%2011.5965C9.26191%2011.8515%209.17157%2012.1225%208.99089%2012.6646L8.41242%2014.4M20.5449%207.84795L14.5801%2013.8128C14.1761%2014.2168%2013.9741%2014.4188%2013.7513%2014.5926C13.4886%2014.7975%2013.2043%2014.9732%2012.9035%2015.1166C12.6485%2015.2381%2012.3775%2015.3284%2011.8354%2015.5091L10.1%2016.0876M10.1%2016.0876L8.97709%2016.4619C8.71035%2016.5508%208.41626%2016.4814%208.21744%2016.2826C8.01862%2016.0837%207.9492%2015.7897%208.03811%2015.5229L8.41242%2014.4M10.1%2016.0876L8.41242%2014.4'%20stroke='%23858B93'%20stroke-width='1.5'/%3e%3c/svg%3e",M0="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.58366%202.79175C5.55658%202.79175%202.29199%206.05634%202.29199%2010.0834C2.29199%2014.1105%205.55658%2017.3751%209.58366%2017.3751C13.6107%2017.3751%2016.8753%2014.1105%2016.8753%2010.0834C16.8753%206.05634%2013.6107%202.79175%209.58366%202.79175ZM1.04199%2010.0834C1.04199%205.36598%204.86623%201.54175%209.58366%201.54175C14.3011%201.54175%2018.1253%205.36598%2018.1253%2010.0834C18.1253%2012.2172%2017.3429%2014.1682%2016.0494%2015.6653L18.7756%2018.3915C19.0197%2018.6356%2019.0197%2019.0313%2018.7756%2019.2754C18.5315%2019.5194%2018.1358%2019.5194%2017.8917%2019.2754L15.1655%2016.5491C13.6684%2017.8427%2011.7174%2018.6251%209.58366%2018.6251C4.86623%2018.6251%201.04199%2014.8008%201.04199%2010.0834Z'%20fill='%23858B93'/%3e%3c/svg%3e",_0="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%2012.5C17%2011.3954%2017.8954%2010.5%2019%2010.5C20.1046%2010.5%2021%2011.3954%2021%2012.5C21%2013.6046%2020.1046%2014.5%2019%2014.5C17.8954%2014.5%2017%2013.6046%2017%2012.5Z'%20fill='%23858B93'/%3e%3cpath%20d='M10%2012.5C10%2011.3954%2010.8954%2010.5%2012%2010.5C13.1046%2010.5%2014%2011.3954%2014%2012.5C14%2013.6046%2013.1046%2014.5%2012%2014.5C10.8954%2014.5%2010%2013.6046%2010%2012.5Z'%20fill='%23858B93'/%3e%3cpath%20d='M3%2012.5C3%2011.3954%203.89543%2010.5%205%2010.5C6.10457%2010.5%207%2011.3954%207%2012.5C7%2013.6046%206.10457%2014.5%205%2014.5C3.89543%2014.5%203%2013.6046%203%2012.5Z'%20fill='%23858B93'/%3e%3c/svg%3e",k0="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%208.5C7%205.73858%209.23858%203.5%2012%203.5C14.7614%203.5%2017%205.73858%2017%208.5V11.5C17%2014.2614%2014.7614%2016.5%2012%2016.5C9.23858%2016.5%207%2014.2614%207%2011.5V8.5Z'%20stroke='%23858B93'%20stroke-width='1.5'/%3e%3cpath%20d='M11%208.5H13'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M10%2011.5L14%2011.5'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M20%2010.5V11.5C20%2015.9183%2016.4183%2019.5%2012%2019.5C7.58172%2019.5%204%2015.9183%204%2011.5V10.5'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12%2019.5V22.5'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",S0="data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.25%202.49258C13.5179%201.2247%2015.5735%201.2247%2016.8414%202.49258C18.1093%203.76046%2018.1093%205.8161%2016.8414%207.08398L10.5131%2013.4123C10.1564%2013.769%209.9386%2013.9869%209.69583%2014.1762C9.40981%2014.3993%209.10033%2014.5906%208.77287%2014.7466C8.49494%2014.8791%208.20269%2014.9765%207.72413%2015.136L5.49692%2015.8784L4.9622%2016.0566C4.48358%2016.2162%203.95589%2016.0916%203.59915%2015.7349C3.2424%2015.3781%203.11783%2014.8504%203.27737%2014.3718L4.19801%2011.6099C4.3575%2011.1313%204.4549%2010.8391%204.58736%2010.5611C4.74342%2010.2337%204.93469%209.9242%205.15778%209.63817C5.34714%209.3954%205.56498%209.17759%205.92169%208.82091L12.25%202.49258ZM5.46809%2014.5704L4.76362%2013.8659L5.37064%2012.0449C5.54737%2011.5147%205.62037%2011.2991%205.71577%2011.0989C5.83276%2010.8534%205.97616%2010.6214%206.14342%2010.4069C6.27979%2010.2321%206.43997%2010.0704%206.83516%209.67521L11.7443%204.76607C11.9469%205.27439%2012.2898%205.88791%2012.8679%206.46606C13.4461%207.04422%2014.0596%207.38707%2014.5679%207.5897L9.65879%2012.4988C9.2636%2012.894%209.1019%2013.0542%208.92706%2013.1906C8.71262%2013.3578%208.4806%2013.5012%208.2351%2013.6182C8.03493%2013.7136%207.81935%2013.7866%207.28915%2013.9634L5.46809%2014.5704ZM15.564%206.59368C15.4608%206.57102%2015.3317%206.53694%2015.1851%206.48604C14.7817%206.34611%2014.2511%206.08149%2013.7518%205.58218C13.2525%205.08287%2012.9879%204.5523%2012.848%204.14895C12.7971%204.00226%2012.763%203.87323%2012.7403%203.77004L13.1339%203.37647C13.9136%202.59674%2015.1778%202.59674%2015.9575%203.37647C16.7373%204.15619%2016.7373%205.42038%2015.9575%206.2001L15.564%206.59368ZM3.209%2018.8333C3.209%2018.4882%203.48882%2018.2083%203.834%2018.2083H17.1673V19.4583H3.834C3.48882%2019.4583%203.209%2019.1785%203.209%2018.8333Z'%20fill='%23858B93'/%3e%3c/svg%3e",L0="data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.4994%202.79166C9.68396%202.79166%208.9886%203.31251%208.7309%204.0416C8.61587%204.36705%208.2588%204.53763%207.93335%204.4226C7.6079%204.30757%207.43733%203.95049%207.55235%203.62504C7.98105%202.41215%209.13775%201.54166%2010.4994%201.54166C11.861%201.54166%2013.0177%202.41215%2013.4464%203.62504C13.5614%203.95049%2013.3908%204.30757%2013.0654%204.4226C12.74%204.53763%2012.3829%204.36705%2012.2678%204.0416C12.0101%203.31251%2011.3148%202.79166%2010.4994%202.79166Z'%20fill='%23858B93'/%3e%3cpath%20d='M2.79102%205.49999C2.79102%205.15481%203.07084%204.87499%203.41602%204.87499H17.5828C17.9279%204.87499%2018.2078%205.15481%2018.2078%205.49999C18.2078%205.84517%2017.9279%206.12499%2017.5828%206.12499H3.41602C3.07084%206.12499%202.79102%205.84517%202.79102%205.49999Z'%20fill='%23858B93'/%3e%3cpath%20d='M5.42859%207.54175C5.40563%207.19733%205.10781%206.93675%204.7634%206.95971C4.41898%206.98267%204.15839%207.28048%204.18135%207.6249L4.56756%2013.418C4.63881%2014.487%204.69636%2015.3504%204.83134%2016.028C4.97167%2016.7324%205.21035%2017.3208%205.70335%2017.782C6.19634%2018.2432%206.7993%2018.4422%207.51151%2018.5354C8.19654%2018.625%209.06191%2018.625%2010.1332%2018.625H10.8656C11.9369%2018.625%2012.8023%2018.625%2013.4873%2018.5354C14.1995%2018.4422%2014.8025%2018.2432%2015.2955%2017.782C15.7885%2017.3208%2016.0272%2016.7324%2016.1675%2016.028C16.3025%2015.3504%2016.36%2014.487%2016.4313%2013.418L16.8175%207.6249C16.8404%207.28048%2016.5798%206.98267%2016.2354%206.95971C15.891%206.93675%2015.5932%207.19733%2015.5702%207.54175L15.187%2013.291C15.1121%2014.4142%2015.0587%2015.1957%2014.9416%2015.7837C14.828%2016.3541%2014.6693%2016.656%2014.4415%2016.8692C14.2137%2017.0824%2013.9019%2017.2205%2013.3252%2017.296C12.7307%2017.3737%2011.9474%2017.375%2010.8216%2017.375H10.1772C9.05148%2017.375%208.26814%2017.3737%207.67364%2017.296C7.09697%2017.2205%206.78517%2017.0824%206.55733%2016.8692C6.32948%2016.656%206.17087%2016.3541%206.05725%2015.7837C5.94011%2015.1957%205.88675%2014.4142%205.81187%2013.291L5.42859%207.54175Z'%20fill='%23858B93'/%3e%3cpath%20d='M8.3539%209.04476C8.69736%209.01041%209.00364%209.261%209.03799%209.60447L9.45465%2013.7711C9.489%2014.1146%209.23841%2014.4209%208.89494%2014.4552C8.55148%2014.4896%208.2452%2014.239%208.21086%2013.8955L7.79419%209.72885C7.75984%209.38538%208.01043%209.0791%208.3539%209.04476Z'%20fill='%23858B93'/%3e%3cpath%20d='M13.2047%209.72885C13.239%209.38538%2012.9884%209.0791%2012.6449%209.04476C12.3015%209.01041%2011.9952%209.261%2011.9609%209.60447L11.5442%2013.7711C11.5098%2014.1146%2011.7604%2014.4209%2012.1039%2014.4552C12.4474%2014.4896%2012.7536%2014.239%2012.788%2013.8955L13.2047%209.72885Z'%20fill='%23858B93'/%3e%3c/svg%3e",A0="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='white'/%3e%3cpath%20d='M16%2022.6666L16%209.33331M16%209.33331L21%2014.3333M16%209.33331L11%2014.3333'%20stroke='%231AAF74'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",H0="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2361_172518)'%3e%3cpath%20d='M15.6005%2011.6509C15.9284%2011.2327%2016.0856%2010.7843%2016.0656%2010.3226C16.0455%209.81401%2015.818%209.41585%2015.6306%209.1716C15.8481%208.62956%2015.9317%207.77636%2015.2057%207.11388C14.6737%206.62873%2013.7703%206.41125%2012.5189%206.47147C11.639%206.51162%2010.9029%206.67557%2010.8728%206.68226H10.8694C10.7021%206.71238%2010.5248%206.74918%2010.3441%206.78933C10.3307%206.57519%2010.3675%206.0432%2010.7623%204.84537C11.2308%203.42003%2011.204%202.32927%2010.6754%201.59987C10.1199%200.833663%209.23328%200.773438%208.9723%200.773438C8.72136%200.773438%208.49049%200.87716%208.32655%201.06787C7.95515%201.49949%207.99865%202.29581%208.04549%202.66386C7.60384%203.8483%206.36586%206.75253%205.3186%207.55888C5.29852%207.57227%205.2818%207.589%205.26507%207.60572C4.95724%207.93028%204.7498%208.28159%204.60927%208.58941C4.41187%208.48235%204.18769%208.42212%203.94679%208.42212H1.9058C1.13625%208.42212%200.513916%209.0478%200.513916%209.81401V15.2511C0.513916%2016.0206%201.1396%2016.6429%201.9058%2016.6429H3.94679C4.24457%2016.6429%204.52228%2016.5493%204.7498%2016.3887L5.53608%2016.4823C5.65653%2016.4991%207.7979%2016.7701%209.99614%2016.7266C10.3943%2016.7567%2010.769%2016.7734%2011.117%2016.7734C11.7159%2016.7734%2012.2379%2016.7266%2012.6728%2016.6329C13.6967%2016.4154%2014.396%2015.9805%2014.7506%2015.3414C15.0217%2014.8529%2015.0217%2014.3677%2014.9782%2014.0599C15.644%2013.4577%2015.7611%2012.7918%2015.7377%2012.3234C15.7243%2012.0524%2015.6641%2011.8215%2015.6005%2011.6509ZM1.9058%2015.7396C1.63479%2015.7396%201.4173%2015.5187%201.4173%2015.2511V9.81066C1.4173%209.53964%201.63813%209.32216%201.9058%209.32216H3.94679C4.21781%209.32216%204.43529%209.54299%204.43529%209.81066V15.2477C4.43529%2015.5187%204.21446%2015.7362%203.94679%2015.7362H1.9058V15.7396ZM14.7439%2011.2594C14.6034%2011.4066%2014.5767%2011.6308%2014.6837%2011.8048C14.6837%2011.8082%2014.8209%2012.0424%2014.8376%2012.3636C14.8611%2012.8019%2014.6503%2013.19%2014.2086%2013.5212C14.0513%2013.6417%2013.9878%2013.8491%2014.0547%2014.0365C14.0547%2014.0399%2014.1986%2014.4815%2013.9644%2014.8997C13.7402%2015.3013%2013.2416%2015.589%2012.4855%2015.7496C11.8799%2015.8801%2011.0568%2015.9035%2010.0463%2015.8232C10.0329%2015.8232%2010.0162%2015.8232%209.99949%2015.8232C7.84809%2015.87%205.67326%2015.589%205.64984%2015.5856H5.6465L5.30856%2015.5455C5.32864%2015.4518%205.33868%2015.3514%205.33868%2015.2511V9.81066C5.33868%209.66679%205.31525%209.52626%205.2751%209.39577C5.33533%209.1716%205.50262%208.67306%205.89744%208.24813C7.39974%207.057%208.86858%203.0386%208.93215%202.86461C8.95892%202.79435%208.96561%202.71739%208.95223%202.64044C8.89535%202.2657%208.91542%201.80731%208.99572%201.67013C9.17305%201.67348%209.65152%201.72367%209.93926%202.12183C10.2805%202.5936%2010.2672%203.43676%209.89911%204.55428C9.337%206.25734%209.29016%207.15403%209.73516%207.54885C9.95599%207.74625%2010.2504%207.75629%2010.4646%207.67933C10.6687%207.63249%2010.8627%207.59234%2011.0467%207.56223C11.0601%207.55888%2011.0769%207.55554%2011.0902%207.55219C12.1174%207.32802%2013.9577%207.19084%2014.5967%207.77302C15.1388%208.26821%2014.754%208.924%2014.7105%208.99427C14.5867%209.18163%2014.6235%209.42588%2014.7908%209.57645C14.7941%209.57979%2015.1455%209.91104%2015.1622%2010.356C15.1756%2010.6538%2015.035%2010.9583%2014.7439%2011.2594Z'%20fill='%23858B93'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2361_172518'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(0.290527%200.773438)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",B0="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2361_172521)'%3e%3cpath%20d='M0.980564%205.89598C0.652667%206.31422%200.495411%206.76256%200.515487%207.2243C0.535562%207.73287%200.763082%208.13103%200.950451%208.37528C0.732968%208.91731%200.649323%209.77051%201.37538%2010.433C1.90737%2010.9181%202.81076%2011.1356%204.06212%2011.0754C4.94209%2011.0353%205.67818%2010.8713%205.70829%2010.8646H5.71164C5.87893%2010.8345%206.05626%2010.7977%206.23694%2010.7575C6.25033%2010.9717%206.21352%2011.5037%205.81871%2012.7015C5.35028%2014.1268%205.37705%2015.2176%205.9057%2015.947C6.46112%2016.7132%207.34777%2016.7734%207.60875%2016.7734C7.85969%2016.7734%208.09056%2016.6697%208.25451%2016.479C8.6259%2016.0474%208.5824%2015.2511%208.53556%2014.883C8.97722%2013.6986%2010.2152%2010.7943%2011.2625%209.98799C11.2825%209.97461%2011.2993%209.95788%2011.316%209.94115C11.6238%209.6166%2011.8313%209.26528%2011.9718%208.95746C12.1692%209.06453%2012.3934%209.12475%2012.6343%209.12475H14.6753C15.4448%209.12475%2016.0671%208.49907%2016.0671%207.73287V2.29581C16.0671%201.52626%2015.4415%200.903928%2014.6753%200.903928H12.6343C12.3365%200.903928%2012.0588%200.997612%2011.8313%201.15821L11.045%201.06453C10.9245%201.0478%208.78316%200.776784%206.58491%200.820281C6.18675%200.790168%205.81201%200.773438%205.46404%200.773438C4.86513%200.773438%204.34317%200.82028%203.90821%200.913965C2.88437%201.13145%202.18508%201.56641%201.83042%202.20547C1.5594%202.69397%201.5594%203.17913%201.6029%203.48695C0.937067%204.0892%200.819963%204.75504%200.843384%205.22346C0.856767%205.49447%200.916992%205.72534%200.980564%205.89598ZM14.6753%201.80732C14.9463%201.80732%2015.1638%202.02814%2015.1638%202.29581V7.73621C15.1638%208.00723%2014.9429%208.22471%2014.6753%208.22471H12.6343C12.3632%208.22471%2012.1458%208.00389%2012.1458%207.73621V2.29916C12.1458%202.02814%2012.3666%201.81066%2012.6343%201.81066H14.6753V1.80732ZM1.83711%206.28745C1.97764%206.14023%202.0044%205.91606%201.89734%205.74207C1.89734%205.73872%201.76015%205.50451%201.74343%205.18331C1.72%204.745%201.93079%204.35688%202.37245%204.02563C2.52971%203.90518%202.59328%203.69774%202.52636%203.51037C2.52636%203.50702%202.38249%203.06537%202.6167%202.64713C2.84087%202.24562%203.33941%201.95788%204.09558%201.79728C4.70118%201.66679%205.52427%201.64337%206.53473%201.72367C6.54811%201.72367%206.56484%201.72367%206.58157%201.72367C8.73297%201.67683%2010.9078%201.95788%2010.9312%201.96123H10.9346L11.2725%202.00138C11.2524%202.09506%2011.2424%202.19544%2011.2424%202.29581V7.73621C11.2424%207.88009%2011.2658%208.02061%2011.306%208.1511C11.2457%208.37528%2011.0784%208.87381%2010.6836%209.29874C9.18132%2010.4899%207.71248%2014.5083%207.6489%2014.6823C7.62214%2014.7525%207.61545%2014.8295%207.62883%2014.9064C7.68571%2015.2812%207.66563%2015.7396%207.58533%2015.8767C7.408%2015.8734%206.92954%2015.8232%206.64179%2015.425C6.30051%2014.9533%206.3139%2014.1101%206.68194%2012.9926C7.24405%2011.2895%207.29089%2010.3928%206.84589%209.99803C6.62506%209.80062%206.33063%209.79059%206.11649%209.86754C5.91239%209.91438%205.71833%209.95453%205.53431%209.98465C5.52092%209.98799%205.50419%209.99134%205.49081%209.99468C4.46363%2010.2189%202.62339%2010.356%201.98433%209.77386C1.4423%209.27867%201.82707%208.62287%201.87057%208.55261C1.99437%208.36524%201.95756%208.12099%201.79027%207.97043C1.78692%207.96708%201.4356%207.63584%201.41887%207.19084C1.40549%206.89305%201.54602%206.58858%201.83711%206.28745Z'%20fill='%23858B93'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2361_172521'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='matrix(-1%200%200%20-1%2016.2905%2016.7734)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",E0="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2361_92626)'%3e%3cpath%20d='M15.3092%2011.4575C15.6371%2011.0393%2015.7944%2010.591%2015.7743%2010.1292C15.7542%209.62065%2015.5267%209.22249%2015.3393%208.97824C15.5568%208.4362%2015.6405%207.58301%2014.9144%206.92052C14.3824%206.43537%2013.479%206.21789%2012.2277%206.27811C11.3477%206.31826%2010.6116%206.48221%2010.5815%206.4889H10.5782C10.4109%206.51902%2010.2335%206.55582%2010.0529%206.59597C10.0395%206.38183%2010.0763%205.84984%2010.4711%204.65201C10.9395%203.22667%2010.9127%202.13591%2010.3841%201.40651C9.82868%200.640304%208.94202%200.580078%208.68104%200.580078C8.4301%200.580078%208.19923%200.6838%208.03529%200.874516C7.66389%201.30613%207.70739%202.10245%207.75423%202.4705C7.31258%203.65494%206.0746%206.55917%205.02734%207.36552C5.00726%207.37891%204.99054%207.39564%204.97381%207.41237C4.66599%207.73692%204.45854%208.08823%204.31801%208.39605C4.12061%208.28899%203.89643%208.22876%203.65553%208.22876H1.61454C0.84499%208.22876%200.222656%208.85444%200.222656%209.62065V15.0577C0.222656%2015.8273%200.848336%2016.4496%201.61454%2016.4496H3.65553C3.95331%2016.4496%204.23102%2016.3559%204.45854%2016.1953L5.24482%2016.289C5.36527%2016.3057%207.50664%2016.5767%209.70488%2016.5332C10.103%2016.5633%2010.4778%2016.5801%2010.8258%2016.5801C11.4247%2016.5801%2011.9466%2016.5332%2012.3816%2016.4396C13.4054%2016.2221%2014.1047%2015.7871%2014.4594%2015.148C14.7304%2014.6595%2014.7304%2014.1744%2014.6869%2013.8666C15.3527%2013.2643%2015.4698%2012.5985%2015.4464%2012.1301C15.433%2011.859%2015.3728%2011.6282%2015.3092%2011.4575ZM1.61454%2015.5462C1.34353%2015.5462%201.12604%2015.3254%201.12604%2015.0577V9.6173C1.12604%209.34628%201.34687%209.1288%201.61454%209.1288H3.65553C3.92655%209.1288%204.14403%209.34963%204.14403%209.6173V15.0544C4.14403%2015.3254%203.9232%2015.5429%203.65553%2015.5429H1.61454V15.5462ZM14.4527%2011.0661C14.3122%2011.2133%2014.2854%2011.4375%2014.3925%2011.6114C14.3925%2011.6148%2014.5296%2011.849%2014.5464%2012.1702C14.5698%2012.6085%2014.359%2012.9966%2013.9173%2013.3279C13.7601%2013.4483%2013.6965%2013.6558%2013.7634%2013.8431C13.7634%2013.8465%2013.9073%2014.2881%2013.6731%2014.7064C13.4489%2015.1079%2012.9504%2015.3956%2012.1942%2015.5562C11.5886%2015.6867%2010.7655%2015.7101%209.75507%2015.6298C9.74169%2015.6298%209.72496%2015.6298%209.70823%2015.6298C7.55683%2015.6767%205.382%2015.3956%205.35858%2015.3923H5.35524L5.0173%2015.3521C5.03738%2015.2585%205.04742%2015.1581%205.04742%2015.0577V9.6173C5.04742%209.47343%205.02399%209.3329%204.98384%209.20241C5.04407%208.97824%205.21136%208.4797%205.60618%208.05477C7.10848%206.86364%208.57732%202.84524%208.64089%202.67125C8.66766%202.60099%208.67435%202.52403%208.66097%202.44708C8.60409%202.07234%208.62416%201.61396%208.70446%201.47677C8.88179%201.48012%209.36026%201.53031%209.648%201.92847C9.98928%202.40024%209.9759%203.2434%209.60785%204.36092C9.04574%206.06398%208.9989%206.96067%209.4439%207.35549C9.66473%207.55289%209.95917%207.56293%2010.1733%207.48597C10.3774%207.43913%2010.5715%207.39898%2010.7555%207.36887C10.7689%207.36552%2010.7856%207.36218%2010.799%207.35883C11.8262%207.13466%2013.6664%206.99748%2014.3055%207.57966C14.8475%208.07485%2014.4627%208.73064%2014.4192%208.80091C14.2954%208.98828%2014.3322%209.23252%2014.4995%209.38309C14.5029%209.38644%2014.8542%209.71768%2014.8709%2010.1627C14.8843%2010.4605%2014.7438%2010.7649%2014.4527%2011.0661Z'%20fill='%231AAF74'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2361_92626'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(0%200.580078)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",V0="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2361_214893)'%3e%3cpath%20d='M0.784519%205.70262C0.456622%206.12086%200.299366%206.5692%200.319442%207.03094C0.339517%207.53951%200.567037%207.93767%200.754406%208.18192C0.536923%208.72395%200.453278%209.57715%201.17933%2010.2396C1.71133%2010.7248%202.61472%2010.9423%203.86607%2010.882C4.74604%2010.8419%205.48213%2010.6779%205.51225%2010.6713H5.51559C5.68289%2010.6411%205.86022%2010.6043%206.0409%2010.5642C6.05428%2010.7783%206.01748%2011.3103%205.62266%2012.5081C5.15424%2013.9335%205.18101%2015.0242%205.70965%2015.7536C6.26507%2016.5199%207.15173%2016.5801%207.41271%2016.5801C7.66365%2016.5801%207.89452%2016.4764%208.05846%2016.2856C8.42986%2015.854%208.38636%2015.0577%208.33952%2014.6897C8.78117%2013.5052%2010.0191%2010.601%2011.0664%209.79463C11.0865%209.78125%2011.1032%209.76452%2011.1199%209.74779C11.4278%209.42324%2011.6352%209.07192%2011.7757%208.7641C11.9731%208.87117%2012.1973%208.9314%2012.4382%208.9314H14.4792C15.2488%208.9314%2015.8711%208.30572%2015.8711%207.53951V2.10245C15.8711%201.3329%2015.2454%200.710568%2014.4792%200.710568H12.4382C12.1404%200.710568%2011.8627%200.804253%2011.6352%200.964854L10.8489%200.87117C10.7285%200.854441%208.58711%200.583425%206.38887%200.626922C5.99071%200.596808%205.61597%200.580078%205.268%200.580078C4.66909%200.580078%204.14713%200.626921%203.71216%200.720606C2.68832%200.938087%201.98904%201.37305%201.63437%202.01212C1.36336%202.50061%201.36336%202.98577%201.40685%203.29359C0.741022%203.89585%200.623918%204.56168%200.647339%205.0301C0.660722%205.30112%200.720947%205.53198%200.784519%205.70262ZM14.4792%201.61396C14.7502%201.61396%2014.9677%201.83478%2014.9677%202.10245V7.54286C14.9677%207.81387%2014.7469%208.03135%2014.4792%208.03135H12.4382C12.1672%208.03135%2011.9497%207.81053%2011.9497%207.54286V2.1058C11.9497%201.83478%2012.1706%201.6173%2012.4382%201.6173H14.4792V1.61396ZM1.64106%206.09409C1.78159%205.94687%201.80836%205.7227%201.70129%205.54871C1.70129%205.54536%201.56411%205.31115%201.54738%204.98995C1.52396%204.55164%201.73475%204.16352%202.1764%203.83227C2.33366%203.71182%202.39723%203.50438%202.33032%203.31701C2.33032%203.31366%202.18644%202.87201%202.42066%202.45377C2.64483%202.05227%203.14336%201.76452%203.89953%201.60392C4.50514%201.47343%205.32822%201.45001%206.33868%201.53031C6.35206%201.53031%206.36879%201.53031%206.38552%201.53031C8.53692%201.48347%2010.7117%201.76452%2010.7352%201.76787H10.7385L11.0764%201.80802C11.0564%201.9017%2011.0463%202.00208%2011.0463%202.10245V7.54286C11.0463%207.68673%2011.0698%207.82726%2011.1099%207.95774C11.0497%208.18192%2010.8824%208.68046%2010.4876%209.10538C8.98527%2010.2965%207.51643%2014.3149%207.45286%2014.4889C7.42609%2014.5592%207.4194%2014.6361%207.43278%2014.7131C7.48966%2015.0878%207.46959%2015.5462%207.38929%2015.6834C7.21196%2015.68%206.73349%2015.6298%206.44575%2015.2317C6.10447%2014.7599%206.11785%2013.9168%206.4859%2012.7992C7.04801%2011.0962%207.09485%2010.1995%206.64985%209.80467C6.42902%209.60726%206.13458%209.59723%205.92045%209.67418C5.71635%209.72102%205.52229%209.76117%205.33826%209.79129C5.32488%209.79463%205.30815%209.79798%205.29477%209.80132C4.26758%2010.0255%202.42735%2010.1627%201.78828%209.5805C1.24625%209.08531%201.63103%208.42951%201.67452%208.35925C1.79832%208.17188%201.76152%207.92763%201.59422%207.77707C1.59088%207.77372%201.23956%207.44248%201.22283%206.99748C1.20945%206.69969%201.34997%206.39522%201.64106%206.09409Z'%20fill='%23F34859'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2361_214893'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='matrix(-1%200%200%20-1%2016.0938%2016.5801)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Z0="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22%2012.123C22%2017.6459%2017.5228%2022.123%2012%2022.123C6.47715%2022.123%202%2017.6459%202%2012.123C2%206.6002%206.47715%202.12305%2012%202.12305C17.5228%202.12305%2022%206.6002%2022%2012.123ZM16.0303%209.09272C16.3232%209.38561%2016.3232%209.86048%2016.0303%2010.1534L11.0303%2015.1534C10.7374%2015.4463%2010.2626%2015.4463%209.96967%2015.1534L7.96967%2013.1534C7.67678%2012.8605%207.67678%2012.3856%207.96967%2012.0927C8.26256%2011.7998%208.73744%2011.7998%209.03033%2012.0927L10.5%2013.5624L14.9697%209.09272C15.2626%208.79982%2015.7374%208.79982%2016.0303%209.09272Z'%20fill='%231AAF74'/%3e%3c/svg%3e";var T0=_("<div class=survey-message><div style=flex-direction:column;align-items:flex-start><div style=font-weight:600;font-size:16px;margin-bottom:8px>12.1 Anh/chị xây dựng danh mục đầu tư dựa vào đâu?</div><div style=font-weight:400;font-size:12px;margin-bottom:16px>Bạn có thể chọn <!> đáp án hoặc nhập trực tiếp A, B, C, D,... theo thứ tự đáp án</div></div><div style=justify-content:flex-end;margin-top:16px><button class=survey-submit-button>Gửi đáp án"),I0=_("<div class=survey-inputs>"),D0=_("<div style=margin-bottom:12px><div style=font-weight:500;margin-bottom:4px;text-align:left></div><input class=survey-input type=text>"),F0=_("<div class=survey-options>"),P0=_("<button type=button style=justify-content:space-between;align-items:center><span>"),O0=_("<img style=margin-left:16px>");const R0=e=>{var N;const[t,n]=R(["A. Tự phân bổ đều trên một số lượng cổ phiếu xác định","B. Dựa vào các phương pháp phân bổ theo rủi ro","C. Theo tư vấn từ chuyên viên tư vấn đầu tư, báo cáo danh mục đầu tư","D. Khác"]),[i,o]=R(null),[l,a]=R(null),[c,h]=R([]),[d,f]=R(Array(t().length).fill("")),r=(N=e.multiSelect)!=null?N:!1,g=()=>{var u;return(u=e.isInputMode)!=null?u:!1};let v;const y=(u,m)=>{m.button===0&&(m.preventDefault(),o(u))},M=u=>{if(i()===null||!v)return;const m=v.getBoundingClientRect();if(!(u.clientX>=m.left&&u.clientX<=m.right&&u.clientY>=m.top&&u.clientY<=m.bottom))return;const x=v.querySelectorAll(".survey-option");for(let C=0;C<x.length;C++){const w=x[C].getBoundingClientRect();if(u.clientX>=w.left&&u.clientX<=w.right&&u.clientY>=w.top&&u.clientY<=w.bottom&&C!==i()){a(C);return}}},k=u=>{if(i()===null||!v)return;const m=v.getBoundingClientRect();if(u.clientX>=m.left&&u.clientX<=m.right&&u.clientY>=m.top&&u.clientY<=m.bottom&&l()!==null){const x=[...t()],C=x[i()];x[i()]=x[l()],x[l()]=C,n(x)}o(null),a(null)},E=u=>{h(r?m=>m.includes(u)?m.filter(V=>V!==u):[...m,u]:m=>m.includes(u)?[]:[u])},P=(u,m)=>{f(V=>{const x=[...V];return x[u]=m,x})},B=()=>{if(e.onSubmit)if(g()){const u=d().filter(m=>m.trim()!=="");e.onSubmit(u,"input")}else if(r){const u=t().filter((m,V)=>c().includes(V));e.onSubmit(u,"selected")}else e.onSubmit(t(),"ordered")};return b2(()=>(document.addEventListener("mousemove",M),document.addEventListener("mouseup",k),()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",k)})),(()=>{var u=T0(),m=u.firstChild,V=m.firstChild,x=V.nextSibling,C=x.firstChild,p=C.nextSibling;p.nextSibling;var w=m.nextSibling,Z=w.firstChild;return s(m,"display","flex"),s(x,"color","#858B93"),b(x,r?"nhiều":"một",p),b(u,(()=>{var D=I(()=>!!g());return()=>D()?(()=>{var $=I0();return b($,U(B2,{get each(){return t()},children:(S,T)=>(()=>{var z=D0(),A=z.firstChild,i2=A.nextSibling;return b(A,S),i2.$$input=o2=>P(T(),o2.currentTarget.value),L(i2,"placeholder",S),K(()=>i2.value=d()[T()]),z})()})),$})():(()=>{var $=F0(),S=v;return typeof S=="function"?M2(S,$):v=$,b($,U(B2,{get each(){return t()},children:(T,z)=>(()=>{var A=P0(),i2=A.firstChild;return A.$$click=()=>E(z()),A.$$mousedown=o2=>y(z(),o2),s(A,"display","flex"),s(A,"width",r?"100%":"auto"),b(i2,T),b(A,(()=>{var o2=I(()=>!!(r&&c().includes(z())));return()=>o2()&&(()=>{var e2=O0();return L(e2,"src",Z0),s(e2,"width","20px"),s(e2,"height","20px"),e2})()})(),null),K(()=>l2(A,`survey-option${r?" multi-selected":""} ${i()===z()?"dragging":""} ${l()===z()?"hovered":""} ${c().includes(z())?"selected":""}`)),A})()})),$})()})(),w),s(w,"display","flex"),Z.$$click=B,u})()};d2(["click","input","mousedown"]);var N0=_("<div style=text-align:center;font-weight:600;user-select:none;white-space:pre-line>Hôm nay thị trường khiến bạn <br>quan tâm điều gì?"),q0=_("<div class=chat-messages-container>"),z0=_('<div class="chat-message bot"style=margin-left:24px><div>'),j0=_("<div style=flex-direction:column;align-items:flex-start;margin-bottom:8px><div><div style=border-radius:24px;font-weight:500;font-size:16px;max-width:70%;word-break:break-word;white-space:pre-line;text-align:left>"),X0=_("<div style=margin-left:16px><button class=feedback-button><img></button><button class=feedback-button><img>");function K0(e){let t;const[n,i]=R(null),[o,l]=R({}),a=d=>{i(d)},c=d=>{n()===d&&i(null)},h=()=>{var d;return e.isFullScreen?e.messages.length>0?"100px":`${((d=e.inputHeight)!=null?d:0)+24}px`:(e.isMobile,e.messages.length>0?"10px":"0px")};return a2(()=>{t&&e.messages.length>0&&setTimeout(()=>{t.scrollTop=t.scrollHeight},100)}),a2(()=>{e.isFullScreen,e.isMobile,t&&e.messages.length>0&&requestAnimationFrame(()=>{t.scrollTop=t.scrollHeight})}),(()=>{var d=q0(),f=t;return typeof f=="function"?M2(f,d):t=d,b(d,U(d0,{get when(){return I(()=>e.messages.length===0)()&&!e.isFullScreen},get children(){var r=N0();return K(g=>s(r,"font-size",e.isMobile?"20px":"24px")),r}}),null),b(d,U(B2,{get each(){return e.messages},children:r=>r.type==="survey"?(()=>{var g=z0(),v=g.firstChild;return b(v,U(R0,{get onSubmit(){return e.onSubmit},get multiSelect(){var y;return(y=e.surveyOptions)==null?void 0:y.multiSelect},get isInputMode(){var y;return(y=e.surveyOptions)==null?void 0:y.isInputMode}})),g})():(()=>{var g=j0(),v=g.firstChild,y=v.firstChild;return g.addEventListener("mouseleave",()=>r.sender==="bot"&&c(r.id)),g.addEventListener("mouseenter",()=>r.sender==="bot"&&a(r.id)),s(g,"display","flex"),s(v,"position","relative"),s(v,"width","100%"),s(y,"color","#000"),s(y,"padding","10px 16px"),b(y,()=>r.text),b(g,(()=>{var M=I(()=>r.sender==="bot");return()=>M()&&(()=>{var k=X0(),E=k.firstChild,P=E.firstChild,B=E.nextSibling,N=B.firstChild;return s(k,"display","flex"),s(k,"gap","8px"),s(k,"height","16px"),s(k,"transition","opacity 0.2s"),E.$$click=()=>l(u=>I2(T2({},u),{[r.id]:"like"})),B.$$click=()=>l(u=>I2(T2({},u),{[r.id]:"dislike"})),K(u=>{var m=n()===r.id?1:0,V=n()===r.id?"visible":"hidden",x=n()===r.id?"auto":"none",C=o()[r.id]==="like"?E0:H0,p=o()[r.id]==="dislike"?V0:B0;return m!==u.e&&s(k,"opacity",u.e=m),V!==u.t&&s(k,"visibility",u.t=V),x!==u.a&&s(k,"pointer-events",u.a=x),C!==u.o&&L(P,"src",u.o=C),p!==u.i&&L(N,"src",u.i=p),u},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),k})()})(),null),K(M=>{var k=`chat-message ${r.sender}`,E=r.sender==="user"?"#1AAF741A":"#fff";return k!==M.e&&l2(v,M.e=k),E!==M.t&&s(y,"background",M.t=E),M},{e:void 0,t:void 0}),g})()}),null),K(r=>{var g=e.messages.length===0?"center":"flex-start",v=h();return g!==r.e&&s(d,"justify-content",r.e=g),v!==r.t&&s(d,"padding-bottom",r.t=v),r},{e:void 0,t:void 0}),d})()}d2(["click"]);var U0=_('<div class=chat-input-container><div style=min-width:0><img><textarea placeholder="Hỏi bất kỳ điều gì..."class=chat-input-field rows=1 style=padding-left:56px></textarea><div><img style=margin-top:4px><img>');function U2(e){let t;const[i,o]=R(!1);function l(){var f,r;if(!t)return;if(t.style.height="auto",!e.input.trim()){t.style.height="48px",t.style.overflowY="hidden",o(!1),(f=e.onHeightChange)==null||f.call(e,48);return}const h=t.scrollHeight,d=Math.min(h,120);t.style.height=d+"px",t.style.overflowY=h>120?"auto":"hidden",o(h>120),(r=e.onHeightChange)==null||r.call(e,d)}a2(()=>{t&&l()});const a=h=>{e.setInput(h.currentTarget.value),l()},c=h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),e.sendMessage(),setTimeout(()=>{t&&l()},0))};return(()=>{var h=U0(),d=h.firstChild,f=d.firstChild,r=f.nextSibling,g=r.nextSibling,v=g.firstChild,y=v.nextSibling;return s(d,"position","relative"),s(d,"flex","1"),L(f,"src",w0),s(f,"position","absolute"),s(f,"left","18px"),s(f,"top","50%"),s(f,"transform","translateY(-60%)"),s(f,"width","20px"),s(f,"height","20px"),s(f,"cursor","pointer"),r.addEventListener("keypress",c),r.$$input=a,M2(M=>t=M,r),s(r,"resize","none"),s(r,"width","100%"),s(r,"max-height","120px"),s(r,"overflow","hidden"),s(g,"position","absolute"),s(g,"right","16px"),s(g,"top","50%"),s(g,"transform","translateY(-55%)"),s(g,"display","flex"),s(g,"gap","12px"),u2(v,"click",e.sendMessage),L(v,"src",k0),s(v,"width","24px"),s(v,"height","24px"),s(v,"cursor","pointer"),u2(y,"click",e.sendMessage),s(y,"width","32px"),s(y,"height","32px"),s(y,"cursor","pointer"),K(M=>{var k=!!i(),E=e.input.trim()?A0:m0;return k!==M.e&&h.classList.toggle("is-maxed",M.e=k),E!==M.t&&L(y,"src",M.t=E),M},{e:void 0,t:void 0}),K(()=>r.value=e.input),h})()}d2(["input","click"]);var Y0=_('<div><div class=sidebar-header><img style=margin-right:4px><span style=user-select:none>Ez</span><span style=margin-left:4px;user-select:none>Advise</span></div><div class=sidebar-section tabindex=0><img class=sidebar-section-icon><span class=sidebar-section-title>Chân dung nhà đầu tư</span></div><div class="sidebar-section sidebar-section--no-padding"tabindex=0><img class=sidebar-section-icon><span class=sidebar-section-title>Định hướng đầu tư</span></div><div class=sidebar-conversation-row><span style=font-weight:400;font-size:14px;user-select:none>Hội thoại</span><div class=sidebar-conversation-action tabindex=0><span style=font-weight:400;font-size:14px;user-select:none>Hội thoại mới</span><img style=margin-left:8px></div></div><div class=sidebar-search-box><img style=margin-right:8px><input type=text placeholder="Tìm kiếm hội thoại"></div><div><div class=sidebar-menu-row tabindex=0><span style=font-weight:500;font-size:14px;user-select:none>Khảo sát</span><img class=sidebar-menu-dot style=margin-left:8px>'),G0=_("<div>"),W0=_("<img style=margin-right:16px>"),Q0=_("<div class=sidebar-header-actions><button><img></button><button><img>"),J0=_("<div class=sidebar-popover><div class=sidebar-popover-item><img>Đổi tên</div><div class=sidebar-popover-item><img>Xóa");function Y2(e){const[t,n]=R(!1);let i;return b2(()=>{const o=l=>{t()&&i&&!i.contains(l.target)&&n(!1)};document.addEventListener("mousedown",o),D2(()=>{document.removeEventListener("mousedown",o)})}),[I(()=>I(()=>!e.fullScreen)()&&(()=>{var o=G0();return u2(o,"click",e.onClose),K(()=>l2(o,`sidebar-overlay${e.open?" sidebar-overlay--open":""}`)),o})()),(()=>{var o=Y0(),l=o.firstChild,a=l.firstChild,c=a.nextSibling,h=c.nextSibling,d=l.nextSibling,f=d.firstChild,r=d.nextSibling,g=r.firstChild,v=r.nextSibling,y=v.firstChild,M=y.nextSibling,k=M.firstChild,E=k.nextSibling,P=v.nextSibling,B=P.firstChild,N=P.nextSibling,u=N.firstChild,m=u.firstChild,V=m.nextSibling;return b(l,(()=>{var x=I(()=>!e.fullScreen);return()=>x()&&(()=>{var C=W0();return u2(C,"click",e.onClose),L(C,"src",x0),s(C,"width","28px"),s(C,"height","28px"),s(C,"cursor","pointer"),C})()})(),a),L(a,"src",V2),s(a,"width","32px"),s(a,"height","32px"),s(c,"color","#1A1D1F"),s(h,"color","#1AAF74"),b(l,(()=>{var x=I(()=>!!e.fullScreen);return()=>x()&&(()=>{var C=Q0(),p=C.firstChild,w=p.firstChild,Z=p.nextSibling,D=Z.firstChild;return p.$$click=()=>{var $;($=e.onShrink)==null||$.call(e)},s(p,"background","none"),s(p,"border","none"),s(p,"cursor","pointer"),s(p,"padding","0"),L(w,"src",p0),s(w,"width","20px"),s(w,"height","20px"),u2(Z,"click",e.onClose),s(Z,"background","none"),s(Z,"border","none"),s(Z,"cursor","pointer"),s(Z,"padding","0"),L(D,"src",K2),s(D,"width","20px"),s(D,"height","20px"),C})()})(),null),d.$$click=()=>{e.onSurveyRequest&&e.onSurveyRequest({multiSelect:!0}),e.fullScreen||e.onClose()},L(f,"src",b0),r.$$click=()=>{e.onSurveyRequest&&e.onSurveyRequest({isInputMode:!0}),e.fullScreen||e.onClose()},L(g,"src",$0),s(y,"color","#858B93"),M.$$click=()=>{e.onNewConversation&&e.onNewConversation(),e.fullScreen||e.onClose()},s(k,"color","#858B93"),L(E,"src",y0),s(E,"width","20px"),s(E,"height","20px"),L(B,"src",M0),s(B,"width","18px"),s(B,"height","18px"),s(B,"opacity","0.7"),u.$$click=()=>{e.onSurveyRequest&&e.onSurveyRequest(),e.fullScreen||e.onClose()},s(u,"position","relative"),V.$$mousedown=x=>x.stopPropagation(),V.$$click=x=>{x.stopPropagation(),n(!t())},L(V,"src",_0),s(V,"width","24px"),s(V,"height","24px"),s(V,"cursor","pointer"),b(u,(()=>{var x=I(()=>!!t());return()=>x()&&(()=>{var C=J0(),p=C.firstChild,w=p.firstChild,Z=p.nextSibling,D=Z.firstChild;return M2($=>i=$,C),p.$$click=$=>{$.stopPropagation(),n(!1)},L(w,"src",S0),s(w,"width","18px"),s(w,"height","18px"),Z.$$click=$=>{$.stopPropagation(),n(!1)},L(D,"src",L0),s(D,"width","18px"),s(D,"height","18px"),C})()})(),null),K(x=>{var C=`sidebar${e.open?" sidebar--open":""}${e.fullScreen?" sidebar--fullscreen":""}${e.isMobile?" sidebar--mobile":""}`,p=e.isMobile?{width:"280px",height:"100%"}:{};return C!==x.e&&l2(o,x.e=C),x.t=j2(o,p,x.t),x},{e:void 0,t:void 0}),o})()]}d2(["click","mousedown"]);var e1=_("<button class=chat-action-btn>");function k2(e){return(()=>{var t=e1();return u2(t,"click",e.onClick),b(t,()=>e.text),t})()}d2(["click"]);var t1=_("<div class=header-steps><div class=header-steps-title></div><div class=header-steps-container>"),n1=_("<div>"),i1=_("<div class=header-step-line>");const s1=e=>{const t=()=>e.currentStep||1,n=()=>e.totalSteps||6,i=()=>e.title||"Tài chính cá nhân/ Hồ sơ rủi ro";return(()=>{var o=t1(),l=o.firstChild,a=l.nextSibling;return b(l,i),b(a,()=>Array.from({length:n()},(c,h)=>[(()=>{var d=n1();return b(d,h+1),K(()=>l2(d,`header-step ${h+1<=t()?"active":""}`)),d})(),I(()=>I(()=>h<n()-1)()&&i1())])),o})()};function G2(e,t,n,i){return G(this,null,function*(){return[{id:1,text:"Xin chào! Tôi là bot hỗ trợ đầu tư.",sender:"bot"},{id:2,text:"Thị trường hôm nay thế nào?",sender:"user"},{id:3,text:"Thị trường hôm nay biến động nhẹ, bạn quan tâm đến mã nào?",sender:"bot"},{id:4,text:"Tôi muốn hỏi về cổ phiếu FPT.",sender:"user"},{id:5,text:"FPT đang có xu hướng tăng trưởng tốt, bạn cần phân tích kỹ thuật hay cơ bản?",sender:"bot"}]})}function l1(e){return G(this,null,function*(){return{id:Date.now(),text:e.text,sender:"user"}})}function o1(e){return G(this,null,function*(){return!0})}function r1(e,t){return G(this,null,function*(){return!0})}function c1(e,t,n,i){return G(this,null,function*(){return(yield G2()).filter(l=>l.text.toLowerCase().includes(t.toLowerCase()))})}class a1{listMessages(t){return G(this,null,function*(){return yield G2()})}sendMessage(t){return G(this,null,function*(){return yield l1(t)})}updateMessage(t){return G(this,null,function*(){return yield o1()})}deleteMessage(t,n){return G(this,null,function*(){return yield r1()})}searchMessages(t,n,i,o){return G(this,null,function*(){return yield c1(t,n)})}}const W2=new a1;var d1=_("<div>"),u1=_("<button class=chat-popup-button><img>"),h1=_("<div><div style=flex-direction:row><div style=flex-direction:column;min-height:0>"),f1=_("<div class=chat-popup-header><img><div class=chat-popup-title><img style=margin-right:4px><span style=user-select:none>Ez</span><span style=margin-left:4px;user-select:none>Advise</span></div><div style=align-items:center;margin-top:4px><button><img>"),Q2=_("<button><img>"),C1=_("<div><div>"),g1=_("<div style=text-align:center;font-size:32px;font-weight:600;margin-bottom:32px;user-select:none>Hôm nay thị trường khiến bạn quan tâm điều gì?"),p1=_("<div class=chat-popup-action-buttons>");function v1(e){var x;const[t,n]=R([]),[i,o]=R(""),[l,a]=R(!1),[c,h]=R(!1),[d,f]=R(!1),[r,g]=R(!1),[v,y]=R(0),[M,k]=R({}),[E]=R(2),P=((x=e.options)==null?void 0:x.onlyMobile)||!1;a2(()=>{var C,p;(C=e.options)!=null&&C.onFullScreen&&e.options.onFullScreen(d()),(p=e.options)!=null&&p.onMobile&&e.options.onMobile(r())}),a2(()=>{(d()||r())&&a(!0)}),b2(()=>G(null,null,function*(){n([])}));function B(C){const p=(C!=null?C:"").toLowerCase();return p.includes("thị trường")?"Thị trường hôm nay biến động nhẹ, bạn quan tâm đến mã nào?":p.includes("fpt")?"FPT đang có xu hướng tăng trưởng tốt, bạn cần phân tích kỹ thuật hay cơ bản?":p.includes("chào")?"Xin chào! Tôi là bot hỗ trợ đầu tư.":p.includes("khảo sát")?"Bạn muốn tôi hỗ trợ khảo sát thị trường theo ngành, khu vực hay theo xu hướng đầu tư?":p.includes("mục tiêu")?"Bạn có thể chia sẻ thêm về mục tiêu tài chính của mình ngắn hạn, trung hạn hay dài hạn?":p.includes("rủi ro")?"Hãy cho tôi biết mức độ chấp nhận rủi ro của bạn: thấp, trung bình hay cao?":"Cảm ơn bạn đã hỏi, tôi sẽ phản hồi sớm!"}const N=()=>G(null,null,function*(){if(!i().trim())return;const C=yield W2.sendMessage({text:i()}),p={id:C.id,text:C.text,sender:C.sender==="bot"?"bot":"user"};n([...t(),p]),o(""),setTimeout(()=>{const w={id:Date.now()+1,text:B(p.text),sender:"bot"};n([...t(),w])},100)}),u=C=>G(null,null,function*(){const p=yield W2.sendMessage({text:C}),w={id:p.id,text:p.text,sender:p.sender==="bot"?"bot":"user"};n([...t(),w]),setTimeout(()=>{const Z={id:Date.now()+1,text:B(w.text),sender:"bot"};n([...t(),Z])},100)}),m=C=>{k(C||{}),n([...t(),{id:Date.now(),sender:"bot",type:"survey"}])},V=()=>{n([])};return b2(()=>{const C=()=>{const w=window.innerWidth<768;P?(g(!0),f(!1)):(g(w),d()&&w&&(f(!1),g(!0)))};return window.addEventListener("resize",C),C(),()=>{window.removeEventListener("resize",C)}}),(()=>{var C=d1();return b(C,(()=>{var p=I(()=>!l());return()=>p()&&(()=>{var w=u1(),Z=w.firstChild;return w.$$click=()=>{var D;P&&g(!0),a(!0),(D=e.options)!=null&&D.onOpen&&e.options.onOpen()},s(w,"background","none"),s(w,"border","none"),s(w,"cursor","pointer"),s(w,"padding","0"),L(Z,"src",V2),w})()})(),null),b(C,(()=>{var p=I(()=>!!l());return()=>p()&&(()=>{var w=h1(),Z=w.firstChild,D=Z.firstChild;return b(w,(()=>{var $=I(()=>!d());return()=>$()&&(()=>{var S=f1(),T=S.firstChild,z=T.nextSibling,A=z.firstChild,i2=A.nextSibling,o2=i2.nextSibling,e2=z.nextSibling,r2=e2.firstChild,Z2=r2.firstChild;return T.$$click=()=>h(!0),L(T,"src",C0),s(T,"width","28px"),s(T,"height","28px"),s(T,"cursor","pointer"),L(A,"src",V2),s(A,"width","32px"),s(A,"height","32px"),s(i2,"color","#1A1D1F"),s(o2,"color","#1AAF74"),s(e2,"display","flex"),s(e2,"gap","12px"),b(e2,(()=>{var S2=I(()=>!r());return()=>S2()&&[(()=>{var Y=Q2(),c2=Y.firstChild;return Y.$$click=()=>{var v2;d()?(f(!1),g(!0)):r()?g(!1):g(!0),(v2=e.options)!=null&&v2.onMinimize&&e.options.onMinimize()},s(Y,"background","none"),s(Y,"border","none"),s(Y,"cursor","pointer"),s(Y,"padding","0"),L(c2,"src",v0),s(c2,"width","20px"),s(c2,"height","20px"),Y})(),(()=>{var Y=Q2(),c2=Y.firstChild;return Y.$$click=()=>{var v2;g(!1),f(!0),(v2=e.options)!=null&&v2.onMaximize&&e.options.onMaximize()},s(Y,"background","none"),s(Y,"border","none"),s(Y,"cursor","pointer"),s(Y,"padding","0"),L(c2,"src",g0),s(c2,"width","20px"),s(c2,"height","20px"),Y})()]})(),r2),r2.$$click=()=>{var S2;a(!1),g(!1),f(!1),(S2=e.options)!=null&&S2.onClose&&e.options.onClose()},s(r2,"background","none"),s(r2,"border","none"),s(r2,"cursor","pointer"),s(r2,"padding","0"),L(Z2,"src",K2),s(Z2,"width","20px"),s(Z2,"height","20px"),S})()})(),Z),s(Z,"display","flex"),s(Z,"height","100%"),b(Z,(()=>{var $=I(()=>!!d());return()=>$()?U(Y2,{onClose:()=>{var S;a(!1),g(!1),f(!1),(S=e.options)!=null&&S.onClose&&e.options.onClose()},onShrink:()=>{var S;f(!1),(S=e.options)!=null&&S.onShrink&&e.options.onShrink()},open:!0,fullScreen:!0,get isMobile(){return r()},onMobile:()=>{f(!1),g(!0)},onSurveyRequest:m,onNewConversation:V,get options(){return e.options}}):U(Y2,{onClose:()=>h(!1),get open(){return c()},fullScreen:!1,get isMobile(){return r()},onSurveyRequest:m,onNewConversation:V,get options(){return e.options}})})(),D),s(D,"flex","1"),s(D,"display","flex"),s(D,"position","relative"),s(D,"height","100%"),b(D,(()=>{var $=I(()=>!!d());return()=>$()&&U(s1,{get currentStep(){return E()},totalSteps:6})})(),null),b(D,U(K0,{get messages(){return t()},get isFullScreen(){return d()},get inputHeight(){return I(()=>!!d())()?v():void 0},get isMobile(){return r()},onSubmit:($,S)=>{let T;S==="ordered"||S==="selected"?T=$.map(z=>z.split(". ")[1]).join(`
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.chat-messages-container{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0;display:flex;flex-direction:column;box-sizing:border-box;transform:translateZ(0);-webkit-transform:translateZ(0);will-change:scroll-position;background-attachment:fixed;background-size:cover;background-repeat:no-repeat;background-position:center;scroll-behavior:auto!important}.chat-popup-window--fullscreen .chat-messages-container{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;max-height:calc(100% - 105px)}.chat-popup-window--mobile .chat-messages-container{flex:1;min-height:0;max-height:100%}.chat-messages-container:before,.chat-messages-container:after{content:"";flex-shrink:0}.chat-messages-container:before{height:20px}.chat-messages-container:after{height:20px}.chat-messages-container>*{margin-left:24px;margin-right:24px}.chat-message{margin-bottom:12px;display:flex;justify-content:flex-end;flex-shrink:0}.chat-message.bot{justify-content:flex-start}.feedback-button{background:transparent;border:none;width:16px;height:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.feedback-button:hover{transform:scale(1.1)}.feedback-button:active{transform:scale(.95)}.chat-messages-container::-webkit-scrollbar{width:2px}.chat-messages-container::-webkit-scrollbar-track{background:transparent}.chat-messages-container::-webkit-scrollbar-thumb{background:#1aaf74}.chat-messages-container::-webkit-scrollbar-thumb:hover{background:#1aaf74}.message-popup{position:absolute;top:-40px;right:0;background:#fff;border-radius:8px;box-shadow:0 2px 8px #00000026;padding:8px;display:flex;gap:8px;border:1px solid #e0e0e0}.message-popup-button{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center}.message-popup-button:hover{background:#f0f0f0}.chat-message-edit-textarea{flex:1;padding:8px;width:30vw;border-radius:8px;border:0px;font-size:16px;font-weight:500;font-family:inherit;background:transparent;outline:none;resize:none;min-height:60px;max-height:200px;overflow:auto}.chat-message-edit-textarea::-webkit-scrollbar{display:none}.message-edit-button{background:transparent;font-weight:400;color:#000;font-size:16px;padding:8px 12px;border-radius:8px;border:none;cursor:pointer;transition:background-color .2s ease}.message-edit-button:hover,.message-edit-button:active{background:#1aaf7433}.message-cancel-button{background:transparent;font-weight:400;color:#767676;font-size:16px;padding:8px 12px;border-radius:8px;border:none;cursor:pointer;transition:background-color .2s ease}.message-cancel-button:hover,.message-cancel-button:active{background:#1aaf7433}.survey-message{background:#fff;border-radius:24px;box-shadow:0 2px 8px #00000014;padding:16px;max-width:70vh}.survey-options{display:flex;flex-direction:column;gap:12px;align-items:flex-start}.survey-option{border:1px solid #51D6A1;border-radius:24px;padding:12px 16px;background:none;font-size:16px;cursor:grab;text-align:left;user-select:none;transition:all .2s ease}.survey-option:active{cursor:grabbing}.survey-option:hover:not(.dragging){cursor:grabbing;background:#eafaf3}.survey-option:active,.survey-option.dragging{opacity:.4;transform:scale(.95);cursor:grabbing}.survey-option.hovered{background:#d4f5ed;transform:translateY(5px)}.survey-option.multi-selected.selected{background:#1aaf741a}.survey-submit-button{background:transparent;font-weight:400;color:#1aaf74;font-size:16px;padding:8px 12px;border-radius:4px;border:none;cursor:pointer;transition:background-color .2s ease}.survey-submit-button:hover{background:#1aaf741a}.survey-submit-button:active{background:#1aaf7433}.survey-cancel-button{background:transparent;font-weight:400;color:#767676;font-size:16px;padding:8px 12px;border-radius:4px;border:none;cursor:pointer;transition:background-color .2s ease}.survey-cancel-button:hover{background:#1aaf741a}.survey-cancel-button:active{background:#1aaf7433}.survey-input{width:100%;padding:12px 16px;border-radius:12px;font-size:14px;font-weight:500;background:#efefef;border:0px solid #fff;box-sizing:border-box}.survey-input::placeholder{color:#1113154d}.survey-input:focus{border:1px solid #1AAF74;outline:none}.survey-tooltip{text-align:left;position:absolute;right:0;left:auto;background:#fff;color:#333;border:1px solid #ddd;border-radius:4px;padding:8px 12px;font-size:13px;min-width:280px;max-width:90vw;box-shadow:0 2px 8px #00000014;white-space:normal;overflow-wrap:break-word;word-break:break-word;z-index:10}.chat-input-container{padding:15px;background:#fff;border-top:1px solid #e0e0e0;display:flex;gap:10px;flex-shrink:0;box-sizing:border-box}.chat-input-field{padding:15px 12px;width:100%;background:#efefef;border:1px solid #EFEFEF;border-radius:100px;outline:none;font-size:16px;font-weight:500;box-sizing:border-box;font-family:Manrope,Arial,sans-serif;overflow-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;transition:height .12s ease}.chat-input-field:focus{border:1px solid #1AAF74;background:#efefef}.chat-input-field::-webkit-scrollbar{width:0;height:0}.chat-input-container.is-maxed .chat-input-field{border-radius:28px;transition:border-radius .12s ease}.chat-input-button{padding:10px 20px;background:#1677ff;color:#fff;border:none;border-radius:20px;cursor:pointer;font-weight:500}.chat-input-floating-box .chat-input-container{background:transparent;box-shadow:none;width:100%;padding:0;border-top:none;gap:0}.chat-input-floating-box .chat-input-field{background:#efefef;border-radius:100px;width:100%;box-shadow:none;padding:15px 24px}.chat-input-field::-webkit-scrollbar{display:none}.chat-popup-button{position:absolute;bottom:12px;right:12px;width:60px;height:60px;border-radius:50%;background:#fff;border:none;color:#fff;font-size:24px;cursor:pointer;box-shadow:0 4px 12px #00000026;z-index:1000;display:flex;align-items:center;justify-content:center}.chat-popup-button:hover{transform:scale(1.1)}.chat-popup-window{position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;border-radius:12px;box-shadow:0 8px 32px #0000001a;z-index:999;display:flex;flex-direction:column;overflow:hidden;transform:scale(.85);opacity:0;transition:opacity .25s;transform-origin:right bottom}.chat-popup-window:not(.chat-popup-window--fullscreen):not(.chat-popup-window--mobile)>div:last-child{flex:1;overflow:hidden;display:flex;flex-direction:column}.chat-popup-window--open{transform:scale(1);opacity:1;transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .25s}.chat-popup-window--fullscreen:not(.chat-popup-window--open),.chat-popup-window--mobile:not(.chat-popup-window--open){transition:opacity .25s!important}.chat-popup-window--fullscreen{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none;max-height:none;border-radius:12px;z-index:9999;background:#fff;display:flex;flex-direction:column}.chat-popup-window--fullscreen .chat-input-floating-box{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);width:60%;max-width:70%;gap:16px;display:flex;flex-direction:column;align-items:center}.chat-popup-window--fullscreen .chat-input-floating-box--with-messages{top:auto;bottom:24px;transform:translate(-50%);width:95%;max-width:95%}.chat-popup-window--mobile{inset:0!important;width:100%!important;height:100%!important;max-width:none;max-height:none;border-radius:12px;z-index:9999;background:#fff;display:flex;flex-direction:column}.chat-popup-window--mobile>div:last-child{flex:1;overflow:hidden;display:flex;flex-direction:column}.chat-popup-window,.chat-popup-window--fullscreen,.chat-popup-window--mobile{background-image:url("data:image/svg+xml,%3csvg%20width='702'%20height='333'%20viewBox='0%200%20702%20333'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='702'%20height='332.5'%20transform='translate(0%200.5)'%20fill='%23F9F9F9'/%3e%3cmask%20id='mask0_2126_250272'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='702'%20height='333'%3e%3crect%20y='0.5'%20width='702'%20height='332.5'%20fill='%23F9F9F9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2126_250272)'%3e%3cg%20opacity='0.4'%20filter='url(%23filter0_f_2126_250272)'%3e%3cellipse%20cx='217.889'%20cy='89.4345'%20rx='92.9028'%20ry='132.599'%20fill='url(%23paint0_linear_2126_250272)'/%3e%3cellipse%20cx='267.576'%20cy='251.281'%20rx='94.725'%20ry='141.383'%20fill='url(%23paint1_linear_2126_250272)'/%3e%3cellipse%20cx='198.685'%20cy='149.02'%20rx='145.472'%20ry='113.673'%20fill='url(%23paint2_linear_2126_250272)'/%3e%3cellipse%20cx='502.354'%20cy='219.212'%20rx='76.572'%20ry='89.1293'%20fill='url(%23paint3_linear_2126_250272)'/%3e%3cellipse%20cx='329.854'%20cy='242.986'%20rx='90.3027'%20ry='136.639'%20fill='url(%23paint4_linear_2126_250272)'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_f_2126_250272'%20x='-152.057'%20y='-248.434'%20width='936.253'%20height='846.368'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='102.635'%20result='effect1_foregroundBlur_2126_250272'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_2126_250272'%20x1='124.986'%20y1='89.4345'%20x2='310.792'%20y2='89.4345'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231AAF74'/%3e%3cstop%20offset='1'%20stop-color='%231AAF74'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2126_250272'%20x1='172.851'%20y1='251.281'%20x2='362.301'%20y2='251.281'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231AAF74'/%3e%3cstop%20offset='1'%20stop-color='%231AAF74'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2126_250272'%20x1='53.2129'%20y1='149.02'%20x2='344.158'%20y2='149.02'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F8FF99'/%3e%3cstop%20offset='1'%20stop-color='%23F8FF99'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2126_250272'%20x1='425.782'%20y1='219.212'%20x2='578.926'%20y2='219.212'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231AAF74'/%3e%3cstop%20offset='1'%20stop-color='%231AAF74'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2126_250272'%20x1='239.552'%20y1='242.986'%20x2='420.157'%20y2='242.986'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231AAF74'/%3e%3cstop%20offset='1'%20stop-color='%231AAF74'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e");background-size:cover;background-repeat:no-repeat;background-position:center}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 16px;background:#fff;color:#fff;font-weight:700;font-size:18px;flex-shrink:0;box-sizing:border-box}.chat-popup-title{flex:1;text-align:center;font-weight:700;font-size:24px;display:flex;justify-content:center;align-items:center}.chat-input-floating-box{position:absolute;left:50%;transform:translate(-50%);background:transparent;border-radius:24px;padding:0;z-index:10;width:60%;max-width:70%;display:flex;flex-direction:column;align-items:center;gap:28px;justify-content:flex-start}.chat-popup-action-buttons{display:flex;justify-content:center;align-items:center;gap:16px;width:100%;flex-wrap:wrap;background:transparent!important;box-shadow:none;border:none;padding:0;margin:0;position:static}.modal-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:20;display:flex;align-items:center;justify-content:center}.modal-button-delete{border:1px solid #EFEFEF;border-radius:24px;padding:12px;cursor:pointer;transition:background .2s,color .2s}.modal-button-delete:hover{background:#f5f5f5;color:#1aaf74}.chat-popup-input{width:100%;padding:8px;border:1px solid #1AAF74;border-radius:4px;box-sizing:border-box;outline:none;transition:border-color .2s}.chat-popup-input:focus{border-color:#1aaf74}.sidebar-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#1e1e1e40;z-index:9;opacity:0;pointer-events:none;transition:opacity .2s}.sidebar-overlay--open{opacity:1;pointer-events:auto}.sidebar{position:absolute;top:0;left:0;width:420px;height:100%;background:#fff;box-shadow:2px 0 8px #00000014;z-index:10;padding:12px;transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .25s;border-radius:12px;transform:translate(-100%);opacity:0;pointer-events:none}.sidebar--open{transform:translate(0);opacity:1;pointer-events:auto}.sidebar--fullscreen{position:static!important;width:320px!important;height:100%;box-shadow:none!important;transform:none!important;opacity:1!important;pointer-events:auto!important;border-top-right-radius:0!important}.sidebar-header{width:100%;display:flex;align-items:center;font-weight:700;font-size:24px;text-align:center;justify-content:left}.sidebar-section{display:flex;align-items:center;cursor:pointer;border-radius:8px;padding:8px;margin-top:18px;transition:background .2s}.sidebar-header-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.sidebar-section--no-padding{margin-top:0!important}.sidebar-section:hover,.sidebar-section:focus{background:#f5f5f5}.sidebar-section .sidebar-section-icon{width:24px;height:24px;margin-right:8px}.sidebar-section .sidebar-section-title{font-weight:600;font-size:16px;user-select:none}.sidebar-conversation-row{display:flex;justify-content:space-between;align-items:center;margin-top:16px;border-radius:16px;padding:8px}.sidebar-conversation-action{display:flex;align-items:center;cursor:pointer;border-radius:8px;padding:8px;transition:background .2s}.sidebar-conversation-action:hover,.sidebar-conversation-action:focus{background:#f5f5f5}.sidebar-search-box{margin-top:8px;padding:12px;background:#f5f5f5;border-radius:8px;display:flex;align-items:center}.sidebar-search-box input{border:none;outline:none;background:transparent;width:100%;font-size:16px;font-weight:500}.sidebar-search-box input::placeholder{color:#1113154d;opacity:1}.sidebar-menu-row{display:flex;justify-content:space-between;align-items:center;cursor:pointer;border-radius:8px;padding:8px;transition:background .2s}.sidebar-menu-row:hover,.sidebar-menu-row:focus{background:#f5f5f5}.sidebar-popover{position:absolute;top:32px;right:0;background:#efefef;border:1px solid #858B934D;border-radius:12px;box-shadow:0 2px 8px #00000014;z-index:100;min-width:170px;padding:8px 0}.sidebar-popover-item{font-size:14px;padding:8px 16px;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background .2s;color:#1a1d1f}.sidebar-popover-item:hover{background:#f5f5f5}.sidebar-menu-dot{opacity:0;pointer-events:none;transition:opacity .15s}.sidebar-menu-row:hover .sidebar-menu-dot,.sidebar-menu-row:focus .sidebar-menu-dot{opacity:1;pointer-events:auto}.sidebar-conversation-list{max-height:100%;overflow-y:auto}.sidebar-conversation-list::-webkit-scrollbar{width:2px}.sidebar-conversation-list::-webkit-scrollbar-track{background:transparent}.sidebar-conversation-list::-webkit-scrollbar-thumb{background:#1aaf74}.sidebar-conversation-list::-webkit-scrollbar-thumb:hover{background:#1aaf74}.sider-bar-input{width:100%;padding:8px;border:1px solid #1AAF74;border-radius:4px;box-sizing:border-box;outline:none;transition:border-color .2s}.sider-bar-input:focus{border-color:#1aaf74}.chat-action-btn{background:#1aaf741a;border:1px solid #1AAF744D;color:#1a1d1f;border-radius:24px;padding:8px 12px;font-size:14px;font-weight:400;cursor:pointer;transition:background .2s;outline:none;margin:0 8px}.chat-action-btn:hover{background:#d2f1e0}.header-steps{display:flex;justify-content:space-between;align-items:center;padding:12px 24px;border-bottom:1px solid #e0e0e0;background:#fff;position:sticky;top:0;height:28px;z-index:10;gap:16px}.header-steps-title{font-weight:700;font-size:18px;color:#1a1d1f;flex-shrink:0}.header-steps-container{display:flex;gap:0px;align-items:center;flex-shrink:0}.header-step{width:28px;height:28px;border-radius:50%;background:#f4f4f499;color:#000;border:2px solid #EFEFEF;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;transition:background-color .2s ease,color .2s ease}.header-step.active{background:#1aaf74;border:2px solid #1AAF74;color:#fff}.header-step-line{width:16px;height:2px;background:#858b934d;margin:0 4px;border-radius:1px;flex-shrink:0}`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
(function(Me,we){typeof exports=="object"&&typeof module!="undefined"?we(exports):typeof define=="function"&&define.amd?define(["exports"],we):(Me=typeof globalThis!="undefined"?globalThis:Me||self,we(Me.EzChat={}))})(this,(function(Me){"use strict";var zr=Object.defineProperty,Vr=Object.defineProperties;var Wr=Object.getOwnPropertyDescriptors;var os=Object.getOwnPropertySymbols;var qr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable;var vn=(Me,we,Te)=>we in Me?zr(Me,we,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Me[we]=Te,H=(Me,we)=>{for(var Te in we||(we={}))qr.call(we,Te)&&vn(Me,Te,we[Te]);if(os)for(var Te of os(we))Zr.call(we,Te)&&vn(Me,Te,we[Te]);return Me},ee=(Me,we)=>Vr(Me,Wr(we));var me=(Me,we,Te)=>vn(Me,typeof we!="symbol"?we+"":we,Te);var v=(Me,we,Te)=>new Promise((Ge,ut)=>{var ht=je=>{try{Ue(Te.next(je))}catch(ft){ut(ft)}},Ft=je=>{try{Ue(Te.throw(je))}catch(ft){ut(ft)}},Ue=je=>je.done?Ge(je.value):Promise.resolve(je.value).then(ht,Ft);Ue((Te=Te.apply(Me,we)).next())});const Te=(t,e)=>t===e,Ge=Symbol("solid-proxy"),ut=Symbol("solid-track"),ht={equals:Te};let Ft=_n;const Ue=1,je=2,ft={owned:null,cleanups:null,context:null,owner:null};var pe=null;let on=null,rs=null,Se=null,$e=null,Ke=null,Ot=0;function Nt(t,e){const n=Se,s=pe,i=t.length===0,o=e===void 0?s:e,r=i?ft:{owned:null,cleanups:null,context:o?o.context:null,owner:o},c=i?t:()=>t(()=>Ze(()=>Et(r)));pe=r,Se=null;try{return gt(c,!0)}finally{Se=n,pe=s}}function L(t,e){e=e?Object.assign({},ht,e):ht;const n={value:t,observers:null,observerSlots:null,comparator:e.equals||void 0},s=i=>(typeof i=="function"&&(i=i(n.value)),bn(n,i));return[yn.bind(n),s]}function ue(t,e,n){const s=cn(t,e,!1,Ue);kt(s)}function Qe(t,e,n){Ft=gs;const s=cn(t,e,!1,Ue);s.user=!0,Ke?Ke.push(s):kt(s)}function Je(t,e,n){n=n?Object.assign({},ht,n):ht;const s=cn(t,e,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,kt(s),yn.bind(s)}function as(t){return gt(t,!1)}function Ze(t){if(Se===null)return t();const e=Se;Se=null;try{return t()}finally{Se=e}}function cs(t,e,n){const s=Array.isArray(t);let i;return o=>{let r;if(s){r=Array(t.length);for(let a=0;a<t.length;a++)r[a]=t[a]()}else r=t();const c=Ze(()=>e(r,i,o));return i=r,c}}function Mt(t){Qe(()=>Ze(t))}function rn(t){return pe===null||(pe.cleanups===null?pe.cleanups=[t]:pe.cleanups.push(t)),t}function an(){return Se}function ls(t,e){const n=Symbol("context");return{id:n,Provider:Cs(n),defaultValue:t}}function ds(t){let e;return pe&&pe.context&&(e=pe.context[t.id])!==void 0?e:t.defaultValue}function us(t){const e=Je(t),n=Je(()=>ln(e()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}function yn(){if(this.sources&&this.state)if(this.state===Ue)kt(this);else{const t=$e;$e=null,gt(()=>jt(this),!1),$e=t}if(Se){const t=this.observers?this.observers.length:0;Se.sources?(Se.sources.push(this),Se.sourceSlots.push(t)):(Se.sources=[this],Se.sourceSlots=[t]),this.observers?(this.observers.push(Se),this.observerSlots.push(Se.sources.length-1)):(this.observers=[Se],this.observerSlots=[Se.sources.length-1])}return this.value}function bn(t,e,n){let s=t.value;return(!t.comparator||!t.comparator(s,e))&&(t.value=e,t.observers&&t.observers.length&>(()=>{for(let i=0;i<t.observers.length;i+=1){const o=t.observers[i],r=on&&on.running;r&&on.disposed.has(o),(r?!o.tState:!o.state)&&(o.pure?$e.push(o):Ke.push(o),o.observers&&Sn(o)),r||(o.state=Ue)}if($e.length>1e6)throw $e=[],new Error},!1)),e}function kt(t){if(!t.fn)return;Et(t);const e=Ot;hs(t,t.value,e)}function hs(t,e,n){let s;const i=pe,o=Se;Se=pe=t;try{s=t.fn(e)}catch(r){return t.pure&&(t.state=Ue,t.owned&&t.owned.forEach(Et),t.owned=null),t.updatedAt=n+1,An(r)}finally{Se=o,pe=i}(!t.updatedAt||t.updatedAt<=n)&&(t.updatedAt!=null&&"observers"in t?bn(t,s):t.value=s,t.updatedAt=n)}function cn(t,e,n,s=Ue,i){const o={fn:t,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:pe,context:pe?pe.context:null,pure:n};return pe===null||pe!==ft&&(pe.owned?pe.owned.push(o):pe.owned=[o]),o}function Ut(t){if(t.state===0)return;if(t.state===je)return jt(t);if(t.suspense&&Ze(t.suspense.inFallback))return t.suspense.effects.push(t);const e=[t];for(;(t=t.owner)&&(!t.updatedAt||t.updatedAt<Ot);)t.state&&e.push(t);for(let n=e.length-1;n>=0;n--)if(t=e[n],t.state===Ue)kt(t);else if(t.state===je){const s=$e;$e=null,gt(()=>jt(t,e[0]),!1),$e=s}}function gt(t,e){if($e)return t();let n=!1;e||($e=[]),Ke?n=!0:Ke=[],Ot++;try{const s=t();return fs(n),s}catch(s){n||(Ke=null),$e=null,An(s)}}function fs(t){if($e&&(_n($e),$e=null),t)return;const e=Ke;Ke=null,e.length&>(()=>Ft(e),!1)}function _n(t){for(let e=0;e<t.length;e++)Ut(t[e])}function gs(t){let e,n=0;for(e=0;e<t.length;e++){const s=t[e];s.user?t[n++]=s:Ut(s)}for(e=0;e<n;e++)Ut(t[e])}function jt(t,e){t.state=0;for(let n=0;n<t.sources.length;n+=1){const s=t.sources[n];if(s.sources){const i=s.state;i===Ue?s!==e&&(!s.updatedAt||s.updatedAt<Ot)&&Ut(s):i===je&&jt(s,e)}}}function Sn(t){for(let e=0;e<t.observers.length;e+=1){const n=t.observers[e];n.state||(n.state=je,n.pure?$e.push(n):Ke.push(n),n.observers&&Sn(n))}}function Et(t){let e;if(t.sources)for(;t.sources.length;){const n=t.sources.pop(),s=t.sourceSlots.pop(),i=n.observers;if(i&&i.length){const o=i.pop(),r=n.observerSlots.pop();s<i.length&&(o.sourceSlots[r]=s,i[s]=o,n.observerSlots[s]=r)}}if(t.tOwned){for(e=t.tOwned.length-1;e>=0;e--)Et(t.tOwned[e]);delete t.tOwned}if(t.owned){for(e=t.owned.length-1;e>=0;e--)Et(t.owned[e]);t.owned=null}if(t.cleanups){for(e=t.cleanups.length-1;e>=0;e--)t.cleanups[e]();t.cleanups=null}t.state=0}function ps(t){return t instanceof Error?t:new Error(typeof t=="string"?t:"Unknown error",{cause:t})}function An(t,e=pe){throw ps(t)}function ln(t){if(typeof t=="function"&&!t.length)return ln(t());if(Array.isArray(t)){const e=[];for(let n=0;n<t.length;n++){const s=ln(t[n]);Array.isArray(s)?e.push.apply(e,s):e.push(s)}return e}return t}function Cs(t,e){return function(s){let i;return ue(()=>i=Ze(()=>(pe.context=ee(H({},pe.context),{[t]:s.value}),us(()=>s.children))),void 0),i}}const ms=Symbol("fallback");function xn(t){for(let e=0;e<t.length;e++)t[e]()}function ws(t,e,n={}){let s=[],i=[],o=[],r=0,c=e.length>1?[]:null;return rn(()=>xn(o)),()=>{let a=t()||[],d=a.length,u,f;return a[ut],Ze(()=>{let $,U,W,Z,M,k,z,A,O;if(d===0)r!==0&&(xn(o),o=[],s=[],i=[],r=0,c&&(c=[])),n.fallback&&(s=[ms],i[0]=Nt(w=>(o[0]=w,n.fallback())),r=1);else if(r===0){for(i=new Array(d),f=0;f<d;f++)s[f]=a[f],i[f]=Nt(j);r=d}else{for(W=new Array(d),Z=new Array(d),c&&(M=new Array(d)),k=0,z=Math.min(r,d);k<z&&s[k]===a[k];k++);for(z=r-1,A=d-1;z>=k&&A>=k&&s[z]===a[A];z--,A--)W[A]=i[z],Z[A]=o[z],c&&(M[A]=c[z]);for($=new Map,U=new Array(A+1),f=A;f>=k;f--)O=a[f],u=$.get(O),U[f]=u===void 0?-1:u,$.set(O,f);for(u=k;u<=z;u++)O=s[u],f=$.get(O),f!==void 0&&f!==-1?(W[f]=i[u],Z[f]=o[u],c&&(M[f]=c[u]),f=U[f],$.set(O,f)):o[u]();for(f=k;f<d;f++)f in W?(i[f]=W[f],o[f]=Z[f],c&&(c[f]=M[f],c[f](f))):i[f]=Nt(j);i=i.slice(0,r=d),s=a.slice(0)}return i});function j($){if(o[f]=$,c){const[U,W]=L(f);return c[f]=W,e(a[f],U)}return e(a[f])}}}function ie(t,e){return Ze(()=>t(e||{}))}const vs=t=>`Stale read from <${t}>.`;function ot(t){const e="fallback"in t&&{fallback:()=>t.fallback};return Je(ws(()=>t.each,t.children,e||void 0))}function Ye(t){const e=t.keyed,n=Je(()=>t.when,void 0,void 0),s=e?n:Je(n,void 0,{equals:(i,o)=>!i==!o});return Je(()=>{const i=s();if(i){const o=t.children;return typeof o=="function"&&o.length>0?Ze(()=>o(e?i:()=>{if(!Ze(s))throw vs("Show");return n()})):o}return t.fallback},void 0,void 0)}const te=t=>Je(()=>t());function ys(t,e,n){let s=n.length,i=e.length,o=s,r=0,c=0,a=e[i-1].nextSibling,d=null;for(;r<i||c<o;){if(e[r]===n[c]){r++,c++;continue}for(;e[i-1]===n[o-1];)i--,o--;if(i===r){const u=o<s?c?n[c-1].nextSibling:n[o-c]:a;for(;c<o;)t.insertBefore(n[c++],u)}else if(o===c)for(;r<i;)(!d||!d.has(e[r]))&&e[r].remove(),r++;else if(e[r]===n[o-1]&&n[c]===e[i-1]){const u=e[--i].nextSibling;t.insertBefore(n[c++],e[r++].nextSibling),t.insertBefore(n[--o],u),e[i]=n[o]}else{if(!d){d=new Map;let f=c;for(;f<o;)d.set(n[f],f++)}const u=d.get(e[r]);if(u!=null)if(c<u&&u<o){let f=r,j=1,$;for(;++f<i&&f<o&&!(($=d.get(e[f]))==null||$!==u+j);)j++;if(j>u-c){const U=e[r];for(;c<u;)t.insertBefore(n[c++],U)}else t.replaceChild(n[c++],e[r++])}else r++;else e[r++].remove()}}}const In="_$DX_DELEGATE";function bs(t,e,n,s={}){let i;return Nt(o=>{i=o,e===document?t():P(e,t(),e.firstChild?null:void 0,n)},s.owner),()=>{i(),e.textContent=""}}function F(t,e,n,s){let i;const o=()=>{const c=document.createElement("template");return c.innerHTML=t,c.content.firstChild},r=()=>(i||(i=o())).cloneNode(!0);return r.cloneNode=r,r}function pt(t,e=window.document){const n=e[In]||(e[In]=new Set);for(let s=0,i=t.length;s<i;s++){const o=t[s];n.has(o)||(n.add(o),e.addEventListener(o,_s))}}function se(t,e,n){n==null?t.removeAttribute(e):t.setAttribute(e,n)}function it(t,e){e==null?t.removeAttribute("class"):t.className=e}function zt(t,e,n,s){Array.isArray(n)?(t[`$$${e}`]=n[0],t[`$$${e}Data`]=n[1]):t[`$$${e}`]=n}function dn(t,e,n){if(!e)return n?se(t,"style"):e;const s=t.style;if(typeof e=="string")return s.cssText=e;typeof n=="string"&&(s.cssText=n=void 0),n||(n={}),e||(e={});let i,o;for(o in n)e[o]==null&&s.removeProperty(o),delete n[o];for(o in e)i=e[o],i!==n[o]&&(s.setProperty(o,i),n[o]=i);return n}function l(t,e,n){n!=null?t.style.setProperty(e,n):t.style.removeProperty(e)}function Vt(t,e,n){return Ze(()=>t(e,n))}function P(t,e,n,s){if(n!==void 0&&!s&&(s=[]),typeof e!="function")return Wt(t,e,s,n);ue(i=>Wt(t,e(),i,n),s)}function _s(t){let e=t.target;const n=`$$${t.type}`,s=t.target,i=t.currentTarget,o=a=>Object.defineProperty(t,"target",{configurable:!0,value:a}),r=()=>{const a=e[n];if(a&&!e.disabled){const d=e[`${n}Data`];if(d!==void 0?a.call(e,d,t):a.call(e,t),t.cancelBubble)return}return e.host&&typeof e.host!="string"&&!e.host._$host&&e.contains(t.target)&&o(e.host),!0},c=()=>{for(;r()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(t,"currentTarget",{configurable:!0,get(){return e||document}}),t.composedPath){const a=t.composedPath();o(a[0]);for(let d=0;d<a.length-2&&(e=a[d],!!r());d++){if(e._$host){e=e._$host,c();break}if(e.parentNode===i)break}}else c();o(s)}function Wt(t,e,n,s,i){for(;typeof n=="function";)n=n();if(e===n)return n;const o=typeof e,r=s!==void 0;if(t=r&&n[0]&&n[0].parentNode||t,o==="string"||o==="number"){if(o==="number"&&(e=e.toString(),e===n))return n;if(r){let c=n[0];c&&c.nodeType===3?c.data!==e&&(c.data=e):c=document.createTextNode(e),n=Ct(t,n,s,c)}else n!==""&&typeof n=="string"?n=t.firstChild.data=e:n=t.textContent=e}else if(e==null||o==="boolean")n=Ct(t,n,s);else{if(o==="function")return ue(()=>{let c=e();for(;typeof c=="function";)c=c();n=Wt(t,c,n,s)}),()=>n;if(Array.isArray(e)){const c=[],a=n&&Array.isArray(n);if(un(c,e,n,i))return ue(()=>n=Wt(t,c,n,s,!0)),()=>n;if(c.length===0){if(n=Ct(t,n,s),r)return n}else a?n.length===0?Mn(t,c,s):ys(t,n,c):(n&&Ct(t),Mn(t,c));n=c}else if(e.nodeType){if(Array.isArray(n)){if(r)return n=Ct(t,n,s,e);Ct(t,n,null,e)}else n==null||n===""||!t.firstChild?t.appendChild(e):t.replaceChild(e,t.firstChild);n=e}}return n}function un(t,e,n,s){let i=!1;for(let o=0,r=e.length;o<r;o++){let c=e[o],a=n&&n[t.length],d;if(!(c==null||c===!0||c===!1))if((d=typeof c)=="object"&&c.nodeType)t.push(c);else if(Array.isArray(c))i=un(t,c,a)||i;else if(d==="function")if(s){for(;typeof c=="function";)c=c();i=un(t,Array.isArray(c)?c:[c],Array.isArray(a)?a:[a])||i}else t.push(c),i=!0;else{const u=String(c);a&&a.nodeType===3&&a.data===u?t.push(a):t.push(document.createTextNode(u))}}return i}function Mn(t,e,n=null){for(let s=0,i=e.length;s<i;s++)t.insertBefore(e[s],n)}function Ct(t,e,n,s){if(n===void 0)return t.textContent="";const i=s||document.createTextNode("");if(e.length){let o=!1;for(let r=e.length-1;r>=0;r--){const c=e[r];if(i!==c){const a=c.parentNode===t;!o&&!r?a?t.replaceChild(i,c):t.insertBefore(i,n):a&&c.remove()}else o=!0}}else t.insertBefore(i,n);return[i]}const hn="data:image/svg+xml,%3csvg%20width='44'%20height='40'%20viewBox='0%200%2044%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M36.4826%2032.6733C35.865%2033.1908%2035.1941%2033.6282%2034.4904%2033.957L33.74%2034.2621L29.7612%2035.8775C27.1272%2036.125%2024.4866%2036.253%2021.8465%2036.2542C21.235%2036.2549%2020.6236%2036.2482%2020.0127%2036.2348V33.2478L36.4826%2032.6733Z'%20fill='%239EACBA'/%3e%3cpath%20d='M0.438355%2018.8047C0.245806%2020.9769%200.245812%2023.1226%200.438355%2025.2946C0.535045%2025.9265%200.94889%2026.5048%201.4516%2026.8841C2.21046%2027.3799%202.95285%2027.8531%203.87299%2027.9711C4.74581%2027.9246%205.47724%2026.84%205.59973%2026.0356C5.89635%2023.3667%205.89636%2020.7328%205.59973%2018.0638C5.47724%2017.2593%204.74582%2016.1747%203.873%2016.1282C2.95286%2016.2462%202.21046%2016.7194%201.45161%2017.2152C0.948896%2017.5945%200.535045%2018.1729%200.438355%2018.8047Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M43.0616%2018.8047C43.2541%2020.9769%2043.2541%2023.1226%2043.0616%2025.2946C42.9649%2025.9265%2042.551%2026.5048%2042.0483%2026.8841C41.2895%2027.3799%2040.5471%2027.8531%2039.6269%2027.9711C38.7541%2027.9246%2038.0227%2026.84%2037.9002%2026.0356C37.6036%2023.3667%2037.6036%2020.7328%2037.9002%2018.0638C38.0227%2017.2593%2038.7541%2016.1747%2039.6269%2016.1282C40.5471%2016.2462%2041.2895%2016.7194%2042.0483%2017.2152C42.551%2017.5945%2042.9649%2018.1729%2043.0616%2018.8047Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M25.8389%208.85439H21.8867V7.22803H21.9359C22.2919%207.22803%2022.6365%207.24805%2022.9641%207.28506C24.6208%207.47311%2025.8389%208.10461%2025.8389%208.85439Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M22.9637%208.85422V11.641H20.9072V3.74219H21.8863V8.85422H22.9637Z'%20fill='%23171A3B'/%3e%3cpath%20d='M25.8393%208.85439C25.8393%209.60419%2024.6212%2010.2357%2022.9645%2010.4237C22.6369%2010.4607%2022.2923%2010.4808%2021.9362%2010.4808C21.5801%2010.4808%2021.2356%2010.4607%2020.908%2010.4237C19.2513%2010.2357%2018.0332%209.60419%2018.0332%208.85439C18.0332%208.104%2019.2513%207.47311%2020.908%207.28506C21.2204%207.24987%2021.5486%207.22985%2021.8871%207.22803V8.85439H25.8393Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M21.8871%208.85499V35.245H21.8465C21.235%2035.2456%2020.6235%2035.2389%2020.0127%2035.2256C17.1712%2035.1637%2014.331%2034.9538%2011.5017%2034.5856C7.74793%2034.0979%204.29685%2030.281%203.74784%2026.4459C3.32624%2023.5019%203.32624%2020.598%203.74784%2017.6541C4.29684%2013.819%207.74793%2010.0021%2011.5017%209.5144C14.9401%209.06731%2018.393%208.85317%2021.8465%208.85499H21.8871Z'%20fill='%23E7E9EB'/%3e%3cpath%20d='M40.114%2026.4452C39.7718%2028.7455%2038.3748%2031.0864%2036.4821%2032.6728C35.8646%2033.1902%2035.1936%2033.6276%2034.49%2033.9564C34.2437%2034.0716%2033.9931%2034.1736%2033.7396%2034.2615C33.2888%2034.4168%2032.8272%2034.5272%2032.3601%2034.5848C28.8781%2035.0149%2025.3827%2035.2406%2021.8867%2035.2442V8.85425C25.3821%208.85789%2028.8787%209.08355%2032.3601%209.51366C36.1382%209.98014%2039.5516%2013.8729%2040.114%2017.6533C40.5489%2020.5785%2040.5489%2023.5206%2040.114%2026.4452Z'%20fill='%23D1D3D4'/%3e%3cpath%20d='M27.1787%2013.3372C28.7256%2013.4409%2030.2804%2013.5888%2031.834%2013.7805C33.5282%2013.9898%2035.5612%2016.263%2035.8623%2018.2854C36.2336%2020.7829%2036.2336%2023.3159%2035.8623%2025.8127C35.6791%2027.0417%2034.8396%2028.4416%2033.7217%2029.3782C33.3772%2029.6675%2033.0233%2029.8974%2032.6709%2030.0618C32.5593%2030.1145%2032.4464%2030.1603%2032.3359%2030.1985C32.1609%2030.259%2031.9925%2030.2992%2031.835%2030.3186C28.467%2030.7347%2025.0907%2030.9456%2021.7998%2030.9456C21.2369%2030.9456%2020.667%2030.9391%2020.1064%2030.927C17.3961%2030.8675%2014.6875%2030.6643%2012.0566%2030.3215C11.6382%2030.2669%2011.1776%2030.0829%2010.7197%2029.7961L27.1787%2013.3372ZM21.7988%2013.1536C22.397%2013.1536%2022.9986%2013.1605%2023.6016%2013.175H23.6006C24.7855%2013.2017%2025.9795%2013.2559%2027.1777%2013.3372L10.7188%2029.7961C10.3196%2029.5462%209.92292%2029.2179%209.55957%2028.8303C9.2952%2028.5484%209.05604%2028.2435%208.84863%2027.927V27.926C8.40193%2027.2445%208.10127%2026.5082%208.00488%2025.8352C7.82534%2024.5778%207.73289%2023.3374%207.73047%2022.0969C7.72805%2020.825%207.8205%2019.5531%208.00488%2018.2629C8.14621%2017.2772%208.72802%2016.1571%209.56152%2015.2678C10.341%2014.4363%2011.2736%2013.8785%2012.0566%2013.7766C13.5174%2013.5867%2014.9995%2013.4403%2016.4912%2013.3372C18.2497%2013.2152%2020.0239%2013.1536%2021.7988%2013.1536Z'%20fill='%2333383F'/%3e%3cpath%20d='M21.8877%200.164557V4.90412C21.5382%204.90412%2021.207%204.8289%2020.9086%204.69301C20.0878%204.32054%2019.5176%203.49371%2019.5176%202.53403C19.5176%201.22554%2020.5786%200.164557%2021.8877%200.164557Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M29.7612%2035.877L20.0127%2039.8352V36.2343C20.6236%2036.2476%2021.235%2036.2543%2021.8465%2036.2537C24.4866%2036.2525%2027.1272%2036.1245%2029.7612%2035.877Z'%20fill='%23D1D3D4'/%3e%3cpath%20d='M24.2562%202.53403C24.2562%203.45488%2023.7309%204.2532%2022.9641%204.64569C22.6414%204.8107%2022.275%204.90411%2021.8867%204.90411V0.164551C23.1952%200.164551%2024.2562%201.22553%2024.2562%202.53403Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M22.9641%204.646V7.28541C22.6365%207.24841%2022.2919%207.22839%2021.9359%207.22839H21.8867V4.90441C22.275%204.90441%2022.6414%204.811%2022.9641%204.646Z'%20fill='%2301052B'/%3e%3cpath%20d='M15.4282%2025.5157C14.6141%2025.6903%2014.1949%2025.6903%2013.3808%2025.5157C12.8325%2025.2805%2012.4157%2024.7097%2012.2918%2024.124C12.0811%2022.4009%2012.0811%2020.7336%2012.2918%2019.0104C12.4157%2018.4248%2012.8325%2017.854%2013.3808%2017.6188C14.1949%2017.4441%2014.6141%2017.4441%2015.4282%2017.6188C15.9765%2017.854%2016.3933%2018.4248%2016.5173%2019.0104C16.7279%2020.7336%2016.7279%2022.4009%2016.5173%2024.124C16.3933%2024.7097%2015.9765%2025.2805%2015.4282%2025.5157Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M29.4946%2025.5157C28.6805%2025.6903%2028.2613%2025.6903%2027.4472%2025.5157C26.8989%2025.2805%2026.4821%2024.7097%2026.3582%2024.124C26.1475%2022.4009%2026.1475%2020.7336%2026.3582%2019.0104C26.4821%2018.4248%2026.8989%2017.854%2027.4472%2017.6188C28.2613%2017.4441%2028.6805%2017.4441%2029.4946%2017.6188C30.0429%2017.854%2030.4597%2018.4248%2030.5837%2019.0104C30.7943%2020.7336%2030.7943%2022.4009%2030.5837%2024.124C30.4597%2024.7097%2030.0429%2025.2805%2029.4946%2025.5157Z'%20fill='%2351D6A1'/%3e%3cpath%20d='M18.9688%2024.187H23.91C24.2911%2024.187%2024.6004%2024.5023%2024.6004%2024.8906V24.9011C24.6004%2026.6789%2023.184%2028.1222%2021.4394%2028.1222C19.6948%2028.1222%2018.2783%2026.6789%2018.2783%2024.9011V24.8906C18.2783%2024.5023%2018.5877%2024.187%2018.9688%2024.187Z'%20fill='%2351D6A1'/%3e%3c/svg%3e",Ss="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%23EFEFEF'/%3e%3cpath%20d='M20.667%209.83325L7.33366%209.83325'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M16.5%2014L7.33333%2014'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M11.5%2018.1667H7.33333'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",As="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.5977%2016.0232C11.8613%2015.7596%2012.2882%2015.7596%2012.5518%2016.0232C12.8152%2016.2868%2012.8153%2016.7137%2012.5518%2016.9773L7.87109%2021.658H11.1221C11.4949%2021.658%2011.7969%2021.9609%2011.7969%2022.3337C11.7967%2022.7064%2011.4948%2023.0085%2011.1221%2023.0085H6.24121C5.86853%2023.0085%205.56658%2022.7064%205.56641%2022.3337V17.4529C5.56641%2017.0801%205.86842%2016.7771%206.24121%2016.7771C6.614%2016.7771%206.91602%2017.0801%206.91602%2017.4529V20.7039L11.5977%2016.0232ZM22.9082%204.99194C23.2808%204.99212%2023.583%205.29406%2023.583%205.66675V10.5476C23.583%2010.9203%2023.2808%2011.2222%2022.9082%2011.2224C22.5354%2011.2224%2022.2324%2010.9204%2022.2324%2010.5476V7.29663L17.5518%2011.9773C17.2882%2012.2408%2016.8613%2012.2407%2016.5977%2011.9773C16.3341%2011.7137%2016.3341%2011.2868%2016.5977%2011.0232L21.2783%206.34155H18.0273C17.6546%206.34155%2017.3516%206.03954%2017.3516%205.66675C17.3516%205.29396%2017.6546%204.99194%2018.0273%204.99194H22.9082Z'%20fill='%23858B93'%20stroke='%23858B93'%20stroke-width='0.1'/%3e%3c/svg%3e",xs="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.0737%2015.8249C12.4464%2015.8249%2012.7493%2016.127%2012.7495%2016.4997V21.3805C12.7495%2021.7533%2012.4465%2022.0563%2012.0737%2022.0563C11.7011%2022.0561%2011.3989%2021.7532%2011.3989%2021.3805V18.1296L6.71826%2022.8102C6.45466%2023.0738%206.02679%2023.0738%205.76318%2022.8102C5.49996%2022.5466%205.49985%2022.1196%205.76318%2021.8561L10.4438%2017.1755H7.19287C6.82019%2017.1753%206.51807%2016.8724%206.51807%2016.4997C6.51824%2016.1271%206.82029%2015.825%207.19287%2015.8249H12.0737ZM22.4302%205.18913C22.6937%204.9258%2023.1207%204.92591%2023.3843%205.18913C23.6479%205.45274%2023.6479%205.88061%2023.3843%206.14421L18.7046%2010.8249H21.9546C22.3273%2010.8249%2022.6302%2011.127%2022.6304%2011.4997C22.6304%2011.8725%2022.3274%2012.1755%2021.9546%2012.1755H17.0737C16.7011%2012.1753%2016.3989%2011.8724%2016.3989%2011.4997V6.61882C16.3991%206.24624%2016.7012%205.94419%2017.0737%205.94402C17.4464%205.94402%2017.7494%206.24613%2017.7495%206.61882V9.8698L22.4302%205.18913Z'%20fill='%23858B93'%20stroke='%23858B93'%20stroke-width='0.1'/%3e%3c/svg%3e",Is="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.55273%2013.6665C5.55273%2013.3904%205.95149%2013.1665%206.44338%2013.1665L20.6139%2013.1665C21.1058%2013.1665%2021.5046%2013.3904%2021.5046%2013.6665C21.5046%2013.9426%2021.1058%2014.1665%2020.6139%2014.1665H6.44338C5.95149%2014.1665%205.55273%2013.9426%205.55273%2013.6665Z'%20stroke='%23858B93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",kn="data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.2391%208.55011C9.85199%208.16298%209.22434%208.16298%208.83722%208.55011C8.45009%208.93723%208.45009%209.56488%208.83722%209.95201L15.885%2016.9998L8.83728%2024.0476C8.45016%2024.4347%208.45016%2025.0624%208.83728%2025.4495C9.22441%2025.8366%209.85206%2025.8366%2010.2392%2025.4495L17.2869%2018.4017L24.3346%2025.4494C24.7217%2025.8365%2025.3494%2025.8365%2025.7365%2025.4494C26.1236%2025.0623%2026.1236%2024.4346%2025.7365%2024.0475L18.6888%2016.9998L25.7366%209.95207C26.1237%209.56495%2026.1237%208.9373%2025.7366%208.55017C25.3495%208.16305%2024.7218%208.16305%2024.3347%208.55017L17.2869%2015.5979L10.2391%208.55011Z'%20fill='%23858B93'/%3e%3c/svg%3e",Ms="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.9912%202.92969C11.4392%202.92969%2010.9912%203.37769%2010.9912%203.92969V10.9297H3.99121C3.43921%2010.9297%202.99121%2011.3777%202.99121%2011.9297C2.99121%2012.4817%203.43921%2012.9297%203.99121%2012.9297H10.9912V19.9297C10.9912%2020.4817%2011.4392%2020.9297%2011.9912%2020.9297C12.5432%2020.9297%2012.9912%2020.4817%2012.9912%2019.9297V12.9297H19.9912C20.5432%2012.9297%2020.9912%2012.4817%2020.9912%2011.9297C20.9912%2011.3777%2020.5432%2010.9297%2019.9912%2010.9297H12.9912V3.92969C12.9912%203.37769%2012.5432%202.92969%2011.9912%202.92969Z'%20fill='%23858B93'/%3e%3c/svg%3e",ks="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.6464%2010.3132C15.8417%2010.1179%2016.1583%2010.1179%2016.3536%2010.3132L20.3536%2014.3132C20.5488%2014.5085%2020.5488%2014.825%2020.3536%2015.0203C20.1583%2015.2156%2019.8417%2015.2156%2019.6464%2015.0203L16.5%2011.8739L16.5%2021.3334C16.5%2021.6096%2016.2761%2021.8334%2016%2021.8334C15.7239%2021.8334%2015.5%2021.6096%2015.5%2021.3334L15.5%2011.8739L12.3536%2015.0203C12.1583%2015.2156%2011.8417%2015.2156%2011.6464%2015.0203C11.4512%2014.825%2011.4512%2014.5085%2011.6464%2014.3132L15.6464%2010.3132Z'%20fill='%23858B93'/%3e%3c/svg%3e",Es="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%231AAF74'%20fill-opacity='0.1'/%3e%3cpath%20d='M20.667%209.83325L7.33366%209.83325'%20stroke='%231AAF74'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M16.5%2014L7.33333%2014'%20stroke='%231AAF74'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M11.5%2018.1667H7.33333'%20stroke='%231AAF74'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Ts="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='6.5'%20r='4'%20stroke='%23858B93'%20stroke-width='1.3'/%3e%3cellipse%20cx='12'%20cy='17.5'%20rx='7'%20ry='4'%20stroke='%23858B93'%20stroke-width='1.3'/%3e%3c/svg%3e",Rs="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2012.5C2%207.78595%202%205.42893%203.46447%203.96447C4.92893%202.5%207.28595%202.5%2012%202.5C16.714%202.5%2019.0711%202.5%2020.5355%203.96447C22%205.42893%2022%207.78595%2022%2012.5C22%2017.214%2022%2019.5711%2020.5355%2021.0355C19.0711%2022.5%2016.714%2022.5%2012%2022.5C7.28595%2022.5%204.92893%2022.5%203.46447%2021.0355C2%2019.5711%202%2017.214%202%2012.5Z'%20stroke='%23858B93'%20stroke-width='1.3'/%3e%3cpath%20d='M7%2014.5L8.79689%2012.3437C9.50894%2011.4893%209.86496%2011.062%2010.3333%2011.062C10.8017%2011.062%2011.1577%2011.4893%2011.8698%2012.3437L12.1302%2012.6563C12.8423%2013.5107%2013.1983%2013.938%2013.6667%2013.938C14.135%2013.938%2014.4911%2013.5107%2015.2031%2012.6563L17%2010.5'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Ps="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%2011V12.5C22%2017.214%2022%2019.5711%2020.5355%2021.0355C19.0711%2022.5%2016.714%2022.5%2012%2022.5C7.28595%2022.5%204.92893%2022.5%203.46447%2021.0355C2%2019.5711%202%2017.214%202%2012.5C2%207.78595%202%205.42893%203.46447%203.96447C4.92893%202.5%207.28595%202.5%2012%202.5H13.5'%20stroke='%23858B93'%20stroke-width='1.3'%20stroke-linecap='round'/%3e%3cpath%20d='M16.652%203.95506L17.3009%203.30624C18.3759%202.23125%2020.1188%202.23125%2021.1938%203.30624C22.2687%204.38124%2022.2687%206.12415%2021.1938%207.19914L20.5449%207.84795M16.652%203.95506C16.652%203.95506%2016.7331%205.33379%2017.9497%206.55032C19.1662%207.76685%2020.5449%207.84795%2020.5449%207.84795M16.652%203.95506L10.6872%209.91993C10.2832%2010.3239%2010.0812%2010.5259%209.90743%2010.7487C9.70249%2011.0114%209.52679%2011.2957%209.38344%2011.5965C9.26191%2011.8515%209.17157%2012.1225%208.99089%2012.6646L8.41242%2014.4M20.5449%207.84795L14.5801%2013.8128C14.1761%2014.2168%2013.9741%2014.4188%2013.7513%2014.5926C13.4886%2014.7975%2013.2043%2014.9732%2012.9035%2015.1166C12.6485%2015.2381%2012.3775%2015.3284%2011.8354%2015.5091L10.1%2016.0876M10.1%2016.0876L8.97709%2016.4619C8.71035%2016.5508%208.41626%2016.4814%208.21744%2016.2826C8.01862%2016.0837%207.9492%2015.7897%208.03811%2015.5229L8.41242%2014.4M10.1%2016.0876L8.41242%2014.4'%20stroke='%23858B93'%20stroke-width='1.5'/%3e%3c/svg%3e",$s="data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.58366%202.79175C5.55658%202.79175%202.29199%206.05634%202.29199%2010.0834C2.29199%2014.1105%205.55658%2017.3751%209.58366%2017.3751C13.6107%2017.3751%2016.8753%2014.1105%2016.8753%2010.0834C16.8753%206.05634%2013.6107%202.79175%209.58366%202.79175ZM1.04199%2010.0834C1.04199%205.36598%204.86623%201.54175%209.58366%201.54175C14.3011%201.54175%2018.1253%205.36598%2018.1253%2010.0834C18.1253%2012.2172%2017.3429%2014.1682%2016.0494%2015.6653L18.7756%2018.3915C19.0197%2018.6356%2019.0197%2019.0313%2018.7756%2019.2754C18.5315%2019.5194%2018.1358%2019.5194%2017.8917%2019.2754L15.1655%2016.5491C13.6684%2017.8427%2011.7174%2018.6251%209.58366%2018.6251C4.86623%2018.6251%201.04199%2014.8008%201.04199%2010.0834Z'%20fill='%23858B93'/%3e%3c/svg%3e",Ds="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%2012.5C17%2011.3954%2017.8954%2010.5%2019%2010.5C20.1046%2010.5%2021%2011.3954%2021%2012.5C21%2013.6046%2020.1046%2014.5%2019%2014.5C17.8954%2014.5%2017%2013.6046%2017%2012.5Z'%20fill='%23858B93'/%3e%3cpath%20d='M10%2012.5C10%2011.3954%2010.8954%2010.5%2012%2010.5C13.1046%2010.5%2014%2011.3954%2014%2012.5C14%2013.6046%2013.1046%2014.5%2012%2014.5C10.8954%2014.5%2010%2013.6046%2010%2012.5Z'%20fill='%23858B93'/%3e%3cpath%20d='M3%2012.5C3%2011.3954%203.89543%2010.5%205%2010.5C6.10457%2010.5%207%2011.3954%207%2012.5C7%2013.6046%206.10457%2014.5%205%2014.5C3.89543%2014.5%203%2013.6046%203%2012.5Z'%20fill='%23858B93'/%3e%3c/svg%3e",Bs="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%208.5C7%205.73858%209.23858%203.5%2012%203.5C14.7614%203.5%2017%205.73858%2017%208.5V11.5C17%2014.2614%2014.7614%2016.5%2012%2016.5C9.23858%2016.5%207%2014.2614%207%2011.5V8.5Z'%20stroke='%23858B93'%20stroke-width='1.5'/%3e%3cpath%20d='M11%208.5H13'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M10%2011.5L14%2011.5'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M20%2010.5V11.5C20%2015.9183%2016.4183%2019.5%2012%2019.5C7.58172%2019.5%204%2015.9183%204%2011.5V10.5'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M12%2019.5V22.5'%20stroke='%23858B93'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",En="data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.25%202.49258C13.5179%201.2247%2015.5735%201.2247%2016.8414%202.49258C18.1093%203.76046%2018.1093%205.8161%2016.8414%207.08398L10.5131%2013.4123C10.1564%2013.769%209.9386%2013.9869%209.69583%2014.1762C9.40981%2014.3993%209.10033%2014.5906%208.77287%2014.7466C8.49494%2014.8791%208.20269%2014.9765%207.72413%2015.136L5.49692%2015.8784L4.9622%2016.0566C4.48358%2016.2162%203.95589%2016.0916%203.59915%2015.7349C3.2424%2015.3781%203.11783%2014.8504%203.27737%2014.3718L4.19801%2011.6099C4.3575%2011.1313%204.4549%2010.8391%204.58736%2010.5611C4.74342%2010.2337%204.93469%209.9242%205.15778%209.63817C5.34714%209.3954%205.56498%209.17759%205.92169%208.82091L12.25%202.49258ZM5.46809%2014.5704L4.76362%2013.8659L5.37064%2012.0449C5.54737%2011.5147%205.62037%2011.2991%205.71577%2011.0989C5.83276%2010.8534%205.97616%2010.6214%206.14342%2010.4069C6.27979%2010.2321%206.43997%2010.0704%206.83516%209.67521L11.7443%204.76607C11.9469%205.27439%2012.2898%205.88791%2012.8679%206.46606C13.4461%207.04422%2014.0596%207.38707%2014.5679%207.5897L9.65879%2012.4988C9.2636%2012.894%209.1019%2013.0542%208.92706%2013.1906C8.71262%2013.3578%208.4806%2013.5012%208.2351%2013.6182C8.03493%2013.7136%207.81935%2013.7866%207.28915%2013.9634L5.46809%2014.5704ZM15.564%206.59368C15.4608%206.57102%2015.3317%206.53694%2015.1851%206.48604C14.7817%206.34611%2014.2511%206.08149%2013.7518%205.58218C13.2525%205.08287%2012.9879%204.5523%2012.848%204.14895C12.7971%204.00226%2012.763%203.87323%2012.7403%203.77004L13.1339%203.37647C13.9136%202.59674%2015.1778%202.59674%2015.9575%203.37647C16.7373%204.15619%2016.7373%205.42038%2015.9575%206.2001L15.564%206.59368ZM3.209%2018.8333C3.209%2018.4882%203.48882%2018.2083%203.834%2018.2083H17.1673V19.4583H3.834C3.48882%2019.4583%203.209%2019.1785%203.209%2018.8333Z'%20fill='%23858B93'/%3e%3c/svg%3e",Tn="data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.4994%202.79166C9.68396%202.79166%208.9886%203.31251%208.7309%204.0416C8.61587%204.36705%208.2588%204.53763%207.93335%204.4226C7.6079%204.30757%207.43733%203.95049%207.55235%203.62504C7.98105%202.41215%209.13775%201.54166%2010.4994%201.54166C11.861%201.54166%2013.0177%202.41215%2013.4464%203.62504C13.5614%203.95049%2013.3908%204.30757%2013.0654%204.4226C12.74%204.53763%2012.3829%204.36705%2012.2678%204.0416C12.0101%203.31251%2011.3148%202.79166%2010.4994%202.79166Z'%20fill='%23858B93'/%3e%3cpath%20d='M2.79102%205.49999C2.79102%205.15481%203.07084%204.87499%203.41602%204.87499H17.5828C17.9279%204.87499%2018.2078%205.15481%2018.2078%205.49999C18.2078%205.84517%2017.9279%206.12499%2017.5828%206.12499H3.41602C3.07084%206.12499%202.79102%205.84517%202.79102%205.49999Z'%20fill='%23858B93'/%3e%3cpath%20d='M5.42859%207.54175C5.40563%207.19733%205.10781%206.93675%204.7634%206.95971C4.41898%206.98267%204.15839%207.28048%204.18135%207.6249L4.56756%2013.418C4.63881%2014.487%204.69636%2015.3504%204.83134%2016.028C4.97167%2016.7324%205.21035%2017.3208%205.70335%2017.782C6.19634%2018.2432%206.7993%2018.4422%207.51151%2018.5354C8.19654%2018.625%209.06191%2018.625%2010.1332%2018.625H10.8656C11.9369%2018.625%2012.8023%2018.625%2013.4873%2018.5354C14.1995%2018.4422%2014.8025%2018.2432%2015.2955%2017.782C15.7885%2017.3208%2016.0272%2016.7324%2016.1675%2016.028C16.3025%2015.3504%2016.36%2014.487%2016.4313%2013.418L16.8175%207.6249C16.8404%207.28048%2016.5798%206.98267%2016.2354%206.95971C15.891%206.93675%2015.5932%207.19733%2015.5702%207.54175L15.187%2013.291C15.1121%2014.4142%2015.0587%2015.1957%2014.9416%2015.7837C14.828%2016.3541%2014.6693%2016.656%2014.4415%2016.8692C14.2137%2017.0824%2013.9019%2017.2205%2013.3252%2017.296C12.7307%2017.3737%2011.9474%2017.375%2010.8216%2017.375H10.1772C9.05148%2017.375%208.26814%2017.3737%207.67364%2017.296C7.09697%2017.2205%206.78517%2017.0824%206.55733%2016.8692C6.32948%2016.656%206.17087%2016.3541%206.05725%2015.7837C5.94011%2015.1957%205.88675%2014.4142%205.81187%2013.291L5.42859%207.54175Z'%20fill='%23858B93'/%3e%3cpath%20d='M8.3539%209.04476C8.69736%209.01041%209.00364%209.261%209.03799%209.60447L9.45465%2013.7711C9.489%2014.1146%209.23841%2014.4209%208.89494%2014.4552C8.55148%2014.4896%208.2452%2014.239%208.21086%2013.8955L7.79419%209.72885C7.75984%209.38538%208.01043%209.0791%208.3539%209.04476Z'%20fill='%23858B93'/%3e%3cpath%20d='M13.2047%209.72885C13.239%209.38538%2012.9884%209.0791%2012.6449%209.04476C12.3015%209.01041%2011.9952%209.261%2011.9609%209.60447L11.5442%2013.7711C11.5098%2014.1146%2011.7604%2014.4209%2012.1039%2014.4552C12.4474%2014.4896%2012.7536%2014.239%2012.788%2013.8955L13.2047%209.72885Z'%20fill='%23858B93'/%3e%3c/svg%3e",Hs="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='white'/%3e%3cpath%20d='M16%2022.6666L16%209.33331M16%209.33331L21%2014.3333M16%209.33331L11%2014.3333'%20stroke='%231AAF74'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ls="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2361_172518)'%3e%3cpath%20d='M15.6005%2011.6509C15.9284%2011.2327%2016.0856%2010.7843%2016.0656%2010.3226C16.0455%209.81401%2015.818%209.41585%2015.6306%209.1716C15.8481%208.62956%2015.9317%207.77636%2015.2057%207.11388C14.6737%206.62873%2013.7703%206.41125%2012.5189%206.47147C11.639%206.51162%2010.9029%206.67557%2010.8728%206.68226H10.8694C10.7021%206.71238%2010.5248%206.74918%2010.3441%206.78933C10.3307%206.57519%2010.3675%206.0432%2010.7623%204.84537C11.2308%203.42003%2011.204%202.32927%2010.6754%201.59987C10.1199%200.833663%209.23328%200.773438%208.9723%200.773438C8.72136%200.773438%208.49049%200.87716%208.32655%201.06787C7.95515%201.49949%207.99865%202.29581%208.04549%202.66386C7.60384%203.8483%206.36586%206.75253%205.3186%207.55888C5.29852%207.57227%205.2818%207.589%205.26507%207.60572C4.95724%207.93028%204.7498%208.28159%204.60927%208.58941C4.41187%208.48235%204.18769%208.42212%203.94679%208.42212H1.9058C1.13625%208.42212%200.513916%209.0478%200.513916%209.81401V15.2511C0.513916%2016.0206%201.1396%2016.6429%201.9058%2016.6429H3.94679C4.24457%2016.6429%204.52228%2016.5493%204.7498%2016.3887L5.53608%2016.4823C5.65653%2016.4991%207.7979%2016.7701%209.99614%2016.7266C10.3943%2016.7567%2010.769%2016.7734%2011.117%2016.7734C11.7159%2016.7734%2012.2379%2016.7266%2012.6728%2016.6329C13.6967%2016.4154%2014.396%2015.9805%2014.7506%2015.3414C15.0217%2014.8529%2015.0217%2014.3677%2014.9782%2014.0599C15.644%2013.4577%2015.7611%2012.7918%2015.7377%2012.3234C15.7243%2012.0524%2015.6641%2011.8215%2015.6005%2011.6509ZM1.9058%2015.7396C1.63479%2015.7396%201.4173%2015.5187%201.4173%2015.2511V9.81066C1.4173%209.53964%201.63813%209.32216%201.9058%209.32216H3.94679C4.21781%209.32216%204.43529%209.54299%204.43529%209.81066V15.2477C4.43529%2015.5187%204.21446%2015.7362%203.94679%2015.7362H1.9058V15.7396ZM14.7439%2011.2594C14.6034%2011.4066%2014.5767%2011.6308%2014.6837%2011.8048C14.6837%2011.8082%2014.8209%2012.0424%2014.8376%2012.3636C14.8611%2012.8019%2014.6503%2013.19%2014.2086%2013.5212C14.0513%2013.6417%2013.9878%2013.8491%2014.0547%2014.0365C14.0547%2014.0399%2014.1986%2014.4815%2013.9644%2014.8997C13.7402%2015.3013%2013.2416%2015.589%2012.4855%2015.7496C11.8799%2015.8801%2011.0568%2015.9035%2010.0463%2015.8232C10.0329%2015.8232%2010.0162%2015.8232%209.99949%2015.8232C7.84809%2015.87%205.67326%2015.589%205.64984%2015.5856H5.6465L5.30856%2015.5455C5.32864%2015.4518%205.33868%2015.3514%205.33868%2015.2511V9.81066C5.33868%209.66679%205.31525%209.52626%205.2751%209.39577C5.33533%209.1716%205.50262%208.67306%205.89744%208.24813C7.39974%207.057%208.86858%203.0386%208.93215%202.86461C8.95892%202.79435%208.96561%202.71739%208.95223%202.64044C8.89535%202.2657%208.91542%201.80731%208.99572%201.67013C9.17305%201.67348%209.65152%201.72367%209.93926%202.12183C10.2805%202.5936%2010.2672%203.43676%209.89911%204.55428C9.337%206.25734%209.29016%207.15403%209.73516%207.54885C9.95599%207.74625%2010.2504%207.75629%2010.4646%207.67933C10.6687%207.63249%2010.8627%207.59234%2011.0467%207.56223C11.0601%207.55888%2011.0769%207.55554%2011.0902%207.55219C12.1174%207.32802%2013.9577%207.19084%2014.5967%207.77302C15.1388%208.26821%2014.754%208.924%2014.7105%208.99427C14.5867%209.18163%2014.6235%209.42588%2014.7908%209.57645C14.7941%209.57979%2015.1455%209.91104%2015.1622%2010.356C15.1756%2010.6538%2015.035%2010.9583%2014.7439%2011.2594Z'%20fill='%23858B93'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2361_172518'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(0.290527%200.773438)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Fs="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2361_172521)'%3e%3cpath%20d='M0.980564%205.89598C0.652667%206.31422%200.495411%206.76256%200.515487%207.2243C0.535562%207.73287%200.763082%208.13103%200.950451%208.37528C0.732968%208.91731%200.649323%209.77051%201.37538%2010.433C1.90737%2010.9181%202.81076%2011.1356%204.06212%2011.0754C4.94209%2011.0353%205.67818%2010.8713%205.70829%2010.8646H5.71164C5.87893%2010.8345%206.05626%2010.7977%206.23694%2010.7575C6.25033%2010.9717%206.21352%2011.5037%205.81871%2012.7015C5.35028%2014.1268%205.37705%2015.2176%205.9057%2015.947C6.46112%2016.7132%207.34777%2016.7734%207.60875%2016.7734C7.85969%2016.7734%208.09056%2016.6697%208.25451%2016.479C8.6259%2016.0474%208.5824%2015.2511%208.53556%2014.883C8.97722%2013.6986%2010.2152%2010.7943%2011.2625%209.98799C11.2825%209.97461%2011.2993%209.95788%2011.316%209.94115C11.6238%209.6166%2011.8313%209.26528%2011.9718%208.95746C12.1692%209.06453%2012.3934%209.12475%2012.6343%209.12475H14.6753C15.4448%209.12475%2016.0671%208.49907%2016.0671%207.73287V2.29581C16.0671%201.52626%2015.4415%200.903928%2014.6753%200.903928H12.6343C12.3365%200.903928%2012.0588%200.997612%2011.8313%201.15821L11.045%201.06453C10.9245%201.0478%208.78316%200.776784%206.58491%200.820281C6.18675%200.790168%205.81201%200.773438%205.46404%200.773438C4.86513%200.773438%204.34317%200.82028%203.90821%200.913965C2.88437%201.13145%202.18508%201.56641%201.83042%202.20547C1.5594%202.69397%201.5594%203.17913%201.6029%203.48695C0.937067%204.0892%200.819963%204.75504%200.843384%205.22346C0.856767%205.49447%200.916992%205.72534%200.980564%205.89598ZM14.6753%201.80732C14.9463%201.80732%2015.1638%202.02814%2015.1638%202.29581V7.73621C15.1638%208.00723%2014.9429%208.22471%2014.6753%208.22471H12.6343C12.3632%208.22471%2012.1458%208.00389%2012.1458%207.73621V2.29916C12.1458%202.02814%2012.3666%201.81066%2012.6343%201.81066H14.6753V1.80732ZM1.83711%206.28745C1.97764%206.14023%202.0044%205.91606%201.89734%205.74207C1.89734%205.73872%201.76015%205.50451%201.74343%205.18331C1.72%204.745%201.93079%204.35688%202.37245%204.02563C2.52971%203.90518%202.59328%203.69774%202.52636%203.51037C2.52636%203.50702%202.38249%203.06537%202.6167%202.64713C2.84087%202.24562%203.33941%201.95788%204.09558%201.79728C4.70118%201.66679%205.52427%201.64337%206.53473%201.72367C6.54811%201.72367%206.56484%201.72367%206.58157%201.72367C8.73297%201.67683%2010.9078%201.95788%2010.9312%201.96123H10.9346L11.2725%202.00138C11.2524%202.09506%2011.2424%202.19544%2011.2424%202.29581V7.73621C11.2424%207.88009%2011.2658%208.02061%2011.306%208.1511C11.2457%208.37528%2011.0784%208.87381%2010.6836%209.29874C9.18132%2010.4899%207.71248%2014.5083%207.6489%2014.6823C7.62214%2014.7525%207.61545%2014.8295%207.62883%2014.9064C7.68571%2015.2812%207.66563%2015.7396%207.58533%2015.8767C7.408%2015.8734%206.92954%2015.8232%206.64179%2015.425C6.30051%2014.9533%206.3139%2014.1101%206.68194%2012.9926C7.24405%2011.2895%207.29089%2010.3928%206.84589%209.99803C6.62506%209.80062%206.33063%209.79059%206.11649%209.86754C5.91239%209.91438%205.71833%209.95453%205.53431%209.98465C5.52092%209.98799%205.50419%209.99134%205.49081%209.99468C4.46363%2010.2189%202.62339%2010.356%201.98433%209.77386C1.4423%209.27867%201.82707%208.62287%201.87057%208.55261C1.99437%208.36524%201.95756%208.12099%201.79027%207.97043C1.78692%207.96708%201.4356%207.63584%201.41887%207.19084C1.40549%206.89305%201.54602%206.58858%201.83711%206.28745Z'%20fill='%23858B93'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2361_172521'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='matrix(-1%200%200%20-1%2016.2905%2016.7734)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Os="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2361_92626)'%3e%3cpath%20d='M15.3092%2011.4575C15.6371%2011.0393%2015.7944%2010.591%2015.7743%2010.1292C15.7542%209.62065%2015.5267%209.22249%2015.3393%208.97824C15.5568%208.4362%2015.6405%207.58301%2014.9144%206.92052C14.3824%206.43537%2013.479%206.21789%2012.2277%206.27811C11.3477%206.31826%2010.6116%206.48221%2010.5815%206.4889H10.5782C10.4109%206.51902%2010.2335%206.55582%2010.0529%206.59597C10.0395%206.38183%2010.0763%205.84984%2010.4711%204.65201C10.9395%203.22667%2010.9127%202.13591%2010.3841%201.40651C9.82868%200.640304%208.94202%200.580078%208.68104%200.580078C8.4301%200.580078%208.19923%200.6838%208.03529%200.874516C7.66389%201.30613%207.70739%202.10245%207.75423%202.4705C7.31258%203.65494%206.0746%206.55917%205.02734%207.36552C5.00726%207.37891%204.99054%207.39564%204.97381%207.41237C4.66599%207.73692%204.45854%208.08823%204.31801%208.39605C4.12061%208.28899%203.89643%208.22876%203.65553%208.22876H1.61454C0.84499%208.22876%200.222656%208.85444%200.222656%209.62065V15.0577C0.222656%2015.8273%200.848336%2016.4496%201.61454%2016.4496H3.65553C3.95331%2016.4496%204.23102%2016.3559%204.45854%2016.1953L5.24482%2016.289C5.36527%2016.3057%207.50664%2016.5767%209.70488%2016.5332C10.103%2016.5633%2010.4778%2016.5801%2010.8258%2016.5801C11.4247%2016.5801%2011.9466%2016.5332%2012.3816%2016.4396C13.4054%2016.2221%2014.1047%2015.7871%2014.4594%2015.148C14.7304%2014.6595%2014.7304%2014.1744%2014.6869%2013.8666C15.3527%2013.2643%2015.4698%2012.5985%2015.4464%2012.1301C15.433%2011.859%2015.3728%2011.6282%2015.3092%2011.4575ZM1.61454%2015.5462C1.34353%2015.5462%201.12604%2015.3254%201.12604%2015.0577V9.6173C1.12604%209.34628%201.34687%209.1288%201.61454%209.1288H3.65553C3.92655%209.1288%204.14403%209.34963%204.14403%209.6173V15.0544C4.14403%2015.3254%203.9232%2015.5429%203.65553%2015.5429H1.61454V15.5462ZM14.4527%2011.0661C14.3122%2011.2133%2014.2854%2011.4375%2014.3925%2011.6114C14.3925%2011.6148%2014.5296%2011.849%2014.5464%2012.1702C14.5698%2012.6085%2014.359%2012.9966%2013.9173%2013.3279C13.7601%2013.4483%2013.6965%2013.6558%2013.7634%2013.8431C13.7634%2013.8465%2013.9073%2014.2881%2013.6731%2014.7064C13.4489%2015.1079%2012.9504%2015.3956%2012.1942%2015.5562C11.5886%2015.6867%2010.7655%2015.7101%209.75507%2015.6298C9.74169%2015.6298%209.72496%2015.6298%209.70823%2015.6298C7.55683%2015.6767%205.382%2015.3956%205.35858%2015.3923H5.35524L5.0173%2015.3521C5.03738%2015.2585%205.04742%2015.1581%205.04742%2015.0577V9.6173C5.04742%209.47343%205.02399%209.3329%204.98384%209.20241C5.04407%208.97824%205.21136%208.4797%205.60618%208.05477C7.10848%206.86364%208.57732%202.84524%208.64089%202.67125C8.66766%202.60099%208.67435%202.52403%208.66097%202.44708C8.60409%202.07234%208.62416%201.61396%208.70446%201.47677C8.88179%201.48012%209.36026%201.53031%209.648%201.92847C9.98928%202.40024%209.9759%203.2434%209.60785%204.36092C9.04574%206.06398%208.9989%206.96067%209.4439%207.35549C9.66473%207.55289%209.95917%207.56293%2010.1733%207.48597C10.3774%207.43913%2010.5715%207.39898%2010.7555%207.36887C10.7689%207.36552%2010.7856%207.36218%2010.799%207.35883C11.8262%207.13466%2013.6664%206.99748%2014.3055%207.57966C14.8475%208.07485%2014.4627%208.73064%2014.4192%208.80091C14.2954%208.98828%2014.3322%209.23252%2014.4995%209.38309C14.5029%209.38644%2014.8542%209.71768%2014.8709%2010.1627C14.8843%2010.4605%2014.7438%2010.7649%2014.4527%2011.0661Z'%20fill='%231AAF74'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2361_92626'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(0%200.580078)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ns="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2361_214893)'%3e%3cpath%20d='M0.784519%205.70262C0.456622%206.12086%200.299366%206.5692%200.319442%207.03094C0.339517%207.53951%200.567037%207.93767%200.754406%208.18192C0.536923%208.72395%200.453278%209.57715%201.17933%2010.2396C1.71133%2010.7248%202.61472%2010.9423%203.86607%2010.882C4.74604%2010.8419%205.48213%2010.6779%205.51225%2010.6713H5.51559C5.68289%2010.6411%205.86022%2010.6043%206.0409%2010.5642C6.05428%2010.7783%206.01748%2011.3103%205.62266%2012.5081C5.15424%2013.9335%205.18101%2015.0242%205.70965%2015.7536C6.26507%2016.5199%207.15173%2016.5801%207.41271%2016.5801C7.66365%2016.5801%207.89452%2016.4764%208.05846%2016.2856C8.42986%2015.854%208.38636%2015.0577%208.33952%2014.6897C8.78117%2013.5052%2010.0191%2010.601%2011.0664%209.79463C11.0865%209.78125%2011.1032%209.76452%2011.1199%209.74779C11.4278%209.42324%2011.6352%209.07192%2011.7757%208.7641C11.9731%208.87117%2012.1973%208.9314%2012.4382%208.9314H14.4792C15.2488%208.9314%2015.8711%208.30572%2015.8711%207.53951V2.10245C15.8711%201.3329%2015.2454%200.710568%2014.4792%200.710568H12.4382C12.1404%200.710568%2011.8627%200.804253%2011.6352%200.964854L10.8489%200.87117C10.7285%200.854441%208.58711%200.583425%206.38887%200.626922C5.99071%200.596808%205.61597%200.580078%205.268%200.580078C4.66909%200.580078%204.14713%200.626921%203.71216%200.720606C2.68832%200.938087%201.98904%201.37305%201.63437%202.01212C1.36336%202.50061%201.36336%202.98577%201.40685%203.29359C0.741022%203.89585%200.623918%204.56168%200.647339%205.0301C0.660722%205.30112%200.720947%205.53198%200.784519%205.70262ZM14.4792%201.61396C14.7502%201.61396%2014.9677%201.83478%2014.9677%202.10245V7.54286C14.9677%207.81387%2014.7469%208.03135%2014.4792%208.03135H12.4382C12.1672%208.03135%2011.9497%207.81053%2011.9497%207.54286V2.1058C11.9497%201.83478%2012.1706%201.6173%2012.4382%201.6173H14.4792V1.61396ZM1.64106%206.09409C1.78159%205.94687%201.80836%205.7227%201.70129%205.54871C1.70129%205.54536%201.56411%205.31115%201.54738%204.98995C1.52396%204.55164%201.73475%204.16352%202.1764%203.83227C2.33366%203.71182%202.39723%203.50438%202.33032%203.31701C2.33032%203.31366%202.18644%202.87201%202.42066%202.45377C2.64483%202.05227%203.14336%201.76452%203.89953%201.60392C4.50514%201.47343%205.32822%201.45001%206.33868%201.53031C6.35206%201.53031%206.36879%201.53031%206.38552%201.53031C8.53692%201.48347%2010.7117%201.76452%2010.7352%201.76787H10.7385L11.0764%201.80802C11.0564%201.9017%2011.0463%202.00208%2011.0463%202.10245V7.54286C11.0463%207.68673%2011.0698%207.82726%2011.1099%207.95774C11.0497%208.18192%2010.8824%208.68046%2010.4876%209.10538C8.98527%2010.2965%207.51643%2014.3149%207.45286%2014.4889C7.42609%2014.5592%207.4194%2014.6361%207.43278%2014.7131C7.48966%2015.0878%207.46959%2015.5462%207.38929%2015.6834C7.21196%2015.68%206.73349%2015.6298%206.44575%2015.2317C6.10447%2014.7599%206.11785%2013.9168%206.4859%2012.7992C7.04801%2011.0962%207.09485%2010.1995%206.64985%209.80467C6.42902%209.60726%206.13458%209.59723%205.92045%209.67418C5.71635%209.72102%205.52229%209.76117%205.33826%209.79129C5.32488%209.79463%205.30815%209.79798%205.29477%209.80132C4.26758%2010.0255%202.42735%2010.1627%201.78828%209.5805C1.24625%209.08531%201.63103%208.42951%201.67452%208.35925C1.79832%208.17188%201.76152%207.92763%201.59422%207.77707C1.59088%207.77372%201.23956%207.44248%201.22283%206.99748C1.20945%206.69969%201.34997%206.39522%201.64106%206.09409Z'%20fill='%23F34859'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2361_214893'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='matrix(-1%200%200%20-1%2016.0938%2016.5801)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Us="data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22%2012.123C22%2017.6459%2017.5228%2022.123%2012%2022.123C6.47715%2022.123%202%2017.6459%202%2012.123C2%206.6002%206.47715%202.12305%2012%202.12305C17.5228%202.12305%2022%206.6002%2022%2012.123ZM16.0303%209.09272C16.3232%209.38561%2016.3232%209.86048%2016.0303%2010.1534L11.0303%2015.1534C10.7374%2015.4463%2010.2626%2015.4463%209.96967%2015.1534L7.96967%2013.1534C7.67678%2012.8605%207.67678%2012.3856%207.96967%2012.0927C8.26256%2011.7998%208.73744%2011.7998%209.03033%2012.0927L10.5%2013.5624L14.9697%209.09272C15.2626%208.79982%2015.7374%208.79982%2016.0303%209.09272Z'%20fill='%231AAF74'/%3e%3c/svg%3e",js="data:image/svg+xml,%3csvg%20width='21'%20height='20'%20viewBox='0%200%2021%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.2904%2014.791C10.6355%2014.791%2010.9154%2014.5112%2010.9154%2014.166V9.16602C10.9154%208.82084%2010.6355%208.54102%2010.2904%208.54102C9.94519%208.54102%209.66537%208.82084%209.66537%209.16602V14.166C9.66537%2014.5112%209.94519%2014.791%2010.2904%2014.791Z'%20fill='%23858B93'/%3e%3cpath%20d='M10.2904%205.83268C10.7506%205.83268%2011.1237%206.20578%2011.1237%206.66602C11.1237%207.12625%2010.7506%207.49935%2010.2904%207.49935C9.83013%207.49935%209.45703%207.12625%209.45703%206.66602C9.45703%206.20578%209.83013%205.83268%2010.2904%205.83268Z'%20fill='%23858B93'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.33203%209.99935C1.33203%205.0518%205.34281%201.04102%2010.2904%201.04102C15.2379%201.04102%2019.2487%205.0518%2019.2487%209.99935C19.2487%2014.9469%2015.2379%2018.9577%2010.2904%2018.9577C5.34281%2018.9577%201.33203%2014.9469%201.33203%209.99935ZM10.2904%202.29102C6.03317%202.29102%202.58203%205.74215%202.58203%209.99935C2.58203%2014.2565%206.03317%2017.7077%2010.2904%2017.7077C14.5476%2017.7077%2017.9987%2014.2565%2017.9987%209.99935C17.9987%205.74215%2014.5476%202.29102%2010.2904%202.29102Z'%20fill='%23858B93'/%3e%3c/svg%3e",zs="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.291%205.83301C17.291%206.17819%2017.0112%206.45801%2016.666%206.45801L3.33268%206.45801C2.9875%206.45801%202.70768%206.17819%202.70768%205.83301C2.70768%205.48783%202.9875%205.20801%203.33268%205.20801L16.666%205.20801C17.0112%205.20801%2017.291%205.48783%2017.291%205.83301Z'%20fill='%23858B93'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.291%2010C17.291%2010.3452%2017.0112%2010.625%2016.666%2010.625L3.33268%2010.625C2.9875%2010.625%202.70768%2010.3452%202.70768%2010C2.70768%209.65482%202.9875%209.375%203.33268%209.375L16.666%209.375C17.0112%209.375%2017.291%209.65482%2017.291%2010Z'%20fill='%23858B93'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.291%2014.167C17.291%2014.5122%2017.0112%2014.792%2016.666%2014.792L3.33268%2014.792C2.9875%2014.792%202.70768%2014.5122%202.70768%2014.167C2.70768%2013.8218%202.9875%2013.542%203.33268%2013.542L16.666%2013.542C17.0112%2013.542%2017.291%2013.8218%2017.291%2014.167Z'%20fill='%23858B93'/%3e%3c/svg%3e";var Vs=F("<div class=survey-message>"),Ws=F("<div style=margin-bottom:12px;text-align:left><div style=font-weight:500;font-size:14px>"),qs=F("<div style=font-weight:400;font-size:12px;margin-top:4px>"),Zs=F("<div class=survey-message><div style=text-align:center;padding:24px>Biểu mẫu khảo sát"),Ys=F("<div class=survey-tooltip>"),Xs=F("<button tabindex=-1 style=margin-left:8px;margin-top:6px><img alt=tooltip>"),Gs=F("<div class=survey-message><div style=flex-direction:column;align-items:flex-start><div style=align-items:center;margin-bottom:8px><span style=font-weight:600;font-size:16px;text-align:left></span></div><div style=font-weight:400;font-size:12px;margin-bottom:16px></div></div><div style=justify-content:flex-end;margin-top:16px>"),Ks=F("<div>"),Qs=F("<span style=margin-right:4px>-"),Js=F("<div class=survey-inputs>"),ei=F("<div style=margin-bottom:12px><div style=font-weight:500;margin-bottom:4px;text-align:left></div><input class=survey-input type=text>"),ti=F("<div class=survey-options>"),ni=F("<button type=button style=justify-content:space-between;align-items:center><span>"),si=F("<img style=margin-right:10px>"),ii=F("<img style=margin-left:16px>"),oi=F("<button class=survey-cancel-button>Hủy"),ri=F("<button class=survey-submit-button>Gửi đáp án");const ai=t=>{var oe,de,B,x;const[e,n]=L(null),[s,i]=L(null),[o,r]=L(t.selectedIndexes||[]),[c,a]=L(Array((t.options||[]).length).fill("")),[d,u]=L(t.options||[]),[f,j]=L(!1),$=(B=(de=(oe=t.contents)==null?void 0:oe.find(C=>{var p;return(p=C.metadata)==null?void 0:p.description}))==null?void 0:de.metadata)==null?void 0:B.description,U=(x=t.multiSelect)!=null?x:!1,W=()=>{var C;return(C=t.isInputMode)!=null?C:!1},Z=()=>t.type||"choice";let M;const k=(C,p)=>{!t.isEditing&&t.canSubmit===!1||p.button===0&&t.isDragDrop&&(p.preventDefault(),n(C))},z=C=>{if(e()===null||!M)return;const p=M.getBoundingClientRect();if(!(C.clientX>=p.left&&C.clientX<=p.right&&C.clientY>=p.top&&C.clientY<=p.bottom))return;const I=M.querySelectorAll(".survey-option");for(let R=0;R<I.length;R++){const D=I[R].getBoundingClientRect();if(C.clientX>=D.left&&C.clientX<=D.right&&C.clientY>=D.top&&C.clientY<=D.bottom&&R!==e()){i(R);return}}},A=C=>{if(e()===null||!M)return;const p=M.getBoundingClientRect();if(C.clientX>=p.left&&C.clientX<=p.right&&C.clientY>=p.top&&C.clientY<=p.bottom&&s()!==null){const I=[...d()],R=I[e()];I[e()]=I[s()],I[s()]=R,u(I)}n(null),i(null)},O=C=>{!t.isEditing&&t.canSubmit===!1||t.isDragDrop||r(U?p=>p.includes(C)?p.filter(m=>m!==C):[...p,C]:p=>p.includes(C)?[]:[C])},w=(C,p)=>{a(m=>{const I=[...m];return I[C]=p,I})},Ae=()=>{if(t.onSubmit){const C=t.msgId||"";if(W()){const p=c().filter(m=>m.trim()!=="");t.onSubmit(p,"input",C)}else if(t.isDragDrop)t.onSubmit(d(),"ordered",C);else if(U){const p=d().filter((m,I)=>o().includes(I));t.onSubmit(p,"selected",C)}else{const p=d()[o()[0]];t.onSubmit([p],"selected",C)}}};return Mt(()=>(document.addEventListener("mousemove",z),document.addEventListener("mouseup",A),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",A)})),Qe(()=>{u(t.options||[])}),Qe(cs(()=>t.isEditing,C=>{C&&(r(t.selectedIndexes||[]),a(Array((t.options||[]).length).fill("").map((p,m)=>{var I;return t.fields&&((I=t.fields[m])==null?void 0:I.value)!==void 0?t.fields[m].value:""})),u(t.options||[]))})),Z()==="normal"?(()=>{var C=Vs();return P(C,ie(ot,{get each(){return t.contents||[]},children:p=>(()=>{var m=Ws(),I=m.firstChild;return l(I,"color","#1A1D1F"),P(I,()=>p.content),P(m,(()=>{var R=te(()=>{var b;return!!((b=p.metadata)!=null&&b.description)});return()=>R()&&(()=>{var b=qs();return l(b,"color","#858B93"),P(b,()=>p.metadata.description),b})()})(),null),m})()})),C})():Z()==="form"?(()=>{var C=Zs(),p=C.firstChild;return l(p,"color","#858B93"),C})():(()=>{var C=Gs(),p=C.firstChild,m=p.firstChild,I=m.firstChild,R=m.nextSibling,b=p.nextSibling;return l(p,"display","flex"),l(m,"display","flex"),l(I,"color","#1A1D1F"),P(I,(()=>{var D=te(()=>!!W());return()=>D()?"Nhập đáp án":t.question||"Chọn đáp án"})()),P(m,ie(Ye,{when:$,get children(){var D=Xs(),Y=D.firstChild;return D.addEventListener("mouseleave",()=>j(!1)),D.addEventListener("mouseenter",()=>j(!0)),l(D,"background","none"),l(D,"border","none"),l(D,"cursor","pointer"),l(D,"position","relative"),se(Y,"src",js),l(Y,"width","20px"),l(Y,"height","20px"),P(D,ie(Ye,{get when(){return f()},get children(){var he=Ys();return P(he,ie(ot,{get each(){return($||"Bạn có thể kéo thả để sắp xếp thứ tự đáp án ưu tiên A, B, C, D").split(/-\s*/).filter(fe=>fe.trim()!=="")},children:(fe,ce)=>(()=>{var ne=Ks();return P(ne,(()=>{var G=te(()=>ce()>0);return()=>G()&&Qs()})(),null),P(ne,()=>fe.trim(),null),ne})()})),he}}),null),D}}),null),l(R,"color","#858B93"),P(R,(()=>{var D=te(()=>!!W());return()=>D()?"Vui lòng nhập đầy đủ thông tin vào các trường bên dưới.":t.isDragDrop?"Bạn có thể kéo thả để sắp xếp thứ tự đáp án ưu tiên A, B, C, D":U?"Bạn có thể chọn nhiều đáp án hoặc nhập trực tiếp A, B, C, D theo thứ tự đáp án":"Bạn có thể chọn 1 đáp án hoặc nhập trực tiếp A, B, C, D"})()),P(C,(()=>{var D=te(()=>!!W());return()=>D()?(()=>{var Y=Js();return P(Y,ie(ot,{get each(){return d()},children:(he,fe)=>(()=>{var ce=ei(),ne=ce.firstChild,G=ne.nextSibling;return l(ne,"color","#1A1D1F"),P(ne,he),G.$$input=E=>w(fe(),E.currentTarget.value),l(G,"color","#1A1D1F"),ue(E=>{var K=t.placeholders?t.placeholders[fe()]:he,ye=!t.isEditing&&t.canSubmit===!1;return K!==E.e&&se(G,"placeholder",E.e=K),ye!==E.t&&(G.disabled=E.t=ye),E},{e:void 0,t:void 0}),ue(()=>G.value=c()[fe()]),ce})()})),Y})():(()=>{var Y=ti(),he=M;return typeof he=="function"?Vt(he,Y):M=Y,P(Y,ie(ot,{get each(){return d()},children:(fe,ce)=>(()=>{var ne=ni(),G=ne.firstChild;return ne.$$click=()=>O(ce()),ne.$$mousedown=E=>k(ce(),E),P(ne,(()=>{var E=te(()=>!!t.isDragDrop);return()=>E()&&(()=>{var K=si();return se(K,"src",zs),l(K,"width","20px"),l(K,"height","20px"),K})()})(),G),l(G,"color","#1A1D1F"),P(G,fe),P(ne,(()=>{var E=te(()=>!!(!t.isDragDrop&&o().includes(ce())));return()=>E()&&(()=>{var K=ii();return se(K,"src",Us),l(K,"width","20px"),l(K,"height","20px"),K})()})(),null),ue(E=>{var K=`survey-option${U?" multi-selected":""} ${e()===ce()?"dragging":""} ${s()===ce()?"hovered":""} ${!t.isDragDrop&&o().includes(ce())?"selected":""}`,ye=H({display:"flex",width:U?"100%":"auto"},t.isDragDrop?{}:{cursor:"pointer"});return K!==E.e&&it(ne,E.e=K),E.t=dn(ne,ye,E.t),E},{e:void 0,t:void 0}),ne})()})),Y})()})(),b),l(b,"display","flex"),P(b,(()=>{var D=te(()=>!!t.isEditing);return()=>D()&&(()=>{var Y=oi();return zt(Y,"click",t.onCancelEdit),Y})()})(),null),P(b,(()=>{var D=te(()=>!!(t.canSubmit||t.isEditing));return()=>D()&&(()=>{var Y=ri();return Y.$$click=Ae,Y})()})(),null),C})()};pt(["input","mousedown","click"]);var ci=F("<div style=text-align:center;font-weight:600;user-select:none;white-space:pre-line>Hôm nay thị trường khiến bạn <br>quan tâm điều gì?"),li=F("<div class=chat-messages-container style=scroll-behavior:auto>"),di=F("<div style=margin-bottom:8px>"),ui=F("<div class=message-popup><button class=message-popup-button><img></button><button class=message-popup-button><img>"),hi=F('<div style=border-radius:24px;font-weight:500;font-size:16px;max-width:70%;word-break:break-word;white-space:pre-line;text-align:left;cursor:pointer><form style=flex-direction:column;align-items:flex-end><textarea class=chat-message-edit-textarea placeholder="Nhập vào tin nhắn..."rows=3 autofocus></textarea><div style=margin-top:8px><button class=message-cancel-button type=button>Hủy</button><button class=message-edit-button type=submit>Lưu'),fi=F("<div style=border-radius:24px;font-weight:500;font-size:16px;max-width:70%;word-break:break-word;white-space:pre-line;text-align:left;cursor:pointer>"),gi=F("<div style=font-size:12px;margin-top:12px;user-select:none;font-weight:400>"),pi=F('<div class="chat-message bot"style=margin-left:24px><div>'),Ci=F("<div style=flex-direction:column;align-items:flex-start;margin-bottom:8px><div><div style=border-radius:24px;font-weight:500;font-size:16px;max-width:70%;word-break:break-word;white-space:pre-line;text-align:left>"),mi=F("<div style=margin-left:16px><button class=feedback-button><img></button><button class=feedback-button><img>");function wi(t){let e;const[n,s]=L(null),[i,o]=L({}),[r,c]=L(null),[a,d]=L(null),[u,f]=L(null),[j,$]=L(null),[U,W]=L("");function Z(A){var Ae,oe;const O=t.messages[t.messages.length-1];return!((O.type==="survey"||O.type==="choice"||O.type==="form")&&!((oe=(Ae=t.submittedMessages)==null?void 0:Ae.has(O.id))!=null&&oe)&&O.id!==A)}const M=A=>{r()&&(clearTimeout(r()),c(null)),s(Number(A))},k=()=>{c(setTimeout(()=>s(null),300))},z=()=>{var A;return t.isFullScreen?t.messages.length>0?"100px":`${((A=t.inputHeight)!=null?A:0)+24}px`:(t.isMobile,t.messages.length>0?"10px":"0px")};return Qe(()=>{if(!e)return;const A=()=>{a()&&clearTimeout(a()),d(setTimeout(()=>{var O;e.scrollTop===0&&((O=t.onLoadMoreMessages)==null||O.call(t)),d(null)},0))};e.addEventListener("scroll",A),rn(()=>{e.removeEventListener("scroll",A),a()&&clearTimeout(a())})}),(()=>{var A=li(),O=e;return typeof O=="function"?Vt(O,A):e=A,P(A,ie(Ye,{get when(){return te(()=>t.messages.length===0)()&&!t.isFullScreen},get children(){var w=ci();return l(w,"color","#1A1D1F"),ue(Ae=>l(w,"font-size",t.isMobile?"20px":"24px")),w}}),null),P(A,ie(ot,{get each(){return t.messages},children:(w,Ae)=>{const oe=Ae()===t.messages.length-1;return w.type==="normal"&&Array.isArray(w.contents)?ie(ot,{get each(){return w.contents},children:de=>(()=>{var B=di();return B.addEventListener("mouseleave",()=>w.sender==="user"&&$(null)),B.addEventListener("mouseenter",()=>w.sender==="user"&&$(w.id)),B.$$click=()=>f(u()===w.id?null:w.id),l(B,"display","flex"),l(B,"position","relative"),P(B,(()=>{var x=te(()=>w.sender==="user"&&j()===w.id);return()=>x()&&(()=>{var C=ui(),p=C.firstChild,m=p.firstChild,I=p.nextSibling,R=I.firstChild;return p.addEventListener("mouseleave",b=>b.currentTarget.style.background="none"),p.addEventListener("mouseenter",b=>b.currentTarget.style.background="#f0f0f0"),p.$$click=b=>{var he,fe,ce,ne;b.stopPropagation();const D=Ae(),Y=t.messages[D-1];if(!Z(w.id)){alert("Hoàn thành câu hỏi theo mẫu trước khi chỉnh sửa");return}w.type==="normal"&&(Y&&Y.sender==="bot"&&Y.type==="normal"?(W(""),(he=t.setEditingMsgIdUser)==null||he.call(t,w.id),(fe=t.setEditingMsgIdBot)==null||fe.call(t,null)):Y&&Y.sender==="bot"&&(Y.type==="survey"||Y.type==="choice"||Y.type==="form")&&((ce=t.setEditingMsgIdBot)==null||ce.call(t,Y.id),(ne=t.setEditingMsgIdUser)==null||ne.call(t,w.id),W("")))},se(m,"src",En),l(m,"width","16px"),l(m,"height","16px"),I.addEventListener("mouseleave",b=>b.currentTarget.style.background="none"),I.addEventListener("mouseenter",b=>b.currentTarget.style.background="#f0f0f0"),I.$$click=b=>{b.stopPropagation(),console.log("Delete message:",w.id)},se(R,"src",Tn),l(R,"width","16px"),l(R,"height","16px"),C})()})(),null),P(B,(()=>{var x=te(()=>w.sender==="user"&&w.type==="normal"&&t.editingMsgIdUser===w.id&&!t.editingMsgIdBot);return()=>x()?(()=>{var C=hi(),p=C.firstChild,m=p.firstChild,I=m.nextSibling,R=I.firstChild;return l(C,"background","#1AAF741A"),l(C,"color","#000"),l(C,"padding","10px 16px"),p.addEventListener("submit",b=>{var D,Y;b.preventDefault(),U().trim()&&((D=t.onUpdateSurvey)==null||D.call(t,[U()],"input",w.id),(Y=t.setEditingMsgIdUser)==null||Y.call(t,null))}),l(p,"width","100%"),l(p,"display","flex"),m.$$input=b=>W(b.currentTarget.value),l(I,"display","flex"),l(I,"gap","4px"),R.$$click=()=>{var b;return(b=t.setEditingMsgIdUser)==null?void 0:b.call(t,null)},ue(()=>m.value=U()),C})():(()=>{var C=fi();return l(C,"color","#000"),l(C,"padding","10px 16px"),P(C,()=>de.content,null),P(C,(()=>{var p=te(()=>!!(w.sender==="user"&&w.sentAt&&u()===w.id));return()=>p()&&(()=>{var m=gi();return l(m,"color","#858B93"),P(m,()=>new Date(w.sentAt).toLocaleString("vi-VN",{hour:"2-digit",minute:"2-digit"})),m})()})(),null),ue(p=>l(C,"background",w.sender==="user"?"#1AAF741A":"#fff")),C})()})(),null),ue(x=>{var C=`chat-message ${w.sender}`,p=w.id,m=w.sender==="bot"?"24px":"0px",I=w.sender==="user"?"24px":"0px",R=w.sender==="user"?"flex-end":"flex-start";return C!==x.e&&it(B,x.e=C),p!==x.t&&se(B,"data-message-id",x.t=p),m!==x.a&&l(B,"margin-left",x.a=m),I!==x.o&&l(B,"margin-right",x.o=I),R!==x.i&&l(B,"justify-content",x.i=R),x},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),B})()}):w.type==="survey"||w.type==="choice"||w.type==="form"?(()=>{var de=pi(),B=de.firstChild;return P(B,ie(ai,{get msgId(){return w.id},get question(){return w.question},get options(){return w.options},get selectedIndexes(){return w.selectedIndexes},get fields(){return w.fields},get contents(){return w.contents},get multiSelect(){var x;return te(()=>w.multiSelect!==void 0)()?w.multiSelect:(x=t.surveyOptions)==null?void 0:x.multiSelect},get isInputMode(){var x;return te(()=>w.isInputMode!==void 0)()?w.isInputMode:(x=t.surveyOptions)==null?void 0:x.isInputMode},get isFormType(){return w.isFormType},get isNormalType(){return w.isNormalType},get isDragDrop(){return w.isDragDrop},get isEditing(){return t.editingMsgIdBot===w.id},onCancelEdit:()=>{var x,C;(x=t.setEditingMsgIdBot)==null||x.call(t,null),(C=t.setEditingMsgIdUser)==null||C.call(t,null)},onSubmit:(x,C,p)=>{var m,I,R,b;t.editingMsgIdUser?((m=t.onUpdateSurvey)==null||m.call(t,x,C,t.editingMsgIdUser),(I=t.setEditingMsgIdBot)==null||I.call(t,null),(R=t.setEditingMsgIdUser)==null||R.call(t,null)):(b=t.onSubmit)==null||b.call(t,x,C,p)},get canSubmit(){var x;return oe&&(!((x=t.submittedMessages)!=null&&x.has(w.id))||t.editingMsgIdBot===w.id)},get placeholders(){return w.placeholders}})),ue(()=>se(de,"data-message-id",w.id)),de})():(()=>{var de=Ci(),B=de.firstChild,x=B.firstChild;return l(de,"display","flex"),B.addEventListener("mouseleave",()=>k()),B.addEventListener("mouseenter",()=>w.sender==="bot"&&M(w.id)),l(B,"position","relative"),l(B,"width","100%"),l(x,"color","#000"),l(x,"padding","10px 16px"),P(x,()=>w.text),P(de,(()=>{var C=te(()=>w.sender==="bot");return()=>C()&&(()=>{var p=mi(),m=p.firstChild,I=m.firstChild,R=m.nextSibling,b=R.firstChild;return p.addEventListener("mouseleave",()=>k()),p.addEventListener("mouseenter",()=>M(w.id)),l(p,"display","flex"),l(p,"gap","8px"),l(p,"height","16px"),l(p,"transition","opacity 0.2s"),m.$$click=()=>o(D=>ee(H({},D),{[w.id]:"like"})),R.$$click=()=>o(D=>ee(H({},D),{[w.id]:"dislike"})),ue(D=>{var Y=n()===Number(w.id)?1:0,he=n()===Number(w.id)?"visible":"hidden",fe=n()===Number(w.id)?"auto":"none",ce=i()[Number(w.id)]==="like"?Os:Ls,ne=i()[Number(w.id)]==="dislike"?Ns:Fs;return Y!==D.e&&l(p,"opacity",D.e=Y),he!==D.t&&l(p,"visibility",D.t=he),fe!==D.a&&l(p,"pointer-events",D.a=fe),ce!==D.o&&se(I,"src",D.o=ce),ne!==D.i&&se(b,"src",D.i=ne),D},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),p})()})(),null),ue(C=>{var p=w.id,m=`chat-message ${w.sender}`,I=w.id,R=w.sender==="user"?"#1AAF741A":"#fff";return p!==C.e&&se(de,"data-message-id",C.e=p),m!==C.t&&it(B,C.t=m),I!==C.a&&se(B,"data-message-id",C.a=I),R!==C.o&&l(x,"background",C.o=R),C},{e:void 0,t:void 0,a:void 0,o:void 0}),de})()}}),null),ue(w=>{var Ae=t.messages.length===0?"center":"flex-start",oe=z(),de=t.isLoadingMessages?"hidden":"visible";return Ae!==w.e&&l(A,"justify-content",w.e=Ae),oe!==w.t&&l(A,"padding-bottom",w.t=oe),de!==w.a&&l(A,"visibility",w.a=de),w},{e:void 0,t:void 0,a:void 0}),A})()}pt(["click","input"]);var vi=F('<div class=chat-input-container><div style=min-width:0><img><textarea placeholder="Hỏi bất kỳ điều gì..."class=chat-input-field rows=1 style=padding-left:56px></textarea><div><img style=margin-top:4px><img>');function Rn(t){let e;const[s,i]=L(!1);function o(){var u,f;if(!e)return;if(e.style.height="auto",!t.input.trim()){e.style.height="48px",e.style.overflowY="hidden",i(!1),(u=t.onHeightChange)==null||u.call(t,48);return}const a=e.scrollHeight,d=Math.min(a,120);e.style.height=d+"px",e.style.overflowY=a>120?"auto":"hidden",i(a>120),(f=t.onHeightChange)==null||f.call(t,d)}Qe(()=>{e&&o()});const r=a=>{t.setInput(a.currentTarget.value),o()},c=a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),t.sendMessage(),setTimeout(()=>{e&&o()},0))};return(()=>{var a=vi(),d=a.firstChild,u=d.firstChild,f=u.nextSibling,j=f.nextSibling,$=j.firstChild,U=$.nextSibling;return l(d,"position","relative"),l(d,"flex","1"),se(u,"src",Ms),l(u,"position","absolute"),l(u,"left","18px"),l(u,"top","50%"),l(u,"transform","translateY(-60%)"),l(u,"width","20px"),l(u,"height","20px"),l(u,"cursor","pointer"),f.addEventListener("keypress",c),f.$$input=r,Vt(W=>e=W,f),l(f,"color","#1A1D1F"),l(f,"resize","none"),l(f,"width","100%"),l(f,"max-height","120px"),l(f,"overflow","hidden"),l(j,"position","absolute"),l(j,"right","16px"),l(j,"top","50%"),l(j,"transform","translateY(-55%)"),l(j,"display","flex"),l(j,"gap","12px"),zt($,"click",t.sendMessage),se($,"src",Bs),l($,"width","24px"),l($,"height","24px"),l($,"cursor","pointer"),zt(U,"click",t.sendMessage),l(U,"width","32px"),l(U,"height","32px"),l(U,"cursor","pointer"),ue(W=>{var Z=!!s(),M=t.disabled,k=t.input.trim()?Hs:ks;return Z!==W.e&&a.classList.toggle("is-maxed",W.e=Z),M!==W.t&&(f.disabled=W.t=M),k!==W.a&&se(U,"src",W.a=k),W},{e:void 0,t:void 0,a:void 0}),ue(()=>f.value=t.input),a})()}pt(["input","click"]);var yi=F("<div class=sidebar-conversation-list style=overflow-y:auto>"),bi=F('<div><div class=sidebar-header><img style=margin-right:4px><span style=user-select:none>Ez</span><span style=margin-left:4px;user-select:none>Advise</span></div><div class=sidebar-section tabindex=0><img class=sidebar-section-icon><span class=sidebar-section-title>Chân dung nhà đầu tư</span></div><div class="sidebar-section sidebar-section--no-padding"tabindex=0><img class=sidebar-section-icon><span class=sidebar-section-title>Định hướng đầu tư</span></div><div class=sidebar-conversation-row><span style=font-weight:400;font-size:14px;user-select:none>Hội thoại</span><div class=sidebar-conversation-action tabindex=0><span style=font-weight:400;font-size:14px;user-select:none>Hội thoại mới</span><img style=margin-left:8px></div></div><div class=sidebar-search-box><img style=margin-right:8px><input type=text placeholder="Tìm kiếm hội thoại"></div><div></div><div style=margin-top:15px>'),_i=F("<div>"),Si=F("<img style=margin-right:16px>"),Ai=F("<div class=sidebar-header-actions><button><img></button><button><img>"),xi=F('<div class=sidebar-no-results style=text-align:center><img src=data:image/webp;base64,... alt="no results"><div style=font-size:14px;margin-top:8px>Không tìm thấy cuộc hội thoại nào!'),Ii=F("<div class=sidebar-menu-row>"),Mi=F("<input class=sider-bar-input autofocus>"),ki=F("<span style=font-weight:500;font-size:15px;user-select:none>"),Ei=F("<img class=sidebar-menu-dot style=margin-left:8px>"),Ti=F("<div class=sidebar-popover><div class=sidebar-popover-item><img>Đổi tên</div><div class=sidebar-popover-item><img>Xóa");function Pn(t){const[e]=L(!1),[n,s]=L(null),[i,o]=L([]),[r,c]=L(""),[a,d]=L(null),[u,f]=L("");let j,$={};function U(z){return z.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/đ/g,"d").replace(/Đ/g,"d")}function W(){d(null),t.onClose()}function Z(){return v(this,null,function*(){if(t.remoteRepo)try{const z=yield t.remoteRepo.listConversationAsync(10);o(z||[])}catch(z){console.error("Sidebar listConversationAsync error:",z)}})}Mt(Z),t.onReloadConversations&&t.onReloadConversations(Z);const M=Je(()=>{const z=U(r());return z?i().filter(A=>U(A.name||"").includes(z)):i()}),k=()=>t.isMobile?"calc(90vh - 320px)":t.fullScreen?"calc(90vh - 330px)":"calc(400px - 220px)";return Mt(()=>{const z=A=>{var O;e(),n()&&$[n()]&&!((O=$[n()])!=null&&O.contains(A.target))&&s(null)};document.addEventListener("mousedown",z),rn(()=>{document.removeEventListener("mousedown",z)})}),Mt(()=>v(null,null,function*(){if(t.remoteRepo)try{const z=yield t.remoteRepo.listConversationAsync(10);o(z||[])}catch(z){console.error("Sidebar listConversationAsync error:",z)}})),[te(()=>te(()=>!t.fullScreen)()&&(()=>{var z=_i();return z.$$click=W,ue(()=>it(z,`sidebar-overlay${t.open?" sidebar-overlay--open":""}`)),z})()),(()=>{var z=bi(),A=z.firstChild,O=A.firstChild,w=O.nextSibling,Ae=w.nextSibling,oe=A.nextSibling,de=oe.firstChild,B=de.nextSibling,x=oe.nextSibling,C=x.firstChild,p=C.nextSibling,m=x.nextSibling,I=m.firstChild,R=I.nextSibling,b=R.firstChild,D=b.nextSibling,Y=m.nextSibling,he=Y.firstChild,fe=he.nextSibling,ce=Y.nextSibling,ne=ce.nextSibling;return P(A,(()=>{var G=te(()=>!t.fullScreen);return()=>G()&&(()=>{var E=Si();return E.$$click=W,se(E,"src",Es),l(E,"width","28px"),l(E,"height","28px"),l(E,"cursor","pointer"),E})()})(),O),se(O,"src",hn),l(O,"width","32px"),l(O,"height","32px"),l(w,"color","#1A1D1F"),l(Ae,"color","#1AAF74"),P(A,(()=>{var G=te(()=>!!t.fullScreen);return()=>G()&&(()=>{var E=Ai(),K=E.firstChild,ye=K.firstChild,J=K.nextSibling,be=J.firstChild;return K.$$click=()=>{var Oe;(Oe=t.onShrink)==null||Oe.call(t)},l(K,"background","none"),l(K,"border","none"),l(K,"cursor","pointer"),l(K,"padding","0"),se(ye,"src",xs),l(ye,"width","20px"),l(ye,"height","20px"),J.$$click=W,l(J,"background","none"),l(J,"border","none"),l(J,"cursor","pointer"),l(J,"padding","0"),se(be,"src",kn),l(be,"width","20px"),l(be,"height","20px"),E})()})(),null),se(de,"src",Ts),l(B,"color","#1A1D1F"),se(C,"src",Rs),l(p,"color","#1A1D1F"),l(I,"color","#858B93"),R.$$click=()=>{t.onNewConversation&&t.onNewConversation(),t.fullScreen||W()},l(b,"color","#858B93"),se(D,"src",Ps),l(D,"width","20px"),l(D,"height","20px"),se(he,"src",$s),l(he,"width","18px"),l(he,"height","18px"),l(he,"opacity","0.7"),fe.addEventListener("change",G=>c(G.currentTarget.value)),fe.$$input=G=>c(G.currentTarget.value),l(fe,"color","#1A1D1F"),P(ne,ie(Ye,{get when(){return M().length>0},get fallback(){return te(()=>i().length>0)()?(()=>{var G=xi(),E=G.firstChild,K=E.nextSibling;return l(G,"padding","32px 0"),l(E,"width","80px"),l(E,"height","80px"),l(E,"margin","0 auto 12px"),l(K,"color","#888"),G})():null},get children(){var G=yi();return P(G,ie(ot,{get each(){return M()},children:E=>(()=>{var K=Ii();return K.$$click=()=>{var ye;(ye=t.onLoadMessages)==null||ye.call(t,E.id,E.name),t.fullScreen||W()},l(K,"cursor","pointer"),l(K,"position","relative"),P(K,(()=>{var ye=te(()=>a()===E.id);return()=>ye()?(()=>{var J=Mi();return J.$$click=be=>be.stopPropagation(),J.addEventListener("blur",()=>{d(null)}),J.$$keydown=be=>v(null,null,function*(){var Oe;if(be.key==="Enter"){if(!u().trim()){console.log("Tên không được để trống");return}try{yield(Oe=t.remoteRepo)==null?void 0:Oe.updateConversationNameAsync(E.id,u().trim()),d(null),Z()}catch(nt){console.log("Error while rename: ",nt)}}be.key==="Escape"&&d(null)}),J.$$input=be=>f(be.currentTarget.value),l(J,"color","#1A1D1F"),ue(()=>J.value=u()),J})():[(()=>{var J=ki();return l(J,"color","#1A1D1F"),P(J,()=>E.name),J})(),(()=>{var J=Ei();return J.$$mousedown=be=>be.stopPropagation(),J.$$click=be=>{be.stopPropagation(),s(n()===E.id?null:E.id)},se(J,"src",Ds),l(J,"width","24px"),l(J,"height","24px"),J})(),te(()=>te(()=>n()===E.id)()&&(()=>{var J=Ti(),be=J.firstChild,Oe=be.firstChild,nt=be.nextSibling,st=nt.firstChild;return Vt(h=>$[E.id]=h,J),be.$$click=h=>{h.stopPropagation(),s(null),d(E.id),f(E.name)},se(Oe,"src",En),l(Oe,"width","18px"),l(Oe,"height","18px"),l(Oe,"color","#1A1D1F"),nt.$$click=h=>{var _;h.stopPropagation(),s(null),(_=t.onDeleteConversation)==null||_.call(t,E)},se(st,"src",Tn),l(st,"width","18px"),l(st,"height","18px"),l(st,"color","#1A1D1F"),J})())]})()),K})()})),ue(E=>{var K=k(),ye=k();return K!==E.e&&l(G,"min-height",E.e=K),ye!==E.t&&l(G,"max-height",E.t=ye),E},{e:void 0,t:void 0}),G}})),ue(G=>{var E=`sidebar${t.open?" sidebar--open":""}${t.fullScreen?" sidebar--fullscreen":""}${t.isMobile?" sidebar--mobile":""}`,K=t.isMobile?{width:"280px",height:"100%"}:{};return E!==G.e&&it(z,G.e=E),G.t=dn(z,K,G.t),G},{e:void 0,t:void 0}),ue(()=>fe.value=r()),z})()]}pt(["click","input","keydown","mousedown"]);var Ri=F("<button class=chat-action-btn>");function qt(t){return(()=>{var e=Ri();return zt(e,"click",t.onClick),P(e,()=>t.text),e})()}pt(["click"]);var Pi=F("<div class=header-steps-container>"),$i=F("<div class=header-steps><div class=header-steps-title>"),Di=F("<div>"),Bi=F("<div class=header-step-line>");const Hi=t=>{const e=()=>t.currentStep||1,n=()=>t.totalSteps||6,s=()=>t.title;return(()=>{var i=$i(),o=i.firstChild;return P(o,s),P(i,ie(Ye,{get when(){return t.isSurveyConversation},get children(){var r=Pi();return P(r,()=>Array.from({length:n()},(c,a)=>[(()=>{var d=Di();return P(d,a+1),ue(()=>it(d,`header-step ${a+1<=e()?"active":""}`)),d})(),te(()=>te(()=>a<n()-1)()&&Bi())])),r}}),null),i})()},Zt=Symbol("store-raw"),mt=Symbol("store-node"),et=Symbol("store-has"),$n=Symbol("store-self");function Dn(t){let e=t[Ge];if(!e&&(Object.defineProperty(t,Ge,{value:e=new Proxy(t,Oi)}),!Array.isArray(t))){const n=Object.keys(t),s=Object.getOwnPropertyDescriptors(t);for(let i=0,o=n.length;i<o;i++){const r=n[i];s[r].get&&Object.defineProperty(t,r,{enumerable:s[r].enumerable,get:s[r].get.bind(e)})}}return e}function wt(t){let e;return t!=null&&typeof t=="object"&&(t[Ge]||!(e=Object.getPrototypeOf(t))||e===Object.prototype||Array.isArray(t))}function vt(t,e=new Set){let n,s,i,o;if(n=t!=null&&t[Zt])return n;if(!wt(t)||e.has(t))return t;if(Array.isArray(t)){Object.isFrozen(t)?t=t.slice(0):e.add(t);for(let r=0,c=t.length;r<c;r++)i=t[r],(s=vt(i,e))!==i&&(t[r]=s)}else{Object.isFrozen(t)?t=Object.assign({},t):e.add(t);const r=Object.keys(t),c=Object.getOwnPropertyDescriptors(t);for(let a=0,d=r.length;a<d;a++)o=r[a],!c[o].get&&(i=t[o],(s=vt(i,e))!==i&&(t[o]=s))}return t}function Yt(t,e){let n=t[e];return n||Object.defineProperty(t,e,{value:n=Object.create(null)}),n}function Tt(t,e,n){if(t[e])return t[e];const[s,i]=L(n,{equals:!1,internal:!0});return s.$=i,t[e]=s}function Li(t,e){const n=Reflect.getOwnPropertyDescriptor(t,e);return!n||n.get||!n.configurable||e===Ge||e===mt||(delete n.value,delete n.writable,n.get=()=>t[Ge][e]),n}function Bn(t){an()&&Tt(Yt(t,mt),$n)()}function Fi(t){return Bn(t),Reflect.ownKeys(t)}const Oi={get(t,e,n){if(e===Zt)return t;if(e===Ge)return n;if(e===ut)return Bn(t),n;const s=Yt(t,mt),i=s[e];let o=i?i():t[e];if(e===mt||e===et||e==="__proto__")return o;if(!i){const r=Object.getOwnPropertyDescriptor(t,e);an()&&(typeof o!="function"||t.hasOwnProperty(e))&&!(r&&r.get)&&(o=Tt(s,e,o)())}return wt(o)?Dn(o):o},has(t,e){return e===Zt||e===Ge||e===ut||e===mt||e===et||e==="__proto__"?!0:(an()&&Tt(Yt(t,et),e)(),e in t)},set(){return!0},deleteProperty(){return!0},ownKeys:Fi,getOwnPropertyDescriptor:Li};function yt(t,e,n,s=!1){if(!s&&t[e]===n)return;const i=t[e],o=t.length;n===void 0?(delete t[e],t[et]&&t[et][e]&&i!==void 0&&t[et][e].$()):(t[e]=n,t[et]&&t[et][e]&&i===void 0&&t[et][e].$());let r=Yt(t,mt),c;if((c=Tt(r,e,i))&&c.$(()=>n),Array.isArray(t)&&t.length!==o){for(let a=t.length;a<o;a++)(c=r[a])&&c.$();(c=Tt(r,"length",o))&&c.$(t.length)}(c=r[$n])&&c.$()}function Hn(t,e){const n=Object.keys(e);for(let s=0;s<n.length;s+=1){const i=n[s];yt(t,i,e[i])}}function Ni(t,e){if(typeof e=="function"&&(e=e(t)),e=vt(e),Array.isArray(e)){if(t===e)return;let n=0,s=e.length;for(;n<s;n++){const i=e[n];t[n]!==i&&yt(t,n,i)}yt(t,"length",s)}else Hn(t,e)}function Rt(t,e,n=[]){let s,i=t;if(e.length>1){s=e.shift();const r=typeof s,c=Array.isArray(t);if(Array.isArray(s)){for(let a=0;a<s.length;a++)Rt(t,[s[a]].concat(e),n);return}else if(c&&r==="function"){for(let a=0;a<t.length;a++)s(t[a],a)&&Rt(t,[a].concat(e),n);return}else if(c&&r==="object"){const{from:a=0,to:d=t.length-1,by:u=1}=s;for(let f=a;f<=d;f+=u)Rt(t,[f].concat(e),n);return}else if(e.length>1){Rt(t[s],e,[s].concat(n));return}i=t[s],n=[s].concat(n)}let o=e[0];typeof o=="function"&&(o=o(i,n),o===i)||s===void 0&&o==null||(o=vt(o),s===void 0||wt(i)&&wt(o)&&!Array.isArray(o)?Hn(i,o):yt(t,s,o))}function Ln(...[t,e]){const n=vt(t||{}),s=Array.isArray(n),i=Dn(n);function o(...r){as(()=>{s&&r.length===1?Ni(n,r[0]):Rt(n,r)})}return[i,o]}const Xt=new WeakMap,Fn={get(t,e){if(e===Zt)return t;const n=t[e];let s;return wt(n)?Xt.get(n)||(Xt.set(n,s=new Proxy(n,Fn)),s):n},set(t,e,n){return yt(t,e,vt(n)),!0},deleteProperty(t,e){return yt(t,e,void 0,!0),!0}};function ke(t){return e=>{if(wt(e)){let n;(n=Xt.get(e))||Xt.set(e,n=new Proxy(e,Fn)),t(n)}return e}}const Ui=30,ji="me~SURVEY";function Pt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}const On=ls(),zi=t=>{const[e,n]=L(!1),[s,i]=L(!1),[o,r]=L(!1),[c,a]=L(!1),[d,u]=L(),[f,j]=L(),[$,U]=Ln([]),[W,Z]=L(),[M,k]=Ln([]),[z,A]=L(),[O,w]=L(),[Ae,oe]=L({}),[de,B]=L(),[x,C]=L(),p=new Map,m=t.remoteRepository;t.exportMethods.appendConversation=h=>{if(!h.traceId)U(ke(_=>{_.unshift(h)}));else{const _=d();_&&_.id===h.traceId&&(oe({hasNewer:!1,hasOlder:!1}),u(h)),U(ke(y=>{let S=y.findIndex(T=>T.id===h.traceId);S>=0?(y[S].id=h.id,y[S].creating=!1):(S=y.findIndex(T=>T.id===h.id),S<0&&y.unshift(h))}))}},t.exportMethods.appendMessage=h=>{const _=d();if(_&&_.id==h.conversationId){h.traceId?k(ke(T=>{let ge=T.findIndex(xe=>xe.id===h.traceId);ge>=0?(T[ge].id=h.id,T[ge].mentions=h.mentions,T[ge].sending=!1):(ge=T.findIndex(xe=>xe.id===h.id),ge<0&&T.push(h))})):k(ke(T=>{T.push(h)}));const S=z();(!S||S&&S.messageId!=h.id)&&A({messageId:h.id,highlight:!1})}const y=$.findIndex(S=>S.id===h.conversationId);y>=0?U(ke(S=>{const T=S[y];T.updatedAt=h.sentAt,T.lastMessage=h,S.splice(y,1),S.unshift(T)})):m.getConversationAsync(h.conversationId).then(S=>{S&&U(ke(T=>{S.updatedAt=h.sentAt||new Date,S.lastMessage=h,T.unshift(S)}))}),j(h)},t.exportMethods.updateMessage=h=>{var _;k(ke(y=>{const S=y.findIndex(T=>T.id===h.id);if(S>=0){const T=y[S];h.sentAt=T.sentAt,y[S]=h}})),U(ke(y=>{const S=y.findIndex(T=>T.id===h.conversationId);if(S>=0){const T=y[S];T.updatedAt=h.sentAt,T.lastMessage&&T.lastMessage.id===h.id&&(T.lastMessage=h)}})),((_=f())==null?void 0:_.id)==h.id&&j(h)},t.exportMethods.deleteMessage=h=>{k(ke(_=>{const y=_.findIndex(S=>S.id===h.id);y>=0&&(_[y].deleted=!0,_[y].body=void 0)})),U(ke(_=>{const y=_.findIndex(S=>S.id===h.conversationId);if(y>=0){const S=_[y];S.lastMessage&&S.lastMessage.id===h.id&&(S.lastMessage=ee(H({},S.lastMessage),{deleted:!0,body:void 0}))}}))};function I(h,_){const y=p.get(h);y&&y(_?!1:_===!1?!0:S=>!S)}function R(h,_){const y=`cp-loader-${h}`;I(y,_)}function b(h,_){const y=`cp-loader-${h}`;p.set(y,_)}function D(h,_){if(!W())return;const S=`cp-drawer-${h}`;I(S,_)}function Y(h,_){const y=`cp-drawer-${h}`;p.set(y,_)}t.exportMethods.deleteConversation=fe,t.exportMethods.updateConversationName=he;function he(h,_){U(ke(S=>{const T=S.findIndex(ge=>ge.id===h);T>=0&&(S[T].name=_)}));const y=d();y&&y.id===h&&u(ee(H({},y),{name:_}))}function fe(h){var _;((_=d())==null?void 0:_.id)===h&&ce(void 0),U(ke(y=>{const S=y.findIndex(T=>T.id===h);S>=0&&y.splice(S,1)}))}function ce(h,_){k([]);let y;if(typeof h=="string"){const S=$.findIndex(T=>T.id===h);S>=0?y=$[S]:m.getConversationAsync(h).then(T=>{T?(oe(_?{hasNewer:!1,hasOlder:!1}:ge=>ee(H({},ge),{hasOlder:!0})),u(H({},T)),C(T.name)):u(void 0)})}else y=h;y?(oe(_?{hasNewer:!1,hasOlder:!1}:S=>ee(H({},S),{hasOlder:!0})),u(H({},y)),C(y.name)):u(void 0)}function ne(h,_){return v(this,null,function*(){const y=yield m.listConversationAsync(h,_);return U(y),$})}function G(h,_){return v(this,null,function*(){return U(ke(y=>{const S=y.findIndex(T=>T.id===h);if(S>=0){const T=y[S];T.isPinned=_,y.splice(S,1),y.unshift(T)}})),yield m.pinConversationAsync(h,_),!0})}function E(h,_){return v(this,null,function*(){return h.id?(h.traceId=h.id,h.creating=!0,U(ke(y=>{y.unshift(h)})),ce(h,!0),_&&_(),m.createConversationAsync(h)):(ce(h,!0),h)})}function K(h,_){return v(this,null,function*(){return he(h,_),yield m.updateConversationNameAsync(h,_),!0})}function ye(h){return v(this,null,function*(){return fe(h),yield m.deleteConversationAsync(h),!0})}function J(h,_,y){return v(this,null,function*(){var re,Ie;const S=d(),T=S==null?void 0:S.id,ge=T||(S==null?void 0:S.id);if(!ge||!T)return M;h?(h=h.toUpperCase(),h!="BEFORE"&&h!="AFTER"&&(h="BEFORE")):h="BEFORE";const xe=y||Ui;if(!h){const X=yield m.listMessagesAsync(ge,void 0,void 0,xe);return k(ke(Q=>{Q.splice(0,Q.length,...X)})),M}if(_){const X=M.findIndex(Q=>Q.id===_);if(X>=0){if(h==="BEFORE"){if(X-xe>=0)return M}else if(X+xe<M.length)return M}}else h==="BEFORE"?_=(re=M[0])==null?void 0:re.id:_=(Ie=M[M.length-1])==null?void 0:Ie.id;const Le=yield m.listMessagesAsync(T,h,_,xe);return Le.length>0?k(ke(X=>{h==="BEFORE"?X.unshift(...Le):X.push(...Le)})):oe(h==="BEFORE"?X=>ee(H({},X),{hasOlder:!1}):X=>ee(H({},X),{hasNewer:!1})),M})}function be(h){return v(this,null,function*(){if(M.length>0)return M;const{hasOlder:_}=Ae();return _&&(yield J(void 0,void 0,h)),M})}function Oe(h,_){return v(this,null,function*(){if(M.findIndex(T=>T.id===h)>=0){A({messageId:h,highlight:!0});return}let S=d();if(oe({hasOlder:!0,hasNewer:!0}),k([]),!S||S.id!==_){const T=$.findIndex(ge=>ge.id===_);if(T>=0){const ge=$[T];yield J("AFTER",h),ce(ge)}else{const ge=yield m.getConversationAsync(_);if(!ge)return;yield J("AFTER",h),ce(ge)}}else yield J("AFTER",h),yield J("BEFORE");setTimeout(()=>{A({messageId:h,highlight:!0})},100)})}function nt(h){return v(this,null,function*(){let _=d();if(!_)throw new Error("No current conversation");let y=_.id;const S=Pt(),T=ee(H({},h),{id:S,conversationId:y,traceId:S,sending:!0,sentAt:new Date});if(y)k(ke(xe=>{xe.push(T)}));else{_.id=Pt();const xe=yield E(_,()=>{T.conversationId=_.id,k(ke(Le=>{Le.push(T)}))});T.conversationId=xe.id,k(ke(Le=>{const re=Le.findIndex(Ie=>Ie.id===S);re>=0&&(Le[re].conversationId=xe.id)}))}A({messageId:S,highlight:!1});const ge=yield m.sendMessageAsync(T);return k(ke(xe=>{const Le=xe.findIndex(re=>re.id===S);Le>=0&&(xe[Le].id=ge.id,xe[Le].mentions=ge.mentions,xe[Le].sending=!1)})),ge})}function st(){return v(this,null,function*(){const h=yield m.getConversationAsync(ji);return!h||!h.status?"NOT_DONE":h.status})}return ie(On.Provider,{get value(){return{getPanelElement:W,setPanelElement:Z,toggleLoader:R,registerLoader:b,toggleDrawer:D,registerDrawer:Y,getPopupState:e,setPopupState:n,getFullscreenState:s,setFullscreenState:i,getSidebarState:o,setSidebarState:r,getFooterSendBoxState:c,setFooterSendBoxState:a,gotoMessageAsync:Oe,getCurrentConversation:d,getLastMessage:f,setCurrentConversation:ce,getCurrentMessage:z,setCurrentQuotedMessage:w,getCurrentQuotedMessage:O,getCurrentMessages:()=>M,listConversationsAsync:ne,createConversationAsync:E,pinConversationAsync:G,updateConversationNameAsync:K,deleteConversationAsync:ye,listMessagesAsync:J,initMessagesAsync:be,getMessageLoadingStatus:Ae,listChatTypesAsync:m.listChatTypesAsync,sendMessageAsync:nt,updateMessageAsync:m.updateMessageAsync,deleteMessageAsync:m.deleteMessageAsync,batchGetUsersAsync:m.batchGetUsersAsync,searchConversationsAsync:m.searchConversationsAsync,searchMessagesAsync:m.searchMessagesAsync,uploadFile:m.uploadFile,getSurveyStatusAsync:st,getCurrentChatType:de,setCurrentChatType:B,getTitle:x,setTitle:C}},get children(){return t.children}})};function Vi(){const t=ds(On);if(!t)throw new Error("usePopup must be used within a PopupProvider");return t}function Nn(t){return t.map(e=>{var o,r,c,a,d,u,f,j,$,U,W,Z,M,k,z,A,O,w,Ae,oe,de;const s=(((o=e.sender)==null?void 0:o.id)||"")==="me"?"user":"bot",i={id:e.id,text:e.content,sender:s,type:void 0,sentAt:e.sentAt};if(((r=e.body)==null?void 0:r.type)==="CHOICE"&&s==="bot")return[ee(H({},i),{type:"choice",question:e.body.content||"",options:((a=(c=e.body.choice)==null?void 0:c.items)==null?void 0:a.map(B=>B.label))||[],rawItems:((d=e.body.choice)==null?void 0:d.items)||[],multiSelect:!!((u=e.body.choice)!=null&&u.multiple),isDragDrop:!1,selectedIndexes:(f=e.body.choice)!=null&&f.items?e.body.choice.items.map((B,x)=>B.selected?x:-1).filter(B=>B!==-1):[],contents:[{content:e.body.content,metadata:e.body.metadata}]})];if(((j=e.body)==null?void 0:j.type)==="FORM"&&(($=e.body)!=null&&$.form)&&s==="bot")return[ee(H({},i),{type:"survey",question:e.content||"",options:((U=e.body.form.fields)==null?void 0:U.map(B=>B.label))||[],placeholders:((W=e.body.form.fields)==null?void 0:W.map(B=>{var x;return((x=B.options)==null?void 0:x.placeHolder)||B.label}))||[],isInputMode:!0,fields:e.body.form.fields})];if(((Z=e.body)==null?void 0:Z.type)==="FORM"&&s==="user"){const x=(((M=e.body.form)==null?void 0:M.fields)||[]).map(C=>C.value).join(`
|
|
3
3
|
|
|
4
|
-
`):
|
|
4
|
+
`);return[ee(H({},i),{text:x,type:"normal",isNormalType:!0,contents:[{content:x}]})]}if((k=e.body)!=null&&k.children&&Array.isArray(e.body.children)){const B=e.body.children.find(m=>m.choice&&Array.isArray(m.choice.items)),x=e.body.children.find(m=>m.ranking&&Array.isArray(m.ranking.items)),C=e.body.children.find(m=>m.form&&Array.isArray(m.form.fields)),p=e.body.children.filter(m=>typeof m.content=="string").map(m=>{let I=m.content;return typeof I=="string"&&I.includes("|")&&(I=I.split("|").map(R=>R.trim()).join(`
|
|
5
5
|
|
|
6
|
-
`)),
|
|
6
|
+
`)),ee(H({},i),{text:I,type:"normal",isNormalType:!0,contents:[{content:I,metadata:m.metadata}]})});if(x){const m=e.body.children.find(b=>b.type==="NORMAL"&&typeof b.content=="string"&&b.content.includes("Câu")),I=p.length>0?p[p.length-1].text:e.body.children.length>0?e.body.children[e.body.children.length-1].content:"";let R=p;return m?R=p.filter(b=>b.text!==m.content):p.length>1&&(R=p.slice(0,-1)),R.length===1&&R[0].text===I&&(R=[]),[...R,ee(H({},i),{type:"choice",question:I,options:x.ranking.items.map(b=>b.label)||[],rawItems:x.ranking.items||[],multiSelect:!1,isDragDrop:!0,selectedIndexes:x.ranking.items.map((b,D)=>b.rank?D:-1).filter(b=>b!==-1)||[]})]}else if(B){const m=e.body.children.find(b=>b.type==="NORMAL"&&typeof b.content=="string"&&b.content.includes("Câu")),I=p.length>0?p[p.length-1].text:e.body.children.length>0?e.body.children[e.body.children.length-1].content:"";let R=p;return m?R=p.filter(b=>b.text!==m.content):p.length>1&&(R=p.slice(0,-1)),R.length===1&&R[0].text===I&&(R=[]),[...R,ee(H({},i),{type:"choice",question:I,options:B.choice.items.map(b=>b.label)||[],rawItems:B.choice.items||[],multiSelect:!!B.choice.multiple,isDragDrop:!1,selectedIndexes:B.choice.items.map((b,D)=>b.selected?D:-1).filter(b=>b!==-1)||[],contents:e.body.children})]}else if(C){const m=e.body.children.find(b=>b.type==="NORMAL"&&typeof b.content=="string"&&b.content.includes("Câu")),I=p.length>0?p[p.length-1].text:e.body.children.length>0?e.body.children[e.body.children.length-1].content:"";let R=p;return m?R=p.filter(b=>b.text!==m.content):p.length>1&&(R=p.slice(0,-1)),R.length===1&&R[0].text===I&&(R=[]),[...R,ee(H({},i),{type:"survey",question:I,options:C.form.fields.map(b=>b.label)||[],placeholders:C.form.fields.map(b=>{var D;return((D=b.options)==null?void 0:D.placeHolder)||b.label})||[],isInputMode:!0,fields:C.form.fields})]}else if(e.body.children.every(m=>m.type==="NORMAL"))return e.body.children.map(m=>ee(H({},i),{text:m.content,type:"normal",isNormalType:!0,contents:[{content:m.content,metadata:m.metadata}]}))}if(((z=e.body)==null?void 0:z.type)==="CHOICE"&&s==="user"){const B=(O=(A=e.body.choice)==null?void 0:A.items)==null?void 0:O.filter(x=>x.selected);if(B&&B.length>0){const x=B.map(C=>C.label).join(`
|
|
7
|
+
|
|
8
|
+
`);return[ee(H({},i),{text:x,type:"normal",isNormalType:!0,contents:[{content:x}]})]}}if(((w=e.body)==null?void 0:w.type)==="NORMAL"&&s==="user")return[ee(H({},i),{text:e.body.content,type:"normal",isNormalType:!0,contents:[{content:e.body.content}]})];if(((Ae=e.body)==null?void 0:Ae.type)==="RANKING"&&s==="user"){const B=(oe=e.body.ranking)==null?void 0:oe.items;if(Array.isArray(B)&&B.length>0){const C=[...B].sort((p,m)=>{var I,R;return((I=p.rank)!=null?I:0)-((R=m.rank)!=null?R:0)}).map(p=>p.label).join(`
|
|
9
|
+
|
|
10
|
+
`);return[ee(H({},i),{text:C,type:"normal",isNormalType:!0,contents:[{content:C}]})]}}if(((de=e.body)==null?void 0:de.type)==="MULTIPLE"&&s==="user"){const B=e.body.children.find(x=>x.type==="NORMAL"&&typeof x.content=="string");if(B&&B.content){const x=B.content.split("|").map(C=>C.trim()).join(`
|
|
11
|
+
|
|
12
|
+
`);return[ee(H({},i),{text:x,type:"normal",isNormalType:!0,contents:[{content:x}]})]}}return s==="bot"&&e.body&&typeof e.body.content=="string"&&!e.body.type?[ee(H({},i),{text:e.body.content,type:"normal",isNormalType:!0,contents:[{content:e.body.content,metadata:e.body.metadata}]})]:[ee(H({},i),{type:"normal",isNormalType:!0,contents:i.text?[{content:i.text}]:[]})]}).flat().filter(e=>e.type==="choice"?!!e.question&&Array.isArray(e.options)&&e.options.length>0:e.type==="normal"?!!e.text&&e.text.trim()!=="":e.type==="form"?Array.isArray(e.fields)&&e.fields.length>0:e.type==="survey"?Array.isArray(e.options)&&e.options.length>0:!!e.text&&e.text.trim()!=="")}function Wi(t,e,n){var o;const s=[...t].reverse().find(r=>r.sender==="bot");let i;if(s&&s.contents&&Array.isArray(s.contents)&&(i=(o=s.contents.find(r=>r.metadata))==null?void 0:o.metadata),i){const r=parseInt(i.section),c=parseInt(i.totalSections)||6;e(r),n(c)}else e(1),n(6)}function Un(t){return v(this,null,function*(){var n,s,i;if(!t)return!1;const e=yield t.listConversationAsync(100);for(const o of e)if(o.id&&o.id.endsWith("~SURVEY")){const r=yield t.listMessagesAsync(o.id);let c=1,a=6;for(let d=r.length-1;d>=0;d--){const u=r[d];if(((n=u.sender)==null?void 0:n.id)!=="me"&&((s=u.body)!=null&&s.children)){const f=(i=u.body.children.find(j=>j.metadata))==null?void 0:i.metadata;if(f){c=parseInt(f.section),a=parseInt(f.totalSections)||6;break}}}if(c<a)return!0}return!1})}function jn(t,e,n,s,i,o,r,c,a){return v(this,null,function*(){if(!t.remoteRepo)return;const u=(yield t.remoteRepo.listConversationAsync(100)).find(f=>f.id&&f.id.endsWith("~SURVEY"));if(u)e.setCurrentConversation({id:u.id,name:u.name,type:"BOT"}),n(u.id),s(u.name),i(!0),o(new Set),r(!1),yield e.listMessagesAsync(u.id),c&&c();else{const f=`${Pt()}~SURVEY`,$=yield e.createConversationAsync({id:f,name:"Tư vấn đầu tư",type:"BOT",members:[{userId:"BOT~surveybot",role:"MEMBER"}],updatedAt:new Date});e.setCurrentConversation({id:$.id,name:$.name,type:"BOT"}),n($.id),s($.name),i(!0),o(new Set),r(!1),yield e.listMessagesAsync($.id),c&&c(),a&&a()}})}function qi(t,e){if(!e||t.length===0)return!0;const n=[...t].reverse().find(s=>s.sender==="bot");return!!(n&&n.type==="normal")}function Zi(t,e,n,s,i,o,r,c,a,d,u){return v(this,null,function*(){if(yield Un(t.remoteRepo)){alert("Bạn chưa hoàn thành khảo sát hiện tại!");return}const f=e.trim();if(!f){n("Vui lòng nhập tên cuộc hội thoại");return}if(f.length>100){n("Tên cuộc hội thoại không được quá 100 ký tự");return}n(void 0),s(!1);try{const j=Pt(),U=yield i.createConversationAsync({id:j,name:f,type:"BOT",members:[{userId:"BOT~rasaconnector",role:"MEMBER"}],updatedAt:new Date});i.setCurrentConversation({id:U.id,name:U.name,type:"BOT"}),o(U.id),r(U.name),c(!0),a(new Set),d(!1),yield i.listMessagesAsync(U.id),u&&u()}catch(j){console.error("Tạo hội thoại mới thất bại:",j)}})}function Yi(t,e,n,s){return v(this,null,function*(){var d,u,f,j;const{props:i,currentConversationId:o,formattedMessages:r,popup:c,setSubmittedMessages:a}=s;if(!(!i.remoteRepo||!o))try{const $=[...r].reverse().find(M=>M.type==="choice"&&M.sender==="bot");if(!$)return;const U=Array.isArray($.contents)&&$.contents.length>0?$.contents[$.contents.length-1].metadata||{}:{};a(M=>new Set([...M,n]));let W={};e==="ordered"?W={type:"RANKING",content:"",ranking:{items:((d=$.rawItems)==null?void 0:d.map(k=>ee(H({},k),{rank:t.indexOf(k.label)+1})))||t.map((k,z)=>({label:k,value:k,rank:z+1})),submitted:!0},metadata:U}:e==="selected"?W={type:"CHOICE",content:"",choice:{items:((u=$.rawItems)==null?void 0:u.map(k=>ee(H({},k),{selected:t.includes(k.label)})))||((f=$.options)==null?void 0:f.map(k=>({label:k,value:k,selected:t.includes(k)})))||[],multiple:$.multiSelect||!1,submitted:!0},metadata:U}:e==="input"&&(W={type:"FORM",content:"",form:{fields:((j=$.fields)==null?void 0:j.map((M,k)=>ee(H({},M),{value:t[k]||""})))||[],submitted:!0},metadata:U});const Z={body:W,conversationId:o,sender:{id:"me"}};yield c.sendMessageAsync(Z)}catch($){console.error("Error sending survey response:",$)}})}function Xi(t,e,n,s){return v(this,null,function*(){var u,f,j,$;const{props:i,currentConversationId:o,formattedMessages:r,popup:c,setEditingMsgIdBot:a,setEditingMsgIdUser:d}=s;if(!(!i.remoteRepo||!o))try{if(!r.find(A=>A.id===n&&A.sender==="user"))return;const W=r.findIndex(A=>A.id===n);let Z;for(let A=W-1;A>=0;A--){const O=r[A];if(O.sender==="bot"&&(O.type==="choice"||O.type==="survey"||O.type==="form")){Z=O;break}}if(!Z)return;const M=Array.isArray(Z.contents)&&Z.contents.length>0?Z.contents[Z.contents.length-1].metadata||{}:{};let k={};e==="input"?k={type:"NORMAL",content:t[0],metadata:M}:e==="ordered"?k={type:"RANKING",content:"",ranking:{items:((u=Z.rawItems)==null?void 0:u.map(O=>ee(H({},O),{rank:t.indexOf(O.label)+1})))||t.map((O,w)=>({label:O,value:O,rank:w+1})),submitted:!0},metadata:M}:e==="selected"?k={type:"CHOICE",content:"",choice:{items:((f=Z.rawItems)==null?void 0:f.map(O=>ee(H({},O),{selected:t.includes(O.label)})))||((j=Z.options)==null?void 0:j.map(O=>({label:O,value:O,selected:t.includes(O)})))||[],multiple:Z.multiSelect||!1,submitted:!0},metadata:M}:e==="input"&&(k={type:"FORM",content:"",form:{fields:(($=Z.fields)==null?void 0:$.map((A,O)=>ee(H({},A),{value:t[O]||""})))||[],submitted:!0},metadata:M});const z={id:n,body:k,conversationId:o,sender:{id:"me"}};yield c.updateMessageAsync(z),a(null),d(null)}catch(U){console.error("Error updating survey response:",U)}})}var Gi=F("<div>"),Ki=F("<button class=chat-popup-button><img>"),Qi=F("<div style=font-size:14px;margin-top:4px>"),Ji=F("<div class=modal-backdrop><div class=modal-content style=background-color:white;border-radius:8px><div style=margin-bottom:12px><label style=margin-bottom:18px;font-weight:500;text-align:left>Tên cuộc trò chuyện mới:</label><input autofocus class=chat-popup-input></div><div style=text-align:right><button class=modal-button-delete style=margin-right:8px;background-color:#f0f0f0>Hủy bỏ</button><button class=modal-button-delete style=background-color:#1AAF74>Tạo"),eo=F("<div class=modal-backdrop><div style=background-color:white;border-radius:8px><div style=font-size:16px;font-weight:500;margin-bottom:12px;text-align:left>Xóa đoạn chat?</div><div style=font-size:14px;margin-bottom:16px;text-align:left>Hành động này sẽ xóa <b></b>?</div><div style=text-align:right><button class=modal-button-delete style=margin-right:8px>Hủy bỏ</button><button class=modal-button-delete style=background-color:#e74c3c>Xóa"),to=F("<div class=modal-backdrop><div class=modal-content style=background-color:white;border-radius:8px><div style=font-size:16px;font-weight:500;margin-bottom:12px>Bạn chưa làm khảo sát. Vui lòng thực hiện khảo sát trước khi bắt đầu tư vấn!</div><div style=text-align:right><button class=modal-button-delete style=background-color:#1AAF74>Đã hiểu"),no=F("<div><div style=flex-direction:row><div style=flex-direction:column;min-height:0>"),so=F("<div class=chat-popup-header><img><div class=chat-popup-title><img style=margin-right:4px><span style=user-select:none>Ez</span><span style=margin-left:4px;user-select:none>Advise</span></div><div style=align-items:center;margin-top:4px><button><img>"),zn=F("<button><img>"),io=F("<div><div>"),oo=F("<div style=text-align:center;font-size:32px;font-weight:600;margin-bottom:32px;user-select:none>Hôm nay thị trường khiến bạn quan tâm điều gì?"),ro=F("<div class=chat-popup-action-buttons>");function ao(t){var st;const e=Vi(),[n,s]=L(""),[i,o]=L(!1),[r,c]=L(!1),[a,d]=L(!1),[u,f]=L(!1),[j,$]=L(0),[U]=L({}),[W,Z]=L(new Set),[M,k]=L(null),[z,A]=L(!1),[O,w]=L(!0),[Ae,oe]=L(""),[de,B]=L(1),[x,C]=L(6),[p,m]=L(null),[I,R]=L(null),[b,D]=L(!1),[Y,he]=L(""),[fe,ce]=L(void 0);let ne=null;const[G,E]=L(null),[K,ye]=L(!1),J=((st=t.options)==null?void 0:st.onlyMobile)||!1,be=()=>v(null,null,function*(){yield jn(t,e,k,oe,w,Z,A,ne,()=>ye(!0)),yield Zi(t,Y(),ce,D,e,k,oe,w,Z,A,ne)});Qe(()=>v(null,null,function*(){if(t.remoteRepo)try{const h=yield t.remoteRepo.listConversationAsync(10);console.log("listConversationAsync result:",h),(!h||h.length===0)&&console.warn("listConversationAsync returned empty or null")}catch(h){console.error("Error calling listConversationAsync:",h)}})),Qe(()=>{const h=e.getCurrentMessages();h&&h.length>0&&Wi(Nn(h),B,C)});const Oe=()=>{const h=M();return!!h&&h.endsWith("~SURVEY")},nt=()=>v(null,null,function*(){he(""),ce(void 0),D(!0)});return Mt(()=>{const h=()=>{const y=window.innerWidth<768;f(y),a()&&y&&(d(!1),f(!0))};return window.addEventListener("resize",h),h(),()=>{window.removeEventListener("resize",h)}}),Qe(()=>{var h,_;(h=t.options)!=null&&h.onFullScreen&&t.options.onFullScreen(a()),(_=t.options)!=null&&_.onMobile&&t.options.onMobile(u())}),(()=>{var h=Gi();return P(h,(()=>{var _=te(()=>!i());return()=>_()&&(()=>{var y=Ki(),S=y.firstChild;return y.$$click=()=>{var T;J&&f(!0),o(!0),(T=t.options)!=null&&T.onOpen&&t.options.onOpen()},l(y,"background","none"),l(y,"border","none"),l(y,"cursor","pointer"),l(y,"padding","0"),se(S,"src",hn),y})()})(),null),P(h,(()=>{var _=te(()=>!!i());return()=>_()&&(()=>{const y=Je(()=>Nn(e.getCurrentMessages())),S=()=>qi(y(),M()),T=(re,Ie,X)=>Yi(re,Ie,X,{props:t,currentConversationId:M(),formattedMessages:y(),popup:e,setSubmittedMessages:Z}),ge=(re,Ie,X)=>Xi(re,Ie,X,{props:t,currentConversationId:M(),formattedMessages:y(),popup:e,setEditingMsgIdBot:m,setEditingMsgIdUser:R}),xe=()=>v(null,null,function*(){var re,Ie;if(!(!n().trim()||!t.remoteRepo)){if(yield Un(t.remoteRepo)){alert("Bạn chưa hoàn thành khảo sát hiện tại!");return}if(!M()){yield jn(t,e,k,oe,w,Z,A,ne,()=>ye(!0));try{const X=Pt(),Q="BOT~rasaconnector",N=`Cuộc hội thoại mới ${X.slice(-4)}`,V=yield e.createConversationAsync({id:X,name:N,type:"BOT",members:[{userId:Q,role:"MEMBER"}],updatedAt:new Date});e.setCurrentConversation({id:V.id,name:V.name,type:"BOT"}),k(V.id),oe(V.name),w(!0),Z(new Set),A(!1),yield e.listMessagesAsync(V.id),ne&&ne()}catch(X){console.error("Tạo hội thoại mới thất bại:",X);return}}try{let X={};const Q=y().filter(V=>V.sender==="bot"&&Array.isArray(V.contents)&&V.contents.length>0&&V.contents[V.contents.length-1].metadata);if(Q.length>0){const V=Q[Q.length-1];X=((Ie=(re=V.contents)==null?void 0:re[V.contents.length-1])==null?void 0:Ie.metadata)||{}}const N={body:{type:"NORMAL",content:n(),metadata:X},conversationId:M(),sender:{id:"me"}};yield e.sendMessageAsync(N),s("")}catch(X){console.error("Error sending message:",X)}}}),Le=()=>v(null,null,function*(){var re,Ie;if(!(!e||y().length===0||!M()||!O()))try{const X=y()[0].id,Q=30,N=y().findIndex(ze=>ze.id===X);if(N>=0&&N-Q>=0)return;const V=document.querySelector(".chat-messages-container"),ae=V==null?void 0:V.querySelector(`[data-message-id="${X}"]`),le=(re=ae==null?void 0:ae.offsetTop)!=null?re:0,Xe=(Ie=V==null?void 0:V.scrollTop)!=null?Ie:0;yield e.listMessagesAsync("BEFORE",X,Q),requestAnimationFrame(()=>{var _e;const ze=V==null?void 0:V.querySelector(`[data-message-id="${X}"]`),Ve=(_e=ze==null?void 0:ze.offsetTop)!=null?_e:0;V&&(V.scrollTop=Ve-(le-Xe))})}catch(X){console.error("Error loading more messages:",X)}});return Qe(()=>{y(),i()&&requestAnimationFrame(()=>{const re=document.querySelector(".chat-messages-container");re&&(re.scrollTop=re.scrollHeight)})}),(()=>{var re=no(),Ie=re.firstChild,X=Ie.firstChild;return P(re,ie(Ye,{get when(){return b()},get children(){var Q=Ji(),N=Q.firstChild,V=N.firstChild,ae=V.firstChild,le=ae.nextSibling,Xe=V.nextSibling,ze=Xe.firstChild,Ve=ze.nextSibling;return Q.$$click=()=>D(!1),N.$$click=_e=>_e.stopPropagation(),l(N,"padding","20px"),l(N,"width","400px"),l(ae,"display","block"),l(ae,"color","#1A1D1F"),le.$$keydown=_e=>{_e.key==="Enter"&&be()},le.$$input=_e=>he(_e.currentTarget.value),P(V,ie(Ye,{get when(){return fe()},get children(){var _e=Qi();return l(_e,"color","red"),P(_e,fe),_e}}),null),ze.$$click=()=>D(!1),Ve.$$click=be,l(Ve,"color","#fff"),ue(()=>le.value=Y()),Q}}),Ie),P(re,(()=>{var Q=te(()=>!a());return()=>Q()&&(()=>{var N=so(),V=N.firstChild,ae=V.nextSibling,le=ae.firstChild,Xe=le.nextSibling,ze=Xe.nextSibling,Ve=ae.nextSibling,_e=Ve.firstChild,We=_e.firstChild;return V.$$click=()=>c(!0),se(V,"src",Ss),l(V,"width","28px"),l(V,"height","28px"),l(V,"cursor","pointer"),se(le,"src",hn),l(le,"width","32px"),l(le,"height","32px"),l(Xe,"color","#1A1D1F"),l(ze,"color","#1AAF74"),l(Ve,"display","flex"),l(Ve,"gap","12px"),P(Ve,(()=>{var lt=te(()=>!u());return()=>lt()&&[(()=>{var He=zn(),dt=He.firstChild;return He.$$click=()=>{var Lt;a()?(d(!1),f(!0)):u()?f(!1):f(!0),(Lt=t.options)!=null&&Lt.onMinimize&&t.options.onMinimize()},l(He,"background","none"),l(He,"border","none"),l(He,"cursor","pointer"),l(He,"padding","0"),se(dt,"src",Is),l(dt,"width","20px"),l(dt,"height","20px"),He})(),(()=>{var He=zn(),dt=He.firstChild;return He.$$click=()=>{var Lt;f(!1),d(!0),(Lt=t.options)!=null&&Lt.onMaximize&&t.options.onMaximize()},l(He,"background","none"),l(He,"border","none"),l(He,"cursor","pointer"),l(He,"padding","0"),se(dt,"src",As),l(dt,"width","20px"),l(dt,"height","20px"),He})()]})(),_e),_e.$$click=()=>{var lt;o(!1),f(!1),d(!1),(lt=t.options)!=null&<.onClose&&t.options.onClose()},l(_e,"background","none"),l(_e,"border","none"),l(_e,"cursor","pointer"),l(_e,"padding","0"),se(We,"src",kn),l(We,"width","20px"),l(We,"height","20px"),N})()})(),Ie),l(Ie,"display","flex"),l(Ie,"height","100%"),P(Ie,(()=>{var Q=te(()=>!!a());return()=>Q()?ie(Pn,{onClose:()=>{var N;o(!1),f(!1),d(!1),(N=t.options)!=null&&N.onClose&&t.options.onClose()},onShrink:()=>{var N;d(!1),(N=t.options)!=null&&N.onShrink&&t.options.onShrink()},open:!0,fullScreen:!0,get isMobile(){return u()},onMobile:()=>{d(!1),f(!0)},onNewConversation:nt,get options(){return t.options},get remoteRepo(){var N;return(N=t.remoteRepo)!=null?N:void 0},onDeleteConversation:E,onReloadConversations:N=>ne=N,onLoadMessages:(N,V)=>v(null,null,function*(){if(e.setCurrentConversation({id:N,name:"",type:"BOT"}),k(N),oe(V||""),w(!0),t.remoteRepo)try{yield e.listMessagesAsync(N),Z(new Set),A(!1),requestAnimationFrame(()=>{requestAnimationFrame(()=>{const ae=document.querySelector(".chat-messages-container");ae&&(ae.scrollTop=ae.scrollHeight),A(!1)})})}catch(ae){console.error("Error loading messages:",ae),A(!1)}})}):ie(Pn,{onClose:()=>c(!1),get open(){return r()},fullScreen:!1,get isMobile(){return u()},onNewConversation:nt,get options(){return t.options},get remoteRepo(){var N;return(N=t.remoteRepo)!=null?N:void 0},onDeleteConversation:E,onReloadConversations:N=>ne=N,onLoadMessages:(N,V)=>v(null,null,function*(){if(e.setCurrentConversation({id:N,name:"",type:"BOT"}),k(N),oe(V||""),w(!0),t.remoteRepo)try{yield e.listMessagesAsync(N);const ae=e.getCurrentMessages();console.log("message data: ",ae),Z(new Set),A(!1),requestAnimationFrame(()=>{requestAnimationFrame(()=>{const le=document.querySelector(".chat-messages-container");le&&(le.scrollTop=le.scrollHeight),A(!1)})})}catch(ae){console.error("Error loading messages:",ae),A(!1)}})})})(),X),l(X,"flex","1"),l(X,"display","flex"),l(X,"position","relative"),l(X,"height","100%"),P(X,(()=>{var Q=te(()=>!!a());return()=>Q()&&ie(Hi,{get currentStep(){return de()},get totalSteps(){return x()},get title(){return Ae()},get isSurveyConversation(){return Oe()}})})(),null),P(X,ie(wi,{get messages(){return y()},get isFullScreen(){return a()},get inputHeight(){return te(()=>!!a())()?j():void 0},get isMobile(){return u()},onSubmit:T,onUpdateSurvey:ge,get surveyOptions(){return U()},get submittedMessages(){return W()},onLoadMoreMessages:Le,get conversationId(){return M()},get isLoadingMessages(){return z()},get editingMsgIdBot(){return p()},setEditingMsgIdBot:m,get editingMsgIdUser(){return I()},setEditingMsgIdUser:R}),null),P(X,(()=>{var Q=te(()=>!!a());return()=>Q()?(()=>{var N=io(),V=N.firstChild;return P(N,(()=>{var ae=te(()=>y().length===0);return()=>ae()&&(()=>{var le=oo();return l(le,"width","100%"),l(le,"color","#1A1D1F"),le})()})(),V),l(V,"width","100%"),P(V,ie(Rn,{get input(){return n()},setInput:s,sendMessage:xe,onHeightChange:$,get disabled(){return!S()}})),P(N,(()=>{var ae=te(()=>y().length===0);return()=>ae()&&(()=>{var le=ro();return P(le,ie(qt,{text:"Khảo sát đầu tư"}),null),P(le,ie(qt,{text:"Mục tiêu tài chính"}),null),P(le,ie(qt,{text:"Khả năng chấp nhận rủi ro"}),null),P(le,ie(qt,{text:"Khả năng chấp nhận rủi ro"}),null),le})()})(),null),ue(()=>it(N,`chat-input-floating-box${y().length>0?" chat-input-floating-box--with-messages":""}`)),N})():ie(Rn,{get input(){return n()},setInput:s,sendMessage:xe,onHeightChange:$,get disabled(){return!S()}})})(),null),P(re,ie(Ye,{get when(){return!!G()},get children(){var Q=eo(),N=Q.firstChild,V=N.firstChild,ae=V.nextSibling,le=ae.firstChild,Xe=le.nextSibling,ze=ae.nextSibling,Ve=ze.firstChild,_e=Ve.nextSibling;return Q.$$click=()=>E(null),N.$$click=We=>We.stopPropagation(),l(N,"padding","20px"),l(N,"width","350px"),l(V,"color","#1A1D1F"),l(ae,"color","#1A1D1F"),P(Xe,()=>{var We;return(We=G())==null?void 0:We.name}),Ve.$$click=We=>{We.stopPropagation(),E(null)},_e.$$click=We=>v(null,null,function*(){var lt;We.stopPropagation();try{yield(lt=t.remoteRepo)==null?void 0:lt.deleteConversationAsync(G().id),E(null),ne&&ne()}catch(He){alert("Xóa hội thoại thất bại!")}}),l(_e,"color","#fff"),Q}}),null),P(re,ie(Ye,{get when(){return K()},get children(){var Q=to(),N=Q.firstChild,V=N.firstChild,ae=V.nextSibling,le=ae.firstChild;return Q.$$click=()=>ye(!1),N.$$click=Xe=>Xe.stopPropagation(),l(N,"padding","20px"),l(N,"width","350px"),le.$$click=()=>ye(!1),l(le,"color","#fff"),Q}}),null),ue(Q=>{var N=`chat-popup-window${i()?" chat-popup-window--open":""}${a()?" chat-popup-window--fullscreen":""}${u()?" chat-popup-window--mobile":""}`,V=a()||u()?{"--chat-input-height":`${j()}px`}:void 0;return N!==Q.e&&it(re,Q.e=N),Q.t=dn(re,V,Q.t),Q},{e:void 0,t:void 0}),re})()})()})(),null),h})()}pt(["click","input","keydown"]);function co(t){return ie(ao,{get remoteRepo(){return t.remoteRepo},get options(){return t.options}})}class rt extends Error{constructor(e,n){const s=new.target.prototype;super(`${e}: Status code '${n}'`),this.statusCode=n,this.__proto__=s}}class fn extends Error{constructor(e="A timeout occurred."){const n=new.target.prototype;super(e),this.__proto__=n}}class qe extends Error{constructor(e="An abort occurred."){const n=new.target.prototype;super(e),this.__proto__=n}}class lo extends Error{constructor(e,n){const s=new.target.prototype;super(e),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=s}}class uo extends Error{constructor(e,n){const s=new.target.prototype;super(e),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=s}}class ho extends Error{constructor(e,n){const s=new.target.prototype;super(e),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=s}}class Vn extends Error{constructor(e){const n=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class fo extends Error{constructor(e,n){const s=new.target.prototype;super(e),this.innerErrors=n,this.__proto__=s}}class Wn{constructor(e,n,s){this.statusCode=e,this.statusText=n,this.content=s}}class Gt{get(e,n){return this.send(ee(H({},n),{method:"GET",url:e}))}post(e,n){return this.send(ee(H({},n),{method:"POST",url:e}))}delete(e,n){return this.send(ee(H({},n),{method:"DELETE",url:e}))}getCookieString(e){return""}}var g;(function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"})(g||(g={}));class $t{constructor(){}log(e,n){}}$t.instance=new $t;const go="8.0.17";class Ee{static isRequired(e,n){if(e==null)throw new Error(`The '${n}' argument is required.`)}static isNotEmpty(e,n){if(!e||e.match(/^\s*$/))throw new Error(`The '${n}' argument should not be empty.`)}static isIn(e,n,s){if(!(e in n))throw new Error(`Unknown ${s} value: ${e}.`)}}class ve{static get isBrowser(){return!ve.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ve.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ve.isNode&&typeof window=="object"&&typeof window.document=="undefined"}static get isNode(){return typeof process!="undefined"&&process.release&&process.release.name==="node"}}function Dt(t,e){let n="";return at(t)?(n=`Binary data of length ${t.byteLength}`,e&&(n+=`. Content: '${po(t)}'`)):typeof t=="string"&&(n=`String data of length ${t.length}`,e&&(n+=`. Content: '${t}'`)),n}function po(t){const e=new Uint8Array(t);let n="";return e.forEach(s=>{const i=s<16?"0":"";n+=`0x${i}${s.toString(16)} `}),n.substr(0,n.length-1)}function at(t){return t&&typeof ArrayBuffer!="undefined"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}function qn(t,e,n,s,i,o){return v(this,null,function*(){const r={},[c,a]=bt();r[c]=a,t.log(g.Trace,`(${e} transport) sending data. ${Dt(i,o.logMessageContent)}.`);const d=at(i)?"arraybuffer":"text",u=yield n.post(s,{content:i,headers:H(H({},r),o.headers),responseType:d,timeout:o.timeout,withCredentials:o.withCredentials});t.log(g.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)})}function Co(t){return t===void 0?new Kt(g.Information):t===null?$t.instance:t.log!==void 0?t:new Kt(t)}class mo{constructor(e,n){this._subject=e,this._observer=n}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(n=>{})}}class Kt{constructor(e){this._minLevel=e,this.out=console}log(e,n){if(e>=this._minLevel){const s=`[${new Date().toISOString()}] ${g[e]}: ${n}`;switch(e){case g.Critical:case g.Error:this.out.error(s);break;case g.Warning:this.out.warn(s);break;case g.Information:this.out.info(s);break;default:this.out.log(s);break}}}}function bt(){let t="X-SignalR-User-Agent";return ve.isNode&&(t="User-Agent"),[t,wo(go,vo(),bo(),yo())]}function wo(t,e,n,s){let i="Microsoft SignalR/";const o=t.split(".");return i+=`${o[0]}.${o[1]}`,i+=` (${t}; `,e&&e!==""?i+=`${e}; `:i+="Unknown OS; ",i+=`${n}`,s?i+=`; ${s}`:i+="; Unknown Runtime Version",i+=")",i}function vo(){if(ve.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function yo(){if(ve.isNode)return process.versions.node}function bo(){return ve.isNode?"NodeJS":"Browser"}function gn(t){return t.stack?t.stack:t.message?t.message:`${t}`}function _o(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global;throw new Error("could not find global")}class So extends Gt{constructor(e){if(super(),this._logger=e,typeof fetch=="undefined"||ve.isNode){const n=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(n("tough-cookie")).CookieJar,typeof fetch=="undefined"?this._fetchType=n("node-fetch"):this._fetchType=fetch,this._fetchType=n("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(_o());if(typeof AbortController=="undefined"){const n=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=n("abort-controller")}else this._abortControllerType=AbortController}send(e){return v(this,null,function*(){if(e.abortSignal&&e.abortSignal.aborted)throw new qe;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const n=new this._abortControllerType;let s;e.abortSignal&&(e.abortSignal.onabort=()=>{n.abort(),s=new qe});let i=null;if(e.timeout){const a=e.timeout;i=setTimeout(()=>{n.abort(),this._logger.log(g.Warning,"Timeout from HTTP request."),s=new fn},a)}e.content===""&&(e.content=void 0),e.content&&(e.headers=e.headers||{},at(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");let o;try{o=yield this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:e.withCredentials===!0?"include":"same-origin",headers:H({"X-Requested-With":"XMLHttpRequest"},e.headers),method:e.method,mode:"cors",redirect:"follow",signal:n.signal})}catch(a){throw s||(this._logger.log(g.Warning,`Error from HTTP request. ${a}.`),a)}finally{i&&clearTimeout(i),e.abortSignal&&(e.abortSignal.onabort=null)}if(!o.ok){const a=yield Zn(o,"text");throw new rt(a||o.statusText,o.status)}const c=yield Zn(o,e.responseType);return new Wn(o.status,o.statusText,c)})}getCookieString(e){let n="";return ve.isNode&&this._jar&&this._jar.getCookies(e,(s,i)=>n=i.join("; ")),n}}function Zn(t,e){let n;switch(e){case"arraybuffer":n=t.arrayBuffer();break;case"text":n=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:n=t.text();break}return n}class Ao extends Gt{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new qe):e.method?e.url?new Promise((n,s)=>{const i=new XMLHttpRequest;i.open(e.method,e.url,!0),i.withCredentials=e.withCredentials===void 0?!0:e.withCredentials,i.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.content===""&&(e.content=void 0),e.content&&(at(e.content)?i.setRequestHeader("Content-Type","application/octet-stream"):i.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const o=e.headers;o&&Object.keys(o).forEach(r=>{i.setRequestHeader(r,o[r])}),e.responseType&&(i.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{i.abort(),s(new qe)}),e.timeout&&(i.timeout=e.timeout),i.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),i.status>=200&&i.status<300?n(new Wn(i.status,i.statusText,i.response||i.responseText)):s(new rt(i.response||i.responseText||i.statusText,i.status))},i.onerror=()=>{this._logger.log(g.Warning,`Error from HTTP request. ${i.status}: ${i.statusText}.`),s(new rt(i.statusText,i.status))},i.ontimeout=()=>{this._logger.log(g.Warning,"Timeout from HTTP request."),s(new fn)},i.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class xo extends Gt{constructor(e){if(super(),typeof fetch!="undefined"||ve.isNode)this._httpClient=new So(e);else if(typeof XMLHttpRequest!="undefined")this._httpClient=new Ao(e);else throw new Error("No usable HttpClient found.")}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new qe):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class Ne{static write(e){return`${e}${Ne.RecordSeparator}`}static parse(e){if(e[e.length-1]!==Ne.RecordSeparator)throw new Error("Message is incomplete.");const n=e.split(Ne.RecordSeparator);return n.pop(),n}}Ne.RecordSeparatorCode=30,Ne.RecordSeparator=String.fromCharCode(Ne.RecordSeparatorCode);class Io{writeHandshakeRequest(e){return Ne.write(JSON.stringify(e))}parseHandshakeResponse(e){let n,s;if(at(e)){const c=new Uint8Array(e),a=c.indexOf(Ne.RecordSeparatorCode);if(a===-1)throw new Error("Message is incomplete.");const d=a+1;n=String.fromCharCode.apply(null,Array.prototype.slice.call(c.slice(0,d))),s=c.byteLength>d?c.slice(d).buffer:null}else{const c=e,a=c.indexOf(Ne.RecordSeparator);if(a===-1)throw new Error("Message is incomplete.");const d=a+1;n=c.substring(0,d),s=c.length>d?c.substring(d):null}const i=Ne.parse(n),o=JSON.parse(i[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[s,o]}}var q;(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence"})(q||(q={}));class Mo{constructor(){this.observers=[]}next(e){for(const n of this.observers)n.next(e)}error(e){for(const n of this.observers)n.error&&n.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new mo(this,e)}}class ko{constructor(e,n,s){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=n,this._bufferSize=s}_send(e){return v(this,null,function*(){const n=this._protocol.writeMessage(e);let s=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let i=()=>{},o=()=>{};at(n)?this._bufferedByteCount+=n.byteLength:this._bufferedByteCount+=n.length,this._bufferedByteCount>=this._bufferSize&&(s=new Promise((r,c)=>{i=r,o=c})),this._messages.push(new Eo(n,this._totalMessageCount,i,o))}try{this._reconnectInProgress||(yield this._connection.send(n))}catch(i){this._disconnected()}yield s})}_ack(e){let n=-1;for(let s=0;s<this._messages.length;s++){const i=this._messages[s];if(i._id<=e.sequenceId)n=s,at(i._message)?this._bufferedByteCount-=i._message.byteLength:this._bufferedByteCount-=i._message.length,i._resolver();else if(this._bufferedByteCount<this._bufferSize)i._resolver();else break}n!==-1&&(this._messages=this._messages.slice(n+1))}_shouldProcessMessage(e){if(this._waitForSequenceMessage)return e.type!==q.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(e))return!0;const n=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,n<=this._latestReceivedSequenceId?(n===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=n,this._ackTimer(),!0)}_resetSequence(e){if(e.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}_resend(){return v(this,null,function*(){const e=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;yield this._connection.send(this._protocol.writeMessage({type:q.Sequence,sequenceId:e}));const n=this._messages;for(const s of n)yield this._connection.send(s._message);this._reconnectInProgress=!1})}_dispose(e){e!=null||(e=new Error("Unable to reconnect to server."));for(const n of this._messages)n._rejector(e)}_isInvocationMessage(e){switch(e.type){case q.Invocation:case q.StreamItem:case q.Completion:case q.StreamInvocation:case q.CancelInvocation:return!0;case q.Close:case q.Sequence:case q.Ping:case q.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(()=>v(this,null,function*(){try{this._reconnectInProgress||(yield this._connection.send(this._protocol.writeMessage({type:q.Ack,sequenceId:this._latestReceivedSequenceId})))}catch(e){}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0}),1e3))}}class Eo{constructor(e,n,s,i){this._message=e,this._id=n,this._resolver=s,this._rejector=i}}const To=30*1e3,Ro=15*1e3,Po=1e5;var Ce;(function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"})(Ce||(Ce={}));class pn{static create(e,n,s,i,o,r,c){return new pn(e,n,s,i,o,r,c)}constructor(e,n,s,i,o,r,c){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(g.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Ee.isRequired(e,"connection"),Ee.isRequired(n,"logger"),Ee.isRequired(s,"protocol"),this.serverTimeoutInMilliseconds=o!=null?o:To,this.keepAliveIntervalInMilliseconds=r!=null?r:Ro,this._statefulReconnectBufferSize=c!=null?c:Po,this._logger=n,this._protocol=s,this.connection=e,this._reconnectPolicy=i,this._handshakeProtocol=new Io,this.connection.onreceive=a=>this._processIncomingData(a),this.connection.onclose=a=>this._connectionClosed(a),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ce.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:q.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==Ce.Disconnected&&this._connectionState!==Ce.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){return v(this,null,function*(){if(this._connectionState!==Ce.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ce.Connecting,this._logger.log(g.Debug,"Starting HubConnection.");try{yield this._startInternal(),ve.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ce.Connected,this._connectionStarted=!0,this._logger.log(g.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=Ce.Disconnected,this._logger.log(g.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}})}_startInternal(){return v(this,null,function*(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((n,s)=>{this._handshakeResolver=n,this._handshakeRejecter=s});yield this.connection.start(this._protocol.transferFormat);try{let n=this._protocol.version;this.connection.features.reconnect||(n=1);const s={protocol:this._protocol.name,version:n};if(this._logger.log(g.Debug,"Sending handshake request."),yield this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(s)),this._logger.log(g.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),yield e,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new ko(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||(yield this._sendMessage(this._cachedPingMessage))}catch(n){throw this._logger.log(g.Debug,`Hub handshake failed with error '${n}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),yield this.connection.stop(n),n}})}stop(){return v(this,null,function*(){const e=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),yield this._stopPromise;try{yield e}catch(n){}})}_stopInternal(e){if(this._connectionState===Ce.Disconnected)return this._logger.log(g.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ce.Disconnecting)return this._logger.log(g.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const n=this._connectionState;return this._connectionState=Ce.Disconnecting,this._logger.log(g.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(g.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(n===Ce.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new qe("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}_sendCloseMessage(){return v(this,null,function*(){try{yield this._sendWithProtocol(this._createCloseMessage())}catch(e){}})}stream(e,...n){const[s,i]=this._replaceStreamingParams(n),o=this._createStreamInvocation(e,n,i);let r;const c=new Mo;return c.cancelCallback=()=>{const a=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],r.then(()=>this._sendWithProtocol(a))},this._callbacks[o.invocationId]=(a,d)=>{if(d){c.error(d);return}else a&&(a.type===q.Completion?a.error?c.error(new Error(a.error)):c.complete():c.next(a.item))},r=this._sendWithProtocol(o).catch(a=>{c.error(a),delete this._callbacks[o.invocationId]}),this._launchStreams(s,r),c}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...n){const[s,i]=this._replaceStreamingParams(n),o=this._sendWithProtocol(this._createInvocation(e,n,!0,i));return this._launchStreams(s,o),o}invoke(e,...n){const[s,i]=this._replaceStreamingParams(n),o=this._createInvocation(e,n,!1,i);return new Promise((c,a)=>{this._callbacks[o.invocationId]=(u,f)=>{if(f){a(f);return}else u&&(u.type===q.Completion?u.error?a(new Error(u.error)):c(u.result):a(new Error(`Unexpected message type: ${u.type}`)))};const d=this._sendWithProtocol(o).catch(u=>{a(u),delete this._callbacks[o.invocationId]});this._launchStreams(s,d)})}on(e,n){!e||!n||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),this._methods[e].indexOf(n)===-1&&this._methods[e].push(n))}off(e,n){if(!e)return;e=e.toLowerCase();const s=this._methods[e];if(s)if(n){const i=s.indexOf(n);i!==-1&&(s.splice(i,1),s.length===0&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const n=this._protocol.parseMessages(e,this._logger);for(const s of n)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(s)))switch(s.type){case q.Invocation:this._invokeClientMethod(s).catch(i=>{this._logger.log(g.Error,`Invoke client method threw error: ${gn(i)}`)});break;case q.StreamItem:case q.Completion:{const i=this._callbacks[s.invocationId];if(i){s.type===q.Completion&&delete this._callbacks[s.invocationId];try{i(s)}catch(o){this._logger.log(g.Error,`Stream callback threw error: ${gn(o)}`)}}break}case q.Ping:break;case q.Close:{this._logger.log(g.Information,"Close message received from server.");const i=s.error?new Error("Server returned an error on close: "+s.error):void 0;s.allowReconnect===!0?this.connection.stop(i):this._stopPromise=this._stopInternal(i);break}case q.Ack:this._messageBuffer&&this._messageBuffer._ack(s);break;case q.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(s);break;default:this._logger.log(g.Warning,`Invalid message type: ${s.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let n,s;try{[s,n]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(i){const o="Error parsing handshake response: "+i;this._logger.log(g.Error,o);const r=new Error(o);throw this._handshakeRejecter(r),r}if(n.error){const i="Server returned handshake error: "+n.error;this._logger.log(g.Error,i);const o=new Error(i);throw this._handshakeRejecter(o),o}else this._logger.log(g.Debug,"Server handshake complete.");return this._handshakeResolver(),s}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let e=this._nextKeepAlive-new Date().getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(()=>v(this,null,function*(){if(this._connectionState===Ce.Connected)try{yield this._sendMessage(this._cachedPingMessage)}catch(n){this._cleanupPingTimer()}}),e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(e){return v(this,null,function*(){const n=e.target.toLowerCase(),s=this._methods[n];if(!s){this._logger.log(g.Warning,`No client method with the name '${n}' found.`),e.invocationId&&(this._logger.log(g.Warning,`No result given for '${n}' method and invocation ID '${e.invocationId}'.`),yield this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)));return}const i=s.slice(),o=!!e.invocationId;let r,c,a;for(const d of i)try{const u=r;r=yield d.apply(this,e.arguments),o&&r&&u&&(this._logger.log(g.Error,`Multiple results provided for '${n}'. Sending error to server.`),a=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),c=void 0}catch(u){c=u,this._logger.log(g.Error,`A callback for the method '${n}' threw error '${u}'.`)}a?yield this._sendWithProtocol(a):o?(c?a=this._createCompletionMessage(e.invocationId,`${c}`,null):r!==void 0?a=this._createCompletionMessage(e.invocationId,null,r):(this._logger.log(g.Warning,`No result given for '${n}' method and invocation ID '${e.invocationId}'.`),a=this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),yield this._sendWithProtocol(a)):r&&this._logger.log(g.Error,`Result given for '${n}' method but server is not expecting a result.`)})}_connectionClosed(e){this._logger.log(g.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new qe("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ce.Disconnecting?this._completeClose(e):this._connectionState===Ce.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===Ce.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=Ce.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e!=null?e:new Error("Connection closed.")),this._messageBuffer=void 0),ve.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[e]))}catch(n){this._logger.log(g.Error,`An onclose callback called with error '${e}' threw error '${n}'.`)}}}_reconnect(e){return v(this,null,function*(){const n=Date.now();let s=0,i=e!==void 0?e:new Error("Attempting to reconnect due to a unknown error."),o=this._getNextRetryDelay(s++,0,i);if(o===null){this._logger.log(g.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(e);return}if(this._connectionState=Ce.Reconnecting,e?this._logger.log(g.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(g.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(r=>r.apply(this,[e]))}catch(r){this._logger.log(g.Error,`An onreconnecting callback called with error '${e}' threw error '${r}'.`)}if(this._connectionState!==Ce.Reconnecting){this._logger.log(g.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;o!==null;){if(this._logger.log(g.Information,`Reconnect attempt number ${s} will start in ${o} ms.`),yield new Promise(r=>{this._reconnectDelayHandle=setTimeout(r,o)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ce.Reconnecting){this._logger.log(g.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(yield this._startInternal(),this._connectionState=Ce.Connected,this._logger.log(g.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(r=>r.apply(this,[this.connection.connectionId]))}catch(r){this._logger.log(g.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${r}'.`)}return}catch(r){if(this._logger.log(g.Information,`Reconnect attempt failed because of error '${r}'.`),this._connectionState!==Ce.Reconnecting){this._logger.log(g.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ce.Disconnecting&&this._completeClose();return}i=r instanceof Error?r:new Error(r.toString()),o=this._getNextRetryDelay(s++,Date.now()-n,i)}}this._logger.log(g.Information,`Reconnect retries have been exhausted after ${Date.now()-n} ms and ${s} failed attempts. Connection disconnecting.`),this._completeClose()})}_getNextRetryDelay(e,n,s){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:e,retryReason:s})}catch(i){return this._logger.log(g.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${n}) threw error '${i}'.`),null}}_cancelCallbacksWithError(e){const n=this._callbacks;this._callbacks={},Object.keys(n).forEach(s=>{const i=n[s];try{i(null,e)}catch(o){this._logger.log(g.Error,`Stream 'error' callback called with '${e}' threw error: ${gn(o)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,n,s,i){if(s)return i.length!==0?{arguments:n,streamIds:i,target:e,type:q.Invocation}:{arguments:n,target:e,type:q.Invocation};{const o=this._invocationId;return this._invocationId++,i.length!==0?{arguments:n,invocationId:o.toString(),streamIds:i,target:e,type:q.Invocation}:{arguments:n,invocationId:o.toString(),target:e,type:q.Invocation}}}_launchStreams(e,n){if(e.length!==0){n||(n=Promise.resolve());for(const s in e)e[s].subscribe({complete:()=>{n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(s)))},error:i=>{let o;i instanceof Error?o=i.message:i&&i.toString?o=i.toString():o="Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(s,o)))},next:i=>{n=n.then(()=>this._sendWithProtocol(this._createStreamItemMessage(s,i)))}})}}_replaceStreamingParams(e){const n=[],s=[];for(let i=0;i<e.length;i++){const o=e[i];if(this._isObservable(o)){const r=this._invocationId;this._invocationId++,n[r]=o,s.push(r.toString()),e.splice(i,1)}}return[n,s]}_isObservable(e){return e&&e.subscribe&&typeof e.subscribe=="function"}_createStreamInvocation(e,n,s){const i=this._invocationId;return this._invocationId++,s.length!==0?{arguments:n,invocationId:i.toString(),streamIds:s,target:e,type:q.StreamInvocation}:{arguments:n,invocationId:i.toString(),target:e,type:q.StreamInvocation}}_createCancelInvocation(e){return{invocationId:e,type:q.CancelInvocation}}_createStreamItemMessage(e,n){return{invocationId:e,item:n,type:q.StreamItem}}_createCompletionMessage(e,n,s){return n?{error:n,invocationId:e,type:q.Completion}:{invocationId:e,result:s,type:q.Completion}}_createCloseMessage(){return{type:q.Close}}}const $o=[0,2e3,1e4,3e4,null];class Yn{constructor(e){this._retryDelays=e!==void 0?[...e,null]:$o}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}class ct{}ct.Authorization="Authorization",ct.Cookie="Cookie";class Do extends Gt{constructor(e,n){super(),this._innerClient=e,this._accessTokenFactory=n}send(e){return v(this,null,function*(){let n=!0;this._accessTokenFactory&&(!this._accessToken||e.url&&e.url.indexOf("/negotiate?")>0)&&(n=!1,this._accessToken=yield this._accessTokenFactory()),this._setAuthorizationHeader(e);const s=yield this._innerClient.send(e);return n&&s.statusCode===401&&this._accessTokenFactory?(this._accessToken=yield this._accessTokenFactory(),this._setAuthorizationHeader(e),yield this._innerClient.send(e)):s})}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[ct.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[ct.Authorization]&&delete e.headers[ct.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}var Re;(function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"})(Re||(Re={}));var De;(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"})(De||(De={}));let Bo=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class Xn{get pollAborted(){return this._pollAbort.aborted}constructor(e,n,s){this._httpClient=e,this._logger=n,this._pollAbort=new Bo,this._options=s,this._running=!1,this.onreceive=null,this.onclose=null}connect(e,n){return v(this,null,function*(){if(Ee.isRequired(e,"url"),Ee.isRequired(n,"transferFormat"),Ee.isIn(n,De,"transferFormat"),this._url=e,this._logger.log(g.Trace,"(LongPolling transport) Connecting."),n===De.Binary&&typeof XMLHttpRequest!="undefined"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[s,i]=bt(),o=H({[s]:i},this._options.headers),r={abortSignal:this._pollAbort.signal,headers:o,timeout:1e5,withCredentials:this._options.withCredentials};n===De.Binary&&(r.responseType="arraybuffer");const c=`${e}&_=${Date.now()}`;this._logger.log(g.Trace,`(LongPolling transport) polling: ${c}.`);const a=yield this._httpClient.get(c,r);a.statusCode!==200?(this._logger.log(g.Error,`(LongPolling transport) Unexpected response code: ${a.statusCode}.`),this._closeError=new rt(a.statusText||"",a.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,r)})}_poll(e,n){return v(this,null,function*(){try{for(;this._running;)try{const s=`${e}&_=${Date.now()}`;this._logger.log(g.Trace,`(LongPolling transport) polling: ${s}.`);const i=yield this._httpClient.get(s,n);i.statusCode===204?(this._logger.log(g.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):i.statusCode!==200?(this._logger.log(g.Error,`(LongPolling transport) Unexpected response code: ${i.statusCode}.`),this._closeError=new rt(i.statusText||"",i.statusCode),this._running=!1):i.content?(this._logger.log(g.Trace,`(LongPolling transport) data received. ${Dt(i.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(i.content)):this._logger.log(g.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(s){this._running?s instanceof fn?this._logger.log(g.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=s,this._running=!1):this._logger.log(g.Trace,`(LongPolling transport) Poll errored after shutdown: ${s.message}`)}}finally{this._logger.log(g.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}})}send(e){return v(this,null,function*(){return this._running?qn(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return v(this,null,function*(){this._logger.log(g.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{yield this._receiving,this._logger.log(g.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[n,s]=bt();e[n]=s;const i={headers:H(H({},e),this._options.headers),timeout:this._options.timeout,withCredentials:this._options.withCredentials};let o;try{yield this._httpClient.delete(this._url,i)}catch(r){o=r}o?o instanceof rt&&(o.statusCode===404?this._logger.log(g.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(g.Trace,`(LongPolling transport) Error sending a DELETE request: ${o}`)):this._logger.log(g.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(g.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}})}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(g.Trace,e),this.onclose(this._closeError)}}}class Ho{constructor(e,n,s,i){this._httpClient=e,this._accessToken=n,this._logger=s,this._options=i,this.onreceive=null,this.onclose=null}connect(e,n){return v(this,null,function*(){return Ee.isRequired(e,"url"),Ee.isRequired(n,"transferFormat"),Ee.isIn(n,De,"transferFormat"),this._logger.log(g.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((s,i)=>{let o=!1;if(n!==De.Text){i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let r;if(ve.isBrowser||ve.isWebWorker)r=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const c=this._httpClient.getCookieString(e),a={};a.Cookie=c;const[d,u]=bt();a[d]=u,r=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:H(H({},a),this._options.headers)})}try{r.onmessage=c=>{if(this.onreceive)try{this._logger.log(g.Trace,`(SSE transport) data received. ${Dt(c.data,this._options.logMessageContent)}.`),this.onreceive(c.data)}catch(a){this._close(a);return}},r.onerror=c=>{o?this._close():i(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},r.onopen=()=>{this._logger.log(g.Information,`SSE connected to ${this._url}`),this._eventSource=r,o=!0,s()}}catch(c){i(c);return}})})}send(e){return v(this,null,function*(){return this._eventSource?qn(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class Lo{constructor(e,n,s,i,o,r){this._logger=s,this._accessTokenFactory=n,this._logMessageContent=i,this._webSocketConstructor=o,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=r}connect(e,n){return v(this,null,function*(){Ee.isRequired(e,"url"),Ee.isRequired(n,"transferFormat"),Ee.isIn(n,De,"transferFormat"),this._logger.log(g.Trace,"(WebSockets transport) Connecting.");let s;return this._accessTokenFactory&&(s=yield this._accessTokenFactory()),new Promise((i,o)=>{e=e.replace(/^http/,"ws");let r;const c=this._httpClient.getCookieString(e);let a=!1;if(ve.isNode||ve.isReactNative){const d={},[u,f]=bt();d[u]=f,s&&(d[ct.Authorization]=`Bearer ${s}`),c&&(d[ct.Cookie]=c),r=new this._webSocketConstructor(e,void 0,{headers:H(H({},d),this._headers)})}else s&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(s)}`);r||(r=new this._webSocketConstructor(e)),n===De.Binary&&(r.binaryType="arraybuffer"),r.onopen=d=>{this._logger.log(g.Information,`WebSocket connected to ${e}.`),this._webSocket=r,a=!0,i()},r.onerror=d=>{let u=null;typeof ErrorEvent!="undefined"&&d instanceof ErrorEvent?u=d.error:u="There was an error with the transport",this._logger.log(g.Information,`(WebSockets transport) ${u}.`)},r.onmessage=d=>{if(this._logger.log(g.Trace,`(WebSockets transport) data received. ${Dt(d.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(d.data)}catch(u){this._close(u);return}},r.onclose=d=>{if(a)this._close(d);else{let u=null;typeof ErrorEvent!="undefined"&&d instanceof ErrorEvent?u=d.error:u="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",o(new Error(u))}}})})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(g.Trace,`(WebSockets transport) sending data. ${Dt(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(g.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(e)&&(e.wasClean===!1||e.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)):e instanceof Error?this.onclose(e):this.onclose())}_isCloseEvent(e){return e&&typeof e.wasClean=="boolean"&&typeof e.code=="number"}}const Gn=100;class Fo{constructor(e,n={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Ee.isRequired(e,"url"),this._logger=Co(n.logger),this.baseUrl=this._resolveUrl(e),n=n||{},n.logMessageContent=n.logMessageContent===void 0?!1:n.logMessageContent,typeof n.withCredentials=="boolean"||n.withCredentials===void 0)n.withCredentials=n.withCredentials===void 0?!0:n.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");n.timeout=n.timeout===void 0?100*1e3:n.timeout;let s=null,i=null;if(ve.isNode&&typeof require!="undefined"){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;s=o("ws"),i=o("eventsource")}!ve.isNode&&typeof WebSocket!="undefined"&&!n.WebSocket?n.WebSocket=WebSocket:ve.isNode&&!n.WebSocket&&s&&(n.WebSocket=s),!ve.isNode&&typeof EventSource!="undefined"&&!n.EventSource?n.EventSource=EventSource:ve.isNode&&!n.EventSource&&typeof i!="undefined"&&(n.EventSource=i),this._httpClient=new Do(n.httpClient||new xo(this._logger),n.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=n,this.onreceive=null,this.onclose=null}start(e){return v(this,null,function*(){if(e=e||De.Binary,Ee.isIn(e,De,"transferFormat"),this._logger.log(g.Debug,`Starting connection with transfer format '${De[e]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),yield this._startInternalPromise,this._connectionState==="Disconnecting"){const n="Failed to start the HttpConnection before stop() was called.";return this._logger.log(g.Error,n),yield this._stopPromise,Promise.reject(new qe(n))}else if(this._connectionState!=="Connected"){const n="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(g.Error,n),Promise.reject(new qe(n))}this._connectionStarted=!0})}send(e){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Cn(this.transport)),this._sendQueue.send(e))}stop(e){return v(this,null,function*(){if(this._connectionState==="Disconnected")return this._logger.log(g.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(g.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(n=>{this._stopPromiseResolver=n}),yield this._stopInternal(e),yield this._stopPromise})}_stopInternal(e){return v(this,null,function*(){this._stopError=e;try{yield this._startInternalPromise}catch(n){}if(this.transport){try{yield this.transport.stop()}catch(n){this._logger.log(g.Error,`HttpConnection.transport.stop() threw error '${n}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(g.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})}_startInternal(e){return v(this,null,function*(){let n=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Re.WebSockets)this.transport=this._constructTransport(Re.WebSockets),yield this._startTransport(n,e);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let s=null,i=0;do{if(s=yield this._getNegotiationResponse(n),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new qe("The connection was stopped during negotiation.");if(s.error)throw new Error(s.error);if(s.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(s.url&&(n=s.url),s.accessToken){const o=s.accessToken;this._accessTokenFactory=()=>o,this._httpClient._accessToken=o,this._httpClient._accessTokenFactory=void 0}i++}while(s.url&&i<Gn);if(i===Gn&&s.url)throw new Error("Negotiate redirection limit exceeded.");yield this._createTransport(n,this._options.transport,s,e)}this.transport instanceof Xn&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(g.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(s){return this._logger.log(g.Error,"Failed to start the connection: "+s),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(s)}})}_getNegotiationResponse(e){return v(this,null,function*(){const n={},[s,i]=bt();n[s]=i;const o=this._resolveNegotiateUrl(e);this._logger.log(g.Debug,`Sending negotiation request: ${o}.`);try{const r=yield this._httpClient.post(o,{content:"",headers:H(H({},n),this._options.headers),timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(r.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${r.statusCode}'`));const c=JSON.parse(r.content);return(!c.negotiateVersion||c.negotiateVersion<1)&&(c.connectionToken=c.connectionId),c.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new Vn("Client didn't negotiate Stateful Reconnect but the server did.")):c}catch(r){let c="Failed to complete negotiation with the server: "+r;return r instanceof rt&&r.statusCode===404&&(c=c+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(g.Error,c),Promise.reject(new Vn(c))}})}_createConnectUrl(e,n){return n?e+(e.indexOf("?")===-1?"?":"&")+`id=${n}`:e}_createTransport(e,n,s,i){return v(this,null,function*(){let o=this._createConnectUrl(e,s.connectionToken);if(this._isITransport(n)){this._logger.log(g.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=n,yield this._startTransport(o,i),this.connectionId=s.connectionId;return}const r=[],c=s.availableTransports||[];let a=s;for(const d of c){const u=this._resolveTransportOrError(d,n,i,(a==null?void 0:a.useStatefulReconnect)===!0);if(u instanceof Error)r.push(`${d.transport} failed:`),r.push(u);else if(this._isITransport(u)){if(this.transport=u,!a){try{a=yield this._getNegotiationResponse(e)}catch(f){return Promise.reject(f)}o=this._createConnectUrl(e,a.connectionToken)}try{yield this._startTransport(o,i),this.connectionId=a.connectionId;return}catch(f){if(this._logger.log(g.Error,`Failed to start the transport '${d.transport}': ${f}`),a=void 0,r.push(new ho(`${d.transport} failed: ${f}`,Re[d.transport])),this._connectionState!=="Connecting"){const j="Failed to select transport before stop() was called.";return this._logger.log(g.Debug,j),Promise.reject(new qe(j))}}}}return r.length>0?Promise.reject(new fo(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`,r)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))})}_constructTransport(e){switch(e){case Re.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Lo(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Re.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ho(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Re.LongPolling:return new Xn(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,n){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=s=>v(this,null,function*(){let i=!1;if(this.features.reconnect)try{this.features.disconnected(),yield this.transport.connect(e,n),yield this.features.resend()}catch(o){i=!0}else{this._stopConnection(s);return}i&&this._stopConnection(s)}):this.transport.onclose=s=>this._stopConnection(s),this.transport.connect(e,n)}_resolveTransportOrError(e,n,s,i){const o=Re[e.transport];if(o==null)return this._logger.log(g.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(Oo(n,o))if(e.transferFormats.map(c=>De[c]).indexOf(s)>=0){if(o===Re.WebSockets&&!this._options.WebSocket||o===Re.ServerSentEvents&&!this._options.EventSource)return this._logger.log(g.Debug,`Skipping transport '${Re[o]}' because it is not supported in your environment.'`),new lo(`'${Re[o]}' is not supported in your environment.`,o);this._logger.log(g.Debug,`Selecting transport '${Re[o]}'.`);try{return this.features.reconnect=o===Re.WebSockets?i:void 0,this._constructTransport(o)}catch(c){return c}}else return this._logger.log(g.Debug,`Skipping transport '${Re[o]}' because it does not support the requested transfer format '${De[s]}'.`),new Error(`'${Re[o]}' does not support ${De[s]}.`);else return this._logger.log(g.Debug,`Skipping transport '${Re[o]}' because it was disabled by the client.`),new uo(`'${Re[o]}' is disabled by the client.`,o)}_isITransport(e){return e&&typeof e=="object"&&"connect"in e}_stopConnection(e){if(this._logger.log(g.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(g.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(g.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),e?this._logger.log(g.Error,`Connection disconnected with error '${e}'.`):this._logger.log(g.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(n=>{this._logger.log(g.Error,`TransportSendQueue.stop() threw error '${n}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(n){this._logger.log(g.Error,`HttpConnection.onclose(${e}) threw error '${n}'.`)}}}_resolveUrl(e){if(e.lastIndexOf("https://",0)===0||e.lastIndexOf("http://",0)===0)return e;if(!ve.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const n=window.document.createElement("a");return n.href=e,this._logger.log(g.Information,`Normalizing '${e}' to '${n.href}'.`),n.href}_resolveNegotiateUrl(e){const n=new URL(e);n.pathname.endsWith("/")?n.pathname+="negotiate":n.pathname+="/negotiate";const s=new URLSearchParams(n.searchParams);return s.has("negotiateVersion")||s.append("negotiateVersion",this._negotiateVersion.toString()),s.has("useStatefulReconnect")?s.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&s.append("useStatefulReconnect","true"),n.search=s.toString(),n.toString()}}function Oo(t,e){return!t||(e&t)!==0}class Cn{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new Qt,this._transportResult=new Qt,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new Qt),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}_sendLoop(){return v(this,null,function*(){for(;;){if(yield this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Qt;const e=this._transportResult;this._transportResult=void 0;const n=typeof this._buffer[0]=="string"?this._buffer.join(""):Cn._concatBuffers(this._buffer);this._buffer.length=0;try{yield this._transport.send(n),e.resolve()}catch(s){e.reject(s)}}})}static _concatBuffers(e){const n=e.map(o=>o.byteLength).reduce((o,r)=>o+r),s=new Uint8Array(n);let i=0;for(const o of e)s.set(new Uint8Array(o),i),i+=o.byteLength;return s.buffer}}class Qt{constructor(){this.promise=new Promise((e,n)=>[this._resolver,this._rejecter]=[e,n])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}const No="json";class Uo{constructor(){this.name=No,this.version=2,this.transferFormat=De.Text}parseMessages(e,n){if(typeof e!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];n===null&&(n=$t.instance);const s=Ne.parse(e),i=[];for(const o of s){const r=JSON.parse(o);if(typeof r.type!="number")throw new Error("Invalid payload.");switch(r.type){case q.Invocation:this._isInvocationMessage(r);break;case q.StreamItem:this._isStreamItemMessage(r);break;case q.Completion:this._isCompletionMessage(r);break;case q.Ping:break;case q.Close:break;case q.Ack:this._isAckMessage(r);break;case q.Sequence:this._isSequenceMessage(r);break;default:n.log(g.Information,"Unknown message type '"+r.type+"' ignored.");continue}i.push(r)}return i}writeMessage(e){return Ne.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),e.invocationId!==void 0&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),e.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,n){if(typeof e!="string"||e==="")throw new Error(n)}}const jo={trace:g.Trace,debug:g.Debug,info:g.Information,information:g.Information,warn:g.Warning,warning:g.Warning,error:g.Error,critical:g.Critical,none:g.None};function zo(t){const e=jo[t.toLowerCase()];if(typeof e!="undefined")return e;throw new Error(`Unknown log level: ${t}`)}class Vo{configureLogging(e){if(Ee.isRequired(e,"logging"),Wo(e))this.logger=e;else if(typeof e=="string"){const n=zo(e);this.logger=new Kt(n)}else this.logger=new Kt(e);return this}withUrl(e,n){return Ee.isRequired(e,"url"),Ee.isNotEmpty(e,"url"),this.url=e,typeof n=="object"?this.httpConnectionOptions=H(H({},this.httpConnectionOptions),n):this.httpConnectionOptions=ee(H({},this.httpConnectionOptions),{transport:n}),this}withHubProtocol(e){return Ee.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new Yn(e):this.reconnectPolicy=e:this.reconnectPolicy=new Yn,this}withServerTimeout(e){return Ee.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return Ee.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=e==null?void 0:e.bufferSize,this}build(){const e=this.httpConnectionOptions||{};if(e.logger===void 0&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const n=new Fo(this.url,e);return pn.create(n,this.logger||$t.instance,this.protocol||new Uo,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function Wo(t){return t.log!==void 0}function Be(t,e={}){var c;const{popupRequestInfo:n}=window;t=It(t);const s=(c=n==null?void 0:n.credentialType)==null?void 0:c.toUpperCase(),i=n==null?void 0:n.accessToken,r=H(H({},{method:"GET",headers:{}}),e);switch(r.body&&typeof r.body=="object"&&(r.body instanceof FormData?r.headers=ee(H({},r.headers),{"Content-Type":"multipart/form-data"}):(r.headers=ee(H({},r.headers),{"Content-Type":"application/json"}),r.body=JSON.stringify(r.body))),s){case"COOKIE":r.credentials="include";break;case"QUERY":break;default:i&&(r.headers=ee(H({},r.headers),{Authorization:`Bearer ${i}`}));break}return fetch(t,r).then(a=>{if(!a.ok){console.error(`HTTP error! status: ${a.status}`);return}return a.json()}).then(a=>{if(a&&a.code){if(a.code!=="0"){console.error(`API error! code: ${a.code}, message: ${a.message}`);return}return a.data}return a}).catch(a=>{console.error("Error fetching data:",a)})}function Bt(t,e){if(!e)return t;let n="";for(let s in e){const i=e[s];i!=null&&(n.length>0&&(n+="&"),n+=`${encodeURIComponent(s)}=${encodeURIComponent(i)}`)}return t.indexOf("?")===-1?t+="?"+n:t+="&"+n,t}function Kn(t){return v(this,null,function*(){if(!t||t.length===0)return[];const s=yield Be("user/batch/get",{method:"POST",body:{ids:t}});return!s||!Array.isArray(s)?[]:s.map(i=>({id:i.id,username:i.username,fullName:i.fullName,avatarUrl:i.avatarUrl}))})}const Ht=window,qo=Ht.indexedDB||Ht.mozIndexedDB||Ht.webkitIndexedDB||Ht.msIndexedDB||Ht.shimIndexedDB,Zo="chatPopupDb",Yo=1,Jt="users";function Xo(t){if(!t.objectStoreNames.contains(Jt)){const e=t.createObjectStore(Jt,{keyPath:"id",autoIncrement:!1});["username","fullName","avatarUrl"].forEach(n=>e.createIndex(n,n,{unique:!1}))}}let en;function Go(){return new Promise((t,e)=>{if(en)t(en);else{const n=qo.open(Zo,Yo);n.onerror=s=>e(s.target.error),n.onsuccess=s=>{en=s.target.result,t(en)},n.onupgradeneeded=s=>{const i=s.target.result;Xo(i)}}})}function Qn(t,e){return v(this,null,function*(){const n=yield Go();return n?n.transaction(Jt,t,e).objectStore(Jt):void 0})}function Ko(t){return new Promise((e,n)=>v(null,null,function*(){if(t==="SYSTEM"){e({id:"SYSTEM",username:"system",fullName:"Hệ thống"});return}const s=yield Qn("readonly");if(!s){n(new Error("User object store not found"));return}const i=s.get(t);i.onsuccess=o=>v(null,null,function*(){const r=o.target.result;e(r)}),i.onerror=o=>n(o.target.error)}))}function Qo(t){return v(this,null,function*(){const e=yield Qn("readwrite");if(!e)throw new Error("User object store not found");return new Promise((n,s)=>{const i=e.put(t);i.onsuccess=o=>n(o.target.result),i.onerror=o=>s(o.target.error)})})}function Jo(t){return v(this,null,function*(){const e=t.map(s=>Ko(s));return(yield Promise.all(e)).filter(s=>s!==void 0)})}function _t(t){return v(this,null,function*(){const e=Array.from(new Set(t.filter(r=>typeof r=="string"&&r.length>0))),n=yield Jo(e),s=e.filter(r=>!n.some(c=>c.id===r)),i=yield Kn(s);yield Promise.all(i.map(r=>Qo(r)));const o=[...n,...i];return new Map(o.map(r=>[r.id,r]))})}function tn(t){return{id:t.id||t.conversationId,name:t.name,lastMessage:t.lastMessage,updatedAt:t.updatedAt||t.dateTime,type:t.type,membersCount:t.membersCount,status:t.status,isPinned:t.isPinned,isRead:t.isRead,traceId:t.traceId}}function tt(t,e){if(!t)return;let n;e||t.quotedMessage&&(n=tt(t.quotedMessage,!0));const s=t.body;return s&&Array.isArray(s.files)&&(s.files=s.files.map(i=>{const o=i.thumbId?It(`file/${i.thumbId}`):void 0,r=It(`file/${i.id||i.fileId}`);return{id:i.id||i.fileId,thumbId:i.thumbId,url:r,name:i.name,contentType:i.contentType,thumbUrl:o}})),{id:t.id||t.messageId,conversationId:t.conversationId,senderId:t.senderId||t.editedBy,sender:t.sender,body:s,sentAt:t.sentAt,deleted:t.deleted,edited:t.edited,mentions:t.mentions,deletedFor:t.deletedFor,quotedMessage:n,traceId:t.traceId}}function nn(t){return v(this,null,function*(){const e=t.lastMessage?[t.lastMessage.senderId]:[],n=yield _t(e);if(t.lastMessage){const s=n.get(t.lastMessage.senderId);s&&(t.lastMessage.sender=s,t.lastMessage.sentAt=t.lastMessage.sentAt?new Date(t.lastMessage.sentAt):new Date)}return{id:t.id,name:t.name,lastMessage:t.lastMessage,updatedAt:new Date(t.updatedAt),type:t.type,membersCount:t.membersCount,status:t.status,isPinned:t.isPinned,isRead:t.isRead,traceId:t.traceId}})}function St(t,e=new Set){return t.senderId&&e.add(t.senderId),t.quotedMessage&&St(t.quotedMessage,e),e}function At(t,e){const n=t.sender||e.get(t.senderId),s=t.quotedMessage?At(t.quotedMessage,e):void 0;return t.sender=n,s&&(t.quotedMessage=s),t}function xt(t){if(!t)return;const e=t.quotedMessage?xt(t.quotedMessage):void 0,n={id:t.id,conversationId:t.conversationId,sender:t.sender,body:t.body,sentAt:t.sentAt?new Date(t.sentAt):new Date,deleted:t.deleted,edited:t.edited,mentions:t.mentions,deletedFor:t.deletedFor,traceId:t.traceId};return e&&(n.quotedMessage=e),n}function Jn(t,e){var c;if(!t)return console.error("URL base is not defined."),"";e=e?e.startsWith("/")?e.slice(1):e:"";let n=t.endsWith("/")?`${t}${e}`:`${t}/${e}`;n.endsWith("/")&&(n=n.slice(0,-1));const{popupRequestInfo:s}=window,i=(c=s==null?void 0:s.credentialType)==null?void 0:c.toUpperCase(),o=s==null?void 0:s.credentialName,r=s==null?void 0:s.accessToken;switch(i){case"COOKIE":const a=new URL(n);a.searchParams.append("credentialType",i),a.searchParams.append("credentialName",o||""),n=a.toString();break;case"QUERY":if(r){const d=new URL(n);d.searchParams.append("access_token",r),n=d.toString()}break}return n}function It(t){const{popupRequestInfo:e}=window,n=e==null?void 0:e.apiUrlBase;return Jn(n,t)}function er(t){const{popupRequestInfo:e}=window,n=t||(e==null?void 0:e.hubUrlBase);return Jn(n)}function tr(t){var i;let e=er(t);const{popupRequestInfo:n}=window,s=(i=n==null?void 0:n.credentialType)==null?void 0:i.toUpperCase();if(s!="COOKIE"&&s!="QUERY"){const o=n==null?void 0:n.accessToken;if(o){const r=new URL(e);r.searchParams.append("access_token",o),e=r.toString()}}return new Vo().withUrl(e).configureLogging(g.Information).withAutomaticReconnect().build()}const mn=window;mn.messagesCache={};function nr(t,e,n,s){return v(this,null,function*(){const i=Bt(`message/conversation/${t}/user`,{direction:e,messageId:n,top:s}),o=yield Be(i);return!o||!Array.isArray(o)?[]:o.filter(r=>!!r).map(r=>tt(r))})}function sr(t){return v(this,null,function*(){const e="message";let n;t.quotedMessage&&(n=t.quotedMessage.id,n&&(mn.messagesCache[n]=t.quotedMessage));const s={conversationId:t.conversationId,body:t.body,quotedId:n,traceId:t.traceId},i=yield Be(e,{method:"POST",body:s});return i.quotedMessage=t.quotedMessage,tt(i)})}function ir(t){return v(this,null,function*(){if(!t||!t.id)return;const e=`message/${t.id}`;let n;t.quotedMessage&&(n=t.quotedMessage.id,n&&(mn.messagesCache[n]=t.quotedMessage));const s={body:t.body,quotedId:n,mentions:t.mentions},i=yield Be(e,{method:"POST",body:s});return i.quotedMessage=t.quotedMessage,tt(i)})}function or(t,e){return v(this,null,function*(){if(!t)return!1;e||(e="Recall");const n=`message/${t}/delete`;return!!(yield Be(n,{method:"POST",body:{type:e}}))})}function es(t){return v(this,null,function*(){if(!t)return;const e=`message/${t}`,n=yield Be(e);if(n)return tt(n)})}function rr(t){return v(this,null,function*(){if(!t||t.length===0)return[];const s=yield Be("message/batch/get",{method:"POST",body:{ids:t}});return!s||!Array.isArray(s)?[]:s.map(i=>tt(i))})}function ar(t,e,n,s){return v(this,null,function*(){var c;const i=Bt("aggregate/search",{conversationId:t,keyword:e,from:n,top:s,type:"MESSAGE"}),r=(c=(yield Be(i)).filter(a=>a.type==="MESSAGE").at(0))==null?void 0:c.items;return r?r.map(a=>tt(a)):[]})}const sn=window;function cr(t,e){return v(this,null,function*(){if(!e||!t)return;if(!t.quotedMessage&&t.quotedId){const c=sn.messagesCache[t.quotedId];c?(t.quotedMessage=c,delete sn.messagesCache[t.quotedId]):t.quotedMessage=yield es(t.quotedId)}const n=tt(t);if(!n)return;const s=St(n),i=yield _t(Array.from(s)),o=At(n,i),r=xt(o);e(r)})}function lr(t,e){return v(this,null,function*(){if(!e||!t)return;const n=tn(t);if(!n)return;const s=yield nn(n);e(s)})}function dr(t,e){if(!e||!t)return;const{conversationId:n,name:s}=t;!n||!s||e(n,s)}function ur(t,e){if(!e||!t)return;const{conversationId:n}=t;n&&e(n)}function hr(t,e){return v(this,null,function*(){if(!e||!t)return;if(!t.quotedMessage&&t.quotedId){const c=sn.messagesCache[t.quotedId];c?(t.quotedMessage=c,delete sn.messagesCache[t.quotedId]):t.quotedMessage=yield es(t.quotedId)}const n=tt(t);if(!n)return;const s=St(n),i=yield _t(Array.from(s)),o=At(n,i),r=xt(o);e(r)})}function fr(t,e){if(!e||!t)return;const{messageId:n,conversationId:s,type:i,deletedBy:o}=t;!n||!s||e({messageId:n,conversationId:s,deleteType:i||"Recall",deletedBy:o||""})}let Fe;function gr(t){return Fe&&Fe.stop(),Fe=tr(t),Fe?(Fe.on("UserStatusChanged",n=>console.log("UserStatusChanged",n)),{onConnected(n){Fe.on("Connected",n)},onMessageSent(n){Fe.on("MessageSent",s=>v(null,null,function*(){yield cr(s,n)}))},onMessageEdited(n){Fe.on("MessageEdited",s=>v(null,null,function*(){yield hr(s,n)}))},onMessageDeleted(n){Fe.on("MessageDeleted",s=>{fr(s,n)})},onConversationCreated(n){Fe.on("ConversationCreated",s=>v(null,null,function*(){yield lr(s,n)}))},onConversationBasicInfoChanged(n){Fe.on("ConversationBasicInfoChanged",s=>{dr(s,n)})},onConversationDeleted(n){Fe.on("ConversationDeleted",s=>{ur(s,n)})},start:()=>Fe.start(),stop:()=>Fe.stop()}):void 0}function pr(){return new Promise(t=>{t([{name:"Khiếu nại và hỗ trợ",description:"Tạo khiếu nại của khách hàng và được trợ giúp bởi hỗ trợ viên",conversationType:"HELP",icon:"data:image/png;base64,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"},{name:"Tư vấn đầu tư",description:"Tạo một cuộc hội thoại để bắt đầu nhận được các tư vấn đầu tư",botId:"BOT~rasaconnector",isDefault:!0,icon:"data:image/png;base64,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"}])})}function Cr(t,e){return v(this,null,function*(){var a,d;const n=Bt("conversation/user/pinned",{top:t,type:e,ignoredFields:"members"}),s=Bt("conversation/user",{top:t,type:e,ignoredFields:"members"}),i=yield Promise.all([Be(n),Be(s)]);let o=(a=i[0])==null?void 0:a.items,r=(d=i[1])==null?void 0:d.items;return o||(o=[]),r||(r=[]),[...o,...r].map(u=>tn(u))})}function mr(t){return v(this,null,function*(){const e=`conversation/${t}?ignoredFields=members`,n=yield Be(e);if(n)return tn(n)})}function wr(t){return v(this,null,function*(){const e=t.type?t.type:"BOT";let n="conversation";const s={name:t.name,traceId:t.traceId};switch(e){case"BOT":n+="/bot",s.botId=t.members?t.members.filter(f=>{var j;return(j=f.userId)==null?void 0:j.startsWith("BOT~")}).map(f=>f.userId)[0]:null;break;case"SURVEY":n+="/survey",s.botId=t.members?t.members.filter(f=>{var j;return(j=f.userId)==null?void 0:j.startsWith("BOT~")}).map(f=>f.userId)[0]:null;break;case"GROUP":n+="/group",s.memberIds=t.members?t.members.filter(f=>f.id!=="me").map(f=>f.userId):[];break;case"HELP":n+="/help";break}const i=yield Be(n,{method:"POST",body:s}),{conversationId:o,name:r,type:c,membersCount:a,updatedAt:d,traceId:u}=i;return{id:o,name:r,type:c,membersCount:a,updatedAt:d,traceId:u}})}function vr(t,e){return v(this,null,function*(){let n="conversation";return e?n+=`/${t}/pin`:n+=`/${t}/unpin`,yield Be(n,{method:"POST",body:{}}),!0})}function yr(t,e){return v(this,null,function*(){const n=`conversation/${t}`;return yield Be(n,{method:"PATCH",body:{name:e}}),!0})}function br(t){return v(this,null,function*(){const e=`conversation/${t}/delete`;return yield Be(e,{method:"POST",body:{}}),!0})}function _r(t,e,n){return v(this,null,function*(){var c;const s=Bt("aggregate/search",{keyword:t,from:e,top:n,type:"CONVERSATION"}),o=(c=(yield Be(s)).filter(a=>a.type==="CONVERSATION").at(0))==null?void 0:c.items;if(!o)return[];const r=[...new Set(o.map(a=>a.lastMessageId))];if(r.length>0){const a=yield rr(r),d={};a.forEach(u=>{u&&(d[u.id]=u)}),o.forEach(u=>{u.lastMessageId&&(u.lastMessage=d[u.lastMessageId])})}return o.map(a=>tn(a))})}function Sr(t,e){return v(this,null,function*(){const n=yield Cr(t,e);return yield Promise.all(n.map(nn))})}function Ar(t){return v(this,null,function*(){const e=yield mr(t);return e?yield nn(e):void 0})}function xr(t,e,n){return v(this,null,function*(){const s=yield _r(t,e,n);return yield Promise.all(s.map(nn))})}function Ir(t){return v(this,null,function*(){const e=yield wr(t);return{id:e.id,name:e.name,type:e.type,membersCount:e.membersCount,updatedAt:new Date(e.updatedAt)}})}function Mr(t,e){return vr(t,e)}function kr(t,e){return yr(t,e)}function Er(t){return br(t)}function Tr(t,e){var a;if(!t)return;const{popupRequestInfo:n}=window,s=It("file"),i=new XMLHttpRequest,o=(a=n==null?void 0:n.credentialType)==null?void 0:a.toUpperCase(),r=n==null?void 0:n.accessToken;switch(o){case"COOKIE":i.withCredentials=!0;break;case"QUERY":break;default:i.setRequestHeader("Authorization",`Bearer ${r}`);break}const c=new FormData;c.append("file",t),e&&(i.upload.onprogress=function(d){if(d.lengthComputable){const u=d.loaded/d.total*80;e({loaded:d.loaded,total:d.total,percent:u,status:"uploading"})}}),i.onload=function(){if(i.status===200){const d=JSON.parse(i.responseText);if(e){const u=d.thumbId?It(`file/${d.thumbId}`):void 0,f=It(`file/${d.fileId}`);e({loaded:d.size,total:d.size,percent:100,status:"done",httpCode:i.status,fileItem:{id:d.fileId,name:d.fileName,contentType:d.contentType,thumbId:d.thumbId,thumbUrl:u,url:f}})}}else e&&e({loaded:0,total:0,percent:0,status:"error",error:i.statusText,httpCode:i.status})},i.open("POST",s,!0),i.send(c),console.log(`------- Uploading file: ${t.name} to ${s}`)}function Rr(t,e){Tr(t,e)}function Pr(t,e,n,s){return v(this,null,function*(){const i=(yield nr(t,e,n,s)).filter(a=>!!a);if(!i||!Array.isArray(i))return[];const o=new Set;i.forEach(a=>St(a,o));const r=yield _t(Array.from(o));return i.map(a=>At(a,r)).map(a=>xt(a))})}function $r(t){return v(this,null,function*(){const e=yield sr(t);if(!e)return;const n=St(e),s=yield _t(Array.from(n)),i=At(e,s);return xt(i)})}function Dr(t){return v(this,null,function*(){return!!(yield ir(t))})}function Br(t,e){return or(t,e)}function Hr(t,e,n,s){return v(this,null,function*(){const i=yield ar(t,e,n,s);if(!i||!Array.isArray(i))return[];const o=new Set;i.forEach(a=>St(a,o));const r=yield _t(Array.from(o));return i.map(a=>At(a,r)).map(a=>xt(a))})}function Lr(t){return Kn(t)}class Fr{constructor(e){me(this,"hubConnection");me(this,"onHubConnected",e=>{this.hubConnection.onConnected(n=>{window.currentUserId=n.userId,e(n)})});me(this,"onMessageSent",e=>{this.hubConnection.onMessageSent(n=>{n.conversationId=this.normalizeConvId(n.conversationId),this.normalizeSender(n.sender),e(n)})});me(this,"onMessageEdited",e=>{this.hubConnection.onMessageEdited(n=>{n.conversationId=this.normalizeConvId(n.conversationId),this.normalizeSender(n.sender),e(n)})});me(this,"onMessageDeleted",e=>{this.hubConnection.onMessageDeleted(e)});me(this,"onConversationCreated",e=>{this.hubConnection.onConversationCreated(n=>{this.normalizeConversation(n),e(n)})});me(this,"onConversationBasicInfoChanged",e=>{this.hubConnection.onConversationBasicInfoChanged((n,s)=>{n=this.normalizeConvId(n),e(n,s)})});me(this,"onConversationDeleted",e=>{this.hubConnection.onConversationDeleted(n=>{n=this.normalizeConvId(n),e(n)})});me(this,"getConversationAsync",e=>v(this,null,function*(){const n=this.denormalizeConvId(e),s=yield Ar(n);if(s)return this.normalizeConversation(s),s}));me(this,"listConversationAsync",(e,n)=>v(this,null,function*(){const s=yield Sr(e,n);return s.forEach(i=>this.normalizeConversation(i)),s}));me(this,"searchConversationsAsync",(e,n,s)=>v(this,null,function*(){const i=yield xr(e,n,s);return i.forEach(o=>this.normalizeConversation(o)),i}));me(this,"pinConversationAsync",(e,n)=>{const s=this.denormalizeConvId(e);return Mr(s,n)});me(this,"createConversationAsync",e=>Ir(e));me(this,"updateConversationNameAsync",(e,n)=>{const s=this.denormalizeConvId(e);return kr(s,n)});me(this,"deleteConversationAsync",e=>{const n=this.denormalizeConvId(e);return Er(n)});me(this,"sendMessageAsync",e=>v(this,null,function*(){const n=H({},e);n.conversationId=this.denormalizeConvId(n.conversationId);const s=yield $r(n);return this.normalizeSender(s.sender),s}));me(this,"listMessagesAsync",(e,n,s,i)=>v(this,null,function*(){const o=this.denormalizeConvId(e),r=yield Pr(o,n,s,i);return this.normalizeMessages(r),r}));me(this,"searchMessagesAsync",(e,n,s,i)=>v(this,null,function*(){const o=this.denormalizeConvId(e),r=yield Hr(o,n,s,i);return this.normalizeMessages(r),r}));me(this,"updateMessageAsync",e=>Dr(e));me(this,"batchGetUsersAsync",e=>Lr(e));me(this,"deleteMessageAsync",(e,n)=>Br(e,n));me(this,"uploadFile",(e,n)=>{Rr(e,n)});me(this,"listChatTypesAsync",()=>v(null,null,function*(){return yield pr()}));const n=gr(e);if(!n)throw new Error("Connect to hub error");this.hubConnection=n,this.hubConnection.start()}get currentUserId(){return window.currentUserId}normalizeConvId(e){return e.startsWith(`${this.currentUserId}~`)?e.replace(new RegExp(`^${this.currentUserId}`),"me"):e}denormalizeConvId(e){return e.replace(/^me/,this.currentUserId)}normalizeSender(e){e&&e.id===this.currentUserId&&(e.id="me")}normalizeConversation(e){e.id=this.normalizeConvId(e.id),e.lastMessage&&this.normalizeSender(e.lastMessage.sender)}normalizeMessages(e){e.forEach(n=>this.normalizeSender(n.sender))}}var Or=F("<div>Loading...");const[wn,Nr]=L(null),[Ur,jr]=L(null),Pe={},ts={apiUrlBase:"http://10.26.4.49:5000/api",hubUrlBase:"http://10.26.4.49:5099/hub/notification",credentialType:"cookie",credentialName:"aspfpt_sessiontoken"};window.popupRequestInfo=ts;const ns=ts.hubUrlBase,ss=()=>{var s;const t=window.popupRequestInfo;if(!ns)throw new Error("VITE_PUBLIC_HUB_URL is not defined");const e=(s=t==null?void 0:t.credentialType)==null?void 0:s.toLowerCase();if(e!=="cookie"&&!(t!=null&&t.accessToken))throw new Error("Missing JWT token: accessToken chưa được gán vào popupRequestInfo");if(e!=="cookie"&&!window.currentUserId)throw new Error("Missing currentUserId: chưa chọn user");const n=new Fr(ns);Nr(n),n.onHubConnected(i=>{console.log("SignalR: Hub connected",i)}),n.onMessageSent(i=>{var o;console.log("SignalR: Message sent event received",i),(o=Pe.appendMessage)==null||o.call(Pe,i)}),n.onMessageEdited(i=>{var o;console.log("SignalR: Message edited event received",i),(o=Pe.updateMessage)==null||o.call(Pe,i)}),n.onMessageDeleted(i=>{var o;console.log("SignalR: Message deleted event received",i),(o=Pe.deleteMessage)==null||o.call(Pe,i)}),n.onConversationCreated(i=>{var o;console.log("SignalR: Conversation created event received",i),(o=Pe.appendConversation)==null||o.call(Pe,i)}),n.onConversationBasicInfoChanged((i,o)=>{var r;console.log("SignalR: Conversation name changed",i,o),(r=Pe.updateConversationName)==null||r.call(Pe,i,o)}),n.onConversationDeleted(i=>{var o;console.log("SignalR: Conversation deleted",i),(o=Pe.deleteConversation)==null||o.call(Pe,i)})};function is(t,e){const n=typeof t=="string"?document.querySelector(t):t;if(!n)throw new Error(`Element "${t}" not found.`);e!=null&&e.credentialType&&(window.popupRequestInfo.credentialType=e.credentialType),e!=null&&e.accessToken&&(window.popupRequestInfo.accessToken=e.accessToken),e!=null&&e.currentUserId&&(window.currentUserId=e.currentUserId),jr(e),ss(),bs(()=>ie(Ye,{get when(){return wn()},get fallback(){return Or()},get children(){return ie(zi,{get remoteRepository(){return wn()},exportMethods:Pe,get children(){return ie(co,{get remoteRepo(){return wn()},get options(){return Ur()}})}})}}),n)}typeof window!="undefined"&&(window.EzChat={createPopup:is}),window.addEventListener("startChat",()=>{ss()}),Me.createPopup=is,Object.defineProperty(Me,Symbol.toStringTag,{value:"Module"})}));
|
|
7
13
|
//# sourceMappingURL=ezchat.umd.js.map
|