@zoomrx/zena-chatbot-client 1.0.2 → 1.0.3

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.
@@ -63,7 +63,7 @@ function Lr(e){var t=U,n=W;gi(null),_i(null);try{return e();}finally{gi(t),_i(n)
63
63
  //#region node_modules/svelte/src/internal/client/reactivity/effects.js
64
64
  function zr(e){W===null&&(U===null&&ke(e),Oe()),pi&&De(e);}function Br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e);}function Vr(e,t){var n=W;n!==null&&n.f&8192&&(e|=ce);var r={ctx:M,deps:null,nodes:null,f:e|oe|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};L==null||L.register_created_effect(r);var i=r;if(e&4)Ft===null?en.ensure().schedule(r):Ft.push(r);else if(t!==null){try{Pi(r);}catch(e){throw ri(r),e;}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=fe));}if(i!==null&&(i.parent=n,n!==null&&Br(i,n),U!==null&&U.f&2&&!(e&64))){var a,o=U;((a=o.effects)==null?o.effects=[]:a).push(i);}return r;}function Hr(){return U!==null&&!hi;}function Ur(e){var t=Vr(8,null);return yt(t,ae),t.teardown=e,t;}function Wr(e){zr("$effect");var t=W.f;if(!U&&t&32&&!(t&32768)){var n,r=M;((n=r.e)==null?r.e=[]:n).push(e);}else return Gr(e);}function Gr(e){return Vr(4|pe,e);}function Kr(e){return zr("$effect.pre"),Vr(8|pe,e);}function qr(e){en.ensure();var t=Vr(64|O,e);return function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return new Promise(function(n){e.outro?oi(t,function(){ri(t),n(void 0);}):(ri(t),n(void 0));});};}function Jr(e){return Vr(4,e);}function Yr(e){return Vr(_e|O,e);}function Xr(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return Vr(8|t,e);}function H(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:[];Jn(r,t,n,function(t){Vr(8,function(){return e.apply(void 0,_toConsumableArray(t.map(G)));});});}function Zr(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return Vr(16|t,e);}function Qr(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return Vr(ie|t,e);}function $r(e){return Vr(32|O,e);}function ei(e){var t=e.teardown;if(t!==null){var _e40=pi,_n7=U;mi(!0),gi(null);try{t.call(null);}finally{mi(_e40),gi(_n7);}}}function ti(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=e.first;var _loop2=function _loop2(){var e=n.ac;e!==null&&Lr(function(){e.abort(Se);});r=n.next;n.f&64?n.parent=null:ri(n,t),n=r;},r;for(e.first=e.last=null;n!==null;){_loop2();}}function ni(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||ri(t),t=n;}}function ri(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(ii(e.nodes.start,e.nodes.end),n=!0),yt(e,de),ti(e,t&&!n),Ni(e,0);var r=e.nodes&&e.nodes.t;if(r!==null){var _iterator37=_createForOfIteratorHelper(r),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _e41=_step37.value;_e41.stop();}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}}ei(e),e.f^=de,e.f|=le;var i=e.parent;i!==null&&i.first!==null&&ai(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null;}function ii(e,t){for(;e!==null;){var n=e===t?null:/* @__PURE__ */Dr(e);e.remove(),e=n;}}function ai(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n));}function oi(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!0;var r=[];si(e,r,!0);var i=function i(){n&&ri(e),t&&t();},a=r.length;if(a>0){var o=function o(){return--a||i();};var _iterator38=_createForOfIteratorHelper(r),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var s=_step38.value;s.out(o);}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}}else i();}function si(e,t,n){if(!(e.f&8192)){e.f^=ce;var r=e.nodes&&e.nodes.t;if(r!==null){var _iterator39=_createForOfIteratorHelper(r),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e42=_step39.value;(_e42.is_global||n)&&t.push(_e42);}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}}for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;si(i,t,o?n:!1);}i=a;}}}function ci(e){li(e,!0);}function li(e,t){if(e.f&8192){e.f^=ce,e.f&1024||(yt(e,oe),en.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;li(n,i?t:!1),n=r;}var a=e.nodes&&e.nodes.t;if(a!==null){var _iterator40=_createForOfIteratorHelper(a),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _e43=_step40.value;(_e43.is_global||t)&&_e43.in();}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}}}}function ui(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:/* @__PURE__ */Dr(n);t.append(n),n=i;}}//#endregion
65
65
  //#region node_modules/svelte/src/internal/client/legacy.js
66
- var di=null,fi=!1,pi=!1;function mi(e){pi=e;}var U=null,hi=!1;function gi(e){U=e;}var W=null;function _i(e){W=e;}var vi=null;function yi(e){U!==null&&(!tt||U.f&2)&&(vi===null?vi=[e]:vi.push(e));}var bi=null,xi=0,Si=null;function Ci(e){Si=e;}var wi=1,Ti=0,Ei=Ti;function Di(e){Ei=e;}function Oi(){return++wi;}function ki(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~he),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ki(a)&&ir(a),a.wv>e.wv)return!0;}t&512&&jt===null&&yt(e,ae);}return!1;}function Ai(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!0;var r=e.reactions;if(r!==null&&!(!tt&&vi!==null&&f.call(vi,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ai(a,t,!1):t===a&&(n?yt(a,oe):a.f&1024&&yt(a,se),mn(a));}}function ji(e){var t=bi,n=xi,r=Si,i=U,a=vi,o=M,s=hi,c=Ei,l=e.f;bi=null,xi=0,Si=null,U=l&96?null:e,vi=null,it(e.ctx),hi=!1,Ei=++Ti,e.ac!==null&&(Lr(function(){e.ac.abort(Se);}),e.ac=null);try{e.f|=ge;var u=e.fn,d=u();e.f|=ue;var f=e.deps,p=L==null?void 0:L.is_fork;if(bi!==null){var m;if(p||Ni(e,xi),f!==null&&xi>0)for(f.length=xi+bi.length,m=0;m<bi.length;m++)f[xi+m]=bi[m];else e.deps=f=bi;if(Hr()&&e.f&512)for(m=xi;m<f.length;m++){var h,g;((g=(h=f[m]).reactions)==null?h.reactions=[]:g).push(e);}}else!p&&f!==null&&xi<f.length&&(Ni(e,xi),f.length=xi);if(lt()&&Si!==null&&!hi&&f!==null&&!(e.f&6146))for(m=0;m<Si.length;m++)Ai(Si[m],e);if(i!==null&&i!==e){var _r9;if(Ti++,i.deps!==null)for(var _e44=0;_e44<n;_e44+=1)i.deps[_e44].rv=Ti;if(t!==null){var _iterator41=_createForOfIteratorHelper(t),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _e45=_step41.value;_e45.rv=Ti;}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}}Si!==null&&(r===null?r=Si:(_r9=r).push.apply(_r9,_toConsumableArray(Si)));}return e.f&8388608&&(e.f^=ve),d;}catch(e){return gt(e);}finally{e.f^=ge,bi=t,xi=n,Si=r,U=i,vi=a,it(o),hi=s,Ei=c;}}function Mi(e,t){var n=t.reactions;if(n!==null){var r=d.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop());}}if(n===null&&t.f&2&&(bi===null||!f.call(bi,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~he),a.v!==Re&&bt(a),ar(a),Ni(a,0);}}function Ni(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Mi(e,n[r]);}function Pi(e){var t=e.f;if(!(t&16384)){yt(e,ae);var n=W,r=fi;W=e,fi=!0;try{t&16777232?ni(e):ti(e),ei(e);var i=ji(e);e.teardown=typeof i=="function"?i:null,e.wv=wi;}finally{fi=r,W=n;}}}function Fi(){return _Fi.apply(this,arguments);}function _Fi(){_Fi=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee32(){return _regenerator().w(function(_context32){while(1)switch(_context32.n){case 0:if(!tt){_context32.n=1;break;}return _context32.a(2,new Promise(function(e){requestAnimationFrame(function(){return e();}),setTimeout(function(){return e();});}));case 1:_context32.n=2;return Promise.resolve();case 2:cn();case 3:return _context32.a(2);}},_callee32);}));return _Fi.apply(this,arguments);}function G(e){var t=(e.f&2)!=0;if(di==null||di.add(e),U!==null&&!hi&&!(W!==null&&W.f&16384)&&(vi===null||!f.call(vi,e))){var n=U.deps;if(U.f&2097152)e.rv<Ti&&(e.rv=Ti,bi===null&&n!==null&&n[xi]===e?xi++:bi===null?bi=[e]:bi.push(e));else{var r,i;((i=(r=U).deps)==null?r.deps=[]:i).push(e);var a=e.reactions;a===null?e.reactions=[U]:f.call(a,U)||a.push(U);}}if(pi&&cr.has(e))return cr.get(e);if(t){var o=e;if(pi){var s=o.v;return(!(o.f&1024)&&o.reactions!==null||Li(o))&&(s=rr(o)),cr.set(o,s),s;}var c=(o.f&512)==0&&!hi&&U!==null&&(fi||(U.f&512)!=0),l=(o.f&ue)===0;ki(o)&&(c&&(o.f|=512),ir(o)),c&&!l&&(or(o),Ii(o));}if(jt!=null&&jt.has(e))return jt.get(e);if(e.f&8388608)throw e.v;return e.v;}function Ii(e){if(e.f|=512,e.deps!==null){var _iterator42=_createForOfIteratorHelper(e.deps),_step42;try{for(_iterator42.s();!(_step42=_iterator42.n()).done;){var _n8=_step42.value;var t;((t=_n8.reactions)==null?_n8.reactions=[]:t).push(e),_n8.f&2&&!(_n8.f&512)&&(or(_n8),Ii(_n8));}}catch(err){_iterator42.e(err);}finally{_iterator42.f();}}}function Li(e){if(e.v===Re)return!0;if(e.deps===null)return!1;var _iterator43=_createForOfIteratorHelper(e.deps),_step43;try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var _t15=_step43.value;if(cr.has(_t15)||_t15.f&2&&Li(_t15))return!0;}}catch(err){_iterator43.e(err);}finally{_iterator43.f();}return!1;}function Ri(e){var t=hi;try{return hi=!0,e();}finally{hi=t;}}function zi(e){if(!(_typeof(e)!="object"||!e||e instanceof EventTarget)){if(ye in e)Bi(e);else if(!Array.isArray(e))for(var _t16 in e){var _n9=e[_t16];_typeof(_n9)=="object"&&_n9&&ye in _n9&&Bi(_n9);}}}function Bi(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:/* @__PURE__ */new Set();if(_typeof(e)=="object"&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(var _n0 in e)try{Bi(e[_n0],t);}catch(e){}var _n1=y(e);if(_n1!==Object.prototype&&_n1!==Array.prototype&&_n1!==Map.prototype&&_n1!==Set.prototype&&_n1!==Date.prototype){var _t17=g(_n1);for(var _n10 in _t17){var _r0=_t17[_n10].get;if(_r0)try{_r0.call(e);}catch(e){}}}}}function Vi(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture";}var Hi=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ui(e){return Hi.includes(e);}var Wi=/* @__PURE__ */"allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split("."),Gi={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ki(e){var t;return e=e.toLowerCase(),(t=Gi[e])==null?e:t;}_toConsumableArray(Wi);var qi=["touchstart","touchmove"];function Ji(e){return qi.includes(e);}var Yi=["textarea","script","style","title"];function Xi(e){return Yi.includes(e);}//#endregion
66
+ var di=null,fi=!1,pi=!1;function mi(e){pi=e;}var U=null,hi=!1;function gi(e){U=e;}var W=null;function _i(e){W=e;}var vi=null;function yi(e){U!==null&&(!tt||U.f&2)&&(vi===null?vi=[e]:vi.push(e));}var bi=null,xi=0,Si=null;function Ci(e){Si=e;}var wi=1,Ti=0,Ei=Ti;function Di(e){Ei=e;}function Oi(){return++wi;}function ki(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~he),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ki(a)&&ir(a),a.wv>e.wv)return!0;}t&512&&jt===null&&yt(e,ae);}return!1;}function Ai(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!0;var r=e.reactions;if(r!==null&&!(!tt&&vi!==null&&f.call(vi,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ai(a,t,!1):t===a&&(n?yt(a,oe):a.f&1024&&yt(a,se),mn(a));}}function ji(e){var t=bi,n=xi,r=Si,i=U,a=vi,o=M,s=hi,c=Ei,l=e.f;bi=null,xi=0,Si=null,U=l&96?null:e,vi=null,it(e.ctx),hi=!1,Ei=++Ti,e.ac!==null&&(Lr(function(){e.ac.abort(Se);}),e.ac=null);try{e.f|=ge;var u=e.fn,d=u();e.f|=ue;var f=e.deps,p=L==null?void 0:L.is_fork;if(bi!==null){var m;if(p||Ni(e,xi),f!==null&&xi>0)for(f.length=xi+bi.length,m=0;m<bi.length;m++)f[xi+m]=bi[m];else e.deps=f=bi;if(Hr()&&e.f&512)for(m=xi;m<f.length;m++){var h,g;((g=(h=f[m]).reactions)==null?h.reactions=[]:g).push(e);}}else!p&&f!==null&&xi<f.length&&(Ni(e,xi),f.length=xi);if(lt()&&Si!==null&&!hi&&f!==null&&!(e.f&6146))for(m=0;m<Si.length;m++)Ai(Si[m],e);if(i!==null&&i!==e){var _r9;if(Ti++,i.deps!==null)for(var _e44=0;_e44<n;_e44+=1)i.deps[_e44].rv=Ti;if(t!==null){var _iterator41=_createForOfIteratorHelper(t),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _e45=_step41.value;_e45.rv=Ti;}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}}Si!==null&&(r===null?r=Si:(_r9=r).push.apply(_r9,_toConsumableArray(Si)));}return e.f&8388608&&(e.f^=ve),d;}catch(e){return gt(e);}finally{e.f^=ge,bi=t,xi=n,Si=r,U=i,vi=a,it(o),hi=s,Ei=c;}}function Mi(e,t){var n=t.reactions;if(n!==null){var r=d.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop());}}if(n===null&&t.f&2&&(bi===null||!f.call(bi,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~he),a.v!==Re&&bt(a),ar(a),Ni(a,0);}}function Ni(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Mi(e,n[r]);}function Pi(e){var t=e.f;if(!(t&16384)){yt(e,ae);var n=W,r=fi;W=e,fi=!0;try{t&16777232?ni(e):ti(e),ei(e);var i=ji(e);e.teardown=typeof i=="function"?i:null,e.wv=wi;}finally{fi=r,W=n;}}}function Fi(){return _Fi.apply(this,arguments);}function _Fi(){_Fi=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee33(){return _regenerator().w(function(_context33){while(1)switch(_context33.n){case 0:if(!tt){_context33.n=1;break;}return _context33.a(2,new Promise(function(e){requestAnimationFrame(function(){return e();}),setTimeout(function(){return e();});}));case 1:_context33.n=2;return Promise.resolve();case 2:cn();case 3:return _context33.a(2);}},_callee33);}));return _Fi.apply(this,arguments);}function G(e){var t=(e.f&2)!=0;if(di==null||di.add(e),U!==null&&!hi&&!(W!==null&&W.f&16384)&&(vi===null||!f.call(vi,e))){var n=U.deps;if(U.f&2097152)e.rv<Ti&&(e.rv=Ti,bi===null&&n!==null&&n[xi]===e?xi++:bi===null?bi=[e]:bi.push(e));else{var r,i;((i=(r=U).deps)==null?r.deps=[]:i).push(e);var a=e.reactions;a===null?e.reactions=[U]:f.call(a,U)||a.push(U);}}if(pi&&cr.has(e))return cr.get(e);if(t){var o=e;if(pi){var s=o.v;return(!(o.f&1024)&&o.reactions!==null||Li(o))&&(s=rr(o)),cr.set(o,s),s;}var c=(o.f&512)==0&&!hi&&U!==null&&(fi||(U.f&512)!=0),l=(o.f&ue)===0;ki(o)&&(c&&(o.f|=512),ir(o)),c&&!l&&(or(o),Ii(o));}if(jt!=null&&jt.has(e))return jt.get(e);if(e.f&8388608)throw e.v;return e.v;}function Ii(e){if(e.f|=512,e.deps!==null){var _iterator42=_createForOfIteratorHelper(e.deps),_step42;try{for(_iterator42.s();!(_step42=_iterator42.n()).done;){var _n8=_step42.value;var t;((t=_n8.reactions)==null?_n8.reactions=[]:t).push(e),_n8.f&2&&!(_n8.f&512)&&(or(_n8),Ii(_n8));}}catch(err){_iterator42.e(err);}finally{_iterator42.f();}}}function Li(e){if(e.v===Re)return!0;if(e.deps===null)return!1;var _iterator43=_createForOfIteratorHelper(e.deps),_step43;try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var _t15=_step43.value;if(cr.has(_t15)||_t15.f&2&&Li(_t15))return!0;}}catch(err){_iterator43.e(err);}finally{_iterator43.f();}return!1;}function Ri(e){var t=hi;try{return hi=!0,e();}finally{hi=t;}}function zi(e){if(!(_typeof(e)!="object"||!e||e instanceof EventTarget)){if(ye in e)Bi(e);else if(!Array.isArray(e))for(var _t16 in e){var _n9=e[_t16];_typeof(_n9)=="object"&&_n9&&ye in _n9&&Bi(_n9);}}}function Bi(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:/* @__PURE__ */new Set();if(_typeof(e)=="object"&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(var _n0 in e)try{Bi(e[_n0],t);}catch(e){}var _n1=y(e);if(_n1!==Object.prototype&&_n1!==Array.prototype&&_n1!==Map.prototype&&_n1!==Set.prototype&&_n1!==Date.prototype){var _t17=g(_n1);for(var _n10 in _t17){var _r0=_t17[_n10].get;if(_r0)try{_r0.call(e);}catch(e){}}}}}function Vi(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture";}var Hi=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ui(e){return Hi.includes(e);}var Wi=/* @__PURE__ */"allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split("."),Gi={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ki(e){var t;return e=e.toLowerCase(),(t=Gi[e])==null?e:t;}_toConsumableArray(Wi);var qi=["touchstart","touchmove"];function Ji(e){return qi.includes(e);}var Yi=["textarea","script","style","title"];function Xi(e){return Yi.includes(e);}//#endregion
67
67
  //#region node_modules/svelte/src/internal/client/dev/css.js
68
68
  var Zi=Symbol("events"),Qi=/* @__PURE__ */new Set(),$i=/* @__PURE__ */new Set();function ea(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};function i(e){var _this12=this;if(r.capture||aa.call(t,e),!e.cancelBubble)return Lr(function(){return n==null?void 0:n.call(_this12,e);});}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?mt(function(){t.addEventListener(e,i,r);}):t.addEventListener(e,i,r),i;}function ta(e,t,n,r,i){var a={capture:r,passive:i},o=ea(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ur(function(){t.removeEventListener(e,o,a);});}function na(e,t,n){var r;((r=t[Zi])==null?t[Zi]={}:r)[e]=n;}function ra(e){for(var t=0;t<e.length;t++)Qi.add(e[t]);var _iterator44=_createForOfIteratorHelper($i),_step44;try{for(_iterator44.s();!(_step44=_iterator44.n()).done;){var n=_step44.value;n(e);}}catch(err){_iterator44.e(err);}finally{_iterator44.f();}}var ia=null;function aa(e){var t,n=this,r=n.ownerDocument,i=e.type,a=((t=e.composedPath)==null?void 0:t.call(e))||[],o=a[0]||e.target;ia=e;var s=0,c=ia===e&&e[Zi];if(c){var l=a.indexOf(c);if(l!==-1&&(n===document||n===window)){e[Zi]=n;return;}var u=a.indexOf(n);if(u===-1)return;l<=u&&(s=l);}if(o=a[s]||e.target,o!==n){m(e,"currentTarget",{configurable:!0,get:function get(){return o||r;}});var d=U,f=W;gi(null),_i(null);try{for(var p,h=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var _,v=(_=o[Zi])==null?void 0:_[i];v!=null&&(!o.disabled||e.target===o)&&v.call(o,e);}catch(e){p?h.push(e):p=e;}if(e.cancelBubble||g===n||g===null)break;o=g;}if(p){var _iterator45=_createForOfIteratorHelper(h),_step45;try{var _loop3=function _loop3(){var e=_step45.value;queueMicrotask(function(){throw e;});};for(_iterator45.s();!(_step45=_iterator45.n()).done;){_loop3();}}catch(err){_iterator45.e(err);}finally{_iterator45.f();}throw p;}}finally{e[Zi]=n,delete e.currentTarget,gi(d),_i(f);}}}//#endregion
69
69
  //#region node_modules/svelte/src/internal/client/dom/reconciler.js
@@ -429,73 +429,73 @@ function cx(){return lx()?(db&&Uf(function(){console.error("[Sentry] You cannot
429
429
  //#region node_modules/@sentry/browser/build/npm/esm/prod/sdk.js
430
430
  function ux(e){return[Ov(),wv(),ty(),Ib(),Eb(),Jb(),sx(),qv(),rx(),Gb(),Ub()];}function dx(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=!e.skipBrowserExtensionCheck&&cx(),n=e.defaultIntegrations==null?ux():e.defaultIntegrations;return pv(Ry,_objectSpread(_objectSpread({},e),{},{enabled:t?!1:e.enabled,stackParser:np(e.stackParser||Sb),integrations:__({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ub}));}//#endregion
431
431
  //#region src/services/sentry.ts
432
- function fx(e,t){e&&dx({dsn:e,release:t,tracesSampleRate:0});}var px=new Set(["token","password","secret","authorization"]);function mx(e){return e.length<=4?"*".repeat(e.length):"".concat(e[0]).concat("*".repeat(e.length-2)).concat(e[e.length-1]);}function hx(e){return typeof e=="string"?e:Array.isArray(e)?e.map(hx):e&&_typeof(e)=="object"?Object.fromEntries(Object.entries(e).map(function(_ref31){var _ref32=_slicedToArray(_ref31,2),e=_ref32[0],t=_ref32[1];return px.has(e.toLowerCase())&&typeof t=="string"?[e,mx(t)]:[e,hx(t)];})):e;}function gx(e){if(e)return hx(e);}function _x(e,t){var n=gx(e),r=n==null?void 0:n.context;return n!=null&&n.level||r?Zm(function(e){var i;return n!=null&&n.level&&e.setLevel(n.level),r!=null&&r.tags&&e.setTags(r.tags),r!=null&&r.extra&&e.setExtras(r.extra),r!=null&&r.user&&e.setUser(r.user),!(r==null||(i=r.fingerprint)==null)&&i.length&&e.setFingerprint(r.fingerprint),t();}):t();}function vx(e,t){_x(t,function(){a_(e);});}var yx=vx,bx=/* @__PURE__ */K("<button class=\"text-sm leading-[1.4] bg-[#27272a4d] text-white border border-[#27272a] rounded-xl py-3 px-4 h-auto transition-all duration-200 font-normal [font-family:'Poppins',sans-serif] cursor-pointer hover:bg-[rgba(255,255,255,0.1)] hover:border-[rgba(255,255,255,0.5)] hover:-translate-y-px active:translate-y-0 disabled:opacity-60 disabled:cursor-not-allowed disabled:pointer-events-none max-md:text-[0.8rem] max-md:py-2 max-md:px-3 max-md:rounded-lg\"> </button>"),xx=/* @__PURE__ */K("<div class=\"flex flex-wrap gap-3 mt-4 [font-family:'Poppins',sans-serif] max-md:gap-2 max-md:mt-3\"></div>");function Sx(e,t){st(t,!0);var n=Y(t,"suggestions",19,function(){return[];}),r=Y(t,"disabled",3,!1);function i(e){t.onClick&&t.onClick(e);}var a=pa(),o=Or(a),s=function s(e){var t=xx();Ma(t,21,n,Oa,function(e,t){var n=bx(),a=B(n,!0);j(n),H(function(){n.disabled=r(),ma(a,G(t));}),na("click",n,function(){return i(G(t));}),q(e,n);}),j(t),q(e,t);};J(o,function(e){n().length>0&&e(s);}),q(e,a),ct();}ra(["click"]);//#endregion
432
+ var fx=1e3;function px(e,t,n){return new Promise(function(r){var i=!1,a=function a(e){i||(i=!0,clearTimeout(o),r(e==null?null:e));},o=setTimeout(function(){return a();},n);e.emit("sentry-additionaldata",{event:t,resolve:a});});}function mx(e){return/*#__PURE__*/function(){var _ref31=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(t){var n,_t127;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_context8.p=0;_context8.n=1;return px(e,t,fx);case 1:n=_context8.v;n!=null&&n.tags&&(t.tags=_objectSpread(_objectSpread({},t.tags),n.tags)),n!=null&&n.extra&&(t.extra=_objectSpread(_objectSpread({},t.extra),n.extra)),n!=null&&n.user&&(t.user=_objectSpread(_objectSpread({},t.user),n.user));_context8.n=3;break;case 2:_context8.p=2;_t127=_context8.v;case 3:return _context8.a(2,t);}},_callee8,null,[[0,2]]);}));return function(_x0){return _ref31.apply(this,arguments);};}();}function hx(e,t,n){e&&dx({dsn:e,release:t,tracesSampleRate:0,beforeSend:n?mx(n):void 0});}var gx=new Set(["token","password","secret","authorization"]);function _x(e){return e.length<=4?"*".repeat(e.length):"".concat(e[0]).concat("*".repeat(e.length-2)).concat(e[e.length-1]);}function vx(e){return typeof e=="string"?e:Array.isArray(e)?e.map(vx):e&&_typeof(e)=="object"?Object.fromEntries(Object.entries(e).map(function(_ref32){var _ref33=_slicedToArray(_ref32,2),e=_ref33[0],t=_ref33[1];return gx.has(e.toLowerCase())&&typeof t=="string"?[e,_x(t)]:[e,vx(t)];})):e;}function yx(e){if(e)return vx(e);}function bx(e,t){var n=yx(e),r=n==null?void 0:n.context;return n!=null&&n.level||r?Zm(function(e){var i;return n!=null&&n.level&&e.setLevel(n.level),r!=null&&r.tags&&e.setTags(r.tags),r!=null&&r.extra&&e.setExtras(r.extra),r!=null&&r.user&&e.setUser(r.user),!(r==null||(i=r.fingerprint)==null)&&i.length&&e.setFingerprint(r.fingerprint),t();}):t();}function xx(e,t){bx(t,function(){a_(e);});}var Sx=xx,Cx=/* @__PURE__ */K("<button class=\"text-sm leading-[1.4] bg-[#27272a4d] text-white border border-[#27272a] rounded-xl py-3 px-4 h-auto transition-all duration-200 font-normal [font-family:'Poppins',sans-serif] cursor-pointer hover:bg-[rgba(255,255,255,0.1)] hover:border-[rgba(255,255,255,0.5)] hover:-translate-y-px active:translate-y-0 disabled:opacity-60 disabled:cursor-not-allowed disabled:pointer-events-none max-md:text-[0.8rem] max-md:py-2 max-md:px-3 max-md:rounded-lg\"> </button>"),wx=/* @__PURE__ */K("<div class=\"flex flex-wrap gap-3 mt-4 [font-family:'Poppins',sans-serif] max-md:gap-2 max-md:mt-3\"></div>");function Tx(e,t){st(t,!0);var n=Y(t,"suggestions",19,function(){return[];}),r=Y(t,"disabled",3,!1);function i(e){t.onClick&&t.onClick(e);}var a=pa(),o=Or(a),s=function s(e){var t=wx();Ma(t,21,n,Oa,function(e,t){var n=Cx(),a=B(n,!0);j(n),H(function(){n.disabled=r(),ma(a,G(t));}),na("click",n,function(){return i(G(t));}),q(e,n);}),j(t),q(e,t);};J(o,function(e){n().length>0&&e(s);}),q(e,a),ct();}ra(["click"]);//#endregion
433
433
  //#region src/features/zena-chatbot/components/SurveyDropdown.svelte
434
- var Cx=/* @__PURE__ */l((/* @__PURE__ */o(function(e,t){(function(n,r){_typeof(e)=="object"&&t!==void 0?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:n||self).dayjs=r();})(e,function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function ordinal(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]";}},_=function _(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e;},v={s:_,z:function z(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+_(r,2,"0")+":"+_(i,2,"0");},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0);},a:function a(e){return e<0?Math.ceil(e)||0:Math.floor(e);},p:function p(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"");},u:function u(e){return e===void 0;}},y="en",b={};b[y]=g;var x="$isDayjsObject",S=function S(e){return e instanceof ee||!(!e||!e[x]);},C=function e(t,n,r){var i;if(!t)return y;if(typeof t=="string"){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0]);}else{var s=t.name;b[s]=t,i=s;}return!r&&i&&(y=i),i||!r&&y;},w=function w(e,t){if(S(e))return e.clone();var n=_typeof(t)=="object"?t:{};return n.date=e,n.args=arguments,new ee(n);},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset});};var ee=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0;}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return/* @__PURE__ */new Date(NaN);if(T.u(t))return/* @__PURE__ */new Date();if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a);}}return new Date(t);}(e),this.init();},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds();},_.$utils=function(){return T;},_.isValid=function(){return this.$d.toString()!==p;},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t);},_.isAfter=function(e,t){return w(e)<this.startOf(t);},_.isBefore=function(e,t){return this.endOf(t)<w(e);},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e);},_.unix=function(){return Math.floor(this.valueOf()/1e3);},_.valueOf=function(){return this.$d.getTime();},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function p(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s);},m=function m(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n);},h=this.$W,g=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+"Hours",0);case o:return m(v+"Minutes",1);case a:return m(v+"Seconds",2);case i:return m(v+"Milliseconds",3);default:return this.clone();}},_.endOf=function(e){return this.startOf(e,!1);},_.$set=function(e,t){var n,c=T.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d;}else p&&this.$d[p](m);return this.init(),this;},_.set=function(e,t){return this.clone().$set(e,t);},_.get=function(e){return this[T.p(e)]();},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function h(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p);};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this);},_.subtract=function(e,t){return this.add(-1*e,t);},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function d(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a);},f=function f(e){return T.s(a%12||12,e,"0");},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r;};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return T.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return T.s(o,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return i;}return null;}(e)||i.replace(":","");});},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15);},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function b(){return T.m(h,_);};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y;}return p?m:T.a(m);},_.daysInMonth=function(){return this.endOf(l).$D;},_.$locale=function(){return b[this.$L];},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n;},_.clone=function(){return T.w(this.$d,this);},_.toDate=function(){return new Date(this.valueOf());},_.toJSON=function(){return this.isValid()?this.toISOString():null;},_.toISOString=function(){return this.$d.toISOString();},_.toString=function(){return this.$d.toUTCString();},g;}(),E=ee.prototype;return w.prototype=E,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",d],["$D",f]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1]);};}),w.extend=function(e,t){return e.$i||(e(t,ee,w),e.$i=!0),w;},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e);},w.en=b[y],w.Ls=b,w.p={},w;});}))()),wx=/* @__PURE__ */K("<div class=\"w-full p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 text-center\"><div class=\"text-[#94a3b8] italic text-sm max-md:text-[0.8rem]\"> </div></div>"),Tx=/* @__PURE__ */K("<span> </span>"),Ex=/* @__PURE__ */K("<span> </span>"),Dx=/* @__PURE__ */K("<span> </span>"),Ox=/* @__PURE__ */K("<button class=\"w-full text-left bg-transparent border-0 p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 cursor-pointer transition-colors duration-200 hover:bg-[rgba(121,192,60,0.1)] max-md:p-3\"><div><div class=\"flex items-center justify-between mb-1\"><span class=\"font-semibold text-white text-sm flex-1 mr-2 block mb-1 overflow-hidden text-ellipsis whitespace-nowrap max-md:text-[0.85rem]\"> </span></div> <div class=\"flex items-center text-xs text-[#94a3b8] mb-1\"><!></div></div></button>"),kx=/* @__PURE__ */K("<div class=\"w-full p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 text-center\"><div class=\"text-[#94a3b8] italic text-sm bg-[rgba(121,192,60,0.05)] p-2 rounded-md border border-[rgba(121,192,60,0.2)] max-md:text-[0.8rem]\"> </div></div>"),Ax=/* @__PURE__ */K("<!> <!>",1),jx=/* @__PURE__ */K("<div class=\"absolute top-full left-0 right-0 bg-[#334155] border border-[rgba(255,255,255,0.1)] border-t-0 rounded-b-lg shadow-[0_10px_15px_-3px_rgba(0,0,0,0.1),_0_4px_6px_-2px_rgba(0,0,0,0.05)] max-h-[300px] overflow-y-auto z-10 [&amp;::-webkit-scrollbar]:hidden\"><!></div>"),Mx=/* @__PURE__ */K("<p class=\"text-xs text-[#94a3b8] m-0 text-center italic max-md:text-[0.7rem]\"> </p>"),Nx=/* @__PURE__ */K("<div><div><h4 class=\"mb-5 text-sm font-semibold text-white max-md:text-[0.8rem] max-md:mb-4\"> </h4></div> <div class=\"relative\"><form class=\"mb-0\"><div class=\"relative flex items-center\"><!> <input type=\"text\" placeholder=\"Type survey name to search...\" class=\"w-full py-4 pr-4 pl-11 border border-[rgba(255,255,255,0.2)] rounded-lg text-sm bg-[#475569] text-white transition-colors duration-200 [font-family:'Poppins',sans-serif] focus:outline-none focus:border-[#79c03c] focus:shadow-[0_0_0_2px_rgba(121,192,60,0.1)] placeholder:text-[#94a3b8] disabled:opacity-50 disabled:cursor-not-allowed max-md:py-3 max-md:pr-3 max-md:pl-9 max-md:text-[0.8rem] svelte-1yedchy\"/></div></form> <!></div> <div class=\"pt-4 border-t border-t-[rgba(255,255,255,0.1)]\"><!></div></div>"),Px={hash:"svelte-1yedchy",code:"input.svelte-1yedchy:focus {border:1px solid #71b638;outline:none;}"};function Fx(e,t){st(t,!0),Ha(e,Px);var n=Y(t,"surveys",19,function(){return[];}),r=Y(t,"disabled",3,!1),i=/* @__PURE__ */R(""),a=/* @__PURE__ */R(!1),o=/* @__PURE__ */R(!1),s=/* @__PURE__ */er(function(){return G(i).trim()?n().filter(function(e){var t,n;return typeof e.name=="string"&&e.name.toLowerCase().includes(G(i).toLowerCase())||String((t=e.survey_id)==null?"":t).includes(G(i))||String((n=e.id)==null?"":n).includes(G(i));}):[];});function c(e){var t=e.target.value;z(i,t,!0),z(a,t.trim().length>0);}function l(e){z(i,e.name,!0),z(a,!1),z(o,!0),t.onSurveySelect(e);}function u(e){e.preventDefault(),G(s).length>0&&l(G(s)[0]);}var d={bonus:"Search for a survey to check bonus details:",stuck:"Which survey do you need help completing?",available:"Which survey link is giving you trouble?"},f=/* @__PURE__ */er(function(){return d[t.type]||"Select a survey:";}),p={bonus:"Type to search and click on a survey to check its bonus eligibility.",stuck:"Type to search and click on a survey you are stuck on.",available:"Type to search and click on the survey for which link is not working"};var m=Nx(),h=B(m),g=B(h),_=B(g,!0);j(g),j(h);var v=V(h,2),y=B(v),b=B(y),x=B(b);as(x,{size:14,class:"absolute left-4 z-[2] text-[#94a3b8] max-md:left-3",color:"#94a3b8"});var S=V(x,2);mo(S),j(b),j(y);var C=V(y,2),w=function w(e){var n=jx(),r=B(n),a=function a(e){var t=wx(),n=B(t),r=B(n);j(n),j(t),H(function(){var e;return ma(r,"No surveys found matching \"".concat((e=G(i))==null?"":e,"\""));}),q(e,t);},o=function o(e){var n=Ax(),r=Or(n);Ma(r,17,function(){return G(s).slice(0,5);},function(e){var t,n;return(t=(n=e.users_wave_id)==null?e.id:n)==null?e.survey_id:t;},function(e,n){var r=Ox(),i=B(r),a=B(i),o=B(a),s=B(o,!0);j(o),j(a);var c=V(a,2),u=B(c),d=function d(e){var t=Tx(),r=B(t);j(t),H(function(e){return ma(r,"Completed: ".concat(e==null?"":e));},[function(){return G(n).completed_date?(0,Cx.default)(G(n).completed_date).format("MMM D, YYYY"):"Date not available";}]),q(e,t);},f=function f(e){var t=Ex(),r=B(t);j(t),H(function(){return ma(r,"Progress: ".concat(G(n).progress!==null&&G(n).progress!==void 0?"".concat(G(n).progress,"%"):"-"));}),q(e,t);},p=function p(e){var t=Dx(),r=B(t);j(t),H(function(){var e;return ma(r,"Status: ".concat((e=G(n).status||"Available")==null?"":e));}),q(e,t);};J(u,function(e){t.type==="bonus"?e(d):t.type==="stuck"?e(f,1):t.type==="available"&&e(p,2);}),j(c),j(i),j(r),H(function(){return ma(s,G(n).name);}),na("click",r,function(){return l(G(n));}),q(e,r);});var i=V(r,2),a=function a(e){var t=kx(),n=B(t),r=B(n);j(n),j(t),H(function(){return ma(r,"+".concat(G(s).length-5," more surveys. Continue typing to narrow results."));}),q(e,t);};J(i,function(e){G(s).length>5&&e(a);}),q(e,n);};J(r,function(e){G(s).length===0?e(a):e(o,-1);}),j(n),q(e,n);};J(C,function(e){G(a)&&!r()&&e(w);}),j(v);var T=V(v,2),ee=B(T),E=function E(e){var n=Mx(),r=B(n,!0);j(n),H(function(){return ma(r,p[t.type]);}),q(e,n);};J(ee,function(e){p[t.type]&&e(E);}),j(T),j(m),H(function(){Qa(m,1,"bg-[#1e293b] rounded-xl p-5 mt-3 border border-[rgba(255,255,255,0.1)] max-w-full [font-family:'Poppins',sans-serif] max-md:p-4 max-md:mt-2 ".concat(r()?"opacity-60 pointer-events-none":"")),ma(_,G(f)),ho(S,G(i)),S.disabled=G(o)||r();}),ta("submit",y,u),na("input",S,c),q(e,m),ct();}ra(["input","click"]);//#endregion
434
+ var Ex=/* @__PURE__ */l((/* @__PURE__ */o(function(e,t){(function(n,r){_typeof(e)=="object"&&t!==void 0?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:n||self).dayjs=r();})(e,function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function ordinal(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]";}},_=function _(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e;},v={s:_,z:function z(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+_(r,2,"0")+":"+_(i,2,"0");},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0);},a:function a(e){return e<0?Math.ceil(e)||0:Math.floor(e);},p:function p(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"");},u:function u(e){return e===void 0;}},y="en",b={};b[y]=g;var x="$isDayjsObject",S=function S(e){return e instanceof ee||!(!e||!e[x]);},C=function e(t,n,r){var i;if(!t)return y;if(typeof t=="string"){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0]);}else{var s=t.name;b[s]=t,i=s;}return!r&&i&&(y=i),i||!r&&y;},w=function w(e,t){if(S(e))return e.clone();var n=_typeof(t)=="object"?t:{};return n.date=e,n.args=arguments,new ee(n);},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset});};var ee=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0;}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return/* @__PURE__ */new Date(NaN);if(T.u(t))return/* @__PURE__ */new Date();if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a);}}return new Date(t);}(e),this.init();},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds();},_.$utils=function(){return T;},_.isValid=function(){return this.$d.toString()!==p;},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t);},_.isAfter=function(e,t){return w(e)<this.startOf(t);},_.isBefore=function(e,t){return this.endOf(t)<w(e);},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e);},_.unix=function(){return Math.floor(this.valueOf()/1e3);},_.valueOf=function(){return this.$d.getTime();},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function p(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s);},m=function m(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n);},h=this.$W,g=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+"Hours",0);case o:return m(v+"Minutes",1);case a:return m(v+"Seconds",2);case i:return m(v+"Milliseconds",3);default:return this.clone();}},_.endOf=function(e){return this.startOf(e,!1);},_.$set=function(e,t){var n,c=T.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d;}else p&&this.$d[p](m);return this.init(),this;},_.set=function(e,t){return this.clone().$set(e,t);},_.get=function(e){return this[T.p(e)]();},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function h(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p);};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this);},_.subtract=function(e,t){return this.add(-1*e,t);},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function d(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a);},f=function f(e){return T.s(a%12||12,e,"0");},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r;};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return T.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return T.s(o,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return i;}return null;}(e)||i.replace(":","");});},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15);},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function b(){return T.m(h,_);};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y;}return p?m:T.a(m);},_.daysInMonth=function(){return this.endOf(l).$D;},_.$locale=function(){return b[this.$L];},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n;},_.clone=function(){return T.w(this.$d,this);},_.toDate=function(){return new Date(this.valueOf());},_.toJSON=function(){return this.isValid()?this.toISOString():null;},_.toISOString=function(){return this.$d.toISOString();},_.toString=function(){return this.$d.toUTCString();},g;}(),E=ee.prototype;return w.prototype=E,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",d],["$D",f]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1]);};}),w.extend=function(e,t){return e.$i||(e(t,ee,w),e.$i=!0),w;},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e);},w.en=b[y],w.Ls=b,w.p={},w;});}))()),Dx=/* @__PURE__ */K("<div class=\"w-full p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 text-center\"><div class=\"text-[#94a3b8] italic text-sm max-md:text-[0.8rem]\"> </div></div>"),Ox=/* @__PURE__ */K("<span> </span>"),kx=/* @__PURE__ */K("<span> </span>"),Ax=/* @__PURE__ */K("<span> </span>"),jx=/* @__PURE__ */K("<button class=\"w-full text-left bg-transparent border-0 p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 cursor-pointer transition-colors duration-200 hover:bg-[rgba(121,192,60,0.1)] max-md:p-3\"><div><div class=\"flex items-center justify-between mb-1\"><span class=\"font-semibold text-white text-sm flex-1 mr-2 block mb-1 overflow-hidden text-ellipsis whitespace-nowrap max-md:text-[0.85rem]\"> </span></div> <div class=\"flex items-center text-xs text-[#94a3b8] mb-1\"><!></div></div></button>"),Mx=/* @__PURE__ */K("<div class=\"w-full p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 text-center\"><div class=\"text-[#94a3b8] italic text-sm bg-[rgba(121,192,60,0.05)] p-2 rounded-md border border-[rgba(121,192,60,0.2)] max-md:text-[0.8rem]\"> </div></div>"),Nx=/* @__PURE__ */K("<!> <!>",1),Px=/* @__PURE__ */K("<div class=\"absolute top-full left-0 right-0 bg-[#334155] border border-[rgba(255,255,255,0.1)] border-t-0 rounded-b-lg shadow-[0_10px_15px_-3px_rgba(0,0,0,0.1),_0_4px_6px_-2px_rgba(0,0,0,0.05)] max-h-[300px] overflow-y-auto z-10 [&amp;::-webkit-scrollbar]:hidden\"><!></div>"),Fx=/* @__PURE__ */K("<p class=\"text-xs text-[#94a3b8] m-0 text-center italic max-md:text-[0.7rem]\"> </p>"),Ix=/* @__PURE__ */K("<div><div><h4 class=\"mb-5 text-sm font-semibold text-white max-md:text-[0.8rem] max-md:mb-4\"> </h4></div> <div class=\"relative\"><form class=\"mb-0\"><div class=\"relative flex items-center\"><!> <input type=\"text\" placeholder=\"Type survey name to search...\" class=\"w-full py-4 pr-4 pl-11 border border-[rgba(255,255,255,0.2)] rounded-lg text-sm bg-[#475569] text-white transition-colors duration-200 [font-family:'Poppins',sans-serif] focus:outline-none focus:border-[#79c03c] focus:shadow-[0_0_0_2px_rgba(121,192,60,0.1)] placeholder:text-[#94a3b8] disabled:opacity-50 disabled:cursor-not-allowed max-md:py-3 max-md:pr-3 max-md:pl-9 max-md:text-[0.8rem] svelte-1yedchy\"/></div></form> <!></div> <div class=\"pt-4 border-t border-t-[rgba(255,255,255,0.1)]\"><!></div></div>"),Lx={hash:"svelte-1yedchy",code:"input.svelte-1yedchy:focus {border:1px solid #71b638;outline:none;}"};function Rx(e,t){st(t,!0),Ha(e,Lx);var n=Y(t,"surveys",19,function(){return[];}),r=Y(t,"disabled",3,!1),i=/* @__PURE__ */R(""),a=/* @__PURE__ */R(!1),o=/* @__PURE__ */R(!1),s=/* @__PURE__ */er(function(){return G(i).trim()?n().filter(function(e){var t,n;return typeof e.name=="string"&&e.name.toLowerCase().includes(G(i).toLowerCase())||String((t=e.survey_id)==null?"":t).includes(G(i))||String((n=e.id)==null?"":n).includes(G(i));}):[];});function c(e){var t=e.target.value;z(i,t,!0),z(a,t.trim().length>0);}function l(e){z(i,e.name,!0),z(a,!1),z(o,!0),t.onSurveySelect(e);}function u(e){e.preventDefault(),G(s).length>0&&l(G(s)[0]);}var d={bonus:"Search for a survey to check bonus details:",stuck:"Which survey do you need help completing?",available:"Which survey link is giving you trouble?"},f=/* @__PURE__ */er(function(){return d[t.type]||"Select a survey:";}),p={bonus:"Type to search and click on a survey to check its bonus eligibility.",stuck:"Type to search and click on a survey you are stuck on.",available:"Type to search and click on the survey for which link is not working"};var m=Ix(),h=B(m),g=B(h),_=B(g,!0);j(g),j(h);var v=V(h,2),y=B(v),b=B(y),x=B(b);as(x,{size:14,class:"absolute left-4 z-[2] text-[#94a3b8] max-md:left-3",color:"#94a3b8"});var S=V(x,2);mo(S),j(b),j(y);var C=V(y,2),w=function w(e){var n=Px(),r=B(n),a=function a(e){var t=Dx(),n=B(t),r=B(n);j(n),j(t),H(function(){var e;return ma(r,"No surveys found matching \"".concat((e=G(i))==null?"":e,"\""));}),q(e,t);},o=function o(e){var n=Nx(),r=Or(n);Ma(r,17,function(){return G(s).slice(0,5);},function(e){var t,n;return(t=(n=e.users_wave_id)==null?e.id:n)==null?e.survey_id:t;},function(e,n){var r=jx(),i=B(r),a=B(i),o=B(a),s=B(o,!0);j(o),j(a);var c=V(a,2),u=B(c),d=function d(e){var t=Ox(),r=B(t);j(t),H(function(e){return ma(r,"Completed: ".concat(e==null?"":e));},[function(){return G(n).completed_date?(0,Ex.default)(G(n).completed_date).format("MMM D, YYYY"):"Date not available";}]),q(e,t);},f=function f(e){var t=kx(),r=B(t);j(t),H(function(){return ma(r,"Progress: ".concat(G(n).progress!==null&&G(n).progress!==void 0?"".concat(G(n).progress,"%"):"-"));}),q(e,t);},p=function p(e){var t=Ax(),r=B(t);j(t),H(function(){var e;return ma(r,"Status: ".concat((e=G(n).status||"Available")==null?"":e));}),q(e,t);};J(u,function(e){t.type==="bonus"?e(d):t.type==="stuck"?e(f,1):t.type==="available"&&e(p,2);}),j(c),j(i),j(r),H(function(){return ma(s,G(n).name);}),na("click",r,function(){return l(G(n));}),q(e,r);});var i=V(r,2),a=function a(e){var t=Mx(),n=B(t),r=B(n);j(n),j(t),H(function(){return ma(r,"+".concat(G(s).length-5," more surveys. Continue typing to narrow results."));}),q(e,t);};J(i,function(e){G(s).length>5&&e(a);}),q(e,n);};J(r,function(e){G(s).length===0?e(a):e(o,-1);}),j(n),q(e,n);};J(C,function(e){G(a)&&!r()&&e(w);}),j(v);var T=V(v,2),ee=B(T),E=function E(e){var n=Fx(),r=B(n,!0);j(n),H(function(){return ma(r,p[t.type]);}),q(e,n);};J(ee,function(e){p[t.type]&&e(E);}),j(T),j(m),H(function(){Qa(m,1,"bg-[#1e293b] rounded-xl p-5 mt-3 border border-[rgba(255,255,255,0.1)] max-w-full [font-family:'Poppins',sans-serif] max-md:p-4 max-md:mt-2 ".concat(r()?"opacity-60 pointer-events-none":"")),ma(_,G(f)),ho(S,G(i)),S.disabled=G(o)||r();}),ta("submit",y,u),na("input",S,c),q(e,m),ct();}ra(["input","click"]);//#endregion
435
435
  //#region src/features/zena-chatbot/context.ts
436
- var Ix=Symbol("attachmentService"),Lx=Symbol("conversationId");function Rx(e){ot(Ix,e);}function zx(){var e=at(Ix);return e==null?function(){return null;}:e;}function Bx(e){ot(Lx,e);}function Vx(){var e=at(Lx);return e==null?function(){return null;}:e;}//#endregion
436
+ var zx=Symbol("attachmentService"),Bx=Symbol("conversationId");function Vx(e){ot(zx,e);}function Hx(){var e=at(zx);return e==null?function(){return null;}:e;}function Ux(e){ot(Bx,e);}function Wx(){var e=at(Bx);return e==null?function(){return null;}:e;}//#endregion
437
437
  //#region src/features/zena-chatbot/components/ChatAttachment.svelte
438
- var Hx=/* @__PURE__ */K("<img class=\"w-full h-full object-cover\"/>"),Ux=/* @__PURE__ */K("<video class=\"w-full h-full object-cover\"></video>",2),Wx=/* @__PURE__ */K("<span class=\"text-[0.7rem] leading-[1.2] text-white/85 break-all text-center\"> </span>"),Gx=/* @__PURE__ */K("<div><div><!></div> <!></div>"),Kx=/* @__PURE__ */K("<div data-testid=\"chat-attachment\"></div>");function qx(e,t){st(t,!0);var n=Y(t,"messageType",3,"user"),r=/* @__PURE__ */er(function(){return n()==="assistant";}),i=/* @__PURE__ */R(_r([]));function a(e){return!e||typeof e!="string"?null:e.length>37?e.substring(37):null;}var o=zx(),s=Vx();Vo(function(){var e;if(!((e=t.attachmentIds)!=null&&e.length))return;var n=o(),r=s();if(!n||!r)return;var c=!1;return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(){var e;return _regenerator().w(function(_context9){while(1)switch(_context9.n){case 0:_context9.n=1;return Promise.allSettled(t.attachmentIds.map(/*#__PURE__*/function(){var _ref34=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(e){var _t127,_t128;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_context8.p=0;_context8.n=1;return n.fetchPreviewUrl(String(e),r);case 1:_t127=_context8.v;return _context8.a(2,{id:e,previewUrl:_t127.previewUrl,filename:a(String(e)),contentType:_t127.contentType});case 2:_context8.p=2;_t128=_context8.v;return _context8.a(2,(vx(_t128,{context:{extra:{message:"fetchPreviewUrl failed",attachmentId:e}}}),{id:e,previewUrl:null,filename:a(String(e)),contentType:""}));}},_callee8,null,[[0,2]]);}));return function(_x0){return _ref34.apply(this,arguments);};}()));case 1:e=_context9.v;c||z(i,e.map(function(e){return e.status==="fulfilled"?e.value:{id:"",previewUrl:null,filename:null,contentType:""};}),!0);case 2:return _context9.a(2);}},_callee9);}))(),function(){c=!0;};});var c=pa(),l=Or(c),u=function u(e){var t=Kx();Ma(t,21,function(){return G(i);},function(e){return e.id;},function(e,t){var n=Gx(),i=B(n),a=B(i),o=function o(e){var n=Hx();H(function(){_o(n,"src",G(t).previewUrl),_o(n,"alt",G(t).filename||"Attachment");}),q(e,n);},s=/* @__PURE__ */er(function(){var e;return G(t).previewUrl&&((e=G(t).contentType)==null?void 0:e.startsWith("image"));}),c=function c(e){var n=Ux();n.muted=!0,H(function(){return _o(n,"src",G(t).previewUrl);}),q(e,n);},l=/* @__PURE__ */er(function(){var e;return G(t).previewUrl&&((e=G(t).contentType)==null?void 0:e.startsWith("video"));}),u=function u(e){us(e,{size:20,class:"text-white/60"});},d=/* @__PURE__ */er(function(){var e;return(e=G(t).contentType)==null?void 0:e.startsWith("video");}),f=function f(e){ts(e,{size:20,class:"text-white/60"});};J(a,function(e){G(s)?e(o):G(l)?e(c,1):G(d)?e(u,2):e(f,-1);}),j(i);var p=V(i,2),m=function m(e){var n=Wx(),r=B(n,!0);j(n),H(function(){return ma(r,G(t).filename);}),q(e,n);};J(p,function(e){G(t).filename&&!G(r)&&e(m);}),j(n),H(function(){Qa(n,1,"flex flex-col items-center gap-1 ".concat(G(r)?"":"max-w-[calc(50%-4px)]")),Qa(i,1,"rounded overflow-hidden bg-black/15 flex flex-col items-center justify-center shrink-0 ".concat(G(r)?"w-48 h-32 max-md:w-40 max-md:h-28":"w-16 h-16 max-md:w-14 max-md:h-14"));}),q(e,n);}),j(t),H(function(){return Qa(t,1,"flex flex-wrap gap-2 mt-2 items-start ".concat(G(r)?"justify-start":"justify-end"));}),q(e,t);};J(l,function(e){G(i).length>0&&e(u);}),q(e,c),ct();}//#endregion
438
+ var Gx=/* @__PURE__ */K("<img class=\"w-full h-full object-cover\"/>"),Kx=/* @__PURE__ */K("<video class=\"w-full h-full object-cover\"></video>",2),qx=/* @__PURE__ */K("<span class=\"text-[0.7rem] leading-[1.2] text-white/85 break-all text-center\"> </span>"),Jx=/* @__PURE__ */K("<div><div><!></div> <!></div>"),Yx=/* @__PURE__ */K("<div data-testid=\"chat-attachment\"></div>");function Xx(e,t){st(t,!0);var n=Y(t,"messageType",3,"user"),r=/* @__PURE__ */er(function(){return n()==="assistant";}),i=/* @__PURE__ */R(_r([]));function a(e){return!e||typeof e!="string"?null:e.length>37?e.substring(37):null;}var o=Hx(),s=Wx();Vo(function(){var e;if(!((e=t.attachmentIds)!=null&&e.length))return;var n=o(),r=s();if(!n||!r)return;var c=!1;return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(){var e;return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:_context0.n=1;return Promise.allSettled(t.attachmentIds.map(/*#__PURE__*/function(){var _ref35=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(e){var _t128,_t129;return _regenerator().w(function(_context9){while(1)switch(_context9.p=_context9.n){case 0:_context9.p=0;_context9.n=1;return n.fetchPreviewUrl(String(e),r);case 1:_t128=_context9.v;return _context9.a(2,{id:e,previewUrl:_t128.previewUrl,filename:a(String(e)),contentType:_t128.contentType});case 2:_context9.p=2;_t129=_context9.v;return _context9.a(2,(xx(_t129,{context:{extra:{message:"fetchPreviewUrl failed",attachmentId:e}}}),{id:e,previewUrl:null,filename:a(String(e)),contentType:""}));}},_callee9,null,[[0,2]]);}));return function(_x1){return _ref35.apply(this,arguments);};}()));case 1:e=_context0.v;c||z(i,e.map(function(e){return e.status==="fulfilled"?e.value:{id:"",previewUrl:null,filename:null,contentType:""};}),!0);case 2:return _context0.a(2);}},_callee0);}))(),function(){c=!0;};});var c=pa(),l=Or(c),u=function u(e){var t=Yx();Ma(t,21,function(){return G(i);},function(e){return e.id;},function(e,t){var n=Jx(),i=B(n),a=B(i),o=function o(e){var n=Gx();H(function(){_o(n,"src",G(t).previewUrl),_o(n,"alt",G(t).filename||"Attachment");}),q(e,n);},s=/* @__PURE__ */er(function(){var e;return G(t).previewUrl&&((e=G(t).contentType)==null?void 0:e.startsWith("image"));}),c=function c(e){var n=Kx();n.muted=!0,H(function(){return _o(n,"src",G(t).previewUrl);}),q(e,n);},l=/* @__PURE__ */er(function(){var e;return G(t).previewUrl&&((e=G(t).contentType)==null?void 0:e.startsWith("video"));}),u=function u(e){us(e,{size:20,class:"text-white/60"});},d=/* @__PURE__ */er(function(){var e;return(e=G(t).contentType)==null?void 0:e.startsWith("video");}),f=function f(e){ts(e,{size:20,class:"text-white/60"});};J(a,function(e){G(s)?e(o):G(l)?e(c,1):G(d)?e(u,2):e(f,-1);}),j(i);var p=V(i,2),m=function m(e){var n=qx(),r=B(n,!0);j(n),H(function(){return ma(r,G(t).filename);}),q(e,n);};J(p,function(e){G(t).filename&&!G(r)&&e(m);}),j(n),H(function(){Qa(n,1,"flex flex-col items-center gap-1 ".concat(G(r)?"":"max-w-[calc(50%-4px)]")),Qa(i,1,"rounded overflow-hidden bg-black/15 flex flex-col items-center justify-center shrink-0 ".concat(G(r)?"w-48 h-32 max-md:w-40 max-md:h-28":"w-16 h-16 max-md:w-14 max-md:h-14"));}),q(e,n);}),j(t),H(function(){return Qa(t,1,"flex flex-wrap gap-2 mt-2 items-start ".concat(G(r)?"justify-start":"justify-end"));}),q(e,t);};J(l,function(e){G(i).length>0&&e(u);}),q(e,c),ct();}//#endregion
439
439
  //#region node_modules/ky/distribution/errors/HTTPError.js
440
- var Jx=/*#__PURE__*/function(_Error2){function Jx(e,t,n){var _this31;_classCallCheck(this,Jx);var r;var i="".concat(e.status||e.status===0?e.status:""," ").concat((r=e.statusText)==null?"":r).trim(),a=i?"status code ".concat(i):"an unknown error";_this31=_callSuper(this,Jx,["Request failed with ".concat(a,": ").concat(t.method," ").concat(t.url)]),D(_assertThisInitialized(_this31),"response",void 0),D(_assertThisInitialized(_this31),"request",void 0),D(_assertThisInitialized(_this31),"options",void 0),_this31.name="HTTPError",_this31.response=e,_this31.request=t,_this31.options=n;return _this31;}_inherits(Jx,_Error2);return _createClass(Jx);}(/*#__PURE__*/_wrapNativeSuper(Error)),Yx=/*#__PURE__*/function(_Error3){function Yx(e){var _this32;_classCallCheck(this,Yx);var t="Non-error value was thrown";try{typeof e=="string"?t=e:e&&_typeof(e)=="object"&&"message"in e&&typeof e.message=="string"&&(t=e.message);}catch(e){}_this32=_callSuper(this,Yx,[t]),D(_assertThisInitialized(_this32),"name","NonError"),D(_assertThisInitialized(_this32),"value",void 0),_this32.value=e;return _this32;}_inherits(Yx,_Error3);return _createClass(Yx);}(/*#__PURE__*/_wrapNativeSuper(Error)),Xx=/*#__PURE__*/function(_Error4){function Xx(e){var _this33;_classCallCheck(this,Xx);var t=e!=null&&e.cause?e.cause instanceof Error?e.cause:new Yx(e.cause):void 0;_this33=_callSuper(this,Xx,[e!=null&&e.code?"Forced retry: ".concat(e.code):"Forced retry",t?{cause:t}:void 0]),D(_assertThisInitialized(_this33),"name","ForceRetryError"),D(_assertThisInitialized(_this33),"customDelay",void 0),D(_assertThisInitialized(_this33),"code",void 0),D(_assertThisInitialized(_this33),"customRequest",void 0),_this33.customDelay=e==null?void 0:e.delay,_this33.code=e==null?void 0:e.code,_this33.customRequest=e==null?void 0:e.request;return _this33;}_inherits(Xx,_Error4);return _createClass(Xx);}(/*#__PURE__*/_wrapNativeSuper(Error)),Zx=function(){var e=!1,t=!1,n=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";if(n&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream(),method:"POST",get duplex(){return e=!0,"half";}}).headers.has("Content-Type");}catch(e){if(e instanceof Error&&e.message==="unsupported BodyInit type")return!1;throw e;}return e&&!t;}(),Qx=typeof globalThis.AbortController=="function",$x=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",eS=typeof globalThis.ReadableStream=="function",tS=typeof globalThis.FormData=="function",nS=["get","post","put","patch","head","delete"],rS={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},iS=2147483647,aS=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,oS=Symbol("stop"),sS=/*#__PURE__*/_createClass(function sS(e){_classCallCheck(this,sS);D(this,"options",void 0),this.options=e;}),cS=function cS(e){return new sS(e);},lS={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},uS={next:!0},dS={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},fS=function fS(e){if(!e)return 0;if(e instanceof FormData){var t=0;var _iterator89=_createForOfIteratorHelper(e),_step89;try{for(_iterator89.s();!(_step89=_iterator89.n()).done;){var _step89$value=_slicedToArray(_step89.value,2),n=_step89$value[0],_r81=_step89$value[1];t+=aS,t+=new TextEncoder().encode("Content-Disposition: form-data; name=\"".concat(n,"\"")).length,t+=typeof _r81=="string"?new TextEncoder().encode(_r81).length:_r81.size;}}catch(err){_iterator89.e(err);}finally{_iterator89.f();}return t;}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(_typeof(e)=="object"&&e)try{var _t129=JSON.stringify(e);return new TextEncoder().encode(_t129).length;}catch(e){return 0;}return 0;},pS=function pS(e,t,n){var r,i=0;return e.pipeThrough(new TransformStream({transform:function transform(e,a){if(a.enqueue(e),r){i+=r.byteLength;var _e174=t===0?0:i/t;_e174>=1&&(_e174=1-Math.pow(2,-52)),n==null||n({percent:_e174,totalBytes:Math.max(t,i),transferredBytes:i},r);}r=e;},flush:function flush(){r&&(i+=r.byteLength,n==null||n({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},r));}}));},mS=function mS(e,t){if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});var n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(pS(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers});},hS=function hS(e,t,n){if(!e.body)return e;var r=fS(n==null?e.body:n);return new Request(e,{duplex:"half",body:pS(e.body,r,t)});},gS=function gS(e){return _typeof(e)=="object"&&!!e;},_S=function _S(){for(var _len20=arguments.length,e=new Array(_len20),_key20=0;_key20<_len20;_key20++){e[_key20]=arguments[_key20];}for(var _i60=0,_e175=e;_i60<_e175.length;_i60++){var t=_e175[_i60];if((!gS(t)||Array.isArray(t))&&t!==void 0)throw TypeError("The `options` argument must be an object");}return _SS.apply(void 0,[{}].concat(e));},vS=function vS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,i=new globalThis.Headers(t);var _iterator90=_createForOfIteratorHelper(i.entries()),_step90;try{for(_iterator90.s();!(_step90=_iterator90.n()).done;){var _step90$value=_slicedToArray(_step90.value,2),_e176=_step90$value[0],_t130=_step90$value[1];r&&_t130==="undefined"||_t130===void 0?n.delete(_e176):n.set(_e176,_t130);}}catch(err){_iterator90.e(err);}finally{_iterator90.f();}return n;};function yS(e,t,n){var r,i;return Object.hasOwn(t,n)&&t[n]===void 0?[]:_SS((r=e[n])==null?[]:r,(i=t[n])==null?[]:i);}var bS=function bS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{beforeRequest:yS(e,t,"beforeRequest"),beforeRetry:yS(e,t,"beforeRetry"),afterResponse:yS(e,t,"afterResponse"),beforeError:yS(e,t,"beforeError")};},xS=function xS(e,t){var n=new URLSearchParams();for(var _i61=0,_arr4=[e,t];_i61<_arr4.length;_i61++){var _r82=_arr4[_i61];if(_r82!==void 0)if(_r82 instanceof URLSearchParams){var _iterator91=_createForOfIteratorHelper(_r82.entries()),_step91;try{for(_iterator91.s();!(_step91=_iterator91.n()).done;){var _step91$value=_slicedToArray(_step91.value,2),_e177=_step91$value[0],_t131=_step91$value[1];n.append(_e177,_t131);}}catch(err){_iterator91.e(err);}finally{_iterator91.f();}}else if(Array.isArray(_r82)){var _iterator92=_createForOfIteratorHelper(_r82),_step92;try{for(_iterator92.s();!(_step92=_iterator92.n()).done;){var _e178=_step92.value;if(!Array.isArray(_e178)||_e178.length!==2)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(_e178[0]),String(_e178[1]));}}catch(err){_iterator92.e(err);}finally{_iterator92.f();}}else if(gS(_r82))for(var _i62=0,_Object$entries=Object.entries(_r82);_i62<_Object$entries.length;_i62++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i62],2),_e179=_Object$entries$_i[0],_t132=_Object$entries$_i[1];_t132!==void 0&&n.append(_e179,String(_t132));}else{var _e180=new URLSearchParams(_r82);var _iterator93=_createForOfIteratorHelper(_e180.entries()),_step93;try{for(_iterator93.s();!(_step93=_iterator93.n()).done;){var _step93$value=_slicedToArray(_step93.value,2),_t133=_step93$value[0],_r83=_step93$value[1];n.append(_t133,_r83);}}catch(err){_iterator93.e(err);}finally{_iterator93.f();}}}return n;},_SS=function SS(){var t={},n={},r={},i,a=[];for(var _len21=arguments.length,e=new Array(_len21),_key21=0;_key21<_len21;_key21++){e[_key21]=arguments[_key21];}for(var _i63=0,_e181=e;_i63<_e181.length;_i63++){var o=_e181[_i63];if(Array.isArray(o))Array.isArray(t)||(t=[]),t=[].concat(_toConsumableArray(t),_toConsumableArray(o));else if(gS(o)){for(var _i64=0,_Object$entries2=Object.entries(o);_i64<_Object$entries2.length;_i64++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i64],2),_e182=_Object$entries2$_i[0],_n92=_Object$entries2$_i[1];if(_e182==="signal"&&_n92 instanceof globalThis.AbortSignal){a.push(_n92);continue;}if(_e182==="context"){if(_n92!=null&&(!gS(_n92)||Array.isArray(_n92)))throw TypeError("The `context` option must be an object");t=_objectSpread(_objectSpread({},t),{},{context:_n92==null?{}:_objectSpread(_objectSpread({},t.context),_n92)});continue;}if(_e182==="searchParams"){i=_n92==null?void 0:i===void 0?_n92:xS(i,_n92);continue;}gS(_n92)&&_e182 in t&&(_n92=_SS(t[_e182],_n92)),t=_objectSpread(_objectSpread({},t),{},_defineProperty({},_e182,_n92));}gS(o.hooks)&&(r=bS(r,o.hooks),t.hooks=r),gS(o.headers)&&(n=vS(n,o.headers),t.headers=n);}}return i!==void 0&&(t.searchParams=i),a.length>0&&(a.length===1?t.signal=a[0]:$x?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t;},CS=function CS(e){return nS.includes(e)?e.toUpperCase():e;},wS={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Infinity,backoffLimit:Infinity,delay:function delay(e){return .3*Math.pow(2,e-1)*1e3;},jitter:void 0,retryOnTimeout:!1},TS=function TS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(typeof e=="number")return _objectSpread(_objectSpread({},wS),{},{limit:e});if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.methods&&(e.methods=e.methods.map(function(e){return e.toLowerCase();})),e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");var t=Object.fromEntries(Object.entries(e).filter(function(_ref35){var _ref36=_slicedToArray(_ref35,2),e=_ref36[1];return e!==void 0;}));return _objectSpread(_objectSpread({},wS),t);},ES=/*#__PURE__*/function(_Error5){function ES(e){var _this34;_classCallCheck(this,ES);_this34=_callSuper(this,ES,["Request timed out: ".concat(e.method," ").concat(e.url)]),D(_assertThisInitialized(_this34),"request",void 0),_this34.name="TimeoutError",_this34.request=e;return _this34;}_inherits(ES,_Error5);return _createClass(ES);}(/*#__PURE__*/_wrapNativeSuper(Error));//#endregion
440
+ var Zx=/*#__PURE__*/function(_Error2){function Zx(e,t,n){var _this31;_classCallCheck(this,Zx);var r;var i="".concat(e.status||e.status===0?e.status:""," ").concat((r=e.statusText)==null?"":r).trim(),a=i?"status code ".concat(i):"an unknown error";_this31=_callSuper(this,Zx,["Request failed with ".concat(a,": ").concat(t.method," ").concat(t.url)]),D(_assertThisInitialized(_this31),"response",void 0),D(_assertThisInitialized(_this31),"request",void 0),D(_assertThisInitialized(_this31),"options",void 0),_this31.name="HTTPError",_this31.response=e,_this31.request=t,_this31.options=n;return _this31;}_inherits(Zx,_Error2);return _createClass(Zx);}(/*#__PURE__*/_wrapNativeSuper(Error)),Qx=/*#__PURE__*/function(_Error3){function Qx(e){var _this32;_classCallCheck(this,Qx);var t="Non-error value was thrown";try{typeof e=="string"?t=e:e&&_typeof(e)=="object"&&"message"in e&&typeof e.message=="string"&&(t=e.message);}catch(e){}_this32=_callSuper(this,Qx,[t]),D(_assertThisInitialized(_this32),"name","NonError"),D(_assertThisInitialized(_this32),"value",void 0),_this32.value=e;return _this32;}_inherits(Qx,_Error3);return _createClass(Qx);}(/*#__PURE__*/_wrapNativeSuper(Error)),$x=/*#__PURE__*/function(_Error4){function $x(e){var _this33;_classCallCheck(this,$x);var t=e!=null&&e.cause?e.cause instanceof Error?e.cause:new Qx(e.cause):void 0;_this33=_callSuper(this,$x,[e!=null&&e.code?"Forced retry: ".concat(e.code):"Forced retry",t?{cause:t}:void 0]),D(_assertThisInitialized(_this33),"name","ForceRetryError"),D(_assertThisInitialized(_this33),"customDelay",void 0),D(_assertThisInitialized(_this33),"code",void 0),D(_assertThisInitialized(_this33),"customRequest",void 0),_this33.customDelay=e==null?void 0:e.delay,_this33.code=e==null?void 0:e.code,_this33.customRequest=e==null?void 0:e.request;return _this33;}_inherits($x,_Error4);return _createClass($x);}(/*#__PURE__*/_wrapNativeSuper(Error)),eS=function(){var e=!1,t=!1,n=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";if(n&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream(),method:"POST",get duplex(){return e=!0,"half";}}).headers.has("Content-Type");}catch(e){if(e instanceof Error&&e.message==="unsupported BodyInit type")return!1;throw e;}return e&&!t;}(),tS=typeof globalThis.AbortController=="function",nS=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",rS=typeof globalThis.ReadableStream=="function",iS=typeof globalThis.FormData=="function",aS=["get","post","put","patch","head","delete"],oS={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},sS=2147483647,cS=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,lS=Symbol("stop"),uS=/*#__PURE__*/_createClass(function uS(e){_classCallCheck(this,uS);D(this,"options",void 0),this.options=e;}),dS=function dS(e){return new uS(e);},fS={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},pS={next:!0},mS={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},hS=function hS(e){if(!e)return 0;if(e instanceof FormData){var t=0;var _iterator89=_createForOfIteratorHelper(e),_step89;try{for(_iterator89.s();!(_step89=_iterator89.n()).done;){var _step89$value=_slicedToArray(_step89.value,2),n=_step89$value[0],_r81=_step89$value[1];t+=cS,t+=new TextEncoder().encode("Content-Disposition: form-data; name=\"".concat(n,"\"")).length,t+=typeof _r81=="string"?new TextEncoder().encode(_r81).length:_r81.size;}}catch(err){_iterator89.e(err);}finally{_iterator89.f();}return t;}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(_typeof(e)=="object"&&e)try{var _t130=JSON.stringify(e);return new TextEncoder().encode(_t130).length;}catch(e){return 0;}return 0;},gS=function gS(e,t,n){var r,i=0;return e.pipeThrough(new TransformStream({transform:function transform(e,a){if(a.enqueue(e),r){i+=r.byteLength;var _e174=t===0?0:i/t;_e174>=1&&(_e174=1-Math.pow(2,-52)),n==null||n({percent:_e174,totalBytes:Math.max(t,i),transferredBytes:i},r);}r=e;},flush:function flush(){r&&(i+=r.byteLength,n==null||n({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},r));}}));},_S=function _S(e,t){if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});var n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(gS(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers});},vS=function vS(e,t,n){if(!e.body)return e;var r=hS(n==null?e.body:n);return new Request(e,{duplex:"half",body:gS(e.body,r,t)});},yS=function yS(e){return _typeof(e)=="object"&&!!e;},bS=function bS(){for(var _len20=arguments.length,e=new Array(_len20),_key20=0;_key20<_len20;_key20++){e[_key20]=arguments[_key20];}for(var _i60=0,_e175=e;_i60<_e175.length;_i60++){var t=_e175[_i60];if((!yS(t)||Array.isArray(t))&&t!==void 0)throw TypeError("The `options` argument must be an object");}return _TS.apply(void 0,[{}].concat(e));},xS=function xS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,i=new globalThis.Headers(t);var _iterator90=_createForOfIteratorHelper(i.entries()),_step90;try{for(_iterator90.s();!(_step90=_iterator90.n()).done;){var _step90$value=_slicedToArray(_step90.value,2),_e176=_step90$value[0],_t131=_step90$value[1];r&&_t131==="undefined"||_t131===void 0?n.delete(_e176):n.set(_e176,_t131);}}catch(err){_iterator90.e(err);}finally{_iterator90.f();}return n;};function SS(e,t,n){var r,i;return Object.hasOwn(t,n)&&t[n]===void 0?[]:_TS((r=e[n])==null?[]:r,(i=t[n])==null?[]:i);}var CS=function CS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{beforeRequest:SS(e,t,"beforeRequest"),beforeRetry:SS(e,t,"beforeRetry"),afterResponse:SS(e,t,"afterResponse"),beforeError:SS(e,t,"beforeError")};},wS=function wS(e,t){var n=new URLSearchParams();for(var _i61=0,_arr4=[e,t];_i61<_arr4.length;_i61++){var _r82=_arr4[_i61];if(_r82!==void 0)if(_r82 instanceof URLSearchParams){var _iterator91=_createForOfIteratorHelper(_r82.entries()),_step91;try{for(_iterator91.s();!(_step91=_iterator91.n()).done;){var _step91$value=_slicedToArray(_step91.value,2),_e177=_step91$value[0],_t132=_step91$value[1];n.append(_e177,_t132);}}catch(err){_iterator91.e(err);}finally{_iterator91.f();}}else if(Array.isArray(_r82)){var _iterator92=_createForOfIteratorHelper(_r82),_step92;try{for(_iterator92.s();!(_step92=_iterator92.n()).done;){var _e178=_step92.value;if(!Array.isArray(_e178)||_e178.length!==2)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(_e178[0]),String(_e178[1]));}}catch(err){_iterator92.e(err);}finally{_iterator92.f();}}else if(yS(_r82))for(var _i62=0,_Object$entries=Object.entries(_r82);_i62<_Object$entries.length;_i62++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i62],2),_e179=_Object$entries$_i[0],_t133=_Object$entries$_i[1];_t133!==void 0&&n.append(_e179,String(_t133));}else{var _e180=new URLSearchParams(_r82);var _iterator93=_createForOfIteratorHelper(_e180.entries()),_step93;try{for(_iterator93.s();!(_step93=_iterator93.n()).done;){var _step93$value=_slicedToArray(_step93.value,2),_t134=_step93$value[0],_r83=_step93$value[1];n.append(_t134,_r83);}}catch(err){_iterator93.e(err);}finally{_iterator93.f();}}}return n;},_TS=function TS(){var t={},n={},r={},i,a=[];for(var _len21=arguments.length,e=new Array(_len21),_key21=0;_key21<_len21;_key21++){e[_key21]=arguments[_key21];}for(var _i63=0,_e181=e;_i63<_e181.length;_i63++){var o=_e181[_i63];if(Array.isArray(o))Array.isArray(t)||(t=[]),t=[].concat(_toConsumableArray(t),_toConsumableArray(o));else if(yS(o)){for(var _i64=0,_Object$entries2=Object.entries(o);_i64<_Object$entries2.length;_i64++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i64],2),_e182=_Object$entries2$_i[0],_n92=_Object$entries2$_i[1];if(_e182==="signal"&&_n92 instanceof globalThis.AbortSignal){a.push(_n92);continue;}if(_e182==="context"){if(_n92!=null&&(!yS(_n92)||Array.isArray(_n92)))throw TypeError("The `context` option must be an object");t=_objectSpread(_objectSpread({},t),{},{context:_n92==null?{}:_objectSpread(_objectSpread({},t.context),_n92)});continue;}if(_e182==="searchParams"){i=_n92==null?void 0:i===void 0?_n92:wS(i,_n92);continue;}yS(_n92)&&_e182 in t&&(_n92=_TS(t[_e182],_n92)),t=_objectSpread(_objectSpread({},t),{},_defineProperty({},_e182,_n92));}yS(o.hooks)&&(r=CS(r,o.hooks),t.hooks=r),yS(o.headers)&&(n=xS(n,o.headers),t.headers=n);}}return i!==void 0&&(t.searchParams=i),a.length>0&&(a.length===1?t.signal=a[0]:nS?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t;},ES=function ES(e){return aS.includes(e)?e.toUpperCase():e;},DS={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Infinity,backoffLimit:Infinity,delay:function delay(e){return .3*Math.pow(2,e-1)*1e3;},jitter:void 0,retryOnTimeout:!1},OS=function OS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(typeof e=="number")return _objectSpread(_objectSpread({},DS),{},{limit:e});if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.methods&&(e.methods=e.methods.map(function(e){return e.toLowerCase();})),e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");var t=Object.fromEntries(Object.entries(e).filter(function(_ref36){var _ref37=_slicedToArray(_ref36,2),e=_ref37[1];return e!==void 0;}));return _objectSpread(_objectSpread({},DS),t);},kS=/*#__PURE__*/function(_Error5){function kS(e){var _this34;_classCallCheck(this,kS);_this34=_callSuper(this,kS,["Request timed out: ".concat(e.method," ").concat(e.url)]),D(_assertThisInitialized(_this34),"request",void 0),_this34.name="TimeoutError",_this34.request=e;return _this34;}_inherits(kS,_Error5);return _createClass(kS);}(/*#__PURE__*/_wrapNativeSuper(Error));//#endregion
441
441
  //#region node_modules/ky/distribution/utils/timeout.js
442
- function DS(_x1,_x10,_x11,_x12){return _DS.apply(this,arguments);}//#endregion
442
+ function AS(_x10,_x11,_x12,_x13){return _AS.apply(this,arguments);}//#endregion
443
443
  //#region node_modules/ky/distribution/utils/delay.js
444
- function _DS(){_DS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee33(e,t,n,r){return _regenerator().w(function(_context33){while(1)switch(_context33.n){case 0:return _context33.a(2,new Promise(function(i,a){var o=setTimeout(function(){n&&n.abort(),a(new ES(e));},r.timeout);r.fetch(e,t).then(i).catch(a).then(function(){clearTimeout(o);});}));}},_callee33);}));return _DS.apply(this,arguments);}function OS(_x13,_x14){return _OS.apply(this,arguments);}//#endregion
444
+ function _AS(){_AS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee34(e,t,n,r){return _regenerator().w(function(_context34){while(1)switch(_context34.n){case 0:return _context34.a(2,new Promise(function(i,a){var o=setTimeout(function(){n&&n.abort(),a(new kS(e));},r.timeout);r.fetch(e,t).then(i).catch(a).then(function(){clearTimeout(o);});}));}},_callee34);}));return _AS.apply(this,arguments);}function jS(_x14,_x15){return _jS.apply(this,arguments);}//#endregion
445
445
  //#region node_modules/ky/distribution/utils/options.js
446
- function _OS(){_OS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee34(e,_ref37){var t;return _regenerator().w(function(_context34){while(1)switch(_context34.n){case 0:t=_ref37.signal;return _context34.a(2,new Promise(function(n,r){t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));function i(){clearTimeout(a),r(t.reason);}var a=setTimeout(function(){t==null||t.removeEventListener("abort",i),n();},e);}));}},_callee34);}));return _OS.apply(this,arguments);}var kS=function kS(e,t){var n={};for(var _r84 in t)Object.hasOwn(t,_r84)&&!(_r84 in dS)&&!(_r84 in lS)&&(!(_r84 in e)||_r84 in uS)&&(n[_r84]=t[_r84]);return n;},AS=function AS(e){return e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:_typeof(e)=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;};//#endregion
446
+ function _jS(){_jS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(e,_ref38){var t;return _regenerator().w(function(_context35){while(1)switch(_context35.n){case 0:t=_ref38.signal;return _context35.a(2,new Promise(function(n,r){t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));function i(){clearTimeout(a),r(t.reason);}var a=setTimeout(function(){t==null||t.removeEventListener("abort",i),n();},e);}));}},_callee35);}));return _jS.apply(this,arguments);}var MS=function MS(e,t){var n={};for(var _r84 in t)Object.hasOwn(t,_r84)&&!(_r84 in mS)&&!(_r84 in fS)&&(!(_r84 in e)||_r84 in pS)&&(n[_r84]=t[_r84]);return n;},NS=function NS(e){return e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:_typeof(e)=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;};//#endregion
447
447
  //#region node_modules/ky/distribution/utils/type-guards.js
448
- function jS(e){return e instanceof Jx||(e==null?void 0:e.name)===Jx.name;}function MS(e){return e instanceof ES||(e==null?void 0:e.name)===ES.name;}//#endregion
448
+ function PS(e){return e instanceof Zx||(e==null?void 0:e.name)===Zx.name;}function FS(e){return e instanceof kS||(e==null?void 0:e.name)===kS.name;}//#endregion
449
449
  //#region node_modules/ky/distribution/core/Ky.js
450
- var NS=/* @__PURE__ */new WeakMap(),PS=/* @__PURE__ */new WeakMap(),FS=/* @__PURE__ */new WeakMap(),$=/* @__PURE__ */new WeakMap(),IS=/* @__PURE__ */new WeakMap(),LS=/* @__PURE__ */new WeakMap(),RS=/* @__PURE__ */new WeakMap(),zS=/* @__PURE__ */new WeakSet(),BS=/*#__PURE__*/function(){function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,e);var r,i,a,o,s,c;if(Dt(this,zS),D(this,"request",void 0),N(this,NS,void 0),N(this,PS,0),N(this,FS,void 0),N(this,$,void 0),N(this,IS,void 0),N(this,LS,void 0),N(this,RS,void 0),I(FS,this,t),I($,this,_objectSpread(_objectSpread({},n),{},{headers:vS(F(FS,this).headers,n.headers),hooks:bS({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:CS((r=(i=n.method)==null?F(FS,this).method:i)==null?"GET":r),prefixUrl:String(n.prefixUrl||""),retry:TS(n.retry),throwHttpErrors:(a=n.throwHttpErrors)==null?!0:a,timeout:(o=n.timeout)==null?1e4:o,fetch:(s=n.fetch)==null?globalThis.fetch.bind(globalThis):s,context:(c=n.context)==null?{}:c})),typeof F(FS,this)!="string"&&!(F(FS,this)instanceof URL||F(FS,this)instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(F($,this).prefixUrl&&typeof F(FS,this)=="string"){if(F(FS,this).startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");F($,this).prefixUrl.endsWith("/")||(F($,this).prefixUrl+="/"),I(FS,this,F($,this).prefixUrl+F(FS,this));}if(Qx&&$x){var l;I(LS,this,(l=F($,this).signal)==null?F(FS,this).signal:l),I(NS,this,new globalThis.AbortController()),F($,this).signal=F(LS,this)?AbortSignal.any([F(LS,this),F(NS,this).signal]):F(NS,this).signal;}if(Zx&&(F($,this).duplex="half"),F($,this).json!==void 0){var u,d,f,p;F($,this).body=(u=(d=(f=F($,this)).stringifyJson)==null?void 0:d.call(f,F($,this).json))==null?JSON.stringify(F($,this).json):u,F($,this).headers.set("content-type",(p=F($,this).headers.get("content-type"))==null?"application/json":p);}var m=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(F(FS,this)instanceof globalThis.Request&&(tS&&F($,this).body instanceof globalThis.FormData||F($,this).body instanceof URLSearchParams)&&!m&&F($,this).headers.delete("content-type"),this.request=new globalThis.Request(F(FS,this),F($,this)),AS(F($,this).searchParams)){var _t134="?"+(typeof F($,this).searchParams=="string"?F($,this).searchParams.replace(/^\?/,""):new URLSearchParams(VS.call(e,F($,this).searchParams)).toString()),_n93=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,_t134);this.request=new globalThis.Request(_n93,F($,this));}if(F($,this).onUploadProgress){var h;if(typeof F($,this).onUploadProgress!="function")throw TypeError("The `onUploadProgress` option must be a function");if(!Zx)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=P(zS,this,ZS).call(this,this.request,(h=F($,this).body)==null?void 0:h);}}return _createClass(e,null,[{key:"create",value:function create(t,n){var r=new e(t,n),i=P(zS,r,qS).call(r,/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(){var _e183,_iterator94,_step94,_t137,_n94,_i65,_a18,_t135,_iterator95,_step95,_e184,_t136,_t138,_t139,_t140;return _regenerator().w(function(_context0){while(1)switch(_context0.p=_context0.n){case 0:if(!(typeof F($,r).timeout=="number"&&F($,r).timeout>2147483647)){_context0.n=1;break;}throw RangeError("The `timeout` option cannot be greater than ".concat(iS));case 1:_context0.n=2;return Promise.resolve();case 2:_context0.n=3;return P(zS,r,JS).call(r);case 3:_e183=_context0.v;_iterator94=_createForOfIteratorHelper(F($,r).hooks.afterResponse);_context0.p=4;_iterator94.s();case 5:if((_step94=_iterator94.n()).done){_context0.n=12;break;}_t137=_step94.value;_n94=P(zS,r,WS).call(r,_e183.clone()),_i65=void 0;_context0.p=6;_context0.n=7;return _t137(r.request,P(zS,r,YS).call(r),_n94,{retryCount:F(PS,r)});case 7:_i65=_context0.v;_context0.n=9;break;case 8:_context0.p=8;_t138=_context0.v;throw P(zS,r,KS).call(r,_n94),P(zS,r,KS).call(r,_e183),_t138;case 9:if(!(_i65 instanceof sS)){_context0.n=10;break;}throw P(zS,r,KS).call(r,_n94),P(zS,r,KS).call(r,_e183),new Xx(_i65.options);case 10:_a18=_i65 instanceof globalThis.Response?_i65:_e183;_n94!==_a18&&P(zS,r,KS).call(r,_n94),_e183!==_a18&&P(zS,r,KS).call(r,_e183),_e183=_a18;case 11:_context0.n=5;break;case 12:_context0.n=14;break;case 13:_context0.p=13;_t139=_context0.v;_iterator94.e(_t139);case 14:_context0.p=14;_iterator94.f();return _context0.f(14);case 15:if(!(P(zS,r,WS).call(r,_e183),!_e183.ok&&(typeof F($,r).throwHttpErrors=="function"?F($,r).throwHttpErrors(_e183.status):F($,r).throwHttpErrors))){_context0.n=24;break;}_t135=new Jx(_e183,r.request,P(zS,r,YS).call(r));_iterator95=_createForOfIteratorHelper(F($,r).hooks.beforeError);_context0.p=16;_iterator95.s();case 17:if((_step95=_iterator95.n()).done){_context0.n=20;break;}_e184=_step95.value;_context0.n=18;return _e184(_t135,{retryCount:F(PS,r)});case 18:_t135=_context0.v;case 19:_context0.n=17;break;case 20:_context0.n=22;break;case 21:_context0.p=21;_t140=_context0.v;_iterator95.e(_t140);case 22:_context0.p=22;_iterator95.f();return _context0.f(22);case 23:throw _t135;case 24:if(!F($,r).onDownloadProgress){_context0.n=27;break;}if(!(typeof F($,r).onDownloadProgress!="function")){_context0.n=25;break;}throw TypeError("The `onDownloadProgress` option must be a function");case 25:if(eS){_context0.n=26;break;}throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");case 26:_t136=_e183.clone();return _context0.a(2,(P(zS,r,KS).call(r,_e183),mS(_t136,F($,r).onDownloadProgress)));case 27:return _context0.a(2,_e183);}},_callee0,null,[[16,21,22,23],[6,8],[4,13,14,15]]);}))).finally(function(){var _e185,t;var n=F(IS,r);P(zS,r,GS).call(r,(_e185=n==null?void 0:n.body)==null?void 0:_e185),P(zS,r,GS).call(r,(t=r.request.body)==null?void 0:t);});var _loop9=function _loop9(){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i66],2),_e186=_Object$entries3$_i[0],t=_Object$entries3$_i[1];_e186==="bytes"&&typeof((a=globalThis.Response)==null||(a=a.prototype)==null?void 0:a.bytes)!="function"||(i[_e186]=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(){var a,_e187;return _regenerator().w(function(_context1){while(1)switch(_context1.n){case 0:r.request.headers.set("accept",r.request.headers.get("accept")||t);_context1.n=1;return i;case 1:a=_context1.v;if(!(_e186==="json")){_context1.n=4;break;}if(!(a.status===204)){_context1.n=2;break;}return _context1.a(2,"");case 2:_context1.n=3;return a.text();case 3:_e187=_context1.v;return _context1.a(2,_e187===""?"":n.parseJson?n.parseJson(_e187):JSON.parse(_e187));case 4:return _context1.a(2,a[_e186]());}},_callee1);})));},a;for(var _i66=0,_Object$entries3=Object.entries(rS);_i66<_Object$entries3.length;_i66++){_loop9();}return i;}}]);}();function VS(e){return e&&_typeof(e)=="object"&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(function(_ref40){var _ref41=_slicedToArray(_ref40,2),e=_ref41[1];return e!==void 0;})):e;}function HS(){var e;var t=F($,this).retry.delay(F(PS,this)),n=t;F($,this).retry.jitter===!0?n=Math.random()*t:typeof F($,this).retry.jitter=="function"&&(n=F($,this).retry.jitter(t),(!Number.isFinite(n)||n<0)&&(n=t));var r=(e=F($,this).retry.backoffLimit)==null?Infinity:e;return Math.min(r,n);}function US(_x15){return _US.apply(this,arguments);}function _US(){_US=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(e){var t,n,r,i,_n103,a,o,s,c,_n104,l,_e198,_r91;return _regenerator().w(function(_context35){while(1)switch(_context35.n){case 0:t=this;if(!(I(PS,t,(n=F(PS,t),n++,n)),F(PS,t)>F($,t).retry.limit)){_context35.n=1;break;}throw e;case 1:r=e instanceof Error?e:new Yx(e);if(!(r instanceof Xx)){_context35.n=2;break;}return _context35.a(2,(i=r.customDelay)==null?P(zS,t,HS).call(t):i);case 2:if(F($,t).retry.methods.includes(t.request.method.toLowerCase())){_context35.n=3;break;}throw e;case 3:if(!(F($,t).retry.shouldRetry!==void 0)){_context35.n=6;break;}_context35.n=4;return F($,t).retry.shouldRetry({error:r,retryCount:F(PS,t)});case 4:_n103=_context35.v;if(!(_n103===!1)){_context35.n=5;break;}throw e;case 5:if(!(_n103===!0)){_context35.n=6;break;}return _context35.a(2,P(zS,t,HS).call(t));case 6:if(!(MS(e)&&!F($,t).retry.retryOnTimeout)){_context35.n=7;break;}throw e;case 7:if(!jS(e)){_context35.n=10;break;}if(F($,t).retry.statusCodes.includes(e.response.status)){_context35.n=8;break;}throw e;case 8:_n104=(a=(o=(s=(c=e.response.headers.get("Retry-After"))==null?e.response.headers.get("RateLimit-Reset"):c)==null?e.response.headers.get("X-RateLimit-Retry-After"):s)==null?e.response.headers.get("X-RateLimit-Reset"):o)==null?e.response.headers.get("X-Rate-Limit-Reset"):a;if(!(_n104&&F($,t).retry.afterStatusCodes.includes(e.response.status))){_context35.n=9;break;}_e198=Number(_n104)*1e3;Number.isNaN(_e198)?_e198=Date.parse(_n104)-Date.now():_e198>=Date.parse("2024-01-01")&&(_e198-=Date.now());_r91=(l=F($,t).retry.maxRetryAfter)==null?_e198:l;return _context35.a(2,_e198<_r91?_e198:_r91);case 9:if(!(e.response.status===413)){_context35.n=10;break;}throw e;case 10:return _context35.a(2,P(zS,t,HS).call(t));}},_callee35,this);}));return _US.apply(this,arguments);}function WS(e){var t=this;return F($,this).parseJson&&(e.json=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(){var _t141;return _regenerator().w(function(_context10){while(1)switch(_context10.n){case 0:_t141=F($,t);_context10.n=1;return e.text();case 1:return _context10.a(2,_t141.parseJson.call(_t141,_context10.v));}},_callee10);}))),e;}function GS(e){e&&e.cancel().catch(function(){return void 0;});}function KS(e){var t;P(zS,this,GS).call(this,(t=e.body)==null?void 0:t);}function qS(_x16){return _qS.apply(this,arguments);}function _qS(){_qS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee36(e){var t,_r92,_e199,_iterator99,_step99,_e200,_r93,_t169,_t170,_t171;return _regenerator().w(function(_context36){while(1)switch(_context36.p=_context36.n){case 0:t=this;_context36.p=1;_context36.n=2;return e();case 2:return _context36.a(2,_context36.v);case 3:_context36.p=3;_t169=_context36.v;_t170=Math;_context36.n=4;return P(zS,t,US).call(t,_t169);case 4:_r92=_t170.min.call(_t170,_context36.v,iS);if(!(F(PS,t)<1)){_context36.n=5;break;}throw _t169;case 5:_context36.n=6;return OS(_r92,F(LS,t)?{signal:F(LS,t)}:{});case 6:if(!(_t169 instanceof Xx&&_t169.customRequest)){_context36.n=7;break;}_e199=F($,t).signal?new globalThis.Request(_t169.customRequest,{signal:F($,t).signal}):new globalThis.Request(_t169.customRequest);P(zS,t,XS).call(t,_e199);case 7:_iterator99=_createForOfIteratorHelper(F($,t).hooks.beforeRetry);_context36.p=8;_iterator99.s();case 9:if((_step99=_iterator99.n()).done){_context36.n=14;break;}_e200=_step99.value;_context36.n=10;return _e200({request:t.request,options:P(zS,t,YS).call(t),error:_t169,retryCount:F(PS,t)});case 10:_r93=_context36.v;if(!(_r93 instanceof globalThis.Request)){_context36.n=11;break;}P(zS,t,XS).call(t,_r93);return _context36.a(3,14);case 11:if(!(_r93 instanceof globalThis.Response)){_context36.n=12;break;}return _context36.a(2,_r93);case 12:if(!(_r93===oS)){_context36.n=13;break;}return _context36.a(2);case 13:_context36.n=9;break;case 14:_context36.n=16;break;case 15:_context36.p=15;_t171=_context36.v;_iterator99.e(_t171);case 16:_context36.p=16;_iterator99.f();return _context36.f(16);case 17:return _context36.a(2,P(zS,t,qS).call(t,e));}},_callee36,this,[[8,15,16,17],[1,3]]);}));return _qS.apply(this,arguments);}function JS(){return _JS.apply(this,arguments);}function _JS(){_JS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee37(){var e,t,_iterator100,_step100,_t172,_n105,n,_t173;return _regenerator().w(function(_context37){while(1)switch(_context37.p=_context37.n){case 0:e=this;(t=F(NS,e))!=null&&t.signal.aborted&&(I(NS,e,new globalThis.AbortController()),F($,e).signal=F(LS,e)?AbortSignal.any([F(LS,e),F(NS,e).signal]):F(NS,e).signal,e.request=new globalThis.Request(e.request,{signal:F($,e).signal}));_iterator100=_createForOfIteratorHelper(F($,e).hooks.beforeRequest);_context37.p=1;_iterator100.s();case 2:if((_step100=_iterator100.n()).done){_context37.n=6;break;}_t172=_step100.value;_context37.n=3;return _t172(e.request,P(zS,e,YS).call(e),{retryCount:F(PS,e)});case 3:_n105=_context37.v;if(!(_n105 instanceof Response)){_context37.n=4;break;}return _context37.a(2,_n105);case 4:if(!(_n105 instanceof globalThis.Request)){_context37.n=5;break;}P(zS,e,XS).call(e,_n105);return _context37.a(3,6);case 5:_context37.n=2;break;case 6:_context37.n=8;break;case 7:_context37.p=7;_t173=_context37.v;_iterator100.e(_t173);case 8:_context37.p=8;_iterator100.f();return _context37.f(8);case 9:n=kS(e.request,F($,e));return _context37.a(2,(I(IS,e,e.request),e.request=F(IS,e).clone(),F($,e).timeout===!1?F($,e).fetch(F(IS,e),n):DS(F(IS,e),n,F(NS,e),F($,e))));}},_callee37,this,[[1,7,8,9]]);}));return _JS.apply(this,arguments);}function YS(){if(!F(RS,this)){var _F2=F($,this),_e188=_F2.hooks,t=_objectWithoutProperties(_F2,_excluded2);I(RS,this,Object.freeze(t));}return F(RS,this);}function XS(e){I(RS,this,void 0),this.request=P(zS,this,ZS).call(this,e);}function ZS(e,t){var n;return!F($,this).onUploadProgress||!e.body?e:hS(e,F($,this).onUploadProgress,(n=t==null?F($,this).body:t)==null?void 0:n);}//#endregion
450
+ var IS=/* @__PURE__ */new WeakMap(),LS=/* @__PURE__ */new WeakMap(),RS=/* @__PURE__ */new WeakMap(),$=/* @__PURE__ */new WeakMap(),zS=/* @__PURE__ */new WeakMap(),BS=/* @__PURE__ */new WeakMap(),VS=/* @__PURE__ */new WeakMap(),HS=/* @__PURE__ */new WeakSet(),US=/*#__PURE__*/function(){function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,e);var r,i,a,o,s,c;if(Dt(this,HS),D(this,"request",void 0),N(this,IS,void 0),N(this,LS,0),N(this,RS,void 0),N(this,$,void 0),N(this,zS,void 0),N(this,BS,void 0),N(this,VS,void 0),I(RS,this,t),I($,this,_objectSpread(_objectSpread({},n),{},{headers:xS(F(RS,this).headers,n.headers),hooks:CS({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:ES((r=(i=n.method)==null?F(RS,this).method:i)==null?"GET":r),prefixUrl:String(n.prefixUrl||""),retry:OS(n.retry),throwHttpErrors:(a=n.throwHttpErrors)==null?!0:a,timeout:(o=n.timeout)==null?1e4:o,fetch:(s=n.fetch)==null?globalThis.fetch.bind(globalThis):s,context:(c=n.context)==null?{}:c})),typeof F(RS,this)!="string"&&!(F(RS,this)instanceof URL||F(RS,this)instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(F($,this).prefixUrl&&typeof F(RS,this)=="string"){if(F(RS,this).startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");F($,this).prefixUrl.endsWith("/")||(F($,this).prefixUrl+="/"),I(RS,this,F($,this).prefixUrl+F(RS,this));}if(tS&&nS){var l;I(BS,this,(l=F($,this).signal)==null?F(RS,this).signal:l),I(IS,this,new globalThis.AbortController()),F($,this).signal=F(BS,this)?AbortSignal.any([F(BS,this),F(IS,this).signal]):F(IS,this).signal;}if(eS&&(F($,this).duplex="half"),F($,this).json!==void 0){var u,d,f,p;F($,this).body=(u=(d=(f=F($,this)).stringifyJson)==null?void 0:d.call(f,F($,this).json))==null?JSON.stringify(F($,this).json):u,F($,this).headers.set("content-type",(p=F($,this).headers.get("content-type"))==null?"application/json":p);}var m=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(F(RS,this)instanceof globalThis.Request&&(iS&&F($,this).body instanceof globalThis.FormData||F($,this).body instanceof URLSearchParams)&&!m&&F($,this).headers.delete("content-type"),this.request=new globalThis.Request(F(RS,this),F($,this)),NS(F($,this).searchParams)){var _t135="?"+(typeof F($,this).searchParams=="string"?F($,this).searchParams.replace(/^\?/,""):new URLSearchParams(WS.call(e,F($,this).searchParams)).toString()),_n93=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,_t135);this.request=new globalThis.Request(_n93,F($,this));}if(F($,this).onUploadProgress){var h;if(typeof F($,this).onUploadProgress!="function")throw TypeError("The `onUploadProgress` option must be a function");if(!eS)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=P(HS,this,eC).call(this,this.request,(h=F($,this).body)==null?void 0:h);}}return _createClass(e,null,[{key:"create",value:function create(t,n){var r=new e(t,n),i=P(HS,r,XS).call(r,/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(){var _e183,_iterator94,_step94,_t138,_n94,_i65,_a18,_t136,_iterator95,_step95,_e184,_t137,_t139,_t140,_t141;return _regenerator().w(function(_context1){while(1)switch(_context1.p=_context1.n){case 0:if(!(typeof F($,r).timeout=="number"&&F($,r).timeout>2147483647)){_context1.n=1;break;}throw RangeError("The `timeout` option cannot be greater than ".concat(sS));case 1:_context1.n=2;return Promise.resolve();case 2:_context1.n=3;return P(HS,r,ZS).call(r);case 3:_e183=_context1.v;_iterator94=_createForOfIteratorHelper(F($,r).hooks.afterResponse);_context1.p=4;_iterator94.s();case 5:if((_step94=_iterator94.n()).done){_context1.n=12;break;}_t138=_step94.value;_n94=P(HS,r,qS).call(r,_e183.clone()),_i65=void 0;_context1.p=6;_context1.n=7;return _t138(r.request,P(HS,r,QS).call(r),_n94,{retryCount:F(LS,r)});case 7:_i65=_context1.v;_context1.n=9;break;case 8:_context1.p=8;_t139=_context1.v;throw P(HS,r,YS).call(r,_n94),P(HS,r,YS).call(r,_e183),_t139;case 9:if(!(_i65 instanceof uS)){_context1.n=10;break;}throw P(HS,r,YS).call(r,_n94),P(HS,r,YS).call(r,_e183),new $x(_i65.options);case 10:_a18=_i65 instanceof globalThis.Response?_i65:_e183;_n94!==_a18&&P(HS,r,YS).call(r,_n94),_e183!==_a18&&P(HS,r,YS).call(r,_e183),_e183=_a18;case 11:_context1.n=5;break;case 12:_context1.n=14;break;case 13:_context1.p=13;_t140=_context1.v;_iterator94.e(_t140);case 14:_context1.p=14;_iterator94.f();return _context1.f(14);case 15:if(!(P(HS,r,qS).call(r,_e183),!_e183.ok&&(typeof F($,r).throwHttpErrors=="function"?F($,r).throwHttpErrors(_e183.status):F($,r).throwHttpErrors))){_context1.n=24;break;}_t136=new Zx(_e183,r.request,P(HS,r,QS).call(r));_iterator95=_createForOfIteratorHelper(F($,r).hooks.beforeError);_context1.p=16;_iterator95.s();case 17:if((_step95=_iterator95.n()).done){_context1.n=20;break;}_e184=_step95.value;_context1.n=18;return _e184(_t136,{retryCount:F(LS,r)});case 18:_t136=_context1.v;case 19:_context1.n=17;break;case 20:_context1.n=22;break;case 21:_context1.p=21;_t141=_context1.v;_iterator95.e(_t141);case 22:_context1.p=22;_iterator95.f();return _context1.f(22);case 23:throw _t136;case 24:if(!F($,r).onDownloadProgress){_context1.n=27;break;}if(!(typeof F($,r).onDownloadProgress!="function")){_context1.n=25;break;}throw TypeError("The `onDownloadProgress` option must be a function");case 25:if(rS){_context1.n=26;break;}throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");case 26:_t137=_e183.clone();return _context1.a(2,(P(HS,r,YS).call(r,_e183),_S(_t137,F($,r).onDownloadProgress)));case 27:return _context1.a(2,_e183);}},_callee1,null,[[16,21,22,23],[6,8],[4,13,14,15]]);}))).finally(function(){var _e185,t;var n=F(zS,r);P(HS,r,JS).call(r,(_e185=n==null?void 0:n.body)==null?void 0:_e185),P(HS,r,JS).call(r,(t=r.request.body)==null?void 0:t);});var _loop9=function _loop9(){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i66],2),_e186=_Object$entries3$_i[0],t=_Object$entries3$_i[1];_e186==="bytes"&&typeof((a=globalThis.Response)==null||(a=a.prototype)==null?void 0:a.bytes)!="function"||(i[_e186]=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(){var a,_e187;return _regenerator().w(function(_context10){while(1)switch(_context10.n){case 0:r.request.headers.set("accept",r.request.headers.get("accept")||t);_context10.n=1;return i;case 1:a=_context10.v;if(!(_e186==="json")){_context10.n=4;break;}if(!(a.status===204)){_context10.n=2;break;}return _context10.a(2,"");case 2:_context10.n=3;return a.text();case 3:_e187=_context10.v;return _context10.a(2,_e187===""?"":n.parseJson?n.parseJson(_e187):JSON.parse(_e187));case 4:return _context10.a(2,a[_e186]());}},_callee10);})));},a;for(var _i66=0,_Object$entries3=Object.entries(oS);_i66<_Object$entries3.length;_i66++){_loop9();}return i;}}]);}();function WS(e){return e&&_typeof(e)=="object"&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(function(_ref41){var _ref42=_slicedToArray(_ref41,2),e=_ref42[1];return e!==void 0;})):e;}function GS(){var e;var t=F($,this).retry.delay(F(LS,this)),n=t;F($,this).retry.jitter===!0?n=Math.random()*t:typeof F($,this).retry.jitter=="function"&&(n=F($,this).retry.jitter(t),(!Number.isFinite(n)||n<0)&&(n=t));var r=(e=F($,this).retry.backoffLimit)==null?Infinity:e;return Math.min(r,n);}function KS(_x16){return _KS.apply(this,arguments);}function _KS(){_KS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee36(e){var t,n,r,i,_n103,a,o,s,c,_n104,l,_e198,_r91;return _regenerator().w(function(_context36){while(1)switch(_context36.n){case 0:t=this;if(!(I(LS,t,(n=F(LS,t),n++,n)),F(LS,t)>F($,t).retry.limit)){_context36.n=1;break;}throw e;case 1:r=e instanceof Error?e:new Qx(e);if(!(r instanceof $x)){_context36.n=2;break;}return _context36.a(2,(i=r.customDelay)==null?P(HS,t,GS).call(t):i);case 2:if(F($,t).retry.methods.includes(t.request.method.toLowerCase())){_context36.n=3;break;}throw e;case 3:if(!(F($,t).retry.shouldRetry!==void 0)){_context36.n=6;break;}_context36.n=4;return F($,t).retry.shouldRetry({error:r,retryCount:F(LS,t)});case 4:_n103=_context36.v;if(!(_n103===!1)){_context36.n=5;break;}throw e;case 5:if(!(_n103===!0)){_context36.n=6;break;}return _context36.a(2,P(HS,t,GS).call(t));case 6:if(!(FS(e)&&!F($,t).retry.retryOnTimeout)){_context36.n=7;break;}throw e;case 7:if(!PS(e)){_context36.n=10;break;}if(F($,t).retry.statusCodes.includes(e.response.status)){_context36.n=8;break;}throw e;case 8:_n104=(a=(o=(s=(c=e.response.headers.get("Retry-After"))==null?e.response.headers.get("RateLimit-Reset"):c)==null?e.response.headers.get("X-RateLimit-Retry-After"):s)==null?e.response.headers.get("X-RateLimit-Reset"):o)==null?e.response.headers.get("X-Rate-Limit-Reset"):a;if(!(_n104&&F($,t).retry.afterStatusCodes.includes(e.response.status))){_context36.n=9;break;}_e198=Number(_n104)*1e3;Number.isNaN(_e198)?_e198=Date.parse(_n104)-Date.now():_e198>=Date.parse("2024-01-01")&&(_e198-=Date.now());_r91=(l=F($,t).retry.maxRetryAfter)==null?_e198:l;return _context36.a(2,_e198<_r91?_e198:_r91);case 9:if(!(e.response.status===413)){_context36.n=10;break;}throw e;case 10:return _context36.a(2,P(HS,t,GS).call(t));}},_callee36,this);}));return _KS.apply(this,arguments);}function qS(e){var t=this;return F($,this).parseJson&&(e.json=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(){var _t142;return _regenerator().w(function(_context11){while(1)switch(_context11.n){case 0:_t142=F($,t);_context11.n=1;return e.text();case 1:return _context11.a(2,_t142.parseJson.call(_t142,_context11.v));}},_callee11);}))),e;}function JS(e){e&&e.cancel().catch(function(){return void 0;});}function YS(e){var t;P(HS,this,JS).call(this,(t=e.body)==null?void 0:t);}function XS(_x17){return _XS.apply(this,arguments);}function _XS(){_XS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee37(e){var t,_r92,_e199,_iterator99,_step99,_e200,_r93,_t170,_t171,_t172;return _regenerator().w(function(_context37){while(1)switch(_context37.p=_context37.n){case 0:t=this;_context37.p=1;_context37.n=2;return e();case 2:return _context37.a(2,_context37.v);case 3:_context37.p=3;_t170=_context37.v;_t171=Math;_context37.n=4;return P(HS,t,KS).call(t,_t170);case 4:_r92=_t171.min.call(_t171,_context37.v,sS);if(!(F(LS,t)<1)){_context37.n=5;break;}throw _t170;case 5:_context37.n=6;return jS(_r92,F(BS,t)?{signal:F(BS,t)}:{});case 6:if(!(_t170 instanceof $x&&_t170.customRequest)){_context37.n=7;break;}_e199=F($,t).signal?new globalThis.Request(_t170.customRequest,{signal:F($,t).signal}):new globalThis.Request(_t170.customRequest);P(HS,t,$S).call(t,_e199);case 7:_iterator99=_createForOfIteratorHelper(F($,t).hooks.beforeRetry);_context37.p=8;_iterator99.s();case 9:if((_step99=_iterator99.n()).done){_context37.n=14;break;}_e200=_step99.value;_context37.n=10;return _e200({request:t.request,options:P(HS,t,QS).call(t),error:_t170,retryCount:F(LS,t)});case 10:_r93=_context37.v;if(!(_r93 instanceof globalThis.Request)){_context37.n=11;break;}P(HS,t,$S).call(t,_r93);return _context37.a(3,14);case 11:if(!(_r93 instanceof globalThis.Response)){_context37.n=12;break;}return _context37.a(2,_r93);case 12:if(!(_r93===lS)){_context37.n=13;break;}return _context37.a(2);case 13:_context37.n=9;break;case 14:_context37.n=16;break;case 15:_context37.p=15;_t172=_context37.v;_iterator99.e(_t172);case 16:_context37.p=16;_iterator99.f();return _context37.f(16);case 17:return _context37.a(2,P(HS,t,XS).call(t,e));}},_callee37,this,[[8,15,16,17],[1,3]]);}));return _XS.apply(this,arguments);}function ZS(){return _ZS.apply(this,arguments);}function _ZS(){_ZS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee38(){var e,t,_iterator100,_step100,_t173,_n105,n,_t174;return _regenerator().w(function(_context38){while(1)switch(_context38.p=_context38.n){case 0:e=this;(t=F(IS,e))!=null&&t.signal.aborted&&(I(IS,e,new globalThis.AbortController()),F($,e).signal=F(BS,e)?AbortSignal.any([F(BS,e),F(IS,e).signal]):F(IS,e).signal,e.request=new globalThis.Request(e.request,{signal:F($,e).signal}));_iterator100=_createForOfIteratorHelper(F($,e).hooks.beforeRequest);_context38.p=1;_iterator100.s();case 2:if((_step100=_iterator100.n()).done){_context38.n=6;break;}_t173=_step100.value;_context38.n=3;return _t173(e.request,P(HS,e,QS).call(e),{retryCount:F(LS,e)});case 3:_n105=_context38.v;if(!(_n105 instanceof Response)){_context38.n=4;break;}return _context38.a(2,_n105);case 4:if(!(_n105 instanceof globalThis.Request)){_context38.n=5;break;}P(HS,e,$S).call(e,_n105);return _context38.a(3,6);case 5:_context38.n=2;break;case 6:_context38.n=8;break;case 7:_context38.p=7;_t174=_context38.v;_iterator100.e(_t174);case 8:_context38.p=8;_iterator100.f();return _context38.f(8);case 9:n=MS(e.request,F($,e));return _context38.a(2,(I(zS,e,e.request),e.request=F(zS,e).clone(),F($,e).timeout===!1?F($,e).fetch(F(zS,e),n):AS(F(zS,e),n,F(IS,e),F($,e))));}},_callee38,this,[[1,7,8,9]]);}));return _ZS.apply(this,arguments);}function QS(){if(!F(VS,this)){var _F2=F($,this),_e188=_F2.hooks,t=_objectWithoutProperties(_F2,_excluded2);I(VS,this,Object.freeze(t));}return F(VS,this);}function $S(e){I(VS,this,void 0),this.request=P(HS,this,eC).call(this,e);}function eC(e,t){var n;return!F($,this).onUploadProgress||!e.body?e:vS(e,F($,this).onUploadProgress,(n=t==null?F($,this).body:t)==null?void 0:n);}//#endregion
451
451
  //#region node_modules/ky/distribution/index.js
452
- var _QS=function QS(e){var t=function t(_t142,n){return BS.create(_t142,_S(e,n));};var _loop0=function _loop0(){var n=_nS[_i67];t[n]=function(t,r){return BS.create(t,_S(e,r,{method:n}));};};for(var _i67=0,_nS=nS;_i67<_nS.length;_i67++){_loop0();}return t.create=function(e){return _QS(_S(e));},t.extend=function(t){return typeof t=="function"&&(t=t(e==null?{}:e)),_QS(_S(e,t));},t.stop=oS,t.retry=cS,t;},$S=_QS(),eC=/* @__PURE__ */new Map(),tC=!1;function nC(e){tC=e;}function rC(e,t){return $S.create({prefixUrl:e,timeout:!1,retry:0,hooks:{beforeRequest:[function(e){var n;t.current&&e.headers.set("Authorization","Bearer ".concat(t.current)),e.headers.set("X-Platform",tC?"native":"web"),((n=window.cookieyes)==null||(n=n._ckyConsentStore)==null?void 0:n.get("analytics"))==="yes"&&e.headers.set("X-Analytics-Consent","true");}]}});}function iC(e,t){if(eC.has(e)){var _n95=eC.get(e);return _n95.tokenRef.current=t,_n95.instance;}var n={current:t},r=rC(e,n);return eC.set(e,{instance:r,tokenRef:n}),r;}//#endregion
452
+ var _tC=function tC(e){var t=function t(_t143,n){return US.create(_t143,bS(e,n));};var _loop0=function _loop0(){var n=_aS[_i67];t[n]=function(t,r){return US.create(t,bS(e,r,{method:n}));};};for(var _i67=0,_aS=aS;_i67<_aS.length;_i67++){_loop0();}return t.create=function(e){return _tC(bS(e));},t.extend=function(t){return typeof t=="function"&&(t=t(e==null?{}:e)),_tC(bS(e,t));},t.stop=lS,t.retry=dS,t;},nC=_tC(),rC=/* @__PURE__ */new Map(),iC=!1;function aC(e){iC=e;}function oC(e,t){return nC.create({prefixUrl:e,timeout:!1,retry:0,hooks:{beforeRequest:[function(e){var n;t.current&&e.headers.set("Authorization","Bearer ".concat(t.current)),e.headers.set("X-Platform",iC?"native":"web"),((n=window.cookieyes)==null||(n=n._ckyConsentStore)==null?void 0:n.get("analytics"))==="yes"&&e.headers.set("X-Analytics-Consent","true");}]}});}function sC(e,t){if(rC.has(e)){var _n95=rC.get(e);return _n95.tokenRef.current=t,_n95.instance;}var n={current:t},r=oC(e,n);return rC.set(e,{instance:r,tokenRef:n}),r;}//#endregion
453
453
  //#region src/services/http.ts
454
- function aC(e,t){var n=iC(e,t);return Object.assign(n,{json:{get:function get(e,t){return n.get(e,t).json();},post:function post(e,t,r){return n.post(e,_objectSpread({json:t},r)).json();},put:function put(e,t,r){return n.put(e,_objectSpread({json:t},r)).json();},delete:function _delete(e,t){return n.delete(e,t).json();}}});}//#endregion
454
+ function cC(e,t){var n=sC(e,t);return Object.assign(n,{json:{get:function get(e,t){return n.get(e,t).json();},post:function post(e,t,r){return n.post(e,_objectSpread({json:t},r)).json();},put:function put(e,t,r){return n.put(e,_objectSpread({json:t},r)).json();},delete:function _delete(e,t){return n.delete(e,t).json();}}});}//#endregion
455
455
  //#region src/services/attachment.service.ts
456
- function oC(_x17,_x18){return _oC.apply(this,arguments);}function _oC(){_oC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee38(e,t){var n;return _regenerator().w(function(_context38){while(1)switch(_context38.n){case 0:_context38.n=1;return fetch(e,{method:"PUT",body:t});case 1:n=_context38.v;if(n.ok){_context38.n=2;break;}throw Error("Upload failed: ".concat(n.status));case 2:return _context38.a(2);}},_callee38);}));return _oC.apply(this,arguments);}var sC=function sC(_ref43){var e=_ref43.serverUrl,t=_ref43.authToken;var n=aC(e,t);return{presignUrl:function(){var _presignUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(e,t,r,i){var a,o,s;return _regenerator().w(function(_context11){while(1)switch(_context11.n){case 0:_context11.n=1;return n.json.post("attachments/presign_url",{conversation_id:e,filename:t,content_type:r,size_bytes:i});case 1:s=_context11.v;return _context11.a(2,{attachmentId:(a=s.attachment_id)==null?s.attachmentId:a,uploadUrl:(o=s.upload_url)==null?s.uploadUrl:o});}},_callee11);}));function presignUrl(_x19,_x20,_x21,_x22){return _presignUrl.apply(this,arguments);}return presignUrl;}(),fetchPreviewUrl:function(){var _fetchPreviewUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(e,t){var r,i,a,o,s,c;return _regenerator().w(function(_context12){while(1)switch(_context12.n){case 0:_context12.n=1;return n.json.get("attachments/".concat(e,"/preview_url?convo_id=").concat(t));case 1:c=_context12.v;return _context12.a(2,{previewUrl:(r=c.preview_url)==null?c.previewUrl:r,contentType:(i=c.content_type)==null?c.contentType:i,attachmentId:(a=c.attachment_id)==null?c.attachmentId:a,expiresIn:(o=c.expires_in)==null?c.expiresIn:o,success:(s=c.success)==null?!0:s});}},_callee12);}));function fetchPreviewUrl(_x23,_x24){return _fetchPreviewUrl.apply(this,arguments);}return fetchPreviewUrl;}(),deleteAttachment:function(){var _deleteAttachment=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(e,t){var _t143;return _regenerator().w(function(_context13){while(1)switch(_context13.p=_context13.n){case 0:_context13.p=0;_context13.n=1;return n.json.delete("attachments/".concat(e,"/").concat(t));case 1:_context13.n=3;break;case 2:_context13.p=2;_t143=_context13.v;vx(_t143,{context:{extra:{message:"deleteAttachment failed",attachmentId:t}}});case 3:return _context13.a(2);}},_callee13,null,[[0,2]]);}));function deleteAttachment(_x25,_x26){return _deleteAttachment.apply(this,arguments);}return deleteAttachment;}()};},cC={PENDING:"pending",UPLOADING:"uploading",UPLOADED:"uploaded",FAILED:"failed"},lC=20*1024*1024,uC=["image/","video/"],dC=2,fC=/* @__PURE__ */new WeakMap(),pC=/* @__PURE__ */new WeakMap(),mC=/*#__PURE__*/function(){function mC(e,t){_classCallCheck(this,mC);N(this,fC,/* @__PURE__ */R(_r([]))),N(this,pC,/* @__PURE__ */R(!1)),D(this,"attachmentService",void 0),D(this,"getConversationId",void 0),this.attachmentService=e,this.getConversationId=t;}return _createClass(mC,[{key:"files",get:function get(){return G(F(fC,this));},set:function set(e){z(F(fC,this),e,!0);}},{key:"isUploading",get:function get(){return G(F(pC,this));},set:function set(e){z(F(pC,this),e,!0);}},{key:"validateFiles",value:function validateFiles(e){return e.length+this.files.length>4||[].concat(_toConsumableArray(this.files.map(function(e){return e.size;})),_toConsumableArray(e.map(function(e){return e.size;}))).reduce(function(e,t){return e+t;},0)>20971520?"You can upload up to 4 files with a total size under ".concat(lC/(1024*1024)," MB"):e.filter(function(e){return!uC.some(function(t){return e.type.startsWith(t);});}).length>0?"Only images and videos are allowed.":null;}},{key:"addAndUpload",value:function addAndUpload(e){var t=e.map(function(e){return{file:e,id:"".concat(Date.now(),"_").concat(Math.random().toString(36).substring(2,11)),name:e.name,size:e.size,type:e.type,status:cC.PENDING,progress:0,attachmentId:null,previewUrl:e.type.startsWith("image/")?URL.createObjectURL(e):null,error:null};});this.files=[].concat(_toConsumableArray(this.files),_toConsumableArray(t)),this.uploadFiles(t);}},{key:"retryUpload",value:function retryUpload(e){this.uploadFiles([e]);}},{key:"removeFile",value:function removeFile(e){e.previewUrl&&URL.revokeObjectURL(e.previewUrl),this.files=this.files.filter(function(t){return t.id!==e.id;}),e.attachmentId&&this.getConversationId()&&this.attachmentService.deleteAttachment(this.getConversationId(),e.attachmentId);}},{key:"canSend",get:function get(){return this.files.length>0&&this.files.every(function(e){return e.status===cC.UPLOADED;});}},{key:"uploadedAttachmentIds",get:function get(){return this.files.filter(function(e){return e.attachmentId!==null;}).map(function(e){return e.attachmentId;});}},{key:"updateFile",value:function updateFile(e,t){this.files=this.files.map(function(n){return n.id===e?_objectSpread(_objectSpread({},n),t):n;});}},{key:"uploadSingleFile",value:function(){var _uploadSingleFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(e){var t,n,_t144;return _regenerator().w(function(_context14){while(1)switch(_context14.p=_context14.n){case 0:t=this;_context14.p=1;t.updateFile(e.id,{status:cC.UPLOADING,progress:0,error:null});_context14.n=2;return t.attachmentService.presignUrl(t.getConversationId(),e.name,e.type,e.size);case 2:n=_context14.v;if(!(!n.attachmentId||!n.uploadUrl)){_context14.n=3;break;}throw Error("Invalid presign response");case 3:_context14.n=4;return oC(n.uploadUrl,e.file);case 4:t.updateFile(e.id,{status:cC.UPLOADED,attachmentId:n.attachmentId,progress:100,error:null});_context14.n=6;break;case 5:_context14.p=5;_t144=_context14.v;vx(_t144,{context:{extra:{message:"File upload failed",fileName:e.name}}}),t.updateFile(e.id,{status:cC.FAILED,error:_t144.message});case 6:return _context14.a(2);}},_callee14,this,[[1,5]]);}));function uploadSingleFile(_x27){return _uploadSingleFile.apply(this,arguments);}return uploadSingleFile;}()},{key:"uploadFiles",value:function(){var _uploadFiles=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15(e){var t,n,r,_i68;return _regenerator().w(function(_context15){while(1)switch(_context15.n){case 0:t=this;t.isUploading=!0;n=_toConsumableArray(e),r=/* @__PURE__ */new Set(),_i68=function i(){if(n.length===0&&r.size===0){t.isUploading=!1;return;}var _loop1=function _loop1(){var e=n.shift();r.add(e.id),t.uploadSingleFile(e).finally(function(){r.delete(e.id),_i68();});};for(;n.length>0&&r.size<dC;){_loop1();}};_i68();case 1:return _context15.a(2);}},_callee15,this);}));function uploadFiles(_x28){return _uploadFiles.apply(this,arguments);}return uploadFiles;}()}]);}(),hC=/* @__PURE__ */K("<div data-testid=\"upload-error\" class=\"flex items-center gap-2 p-3 bg-[#0f172b] border border-red-300 rounded-md text-red-400 text-sm mb-3\"><!> <span> </span></div>"),gC=/* @__PURE__ */K("<img class=\"w-full h-full object-cover\"/>"),_C=/* @__PURE__ */K("<div class=\"text-xs text-red-400 mt-1\"> </div>"),vC=/* @__PURE__ */K("<div class=\"flex items-center gap-1.5 text-sm text-[#79c03c]\"><!></div>"),yC=/* @__PURE__ */K("<div class=\"flex items-center text-sm text-green-500\"><!></div>"),bC=/* @__PURE__ */K("<div class=\"flex items-center gap-1.5 text-sm text-red-500\"><!> <button data-testid=\"retry-upload-button\" class=\"bg-transparent border-none cursor-pointer text-[#79c03c] p-1 flex items-center justify-center transition-transform duration-200 hover:scale-110 active:scale-95\" title=\"Retry upload\"><!></button></div>"),xC=/* @__PURE__ */K("<div class=\"flex items-center gap-3 p-3 bg-[#0f172b] border border-[#29374c] rounded-lg transition-all duration-200 hover:border-[#79c03c]\"><div class=\"w-[60px] h-[60px] rounded-md overflow-hidden shrink-0 bg-[#0f172b] flex items-center justify-center max-md:w-[50px] max-md:h-[50px]\"><!></div> <div class=\"flex-1 min-w-0\"><div class=\"text-sm font-medium text-white overflow-hidden text-ellipsis whitespace-nowrap mb-1 max-md:text-[13px]\"> </div> <div class=\"text-xs text-[#666] max-md:text-[11px]\"> </div> <!></div> <div class=\"flex items-center gap-2\"><!> <button data-testid=\"remove-file-button\" class=\"bg-transparent border-none cursor-pointer text-[#999] p-2 flex items-center justify-center transition-all duration-200 rounded hover:text-red-500 hover:bg-red-50 disabled:opacity-50 disabled:cursor-not-allowed active:scale-95\" title=\"Remove file\"><!></button></div></div>"),SC=/* @__PURE__ */K("<div class=\"flex flex-col gap-3 mb-4\"></div>"),CC=/* @__PURE__ */K("<button data-testid=\"send-with-files-button\" class=\"py-2.5 px-5 rounded-md text-sm font-medium cursor-pointer transition-all duration-200 border-none bg-[#79c03c] text-white hover:bg-[#6aad35] disabled:opacity-50 disabled:bg-[#ccc] disabled:cursor-not-allowed active:scale-[0.98] max-md:w-full\">Send</button>"),wC=/* @__PURE__ */K("<div data-testid=\"file-attachment-tray\" class=\"bg-[#1d293d] mt-3 p-4 rounded-[1.25rem] break-words text-sm leading-[1.5] w-full font-normal max-md:p-3\" role=\"region\" aria-label=\"File upload area\"><input type=\"file\" multiple=\"\" class=\"hidden\"/> <!> <!> <div class=\"flex flex-col gap-3\"><button data-testid=\"upload-files-button\"><!> <span>Upload files</span> <span class=\"text-xs text-white\"> </span></button> <div class=\"flex gap-3 justify-end max-md:flex-col\"><button data-testid=\"continue-without-files-button\" class=\"py-2.5 px-5 rounded-md text-sm font-medium cursor-pointer transition-all duration-200 border-none bg-[#0f172b] text-white hover:bg-[#29374c] disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] max-md:w-full\">Continue without files</button> <!></div></div></div>");function TC(e,t){st(t,!0);var n=Y(t,"disabled",3,!1),r=new mC(t.attachmentService,function(){return t.conversationId;});Ho(function(){var _iterator96=_createForOfIteratorHelper(r.files),_step96;try{for(_iterator96.s();!(_step96=_iterator96.n()).done;){var _e189=_step96.value;_e189.previewUrl&&URL.revokeObjectURL(_e189.previewUrl);}}catch(err){_iterator96.e(err);}finally{_iterator96.f();}});var i=/* @__PURE__ */R(null),a=/* @__PURE__ */R(void 0),o=/* @__PURE__ */R(!1);function s(e){var t=r.validateFiles(e);if(t){z(i,t,!0);return;}z(i,null),r.addAndUpload(e);}function c(e){var t;e.preventDefault(),z(o,!1);var n=(t=e.dataTransfer)==null?void 0:t.files;n&&s(Array.from(n));}function l(e){e.preventDefault(),z(o,!0);}function u(){z(o,!1);}function d(e){var t=e.target;t.files&&s(Array.from(t.files)),t.value="";}function f(){var e;(e=G(a))==null||e.click();}function p(e){if(e===0)return"0 Bytes";var t=1024,n=["Bytes","KB","MB"],r=Math.floor(Math.log(e)/Math.log(t));return Math.round(e/Math.pow(t,+r)*100)/100+" "+n[r];}function m(e){return e.previewUrl;}var h=wC(),g=B(h);Po(g,function(e){return z(a,e);},function(){return G(a);});var _=V(g,2),v=function v(e){var t=hC(),n=B(t);$o(n,{size:16,class:"shrink-0"});var r=V(n,2),a=B(r,!0);j(r),j(t),H(function(){return ma(a,G(i));}),q(e,t);};J(_,function(e){G(i)&&e(v);});var y=V(_,2),b=function b(e){var t=SC();Ma(t,21,function(){return r.files;},function(e){return e.id;},function(e,t){var n=/* @__PURE__ */er(function(){return m(G(t));});var i=xC(),a=B(i),o=B(a),s=function s(e){var r=pa(),i=Or(r),a=function a(e){var r=gC();H(function(){_o(r,"src",G(n)),_o(r,"alt",G(t).name);}),q(e,r);},o=function o(e){ts(e,{size:32,class:"text-[#666]"});};J(i,function(e){G(n)?e(a):e(o,-1);}),q(e,r);},c=/* @__PURE__ */er(function(){return G(t).type.startsWith("image/");}),l=function l(e){us(e,{size:32,class:"text-[#666]"});};J(o,function(e){G(c)?e(s):e(l,-1);}),j(a);var u=V(a,2),d=B(u),f=B(d,!0);j(d);var h=V(d,2),g=B(h,!0);j(h);var _=V(h,2),v=function v(e){var n=_C(),r=B(n,!0);j(n),H(function(){return ma(r,G(t).error);}),q(e,n);};J(_,function(e){G(t).error&&e(v);}),j(u);var y=V(u,2),b=B(y),x=function x(e){var t=vC();ns(B(t),{size:16,class:"animate-spin"}),j(t),q(e,t);},S=function S(e){var t=yC();es(B(t),{size:16}),j(t),q(e,t);},C=function C(e){var n=bC(),i=B(n);$o(i,{size:16});var a=V(i,2);rs(B(a),{size:14}),j(a),j(n),na("click",a,function(){return r.retryUpload(G(t));}),q(e,n);};J(b,function(e){G(t).status===cC.UPLOADING?e(x):G(t).status===cC.UPLOADED?e(S,1):G(t).status===cC.FAILED&&e(C,2);});var w=V(b,2);os(B(w),{size:16}),j(w),j(y),j(i),H(function(e){ma(f,G(t).name),ma(g,e),w.disabled=G(t).status===cC.UPLOADING;},[function(){return p(G(t).size);}]),na("click",w,function(){return r.removeFile(G(t));}),q(e,i);}),j(t),q(e,t);};J(y,function(e){r.files.length>0&&e(b);});var x=V(y,2),S=B(x),C=B(S);cs(C,{size:16});var w=V(C,4),T=B(w);j(w),j(S);var ee=V(S,2),E=B(ee),te=V(E,2),ne=function ne(e){var i=CC();H(function(){return i.disabled=!r.canSend||n();}),na("click",i,function(){return t.onSendWithFiles(r.uploadedAttachmentIds);}),q(e,i);};J(te,function(e){r.files.length>0&&e(ne);}),j(ee),j(x),j(h),H(function(e){var t;_o(g,"accept",e),Qa(S,1,"flex items-center justify-center gap-2 py-3 px-6 bg-[#0f172b] border border-dashed border-[#79c03c] rounded-lg text-[#79c03c] text-sm font-medium cursor-pointer transition-all duration-200 hover:bg-[#29374c] disabled:opacity-50 disabled:cursor-not-allowed disabled:border-[#ccc] disabled:text-[#999] active:scale-[0.98] max-md:py-2.5 max-md:px-4 max-md:text-[13px] ".concat(G(o)?"bg-[#29374c] border-solid":"")),S.disabled=n()||r.files.length>=4||r.isUploading,ma(T,"(".concat((t=r.files.length)==null?"":t,"/4)")),E.disabled=n()||r.isUploading;},[function(){return uC.map(function(e){return e+"*";}).join(",");}]),ta("drop",h,c),ta("dragover",h,l),ta("dragleave",h,u),na("change",g,d),na("click",S,f),na("click",E,function(){var n;for(var _len22=arguments.length,e=new Array(_len22),_key22=0;_key22<_len22;_key22++){e[_key22]=arguments[_key22];}(n=t.onContinueWithoutFiles)==null||n.apply(this,e);}),q(e,h),ct();}ra(["change","click"]);//#endregion
456
+ function lC(_x18,_x19){return _lC.apply(this,arguments);}function _lC(){_lC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee39(e,t){var n;return _regenerator().w(function(_context39){while(1)switch(_context39.n){case 0:_context39.n=1;return fetch(e,{method:"PUT",body:t});case 1:n=_context39.v;if(n.ok){_context39.n=2;break;}throw Error("Upload failed: ".concat(n.status));case 2:return _context39.a(2);}},_callee39);}));return _lC.apply(this,arguments);}var uC=function uC(_ref44){var e=_ref44.serverUrl,t=_ref44.authToken;var n=cC(e,t);return{presignUrl:function(){var _presignUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(e,t,r,i){var a,o,s;return _regenerator().w(function(_context12){while(1)switch(_context12.n){case 0:_context12.n=1;return n.json.post("attachments/presign_url",{conversation_id:e,filename:t,content_type:r,size_bytes:i});case 1:s=_context12.v;return _context12.a(2,{attachmentId:(a=s.attachment_id)==null?s.attachmentId:a,uploadUrl:(o=s.upload_url)==null?s.uploadUrl:o});}},_callee12);}));function presignUrl(_x20,_x21,_x22,_x23){return _presignUrl.apply(this,arguments);}return presignUrl;}(),fetchPreviewUrl:function(){var _fetchPreviewUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(e,t){var r,i,a,o,s,c;return _regenerator().w(function(_context13){while(1)switch(_context13.n){case 0:_context13.n=1;return n.json.get("attachments/".concat(e,"/preview_url?convo_id=").concat(t));case 1:c=_context13.v;return _context13.a(2,{previewUrl:(r=c.preview_url)==null?c.previewUrl:r,contentType:(i=c.content_type)==null?c.contentType:i,attachmentId:(a=c.attachment_id)==null?c.attachmentId:a,expiresIn:(o=c.expires_in)==null?c.expiresIn:o,success:(s=c.success)==null?!0:s});}},_callee13);}));function fetchPreviewUrl(_x24,_x25){return _fetchPreviewUrl.apply(this,arguments);}return fetchPreviewUrl;}(),deleteAttachment:function(){var _deleteAttachment=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(e,t){var _t144;return _regenerator().w(function(_context14){while(1)switch(_context14.p=_context14.n){case 0:_context14.p=0;_context14.n=1;return n.json.delete("attachments/".concat(e,"/").concat(t));case 1:_context14.n=3;break;case 2:_context14.p=2;_t144=_context14.v;xx(_t144,{context:{extra:{message:"deleteAttachment failed",attachmentId:t}}});case 3:return _context14.a(2);}},_callee14,null,[[0,2]]);}));function deleteAttachment(_x26,_x27){return _deleteAttachment.apply(this,arguments);}return deleteAttachment;}()};},dC={PENDING:"pending",UPLOADING:"uploading",UPLOADED:"uploaded",FAILED:"failed"},fC=20*1024*1024,pC=["image/","video/"],mC=2,hC=/* @__PURE__ */new WeakMap(),gC=/* @__PURE__ */new WeakMap(),_C=/*#__PURE__*/function(){function _C(e,t){_classCallCheck(this,_C);N(this,hC,/* @__PURE__ */R(_r([]))),N(this,gC,/* @__PURE__ */R(!1)),D(this,"attachmentService",void 0),D(this,"getConversationId",void 0),this.attachmentService=e,this.getConversationId=t;}return _createClass(_C,[{key:"files",get:function get(){return G(F(hC,this));},set:function set(e){z(F(hC,this),e,!0);}},{key:"isUploading",get:function get(){return G(F(gC,this));},set:function set(e){z(F(gC,this),e,!0);}},{key:"validateFiles",value:function validateFiles(e){return e.length+this.files.length>4||[].concat(_toConsumableArray(this.files.map(function(e){return e.size;})),_toConsumableArray(e.map(function(e){return e.size;}))).reduce(function(e,t){return e+t;},0)>20971520?"You can upload up to 4 files with a total size under ".concat(fC/(1024*1024)," MB"):e.filter(function(e){return!pC.some(function(t){return e.type.startsWith(t);});}).length>0?"Only images and videos are allowed.":null;}},{key:"addAndUpload",value:function addAndUpload(e){var t=e.map(function(e){return{file:e,id:"".concat(Date.now(),"_").concat(Math.random().toString(36).substring(2,11)),name:e.name,size:e.size,type:e.type,status:dC.PENDING,progress:0,attachmentId:null,previewUrl:e.type.startsWith("image/")?URL.createObjectURL(e):null,error:null};});this.files=[].concat(_toConsumableArray(this.files),_toConsumableArray(t)),this.uploadFiles(t);}},{key:"retryUpload",value:function retryUpload(e){this.uploadFiles([e]);}},{key:"removeFile",value:function removeFile(e){e.previewUrl&&URL.revokeObjectURL(e.previewUrl),this.files=this.files.filter(function(t){return t.id!==e.id;}),e.attachmentId&&this.getConversationId()&&this.attachmentService.deleteAttachment(this.getConversationId(),e.attachmentId);}},{key:"canSend",get:function get(){return this.files.length>0&&this.files.every(function(e){return e.status===dC.UPLOADED;});}},{key:"uploadedAttachmentIds",get:function get(){return this.files.filter(function(e){return e.attachmentId!==null;}).map(function(e){return e.attachmentId;});}},{key:"updateFile",value:function updateFile(e,t){this.files=this.files.map(function(n){return n.id===e?_objectSpread(_objectSpread({},n),t):n;});}},{key:"uploadSingleFile",value:function(){var _uploadSingleFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15(e){var t,n,_t145;return _regenerator().w(function(_context15){while(1)switch(_context15.p=_context15.n){case 0:t=this;_context15.p=1;t.updateFile(e.id,{status:dC.UPLOADING,progress:0,error:null});_context15.n=2;return t.attachmentService.presignUrl(t.getConversationId(),e.name,e.type,e.size);case 2:n=_context15.v;if(!(!n.attachmentId||!n.uploadUrl)){_context15.n=3;break;}throw Error("Invalid presign response");case 3:_context15.n=4;return lC(n.uploadUrl,e.file);case 4:t.updateFile(e.id,{status:dC.UPLOADED,attachmentId:n.attachmentId,progress:100,error:null});_context15.n=6;break;case 5:_context15.p=5;_t145=_context15.v;xx(_t145,{context:{extra:{message:"File upload failed",fileName:e.name}}}),t.updateFile(e.id,{status:dC.FAILED,error:_t145.message});case 6:return _context15.a(2);}},_callee15,this,[[1,5]]);}));function uploadSingleFile(_x28){return _uploadSingleFile.apply(this,arguments);}return uploadSingleFile;}()},{key:"uploadFiles",value:function(){var _uploadFiles=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(e){var t,n,r,_i68;return _regenerator().w(function(_context16){while(1)switch(_context16.n){case 0:t=this;t.isUploading=!0;n=_toConsumableArray(e),r=/* @__PURE__ */new Set(),_i68=function i(){if(n.length===0&&r.size===0){t.isUploading=!1;return;}var _loop1=function _loop1(){var e=n.shift();r.add(e.id),t.uploadSingleFile(e).finally(function(){r.delete(e.id),_i68();});};for(;n.length>0&&r.size<mC;){_loop1();}};_i68();case 1:return _context16.a(2);}},_callee16,this);}));function uploadFiles(_x29){return _uploadFiles.apply(this,arguments);}return uploadFiles;}()}]);}(),vC=/* @__PURE__ */K("<div data-testid=\"upload-error\" class=\"flex items-center gap-2 p-3 bg-[#0f172b] border border-red-300 rounded-md text-red-400 text-sm mb-3\"><!> <span> </span></div>"),yC=/* @__PURE__ */K("<img class=\"w-full h-full object-cover\"/>"),bC=/* @__PURE__ */K("<div class=\"text-xs text-red-400 mt-1\"> </div>"),xC=/* @__PURE__ */K("<div class=\"flex items-center gap-1.5 text-sm text-[#79c03c]\"><!></div>"),SC=/* @__PURE__ */K("<div class=\"flex items-center text-sm text-green-500\"><!></div>"),CC=/* @__PURE__ */K("<div class=\"flex items-center gap-1.5 text-sm text-red-500\"><!> <button data-testid=\"retry-upload-button\" class=\"bg-transparent border-none cursor-pointer text-[#79c03c] p-1 flex items-center justify-center transition-transform duration-200 hover:scale-110 active:scale-95\" title=\"Retry upload\"><!></button></div>"),wC=/* @__PURE__ */K("<div class=\"flex items-center gap-3 p-3 bg-[#0f172b] border border-[#29374c] rounded-lg transition-all duration-200 hover:border-[#79c03c]\"><div class=\"w-[60px] h-[60px] rounded-md overflow-hidden shrink-0 bg-[#0f172b] flex items-center justify-center max-md:w-[50px] max-md:h-[50px]\"><!></div> <div class=\"flex-1 min-w-0\"><div class=\"text-sm font-medium text-white overflow-hidden text-ellipsis whitespace-nowrap mb-1 max-md:text-[13px]\"> </div> <div class=\"text-xs text-[#666] max-md:text-[11px]\"> </div> <!></div> <div class=\"flex items-center gap-2\"><!> <button data-testid=\"remove-file-button\" class=\"bg-transparent border-none cursor-pointer text-[#999] p-2 flex items-center justify-center transition-all duration-200 rounded hover:text-red-500 hover:bg-red-50 disabled:opacity-50 disabled:cursor-not-allowed active:scale-95\" title=\"Remove file\"><!></button></div></div>"),TC=/* @__PURE__ */K("<div class=\"flex flex-col gap-3 mb-4\"></div>"),EC=/* @__PURE__ */K("<button data-testid=\"send-with-files-button\" class=\"py-2.5 px-5 rounded-md text-sm font-medium cursor-pointer transition-all duration-200 border-none bg-[#79c03c] text-white hover:bg-[#6aad35] disabled:opacity-50 disabled:bg-[#ccc] disabled:cursor-not-allowed active:scale-[0.98] max-md:w-full\">Send</button>"),DC=/* @__PURE__ */K("<div data-testid=\"file-attachment-tray\" class=\"bg-[#1d293d] mt-3 p-4 rounded-[1.25rem] break-words text-sm leading-[1.5] w-full font-normal max-md:p-3\" role=\"region\" aria-label=\"File upload area\"><input type=\"file\" multiple=\"\" class=\"hidden\"/> <!> <!> <div class=\"flex flex-col gap-3\"><button data-testid=\"upload-files-button\"><!> <span>Upload files</span> <span class=\"text-xs text-white\"> </span></button> <div class=\"flex gap-3 justify-end max-md:flex-col\"><button data-testid=\"continue-without-files-button\" class=\"py-2.5 px-5 rounded-md text-sm font-medium cursor-pointer transition-all duration-200 border-none bg-[#0f172b] text-white hover:bg-[#29374c] disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] max-md:w-full\">Continue without files</button> <!></div></div></div>");function OC(e,t){st(t,!0);var n=Y(t,"disabled",3,!1),r=new _C(t.attachmentService,function(){return t.conversationId;});Ho(function(){var _iterator96=_createForOfIteratorHelper(r.files),_step96;try{for(_iterator96.s();!(_step96=_iterator96.n()).done;){var _e189=_step96.value;_e189.previewUrl&&URL.revokeObjectURL(_e189.previewUrl);}}catch(err){_iterator96.e(err);}finally{_iterator96.f();}});var i=/* @__PURE__ */R(null),a=/* @__PURE__ */R(void 0),o=/* @__PURE__ */R(!1);function s(e){var t=r.validateFiles(e);if(t){z(i,t,!0);return;}z(i,null),r.addAndUpload(e);}function c(e){var t;e.preventDefault(),z(o,!1);var n=(t=e.dataTransfer)==null?void 0:t.files;n&&s(Array.from(n));}function l(e){e.preventDefault(),z(o,!0);}function u(){z(o,!1);}function d(e){var t=e.target;t.files&&s(Array.from(t.files)),t.value="";}function f(){var e;(e=G(a))==null||e.click();}function p(e){if(e===0)return"0 Bytes";var t=1024,n=["Bytes","KB","MB"],r=Math.floor(Math.log(e)/Math.log(t));return Math.round(e/Math.pow(t,+r)*100)/100+" "+n[r];}function m(e){return e.previewUrl;}var h=DC(),g=B(h);Po(g,function(e){return z(a,e);},function(){return G(a);});var _=V(g,2),v=function v(e){var t=vC(),n=B(t);$o(n,{size:16,class:"shrink-0"});var r=V(n,2),a=B(r,!0);j(r),j(t),H(function(){return ma(a,G(i));}),q(e,t);};J(_,function(e){G(i)&&e(v);});var y=V(_,2),b=function b(e){var t=TC();Ma(t,21,function(){return r.files;},function(e){return e.id;},function(e,t){var n=/* @__PURE__ */er(function(){return m(G(t));});var i=wC(),a=B(i),o=B(a),s=function s(e){var r=pa(),i=Or(r),a=function a(e){var r=yC();H(function(){_o(r,"src",G(n)),_o(r,"alt",G(t).name);}),q(e,r);},o=function o(e){ts(e,{size:32,class:"text-[#666]"});};J(i,function(e){G(n)?e(a):e(o,-1);}),q(e,r);},c=/* @__PURE__ */er(function(){return G(t).type.startsWith("image/");}),l=function l(e){us(e,{size:32,class:"text-[#666]"});};J(o,function(e){G(c)?e(s):e(l,-1);}),j(a);var u=V(a,2),d=B(u),f=B(d,!0);j(d);var h=V(d,2),g=B(h,!0);j(h);var _=V(h,2),v=function v(e){var n=bC(),r=B(n,!0);j(n),H(function(){return ma(r,G(t).error);}),q(e,n);};J(_,function(e){G(t).error&&e(v);}),j(u);var y=V(u,2),b=B(y),x=function x(e){var t=xC();ns(B(t),{size:16,class:"animate-spin"}),j(t),q(e,t);},S=function S(e){var t=SC();es(B(t),{size:16}),j(t),q(e,t);},C=function C(e){var n=CC(),i=B(n);$o(i,{size:16});var a=V(i,2);rs(B(a),{size:14}),j(a),j(n),na("click",a,function(){return r.retryUpload(G(t));}),q(e,n);};J(b,function(e){G(t).status===dC.UPLOADING?e(x):G(t).status===dC.UPLOADED?e(S,1):G(t).status===dC.FAILED&&e(C,2);});var w=V(b,2);os(B(w),{size:16}),j(w),j(y),j(i),H(function(e){ma(f,G(t).name),ma(g,e),w.disabled=G(t).status===dC.UPLOADING;},[function(){return p(G(t).size);}]),na("click",w,function(){return r.removeFile(G(t));}),q(e,i);}),j(t),q(e,t);};J(y,function(e){r.files.length>0&&e(b);});var x=V(y,2),S=B(x),C=B(S);cs(C,{size:16});var w=V(C,4),T=B(w);j(w),j(S);var ee=V(S,2),E=B(ee),te=V(E,2),ne=function ne(e){var i=EC();H(function(){return i.disabled=!r.canSend||n();}),na("click",i,function(){return t.onSendWithFiles(r.uploadedAttachmentIds);}),q(e,i);};J(te,function(e){r.files.length>0&&e(ne);}),j(ee),j(x),j(h),H(function(e){var t;_o(g,"accept",e),Qa(S,1,"flex items-center justify-center gap-2 py-3 px-6 bg-[#0f172b] border border-dashed border-[#79c03c] rounded-lg text-[#79c03c] text-sm font-medium cursor-pointer transition-all duration-200 hover:bg-[#29374c] disabled:opacity-50 disabled:cursor-not-allowed disabled:border-[#ccc] disabled:text-[#999] active:scale-[0.98] max-md:py-2.5 max-md:px-4 max-md:text-[13px] ".concat(G(o)?"bg-[#29374c] border-solid":"")),S.disabled=n()||r.files.length>=4||r.isUploading,ma(T,"(".concat((t=r.files.length)==null?"":t,"/4)")),E.disabled=n()||r.isUploading;},[function(){return pC.map(function(e){return e+"*";}).join(",");}]),ta("drop",h,c),ta("dragover",h,l),ta("dragleave",h,u),na("change",g,d),na("click",S,f),na("click",E,function(){var n;for(var _len22=arguments.length,e=new Array(_len22),_key22=0;_key22<_len22;_key22++){e[_key22]=arguments[_key22];}(n=t.onContinueWithoutFiles)==null||n.apply(this,e);}),q(e,h),ct();}ra(["change","click"]);//#endregion
457
457
  //#region src/features/zena-chatbot/constants/chatbot-data.ts
458
- var EC=["How can I refer and earn?","I'm having technical issues","Survey link is not working","Why use the ZoomRx App?","How do I update my email address?","How do I complete my profile verification?","Where is my bonus payment?","Why was I screened out?","I forgot my password","How can I update my profile?","Why did my survey reset?","PayPal not working","Do I need to fill out a W-9 form?","Check my bonus status","Change my payment method","Survey ended early","Where is my 1099 form?","The site is not working","Where is my payment?","Profile verification required","Update my details","I was terminated from the survey","Technical problem","Change my email","Bonus eligibility check"],DC=["All set here","Get Support from Our Team"],OC=["Yes, investigate please","No, that's okay"],kC=["Investigate further","All set here"],AC=["Upload files","Continue without files"],jC=/* @__PURE__ */K("<div class=\"mt-4 max-md:mt-3\"><!></div>");function MC(e,t){st(t,!0);var n=Y(t,"disabled",3,!1),r=zx(),i=Vx(),a=/* @__PURE__ */R(!1);function o(e){e===AC[0]?z(a,!0):e===AC[1]&&t.onAttachmentFlow([]);}var s=pa(),c=Or(s),l=function l(e){var a=/* @__PURE__ */er(r),o=/* @__PURE__ */er(i);var s=pa(),c=Or(s),l=function l(e){TC(e,{get attachmentService(){return G(a);},get conversationId(){return G(o);},get disabled(){return n();},onSendWithFiles:function onSendWithFiles(e){return t.onAttachmentFlow(e);},onContinueWithoutFiles:function onContinueWithoutFiles(){return t.onAttachmentFlow([]);}});};J(c,function(e){G(a)&&G(o)&&e(l);}),q(e,s);},u=function u(e){var t=jC();Sx(B(t),{get suggestions(){return AC;},get disabled(){return n();},onClick:o}),j(t),q(e,t);};J(c,function(e){G(a)?e(l):e(u,-1);}),q(e,s),ct();}//#endregion
458
+ var kC=["How can I refer and earn?","I'm having technical issues","Survey link is not working","Why use the ZoomRx App?","How do I update my email address?","How do I complete my profile verification?","Where is my bonus payment?","Why was I screened out?","I forgot my password","How can I update my profile?","Why did my survey reset?","PayPal not working","Do I need to fill out a W-9 form?","Check my bonus status","Change my payment method","Survey ended early","Where is my 1099 form?","The site is not working","Where is my payment?","Profile verification required","Update my details","I was terminated from the survey","Technical problem","Change my email","Bonus eligibility check"],AC=["All set here","Get Support from Our Team"],jC=["Yes, investigate please","No, that's okay"],MC=["Investigate further","All set here"],NC=["Upload files","Continue without files"],PC=/* @__PURE__ */K("<div class=\"mt-4 max-md:mt-3\"><!></div>");function FC(e,t){st(t,!0);var n=Y(t,"disabled",3,!1),r=Hx(),i=Wx(),a=/* @__PURE__ */R(!1);function o(e){e===NC[0]?z(a,!0):e===NC[1]&&t.onAttachmentFlow([]);}var s=pa(),c=Or(s),l=function l(e){var a=/* @__PURE__ */er(r),o=/* @__PURE__ */er(i);var s=pa(),c=Or(s),l=function l(e){OC(e,{get attachmentService(){return G(a);},get conversationId(){return G(o);},get disabled(){return n();},onSendWithFiles:function onSendWithFiles(e){return t.onAttachmentFlow(e);},onContinueWithoutFiles:function onContinueWithoutFiles(){return t.onAttachmentFlow([]);}});};J(c,function(e){G(a)&&G(o)&&e(l);}),q(e,s);},u=function u(e){var t=PC();Tx(B(t),{get suggestions(){return NC;},get disabled(){return n();},onClick:o}),j(t),q(e,t);};J(c,function(e){G(a)?e(l):e(u,-1);}),q(e,s),ct();}//#endregion
459
459
  //#region node_modules/html-to-image/es/util.js
460
- function NC(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;var n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href;}var PC=function(){var e=0,t=function t(){return"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);};return function(){return e+=1,"u".concat(t()).concat(e);};}();function FC(e){var t=[];for(var _n96=0,_r85=e.length;_n96<_r85;_n96++)t.push(e[_n96]);return t;}var IC=null;function LC(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return IC||(e.includeStyleProperties?(IC=e.includeStyleProperties,IC):(IC=FC(window.getComputedStyle(document.documentElement)),IC));}function RC(e,t){var n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0;}function zC(e){var t=RC(e,"border-left-width"),n=RC(e,"border-right-width");return e.clientWidth+t+n;}function BC(e){var t=RC(e,"border-top-width"),n=RC(e,"border-bottom-width");return e.clientHeight+t+n;}function VC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{width:t.width||zC(e),height:t.height||BC(e)};}function HC(){var e,t;try{t=process;}catch(e){}var n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1;}var UC=16384;function WC(e){(e.width>UC||e.height>UC)&&(e.width>UC&&e.height>UC?e.width>e.height?(e.height*=UC/e.width,e.width=UC):(e.width*=UC/e.height,e.height=UC):e.width>UC?(e.height*=UC/e.width,e.width=UC):(e.width*=UC/e.height,e.height=UC));}function GC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e.toBlob?new Promise(function(n){e.toBlob(n,t.type?t.type:"image/png",t.quality?t.quality:1);}):new Promise(function(n){var r=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),i=r.length,a=new Uint8Array(i);for(var _e190=0;_e190<i;_e190+=1)a[_e190]=r.charCodeAt(_e190);n(new Blob([a],{type:t.type?t.type:"image/png"}));});}function KC(e){return new Promise(function(t,n){var r=new Image();r.onload=function(){r.decode().then(function(){requestAnimationFrame(function(){return t(r);});});},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e;});}function qC(_x29){return _qC.apply(this,arguments);}function _qC(){_qC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee39(e){return _regenerator().w(function(_context39){while(1)switch(_context39.n){case 0:return _context39.a(2,Promise.resolve().then(function(){return new XMLSerializer().serializeToString(e);}).then(encodeURIComponent).then(function(e){return"data:image/svg+xml;charset=utf-8,".concat(e);}));}},_callee39);}));return _qC.apply(this,arguments);}function JC(_x30,_x31,_x32){return _JC.apply(this,arguments);}function _JC(){_JC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee40(e,t,n){var r,i,a;return _regenerator().w(function(_context40){while(1)switch(_context40.n){case 0:r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return _context40.a(2,(i.setAttribute("width","".concat(t)),i.setAttribute("height","".concat(n)),i.setAttribute("viewBox","0 0 ".concat(t," ").concat(n)),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),qC(i)));}},_callee40);}));return _JC.apply(this,arguments);}var _YC=function YC(e,t){if(e instanceof t)return!0;var n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||_YC(n,t);};//#endregion
460
+ function IC(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;var n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href;}var LC=function(){var e=0,t=function t(){return"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);};return function(){return e+=1,"u".concat(t()).concat(e);};}();function RC(e){var t=[];for(var _n96=0,_r85=e.length;_n96<_r85;_n96++)t.push(e[_n96]);return t;}var zC=null;function BC(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return zC||(e.includeStyleProperties?(zC=e.includeStyleProperties,zC):(zC=RC(window.getComputedStyle(document.documentElement)),zC));}function VC(e,t){var n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0;}function HC(e){var t=VC(e,"border-left-width"),n=VC(e,"border-right-width");return e.clientWidth+t+n;}function UC(e){var t=VC(e,"border-top-width"),n=VC(e,"border-bottom-width");return e.clientHeight+t+n;}function WC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{width:t.width||HC(e),height:t.height||UC(e)};}function GC(){var e,t;try{t=process;}catch(e){}var n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1;}var KC=16384;function qC(e){(e.width>KC||e.height>KC)&&(e.width>KC&&e.height>KC?e.width>e.height?(e.height*=KC/e.width,e.width=KC):(e.width*=KC/e.height,e.height=KC):e.width>KC?(e.height*=KC/e.width,e.width=KC):(e.width*=KC/e.height,e.height=KC));}function JC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e.toBlob?new Promise(function(n){e.toBlob(n,t.type?t.type:"image/png",t.quality?t.quality:1);}):new Promise(function(n){var r=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),i=r.length,a=new Uint8Array(i);for(var _e190=0;_e190<i;_e190+=1)a[_e190]=r.charCodeAt(_e190);n(new Blob([a],{type:t.type?t.type:"image/png"}));});}function YC(e){return new Promise(function(t,n){var r=new Image();r.onload=function(){r.decode().then(function(){requestAnimationFrame(function(){return t(r);});});},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e;});}function XC(_x30){return _XC.apply(this,arguments);}function _XC(){_XC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee40(e){return _regenerator().w(function(_context40){while(1)switch(_context40.n){case 0:return _context40.a(2,Promise.resolve().then(function(){return new XMLSerializer().serializeToString(e);}).then(encodeURIComponent).then(function(e){return"data:image/svg+xml;charset=utf-8,".concat(e);}));}},_callee40);}));return _XC.apply(this,arguments);}function ZC(_x31,_x32,_x33){return _ZC.apply(this,arguments);}function _ZC(){_ZC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee41(e,t,n){var r,i,a;return _regenerator().w(function(_context41){while(1)switch(_context41.n){case 0:r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return _context41.a(2,(i.setAttribute("width","".concat(t)),i.setAttribute("height","".concat(n)),i.setAttribute("viewBox","0 0 ".concat(t," ").concat(n)),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),XC(i)));}},_callee41);}));return _ZC.apply(this,arguments);}var _QC=function QC(e,t){if(e instanceof t)return!0;var n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||_QC(n,t);};//#endregion
461
461
  //#region node_modules/html-to-image/es/clone-pseudos.js
462
- function XC(e){var t=e.getPropertyValue("content");return"".concat(e.cssText," content: '").concat(t.replace(/'|"/g,""),"';");}function ZC(e,t){return LC(t).map(function(t){return"".concat(t,": ").concat(e.getPropertyValue(t)).concat(e.getPropertyPriority(t)?" !important":"",";");}).join(" ");}function QC(e,t,n,r){var i=".".concat(e,":").concat(t),a=n.cssText?XC(n):ZC(n,r);return document.createTextNode("".concat(i,"{").concat(a,"}"));}function $C(e,t,n,r){var i=window.getComputedStyle(e,n),a=i.getPropertyValue("content");if(a===""||a==="none")return;var o=PC();try{t.className="".concat(t.className," ").concat(o);}catch(e){return;}var s=document.createElement("style");s.appendChild(QC(o,n,i,r)),t.appendChild(s);}function ew(e,t,n){$C(e,t,":before",n),$C(e,t,":after",n);}//#endregion
462
+ function $C(e){var t=e.getPropertyValue("content");return"".concat(e.cssText," content: '").concat(t.replace(/'|"/g,""),"';");}function ew(e,t){return BC(t).map(function(t){return"".concat(t,": ").concat(e.getPropertyValue(t)).concat(e.getPropertyPriority(t)?" !important":"",";");}).join(" ");}function tw(e,t,n,r){var i=".".concat(e,":").concat(t),a=n.cssText?$C(n):ew(n,r);return document.createTextNode("".concat(i,"{").concat(a,"}"));}function nw(e,t,n,r){var i=window.getComputedStyle(e,n),a=i.getPropertyValue("content");if(a===""||a==="none")return;var o=LC();try{t.className="".concat(t.className," ").concat(o);}catch(e){return;}var s=document.createElement("style");s.appendChild(tw(o,n,i,r)),t.appendChild(s);}function rw(e,t,n){nw(e,t,":before",n),nw(e,t,":after",n);}//#endregion
463
463
  //#region node_modules/html-to-image/es/mimes.js
464
- var tw="application/font-woff",nw="image/jpeg",rw={woff:tw,woff2:tw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:nw,jpeg:nw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function iw(e){var t=/\.([^./]*?)$/g.exec(e);return t?t[1]:"";}function aw(e){return rw[iw(e).toLowerCase()]||"";}//#endregion
464
+ var iw="application/font-woff",aw="image/jpeg",ow={woff:iw,woff2:iw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:aw,jpeg:aw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function sw(e){var t=/\.([^./]*?)$/g.exec(e);return t?t[1]:"";}function cw(e){return ow[sw(e).toLowerCase()]||"";}//#endregion
465
465
  //#region node_modules/html-to-image/es/dataurl.js
466
- function ow(e){return e.split(/,/)[1];}function sw(e){return e.search(/^(data:)/)!==-1;}function cw(e,t){return"data:".concat(t,";base64,").concat(e);}function lw(_x33,_x34,_x35){return _lw.apply(this,arguments);}function _lw(){_lw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee41(e,t,n){var r,i;return _regenerator().w(function(_context41){while(1)switch(_context41.n){case 0:_context41.n=1;return fetch(e,t);case 1:r=_context41.v;if(!(r.status===404)){_context41.n=2;break;}throw Error("Resource \"".concat(r.url,"\" not found"));case 2:_context41.n=3;return r.blob();case 3:i=_context41.v;return _context41.a(2,new Promise(function(e,t){var a=new FileReader();a.onerror=t,a.onloadend=function(){try{e(n({res:r,result:a.result}));}catch(e){t(e);}},a.readAsDataURL(i);}));}},_callee41);}));return _lw.apply(this,arguments);}var uw={};function dw(e,t,n){var r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?"[".concat(t,"]").concat(r):r;}function fw(_x36,_x37,_x38){return _fw.apply(this,arguments);}//#endregion
466
+ function lw(e){return e.split(/,/)[1];}function uw(e){return e.search(/^(data:)/)!==-1;}function dw(e,t){return"data:".concat(t,";base64,").concat(e);}function fw(_x34,_x35,_x36){return _fw.apply(this,arguments);}function _fw(){_fw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee42(e,t,n){var r,i;return _regenerator().w(function(_context42){while(1)switch(_context42.n){case 0:_context42.n=1;return fetch(e,t);case 1:r=_context42.v;if(!(r.status===404)){_context42.n=2;break;}throw Error("Resource \"".concat(r.url,"\" not found"));case 2:_context42.n=3;return r.blob();case 3:i=_context42.v;return _context42.a(2,new Promise(function(e,t){var a=new FileReader();a.onerror=t,a.onloadend=function(){try{e(n({res:r,result:a.result}));}catch(e){t(e);}},a.readAsDataURL(i);}));}},_callee42);}));return _fw.apply(this,arguments);}var pw={};function mw(e,t,n){var r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?"[".concat(t,"]").concat(r):r;}function hw(_x37,_x38,_x39){return _hw.apply(this,arguments);}//#endregion
467
467
  //#region node_modules/html-to-image/es/clone-node.js
468
- function _fw(){_fw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee42(e,t,n){var r,i,_r94,_t174,_t175;return _regenerator().w(function(_context42){while(1)switch(_context42.p=_context42.n){case 0:r=dw(e,t,n.includeQueryParams);if(!(uw[r]!=null)){_context42.n=1;break;}return _context42.a(2,uw[r]);case 1:n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(/* @__PURE__ */new Date()).getTime());_context42.p=2;_t174=cw;_context42.n=3;return lw(e,n.fetchRequestInit,function(_ref54){var e=_ref54.res,n=_ref54.result;return t||(t=e.headers.get("Content-Type")||""),ow(n);});case 3:i=_t174(_context42.v,t);_context42.n=5;break;case 4:_context42.p=4;_t175=_context42.v;i=n.imagePlaceholder||"";_r94="Failed to fetch resource: ".concat(e);_t175&&(_r94=typeof _t175=="string"?_t175:_t175.message),_r94&&console.warn(_r94);case 5:return _context42.a(2,(uw[r]=i,i));}},_callee42,null,[[2,4]]);}));return _fw.apply(this,arguments);}function pw(_x39){return _pw.apply(this,arguments);}function _pw(){_pw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee43(e){var t;return _regenerator().w(function(_context43){while(1)switch(_context43.n){case 0:t=e.toDataURL();return _context43.a(2,t==="data:,"?e.cloneNode(!1):KC(t));}},_callee43);}));return _pw.apply(this,arguments);}function mw(_x40,_x41){return _mw.apply(this,arguments);}function _mw(){_mw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee44(e,t){var _t176,_n106,n,_t177;return _regenerator().w(function(_context44){while(1)switch(_context44.n){case 0:if(!e.currentSrc){_context44.n=1;break;}_t176=document.createElement("canvas"),_n106=_t176.getContext("2d");return _context44.a(2,(_t176.width=e.clientWidth,_t176.height=e.clientHeight,_n106==null||_n106.drawImage(e,0,0,_t176.width,_t176.height),KC(_t176.toDataURL())));case 1:n=e.poster;_t177=KC;_context44.n=2;return fw(n,aw(n),t);case 2:return _context44.a(2,_t177(_context44.v));}},_callee44);}));return _mw.apply(this,arguments);}function hw(_x42,_x43){return _hw.apply(this,arguments);}function _hw(){_hw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee45(e,t){var n,_t178;return _regenerator().w(function(_context45){while(1)switch(_context45.p=_context45.n){case 0:_context45.p=0;if(!((n=e==null?void 0:e.contentDocument)!=null&&n.body)){_context45.n=2;break;}_context45.n=1;return Tw(e.contentDocument.body,t,!0);case 1:return _context45.a(2,_context45.v);case 2:_context45.n=4;break;case 3:_context45.p=3;_t178=_context45.v;case 4:return _context45.a(2,e.cloneNode(!1));}},_callee45,null,[[0,3]]);}));return _hw.apply(this,arguments);}function gw(_x44,_x45){return _gw.apply(this,arguments);}function _gw(){_gw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee46(e,t){return _regenerator().w(function(_context46){while(1)switch(_context46.n){case 0:return _context46.a(2,_YC(e,HTMLCanvasElement)?pw(e):_YC(e,HTMLVideoElement)?mw(e,t):_YC(e,HTMLIFrameElement)?hw(e,t):e.cloneNode(vw(e)));}},_callee46);}));return _gw.apply(this,arguments);}var _w=function _w(e){return e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";},vw=function vw(e){return e.tagName!=null&&e.tagName.toUpperCase()==="SVG";};function yw(_x46,_x47,_x48){return _yw.apply(this,arguments);}function _yw(){_yw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee47(e,t,n){var r,i,a,_t179;return _regenerator().w(function(_context47){while(1)switch(_context47.n){case 0:if(!vw(t)){_context47.n=1;break;}return _context47.a(2,t);case 1:a=[];a=_w(e)&&e.assignedNodes?FC(e.assignedNodes()):_YC(e,HTMLIFrameElement)&&(r=e.contentDocument)!=null&&r.body?FC(e.contentDocument.body.childNodes):FC(((i=e.shadowRoot)==null?e:i).childNodes);_t179=a.length===0||_YC(e,HTMLVideoElement);if(_t179){_context47.n=2;break;}_context47.n=2;return a.reduce(function(e,r){return e.then(function(){return Tw(r,n);}).then(function(e){e&&t.appendChild(e);});},Promise.resolve());case 2:return _context47.a(2,t);}},_callee47);}));return _yw.apply(this,arguments);}function bw(e,t,n){var r=t.style;if(!r)return;var i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):LC(n).forEach(function(n){var a=i.getPropertyValue(n);n==="font-size"&&a.endsWith("px")&&(a="".concat(Math.floor(parseFloat(a.substring(0,a.length-2)))-.1,"px")),_YC(e,HTMLIFrameElement)&&n==="display"&&a==="inline"&&(a="block"),n==="d"&&t.getAttribute("d")&&(a="path(".concat(t.getAttribute("d"),")")),r.setProperty(n,a,i.getPropertyPriority(n));});}function xw(e,t){_YC(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),_YC(e,HTMLInputElement)&&t.setAttribute("value",e.value);}function Sw(e,t){if(_YC(e,HTMLSelectElement)){var _n97=t,_r86=Array.from(_n97.children).find(function(t){return e.value===t.getAttribute("value");});_r86&&_r86.setAttribute("selected","");}}function Cw(e,t,n){return _YC(t,Element)&&(bw(e,t,n),ew(e,t,n),xw(e,t),Sw(e,t)),t;}function ww(_x49,_x50){return _ww.apply(this,arguments);}function _ww(){_ww=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48(e,t){var n,r,_i70,_a20,_n107,_i71,i,_t180,_n108,_r95,_e201,_t181;return _regenerator().w(function(_context48){while(1)switch(_context48.n){case 0:n=e.querySelectorAll?e.querySelectorAll("use"):[];if(!(n.length===0)){_context48.n=1;break;}return _context48.a(2,e);case 1:r={};_i70=0;case 2:if(!(_i70<n.length)){_context48.n=5;break;}_a20=n[_i70].getAttribute("xlink:href");if(!_a20){_context48.n=4;break;}_n107=e.querySelector(_a20),_i71=document.querySelector(_a20);_t181=!_n107&&_i71&&!r[_a20];if(!_t181){_context48.n=4;break;}_context48.n=3;return Tw(_i71,t,!0);case 3:r[_a20]=_context48.v;case 4:_i70++;_context48.n=2;break;case 5:i=Object.values(r);if(i.length){_t180="http://www.w3.org/1999/xhtml",_n108=document.createElementNS(_t180,"svg");_n108.setAttribute("xmlns",_t180),_n108.style.position="absolute",_n108.style.width="0",_n108.style.height="0",_n108.style.overflow="hidden",_n108.style.display="none";_r95=document.createElementNS(_t180,"defs");_n108.appendChild(_r95);for(_e201=0;_e201<i.length;_e201++)_r95.appendChild(i[_e201]);e.appendChild(_n108);}return _context48.a(2,e);}},_callee48);}));return _ww.apply(this,arguments);}function Tw(_x51,_x52,_x53){return _Tw.apply(this,arguments);}//#endregion
468
+ function _hw(){_hw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee43(e,t,n){var r,i,_r94,_t175,_t176;return _regenerator().w(function(_context43){while(1)switch(_context43.p=_context43.n){case 0:r=mw(e,t,n.includeQueryParams);if(!(pw[r]!=null)){_context43.n=1;break;}return _context43.a(2,pw[r]);case 1:n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(/* @__PURE__ */new Date()).getTime());_context43.p=2;_t175=dw;_context43.n=3;return fw(e,n.fetchRequestInit,function(_ref55){var e=_ref55.res,n=_ref55.result;return t||(t=e.headers.get("Content-Type")||""),lw(n);});case 3:i=_t175(_context43.v,t);_context43.n=5;break;case 4:_context43.p=4;_t176=_context43.v;i=n.imagePlaceholder||"";_r94="Failed to fetch resource: ".concat(e);_t176&&(_r94=typeof _t176=="string"?_t176:_t176.message),_r94&&console.warn(_r94);case 5:return _context43.a(2,(pw[r]=i,i));}},_callee43,null,[[2,4]]);}));return _hw.apply(this,arguments);}function gw(_x40){return _gw.apply(this,arguments);}function _gw(){_gw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee44(e){var t;return _regenerator().w(function(_context44){while(1)switch(_context44.n){case 0:t=e.toDataURL();return _context44.a(2,t==="data:,"?e.cloneNode(!1):YC(t));}},_callee44);}));return _gw.apply(this,arguments);}function _w(_x41,_x42){return _w2.apply(this,arguments);}function _w2(){_w2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee45(e,t){var _t177,_n106,n,_t178;return _regenerator().w(function(_context45){while(1)switch(_context45.n){case 0:if(!e.currentSrc){_context45.n=1;break;}_t177=document.createElement("canvas"),_n106=_t177.getContext("2d");return _context45.a(2,(_t177.width=e.clientWidth,_t177.height=e.clientHeight,_n106==null||_n106.drawImage(e,0,0,_t177.width,_t177.height),YC(_t177.toDataURL())));case 1:n=e.poster;_t178=YC;_context45.n=2;return hw(n,cw(n),t);case 2:return _context45.a(2,_t178(_context45.v));}},_callee45);}));return _w2.apply(this,arguments);}function vw(_x43,_x44){return _vw.apply(this,arguments);}function _vw(){_vw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee46(e,t){var n,_t179;return _regenerator().w(function(_context46){while(1)switch(_context46.p=_context46.n){case 0:_context46.p=0;if(!((n=e==null?void 0:e.contentDocument)!=null&&n.body)){_context46.n=2;break;}_context46.n=1;return Ow(e.contentDocument.body,t,!0);case 1:return _context46.a(2,_context46.v);case 2:_context46.n=4;break;case 3:_context46.p=3;_t179=_context46.v;case 4:return _context46.a(2,e.cloneNode(!1));}},_callee46,null,[[0,3]]);}));return _vw.apply(this,arguments);}function yw(_x45,_x46){return _yw.apply(this,arguments);}function _yw(){_yw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee47(e,t){return _regenerator().w(function(_context47){while(1)switch(_context47.n){case 0:return _context47.a(2,_QC(e,HTMLCanvasElement)?gw(e):_QC(e,HTMLVideoElement)?_w(e,t):_QC(e,HTMLIFrameElement)?vw(e,t):e.cloneNode(xw(e)));}},_callee47);}));return _yw.apply(this,arguments);}var bw=function bw(e){return e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";},xw=function xw(e){return e.tagName!=null&&e.tagName.toUpperCase()==="SVG";};function Sw(_x47,_x48,_x49){return _Sw.apply(this,arguments);}function _Sw(){_Sw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48(e,t,n){var r,i,a,_t180;return _regenerator().w(function(_context48){while(1)switch(_context48.n){case 0:if(!xw(t)){_context48.n=1;break;}return _context48.a(2,t);case 1:a=[];a=bw(e)&&e.assignedNodes?RC(e.assignedNodes()):_QC(e,HTMLIFrameElement)&&(r=e.contentDocument)!=null&&r.body?RC(e.contentDocument.body.childNodes):RC(((i=e.shadowRoot)==null?e:i).childNodes);_t180=a.length===0||_QC(e,HTMLVideoElement);if(_t180){_context48.n=2;break;}_context48.n=2;return a.reduce(function(e,r){return e.then(function(){return Ow(r,n);}).then(function(e){e&&t.appendChild(e);});},Promise.resolve());case 2:return _context48.a(2,t);}},_callee48);}));return _Sw.apply(this,arguments);}function Cw(e,t,n){var r=t.style;if(!r)return;var i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):BC(n).forEach(function(n){var a=i.getPropertyValue(n);n==="font-size"&&a.endsWith("px")&&(a="".concat(Math.floor(parseFloat(a.substring(0,a.length-2)))-.1,"px")),_QC(e,HTMLIFrameElement)&&n==="display"&&a==="inline"&&(a="block"),n==="d"&&t.getAttribute("d")&&(a="path(".concat(t.getAttribute("d"),")")),r.setProperty(n,a,i.getPropertyPriority(n));});}function ww(e,t){_QC(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),_QC(e,HTMLInputElement)&&t.setAttribute("value",e.value);}function Tw(e,t){if(_QC(e,HTMLSelectElement)){var _n97=t,_r86=Array.from(_n97.children).find(function(t){return e.value===t.getAttribute("value");});_r86&&_r86.setAttribute("selected","");}}function Ew(e,t,n){return _QC(t,Element)&&(Cw(e,t,n),rw(e,t,n),ww(e,t),Tw(e,t)),t;}function Dw(_x50,_x51){return _Dw.apply(this,arguments);}function _Dw(){_Dw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee49(e,t){var n,r,_i70,_a20,_n107,_i71,i,_t181,_n108,_r95,_e201,_t182;return _regenerator().w(function(_context49){while(1)switch(_context49.n){case 0:n=e.querySelectorAll?e.querySelectorAll("use"):[];if(!(n.length===0)){_context49.n=1;break;}return _context49.a(2,e);case 1:r={};_i70=0;case 2:if(!(_i70<n.length)){_context49.n=5;break;}_a20=n[_i70].getAttribute("xlink:href");if(!_a20){_context49.n=4;break;}_n107=e.querySelector(_a20),_i71=document.querySelector(_a20);_t182=!_n107&&_i71&&!r[_a20];if(!_t182){_context49.n=4;break;}_context49.n=3;return Ow(_i71,t,!0);case 3:r[_a20]=_context49.v;case 4:_i70++;_context49.n=2;break;case 5:i=Object.values(r);if(i.length){_t181="http://www.w3.org/1999/xhtml",_n108=document.createElementNS(_t181,"svg");_n108.setAttribute("xmlns",_t181),_n108.style.position="absolute",_n108.style.width="0",_n108.style.height="0",_n108.style.overflow="hidden",_n108.style.display="none";_r95=document.createElementNS(_t181,"defs");_n108.appendChild(_r95);for(_e201=0;_e201<i.length;_e201++)_r95.appendChild(i[_e201]);e.appendChild(_n108);}return _context49.a(2,e);}},_callee49);}));return _Dw.apply(this,arguments);}function Ow(_x52,_x53,_x54){return _Ow.apply(this,arguments);}//#endregion
469
469
  //#region node_modules/html-to-image/es/embed-resources.js
470
- function _Tw(){_Tw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee49(e,t,n){return _regenerator().w(function(_context49){while(1)switch(_context49.n){case 0:return _context49.a(2,!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(function(e){return gw(e,t);}).then(function(n){return yw(e,n,t);}).then(function(n){return Cw(e,n,t);}).then(function(e){return ww(e,t);}));}},_callee49);}));return _Tw.apply(this,arguments);}var Ew=/url\((['"]?)([^'"]+?)\1\)/g,Dw=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Ow=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function kw(e){var t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp("(url\\(['\"]?)(".concat(t,")(['\"]?\\))"),"g");}function Aw(e){var t=[];return e.replace(Ew,function(e,n,r){return t.push(r),e;}),t.filter(function(e){return!sw(e);});}function jw(_x54,_x55,_x56,_x57,_x58){return _jw.apply(this,arguments);}function _jw(){_jw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee50(e,t,n,r,i){var _a21,o,s,_t182,_t183,_t184;return _regenerator().w(function(_context50){while(1)switch(_context50.p=_context50.n){case 0:_context50.p=0;_a21=n?NC(t,n):t,o=aw(t);if(!i){_context50.n=2;break;}_t183=cw;_context50.n=1;return i(_a21);case 1:_t182=_t183(_context50.v,o);_context50.n=4;break;case 2:_context50.n=3;return fw(_a21,o,r);case 3:_t182=_context50.v;case 4:s=_t182;return _context50.a(2,e.replace(kw(t),"$1".concat(s,"$3")));case 5:_context50.p=5;_t184=_context50.v;return _context50.a(2,e);}},_callee50,null,[[0,5]]);}));return _jw.apply(this,arguments);}function Mw(e,_ref44){var t=_ref44.preferredFontFormat;return t?e.replace(Ow,function(e){for(;;){var _ref45=Dw.exec(e)||[],_ref46=_slicedToArray(_ref45,3),_n98=_ref46[0],_r87=_ref46[2];if(!_r87)return"";if(_r87===t)return"src: ".concat(_n98,";");}}):e;}function Nw(e){return e.search(Ew)!==-1;}function Pw(_x59,_x60,_x61){return _Pw.apply(this,arguments);}//#endregion
470
+ function _Ow(){_Ow=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee50(e,t,n){return _regenerator().w(function(_context50){while(1)switch(_context50.n){case 0:return _context50.a(2,!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(function(e){return yw(e,t);}).then(function(n){return Sw(e,n,t);}).then(function(n){return Ew(e,n,t);}).then(function(e){return Dw(e,t);}));}},_callee50);}));return _Ow.apply(this,arguments);}var kw=/url\((['"]?)([^'"]+?)\1\)/g,Aw=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,jw=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Mw(e){var t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp("(url\\(['\"]?)(".concat(t,")(['\"]?\\))"),"g");}function Nw(e){var t=[];return e.replace(kw,function(e,n,r){return t.push(r),e;}),t.filter(function(e){return!uw(e);});}function Pw(_x55,_x56,_x57,_x58,_x59){return _Pw.apply(this,arguments);}function _Pw(){_Pw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee51(e,t,n,r,i){var _a21,o,s,_t183,_t184,_t185;return _regenerator().w(function(_context51){while(1)switch(_context51.p=_context51.n){case 0:_context51.p=0;_a21=n?IC(t,n):t,o=cw(t);if(!i){_context51.n=2;break;}_t184=dw;_context51.n=1;return i(_a21);case 1:_t183=_t184(_context51.v,o);_context51.n=4;break;case 2:_context51.n=3;return hw(_a21,o,r);case 3:_t183=_context51.v;case 4:s=_t183;return _context51.a(2,e.replace(Mw(t),"$1".concat(s,"$3")));case 5:_context51.p=5;_t185=_context51.v;return _context51.a(2,e);}},_callee51,null,[[0,5]]);}));return _Pw.apply(this,arguments);}function Fw(e,_ref45){var t=_ref45.preferredFontFormat;return t?e.replace(jw,function(e){for(;;){var _ref46=Aw.exec(e)||[],_ref47=_slicedToArray(_ref46,3),_n98=_ref47[0],_r87=_ref47[2];if(!_r87)return"";if(_r87===t)return"src: ".concat(_n98,";");}}):e;}function Iw(e){return e.search(kw)!==-1;}function Lw(_x60,_x61,_x62){return _Lw.apply(this,arguments);}//#endregion
471
471
  //#region node_modules/html-to-image/es/embed-images.js
472
- function _Pw(){_Pw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee51(e,t,n){var r;return _regenerator().w(function(_context51){while(1)switch(_context51.n){case 0:if(Nw(e)){_context51.n=1;break;}return _context51.a(2,e);case 1:r=Mw(e,n);return _context51.a(2,Aw(r).reduce(function(e,r){return e.then(function(e){return jw(e,r,t,n);});},Promise.resolve(r)));}},_callee51);}));return _Pw.apply(this,arguments);}function Fw(_x62,_x63,_x64){return _Fw.apply(this,arguments);}function _Fw(){_Fw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee52(e,t,n){var r,i,_r96;return _regenerator().w(function(_context52){while(1)switch(_context52.n){case 0:i=(r=t.style)==null?void 0:r.getPropertyValue(e);if(!i){_context52.n=2;break;}_context52.n=1;return Pw(i,null,n);case 1:_r96=_context52.v;return _context52.a(2,(t.style.setProperty(e,_r96,t.style.getPropertyPriority(e)),!0));case 2:return _context52.a(2,!1);}},_callee52);}));return _Fw.apply(this,arguments);}function Iw(_x65,_x66){return _Iw.apply(this,arguments);}function _Iw(){_Iw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee53(e,t){var _t185,_t186,_t187,_t188;return _regenerator().w(function(_context53){while(1)switch(_context53.n){case 0:_context53.n=1;return Fw("background",e,t);case 1:_t185=_context53.v;if(_t185){_context53.n=2;break;}_context53.n=2;return Fw("background-image",e,t);case 2:_context53.n=3;return Fw("mask",e,t);case 3:_t187=_context53.v;if(_t187){_context53.n=5;break;}_context53.n=4;return Fw("-webkit-mask",e,t);case 4:_t187=_context53.v;case 5:_t186=_t187;if(_t186){_context53.n=7;break;}_context53.n=6;return Fw("mask-image",e,t);case 6:_t186=_context53.v;case 7:_t188=_t186;if(_t188){_context53.n=8;break;}_context53.n=8;return Fw("-webkit-mask-image",e,t);case 8:return _context53.a(2);}},_callee53);}));return _Iw.apply(this,arguments);}function Lw(_x67,_x68){return _Lw.apply(this,arguments);}function _Lw(){_Lw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee54(e,t){var n,r,i;return _regenerator().w(function(_context54){while(1)switch(_context54.n){case 0:n=_YC(e,HTMLImageElement);if(!(!(n&&!sw(e.src))&&!(_YC(e,SVGImageElement)&&!sw(e.href.baseVal)))){_context54.n=1;break;}return _context54.a(2);case 1:r=n?e.src:e.href.baseVal;_context54.n=2;return fw(r,aw(r),t);case 2:i=_context54.v;_context54.n=3;return new Promise(function(r,a){e.onload=r,e.onerror=t.onImageErrorHandler?function(){try{r(t.onImageErrorHandler.apply(t,arguments));}catch(e){a(e);}}:a;var o=e;o.decode&&(o.decode=r),o.loading==="lazy"&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i;});case 3:return _context54.a(2);}},_callee54);}));return _Lw.apply(this,arguments);}function Rw(_x69,_x70){return _Rw.apply(this,arguments);}function _Rw(){_Rw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee55(e,t){var n;return _regenerator().w(function(_context55){while(1)switch(_context55.n){case 0:n=FC(e.childNodes).map(function(e){return zw(e,t);});_context55.n=1;return Promise.all(n).then(function(){return e;});case 1:return _context55.a(2);}},_callee55);}));return _Rw.apply(this,arguments);}function zw(_x71,_x72){return _zw.apply(this,arguments);}//#endregion
472
+ function _Lw(){_Lw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee52(e,t,n){var r;return _regenerator().w(function(_context52){while(1)switch(_context52.n){case 0:if(Iw(e)){_context52.n=1;break;}return _context52.a(2,e);case 1:r=Fw(e,n);return _context52.a(2,Nw(r).reduce(function(e,r){return e.then(function(e){return Pw(e,r,t,n);});},Promise.resolve(r)));}},_callee52);}));return _Lw.apply(this,arguments);}function Rw(_x63,_x64,_x65){return _Rw.apply(this,arguments);}function _Rw(){_Rw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee53(e,t,n){var r,i,_r96;return _regenerator().w(function(_context53){while(1)switch(_context53.n){case 0:i=(r=t.style)==null?void 0:r.getPropertyValue(e);if(!i){_context53.n=2;break;}_context53.n=1;return Lw(i,null,n);case 1:_r96=_context53.v;return _context53.a(2,(t.style.setProperty(e,_r96,t.style.getPropertyPriority(e)),!0));case 2:return _context53.a(2,!1);}},_callee53);}));return _Rw.apply(this,arguments);}function zw(_x66,_x67){return _zw.apply(this,arguments);}function _zw(){_zw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee54(e,t){var _t186,_t187,_t188,_t189;return _regenerator().w(function(_context54){while(1)switch(_context54.n){case 0:_context54.n=1;return Rw("background",e,t);case 1:_t186=_context54.v;if(_t186){_context54.n=2;break;}_context54.n=2;return Rw("background-image",e,t);case 2:_context54.n=3;return Rw("mask",e,t);case 3:_t188=_context54.v;if(_t188){_context54.n=5;break;}_context54.n=4;return Rw("-webkit-mask",e,t);case 4:_t188=_context54.v;case 5:_t187=_t188;if(_t187){_context54.n=7;break;}_context54.n=6;return Rw("mask-image",e,t);case 6:_t187=_context54.v;case 7:_t189=_t187;if(_t189){_context54.n=8;break;}_context54.n=8;return Rw("-webkit-mask-image",e,t);case 8:return _context54.a(2);}},_callee54);}));return _zw.apply(this,arguments);}function Bw(_x68,_x69){return _Bw.apply(this,arguments);}function _Bw(){_Bw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee55(e,t){var n,r,i;return _regenerator().w(function(_context55){while(1)switch(_context55.n){case 0:n=_QC(e,HTMLImageElement);if(!(!(n&&!uw(e.src))&&!(_QC(e,SVGImageElement)&&!uw(e.href.baseVal)))){_context55.n=1;break;}return _context55.a(2);case 1:r=n?e.src:e.href.baseVal;_context55.n=2;return hw(r,cw(r),t);case 2:i=_context55.v;_context55.n=3;return new Promise(function(r,a){e.onload=r,e.onerror=t.onImageErrorHandler?function(){try{r(t.onImageErrorHandler.apply(t,arguments));}catch(e){a(e);}}:a;var o=e;o.decode&&(o.decode=r),o.loading==="lazy"&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i;});case 3:return _context55.a(2);}},_callee55);}));return _Bw.apply(this,arguments);}function Vw(_x70,_x71){return _Vw.apply(this,arguments);}function _Vw(){_Vw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee56(e,t){var n;return _regenerator().w(function(_context56){while(1)switch(_context56.n){case 0:n=RC(e.childNodes).map(function(e){return Hw(e,t);});_context56.n=1;return Promise.all(n).then(function(){return e;});case 1:return _context56.a(2);}},_callee56);}));return _Vw.apply(this,arguments);}function Hw(_x72,_x73){return _Hw.apply(this,arguments);}//#endregion
473
473
  //#region node_modules/html-to-image/es/apply-style.js
474
- function _zw(){_zw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee56(e,t){var _t189;return _regenerator().w(function(_context56){while(1)switch(_context56.n){case 0:_t189=_YC(e,Element);if(!_t189){_context56.n=3;break;}_context56.n=1;return Iw(e,t);case 1:_context56.n=2;return Lw(e,t);case 2:_context56.n=3;return Rw(e,t);case 3:return _context56.a(2);}},_callee56);}));return _zw.apply(this,arguments);}function Bw(e,t){var n=e.style;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width="".concat(t.width,"px")),t.height&&(n.height="".concat(t.height,"px"));var r=t.style;return r!=null&&Object.keys(r).forEach(function(e){n[e]=r[e];}),e;}//#endregion
474
+ function _Hw(){_Hw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee57(e,t){var _t190;return _regenerator().w(function(_context57){while(1)switch(_context57.n){case 0:_t190=_QC(e,Element);if(!_t190){_context57.n=3;break;}_context57.n=1;return zw(e,t);case 1:_context57.n=2;return Bw(e,t);case 2:_context57.n=3;return Vw(e,t);case 3:return _context57.a(2);}},_callee57);}));return _Hw.apply(this,arguments);}function Uw(e,t){var n=e.style;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width="".concat(t.width,"px")),t.height&&(n.height="".concat(t.height,"px"));var r=t.style;return r!=null&&Object.keys(r).forEach(function(e){n[e]=r[e];}),e;}//#endregion
475
475
  //#region node_modules/html-to-image/es/embed-webfonts.js
476
- var Vw={};function Hw(_x73){return _Hw.apply(this,arguments);}function _Hw(){_Hw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee57(e){var t,_t190,_t191,_t192;return _regenerator().w(function(_context57){while(1)switch(_context57.n){case 0:t=Vw[e];if(!(t==null)){_context57.n=3;break;}_t191=e;_context57.n=1;return fetch(e);case 1:_context57.n=2;return _context57.v.text();case 2:_t192=_context57.v;t={url:_t191,cssText:_t192};Vw[e]=t;_t190=t;_context57.n=4;break;case 3:_t190=t;case 4:return _context57.a(2,_t190);}},_callee57);}));return _Hw.apply(this,arguments);}function Uw(_x74,_x75){return _Uw.apply(this,arguments);}function _Uw(){_Uw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee59(e,t){var n,r,i;return _regenerator().w(function(_context59){while(1)switch(_context59.n){case 0:n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(/*#__PURE__*/function(){var _ref55=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee58(i){var a;return _regenerator().w(function(_context58){while(1)switch(_context58.n){case 0:a=i.replace(r,"$1");return _context58.a(2,(a.startsWith("https://")||(a=new URL(a,e.url).href),lw(a,t.fetchRequestInit,function(_ref56){var e=_ref56.result;return n=n.replace(i,"url(".concat(e,")")),[i,e];})));}},_callee58);}));return function(_x98){return _ref55.apply(this,arguments);};}());return _context59.a(2,Promise.all(i).then(function(){return n;}));}},_callee59);}));return _Uw.apply(this,arguments);}function Ww(e){if(e==null)return[];var t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=/* @__PURE__ */RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){var _e191=r.exec(n);if(_e191===null)break;t.push(_e191[0]);}n=n.replace(r,"");var i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=/* @__PURE__ */RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){var _e192=i.exec(n);if(_e192===null){if(_e192=a.exec(n),_e192===null)break;i.lastIndex=a.lastIndex;}else a.lastIndex=i.lastIndex;t.push(_e192[0]);}return t;}function Gw(_x76,_x77){return _Gw.apply(this,arguments);}function _Gw(){_Gw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee60(e,t){var n,r;return _regenerator().w(function(_context60){while(1)switch(_context60.n){case 0:n=[],r=[];return _context60.a(2,(e.forEach(function(n){if("cssRules"in n)try{FC(n.cssRules||[]).forEach(function(e,i){if(e.type===CSSRule.IMPORT_RULE){var _a22=i+1,o=e.href,s=Hw(o).then(function(e){return Uw(e,t);}).then(function(e){return Ww(e).forEach(function(e){try{n.insertRule(e,e.startsWith("@import")?_a22+=1:n.cssRules.length);}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t});}});}).catch(function(e){console.error("Error loading remote css",e.toString());});r.push(s);}});}catch(i){var _a23=e.find(function(e){return e.href==null;})||document.styleSheets[0];n.href!=null&&r.push(Hw(n.href).then(function(e){return Uw(e,t);}).then(function(e){return Ww(e).forEach(function(e){_a23.insertRule(e,_a23.cssRules.length);});}).catch(function(e){console.error("Error loading remote stylesheet",e);})),console.error("Error inlining remote css file",i);}}),Promise.all(r).then(function(){return e.forEach(function(e){if("cssRules"in e)try{FC(e.cssRules||[]).forEach(function(e){n.push(e);});}catch(t){console.error("Error while reading CSS rules from ".concat(e.href),t);}}),n;})));}},_callee60);}));return _Gw.apply(this,arguments);}function Kw(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE;}).filter(function(e){return Nw(e.style.getPropertyValue("src"));});}function qw(_x78,_x79){return _qw.apply(this,arguments);}function _qw(){_qw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee61(e,t){var _t193;return _regenerator().w(function(_context61){while(1)switch(_context61.n){case 0:if(!(e.ownerDocument==null)){_context61.n=1;break;}throw Error("Provided element is not within a Document");case 1:_t193=Kw;_context61.n=2;return Gw(FC(e.ownerDocument.styleSheets),t);case 2:return _context61.a(2,_t193(_context61.v));}},_callee61);}));return _qw.apply(this,arguments);}function Jw(e){return e.trim().replace(/["']/g,"");}function Yw(e){var t=/* @__PURE__ */new Set();function n(e){(e.style.fontFamily||getComputedStyle(e).fontFamily).split(",").forEach(function(e){t.add(Jw(e));}),Array.from(e.children).forEach(function(e){e instanceof HTMLElement&&n(e);});}return n(e),t;}function Xw(_x80,_x81){return _Xw.apply(this,arguments);}function _Xw(){_Xw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee62(e,t){var n,r;return _regenerator().w(function(_context62){while(1)switch(_context62.n){case 0:_context62.n=1;return qw(e,t);case 1:n=_context62.v;r=Yw(e);_context62.n=2;return Promise.all(n.filter(function(e){return r.has(Jw(e.style.fontFamily));}).map(function(e){var n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Pw(e.cssText,n,t);}));case 2:return _context62.a(2,_context62.v.join("\n"));}},_callee62);}));return _Xw.apply(this,arguments);}function Zw(_x82,_x83){return _Zw.apply(this,arguments);}//#endregion
476
+ var Ww={};function Gw(_x74){return _Gw.apply(this,arguments);}function _Gw(){_Gw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee58(e){var t,_t191,_t192,_t193;return _regenerator().w(function(_context58){while(1)switch(_context58.n){case 0:t=Ww[e];if(!(t==null)){_context58.n=3;break;}_t192=e;_context58.n=1;return fetch(e);case 1:_context58.n=2;return _context58.v.text();case 2:_t193=_context58.v;t={url:_t192,cssText:_t193};Ww[e]=t;_t191=t;_context58.n=4;break;case 3:_t191=t;case 4:return _context58.a(2,_t191);}},_callee58);}));return _Gw.apply(this,arguments);}function Kw(_x75,_x76){return _Kw.apply(this,arguments);}function _Kw(){_Kw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee60(e,t){var n,r,i;return _regenerator().w(function(_context60){while(1)switch(_context60.n){case 0:n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(/*#__PURE__*/function(){var _ref56=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee59(i){var a;return _regenerator().w(function(_context59){while(1)switch(_context59.n){case 0:a=i.replace(r,"$1");return _context59.a(2,(a.startsWith("https://")||(a=new URL(a,e.url).href),fw(a,t.fetchRequestInit,function(_ref57){var e=_ref57.result;return n=n.replace(i,"url(".concat(e,")")),[i,e];})));}},_callee59);}));return function(_x99){return _ref56.apply(this,arguments);};}());return _context60.a(2,Promise.all(i).then(function(){return n;}));}},_callee60);}));return _Kw.apply(this,arguments);}function qw(e){if(e==null)return[];var t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=/* @__PURE__ */RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){var _e191=r.exec(n);if(_e191===null)break;t.push(_e191[0]);}n=n.replace(r,"");var i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=/* @__PURE__ */RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){var _e192=i.exec(n);if(_e192===null){if(_e192=a.exec(n),_e192===null)break;i.lastIndex=a.lastIndex;}else a.lastIndex=i.lastIndex;t.push(_e192[0]);}return t;}function Jw(_x77,_x78){return _Jw.apply(this,arguments);}function _Jw(){_Jw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee61(e,t){var n,r;return _regenerator().w(function(_context61){while(1)switch(_context61.n){case 0:n=[],r=[];return _context61.a(2,(e.forEach(function(n){if("cssRules"in n)try{RC(n.cssRules||[]).forEach(function(e,i){if(e.type===CSSRule.IMPORT_RULE){var _a22=i+1,o=e.href,s=Gw(o).then(function(e){return Kw(e,t);}).then(function(e){return qw(e).forEach(function(e){try{n.insertRule(e,e.startsWith("@import")?_a22+=1:n.cssRules.length);}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t});}});}).catch(function(e){console.error("Error loading remote css",e.toString());});r.push(s);}});}catch(i){var _a23=e.find(function(e){return e.href==null;})||document.styleSheets[0];n.href!=null&&r.push(Gw(n.href).then(function(e){return Kw(e,t);}).then(function(e){return qw(e).forEach(function(e){_a23.insertRule(e,_a23.cssRules.length);});}).catch(function(e){console.error("Error loading remote stylesheet",e);})),console.error("Error inlining remote css file",i);}}),Promise.all(r).then(function(){return e.forEach(function(e){if("cssRules"in e)try{RC(e.cssRules||[]).forEach(function(e){n.push(e);});}catch(t){console.error("Error while reading CSS rules from ".concat(e.href),t);}}),n;})));}},_callee61);}));return _Jw.apply(this,arguments);}function Yw(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE;}).filter(function(e){return Iw(e.style.getPropertyValue("src"));});}function Xw(_x79,_x80){return _Xw.apply(this,arguments);}function _Xw(){_Xw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee62(e,t){var _t194;return _regenerator().w(function(_context62){while(1)switch(_context62.n){case 0:if(!(e.ownerDocument==null)){_context62.n=1;break;}throw Error("Provided element is not within a Document");case 1:_t194=Yw;_context62.n=2;return Jw(RC(e.ownerDocument.styleSheets),t);case 2:return _context62.a(2,_t194(_context62.v));}},_callee62);}));return _Xw.apply(this,arguments);}function Zw(e){return e.trim().replace(/["']/g,"");}function Qw(e){var t=/* @__PURE__ */new Set();function n(e){(e.style.fontFamily||getComputedStyle(e).fontFamily).split(",").forEach(function(e){t.add(Zw(e));}),Array.from(e.children).forEach(function(e){e instanceof HTMLElement&&n(e);});}return n(e),t;}function $w(_x81,_x82){return _$w.apply(this,arguments);}function _$w(){_$w=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee63(e,t){var n,r;return _regenerator().w(function(_context63){while(1)switch(_context63.n){case 0:_context63.n=1;return Xw(e,t);case 1:n=_context63.v;r=Qw(e);_context63.n=2;return Promise.all(n.filter(function(e){return r.has(Zw(e.style.fontFamily));}).map(function(e){var n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Lw(e.cssText,n,t);}));case 2:return _context63.a(2,_context63.v.join("\n"));}},_callee63);}));return _$w.apply(this,arguments);}function eT(_x83,_x84){return _eT.apply(this,arguments);}//#endregion
477
477
  //#region node_modules/html-to-image/es/index.js
478
- function _Zw(){_Zw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee63(e,t){var n,_t194,_r97,_t195,_t196;return _regenerator().w(function(_context63){while(1)switch(_context63.n){case 0:if(!(t.fontEmbedCSS==null)){_context63.n=4;break;}if(!t.skipFonts){_context63.n=1;break;}_t196=null;_context63.n=3;break;case 1:_context63.n=2;return Xw(e,t);case 2:_t196=_context63.v;case 3:_t195=_t196;_context63.n=5;break;case 4:_t195=t.fontEmbedCSS;case 5:n=_t195;if(n){_t194=document.createElement("style"),_r97=document.createTextNode(n);_t194.appendChild(_r97),e.firstChild?e.insertBefore(_t194,e.firstChild):e.appendChild(_t194);}case 6:return _context63.a(2);}},_callee63);}));return _Zw.apply(this,arguments);}function Qw(_x84){return _Qw.apply(this,arguments);}function _Qw(){_Qw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee64(e){var t,_VC,n,r,i,_args63=arguments;return _regenerator().w(function(_context64){while(1)switch(_context64.n){case 0:t=_args63.length>1&&_args63[1]!==undefined?_args63[1]:{};_VC=VC(e,t);n=_VC.width;r=_VC.height;_context64.n=1;return Tw(e,t,!0);case 1:i=_context64.v;_context64.n=2;return Zw(i,t);case 2:_context64.n=3;return zw(i,t);case 3:Bw(i,t);_context64.n=4;return JC(i,n,r);case 4:return _context64.a(2,_context64.v);}},_callee64);}));return _Qw.apply(this,arguments);}function $w(_x85){return _$w.apply(this,arguments);}function _$w(){_$w=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee65(e){var t,_VC2,n,r,i,a,o,s,c,l,_args64=arguments,_t197;return _regenerator().w(function(_context65){while(1)switch(_context65.n){case 0:t=_args64.length>1&&_args64[1]!==undefined?_args64[1]:{};_VC2=VC(e,t);n=_VC2.width;r=_VC2.height;_t197=KC;_context65.n=1;return Qw(e,t);case 1:_context65.n=2;return _t197(_context65.v);case 2:i=_context65.v;a=document.createElement("canvas");o=a.getContext("2d");s=t.pixelRatio||HC();c=t.canvasWidth||n;l=t.canvasHeight||r;return _context65.a(2,(a.width=c*s,a.height=l*s,t.skipAutoScale||WC(a),a.style.width="".concat(c),a.style.height="".concat(l),t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(i,0,0,a.width,a.height),a));}},_callee65);}));return _$w.apply(this,arguments);}function eT(_x86){return _eT.apply(this,arguments);}//#endregion
478
+ function _eT(){_eT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee64(e,t){var n,_t195,_r97,_t196,_t197;return _regenerator().w(function(_context64){while(1)switch(_context64.n){case 0:if(!(t.fontEmbedCSS==null)){_context64.n=4;break;}if(!t.skipFonts){_context64.n=1;break;}_t197=null;_context64.n=3;break;case 1:_context64.n=2;return $w(e,t);case 2:_t197=_context64.v;case 3:_t196=_t197;_context64.n=5;break;case 4:_t196=t.fontEmbedCSS;case 5:n=_t196;if(n){_t195=document.createElement("style"),_r97=document.createTextNode(n);_t195.appendChild(_r97),e.firstChild?e.insertBefore(_t195,e.firstChild):e.appendChild(_t195);}case 6:return _context64.a(2);}},_callee64);}));return _eT.apply(this,arguments);}function tT(_x85){return _tT.apply(this,arguments);}function _tT(){_tT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee65(e){var t,_WC,n,r,i,_args64=arguments;return _regenerator().w(function(_context65){while(1)switch(_context65.n){case 0:t=_args64.length>1&&_args64[1]!==undefined?_args64[1]:{};_WC=WC(e,t);n=_WC.width;r=_WC.height;_context65.n=1;return Ow(e,t,!0);case 1:i=_context65.v;_context65.n=2;return eT(i,t);case 2:_context65.n=3;return Hw(i,t);case 3:Uw(i,t);_context65.n=4;return ZC(i,n,r);case 4:return _context65.a(2,_context65.v);}},_callee65);}));return _tT.apply(this,arguments);}function nT(_x86){return _nT.apply(this,arguments);}function _nT(){_nT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee66(e){var t,_WC2,n,r,i,a,o,s,c,l,_args65=arguments,_t198;return _regenerator().w(function(_context66){while(1)switch(_context66.n){case 0:t=_args65.length>1&&_args65[1]!==undefined?_args65[1]:{};_WC2=WC(e,t);n=_WC2.width;r=_WC2.height;_t198=YC;_context66.n=1;return tT(e,t);case 1:_context66.n=2;return _t198(_context66.v);case 2:i=_context66.v;a=document.createElement("canvas");o=a.getContext("2d");s=t.pixelRatio||GC();c=t.canvasWidth||n;l=t.canvasHeight||r;return _context66.a(2,(a.width=c*s,a.height=l*s,t.skipAutoScale||qC(a),a.style.width="".concat(c),a.style.height="".concat(l),t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(i,0,0,a.width,a.height),a));}},_callee66);}));return _nT.apply(this,arguments);}function rT(_x87){return _rT.apply(this,arguments);}//#endregion
479
479
  //#region src/features/zena-chatbot/components/ScreenshotCapture.svelte
480
- function _eT(){_eT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee66(e){var t,_args65=arguments,_t198;return _regenerator().w(function(_context66){while(1)switch(_context66.n){case 0:t=_args65.length>1&&_args65[1]!==undefined?_args65[1]:{};_t198=GC;_context66.n=1;return $w(e,t);case 1:_context66.n=2;return _t198(_context66.v);case 2:return _context66.a(2,_context66.v);}},_callee66);}));return _eT.apply(this,arguments);}var tT=/* @__PURE__ */K("<div data-testid=\"screenshot-error\" class=\"flex flex-col gap-2\"><p class=\"text-xs text-red-400\"> </p> <div class=\"flex gap-2\"><button data-testid=\"screenshot-retry\" class=\"px-3 py-1.5 text-xs font-medium rounded-full bg-[#1d293d] text-white\n border border-white/20 hover:bg-[#2a3a52]\n disabled:opacity-50 disabled:cursor-not-allowed transition-colors\">Retry</button> <button data-testid=\"screenshot-skip\" class=\"px-3 py-1.5 text-xs font-medium rounded-full bg-[#1d293d] text-white\n border border-white/20 hover:bg-[#2a3a52]\n disabled:opacity-50 disabled:cursor-not-allowed transition-colors\">Skip</button></div></div>"),nT=/* @__PURE__ */K("<span class=\"inline-block w-3 h-3 border-2 border-white/30 border-t-white/70 rounded-full animate-spin\"></span>"),rT=/* @__PURE__ */K("<span class=\"text-green-400\"></span>"),iT=/* @__PURE__ */K("<div data-testid=\"screenshot-status\" class=\"flex items-center gap-2 text-xs text-white/70\" aria-live=\"polite\"><!> <span> </span></div>"),aT=/* @__PURE__ */K("<div data-testid=\"screenshot-capture\" class=\"mt-4 max-md:mt-3\"><!></div>");function oT(e,t){st(t,!0);var n=Y(t,"disabled",3,!1),r=zx(),i=Vx(),a=/* @__PURE__ */R("pending"),o=/* @__PURE__ */R(null),s=!1,c=null,l={pending:"Preparing screenshot...",capturing:"Capturing screenshot...",uploading:"Uploading screenshot...",done:"Screenshot captured",error:"Screenshot capture failed"};Vo(function(){return u(),function(){s=!0,c&&clearTimeout(c);};});function u(){return _u6.apply(this,arguments);}function _u6(){_u6=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(){var e,n,l,_r88,_i69,_u7,_f6,_t145,_t146;return _regenerator().w(function(_context16){while(1)switch(_context16.p=_context16.n){case 0:e=r(),n=i();if(!(!e||!n)){_context16.n=1;break;}z(a,"error"),z(o,"Service unavailable. Please try again.");return _context16.a(2);case 1:l=document.querySelector("zena-chatbot");_context16.p=2;z(a,"pending");z(o,null);_context16.n=3;return new Promise(function(e){c=setTimeout(e,2500);});case 3:c=null;if(!s){_context16.n=4;break;}return _context16.a(2);case 4:z(a,"capturing"),d(l,!1);_context16.n=5;return eT(document.documentElement,{pixelRatio:1});case 5:_r88=_context16.v;if(!(d(l,!0),s)){_context16.n=6;break;}return _context16.a(2);case 6:if(_r88){_context16.n=7;break;}throw Error("Failed to capture screenshot");case 7:z(a,"uploading");_i69="screenshot_".concat((0,Cx.default)().format("YYYY-MM-DDTHH-mm-ss"),".png");_u7=new File([_r88],_i69,{type:"image/png"});_context16.n=8;return e.presignUrl(n,_i69,"image/png",_u7.size);case 8:_f6=_context16.v;_t145=s;if(_t145){_context16.n=10;break;}_context16.n=9;return oC(_f6.uploadUrl,_u7);case 9:_t145=s;case 10:if(!_t145){_context16.n=11;break;}return _context16.a(2);case 11:z(a,"done"),t.onScreenshotFlow([_f6.attachmentId]);_context16.n=14;break;case 12:_context16.p=12;_t146=_context16.v;if(!(d(l,!0),s)){_context16.n=13;break;}return _context16.a(2);case 13:z(a,"error"),z(o,_t146.message||"An unexpected error occurred.",!0),vx(_t146,{context:{extra:{message:"Screenshot capture failed"}}});case 14:return _context16.a(2);}},_callee16,null,[[2,12]]);}));return _u6.apply(this,arguments);}function d(e,t){e&&(e.style.visibility=t?"":"hidden");}function f(){u();}function p(){t.onScreenshotFlow([]);}var m=aT(),h=B(m),g=function g(e){var t=tT(),r=B(t),i=B(r,!0);j(r);var a=V(r,2),s=B(a),c=V(s,2);j(a),j(t),H(function(){ma(i,G(o)||l.error),s.disabled=n(),c.disabled=n();}),na("click",s,f),na("click",c,p),q(e,t);},_=function _(e){var t=iT(),n=B(t),r=function r(e){q(e,nT());},i=function i(e){var t=rT();t.textContent="✓",q(e,t);};J(n,function(e){G(a)==="done"?e(i,-1):e(r);});var o=V(n,2),s=B(o,!0);j(o),j(t),H(function(){return ma(s,l[G(a)]);}),q(e,t);};J(h,function(e){G(a)==="error"?e(g):e(_,-1);}),j(m),q(e,m),ct();}ra(["click"]);//#endregion
480
+ function _rT(){_rT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee67(e){var t,_args66=arguments,_t199;return _regenerator().w(function(_context67){while(1)switch(_context67.n){case 0:t=_args66.length>1&&_args66[1]!==undefined?_args66[1]:{};_t199=JC;_context67.n=1;return nT(e,t);case 1:_context67.n=2;return _t199(_context67.v);case 2:return _context67.a(2,_context67.v);}},_callee67);}));return _rT.apply(this,arguments);}var iT=/* @__PURE__ */K("<div data-testid=\"screenshot-error\" class=\"flex flex-col gap-2\"><p class=\"text-xs text-red-400\"> </p> <div class=\"flex gap-2\"><button data-testid=\"screenshot-retry\" class=\"px-3 py-1.5 text-xs font-medium rounded-full bg-[#1d293d] text-white\n border border-white/20 hover:bg-[#2a3a52]\n disabled:opacity-50 disabled:cursor-not-allowed transition-colors\">Retry</button> <button data-testid=\"screenshot-skip\" class=\"px-3 py-1.5 text-xs font-medium rounded-full bg-[#1d293d] text-white\n border border-white/20 hover:bg-[#2a3a52]\n disabled:opacity-50 disabled:cursor-not-allowed transition-colors\">Skip</button></div></div>"),aT=/* @__PURE__ */K("<span class=\"inline-block w-3 h-3 border-2 border-white/30 border-t-white/70 rounded-full animate-spin\"></span>"),oT=/* @__PURE__ */K("<span class=\"text-green-400\"></span>"),sT=/* @__PURE__ */K("<div data-testid=\"screenshot-status\" class=\"flex items-center gap-2 text-xs text-white/70\" aria-live=\"polite\"><!> <span> </span></div>"),cT=/* @__PURE__ */K("<div data-testid=\"screenshot-capture\" class=\"mt-4 max-md:mt-3\"><!></div>");function lT(e,t){st(t,!0);var n=Y(t,"disabled",3,!1),r=Hx(),i=Wx(),a=/* @__PURE__ */R("pending"),o=/* @__PURE__ */R(null),s=!1,c=null,l={pending:"Preparing screenshot...",capturing:"Capturing screenshot...",uploading:"Uploading screenshot...",done:"Screenshot captured",error:"Screenshot capture failed"};Vo(function(){return u(),function(){s=!0,c&&clearTimeout(c);};});function u(){return _u6.apply(this,arguments);}function _u6(){_u6=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee17(){var e,n,l,_r88,_i69,_u7,_f6,_t146,_t147;return _regenerator().w(function(_context17){while(1)switch(_context17.p=_context17.n){case 0:e=r(),n=i();if(!(!e||!n)){_context17.n=1;break;}z(a,"error"),z(o,"Service unavailable. Please try again.");return _context17.a(2);case 1:l=document.querySelector("zena-chatbot");_context17.p=2;z(a,"pending");z(o,null);_context17.n=3;return new Promise(function(e){c=setTimeout(e,2500);});case 3:c=null;if(!s){_context17.n=4;break;}return _context17.a(2);case 4:z(a,"capturing"),d(l,!1);_context17.n=5;return rT(document.documentElement,{pixelRatio:1});case 5:_r88=_context17.v;if(!(d(l,!0),s)){_context17.n=6;break;}return _context17.a(2);case 6:if(_r88){_context17.n=7;break;}throw Error("Failed to capture screenshot");case 7:z(a,"uploading");_i69="screenshot_".concat((0,Ex.default)().format("YYYY-MM-DDTHH-mm-ss"),".png");_u7=new File([_r88],_i69,{type:"image/png"});_context17.n=8;return e.presignUrl(n,_i69,"image/png",_u7.size);case 8:_f6=_context17.v;_t146=s;if(_t146){_context17.n=10;break;}_context17.n=9;return lC(_f6.uploadUrl,_u7);case 9:_t146=s;case 10:if(!_t146){_context17.n=11;break;}return _context17.a(2);case 11:z(a,"done"),t.onScreenshotFlow([_f6.attachmentId]);_context17.n=14;break;case 12:_context17.p=12;_t147=_context17.v;if(!(d(l,!0),s)){_context17.n=13;break;}return _context17.a(2);case 13:z(a,"error"),z(o,_t147.message||"An unexpected error occurred.",!0),xx(_t147,{context:{extra:{message:"Screenshot capture failed"}}});case 14:return _context17.a(2);}},_callee17,null,[[2,12]]);}));return _u6.apply(this,arguments);}function d(e,t){e&&(e.style.visibility=t?"":"hidden");}function f(){u();}function p(){t.onScreenshotFlow([]);}var m=cT(),h=B(m),g=function g(e){var t=iT(),r=B(t),i=B(r,!0);j(r);var a=V(r,2),s=B(a),c=V(s,2);j(a),j(t),H(function(){ma(i,G(o)||l.error),s.disabled=n(),c.disabled=n();}),na("click",s,f),na("click",c,p),q(e,t);},_=function _(e){var t=sT(),n=B(t),r=function r(e){q(e,aT());},i=function i(e){var t=oT();t.textContent="✓",q(e,t);};J(n,function(e){G(a)==="done"?e(i,-1):e(r);});var o=V(n,2),s=B(o,!0);j(o),j(t),H(function(){return ma(s,l[G(a)]);}),q(e,t);};J(h,function(e){G(a)==="error"?e(g):e(_,-1);}),j(m),q(e,m),ct();}ra(["click"]);//#endregion
481
481
  //#region src/assets/zena-chatbot-icon.svg
482
- var sT="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='161'%20height='161'%20viewBox='0%200%20161%20161'%20fill='none'%3e%3cpath%20d='M80.47%20160.94C124.912%20160.94%20160.94%20124.912%20160.94%2080.47C160.94%2036.0276%20124.912%200%2080.47%200C36.0277%200%200%2036.0276%200%2080.47C0%20124.912%2036.0277%20160.94%2080.47%20160.94Z'%20fill='%2379C03B'/%3e%3cpath%20d='M129.74%2077.86C129.92%2083.44%20128.63%2088.72%20126.22%2093.32L126.17%2093.43L113.37%20120.41L107.17%20113.73C104.99%20111.38%20101.91%20110.12%2098.7%20110.14C98.63%20110.14%2098.56%20110.14%2098.49%20110.14H59.55C42.28%20110.14%2028.29%2096.14%2028.29%2078.88C28.29%2070.25%2031.79%2062.44%2037.44%2056.78C43.1%2051.12%2050.91%2047.63%2059.54%2047.63H97.9C114.86%2047.63%20129.17%2060.91%20129.71%2077.87L129.74%2077.86Z'%20stroke='white'%20stroke-width='2'%20stroke-miterlimit='10'/%3e%3cpath%20d='M78.17%2078.36L65.91%2070.95C65.5%2070.7%2065.13%2070.4%2064.83%2070.03C62.75%2067.45%2064.45%2063.23%2068.02%2063.23H88.32C91.88%2063.23%2093.59%2067.46%2091.51%2070.03C91.21%2070.4%2090.83%2070.71%2090.43%2070.95L78.17%2078.36Z'%20fill='url(%23paint0_linear_227_115)'/%3e%3cpath%20d='M79.89%2078.29L92.15%2085.7C92.56%2085.95%2092.93%2086.25%2093.23%2086.62C95.31%2089.2%2093.61%2093.42%2090.04%2093.42H69.74C66.18%2093.42%2064.47%2089.19%2066.55%2086.62C66.85%2086.25%2067.23%2085.94%2067.63%2085.7L79.89%2078.29Z'%20fill='url(%23paint1_linear_227_115)'/%3e%3cpath%20d='M85.29%2064.74L65.45%2084.58C63.43%2086.6%2063.43%2089.88%2065.45%2091.91C67.47%2093.93%2070.75%2093.93%2072.78%2091.91L92.6199%2072.07C94.6399%2070.05%2094.6399%2066.77%2092.6199%2064.74C90.5999%2062.72%2087.32%2062.72%2085.29%2064.74Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_227_115'%20x1='66.11'%20y1='60.06'%20x2='89.3'%20y2='74.12'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_227_115'%20x1='91.95'%20y1='96.59'%20x2='68.76'%20y2='82.5301'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",cT=/* @__PURE__ */K("<div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-red-500 text-white [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:w-9 max-md:h-9 max-md:mt-0\"><!></div>"),lT=/* @__PURE__ */K("<div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#0a284c] text-white overflow-hidden max-md:w-9 max-md:h-9 max-md:mt-0\"><img alt=\"Zena\" class=\"w-10 h-10 object-contain max-md:w-9 max-md:h-9\"/></div>"),uT=/* @__PURE__ */K("<div class=\"shrink-0\"><!></div>"),dT=/* @__PURE__ */K("<div class=\"message-text\"> </div>"),fT=/* @__PURE__ */K("<div class=\"message-text markdown-body svelte-ub2x2e\"></div>"),pT=/* @__PURE__ */K("<div><!></div>"),mT=/* @__PURE__ */K("<div class=\"shrink-0\"><div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#45556c] text-white [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:w-9 max-md:h-9 max-md:mt-0\"><!></div></div>"),hT=/* @__PURE__ */K("<div><!> <div><!> <!> <!> <!></div> <!></div>"),gT={hash:"svelte-ub2x2e",code:".message-bubble.svelte-ub2x2e > *:first-child {margin-top:0;}.message-bubble.svelte-ub2x2e > *:last-child {margin-bottom:0;}\n\n /* Markdown specific styles */.markdown-body.svelte-ub2x2e pre,\n .markdown-body.svelte-ub2x2e p,\n .markdown-body.svelte-ub2x2e li,\n .markdown-body.svelte-ub2x2e code {margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;word-break:break-word;}.markdown-body.svelte-ub2x2e p {margin:0 0 10px 0;}.markdown-body.svelte-ub2x2e p:last-child {margin-bottom:0;}.markdown-body.svelte-ub2x2e a {color:#79c03c;text-decoration:none;}.markdown-body.svelte-ub2x2e a:hover {text-decoration:underline;}.markdown-body.svelte-ub2x2e ul {margin:0;padding-left:20px;}.markdown-body.svelte-ub2x2e ol {margin:0;padding-left:20px;}.markdown-body.svelte-ub2x2e li {margin-bottom:4px;}.markdown-body.svelte-ub2x2e strong {font-weight:600;}"};function _T(e,t){st(t,!0),Ha(e,gT);var n=new xd({html:!0,linkify:!0}),r=Y(t,"type",3,"user"),i=Y(t,"content",3,""),a=Y(t,"isError",3,!1),o=Y(t,"disabled",3,!1),s=/* @__PURE__ */er(function(){return r()==="user";}),c=/* @__PURE__ */er(function(){var e;return!G(s)&&!i().trim()&&!!((e=t.attachmentIds)!=null&&e.length);}),l=/* @__PURE__ */er(function(){if(G(s))return i();try{return Nf.sanitize(n.render(Pf(i())));}catch(e){return vx(e,{context:{extra:{message:"markdown render failed"}}}),Nf.sanitize(i());}});var u=hT(),d=B(u),f=function f(e){var t=uT(),n=B(t),r=function r(e){var t=cT();ss(B(t),{size:16}),j(t),q(e,t);},i=function i(e){var t=lT(),n=B(t);j(t),H(function(){return _o(n,"src",sT);}),q(e,t);};J(n,function(e){a()?e(r):e(i,-1);}),j(t),q(e,t);};J(d,function(e){!G(s)&&!G(c)&&e(f);});var p=V(d,2),m=B(p),h=function h(e){var t=pT(),n=B(t),r=function r(e){var t=dT(),n=B(t,!0);j(t),H(function(){return ma(n,i());}),q(e,t);},o=function o(e){var t=fT();Ra(t,function(){return G(l);},!0),j(t),q(e,t);};J(n,function(e){G(s)?e(r):e(o,-1);}),j(t),H(function(){_o(t,"data-testid",a()?"message-bubble-error":G(s)?"message-bubble-user":"message-bubble-assistant"),Qa(t,1,"message-bubble py-4 px-5 rounded-[1.25rem] break-words text-sm leading-[1.5] font-normal text-left max-md:text-[0.8rem] max-md:py-3 max-md:px-4 max-md:leading-[1.4] ".concat(a()?"bg-red-100 border-l-4 border-l-red-500 text-red-600":G(s)?"bg-[#79c03c] text-white rounded-br-lg":"bg-[#1d293d] text-white rounded-bl-lg"),"svelte-ub2x2e");}),q(e,t);},g=/* @__PURE__ */er(function(){return i().trim();});J(m,function(e){G(g)&&e(h);});var _=V(m,2),v=function v(e){qx(e,{get attachmentIds(){return t.attachmentIds;},get messageType(){return r();}});};J(_,function(e){t.attachmentIds&&t.attachmentIds.length>0&&e(v);});var y=V(_,2),b=function b(e){Fx(e,{get surveys(){return t.surveys;},get type(){return t.responseType;},get disabled(){return o();},onSurveySelect:function onSurveySelect(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"survey-select",survey:e,responseType:t.responseType});}});};J(y,function(e){!G(s)&&t.surveys&&t.surveys.length>0&&e(b);});var x=V(y,2),S=function S(e){MC(e,{get disabled(){return o();},onAttachmentFlow:function onAttachmentFlow(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"attachment-flow",attachmentIds:e});}});},C=function C(e){oT(e,{get disabled(){return o();},onScreenshotFlow:function onScreenshotFlow(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"screenshot-flow",attachmentIds:e});}});},w=function w(e){Sx(e,{get suggestions(){return t.followUp;},get disabled(){return o();},onClick:function onClick(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"follow-up",suggestion:e});}});};J(x,function(e){!G(s)&&t.responseType==="request_ticket_attachments"?e(S):!G(s)&&t.responseType==="request_screenshot"?e(C,1):!G(s)&&t.followUp&&t.followUp.length>0&&e(w,2);}),j(p);var T=V(p,2),ee=function ee(e){var t=mT(),n=B(t);ls(B(n),{size:16}),j(n),j(t),q(e,t);};J(T,function(e){G(s)&&e(ee);}),j(u),H(function(){Qa(u,1,"flex w-full items-start gap-3 mb-6 [font-family:'Poppins',sans-serif] [animation:fadeIn_0.3s_ease] max-md:gap-0 max-md:mb-5 ".concat(G(s)?"justify-end":"justify-start")),Qa(p,1,"flex flex-col max-w-[80%] min-w-0 max-md:max-w-[85%] ".concat(G(s)?"items-end mr-2":G(c)?"items-start ml-[60px] max-md:ml-[56px]":"items-start ml-2"));}),q(e,u),ct();}//#endregion
482
+ var uT="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='161'%20height='161'%20viewBox='0%200%20161%20161'%20fill='none'%3e%3cpath%20d='M80.47%20160.94C124.912%20160.94%20160.94%20124.912%20160.94%2080.47C160.94%2036.0276%20124.912%200%2080.47%200C36.0277%200%200%2036.0276%200%2080.47C0%20124.912%2036.0277%20160.94%2080.47%20160.94Z'%20fill='%2379C03B'/%3e%3cpath%20d='M129.74%2077.86C129.92%2083.44%20128.63%2088.72%20126.22%2093.32L126.17%2093.43L113.37%20120.41L107.17%20113.73C104.99%20111.38%20101.91%20110.12%2098.7%20110.14C98.63%20110.14%2098.56%20110.14%2098.49%20110.14H59.55C42.28%20110.14%2028.29%2096.14%2028.29%2078.88C28.29%2070.25%2031.79%2062.44%2037.44%2056.78C43.1%2051.12%2050.91%2047.63%2059.54%2047.63H97.9C114.86%2047.63%20129.17%2060.91%20129.71%2077.87L129.74%2077.86Z'%20stroke='white'%20stroke-width='2'%20stroke-miterlimit='10'/%3e%3cpath%20d='M78.17%2078.36L65.91%2070.95C65.5%2070.7%2065.13%2070.4%2064.83%2070.03C62.75%2067.45%2064.45%2063.23%2068.02%2063.23H88.32C91.88%2063.23%2093.59%2067.46%2091.51%2070.03C91.21%2070.4%2090.83%2070.71%2090.43%2070.95L78.17%2078.36Z'%20fill='url(%23paint0_linear_227_115)'/%3e%3cpath%20d='M79.89%2078.29L92.15%2085.7C92.56%2085.95%2092.93%2086.25%2093.23%2086.62C95.31%2089.2%2093.61%2093.42%2090.04%2093.42H69.74C66.18%2093.42%2064.47%2089.19%2066.55%2086.62C66.85%2086.25%2067.23%2085.94%2067.63%2085.7L79.89%2078.29Z'%20fill='url(%23paint1_linear_227_115)'/%3e%3cpath%20d='M85.29%2064.74L65.45%2084.58C63.43%2086.6%2063.43%2089.88%2065.45%2091.91C67.47%2093.93%2070.75%2093.93%2072.78%2091.91L92.6199%2072.07C94.6399%2070.05%2094.6399%2066.77%2092.6199%2064.74C90.5999%2062.72%2087.32%2062.72%2085.29%2064.74Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_227_115'%20x1='66.11'%20y1='60.06'%20x2='89.3'%20y2='74.12'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_227_115'%20x1='91.95'%20y1='96.59'%20x2='68.76'%20y2='82.5301'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",dT=/* @__PURE__ */K("<div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-red-500 text-white [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:w-9 max-md:h-9 max-md:mt-0\"><!></div>"),fT=/* @__PURE__ */K("<div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#0a284c] text-white overflow-hidden max-md:w-9 max-md:h-9 max-md:mt-0\"><img alt=\"Zena\" class=\"w-10 h-10 object-contain max-md:w-9 max-md:h-9\"/></div>"),pT=/* @__PURE__ */K("<div class=\"shrink-0\"><!></div>"),mT=/* @__PURE__ */K("<div class=\"message-text\"> </div>"),hT=/* @__PURE__ */K("<div class=\"message-text markdown-body svelte-ub2x2e\"></div>"),gT=/* @__PURE__ */K("<div><!></div>"),_T=/* @__PURE__ */K("<div class=\"shrink-0\"><div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#45556c] text-white [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:w-9 max-md:h-9 max-md:mt-0\"><!></div></div>"),vT=/* @__PURE__ */K("<div><!> <div><!> <!> <!> <!></div> <!></div>"),yT={hash:"svelte-ub2x2e",code:".message-bubble.svelte-ub2x2e > *:first-child {margin-top:0;}.message-bubble.svelte-ub2x2e > *:last-child {margin-bottom:0;}\n\n /* Markdown specific styles */.markdown-body.svelte-ub2x2e pre,\n .markdown-body.svelte-ub2x2e p,\n .markdown-body.svelte-ub2x2e li,\n .markdown-body.svelte-ub2x2e code {margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;word-break:break-word;}.markdown-body.svelte-ub2x2e p {margin:0 0 10px 0;}.markdown-body.svelte-ub2x2e p:last-child {margin-bottom:0;}.markdown-body.svelte-ub2x2e a {color:#79c03c;text-decoration:none;}.markdown-body.svelte-ub2x2e a:hover {text-decoration:underline;}.markdown-body.svelte-ub2x2e ul {margin:0;padding-left:20px;}.markdown-body.svelte-ub2x2e ol {margin:0;padding-left:20px;}.markdown-body.svelte-ub2x2e li {margin-bottom:4px;}.markdown-body.svelte-ub2x2e strong {font-weight:600;}"};function bT(e,t){st(t,!0),Ha(e,yT);var n=new xd({html:!0,linkify:!0}),r=Y(t,"type",3,"user"),i=Y(t,"content",3,""),a=Y(t,"isError",3,!1),o=Y(t,"disabled",3,!1),s=/* @__PURE__ */er(function(){return r()==="user";}),c=/* @__PURE__ */er(function(){var e;return!G(s)&&!i().trim()&&!!((e=t.attachmentIds)!=null&&e.length);}),l=/* @__PURE__ */er(function(){if(G(s))return i();try{return Nf.sanitize(n.render(Pf(i())));}catch(e){return xx(e,{context:{extra:{message:"markdown render failed"}}}),Nf.sanitize(i());}});var u=vT(),d=B(u),f=function f(e){var t=pT(),n=B(t),r=function r(e){var t=dT();ss(B(t),{size:16}),j(t),q(e,t);},i=function i(e){var t=fT(),n=B(t);j(t),H(function(){return _o(n,"src",uT);}),q(e,t);};J(n,function(e){a()?e(r):e(i,-1);}),j(t),q(e,t);};J(d,function(e){!G(s)&&!G(c)&&e(f);});var p=V(d,2),m=B(p),h=function h(e){var t=gT(),n=B(t),r=function r(e){var t=mT(),n=B(t,!0);j(t),H(function(){return ma(n,i());}),q(e,t);},o=function o(e){var t=hT();Ra(t,function(){return G(l);},!0),j(t),q(e,t);};J(n,function(e){G(s)?e(r):e(o,-1);}),j(t),H(function(){_o(t,"data-testid",a()?"message-bubble-error":G(s)?"message-bubble-user":"message-bubble-assistant"),Qa(t,1,"message-bubble py-4 px-5 rounded-[1.25rem] break-words text-sm leading-[1.5] font-normal text-left max-md:text-[0.8rem] max-md:py-3 max-md:px-4 max-md:leading-[1.4] ".concat(a()?"bg-red-100 border-l-4 border-l-red-500 text-red-600":G(s)?"bg-[#79c03c] text-white rounded-br-lg":"bg-[#1d293d] text-white rounded-bl-lg"),"svelte-ub2x2e");}),q(e,t);},g=/* @__PURE__ */er(function(){return i().trim();});J(m,function(e){G(g)&&e(h);});var _=V(m,2),v=function v(e){Xx(e,{get attachmentIds(){return t.attachmentIds;},get messageType(){return r();}});};J(_,function(e){t.attachmentIds&&t.attachmentIds.length>0&&e(v);});var y=V(_,2),b=function b(e){Rx(e,{get surveys(){return t.surveys;},get type(){return t.responseType;},get disabled(){return o();},onSurveySelect:function onSurveySelect(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"survey-select",survey:e,responseType:t.responseType});}});};J(y,function(e){!G(s)&&t.surveys&&t.surveys.length>0&&e(b);});var x=V(y,2),S=function S(e){FC(e,{get disabled(){return o();},onAttachmentFlow:function onAttachmentFlow(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"attachment-flow",attachmentIds:e});}});},C=function C(e){lT(e,{get disabled(){return o();},onScreenshotFlow:function onScreenshotFlow(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"screenshot-flow",attachmentIds:e});}});},w=function w(e){Tx(e,{get suggestions(){return t.followUp;},get disabled(){return o();},onClick:function onClick(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"follow-up",suggestion:e});}});};J(x,function(e){!G(s)&&t.responseType==="request_ticket_attachments"?e(S):!G(s)&&t.responseType==="request_screenshot"?e(C,1):!G(s)&&t.followUp&&t.followUp.length>0&&e(w,2);}),j(p);var T=V(p,2),ee=function ee(e){var t=_T(),n=B(t);ls(B(n),{size:16}),j(n),j(t),q(e,t);};J(T,function(e){G(s)&&e(ee);}),j(u),H(function(){Qa(u,1,"flex w-full items-start gap-3 mb-6 [font-family:'Poppins',sans-serif] [animation:fadeIn_0.3s_ease] max-md:gap-0 max-md:mb-5 ".concat(G(s)?"justify-end":"justify-start")),Qa(p,1,"flex flex-col max-w-[80%] min-w-0 max-md:max-w-[85%] ".concat(G(s)?"items-end mr-2":G(c)?"items-start ml-[60px] max-md:ml-[56px]":"items-start ml-2"));}),q(e,u),ct();}//#endregion
483
483
  //#region src/features/zena-chatbot/components/TypingIndicator.svelte
484
- var vT=/* @__PURE__ */K("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] text-sm leading-[1.5] max-md:py-3 max-md:px-4 max-md:text-[0.8rem] max-md:leading-[1.4]\"><div data-testid=\"typing-indicator-redirecting\" class=\"text-[#45556c]\"></div></div>"),yT=/* @__PURE__ */K("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] text-sm leading-[1.5] max-md:py-3 max-md:px-4 max-md:text-[0.8rem] max-md:leading-[1.4]\"><div data-testid=\"typing-indicator-message\"> </div></div>"),bT=/* @__PURE__ */K("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] flex items-center gap-2 max-md:py-3 max-md:px-4 max-md:gap-1\"><div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.1s]\"></div> <div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.2s]\"></div> <div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.3s]\"></div></div>"),xT=/* @__PURE__ */K("<div class=\"flex w-full items-start gap-3 mb-6 justify-start [font-family:'Poppins',sans-serif] [animation:fadeIn_0.3s_ease] max-md:gap-0 max-md:mb-5\"><div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#0a284c] text-white overflow-hidden max-md:w-9 max-md:h-9 max-md:mt-0\"><img alt=\"Zena\" class=\"w-10 h-10 object-contain max-md:w-9 max-md:h-9\"/></div> <div class=\"ml-2 flex items-center gap-2 max-md:gap-1\"><!></div></div>");function ST(e,t){st(t,!0);var n=Y(t,"isLoading",3,!1),r=Y(t,"isRedirecting",3,!1),i=["Just a moment—I'm pulling up that info for you…","I'm on it—fetching the latest update…","Let me look into that for you right away…","Working on your request — thanks for your patience…","Almost there — finalizing the best solution for you…","Hang tight—I'm gathering the answer…"],a={ENTER_DELAY:2e3,EXIT_DURATION:500,MESSAGE_DURATION:3e3,DOTS_DURATION:2e3},o=function o(e){return i[(e?0:3)+Math.floor(Math.random()*(e?4:2))];},s=/* @__PURE__ */R(!1),c=/* @__PURE__ */R(""),l=/* @__PURE__ */R(""),u=null;function d(){u&&(clearTimeout(u),u=null);}function f(){z(s,!0),z(c,"enter"),z(l,o(!1),!0),u=setTimeout(function(){z(c,"exit"),u=setTimeout(function(){z(s,!1),z(c,""),z(l,""),u=setTimeout(f,a.DOTS_DURATION);},a.EXIT_DURATION);},a.MESSAGE_DURATION);}Wr(function(){return n()?(d(),z(s,!1),z(c,""),z(l,""),u=setTimeout(f,a.ENTER_DELAY)):(d(),z(s,!1),z(c,""),z(l,"")),d;});var p=pa(),m=Or(p),h=function h(e){var t=xT(),n=B(t),i=B(n);j(n);var a=V(n,2),o=B(a),u=function u(e){var t=vT(),n=B(t);n.textContent="Redirecting to the survey…",j(t),q(e,t);},d=function d(e){var t=yT(),n=B(t),r=B(n,!0);j(n),j(t),H(function(){Qa(n,1,"text-[#45556c] [transform-origin:left_center] transition-all duration-300 ".concat(G(c)==="enter"?"typing-indicator__message--enter":G(c)==="exit"?"typing-indicator__message--exit":"")),ma(r,G(l));}),q(e,t);},f=function f(e){q(e,bT());};J(o,function(e){r()?e(u):G(s)?e(d,1):e(f,-1);}),j(a),j(t),H(function(){return _o(i,"src",sT);}),q(e,t);};J(m,function(e){(n()||r())&&e(h);}),q(e,p),ct();}//#endregion
484
+ var xT=/* @__PURE__ */K("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] text-sm leading-[1.5] max-md:py-3 max-md:px-4 max-md:text-[0.8rem] max-md:leading-[1.4]\"><div data-testid=\"typing-indicator-redirecting\" class=\"text-[#45556c]\"></div></div>"),ST=/* @__PURE__ */K("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] text-sm leading-[1.5] max-md:py-3 max-md:px-4 max-md:text-[0.8rem] max-md:leading-[1.4]\"><div data-testid=\"typing-indicator-message\"> </div></div>"),CT=/* @__PURE__ */K("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] flex items-center gap-2 max-md:py-3 max-md:px-4 max-md:gap-1\"><div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.1s]\"></div> <div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.2s]\"></div> <div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.3s]\"></div></div>"),wT=/* @__PURE__ */K("<div class=\"flex w-full items-start gap-3 mb-6 justify-start [font-family:'Poppins',sans-serif] [animation:fadeIn_0.3s_ease] max-md:gap-0 max-md:mb-5\"><div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#0a284c] text-white overflow-hidden max-md:w-9 max-md:h-9 max-md:mt-0\"><img alt=\"Zena\" class=\"w-10 h-10 object-contain max-md:w-9 max-md:h-9\"/></div> <div class=\"ml-2 flex items-center gap-2 max-md:gap-1\"><!></div></div>");function TT(e,t){st(t,!0);var n=Y(t,"isLoading",3,!1),r=Y(t,"isRedirecting",3,!1),i=["Just a moment—I'm pulling up that info for you…","I'm on it—fetching the latest update…","Let me look into that for you right away…","Working on your request — thanks for your patience…","Almost there — finalizing the best solution for you…","Hang tight—I'm gathering the answer…"],a={ENTER_DELAY:2e3,EXIT_DURATION:500,MESSAGE_DURATION:3e3,DOTS_DURATION:2e3},o=function o(e){return i[(e?0:3)+Math.floor(Math.random()*(e?4:2))];},s=/* @__PURE__ */R(!1),c=/* @__PURE__ */R(""),l=/* @__PURE__ */R(""),u=null;function d(){u&&(clearTimeout(u),u=null);}function f(){z(s,!0),z(c,"enter"),z(l,o(!1),!0),u=setTimeout(function(){z(c,"exit"),u=setTimeout(function(){z(s,!1),z(c,""),z(l,""),u=setTimeout(f,a.DOTS_DURATION);},a.EXIT_DURATION);},a.MESSAGE_DURATION);}Wr(function(){return n()?(d(),z(s,!1),z(c,""),z(l,""),u=setTimeout(f,a.ENTER_DELAY)):(d(),z(s,!1),z(c,""),z(l,"")),d;});var p=pa(),m=Or(p),h=function h(e){var t=wT(),n=B(t),i=B(n);j(n);var a=V(n,2),o=B(a),u=function u(e){var t=xT(),n=B(t);n.textContent="Redirecting to the survey…",j(t),q(e,t);},d=function d(e){var t=ST(),n=B(t),r=B(n,!0);j(n),j(t),H(function(){Qa(n,1,"text-[#45556c] [transform-origin:left_center] transition-all duration-300 ".concat(G(c)==="enter"?"typing-indicator__message--enter":G(c)==="exit"?"typing-indicator__message--exit":"")),ma(r,G(l));}),q(e,t);},f=function f(e){q(e,CT());};J(o,function(e){r()?e(u):G(s)?e(d,1):e(f,-1);}),j(a),j(t),H(function(){return _o(i,"src",uT);}),q(e,t);};J(m,function(e){(n()||r())&&e(h);}),q(e,p),ct();}//#endregion
485
485
  //#region src/features/zena-chatbot/components/MessageList.svelte
486
- var CT=/* @__PURE__ */K("<div class=\"flex-1 overflow-y-auto py-6 px-5 bg-[#0f172b] [font-family:'Poppins',sans-serif] overscroll-contain [&amp;::-webkit-scrollbar]:hidden md:px-6\"><div class=\"flex flex-col min-h-min\"></div> <!> <div class=\"h-px w-full\"></div></div>");function wT(e,t){st(t,!0);var n=Y(t,"messages",19,function(){return[];}),r=Y(t,"isLoading",3,!1),i=Y(t,"isRedirecting",3,!1),a=/* @__PURE__ */R(void 0),o=/* @__PURE__ */R(void 0);function s(){return _s6.apply(this,arguments);}function _s6(){_s6=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee17(){var _t147;return _regenerator().w(function(_context17){while(1)switch(_context17.n){case 0:_t147=G(o)&&typeof G(o).scrollIntoView=="function";if(!_t147){_context17.n=2;break;}_context17.n=1;return Fi();case 1:G(o).scrollIntoView({behavior:"smooth"});case 2:return _context17.a(2);}},_callee17);}));return _s6.apply(this,arguments);}Wr(function(){(n()&&n().length>0||r()||i())&&s();});function c(e){e.stopPropagation();}var l=CT(),u=B(l);Ma(u,21,n,function(e){return e.id;},function(e,n){_T(e,{get type(){return G(n).type;},get content(){return G(n).content;},get isError(){return G(n).isError;},get surveys(){return G(n).surveys;},get responseType(){return G(n).responseType;},get followUp(){return G(n).followUp;},get disabled(){return G(n).disabled;},get attachmentIds(){return G(n).attachmentIds;},get onAction(){return t.onAction;}});}),j(u);var d=V(u,2);ST(d,{get isLoading(){return r();},get isRedirecting(){return i();}}),Po(V(d,2),function(e){return z(o,e);},function(){return G(o);}),j(l),Po(l,function(e){return z(a,e);},function(){return G(a);}),ta("wheel",l,c),q(e,l),ct();}//#endregion
486
+ var ET=/* @__PURE__ */K("<div class=\"flex-1 overflow-y-auto py-6 px-5 bg-[#0f172b] [font-family:'Poppins',sans-serif] overscroll-contain [&amp;::-webkit-scrollbar]:hidden md:px-6\"><div class=\"flex flex-col min-h-min\"></div> <!> <div class=\"h-px w-full\"></div></div>");function DT(e,t){st(t,!0);var n=Y(t,"messages",19,function(){return[];}),r=Y(t,"isLoading",3,!1),i=Y(t,"isRedirecting",3,!1),a=/* @__PURE__ */R(void 0),o=/* @__PURE__ */R(void 0);function s(){return _s6.apply(this,arguments);}function _s6(){_s6=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(){var _t148;return _regenerator().w(function(_context18){while(1)switch(_context18.n){case 0:_t148=G(o)&&typeof G(o).scrollIntoView=="function";if(!_t148){_context18.n=2;break;}_context18.n=1;return Fi();case 1:G(o).scrollIntoView({behavior:"smooth"});case 2:return _context18.a(2);}},_callee18);}));return _s6.apply(this,arguments);}Wr(function(){(n()&&n().length>0||r()||i())&&s();});function c(e){e.stopPropagation();}var l=ET(),u=B(l);Ma(u,21,n,function(e){return e.id;},function(e,n){bT(e,{get type(){return G(n).type;},get content(){return G(n).content;},get isError(){return G(n).isError;},get surveys(){return G(n).surveys;},get responseType(){return G(n).responseType;},get followUp(){return G(n).followUp;},get disabled(){return G(n).disabled;},get attachmentIds(){return G(n).attachmentIds;},get onAction(){return t.onAction;}});}),j(u);var d=V(u,2);TT(d,{get isLoading(){return r();},get isRedirecting(){return i();}}),Po(V(d,2),function(e){return z(o,e);},function(){return G(o);}),j(l),Po(l,function(e){return z(a,e);},function(){return G(a);}),ta("wheel",l,c),q(e,l),ct();}//#endregion
487
487
  //#region src/features/zena-chatbot/components/MessageInput.svelte
488
- var TT=/* @__PURE__ */K("<div><div class=\"w-full flex items-end gap-2\"><textarea class=\"flex-1 resize-none border border-white/20 bg-[#334155] text-white outline-none pt-3 pr-4 pb-3 pl-4 rounded-lg text-base leading-[1.5] min-h-12 max-h-[100px] transition duration-200 box-border [font-family:'Poppins',sans-serif] overflow-y-auto [&amp;::-webkit-scrollbar]:hidden placeholder:text-[#94a3b8] focus:ring-0 disabled:opacity-50 disabled:cursor-not-allowed md:min-h-12 md:max-h-[120px] max-md:text-[0.9rem] max-md:min-h-10 max-md:pt-[11px] max-md:pr-4 max-md:pb-[11px] max-md:pl-4 max-sm:text-[0.85rem] max-sm:min-h-11 max-sm:max-h-[80px] max-sm:pt-[10px] max-sm:pr-3 max-sm:pb-[10px] max-sm:pl-3 max-sm:leading-[1.4] svelte-17yjkps\" rows=\"1\"></textarea> <button class=\"shrink-0 rounded-[0.4rem] text-white flex items-center justify-center min-w-12 min-h-12 bg-[#79c03c] transition duration-200 border-0 cursor-pointer enabled:hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:min-w-10 max-md:min-h-10 max-md:[&amp;_svg]:w-[1.2rem] max-md:[&amp;_svg]:h-[1.2rem] max-sm:min-w-11 max-sm:min-h-11 max-sm:[&amp;_svg]:w-[1.1rem] max-sm:[&amp;_svg]:h-[1.1rem]\" aria-label=\"Send message\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 2L11 13\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M22 2L15 22L11 13L2 9L22 2Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg></button></div></div>"),ET={hash:"svelte-17yjkps",code:"textarea.svelte-17yjkps:focus {border:1px solid #71b638;outline:none;}"};function DT(e,t){st(t,!0),Ha(e,ET);var n=Y(t,"disabled",3,!1),r=/* @__PURE__ */R(""),i;function a(){i&&(i.style.height="auto",i.style.height=Math.min(i.scrollHeight,120)+"px");}Wr(function(){G(r),a();});function o(){var e=G(r).trim();e&&!n()&&(t.onSend(e),z(r,""));}function s(e){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),o());}var c=TT(),l=B(c),u=B(l);Pr(u),Po(u,function(e){return i=e;},function(){return i;});var d=V(u,2);j(l),j(c),H(function(e){Qa(c,1,"bg-transparent py-4 px-6 block max-md:py-3 max-md:px-4 max-sm:py-2 max-sm:px-3 ".concat(n()?"opacity-50":"")),_o(u,"placeholder",n()?"Zena is typing...":"Ask your question here"),u.disabled=n(),d.disabled=e;},[function(){return n()||!G(r).trim();}]),na("keydown",u,s),Co(u,function(){return G(r);},function(e){return z(r,e);}),na("click",d,o),q(e,c),ct();}ra(["keydown","click"]);//#endregion
488
+ var OT=/* @__PURE__ */K("<div><div class=\"w-full flex items-end gap-2\"><textarea class=\"flex-1 resize-none border border-white/20 bg-[#334155] text-white outline-none pt-3 pr-4 pb-3 pl-4 rounded-lg text-base leading-[1.5] min-h-12 max-h-[100px] transition duration-200 box-border [font-family:'Poppins',sans-serif] overflow-y-auto [&amp;::-webkit-scrollbar]:hidden placeholder:text-[#94a3b8] focus:ring-0 disabled:opacity-50 disabled:cursor-not-allowed md:min-h-12 md:max-h-[120px] max-md:text-[0.9rem] max-md:min-h-10 max-md:pt-[11px] max-md:pr-4 max-md:pb-[11px] max-md:pl-4 max-sm:text-[0.85rem] max-sm:min-h-11 max-sm:max-h-[80px] max-sm:pt-[10px] max-sm:pr-3 max-sm:pb-[10px] max-sm:pl-3 max-sm:leading-[1.4] svelte-17yjkps\" rows=\"1\"></textarea> <button class=\"shrink-0 rounded-[0.4rem] text-white flex items-center justify-center min-w-12 min-h-12 bg-[#79c03c] transition duration-200 border-0 cursor-pointer enabled:hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:min-w-10 max-md:min-h-10 max-md:[&amp;_svg]:w-[1.2rem] max-md:[&amp;_svg]:h-[1.2rem] max-sm:min-w-11 max-sm:min-h-11 max-sm:[&amp;_svg]:w-[1.1rem] max-sm:[&amp;_svg]:h-[1.1rem]\" aria-label=\"Send message\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 2L11 13\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M22 2L15 22L11 13L2 9L22 2Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg></button></div></div>"),kT={hash:"svelte-17yjkps",code:"textarea.svelte-17yjkps:focus {border:1px solid #71b638;outline:none;}"};function AT(e,t){st(t,!0),Ha(e,kT);var n=Y(t,"disabled",3,!1),r=/* @__PURE__ */R(""),i;function a(){i&&(i.style.height="auto",i.style.height=Math.min(i.scrollHeight,120)+"px");}Wr(function(){G(r),a();});function o(){var e=G(r).trim();e&&!n()&&(t.onSend(e),z(r,""));}function s(e){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),o());}var c=OT(),l=B(c),u=B(l);Pr(u),Po(u,function(e){return i=e;},function(){return i;});var d=V(u,2);j(l),j(c),H(function(e){Qa(c,1,"bg-transparent py-4 px-6 block max-md:py-3 max-md:px-4 max-sm:py-2 max-sm:px-3 ".concat(n()?"opacity-50":"")),_o(u,"placeholder",n()?"Zena is typing...":"Ask your question here"),u.disabled=n(),d.disabled=e;},[function(){return n()||!G(r).trim();}]),na("keydown",u,s),Co(u,function(){return G(r);},function(e){return z(r,e);}),na("click",d,o),q(e,c),ct();}ra(["keydown","click"]);//#endregion
489
489
  //#region src/features/zena-chatbot/components/AutoSuggestionsView.svelte
490
- var OT=/* @__PURE__ */K("<button class=\"w-full justify-start bg-[#0a284c] text-white border border-[#0a284c] h-auto py-4 px-6 text-base leading-[1.5] font-medium transition duration-200 rounded-xl [font-family:'Poppins',sans-serif] cursor-pointer text-left hover:scale-[1.03]\"> </button>"),kT=/* @__PURE__ */K("<div class=\"flex flex-col flex-1 items-center py-8 px-6 bg-[#0f172b] overflow-y-auto overscroll-contain [font-family:'Poppins',sans-serif] [&amp;::-webkit-scrollbar]:hidden md:p-8\"><div class=\"text-center shrink-0 mb-8\"><p class=\"m-0 font-semibold text-[#45556c] text-xl leading-[1.5] text-center [font-family:'Poppins',sans-serif]\">Hi, I'm Zena and you can ask me questions like...</p></div> <div class=\"flex flex-col gap-4 w-full max-w-[28rem] min-h-[320px] justify-center shrink-0\"></div></div>");function AT(e,t){st(t,!0);var n=Y(t,"prioritySuggestions",19,function(){return[];}),r=/* @__PURE__ */er(function(){var e=[].concat(_toConsumableArray(n()),EC);return _toConsumableArray(new Set(e)).slice(0,4);});function i(e){t.onClick&&t.onClick(e);}var a=kT(),o=V(B(a),2);Ma(o,21,function(){return G(r);},Oa,function(e,t){var n=OT(),r=B(n,!0);j(n),H(function(){return ma(r,G(t));}),na("click",n,function(){return i(G(t));}),q(e,n);}),j(o),j(a),q(e,a),ct();}ra(["click"]);//#endregion
490
+ var jT=/* @__PURE__ */K("<button class=\"w-full justify-start bg-[#0a284c] text-white border border-[#0a284c] h-auto py-4 px-6 text-base leading-[1.5] font-medium transition duration-200 rounded-xl [font-family:'Poppins',sans-serif] cursor-pointer text-left hover:scale-[1.03]\"> </button>"),MT=/* @__PURE__ */K("<div class=\"flex flex-col flex-1 items-center py-8 px-6 bg-[#0f172b] overflow-y-auto overscroll-contain [font-family:'Poppins',sans-serif] [&amp;::-webkit-scrollbar]:hidden md:p-8\"><div class=\"text-center shrink-0 mb-8\"><p class=\"m-0 font-semibold text-[#45556c] text-xl leading-[1.5] text-center [font-family:'Poppins',sans-serif]\">Hi, I'm Zena and you can ask me questions like...</p></div> <div class=\"flex flex-col gap-4 w-full max-w-[28rem] min-h-[320px] justify-center shrink-0\"></div></div>");function NT(e,t){st(t,!0);var n=Y(t,"prioritySuggestions",19,function(){return[];}),r=/* @__PURE__ */er(function(){var e=[].concat(_toConsumableArray(n()),kC);return _toConsumableArray(new Set(e)).slice(0,4);});function i(e){t.onClick&&t.onClick(e);}var a=MT(),o=V(B(a),2);Ma(o,21,function(){return G(r);},Oa,function(e,t){var n=jT(),r=B(n,!0);j(n),H(function(){return ma(r,G(t));}),na("click",n,function(){return i(G(t));}),q(e,n);}),j(o),j(a),q(e,a),ct();}ra(["click"]);//#endregion
491
491
  //#region src/assets/zena-chatbot-icon.svg?raw
492
- var jT="<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"161\" height=\"161\" viewBox=\"0 0 161 161\" fill=\"none\">\n <path d=\"M80.47 160.94C124.912 160.94 160.94 124.912 160.94 80.47C160.94 36.0276 124.912 0 80.47 0C36.0277 0 0 36.0276 0 80.47C0 124.912 36.0277 160.94 80.47 160.94Z\" fill=\"#79C03B\"/>\n <path d=\"M129.74 77.86C129.92 83.44 128.63 88.72 126.22 93.32L126.17 93.43L113.37 120.41L107.17 113.73C104.99 111.38 101.91 110.12 98.7 110.14C98.63 110.14 98.56 110.14 98.49 110.14H59.55C42.28 110.14 28.29 96.14 28.29 78.88C28.29 70.25 31.79 62.44 37.44 56.78C43.1 51.12 50.91 47.63 59.54 47.63H97.9C114.86 47.63 129.17 60.91 129.71 77.87L129.74 77.86Z\" stroke=\"white\" stroke-width=\"2\" stroke-miterlimit=\"10\"/>\n <path d=\"M78.17 78.36L65.91 70.95C65.5 70.7 65.13 70.4 64.83 70.03C62.75 67.45 64.45 63.23 68.02 63.23H88.32C91.88 63.23 93.59 67.46 91.51 70.03C91.21 70.4 90.83 70.71 90.43 70.95L78.17 78.36Z\" fill=\"url(#paint0_linear_227_115)\"/>\n <path d=\"M79.89 78.29L92.15 85.7C92.56 85.95 92.93 86.25 93.23 86.62C95.31 89.2 93.61 93.42 90.04 93.42H69.74C66.18 93.42 64.47 89.19 66.55 86.62C66.85 86.25 67.23 85.94 67.63 85.7L79.89 78.29Z\" fill=\"url(#paint1_linear_227_115)\"/>\n <path d=\"M85.29 64.74L65.45 84.58C63.43 86.6 63.43 89.88 65.45 91.91C67.47 93.93 70.75 93.93 72.78 91.91L92.6199 72.07C94.6399 70.05 94.6399 66.77 92.6199 64.74C90.5999 62.72 87.32 62.72 85.29 64.74Z\" fill=\"white\"/>\n <defs>\n <linearGradient id=\"paint0_linear_227_115\" x1=\"66.11\" y1=\"60.06\" x2=\"89.3\" y2=\"74.12\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"white\"/>\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\"/>\n </linearGradient>\n <linearGradient id=\"paint1_linear_227_115\" x1=\"91.95\" y1=\"96.59\" x2=\"68.76\" y2=\"82.5301\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"white\"/>\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\"/>\n </linearGradient>\n </defs>\n</svg>",MT=/* @__PURE__ */K("<button data-testid=\"fab-rectangle\" class=\"bg-transparent border-0 p-0 cursor-pointer z-[2]\" aria-label=\"Open chat\"><div class=\"flex flex-col items-center justify-center bg-[#77c03a] shadow-md rounded-l-lg px-[4px] py-3 w-[24px]\"><span class=\"text-[10px] font-semibold text-white font-[Poppins,sans-serif] leading-[1.25] text-center w-[2px] [word-wrap:break-word]\">ZENA</span></div></button>"),NT=/* @__PURE__ */K("<span class=\"w-[50px] h-[50px] md:w-16 md:h-16 block [&amp;>svg]:w-full [&amp;>svg]:h-full\"></span>"),PT=/* @__PURE__ */K("<div class=\"flex items-center group\"><button class=\"bg-transparent border-0 p-0 cursor-pointer rounded-full transition-transform duration-200 ease-in-out z-[2] hover:scale-110\" aria-label=\"Open chat\"><!></button> <div data-testid=\"fab-tooltip\"> <div class=\"absolute top-1/2 -right-1 -mt-[5px] w-2 h-2 bg-[#0f172b] rotate-45\"></div></div></div>");function FT(e,t){st(t,!0);var n=Y(t,"tooltipText",3,"Chat with Zena"),r=Y(t,"isOpen",3,!1),i=Y(t,"shape",3,"circle");function a(){t.onClick&&t.onClick();}var o=pa(),s=Or(o),c=function c(e){var t=MT();na("click",t,a),q(e,t);},l=function l(e){var i=PT(),o=B(i),s=B(o),c=function c(e){var n=pa();Ba(Or(n),function(){return t.children;}),q(e,n);},l=function l(e){var t=NT();Ra(t,function(){return jT;},!0),j(t),q(e,t);};J(s,function(e){t.children?e(c):e(l,-1);}),j(o);var u=V(o,2),d=B(u);Ye(),j(u),j(i),H(function(){var e;Qa(u,1,"absolute right-full mr-3 px-3 py-2 rounded-lg bg-[#0f172b] text-white text-sm font-medium whitespace-nowrap font-[Poppins,sans-serif]\n opacity-0 translate-x-2 invisible\n transition-[opacity,transform] duration-200 ease-out\n pointer-events-none\n max-[500px]:hidden\n ".concat(r()?"":"group-hover:opacity-100 group-hover:translate-x-0 group-hover:visible")),ma(d,"".concat((e=n())==null?"":e," "));}),na("click",o,a),q(e,i);};J(s,function(e){i()==="rectangle"?e(c):e(l,-1);}),q(e,o),ct();}ra(["click"]);//#endregion
492
+ var PT="<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"161\" height=\"161\" viewBox=\"0 0 161 161\" fill=\"none\">\n <path d=\"M80.47 160.94C124.912 160.94 160.94 124.912 160.94 80.47C160.94 36.0276 124.912 0 80.47 0C36.0277 0 0 36.0276 0 80.47C0 124.912 36.0277 160.94 80.47 160.94Z\" fill=\"#79C03B\"/>\n <path d=\"M129.74 77.86C129.92 83.44 128.63 88.72 126.22 93.32L126.17 93.43L113.37 120.41L107.17 113.73C104.99 111.38 101.91 110.12 98.7 110.14C98.63 110.14 98.56 110.14 98.49 110.14H59.55C42.28 110.14 28.29 96.14 28.29 78.88C28.29 70.25 31.79 62.44 37.44 56.78C43.1 51.12 50.91 47.63 59.54 47.63H97.9C114.86 47.63 129.17 60.91 129.71 77.87L129.74 77.86Z\" stroke=\"white\" stroke-width=\"2\" stroke-miterlimit=\"10\"/>\n <path d=\"M78.17 78.36L65.91 70.95C65.5 70.7 65.13 70.4 64.83 70.03C62.75 67.45 64.45 63.23 68.02 63.23H88.32C91.88 63.23 93.59 67.46 91.51 70.03C91.21 70.4 90.83 70.71 90.43 70.95L78.17 78.36Z\" fill=\"url(#paint0_linear_227_115)\"/>\n <path d=\"M79.89 78.29L92.15 85.7C92.56 85.95 92.93 86.25 93.23 86.62C95.31 89.2 93.61 93.42 90.04 93.42H69.74C66.18 93.42 64.47 89.19 66.55 86.62C66.85 86.25 67.23 85.94 67.63 85.7L79.89 78.29Z\" fill=\"url(#paint1_linear_227_115)\"/>\n <path d=\"M85.29 64.74L65.45 84.58C63.43 86.6 63.43 89.88 65.45 91.91C67.47 93.93 70.75 93.93 72.78 91.91L92.6199 72.07C94.6399 70.05 94.6399 66.77 92.6199 64.74C90.5999 62.72 87.32 62.72 85.29 64.74Z\" fill=\"white\"/>\n <defs>\n <linearGradient id=\"paint0_linear_227_115\" x1=\"66.11\" y1=\"60.06\" x2=\"89.3\" y2=\"74.12\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"white\"/>\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\"/>\n </linearGradient>\n <linearGradient id=\"paint1_linear_227_115\" x1=\"91.95\" y1=\"96.59\" x2=\"68.76\" y2=\"82.5301\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"white\"/>\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\"/>\n </linearGradient>\n </defs>\n</svg>",FT=/* @__PURE__ */K("<button data-testid=\"fab-rectangle\" class=\"bg-transparent border-0 p-0 cursor-pointer z-[2]\" aria-label=\"Open chat\"><div class=\"flex flex-col items-center justify-center bg-[#77c03a] shadow-md rounded-l-lg px-[4px] py-3 w-[24px]\"><span class=\"text-[10px] font-semibold text-white font-[Poppins,sans-serif] leading-[1.25] text-center w-[2px] [word-wrap:break-word]\">ZENA</span></div></button>"),IT=/* @__PURE__ */K("<span class=\"w-[50px] h-[50px] md:w-16 md:h-16 block [&amp;>svg]:w-full [&amp;>svg]:h-full\"></span>"),LT=/* @__PURE__ */K("<div class=\"flex items-center group\"><button class=\"bg-transparent border-0 p-0 cursor-pointer rounded-full transition-transform duration-200 ease-in-out z-[2] hover:scale-110\" aria-label=\"Open chat\"><!></button> <div data-testid=\"fab-tooltip\"> <div class=\"absolute top-1/2 -right-1 -mt-[5px] w-2 h-2 bg-[#0f172b] rotate-45\"></div></div></div>");function RT(e,t){st(t,!0);var n=Y(t,"tooltipText",3,"Chat with Zena"),r=Y(t,"isOpen",3,!1),i=Y(t,"shape",3,"circle");function a(){t.onClick&&t.onClick();}var o=pa(),s=Or(o),c=function c(e){var t=FT();na("click",t,a),q(e,t);},l=function l(e){var i=LT(),o=B(i),s=B(o),c=function c(e){var n=pa();Ba(Or(n),function(){return t.children;}),q(e,n);},l=function l(e){var t=IT();Ra(t,function(){return PT;},!0),j(t),q(e,t);};J(s,function(e){t.children?e(c):e(l,-1);}),j(o);var u=V(o,2),d=B(u);Ye(),j(u),j(i),H(function(){var e;Qa(u,1,"absolute right-full mr-3 px-3 py-2 rounded-lg bg-[#0f172b] text-white text-sm font-medium whitespace-nowrap font-[Poppins,sans-serif]\n opacity-0 translate-x-2 invisible\n transition-[opacity,transform] duration-200 ease-out\n pointer-events-none\n max-[500px]:hidden\n ".concat(r()?"":"group-hover:opacity-100 group-hover:translate-x-0 group-hover:visible")),ma(d,"".concat((e=n())==null?"":e," "));}),na("click",o,a),q(e,i);};J(s,function(e){i()==="rectangle"?e(c):e(l,-1);}),q(e,o),ct();}ra(["click"]);//#endregion
493
493
  //#region src/features/zena-chatbot/stores/chat.store.svelte.ts
494
- var IT=/* @__PURE__ */new WeakMap(),LT=/* @__PURE__ */new WeakMap(),RT=/*#__PURE__*/function(){function RT(e){_classCallCheck(this,RT);N(this,IT,/* @__PURE__ */R(_r([]))),N(this,LT,/* @__PURE__ */R(!1)),D(this,"onMessagesChange",void 0),D(this,"nextId",1),this.onMessagesChange=e;}return _createClass(RT,[{key:"messages",get:function get(){return G(F(IT,this));},set:function set(e){z(F(IT,this),e,!0);}},{key:"isInitialized",get:function get(){return G(F(LT,this));},set:function set(e){z(F(LT,this),e,!0);}},{key:"mount",value:function mount(){this.messages=[],this.isInitialized=!0;}},{key:"hydrate",value:function hydrate(e){this.messages=e.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!(e.followUp||e.surveys)||e.disabled,responseType:e.responseType==="request_screenshot"?void 0:e.responseType});});var t=e.reduce(function(e,t){return Math.max(e,t.id);},0);t>=this.nextId&&(this.nextId=t+1),this.isInitialized=!0;}},{key:"addMessage",value:function addMessage(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!0;var a;var o;i&&e==="assistant"&&(r.responseType==="bonus_oversight"?o=OC:r.responseType==="bonus"?o=kC:r.responseType==="request_ticket_attachments"?o=AC:this.messages.filter(function(e){return e.type==="user";}).length>=2&&(o=DC));var s=_objectSpread({id:this.nextId++,type:e,content:t,timestamp:(0,Cx.default)().toISOString(),isError:n,userId:null,followUp:r.followUp||o,disabled:!1},r);return e==="user"&&(this.messages=this.messages.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!(e.surveys||e.followUp)||e.disabled});})),this.messages.push(s),(a=this.onMessagesChange)==null||a.call(this),s;}},{key:"disableFollowUpButtons",value:function disableFollowUpButtons(){this.messages=this.messages.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!e.followUp||e.disabled});});}},{key:"clearMessages",value:function clearMessages(){var e;this.messages=[],(e=this.onMessagesChange)==null||e.call(this);}},{key:"generateConversationSummary",value:function generateConversationSummary(){if(this.messages.length===0)return"User requested support through chat";var e=_toConsumableArray(this.messages).reverse(),t=e.find(function(e){return e.type==="user";}),n=e.find(function(e){return e.type==="assistant";}),r="";return t&&(r+="User: ".concat(t.content)),n&&(r+=(r?"\n\nZena: ":"Zena: ")+n.content),r||"User requested support through chat";}}]);}(),zT=/* @__PURE__ */new WeakMap(),BT=/*#__PURE__*/function(){function BT(){_classCallCheck(this,BT);N(this,zT,/* @__PURE__ */R(null));}return _createClass(BT,[{key:"conversationId",get:function get(){return G(F(zT,this));},set:function set(e){z(F(zT,this),e,!0);}}]);}(),VT=function VT(_ref47){var e=_ref47.serverUrl,t=_ref47.authToken;var n=aC(e,t);return{fetchAvailableSurveys:function fetchAvailableSurveys(){return n.json.get("users/get_surveys");},checkEligibility:function checkEligibility(e){return n.json.post("users/checkUserEligibility",{surveys:e});}};},HT=function HT(_ref48){var e=_ref48.serverUrl,t=_ref48.authToken;var n=aC(e,t);return{send:function send(e,t,r){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return n.json.post("chat",_objectSpread({message:e,chat_history:t,conversation_id:r},i));},checkEligibility:function checkEligibility(e){return n.json.post("users/checkUserEligibility",{surveys:e});}};},UT=10,WT=5e3,GT=1e3,KT=200,qT=600*1e3,JT="zena_session_id",YT="zena_session_start_time",XT="zena_conversation_start",ZT=["mousedown","mouseup","touchstart","touchend","scroll"];function QT(_ref49){var e=_ref49.posthogKey,t=_ref49.posthogHost,_ref49$nativeApp=_ref49.nativeApp,n=_ref49$nativeApp===void 0?!1:_ref49$nativeApp,_ref49$userId=_ref49.userId,r=_ref49$userId===void 0?null:_ref49$userId,_ref49$inactivityTime=_ref49.inactivityTimeoutMs,i=_ref49$inactivityTime===void 0?qT:_ref49$inactivityTime;var a=null,o=!1,s=null,c=null,l=!1,u=!1,d=null,f=!1,p=null,m=null,h=null,g=null,_=[],v=null,y=!1,b=!1,x={visibilitychange:null,pagehide:null,beforeunload:null};function S(e){return e&&clearTimeout(e),null;}function C(e){try{return e();}catch(e){return null;}}function w(){if(s)return s;var e=C(function(){return localStorage.getItem(JT);}),t=C(function(){return localStorage.getItem(YT);});return e&&t?(s=e,c=parseInt(t,10)):(s="zena_session_".concat(Date.now(),"_").concat(Math.random().toString(36).slice(2,11)),c=Date.now(),C(function(){return localStorage.setItem(JT,s);}),C(function(){return localStorage.setItem(YT,String(c));})),s;}function T(){s=null,c=null,l=!1,u=!1,C(function(){return localStorage.removeItem(JT);}),C(function(){return localStorage.removeItem(YT);}),oe();}function ee(){var e;return n||(typeof window==="undefined"?"undefined":_typeof(window))>"u"?!0:window.cookieyes?((e=window.cookieyes._ckyConsentStore)==null?void 0:e.get("analytics"))==="yes":null;}function E(){var n;if(!e||(typeof window==="undefined"?"undefined":_typeof(window))>"u")return;var i={api_host:t||"https://app.posthog.com",autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,loaded:function loaded(e){a=e,o=!0,r&&a.identify(String(r)),ue();}};if(window.posthog){a=window.posthog,a.__loaded?(o=!0,r&&a.identify(String(r)),ue()):a.init(e,i);return;}var s=document.createElement("script");s.src="".concat(t||"https://app.posthog.com","/static/array.js"),s.async=!0,s.onload=function(){a=window.posthog,a&&a.init(e,i);},s.onerror=function(){return console.error("[zena-chatbot-client] PostHog: failed to load script");},(n=document.head)==null||n.appendChild(s);}function te(){return _te.apply(this,arguments);}function _te(){_te=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(){var n,_ref50,_ref51,_t148,_t149;return _regenerator().w(function(_context18){while(1)switch(_context18.p=_context18.n){case 0:if(_.length){_context18.n=1;break;}return _context18.a(2);case 1:n=_toConsumableArray(_);_=[],v=S(v);_context18.p=2;_context18.n=3;return fetch("".concat(t||"https://app.posthog.com","/capture/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({api_key:e,batch:n})});case 3:_t148=_context18.v.ok;if(_t148){_context18.n=4;break;}(_ref50=_).unshift.apply(_ref50,_toConsumableArray(n));case 4:_context18.n=6;break;case 5:_context18.p=5;_t149=_context18.v;(_ref51=_).unshift.apply(_ref51,_toConsumableArray(n));case 6:return _context18.a(2);}},_callee18,null,[[2,5]]);}));return _te.apply(this,arguments);}function ne(){v||(v=setTimeout(function(){return te().catch(function(){});},WT));}function D(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!o)return;var i=_objectSpread({session_id:s||w()},t);n?(_.push({event:e,distinct_id:String(r||"anonymous"),properties:i}),_.length>=UT?te().catch(function(){}):ne()):a==null||a.capture(e,i);}function re(){m=S(m),m=setTimeout(function(){p=S(p),o&&l&&s&&(p=setTimeout(function(){l&&se();},i));},GT);}function ie(){!o||!l||re();}function ae(){y||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(ZT.forEach(function(e){return document.addEventListener(e,ie,{passive:!0});}),y=!0);}function oe(){!y||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(ZT.forEach(function(e){return document.removeEventListener(e,ie);}),y=!1);}function se(){u||h||(h=setTimeout(function(){h=null,ce().catch(function(){});},KT));}function ce(){return _ce.apply(this,arguments);}function _ce(){_ce=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19(){var e,t,r,_t150;return _regenerator().w(function(_context19){while(1)switch(_context19.p=_context19.n){case 0:t=s,r=c;if(!(u||!l||!t)){_context19.n=1;break;}T();return _context19.a(2);case 1:if(!(u=!0,l=!1,p=S(p),m=S(m),D("session_ended",{session_duration_minutes:Math.round((Date.now()-(r==null?Date.now():r))/6e4)}),n||a==null||(e=a.flush)==null||e.call(a),n)){_context19.n=5;break;}_context19.p=2;_context19.n=3;return te();case 3:_context19.n=5;break;case 4:_context19.p=4;_t150=_context19.v;case 5:T();case 6:return _context19.a(2);}},_callee19,null,[[2,4]]);}));return _ce.apply(this,arguments);}function le(){var e;l&&ce().catch(function(){}),n||a==null||(e=a.flush)==null||e.call(a),oe(),de();}function ue(){b||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(b=!0,ae(),x.visibilitychange=function(){if(!(!o||!l))if(document.hidden){var e;a==null||(e=a.flush)==null||e.call(a);}else re();},document.addEventListener("visibilitychange",x.visibilitychange),x.pagehide=le,x.beforeunload=le,window.addEventListener("pagehide",le),window.addEventListener("beforeunload",le));}function de(){b&&(x.visibilitychange&&(document.removeEventListener("visibilitychange",x.visibilitychange),x.visibilitychange=null),x.pagehide&&(window.removeEventListener("pagehide",x.pagehide),x.pagehide=null),x.beforeunload&&(window.removeEventListener("beforeunload",x.beforeunload),x.beforeunload=null),b=!1);}function fe(){if(!e)return;if(n){o=!0,ue();return;}var t=ee();if(t===!0){E();return;}if(t===null){var _e193=0;g=setInterval(function(){_e193++,(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.cookieyes?(clearInterval(g),g=null,ee()===!0&&E()):_e193>=10&&(clearInterval(g),g=null,E());},500);}}function O(){D("zena_widget_opened");}function pe(){o&&(w(),l=!0,u=!1,re(),D("session_started"),ae());}function me(){o&&(w(),d=Date.now(),C(function(){return localStorage.setItem(XT,String(d));}),f=!1);}function he(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t;if(!(f||!o)){if(!d){var _e194=C(function(){return localStorage.getItem(XT);});_e194&&(d=parseInt(_e194,10));}d&&(f=!0,D("conversation_ended",{conversation_duration_minutes:Math.round((Date.now()-d)/6e4),messages_count:e}),n||a==null||(t=a.flush)==null||t.call(a),d=null,C(function(){return localStorage.removeItem(XT);}));}}function ge(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;D("direct_support_clicked",e?{conversation_id:e}:{});}function _e(e,t){D("chat_error",{error:t,context:e});}function ve(){p=S(p),m=S(m),h=S(h),g&&(clearInterval(g),g=null),v&&(clearTimeout(v),v=null),oe(),de();}return{init:fe,trackWidgetOpened:O,trackSessionStarted:pe,trackSessionEnded:se,trackConversationStarted:me,trackConversationEnded:he,trackDirectSupportClicked:ge,trackError:_e,destroy:ve};}//#endregion
494
+ var zT=/* @__PURE__ */new WeakMap(),BT=/* @__PURE__ */new WeakMap(),VT=/*#__PURE__*/function(){function VT(e){_classCallCheck(this,VT);N(this,zT,/* @__PURE__ */R(_r([]))),N(this,BT,/* @__PURE__ */R(!1)),D(this,"onMessagesChange",void 0),D(this,"nextId",1),this.onMessagesChange=e;}return _createClass(VT,[{key:"messages",get:function get(){return G(F(zT,this));},set:function set(e){z(F(zT,this),e,!0);}},{key:"isInitialized",get:function get(){return G(F(BT,this));},set:function set(e){z(F(BT,this),e,!0);}},{key:"mount",value:function mount(){this.messages=[],this.isInitialized=!0;}},{key:"hydrate",value:function hydrate(e){this.messages=e.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!(e.followUp||e.surveys)||e.disabled,responseType:e.responseType==="request_screenshot"?void 0:e.responseType});});var t=e.reduce(function(e,t){return Math.max(e,t.id);},0);t>=this.nextId&&(this.nextId=t+1),this.isInitialized=!0;}},{key:"addMessage",value:function addMessage(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!0;var a;var o;i&&e==="assistant"&&(r.responseType==="bonus_oversight"?o=jC:r.responseType==="bonus"?o=MC:r.responseType==="request_ticket_attachments"?o=NC:this.messages.filter(function(e){return e.type==="user";}).length>=2&&(o=AC));var s=_objectSpread({id:this.nextId++,type:e,content:t,timestamp:(0,Ex.default)().toISOString(),isError:n,userId:null,followUp:r.followUp||o,disabled:!1},r);return e==="user"&&(this.messages=this.messages.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!(e.surveys||e.followUp)||e.disabled});})),this.messages.push(s),(a=this.onMessagesChange)==null||a.call(this),s;}},{key:"disableFollowUpButtons",value:function disableFollowUpButtons(){this.messages=this.messages.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!e.followUp||e.disabled});});}},{key:"clearMessages",value:function clearMessages(){var e;this.messages=[],(e=this.onMessagesChange)==null||e.call(this);}},{key:"generateConversationSummary",value:function generateConversationSummary(){if(this.messages.length===0)return"User requested support through chat";var e=_toConsumableArray(this.messages).reverse(),t=e.find(function(e){return e.type==="user";}),n=e.find(function(e){return e.type==="assistant";}),r="";return t&&(r+="User: ".concat(t.content)),n&&(r+=(r?"\n\nZena: ":"Zena: ")+n.content),r||"User requested support through chat";}}]);}(),HT=/* @__PURE__ */new WeakMap(),UT=/*#__PURE__*/function(){function UT(){_classCallCheck(this,UT);N(this,HT,/* @__PURE__ */R(null));}return _createClass(UT,[{key:"conversationId",get:function get(){return G(F(HT,this));},set:function set(e){z(F(HT,this),e,!0);}}]);}(),WT=function WT(_ref48){var e=_ref48.serverUrl,t=_ref48.authToken;var n=cC(e,t);return{fetchAvailableSurveys:function fetchAvailableSurveys(){return n.json.get("users/get_surveys");},checkEligibility:function checkEligibility(e){return n.json.post("users/checkUserEligibility",{surveys:e});}};},GT=function GT(_ref49){var e=_ref49.serverUrl,t=_ref49.authToken;var n=cC(e,t);return{send:function send(e,t,r){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return n.json.post("chat",_objectSpread({message:e,chat_history:t,conversation_id:r},i));},checkEligibility:function checkEligibility(e){return n.json.post("users/checkUserEligibility",{surveys:e});}};},KT=10,qT=5e3,JT=1e3,YT=200,XT=600*1e3,ZT="zena_session_id",QT="zena_session_start_time",$T="zena_conversation_start",eE=["mousedown","mouseup","touchstart","touchend","scroll"];function tE(_ref50){var e=_ref50.posthogKey,t=_ref50.posthogHost,_ref50$nativeApp=_ref50.nativeApp,n=_ref50$nativeApp===void 0?!1:_ref50$nativeApp,_ref50$userId=_ref50.userId,r=_ref50$userId===void 0?null:_ref50$userId,_ref50$inactivityTime=_ref50.inactivityTimeoutMs,i=_ref50$inactivityTime===void 0?XT:_ref50$inactivityTime;var a=null,o=!1,s=null,c=null,l=!1,u=!1,d=null,f=!1,p=null,m=null,h=null,g=null,_=[],v=null,y=!1,b=!1,x={visibilitychange:null,pagehide:null,beforeunload:null};function S(e){return e&&clearTimeout(e),null;}function C(e){try{return e();}catch(e){return null;}}function w(){if(s)return s;var e=C(function(){return localStorage.getItem(ZT);}),t=C(function(){return localStorage.getItem(QT);});return e&&t?(s=e,c=parseInt(t,10)):(s="zena_session_".concat(Date.now(),"_").concat(Math.random().toString(36).slice(2,11)),c=Date.now(),C(function(){return localStorage.setItem(ZT,s);}),C(function(){return localStorage.setItem(QT,String(c));})),s;}function T(){s=null,c=null,l=!1,u=!1,C(function(){return localStorage.removeItem(ZT);}),C(function(){return localStorage.removeItem(QT);}),oe();}function ee(){var e;return n||(typeof window==="undefined"?"undefined":_typeof(window))>"u"?!0:window.cookieyes?((e=window.cookieyes._ckyConsentStore)==null?void 0:e.get("analytics"))==="yes":null;}function E(){var n;if(!e||(typeof window==="undefined"?"undefined":_typeof(window))>"u")return;var i={api_host:t||"https://app.posthog.com",autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,loaded:function loaded(e){a=e,o=!0,r&&a.identify(String(r)),ue();}};if(window.posthog){a=window.posthog,a.__loaded?(o=!0,r&&a.identify(String(r)),ue()):a.init(e,i);return;}var s=document.createElement("script");s.src="".concat(t||"https://app.posthog.com","/static/array.js"),s.async=!0,s.onload=function(){a=window.posthog,a&&a.init(e,i);},s.onerror=function(){return console.error("[zena-chatbot-client] PostHog: failed to load script");},(n=document.head)==null||n.appendChild(s);}function te(){return _te.apply(this,arguments);}function _te(){_te=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19(){var n,_ref51,_ref52,_t149,_t150;return _regenerator().w(function(_context19){while(1)switch(_context19.p=_context19.n){case 0:if(_.length){_context19.n=1;break;}return _context19.a(2);case 1:n=_toConsumableArray(_);_=[],v=S(v);_context19.p=2;_context19.n=3;return fetch("".concat(t||"https://app.posthog.com","/capture/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({api_key:e,batch:n})});case 3:_t149=_context19.v.ok;if(_t149){_context19.n=4;break;}(_ref51=_).unshift.apply(_ref51,_toConsumableArray(n));case 4:_context19.n=6;break;case 5:_context19.p=5;_t150=_context19.v;(_ref52=_).unshift.apply(_ref52,_toConsumableArray(n));case 6:return _context19.a(2);}},_callee19,null,[[2,5]]);}));return _te.apply(this,arguments);}function ne(){v||(v=setTimeout(function(){return te().catch(function(){});},qT));}function D(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!o)return;var i=_objectSpread({session_id:s||w()},t);n?(_.push({event:e,distinct_id:String(r||"anonymous"),properties:i}),_.length>=KT?te().catch(function(){}):ne()):a==null||a.capture(e,i);}function re(){m=S(m),m=setTimeout(function(){p=S(p),o&&l&&s&&(p=setTimeout(function(){l&&se();},i));},JT);}function ie(){!o||!l||re();}function ae(){y||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(eE.forEach(function(e){return document.addEventListener(e,ie,{passive:!0});}),y=!0);}function oe(){!y||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(eE.forEach(function(e){return document.removeEventListener(e,ie);}),y=!1);}function se(){u||h||(h=setTimeout(function(){h=null,ce().catch(function(){});},YT));}function ce(){return _ce.apply(this,arguments);}function _ce(){_ce=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(){var e,t,r,_t151;return _regenerator().w(function(_context20){while(1)switch(_context20.p=_context20.n){case 0:t=s,r=c;if(!(u||!l||!t)){_context20.n=1;break;}T();return _context20.a(2);case 1:if(!(u=!0,l=!1,p=S(p),m=S(m),D("session_ended",{session_duration_minutes:Math.round((Date.now()-(r==null?Date.now():r))/6e4)}),n||a==null||(e=a.flush)==null||e.call(a),n)){_context20.n=5;break;}_context20.p=2;_context20.n=3;return te();case 3:_context20.n=5;break;case 4:_context20.p=4;_t151=_context20.v;case 5:T();case 6:return _context20.a(2);}},_callee20,null,[[2,4]]);}));return _ce.apply(this,arguments);}function le(){var e;l&&ce().catch(function(){}),n||a==null||(e=a.flush)==null||e.call(a),oe(),de();}function ue(){b||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(b=!0,ae(),x.visibilitychange=function(){if(!(!o||!l))if(document.hidden){var e;a==null||(e=a.flush)==null||e.call(a);}else re();},document.addEventListener("visibilitychange",x.visibilitychange),x.pagehide=le,x.beforeunload=le,window.addEventListener("pagehide",le),window.addEventListener("beforeunload",le));}function de(){b&&(x.visibilitychange&&(document.removeEventListener("visibilitychange",x.visibilitychange),x.visibilitychange=null),x.pagehide&&(window.removeEventListener("pagehide",x.pagehide),x.pagehide=null),x.beforeunload&&(window.removeEventListener("beforeunload",x.beforeunload),x.beforeunload=null),b=!1);}function fe(){if(!e)return;if(n){o=!0,ue();return;}var t=ee();if(t===!0){E();return;}if(t===null){var _e193=0;g=setInterval(function(){_e193++,(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.cookieyes?(clearInterval(g),g=null,ee()===!0&&E()):_e193>=10&&(clearInterval(g),g=null,E());},500);}}function O(){D("zena_widget_opened");}function pe(){o&&(w(),l=!0,u=!1,re(),D("session_started"),ae());}function me(){o&&(w(),d=Date.now(),C(function(){return localStorage.setItem($T,String(d));}),f=!1);}function he(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t;if(!(f||!o)){if(!d){var _e194=C(function(){return localStorage.getItem($T);});_e194&&(d=parseInt(_e194,10));}d&&(f=!0,D("conversation_ended",{conversation_duration_minutes:Math.round((Date.now()-d)/6e4),messages_count:e}),n||a==null||(t=a.flush)==null||t.call(a),d=null,C(function(){return localStorage.removeItem($T);}));}}function ge(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;D("direct_support_clicked",e?{conversation_id:e}:{});}function _e(e,t){D("chat_error",{error:t,context:e});}function ve(){p=S(p),m=S(m),h=S(h),g&&(clearInterval(g),g=null),v&&(clearTimeout(v),v=null),oe(),de();}return{init:fe,trackWidgetOpened:O,trackSessionStarted:pe,trackSessionEnded:se,trackConversationStarted:me,trackConversationEnded:he,trackDirectSupportClicked:ge,trackError:_e,destroy:ve};}//#endregion
495
495
  //#region src/services/persistence.service.ts
496
- var $T="zena_chat_state";function eE(){return{loadState:function loadState(){if((typeof window==="undefined"?"undefined":_typeof(window))>"u")return null;try{var e=sessionStorage.getItem($T);return e?JSON.parse(e):null;}catch(e){return vx(e,{context:{extra:{message:"Failed to load state from sessionStorage"}}}),null;}},saveState:function saveState(e){if(!((typeof window==="undefined"?"undefined":_typeof(window))>"u"))try{sessionStorage.setItem($T,JSON.stringify(e));}catch(e){vx(e,{context:{extra:{message:"Failed to save state to sessionStorage"}}});}},clearState:function clearState(){(typeof window==="undefined"?"undefined":_typeof(window))>"u"||sessionStorage.removeItem($T);}};}//#endregion
496
+ var nE="zena_chat_state";function rE(){return{loadState:function loadState(){if((typeof window==="undefined"?"undefined":_typeof(window))>"u")return null;try{var e=sessionStorage.getItem(nE);return e?JSON.parse(e):null;}catch(e){return xx(e,{context:{extra:{message:"Failed to load state from sessionStorage"}}}),null;}},saveState:function saveState(e){if(!((typeof window==="undefined"?"undefined":_typeof(window))>"u"))try{sessionStorage.setItem(nE,JSON.stringify(e));}catch(e){xx(e,{context:{extra:{message:"Failed to save state to sessionStorage"}}});}},clearState:function clearState(){(typeof window==="undefined"?"undefined":_typeof(window))>"u"||sessionStorage.removeItem(nE);}};}//#endregion
497
497
  //#region src/ZenaChatbot.svelte
498
- var tE=/* @__PURE__ */K("<!> <!>",1),nE=/* @__PURE__ */K("<div class=\"zena-chatbot-root svelte-17ug9y\"><div><!> <!></div></div>"),rE={hash:"svelte-17ug9y",code:".svelte-17ug9y {box-sizing:border-box;font-family:inherit;}"};function iE(e,t){st(t,!0),Ha(e,rE);var n=Y(t,"panelistServerUrl",3,""),r=Y(t,"availableSurveyIds",3,"[]"),i=Y(t,"nativeApp",3,!1),a=Y(t,"userId",3,""),o=Y(t,"fabStyle",19,function(){return{};}),s=Y(t,"fabShape",3,"circle"),c=Y(t,"autoSuggestions",19,function(){return[];}),l=Y(t,"defaultOpen",3,!1),u=Y(t,"initialMessage",3,null),d=/* @__PURE__ */R(_r({})),f=/* @__PURE__ */er(function(){return _objectSpread(_objectSpread({},o()),G(d));}),p=/* @__PURE__ */er(function(){return Object.entries(G(f)).map(function(_ref52){var _ref53=_slicedToArray(_ref52,2),e=_ref53[0],t=_ref53[1];return"".concat(e,":").concat(t);}).join(";");}),m=eE();function h(){var e=g.messages.filter(function(e){return e.type==="user";}).length;g.messages.length===0&&!_.conversationId?m.clearState():m.saveState({messages:g.messages,conversationId:_.conversationId,messagesCount:e});}var g=new RT(h),_=new BT(),v=/* @__PURE__ */er(function(){return t.zenaServerUrl&&t.authToken?HT({serverUrl:t.zenaServerUrl,authToken:t.authToken}):null;}),y=/* @__PURE__ */er(function(){return n()&&t.authToken?VT({serverUrl:n(),authToken:t.authToken}):null;}),b=/* @__PURE__ */er(function(){return t.zenaServerUrl&&t.authToken?sC({serverUrl:t.zenaServerUrl,authToken:t.authToken}):null;}),x=null;Rx(function(){return G(b);}),Bx(function(){return _.conversationId;});var S=/* @__PURE__ */R(_r(l())),C=/* @__PURE__ */R(!1),w=/* @__PURE__ */R(!1),T=null,ee=/* @__PURE__ */R(null),E=/* @__PURE__ */R(_r([])),te=/* @__PURE__ */R(!1);Vo(function(){var e,n;nC(i());var o=m.loadState();o?(g.hydrate(o.messages),_.conversationId=o.conversationId):g.mount();var s=(e=u())==null||(e=e.text)==null?void 0:e.trim();s&&pe(s);var c=function(){try{return JSON.parse(r()).length>0;}catch(e){return!1;}}();G(y)&&!c&&G(y).fetchAvailableSurveys().then(function(e){var t;z(E,(t=e==null?void 0:e.surveys)==null?[]:t,!0),z(te,!0);}).catch(function(e){vx(e,{context:{extra:{message:"fetchAvailableSurveys failed"}}});}),t.element&&(t.element._registerCloseHandler(function(){z(S,!1);}),t.element._registerSummaryHandler(function(){return g.generateConversationSummary();}),t.element._registerFabStyleHandler(function(e){z(d,e,!0);})),t.posthogKey&&(x=QT({posthogKey:t.posthogKey,posthogHost:t.posthogHost,nativeApp:i(),userId:a()||null}),x.init()),l()&&(x==null||x.trackWidgetOpened(),x==null||x.trackSessionStarted());var f=(n=t.element)==null?void 0:n.shadowRoot,p=function p(e){if(!G(S))return;var t=e.composedPath();f&&!t.includes(f)&&z(S,!1);};return document.addEventListener("click",p,!0),function(){if(document.removeEventListener("click",p,!0),T&&(clearTimeout(T),T=null),x){var _e195=g.messages.filter(function(e){return e.type==="user";}).length;_e195>0&&x.trackConversationEnded(_e195),x.destroy();}};}),Wr(function(){if(!((typeof document==="undefined"?"undefined":_typeof(document))>"u"))return document.body.style.overflow=G(S)?"hidden":"",function(){document.body.style.overflow="";};}),Wr(function(){G(S)||ie();});function ne(){var e=!G(S);z(S,e),e&&(x==null||x.trackWidgetOpened(),x==null||x.trackSessionStarted());}function D(){z(S,!1);}function re(){var e=g.messages.filter(function(e){return e.type==="user";}).length;e>0&&(x==null||x.trackConversationEnded(e)),g.clearMessages(),_.conversationId=null,z(ee,null),m.clearState(),ie();}function ie(){z(w,!1),T&&(clearTimeout(T),T=null);}function ae(e){var n;(n=t.element)==null||n.emit("stuck-survey-selected",{survey:e});}function oe(_x87){return _oe.apply(this,arguments);}function _oe(){_oe=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(e){return _regenerator().w(function(_context20){while(1)switch(_context20.n){case 0:return _context20.a(2,t.element?new Promise(function(n){var r=!1,i=setTimeout(function(){r||n({});},4e3);t.element.emit("before-send",{message:e,resolve:function resolve(e){r||(r=!0,clearTimeout(i),n(e||{}));}});}):{});}},_callee20);}));return _oe.apply(this,arguments);}function se(e){if(!e)return!1;if(G(te)&&G(E).length>0)return G(E).some(function(t){var n;return String((n=t.survey)==null?void 0:n.id)===String(e);});try{return JSON.parse(r()).some(function(t){return t&&_typeof(t)=="object"?String(t.survey_id)===String(e):String(t)===String(e);});}catch(e){return!1;}}function ce(_x88){return _ce2.apply(this,arguments);}function _ce2(){_ce2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee21(e){var t,n,r;return _regenerator().w(function(_context21){while(1)switch(_context21.n){case 0:t=G(y)||G(v);if(!(!t||!e.length)){_context21.n=1;break;}return _context21.a(2,e);case 1:n=e.map(function(e){var t;return{survey_id:Number((t=e.survey_id)==null?e.id:t),wave_id:Number(e.wave_id)};});_context21.n=2;return t.checkEligibility(n);case 2:r=_context21.v;return _context21.a(2,r!=null&&r.eligibility?e.map(function(e){var t;var n="".concat(Number((t=e.survey_id)==null?e.id:t)).concat(e.wave_id),i=r.eligibility[n];if(i===void 0)return e;var a=e.status;return a!=null&&a.toLowerCase().includes("available")&&(a=i?"Survey is available":"Survey currently not available"),_objectSpread(_objectSpread({},e),{},{status:a});}):e);}},_callee21);}));return _ce2.apply(this,arguments);}function le(_x89){return _le.apply(this,arguments);}function _le(){_le=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(e){var t,_n99;return _regenerator().w(function(_context22){while(1)switch(_context22.n){case 0:if(!(e.response_type==="stuck_survey_dropdown")){_context22.n=1;break;}g.addMessage("assistant",e.response,!1,{surveys:e.surveys,responseType:"stuck"},!1);_context22.n=4;break;case 1:if(!(e.response_type==="survey_dropdown")){_context22.n=3;break;}_context22.n=2;return ce((t=e.surveys)==null?[]:t);case 2:_n99=_context22.v;g.addMessage("assistant",e.response,!1,{surveys:_n99,responseType:"available"},!1);_context22.n=4;break;case 3:e.response_type==="bonus_survey_dropdown"?g.addMessage("assistant",e.response,!1,{surveys:e.surveys,responseType:"bonus"},!1):e.response_type==="request_ticket_attachments"?g.addMessage("assistant",e.response,!1,{responseType:"request_ticket_attachments"}):e.response_type==="request_screenshot"?(g.disableFollowUpButtons(),g.addMessage("assistant",e.response,!1,{responseType:"request_screenshot"},!1)):e.response_type==="support_ticket_created"?g.addMessage("assistant",e.response,!1,{responseType:"support_ticket_created"},!1):g.addMessage("assistant",e.response||"I apologize, but I encountered an issue processing your request.");case 4:return _context22.a(2);}},_callee22);}));return _le.apply(this,arguments);}function ue(_x90){return _ue.apply(this,arguments);}function _ue(){_ue=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(e){var t,n,r,i,_e197,_args22=arguments,_t151;return _regenerator().w(function(_context23){while(1)switch(_context23.p=_context23.n){case 0:t=_args22.length>1&&_args22[1]!==undefined?_args22[1]:null;n=_args22.length>2&&_args22[2]!==undefined?_args22[2]:null;r="CREATE_SUPPORT_TICKET: ".concat(e,", DESCRIPTION: ").concat(g.generateConversationSummary());t&&(r+=", NOTES: ".concat(JSON.stringify(t,null,2))),n&&(r+=", MESSAGE: ".concat(n));_context23.n=1;return oe(r);case 1:i=_context23.v;if(G(v)){_context23.n=2;break;}return _context23.a(2,!1);case 2:z(C,!0);_context23.p=3;_context23.n=4;return G(v).send(r,fe(),_.conversationId,i);case 4:_e197=_context23.v;return _context23.a(2,(de(_e197),_e197.response_type==="request_ticket_attachments"?g.addMessage("assistant",_e197.response,!1,{responseType:"request_ticket_attachments"}):_e197.response_type==="request_screenshot"?g.addMessage("assistant",_e197.response,!1,{responseType:"request_screenshot"},!1):g.addMessage("assistant",_e197.response,!1,{},!1),!0));case 5:_context23.p=5;_t151=_context23.v;return _context23.a(2,(x==null||x.trackError("createSupportTicket",_t151==null?void 0:_t151.message),g.addMessage("assistant","There was an issue creating your support ticket. Please try again.",!0),!1));case 6:_context23.p=6;z(C,!1);return _context23.f(6);case 7:return _context23.a(2);}},_callee23,null,[[3,5,6,7]]);}));return _ue.apply(this,arguments);}function de(e){e.conversation_id&&(_.conversationId=e.conversation_id);}function fe(){return g.messages.filter(function(e){return e.content.trim().length>0;}).map(function(e){return{role:e.type==="user"?"user":"assistant",content:e.content};});}function O(_x91,_x92){return _O.apply(this,arguments);}function _O(){_O=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee24(e,t){var n,r,_r89,_args23=arguments,_t152;return _regenerator().w(function(_context24){while(1)switch(_context24.p=_context24.n){case 0:n=_args23.length>2&&_args23[2]!==undefined?_args23[2]:{};r=_args23.length>3&&_args23[3]!==undefined?_args23[3]:"sendMessage";if(!G(v)){_context24.n=6;break;}z(C,!0);_context24.p=1;_context24.n=2;return G(v).send(e,t,_.conversationId,n);case 2:_r89=_context24.v;de(_r89);_context24.n=3;return le(_r89);case 3:_context24.n=5;break;case 4:_context24.p=4;_t152=_context24.v;x==null||x.trackError(r,_t152==null?void 0:_t152.message),g.addMessage("assistant","I'm having trouble connecting right now. Please try again in a moment.",!0);case 5:_context24.p=5;z(C,!1);return _context24.f(5);case 6:return _context24.a(2);}},_callee24,null,[[1,4,5,6]]);}));return _O.apply(this,arguments);}function pe(_x93){return _pe.apply(this,arguments);}function _pe(){_pe=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee25(e){var _t153,_t154,_t155,_t156;return _regenerator().w(function(_context25){while(1)switch(_context25.n){case 0:_t153=!G(v)||G(C);if(_t153){_context25.n=2;break;}_t154=O;_t155=e;_t156=fe();_context25.n=1;return oe(e);case 1:_context25.n=2;return _t154(_t155,_t156,_context25.v,"sendInitialTrigger");case 2:return _context25.a(2);}},_callee25);}));return _pe.apply(this,arguments);}function me(_x94){return _me.apply(this,arguments);}function _me(){_me=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(e){var t,_t157,_t158,_t159;return _regenerator().w(function(_context26){while(1)switch(_context26.n){case 0:if(!(!e.trim()||G(C))){_context26.n=1;break;}return _context26.a(2);case 1:g.messages.filter(function(e){return e.type==="user";}).length===0&&(x==null||x.trackConversationStarted());t=fe();z(C,!0);g.addMessage("user",e);_t157=O;_t158=e;_t159=t;_context26.n=2;return oe(e);case 2:_context26.n=3;return _t157(_t158,_t159,_context26.v,"sendMessage");case 3:return _context26.a(2);}},_callee26);}));return _me.apply(this,arguments);}function he(){return _he.apply(this,arguments);}function _he(){_he=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee27(){var e,t,n,r,i,_args26=arguments;return _regenerator().w(function(_context27){while(1)switch(_context27.n){case 0:e=_args26.length>0&&_args26[0]!==undefined?_args26[0]:[];t=Array.isArray(e)?e:[],n=t.length>0,r=n?"Create ticket with supporting files.":"I do not have supporting files. Please continue creating the ticket.";if(n){_context27.n=1;break;}me(r);return _context27.a(2);case 1:i=fe();g.addMessage("user","",!1,{attachmentIds:t},!1);_context27.n=2;return O(r,i,{attachment_ids:t},"handleAttachmentFlow");case 2:return _context27.a(2);}},_callee27);}));return _he.apply(this,arguments);}function ge(){return _ge.apply(this,arguments);}function _ge(){_ge=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee28(){var e,t,n,r,_args27=arguments;return _regenerator().w(function(_context28){while(1)switch(_context28.n){case 0:e=_args27.length>0&&_args27[0]!==undefined?_args27[0]:[];t=Array.isArray(e)?e:[],n=t.length>0,r=n?"Here is the screenshot of my current screen.":"I am unable to provide a screenshot. Please continue.";if(n){_context28.n=1;break;}me(r);return _context28.a(2);case 1:g.addMessage("assistant","",!1,{attachmentIds:t},!1);_context28.n=2;return O(r,fe(),{attachment_ids:t},"handleScreenshotFlow");case 2:return _context28.a(2);}},_callee28);}));return _ge.apply(this,arguments);}function _e(e){e.type==="follow-up"?ve(e.suggestion):e.type==="survey-select"?ye(e.survey,e.responseType):e.type==="attachment-flow"?he(e.attachmentIds):e.type==="screenshot-flow"&&ge(e.attachmentIds);}function ve(_x95){return _ve.apply(this,arguments);}function _ve(){_ve=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29(e){return _regenerator().w(function(_context29){while(1)switch(_context29.n){case 0:if(!(g.disableFollowUpButtons(),e===DC[0])){_context29.n=1;break;}g.addMessage("assistant","Thank you for using Zena!",!1,{},!1);return _context29.a(2);case 1:if(!(e==="Get Support from Our Team")){_context29.n=3;break;}x==null||x.trackDirectSupportClicked(_.conversationId);g.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context29.n=2;return ue("General Support Request");case 2:return _context29.a(2);case 3:if(!(e===OC[0]||e===kC[0])){_context29.n=5;break;}g.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context29.n=4;return ue("Question About My Survey Bonus",G(ee));case 4:return _context29.a(2);case 5:if(!(e==="No, that's okay")){_context29.n=6;break;}g.addMessage("assistant","No problem! Let me know if you need anything else.",!1,{},!1);return _context29.a(2);case 6:_context29.n=7;return me(e);case 7:return _context29.a(2);}},_callee29);}));return _ve.apply(this,arguments);}function ye(_x96,_x97){return _ye.apply(this,arguments);}function _ye(){_ye=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee30(e,t){var _t160,_n100,_r90,n,_t161,_n101,r,i,_a19,_t162;return _regenerator().w(function(_context30){while(1)switch(_context30.p=_context30.n){case 0:if(G(C)||!G(v)){_context30.n=21;break;}g.addMessage("user",e.name),z(C,!0);_context30.p=1;if(!(t==="bonus")){_context30.n=5;break;}z(ee,e,!0);_t160="CHECK_BONUS_STATUS: ".concat(JSON.stringify({action:"check_bonus",survey_id:e.survey_id,wave_id:e.wave_id,users_wave_id:e.users_wave_id,name:e.name,completed_date:e.completed_date,completion_status:e.completion_status}));_context30.n=2;return oe(_t160);case 2:_n100=_context30.v;_context30.n=3;return G(v).send(_t160,fe(),_.conversationId,_n100);case 3:_r90=_context30.v;if(!(de(_r90),!_r90.response)){_context30.n=4;break;}g.addMessage("assistant","Could not fetch bonus details. Please try again.",!0);return _context30.a(2);case 4:_r90.response_type==="bonus_oversight_check"?(_r90.survey_info&&z(ee,_r90.survey_info,!0),g.addMessage("assistant",_r90.response,!1,{surveys:_r90.surveys_info,responseType:"bonus_oversight"})):g.addMessage("assistant",_r90.response,!1,{responseType:"bonus"});return _context30.a(2);case 5:if(!(t==="stuck")){_context30.n=8;break;}if(!se((n=e.survey_id)==null?e.id:n)){_context30.n=6;break;}z(w,!0),T&&clearTimeout(T),T=setTimeout(ie,15e3),ae(e);return _context30.a(2);case 6:g.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context30.n=7;return ue("Help with survey progress",e);case 7:return _context30.a(2);case 8:if(!(t==="available")){_context30.n=15;break;}_t161=e.name,_n101=e.status;if(!(_n101==="Survey Paused")){_context30.n=9;break;}g.addMessage("assistant","We apologize for the inconvenience. This survey is currently paused and temporarily unavailable. Don't worry — your progress has been saved! We'll notify you as soon as the survey resumes so you can continue from where you left off.",!1,{},!1);return _context30.a(2);case 9:if(!(_n101==="Survey Ended")){_context30.n=10;break;}g.addMessage("assistant","The survey has ended and is no longer available for participation.",!1,{},!1);return _context30.a(2);case 10:if(!(_n101==="Survey currently not available")){_context30.n=11;break;}g.addMessage("assistant","Sorry, this survey is not available for you right now. Please keep an eye on your campaigns and survey dashboard for new earning opportunities. We'll always notify you when we have surveys that match your profile!",!1,{},!1);return _context30.a(2);case 11:if(!(_n101==="Survey is available")){_context30.n=14;break;}if(!se((r=e.survey_id)==null?e.id:r)){_context30.n=12;break;}g.addMessage("assistant","Good news! Your survey is available on your dashboard. The link you clicked may have expired, but you can easily access it directly from your dashboard. Survey Name: \"".concat(_t161,"\". Please visit your dashboard to continue with this survey. Thank you!"),!1,{},!1);_context30.n=13;break;case 12:g.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context30.n=13;return ue("Help with Survey Link/Access Issue",e,"We apologize for the technical difficulties you're experiencing. We've automatically created a support ticket for you and our team will get back to you within 48 business hours to resolve this issue. Thank you for your patience!");case 13:return _context30.a(2);case 14:g.addMessage("assistant","Survey \"".concat(_t161,"\" status: ").concat(_n101,". Please contact support for assistance."),!1,{},!1);return _context30.a(2);case 15:_context30.n=16;return oe(e.name);case 16:i=_context30.v;_context30.n=17;return G(v).send(e.name,fe(),_.conversationId,i);case 17:_a19=_context30.v;de(_a19);_context30.n=18;return le(_a19);case 18:_context30.n=20;break;case 19:_context30.p=19;_t162=_context30.v;x==null||x.trackError("handleSurveySelect",_t162==null?void 0:_t162.message),g.addMessage("assistant","An error occurred while processing your request.",!0);case 20:_context30.p=20;z(C,!1);return _context30.f(20);case 21:return _context30.a(2);}},_callee30,null,[[1,19,20,21]]);}));return _ye.apply(this,arguments);}var be=nE(),xe=B(be),Se=B(xe);ps(Se,{get isOpen(){return G(S);},onClose:D,onReset:re,get fabShape(){return s();},children:function children(e,t){var n=tE(),r=Or(n),i=function i(e){AT(e,{onClick:me,get prioritySuggestions(){return c();}});},a=function a(e){wT(e,{get messages(){return g.messages;},get isLoading(){return G(C);},get isRedirecting(){return G(w);},onAction:_e});};J(r,function(e){g.messages.length===0?e(i):e(a,-1);});var o=V(r,2);{var _e196=/* @__PURE__ */er(function(){return G(C)||G(w);});DT(o,{onSend:me,get disabled(){return G(_e196);}});}q(e,n);},$$slots:{default:!0}}),FT(V(Se,2),{onClick:ne,get isOpen(){return G(S);},get shape(){return s();}}),j(xe),j(be),H(function(){Qa(xe,1,s()==="rectangle"?"fixed right-0 bottom-0 h-fit z-[100] flex items-center":"fixed bottom-4 right-4 md:bottom-6 md:right-6 z-[100] flex items-end","svelte-17ug9y"),eo(xe,G(p));}),q(e,be),ct();}//#endregion
498
+ var iE=/* @__PURE__ */K("<!> <!>",1),aE=/* @__PURE__ */K("<div class=\"zena-chatbot-root svelte-17ug9y\"><div><!> <!></div></div>"),oE={hash:"svelte-17ug9y",code:".svelte-17ug9y {box-sizing:border-box;font-family:inherit;}"};function sE(e,t){st(t,!0),Ha(e,oE);var n=Y(t,"panelistServerUrl",3,""),r=Y(t,"availableSurveyIds",3,"[]"),i=Y(t,"nativeApp",3,!1),a=Y(t,"userId",3,""),o=Y(t,"fabStyle",19,function(){return{};}),s=Y(t,"fabShape",3,"circle"),c=Y(t,"autoSuggestions",19,function(){return[];}),l=Y(t,"defaultOpen",3,!1),u=Y(t,"initialMessage",3,null),d=/* @__PURE__ */R(_r({})),f=/* @__PURE__ */er(function(){return _objectSpread(_objectSpread({},o()),G(d));}),p=/* @__PURE__ */er(function(){return Object.entries(G(f)).map(function(_ref53){var _ref54=_slicedToArray(_ref53,2),e=_ref54[0],t=_ref54[1];return"".concat(e,":").concat(t);}).join(";");}),m=rE();function h(){var e=g.messages.filter(function(e){return e.type==="user";}).length;g.messages.length===0&&!_.conversationId?m.clearState():m.saveState({messages:g.messages,conversationId:_.conversationId,messagesCount:e});}var g=new VT(h),_=new UT(),v=/* @__PURE__ */er(function(){return t.zenaServerUrl&&t.authToken?GT({serverUrl:t.zenaServerUrl,authToken:t.authToken}):null;}),y=/* @__PURE__ */er(function(){return n()&&t.authToken?WT({serverUrl:n(),authToken:t.authToken}):null;}),b=/* @__PURE__ */er(function(){return t.zenaServerUrl&&t.authToken?uC({serverUrl:t.zenaServerUrl,authToken:t.authToken}):null;}),x=null;Vx(function(){return G(b);}),Ux(function(){return _.conversationId;});var S=/* @__PURE__ */R(_r(l())),C=/* @__PURE__ */R(!1),w=/* @__PURE__ */R(!1),T=null,ee=/* @__PURE__ */R(null),E=/* @__PURE__ */R(_r([])),te=/* @__PURE__ */R(!1);Vo(function(){var e,n;aC(i());var o=m.loadState();o?(g.hydrate(o.messages),_.conversationId=o.conversationId):g.mount();var s=(e=u())==null||(e=e.text)==null?void 0:e.trim();s&&pe(s);var c=function(){try{return JSON.parse(r()).length>0;}catch(e){return!1;}}();G(y)&&!c&&G(y).fetchAvailableSurveys().then(function(e){var t;z(E,(t=e==null?void 0:e.surveys)==null?[]:t,!0),z(te,!0);}).catch(function(e){xx(e,{context:{extra:{message:"fetchAvailableSurveys failed"}}});}),t.element&&(t.element._registerCloseHandler(function(){z(S,!1);}),t.element._registerSummaryHandler(function(){return g.generateConversationSummary();}),t.element._registerFabStyleHandler(function(e){z(d,e,!0);})),t.posthogKey&&(x=tE({posthogKey:t.posthogKey,posthogHost:t.posthogHost,nativeApp:i(),userId:a()||null}),x.init()),l()&&(x==null||x.trackWidgetOpened(),x==null||x.trackSessionStarted());var f=(n=t.element)==null?void 0:n.shadowRoot,p=function p(e){if(!G(S))return;var t=e.composedPath();f&&!t.includes(f)&&z(S,!1);};return document.addEventListener("click",p,!0),function(){if(document.removeEventListener("click",p,!0),T&&(clearTimeout(T),T=null),x){var _e195=g.messages.filter(function(e){return e.type==="user";}).length;_e195>0&&x.trackConversationEnded(_e195),x.destroy();}};}),Wr(function(){if(!((typeof document==="undefined"?"undefined":_typeof(document))>"u"))return document.body.style.overflow=G(S)?"hidden":"",function(){document.body.style.overflow="";};}),Wr(function(){G(S)||ie();});function ne(){var e=!G(S);z(S,e),e&&(x==null||x.trackWidgetOpened(),x==null||x.trackSessionStarted());}function D(){z(S,!1);}function re(){var e=g.messages.filter(function(e){return e.type==="user";}).length;e>0&&(x==null||x.trackConversationEnded(e)),g.clearMessages(),_.conversationId=null,z(ee,null),m.clearState(),ie();}function ie(){z(w,!1),T&&(clearTimeout(T),T=null);}function ae(e){var n;(n=t.element)==null||n.emit("stuck-survey-selected",{survey:e});}function oe(_x88){return _oe.apply(this,arguments);}function _oe(){_oe=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee21(e){return _regenerator().w(function(_context21){while(1)switch(_context21.n){case 0:return _context21.a(2,t.element?new Promise(function(n){var r=!1,i=setTimeout(function(){r||n({});},4e3);t.element.emit("before-send",{message:e,resolve:function resolve(e){r||(r=!0,clearTimeout(i),n(e||{}));}});}):{});}},_callee21);}));return _oe.apply(this,arguments);}function se(e){if(!e)return!1;if(G(te)&&G(E).length>0)return G(E).some(function(t){var n;return String((n=t.survey)==null?void 0:n.id)===String(e);});try{return JSON.parse(r()).some(function(t){return t&&_typeof(t)=="object"?String(t.survey_id)===String(e):String(t)===String(e);});}catch(e){return!1;}}function ce(_x89){return _ce2.apply(this,arguments);}function _ce2(){_ce2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(e){var t,n,r;return _regenerator().w(function(_context22){while(1)switch(_context22.n){case 0:t=G(y)||G(v);if(!(!t||!e.length)){_context22.n=1;break;}return _context22.a(2,e);case 1:n=e.map(function(e){var t;return{survey_id:Number((t=e.survey_id)==null?e.id:t),wave_id:Number(e.wave_id)};});_context22.n=2;return t.checkEligibility(n);case 2:r=_context22.v;return _context22.a(2,r!=null&&r.eligibility?e.map(function(e){var t;var n="".concat(Number((t=e.survey_id)==null?e.id:t)).concat(e.wave_id),i=r.eligibility[n];if(i===void 0)return e;var a=e.status;return a!=null&&a.toLowerCase().includes("available")&&(a=i?"Survey is available":"Survey currently not available"),_objectSpread(_objectSpread({},e),{},{status:a});}):e);}},_callee22);}));return _ce2.apply(this,arguments);}function le(_x90){return _le.apply(this,arguments);}function _le(){_le=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(e){var t,_n99;return _regenerator().w(function(_context23){while(1)switch(_context23.n){case 0:if(!(e.response_type==="stuck_survey_dropdown")){_context23.n=1;break;}g.addMessage("assistant",e.response,!1,{surveys:e.surveys,responseType:"stuck"},!1);_context23.n=4;break;case 1:if(!(e.response_type==="survey_dropdown")){_context23.n=3;break;}_context23.n=2;return ce((t=e.surveys)==null?[]:t);case 2:_n99=_context23.v;g.addMessage("assistant",e.response,!1,{surveys:_n99,responseType:"available"},!1);_context23.n=4;break;case 3:e.response_type==="bonus_survey_dropdown"?g.addMessage("assistant",e.response,!1,{surveys:e.surveys,responseType:"bonus"},!1):e.response_type==="request_ticket_attachments"?g.addMessage("assistant",e.response,!1,{responseType:"request_ticket_attachments"}):e.response_type==="request_screenshot"?(g.disableFollowUpButtons(),g.addMessage("assistant",e.response,!1,{responseType:"request_screenshot"},!1)):e.response_type==="support_ticket_created"?g.addMessage("assistant",e.response,!1,{responseType:"support_ticket_created"},!1):g.addMessage("assistant",e.response||"I apologize, but I encountered an issue processing your request.");case 4:return _context23.a(2);}},_callee23);}));return _le.apply(this,arguments);}function ue(_x91){return _ue.apply(this,arguments);}function _ue(){_ue=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee24(e){var t,n,r,i,_e197,_args23=arguments,_t152;return _regenerator().w(function(_context24){while(1)switch(_context24.p=_context24.n){case 0:t=_args23.length>1&&_args23[1]!==undefined?_args23[1]:null;n=_args23.length>2&&_args23[2]!==undefined?_args23[2]:null;r="CREATE_SUPPORT_TICKET: ".concat(e,", DESCRIPTION: ").concat(g.generateConversationSummary());t&&(r+=", NOTES: ".concat(JSON.stringify(t,null,2))),n&&(r+=", MESSAGE: ".concat(n));_context24.n=1;return oe(r);case 1:i=_context24.v;if(G(v)){_context24.n=2;break;}return _context24.a(2,!1);case 2:z(C,!0);_context24.p=3;_context24.n=4;return G(v).send(r,fe(),_.conversationId,i);case 4:_e197=_context24.v;return _context24.a(2,(de(_e197),_e197.response_type==="request_ticket_attachments"?g.addMessage("assistant",_e197.response,!1,{responseType:"request_ticket_attachments"}):_e197.response_type==="request_screenshot"?g.addMessage("assistant",_e197.response,!1,{responseType:"request_screenshot"},!1):g.addMessage("assistant",_e197.response,!1,{},!1),!0));case 5:_context24.p=5;_t152=_context24.v;return _context24.a(2,(x==null||x.trackError("createSupportTicket",_t152==null?void 0:_t152.message),g.addMessage("assistant","There was an issue creating your support ticket. Please try again.",!0),!1));case 6:_context24.p=6;z(C,!1);return _context24.f(6);case 7:return _context24.a(2);}},_callee24,null,[[3,5,6,7]]);}));return _ue.apply(this,arguments);}function de(e){e.conversation_id&&(_.conversationId=e.conversation_id);}function fe(){return g.messages.filter(function(e){return e.content.trim().length>0;}).map(function(e){return{role:e.type==="user"?"user":"assistant",content:e.content};});}function O(_x92,_x93){return _O.apply(this,arguments);}function _O(){_O=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee25(e,t){var n,r,_r89,_args24=arguments,_t153;return _regenerator().w(function(_context25){while(1)switch(_context25.p=_context25.n){case 0:n=_args24.length>2&&_args24[2]!==undefined?_args24[2]:{};r=_args24.length>3&&_args24[3]!==undefined?_args24[3]:"sendMessage";if(!G(v)){_context25.n=6;break;}z(C,!0);_context25.p=1;_context25.n=2;return G(v).send(e,t,_.conversationId,n);case 2:_r89=_context25.v;de(_r89);_context25.n=3;return le(_r89);case 3:_context25.n=5;break;case 4:_context25.p=4;_t153=_context25.v;x==null||x.trackError(r,_t153==null?void 0:_t153.message),g.addMessage("assistant","I'm having trouble connecting right now. Please try again in a moment.",!0);case 5:_context25.p=5;z(C,!1);return _context25.f(5);case 6:return _context25.a(2);}},_callee25,null,[[1,4,5,6]]);}));return _O.apply(this,arguments);}function pe(_x94){return _pe.apply(this,arguments);}function _pe(){_pe=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(e){var _t154,_t155,_t156,_t157;return _regenerator().w(function(_context26){while(1)switch(_context26.n){case 0:_t154=!G(v)||G(C);if(_t154){_context26.n=2;break;}_t155=O;_t156=e;_t157=fe();_context26.n=1;return oe(e);case 1:_context26.n=2;return _t155(_t156,_t157,_context26.v,"sendInitialTrigger");case 2:return _context26.a(2);}},_callee26);}));return _pe.apply(this,arguments);}function me(_x95){return _me.apply(this,arguments);}function _me(){_me=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee27(e){var t,_t158,_t159,_t160;return _regenerator().w(function(_context27){while(1)switch(_context27.n){case 0:if(!(!e.trim()||G(C))){_context27.n=1;break;}return _context27.a(2);case 1:g.messages.filter(function(e){return e.type==="user";}).length===0&&(x==null||x.trackConversationStarted());t=fe();z(C,!0);g.addMessage("user",e);_t158=O;_t159=e;_t160=t;_context27.n=2;return oe(e);case 2:_context27.n=3;return _t158(_t159,_t160,_context27.v,"sendMessage");case 3:return _context27.a(2);}},_callee27);}));return _me.apply(this,arguments);}function he(){return _he.apply(this,arguments);}function _he(){_he=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee28(){var e,t,n,r,i,_args27=arguments;return _regenerator().w(function(_context28){while(1)switch(_context28.n){case 0:e=_args27.length>0&&_args27[0]!==undefined?_args27[0]:[];t=Array.isArray(e)?e:[],n=t.length>0,r=n?"Create ticket with supporting files.":"I do not have supporting files. Please continue creating the ticket.";if(n){_context28.n=1;break;}me(r);return _context28.a(2);case 1:i=fe();g.addMessage("user","",!1,{attachmentIds:t},!1);_context28.n=2;return O(r,i,{attachment_ids:t},"handleAttachmentFlow");case 2:return _context28.a(2);}},_callee28);}));return _he.apply(this,arguments);}function ge(){return _ge.apply(this,arguments);}function _ge(){_ge=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29(){var e,t,n,r,_args28=arguments;return _regenerator().w(function(_context29){while(1)switch(_context29.n){case 0:e=_args28.length>0&&_args28[0]!==undefined?_args28[0]:[];t=Array.isArray(e)?e:[],n=t.length>0,r=n?"Here is the screenshot of my current screen.":"I am unable to provide a screenshot. Please continue.";if(n){_context29.n=1;break;}me(r);return _context29.a(2);case 1:g.addMessage("assistant","",!1,{attachmentIds:t},!1);_context29.n=2;return O(r,fe(),{attachment_ids:t},"handleScreenshotFlow");case 2:return _context29.a(2);}},_callee29);}));return _ge.apply(this,arguments);}function _e(e){e.type==="follow-up"?ve(e.suggestion):e.type==="survey-select"?ye(e.survey,e.responseType):e.type==="attachment-flow"?he(e.attachmentIds):e.type==="screenshot-flow"&&ge(e.attachmentIds);}function ve(_x96){return _ve.apply(this,arguments);}function _ve(){_ve=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee30(e){return _regenerator().w(function(_context30){while(1)switch(_context30.n){case 0:if(!(g.disableFollowUpButtons(),e===AC[0])){_context30.n=1;break;}g.addMessage("assistant","Thank you for using Zena!",!1,{},!1);return _context30.a(2);case 1:if(!(e==="Get Support from Our Team")){_context30.n=3;break;}x==null||x.trackDirectSupportClicked(_.conversationId);g.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context30.n=2;return ue("General Support Request");case 2:return _context30.a(2);case 3:if(!(e===jC[0]||e===MC[0])){_context30.n=5;break;}g.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context30.n=4;return ue("Question About My Survey Bonus",G(ee));case 4:return _context30.a(2);case 5:if(!(e==="No, that's okay")){_context30.n=6;break;}g.addMessage("assistant","No problem! Let me know if you need anything else.",!1,{},!1);return _context30.a(2);case 6:_context30.n=7;return me(e);case 7:return _context30.a(2);}},_callee30);}));return _ve.apply(this,arguments);}function ye(_x97,_x98){return _ye.apply(this,arguments);}function _ye(){_ye=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee31(e,t){var _t161,_n100,_r90,n,_t162,_n101,r,i,_a19,_t163;return _regenerator().w(function(_context31){while(1)switch(_context31.p=_context31.n){case 0:if(G(C)||!G(v)){_context31.n=21;break;}g.addMessage("user",e.name),z(C,!0);_context31.p=1;if(!(t==="bonus")){_context31.n=5;break;}z(ee,e,!0);_t161="CHECK_BONUS_STATUS: ".concat(JSON.stringify({action:"check_bonus",survey_id:e.survey_id,wave_id:e.wave_id,users_wave_id:e.users_wave_id,name:e.name,completed_date:e.completed_date,completion_status:e.completion_status}));_context31.n=2;return oe(_t161);case 2:_n100=_context31.v;_context31.n=3;return G(v).send(_t161,fe(),_.conversationId,_n100);case 3:_r90=_context31.v;if(!(de(_r90),!_r90.response)){_context31.n=4;break;}g.addMessage("assistant","Could not fetch bonus details. Please try again.",!0);return _context31.a(2);case 4:_r90.response_type==="bonus_oversight_check"?(_r90.survey_info&&z(ee,_r90.survey_info,!0),g.addMessage("assistant",_r90.response,!1,{surveys:_r90.surveys_info,responseType:"bonus_oversight"})):g.addMessage("assistant",_r90.response,!1,{responseType:"bonus"});return _context31.a(2);case 5:if(!(t==="stuck")){_context31.n=8;break;}if(!se((n=e.survey_id)==null?e.id:n)){_context31.n=6;break;}z(w,!0),T&&clearTimeout(T),T=setTimeout(ie,15e3),ae(e);return _context31.a(2);case 6:g.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context31.n=7;return ue("Help with survey progress",e);case 7:return _context31.a(2);case 8:if(!(t==="available")){_context31.n=15;break;}_t162=e.name,_n101=e.status;if(!(_n101==="Survey Paused")){_context31.n=9;break;}g.addMessage("assistant","We apologize for the inconvenience. This survey is currently paused and temporarily unavailable. Don't worry — your progress has been saved! We'll notify you as soon as the survey resumes so you can continue from where you left off.",!1,{},!1);return _context31.a(2);case 9:if(!(_n101==="Survey Ended")){_context31.n=10;break;}g.addMessage("assistant","The survey has ended and is no longer available for participation.",!1,{},!1);return _context31.a(2);case 10:if(!(_n101==="Survey currently not available")){_context31.n=11;break;}g.addMessage("assistant","Sorry, this survey is not available for you right now. Please keep an eye on your campaigns and survey dashboard for new earning opportunities. We'll always notify you when we have surveys that match your profile!",!1,{},!1);return _context31.a(2);case 11:if(!(_n101==="Survey is available")){_context31.n=14;break;}if(!se((r=e.survey_id)==null?e.id:r)){_context31.n=12;break;}g.addMessage("assistant","Good news! Your survey is available on your dashboard. The link you clicked may have expired, but you can easily access it directly from your dashboard. Survey Name: \"".concat(_t162,"\". Please visit your dashboard to continue with this survey. Thank you!"),!1,{},!1);_context31.n=13;break;case 12:g.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context31.n=13;return ue("Help with Survey Link/Access Issue",e,"We apologize for the technical difficulties you're experiencing. We've automatically created a support ticket for you and our team will get back to you within 48 business hours to resolve this issue. Thank you for your patience!");case 13:return _context31.a(2);case 14:g.addMessage("assistant","Survey \"".concat(_t162,"\" status: ").concat(_n101,". Please contact support for assistance."),!1,{},!1);return _context31.a(2);case 15:_context31.n=16;return oe(e.name);case 16:i=_context31.v;_context31.n=17;return G(v).send(e.name,fe(),_.conversationId,i);case 17:_a19=_context31.v;de(_a19);_context31.n=18;return le(_a19);case 18:_context31.n=20;break;case 19:_context31.p=19;_t163=_context31.v;x==null||x.trackError("handleSurveySelect",_t163==null?void 0:_t163.message),g.addMessage("assistant","An error occurred while processing your request.",!0);case 20:_context31.p=20;z(C,!1);return _context31.f(20);case 21:return _context31.a(2);}},_callee31,null,[[1,19,20,21]]);}));return _ye.apply(this,arguments);}var be=aE(),xe=B(be),Se=B(xe);ps(Se,{get isOpen(){return G(S);},onClose:D,onReset:re,get fabShape(){return s();},children:function children(e,t){var n=iE(),r=Or(n),i=function i(e){NT(e,{onClick:me,get prioritySuggestions(){return c();}});},a=function a(e){DT(e,{get messages(){return g.messages;},get isLoading(){return G(C);},get isRedirecting(){return G(w);},onAction:_e});};J(r,function(e){g.messages.length===0?e(i):e(a,-1);});var o=V(r,2);{var _e196=/* @__PURE__ */er(function(){return G(C)||G(w);});AT(o,{onSend:me,get disabled(){return G(_e196);}});}q(e,n);},$$slots:{default:!0}}),RT(V(Se,2),{onClick:ne,get isOpen(){return G(S);},get shape(){return s();}}),j(xe),j(be),H(function(){Qa(xe,1,s()==="rectangle"?"fixed right-0 bottom-0 h-fit z-[100] flex items-center":"fixed bottom-4 right-4 md:bottom-6 md:right-6 z-[100] flex items-end","svelte-17ug9y"),eo(xe,G(p));}),q(e,be),ct();}//#endregion
499
499
  //#region src/app.css?inline
500
- var aE="/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 transparent;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 transparent;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 transparent;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 transparent;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 transparent;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:#fef2f2;--color-red-100:#ffe2e2;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-green-400:#05df72;--color-green-500:#00c758;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18508 1.52328);--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-300:lab(76.5514% 36.422 15.5335);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:20px}:where(select:is([multiple],[size])) optgroup option:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:20px}:where(select:-webkit-any([multiple],[size])) optgroup option:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:20px}:where(select:is([multiple],[size])) optgroup option:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:20px}:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)))::-webkit-file-upload-button{margin-right:4px}:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)))::file-selector-button{margin-right:4px}:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))::-webkit-file-upload-button{margin-left:4px}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))::file-selector-button{margin-left:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.start:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:var(--spacing)}.start:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:var(--spacing)}.start:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--spacing)}.start:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--spacing)}.end:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:var(--spacing)}.end:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:var(--spacing)}.end:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--spacing)}.end:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--spacing)}.top-1\\/2{top:50%}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.right-0{right:calc(var(--spacing) * 0)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:calc(var(--spacing) * 0)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2\\]{z-index:2}.z-\\[100\\]{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.-mt-\\[5px\\]{margin-top:-5px}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-\\[60px\\]{margin-left:60px}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-32{height:calc(var(--spacing) * 32)}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[80vh\\]{height:80vh}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[300px\\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[320px\\]{min-height:320px}.min-h-min{min-height:min-content}.w-2{width:calc(var(--spacing) * 2)}.w-3{width:calc(var(--spacing) * 3)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[2px\\]{width:2px}.w-\\[24px\\]{width:24px}.w-\\[50px\\]{width:50px}.w-\\[60px\\]{width:60px}.w-full{width:100%}.max-w-\\[28rem\\]{max-width:28rem}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[calc\\(50\\%-4px\\)\\]{max-width:calc(50% - 4px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-12{min-width:calc(var(--spacing) * 12)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.\\[transform-origin\\:left_center\\]{transform-origin:0}.translate-x-2{--tw-translate-x:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-45{rotate:45deg}.\\[animation\\:bouncing-loader_0\\.6s_infinite_alternate\\]{animation:.6s infinite alternate bouncing-loader}.\\[animation\\:fadeIn_0\\.3s_ease\\]{animation:.3s fadeIn}.\\[animation\\:slideInUp_0\\.3s_ease-out\\]{animation:.3s ease-out slideInUp}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\\[0\\.4rem\\]{border-radius:.4rem}.rounded-\\[1\\.25rem\\]{border-radius:1.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-l-lg{border-top-left-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-b-lg{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#0a284c\\]{border-color:#0a284c}.border-\\[\\#79c03c\\]{border-color:#79c03c}.border-\\[\\#27272a\\]{border-color:#27272a}.border-\\[\\#29374c\\]{border-color:#29374c}.border-\\[rgba\\(121\\,192\\,60\\,0\\.2\\)\\]{border-color:rgba(121,192,60,.2)}.border-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-color:rgba(255,255,255,.1)}.border-\\[rgba\\(255\\,255\\,255\\,0\\.2\\)\\]{border-color:rgba(255,255,255,.2)}.border-red-300{border-color:var(--color-red-300)}.border-white\\/20{border-color:rgba(255,255,255,.2)}@supports (color:color-mix(in lab, red, red)){.border-white\\/20{border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.border-white\\/30{border-color:rgba(255,255,255,.3)}@supports (color:color-mix(in lab, red, red)){.border-white\\/30{border-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.border-t-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-top-color:rgba(255,255,255,.1)}.border-t-white\\/70{border-top-color:rgba(255,255,255,.7)}@supports (color:color-mix(in lab, red, red)){.border-t-white\\/70{border-top-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.border-b-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-bottom-color:rgba(255,255,255,.1)}.border-l-red-500{border-left-color:var(--color-red-500)}.bg-\\[\\#0a284c\\]{background-color:#0a284c}.bg-\\[\\#0f172b\\]{background-color:#0f172b}.bg-\\[\\#1d293d\\]{background-color:#1d293d}.bg-\\[\\#1e293b\\]{background-color:#1e293b}.bg-\\[\\#77c03a\\]{background-color:#77c03a}.bg-\\[\\#79c03c\\]{background-color:#79c03c}.bg-\\[\\#27272a4d\\]{background-color:rgba(39,39,42,.3)}.bg-\\[\\#29374c\\]{background-color:#29374c}.bg-\\[\\#45556c\\]{background-color:#45556c}.bg-\\[\\#334155\\]{background-color:#334155}.bg-\\[\\#475569\\]{background-color:#475569}.bg-\\[rgba\\(121\\,192\\,60\\,0\\.05\\)\\]{background-color:rgba(121,192,60,.05)}.bg-black\\/15{background-color:rgba(0,0,0,.15)}@supports (color:color-mix(in lab, red, red)){.bg-black\\/15{background-color:color-mix(in oklab, var(--color-black) 15%, transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:transparent}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\\[4px\\]{padding-left:4px;padding-right:4px}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-11{padding-left:calc(var(--spacing) * 11)}.text-center{text-align:center}.text-left{text-align:left}.\\[font-family\\:\\'Poppins\\'\\,sans-serif\\]{font-family:Poppins,sans-serif}.\\[font-family\\:inherit\\]{font-family:inherit}.font-\\[Poppins\\,sans-serif\\]{font-family:Poppins,sans-serif}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.7rem\\]{font-size:.7rem}.text-\\[10px\\]{font-size:10px}.leading-\\[1\\.2\\]{--tw-leading:1.2;line-height:1.2}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}.leading-\\[1\\.25\\]{--tw-leading:1.25;line-height:1.25}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#79c03c\\]{color:#79c03c}.text-\\[\\#94a3b8\\]{color:#94a3b8}.text-\\[\\#666\\]{color:#666}.text-\\[\\#999\\]{color:#999}.text-\\[\\#45556c\\]{color:#45556c}.text-green-400{color:var(--color-green-400)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-white\\/60{color:rgba(255,255,255,.6)}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\\/70{color:rgba(255,255,255,.7)}@supports (color:color-mix(in lab, red, red)){.text-white\\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\\/85{color:rgba(255,255,255,.85)}@supports (color:color-mix(in lab, red, red)){.text-white\\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.italic{font-style:italic}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,rgba(0,0,0,.1)), 0 1px 2px -1px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_15px_-3px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,_0_4px_6px_-2px_rgba\\(0\\,0\\,0\\,0\\.05\\)\\]{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 4px 6px -2px var(--tw-shadow-color,rgba(0,0,0,.05));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_20px_25px_-5px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,_0_10px_10px_-5px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 10px 10px -5px var(--tw-shadow-color,rgba(0,0,0,.04));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 2px 4px -2px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.\\[animation-delay\\:0\\.1s\\]{animation-delay:.1s}.\\[animation-delay\\:0\\.2s\\]{animation-delay:.2s}.\\[animation-delay\\:0\\.3s\\]{animation-delay:.3s}.\\[transition\\:opacity_0\\.3s_ease\\,transform_0\\.3s_ease\\]{transition:opacity .3s,transform .3s}.\\[word-wrap\\:break-word\\]{word-wrap:break-word}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:translate-x-0:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-\\[\\#94a3b8\\]::placeholder{color:#94a3b8}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:-translate-y-px:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-\\[1\\.03\\]:hover{scale:1.03}.hover\\:border-\\[\\#79c03c\\]:hover{border-color:#79c03c}.hover\\:border-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:hover{border-color:rgba(255,255,255,.5)}.hover\\:bg-\\[\\#2a3a52\\]:hover{background-color:#2a3a52}.hover\\:bg-\\[\\#6aad35\\]:hover{background-color:#6aad35}.hover\\:bg-\\[\\#29374c\\]:hover{background-color:#29374c}.hover\\:bg-\\[rgba\\(121\\,192\\,60\\,0\\.1\\)\\]:hover{background-color:rgba(121,192,60,.1)}.hover\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:hover{background-color:rgba(255,255,255,.1)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:text-red-500:hover{color:var(--color-red-500)}}.focus\\:border-\\[\\#79c03c\\]:focus{border-color:#79c03c}.focus\\:shadow-\\[0_0_0_2px_rgba\\(121\\,192\\,60\\,0\\.1\\)\\]:focus{--tw-shadow:0 0 0 2px var(--tw-shadow-color,rgba(121,192,60,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:translate-y-0:active{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}@media (hover:hover){.enabled\\:hover\\:opacity-90:enabled:hover{opacity:.9}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#ccc\\]:disabled{border-color:#ccc}.disabled\\:bg-\\[\\#ccc\\]:disabled{background-color:#ccc}.disabled\\:text-\\[\\#999\\]:disabled{color:#999}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}@media not all and (min-width:500px){.max-\\[500px\\]\\:right-0{right:calc(var(--spacing) * 0)}.max-\\[500px\\]\\:left-0{left:calc(var(--spacing) * 0)}.max-\\[500px\\]\\:mx-auto{margin-left:auto;margin-right:auto}.max-\\[500px\\]\\:hidden{display:none}.max-\\[500px\\]\\:max-w-\\[calc\\(100vw-20px\\)\\]{max-width:calc(100vw - 20px)}}@media not all and (min-width:480px){.max-\\[480px\\]\\:fixed{position:fixed}.max-\\[480px\\]\\:inset-0{inset:calc(var(--spacing) * 0)}.max-\\[480px\\]\\:z-\\[39\\]{z-index:39}.max-\\[480px\\]\\:block{display:block}.max-\\[480px\\]\\:\\[animation\\:fadeIn_0\\.3s_forwards\\]{animation:.3s forwards fadeIn}.max-\\[480px\\]\\:bg-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{background-color:rgba(0,0,0,.5)}.max-\\[480px\\]\\:opacity-0{opacity:0}}@media not all and (min-width:48rem){.max-md\\:left-3{left:calc(var(--spacing) * 3)}.max-md\\:mt-0{margin-top:calc(var(--spacing) * 0)}.max-md\\:mt-2{margin-top:calc(var(--spacing) * 2)}.max-md\\:mt-3{margin-top:calc(var(--spacing) * 3)}.max-md\\:mb-4{margin-bottom:calc(var(--spacing) * 4)}.max-md\\:mb-5{margin-bottom:calc(var(--spacing) * 5)}.max-md\\:ml-\\[56px\\]{margin-left:56px}.max-md\\:h-9{height:calc(var(--spacing) * 9)}.max-md\\:h-14{height:calc(var(--spacing) * 14)}.max-md\\:h-28{height:calc(var(--spacing) * 28)}.max-md\\:h-\\[50px\\]{height:50px}.max-md\\:min-h-10{min-height:calc(var(--spacing) * 10)}.max-md\\:w-9{width:calc(var(--spacing) * 9)}.max-md\\:w-14{width:calc(var(--spacing) * 14)}.max-md\\:w-40{width:calc(var(--spacing) * 40)}.max-md\\:w-\\[50px\\]{width:50px}.max-md\\:w-full{width:100%}.max-md\\:max-w-\\[85\\%\\]{max-width:85%}.max-md\\:min-w-10{min-width:calc(var(--spacing) * 10)}.max-md\\:flex-col{flex-direction:column}.max-md\\:gap-0{gap:calc(var(--spacing) * 0)}.max-md\\:gap-1{gap:calc(var(--spacing) * 1)}.max-md\\:gap-2{gap:calc(var(--spacing) * 2)}.max-md\\:rounded-lg{border-radius:var(--radius-lg)}.max-md\\:p-3{padding:calc(var(--spacing) * 3)}.max-md\\:p-4{padding:calc(var(--spacing) * 4)}.max-md\\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-md\\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-md\\:py-2{padding-block:calc(var(--spacing) * 2)}.max-md\\:py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.max-md\\:py-3{padding-block:calc(var(--spacing) * 3)}.max-md\\:pt-\\[11px\\]{padding-top:11px}.max-md\\:pr-3{padding-right:calc(var(--spacing) * 3)}.max-md\\:pr-4{padding-right:calc(var(--spacing) * 4)}.max-md\\:pb-\\[11px\\]{padding-bottom:11px}.max-md\\:pl-4{padding-left:calc(var(--spacing) * 4)}.max-md\\:pl-9{padding-left:calc(var(--spacing) * 9)}.max-md\\:text-\\[0\\.7rem\\]{font-size:.7rem}.max-md\\:text-\\[0\\.8rem\\]{font-size:.8rem}.max-md\\:text-\\[0\\.9rem\\]{font-size:.9rem}.max-md\\:text-\\[0\\.85rem\\]{font-size:.85rem}.max-md\\:text-\\[11px\\]{font-size:11px}.max-md\\:text-\\[13px\\]{font-size:13px}.max-md\\:leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}}@media not all and (min-width:40rem){.max-sm\\:max-h-\\[80px\\]{max-height:80px}.max-sm\\:min-h-11{min-height:calc(var(--spacing) * 11)}.max-sm\\:min-w-11{min-width:calc(var(--spacing) * 11)}.max-sm\\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\\:pt-\\[10px\\]{padding-top:10px}.max-sm\\:pr-3{padding-right:calc(var(--spacing) * 3)}.max-sm\\:pb-\\[10px\\]{padding-bottom:10px}.max-sm\\:pl-3{padding-left:calc(var(--spacing) * 3)}.max-sm\\:text-\\[0\\.85rem\\]{font-size:.85rem}.max-sm\\:leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}}@media (min-width:48rem){.md\\:absolute{position:absolute}.md\\:top-1\\/2{top:50%}.md\\:right-6{right:calc(var(--spacing) * 6)}.md\\:right-full{right:100%}.md\\:bottom-0{bottom:calc(var(--spacing) * 0)}.md\\:bottom-6{bottom:calc(var(--spacing) * 6)}.md\\:mr-4{margin-right:calc(var(--spacing) * 4)}.md\\:h-16{height:calc(var(--spacing) * 16)}.md\\:h-\\[648px\\]{height:648px}.md\\:max-h-\\[90vh\\]{max-height:90vh}.md\\:max-h-\\[120px\\]{max-height:120px}.md\\:min-h-12{min-height:calc(var(--spacing) * 12)}.md\\:w-16{width:calc(var(--spacing) * 16)}.md\\:w-\\[576px\\]{width:576px}.md\\:max-w-\\[100vw\\]{max-width:100vw}.md\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.md\\:p-8{padding:calc(var(--spacing) * 8)}.md\\:px-6{padding-inline:calc(var(--spacing) * 6)}}.\\[\\&_svg\\]\\:h-5 svg{height:calc(var(--spacing) * 5)}.\\[\\&_svg\\]\\:w-5 svg{width:calc(var(--spacing) * 5)}@media not all and (min-width:48rem){.max-md\\:\\[\\&_svg\\]\\:h-\\[1\\.2rem\\] svg{height:1.2rem}.max-md\\:\\[\\&_svg\\]\\:w-\\[1\\.2rem\\] svg{width:1.2rem}}@media not all and (min-width:40rem){.max-sm\\:\\[\\&_svg\\]\\:h-\\[1\\.1rem\\] svg{height:1.1rem}.max-sm\\:\\[\\&_svg\\]\\:w-\\[1\\.1rem\\] svg{width:1.1rem}}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.\\[\\&\\>svg\\]\\:h-full>svg{height:100%}.\\[\\&\\>svg\\]\\:w-full>svg{width:100%}}@keyframes bouncing-loader{to{opacity:.1;transform:translateY(-.25rem)}}@keyframes smoothFadeIn{0%{opacity:0;transform:translate(-12px)}60%{opacity:.8;transform:translate(0)}to{opacity:1;transform:translate(0)}}@keyframes smoothFadeOut{0%{opacity:1;transform:translate(0)}40%{opacity:.8;transform:translate(0)}to{opacity:0;transform:translate(-12px)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}.typing-indicator__message--enter{animation:.5s cubic-bezier(.4,0,.2,1) smoothFadeIn}.typing-indicator__message--exit{animation:.5s cubic-bezier(.4,0,.2,1) smoothFadeOut}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}",oE=2e3,sE=/* @__PURE__ */new WeakMap(),cE=/* @__PURE__ */new WeakMap(),lE=/* @__PURE__ */new WeakMap(),uE=/* @__PURE__ */new WeakMap(),dE=/* @__PURE__ */new WeakMap(),fE=/* @__PURE__ */new WeakMap(),pE=/* @__PURE__ */new WeakMap(),mE=/* @__PURE__ */new WeakSet(),hE=/*#__PURE__*/function(_HTMLElement){function hE(){var _this35;_classCallCheck(this,hE);for(var _len23=arguments.length,e=new Array(_len23),_key23=0;_key23<_len23;_key23++){e[_key23]=arguments[_key23];}_this35=_callSuper(this,hE,[].concat(e)),Dt(_assertThisInitialized(_this35),mE),N(_assertThisInitialized(_this35),sE,void 0),N(_assertThisInitialized(_this35),cE,/* @__PURE__ */new Map()),N(_assertThisInitialized(_this35),lE,null),N(_assertThisInitialized(_this35),uE,null),N(_assertThisInitialized(_this35),dE,null),N(_assertThisInitialized(_this35),fE,{authToken:""}),N(_assertThisInitialized(_this35),pE,null);return _this35;}_inherits(hE,_HTMLElement);return _createClass(hE,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee31(){var e,_t163,t,_t164,_t165,_t166;return _regenerator().w(function(_context31){while(1)switch(_context31.n){case 0:e=this;_t164=I;_t165=fE;_t166=e;_context31.n=1;return P(mE,e,gE).call(e);case 1:_t164(_t165,_t166,_context31.v);if(!F(fE,e).sentryDsn){_context31.n=2;break;}_t163=F(fE,e).sentryRelease||"zena-chatbot-client@1.0.2";fx(F(fE,e).sentryDsn,_t163);case 2:t=e.attachShadow({mode:"open"});P(mE,e,_E).call(e,t),I(sE,e,ha(iE,{target:t,props:_objectSpread(_objectSpread({},P(mE,e,yE).call(e)),{},{element:e})}));case 3:return _context31.a(2);}},_callee31,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,n){t===n||!F(sE,this)||!this.shadowRoot||(ya(F(sE,this)),P(mE,this,_E).call(this,this.shadowRoot),I(sE,this,ha(iE,{target:this.shadowRoot,props:_objectSpread(_objectSpread({},P(mE,this,yE).call(this)),{},{element:this})})));}},{key:"disconnectedCallback",value:function disconnectedCallback(){F(sE,this)&&(ya(F(sE,this)),I(sE,this,null));}},{key:"_registerCloseHandler",value:function _registerCloseHandler(e){I(lE,this,e);}},{key:"close",value:function close(){F(lE,this)&&F(lE,this).call(this);}},{key:"_registerSummaryHandler",value:function _registerSummaryHandler(e){I(uE,this,e);}},{key:"generateConversationSummary",value:function generateConversationSummary(){return F(uE,this)?F(uE,this).call(this):"User requested support through chat";}},{key:"_registerFabStyleHandler",value:function _registerFabStyleHandler(e){I(dE,this,e);}},{key:"setFabStyle",value:function setFabStyle(e){F(dE,this)&&F(dE,this).call(this,e);}},{key:"on",value:function on(e,t){F(cE,this).has(e)||F(cE,this).set(e,/* @__PURE__ */new Set()),F(cE,this).get(e).add(t),e==="get-config"&&F(pE,this)&&t({resolve:F(pE,this)});}},{key:"off",value:function off(e,t){F(cE,this).has(e)&&F(cE,this).get(e).delete(t);}},{key:"emit",value:function emit(e,t){if(F(cE,this).has(e)){var _iterator97=_createForOfIteratorHelper(F(cE,this).get(e)),_step97;try{for(_iterator97.s();!(_step97=_iterator97.n()).done;){var _n102=_step97.value;_n102(t);}}catch(err){_iterator97.e(err);}finally{_iterator97.f();}}}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));function gE(){return _gE.apply(this,arguments);}function _gE(){_gE=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee67(){var e;return _regenerator().w(function(_context67){while(1)switch(_context67.n){case 0:e=this;return _context67.a(2,new Promise(function(t){var n=!1,r=function(_r98){function r(_x99){return _r98.apply(this,arguments);}r.toString=function(){return _r98.toString();};return r;}(function(r){n||(n=!0,I(pE,e,null),clearTimeout(i),t(r||{authToken:""}));}),i=setTimeout(function(){return r({authToken:""});},oE);I(pE,e,r),e.emit("get-config",{resolve:r});}));}},_callee67,this);}));return _gE.apply(this,arguments);}function _E(e){var _iterator98=_createForOfIteratorHelper(e.querySelectorAll("style, link[rel=\"stylesheet\"]")),_step98;try{for(_iterator98.s();!(_step98=_iterator98.n()).done;){var _t168=_step98.value;_t168.remove();}}catch(err){_iterator98.e(err);}finally{_iterator98.f();}{var _t167=document.createElement("style");_t167.textContent=aE,e.prepend(_t167);}}function vE(e,t){try{return JSON.parse(this.getAttribute(e)||JSON.stringify(t));}catch(e){return t;}}function yE(){var e,t,n,r,i,a,o,s,c,l,u,d,f;return{zenaServerUrl:F(fE,this).zenaServerUrl||this.getAttribute("zena-server-url")||"",authToken:F(fE,this).authToken,panelistServerUrl:(e=(t=F(fE,this).panelistServerUrl)==null?this.getAttribute("panelist-server-url"):t)==null?"":e,availableSurveyIds:(n=(r=F(fE,this).availableSurveyIds)==null?this.getAttribute("available-survey-ids"):r)==null?"[]":n,nativeApp:(i=F(fE,this).nativeApp)==null?this.hasAttribute("native-app"):i,posthogKey:F(fE,this).posthogKey||"",posthogHost:F(fE,this).posthogHost||"",userId:(a=(o=F(fE,this).userId)==null?this.getAttribute("user-id"):o)==null?"":a,fabStyle:(s=F(fE,this).fabStyle)==null?P(mE,this,vE).call(this,"fab-style",{}):s,fabShape:(c=(l=F(fE,this).fabShape)==null?this.getAttribute("fab-shape"):l)==null?"circle":c,autoSuggestions:(u=F(fE,this).autoSuggestions)==null?P(mE,this,vE).call(this,"auto-suggestions",[]):u,defaultOpen:(d=F(fE,this).defaultOpen)==null?!1:d,initialMessage:(f=F(fE,this).initialMessage)==null?null:f};}D(hE,"observedAttributes",["zena-server-url","panelist-server-url","available-survey-ids","native-app","user-id","fab-style","fab-shape","auto-suggestions"]),customElements.get("zena-chatbot")||customElements.define("zena-chatbot",hE);//#endregion
501
- export{hE as ZenaChatbotElement,yx as captureError};
500
+ var cE="/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 transparent;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 transparent;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 transparent;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 transparent;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 transparent;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:#fef2f2;--color-red-100:#ffe2e2;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-green-400:#05df72;--color-green-500:#00c758;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18508 1.52328);--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-300:lab(76.5514% 36.422 15.5335);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:20px}:where(select:is([multiple],[size])) optgroup option:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:20px}:where(select:-webkit-any([multiple],[size])) optgroup option:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:20px}:where(select:is([multiple],[size])) optgroup option:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:20px}:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)))::-webkit-file-upload-button{margin-right:4px}:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)))::file-selector-button{margin-right:4px}:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))::-webkit-file-upload-button{margin-left:4px}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))::file-selector-button{margin-left:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.start:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:var(--spacing)}.start:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:var(--spacing)}.start:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--spacing)}.start:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--spacing)}.end:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:var(--spacing)}.end:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:var(--spacing)}.end:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--spacing)}.end:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--spacing)}.top-1\\/2{top:50%}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.right-0{right:calc(var(--spacing) * 0)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:calc(var(--spacing) * 0)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2\\]{z-index:2}.z-\\[100\\]{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.-mt-\\[5px\\]{margin-top:-5px}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-\\[60px\\]{margin-left:60px}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-32{height:calc(var(--spacing) * 32)}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[80vh\\]{height:80vh}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[300px\\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[320px\\]{min-height:320px}.min-h-min{min-height:min-content}.w-2{width:calc(var(--spacing) * 2)}.w-3{width:calc(var(--spacing) * 3)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[2px\\]{width:2px}.w-\\[24px\\]{width:24px}.w-\\[50px\\]{width:50px}.w-\\[60px\\]{width:60px}.w-full{width:100%}.max-w-\\[28rem\\]{max-width:28rem}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[calc\\(50\\%-4px\\)\\]{max-width:calc(50% - 4px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-12{min-width:calc(var(--spacing) * 12)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.\\[transform-origin\\:left_center\\]{transform-origin:0}.translate-x-2{--tw-translate-x:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-45{rotate:45deg}.\\[animation\\:bouncing-loader_0\\.6s_infinite_alternate\\]{animation:.6s infinite alternate bouncing-loader}.\\[animation\\:fadeIn_0\\.3s_ease\\]{animation:.3s fadeIn}.\\[animation\\:slideInUp_0\\.3s_ease-out\\]{animation:.3s ease-out slideInUp}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\\[0\\.4rem\\]{border-radius:.4rem}.rounded-\\[1\\.25rem\\]{border-radius:1.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-l-lg{border-top-left-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-b-lg{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#0a284c\\]{border-color:#0a284c}.border-\\[\\#79c03c\\]{border-color:#79c03c}.border-\\[\\#27272a\\]{border-color:#27272a}.border-\\[\\#29374c\\]{border-color:#29374c}.border-\\[rgba\\(121\\,192\\,60\\,0\\.2\\)\\]{border-color:rgba(121,192,60,.2)}.border-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-color:rgba(255,255,255,.1)}.border-\\[rgba\\(255\\,255\\,255\\,0\\.2\\)\\]{border-color:rgba(255,255,255,.2)}.border-red-300{border-color:var(--color-red-300)}.border-white\\/20{border-color:rgba(255,255,255,.2)}@supports (color:color-mix(in lab, red, red)){.border-white\\/20{border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.border-white\\/30{border-color:rgba(255,255,255,.3)}@supports (color:color-mix(in lab, red, red)){.border-white\\/30{border-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.border-t-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-top-color:rgba(255,255,255,.1)}.border-t-white\\/70{border-top-color:rgba(255,255,255,.7)}@supports (color:color-mix(in lab, red, red)){.border-t-white\\/70{border-top-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.border-b-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-bottom-color:rgba(255,255,255,.1)}.border-l-red-500{border-left-color:var(--color-red-500)}.bg-\\[\\#0a284c\\]{background-color:#0a284c}.bg-\\[\\#0f172b\\]{background-color:#0f172b}.bg-\\[\\#1d293d\\]{background-color:#1d293d}.bg-\\[\\#1e293b\\]{background-color:#1e293b}.bg-\\[\\#77c03a\\]{background-color:#77c03a}.bg-\\[\\#79c03c\\]{background-color:#79c03c}.bg-\\[\\#27272a4d\\]{background-color:rgba(39,39,42,.3)}.bg-\\[\\#29374c\\]{background-color:#29374c}.bg-\\[\\#45556c\\]{background-color:#45556c}.bg-\\[\\#334155\\]{background-color:#334155}.bg-\\[\\#475569\\]{background-color:#475569}.bg-\\[rgba\\(121\\,192\\,60\\,0\\.05\\)\\]{background-color:rgba(121,192,60,.05)}.bg-black\\/15{background-color:rgba(0,0,0,.15)}@supports (color:color-mix(in lab, red, red)){.bg-black\\/15{background-color:color-mix(in oklab, var(--color-black) 15%, transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:transparent}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\\[4px\\]{padding-left:4px;padding-right:4px}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-11{padding-left:calc(var(--spacing) * 11)}.text-center{text-align:center}.text-left{text-align:left}.\\[font-family\\:\\'Poppins\\'\\,sans-serif\\]{font-family:Poppins,sans-serif}.\\[font-family\\:inherit\\]{font-family:inherit}.font-\\[Poppins\\,sans-serif\\]{font-family:Poppins,sans-serif}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.7rem\\]{font-size:.7rem}.text-\\[10px\\]{font-size:10px}.leading-\\[1\\.2\\]{--tw-leading:1.2;line-height:1.2}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}.leading-\\[1\\.25\\]{--tw-leading:1.25;line-height:1.25}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#79c03c\\]{color:#79c03c}.text-\\[\\#94a3b8\\]{color:#94a3b8}.text-\\[\\#666\\]{color:#666}.text-\\[\\#999\\]{color:#999}.text-\\[\\#45556c\\]{color:#45556c}.text-green-400{color:var(--color-green-400)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-white\\/60{color:rgba(255,255,255,.6)}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\\/70{color:rgba(255,255,255,.7)}@supports (color:color-mix(in lab, red, red)){.text-white\\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\\/85{color:rgba(255,255,255,.85)}@supports (color:color-mix(in lab, red, red)){.text-white\\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.italic{font-style:italic}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,rgba(0,0,0,.1)), 0 1px 2px -1px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_15px_-3px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,_0_4px_6px_-2px_rgba\\(0\\,0\\,0\\,0\\.05\\)\\]{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 4px 6px -2px var(--tw-shadow-color,rgba(0,0,0,.05));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_20px_25px_-5px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,_0_10px_10px_-5px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 10px 10px -5px var(--tw-shadow-color,rgba(0,0,0,.04));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 2px 4px -2px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.\\[animation-delay\\:0\\.1s\\]{animation-delay:.1s}.\\[animation-delay\\:0\\.2s\\]{animation-delay:.2s}.\\[animation-delay\\:0\\.3s\\]{animation-delay:.3s}.\\[transition\\:opacity_0\\.3s_ease\\,transform_0\\.3s_ease\\]{transition:opacity .3s,transform .3s}.\\[word-wrap\\:break-word\\]{word-wrap:break-word}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:translate-x-0:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-\\[\\#94a3b8\\]::placeholder{color:#94a3b8}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:-translate-y-px:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-\\[1\\.03\\]:hover{scale:1.03}.hover\\:border-\\[\\#79c03c\\]:hover{border-color:#79c03c}.hover\\:border-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:hover{border-color:rgba(255,255,255,.5)}.hover\\:bg-\\[\\#2a3a52\\]:hover{background-color:#2a3a52}.hover\\:bg-\\[\\#6aad35\\]:hover{background-color:#6aad35}.hover\\:bg-\\[\\#29374c\\]:hover{background-color:#29374c}.hover\\:bg-\\[rgba\\(121\\,192\\,60\\,0\\.1\\)\\]:hover{background-color:rgba(121,192,60,.1)}.hover\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:hover{background-color:rgba(255,255,255,.1)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:text-red-500:hover{color:var(--color-red-500)}}.focus\\:border-\\[\\#79c03c\\]:focus{border-color:#79c03c}.focus\\:shadow-\\[0_0_0_2px_rgba\\(121\\,192\\,60\\,0\\.1\\)\\]:focus{--tw-shadow:0 0 0 2px var(--tw-shadow-color,rgba(121,192,60,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:translate-y-0:active{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}@media (hover:hover){.enabled\\:hover\\:opacity-90:enabled:hover{opacity:.9}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#ccc\\]:disabled{border-color:#ccc}.disabled\\:bg-\\[\\#ccc\\]:disabled{background-color:#ccc}.disabled\\:text-\\[\\#999\\]:disabled{color:#999}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}@media not all and (min-width:500px){.max-\\[500px\\]\\:right-0{right:calc(var(--spacing) * 0)}.max-\\[500px\\]\\:left-0{left:calc(var(--spacing) * 0)}.max-\\[500px\\]\\:mx-auto{margin-left:auto;margin-right:auto}.max-\\[500px\\]\\:hidden{display:none}.max-\\[500px\\]\\:max-w-\\[calc\\(100vw-20px\\)\\]{max-width:calc(100vw - 20px)}}@media not all and (min-width:480px){.max-\\[480px\\]\\:fixed{position:fixed}.max-\\[480px\\]\\:inset-0{inset:calc(var(--spacing) * 0)}.max-\\[480px\\]\\:z-\\[39\\]{z-index:39}.max-\\[480px\\]\\:block{display:block}.max-\\[480px\\]\\:\\[animation\\:fadeIn_0\\.3s_forwards\\]{animation:.3s forwards fadeIn}.max-\\[480px\\]\\:bg-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{background-color:rgba(0,0,0,.5)}.max-\\[480px\\]\\:opacity-0{opacity:0}}@media not all and (min-width:48rem){.max-md\\:left-3{left:calc(var(--spacing) * 3)}.max-md\\:mt-0{margin-top:calc(var(--spacing) * 0)}.max-md\\:mt-2{margin-top:calc(var(--spacing) * 2)}.max-md\\:mt-3{margin-top:calc(var(--spacing) * 3)}.max-md\\:mb-4{margin-bottom:calc(var(--spacing) * 4)}.max-md\\:mb-5{margin-bottom:calc(var(--spacing) * 5)}.max-md\\:ml-\\[56px\\]{margin-left:56px}.max-md\\:h-9{height:calc(var(--spacing) * 9)}.max-md\\:h-14{height:calc(var(--spacing) * 14)}.max-md\\:h-28{height:calc(var(--spacing) * 28)}.max-md\\:h-\\[50px\\]{height:50px}.max-md\\:min-h-10{min-height:calc(var(--spacing) * 10)}.max-md\\:w-9{width:calc(var(--spacing) * 9)}.max-md\\:w-14{width:calc(var(--spacing) * 14)}.max-md\\:w-40{width:calc(var(--spacing) * 40)}.max-md\\:w-\\[50px\\]{width:50px}.max-md\\:w-full{width:100%}.max-md\\:max-w-\\[85\\%\\]{max-width:85%}.max-md\\:min-w-10{min-width:calc(var(--spacing) * 10)}.max-md\\:flex-col{flex-direction:column}.max-md\\:gap-0{gap:calc(var(--spacing) * 0)}.max-md\\:gap-1{gap:calc(var(--spacing) * 1)}.max-md\\:gap-2{gap:calc(var(--spacing) * 2)}.max-md\\:rounded-lg{border-radius:var(--radius-lg)}.max-md\\:p-3{padding:calc(var(--spacing) * 3)}.max-md\\:p-4{padding:calc(var(--spacing) * 4)}.max-md\\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-md\\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-md\\:py-2{padding-block:calc(var(--spacing) * 2)}.max-md\\:py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.max-md\\:py-3{padding-block:calc(var(--spacing) * 3)}.max-md\\:pt-\\[11px\\]{padding-top:11px}.max-md\\:pr-3{padding-right:calc(var(--spacing) * 3)}.max-md\\:pr-4{padding-right:calc(var(--spacing) * 4)}.max-md\\:pb-\\[11px\\]{padding-bottom:11px}.max-md\\:pl-4{padding-left:calc(var(--spacing) * 4)}.max-md\\:pl-9{padding-left:calc(var(--spacing) * 9)}.max-md\\:text-\\[0\\.7rem\\]{font-size:.7rem}.max-md\\:text-\\[0\\.8rem\\]{font-size:.8rem}.max-md\\:text-\\[0\\.9rem\\]{font-size:.9rem}.max-md\\:text-\\[0\\.85rem\\]{font-size:.85rem}.max-md\\:text-\\[11px\\]{font-size:11px}.max-md\\:text-\\[13px\\]{font-size:13px}.max-md\\:leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}}@media not all and (min-width:40rem){.max-sm\\:max-h-\\[80px\\]{max-height:80px}.max-sm\\:min-h-11{min-height:calc(var(--spacing) * 11)}.max-sm\\:min-w-11{min-width:calc(var(--spacing) * 11)}.max-sm\\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\\:pt-\\[10px\\]{padding-top:10px}.max-sm\\:pr-3{padding-right:calc(var(--spacing) * 3)}.max-sm\\:pb-\\[10px\\]{padding-bottom:10px}.max-sm\\:pl-3{padding-left:calc(var(--spacing) * 3)}.max-sm\\:text-\\[0\\.85rem\\]{font-size:.85rem}.max-sm\\:leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}}@media (min-width:48rem){.md\\:absolute{position:absolute}.md\\:top-1\\/2{top:50%}.md\\:right-6{right:calc(var(--spacing) * 6)}.md\\:right-full{right:100%}.md\\:bottom-0{bottom:calc(var(--spacing) * 0)}.md\\:bottom-6{bottom:calc(var(--spacing) * 6)}.md\\:mr-4{margin-right:calc(var(--spacing) * 4)}.md\\:h-16{height:calc(var(--spacing) * 16)}.md\\:h-\\[648px\\]{height:648px}.md\\:max-h-\\[90vh\\]{max-height:90vh}.md\\:max-h-\\[120px\\]{max-height:120px}.md\\:min-h-12{min-height:calc(var(--spacing) * 12)}.md\\:w-16{width:calc(var(--spacing) * 16)}.md\\:w-\\[576px\\]{width:576px}.md\\:max-w-\\[100vw\\]{max-width:100vw}.md\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.md\\:p-8{padding:calc(var(--spacing) * 8)}.md\\:px-6{padding-inline:calc(var(--spacing) * 6)}}.\\[\\&_svg\\]\\:h-5 svg{height:calc(var(--spacing) * 5)}.\\[\\&_svg\\]\\:w-5 svg{width:calc(var(--spacing) * 5)}@media not all and (min-width:48rem){.max-md\\:\\[\\&_svg\\]\\:h-\\[1\\.2rem\\] svg{height:1.2rem}.max-md\\:\\[\\&_svg\\]\\:w-\\[1\\.2rem\\] svg{width:1.2rem}}@media not all and (min-width:40rem){.max-sm\\:\\[\\&_svg\\]\\:h-\\[1\\.1rem\\] svg{height:1.1rem}.max-sm\\:\\[\\&_svg\\]\\:w-\\[1\\.1rem\\] svg{width:1.1rem}}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.\\[\\&\\>svg\\]\\:h-full>svg{height:100%}.\\[\\&\\>svg\\]\\:w-full>svg{width:100%}}@keyframes bouncing-loader{to{opacity:.1;transform:translateY(-.25rem)}}@keyframes smoothFadeIn{0%{opacity:0;transform:translate(-12px)}60%{opacity:.8;transform:translate(0)}to{opacity:1;transform:translate(0)}}@keyframes smoothFadeOut{0%{opacity:1;transform:translate(0)}40%{opacity:.8;transform:translate(0)}to{opacity:0;transform:translate(-12px)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}.typing-indicator__message--enter{animation:.5s cubic-bezier(.4,0,.2,1) smoothFadeIn}.typing-indicator__message--exit{animation:.5s cubic-bezier(.4,0,.2,1) smoothFadeOut}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}",lE=2e3,uE=/* @__PURE__ */new WeakMap(),dE=/* @__PURE__ */new WeakMap(),fE=/* @__PURE__ */new WeakMap(),pE=/* @__PURE__ */new WeakMap(),mE=/* @__PURE__ */new WeakMap(),hE=/* @__PURE__ */new WeakMap(),gE=/* @__PURE__ */new WeakMap(),_E=/* @__PURE__ */new WeakSet(),vE=/*#__PURE__*/function(_HTMLElement){function vE(){var _this35;_classCallCheck(this,vE);for(var _len23=arguments.length,e=new Array(_len23),_key23=0;_key23<_len23;_key23++){e[_key23]=arguments[_key23];}_this35=_callSuper(this,vE,[].concat(e)),Dt(_assertThisInitialized(_this35),_E),N(_assertThisInitialized(_this35),uE,void 0),N(_assertThisInitialized(_this35),dE,/* @__PURE__ */new Map()),N(_assertThisInitialized(_this35),fE,null),N(_assertThisInitialized(_this35),pE,null),N(_assertThisInitialized(_this35),mE,null),N(_assertThisInitialized(_this35),hE,{authToken:""}),N(_assertThisInitialized(_this35),gE,null);return _this35;}_inherits(vE,_HTMLElement);return _createClass(vE,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee32(){var e,_t164,t,_t165,_t166,_t167;return _regenerator().w(function(_context32){while(1)switch(_context32.n){case 0:e=this;_t165=I;_t166=hE;_t167=e;_context32.n=1;return P(_E,e,yE).call(e);case 1:_t165(_t166,_t167,_context32.v);if(!F(hE,e).sentryDsn){_context32.n=2;break;}_t164=F(hE,e).sentryRelease||"zena-chatbot-client@1.0.3";hx(F(hE,e).sentryDsn,_t164,e);case 2:t=e.attachShadow({mode:"open"});P(_E,e,bE).call(e,t),I(uE,e,ha(sE,{target:t,props:_objectSpread(_objectSpread({},P(_E,e,SE).call(e)),{},{element:e})}));case 3:return _context32.a(2);}},_callee32,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,n){t===n||!F(uE,this)||!this.shadowRoot||(ya(F(uE,this)),P(_E,this,bE).call(this,this.shadowRoot),I(uE,this,ha(sE,{target:this.shadowRoot,props:_objectSpread(_objectSpread({},P(_E,this,SE).call(this)),{},{element:this})})));}},{key:"disconnectedCallback",value:function disconnectedCallback(){F(uE,this)&&(ya(F(uE,this)),I(uE,this,null));}},{key:"_registerCloseHandler",value:function _registerCloseHandler(e){I(fE,this,e);}},{key:"close",value:function close(){F(fE,this)&&F(fE,this).call(this);}},{key:"_registerSummaryHandler",value:function _registerSummaryHandler(e){I(pE,this,e);}},{key:"generateConversationSummary",value:function generateConversationSummary(){return F(pE,this)?F(pE,this).call(this):"User requested support through chat";}},{key:"_registerFabStyleHandler",value:function _registerFabStyleHandler(e){I(mE,this,e);}},{key:"setFabStyle",value:function setFabStyle(e){F(mE,this)&&F(mE,this).call(this,e);}},{key:"on",value:function on(e,t){F(dE,this).has(e)||F(dE,this).set(e,/* @__PURE__ */new Set()),F(dE,this).get(e).add(t),e==="get-config"&&F(gE,this)&&t({resolve:F(gE,this)});}},{key:"off",value:function off(e,t){F(dE,this).has(e)&&F(dE,this).get(e).delete(t);}},{key:"emit",value:function emit(e,t){if(F(dE,this).has(e)){var _iterator97=_createForOfIteratorHelper(F(dE,this).get(e)),_step97;try{for(_iterator97.s();!(_step97=_iterator97.n()).done;){var _n102=_step97.value;_n102(t);}}catch(err){_iterator97.e(err);}finally{_iterator97.f();}}}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));function yE(){return _yE.apply(this,arguments);}function _yE(){_yE=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee68(){var e;return _regenerator().w(function(_context68){while(1)switch(_context68.n){case 0:e=this;return _context68.a(2,new Promise(function(t){var n=!1,r=function(_r98){function r(_x100){return _r98.apply(this,arguments);}r.toString=function(){return _r98.toString();};return r;}(function(r){n||(n=!0,I(gE,e,null),clearTimeout(i),t(r||{authToken:""}));}),i=setTimeout(function(){return r({authToken:""});},lE);I(gE,e,r),e.emit("get-config",{resolve:r});}));}},_callee68,this);}));return _yE.apply(this,arguments);}function bE(e){var _iterator98=_createForOfIteratorHelper(e.querySelectorAll("style, link[rel=\"stylesheet\"]")),_step98;try{for(_iterator98.s();!(_step98=_iterator98.n()).done;){var _t169=_step98.value;_t169.remove();}}catch(err){_iterator98.e(err);}finally{_iterator98.f();}{var _t168=document.createElement("style");_t168.textContent=cE,e.prepend(_t168);}}function xE(e,t){try{return JSON.parse(this.getAttribute(e)||JSON.stringify(t));}catch(e){return t;}}function SE(){var e,t,n,r,i,a,o,s,c,l,u,d,f;return{zenaServerUrl:F(hE,this).zenaServerUrl||this.getAttribute("zena-server-url")||"",authToken:F(hE,this).authToken,panelistServerUrl:(e=(t=F(hE,this).panelistServerUrl)==null?this.getAttribute("panelist-server-url"):t)==null?"":e,availableSurveyIds:(n=(r=F(hE,this).availableSurveyIds)==null?this.getAttribute("available-survey-ids"):r)==null?"[]":n,nativeApp:(i=F(hE,this).nativeApp)==null?this.hasAttribute("native-app"):i,posthogKey:F(hE,this).posthogKey||"",posthogHost:F(hE,this).posthogHost||"",userId:(a=(o=F(hE,this).userId)==null?this.getAttribute("user-id"):o)==null?"":a,fabStyle:(s=F(hE,this).fabStyle)==null?P(_E,this,xE).call(this,"fab-style",{}):s,fabShape:(c=(l=F(hE,this).fabShape)==null?this.getAttribute("fab-shape"):l)==null?"circle":c,autoSuggestions:(u=F(hE,this).autoSuggestions)==null?P(_E,this,xE).call(this,"auto-suggestions",[]):u,defaultOpen:(d=F(hE,this).defaultOpen)==null?!1:d,initialMessage:(f=F(hE,this).initialMessage)==null?null:f};}D(vE,"observedAttributes",["zena-server-url","panelist-server-url","available-survey-ids","native-app","user-id","fab-style","fab-shape","auto-suggestions"]),customElements.get("zena-chatbot")||customElements.define("zena-chatbot",vE);//#endregion
501
+ export{vE as ZenaChatbotElement,Sx as captureError};