PageSourceSearch

https://ask.marketbrew.ai/mb-resources/js/ask-widget.js

js marketbrew.ai collected 2026-09-28 08:44:32 UTC 66,403 bytes, 551 lines download raw bytes

1!function(){"use strict";
2/**
3     * @license
4     * Copyright 2021 Google LLC
5     * SPDX-License-Identifier: BSD-3-Clause
6     */const e="lit-localize-status",t=(e,...t)=>({strTag:!0,strings:e,values:t}),s=(e,t,s)=>{let i=e[0];for(let o=1;o<e.length;o++)i+=t[s?s[o-1]:o-1],i+=e[o];return i},i=e=>{return"string"!=typeof(t=e)&&"strTag"in t?s(e.strings,e.values):e;var t};
7/**
8     * @license
9     * Copyright 2021 Google LLC
10     * SPDX-License-Identifier: BSD-3-Clause
11     */let o=i,r=!1;
12/**
13     * @license
14     * Copyright 2021 Google LLC
15     * SPDX-License-Identifier: BSD-3-Clause
16     */
17class n{constructor(e){this.__litLocalizeEventHandler=e=>{"ready"===e.detail.status&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(e,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(e,this.__litLocalizeEventHandler)}}const a=e=>e.addController(new n(e));
18/**
19     * @license
20     * Copyright 2020 Google LLC
21     * SPDX-License-Identifier: BSD-3-Clause
22     */
23class c{constructor(){this.settled=!1,this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}
24/**
25     * @license
26     * Copyright 2014 Travis Webb
27     * SPDX-License-Identifier: MIT
28     */const l=[];for(let e=0;e<256;e++)l[e]=(e>>4&15).toString(16)+(15&e).toString(16);function d(e,t){return(t?"h":"s")+function(e){let t=0,s=8997,i=0,o=33826,r=0,n=40164,a=0,c=52210;for(let l=0;l<e.length;l++)s^=e.charCodeAt(l),t=435*s,i=435*o,r=435*n,a=435*c,r+=s<<8,a+=o<<8,i+=t>>>16,s=65535&t,r+=i>>>16,o=65535&i,c=a+(r>>>16)&65535,n=65535&r;return l[c>>8]+l[255&c]+l[n>>8]+l[255&n]+l[o>>8]+l[255&o]+l[s>>8]+l[255&s]}
29/**
30     * @license
31     * Copyright 2020 Google LLC
32     * SPDX-License-Identifier: BSD-3-Clause
33     */("string"==typeof e?e:e.join("�"))}
34/**
35     * @license
36     * Copyright 2021 Google LLC
37     * SPDX-License-Identifier: BSD-3-Clause
38     */const h=new WeakMap,u=new Map;function p(e,t,o){if(e){const i=o?.id??function(e){const t="string"==typeof e?e:e.strings;let s=u.get(t);void 0===s&&(s=d(t,"string"!=typeof e&&!("strTag"in e)),u.set(t,s));return s}
39/**
40     * @license
41     * Copyright 2021 Google LLC
42     * SPDX-License-Identifier: BSD-3-Clause
43     */(t),r=e[i];if(r){if("string"==typeof r)return r;if("strTag"in r)return s(r.strings,t.values,r.values);{let e=h.get(r);return void 0===e&&(e=r.values,h.set(r,e)),{...r,values:e.map(e=>t.values[e])}}}}return i(t)}function g(t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}let b,f,v,m,y,w="",$=new c;$.resolve();let _=0;const S=()=>w,k=e=>{if(e===(b??w))return $.promise;if(!v||!m)throw new Error("Internal error");if(!v.has(e))throw new Error("Invalid locale code");_++;const t=_;b=e,$.settled&&($=new c),g({status:"loading",loadingLocale:e});return(e===f?Promise.resolve({templates:void 0}):m(e)).then(s=>{_===t&&(w=e,b=void 0,y=s.templates,g({status:"ready",readyLocale:e}),$.resolve())},s=>{_===t&&(g({status:"error",errorLocale:e,errorMessage:s.toString()}),$.reject(s))}),$.promise},A=["af","ar","de","es-419","es-ES","ga","he","hi","is","jpa","nl","no","pt-BR","ru","sv","zh"],x=["af","ar","de","en","es-419","es-ES","ga","he","hi","is","jpa","nl","no","pt-BR","ru","sv","zh"];function C(e,t){const s=new Map;if(void 0===e)return s;let i=0;for(const o of e.matchAll(/#\{([^}]+)\}/g)){if(i>=t.length)return;s.set(o[1],t[i++])}return s}const E=new Map;function T(e){const t=E.get(e);if(void 0!==t)return t;const s=e.split(/#\{[^}]+\}/g);return Object.defineProperty(s,"raw",{value:Object.freeze(Array.from(s))}),Object.freeze(s),E.set(e,s),s}function P(e,t,s,i){const o=t?.id??d(e.strings,!1),r=i?.[o];if(void 0===r)return;const n=r.translations?.find(e=>e.messageLocale===s),a=C(r.message,e.values);if(void 0===a)return;return function(e,t){if(void 0===e)return;let s=!1;const i=e.replace(/#\{([^}]+)\}/g,(e,i)=>t.has(i)?String(t.get(i)):(s=!0,""));return s?void 0:i}(void 0===n?r.message:n.message,a)}function I(e,t,s,i){return"string"==typeof e?function(e,t,s,i){const o=t?.id??d(e,!1),r=i?.[o];if(void 0===r)return;const n=r.translations?.find(e=>e.messageLocale===s);return void 0===n?r.message:n.message}(e,t,s,i):"string"!=typeof e&&"strTag"in e?P(e,t,s,i):function(e,t,s,i){const o=t?.id??d(e.strings,!0),r=i?.[o];if(void 0===r)return;const n=r.translations?.find(e=>e.messageLocale===s),a=C(r.message,e.values),c=void 0===n?r.message:n.message;if(void 0===c||void 0===a)return;const l=[];for(const e of c.matchAll(/#\{([^}]+)\}/g)){const t=e[1];if(!a.has(t))return;l.push(a.get(t))}return{...e,strings:T(c),values:l}}(e,t,s,i)}let H,M;const{setLocale:O,getLocale:U}=(L={sourceLocale:"en",targetLocales:A,loadLocale:e=>function(e){switch(e){case"../generated/locales/af.ts":return Promise.resolve().then(function(){return xt});case"../generated/locales/ar.ts":return Promise.resolve().then(function(){return Et});case"../generated/locales/de.ts":return Promise.resolve().then(function(){return Pt});case"../generated/locales/es-419.ts":return Promise.resolve().then(function(){return Ht});case"../generated/locales/es-ES.ts":return Promise.resolve().then(function(){return Ot});case"../generated/locales/ga.ts":return Promise.resolve().then(function(){return Lt});case"../generated/locales/he.ts":return Promise.resolve().then(function(){return jt});case"../generated/locales/hi.ts":return Promise.resolve().then(function(){return Bt});case"../generated/locales/is.ts":return Promise.resolve().then(function(){return Dt});case"../generated/locales/jpa.ts":return Promise.resolve().then(function(){return qt});case"../generated/locales/nl.ts":return Promise.resolve().then(function(){return Kt});case"../generated/locales/no.ts":return Promise.resolve().then(function(){return Ft});case"../generated/locales/pt-BR.ts":return Promise.resolve().then(function(){return Xt});case"../generated/locales/ru.ts":return Promise.resolve().then(function(){return Yt});case"../generated/locales/sv.ts":return Promise.resolve().then(function(){return es});case"../generated/locales/zh.ts":return Promise.resolve().then(function(){return ss});default:return new Promise(function(t,s){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}(`../generated/locales/${e}.ts`)},function(e){if(r)throw new Error("lit-localize can only be configured once");o=e,r=!0}((e,t)=>
43p(y,e,t)),w=f=L.sourceLocale,v=new Set(L.targetLocales),v.add(L.sourceLocale),m=L.loadLocale,{getLocale:S,setLocale:k});var L;function N(e,t){const s=U();return I(e,t,s,M)??H(e,t)}function j(e){const t=e.trim().toLowerCase(),s=x.find(e=>e.toLowerCase()===t);if(s)return s;const i=t.split("-")[0],o=x.find(e=>e.toLowerCase().startsWith(i));return o||"en"}H=o,function(e){e._LIT_LOCALIZE_MSG_=void 0}(N||(N={}));const z=j(navigator.language||navigator.languages?.[0]||"en");console.log("Loading locale: ",z);const B=O(z),R=()=>{const e=U(),t=new Intl.Locale(e);try{return t.getTextInfo().direction||"ltr"}catch(e){return console.warn("Intl.Locale.getTextInfo() is not supported in this browser; assuming ltr"),"ltr"}};function D(e,t,s,i){var o,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,s,n):o(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n}"function"==typeof SuppressedError&&SuppressedError;
44/**
45     * @license
46     * Copyright 2019 Google LLC
47     * SPDX-License-Identifier: BSD-3-Clause
48     */
49const W=globalThis,q=W.ShadowRoot&&(void 0===W.ShadyCSS||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),K=new WeakMap;let G=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==V)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(q&&void 0===e){const s=void 0!==t&&1===t.length;s&&(e=K.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&K.set(t,e))}return e}toString(){return this.cssText}};const F=(e,...t)=>{const s=1===e.length?e[0]:t.reduce((t,s,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[i+1],e[0]);return new G(s,e,V)},J=q?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return(e=>new G("string"==typeof e?e:e+"",void 0,V))(t)})(e):e,{is:X,defineProperty:Z,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Q,getOwnPropertySymbols:ee,getPrototypeOf:te}=Object,se=globalThis,ie=se.trustedTypes,oe=ie?ie.emptyScript:"",re=se.reactiveElementPolyfillSupport,ne=(e,t)=>e,ae={toAttribute(e,t){switch(t){case Boolean:e=e?oe:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=null!==e;break;case Number:s=null===e?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch(e){s=null}}return s}},ce=(e,t)=>!X(e,t),le={attribute:!0,type:String,converter:ae,reflect:!1,useDefault:!1,hasChanged:ce};
50/**
51     * @license
52     * Copyright 2017 Google LLC
53     * SPDX-License-Identifier: BSD-3-Clause
54     */Symbol.metadata??=Symbol("metadata"),se.litPropertyMetadata??=new WeakMap;let de=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=le){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(e,s,t);void 0!==i&&Z(this.prototype,e,i)}}static getPropertyDescriptor(e,t,s){const{get:i,set:o}=Y(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const r=i?.call(this);o?.call(this,t),this.requestUpdate(e,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??le}static _$Ei(){if(this.hasOwnProperty(ne("elementProperties")))return;const e=te(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ne("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ne("properties"))){const e=this.properties,t=[...Q(e),...ee(e)];for(const s of t)this.createProperty(s,e[s])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const s=this._$Eu(e,t);void 0!==s&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const e of s)t.unshift(J(e))}else void 0!==e&&t.push(J(e));return t}static _$Eu(e,t){const s=t.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e
vendor: 4,153 bytes, lines 54-60
54=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const s of t.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(q)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const s of t){const t=document.createElement("style"),i=W.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=s.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$ET(e,t){const s=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:ae).toAttribute(t,s.type);this._$Em=e,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,t){const s=this.constructor,i=s._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=s.getPropertyOptions(i),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:ae;this._$Em=i;const r=o.fromAttribute(t,e.type);this[i]=r??this._$Ej?.get(i)??r,this._$Em=null}}requestUpdate(e,t,s){if(void 0!==e){const i=this.constructor,o=this[e];if(s??=i.getPropertyOptions(e),!((s.hasChanged??ce)(o,t)||s.useDefault&&s.reflect&&o===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,s))))return;this.C(e,t,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:s,reflect:i,wrapped:o},r){s&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,r??t??this[e]),!0!==o||void 0!==r)||(this._$AL.has(e)||(this.hasUpdated||s||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,s]of e){const{wrapped:e}=s,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,s,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};de.elementStyles=[],de.shadowRootOptions={mode:"open"},de[ne("elementProperties")]=new Map,de[ne("finalized")]=new Map,re?.({ReactiveElement:de}),(se.reactiveElementVersions??=[]).push("2.1.1");
55/**
56     * @license
57     * Copyright 2017 Google LLC
58     * SPDX-License-Identifier: BSD-3-Clause
59     */
60const he=globalThis,ue=he.trustedTypes,pe=ue?ue.createPolicy("lit-html",{createHTML:e=>e}):void 0,ge="$lit$",be=`lit$${Math.random().toFixed(9).slice(2)}$`,fe="?"+be,ve=`<${fe}>`,me=document,ye=()=>me.createComment(""),we=e=>null===e||"object"!=typeof e&&"function"!=typeof e,$e=Array.isArray,_e="[ \t\n\f\r]",Se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ke=/-->/g,Ae=/>/g,xe=RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ce=/'/g,Ee=/"/g,Te=/^(?:script|style|textarea|title)$/i,Pe=(e=>(t,...s)=>({_$litType$:e,strings:t,values:s}
vendor: 4,118 bytes, line 60
60))(1),Ie=Symbol.for("lit-noChange"),He=Symbol.for("lit-nothing"),Me=new WeakMap,Oe=me.createTreeWalker(me,129);function Ue(e,t){if(!$e(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pe?pe.createHTML(t):t}const Le=(e,t)=>{const s=e.length-1,i=[];let o,r=2===t?"<svg>":3===t?"<math>":"",n=Se;for(let t=0;t<s;t++){const s=e[t];let a,c,l=-1,d=0;for(;d<s.length&&(n.lastIndex=d,c=n.exec(s),null!==c);)d=n.lastIndex,n===Se?"!--"===c[1]?n=ke:void 0!==c[1]?n=Ae:void 0!==c[2]?(Te.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=xe):void 0!==c[3]&&(n=xe):n===xe?">"===c[0]?(n=o??Se,l=-1):void 0===c[1]?l=-2:(l=n.lastIndex-c[2].length,a=c[1],n=void 0===c[3]?xe:'"'===c[3]?Ee:Ce):n===Ee||n===Ce?n=xe:n===ke||n===Ae?n=Se:(n=xe,o=void 0);const h=n===xe&&e[t+1].startsWith("/>")?" ":"";r+=n===Se?s+ve:l>=0?(i.push(a),s.slice(0,l)+ge+s.slice(l)+be+h):s+be+(-2===l?t:h)}return[Ue(e,r+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class Ne{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let o=0,r=0;const n=e.length-1,a=this.parts,[c,l]=Le(e,t);if(this.el=Ne.createElement(c,s),Oe.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=Oe.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(ge)){const t=l[r++],s=i.getAttribute(e).split(be),n=/([.?@])?(.*)/.exec(t);a.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?De:"?"===n[1]?We:"@"===n[1]?qe:Re}),i.removeAttribute(e)}else e.startsWith(be)&&(a.push({type:6,index:o}),i.removeAttribute(e));if(Te.test(i.tagName)){const e=i.textContent.split(be),t=e.length-1;if(t>0){i.textContent=ue?ue.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],ye()),Oe.nextNode(),a.push({type:2,index:++o});i.append(e[t],ye())}}}else if(8===i.nodeType)if(i.data===fe)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=i.data.indexOf(be,e+1));)a.push({type:7,index:o}),e+=be.length-1}o++}}static createElement(e,t){const s=me.createElement("template");return s.innerHTML=e,s}}function je(e,t,s=e,i){if(t===Ie)return t;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const r=we(t)?void 0:t._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(e),o._$AT(e,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(t=je(e,o._$AS(e,t.values),o,i)),t}let ze=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:s}=this._$AD,i=(e?.creationScope??me).importNode(t,!0);Oe.currentNode=i;let o=Oe.nextNode(),r=0,n=0,a=s[0];for(;void 0!==a;){if(r===a.index){let t;2===a.type?t=new Be(o,o.nextSibling,this,e):1===a.type?t=new a.ctor(o,a.name,a.strings,this,e):6===a.type&&(t=new Ve(o,this,e)),this._$AV.push(t),a=s[++n]}r!==a?.index&&(o=Oe.nextNode(),r++)}return Oe.currentNode=me,i}p(e){let t=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}};class Be{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,i){this.type=2,this._$AH=He,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=je(this,e,t),we(e)?e===He||null==e||""===e?(this._$AH!==He&&this._$AR(),this._$AH=He):e!==this._$AH&&e!==Ie&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>$e(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==He&&we(this._$AH)?this._$AA.nextSibling.data=e:this.T(me.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:s}=e,i="number"==typeof s?this._$AC(e):(void 0===s.el&&(s.el=Ne.createElement(Ue(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(t);
vendor: 1,633 bytes, line 60
60else{const e=new ze(i,this),s=e.u(this.options);e.p(t),this.T(s),this._$AH=e}}_$AC(e){let t=Me.get(e.strings);return void 0===t&&Me.set(e.strings,t=new Ne(e)),t}k(e){$e(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,i=0;for(const o of e)i===t.length?t.push(s=new Be(this.O(ye()),this.O(ye()),this,this.options)):s=t[i],s._$AI(o),i++;i<t.length&&(this._$AR(s&&s._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Re{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,i,o){this.type=1,this._$AH=He,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=He}_$AI(e,t=this,s,i){const o=this.strings;let r=!1;if(void 0===o)e=je(this,e,t,0),r=!we(e)||e!==this._$AH&&e!==Ie,r&&(this._$AH=e);else{const i=e;let n,a;for(e=o[0],n=0;n<o.length-1;n++)a=je(this,i[s+n],t,n),a===Ie&&(a=this._$AH[n]),r||=!we(a)||a!==this._$AH[n],a===He?e=He:e!==He&&(e+=(a??"")+o[n+1]),this._$AH[n]=a}r&&!i&&this.j(e)}j(e){e===He?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class De extends Re{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===He?void 0:e}}class We extends Re{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==He)}}class qe extends Re{constructor(e,t,s,i,o){super(e,t,s,i,o),this.type=5}
vendor: 4,679 bytes, lines 60-146
60_$AI(e,t=this){if((e=je(this,e,t,0)??He)===Ie)return;const s=this._$AH,i=e===He&&s!==He||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,o=e!==He&&(s===He||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ve{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){je(this,e)}}const Ke={I:Be},Ge=he.litHtmlPolyfillSupport;Ge?.(Ne,Be),(he.litHtmlVersions??=[]).push("3.3.1");const Fe=globalThis;
61/**
62     * @license
63     * Copyright 2017 Google LLC
64     * SPDX-License-Identifier: BSD-3-Clause
65     */let Je=class extends de{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,s)=>{const i=s?.renderBefore??t;let o=i._$litPart$;if(void 0===o){const e=s?.renderBefore??null;i._$litPart$=o=new Be(t.insertBefore(ye(),e),e,void 0,s??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ie}};Je._$litElement$=!0,Je.finalized=!0,Fe.litElementHydrateSupport?.({LitElement:Je});const Xe=Fe.litElementPolyfillSupport;Xe?.({LitElement:Je}),(Fe.litElementVersions??=[]).push("4.2.1");
66/**
67     * @license
68     * Copyright 2017 Google LLC
69     * SPDX-License-Identifier: BSD-3-Clause
70     */
71const Ze=e=>(t,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},Ye={attribute:!0,type:String,converter:ae,reflect:!1,hasChanged:ce},Qe=(e=Ye,t,s)=>{const{kind:i,metadata:o}=s;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),r.set(s.name,e),"accessor"===i){const{name:i}=s;return{set(s){const o=t.get.call(this);t.set.call(this,s),this.requestUpdate(i,o,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){const{name:i}=s;return function(s){const o=this[i];t.call(this,s),this.requestUpdate(i,o,e)}}throw Error("Unsupported decorator location: "+i)};
72/**
73     * @license
74     * Copyright 2017 Google LLC
75     * SPDX-License-Identifier: BSD-3-Clause
76     */function et(e){return(t,s)=>"object"==typeof s?Qe(e,t,s):((e,t,s)=>{const i=t.hasOwnProperty(s);return t.constructor.createProperty(s,e),i?Object.getOwnPropertyDescriptor(t,s):void 0})(e,t,s)}
77/**
78     * @license
79     * Copyright 2017 Google LLC
80     * SPDX-License-Identifier: BSD-3-Clause
81     */function tt(e){return et({...e,state:!0,attribute:!1})}
82/**
83     * @license
84     * Copyright 2017 Google LLC
85     * SPDX-License-Identifier: BSD-3-Clause
86     */let st=class extends Je{constructor(){super(...arguments),this.title="Market Brew Ask"}render(){return Pe`
87			<div class="header">
88				<div class="title">
89					${this.title}
90					<a target="_blank" style="font-size: 0.7rem;
91						color: var(--chat-header-color);
92						line-height: 1;
93						filter: brightness(0.8);
94						-webkit-font-smoothing: antialiased;
95						text-decoration: none;" href="https://marketbrew.ai">powered by Market Brew</a></div>
96				<div class="actions">
97					<slot name="actions"></slot>
98				</div>
99			</div>
100		`}};st.styles=F`
101		:host {
102			display: block;
103		}
104
105		.header {
106			background: var(--chat-header-bg, #0066cc);
107			color: var(--chat-header-color, white);
108			padding: 16px;
109			padding-left: 12px;
110			padding-right: 12px;
111			display: flex;
112			justify-content: space-between;
113			align-items: center;
114			gap: 4px;
115			height: 24px;
116		}
117
118		.title {
119			font-weight: 600;
120			font-size: 1rem;
121			flex: 1;
122			text-align: var(--chat-title-align, start);
123			display: flex;
124			flex-direction: column;
125			gap: 0;
126		}
127
128		.actions {
129			display: flex;
130			gap: 8px;
131			flex-shrink: 0;
132		}
133
134		::slotted(button) {
135			background: transparent;
136			border: 1px solid currentColor;
137			color: inherit;
138			padding: 6px 12px;
139			border-radius: 4px;
140			cursor: pointer;
141			font-family: inherit;
142		}
143	`,D([et({type:String})],st.prototype,"title",void 0),st=D([Ze("chat-header")],st);let it=class extends Je{render(){return Pe`
144			<div>
145				<div class="message-bubble" dir="auto">
146					${"bot"===this.message.sender?this.renderBotContent(this.message.text):this.message.text}
147				</div>
148				<div class="message-time">
149					${this.message.timestamp?this.formatTime(this.message.timestamp):""}
150				</div>
151			</div>
152		`}renderBotContent(e){const t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.childNodes).map(e=>this.renderSafeNode(e))}renderSafeNode(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(!(e instanceof Element))return He;const t=Array.from(e.childNodes).map(e=>this.renderSafeNode(e));switch(e.tagName.toLowerCase()){case"a":{const s=this.safeLinkHref(e.getAttribute("href"));return Pe`<a href=${s||He} target="_blank" rel="noopener noreferrer">${t}</a>`}case"b":return Pe`<b>${t}</b>`;case"blockquote":return Pe`<blockquote>${t}</blockquote>`;case"br":return Pe`<br />`;case"cite":return Pe`<cite>${t}</cite>`;case"code":return Pe`<code>${t}</code>`;case"dd":return Pe`<dd>${t}</dd>`;case"dl":return Pe`<dl>${t}</dl>`;case"dt":return Pe`<dt>${t}</dt>`;case"em":return Pe`<em>${t}</em>`;case"i":return Pe`<i>${t}</i>`;case"li":return Pe`<li>${t}</li>`;case"ol":return Pe`<ol>${t}</ol>`;case"p":return Pe`<p>${t}</p>`;case"pre":return Pe`<pre>${t}</pre>`;case"q":return Pe`<q>${t}</q>`;case"small":return Pe`<small>${t}</small>`;case"span":return Pe`<span>${t}</span>`;case"strike":return Pe`<strike>${t}</strike>`;case"strong":return Pe`<strong>${t}</strong>`;case"sub":return Pe`<sub>${t}</sub>`;case"sup":return Pe`<sup>${t}</sup>`;case"u":return Pe`<u>${t}</u>`;case"ul":return Pe`<ul>${t}</ul>`;default:return t}}safeLinkHref(e){if(!e)return null;const t=e.trim();if(t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("#")||t.startsWith("?"))return t;try{const e=new URL(t);return"http:"===e.protocol||"https:"===e.protocol?t:null}catch(e){return null}}formatTime(e){const t=U();return e.toLocaleTimeString(t||navigator.language||navigator.languages?.[0]||"en-US",{hour:"numeric",minute:"2-digit"})}updated(e){super.updated(e),e.has("message")&&this.setAttribute("sender",this.message.sender)}};it.styles=F`
153		:host {
154			display: flex;
155			gap: 8px;
156			max-width: 80%;
157		}
158
159		:host([sender="user"]) {
160			align-self: flex-end;
161			flex-direction: row-reverse;
162		}
163
164		:host([sender="bot"]) {
165			align-self: flex-start;
166		}
167
168		.message-bubble {
169			padding: 12px 16px;
170			border-radius: 16px;
171			word-wrap: break-word;
172		}
173
174		:host([sender="user"]) .message-bubble {
175			background: var(--chat-user-bg, #0066cc);
176			color: var(--chat-user-color, white);
177		}
178
179		:host([sender="bot"]) .message-bubble {
180			background: var(--chat-bot-bg, white);
181			color: var(--chat-bot-color, #333);
182			border: 1px solid var(--chat-bot-border, #ddd);
183		}
184
185		.message-time {
186			font-size: 0.75rem;
187			color: var(--chat-time-color, #666);
188			margin-top: 4px;
189		}
190
191		.message-bubble a {
192			color: var(--chat-link-color, LinkText);
193		}
194
195		.message-bubble a:visited {
196			color: var(--chat-link-visited-color, VisitedText);
197		}
198
199		.message-bubble a:hover {
200			color: var(--chat-link-hover-color, LinkText);
201		}
202
203		.message-bubble a:active {
204			color: var(--chat-link-active-color, ActiveText);
205		}
206	`,D([et({type:Object})],it.prototype,"message",void 0),it=D([Ze("chat-message")],it);let ot=class extends Je{constructor(){super(),this.disabled=!1,this.placeholder=N(t`Type a message...`),this.inputValue="",a(this)}render(){return Pe`
207      <div class="input-container" dir="auto">
208        <input
209          type="text"
210          class="input"
211          dir="${R()}"
212          placeholder=${this.placeholder}
213          .value=${this.inputValue}
214          @input=${this.handleInput}
215          @keypress=${this.handleKeyPress}
216          ?disabled=${this.disabled}
217        />
218        <button
219          class="send-button"
220          @click=${this.sendMessage}
221          ?disabled=${this.disabled||!this.inputValue.trim()}
222        >
223          ${N(t`Send`)}
224        </button>
225      </div>
226    `}handleInput(e){this.inputValue=e.target.value}handleKeyPress(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),this.sendMessage())}sendMessage(){const e=this.inputValue.trim();e&&!this.disabled&&(this.dispatchEvent(new CustomEvent("send-message",{detail:{text:e},bubbles:!0,composed:!0})),this.inputValue="")}};ot.styles=F`
227    :host {
228      display: block;
229    }
230
231    .input-container {
232      display: flex;
233      gap: 8px;
234      padding: 16px;
235      background: var(--chat-input-bg, white);
236      border-top: 1px solid var(--chat-input-border, #ddd);
237    }
238
239    .input {
240      flex: 1;
241      padding: 12px;
242      border: 1px solid var(--chat-input-field-border, #ddd);
243      border-radius: 20px;
244      font-size: 14px;
245      font-family: inherit;
246      outline: none;
247      background: var(--chat-input-field-bg, white);
248      color: var(--chat-input-field-color, inherit);
249    }
250
251    .input:focus {
252      border-color: var(--chat-input-focus, #0066cc);
253    }
254
255    .input:disabled {
256      background: #f5f5f5;
257      cursor: not-allowed;
258    }
259
260    .send-button {
261      padding: 12px 24px;
262      background: var(--chat-send-bg, #0066cc);
263      color: var(--chat-send-color, white);
264      border: none;
265      border-radius: 20px;
266      cursor: pointer;
267      font-weight: 600;
268      font-family: inherit;
269      transition: background 0.2s;
270    }
271
272    .send-button:hover:not(:disabled) {
273      background: var(--chat-send-hover, #0052a3);
274    }
275
276    .send-button:disabled {
277      background: var(--chat-send-disabled, #ccc);
278      cursor: not-allowed;
279    }
280  `,D([et({type:Boolean})],ot.prototype,"disabled",void 0),D([et({type:String})],ot.prototype,"placeholder",void 0),D([tt()],ot.prototype,"inputValue",void 0),ot=D([Ze("chat-input")],ot);
281/**
282     * @license
283     * Copyright 2017 Google LLC
284     * SPDX-License-Identifier: BSD-3-Clause
285     */
286const rt=2;class nt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}
287/**
288     * @license
289     * Copyright 2020 Google LLC
290     * SPDX-License-Identifier: BSD-3-Clause
291     */const{I:at}=Ke,ct=()=>document.createComment(""),lt=(e,t,s)=>{const i=e._$AA.parentNode,o=void 0===t?e._$AB:t._$AA;if(void 0===s){const t=i.insertBefore(ct(),o),r=i.insertBefore(ct(),o);s=new at(t,r,e,e.options)}else{const t=s._$AB.nextSibling,r=s._$AM,n=r!==e;if(n){let t;s._$AQ?.(e),s._$AM=e,void 0!==s._$AP&&(t=e._$AU)!==r._$AU&&s._$AP(t)}if(t!==o||n){let e=s._$AA;for(;e!==t;){const t=e.nextSibling;i.insertBefore(e,o),e=t}}}return s},dt=(e,t,s=e)=>(e._$AI(t,s),e),ht={},ut=e=>{e._$AR(),e._$AA.remove()},pt=(e,t,s)=>{const i=new Map;for(let o=t;o<=s;o++)i.set(e[o],o);return i},gt=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends nt{constructor(e){if(super(e),e.type!==rt)throw Error("repeat() can only be used in text expressions")}dt(e,t,s){let i;void 0===s?s=t:void 0!==t&&(i=t);const o=[],r=[];let n=0;for(const t of e)o[n]=i?i(t,n):n,r[n]=s(t,n),n++;return{values:r,keys:o}}render(e,t,s){return this.dt(e,t,s).values}update(e,[t,s,i]){const o=(e=>e._$AH)(e),{values:r,keys:n}=this.dt(t,s,i);if(!Array.isArray(o))return this.ut=n,r;const a=this.ut??=[],c=[];let l,d,h=0,u=o.length-1,p=0,g=r.length-1;for(;h<=u&&p<=g;)if(null===o[h])h++;else if(null===o[u])u--;else if(a[h]===n[p])c[p]=dt(o[h],r[p]),h++,p++;else if(a[u]===n[g])c[g]=dt(o[u],r[g]),u--,g--;else if(a[h]===n[g])c[g]=dt(o[h],r[g]),lt(e,c[g+1],o[h]),h++,g--;else if(a[u]===n[p])c[p]=dt(o[u],r[p]),lt(e,o[h],o[u]),u--,p++;else if(void 0===l&&(l=pt(n,p,g),d=pt(a,h,u)),l.has(a[h]))if(l.has(a[u])){const t=d.get(n[p]),s=void 0!==t?o[t]:null;if(null===s){const t=lt(e,o[h]);dt(t,r[p]),c[p]=t}else c[p]=dt(s,r[p]),lt(e,o[h],s),o[t]=null;p++}else ut(o[u]),u--;else ut(o[h]),h++;for(;p<=g;){const t=lt(e,c[g+1]);dt(t,r[p]),c[p++]=t}for(;h<=u;){const e=o[h++];null!==e&&ut(e)}return this.ut=n,((e,t=ht)=>{e._$AH=t})(e,c),Ie}});
292/**
293     * @license
294     * Copyright 2017 Google LLC
295     * SPDX-License-Identifier: BSD-3-Clause
296     */var bt;let ft=bt=class extends Je{constructor(){super(),this.alwaysScrollToBottom=!1,this.messages=[],this.loading=!1,this.error=null,this.availabilityNotice=null,a(this)}render(){return Pe`
297			<div class="messages-container" dir="${R()}">
298				${0!==this.messages.length||this.loading?"":N(Pe`<div class="empty" dir="auto">No messages yet. Start a conversation!</div>`)}
299
300				${gt(this.messages,e=>e.id,e=>Pe`<chat-message .message=${e}></chat-message>`)}
301
302				${this.loading?N(Pe`<div class="loading" dir="auto">Thinking...</div>`):""}
303				${this.availabilityNotice?Pe`<div class="availability-notice" role="status" dir="auto">${this.availabilityNotice}</div>`:""}
304				${this.error?Pe`<div class="error" dir="auto">${this.error}</div>`:""}
305			</div>
306		`}updated(e){super.updated(e),e.has("messages")&&this.scrollToBottom()}scrollToBottom(){!this.alwaysScrollToBottom&&this.messages.length>0&&"bot"===this.messages[this.messages.length-1].sender?this.getLastMessageHeight().then(e=>{requestAnimationFrame(()=>{this.scrollTop=this.scrollHeight-e-bt.PADDING_PX})}):requestAnimationFrame(()=>{this.scrollTop=this.scrollHeight})}async getLastMessageHeight(){await this.updateComplete,await new Promise(e=>requestAnimationFrame(()=>e()));const e=this.renderRoot.querySelectorAll("chat-message"),t=e[e.length-1];return t?(t.updateComplete&&await t.updateComplete,t.getBoundingClientRect().height):0}};ft.PADDING_PX=16,ft.styles=F`
307		:host {
308			display: block;
309			height: 100%;
310			overflow-y: auto;
311			padding: 16px;
312			background: var(--chat-messages-bg, #f5f5f5);
313		}
314
315		.messages-container {
316			display: flex;
317			flex-direction: column;
318			gap: 12px;
319		}
320
321		.loading {
322			text-align: center;
323			padding: 16px;
324			color: var(--chat-loading-color, #666);
325		}
326
327		.error {
328			background: var(--chat-error-bg, #fee);
329			color: var(--chat-error-color, #c00);
330			padding: 12px;
331			border-radius: 8px;
332			margin: 8px 0;
333		}
334
335		.availability-notice {
336			align-self: flex-start;
337			max-width: 80%;
338			box-sizing: border-box;
339			background: var(--chat-bot-bg, white);
340			color: var(--chat-bot-color, #333);
341			border: 1px solid var(--chat-bot-border, #ddd);
342			padding: 12px 16px;
343			border-radius: 16px;
344		}
345
346		.empty {
347			text-align: center;
348			padding: 32px;
349			color: var(--chat-empty-color, #999);
350		}
351	`,D([et({type:Boolean,attribute:"always-scroll-to-bottom"})],ft.prototype,"alwaysScrollToBottom",void 0),D([et({type:Array})],ft.prototype,"messages",void 0),D([et({type:Boolean})],ft.prototype,"loading",void 0),D([et({type:String})],ft.prototype,"error",void 0),D([et({type:String,attribute:"availability-notice"})],ft.prototype,"availabilityNotice",void 0),ft=bt=D([Ze("chat-message-list")],ft);
351class vt extends Error{constructor(e="Payment required"){super(e),this.name="PaymentRequiredError"}}class mt extends Error{constructor(e="Service unavailable"){super(e),this.name="ServiceUnavailableError"}}class yt{async isServiceUp(){return!0}delay(e){return new Promise(t=>setTimeout(t,e))}async sendMessage(e,t){return await this.delay(800),{conversationId:t||Math.floor(1e4*Math.random()),assistantResponse:`<p>Echo: ${e}</p>`,chatBoxHTML:`<div class="message-bubble user-bubble">${e}</div><div class="message-bubble assistant-bubble">Echo: ${e}</div>`}}async loadHistory(e){return await this.delay(500),{currentConversation:e?{conversationId:e,title:"Mock Conversation",createdAt:(new Date).toISOString()}:void 0,chatHistory:[{role:"assistant",content:'Hello! This is a <strong>preview</strong> of the <a href="https://marketbrew.ai" target="_blank" rel="noopener">MarketBrew.ai</a> Ask Widget. Messages you send will be echoed back — no real AI is running. To see live responses in the preview, connect a real widget ID and ensure you are logged into Market Brew.',createdAt:(new Date).toISOString()}]}}async listConversations(){return await this.delay(300),[{conversationId:1,title:"Mock Conversation 1",createdAt:(new Date).toISOString()},{conversationId:2,title:"Mock Conversation 2",createdAt:new Date(Date.now()-864e5).toISOString()}]}async getConversation(e){return await this.delay(300),{conversationId:e,title:`Mock Conversation ${e}`,createdAt:(new Date).toISOString()}}}class wt{constructor(e){this.config=e,this.sessionToken=this.loadSessionToken()}async isServiceUp(){try{const t=this.buildUrl(`/api/v1/ask-chat/${this.config.askWidgetId}/health-check`,this.config.websiteHost?{websiteHost:this.config.websiteHost}:void 0),s=await fetch(t,{headers:this.getHeaders()});if(402===s.status)return console.error("[AskWidget] License not active:",await s.text()),!1;if(!s.ok)return!1;const i=await s.json();return i.sessionToken&&(this.sessionToken=i.sessionToken,this.storeSessionToken(i.sessionToken)),i.active&&(e=i.uiText,M=e),i.active}catch(e){return!1}var e}getHeaders(){const e={"Content-Type":"application/json"};return this.sessionToken&&(e["X-Ask-Session-Token"]=this.sessionToken),e}loadSessionToken(){const e=this.getSessionTokenStorageKey();try{const t=globalThis.localStorage?.getItem(e);if(t)return t}catch(e){console.debug("[AskWidget] Session token storage is unavailable:",e)}}storeSessionToken(e){try{globalThis.localStorage?.setItem(this.getSessionTokenStorageKey(),e)}catch(e){console.debug("[AskWidget] Session token will remain in memory:",e)}}isSessionTokenUsable(){if(!this.sessionToken)return!1;try{const e=this.sessionToken.split(".")[1];if(!e)return!1;const t=e.replace(/-/g,"+").replace(/_/g,"/"),s=t.padEnd(4*Math.ceil(t.length/4),"="),i=JSON.parse(globalThis.atob(s));return"number"==typeof i.exp&&1e3*i.exp>Date.now()+3e4}catch(e){return!1}}async ensureSessionToken(){this.isSessionTokenUsable()||(this.sessionRefresh||(this.sessionRefresh=this.isServiceUp().finally(()=>{this.sessionRefresh=void 0})),await this.sessionRefresh)}getSessionTokenStorageKey(){const e=this.config.websiteHost?.trim().toLowerCase()||"embedded-origin";return`mb-ask-session-token:${this.config.askWidgetId}:${e}`}buildUrl(e,t){const s=new URL(e,this.config.baseUrl);return t&&Object.entries(t).forEach(([e,t])=>{s.searchParams.append(e,String(t))}),s.toString()}async sendMessage(e,t){await this.ensureSessionToken();const s={websiteHost:this.config.websiteHost||"",conversationId:t||null,userMessage:e},i={};this.config.websiteHost&&(i.websiteHost=this.config.websiteHost);const o=this.buildUrl(`/api/v1/ask-chat/${this.config.askWidgetId}/chat`,Object.keys(i).length>0?i:void 0),r=await fetch(o,{method:"POST",headers:this.getHeaders(),body:JSON.stringify(s)});if(402===r.status)throw new vt;if(503===r.status)throw new mt;if(!r.ok)throw new Error(`HTTP ${r.status}: ${r.statusText}`);return await r.json()}async loadHistory(e){await this.ensureSessionToken();const t={};this.config.websiteHost&&(t.websiteHost=this.config.websiteHost),void 0!==e&&(t.conversationId=e);const s=this.buildUrl(`/api/v1/ask-chat/${this.config.askWidgetId}/chat`,Object.keys(t).length>0?t:void 0),i=await fetch(s,{method:"GET",headers:this.getHeaders()});if(!i.ok)throw new Error(`HTTP ${i.status}: ${i.statusText}`);return await i.json()}async listConversations(){await this.ensureSessionToken();const e={};this.config.websiteHost&&(e.websiteHost=this.config.websiteHost);const t=this.buildUrl(`/api/v1/ask-chat/${this.config.askWidgetId}/conversations`,Object.keys(e).length>0?e:void 0),s=await fetch(t,{method:"GET",headers:this.getHeaders()});if(!s.ok)throw new Error(`HTTP ${s.status}: ${s.statusText}`);return await s.json()}async getConversation(e){await this.ensureSessionToken();const t=this.buildUrl(`/api/v1/ask-chat/${this.config.askWidgetId}/conversations/${e}`),s=await fetch(t,{method:"GET",headers:this.getHeaders()});if(!s.ok)throw new Error(`HTTP ${s.status}: ${s.statusText}`);return await s.json()}}const $t=(e,t,s,i)=>{if(console.log("[ChatService] createChatService called with:",{useMockService:e,askWidgetId:s,baseUrl:t,websiteHost:i}),e)return console.log("[ChatService] Using MockChatService"),new yt;if(void 0!==s){const e={baseUrl:t,askWidgetId:s,websiteHost:i};return console.log("[ChatService] Using ApiChatService with config:",e),new wt(e)}return console.log("[ChatService] Fallback to MockChatService (no askWidgetId)"),new yt};let _t=class extends Je{get chatService(){return this._chatService||(this._chatService=$t(this.useMockService,this.baseUrl,this.askWidgetId,this.websiteHost)),this._chatService}constructor(){super(),this.baseUrl="https://brew.marketbrew.ai",this.title="Market Brew Ask",this.alwaysScrollToBottom=!1,this.useMockService=!1,this.newConversationAction=!1,this.messages=[],this.isLoading=!1,this.error=null,this.availabilityNotice=null,this.hasLoadedHistory=!1,this.historyLoadGeneration=0,a(this)}connectedCallback(){super.connectedCallback(),this.hasLoadedHistory||(this.loadChatHistory(),this.hasLoadedHistory=!0)}updated(e){super.updated(e),(e.has("useMockService")||e.has("baseUrl")||e.has("askWidgetId")||e.has("websiteHost"))&&(this._chatService=$t(this.useMockService,this.baseUrl,this.askWidgetId,this.websiteHost),(e.has("askWidgetId")||e.has("websiteHost"))&&(this.conversationId=this.initializeConversationId(),this.messages=[]),this.hasLoadedHistory&&this.loadChatHistory())}render(){return Pe`
352			<chat-header .title=${this.title}>
353				${this.newConversationAction?Pe`<button slot="actions" @click=${this.clearChat}>${N("New Conversation")}</button>`:""}
354				<slot name="actions" slot="actions"></slot>
355			</chat-header>
356
357			<chat-message-list
358				.alwaysScrollToBottom=${this.alwaysScrollToBottom}
359				.messages=${this.messages}
360				.loading=${this.isLoading}
361				.error=${this.error}
362				.availabilityNotice=${this.availabilityNotice}
363			></chat-message-list>
364
365			<chat-input
366				?disabled=${this.isLoading}
367				@send-message=${this.handleSendMessage}
368			></chat-input>
369		`}async handleSendMessage(e){const t=e.detail.text;if(!t||this.isLoading)return;this.historyLoadGeneration++;const s={id:this.generateId(),text:t,sender:"user",timestamp:new Date};this.messages=[...this.messages,s],this.error=null,this.availabilityNotice=null,this.isLoading=!0,this.dispatchEvent(new CustomEvent("message-sent",{detail:{message:s},bubbles:!0,composed:!0}));try{const e=await this.chatService.sendMessage(t,this.conversationId);this.conversationId=e.conversationId,this.saveConversationId(this.conversationId);const s={id:this.generateId(),text:e.assistantResponse,sender:"bot",timestamp:new Date};this.messages=[...this.messages,s],this.dispatchEvent(new CustomEvent("message-received",{detail:{message:s},bubbles:!0,composed:!0}))}catch(e){e instanceof mt?this.availabilityNotice=N("I'm having trouble accessing this site's information right now. Please try again in a few minutes."):(this.error=e instanceof Error?e.message:N("Failed to send message"),console.error("Send message error:",e))}finally{this.isLoading=!1}}async loadChatHistory(){const e=++this.historyLoadGeneration;try{const t=await this.chatService.loadHistory(this.conversationId);e===this.historyLoadGeneration&&t.chatHistory&&(this.messages=t.chatHistory.map(e=>this.chatMessageToMessage(e)))}catch(e){console.error("Load history error:",e)}}clearChat(){this.historyLoadGeneration++,this.messages=[],this.error=null,this.availabilityNotice=null,this.conversationId=void 0,this.clearConversationId()}initializeConversationId(){const e=this.getConversationStorageKey();if(!e)return;const t=localStorage.getItem(e);if(t){const e=parseInt(t,10);if(!isNaN(e))return e}}saveConversationId(e){const t=this.getConversationStorageKey();t&&localStorage.setItem(t,e.toString())}clearConversationId(){const e=this.getConversationStorageKey();e&&localStorage.removeItem(e)}getConversationStorageKey(){if(void 0===this.askWidgetId)return;const e=this.websiteHost?.trim().toLowerCase();return e?`mb-ask-conversation-id:${this.askWidgetId}:${e}`:void 0}chatMessageToMessage(e){return{id:this.generateId(),text:e.content,sender:"user"===e.role?"user":"bot",timestamp:e.createdAt?new Date(e.createdAt):void 0}}generateId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}};_t.styles=F`
370		:host {
371			display: flex;
372			flex-direction: column;
373			height: var(--chat-height, 500px);
374			max-width: var(--chat-max-width, 600px);
375			min-width: var(--chat-min-width, 200px);
376			border: 1px solid var(--chat-border, #ddd);
377			border-top-left-radius: var(--chat-border-radius-top-left, 6px);
378			border-top-right-radius: var(--chat-border-radius-top-right, 20px);
379			border-bottom-right-radius: var(--chat-border-radius-bottom-right, 6px);
380			border-bottom-left-radius: var(--chat-border-radius-bottom-left, 20px);
381			overflow: hidden;
382			font-family: system-ui, -apple-system, sans-serif;
383		}
384
385		chat-message-list {
386			flex: 1;
387			min-height: 0;
388		}
389
390		slot[name="actions"] button,
391		::slotted(button) {
392			background: transparent;
393			border: 1px solid currentColor;
394			color: inherit;
395			padding: 6px 12px;
396			border-radius: 4px;
397			cursor: pointer;
398			font-family: inherit;
399		}
400	`,D([et({type:String})],_t.prototype,"baseUrl",void 0),D([et({type:Number})],_t.prototype,"askWidgetId",void 0),D([et({type:String})],_t.prototype,"websiteHost",void 0),D([et({type:String})],_t.prototype,"title",void 0),D([et({type:Boolean,attribute:"always-scroll-to-bottom"})],_t.prototype,"alwaysScrollToBottom",void 0),D([et({type:Boolean})],_t.prototype,"useMockService",void 0),D([et({type:Boolean,attribute:"new-conversation-action"})],_t.prototype,"newConversationAction",void 0),D([tt()],_t.prototype,"messages",void 0),D([tt()],_t.prototype,"isLoading",void 0),D([tt()],_t.prototype,"error",void 0),D([tt()],_t.prototype,"availabilityNotice",void 0),_t=D([Ze("chat-component")],_t);let St=class extends Je{constructor(){super(),this.open=!1,this.icon="chat",this.unreadCount=0,this.ariaLabel="Open Market Brew Ask",a(this)}render(){return Pe`
401			<button
402				class="bubble-button"
403				@click=${this.toggleChat}
404				aria-label=${this.open?N("Close chat"):this.ariaLabel}
405				aria-expanded=${this.open}
406			>
407				${this.renderIcon()}
408				${this.unreadCount>0?Pe`<span class="badge" aria-label="${N(t`${this.unreadCount} unread messages`)}">
409							${this.unreadCount>9?"9+":this.unreadCount}
410						</span>`:""}
411			</button>
412
413			<div class="chat-window-container ${this.open?"open":""}">
414				<slot></slot>
415			</div>
416		`}renderIcon(){return this.open?Pe`
417				<svg class="bubble-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
418					<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
419				</svg>
420			`:Pe`
421			<svg class="bubble-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
422				<path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/>
423			</svg>
424		`}toggleChat(){this.open=!this.open,this.dispatchEvent(new CustomEvent("bubble-click",{detail:{open:this.open},bubbles:!0,composed:!0})),this.open?(this.dispatchEvent(new CustomEvent("chat-open",{bubbles:!0,composed:!0})),this.unreadCount=0):this.dispatchEvent(new CustomEvent("chat-close",{bubbles:!0,composed:!0}))}openChat(){this.open||this.toggleChat()}closeChat(){this.open&&this.toggleChat()}incrementUnread(){this.open||this.unreadCount++}resetUnread(){this.unreadCount=0}};St.styles=F`
425		:host {
426			display: block;
427			position: fixed;
428			top: var(--chat-bubble-top, unset);
429			bottom: var(--chat-bubble-bottom, 20px);
430			left: var(--chat-bubble-left, unset);
431			right: var(--chat-bubble-right, 20px);
432			z-index: var(--chat-bubble-z-index, 1000);
433		}
434
435		.bubble-button {
436			width: var(--chat-bubble-size, 60px);
437			height: var(--chat-bubble-size, 60px);
438			border-radius: 50%;
439			background: var(--chat-bubble-bg, #0066cc);
440			color: var(--chat-bubble-color, white);
441			border: none;
442			cursor: pointer;
443			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
444			display: flex;
445			align-items: center;
446			justify-content: center;
447			transition: all 0.3s ease;
448			position: relative;
449			font-size: 24px;
450		}
451
452		.bubble-button:hover {
453			transform: scale(1.1);
454			box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
455			background: var(--chat-bubble-hover-bg, #0052a3);
456		}
457
458		.bubble-button:active {
459			transform: scale(0.95);
460		}
461
462		.bubble-icon {
463			width: 28px;
464			height: 28px;
465			fill: currentColor;
466		}
467
468		.chat-window-container {
469			position: fixed;
470			top: var(--chat-window-top, unset);
471			bottom: var(--chat-window-bottom, 90px);
472			left: var(--chat-window-left, unset);
473			right: var(--chat-window-right, 20px);
474			z-index: var(--chat-window-z-index, 999);
475			opacity: 0;
476			transform: translateY(20px) scale(0.95);
477			pointer-events: none;
478			transition: all 0.3s ease;
479		}
480
481		.chat-window-container.open {
482			opacity: 1;
483			transform: translateY(0) scale(1);
484			pointer-events: all;
485		}
486
487		.badge {
488			position: absolute;
489			top: -4px;
490			right: -4px;
491			background: var(--chat-bubble-badge-bg, #ff4444);
492			color: var(--chat-bubble-badge-color, white);
493			border-radius: 50%;
494			width: 20px;
495			height: 20px;
496			display: flex;
497			align-items: center;
498			justify-content: center;
499			font-size: 12px;
500			font-weight: bold;
501			font-family: system-ui, -apple-system, sans-serif;
502		}
503
504		.badge.hidden {
505			display: none;
506		}
507
508		@media (max-width: 768px) {
509			.chat-window-container {
510				position: fixed;
511				top: 0;
512				left: 0;
513				right: 0;
514				bottom: 0;
515				width: 100%;
516				height: 100%;
517			}
518
519			.chat-window-container ::slotted(*) {
520				width: 100% !important;
521				height: 100% !important;
522				max-width: 100% !important;
523				border-radius: 0 !important;
524			}
525		}
526	`,D([et({type:Boolean})],St.prototype,"open",void 0),D([et({type:String})],St.prototype,"icon",void 0),D([et({type:Number})],St.prototype,"unreadCount",void 0),D([et({type:String})],St.prototype,"ariaLabel",void 0),St=D([Ze("chat-bubble")],St);let kt=class extends Je{get effectiveTitle(){return this.widgetTitle??this.title??""}constructor(){super(),this.baseUrl="https://brew.marketbrew.ai",this.title="Market Brew Ask",this.alwaysScrollToBottom=!1,this.useMockService=!1,this.newConversationAction=!1,this.closeAction=!1,this.isServiceUp=!1,this._onCopy=e=>{let t="";try{const e=this.getRootNode(),s=e&&"getSelection"in e?e.getSelection():window.getSelection();t=s?s.toString():""}catch{const e=window.getSelection();t=e?e.toString():""}t&&t.trim()&&e.clipboardData&&(e.clipboardData.setData("text/plain",t),e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation())},a(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("copy",this._onCopy,!0),console.log("[MarketBrewAskWidget] connectedCallback with props:",{widgetId:this.widgetId,websiteHost:this.websiteHost,baseUrl:this.baseUrl,useMockService:this.useMockService}),void 0!==this.widgetId&&this.dispatchEvent(new CustomEvent("widget-initialized",{detail:{widgetId:this.widgetId},bubbles:!0,composed:!0})),this.applyLocaleOverride().then(()=>$t(this.useMockService,this.baseUrl,this.widgetId,this.websiteHost).isServiceUp()).then(e=>{this.isServiceUp=!!e})}disconnectedCallback(){this.removeEventListener("copy",this._onCopy,!0),super.disconnectedCallback()}updated(e){super.updated(e),e.has("localeOverride")&&this.applyLocaleOverride()}applyLocaleOverride(){return this.localeOverride&&this.localeOverride.trim()?O(j(this.localeOverride.trim())):B}render(){return console.log("[MarketBrewAskWidget] render with props:",{widgetId:this.widgetId,websiteHost:this.websiteHost,baseUrl:this.baseUrl,useMockService:this.useMockService}),this.isServiceUp?Pe`
527			<chat-bubble ariaLabel=${N(t`Open ${this.effectiveTitle}`)}>
528				<chat-component
529					.title=${this.effectiveTitle}
530					.useMockService=${this.useMockService}
531					.askWidgetId=${this.widgetId}
532					.websiteHost=${this.websiteHost}
533					.baseUrl=${this.baseUrl}
534					.alwaysScrollToBottom=${this.alwaysScrollToBottom}
535					.newConversationAction=${this.newConversationAction}
536				>
537					${this.closeAction?Pe`<button slot="actions" @click=${()=>this._bubble?.closeChat()}>${N("Close")}</button>`:""}
538				</chat-component>
539			</chat-bubble>
540		`:Pe``}};kt.styles=F`
541		:host {
542			display: block;
543		}
544	`,D([et({type:Number,attribute:"widget-id"})],kt.prototype,"widgetId",void 0),D([et({type:String,attribute:"website-host"})],kt.prototype,"websiteHost",void 0),D([et({type:String,attribute:"base-url"})],kt.prototype,"baseUrl",void 0),D([et({type:String})],kt.prototype,"title",void 0),D([et({type:String,attribute:"widget-title"})],kt.prototype,"widgetTitle",void 0),D([et({type:String,attribute:"locale-override"})],kt.prototype,"localeOverride",void 0),D([et({type:Boolean,attribute:"always-scroll-to-bottom"})],kt.prototype,"alwaysScrollToBottom",void 0),D([et({type:Boolean,attribute:"use-mock-service"})],kt.prototype,"useMockService",void 0),D([et({type:Boolean,attribute:"new-conversation-action"})],kt.prototype,"newConversationAction",void 0),D([et({type:Boolean,attribute:"close-action"})],kt.prototype,"closeAction",void 0),D([
545/**
546     * @license
547     * Copyright 2017 Google LLC
548     * SPDX-License-Identifier: BSD-3-Clause
549     */
550function(e){return(t,s,i)=>((e,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,s),s))(t,s,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}("chat-bubble")],kt.prototype,"_bubble",void 0),D([tt()],kt.prototype,"isServiceUp",void 0),kt=D([Ze("market-brew-ask-widget")],kt);const At={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Dink...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Nog geen boodskappe nie. Begin 'n gesprek!</div>`,s16430e1864d70df9:t`Tik 'n boodskap...`,s1f685eaf6ea9a554:t`${0} ongelese boodskappe`,s57adf424d57c8a0f:t`Stuur`,s5d47d9945079dcc7:"Sluit klets",s5e8250fb85d64c23:"Sluit",s7233f091eb0bbcd2:"Kon nie boodskap stuur nie",scf39b102c7cc194f:t`Open ${0}`,sf5af49563512943c:"Nuwe Gesprek",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var xt=Object.freeze({__proto__:null,templates:At});const Ct={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">جارٍ التفكير...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">لا توجد رسائل بعد. ابدأ المحادثة!</div>`,s16430e1864d70df9:t`اكتب رسالة...`,s1f685eaf6ea9a554:t`${0} رسائل غير مقروءة`,s57adf424d57c8a0f:t`إرسال`,s5d47d9945079dcc7:"إغلاق الدردشة",s5e8250fb85d64c23:"إغلاق",s7233f091eb0bbcd2:"فشل في إرسال الرسالة",scf39b102c7cc194f:t`فتح ${0}`,sf5af49563512943c:"محادثة جديدة",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Et=Object.freeze({__proto__:null,templates:Ct});const Tt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Denke nach...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Noch keine Nachrichten. Neue Unterhaltung beginnen!</div>`,s16430e1864d70df9:t`Nachricht eintippen...`,s1f685eaf6ea9a554:t`${0} ungelesene Nachrichten`,s57adf424d57c8a0f:t`Schicken`,s5d47d9945079dcc7:"Chat schließen",s5e8250fb85d64c23:"Schließen",s7233f091eb0bbcd2:"Nachricht konnte nicht gesendet werden",scf39b102c7cc194f:t`${0} öffnen`,sf5af49563512943c:"Neue Unterhaltung",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Pt=Object.freeze({__proto__:null,templates:Tt});const It={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Pensando...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Aún no hay mensajes. ¡Inicia una conversación!</div>`,s16430e1864d70df9:t`Escribe un mensaje...`,s1f685eaf6ea9a554:t`${0} mensajes no leídos`,s57adf424d57c8a0f:t`Enviar`,s5d47d9945079dcc7:"Cerrar chat",s5e8250fb85d64c23:"Cerrar",s7233f091eb0bbcd2:"No se pudo enviar el mensaje",scf39b102c7cc194f:t`Abrir ${0}`,sf5af49563512943c:"Nueva conversación",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Ht=Object.freeze({__proto__:null,templates:It});const Mt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Pensando...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Todavía no hay mensajes. ¡Inicia una conversación!</div>`,s16430e1864d70df9:t`Escribe un mensaje...`,s1f685eaf6ea9a554:t`${0} mensajes sin leer`,s57adf424d57c8a0f:t`Enviar`,s5d47d9945079dcc7:"Cerrar chat",s5e8250fb85d64c23:"Cerrar",s7233f091eb0bbcd2:"Error al enviar el mensaje",scf39b102c7cc194f:t`Abrir ${0}`,sf5af49563512943c:"Nueva conversación",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Ot=Object.freeze({__proto__:null,templates:Mt});const Ut={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Ag smaoineamh...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Níl aon teachtaireachtaí fós. Tosaigh comhrá!</div>`,s16430e1864d70df9:t`Clóscríobh teachtaireacht...`,s1f685eaf6ea9a554:t`${0} teachtaireachtaí neamhléite`,s57adf424d57c8a0f:t`Seol`,s5d47d9945079dcc7:"Dúncomhrá",s5e8250fb85d64c23:"Dún",s7233f091eb0bbcd2:"Theip ar sheoladh na teachtaireachta",scf39b102c7cc194f:t`Oscail ${0}`,sf5af49563512943c:"Comhrá Nua",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Lt=Object.freeze({__proto__:null,templates:Ut});const Nt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">חושב...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">עדיין אין הודעות. התחל שיחה!</div>`,s16430e1864d70df9:t`הקלד הודעה...`,s1f685eaf6ea9a554:t`${0} הודעות שלא נקראו`,s57adf424d57c8a0f:t`שלח`,s5d47d9945079dcc7:"סגור צ'אט",s5e8250fb85d64c23:"סגור",s7233f091eb0bbcd2:"שליחת ההודעה נכשלה",scf39b102c7cc194f:t`פתח ${0}`,sf5af49563512943c:"שיחה חדשה",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var jt=Object.freeze({__proto__:null,templates:Nt});
550const zt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">सोच रहे हैं...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">अभी तक कोई संदेश नहीं। बातचीत शुरू करें!</div>`,s16430e1864d70df9:t`संदेश लिखें...`,s1f685eaf6ea9a554:t`${0} अपठित संदेश`,s57adf424d57c8a0f:t`भेजें`,s5d47d9945079dcc7:"चैट बंद करें",s5e8250fb85d64c23:"बंद करें",s7233f091eb0bbcd2:"संदेश भेजने में विफल",scf39b102c7cc194f:t`खोलें ${0}`,sf5af49563512943c:"नई बातचीत",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Bt=Object.freeze({__proto__:null,templates:zt});const Rt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Hugsa...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Engin skilaboð ennþá. Byrjaðu samtal!</div>`,s16430e1864d70df9:t`Skrifaðu skilaboð...`,s1f685eaf6ea9a554:t`${0} ólesin skilaboð`,s57adf424d57c8a0f:t`Senda`,s5d47d9945079dcc7:"Loka spjalli",s5e8250fb85d64c23:"Loka",s7233f091eb0bbcd2:"Mistókst að senda skilaboð",scf39b102c7cc194f:t`Opna ${0}`,sf5af49563512943c:"Nýtt samtal",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Dt=Object.freeze({__proto__:null,templates:Rt});const Wt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">חָשֵׁב...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">עֲדַיִן לֵית אִגְּרָן. שְׁרִי שִׂיחָה!</div>`,s16430e1864d70df9:t`כְּתוֹב אִגְּרָתָא...`,s1f685eaf6ea9a554:t`${0} אִגְּרָן דְּלָא אִתְקְרִיאוּ`,s57adf424d57c8a0f:t`שְׁלַח`,s5d47d9945079dcc7:"סְגַר שִׂיחָה",s5e8250fb85d64c23:"סְגַר",s7233f091eb0bbcd2:"לָא אִצְטְרִיךְ לְשַׁלָּחָא אִגְּרָתָא",scf39b102c7cc194f:t`גְּלֵי ${0}`,sf5af49563512943c:"שִׂיחָה חֲדַתָא",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var qt=Object.freeze({__proto__:null,templates:Wt});const Vt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Aan het denken...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Nog geen berichten. Start een gesprek!</div>`,s16430e1864d70df9:t`Typ een bericht...`,s1f685eaf6ea9a554:t`${0} ongelezen berichten`,s57adf424d57c8a0f:t`Verstuur`,s5d47d9945079dcc7:"Chat sluiten",s5e8250fb85d64c23:"Sluiten",s7233f091eb0bbcd2:"Verzenden van bericht mislukt",scf39b102c7cc194f:t`Open ${0}`,sf5af49563512943c:"Nieuw gesprek",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Kt=Object.freeze({__proto__:null,templates:Vt});const Gt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Tenker...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Ingen meldinger ennå. Start en samtale!</div>`,s16430e1864d70df9:t`Skriv en melding...`,s1f685eaf6ea9a554:t`${0} uleste meldinger`,s57adf424d57c8a0f:t`Send`,s5d47d9945079dcc7:"Lukk chat",s5e8250fb85d64c23:"Lukk",s7233f091eb0bbcd2:"Kunne ikke sende melding",scf39b102c7cc194f:t`Åpne ${0}`,sf5af49563512943c:"Ny samtale",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Ft=Object.freeze({__proto__:null,templates:Gt});const Jt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Pensando...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Nenhuma mensagem ainda. Comece uma conversa!</div>`,s16430e1864d70df9:t`Digite uma mensagem...`,s1f685eaf6ea9a554:t`${0} mensagens não lidas`,s57adf424d57c8a0f:t`Enviar`,s5d47d9945079dcc7:"Fechar chat",s5e8250fb85d64c23:"Fechar",s7233f091eb0bbcd2:"Falha ao enviar mensagem",scf39b102c7cc194f:t`Abrir ${0}`,sf5af49563512943c:"Nova conversa",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Xt=Object.freeze({__proto__:null,templates:Jt});const Zt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Думаю...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Пока нет сообщений. Начните разговор!</div>`,s16430e1864d70df9:t`Введите сообщение...`,s1f685eaf6ea9a554:t`${0} непрочитанных сообщений`,s57adf424d57c8a0f:t`Отправить`,s5d47d9945079dcc7:"Закрыть чат",s5e8250fb85d64c23:"Закрыть",s7233f091eb0bbcd2:"Не удалось отправить сообщение",scf39b102c7cc194f:t`Открыть ${0}`,sf5af49563512943c:"Новый разговор",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var Yt=Object.freeze({__proto__:null,templates:Zt});const Qt={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">Tänker...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">Inga meddelanden än. Starta en konversation!</div>`,s16430e1864d70df9:t`Skriv ett meddelande...`,s1f685eaf6ea9a554:t`${0} olästa meddelanden`,s57adf424d57c8a0f:t`Skicka`,s5d47d9945079dcc7:"Stäng chatt",s5e8250fb85d64c23:"Stäng",s7233f091eb0bbcd2:"Misslyckades att skicka meddelande",scf39b102c7cc194f:t`Öppna ${0}`,sf5af49563512943c:"Ny konversation",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var es=Object.freeze({__proto__:null,templates:Qt});const ts={h144dccde6f5ed588:Pe`<div class="loading" dir="auto">思考中...</div>`,h91a83eebb94ab363:Pe`<div class="empty" dir="auto">暂无消息。开始对话吧!</div>`,s16430e1864d70df9:t`输入消息...`,s1f685eaf6ea9a554:t`${0} 条未读消息`,s57adf424d57c8a0f:t`发送`,s5d47d9945079dcc7:"关闭聊天",s5e8250fb85d64c23:"关闭",s7233f091eb0bbcd2:"消息发送失败",scf39b102c7cc194f:t`打开 ${0}`,sf5af49563512943c:"新对话",sf05e68148b40c167:"I'm having trouble accessing this site's information right now. Please try again in a few minutes."};var ss=Object.freeze({__proto__:null,templates:ts})}();
551//# sourceMappingURL=ask-widget.js.map

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.