PageSourceSearch

https://ever.healthcare/9654.5c67a7c470f57cf632cb.chunk.js

js ever.healthcare collected 2026-10-06 09:04:11 UTC 71,003 bytes, 2 lines download raw bytes

vendor: 4,553 bytes, lines 1-2
1/*! For license information please see 9654.5c67a7c470f57cf632cb.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkreact_boilerplate=self.webpackChunkreact_boilerplate||[]).push([[9654],{243390:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.streamAgentChat=p;var o=c(n(746939)),i=n(943061),a=c(n(6946));function c(t){return t&&t.__esModule?t:{default:t}}function l(){l=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),c=new z(r||[]);return i(a,"_invoke",{value:j(t,n,c)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var h="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function x(){}var _={};f(_,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(A([])));C&&C!==n&&o.call(C,c)&&(_=C);var O=x.prototype=b.prototype=Object.create(_);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(i,a,c,l){var u=p(t[i],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==r(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,l)}))}l(u.arg)}var a;i(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=k(c,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=p(e,n,r);if("normal"===u.type){if(o=r.done?m:y,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=x,i(O,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},P(E.prototype),f(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(d(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(O),f(O,s,"Generator"),f(O,c,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var o;return o=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==r(o)?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e,n,r,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function p(t){var e,n=t.message,r=t.conversationId,c=t.locale,u=t.healthContext,f=t.onMeta,p=t.onStatus,h=t.onDelta,y=t.onTeam,v=t.onAgent,m=t.onDone,g=t.onError,b=new AbortController,w=!1,x=function(t){w||(w=!0,g&&g(t))},_=function(t){var e="message",n="";if(t.split("\n").forEach((function(t){t.startsWith("event:")?e=t.slice(6).trim():t.startsWith("data:")&&(n+=t.slice(5).trim())})),n){var r;try{r=JSON.parse(n)}catch(t){return}switch(e){case"delta":h&&h(r.text||"");break;case"meta":f&&f(r);break;case"status":p&&p(r);break;case"team":y&&y(r);break;case"agent":v&&v(r);break;case"done":w||(w=!0,m&&m(r));break;case"error":x(new Error(r.message||"AI stream error"))}}};return(e=l().mark((function t(){var e,f,d,p,h,y,v,m,g,S,C,O,P;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=null;try{(f=a.default.getItem(i.ACCESS_TOKEN))&&(e=JSON.parse(f))}catch(t){e=null}return d=o.default.apiUrl.replace(/\/$/,""),t.prev=3,t.next=6,fetch("".concat(d,"/AgentConversations/chat/stream"),{method:"POST",signal:b.signal,headers:s({"Content-Type":"application/json",Accept:"text/event-stream"},e&&e.id?{Authorization:"Bearer ".concat(e.id)}:{}
2),body:JSON.stringify({message:n,conversationId:r||void 0,locale:c,healthContext:u||void 0})});case 6:p=t.sent,t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(3),x(t.t0),t.abrupt("return");case 13:if(p.ok&&p.body){t.next=18;break}return(h=new Error("HTTP ".concat(p.status))).status=p.status,x(h),t.abrupt("return");case 18:y=p.body.getReader(),v=new TextDecoder,m="",t.prev=21;case 22:return t.next=24,y.read();case 24:if(g=t.sent,S=g.done,C=g.value,!S){t.next=29;break}return t.abrupt("break",34);case 29:for(m+=v.decode(C,{stream:!0}),O=m.indexOf("\n\n");-1!==O;)P=m.slice(0,O),m=m.slice(O+2),P.trim()&&_(P),O=m.indexOf("\n\n");case 32:t.next=22;break;case 34:!w&&m.trim()&&_(m),w||x(new Error("stream ended unexpectedly")),t.next=41;break;case 38:t.prev=38,t.t1=t.catch(21),x(t.t1);case 41:case"end":return t.stop()}}),t,null,[[3,9],[21,38]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(t){d(i,r,o,a,c,"next",t)}function c(t){d(i,r,o,a,c,"throw",t)}a(void 0)}))})(),{abort:function(){return b.abort()}}}e.default={streamAgentChat:p}},724159:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.SensitiveTopicBanner=L,e.default=void 0;var o,i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=r(t)&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=i?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(551710)),a=(p(n(338071)),p(n(2693))),c=n(765398),l=n(817498),u=p(n(958466)),s=n(910998),f=p(n(767393)),d=n(837809);function p(t){return t&&t.__esModule?t:{default:t}}function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}function y(t,e,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=r;else if(a>1){for(var c=new Array(a),l=0;l<a;l++)c[l]=arguments[l+3];e.children=c}if(e&&i)for(var u in i)void 0===e[u]&&(e[u]=i[u]);else e||(e=i||{});return{$$typeof:o,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}function v(){v=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),c=new z(r||[]);return i(a,"_invoke",{value:j(t,n,c)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function x(){}var _={};s(_,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(A([])));C&&C!==n&&o.call(C,c)&&(_=C);var O=x.prototype=b.prototype=Object.create(_);function P(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(i,a,c,l){var u=d(t[i],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==r(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,l)}))}l(u.arg)}var a;i(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=k(c,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?m:h,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&
vendor: 4,941 bytes, line 2
2(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=x,i(O,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=s(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},P(E.prototype),s(E.prototype,l,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(O),s(O,u,"Generator"),s(O,c,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function m(t,e,n,r,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){m(i,r,o,a,c,"next",t)}function c(t){m(i,r,o,a,c,"throw",t)}a(void 0)}))}}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}
2finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var x=(0,a.default)(c.motion.div).withConfig({displayName:"SensitiveContentGuard__Mask",componentId:"sc-1gvrbny-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:",";border:1px dashed #c9cdd4;border-radius:14px;background:#f7f8fa;body.dark-mode &{background:#23233a;border-color:#3a3a55;}"],(function(t){return t.compact?"14px 16px":"28px 20px"})),_=a.default.div.withConfig({displayName:"SensitiveContentGuard__MaskIcon",componentId:"sc-1gvrbny-1"})(["width:",";height:",";border-radius:50%;background:rgba(47,128,237,0.12);display:flex;align-items:center;justify-content:center;font-size:",";"],(function(t){return t.compact?"32px":"46px"}),(function(t){return t.compact?"32px":"46px"}),(function(t){return t.compact?"15px":"20px"})),S=a.default.div.withConfig({displayName:"SensitiveContentGuard__MaskTitle",componentId:"sc-1gvrbny-2"})(["font-size:",";font-weight:700;color:#1a1a1a;body.dark-mode &{color:#e0e0e0;}"],(function(t){return t.compact?"13px":"15px"})),C=a.default.div.withConfig({displayName:"SensitiveContentGuard__MaskLabel",componentId:"sc-1gvrbny-3"})(["font-size:12px;font-weight:600;color:#888;"]),O=a.default.p.withConfig({displayName:"SensitiveContentGuard__MaskBody",componentId:"sc-1gvrbny-4"})(["font-size:13px;color:#888;margin:2px 0 0;max-width:340px;line-height:1.45;"]),P=(0,a.default)(c.motion.button).withConfig({displayName:"SensitiveContentGuard__UnlockButton",componentId:"sc-1gvrbny-5"})(["margin-top:8px;border:none;border-radius:22px;background:#2f80ed;color:#fff;font-size:",";font-weight:700;padding:",";cursor:pointer;&:hover{background:#2468c4;}"],(function(t){return t.compact?"13px":"14px"}),(function(t){return t.compact?"8px 16px":"10px 20px"})),E=(0,a.default)(c.motion.div).withConfig({displayName:"SensitiveContentGuard__Banner",componentId:"sc-1gvrbny-6"})(["display:flex;align-items:center;gap:10px;background:rgba(47,128,237,0.08);border:1px solid rgba(47,128,237,0.22);border-radius:12px;padding:10px 12px;margin:8px 0;body.dark-mode &{background:rgba(47,128,237,0.14);}"]),j=a.default.div.withConfig({displayName:"SensitiveContentGuard__BannerBody",componentId:"sc-1gvrbny-7"})(["flex:1;min-width:0;"]),k=a.default.div.withConfig({displayName:"SensitiveContentGuard__BannerTitle",componentId:"sc-1gvrbny-8"})(["font-size:12px;font-weight:700;color:#1a1a1a;body.dark-mode &{color:#e0e0e0;}"]),I=a.default.button.withConfig({displayName:"SensitiveContentGuard__BannerAction",componentId:"sc-1gvrbny-9"})(["border:none;background:transparent;padding:2px 0 0;font-size:12px;font-weight:600;color:#2f80ed;cursor:pointer;text-align:left;"]),T=a.default.button.withConfig({displayName:"SensitiveContentGuard__DismissButton",componentId:"sc-1gvrbny-10"})(["border:none;background:transparent;color:#888;font-size:16px;line-height:1;cursor:pointer;padding:4px 6px;"]),z=y(O,{},void 0,"This conversation touches a private health topic and is protected by Private Mode.");function A(t){var e=t.sensitive,n=t.categories,r=t.compact,o=t.className,a=t.children,c=(0,d.useTranslation)().t,p=(0,u.default)(),h=p.enabled,m=p.unlocked,w=p.biometricEnabled,O=p.unlockWithBiometrics,E=b((0,i.useState)(!1),2),j=E[0],k=E[1],I=(0,i.useCallback)(g(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!w){t.next=6;break}return t.next=3,O();case 3:if(!t.sent){t.next=6;break}return t.abrupt("return");case 6:k(!0);case 7:case"end":return t.stop()}}),t)}))),[w,O]);if(!h||!e||m)return a||null;var T=(0,s.categoryLabels)(n);return i.default.createElement(i.default.Fragment,null,y(x,{compact:r?1:0,className:o,initial:{opacity:0,y:8}
2,animate:{opacity:1,y:0},transition:{duration:.4,ease:l.EASE_SMOOTH}},void 0,y(_,{compact:r?1:0,"aria-hidden":"true"},void 0,"\u{1f576}"),y(S,{compact:r?1:0},void 0,c("privacy_lock.masked_title")),Boolean(T)&&y(C,{},void 0,T),!r&&z,y(P,{type:"button",compact:r?1:0,onClick:I,whileHover:{scale:1.02},whileTap:{scale:.96},transition:{duration:.15,ease:l.EASE_MICRO},"aria-label":"Unlock sensitive content"},void 0,c("privacy_lock.unlock_action"))),y(f.default,{open:j,mode:"unlock",onClose:function(){return k(!1)}}))}A.defaultProps={sensitive:!1,categories:[],compact:!1};var N=y("span",{"aria-hidden":"true"},void 0,"\u{1f576}");function L(t){var e=t.categories,n=t.onEnablePress,r=t.onDismiss,o=(0,d.useTranslation)().t,i=(0,s.categoryLabels)(e);return y(E,{initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.4,ease:l.EASE_SMOOTH}},void 0,N,y(j,{},void 0,y(k,{},void 0,"Sensitive topic detected",i?" \u2014 ".concat(i):""),y(I,{type:"button",onClick:n},void 0,o("sensitivecontentguard.turn_on_private_mode_to_hide"))),y(T,{type:"button",onClick:r,"aria-label":"Dismiss suggestion"},void 0,"\xd7"))}L.defaultProps={categories:[]};e.default=A},239621:(t,e)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,r){var o;return o=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==n(o)?o:String(o))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0}),e.CHAT_CAPTURE_FLAGS=void 0,e.clearChatCaptureFlagOverrides=function(t){if(void 0===t)return void c.clear();l(t)&&c.delete(t)},e.getChatCaptureFlagDefaults=function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},a)},e.getChatCaptureFlags=function(){var t={};return i.forEach((function(e){t[e]=u(e)})),t},e.isChatCaptureFlagEnabled=u,e.setChatCaptureFlagOverride=function(t,e){if(!l(t))return;c.set(t,!0===e)};var i=e.CHAT_CAPTURE_FLAGS=["vectorBadges","evidencePanel","sufficiencyGate"],a=Object.freeze({vectorBadges:!1,evidencePanel:!1,sufficiencyGate:!1}),c=new Map;function l(t){return Object.prototype.hasOwnProperty.call(a,t)}function u(t){if(!l(t))return!1;var e=c.get(t);return void 0===e?a[t]:e}},46429:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.team,n=t.live,r=t.activeTool,o=e&&e.agents||[],a=!n&&o.every((function(t){return"running"!==t.state})),u=(p=(0,i.useState)(a),h=2,function(t){if(Array.isArray(t))return t}(p)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(p,h)||function(t,e){if(t){if("string"===typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}
2(p,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],d=u[1];var p,h;(0,i.useEffect)((function(){d(a)}),[a]);var b=(0,i.useMemo)((function(){var t=new Map;return o.forEach((function(e){var n=e.phase||"Specialist Panel";t.has(n)||t.set(n,[]),t.get(n).push(e)})),g.filter((function(e){return t.has(e)})).map((function(e){return{phase:e,agents:t.get(e)}}))}),[o]);if(!o.length)return null;var P=o.filter((function(t){return"triage"!==t.id&&"synthesis"!==t.id})).length,I=e&&e.durationMs||o.reduce((function(t,e){return t+(e.elapsedMs||0)}),0);return v(c.AnimatePresence,{mode:"wait",initial:!1},void 0,s?v(F,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.25,ease:f.EASE_SMOOTH},whileHover:{scale:1.02},whileTap:{scale:.96},onClick:function(){return d(!1)},type:"button"},"collapsed","\u{1f465}"," Care team \xb7"," ",P>0?"".concat(P," specialist").concat(P>1?"s":""):"triage",I?" \xb7 ".concat($(I)):""," ","\u25be"):v(x,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.3,ease:f.EASE_SMOOTH}},"expanded",v(_,{$clickable:a,onClick:a?function(){return d(!0)}:void 0},void 0,v(l.FiUsers,{size:15,color:m,style:{flexShrink:0}}),v("div",{style:{flex:1,minWidth:0}},void 0,v(S,{},void 0,n?"Care team working\u2026":"Care team"),e&&e.headline&&v(C,{},void 0,e.headline)),e&&e.lead&&v(O,{},void 0,v(w(e.lead.id),{size:12}),e.lead.name),v(E,{},void 0,o.map((function(t){return v(j,{$done:"running"!==t.state},t.id)}))),a&&v(c.motion.span,{style:{color:"#999",fontSize:12},whileTap:{scale:.92},transition:{duration:.15,ease:f.EASE_MICRO}},void 0,"\u25b4")),b.map((function(t){return v("div",{},t.phase,b.length>1&&v(k,{},void 0,t.phase),t.agents.map((function(t){return v(B,{agent:t,activeTool:r},t.id)})))}))))};var o,i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=r(t)&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=i?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(551710)),a=(p(n(338071)),p(n(2693))),c=n(765398),l=n(762624),u=n(683726),s=n(71878),f=n(817498),d=n(239621);function p(t){return t&&t.__esModule?t:{default:t}}function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=r;else if(a>1){for(var c=new Array(a),l=0;l<a;l++)c[l]=arguments[l+3];e.children=c}if(e&&i)for(var u in i)void 0===e[u]&&(e[u]=i[u]);else e||(e=i||{});return{$$typeof:o,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}var m="#00bae5",g=["Triage","Specialist Panel","Review","Follow-up","Synthesis"],b={triage:l.FiActivity,differential:u.FaStethoscope,safety:l.FiShield,therapist:u.FaSpa,nutritionist:u.FaAppleAlt,sleep:l.FiMoon,lifestyle:u.FaLeaf,research:l.FiBookOpen,reviewer:l.FiCheckSquare,synthesis:u.FaBrain};function w(t){return b[t]?b[t]:String(t).startsWith("explore")?l.FiSearch:l.FiUser}var x=(0,a.default)(c.motion.div).withConfig({displayName:"CareTeamPanel__Card",componentId:"sc-1lb7tzz-0"})(["max-width:75%;align-self:flex-start;background:#fff;border:1px solid #ebebeb;border-radius:12px;padding:12px 14px;margin-bottom:8px;box-shadow:0 1px 3px rgba(0,0,0,0.08);"]),_=a.default.div.withConfig({displayName:"CareTeamPanel__HeaderRow",componentId:"sc-1lb7tzz-1"})(["display:flex;align-items:center;gap:8px;cursor:",";"],(function(t){return t.$clickable?"pointer":"default"}
2)),S=a.default.div.withConfig({displayName:"CareTeamPanel__HeaderTitle",componentId:"sc-1lb7tzz-2"})(["font-size:13px;font-weight:600;color:#222;"]),C=a.default.div.withConfig({displayName:"CareTeamPanel__HeaderHeadline",componentId:"sc-1lb7tzz-3"})(["font-size:11px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),O=a.default.span.withConfig({displayName:"CareTeamPanel__LeadChip",componentId:"sc-1lb7tzz-4"})(["display:inline-flex;align-items:center;gap:4px;border-radius:9999px;background:","12;color:",";font-size:11px;font-weight:600;padding:3px 8px;white-space:nowrap;flex-shrink:0;"],m,m),P=a.default.span.withConfig({displayName:"CareTeamPanel__VectorBadge",componentId:"sc-1lb7tzz-5"})(["border:1px solid ","55;border-radius:9999px;color:",";flex-shrink:0;font-size:9px;font-weight:700;letter-spacing:0.4px;padding:1px 6px;"],m,m),E=a.default.div.withConfig({displayName:"CareTeamPanel__ProgressDots",componentId:"sc-1lb7tzz-6"})(["display:flex;gap:3px;margin-left:auto;"]),j=a.default.span.withConfig({displayName:"CareTeamPanel__ProgressDot",componentId:"sc-1lb7tzz-7"})(["width:5px;height:5px;border-radius:3px;background:",";transition:background 0.3s cubic-bezier(0.16,1,0.3,1);"],(function(t){return t.$done?m:"".concat(m,"40")})),k=a.default.div.withConfig({displayName:"CareTeamPanel__PhaseLabel",componentId:"sc-1lb7tzz-8"})(["font-size:10px;font-weight:600;letter-spacing:0.8px;color:#999;margin:10px 0 4px;text-transform:uppercase;"]),I=(0,a.default)(c.motion.div).withConfig({displayName:"CareTeamPanel__AgentRowWrap",componentId:"sc-1lb7tzz-9"})(["display:flex;align-items:flex-start;gap:8px;padding:4px 0;"]),T=a.default.div.withConfig({displayName:"CareTeamPanel__StatusWrap",componentId:"sc-1lb7tzz-10"})(["width:16px;display:flex;justify-content:center;padding-top:3px;"]),z=(0,a.default)(c.motion.span).withConfig({displayName:"CareTeamPanel__Dot",componentId:"sc-1lb7tzz-11"})(["width:8px;height:8px;border-radius:50%;background:",";"],m),A=a.default.span.withConfig({displayName:"CareTeamPanel__Check",componentId:"sc-1lb7tzz-12"})(["color:",";font-size:13px;line-height:1;"],(function(t){return t.$failed?"#bbb":m})),N=a.default.div.withConfig({displayName:"CareTeamPanel__AgentBody",componentId:"sc-1lb7tzz-13"})(["flex:1;min-width:0;"]),L=a.default.div.withConfig({displayName:"CareTeamPanel__AgentTitleRow",componentId:"sc-1lb7tzz-14"})(["display:flex;align-items:baseline;justify-content:space-between;gap:8px;"]),M=a.default.span.withConfig({displayName:"CareTeamPanel__AgentName",componentId:"sc-1lb7tzz-15"})(["font-size:13px;font-weight:500;color:",";"],(function(t){return t.$failed?"#bbb":"#222"})),H=a.default.span.withConfig({displayName:"CareTeamPanel__AgentElapsed",componentId:"sc-1lb7tzz-16"})(["font-size:11px;font-weight:500;color:#999;white-space:nowrap;"]),D=a.default.div.withConfig({displayName:"CareTeamPanel__AgentSummary",componentId:"sc-1lb7tzz-17"})(["font-size:12px;line-height:1.35;color:#777;margin-top:1px;font-style:",";"],(function(t){return t.$thinking?"italic":"normal"})),F=(0,a.default)(c.motion.button).withConfig({displayName:"CareTeamPanel__CollapsedPill",componentId:"sc-1lb7tzz-18"})(["display:inline-flex;align-items:center;align-self:flex-start;gap:6px;border:1px solid ","30;background:","12;color:",";border-radius:9999px;padding:5px 12px;font-size:11px;font-weight:600;cursor:pointer;margin-bottom:8px;"],m,m,m);function $(t){return t||0===t?t>=1e3?"".concat((t/1e3).toFixed(1),"s"):"".concat(t,"ms"):""}function B(t){var e=t.agent,n=t.activeTool,r="running"===e.state,o="error"===e.state||"skipped"===e.state,i=w(e.id),a=(0,d.isChatCaptureFlagEnabled)("vectorBadges")?(0,s.vectorLabelForAgent)(e.id):null,c=null;return r?c="synthesis"===e.id&&n?"using ".concat(n,"\u2026"):e.thought||"working\u2026":e.summary&&(c=e.summary),v(I,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.25,ease:f.EASE_SMOOTH}},void 0,v(T,{},void 0,r?v(z,{animate:{opacity:[.35,1,.35],scale:[.85,1.15,.85]},transition:{duration:1.2,repeat:1/0,ease:"easeInOut"}}):v(A,{$failed:o},void 0,o?"\u2212":"\u2713")),v(i,{size:14,color:r?m:"var(--text-secondary, #777)",style:{marginTop:2,flexShrink:0}}),v(N,{},void 0,v(L,{},void 0,v(M,{$failed:o},void 0,e.name),!!a&&v(P,{},void 0,a),!!e.elapsedMs&&v(H,{},void 0,$(e.elapsedMs))),c&&v(D,{$thinking:r},void 0,c)))}},458265:(t,e,n)=>
2{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.evidence;if(!e)return null;var n=p[e.verdict]||p.insufficient,r=(0,u.usableCitations)(e),i={};r.forEach((function(t){i[t.id]=t}));var a=e.claims||[],s=e.conflicts||[],d=e.unknowns||[];return f(y,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.25,ease:l.EASE_SMOOTH}},void 0,f(v,{},void 0,f(m,{$color:n.color},void 0,f(c.FiShield,{size:14,color:n.color})),f("div",{},void 0,L,f(b,{$color:n.color},void 0,n.label))),!!e.summary&&f(w,{},void 0,e.summary),a.map((function(t){var e=p[t.assessment]||p.insufficient;return f(x,{},t.id,f(_,{$color:e.color},void 0,t.text),!!t.explanation&&f(S,{},void 0,t.explanation),f(N,{ids:t.citationIds,byId:i}))})),!!s.length&&f(P,{$tone:"conflict"},void 0,M,s.map((function(t){return f(j,{},t,"\u2022 ",t)}))),!!d.length&&f(P,{$tone:"unknown"},void 0,H,d.map((function(t){return f(j,{},t,"\u2022 ",t)}))),!!r.length&&f(o.default.Fragment,{},void 0,D,r.map((function(t){return f(I,{href:t.url,target:"_blank",rel:"noopener noreferrer"},t.id,f(T,{},void 0,"[",t.number,"]"),f("span",{},void 0,t.title," ",!!h[t.sourceType]&&f(z,{},void 0,"\xb7 ",h[t.sourceType])),f(c.FiExternalLink,{size:11,style:{flexShrink:0}}))}))),F)};var r,o=s(n(551710)),i=(s(n(338071)),s(n(2693))),a=n(765398),c=n(762624),l=n(817498),u=n(140490);function s(t){return t&&t.__esModule?t:{default:t}}function f(t,e,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=o;else if(a>1){for(var c=new Array(a),l=0;l<a;l++)c[l]=arguments[l+3];e.children=c}if(e&&i)for(var u in i)void 0===e[u]&&(e[u]=i[u]);else e||(e=i||{});return{$$typeof:r,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}var d="#00bae5",p={supported:{label:"Supported",color:"#16856B"},contradicted:{label:"Not supported",color:"#C64B4B"},mixed:{label:"Mixed evidence",color:"#B7791F"},insufficient:{label:"Insufficient evidence",color:"#697386"}},h={official_guidance:"Official guidance",clinical_guideline:"Clinical guideline",systematic_review:"Systematic review",clinical_trial:"Clinical trial",peer_reviewed_study:"Peer-reviewed study",trusted_health_source:"Health source"},y=(0,i.default)(a.motion.div).withConfig({displayName:"HealthEvidencePanel__Card",componentId:"sc-1sdtaze-0"})(["max-width:75%;align-self:flex-start;background:#fff;border:1px solid #ebebeb;border-radius:12px;padding:12px 14px;margin-bottom:8px;box-shadow:0 1px 3px rgba(0,0,0,0.08);"]),v=i.default.div.withConfig({displayName:"HealthEvidencePanel__HeaderRow",componentId:"sc-1sdtaze-1"})(["display:flex;align-items:center;gap:8px;"]),m=i.default.span.withConfig({displayName:"HealthEvidencePanel__HeaderIcon",componentId:"sc-1sdtaze-2"})(["display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;flex-shrink:0;background:",";"],(function(t){var e=t.$color;return"".concat(e,"18")})),g=i.default.div.withConfig({displayName:"HealthEvidencePanel__Title",componentId:"sc-1sdtaze-3"})(["font-size:13px;font-weight:600;color:#222;"]),b=i.default.div.withConfig({displayName:"HealthEvidencePanel__Verdict",componentId:"sc-1sdtaze-4"})(["font-size:11px;font-weight:600;margin-top:1px;color:",";"],(function(t){return t.$color})),w=i.default.p.withConfig({displayName:"HealthEvidencePanel__Summary",componentId:"sc-1sdtaze-5"})(["font-size:13px;line-height:19px;color:#333;margin:10px 0 0;"]),x=i.default.div.withConfig({displayName:"HealthEvidencePanel__Claim",componentId:"sc-1sdtaze-6"})(["border-top:1px solid #f0f0f0;margin-top:10px;padding-top:10px;"]),_=i.default.div.withConfig({displayName:"HealthEvidencePanel__ClaimText",componentId:"sc-1sdtaze-7"})(["font-size:13px;line-height:18px;font-weight:600;color:",";"],(function(t){return t.$color})),S=i.default.div.withConfig({displayName:"HealthEvidencePanel__Explanation",componentId:"sc-1sdtaze-8"})(["font-size:12px;line-height:17px;color:#666;margin-top:3px;"]),C=i.default.div.withConfig({displayName:"HealthEvidencePanel__CiteRow",componentId:"sc-1sdtaze-9"})(["display:flex;flex-wrap:wrap;gap:4px;margin-top:5px;"]),O=i.default.a.withConfig({displayName:"HealthEvidencePanel__CiteButton",componentId:"sc-1sdtaze-10"})(["border-radius:8px;background:","16;color:",";font-size:11px;font-weight:600;padding:1px 6px;text-decoration:none;transition:background 0.15s cubic-bezier(0.25,0.1,0.25,1);&:hover{background:","28;}"],d,d,d),P=i.default.div.withConfig({displayName:"HealthEvidencePanel__Note",componentId:"sc-1sdtaze-11"})(["border-radius:8px;margin-top:10px;padding:8px 10px;background:",";"],(function(t){return"conflict"===t.$tone?"rgba(183,121,31,0.09)":"rgba(105,115,134,0.09)"})),E=i.default.div.withConfig({displayName:"HealthEvidencePanel__NoteTitle",componentId:"sc-1sdtaze-12"})(["font-size:11px;font-weight:700;color:",";"],(function(t){return"conflict"===t.$tone?"#B7791F":"#697386"})),j=i.default.div.withConfig({displayName:"HealthEvidencePanel__NoteItem",componentId:"sc-1sdtaze-13"})(["font-size:12px;line-height:17px;color:#555;margin-top:2px;"]),k=i.default.div.withConfig({displayName:"HealthEvidencePanel__SourcesTitle",componentId:"sc-1sdtaze-14"})(["font-size:10px;font-weight:700;letter-spacing:0.8px;text-transform:uppercase;color:#999;margin:12px 0 4px;"]),I=i.default.a.withConfig({displayName:"HealthEvidencePanel__SourceLink",componentId:"sc-1sdtaze-15"})(["display:flex;align-items:baseline;gap:6px;font-size:12px;line-height:17px;color:#444;text-decoration:none;margin-top:3px;transition:color 0.2s cubic-bezier(0.16,1,0.3,1);&:hover{color:",";}"],d),T=i.default.span.withConfig({displayName:"HealthEvidencePanel__SourceNumber",componentId:"sc-1sdtaze-16"})(["color:",";font-weight:700;flex-shrink:0;"],d),z=i.default.span.withConfig({displayName:"HealthEvidencePanel__SourceType",componentId:"sc-1sdtaze-17"})(["color:#999;font-size:11px;"]),A=i.default.div.withConfig({displayName:"HealthEvidencePanel__Disclaimer",componentId:"sc-1sdtaze-18"})(["font-size:10px;color:#999;margin-top:10px;"]);
2function N(t){var e=t.ids,n=t.byId,r=(e||[]).map((function(t){return n[t]})).filter(Boolean);return r.length?f(C,{},void 0,r.map((function(t){return f(O,{href:t.url,target:"_blank",rel:"noopener noreferrer",title:t.title},t.id,"[",t.number,"]")}))):null}var L=f(g,{},void 0,"Health evidence review"),M=f(E,{$tone:"conflict"},void 0,"Where sources differ"),H=f(E,{$tone:"unknown"},void 0,"What remains unknown"),D=f(k,{},void 0,"Sources"),F=f(A,{},void 0,"Evidence support \u2014 not a medical diagnosis.")},140490:(t,e)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,r){var o;return o=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==n(o)?o:String(o))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){try{return"https:"===new URL(String(t)).protocol}catch(t){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.isSafeCitationUrl=a,e.usableCitations=function(t){return(t&&t.citations||[]).filter((function(t){return t&&t.id&&a(t.url)})).map((function(t,e){return o(o({},t),{},{number:e+1})}))}},439654:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,x.useTranslation)().t,e=z((0,i.useState)([]),2),n=e[0],r=e[1],o=z((0,i.useState)(!1),2),a=o[0],_=o[1],S=z((0,i.useState)(null),2),C=S[0],P=S[1],j=z((0,i.useState)([]),2),I=j[0],A=j[1],N=z((0,i.useState)(""),2),et=N[0],nt=N[1],rt=z((0,i.useState)(!1),2),it=rt[0],at=rt[1],ct=z((0,i.useState)(!0),2),lt=ct[0],ut=ct[1],st=z((0,i.useState)("list"),2),ft=st[0],dt=st[1],pt=z((0,i.useState)(null),2),ht=pt[0],yt=pt[1],vt=z((0,i.useState)(null),2),mt=vt[0],gt=vt[1],bt=z((0,i.useState)(null),2),wt=bt[0],xt=bt[1],_t=z((0,i.useState)(null),2),St=_t[0],Ct=_t[1],Ot=(0,i.useRef)(null),Pt=(0,i.useRef)(null),Et=(0,m.default)(),jt=Et.enabled,kt=Et.disabledCategories,It=(0,i.useMemo)((function(){return(0,b.detectSensitiveInMessages)(I,(function(t){return t.content}),kt)}),[I,kt]),Tt=(0,i.useCallback)((function(){var t;null===(t=Pt.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})}),[]);function zt(){return At.apply(this,arguments)}function At(){return(At=T(O().mark((function t(){var e;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return ut(!0),t.prev=1,t.next=4,l.AgentConversationAPI.myConversations({params:{status:"active"}}
2);case 4:e=t.sent,r(e.data||e||[]),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),r([]);case 12:return t.prev=12,ut(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[1,8,12,15]])})))).apply(this,arguments)}function Nt(t){return Lt.apply(this,arguments)}function Lt(){return Lt=T(O().mark((function t(e){var n,r;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return P(e),dt("chat"),t.prev=2,t.next=5,l.AgentConversationAPI.getHistory({params:{conversationId:e.id}});case 5:n=t.sent,r=n.data||n,A((r.turns||[]).map((function(t){return{role:t.role,content:t.content,timestamp:t.timestamp,actions:t.actions,team:t.careTeam&&t.careTeam.agents&&t.careTeam.agents.length?t.careTeam:void 0,evidence:t.evidence}}))),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2);case 13:case"end":return t.stop()}}),t,null,[[2,10]])}))),Lt.apply(this,arguments)}function Mt(){return(Mt=T(O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:P(null),A([]),dt("chat");case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ht(){return(Ht=T(O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==C&&void 0!==C&&C.id){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,l.AgentConversationAPI.closeConversation({conversationId:C.id});case 5:dt("list"),zt(),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})))).apply(this,arguments)}return(0,i.useEffect)((function(){f.default.init().catch((function(t){})),zt();try{Ct((0,d.getPendingProactiveSession)())}catch(t){Ct(null)}}),[]),(0,i.useEffect)((function(){Tt()}),[I,it,ht]),L(w.MotionPage,{},void 0,L(M,{},void 0,L(c.AnimatePresence,{},void 0,St&&L(Q,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.35,ease:w.EASE_SMOOTH},whileHover:{scale:1.01},whileTap:{scale:.98},onClick:function(){if(!St)return;var t=St.conversationId;Ct(null),(0,d.clearPendingProactiveSession)(),Nt({id:t})},type:"button"},"proactive-banner",L("span",{style:{fontSize:20}},void 0,"\u2728"),L("div",{},void 0,L(X,{},void 0,t("careteam_proactive_title")),L(Z,{},void 0,"Your care team reviewed your ",St.eventLabel,St.findingsCount>0?" \u2014 ".concat(St.findingsCount," potential finding").concat(St.findingsCount>1?"s":""):"",". Click to review and add symptoms.")),L(tt,{whileTap:{scale:.92},transition:{duration:.15,ease:w.EASE_MICRO},onClick:function(t){t.stopPropagation(),Ct(null),(0,d.clearPendingProactiveSession)()},role:"button","aria-label":"Dismiss analysis banner"},void 0,"\u2715"))),L(c.AnimatePresence,{mode:"wait"},void 0,"list"===ft?L(c.motion.div,{initial:{opacity:0,x:-30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.35,ease:w.EASE_SMOOTH},style:{flex:1,display:"flex",flexDirection:"column"}},"list-view",L(J,{},void 0,L(V,{},void 0,t("agentchat.health_concierge")),L(W,{whileHover:{scale:1.02},whileTap:{scale:.96},onClick:function(){return Mt.apply(this,arguments)}},void 0,t("ai_doctor.new_chat"))),lt?L(K,{},void 0,L(c.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},style:{width:32,height:32,border:"3px solid #eee",borderTopColor:"#00bae5",borderRadius:"50%"}})):0===n.length?L(K,{},void 0,L(c.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,ease:w.EASE_SMOOTH}},void 0,L("div",{style:{fontSize:48,marginBottom:16}},void 0,"\u{1f50d}"),L("h3",{style:{fontWeight:600,marginBottom:8}},void 0,t("aihealthassistant.no_conversations_yet")),L("p",{style:{color:"#777",fontSize:14}},void 0,t("agentchat.start_a_new_chat_to_plan")))):L(w.StaggerList,{style:{padding:"16px 0",display:"flex",flexDirection:"column",gap:12}},void 0,n.map((function(t){return L(w.StaggerItem,{},t.id,L(Y,{whileHover:{y:-4},whileTap:{scale:.98},transition:{duration:.2,ease:w.EASE_SMOOTH},onClick:function(){return Nt(t)}},void 0,L("div",{style:{fontWeight:600,fontSize:15,marginBottom:4}},void 0,t.summary||"Conversation"),t.lastMessage&&L("div",{style:{fontSize:13,color:"#777",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},void 0,t.lastMessage.content),L("div",{style:{fontSize:11,color:"#bbb",marginTop:6}},void 0,t.turnCount||0," messages",t.updatedAt&&" \xb7 ".concat(new Date(t.updatedAt).toLocaleDateString()))))})))):L(c.motion.div,{initial:{opacity:0,x:30}
2,animate:{opacity:1,x:0},exit:{opacity:0,x:30},transition:{duration:.35,ease:w.EASE_SMOOTH},style:{flex:1,display:"flex",flexDirection:"column"}},"chat-view",L(J,{},void 0,L(q,{whileHover:{scale:1.02},whileTap:{scale:.96},onClick:function(){dt("list"),zt()}},void 0,"\u2190 Back"),L(V,{},void 0,t("agentchat.health_concierge")),(null===C||void 0===C?void 0:C.id)&&L(q,{whileHover:{scale:1.02},whileTap:{scale:.96},onClick:function(){return Ht.apply(this,arguments)},style:{color:"#e53935"}},void 0,t("agentchat.end_chat"))),L(H,{},void 0,0===I.length&&!it&&L(K,{},void 0,L(c.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.4,ease:w.EASE_SMOOTH}},void 0,L("h3",{style:{fontWeight:600,marginBottom:8}},void 0,t("agentchat.how_can_i_help_you_today")),L("p",{style:{color:"#777",fontSize:14,maxWidth:400}},void 0,"Ask me about medical procedures, clinics, pricing, or help planning your medical travel itinerary."))),It.length>0&&!jt&&!a&&L(g.SensitiveTopicBanner,{categories:It,onEnablePress:function(){return v.default.push("/security")},onDismiss:function(){return _(!0)}}),I.map((function(e,n){var r,o=(0,b.detectSensitiveCategories)(e.content||"",kt);return L(F,{$isUser:"user"===e.role},n,e.team&&e.team.agents&&e.team.agents.length>0&&L(p.default,{team:e.team,live:!!e.streaming,activeTool:e.streaming?mt:null}),L(g.default,{compact:!0,sensitive:o.length>0,categories:o},void 0,L(D,{$isUser:"user"===e.role,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.25,ease:w.EASE_SMOOTH}},void 0,e.content)),(0,y.isChatCaptureFlagEnabled)("evidencePanel")&&!!e.evidence&&L(h.default,{evidence:e.evidence}),e.actions&&e.actions.length>0&&e.actions.map((function(t,e){var n;return L(R,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2,delay:.1*e}},e,"\u2713 ",null===(n=t.tool)||void 0===n?void 0:n.replace(/_/g," "))})),L($,{},void 0,(r=e.timestamp)?new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"",e._decrypted&&L(U,{title:t("supabasechat.end_to_end_encrypted")},void 0,"\u{1f512} E2E")))})),L(c.AnimatePresence,{},void 0,it&&!wt&&(ht&&ht.agents&&ht.agents.length?L(F,{},"live-team",L(p.default,{team:ht,live:!0,activeTool:mt})):ot)),i.default.createElement("div",{ref:Pt})),L("form",{onSubmit:function(t){t.preventDefault();var e=et.trim();if(!e||it)return;nt(""),at(!0),Ot.current=null,yt(null),gt(null),A((function(t){return[].concat(k(t),[{role:"user",content:e,timestamp:(new Date).toISOString()}])}));var n="s-".concat(Date.now()),r=null===C||void 0===C?void 0:C.id,o=function(t){var e;!r&&t.conversationId&&P({id:t.conversationId});var o=t.careTeam&&t.careTeam.agents&&t.careTeam.agents.length?E({headline:null===(e=Ot.current)||void 0===e?void 0:e.headline},t.careTeam):Ot.current||void 0,i={role:"assistant",content:t.message,timestamp:(new Date).toISOString(),actions:t.actions,team:o,evidence:t.evidence};A((function(t){return t.some((function(t){return t._sid===n}))?t.map((function(t){return t._sid===n?i:t})):[].concat(k(t),[i])})),Ot.current=null,yt(null),gt(null),xt(null),at(!1)},i=function(){A((function(t){return[].concat(k(t.filter((function(t){return t._sid!==n}))),[{role:"assistant",content:"Sorry, something went wrong. Please try again.",timestamp:(new Date).toISOString()}])})),Ot.current=null,yt(null),gt(null),xt(null),at(!1)},a=function(){var t=T(O().mark((function t(){var n,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={message:e},r&&(n.conversationId=r),t.next=5,l.AgentConversationAPI.chat(n);case 5:a=t.sent,o(a.data||a),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),i();case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),c=!1,f=function(t,e){var r=Ot.current||{},o=E(E(E({},r),t),{},{agents:(0,s.upsertAgents)(r.agents,e)});Ot.current=o,yt(o),c&&A((function(t){return t.map((function(t){return t._sid===n?E(E({},t),{},{team:o}):t}))}))};(0,u.streamAgentChat)({message:e,conversationId:r,onMeta:function(t){!r&&t&&t.conversationId&&P({id:t.conversationId})},onStatus:function(t){t&&t.tool&&gt(String(t.tool).replace(/_/g," "))},onTeam:function(t){return f({headline:t&&t.headline},t&&t.agents||[])},onAgent:function(t){return f({},[t])},onDelta:function(t){t&&(c||(c=!0,xt(n),A((function(t){return[].concat(k(t),[{_sid:n,role:"assistant",content:"",streaming:!0,team:Ot.current||void 0,timestamp:(new Date).toISOString()}])}))),A((function(e){return e.map((function(e){return e._sid===n?E(E({},e),{},{content:e.content+t}):e}))})))},onDone:o,onError:function(){c?i():a()}})}},void 0,L(B,{},void 0,L(G,{value:et,onChange:function(t){return nt(t.target.value)},placeholder:t("agentchat.ask_about_procedures_clinics_pricing"),disabled:it}),L(W,{type:"submit",disabled:!et.trim()||it,whileHover:{scale:1.02},whileTap:{scale:.96}},void 0,t("consult.send"))))))))};var o,i=C(n(551710)),a=_(n(2693)),c=n(765398),l=n(110075),u=n(243390),s=n(364066),f=_(n(315240)),d=n(661430),p=_(n(46429)),h=_(n(458265)),y=n(239621),v=_(n(690635)),m=_(n(958466)),g=C(n(724159)),b=n(910998),w=n(817498),x=n(837809);function _(t){return t&&t.__esModule?t:{default:t}}function S(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(S=function(t){return t?n:e})(t)}function C(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=r(t)&&"function"!=typeof t)return{default:t};var n=S(e);if(n&&n.has(t))return n.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=i?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}function O(){O=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),c=new z(r||[]);return i(a,"_invoke",{value:j(t,n,c)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="suspendedYield",y="executing",v="completed",m={};function g(){}function b(){}function w(){}var x={};s(x,c,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(A([])));
vendor: 5,927 bytes, line 2
2S&&S!==n&&o.call(S,c)&&(x=S);var C=w.prototype=g.prototype=Object.create(x);function P(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(i,a,c,l){var u=d(t[i],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==r(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,l)}))}l(u.arg)}var a;i(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=k(c,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?v:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=v,r.method="throw",r.arg=u.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return b.prototype=w,i(C,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=s(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,u,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},P(E.prototype),s(E.prototype,l,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(C),s(C,u,"Generator"),s(C,c,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=A,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?P(Object(n),!0).forEach((function(e){j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e,n){var o;return o=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==r(o)?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t){return function(t){if(Array.isArray(t))return N(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||A(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e,n,r,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function T(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){I(i,r,o,a,c,"next",t)}function c(t){I(i,r,o,a,c,"throw",t)}a(void 0)}))}}function z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||A(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){if(t){if("string"===typeof t)return N(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function L(t,e,n,r){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=r;else if(a>1){for(var c=new Array(a),l=0;l<a;l++)c[l]=arguments[l+3];e.children=c}if(e&&i)for(var u in i)void 0===e[u]&&(e[u]=i[u]);else e||(e=i||{});return{$$typeof:o,type:t,key:void 0===n?null:""+n,ref:null,props:e,_owner:null}}var M=a.default.div.withConfig({displayName:"AgentChat__ChatContainer",componentId:"sc-1j1dwfb-0"})(["display:flex;flex-direction:column;height:calc(100vh - 90px);max-width:900px;margin:0 auto;padding:0 16px;"]),H=a.default.div.withConfig({displayName:"AgentChat__MessagesArea",componentId:"sc-1j1dwfb-1"})(["flex:1;overflow-y:auto;padding:24px 0;-webkit-overflow-scrolling:touch;"]),D=(0,a.default)(c.motion.div).withConfig({displayName:"AgentChat__MessageBubble",componentId:"sc-1j1dwfb-2"})(["max-width:75%;padding:14px 18px;border-radius:",";background:",";color:",";margin-bottom:8px;align-self:",";font-size:15px;line-height:1.5;word-wrap:break-word;box-shadow:0 1px 3px rgba(0,0,0,0.08);"],(function(t){return t.$isUser?"16px 16px 4px 16px":"16px 16px 16px 4px"}),(function(t){return t.$isUser?"#00bae5":"#f0f0f0"}),(function(t){return t.$isUser?"#fff":"#222"}),(function(t){return t.$isUser?"flex-end":"flex-start"})),F=a.default.div.withConfig({displayName:"AgentChat__MessageRow",componentId:"sc-1j1dwfb-3"})(["display:flex;flex-direction:column;align-items:",";"],(function(t){return t.$isUser?"flex-end":"flex-start"})),$=a.default.span.withConfig({displayName:"AgentChat__MessageTime",componentId:"sc-1j1dwfb-4"})(["font-size:11px;color:#999;margin-bottom:12px;padding:0 4px;"]),B=a.default.div.withConfig({displayName:"AgentChat__InputArea",componentId:"sc-1j1dwfb-5"})(["display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid #ebebeb;"]),G=a.default.input.withConfig({displayName:"AgentChat__ChatInput",componentId:"sc-1j1dwfb-6"})(["flex:1;height:48px;border-radius:12px;border:1px solid #ddd;padding:0 16px;font-size:15px;outline:none;transition:border-color 0.2s;&:focus{border-color:#00bae5;}"]),W=(0,a.default)(c.motion.button).withConfig({displayName:"AgentChat__SendButton",componentId:"sc-1j1dwfb-7"}
2)(["height:48px;padding:0 24px;border-radius:12px;border:none;background:#00bae5;color:#fff;font-weight:600;font-size:15px;cursor:pointer;transition:background-color 0.2s;&:disabled{opacity:0.5;cursor:default;}"]),U=a.default.span.withConfig({displayName:"AgentChat__EncryptedBadge",componentId:"sc-1j1dwfb-8"})(["display:inline-flex;align-items:center;gap:3px;font-size:10px;color:#43a047;margin-left:6px;"]),R=(0,a.default)(c.motion.span).withConfig({displayName:"AgentChat__ActionChip",componentId:"sc-1j1dwfb-9"})(["display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:8px;background:#e8f7fc;color:#00bae5;font-size:12px;font-weight:500;margin-top:4px;"]),Y=(0,a.default)(c.motion.div).withConfig({displayName:"AgentChat__ConversationListItem",componentId:"sc-1j1dwfb-10"})(["padding:16px;border-radius:12px;border:1px solid #ebebeb;cursor:pointer;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.08);transition:box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);&:hover{box-shadow:0 8px 30px rgba(0,0,0,0.12);}"]),J=a.default.div.withConfig({displayName:"AgentChat__Header",componentId:"sc-1j1dwfb-11"})(["display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #ebebeb;"]),V=a.default.h2.withConfig({displayName:"AgentChat__HeaderTitle",componentId:"sc-1j1dwfb-12"})(["font-weight:600;font-size:20px;margin:0;"]),q=(0,a.default)(c.motion.button).withConfig({displayName:"AgentChat__BackButton",componentId:"sc-1j1dwfb-13"})(["border:none;background:#f7f7f7;border-radius:8px;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;"]),K=a.default.div.withConfig({displayName:"AgentChat__EmptyState",componentId:"sc-1j1dwfb-14"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 24px;text-align:center;"]),Q=(0,a.default)(c.motion.button).withConfig({displayName:"AgentChat__ProactiveBanner",componentId:"sc-1j1dwfb-15"})(["display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid #00bae530;background:#00bae512;border-radius:12px;padding:12px 16px;margin:12px 0 4px;cursor:pointer;"]),X=a.default.div.withConfig({displayName:"AgentChat__ProactiveBannerTitle",componentId:"sc-1j1dwfb-16"})(["font-size:14px;font-weight:600;color:#222;"]),Z=a.default.div.withConfig({displayName:"AgentChat__ProactiveBannerSubtitle",componentId:"sc-1j1dwfb-17"})(["font-size:12px;color:#777;margin-top:1px;"]),tt=(0,a.default)(c.motion.span).withConfig({displayName:"AgentChat__ProactiveDismiss",componentId:"sc-1j1dwfb-18"})(["margin-left:auto;color:#999;font-size:14px;padding:4px 8px;border-radius:9999px;"]),et=(0,a.default)(c.motion.div).withConfig({displayName:"AgentChat__TypingIndicator",componentId:"sc-1j1dwfb-19"})(["display:flex;gap:4px;padding:14px 18px;border-radius:16px 16px 16px 4px;background:#f0f0f0;align-self:flex-start;margin-bottom:8px;"]),nt=(0,a.default)(c.motion.span).withConfig({displayName:"AgentChat__TypingDot",componentId:"sc-1j1dwfb-20"})(["width:8px;height:8px;border-radius:50%;background:#999;"]);function rt(){return L(et,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.2}},void 0,[0,1,2].map((function(t){return L(nt,{animate:{y:[0,-6,0]},transition:{duration:.6,repeat:1/0,delay:.15*t}},t)})))}var ot=L(rt,{})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.