dori-pdp-widget 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Ut=Object.defineProperty,Qt=Object.defineProperties;var $t=Object.getOwnPropertyDescriptors;var Ue=Object.getOwnPropertySymbols;var en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable;var Qe=(e,n,t)=>n in e?Ut(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,C=(e,n)=>{for(var t in n||(n={}))en.call(n,t)&&Qe(e,t,n[t]);if(Ue)for(var t of Ue(n))tn.call(n,t)&&Qe(e,t,n[t]);return e},N=(e,n)=>Qt(e,$t(n));var le=(e,n,t)=>new Promise((r,a)=>{var l=u=>{try{o(t.next(u))}catch(A){a(A)}},i=u=>{try{o(t.throw(u))}catch(A){a(A)}},o=u=>u.done?r(u.value):Promise.resolve(u.value).then(l,i);o((t=t.apply(e,n)).next())});import{r as G,j as x,B as W,T as V,I as ne,V as Q,H as ee,a as nn,b as ye,c as Pe,S as rn,M as $e,d as an,e as ln,f as on,g as un,h as sn,i as An,L as cn,k as gt}from"./vendor-react-D0yhsSuL.js";import{S as fn,g as hn,B as pn,d as mn,m as gn}from"./vendor-sentry-D0PnNMvv.js";(function(){try{var e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};e.SENTRY_RELEASE={id:"0f6b0df49cfe4f522517a4228aeb9052f95c35b2"}}catch(n){}})();try{(function(){var e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f42b2afe-7dcc-46ee-91f8-b51409870179",e._sentryDebugIdIdentifier="sentry-dbid-f42b2afe-7dcc-46ee-91f8-b51409870179")})()}catch(e){}const xn=!1,bn=hn().filter(e=>{const n=["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name);return n&&console.log(`[Sentry] Excluding integration: ${e.name}`),!n}),xt=new pn({dsn:"https://ffd963e90a83743e3fed7e00476fc6d8@sentry.hamravesh.com/9104",transport:gn,stackParser:mn,integrations:bn,tracesSampleRate:.1,tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/],debug:xn,environment:"production"}),Ze=new fn;Ze.setClient(xt);try{xt.init(),console.log("[Sentry] Client initialized successfully")}catch(e){console.error("[Sentry] Failed to initialize client:",e)}const we=(e,n)=>((...t)=>{try{return n(...t)}catch(r){console.error(`${e} error:`,r),Ze.captureException(r,{captureContext:{extra:{context:e}}})}}),Ce=(e,n)=>((...t)=>{try{return n(...t).catch(r=>{throw r.name!=="AbortError"&&(console.error(`${e} async error:`,r),Ze.captureException(r,{captureContext:{extra:{context:e}}})),r})}catch(r){throw r.name!=="AbortError"&&(console.error(`${e} error:`,r),Ze.captureException(r,{captureContext:{extra:{context:e}}})),r}});function dn(e,n=3){return le(this,null,function*(){let t;for(let r=0;r<n;r++)try{return yield e()}catch(a){if(t=a,r===n-1)throw t}throw t})}const qe="https://standardapi.dori.tech",Me={demoSharingData:`${qe}/bot-sharing-data/`,streamChat:`${qe}/stream-chat-with-assistant/`,searchProductLog:`${qe}/search-selected-item-log`},kn=Ce("fetchBotDataBySharingID",(e,n)=>le(null,null,function*(){return dn(()=>le(null,null,function*(){const t=Me.demoSharingData+e+(n?`?product_id=${n}`:""),r=yield fetch(t);if(r.status!==200)throw new Error(`Network response was not ok: ${r.status}`);return yield r.json()}),3)})),wn=Ce("sendMessageToStreamAPI",(e,n,t,r,a,l,i,o)=>le(null,null,function*(){const u=n.assistant_id;let A=e;const f={assistant_id:u,thread_id:t||void 0,src:typeof window!="undefined"?window.location.href:"",message:A,platform:"shopify_pdp",product_id:o||void 0};Object.keys(f).forEach(b=>f[b]===void 0&&delete f[b]);const s=new URLSearchParams({assistant_id:u}).toString(),m=`${Me.streamChat}?${s}`,c=yield fetch(m,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(f),signal:i==null?void 0:i.signal});if(i!=null&&i.signal.aborted){console.log("after response abortController");return}if(c.status===429){a("You have exceeded the request limit. Please wait at least 24 hours and try again.");return}if(c.status===402){a("Hello 😊 The smart assistant for this business is currently inactive because its subscription has expired. If you have any questions, please contact the business directly. We hope to be at your service again soon!");return}if(!c.body)throw new Error("ReadableStream not supported in this environment.");const g=c.body.getReader(),k=new TextDecoder("utf-8");let v="";for(;;){if(i!=null&&i.signal.aborted){g.cancel();return}const{value:b,done:y}=yield g.read();if(y)break;if(b){const P=k.decode(b,{stream:!0});v+=P;let I=v.indexOf("}{");for(;I!==-1;){const F=v.slice(0,I+1);v=v.slice(I+1),we("JSON parse in streaming",()=>{const w=JSON.parse(F);r(w)})(),I=v.indexOf("}{")}v.endsWith("}")&&we("JSON parse remaining buffer",()=>{const F=JSON.parse(v);r(F),v=""})()}}l()})),vn=Ce("trackProductClick",(e,n,t)=>le(null,null,function*(){const r={log:{assistant_id:n.assistant_id,thread_id:t,created_at:new Date().toISOString(),selected_item_id:e.id,tool_call_id:e.tool_call_id}};yield fetch(Me.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)})})),et={create_custom_product_card:"Preparing products to show you...",create_product_card:"Preparing products to show you...",create_order:"Starting the order process...",get_product_detail:"Finding product details for you...",product_retrieval:"Searching for the best options for you...",order_notes:"Adding your notes to the order...",order_persistence:"Saving your order carefully...",payment_processing:"Processing your payment information...",retrieve_faq:"Looking for the best answer for you...",prompt_recommendation:"",similar_products:"Looking for similar products for you...",track_order:"Checking your order status...",thinking:"Thinking..."},yn=e=>e&&e in et?et[e]:"Let me check for a moment...",bt=G.createContext(void 0);function Zl({children:e}){const[n,t]=G.useState(null),[r,a]=G.useState(!1),[l,i]=G.useState(null),[o,u]=G.useState(null),[A,f]=G.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[s,m]=G.useState([]),[c,g]=G.useState("welcome"),[k,v]=G.useState(!1),[b,y]=G.useState("starting"),P=G.useRef(null),I=G.useCallback(z=>{f(T=>N(C({},T),{repliedProduct:z}))},[]),F=G.useCallback(()=>{P.current&&(P.current.abort(),P.current=null),f(z=>N(C({},z),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),g("ongoing"),m(z=>z.filter(T=>T.type!=="loading"))},[]),w=G.useCallback(Ce("initializeBot",(z,T)=>le(null,null,function*(){if(!z||z.trim()===""){i("Invalid sharing ID provided"),console.error("Invalid sharing ID provided");return}a(!0),i(null),u(T||null);try{const B=yield kn(z,T||void 0);if(console.log("result",B),B.error){i(B.error),console.error("Error initializing bot:",B.error);return}if(B.data){const q=N(C({},B.data),{sharing_id:z,suggestedReply:O(B.data.suggested_prompts||B.data.suggestedReply)});t(q),g("initial-greeting")}else i("No bot data found"),console.error("No bot data found")}finally{a(!1)}})),[]),O=we("parseSuggestedReply",z=>{if(!z)return[];if(Array.isArray(z))return z;try{return JSON.parse(z)}catch(T){return console.error("Error parsing suggested reply:",T),[]}}),H=G.useCallback(we("addWelcomeMessage",()=>{const z={id:Date.now().toString(),type:"welcome",timestamp:new Date,content:(n==null?void 0:n.wellcomeMessage)||"Whatever you have in mind about your purchase, I'm here to help you!"};m(T=>[...T,z])}),[n==null?void 0:n.wellcomeMessage]),_=G.useCallback(Ce("sendMessage",(q,ae)=>le(null,[q,ae],function*({message:z,apiMessage:T},B){var te;if(!n||k)return;const U={id:Date.now().toString(),type:"user",content:z,timestamp:new Date,repliedProduct:B};m(j=>[...j.filter(D=>D.type!=="suggestions"),U]),P.current&&(P.current.abort(),P.current=null),g("thinking"),v(!0),y("generating"),f(j=>N(C({},j),{isRequestInProgress:!0})),P.current=new AbortController;let xe={id:(Date.now()+1).toString(),type:"loading",content:"Let me check for a moment...",timestamp:new Date};m(j=>[...j,xe]);let ce=T||z;B&&(ce=`this message is replied to product with id ${B.id}: ${z}`);let h="",R=null,ue=[],p=[];try{yield wn(ce,n,A.threadId,j=>{we("streaming chunk handler",()=>{if(console.log("[StreamChatResponse chunk received]:",j),j.thread_id)console.log("[StreamChatResponse] thread_id received:",j.thread_id),f(Y=>N(C({},Y),{threadId:j.thread_id||null}));else if(j.wait)console.log("[StreamChatResponse] wait received, creating new message session"),R&&h.trim()&&m(Y=>Y.map(D=>D.id===(R==null?void 0:R.id)?N(C({},D),{content:h}):D)),R=null,h="",m(Y=>[...Y.filter(K=>K.type!=="loading"),{id:(Date.now()+Math.random()).toString(),type:"loading",content:yn(j.tool_name),timestamp:new Date}]);else if(j.text)if(console.log("[StreamChatResponse] text chunk received:",j.text),h+=j.text,R)console.log("[StreamChatResponse] Updating existing bot message with:",h),m(Y=>Y.map(D=>D.id===(R==null?void 0:R.id)?N(C({},D),{content:h}):D));else{console.log("[StreamChatResponse] Creating new bot message:",h);const Y={id:(Date.now()+Math.random()).toString(),type:"mori",content:h,timestamp:new Date};m(D=>[...D.filter(fe=>fe.type!=="loading"),Y]),R=Y}else j.products&&j.products.length>0?(console.log("[StreamChatResponse] products received:",j.products),ue=[...ue,...j.products],m(Y=>{var Je,Ke;const K=[...Y.filter(Ge=>Ge.type!=="loading")],fe=K.findIndex(Ge=>Ge.id===(R==null?void 0:R.id)),he={id:(Date.now()+3).toString(),type:"products",content:"Suggested products:",timestamp:new Date,products:ue,tool_call_id:((Ke=(Je=j.products)==null?void 0:Je[0])==null?void 0:Ke.tool_call_id)||""};return fe!==-1?(console.log("[StreamChatResponse] Inserting/updating product message after current bot message"),K.splice(fe+1,0,he)):(console.log("[StreamChatResponse] No current bot message found, pushing product message to end"),K.push(he)),K}),console.log("Products accumulated and displayed:",ue)):j.suggestions&&j.suggestions.length>0&&(p=[...p,...j.suggestions])})()},j=>{var Y;if((Y=P.current)!=null&&Y.signal.aborted){P.current=null,f(D=>N(C({},D),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),g("ongoing"),m(D=>D.filter(K=>K.type!=="loading"));return}m(D=>[...D.filter(K=>K.type!=="loading"),{id:(Date.now()+2).toString(),type:"mori",content:j,timestamp:new Date}]),g("ongoing")},()=>{p.length>0&&m(j=>{const D=[...j.filter(he=>he.type!=="suggestions"&&he.type!=="loading")],K=D.findIndex(he=>he.id===(R==null?void 0:R.id)),fe={id:(Date.now()+4).toString(),type:"suggestions",content:"Suggestions:",timestamp:new Date,suggestions:p};return K!==-1?D.splice(K+1,0,fe):D.push(fe),D}),P.current=null,f(j=>N(C({},j),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),g("ongoing")},P.current,o)}catch(j){(te=P.current)!=null&&te.signal.aborted||j.name==="AbortError"?(P.current=null,f(Y=>N(C({},Y),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),g("ongoing"),m(Y=>Y.filter(D=>D.type!=="loading"))):(console.error("Error in sendMessage:",j),m(Y=>[...Y.filter(D=>D.type!=="loading"),{id:(Date.now()+2).toString(),type:"mori",content:"Unfortunately, an error occurred. Please try again.",timestamp:new Date}]),g("ongoing"),f(Y=>N(C({},Y),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),P.current=null)}})),[n,k,A.threadId]),d=G.useCallback(()=>{P.current&&(P.current.abort(),P.current=null),t(null),m([]),g("welcome"),v(!1),y("starting"),f({repliedProduct:null,threadId:null,isRequestInProgress:!1})},[]),M={botData:n,isLoadingBot:r,botError:l,chatState:A,messages:s,currentStep:c,isInputDisabled:k,inputState:b,initializeBot:w,sendMessage:_,stopCurrentRequest:F,setCurrentStep:g,setInputState:y,addWelcomeMessage:H,setRepliedProduct:I,resetBot:d};return x.jsx(bt.Provider,{value:M,children:e})}function me(){const e=G.useContext(bt);if(e===void 0)throw new Error("useChatContext must be used within a ChatProvider");return e}const Pn={};function dt(e,n){const t=Pn,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,a=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return kt(e,r,a)}function kt(e,n,t){if(Cn(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return tt(e.children,n,t)}return Array.isArray(e)?tt(e,n,t):""}function tt(e,n,t){const r=[];let a=-1;for(;++a<e.length;)r[a]=kt(e[a],n,t);return r.join("")}function Cn(e){return!!(e&&typeof e=="object")}const nt=document.createElement("i");function wt(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function re(e,n,t,r){const a=e.length;let l=0,i;if(n<0?n=-n>a?0:a+n:n=n>a?a:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);l<r.length;)i=r.slice(l,l+1e4),i.unshift(n,0),e.splice(...i),l+=1e4,n+=1e4}function $(e,n){return e.length>0?(re(e,e.length,0,n),e):n}const rt={}.hasOwnProperty;function Sn(e){const n={};let t=-1;for(;++t<e.length;)zn(n,e[t]);return n}function zn(e,n){let t;for(t in n){const a=(rt.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let i;if(l)for(i in l){rt.call(a,i)||(a[i]=[]);const o=l[i];Zn(a[i],Array.isArray(o)?o:o?[o]:[])}}}function Zn(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);re(e,0,0,r)}function jn(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function se(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J=Ae(/[A-Za-z]/),X=Ae(/[\dA-Za-z]/),Wn=Ae(/[#-'*+\--9=?A-Z^-~]/);function je(e){return e!==null&&(e<32||e===127)}const Be=Ae(/\d/),Ln=Ae(/[\dA-Fa-f]/),In=Ae(/[!-/:-@[-`{-~]/);function S(e){return e!==null&&e<-2}function E(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}const Le=Ae(new RegExp("\\p{P}|\\p{S}","u")),ge=Ae(/\s/);function Ae(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function jl(e){const n=[];let t=-1,r=0,a=0;for(;++t<e.length;){const l=e.charCodeAt(t);let i="";if(l===37&&X(e.charCodeAt(t+1))&&X(e.charCodeAt(t+2)))a=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(i=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(t+1);l<56320&&o>56319&&o<57344?(i=String.fromCharCode(l,o),a=1):i="�"}else i=String.fromCharCode(l);i&&(n.push(e.slice(r,t),encodeURIComponent(i)),r=t+a+1,i=""),a&&(t+=a,a=0)}return n.join("")+e.slice(r)}function L(e,n,t,r){const a=r?r-1:Number.POSITIVE_INFINITY;let l=0;return i;function i(u){return Z(u)?(e.enter(t),o(u)):n(u)}function o(u){return Z(u)&&l++<a?(e.consume(u),o):(e.exit(t),n(u))}}function de(e){if(e===null||E(e)||ge(e))return 1;if(Le(e))return 2}function Xe(e,n,t){const r=[];let a=-1;for(;++a<e.length;){const l=e[a].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Wl={name:"attention",resolveAll:Fn,tokenize:Dn};function Fn(e,n){let t=-1,r,a,l,i,o,u,A,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const s=C({},e[r][1].end),m=C({},e[t][1].start);it(s,-u),it(m,u),i={type:u>1?"strongSequence":"emphasisSequence",start:s,end:C({},e[r][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:C({},e[t][1].start),end:m},l={type:u>1?"strongText":"emphasisText",start:C({},e[r][1].end),end:C({},e[t][1].start)},a={type:u>1?"strong":"emphasis",start:C({},i.start),end:C({},o.end)},e[r][1].end=C({},i.start),e[t][1].start=C({},o.end),A=[],e[r][1].end.offset-e[r][1].start.offset&&(A=$(A,[["enter",e[r][1],n],["exit",e[r][1],n]])),A=$(A,[["enter",a,n],["enter",i,n],["exit",i,n],["enter",l,n]]),A=$(A,Xe(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),A=$(A,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",a,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,A=$(A,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,re(e,r-1,t-r+3,A),t=r+A.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Dn(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,a=de(r);let l;return i;function i(u){return l=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===l)return e.consume(u),o;const A=e.exit("attentionSequence"),f=de(u),s=!f||f===2&&a||t.includes(u),m=!a||a===2&&f||t.includes(r);return A._open=!!(l===42?s:s&&(a||!m)),A._close=!!(l===42?m:m&&(f||!s)),n(u)}}function it(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ll={name:"autolink",tokenize:Gn};function Gn(e,n,t){let r=0;return a;function a(c){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(c),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(c){return J(c)?(e.consume(c),i):c===64?t(c):A(c)}function i(c){return c===43||c===45||c===46||X(c)?(r=1,o(c)):A(c)}function o(c){return c===58?(e.consume(c),r=0,u):(c===43||c===45||c===46||X(c))&&r++<32?(e.consume(c),o):(r=0,A(c))}function u(c){return c===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(c),e.exit("autolinkMarker"),e.exit("autolink"),n):c===null||c===32||c===60||je(c)?t(c):(e.consume(c),u)}function A(c){return c===64?(e.consume(c),f):Wn(c)?(e.consume(c),A):t(c)}function f(c){return X(c)?s(c):t(c)}function s(c){return c===46?(e.consume(c),r=0,f):c===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(c),e.exit("autolinkMarker"),e.exit("autolink"),n):m(c)}function m(c){if((c===45||X(c))&&r++<63){const g=c===45?m:s;return e.consume(c),g}return t(c)}}const Ie={partial:!0,tokenize:qn};function qn(e,n,t){return r;function r(l){return Z(l)?L(e,a,"linePrefix")(l):a(l)}function a(l){return l===null||S(l)?n(l):t(l)}}const En={continuation:{tokenize:Yn},exit:Rn,name:"blockQuote",tokenize:Tn};function Tn(e,n,t){const r=this;return a;function a(i){if(i===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),l}return t(i)}function l(i){return Z(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(i))}}function Yn(e,n,t){const r=this;return a;function a(i){return Z(i)?L(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):l(i)}function l(i){return e.attempt(En,n,t)(i)}}function Rn(e){e.exit("blockQuote")}const Il={name:"characterEscape",tokenize:Bn};function Bn(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),a}function a(l){return In(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Fl={name:"characterReference",tokenize:On};function On(e,n,t){const r=this;let a=0,l,i;return o;function o(s){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),u}function u(s){return s===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(s),e.exit("characterReferenceMarkerNumeric"),A):(e.enter("characterReferenceValue"),l=31,i=X,f(s))}function A(s){return s===88||s===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(s),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,i=Ln,f):(e.enter("characterReferenceValue"),l=7,i=Be,f(s))}function f(s){if(s===59&&a){const m=e.exit("characterReferenceValue");return i===X&&!wt(r.sliceSerialize(m))?t(s):(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return i(s)&&a++<l?(e.consume(s),f):t(s)}}const at={partial:!0,tokenize:Mn},Dl={concrete:!0,name:"codeFenced",tokenize:Hn};function Hn(e,n,t){const r=this,a={partial:!0,tokenize:F};let l=0,i=0,o;return u;function u(w){return A(w)}function A(w){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,o=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===o?(i++,e.consume(w),f):i<3?t(w):(e.exit("codeFencedFenceSequence"),Z(w)?L(e,s,"whitespace")(w):s(w))}function s(w){return w===null||S(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(at,k,I)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||S(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(w)):Z(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),L(e,c,"whitespace")(w)):w===96&&w===o?t(w):(e.consume(w),m)}function c(w){return w===null||S(w)?s(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||S(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(w)):w===96&&w===o?t(w):(e.consume(w),g)}function k(w){return e.attempt(a,I,v)(w)}function v(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),b}function b(w){return l>0&&Z(w)?L(e,y,"linePrefix",l+1)(w):y(w)}function y(w){return w===null||S(w)?e.check(at,k,I)(w):(e.enter("codeFlowValue"),P(w))}function P(w){return w===null||S(w)?(e.exit("codeFlowValue"),y(w)):(e.consume(w),P)}function I(w){return e.exit("codeFenced"),n(w)}function F(w,O,H){let _=0;return d;function d(q){return w.enter("lineEnding"),w.consume(q),w.exit("lineEnding"),M}function M(q){return w.enter("codeFencedFence"),Z(q)?L(w,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):z(q)}function z(q){return q===o?(w.enter("codeFencedFenceSequence"),T(q)):H(q)}function T(q){return q===o?(_++,w.consume(q),T):_>=i?(w.exit("codeFencedFenceSequence"),Z(q)?L(w,B,"whitespace")(q):B(q)):H(q)}function B(q){return q===null||S(q)?(w.exit("codeFencedFence"),O(q)):H(q)}}}function Mn(e,n,t){const r=this;return a;function a(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l)}function l(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}const Gl={name:"codeIndented",tokenize:_n},Xn={partial:!0,tokenize:Nn};function _n(e,n,t){const r=this;return a;function a(A){return e.enter("codeIndented"),L(e,l,"linePrefix",5)(A)}function l(A){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?i(A):t(A)}function i(A){return A===null?u(A):S(A)?e.attempt(Xn,i,u)(A):(e.enter("codeFlowValue"),o(A))}function o(A){return A===null||S(A)?(e.exit("codeFlowValue"),i(A)):(e.consume(A),o)}function u(A){return e.exit("codeIndented"),n(A)}}function Nn(e,n,t){const r=this;return a;function a(i){return r.parser.lazy[r.now().line]?t(i):S(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):L(e,l,"linePrefix",5)(i)}function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(i):S(i)?a(i):t(i)}}const ql={name:"codeText",previous:Jn,resolve:Vn,tokenize:Kn};function Vn(e){let n=e.length-4,t=3,r,a;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)a===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(a=r):(r===n||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),n-=r-a-2,r=a+2),a=void 0);return e}function Jn(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kn(e,n,t){let r=0,a,l;return i;function i(s){return e.enter("codeText"),e.enter("codeTextSequence"),o(s)}function o(s){return s===96?(e.consume(s),r++,o):(e.exit("codeTextSequence"),u(s))}function u(s){return s===null?t(s):s===32?(e.enter("space"),e.consume(s),e.exit("space"),u):s===96?(l=e.enter("codeTextSequence"),a=0,f(s)):S(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):(e.enter("codeTextData"),A(s))}function A(s){return s===null||s===32||s===96||S(s)?(e.exit("codeTextData"),u(s)):(e.consume(s),A)}function f(s){return s===96?(e.consume(s),a++,f):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(s)):(l.type="codeTextData",A(s))}}class Un{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t==null?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const a=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ke(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),ke(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ke(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);ke(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ke(this.left,t.reverse())}}}function ke(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Qn(e){const n={};let t=-1,r,a,l,i,o,u,A;const f=new Un(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,$n(f,t)),t=n[t],A=!0);else if(r[1]._container){for(l=t,a=void 0;l--;)if(i=f.get(l),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(a&&(f.get(a)[1].type="lineEndingBlank"),i[1].type="lineEnding",a=l);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;a&&(r[1].end=C({},f.get(a)[1].start),o=f.slice(a,t),o.unshift(r),f.splice(a,t-a+1,o))}}return re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!A}function $n(e,n){const t=e.get(n)[1],r=e.get(n)[2];let a=n-1;const l=[];let i=t._tokenizer;i||(i=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const o=i.events,u=[],A={};let f,s,m=-1,c=t,g=0,k=0;const v=[k];for(;c;){for(;e.get(++a)[1]!==c;);l.push(a),c._tokenizer||(f=r.sliceStream(c),c.next||f.push(null),s&&i.defineSkip(c.start),c._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(f),c._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),s=c,c=c.next}for(c=t;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+1,v.push(k),c._tokenizer=void 0,c.previous=void 0,c=c.next);for(i.events=[],c?(c._tokenizer=void 0,c.previous=void 0):v.pop(),m=v.length;m--;){const b=o.slice(v[m],v[m+1]),y=l.pop();u.push([y,y+b.length-1]),e.splice(y,2,b)}for(u.reverse(),m=-1;++m<u.length;)A[g+u[m][0]]=g+u[m][1],g+=u[m][1]-u[m][0]-1;return A}const El={resolve:tr,tokenize:nr},er={partial:!0,tokenize:rr};function tr(e){return Qn(e),e}function nr(e,n){let t;return r;function r(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?l(o):S(o)?e.check(er,i,l)(o):(e.consume(o),a)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function i(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,a}}function rr(e,n,t){const r=this;return a;function a(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),L(e,l,"linePrefix")}function l(i){if(i===null||S(i))return t(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(i):e.interrupt(r.parser.constructs.flow,t,n)(i)}}function vt(e,n,t,r,a,l,i,o,u){const A=u||Number.POSITIVE_INFINITY;let f=0;return s;function s(b){return b===60?(e.enter(r),e.enter(a),e.enter(l),e.consume(b),e.exit(l),m):b===null||b===32||b===41||je(b)?t(b):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(b))}function m(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(a),e.exit(r),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),c(b))}function c(b){return b===62?(e.exit("chunkString"),e.exit(o),m(b)):b===null||b===60||S(b)?t(b):(e.consume(b),b===92?g:c)}function g(b){return b===60||b===62||b===92?(e.consume(b),c):c(b)}function k(b){return!f&&(b===null||b===41||E(b))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),n(b)):f<A&&b===40?(e.consume(b),f++,k):b===41?(e.consume(b),f--,k):b===null||b===32||b===40||je(b)?t(b):(e.consume(b),b===92?v:k)}function v(b){return b===40||b===41||b===92?(e.consume(b),k):k(b)}}function yt(e,n,t,r,a,l){const i=this;let o=0,u;return A;function A(c){return e.enter(r),e.enter(a),e.consume(c),e.exit(a),e.enter(l),f}function f(c){return o>999||c===null||c===91||c===93&&!u||c===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?t(c):c===93?(e.exit(l),e.enter(a),e.consume(c),e.exit(a),e.exit(r),n):S(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),s(c))}function s(c){return c===null||c===91||c===93||S(c)||o++>999?(e.exit("chunkString"),f(c)):(e.consume(c),u||(u=!Z(c)),c===92?m:s)}function m(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Pt(e,n,t,r,a,l){let i;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(a),e.consume(m),e.exit(a),i=m===40?41:m,u):t(m)}function u(m){return m===i?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),n):(e.enter(l),A(m))}function A(m){return m===i?(e.exit(l),u(i)):m===null?t(m):S(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),L(e,A,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===i||m===null||S(m)?(e.exit("chunkString"),A(m)):(e.consume(m),m===92?s:f)}function s(m){return m===i||m===92?(e.consume(m),f):f(m)}}function ve(e,n){let t;return r;function r(a){return S(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t=!0,r):Z(a)?L(e,r,t?"linePrefix":"lineSuffix")(a):n(a)}}const Tl={name:"definition",tokenize:ar},ir={partial:!0,tokenize:lr};function ar(e,n,t){const r=this;let a;return l;function l(c){return e.enter("definition"),i(c)}function i(c){return yt.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function o(c){return a=se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),c===58?(e.enter("definitionMarker"),e.consume(c),e.exit("definitionMarker"),u):t(c)}function u(c){return E(c)?ve(e,A)(c):A(c)}function A(c){return vt(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(c)}function f(c){return e.attempt(ir,s,s)(c)}function s(c){return Z(c)?L(e,m,"whitespace")(c):m(c)}function m(c){return c===null||S(c)?(e.exit("definition"),r.parser.defined.push(a),n(c)):t(c)}}function lr(e,n,t){return r;function r(o){return E(o)?ve(e,a)(o):t(o)}function a(o){return Pt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return Z(o)?L(e,i,"whitespace")(o):i(o)}function i(o){return o===null||S(o)?n(o):t(o)}}const Yl={name:"hardBreakEscape",tokenize:or};function or(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),a}function a(l){return S(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Rl={name:"headingAtx",resolve:ur,tokenize:sr};function ur(e,n){let t=e.length-2,r=3,a,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},re(e,r,t-r+1,[["enter",a,n],["enter",l,n],["exit",l,n],["exit",a,n]])),e}function sr(e,n,t){let r=0;return a;function a(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),i(f)}function i(f){return f===35&&r++<6?(e.consume(f),i):f===null||E(f)?(e.exit("atxHeadingSequence"),o(f)):t(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||S(f)?(e.exit("atxHeading"),n(f)):Z(f)?L(e,o,"whitespace")(f):(e.enter("atxHeadingText"),A(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),o(f))}function A(f){return f===null||f===35||E(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),A)}}const Ar=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lt=["pre","script","style","textarea"],Bl={concrete:!0,name:"htmlFlow",resolveTo:hr,tokenize:pr},cr={partial:!0,tokenize:gr},fr={partial:!0,tokenize:mr};function hr(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function pr(e,n,t){const r=this;let a,l,i,o,u;return A;function A(p){return f(p)}function f(p){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(p),s}function s(p){return p===33?(e.consume(p),m):p===47?(e.consume(p),l=!0,k):p===63?(e.consume(p),a=3,r.interrupt?n:h):J(p)?(e.consume(p),i=String.fromCharCode(p),v):t(p)}function m(p){return p===45?(e.consume(p),a=2,c):p===91?(e.consume(p),a=5,o=0,g):J(p)?(e.consume(p),a=4,r.interrupt?n:h):t(p)}function c(p){return p===45?(e.consume(p),r.interrupt?n:h):t(p)}function g(p){const te="CDATA[";return p===te.charCodeAt(o++)?(e.consume(p),o===te.length?r.interrupt?n:z:g):t(p)}function k(p){return J(p)?(e.consume(p),i=String.fromCharCode(p),v):t(p)}function v(p){if(p===null||p===47||p===62||E(p)){const te=p===47,j=i.toLowerCase();return!te&&!l&&lt.includes(j)?(a=1,r.interrupt?n(p):z(p)):Ar.includes(i.toLowerCase())?(a=6,te?(e.consume(p),b):r.interrupt?n(p):z(p)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(p):l?y(p):P(p))}return p===45||X(p)?(e.consume(p),i+=String.fromCharCode(p),v):t(p)}function b(p){return p===62?(e.consume(p),r.interrupt?n:z):t(p)}function y(p){return Z(p)?(e.consume(p),y):d(p)}function P(p){return p===47?(e.consume(p),d):p===58||p===95||J(p)?(e.consume(p),I):Z(p)?(e.consume(p),P):d(p)}function I(p){return p===45||p===46||p===58||p===95||X(p)?(e.consume(p),I):F(p)}function F(p){return p===61?(e.consume(p),w):Z(p)?(e.consume(p),F):P(p)}function w(p){return p===null||p===60||p===61||p===62||p===96?t(p):p===34||p===39?(e.consume(p),u=p,O):Z(p)?(e.consume(p),w):H(p)}function O(p){return p===u?(e.consume(p),u=null,_):p===null||S(p)?t(p):(e.consume(p),O)}function H(p){return p===null||p===34||p===39||p===47||p===60||p===61||p===62||p===96||E(p)?F(p):(e.consume(p),H)}function _(p){return p===47||p===62||Z(p)?P(p):t(p)}function d(p){return p===62?(e.consume(p),M):t(p)}function M(p){return p===null||S(p)?z(p):Z(p)?(e.consume(p),M):t(p)}function z(p){return p===45&&a===2?(e.consume(p),ae):p===60&&a===1?(e.consume(p),U):p===62&&a===4?(e.consume(p),R):p===63&&a===3?(e.consume(p),h):p===93&&a===5?(e.consume(p),ce):S(p)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(cr,ue,T)(p)):p===null||S(p)?(e.exit("htmlFlowData"),T(p)):(e.consume(p),z)}function T(p){return e.check(fr,B,ue)(p)}function B(p){return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),q}function q(p){return p===null||S(p)?T(p):(e.enter("htmlFlowData"),z(p))}function ae(p){return p===45?(e.consume(p),h):z(p)}function U(p){return p===47?(e.consume(p),i="",xe):z(p)}function xe(p){if(p===62){const te=i.toLowerCase();return lt.includes(te)?(e.consume(p),R):z(p)}return J(p)&&i.length<8?(e.consume(p),i+=String.fromCharCode(p),xe):z(p)}function ce(p){return p===93?(e.consume(p),h):z(p)}function h(p){return p===62?(e.consume(p),R):p===45&&a===2?(e.consume(p),h):z(p)}function R(p){return p===null||S(p)?(e.exit("htmlFlowData"),ue(p)):(e.consume(p),R)}function ue(p){return e.exit("htmlFlow"),n(p)}}function mr(e,n,t){const r=this;return a;function a(i){return S(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l):t(i)}function l(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}function gr(e,n,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ie,n,t)}}const Ol={name:"htmlText",tokenize:xr};function xr(e,n,t){const r=this;let a,l,i;return o;function o(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),u}function u(h){return h===33?(e.consume(h),A):h===47?(e.consume(h),F):h===63?(e.consume(h),P):J(h)?(e.consume(h),H):t(h)}function A(h){return h===45?(e.consume(h),f):h===91?(e.consume(h),l=0,g):J(h)?(e.consume(h),y):t(h)}function f(h){return h===45?(e.consume(h),c):t(h)}function s(h){return h===null?t(h):h===45?(e.consume(h),m):S(h)?(i=s,U(h)):(e.consume(h),s)}function m(h){return h===45?(e.consume(h),c):s(h)}function c(h){return h===62?ae(h):h===45?m(h):s(h)}function g(h){const R="CDATA[";return h===R.charCodeAt(l++)?(e.consume(h),l===R.length?k:g):t(h)}function k(h){return h===null?t(h):h===93?(e.consume(h),v):S(h)?(i=k,U(h)):(e.consume(h),k)}function v(h){return h===93?(e.consume(h),b):k(h)}function b(h){return h===62?ae(h):h===93?(e.consume(h),b):k(h)}function y(h){return h===null||h===62?ae(h):S(h)?(i=y,U(h)):(e.consume(h),y)}function P(h){return h===null?t(h):h===63?(e.consume(h),I):S(h)?(i=P,U(h)):(e.consume(h),P)}function I(h){return h===62?ae(h):P(h)}function F(h){return J(h)?(e.consume(h),w):t(h)}function w(h){return h===45||X(h)?(e.consume(h),w):O(h)}function O(h){return S(h)?(i=O,U(h)):Z(h)?(e.consume(h),O):ae(h)}function H(h){return h===45||X(h)?(e.consume(h),H):h===47||h===62||E(h)?_(h):t(h)}function _(h){return h===47?(e.consume(h),ae):h===58||h===95||J(h)?(e.consume(h),d):S(h)?(i=_,U(h)):Z(h)?(e.consume(h),_):ae(h)}function d(h){return h===45||h===46||h===58||h===95||X(h)?(e.consume(h),d):M(h)}function M(h){return h===61?(e.consume(h),z):S(h)?(i=M,U(h)):Z(h)?(e.consume(h),M):_(h)}function z(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),a=h,T):S(h)?(i=z,U(h)):Z(h)?(e.consume(h),z):(e.consume(h),B)}function T(h){return h===a?(e.consume(h),a=void 0,q):h===null?t(h):S(h)?(i=T,U(h)):(e.consume(h),T)}function B(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||E(h)?_(h):(e.consume(h),B)}function q(h){return h===47||h===62||E(h)?_(h):t(h)}function ae(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function U(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),xe}function xe(h){return Z(h)?L(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):ce(h)}function ce(h){return e.enter("htmlTextData"),i(h)}}const Ct={name:"labelEnd",resolveAll:wr,resolveTo:vr,tokenize:yr},br={tokenize:Pr},dr={tokenize:Cr},kr={tokenize:Sr};function wr(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",n+=a}}return e.length!==t.length&&re(e,0,e.length,t),e}function vr(e,n){let t=e.length,r=0,a,l,i,o;for(;t--;)if(a=e[t][1],l){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[t][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(i){if(e[t][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(l=t,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(i=t);const u={type:e[l][1].type==="labelLink"?"link":"image",start:C({},e[l][1].start),end:C({},e[e.length-1][1].end)},A={type:"label",start:C({},e[l][1].start),end:C({},e[i][1].end)},f={type:"labelText",start:C({},e[l+r+2][1].end),end:C({},e[i-2][1].start)};return o=[["enter",u,n],["enter",A,n]],o=$(o,e.slice(l+1,l+r+3)),o=$(o,[["enter",f,n]]),o=$(o,Xe(n.parser.constructs.insideSpan.null,e.slice(l+r+4,i-3),n)),o=$(o,[["exit",f,n],e[i-2],e[i-1],["exit",A,n]]),o=$(o,e.slice(i+1)),o=$(o,[["exit",u,n]]),re(e,l,e.length,o),e}function yr(e,n,t){const r=this;let a=r.events.length,l,i;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){l=r.events[a][1];break}return o;function o(m){return l?l._inactive?s(m):(i=r.parser.defined.includes(se(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),u):t(m)}function u(m){return m===40?e.attempt(br,f,i?f:s)(m):m===91?e.attempt(dr,f,i?A:s)(m):i?f(m):s(m)}function A(m){return e.attempt(kr,f,s)(m)}function f(m){return n(m)}function s(m){return l._balanced=!0,t(m)}}function Pr(e,n,t){return r;function r(s){return e.enter("resource"),e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),a}function a(s){return E(s)?ve(e,l)(s):l(s)}function l(s){return s===41?f(s):vt(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(s)}function i(s){return E(s)?ve(e,u)(s):f(s)}function o(s){return t(s)}function u(s){return s===34||s===39||s===40?Pt(e,A,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(s):f(s)}function A(s){return E(s)?ve(e,f)(s):f(s)}function f(s){return s===41?(e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),e.exit("resource"),n):t(s)}}function Cr(e,n,t){const r=this;return a;function a(o){return yt.call(r,e,l,i,"reference","referenceMarker","referenceString")(o)}function l(o){return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function i(o){return t(o)}}function Sr(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),a}function a(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Hl={name:"labelStartImage",resolveAll:Ct.resolveAll,tokenize:zr};function zr(e,n,t){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),i):t(o)}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Ml={name:"labelStartLink",resolveAll:Ct.resolveAll,tokenize:Zr};function Zr(e,n,t){const r=this;return a;function a(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),l}function l(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(i):n(i)}}const Xl={name:"lineEnding",tokenize:jr};function jr(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),L(e,n,"linePrefix")}}const Wr={name:"thematicBreak",tokenize:Lr};function Lr(e,n,t){let r=0,a;return l;function l(A){return e.enter("thematicBreak"),i(A)}function i(A){return a=A,o(A)}function o(A){return A===a?(e.enter("thematicBreakSequence"),u(A)):r>=3&&(A===null||S(A))?(e.exit("thematicBreak"),n(A)):t(A)}function u(A){return A===a?(e.consume(A),r++,u):(e.exit("thematicBreakSequence"),Z(A)?L(e,o,"whitespace")(A):o(A))}}const Ir={continuation:{tokenize:qr},exit:Tr,name:"list",tokenize:Gr},Fr={partial:!0,tokenize:Yr},Dr={partial:!0,tokenize:Er};function Gr(e,n,t){const r=this,a=r.events[r.events.length-1];let l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,i=0;return o;function o(c){const g=r.containerState.type||(c===42||c===43||c===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||c===r.containerState.marker:Be(c)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),c===42||c===45?e.check(Wr,t,A)(c):A(c);if(!r.interrupt||c===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(c)}return t(c)}function u(c){return Be(c)&&++i<10?(e.consume(c),u):(!r.interrupt||i<2)&&(r.containerState.marker?c===r.containerState.marker:c===41||c===46)?(e.exit("listItemValue"),A(c)):t(c)}function A(c){return e.enter("listItemMarker"),e.consume(c),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||c,e.check(Ie,r.interrupt?t:f,e.attempt(Fr,m,s))}function f(c){return r.containerState.initialBlankLine=!0,l++,m(c)}function s(c){return Z(c)?(e.enter("listItemPrefixWhitespace"),e.consume(c),e.exit("listItemPrefixWhitespace"),m):t(c)}function m(c){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(c)}}function qr(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ie,a,l);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,L(e,n,"listItemIndent",r.containerState.size+1)(o)}function l(o){return r.containerState.furtherBlankLines||!Z(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Dr,n,i)(o))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,L(e,e.attempt(Ir,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Er(e,n,t){const r=this;return L(e,a,"listItemIndent",r.containerState.size+1);function a(l){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?n(l):t(l)}}function Tr(e){e.exit(this.containerState.type)}function Yr(e,n,t){const r=this;return L(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(l){const i=r.events[r.events.length-1];return!Z(l)&&i&&i[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const _l={name:"setextUnderline",resolveTo:Rr,tokenize:Br};function Rr(e,n){let t=e.length,r,a,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(a=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const i={type:"setextHeading",start:C({},e[r][1].start),end:C({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",l?(e.splice(a,0,["enter",i,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end=C({},e[l][1].end)):e[r][1]=i,e.push(["exit",i,n]),e}function Br(e,n,t){const r=this;let a;return l;function l(A){let f=r.events.length,s;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){s=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter("setextHeadingLine"),a=A,i(A)):t(A)}function i(A){return e.enter("setextHeadingLineSequence"),o(A)}function o(A){return A===a?(e.consume(A),o):(e.exit("setextHeadingLineSequence"),Z(A)?L(e,u,"lineSuffix")(A):u(A))}function u(A){return A===null||S(A)?(e.exit("setextHeadingLine"),n(A)):t(A)}}const Or=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nl(e){return e.replace(Or,Hr)}function Hr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const a=t.charCodeAt(1),l=a===120||a===88;return jn(t.slice(l?2:1),l?16:10)}return wt(t)||e}const Fe=(function(e){if(e==null)return Nr;if(typeof e=="function")return De(e);if(typeof e=="object")return Array.isArray(e)?Mr(e):Xr(e);if(typeof e=="string")return _r(e);throw new Error("Expected function, string, or object as test")});function Mr(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Fe(e[t]);return De(r);function r(...a){let l=-1;for(;++l<n.length;)if(n[l].apply(this,a))return!0;return!1}}function Xr(e){const n=e;return De(t);function t(r){const a=r;let l;for(l in e)if(a[l]!==n[l])return!1;return!0}}function _r(e){return De(n);function n(t){return t&&t.type===e}}function De(e){return n;function n(t,r,a){return!!(Vr(t)&&e.call(this,t,typeof r=="number"?r:void 0,a||void 0))}}function Nr(){return!0}function Vr(e){return e!==null&&typeof e=="object"&&"type"in e}const St=[],Jr=!0,Oe=!1,Kr="skip";function zt(e,n,t,r){let a;typeof n=="function"&&typeof t!="function"?(r=t,t=n):a=n;const l=Fe(a),i=r?-1:1;o(e,void 0,[])();function o(u,A,f){const s=u&&typeof u=="object"?u:{};if(typeof s.type=="string"){const c=typeof s.tagName=="string"?s.tagName:typeof s.name=="string"?s.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(u.type+(c?"<"+c+">":""))+")"})}return m;function m(){let c=St,g,k,v;if((!n||l(u,A,f[f.length-1]||void 0))&&(c=Ur(t(u,f)),c[0]===Oe))return c;if("children"in u&&u.children){const b=u;if(b.children&&c[0]!==Kr)for(k=(r?b.children.length:-1)+i,v=f.concat(b);k>-1&&k<b.children.length;){const y=b.children[k];if(g=o(y,k,v)(),g[0]===Oe)return g;k=typeof g[1]=="number"?g[1]:k+i}}return c}}}function Ur(e){return Array.isArray(e)?e:typeof e=="number"?[Jr,e]:e==null?St:[e]}function Qr(e,n,t,r){let a,l,i;typeof n=="function"&&typeof t!="function"?(l=void 0,i=n,a=t):(l=n,i=t,a=r),zt(e,l,o,a);function o(u,A){const f=A[A.length-1],s=f?f.children.indexOf(u):void 0;return i(u,s,f)}}const $r="data:image/x-icon;base64,AAABAAMAEBAAAAEAIABoBAAANgAAACAgAAABACAAKBEAAJ4EAAAwMAAAAQAgAGgmAADGFQAAKAAAABAAAAAgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACza1tRuG9e0blzX/27dWD/vXlg/798Yf/Bf2L/woNj/8SGZP/GimX/yI1m/8qQZ/3LlGfPz5lpSwAAAAC2bFxQt25e/blxXv+6dGD/vHhg/757Yf/AfmL/woJj/8OFZP/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////////////////////////////////////////////////////////////////////////////06N7/1KZ9/8+aaf/QnGr/0Z1q/9Gfa//SoWv/06Js/9SkbP/Vpm3/1aht77t0X/+7dmD/vHhg/715Yf++e2H/v31h/8mSef/my7//4sS1/9+9rP/duqb/3bml/9+9qv/37+r////////////////////////////////////////////79/P/2K2F/9Cdav/Rnmv/0qBr/9OibP/Uo2z/1aVs/9anbf/WqW3vu3Zg/7x3YP+9eWD/vnth/798Yf/AfmL/wX9i/8GBY//Cg2P/w4Vk/8SGZP/FiGX/xopl//nz7//////////////////69fH/69bG//Pn3f///v7////////////69O//1KV2/9Kfa//ToWv/1KNs/9WlbP/Vpm3/1qht/9iqbu+8dmD/vXhg/756Yf++fGH/v31i/8B/Yv/BgWP/woJj/8OEZP/EhmT/xYdk/8aJZf/Hi2X//v38///////////////+/9Smgv/MlWj/zZdp/9iuif/27eX////////////t2cP/0qFr/9OibP/UpGz/1aZt/9anbf/XqW3/2Ktu77x4YP+9eWH/vnth/799Yf/AfmL/wYBi/8KCY//DhGP/xIVk/8WHZP/FiGX/xopl/8eMZv/8+vj////////////8+Pb/zJRo/82WaP/OmGn/zplp/9Kgcf/16uD///////78+//WqXb/1KNs/9WlbP/Wp23/16ht/9iqbv/ZrG7vvXlg/757Yf+/fGH/wH5i/8F/Yv/BgWP/woNj/8OFZP/WrJT/6M/B/8iNav/Hi2X/yI1m//Tp4f////////////79/P/OmW3/zZdp/86Zaf/Pmmr/0Jxq/9mvhP///v7//////+LCnv/VpWz/1qZt/9aobf/Xqm7/2Ktu/9qtb+++emH/vnxh/799Yv/Af2L/wYFj/8KCY//DhGT/ypJ0//37+v//////5Mi2/8iNZv/Ijmb/5cm1/////////////////9u0k//OmGn/z5pp/9Ccav/RnWr/0p9r//jx6P//////6tK2/9Wmbf/Wp23/16lt/9irbv/ZrG7/2q5v7757Yf+/fWL/wH9i/8GAYv/CgmP/w4Rj/8SFZP/So4n////////////+/v3/2K+T/8mPZv/QnXj//fv5////////////8ePW/8+aaf/Pm2r/0J1q/9Gea//SoGv/9+/m///////q1Ln/1qdt/9eobf/Yqm7/2axu/9mub//ar2/vv3xh/8B+Yv/Bf2L/wYFj/8KDY//DhWT/xIZk/8eMav/58/D////////////9+vn/27WZ/8uSZ//iwqr/////////////////48Wo/9Ccav/Rnmr/0p9r/9qwg//+/v3//////+LAl//WqG3/16pu/9irbv/ZrW//2q9v/9uwcO+/fWL/wH9i/8GBY//CgmP/w4Rk/8SGZP/FiGT/xoll/9Wpjf/9+/n///////////////7/7dnL/9Wngv/mzLX///7+///////+/v3/6M+2/9isgP/eupT/+fHq///////059f/1qhu/9epbf/Yq27/2axu/9qub//bsG//27Fw78B/Yv/BgGL/woJj/8OEY//EhWT/xYdk/8WIZf/GimX/x4xm/9Olhf/16+T///////////////////7+//bs5P/27eX/////////////////////////////////8eHO/9irc//XqG3/2Kpu/9msbv/Zrm//2q9v/9uxcP/csnDvwX9i/8GBY//Cg2P/w4Vk/8SGZP/FiGX/xopl/8eLZf/IjWb/yY9m/8qSaf/ct5v/8eHV//78+//////////////////////////////////+/v3/9OjZ/+HAmP/Wpm3/1qht/9eqbv/Yq27/2a1v/9qvb//bsHD/3LJw/92zcO/BgWP/woJj/8OEZP/EhmT/xYdk/8aJZf/Hi2X/yI1m/8mOZv/JkGf/ypFn/8uTaP/MlWj/z5tv/9qxjf/hwaL/5cqv/+bLsP/kxqf/3rqS/9aodv/UpGz/1aZt/9anbf/XqW3/2Ktu/9msbv/arm//27Bv/9uxcP/cs3D/3bRw78KCY//DhGP/xIVk/8SHZP/FiGX/xopl/8eMZv/Ijmb/yY9n/8qRZ//Lk2f/zJRo/82WaP/OmGn/zplp/8+bav/QnWr/0Z5r/9Kga//Tomz/1KNs/9WlbP/Wp23/16lt/9iqbv/ZrG7/2a5v/9qvb//bsXD/3LNw/920cf/etXDvw4Nj9cOFZP/EhmT/xYhl/8aKZf/Hi2X/yI1m/8mPZv/KkGf/y5Jn/8uUaP/MlWj/zZdp/86Zaf/Pmmr/0Jxq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9Cdav/RnWr/0p9r/9Kga//ToWv/06Ns/9SjbP/UpGz/1qZs5LlyXv+6c1//unRf/7t1X/+7dmD/vHdg/714YP+9emH/vnth/8ePeP/48e/////////////////////////////////////////////////////////////////////////////////////////////8+vn/7NfI/9Wphv/Omm//zZZo/82WaP/OmGn/zplp/8+aaf/Qm2r/0Jxq/9Gdav/Rnmv/0qBr/9Kha//Tomz/1KNs/9SkbP/VpW3/1qds5LpzX/+6dF//u3Rf/7t2YP+8d2D/vHhg/715Yf++emH/vnth/9Ghjf///v7///////////////////////////////////////////////////////////////////////////////////////////////////////z49f/q1cP/1qqF/86Yaf/OmGn/z5pp/8+bav/QnGr/0J1q/9Gea//Sn2v/0qBr/9OibP/To2z/1KRs/9WlbP/Vpm3/1qds5LpzX/+6dF//u3Zg/7x2YP+8d2D/vXlh/756Yf++e2H/v31h/9Gijv////7////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v3/+fPu/9++n//Pmmr/z5tq/9Ccav/QnGr/0Z5q/9Gfa//SoGv/06Fr/9OibP/Uo2z/1aVs/9Wmbf/Wpm3/1qhs5Lp0X/+7dWD/u3Zg/7x3YP+9eGD/vXph/757Yf+/fGH/v31i/8WJb//r1sz/9+7q//Xr5v/z5+D/8OLZ/+7d1P/t29D/7tvQ//Df1v/16uT//v38//////////////////////////////////////////////////////////////////36+P/jxqr/0Z5u/9Ccav/Rnmr/0Z5r/9Kfa//ToWv/06Js/9SjbP/UpGz/1aVt/9Wmbf/Wp23/16lu5Lt1X/+7dmD/vHdg/714YP+9eWH/vnph/758Yf+/fWH/v31i/8B/Yv/DhWn/x41y/8WIav/DhWX/w4Rk/8SGZP/EhmT/xYhk/8aJZf/XrZT/+/f1///////////////////////////////////////////////////////////////////////79/P/4sKk/9Gdav/Rnmv/0p9r/9Kha//ToWv/06Ns/9SkbP/VpWz/1aZt/9anbf/WqG3/16pu5Lt2YP+7dmD/vHhg/715YP+9emH/vnth/798Yf+/fWL/wH9i/8F/Yv/BgGL/woJj/8KDY//DhGP/xIZk/8SGZP/Fh2T/xoll/8aKZf/eu6X//fz7////////////////////////////8uTa/9+9ov/hwaj/8ODU//7+/v///////////////////////Pj1/9uzi//Rnmv/0qBr/9Oha//Tomz/1KRs/9WlbP/VpW3/1qdt/9aobf/XqW3/2Kpu5Lt2YP+8d2D/vXhg/715Yf++e2H/v3xh/799Yf/AfmL/wH9i/8GAYv/CgWP/woNj/8OEY//DhWT/xIZk/8SHZP/FiGX/xoll/8aKZf/iwq////7+///////////////////////y5Nn/z5x1/8yUaP/Mlmj/zZdp/9iuif/y5Nf//v37//////////////////Tp3f/VpXT/06Fr/9OibP/Uo2z/1KRs/9WlbP/Wp23/1qdt/9eobf/Xqm7/2Ktu5Lx3YP+8eGD/vXlh/757Yf++e2H/v31h/8B+Yv/Af2L/wYBi/8GBY//CgmP/w4Nj/8OFZP/EhWT/xIZk/8WIZf/GiWX/xopl/8eLZf/iw7D///7+//////////////////7+/v/lybP/zJVp/8yVaP/Nlmj/zZdp/86Zaf/To3f/5862//38+v////////////369//iwZ3/06Js/9SjbP/UpGz/1aVs/9ambf/Wp23/1qht/9eqbv/Yqm7/2axu5Lx4YP+9eGD/vnph/757Yf+/fGH/wH5i/8B+Yv/Af2L/wYFj/8KCY//Cg2P/w4Rk/8SFZP/EhmT/xYhk/8WIZf/GiWX/x4tl/8eMZv/gv6n//v38//////////////////79/P/iw6r/zJVo/82WaP/Nl2n/zphp/86Zaf/Pmmn/0Z9u/+bLsf///v7////////////u2sX/1aZy/9SjbP/UpGz/1aZt/9anbf/Wp23/16lu/9iqbv/Yq27/2axu5L14YP+9emH/vnth/758Yf+/fWL/wH5i/8B/Yv/BgGL/woFj/8KCY//DhGP/w4Vk/8iPb//YsJn/1qyT/8eLaP/GimX/x4xm/8iNZv/btJr//Pn3///////////////////+/v/lybL/zJZp/82WaP/OmGn/zplp/8+aaf/Qm2r/0Jxq/9Wld//z59r////////////27OH/2Kx7/9SkbP/VpW3/1qZt/9anbf/XqW3/16pu/9irbv/ZrG7/2q1v5L15Yf++emH/vnth/799Yv/AfmL/wH9i/8GAYv/BgWP/woJj/8OEY//DhGT/xYhn/+nRxf/+/fz//fz7/9qzm//Hi2X/x4xm/8iOZv/SooH/+fPu///////////////////////s2Mf/z5tv/86Yaf/OmGn/z5pp/8+bav/QnGr/0Z1q/9GfbP/nzLD//v38///////8+fX/27KD/9WlbP/Vpm3/1qdt/9eobf/XqW7/2Kpu/9msbv/ZrW7/2q5v5L56Yf++e2H/v31h/799Yv/AfmL/wYBi/8GBY//CgWP/w4Nj/8OEZP/DhWT/06WM//79/P////////////bt6P/RoH//yI1m/8iOZv/Kkmr/8eHW///////////////////////37uf/06R6/86Yaf/OmWn/z5tq/9Ccav/QnGr/0Z5q/9Kfa//gv5v//Pn2/////////v7/3riM/9Wmbf/Wp23/1qht/9epbf/Xqm7/2Kxu/9msbv/ZrW//2q5v5L57Yf+/fGH/v31i/8B+Yv/Af2L/wYBi/8GBY//Cg2P/w4Rj/8OFZP/EhmT/3bml///////////////////+/v/r1cf/zJZw/8mPZv/JkGf/2bCT//79/P////////////////////7/4cKl/86Zaf/Pmmn/0Jtq/9Ccav/Rnmr/0Z9r/9Kga//gvpn//Pn2////////////3rqO/9ambf/WqG3/16lt/9eqbv/Yq27/2axu/9mtb//arm//2rFv5L58Yf+/fWH/wH5i/8B/Yv/BgGL/wYFj/8KCY//Dg2P/w4Rk/8SGZP/EhmT/06SK///+/v/////////////////9+/r/5827/8yVb//KkWf/y5Np/+zXx////v7/////////////////+vTu/9ishf/Pm2r/0Jxq/9Gdav/Rnmv/0p9r/9KhbP/myqz//v37///////8+fX/3LSE/9anbf/WqG3/16lu/9irbv/YrG7/2a1u/9qub//ar2//27Fw5L98Yf+/fWL/wH9i/8F/Yv/BgGL/woJj/8KDY//DhGP/xIZk/8SGZP/Fh2T/x4to//Dg1////////////////////////vz8/+7cz//Qnnj/y5No/9KifP/06N////////////////////////To3f/Vp3v/0Z1q/9Geav/Rn2v/0qBr/9apd//z59n////////////059f/2a14/9aobf/XqW3/2Kpu/9irbv/ZrG7/2q5v/9qvb//ar2//27Fw5L99Yv/AfmL/wH9i/8GAYv/CgWP/woNj/8OEY//DhWT/xIZk/8SHZP/FiGX/xoll/9Cef//27ej////+///////////////////////27OX/27OW/9CddP/ZsY//9+7n///////////////////+/v/x4tP/2a+E/9Skc//UpHL/2Kt8/+7axf////////////369v/lx6L/1qdu/9eobf/Xqm7/2Ktu/9msbv/ZrW//2q5v/9qvb//bsHD/27Jw5MB+Yv/Af2L/wYBi/8GBY//CgmP/w4Nj/8OFZP/EhmT/xIZk/8WIZf/GiWX/xopl/8iMZ//Wq4//9Ojg/////////////////////////////vz7//Lj1//kyLD/5Mev//Pm2//9+/n/////////////////+fPt//Dfzf/v3cr/+O/n/////////////fr4/+nQsv/Yq3P/1qht/9eqbv/Yqm7/2Kxu/9mtb//arm//2q9v/9uwcP/bsXD/3LNw5MB/Yv/Af2L/wYFj/8KCY//Cg2P/w4Rk/8SFZP/EhmT/xYhk/8WIZf/GiWX/x4tl/8eMZv/Ijmf/zpt3/+fPvf/9+/n////////////////////////////+/fz/+/fz//v38//+/f3////////////////////////////////////////////69O3/4sKa/9epcf/Wp23/16lu/9iqbv/Yq27/2a1u/9mub//arm//27Bv/9uxcP/csnD/3LNw5MB/Yv/BgGL/woFj/8KCY//DhGP/w4Vk/8SGZP/Fh2T/xYhl/8aJZf/GimX/x4xm/8iNZv/Ijmb/yY9m/8qRaP/VqYj/7tzO//nz7v/9+/n////////////////////////////////////////////////////////////+/Pr/+vXv/+/eyf/bsoH/1qdt/9anbf/XqW3/16pu/9irbv/ZrG7/2a1v/9qub//bsG//27Bw/9uxcP/cs3D/3bRw5MGAYv/BgWP/woJj/8OEY//DhGT/xIZk/8WHZP/FiGT/xoll/8aKZf/Hi2X/x4xm/8iOZv/Jjmb/yY9n/8qRZ//Kkmf/y5Rp/9Smgv/gvaL/6dG9//Hh0//27OT/+vXw//36+P/9/Pr//fv5//z39P/48Oj/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AAAAAAAAA==",ei=({message:e,type:n="default"})=>{const t=n==="loading",{botData:r}=me();return x.jsxs(W,{position:"relative",width:"full",children:[x.jsx(W,{opacity:"0",bg:"#EDEDED",borderRadius:"20px",padding:"12px",children:x.jsx(V,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})}),x.jsx(W,{h:"42px"}),x.jsx(W,{position:"absolute",left:0,bottom:0,children:x.jsx(ne,{src:(r==null?void 0:r.agent_image)||$r,alt:"Mori",w:"20px",h:"20px",borderRadius:"50%"})}),x.jsx(W,{position:"absolute",left:"18px",bottom:"18px",width:"6.4px",height:"6.4px",bg:"#EDEDED",borderRadius:"100%"}),x.jsx(W,{position:"absolute",left:"23px",bottom:"23px",width:"13px",height:"13px",bg:"#EDEDED",borderRadius:"100%"}),x.jsx(W,{position:"absolute",left:"29px",bottom:"29px",bg:"#EDEDED",borderRadius:"20px",padding:"12px",children:t?x.jsx(V,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",color:"gray.500",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e}):x.jsx(V,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})})]})},ti="data:image/svg+xml,%3csvg%20width='15'%20height='12'%20viewBox='0%200%2015%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.16536%201.81467C7.16536%200.791333%205.9427%200.263999%205.1987%200.965999L1.30003%204.64C1.15132%204.78022%201.03284%204.94936%200.951856%205.13703C0.870874%205.3247%200.829102%205.52694%200.829102%205.73133C0.829102%205.93573%200.870874%206.13797%200.951856%206.32563C1.03284%206.5133%201.15132%206.68244%201.30003%206.82267L5.19736%2010.5C5.94136%2011.202%207.1647%2010.674%207.1647%209.65133V8.33467C7.93731%208.19507%208.73376%208.28024%209.45939%208.58006C10.185%208.87989%2010.8093%209.38175%2011.258%2010.026L11.7927%2010.794C12.5207%2011.84%2014.162%2011.3247%2014.162%2010.0507V9.738C14.162%205.89267%2010.9394%202.87667%207.1647%203.05733L7.16536%201.81467ZM5.8847%201.69333C5.90839%201.67111%205.93807%201.6563%205.97007%201.65072C6.00208%201.64514%206.03501%201.64904%206.06483%201.66193C6.09465%201.67482%206.12005%201.69614%206.13791%201.72328C6.15577%201.75042%206.16531%201.78218%206.16536%201.81467V3.54C6.16536%203.87333%206.45736%204.132%206.78803%204.092C10.1767%203.68%2013.1627%206.32467%2013.1627%209.73867V10.0507C13.1627%2010.3453%2012.7827%2010.4647%2012.614%2010.2227L12.0787%209.45467C11.4785%208.5928%2010.6268%207.93727%209.63996%207.57763C8.65317%207.21799%207.5794%207.17179%206.56536%207.44533C6.45052%207.47639%206.34911%207.54442%206.27681%207.6389C6.2045%207.73337%206.16534%207.84903%206.16536%207.968V9.65067C6.16531%209.68315%206.15577%209.71492%206.13791%209.74205C6.12005%209.76919%206.09465%209.79051%206.06483%209.8034C6.03501%209.81629%206.00208%209.82019%205.97007%209.81461C5.93807%209.80903%205.90839%209.79422%205.8847%209.772L1.9867%206.09533C1.93716%206.04859%201.8977%205.99223%201.87072%205.92969C1.84375%205.86716%201.82984%205.79977%201.82984%205.73167C1.82984%205.66356%201.84375%205.59618%201.87072%205.53364C1.8977%205.4711%201.93716%205.41474%201.9867%205.368L5.8847%201.69333Z'%20fill='%236155F5'%20/%3e%3c/svg%3e",ni="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.56503%203.915C5.11896%202.73832%206.04737%201.77849%207.20497%201.18572C8.36257%200.592947%209.68402%200.400681%2010.9625%200.63901C12.2411%200.877339%2013.4045%201.53281%2014.2708%202.50286C15.137%203.4729%2015.6573%204.70277%2015.75%206C15.8332%207.19515%2015.548%208.38706%2014.9329%209.41516C14.3178%2010.4433%2013.4024%2011.2581%2012.31%2011.75C11.9379%2012.672%2011.3425%2013.4871%2010.5774%2014.122C9.81221%2014.7569%208.90126%2015.1917%207.92642%2015.3873C6.95158%2015.5829%205.94341%2015.5332%204.99255%2015.2426C4.04169%2014.952%203.17794%2014.4297%202.47896%2013.7226C1.77998%2013.0155%201.26768%2012.1458%200.988107%2011.1916C0.708538%2010.2375%200.670468%209.2288%200.877321%208.25629C1.08417%207.28377%201.52946%206.37791%202.17316%205.62013C2.81685%204.86235%203.63877%204.27641%204.56503%203.915ZM9.90503%201.5H9.60503C8.52019%201.56681%207.48862%201.99351%206.67357%202.71256C5.85852%203.43161%205.30656%204.40195%205.10503%205.47L10.675%201.565C10.4205%201.52309%2010.163%201.50136%209.90503%201.5ZM11.905%201.93L5.33003%206.555L5.06003%206.745C5.11592%207.4665%205.33108%208.16663%205.69003%208.79499L13.565%203.155C13.1023%202.63199%2012.5329%202.21427%2011.895%201.93H11.905ZM14.145%203.97L6.25003%209.60999C6.70986%2010.1331%207.27572%2010.5524%207.91003%2010.84L14.75%205.82C14.6759%205.16869%2014.47%204.53927%2014.145%203.97ZM14.75%207.065L9.10503%2011.2C9.4681%2011.2629%209.83728%2011.283%2010.205%2011.26C11.33%2011.1916%2012.3968%2010.7368%2013.225%209.97234C14.0532%209.20793%2014.5919%208.1809%2014.75%207.065ZM6.75003%2014.5C7.59348%2014.4958%208.42238%2014.2798%209.16061%2013.8718C9.89883%2013.4638%2010.5227%2012.8769%2010.975%2012.165C10.7406%2012.2117%2010.5035%2012.2434%2010.265%2012.26H9.90003C8.40699%2012.257%206.97069%2011.6876%205.88117%2010.6668C4.79165%209.64592%204.13007%208.24969%204.03003%206.76C4.00121%206.25734%204.03819%205.75307%204.14003%205.26C3.22219%205.83357%202.51524%206.68948%202.12538%207.69915C1.73553%208.70883%201.68382%209.81774%201.97803%2010.8593C2.27224%2011.9009%202.89648%2012.8189%203.75697%2013.4754C4.61746%2014.1318%205.66774%2014.4914%206.75003%2014.5Z'%20fill='%236155F5'%20/%3e%3c/svg%3e",ri=e=>{const n="dori",t="dori_pdp_widget",r="dori_product_recommendation",a=e.includes("?")?"&":"?";return`${e}${a}utm_source=${n}&utm_medium=${t}&utm_campaign=${r}`},Vl=(e,n)=>{const t="customer_referral",r="widget",a="powered_by",l=e.includes("?")?"&":"?";return`${e}${l}utm_source=${t}&utm_medium=${r}&utm_campaign=${a}&utm_term=${n}`},ii=({product:e})=>{var s;const{sendMessage:n,setRepliedProduct:t,botData:r,chatState:a}=me(),{name:l,id:i,url:o}=e,u=()=>{const m=`Do you have similar to ${l}`,c=`Do you have similar to ${i}`;n({message:m,apiMessage:c})},A=()=>{t({product:e,suggestions:["Does this product have a discount?","What features make this product special?","Does it come in other colors?"]})},f=()=>le(null,null,function*(){if(!o||!r)return;const m=ri(o);window.open(m,"_blank","noopener,noreferrer"),vn(e,r,a.threadId)});return x.jsxs(Q,{align:"stretch",gap:1,w:"full",children:[x.jsx(W,{bg:"white",borderRadius:"14px",border:"1px solid #F0EEFE",p:1.5,w:"full",children:x.jsxs(ee,{gap:1.5,align:"stretch",w:"full",children:[x.jsx(W,{flexShrink:0,cursor:"pointer",onClick:f,_hover:{opacity:.9},transition:"opacity 0.2s",children:x.jsx(ne,{src:e.image,alt:e.name,w:"60px",h:"60px",objectFit:"contain",borderRadius:"md"})}),x.jsxs(Q,{gap:.5,align:"start",justifyContent:"center",children:[x.jsx(V,{fontWeight:600,fontSize:"10px",lineHeight:"20px",textAlign:"start",color:"#1A1A1A",maxW:"100%",title:e.name,cursor:"pointer",onClick:f,_hover:{color:"#6155F5"},transition:"color 0.2s",children:e.name}),x.jsxs(ee,{gap:.75,align:"center",children:[e.discount&&x.jsxs(x.Fragment,{children:[x.jsx(V,{fontSize:"xs",color:"gray.400",textDecoration:"line-through",children:(s=e.originalPrice)==null?void 0:s.toLocaleString()}),x.jsxs(nn,{bg:"rgba(255, 56, 60, 0.14)",color:"#FF383C",fontSize:"xs",borderRadius:"20px",children:[e.discount,"٪"]})]}),x.jsxs(V,{fontSize:"10px",fontWeight:"700",color:"black",children:[e.price.toLocaleString()," USD"]})]})]})]})},e.id),x.jsxs(ee,{gap:.5,w:"full",children:[x.jsx(ye,{variant:"outline",size:"xs",fontSize:"10px",lineHeight:"0px",textAlign:"right",color:"#6155F5",borderColor:"#F0EEFE",borderRadius:"3px",borderWidth:"2px",onClick:A,"aria-label":"Reply",children:x.jsx(ne,{src:ti,alt:"reply"})}),x.jsxs(Pe,{variant:"outline",size:"xs",fontSize:"10px",lineHeight:"4px",textAlign:"right",color:"#6155F5",borderRadius:"3px",flex:1,fontWeight:400,onClick:u,bgColor:"#F0EEFE",children:[x.jsx(ne,{width:4,height:4,src:ni,alt:"suggestion"}),"Similar Suggestion"]})]})]})},ot=({products:e})=>x.jsx(Q,{align:"stretch",gap:1.5,w:"full",children:x.jsx(W,{px:.75,w:"full",children:x.jsx(rn,{dir:"ltr",columns:{base:1,md:2},gapX:{base:.75,md:1.5},gapY:{base:1.5,md:3},w:"full",children:e.map(n=>x.jsx(ii,{product:n},n.id))})})}),ai=({suggestions:e})=>{const{sendMessage:n}=me(),t=r=>{n({message:r})};return x.jsx(ee,{gap:1.5,wrap:"wrap",children:e.slice(0,3).map((r,a)=>x.jsx(Pe,{bg:a%2===0?"white":"#F5F5F5",border:"1px solid #EDEDED",borderRadius:"20px",px:3,py:1.5,h:"auto",onClick:()=>t(r),_hover:{bg:"#F5F5F5",borderColor:"#6155F5"},_active:{bg:"#F0F0F0"},textAlign:"center",justifyContent:"center",children:x.jsx(V,{fontSize:"10px",fontWeight:"400",color:"#1A1A1A",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",children:r})},a))})};function ut(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,a=t.indexOf(n);for(;a!==-1;)r++,a=t.indexOf(n,a+n.length);return r}function li(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oi(e,n,t){const a=Fe((t||{}).ignore||[]),l=ui(n);let i=-1;for(;++i<l.length;)zt(e,"text",o);function o(A,f){let s=-1,m;for(;++s<f.length;){const c=f[s],g=m?m.children:void 0;if(a(c,g?g.indexOf(c):void 0,m))return;m=c}if(m)return u(A,f)}function u(A,f){const s=f[f.length-1],m=l[i][0],c=l[i][1];let g=0;const v=s.children.indexOf(A);let b=!1,y=[];m.lastIndex=0;let P=m.exec(A.value);for(;P;){const I=P.index,F={index:P.index,input:P.input,stack:[...f,A]};let w=c(...P,F);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?m.lastIndex=I+1:(g!==I&&y.push({type:"text",value:A.value.slice(g,I)}),Array.isArray(w)?y.push(...w):w&&y.push(w),g=I+P[0].length,b=!0),!m.global)break;P=m.exec(A.value)}return b?(g<A.value.length&&y.push({type:"text",value:A.value.slice(g)}),s.children.splice(v,1,...y)):y=[A],v+y.length}}function ui(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const a=t[r];n.push([si(a[0]),Ai(a[1])])}return n}function si(e){return typeof e=="string"?new RegExp(li(e),"g"):e}function Ai(e){return typeof e=="function"?e:function(){return e}}const Ee="phrasing",Te=["autolink","link","image","label"];function ci(){return{transforms:[bi],enter:{literalAutolink:hi,literalAutolinkEmail:Ye,literalAutolinkHttp:Ye,literalAutolinkWww:Ye},exit:{literalAutolink:xi,literalAutolinkEmail:gi,literalAutolinkHttp:pi,literalAutolinkWww:mi}}}function fi(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ee,notInConstruct:Te},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ee,notInConstruct:Te},{character:":",before:"[ps]",after:"\\/",inConstruct:Ee,notInConstruct:Te}]}}function hi(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ye(e){this.config.enter.autolinkProtocol.call(this,e)}function pi(e){this.config.exit.autolinkProtocol.call(this,e)}function mi(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.url="http://"+this.sliceSerialize(e)}function gi(e){this.config.exit.autolinkEmail.call(this,e)}function xi(e){this.exit(e)}function bi(e){oi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,di],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ki]],{ignore:["link","linkReference"]})}function di(e,n,t,r,a){let l="";if(!Zt(a)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!wi(t)))return!1;const i=vi(t+r);if(!i[0])return!1;const o={type:"link",title:null,url:l+n+i[0],children:[{type:"text",value:n+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function ki(e,n,t,r){return!Zt(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function wi(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function vi(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const a=ut(e,"(");let l=ut(e,")");for(;r!==-1&&a>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function Zt(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||ge(t)||Le(t))&&(!n||t!==47)}jt.peek=Li;function yi(){this.buffer()}function Pi(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ci(){this.buffer()}function Si(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zi(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.identifier=se(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Zi(e){this.exit(e)}function ji(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.identifier=se(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Wi(e){this.exit(e)}function Li(){return"["}function jt(e,n,t,r){const a=t.createTracker(r);let l=a.move("[^");const i=t.enter("footnoteReference"),o=t.enter("reference");return l+=a.move(t.safe(t.associationId(e),{after:"]",before:l})),o(),i(),l+=a.move("]"),l}function Ii(){return{enter:{gfmFootnoteCallString:yi,gfmFootnoteCall:Pi,gfmFootnoteDefinitionLabelString:Ci,gfmFootnoteDefinition:Si},exit:{gfmFootnoteCallString:zi,gfmFootnoteCall:Zi,gfmFootnoteDefinitionLabelString:ji,gfmFootnoteDefinition:Wi}}}function Fi(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:jt},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,a,l,i){const o=l.createTracker(i);let u=o.move("[^");const A=l.enter("footnoteDefinition"),f=l.enter("label");return u+=o.move(l.safe(l.associationId(r),{before:u,after:"]"})),f(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((n?`
1
+ var Ut=Object.defineProperty,Qt=Object.defineProperties;var $t=Object.getOwnPropertyDescriptors;var Ue=Object.getOwnPropertySymbols;var en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable;var Qe=(e,n,t)=>n in e?Ut(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,C=(e,n)=>{for(var t in n||(n={}))en.call(n,t)&&Qe(e,t,n[t]);if(Ue)for(var t of Ue(n))tn.call(n,t)&&Qe(e,t,n[t]);return e},N=(e,n)=>Qt(e,$t(n));var le=(e,n,t)=>new Promise((r,a)=>{var l=u=>{try{o(t.next(u))}catch(A){a(A)}},i=u=>{try{o(t.throw(u))}catch(A){a(A)}},o=u=>u.done?r(u.value):Promise.resolve(u.value).then(l,i);o((t=t.apply(e,n)).next())});import{r as G,j as x,B as W,T as V,I as ne,V as Q,H as ee,a as nn,b as ye,c as Pe,S as rn,M as $e,d as an,e as ln,f as on,g as un,h as sn,i as An,L as cn,k as gt}from"./vendor-react-CcnrbRml.js";import{S as fn,g as hn,B as pn,d as mn,m as gn}from"./vendor-sentry-D5Ws3Htt.js";(function(){try{var e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};e.SENTRY_RELEASE={id:"8eda7031c49bb4897c2bd51999a107c3ffe3b10c"}}catch(n){}})();try{(function(){var e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f42b2afe-7dcc-46ee-91f8-b51409870179",e._sentryDebugIdIdentifier="sentry-dbid-f42b2afe-7dcc-46ee-91f8-b51409870179")})()}catch(e){}const xn=!1,bn=hn().filter(e=>{const n=["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name);return n&&console.log(`[Sentry] Excluding integration: ${e.name}`),!n}),xt=new pn({dsn:"https://ffd963e90a83743e3fed7e00476fc6d8@sentry.hamravesh.com/9104",transport:gn,stackParser:mn,integrations:bn,tracesSampleRate:.1,tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/],debug:xn,environment:"production"}),Ze=new fn;Ze.setClient(xt);try{xt.init(),console.log("[Sentry] Client initialized successfully")}catch(e){console.error("[Sentry] Failed to initialize client:",e)}const we=(e,n)=>((...t)=>{try{return n(...t)}catch(r){console.error(`${e} error:`,r),Ze.captureException(r,{captureContext:{extra:{context:e}}})}}),Ce=(e,n)=>((...t)=>{try{return n(...t).catch(r=>{throw r.name!=="AbortError"&&(console.error(`${e} async error:`,r),Ze.captureException(r,{captureContext:{extra:{context:e}}})),r})}catch(r){throw r.name!=="AbortError"&&(console.error(`${e} error:`,r),Ze.captureException(r,{captureContext:{extra:{context:e}}})),r}});function dn(e,n=3){return le(this,null,function*(){let t;for(let r=0;r<n;r++)try{return yield e()}catch(a){if(t=a,r===n-1)throw t}throw t})}const qe="https://standardapi.dori.tech",Me={demoSharingData:`${qe}/bot-sharing-data/`,streamChat:`${qe}/stream-chat-with-assistant/`,searchProductLog:`${qe}/search-selected-item-log`},kn=Ce("fetchBotDataBySharingID",(e,n)=>le(null,null,function*(){return dn(()=>le(null,null,function*(){const t=Me.demoSharingData+e+(n?`?product_id=${n}`:""),r=yield fetch(t);if(r.status!==200)throw new Error(`Network response was not ok: ${r.status}`);return yield r.json()}),3)})),wn=Ce("sendMessageToStreamAPI",(e,n,t,r,a,l,i,o)=>le(null,null,function*(){const u=n.assistant_id;let A=e;const f={assistant_id:u,thread_id:t||void 0,src:typeof window!="undefined"?window.location.href:"",message:A,platform:"shopify_pdp",product_id:o||void 0};Object.keys(f).forEach(b=>f[b]===void 0&&delete f[b]);const s=new URLSearchParams({assistant_id:u}).toString(),m=`${Me.streamChat}?${s}`,c=yield fetch(m,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(f),signal:i==null?void 0:i.signal});if(i!=null&&i.signal.aborted){console.log("after response abortController");return}if(c.status===429){a("You have exceeded the request limit. Please wait at least 24 hours and try again.");return}if(c.status===402){a("Hello 😊 The smart assistant for this business is currently inactive because its subscription has expired. If you have any questions, please contact the business directly. We hope to be at your service again soon!");return}if(!c.body)throw new Error("ReadableStream not supported in this environment.");const g=c.body.getReader(),k=new TextDecoder("utf-8");let v="";for(;;){if(i!=null&&i.signal.aborted){g.cancel();return}const{value:b,done:y}=yield g.read();if(y)break;if(b){const P=k.decode(b,{stream:!0});v+=P;let I=v.indexOf("}{");for(;I!==-1;){const F=v.slice(0,I+1);v=v.slice(I+1),we("JSON parse in streaming",()=>{const w=JSON.parse(F);r(w)})(),I=v.indexOf("}{")}v.endsWith("}")&&we("JSON parse remaining buffer",()=>{const F=JSON.parse(v);r(F),v=""})()}}l()})),vn=Ce("trackProductClick",(e,n,t)=>le(null,null,function*(){const r={log:{assistant_id:n.assistant_id,thread_id:t,created_at:new Date().toISOString(),selected_item_id:e.id,tool_call_id:e.tool_call_id}};yield fetch(Me.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)})})),et={create_custom_product_card:"Preparing products to show you...",create_product_card:"Preparing products to show you...",create_order:"Starting the order process...",get_product_detail:"Finding product details for you...",product_retrieval:"Searching for the best options for you...",order_notes:"Adding your notes to the order...",order_persistence:"Saving your order carefully...",payment_processing:"Processing your payment information...",retrieve_faq:"Looking for the best answer for you...",prompt_recommendation:"",similar_products:"Looking for similar products for you...",track_order:"Checking your order status...",thinking:"Thinking..."},yn=e=>e&&e in et?et[e]:"Let me check for a moment...",bt=G.createContext(void 0);function Zl({children:e}){const[n,t]=G.useState(null),[r,a]=G.useState(!1),[l,i]=G.useState(null),[o,u]=G.useState(null),[A,f]=G.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[s,m]=G.useState([]),[c,g]=G.useState("welcome"),[k,v]=G.useState(!1),[b,y]=G.useState("starting"),P=G.useRef(null),I=G.useCallback(z=>{f(T=>N(C({},T),{repliedProduct:z}))},[]),F=G.useCallback(()=>{P.current&&(P.current.abort(),P.current=null),f(z=>N(C({},z),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),g("ongoing"),m(z=>z.filter(T=>T.type!=="loading"))},[]),w=G.useCallback(Ce("initializeBot",(z,T)=>le(null,null,function*(){if(!z||z.trim()===""){i("Invalid sharing ID provided"),console.error("Invalid sharing ID provided");return}a(!0),i(null),u(T||null);try{const B=yield kn(z,T||void 0);if(console.log("result",B),B.error){i(B.error),console.error("Error initializing bot:",B.error);return}if(B.data){const q=N(C({},B.data),{sharing_id:z,suggestedReply:O(B.data.suggested_prompts||B.data.suggestedReply)});t(q),g("initial-greeting")}else i("No bot data found"),console.error("No bot data found")}finally{a(!1)}})),[]),O=we("parseSuggestedReply",z=>{if(!z)return[];if(Array.isArray(z))return z;try{return JSON.parse(z)}catch(T){return console.error("Error parsing suggested reply:",T),[]}}),H=G.useCallback(we("addWelcomeMessage",()=>{const z={id:Date.now().toString(),type:"welcome",timestamp:new Date,content:(n==null?void 0:n.wellcomeMessage)||"Whatever you have in mind about your purchase, I'm here to help you!"};m(T=>[...T,z])}),[n==null?void 0:n.wellcomeMessage]),_=G.useCallback(Ce("sendMessage",(q,ae)=>le(null,[q,ae],function*({message:z,apiMessage:T},B){var te;if(!n||k)return;const U={id:Date.now().toString(),type:"user",content:z,timestamp:new Date,repliedProduct:B};m(j=>[...j.filter(D=>D.type!=="suggestions"),U]),P.current&&(P.current.abort(),P.current=null),g("thinking"),v(!0),y("generating"),f(j=>N(C({},j),{isRequestInProgress:!0})),P.current=new AbortController;let xe={id:(Date.now()+1).toString(),type:"loading",content:"Let me check for a moment...",timestamp:new Date};m(j=>[...j,xe]);let ce=T||z;B&&(ce=`this message is replied to product with id ${B.id}: ${z}`);let h="",R=null,ue=[],p=[];try{yield wn(ce,n,A.threadId,j=>{we("streaming chunk handler",()=>{if(console.log("[StreamChatResponse chunk received]:",j),j.thread_id)console.log("[StreamChatResponse] thread_id received:",j.thread_id),f(Y=>N(C({},Y),{threadId:j.thread_id||null}));else if(j.wait)console.log("[StreamChatResponse] wait received, creating new message session"),R&&h.trim()&&m(Y=>Y.map(D=>D.id===(R==null?void 0:R.id)?N(C({},D),{content:h}):D)),R=null,h="",m(Y=>[...Y.filter(K=>K.type!=="loading"),{id:(Date.now()+Math.random()).toString(),type:"loading",content:yn(j.tool_name),timestamp:new Date}]);else if(j.text)if(console.log("[StreamChatResponse] text chunk received:",j.text),h+=j.text,R)console.log("[StreamChatResponse] Updating existing bot message with:",h),m(Y=>Y.map(D=>D.id===(R==null?void 0:R.id)?N(C({},D),{content:h}):D));else{console.log("[StreamChatResponse] Creating new bot message:",h);const Y={id:(Date.now()+Math.random()).toString(),type:"mori",content:h,timestamp:new Date};m(D=>[...D.filter(fe=>fe.type!=="loading"),Y]),R=Y}else j.products&&j.products.length>0?(console.log("[StreamChatResponse] products received:",j.products),ue=[...ue,...j.products],m(Y=>{var Je,Ke;const K=[...Y.filter(Ge=>Ge.type!=="loading")],fe=K.findIndex(Ge=>Ge.id===(R==null?void 0:R.id)),he={id:(Date.now()+3).toString(),type:"products",content:"Suggested products:",timestamp:new Date,products:ue,tool_call_id:((Ke=(Je=j.products)==null?void 0:Je[0])==null?void 0:Ke.tool_call_id)||""};return fe!==-1?(console.log("[StreamChatResponse] Inserting/updating product message after current bot message"),K.splice(fe+1,0,he)):(console.log("[StreamChatResponse] No current bot message found, pushing product message to end"),K.push(he)),K}),console.log("Products accumulated and displayed:",ue)):j.suggestions&&j.suggestions.length>0&&(p=[...p,...j.suggestions])})()},j=>{var Y;if((Y=P.current)!=null&&Y.signal.aborted){P.current=null,f(D=>N(C({},D),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),g("ongoing"),m(D=>D.filter(K=>K.type!=="loading"));return}m(D=>[...D.filter(K=>K.type!=="loading"),{id:(Date.now()+2).toString(),type:"mori",content:j,timestamp:new Date}]),g("ongoing")},()=>{p.length>0&&m(j=>{const D=[...j.filter(he=>he.type!=="suggestions"&&he.type!=="loading")],K=D.findIndex(he=>he.id===(R==null?void 0:R.id)),fe={id:(Date.now()+4).toString(),type:"suggestions",content:"Suggestions:",timestamp:new Date,suggestions:p};return K!==-1?D.splice(K+1,0,fe):D.push(fe),D}),P.current=null,f(j=>N(C({},j),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),g("ongoing")},P.current,o)}catch(j){(te=P.current)!=null&&te.signal.aborted||j.name==="AbortError"?(P.current=null,f(Y=>N(C({},Y),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),g("ongoing"),m(Y=>Y.filter(D=>D.type!=="loading"))):(console.error("Error in sendMessage:",j),m(Y=>[...Y.filter(D=>D.type!=="loading"),{id:(Date.now()+2).toString(),type:"mori",content:"Unfortunately, an error occurred. Please try again.",timestamp:new Date}]),g("ongoing"),f(Y=>N(C({},Y),{isRequestInProgress:!1,repliedProduct:null})),v(!1),y("starting"),P.current=null)}})),[n,k,A.threadId]),d=G.useCallback(()=>{P.current&&(P.current.abort(),P.current=null),t(null),m([]),g("welcome"),v(!1),y("starting"),f({repliedProduct:null,threadId:null,isRequestInProgress:!1})},[]),M={botData:n,isLoadingBot:r,botError:l,chatState:A,messages:s,currentStep:c,isInputDisabled:k,inputState:b,initializeBot:w,sendMessage:_,stopCurrentRequest:F,setCurrentStep:g,setInputState:y,addWelcomeMessage:H,setRepliedProduct:I,resetBot:d};return x.jsx(bt.Provider,{value:M,children:e})}function me(){const e=G.useContext(bt);if(e===void 0)throw new Error("useChatContext must be used within a ChatProvider");return e}const Pn={};function dt(e,n){const t=Pn,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,a=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return kt(e,r,a)}function kt(e,n,t){if(Cn(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return tt(e.children,n,t)}return Array.isArray(e)?tt(e,n,t):""}function tt(e,n,t){const r=[];let a=-1;for(;++a<e.length;)r[a]=kt(e[a],n,t);return r.join("")}function Cn(e){return!!(e&&typeof e=="object")}const nt=document.createElement("i");function wt(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function re(e,n,t,r){const a=e.length;let l=0,i;if(n<0?n=-n>a?0:a+n:n=n>a?a:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);l<r.length;)i=r.slice(l,l+1e4),i.unshift(n,0),e.splice(...i),l+=1e4,n+=1e4}function $(e,n){return e.length>0?(re(e,e.length,0,n),e):n}const rt={}.hasOwnProperty;function Sn(e){const n={};let t=-1;for(;++t<e.length;)zn(n,e[t]);return n}function zn(e,n){let t;for(t in n){const a=(rt.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let i;if(l)for(i in l){rt.call(a,i)||(a[i]=[]);const o=l[i];Zn(a[i],Array.isArray(o)?o:o?[o]:[])}}}function Zn(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);re(e,0,0,r)}function jn(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function se(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J=Ae(/[A-Za-z]/),X=Ae(/[\dA-Za-z]/),Wn=Ae(/[#-'*+\--9=?A-Z^-~]/);function je(e){return e!==null&&(e<32||e===127)}const Be=Ae(/\d/),Ln=Ae(/[\dA-Fa-f]/),In=Ae(/[!-/:-@[-`{-~]/);function S(e){return e!==null&&e<-2}function E(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}const Le=Ae(new RegExp("\\p{P}|\\p{S}","u")),ge=Ae(/\s/);function Ae(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function jl(e){const n=[];let t=-1,r=0,a=0;for(;++t<e.length;){const l=e.charCodeAt(t);let i="";if(l===37&&X(e.charCodeAt(t+1))&&X(e.charCodeAt(t+2)))a=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(i=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(t+1);l<56320&&o>56319&&o<57344?(i=String.fromCharCode(l,o),a=1):i="�"}else i=String.fromCharCode(l);i&&(n.push(e.slice(r,t),encodeURIComponent(i)),r=t+a+1,i=""),a&&(t+=a,a=0)}return n.join("")+e.slice(r)}function L(e,n,t,r){const a=r?r-1:Number.POSITIVE_INFINITY;let l=0;return i;function i(u){return Z(u)?(e.enter(t),o(u)):n(u)}function o(u){return Z(u)&&l++<a?(e.consume(u),o):(e.exit(t),n(u))}}function de(e){if(e===null||E(e)||ge(e))return 1;if(Le(e))return 2}function Xe(e,n,t){const r=[];let a=-1;for(;++a<e.length;){const l=e[a].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Wl={name:"attention",resolveAll:Fn,tokenize:Dn};function Fn(e,n){let t=-1,r,a,l,i,o,u,A,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const s=C({},e[r][1].end),m=C({},e[t][1].start);it(s,-u),it(m,u),i={type:u>1?"strongSequence":"emphasisSequence",start:s,end:C({},e[r][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:C({},e[t][1].start),end:m},l={type:u>1?"strongText":"emphasisText",start:C({},e[r][1].end),end:C({},e[t][1].start)},a={type:u>1?"strong":"emphasis",start:C({},i.start),end:C({},o.end)},e[r][1].end=C({},i.start),e[t][1].start=C({},o.end),A=[],e[r][1].end.offset-e[r][1].start.offset&&(A=$(A,[["enter",e[r][1],n],["exit",e[r][1],n]])),A=$(A,[["enter",a,n],["enter",i,n],["exit",i,n],["enter",l,n]]),A=$(A,Xe(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),A=$(A,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",a,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,A=$(A,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,re(e,r-1,t-r+3,A),t=r+A.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Dn(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,a=de(r);let l;return i;function i(u){return l=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===l)return e.consume(u),o;const A=e.exit("attentionSequence"),f=de(u),s=!f||f===2&&a||t.includes(u),m=!a||a===2&&f||t.includes(r);return A._open=!!(l===42?s:s&&(a||!m)),A._close=!!(l===42?m:m&&(f||!s)),n(u)}}function it(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ll={name:"autolink",tokenize:Gn};function Gn(e,n,t){let r=0;return a;function a(c){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(c),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(c){return J(c)?(e.consume(c),i):c===64?t(c):A(c)}function i(c){return c===43||c===45||c===46||X(c)?(r=1,o(c)):A(c)}function o(c){return c===58?(e.consume(c),r=0,u):(c===43||c===45||c===46||X(c))&&r++<32?(e.consume(c),o):(r=0,A(c))}function u(c){return c===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(c),e.exit("autolinkMarker"),e.exit("autolink"),n):c===null||c===32||c===60||je(c)?t(c):(e.consume(c),u)}function A(c){return c===64?(e.consume(c),f):Wn(c)?(e.consume(c),A):t(c)}function f(c){return X(c)?s(c):t(c)}function s(c){return c===46?(e.consume(c),r=0,f):c===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(c),e.exit("autolinkMarker"),e.exit("autolink"),n):m(c)}function m(c){if((c===45||X(c))&&r++<63){const g=c===45?m:s;return e.consume(c),g}return t(c)}}const Ie={partial:!0,tokenize:qn};function qn(e,n,t){return r;function r(l){return Z(l)?L(e,a,"linePrefix")(l):a(l)}function a(l){return l===null||S(l)?n(l):t(l)}}const En={continuation:{tokenize:Yn},exit:Rn,name:"blockQuote",tokenize:Tn};function Tn(e,n,t){const r=this;return a;function a(i){if(i===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),l}return t(i)}function l(i){return Z(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(i))}}function Yn(e,n,t){const r=this;return a;function a(i){return Z(i)?L(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):l(i)}function l(i){return e.attempt(En,n,t)(i)}}function Rn(e){e.exit("blockQuote")}const Il={name:"characterEscape",tokenize:Bn};function Bn(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),a}function a(l){return In(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Fl={name:"characterReference",tokenize:On};function On(e,n,t){const r=this;let a=0,l,i;return o;function o(s){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),u}function u(s){return s===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(s),e.exit("characterReferenceMarkerNumeric"),A):(e.enter("characterReferenceValue"),l=31,i=X,f(s))}function A(s){return s===88||s===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(s),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,i=Ln,f):(e.enter("characterReferenceValue"),l=7,i=Be,f(s))}function f(s){if(s===59&&a){const m=e.exit("characterReferenceValue");return i===X&&!wt(r.sliceSerialize(m))?t(s):(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return i(s)&&a++<l?(e.consume(s),f):t(s)}}const at={partial:!0,tokenize:Mn},Dl={concrete:!0,name:"codeFenced",tokenize:Hn};function Hn(e,n,t){const r=this,a={partial:!0,tokenize:F};let l=0,i=0,o;return u;function u(w){return A(w)}function A(w){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,o=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===o?(i++,e.consume(w),f):i<3?t(w):(e.exit("codeFencedFenceSequence"),Z(w)?L(e,s,"whitespace")(w):s(w))}function s(w){return w===null||S(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(at,k,I)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||S(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(w)):Z(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),L(e,c,"whitespace")(w)):w===96&&w===o?t(w):(e.consume(w),m)}function c(w){return w===null||S(w)?s(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||S(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(w)):w===96&&w===o?t(w):(e.consume(w),g)}function k(w){return e.attempt(a,I,v)(w)}function v(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),b}function b(w){return l>0&&Z(w)?L(e,y,"linePrefix",l+1)(w):y(w)}function y(w){return w===null||S(w)?e.check(at,k,I)(w):(e.enter("codeFlowValue"),P(w))}function P(w){return w===null||S(w)?(e.exit("codeFlowValue"),y(w)):(e.consume(w),P)}function I(w){return e.exit("codeFenced"),n(w)}function F(w,O,H){let _=0;return d;function d(q){return w.enter("lineEnding"),w.consume(q),w.exit("lineEnding"),M}function M(q){return w.enter("codeFencedFence"),Z(q)?L(w,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):z(q)}function z(q){return q===o?(w.enter("codeFencedFenceSequence"),T(q)):H(q)}function T(q){return q===o?(_++,w.consume(q),T):_>=i?(w.exit("codeFencedFenceSequence"),Z(q)?L(w,B,"whitespace")(q):B(q)):H(q)}function B(q){return q===null||S(q)?(w.exit("codeFencedFence"),O(q)):H(q)}}}function Mn(e,n,t){const r=this;return a;function a(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l)}function l(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}const Gl={name:"codeIndented",tokenize:_n},Xn={partial:!0,tokenize:Nn};function _n(e,n,t){const r=this;return a;function a(A){return e.enter("codeIndented"),L(e,l,"linePrefix",5)(A)}function l(A){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?i(A):t(A)}function i(A){return A===null?u(A):S(A)?e.attempt(Xn,i,u)(A):(e.enter("codeFlowValue"),o(A))}function o(A){return A===null||S(A)?(e.exit("codeFlowValue"),i(A)):(e.consume(A),o)}function u(A){return e.exit("codeIndented"),n(A)}}function Nn(e,n,t){const r=this;return a;function a(i){return r.parser.lazy[r.now().line]?t(i):S(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):L(e,l,"linePrefix",5)(i)}function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(i):S(i)?a(i):t(i)}}const ql={name:"codeText",previous:Jn,resolve:Vn,tokenize:Kn};function Vn(e){let n=e.length-4,t=3,r,a;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)a===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(a=r):(r===n||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),n-=r-a-2,r=a+2),a=void 0);return e}function Jn(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kn(e,n,t){let r=0,a,l;return i;function i(s){return e.enter("codeText"),e.enter("codeTextSequence"),o(s)}function o(s){return s===96?(e.consume(s),r++,o):(e.exit("codeTextSequence"),u(s))}function u(s){return s===null?t(s):s===32?(e.enter("space"),e.consume(s),e.exit("space"),u):s===96?(l=e.enter("codeTextSequence"),a=0,f(s)):S(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):(e.enter("codeTextData"),A(s))}function A(s){return s===null||s===32||s===96||S(s)?(e.exit("codeTextData"),u(s)):(e.consume(s),A)}function f(s){return s===96?(e.consume(s),a++,f):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(s)):(l.type="codeTextData",A(s))}}class Un{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t==null?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const a=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ke(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),ke(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ke(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);ke(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ke(this.left,t.reverse())}}}function ke(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Qn(e){const n={};let t=-1,r,a,l,i,o,u,A;const f=new Un(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,$n(f,t)),t=n[t],A=!0);else if(r[1]._container){for(l=t,a=void 0;l--;)if(i=f.get(l),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(a&&(f.get(a)[1].type="lineEndingBlank"),i[1].type="lineEnding",a=l);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;a&&(r[1].end=C({},f.get(a)[1].start),o=f.slice(a,t),o.unshift(r),f.splice(a,t-a+1,o))}}return re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!A}function $n(e,n){const t=e.get(n)[1],r=e.get(n)[2];let a=n-1;const l=[];let i=t._tokenizer;i||(i=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const o=i.events,u=[],A={};let f,s,m=-1,c=t,g=0,k=0;const v=[k];for(;c;){for(;e.get(++a)[1]!==c;);l.push(a),c._tokenizer||(f=r.sliceStream(c),c.next||f.push(null),s&&i.defineSkip(c.start),c._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(f),c._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),s=c,c=c.next}for(c=t;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+1,v.push(k),c._tokenizer=void 0,c.previous=void 0,c=c.next);for(i.events=[],c?(c._tokenizer=void 0,c.previous=void 0):v.pop(),m=v.length;m--;){const b=o.slice(v[m],v[m+1]),y=l.pop();u.push([y,y+b.length-1]),e.splice(y,2,b)}for(u.reverse(),m=-1;++m<u.length;)A[g+u[m][0]]=g+u[m][1],g+=u[m][1]-u[m][0]-1;return A}const El={resolve:tr,tokenize:nr},er={partial:!0,tokenize:rr};function tr(e){return Qn(e),e}function nr(e,n){let t;return r;function r(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?l(o):S(o)?e.check(er,i,l)(o):(e.consume(o),a)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function i(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,a}}function rr(e,n,t){const r=this;return a;function a(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),L(e,l,"linePrefix")}function l(i){if(i===null||S(i))return t(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(i):e.interrupt(r.parser.constructs.flow,t,n)(i)}}function vt(e,n,t,r,a,l,i,o,u){const A=u||Number.POSITIVE_INFINITY;let f=0;return s;function s(b){return b===60?(e.enter(r),e.enter(a),e.enter(l),e.consume(b),e.exit(l),m):b===null||b===32||b===41||je(b)?t(b):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(b))}function m(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(a),e.exit(r),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),c(b))}function c(b){return b===62?(e.exit("chunkString"),e.exit(o),m(b)):b===null||b===60||S(b)?t(b):(e.consume(b),b===92?g:c)}function g(b){return b===60||b===62||b===92?(e.consume(b),c):c(b)}function k(b){return!f&&(b===null||b===41||E(b))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),n(b)):f<A&&b===40?(e.consume(b),f++,k):b===41?(e.consume(b),f--,k):b===null||b===32||b===40||je(b)?t(b):(e.consume(b),b===92?v:k)}function v(b){return b===40||b===41||b===92?(e.consume(b),k):k(b)}}function yt(e,n,t,r,a,l){const i=this;let o=0,u;return A;function A(c){return e.enter(r),e.enter(a),e.consume(c),e.exit(a),e.enter(l),f}function f(c){return o>999||c===null||c===91||c===93&&!u||c===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?t(c):c===93?(e.exit(l),e.enter(a),e.consume(c),e.exit(a),e.exit(r),n):S(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),s(c))}function s(c){return c===null||c===91||c===93||S(c)||o++>999?(e.exit("chunkString"),f(c)):(e.consume(c),u||(u=!Z(c)),c===92?m:s)}function m(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Pt(e,n,t,r,a,l){let i;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(a),e.consume(m),e.exit(a),i=m===40?41:m,u):t(m)}function u(m){return m===i?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),n):(e.enter(l),A(m))}function A(m){return m===i?(e.exit(l),u(i)):m===null?t(m):S(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),L(e,A,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===i||m===null||S(m)?(e.exit("chunkString"),A(m)):(e.consume(m),m===92?s:f)}function s(m){return m===i||m===92?(e.consume(m),f):f(m)}}function ve(e,n){let t;return r;function r(a){return S(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t=!0,r):Z(a)?L(e,r,t?"linePrefix":"lineSuffix")(a):n(a)}}const Tl={name:"definition",tokenize:ar},ir={partial:!0,tokenize:lr};function ar(e,n,t){const r=this;let a;return l;function l(c){return e.enter("definition"),i(c)}function i(c){return yt.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function o(c){return a=se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),c===58?(e.enter("definitionMarker"),e.consume(c),e.exit("definitionMarker"),u):t(c)}function u(c){return E(c)?ve(e,A)(c):A(c)}function A(c){return vt(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(c)}function f(c){return e.attempt(ir,s,s)(c)}function s(c){return Z(c)?L(e,m,"whitespace")(c):m(c)}function m(c){return c===null||S(c)?(e.exit("definition"),r.parser.defined.push(a),n(c)):t(c)}}function lr(e,n,t){return r;function r(o){return E(o)?ve(e,a)(o):t(o)}function a(o){return Pt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return Z(o)?L(e,i,"whitespace")(o):i(o)}function i(o){return o===null||S(o)?n(o):t(o)}}const Yl={name:"hardBreakEscape",tokenize:or};function or(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),a}function a(l){return S(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Rl={name:"headingAtx",resolve:ur,tokenize:sr};function ur(e,n){let t=e.length-2,r=3,a,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},re(e,r,t-r+1,[["enter",a,n],["enter",l,n],["exit",l,n],["exit",a,n]])),e}function sr(e,n,t){let r=0;return a;function a(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),i(f)}function i(f){return f===35&&r++<6?(e.consume(f),i):f===null||E(f)?(e.exit("atxHeadingSequence"),o(f)):t(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||S(f)?(e.exit("atxHeading"),n(f)):Z(f)?L(e,o,"whitespace")(f):(e.enter("atxHeadingText"),A(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),o(f))}function A(f){return f===null||f===35||E(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),A)}}const Ar=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lt=["pre","script","style","textarea"],Bl={concrete:!0,name:"htmlFlow",resolveTo:hr,tokenize:pr},cr={partial:!0,tokenize:gr},fr={partial:!0,tokenize:mr};function hr(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function pr(e,n,t){const r=this;let a,l,i,o,u;return A;function A(p){return f(p)}function f(p){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(p),s}function s(p){return p===33?(e.consume(p),m):p===47?(e.consume(p),l=!0,k):p===63?(e.consume(p),a=3,r.interrupt?n:h):J(p)?(e.consume(p),i=String.fromCharCode(p),v):t(p)}function m(p){return p===45?(e.consume(p),a=2,c):p===91?(e.consume(p),a=5,o=0,g):J(p)?(e.consume(p),a=4,r.interrupt?n:h):t(p)}function c(p){return p===45?(e.consume(p),r.interrupt?n:h):t(p)}function g(p){const te="CDATA[";return p===te.charCodeAt(o++)?(e.consume(p),o===te.length?r.interrupt?n:z:g):t(p)}function k(p){return J(p)?(e.consume(p),i=String.fromCharCode(p),v):t(p)}function v(p){if(p===null||p===47||p===62||E(p)){const te=p===47,j=i.toLowerCase();return!te&&!l&&lt.includes(j)?(a=1,r.interrupt?n(p):z(p)):Ar.includes(i.toLowerCase())?(a=6,te?(e.consume(p),b):r.interrupt?n(p):z(p)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(p):l?y(p):P(p))}return p===45||X(p)?(e.consume(p),i+=String.fromCharCode(p),v):t(p)}function b(p){return p===62?(e.consume(p),r.interrupt?n:z):t(p)}function y(p){return Z(p)?(e.consume(p),y):d(p)}function P(p){return p===47?(e.consume(p),d):p===58||p===95||J(p)?(e.consume(p),I):Z(p)?(e.consume(p),P):d(p)}function I(p){return p===45||p===46||p===58||p===95||X(p)?(e.consume(p),I):F(p)}function F(p){return p===61?(e.consume(p),w):Z(p)?(e.consume(p),F):P(p)}function w(p){return p===null||p===60||p===61||p===62||p===96?t(p):p===34||p===39?(e.consume(p),u=p,O):Z(p)?(e.consume(p),w):H(p)}function O(p){return p===u?(e.consume(p),u=null,_):p===null||S(p)?t(p):(e.consume(p),O)}function H(p){return p===null||p===34||p===39||p===47||p===60||p===61||p===62||p===96||E(p)?F(p):(e.consume(p),H)}function _(p){return p===47||p===62||Z(p)?P(p):t(p)}function d(p){return p===62?(e.consume(p),M):t(p)}function M(p){return p===null||S(p)?z(p):Z(p)?(e.consume(p),M):t(p)}function z(p){return p===45&&a===2?(e.consume(p),ae):p===60&&a===1?(e.consume(p),U):p===62&&a===4?(e.consume(p),R):p===63&&a===3?(e.consume(p),h):p===93&&a===5?(e.consume(p),ce):S(p)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(cr,ue,T)(p)):p===null||S(p)?(e.exit("htmlFlowData"),T(p)):(e.consume(p),z)}function T(p){return e.check(fr,B,ue)(p)}function B(p){return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),q}function q(p){return p===null||S(p)?T(p):(e.enter("htmlFlowData"),z(p))}function ae(p){return p===45?(e.consume(p),h):z(p)}function U(p){return p===47?(e.consume(p),i="",xe):z(p)}function xe(p){if(p===62){const te=i.toLowerCase();return lt.includes(te)?(e.consume(p),R):z(p)}return J(p)&&i.length<8?(e.consume(p),i+=String.fromCharCode(p),xe):z(p)}function ce(p){return p===93?(e.consume(p),h):z(p)}function h(p){return p===62?(e.consume(p),R):p===45&&a===2?(e.consume(p),h):z(p)}function R(p){return p===null||S(p)?(e.exit("htmlFlowData"),ue(p)):(e.consume(p),R)}function ue(p){return e.exit("htmlFlow"),n(p)}}function mr(e,n,t){const r=this;return a;function a(i){return S(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l):t(i)}function l(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}function gr(e,n,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ie,n,t)}}const Ol={name:"htmlText",tokenize:xr};function xr(e,n,t){const r=this;let a,l,i;return o;function o(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),u}function u(h){return h===33?(e.consume(h),A):h===47?(e.consume(h),F):h===63?(e.consume(h),P):J(h)?(e.consume(h),H):t(h)}function A(h){return h===45?(e.consume(h),f):h===91?(e.consume(h),l=0,g):J(h)?(e.consume(h),y):t(h)}function f(h){return h===45?(e.consume(h),c):t(h)}function s(h){return h===null?t(h):h===45?(e.consume(h),m):S(h)?(i=s,U(h)):(e.consume(h),s)}function m(h){return h===45?(e.consume(h),c):s(h)}function c(h){return h===62?ae(h):h===45?m(h):s(h)}function g(h){const R="CDATA[";return h===R.charCodeAt(l++)?(e.consume(h),l===R.length?k:g):t(h)}function k(h){return h===null?t(h):h===93?(e.consume(h),v):S(h)?(i=k,U(h)):(e.consume(h),k)}function v(h){return h===93?(e.consume(h),b):k(h)}function b(h){return h===62?ae(h):h===93?(e.consume(h),b):k(h)}function y(h){return h===null||h===62?ae(h):S(h)?(i=y,U(h)):(e.consume(h),y)}function P(h){return h===null?t(h):h===63?(e.consume(h),I):S(h)?(i=P,U(h)):(e.consume(h),P)}function I(h){return h===62?ae(h):P(h)}function F(h){return J(h)?(e.consume(h),w):t(h)}function w(h){return h===45||X(h)?(e.consume(h),w):O(h)}function O(h){return S(h)?(i=O,U(h)):Z(h)?(e.consume(h),O):ae(h)}function H(h){return h===45||X(h)?(e.consume(h),H):h===47||h===62||E(h)?_(h):t(h)}function _(h){return h===47?(e.consume(h),ae):h===58||h===95||J(h)?(e.consume(h),d):S(h)?(i=_,U(h)):Z(h)?(e.consume(h),_):ae(h)}function d(h){return h===45||h===46||h===58||h===95||X(h)?(e.consume(h),d):M(h)}function M(h){return h===61?(e.consume(h),z):S(h)?(i=M,U(h)):Z(h)?(e.consume(h),M):_(h)}function z(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),a=h,T):S(h)?(i=z,U(h)):Z(h)?(e.consume(h),z):(e.consume(h),B)}function T(h){return h===a?(e.consume(h),a=void 0,q):h===null?t(h):S(h)?(i=T,U(h)):(e.consume(h),T)}function B(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||E(h)?_(h):(e.consume(h),B)}function q(h){return h===47||h===62||E(h)?_(h):t(h)}function ae(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function U(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),xe}function xe(h){return Z(h)?L(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):ce(h)}function ce(h){return e.enter("htmlTextData"),i(h)}}const Ct={name:"labelEnd",resolveAll:wr,resolveTo:vr,tokenize:yr},br={tokenize:Pr},dr={tokenize:Cr},kr={tokenize:Sr};function wr(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",n+=a}}return e.length!==t.length&&re(e,0,e.length,t),e}function vr(e,n){let t=e.length,r=0,a,l,i,o;for(;t--;)if(a=e[t][1],l){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[t][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(i){if(e[t][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(l=t,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(i=t);const u={type:e[l][1].type==="labelLink"?"link":"image",start:C({},e[l][1].start),end:C({},e[e.length-1][1].end)},A={type:"label",start:C({},e[l][1].start),end:C({},e[i][1].end)},f={type:"labelText",start:C({},e[l+r+2][1].end),end:C({},e[i-2][1].start)};return o=[["enter",u,n],["enter",A,n]],o=$(o,e.slice(l+1,l+r+3)),o=$(o,[["enter",f,n]]),o=$(o,Xe(n.parser.constructs.insideSpan.null,e.slice(l+r+4,i-3),n)),o=$(o,[["exit",f,n],e[i-2],e[i-1],["exit",A,n]]),o=$(o,e.slice(i+1)),o=$(o,[["exit",u,n]]),re(e,l,e.length,o),e}function yr(e,n,t){const r=this;let a=r.events.length,l,i;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){l=r.events[a][1];break}return o;function o(m){return l?l._inactive?s(m):(i=r.parser.defined.includes(se(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),u):t(m)}function u(m){return m===40?e.attempt(br,f,i?f:s)(m):m===91?e.attempt(dr,f,i?A:s)(m):i?f(m):s(m)}function A(m){return e.attempt(kr,f,s)(m)}function f(m){return n(m)}function s(m){return l._balanced=!0,t(m)}}function Pr(e,n,t){return r;function r(s){return e.enter("resource"),e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),a}function a(s){return E(s)?ve(e,l)(s):l(s)}function l(s){return s===41?f(s):vt(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(s)}function i(s){return E(s)?ve(e,u)(s):f(s)}function o(s){return t(s)}function u(s){return s===34||s===39||s===40?Pt(e,A,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(s):f(s)}function A(s){return E(s)?ve(e,f)(s):f(s)}function f(s){return s===41?(e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),e.exit("resource"),n):t(s)}}function Cr(e,n,t){const r=this;return a;function a(o){return yt.call(r,e,l,i,"reference","referenceMarker","referenceString")(o)}function l(o){return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function i(o){return t(o)}}function Sr(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),a}function a(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Hl={name:"labelStartImage",resolveAll:Ct.resolveAll,tokenize:zr};function zr(e,n,t){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),i):t(o)}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Ml={name:"labelStartLink",resolveAll:Ct.resolveAll,tokenize:Zr};function Zr(e,n,t){const r=this;return a;function a(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),l}function l(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(i):n(i)}}const Xl={name:"lineEnding",tokenize:jr};function jr(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),L(e,n,"linePrefix")}}const Wr={name:"thematicBreak",tokenize:Lr};function Lr(e,n,t){let r=0,a;return l;function l(A){return e.enter("thematicBreak"),i(A)}function i(A){return a=A,o(A)}function o(A){return A===a?(e.enter("thematicBreakSequence"),u(A)):r>=3&&(A===null||S(A))?(e.exit("thematicBreak"),n(A)):t(A)}function u(A){return A===a?(e.consume(A),r++,u):(e.exit("thematicBreakSequence"),Z(A)?L(e,o,"whitespace")(A):o(A))}}const Ir={continuation:{tokenize:qr},exit:Tr,name:"list",tokenize:Gr},Fr={partial:!0,tokenize:Yr},Dr={partial:!0,tokenize:Er};function Gr(e,n,t){const r=this,a=r.events[r.events.length-1];let l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,i=0;return o;function o(c){const g=r.containerState.type||(c===42||c===43||c===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||c===r.containerState.marker:Be(c)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),c===42||c===45?e.check(Wr,t,A)(c):A(c);if(!r.interrupt||c===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(c)}return t(c)}function u(c){return Be(c)&&++i<10?(e.consume(c),u):(!r.interrupt||i<2)&&(r.containerState.marker?c===r.containerState.marker:c===41||c===46)?(e.exit("listItemValue"),A(c)):t(c)}function A(c){return e.enter("listItemMarker"),e.consume(c),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||c,e.check(Ie,r.interrupt?t:f,e.attempt(Fr,m,s))}function f(c){return r.containerState.initialBlankLine=!0,l++,m(c)}function s(c){return Z(c)?(e.enter("listItemPrefixWhitespace"),e.consume(c),e.exit("listItemPrefixWhitespace"),m):t(c)}function m(c){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(c)}}function qr(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ie,a,l);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,L(e,n,"listItemIndent",r.containerState.size+1)(o)}function l(o){return r.containerState.furtherBlankLines||!Z(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Dr,n,i)(o))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,L(e,e.attempt(Ir,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Er(e,n,t){const r=this;return L(e,a,"listItemIndent",r.containerState.size+1);function a(l){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?n(l):t(l)}}function Tr(e){e.exit(this.containerState.type)}function Yr(e,n,t){const r=this;return L(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(l){const i=r.events[r.events.length-1];return!Z(l)&&i&&i[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const _l={name:"setextUnderline",resolveTo:Rr,tokenize:Br};function Rr(e,n){let t=e.length,r,a,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(a=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const i={type:"setextHeading",start:C({},e[r][1].start),end:C({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",l?(e.splice(a,0,["enter",i,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end=C({},e[l][1].end)):e[r][1]=i,e.push(["exit",i,n]),e}function Br(e,n,t){const r=this;let a;return l;function l(A){let f=r.events.length,s;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){s=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter("setextHeadingLine"),a=A,i(A)):t(A)}function i(A){return e.enter("setextHeadingLineSequence"),o(A)}function o(A){return A===a?(e.consume(A),o):(e.exit("setextHeadingLineSequence"),Z(A)?L(e,u,"lineSuffix")(A):u(A))}function u(A){return A===null||S(A)?(e.exit("setextHeadingLine"),n(A)):t(A)}}const Or=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nl(e){return e.replace(Or,Hr)}function Hr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const a=t.charCodeAt(1),l=a===120||a===88;return jn(t.slice(l?2:1),l?16:10)}return wt(t)||e}const Fe=(function(e){if(e==null)return Nr;if(typeof e=="function")return De(e);if(typeof e=="object")return Array.isArray(e)?Mr(e):Xr(e);if(typeof e=="string")return _r(e);throw new Error("Expected function, string, or object as test")});function Mr(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Fe(e[t]);return De(r);function r(...a){let l=-1;for(;++l<n.length;)if(n[l].apply(this,a))return!0;return!1}}function Xr(e){const n=e;return De(t);function t(r){const a=r;let l;for(l in e)if(a[l]!==n[l])return!1;return!0}}function _r(e){return De(n);function n(t){return t&&t.type===e}}function De(e){return n;function n(t,r,a){return!!(Vr(t)&&e.call(this,t,typeof r=="number"?r:void 0,a||void 0))}}function Nr(){return!0}function Vr(e){return e!==null&&typeof e=="object"&&"type"in e}const St=[],Jr=!0,Oe=!1,Kr="skip";function zt(e,n,t,r){let a;typeof n=="function"&&typeof t!="function"?(r=t,t=n):a=n;const l=Fe(a),i=r?-1:1;o(e,void 0,[])();function o(u,A,f){const s=u&&typeof u=="object"?u:{};if(typeof s.type=="string"){const c=typeof s.tagName=="string"?s.tagName:typeof s.name=="string"?s.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(u.type+(c?"<"+c+">":""))+")"})}return m;function m(){let c=St,g,k,v;if((!n||l(u,A,f[f.length-1]||void 0))&&(c=Ur(t(u,f)),c[0]===Oe))return c;if("children"in u&&u.children){const b=u;if(b.children&&c[0]!==Kr)for(k=(r?b.children.length:-1)+i,v=f.concat(b);k>-1&&k<b.children.length;){const y=b.children[k];if(g=o(y,k,v)(),g[0]===Oe)return g;k=typeof g[1]=="number"?g[1]:k+i}}return c}}}function Ur(e){return Array.isArray(e)?e:typeof e=="number"?[Jr,e]:e==null?St:[e]}function Qr(e,n,t,r){let a,l,i;typeof n=="function"&&typeof t!="function"?(l=void 0,i=n,a=t):(l=n,i=t,a=r),zt(e,l,o,a);function o(u,A){const f=A[A.length-1],s=f?f.children.indexOf(u):void 0;return i(u,s,f)}}const $r="data:image/x-icon;base64,AAABAAMAEBAAAAEAIABoBAAANgAAACAgAAABACAAKBEAAJ4EAAAwMAAAAQAgAGgmAADGFQAAKAAAABAAAAAgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACza1tRuG9e0blzX/27dWD/vXlg/798Yf/Bf2L/woNj/8SGZP/GimX/yI1m/8qQZ/3LlGfPz5lpSwAAAAC2bFxQt25e/blxXv+6dGD/vHhg/757Yf/AfmL/woJj/8OFZP/FiGX/x4xm/8mPZv/Lk2f/zZZo/86Zaf3RnGpItm1d0bhwXv+6c1//vHZg/756Yf+/fWL/wYFj/8OEY//Fh2T/xotl/8iOZv/KkWf/zJVo/86Yaf/QnGr/0Z9ryLdvXv25cl//u3Vg/715YP+/fGH/wX9i/8KDY//EhmT/xopl/8iNZv/KkGf/y5Ro/82Xaf/Pmmr/0Z5q/9OhbPS5cV7/u3Rg/7x4YP/PnYr/7NjQ/+7d1v/s2M7/5cu7/9u0m//Ml3D/y5Nn/82WaP/OmWn/0J1q/9Kga//Uo2v3unNf/7x3YP++emH/79/Z/////////////////////////////fv5/+jPuv/PnG7/0Jxq/9Gfa//Tomz/1aZs97t2YP+9eWD/v3xh/8yXf//Roor/0aCF/+XKuv///////vz7//fv6P//////8+bZ/9Kgbf/ToWv/1aVs/9eobfe8eGD/vnth/8B+Yv/CgmP/xIVk/8WIZf/iw7D//////+fMt//Nl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hmT/xYhl/8aKZf/Hi2X/yI1m/8mPZv/KkGf/y5Jn/8uUaP/MlWj/zZdp/86Zaf/Pmmr/0Jxq/9Geav/Sn2v/06Fr/9OibO+4cF7/uXJe/7pzX/+7dWD/vHZg/714YP++emH/xIZu/9asm//ct6j/3ryt/968rP/ct6T/162X/9GghP/Ij23/x4tl/8iNZv/Ijmb/yZBn/8qRZ//Lk2j/zJVo/82WaP/OmGn/z5pp/9Ccav/RnWr/0Z9r/9Kha//Tomz/1KRs77lxXv+6c1//u3Rf/7t2YP+8eGD/vXlh/8OFbP/38Oz///////////////////////////////////////7+/f/16+X/5869/9arjP/Kkmj/y5Nn/8yUaP/Nlmj/zphp/86Zaf/Pm2r/0J1q/9Gea//SoGv/06Js/9SjbP/UpWzvuXJf/7p0X/+7dmD/vHdg/715YP++e2H/3Lep//////////////////////////////////////////////////////////////////fu6P/fvaH/zZdp/82Xaf/OmWn/z5pq/9Ccav/Rnmr/0p9r/9Oha//Uo2z/1aVs/9Wmbe+6c1//u3Vg/7x2YP+9eGD/vnph/758Yf/kyLz////////////////////////////////////////////////////////////////////////////06N7/1KZ9/8+aaf/QnGr/0Z1q/9Gfa//SoWv/06Js/9SkbP/Vpm3/1aht77t0X/+7dmD/vHhg/715Yf++e2H/v31h/8mSef/my7//4sS1/9+9rP/duqb/3bml/9+9qv/37+r////////////////////////////////////////////79/P/2K2F/9Cdav/Rnmv/0qBr/9OibP/Uo2z/1aVs/9anbf/WqW3vu3Zg/7x3YP+9eWD/vnth/798Yf/AfmL/wX9i/8GBY//Cg2P/w4Vk/8SGZP/FiGX/xopl//nz7//////////////////69fH/69bG//Pn3f///v7////////////69O//1KV2/9Kfa//ToWv/1KNs/9WlbP/Vpm3/1qht/9iqbu+8dmD/vXhg/756Yf++fGH/v31i/8B/Yv/BgWP/woJj/8OEZP/EhmT/xYdk/8aJZf/Hi2X//v38///////////////+/9Smgv/MlWj/zZdp/9iuif/27eX////////////t2cP/0qFr/9OibP/UpGz/1aZt/9anbf/XqW3/2Ktu77x4YP+9eWH/vnth/799Yf/AfmL/wYBi/8KCY//DhGP/xIVk/8WHZP/FiGX/xopl/8eMZv/8+vj////////////8+Pb/zJRo/82WaP/OmGn/zplp/9Kgcf/16uD///////78+//WqXb/1KNs/9WlbP/Wp23/16ht/9iqbv/ZrG7vvXlg/757Yf+/fGH/wH5i/8F/Yv/BgWP/woNj/8OFZP/WrJT/6M/B/8iNav/Hi2X/yI1m//Tp4f////////////79/P/OmW3/zZdp/86Zaf/Pmmr/0Jxq/9mvhP///v7//////+LCnv/VpWz/1qZt/9aobf/Xqm7/2Ktu/9qtb+++emH/vnxh/799Yv/Af2L/wYFj/8KCY//DhGT/ypJ0//37+v//////5Mi2/8iNZv/Ijmb/5cm1/////////////////9u0k//OmGn/z5pp/9Ccav/RnWr/0p9r//jx6P//////6tK2/9Wmbf/Wp23/16lt/9irbv/ZrG7/2q5v7757Yf+/fWL/wH9i/8GAYv/CgmP/w4Rj/8SFZP/So4n////////////+/v3/2K+T/8mPZv/QnXj//fv5////////////8ePW/8+aaf/Pm2r/0J1q/9Gea//SoGv/9+/m///////q1Ln/1qdt/9eobf/Yqm7/2axu/9mub//ar2/vv3xh/8B+Yv/Bf2L/wYFj/8KDY//DhWT/xIZk/8eMav/58/D////////////9+vn/27WZ/8uSZ//iwqr/////////////////48Wo/9Ccav/Rnmr/0p9r/9qwg//+/v3//////+LAl//WqG3/16pu/9irbv/ZrW//2q9v/9uwcO+/fWL/wH9i/8GBY//CgmP/w4Rk/8SGZP/FiGT/xoll/9Wpjf/9+/n///////////////7/7dnL/9Wngv/mzLX///7+///////+/v3/6M+2/9isgP/eupT/+fHq///////059f/1qhu/9epbf/Yq27/2axu/9qub//bsG//27Fw78B/Yv/BgGL/woJj/8OEY//EhWT/xYdk/8WIZf/GimX/x4xm/9Olhf/16+T///////////////////7+//bs5P/27eX/////////////////////////////////8eHO/9irc//XqG3/2Kpu/9msbv/Zrm//2q9v/9uxcP/csnDvwX9i/8GBY//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0/8mRcP/IjWv/xopm/8aKZf/HjGb/yI1m/8iNZv/Jj2b/yZBn/8qRZ//Lkmf/y5No/8yUaP/MlWj/zZdp/86Yaf/OmWn/z5pp/8+bav/QnGr/0Z1q/9Gea//SoGv/06Fr/9OibP/Uo2z/1KRr5LhwXv+5cV7/uXJf/7p0X/+7dF//u3Zg/7x3YP+8eGD/vXlh/757Yf/HjXb/5cq///Xr5//59PH//Pj3//37+v/9+/r//Pr4//v29P/48Oz/9Oji/+/f1v/p08b/48az/9y2nv/TpIX/ypJs/8mPZv/Jj2f/ypFn/8uSZ//Lk2j/zJRo/8yVaP/Nlmj/zZdp/86Zaf/Pmmn/z5tq/9Ccav/RnWr/0Z5q/9Kfa//SoGv/06Fr/9SjbP/UpGz/1KZr5LlxXv+5cl//unRf/7t0X/+7dWD/vHdg/7x4YP+9eGD/vnph/8GAZ//jyL3//v39//////////////////////////////////////////////////////////////7+//36+P/59PD/9Oni/+TJtf/RoH3/ypJo/8uTZ//Lk2j/zJVo/82WaP/Nl2n/zphp/86Zaf/Pmmn/0Jxq/9Cdav/RnWr/0p9r/9Kga//ToWv/06Ns/9SjbP/UpGz/1qZs5LlyXv+6c1//unRf/7t1X/+7dmD/vHdg/714YP+9emH/vnth/8ePeP/48e/////////////////////////////////////////////////////////////////////////////////////////////8+vn/7NfI/9Wphv/Omm//zZZo/82WaP/OmGn/zplp/8+aaf/Qm2r/0Jxq/9Gdav/Rnmv/0qBr/9Kha//Tomz/1KNs/9SkbP/VpW3/1qds5LpzX/+6dF//u3Rf/7t2YP+8d2D/vHhg/715Yf++emH/vnth/9Ghjf///v7///////////////////////////////////////////////////////////////////////////////////////////////////////z49f/q1cP/1qqF/86Yaf/OmGn/z5pp/8+bav/QnGr/0J1q/9Gea//Sn2v/0qBr/9OibP/To2z/1KRs/9WlbP/Vpm3/1qds5LpzX/+6dF//u3Zg/7x2YP+8d2D/vXlh/756Yf++e2H/v31h/9Gijv////7////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v3/+fPu/9++n//Pmmr/z5tq/9Ccav/QnGr/0Z5q/9Gfa//SoGv/06Fr/9OibP/Uo2z/1aVs/9Wmbf/Wpm3/1qhs5Lp0X/+7dWD/u3Zg/7x3YP+9eGD/vXph/757Yf+/fGH/v31i/8WJb//r1sz/9+7q//Xr5v/z5+D/8OLZ/+7d1P/t29D/7tvQ//Df1v/16uT//v38//////////////////////////////////////////////////////////////////36+P/jxqr/0Z5u/9Ccav/Rnmr/0Z5r/9Kfa//ToWv/06Js/9SjbP/UpGz/1aVt/9Wmbf/Wp23/16lu5Lt1X/+7dmD/vHdg/714YP+9eWH/vnph/758Yf+/fWH/v31i/8B/Yv/DhWn/x41y/8WIav/DhWX/w4Rk/8SGZP/EhmT/xYhk/8aJZf/XrZT/+/f1///////////////////////////////////////////////////////////////////////79/P/4sKk/9Gdav/Rnmv/0p9r/9Kha//ToWv/06Ns/9SkbP/VpWz/1aZt/9anbf/WqG3/16pu5Lt2YP+7dmD/vHhg/715YP+9emH/vnth/798Yf+/fWL/wH9i/8F/Yv/BgGL/woJj/8KDY//DhGP/xIZk/8SGZP/Fh2T/xoll/8aKZf/eu6X//fz7////////////////////////////8uTa/9+9ov/hwaj/8ODU//7+/v///////////////////////Pj1/9uzi//Rnmv/0qBr/9Oha//Tomz/1KRs/9WlbP/VpW3/1qdt/9aobf/XqW3/2Kpu5Lt2YP+8d2D/vXhg/715Yf++e2H/v3xh/799Yf/AfmL/wH9i/8GAYv/CgWP/woNj/8OEY//DhWT/xIZk/8SHZP/FiGX/xoll/8aKZf/iwq////7+///////////////////////y5Nn/z5x1/8yUaP/Mlmj/zZdp/9iuif/y5Nf//v37//////////////////Tp3f/VpXT/06Fr/9OibP/Uo2z/1KRs/9WlbP/Wp23/1qdt/9eobf/Xqm7/2Ktu5Lx3YP+8eGD/vXlh/757Yf++e2H/v31h/8B+Yv/Af2L/wYBi/8GBY//CgmP/w4Nj/8OFZP/EhWT/xIZk/8WIZf/GiWX/xopl/8eLZf/iw7D///7+//////////////////7+/v/lybP/zJVp/8yVaP/Nlmj/zZdp/86Zaf/To3f/5862//38+v////////////369//iwZ3/06Js/9SjbP/UpGz/1aVs/9ambf/Wp23/1qht/9eqbv/Yqm7/2axu5Lx4YP+9eGD/vnph/757Yf+/fGH/wH5i/8B+Yv/Af2L/wYFj/8KCY//Cg2P/w4Rk/8SFZP/EhmT/xYhk/8WIZf/GiWX/x4tl/8eMZv/gv6n//v38//////////////////79/P/iw6r/zJVo/82WaP/Nl2n/zphp/86Zaf/Pmmn/0Z9u/+bLsf///v7////////////u2sX/1aZy/9SjbP/UpGz/1aZt/9anbf/Wp23/16lu/9iqbv/Yq27/2axu5L14YP+9emH/vnth/758Yf+/fWL/wH5i/8B/Yv/BgGL/woFj/8KCY//DhGP/w4Vk/8iPb//YsJn/1qyT/8eLaP/GimX/x4xm/8iNZv/btJr//Pn3///////////////////+/v/lybL/zJZp/82WaP/OmGn/zplp/8+aaf/Qm2r/0Jxq/9Wld//z59r////////////27OH/2Kx7/9SkbP/VpW3/1qZt/9anbf/XqW3/16pu/9irbv/ZrG7/2q1v5L15Yf++emH/vnth/799Yv/AfmL/wH9i/8GAYv/BgWP/woJj/8OEY//DhGT/xYhn/+nRxf/+/fz//fz7/9qzm//Hi2X/x4xm/8iOZv/SooH/+fPu///////////////////////s2Mf/z5tv/86Yaf/OmGn/z5pp/8+bav/QnGr/0Z1q/9GfbP/nzLD//v38///////8+fX/27KD/9WlbP/Vpm3/1qdt/9eobf/XqW7/2Kpu/9msbv/ZrW7/2q5v5L56Yf++e2H/v31h/799Yv/AfmL/wYBi/8GBY//CgWP/w4Nj/8OEZP/DhWT/06WM//79/P////////////bt6P/RoH//yI1m/8iOZv/Kkmr/8eHW///////////////////////37uf/06R6/86Yaf/OmWn/z5tq/9Ccav/QnGr/0Z5q/9Kfa//gv5v//Pn2/////////v7/3riM/9Wmbf/Wp23/1qht/9epbf/Xqm7/2Kxu/9msbv/ZrW//2q5v5L57Yf+/fGH/v31i/8B+Yv/Af2L/wYBi/8GBY//Cg2P/w4Rj/8OFZP/EhmT/3bml///////////////////+/v/r1cf/zJZw/8mPZv/JkGf/2bCT//79/P////////////////////7/4cKl/86Zaf/Pmmn/0Jtq/9Ccav/Rnmr/0Z9r/9Kga//gvpn//Pn2////////////3rqO/9ambf/WqG3/16lt/9eqbv/Yq27/2axu/9mtb//arm//2rFv5L58Yf+/fWH/wH5i/8B/Yv/BgGL/wYFj/8KCY//Dg2P/w4Rk/8SGZP/EhmT/06SK///+/v/////////////////9+/r/5827/8yVb//KkWf/y5Np/+zXx////v7/////////////////+vTu/9ishf/Pm2r/0Jxq/9Gdav/Rnmv/0p9r/9KhbP/myqz//v37///////8+fX/3LSE/9anbf/WqG3/16lu/9irbv/YrG7/2a1u/9qub//ar2//27Fw5L98Yf+/fWL/wH9i/8F/Yv/BgGL/woJj/8KDY//DhGP/xIZk/8SGZP/Fh2T/x4to//Dg1////////////////////////vz8/+7cz//Qnnj/y5No/9KifP/06N////////////////////////To3f/Vp3v/0Z1q/9Geav/Rn2v/0qBr/9apd//z59n////////////059f/2a14/9aobf/XqW3/2Kpu/9irbv/ZrG7/2q5v/9qvb//ar2//27Fw5L99Yv/AfmL/wH9i/8GAYv/CgWP/woNj/8OEY//DhWT/xIZk/8SHZP/FiGX/xoll/9Cef//27ej////+///////////////////////27OX/27OW/9CddP/ZsY//9+7n///////////////////+/v/x4tP/2a+E/9Skc//UpHL/2Kt8/+7axf////////////369v/lx6L/1qdu/9eobf/Xqm7/2Ktu/9msbv/ZrW//2q5v/9qvb//bsHD/27Jw5MB+Yv/Af2L/wYBi/8GBY//CgmP/w4Nj/8OFZP/EhmT/xIZk/8WIZf/GiWX/xopl/8iMZ//Wq4//9Ojg/////////////////////////////vz7//Lj1//kyLD/5Mev//Pm2//9+/n/////////////////+fPt//Dfzf/v3cr/+O/n/////////////fr4/+nQsv/Yq3P/1qht/9eqbv/Yqm7/2Kxu/9mtb//arm//2q9v/9uwcP/bsXD/3LNw5MB/Yv/Af2L/wYFj/8KCY//Cg2P/w4Rk/8SFZP/EhmT/xYhk/8WIZf/GiWX/x4tl/8eMZv/Ijmf/zpt3/+fPvf/9+/n////////////////////////////+/fz/+/fz//v38//+/f3////////////////////////////////////////////69O3/4sKa/9epcf/Wp23/16lu/9iqbv/Yq27/2a1u/9mub//arm//27Bv/9uxcP/csnD/3LNw5MB/Yv/BgGL/woFj/8KCY//DhGP/w4Vk/8SGZP/Fh2T/xYhl/8aJZf/GimX/x4xm/8iNZv/Ijmb/yY9m/8qRaP/VqYj/7tzO//nz7v/9+/n////////////////////////////////////////////////////////////+/Pr/+vXv/+/eyf/bsoH/1qdt/9anbf/XqW3/16pu/9irbv/ZrG7/2a1v/9qub//bsG//27Bw/9uxcP/cs3D/3bRw5MGAYv/BgWP/woJj/8OEY//DhGT/xIZk/8WHZP/FiGT/xoll/8aKZf/Hi2X/x4xm/8iOZv/Jjmb/yY9n/8qRZ//Kkmf/y5Rp/9Smgv/gvaL/6dG9//Hh0//27OT/+vXw//36+P/9/Pr//fv5//z39P/48Oj/9ObY/+3Zw//lyan/3LWH/9Wlbf/Vpm3/1qdt/9eobf/XqW7/2Kpu/9msbv/ZrW7/2q5v/9qvb//bsHD/27Fw/9yzcP/ds3D/3bVw5MGBY//CgWP/w4Nj/8OEZP/DhWT/xIdk/8WHZP/FiGX/xopl/8eLZf/HjGb/yI1m/8mOZv/Jj2b/ypFn/8qRZ//Lkmf/zJRo/8yVaP/Nlmn/zpls/9Gfc//UpHn/1ah+/9ergv/ZroP/2K6D/9itgP/Xq3z/1qh3/9Wlcf/UpGz/1aVs/9Wmbf/Wp23/1qht/9epbf/Xqm7/2Kxu/9msbv/ZrW//2q9v/9uwb//bsHD/3LJw/9yzcP/dtHD/37Vw5MGBY//Cg2P/w4Rj/8OFZP/EhmT/xYdk/8WIZf/GiWX/xopl/8eLZf/IjWb/yI5m/8mPZv/JkGf/ypFn/8uSZ//Lk2j/zJVo/8yVaP/Nl2n/zphp/86Z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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",ei=({message:e,type:n="default"})=>{const t=n==="loading",{botData:r}=me();return x.jsxs(W,{position:"relative",width:"full",children:[x.jsx(W,{opacity:"0",bg:"#EDEDED",borderRadius:"20px",padding:"12px",children:x.jsx(V,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})}),x.jsx(W,{h:"42px"}),x.jsx(W,{position:"absolute",left:0,bottom:0,children:x.jsx(ne,{src:(r==null?void 0:r.agent_image)||$r,alt:"Mori",w:"20px",h:"20px",borderRadius:"50%"})}),x.jsx(W,{position:"absolute",left:"18px",bottom:"18px",width:"6.4px",height:"6.4px",bg:"#EDEDED",borderRadius:"100%"}),x.jsx(W,{position:"absolute",left:"23px",bottom:"23px",width:"13px",height:"13px",bg:"#EDEDED",borderRadius:"100%"}),x.jsx(W,{position:"absolute",left:"29px",bottom:"29px",bg:"#EDEDED",borderRadius:"20px",padding:"12px",children:t?x.jsx(V,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",color:"gray.500",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e}):x.jsx(V,{fontWeight:400,fontSize:"12px",lineHeight:"18px",textAlign:"right",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})})]})},ti="data:image/svg+xml,%3csvg%20width='15'%20height='12'%20viewBox='0%200%2015%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.16536%201.81467C7.16536%200.791333%205.9427%200.263999%205.1987%200.965999L1.30003%204.64C1.15132%204.78022%201.03284%204.94936%200.951856%205.13703C0.870874%205.3247%200.829102%205.52694%200.829102%205.73133C0.829102%205.93573%200.870874%206.13797%200.951856%206.32563C1.03284%206.5133%201.15132%206.68244%201.30003%206.82267L5.19736%2010.5C5.94136%2011.202%207.1647%2010.674%207.1647%209.65133V8.33467C7.93731%208.19507%208.73376%208.28024%209.45939%208.58006C10.185%208.87989%2010.8093%209.38175%2011.258%2010.026L11.7927%2010.794C12.5207%2011.84%2014.162%2011.3247%2014.162%2010.0507V9.738C14.162%205.89267%2010.9394%202.87667%207.1647%203.05733L7.16536%201.81467ZM5.8847%201.69333C5.90839%201.67111%205.93807%201.6563%205.97007%201.65072C6.00208%201.64514%206.03501%201.64904%206.06483%201.66193C6.09465%201.67482%206.12005%201.69614%206.13791%201.72328C6.15577%201.75042%206.16531%201.78218%206.16536%201.81467V3.54C6.16536%203.87333%206.45736%204.132%206.78803%204.092C10.1767%203.68%2013.1627%206.32467%2013.1627%209.73867V10.0507C13.1627%2010.3453%2012.7827%2010.4647%2012.614%2010.2227L12.0787%209.45467C11.4785%208.5928%2010.6268%207.93727%209.63996%207.57763C8.65317%207.21799%207.5794%207.17179%206.56536%207.44533C6.45052%207.47639%206.34911%207.54442%206.27681%207.6389C6.2045%207.73337%206.16534%207.84903%206.16536%207.968V9.65067C6.16531%209.68315%206.15577%209.71492%206.13791%209.74205C6.12005%209.76919%206.09465%209.79051%206.06483%209.8034C6.03501%209.81629%206.00208%209.82019%205.97007%209.81461C5.93807%209.80903%205.90839%209.79422%205.8847%209.772L1.9867%206.09533C1.93716%206.04859%201.8977%205.99223%201.87072%205.92969C1.84375%205.86716%201.82984%205.79977%201.82984%205.73167C1.82984%205.66356%201.84375%205.59618%201.87072%205.53364C1.8977%205.4711%201.93716%205.41474%201.9867%205.368L5.8847%201.69333Z'%20fill='%236155F5'%20/%3e%3c/svg%3e",ni="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.56503%203.915C5.11896%202.73832%206.04737%201.77849%207.20497%201.18572C8.36257%200.592947%209.68402%200.400681%2010.9625%200.63901C12.2411%200.877339%2013.4045%201.53281%2014.2708%202.50286C15.137%203.4729%2015.6573%204.70277%2015.75%206C15.8332%207.19515%2015.548%208.38706%2014.9329%209.41516C14.3178%2010.4433%2013.4024%2011.2581%2012.31%2011.75C11.9379%2012.672%2011.3425%2013.4871%2010.5774%2014.122C9.81221%2014.7569%208.90126%2015.1917%207.92642%2015.3873C6.95158%2015.5829%205.94341%2015.5332%204.99255%2015.2426C4.04169%2014.952%203.17794%2014.4297%202.47896%2013.7226C1.77998%2013.0155%201.26768%2012.1458%200.988107%2011.1916C0.708538%2010.2375%200.670468%209.2288%200.877321%208.25629C1.08417%207.28377%201.52946%206.37791%202.17316%205.62013C2.81685%204.86235%203.63877%204.27641%204.56503%203.915ZM9.90503%201.5H9.60503C8.52019%201.56681%207.48862%201.99351%206.67357%202.71256C5.85852%203.43161%205.30656%204.40195%205.10503%205.47L10.675%201.565C10.4205%201.52309%2010.163%201.50136%209.90503%201.5ZM11.905%201.93L5.33003%206.555L5.06003%206.745C5.11592%207.4665%205.33108%208.16663%205.69003%208.79499L13.565%203.155C13.1023%202.63199%2012.5329%202.21427%2011.895%201.93H11.905ZM14.145%203.97L6.25003%209.60999C6.70986%2010.1331%207.27572%2010.5524%207.91003%2010.84L14.75%205.82C14.6759%205.16869%2014.47%204.53927%2014.145%203.97ZM14.75%207.065L9.10503%2011.2C9.4681%2011.2629%209.83728%2011.283%2010.205%2011.26C11.33%2011.1916%2012.3968%2010.7368%2013.225%209.97234C14.0532%209.20793%2014.5919%208.1809%2014.75%207.065ZM6.75003%2014.5C7.59348%2014.4958%208.42238%2014.2798%209.16061%2013.8718C9.89883%2013.4638%2010.5227%2012.8769%2010.975%2012.165C10.7406%2012.2117%2010.5035%2012.2434%2010.265%2012.26H9.90003C8.40699%2012.257%206.97069%2011.6876%205.88117%2010.6668C4.79165%209.64592%204.13007%208.24969%204.03003%206.76C4.00121%206.25734%204.03819%205.75307%204.14003%205.26C3.22219%205.83357%202.51524%206.68948%202.12538%207.69915C1.73553%208.70883%201.68382%209.81774%201.97803%2010.8593C2.27224%2011.9009%202.89648%2012.8189%203.75697%2013.4754C4.61746%2014.1318%205.66774%2014.4914%206.75003%2014.5Z'%20fill='%236155F5'%20/%3e%3c/svg%3e",ri=e=>{const n="dori",t="dori_pdp_widget",r="dori_product_recommendation",a=e.includes("?")?"&":"?";return`${e}${a}utm_source=${n}&utm_medium=${t}&utm_campaign=${r}`},Vl=(e,n)=>{const t="customer_referral",r="widget",a="powered_by",l=e.includes("?")?"&":"?";return`${e}${l}utm_source=${t}&utm_medium=${r}&utm_campaign=${a}&utm_term=${n}`},ii=({product:e})=>{var s;const{sendMessage:n,setRepliedProduct:t,botData:r,chatState:a}=me(),{name:l,id:i,url:o}=e,u=()=>{const m=`Do you have similar to ${l}`,c=`Do you have similar to ${i}`;n({message:m,apiMessage:c})},A=()=>{t({product:e,suggestions:["Does this product have a discount?","What features make this product special?","Does it come in other colors?"]})},f=()=>le(null,null,function*(){if(!o||!r)return;const m=ri(o);window.open(m,"_blank","noopener,noreferrer"),vn(e,r,a.threadId)});return x.jsxs(Q,{align:"stretch",gap:1,w:"full",children:[x.jsx(W,{bg:"white",borderRadius:"14px",border:"1px solid #F0EEFE",p:1.5,w:"full",children:x.jsxs(ee,{gap:1.5,align:"stretch",w:"full",children:[x.jsx(W,{flexShrink:0,cursor:"pointer",onClick:f,_hover:{opacity:.9},transition:"opacity 0.2s",children:x.jsx(ne,{src:e.image,alt:e.name,w:"60px",h:"60px",objectFit:"contain",borderRadius:"md"})}),x.jsxs(Q,{gap:.5,align:"start",justifyContent:"center",children:[x.jsx(V,{fontWeight:600,fontSize:"10px",lineHeight:"20px",textAlign:"start",color:"#1A1A1A",maxW:"100%",title:e.name,cursor:"pointer",onClick:f,_hover:{color:"#6155F5"},transition:"color 0.2s",children:e.name}),x.jsxs(ee,{gap:.75,align:"center",children:[e.discount&&x.jsxs(x.Fragment,{children:[x.jsx(V,{fontSize:"xs",color:"gray.400",textDecoration:"line-through",children:(s=e.originalPrice)==null?void 0:s.toLocaleString()}),x.jsxs(nn,{bg:"rgba(255, 56, 60, 0.14)",color:"#FF383C",fontSize:"xs",borderRadius:"20px",children:[e.discount,"٪"]})]}),x.jsxs(V,{fontSize:"10px",fontWeight:"700",color:"black",children:[e.price.toLocaleString()," USD"]})]})]})]})},e.id),x.jsxs(ee,{gap:.5,w:"full",children:[x.jsx(ye,{variant:"outline",size:"xs",fontSize:"10px",lineHeight:"0px",textAlign:"right",color:"#6155F5",borderColor:"#F0EEFE",borderRadius:"3px",borderWidth:"2px",onClick:A,"aria-label":"Reply",children:x.jsx(ne,{src:ti,alt:"reply"})}),x.jsxs(Pe,{variant:"outline",size:"xs",fontSize:"10px",lineHeight:"4px",textAlign:"right",color:"#6155F5",borderRadius:"3px",flex:1,fontWeight:400,onClick:u,bgColor:"#F0EEFE",children:[x.jsx(ne,{width:4,height:4,src:ni,alt:"suggestion"}),"Similar Suggestion"]})]})]})},ot=({products:e})=>x.jsx(Q,{align:"stretch",gap:1.5,w:"full",children:x.jsx(W,{px:.75,w:"full",children:x.jsx(rn,{dir:"ltr",columns:{base:1,md:2},gapX:{base:.75,md:1.5},gapY:{base:1.5,md:3},w:"full",children:e.map(n=>x.jsx(ii,{product:n},n.id))})})}),ai=({suggestions:e})=>{const{sendMessage:n}=me(),t=r=>{n({message:r})};return x.jsx(ee,{gap:1.5,wrap:"wrap",children:e.slice(0,3).map((r,a)=>x.jsx(Pe,{bg:a%2===0?"white":"#F5F5F5",border:"1px solid #EDEDED",borderRadius:"20px",px:3,py:1.5,h:"auto",onClick:()=>t(r),_hover:{bg:"#F5F5F5",borderColor:"#6155F5"},_active:{bg:"#F0F0F0"},textAlign:"center",justifyContent:"center",children:x.jsx(V,{fontSize:"10px",fontWeight:"400",color:"#1A1A1A",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",children:r})},a))})};function ut(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,a=t.indexOf(n);for(;a!==-1;)r++,a=t.indexOf(n,a+n.length);return r}function li(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oi(e,n,t){const a=Fe((t||{}).ignore||[]),l=ui(n);let i=-1;for(;++i<l.length;)zt(e,"text",o);function o(A,f){let s=-1,m;for(;++s<f.length;){const c=f[s],g=m?m.children:void 0;if(a(c,g?g.indexOf(c):void 0,m))return;m=c}if(m)return u(A,f)}function u(A,f){const s=f[f.length-1],m=l[i][0],c=l[i][1];let g=0;const v=s.children.indexOf(A);let b=!1,y=[];m.lastIndex=0;let P=m.exec(A.value);for(;P;){const I=P.index,F={index:P.index,input:P.input,stack:[...f,A]};let w=c(...P,F);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?m.lastIndex=I+1:(g!==I&&y.push({type:"text",value:A.value.slice(g,I)}),Array.isArray(w)?y.push(...w):w&&y.push(w),g=I+P[0].length,b=!0),!m.global)break;P=m.exec(A.value)}return b?(g<A.value.length&&y.push({type:"text",value:A.value.slice(g)}),s.children.splice(v,1,...y)):y=[A],v+y.length}}function ui(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const a=t[r];n.push([si(a[0]),Ai(a[1])])}return n}function si(e){return typeof e=="string"?new RegExp(li(e),"g"):e}function Ai(e){return typeof e=="function"?e:function(){return e}}const Ee="phrasing",Te=["autolink","link","image","label"];function ci(){return{transforms:[bi],enter:{literalAutolink:hi,literalAutolinkEmail:Ye,literalAutolinkHttp:Ye,literalAutolinkWww:Ye},exit:{literalAutolink:xi,literalAutolinkEmail:gi,literalAutolinkHttp:pi,literalAutolinkWww:mi}}}function fi(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ee,notInConstruct:Te},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ee,notInConstruct:Te},{character:":",before:"[ps]",after:"\\/",inConstruct:Ee,notInConstruct:Te}]}}function hi(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ye(e){this.config.enter.autolinkProtocol.call(this,e)}function pi(e){this.config.exit.autolinkProtocol.call(this,e)}function mi(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.url="http://"+this.sliceSerialize(e)}function gi(e){this.config.exit.autolinkEmail.call(this,e)}function xi(e){this.exit(e)}function bi(e){oi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,di],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ki]],{ignore:["link","linkReference"]})}function di(e,n,t,r,a){let l="";if(!Zt(a)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!wi(t)))return!1;const i=vi(t+r);if(!i[0])return!1;const o={type:"link",title:null,url:l+n+i[0],children:[{type:"text",value:n+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function ki(e,n,t,r){return!Zt(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function wi(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function vi(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const a=ut(e,"(");let l=ut(e,")");for(;r!==-1&&a>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function Zt(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||ge(t)||Le(t))&&(!n||t!==47)}jt.peek=Li;function yi(){this.buffer()}function Pi(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ci(){this.buffer()}function Si(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zi(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.identifier=se(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Zi(e){this.exit(e)}function ji(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.identifier=se(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Wi(e){this.exit(e)}function Li(){return"["}function jt(e,n,t,r){const a=t.createTracker(r);let l=a.move("[^");const i=t.enter("footnoteReference"),o=t.enter("reference");return l+=a.move(t.safe(t.associationId(e),{after:"]",before:l})),o(),i(),l+=a.move("]"),l}function Ii(){return{enter:{gfmFootnoteCallString:yi,gfmFootnoteCall:Pi,gfmFootnoteDefinitionLabelString:Ci,gfmFootnoteDefinition:Si},exit:{gfmFootnoteCallString:zi,gfmFootnoteCall:Zi,gfmFootnoteDefinitionLabelString:ji,gfmFootnoteDefinition:Wi}}}function Fi(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:jt},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,a,l,i){const o=l.createTracker(i);let u=o.move("[^");const A=l.enter("footnoteDefinition"),f=l.enter("label");return u+=o.move(l.safe(l.associationId(r),{before:u,after:"]"})),f(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((n?`
2
2
  `:" ")+l.indentLines(l.containerFlow(r,o.current()),n?Wt:Di))),A(),u}}function Di(e,n,t){return n===0?e:Wt(e,n,t)}function Wt(e,n,t){return(t?"":" ")+e}const Gi=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Lt.peek=Ri;function qi(){return{canContainEols:["delete"],enter:{strikethrough:Ti},exit:{strikethrough:Yi}}}function Ei(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Gi}],handlers:{delete:Lt}}}function Ti(e){this.enter({type:"delete",children:[]},e)}function Yi(e){this.exit(e)}function Lt(e,n,t,r){const a=t.createTracker(r),l=t.enter("strikethrough");let i=a.move("~~");return i+=t.containerPhrasing(e,N(C({},a.current()),{before:i,after:"~"})),i+=a.move("~~"),l(),i}function Ri(){return"~"}function Bi(e){return e.length}function Oi(e,n){const t=n||{},r=(t.align||[]).concat(),a=t.stringLength||Bi,l=[],i=[],o=[],u=[];let A=0,f=-1;for(;++f<e.length;){const k=[],v=[];let b=-1;for(e[f].length>A&&(A=e[f].length);++b<e[f].length;){const y=Hi(e[f][b]);if(t.alignDelimiters!==!1){const P=a(y);v[b]=P,(u[b]===void 0||P>u[b])&&(u[b]=P)}k.push(y)}i[f]=k,o[f]=v}let s=-1;if(typeof r=="object"&&"length"in r)for(;++s<A;)l[s]=st(r[s]);else{const k=st(r);for(;++s<A;)l[s]=k}s=-1;const m=[],c=[];for(;++s<A;){const k=l[s];let v="",b="";k===99?(v=":",b=":"):k===108?v=":":k===114&&(b=":");let y=t.alignDelimiters===!1?1:Math.max(1,u[s]-v.length-b.length);const P=v+"-".repeat(y)+b;t.alignDelimiters!==!1&&(y=v.length+y+b.length,y>u[s]&&(u[s]=y),c[s]=y),m[s]=P}i.splice(1,0,m),o.splice(1,0,c),f=-1;const g=[];for(;++f<i.length;){const k=i[f],v=o[f];s=-1;const b=[];for(;++s<A;){const y=k[s]||"";let P="",I="";if(t.alignDelimiters!==!1){const F=u[s]-(v[s]||0),w=l[s];w===114?P=" ".repeat(F):w===99?F%2?(P=" ".repeat(F/2+.5),I=" ".repeat(F/2-.5)):(P=" ".repeat(F/2),I=P):I=" ".repeat(F)}t.delimiterStart!==!1&&!s&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&y==="")&&(t.delimiterStart!==!1||s)&&b.push(" "),t.alignDelimiters!==!1&&b.push(P),b.push(y),t.alignDelimiters!==!1&&b.push(I),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||s!==A-1)&&b.push("|")}g.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return g.join(`
3
3
  `)}function Hi(e){return e==null?"":String(e)}function st(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Mi(e,n,t,r){const a=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);const i=t.indentLines(t.containerFlow(e,l.current()),Xi);return a(),i}function Xi(e,n,t){return">"+(t?"":" ")+e}function _i(e,n){return At(e,n.inConstruct,!0)&&!At(e,n.notInConstruct,!1)}function At(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function ct(e,n,t,r){let a=-1;for(;++a<t.unsafe.length;)if(t.unsafe[a].character===`
4
4
  `&&_i(t.stack,t.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
@@ -14,4 +14,4 @@ var Ut=Object.defineProperty,Qt=Object.defineProperties;var $t=Object.getOwnProp
14
14
  `},l.current()));return/^[\t ]/.test(A)&&(A=Se(A.charCodeAt(0))+A.slice(1)),A=A?i+" "+A:i,t.options.closeAtx&&(A+=" "+i),u(),o(),A}Ft.peek=ra;function Ft(e){return e.value||""}function ra(){return"<"}Dt.peek=ia;function Dt(e,n,t,r){const a=_e(t),l=a==='"'?"Quote":"Apostrophe",i=t.enter("image");let o=t.enter("label");const u=t.createTracker(r);let A=u.move("![");return A+=u.move(t.safe(e.alt,C({before:A,after:"]"},u.current()))),A+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),A+=u.move("<"),A+=u.move(t.safe(e.url,C({before:A,after:">"},u.current()))),A+=u.move(">")):(o=t.enter("destinationRaw"),A+=u.move(t.safe(e.url,C({before:A,after:e.title?" ":")"},u.current())))),o(),e.title&&(o=t.enter(`title${l}`),A+=u.move(" "+a),A+=u.move(t.safe(e.title,C({before:A,after:a},u.current()))),A+=u.move(a),o()),A+=u.move(")"),i(),A}function ia(){return"!"}Gt.peek=aa;function Gt(e,n,t,r){const a=e.referenceType,l=t.enter("imageReference");let i=t.enter("label");const o=t.createTracker(r);let u=o.move("![");const A=t.safe(e.alt,C({before:u,after:"]"},o.current()));u+=o.move(A+"]["),i();const f=t.stack;t.stack=[],i=t.enter("reference");const s=t.safe(t.associationId(e),C({before:u,after:"]"},o.current()));return i(),t.stack=f,l(),a==="full"||!A||A!==s?u+=o.move(s+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function aa(){return"!"}qt.peek=la;function qt(e,n,t){let r=e.value||"",a="`",l=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<t.unsafe.length;){const i=t.unsafe[l],o=t.compilePattern(i);let u;if(i.atBreak)for(;u=o.exec(r);){let A=u.index;r.charCodeAt(A)===10&&r.charCodeAt(A-1)===13&&A--,r=r.slice(0,A)+" "+r.slice(u.index+1)}}return a+r+a}function la(){return"`"}function Et(e,n){const t=dt(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Tt.peek=oa;function Tt(e,n,t,r){const a=_e(t),l=a==='"'?"Quote":"Apostrophe",i=t.createTracker(r);let o,u;if(Et(e,t)){const f=t.stack;t.stack=[],o=t.enter("autolink");let s=i.move("<");return s+=i.move(t.containerPhrasing(e,C({before:s,after:">"},i.current()))),s+=i.move(">"),o(),t.stack=f,s}o=t.enter("link"),u=t.enter("label");let A=i.move("[");return A+=i.move(t.containerPhrasing(e,C({before:A,after:"]("},i.current()))),A+=i.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),A+=i.move("<"),A+=i.move(t.safe(e.url,C({before:A,after:">"},i.current()))),A+=i.move(">")):(u=t.enter("destinationRaw"),A+=i.move(t.safe(e.url,C({before:A,after:e.title?" ":")"},i.current())))),u(),e.title&&(u=t.enter(`title${l}`),A+=i.move(" "+a),A+=i.move(t.safe(e.title,C({before:A,after:a},i.current()))),A+=i.move(a),u()),A+=i.move(")"),o(),A}function oa(e,n,t){return Et(e,t)?"<":"["}Yt.peek=ua;function Yt(e,n,t,r){const a=e.referenceType,l=t.enter("linkReference");let i=t.enter("label");const o=t.createTracker(r);let u=o.move("[");const A=t.containerPhrasing(e,C({before:u,after:"]"},o.current()));u+=o.move(A+"]["),i();const f=t.stack;t.stack=[],i=t.enter("reference");const s=t.safe(t.associationId(e),C({before:u,after:"]"},o.current()));return i(),t.stack=f,l(),a==="full"||!A||A!==s?u+=o.move(s+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function ua(){return"["}function Ne(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function sa(e){const n=Ne(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Aa(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Rt(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function ca(e,n,t,r){const a=t.enter("list"),l=t.bulletCurrent;let i=e.ordered?Aa(t):Ne(t);const o=e.ordered?i==="."?")":".":sa(t);let u=n&&t.bulletLastUsed?i===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),Rt(t)===i&&f){let s=-1;for(;++s<e.children.length;){const m=e.children[s];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(i=o),t.bulletCurrent=i;const A=t.containerFlow(e,r);return t.bulletLastUsed=i,t.bulletCurrent=l,a(),A}function fa(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function ha(e,n,t,r){const a=fa(t);let l=t.bulletCurrent||Ne(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let i=l.length+1;(a==="tab"||a==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(i=Math.ceil(i/4)*4);const o=t.createTracker(r);o.move(l+" ".repeat(i-l.length)),o.shift(i);const u=t.enter("listItem"),A=t.indentLines(t.containerFlow(e,o.current()),f);return u(),A;function f(s,m,c){return m?(c?"":" ".repeat(i))+s:(c?l:l+" ".repeat(i-l.length))+s}}function pa(e,n,t,r){const a=t.enter("paragraph"),l=t.enter("phrasing"),i=t.containerPhrasing(e,r);return l(),a(),i}const ma=Fe(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ga(e,n,t,r){return(e.children.some(function(i){return ma(i)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function xa(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Bt.peek=ba;function Bt(e,n,t,r){const a=xa(t),l=t.enter("strong"),i=t.createTracker(r),o=i.move(a+a);let u=i.move(t.containerPhrasing(e,C({after:a,before:o},i.current())));const A=u.charCodeAt(0),f=We(r.before.charCodeAt(r.before.length-1),A,a);f.inside&&(u=Se(A)+u.slice(1));const s=u.charCodeAt(u.length-1),m=We(r.after.charCodeAt(0),s,a);m.inside&&(u=u.slice(0,-1)+Se(s));const c=i.move(a+a);return l(),t.attentionEncodeSurroundingInfo={after:m.outside,before:f.outside},o+u+c}function ba(e,n,t){return t.options.strong||"*"}function da(e,n,t,r){return t.safe(e.value,r)}function ka(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function wa(e,n,t){const r=(Rt(t)+(t.options.ruleSpaces?" ":"")).repeat(ka(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Ot={blockquote:Mi,break:ct,code:Ki,definition:Qi,emphasis:It,hardBreak:ct,heading:na,html:Ft,image:Dt,imageReference:Gt,inlineCode:qt,link:Tt,linkReference:Yt,list:ca,listItem:ha,paragraph:pa,root:ga,strong:Bt,text:da,thematicBreak:wa};function va(){return{enter:{table:ya,tableData:ft,tableHeader:ft,tableRow:Ca},exit:{codeText:Sa,table:Pa,tableData:Re,tableHeader:Re,tableRow:Re}}}function ya(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Pa(e){this.exit(e),this.data.inTable=void 0}function Ca(e){this.enter({type:"tableRow",children:[]},e)}function Re(e){this.exit(e)}function ft(e){this.enter({type:"tableCell",children:[]},e)}function Sa(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,za));const t=this.stack[this.stack.length-1];t.value=n,this.exit(e)}function za(e,n){return n==="|"?n:e}function Za(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,a=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
15
15
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:i,tableCell:u,tableRow:o}};function i(c,g,k,v){return A(f(c,k,v),c.align)}function o(c,g,k,v){const b=s(c,k,v),y=A([b]);return y.slice(0,y.indexOf(`
16
16
  `))}function u(c,g,k,v){const b=k.enter("tableCell"),y=k.enter("phrasing"),P=k.containerPhrasing(c,N(C({},v),{before:l,after:l}));return y(),b(),P}function A(c,g){return Oi(c,{align:g,alignDelimiters:r,padding:t,stringLength:a})}function f(c,g,k){const v=c.children;let b=-1;const y=[],P=g.enter("table");for(;++b<v.length;)y[b]=s(v[b],g,k);return P(),y}function s(c,g,k){const v=c.children;let b=-1;const y=[],P=g.enter("tableRow");for(;++b<v.length;)y[b]=u(v[b],c,g,k);return P(),y}function m(c,g,k){let v=Ot.inlineCode(c,g,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function ja(){return{exit:{taskListCheckValueChecked:ht,taskListCheckValueUnchecked:ht,paragraph:La}}}function Wa(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ia}}}function ht(e){const n=this.stack[this.stack.length-2];n.checked=e.type==="taskListCheckValueChecked"}function La(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1],r=t.children[0];if(r&&r.type==="text"){const a=n.children;let l=-1,i;for(;++l<a.length;){const o=a[l];if(o.type==="paragraph"){i=o;break}}i===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Ia(e,n,t,r){const a=e.children[0],l=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",o=t.createTracker(r);l&&o.move(i);let u=Ot.listItem(e,n,t,C(C({},r),o.current()));return l&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,A)),u;function A(f){return f+i}}function Fa(){return[ci(),Ii(),qi(),va(),ja()]}function Da(e){return{extensions:[fi(),Fi(e),Ei(),Za(e),Wa()]}}const Ga={tokenize:Ba,partial:!0},Ht={tokenize:Oa,partial:!0},Mt={tokenize:Ha,partial:!0},Xt={tokenize:Ma,partial:!0},qa={tokenize:Xa,partial:!0},_t={name:"wwwAutolink",tokenize:Ya,previous:Vt},Nt={name:"protocolAutolink",tokenize:Ra,previous:Jt},oe={name:"emailAutolink",tokenize:Ta,previous:Kt},ie={};function Ea(){return{text:ie}}let pe=48;for(;pe<123;)ie[pe]=oe,pe++,pe===58?pe=65:pe===91&&(pe=97);ie[43]=oe;ie[45]=oe;ie[46]=oe;ie[95]=oe;ie[72]=[oe,Nt];ie[104]=[oe,Nt];ie[87]=[oe,_t];ie[119]=[oe,_t];function Ta(e,n,t){const r=this;let a,l;return i;function i(s){return!He(s)||!Kt.call(r,r.previous)||Ve(r.events)?t(s):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(s))}function o(s){return He(s)?(e.consume(s),o):s===64?(e.consume(s),u):t(s)}function u(s){return s===46?e.check(qa,f,A)(s):s===45||s===95||X(s)?(l=!0,e.consume(s),u):f(s)}function A(s){return e.consume(s),a=!0,u}function f(s){return l&&a&&J(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(s)):t(s)}}function Ya(e,n,t){const r=this;return a;function a(i){return i!==87&&i!==119||!Vt.call(r,r.previous)||Ve(r.events)?t(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ga,e.attempt(Ht,e.attempt(Mt,l),t),t)(i))}function l(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(i)}}function Ra(e,n,t){const r=this;let a="",l=!1;return i;function i(s){return(s===72||s===104)&&Jt.call(r,r.previous)&&!Ve(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(s),e.consume(s),o):t(s)}function o(s){if(J(s)&&a.length<5)return a+=String.fromCodePoint(s),e.consume(s),o;if(s===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(s),u}return t(s)}function u(s){return s===47?(e.consume(s),l?A:(l=!0,u)):t(s)}function A(s){return s===null||je(s)||E(s)||ge(s)||Le(s)?t(s):e.attempt(Ht,e.attempt(Mt,f),t)(s)}function f(s){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(s)}}function Ba(e,n,t){let r=0;return a;function a(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),a):i===46&&r===3?(e.consume(i),l):t(i)}function l(i){return i===null?t(i):n(i)}}function Oa(e,n,t){let r,a,l;return i;function i(A){return A===46||A===95?e.check(Xt,u,o)(A):A===null||E(A)||ge(A)||A!==45&&Le(A)?u(A):(l=!0,e.consume(A),i)}function o(A){return A===95?r=!0:(a=r,r=void 0),e.consume(A),i}function u(A){return a||r||!l?t(A):n(A)}}function Ha(e,n){let t=0,r=0;return a;function a(i){return i===40?(t++,e.consume(i),a):i===41&&r<t?l(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(Xt,n,l)(i):i===null||E(i)||ge(i)?n(i):(e.consume(i),a)}function l(i){return i===41&&r++,e.consume(i),a}}function Ma(e,n,t){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),l):o===93?(e.consume(o),a):o===60||o===null||E(o)||ge(o)?n(o):t(o)}function a(o){return o===null||o===40||o===91||E(o)||ge(o)?n(o):r(o)}function l(o){return J(o)?i(o):t(o)}function i(o){return o===59?(e.consume(o),r):J(o)?(e.consume(o),i):t(o)}}function Xa(e,n,t){return r;function r(l){return e.consume(l),a}function a(l){return X(l)?t(l):n(l)}}function Vt(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||E(e)}function Jt(e){return!J(e)}function Kt(e){return!(e===47||He(e))}function He(e){return e===43||e===45||e===46||e===95||X(e)}function Ve(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const _a={tokenize:el,partial:!0};function Na(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ua,continuation:{tokenize:Qa},exit:$a}},text:{91:{name:"gfmFootnoteCall",tokenize:Ka},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Va,resolveTo:Ja}}}}function Va(e,n,t){const r=this;let a=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const u=r.events[a][1];if(u.type==="labelImage"){i=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!i||!i._balanced)return t(u);const A=se(r.sliceSerialize({start:i.end,end:r.now()}));return A.codePointAt(0)!==94||!l.includes(A.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function Ja(e,n){let t=e.length;for(;t--&&!(e[t][1].type==="labelImage"&&e[t][0]==="enter"););e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},o=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",a,n],["exit",a,n],["enter",l,n],["enter",i,n],["exit",i,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...o),e}function Ka(e,n,t){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,i;return o;function o(s){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),u}function u(s){return s!==94?t(s):(e.enter("gfmFootnoteCallMarker"),e.consume(s),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",A)}function A(s){if(l>999||s===93&&!i||s===null||s===91||E(s))return t(s);if(s===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(se(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(s)}return E(s)||(i=!0),l++,e.consume(s),s===92?f:A}function f(s){return s===91||s===92||s===93?(e.consume(s),l++,A):A(s)}}function Ua(e,n,t){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,i=0,o;return u;function u(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),A}function A(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(i>999||g===93&&!o||g===null||g===91||E(g))return t(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return l=se(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return E(g)||(o=!0),i++,e.consume(g),g===92?s:f}function s(g){return g===91||g===92||g===93?(e.consume(g),i++,f):f(g)}function m(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(l)||a.push(l),L(e,c,"gfmFootnoteDefinitionWhitespace")):t(g)}function c(g){return n(g)}}function Qa(e,n,t){return e.check(Ie,n,e.attempt(_a,n,t))}function $a(e){e.exit("gfmFootnoteDefinition")}function el(e,n,t){const r=this;return L(e,a,"gfmFootnoteDefinitionIndent",5);function a(l){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?n(l):t(l)}}function tl(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:a};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(i,o){let u=-1;for(;++u<i.length;)if(i[u][0]==="enter"&&i[u][1].type==="strikethroughSequenceTemporary"&&i[u][1]._close){let A=u;for(;A--;)if(i[A][0]==="exit"&&i[A][1].type==="strikethroughSequenceTemporary"&&i[A][1]._open&&i[u][1].end.offset-i[u][1].start.offset===i[A][1].end.offset-i[A][1].start.offset){i[u][1].type="strikethroughSequence",i[A][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},i[A][1].start),end:Object.assign({},i[u][1].end)},s={type:"strikethroughText",start:Object.assign({},i[A][1].end),end:Object.assign({},i[u][1].start)},m=[["enter",f,o],["enter",i[A][1],o],["exit",i[A][1],o],["enter",s,o]],c=o.parser.constructs.insideSpan.null;c&&re(m,m.length,0,Xe(c,i.slice(A+1,u),o)),re(m,m.length,0,[["exit",s,o],["enter",i[u][1],o],["exit",i[u][1],o],["exit",f,o]]),re(i,A-1,u-A+3,m),u=A+m.length-2;break}}for(u=-1;++u<i.length;)i[u][1].type==="strikethroughSequenceTemporary"&&(i[u][1].type="data");return i}function l(i,o,u){const A=this.previous,f=this.events;let s=0;return m;function m(g){return A===126&&f[f.length-1][1].type!=="characterEscape"?u(g):(i.enter("strikethroughSequenceTemporary"),c(g))}function c(g){const k=de(A);if(g===126)return s>1?u(g):(i.consume(g),s++,c);if(s<2&&!t)return u(g);const v=i.exit("strikethroughSequenceTemporary"),b=de(g);return v._open=!b||b===2&&!!k,v._close=!k||k===2&&!!b,o(g)}}}class nl{constructor(){this.map=[]}add(n,t,r){rl(this,n,t,r)}consume(n){if(this.map.sort(function(l,i){return l[0]-i[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let a=r.pop();for(;a;){for(const l of a)n.push(l);a=r.pop()}this.map.length=0}}function rl(e,n,t,r){let a=0;if(!(t===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===n){e.map[a][1]+=t,e.map[a][2].push(...r);return}a+=1}e.map.push([n,t,r])}}function il(e,n){let t=!1;const r=[];for(;n<e.length;){const a=e[n];if(t){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function al(){return{flow:{null:{name:"table",tokenize:ll,resolveAll:ol}}}}function ll(e,n,t){const r=this;let a=0,l=0,i;return o;function o(d){let M=r.events.length-1;for(;M>-1;){const B=r.events[M][1].type;if(B==="lineEnding"||B==="linePrefix")M--;else break}const z=M>-1?r.events[M][1].type:null,T=z==="tableHead"||z==="tableRow"?w:u;return T===w&&r.parser.lazy[r.now().line]?t(d):T(d)}function u(d){return e.enter("tableHead"),e.enter("tableRow"),A(d)}function A(d){return d===124||(i=!0,l+=1),f(d)}function f(d){return d===null?t(d):S(d)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):t(d):Z(d)?L(e,f,"whitespace")(d):(l+=1,i&&(i=!1,a+=1),d===124?(e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),i=!0,f):(e.enter("data"),s(d)))}function s(d){return d===null||d===124||E(d)?(e.exit("data"),f(d)):(e.consume(d),d===92?m:s)}function m(d){return d===92||d===124?(e.consume(d),s):s(d)}function c(d){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(d):(e.enter("tableDelimiterRow"),i=!1,Z(d)?L(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):g(d))}function g(d){return d===45||d===58?v(d):d===124?(i=!0,e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),k):F(d)}function k(d){return Z(d)?L(e,v,"whitespace")(d):v(d)}function v(d){return d===58?(l+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(d),e.exit("tableDelimiterMarker"),b):d===45?(l+=1,b(d)):d===null||S(d)?I(d):F(d)}function b(d){return d===45?(e.enter("tableDelimiterFiller"),y(d)):F(d)}function y(d){return d===45?(e.consume(d),y):d===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(d),e.exit("tableDelimiterMarker"),P):(e.exit("tableDelimiterFiller"),P(d))}function P(d){return Z(d)?L(e,I,"whitespace")(d):I(d)}function I(d){return d===124?g(d):d===null||S(d)?!i||a!==l?F(d):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(d)):F(d)}function F(d){return t(d)}function w(d){return e.enter("tableRow"),O(d)}function O(d){return d===124?(e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),O):d===null||S(d)?(e.exit("tableRow"),n(d)):Z(d)?L(e,O,"whitespace")(d):(e.enter("data"),H(d))}function H(d){return d===null||d===124||E(d)?(e.exit("data"),O(d)):(e.consume(d),d===92?_:H)}function _(d){return d===92||d===124?(e.consume(d),H):H(d)}}function ol(e,n){let t=-1,r=!0,a=0,l=[0,0,0,0],i=[0,0,0,0],o=!1,u=0,A,f,s;const m=new nl;for(;++t<e.length;){const c=e[t],g=c[1];c[0]==="enter"?g.type==="tableHead"?(o=!1,u!==0&&(pt(m,n,u,A,f),f=void 0,u=0),A={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(t,0,[["enter",A,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,s=void 0,l=[0,0,0,0],i=[0,t+1,0,0],o&&(o=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(t,0,[["enter",f,n]])),a=g.type==="tableDelimiterRow"?2:f?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(l[1]!==0&&(i[0]=i[1],s=ze(m,n,l,a,void 0,s),l=[0,0,0,0]),i[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(i[0]=i[1],s=ze(m,n,l,a,void 0,s)),l=i,i=[l[1],t,0,0])):g.type==="tableHead"?(o=!0,u=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=t,l[1]!==0?(i[0]=i[1],s=ze(m,n,l,a,t,s)):i[1]!==0&&(s=ze(m,n,i,a,t,s)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(i[3]=t)}for(u!==0&&pt(m,n,u,A,f),m.consume(n.events),t=-1;++t<n.events.length;){const c=n.events[t];c[0]==="enter"&&c[1].type==="table"&&(c[1]._align=il(n.events,t))}return e}function ze(e,n,t,r,a,l){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(l.end=Object.assign({},be(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const u=be(n.events,t[1]);if(l={type:i,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const A=be(n.events,t[2]),f=be(n.events,t[3]),s={type:o,start:Object.assign({},A),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",s,n]]),r!==2){const m=n.events[t[2]],c=n.events[t[3]];if(m[1].end=Object.assign({},c[1].end),m[1].type="chunkText",m[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,k=t[3]-t[2]-1;e.add(g,k,[])}}e.add(t[3]+1,0,[["exit",s,n]])}return a!==void 0&&(l.end=Object.assign({},be(n.events,a)),e.add(a,0,[["exit",l,n]]),l=void 0),l}function pt(e,n,t,r,a){const l=[],i=be(n.events,t);a&&(a.end=Object.assign({},i),l.push(["exit",a,n])),r.end=Object.assign({},i),l.push(["exit",r,n]),e.add(t+1,0,l)}function be(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const ul={name:"tasklistCheck",tokenize:Al};function sl(){return{text:{91:ul}}}function Al(e,n,t){const r=this;return a;function a(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),l)}function l(u){return E(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),i):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),i):t(u)}function i(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(u)}function o(u){return S(u)?n(u):Z(u)?e.check({tokenize:cl},n,t)(u):t(u)}}function cl(e,n,t){return L(e,r,"whitespace");function r(a){return a===null?t(a):n(a)}}function fl(e){return Sn([Ea(),Na(),tl(e),al(),sl()])}const hl={};function pl(e){const n=this,t=e||hl,r=n.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(fl(t)),l.push(Fa()),i.push(Da(t))}const ml=({message:e})=>e.type==="loading"?e.content&&x.jsx(ei,{message:e.content,type:"loading"}):e.type==="user"?x.jsx(W,{maxW:"220px",alignSelf:"flex-end",mb:1.5,children:(e.content.length>0||e.repliedProduct)&&x.jsxs(Q,{bg:"#EBF8FF",borderRadius:"20px",px:3,py:1.5,gap:1.5,alignItems:"start",w:"full",children:[e.repliedProduct&&x.jsxs(ee,{bg:"white",borderRadius:"10px",p:1.5,gap:1.5,w:"full",children:[x.jsx(ne,{src:e.repliedProduct.image,alt:"product",w:"32px",h:"32px"}),x.jsx(V,{fontSize:"10px",fontWeight:"400",color:"#1A1A1A",children:e.repliedProduct.name})]}),x.jsx($e,{components:{p:({children:n})=>x.jsx(V,{wordBreak:"break-word",fontSize:"12px",fontWeight:"500",color:"#4299E1",children:n})},children:e.content})]})}):e.type==="products"?x.jsx(W,{maxW:"100%",alignSelf:"flex-start",mb:3,w:"full",children:x.jsx(ot,{products:e.products||[]})}):e.type==="suggestions"?x.jsx(ai,{suggestions:e.suggestions||[]}):x.jsxs(Q,{align:"stretch",gap:1.5,children:[x.jsx(W,{alignSelf:"flex-start",children:x.jsx(ee,{align:"start",justifyContent:"flex-start",gap:1.5,children:x.jsx(W,{w:"full",borderRadius:"20px",py:2,children:x.jsx($e,{remarkPlugins:[pl],components:{p:({children:n})=>x.jsx(V,{fontSize:"12px",fontWeight:"400",color:"black",textAlign:"left",children:n}),ol:({children:n})=>x.jsx(W,{as:"ol",p:1.5,textAlign:"left",dir:"rtl",mb:1.5,children:n}),ul:({children:n})=>x.jsx(W,{as:"ul",p:1.5,textAlign:"left",dir:"rtl",mb:1.5,children:n}),li:({children:n})=>x.jsx(V,{as:"li",fontSize:"12px",fontWeight:"400",color:"black",textAlign:"left",children:n}),img:({src:n,alt:t})=>x.jsx(ne,{src:n,alt:t||"",maxW:"100%",borderRadius:"6px",my:1.5}),a:({children:n,href:t})=>x.jsx(cn,{href:t,target:"_blank",display:"block",wordBreak:"break-word",overflowWrap:"anywhere",children:x.jsx(V,{fontSize:"12px",fontWeight:"400",color:"#6155F5",textAlign:"left",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal",children:n})}),table:({children:n})=>x.jsx(W,{overflowX:"auto",maxW:"100%",css:{"&::-webkit-scrollbar":{height:"5px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1",borderRadius:"8px"},"&::-webkit-scrollbar-thumb":{background:"#888",borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"}},children:x.jsx(An,{size:"sm",variant:"outline",w:"full",my:1.5,striped:!0,children:n})}),thead:({children:n})=>x.jsx(sn,{children:n}),tbody:({children:n})=>x.jsx(un,{children:n}),tr:({children:n})=>x.jsx(on,{children:n}),th:({children:n})=>x.jsx(ln,{fontSize:"12px",fontWeight:"600",color:"black",textAlign:"left",px:1.5,py:.75,textTransform:"none",letterSpacing:"normal",border:"1px solid",borderColor:"#DEDEDE",whiteSpace:"nowrap",bg:"#E0E0E0",children:n}),td:({children:n})=>x.jsx(an,{fontSize:"12px",fontWeight:"400",color:"black",textAlign:"left",px:1.5,py:.75,border:"1px solid",borderColor:"#DEDEDE",children:n})},children:e.content})})})}),e.products&&e.products.length>0&&x.jsx(ot,{products:e.products})]}),gl="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%23040404'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.5858%2011.0002C15.3669%2010.2191%2016.6332%2010.2191%2017.4143%2011.0002L20.3738%2013.9597C20.7643%2014.3502%2020.7643%2014.9834%2020.3738%2015.3739C19.9833%2015.7644%2019.3501%2015.7644%2018.9596%2015.3739L17%2013.4144V21.0002C17%2021.5524%2016.5523%2022.0002%2016%2022.0002C15.4478%2022.0002%2015%2021.5524%2015%2021.0002V13.4144L13.0405%2015.3739C12.65%2015.7644%2012.0168%2015.7645%2011.6263%2015.3739C11.2358%2014.9834%2011.2358%2014.3502%2011.6263%2013.9597L14.5858%2011.0002Z'%20fill='white'%20/%3e%3c/svg%3e",xl="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.26915%205.7309C5.98798%205.44973%205.53209%205.44973%205.25092%205.7309C4.96975%206.01207%204.96975%206.46796%205.25092%206.74913L10.5018%2012L5.25092%2017.2509C4.96975%2017.5321%204.96975%2017.9879%205.25092%2018.2691C5.53209%2018.5503%205.98798%2018.5503%206.26915%2018.2691L11.52%2013.0183L16.7709%2018.2691C17.0521%2018.5503%2017.5079%2018.5503%2017.7891%2018.2691C18.0703%2017.9879%2018.0703%2017.5321%2017.7891%2017.2509L12.5383%2012L17.7891%206.74913C18.0703%206.46796%2018.0703%206.01207%2017.7891%205.7309C17.5079%205.44973%2017.0521%205.44973%2016.7709%205.7309L11.52%2010.9817L6.26915%205.7309Z'%20fill='black'%20/%3e%3c/svg%3e",bl=({placeholder:e="Write a prompt or paste a contract address",value:n="",onChange:t,onSend:r,isMobileView:a})=>{var c,g;const{chatState:{repliedProduct:l},setRepliedProduct:i}=me(),[o,u]=G.useState(n);G.useEffect(()=>{u(m(n))},[n]);const A=k=>{const v=m(k);u(v),t==null||t(v)},f=k=>{(o.trim()||k)&&(r==null||r({message:k!=null?k:o.trim()},l==null?void 0:l.product),i==null||i(null),u(""))},s=k=>{k.key==="Enter"&&!k.shiftKey&&(k.preventDefault(),f())},m=k=>k.trimStart();return x.jsx(Q,{gap:1.5,align:"stretch",bg:"transparent",position:"relative",children:x.jsx(W,{bg:"#EDEDED",borderRadius:"20px",position:"relative",p:1.5,w:"full",h:l?a?"260px":"165px":"75px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:x.jsxs(W,{position:"absolute",top:0,left:0,right:0,bottom:0,p:1.5,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:[l&&x.jsxs(Q,{opacity:1,p:"6px",gap:"6px",borderRadius:"10px",borderWidth:"1px",bgColor:"white",children:[x.jsxs(ee,{justify:"space-between",align:"center",w:"full",children:[x.jsx(ne,{src:(c=l==null?void 0:l.product)==null?void 0:c.image,alt:"product",w:"32px",h:"32px"}),x.jsx(V,{fontSize:"10px",fontWeight:400,color:"#1A1A1A",children:(g=l==null?void 0:l.product)==null?void 0:g.name}),x.jsx(ye,{bg:"transparent","aria-label":"Remove product",onClick:()=>i==null?void 0:i(null),children:x.jsx(ne,{src:xl,alt:"arrow-left",w:"20px",h:"20px"})})]}),(l==null?void 0:l.suggestions)&&l.suggestions.length>0&&x.jsxs(x.Fragment,{children:[x.jsx(W,{display:{base:"none",md:"block"},w:"full",children:x.jsx(ee,{w:"full",justify:"flex-start",align:"center",gap:1.5,children:l.suggestions.map(k=>x.jsx(Pe,{variant:"outline",bg:"transparent",color:"#1A1A1A",fontSize:"10px",borderColor:"#EDEDED",borderRadius:"20px",fontWeight:400,onClick:()=>f(k),h:"28px",px:2.5,minW:"unset",flex:1,overflow:"hidden",children:x.jsx(W,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:k})},k))})}),x.jsx(W,{display:{base:"block",md:"none"},w:"full",children:x.jsx(Q,{w:"full",align:"stretch",gap:"6px",children:l.suggestions.map(k=>x.jsx(Pe,{variant:"outline",bg:"transparent",w:"full",color:"#1A1A1A",fontSize:"10px",borderColor:"#EDEDED",borderRadius:"20px",fontWeight:400,onClick:()=>f(k),children:k},k))})})]})]}),x.jsx(gt,{value:o,onChange:k=>A(k.target.value),onKeyPress:s,placeholder:e,fontSize:"14px",color:"black",fontWeight:300,resize:"none",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"black"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}),x.jsx(ye,{position:"absolute",bottom:"10px",right:"10px",size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Send",onClick:()=>f(),_hover:{bg:"gray.800"},disabled:!o.trim(),transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"#CCCCCC",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:x.jsx("img",{src:gl,alt:"Send"})})]})})})},dl="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%23040404'%20/%3e%3cpath%20d='M22%2010H10V22H22V10Z'%20fill='white'%20/%3e%3c/svg%3e",kl=({placeholder:e="Write a prompt or paste a contract address",onStop:n})=>{const{stopCurrentRequest:t}=me(),r=()=>{t==null||t(),n==null||n()};return x.jsx(Q,{gap:1.5,align:"stretch",bg:"transparent",position:"relative",children:x.jsx(W,{bg:"#EDEDED",borderRadius:"28px",position:"relative",p:2.5,w:"full",h:"42px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:x.jsx(W,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2.5,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:x.jsxs(ee,{justify:"space-between",align:"center",h:"full",children:[x.jsx(V,{color:"#999999",fontSize:"14px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),x.jsx(ye,{size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Stop",onClick:r,_hover:{bg:"gray.800"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,children:x.jsx("img",{src:dl,alt:"Stop"})})]})})})})},wl="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='black'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.0002%2017.4139C10.2191%2016.6329%2010.2191%2015.3665%2011.0002%2014.5855L13.9597%2011.6259C14.3502%2011.2354%2014.9834%2011.2354%2015.3739%2011.6259C15.7644%2012.0165%2015.7644%2012.6496%2015.3739%2013.0401L13.4144%2014.9997H21.0002C21.5524%2014.9997%2022.0002%2015.4474%2022.0002%2015.9997C22.0002%2016.552%2021.5524%2016.9997%2021.0002%2016.9997H13.4144L15.3739%2018.9592C15.7644%2019.3498%2015.7645%2019.9829%2015.3739%2020.3735C14.9834%2020.764%2014.3502%2020.764%2013.9597%2020.3735L11.0002%2017.4139Z'%20fill='white'%20/%3e%3c/svg%3e",vl="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_497_8063)'%3e%3cpath%20d='M18.2468%2014.5235L16.5735%2013.9236C15.656%2013.5949%2014.6772%2013.4727%2013.7071%2013.5656C12.7369%2013.6585%2011.7991%2013.9643%2010.9607%2014.4612L9.43171%2015.3679C9.40135%2015.3857%209.36627%2015.3937%209.3312%2015.3909C9.29614%2015.3881%209.26279%2015.3746%209.23566%2015.3522C9.20853%2015.3298%209.18892%2015.2996%209.1795%2015.2657C9.17007%2015.2318%209.17128%2015.1959%209.18296%2015.1627L9.78291%2013.4893C10.1116%2012.5718%2010.2338%2011.5931%2010.1409%2010.6229C10.0479%209.65274%209.74213%208.71502%209.24525%207.87657L8.33853%206.34758C8.32077%206.31722%208.31275%206.28213%208.31557%206.24707C8.31839%206.21201%208.33191%206.17866%208.3543%206.15152C8.37668%206.12439%208.40686%206.10479%208.44075%206.09537C8.47464%206.08594%208.51061%206.08715%208.54379%206.09883L10.2171%206.69878C11.1346%207.02745%2012.1134%207.14967%2013.0835%207.05674C14.0537%206.9638%2014.9914%206.65799%2015.8299%206.16111L17.3589%205.2544C17.3893%205.23664%2017.4243%205.22862%2017.4594%205.23144C17.4945%205.23426%2017.5278%205.24778%2017.5549%205.27016C17.5821%205.29255%2017.6017%205.32273%2017.6111%205.35662C17.6205%205.39051%2017.6193%205.42648%2017.6076%205.45966L17.0077%207.13298C16.679%208.05051%2016.5568%209.02924%2016.6497%209.99941C16.7427%2010.9696%2017.0485%2011.9073%2017.5454%2012.7458L18.4521%2014.2748C18.4703%2014.3051%2018.4787%2014.3403%2018.4761%2014.3756C18.4734%2014.4109%2018.4599%2014.4445%2018.4374%2014.4717C18.4149%2014.499%2018.3845%2014.5187%2018.3503%2014.5279C18.3162%2014.5372%2018.28%2014.5357%2018.2468%2014.5235ZM16.5553%2022.8884L15.7079%2022.5849C15.2433%2022.4186%2014.7477%2022.3568%2014.2564%2022.4039C13.7652%2022.451%2013.2903%2022.6057%2012.8657%2022.8572L12.0913%2023.316C12.0759%2023.3251%2012.0581%2023.3292%2012.0403%2023.3278C12.0225%2023.3264%2012.0056%2023.3195%2011.9918%2023.3081C11.978%2023.2968%2011.9681%2023.2815%2011.9633%2023.2643C11.9586%2023.2471%2011.9592%2023.2288%2011.9652%2023.212L12.2687%2022.3646C12.4349%2021.8999%2012.4968%2021.4043%2012.4497%2020.9131C12.4026%2020.4218%2012.2479%2019.9469%2011.9964%2019.5223L11.5376%2018.7479C11.5285%2018.7325%2011.5244%2018.7147%2011.5258%2018.697C11.5272%2018.6792%2011.5341%2018.6622%2011.5454%2018.6485C11.5568%2018.6347%2011.5721%2018.6247%2011.5893%2018.62C11.6065%2018.6152%2011.6248%2018.6159%2011.6416%2018.6218L12.489%2018.9253C12.9537%2019.0916%2013.4493%2019.1534%2013.9405%2019.1063C14.4318%2019.0593%2014.9067%2018.9045%2015.3313%2018.653L16.1057%2018.1942C16.1211%2018.1851%2016.1388%2018.1811%2016.1566%2018.1825C16.1744%2018.1839%2016.1914%2018.1907%2016.2051%2018.2021C16.2189%2018.2134%2016.2289%2018.2288%2016.2336%2018.246C16.2384%2018.2632%2016.2377%2018.2814%2016.2318%2018.2983L15.9283%2019.1456C15.762%2019.6103%2015.7002%2020.1059%2015.7473%2020.5972C15.7943%2021.0884%2015.9491%2021.5633%2016.2006%2021.9879L16.6594%2022.7623C16.6684%2022.7777%2016.6725%2022.7955%2016.6711%2022.8133C16.6697%2022.8311%2016.6629%2022.848%2016.6515%2022.8618C16.6402%2022.8756%2016.6248%2022.8855%2016.6076%2022.8903C16.5904%2022.895%2016.5722%2022.8944%2016.5553%2022.8884ZM5.46406%2013.7363L4.61667%2013.4328C4.15202%2013.2666%203.65642%2013.2047%203.16515%2013.2518C2.67388%2013.2989%202.19903%2013.4536%201.77439%2013.7051L1.00002%2014.1639C0.984637%2014.173%200.966838%2014.1771%200.949042%2014.1757C0.931245%2014.1743%200.914312%2014.1674%200.900542%2014.1561C0.886772%2014.1447%200.876831%2014.1294%200.872069%2014.1122C0.867305%2014.095%200.86795%2014.0767%200.873916%2014.0599L1.17739%2013.2125C1.34367%2012.7478%201.40549%2012.2522%201.35843%2011.761C1.31137%2011.2697%201.15659%2010.7948%200.90512%2010.3702L0.44629%209.59584C0.437238%209.58045%200.43314%209.56265%200.43455%209.54486C0.435961%209.52706%200.442813%209.51013%200.454176%209.49636C0.465538%209.48259%200.48086%209.47265%200.498065%209.46789C0.51527%209.46312%200.533525%209.46377%200.55035%209.46973L1.39774%209.77321C1.8624%209.93949%202.358%2010.0013%202.84926%209.95424C3.34053%209.90718%203.81538%209.75241%204.24002%209.50094L5.01439%209.04211C5.02978%209.03306%205.04757%209.02896%205.06537%209.03037C5.08317%209.03178%205.1001%209.03863%205.11387%209.04999C5.12764%209.06135%205.13758%209.07668%205.14234%209.09388C5.14711%209.11109%205.14646%209.12934%205.1405%209.14617L4.83702%209.99356C4.67074%2010.4582%204.60893%2010.9538%204.65599%2011.4451C4.70305%2011.9363%204.85782%2012.4112%205.10929%2012.8358L5.56812%2013.6102C5.60947%2013.6803%205.54025%2013.7642%205.46406%2013.7363Z'%20fill='url(%23paint0_linear_497_8063)'%20/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_497_8063'%20x1='19.4467'%20y1='10.3723'%20x2='4.37004'%20y2='16.438'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF7E90'%20/%3e%3cstop%20offset='0.463542'%20stop-color='%23A939FF'%20/%3e%3cstop%20offset='1'%20stop-color='%230020FF'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_497_8063'%3e%3crect%20width='24'%20height='24'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",mt=({placeholder:e="Write a prompt or paste a contract address",value:n="",onChange:t,onSend:r})=>{const[a,l]=G.useState(n),[i,o]=G.useState(!1),u=G.useRef(null),A=()=>{o(!0),setTimeout(()=>{if(u.current){u.current.focus();const k=u.current.value.length;u.current.setSelectionRange(k,k)}},100)};G.useEffect(()=>{l(g(n))},[n]);const f=k=>{const v=g(k);l(v),t==null||t(v)},s=()=>{a.trim()&&(r==null||r({message:a.trim()}),l(""))},m=k=>{k.key==="Enter"&&!k.shiftKey&&(k.preventDefault(),s())},c=k=>` ${k}`,g=k=>k.trimStart();return x.jsx(Q,{gap:1.5,align:"stretch",children:x.jsxs(W,{bg:"white",borderRadius:"20px",position:"relative",p:1.5,w:"full",h:i?"68px":"42px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",cursor:"pointer",onClick:A,children:[x.jsx(W,{position:"absolute",top:"7px",right:"7px",zIndex:2,children:x.jsx(ne,{src:vl,alt:"AI",w:"20px",h:"20px"})}),x.jsx(W,{position:"absolute",top:0,left:0,right:0,bottom:0,p:1.5,opacity:i?0:1,transform:i?"translateY(-20px) scale(0.95)":"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:i?"none":"auto",children:x.jsx(ee,{justify:"space-between",align:"center",h:"full",children:x.jsx(V,{color:"#999999",fontSize:"14px",flex:1,paddingStart:"28px",textAlign:"right",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e})})}),x.jsx(ye,{position:"absolute",bottom:"7px",left:"10px",size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Send",onClick:k=>{k.stopPropagation(),s()},_hover:{bg:"gray.800"},disabled:!a.trim(),transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"#CCCCCC",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:x.jsx("img",{src:wl,alt:"Send"})}),x.jsx(W,{position:"absolute",top:0,left:0,right:0,bottom:0,p:1.5,opacity:i?1:0,transform:i?"translateY(0) scale(1)":"translateY(20px) scale(0.95)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:i?"auto":"none",children:x.jsx(gt,{ref:u,value:c(a),onChange:k=>f(k.target.value),onKeyPress:m,placeholder:c(e),fontSize:"14px",color:"black",fontWeight:300,textAlign:"right",resize:"none",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"#999999"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",rows:2})})]})})},yl=({state:e="starting",placeholder:n="Write a prompt or paste a contract address",value:t="",onChange:r,onSend:a,onStop:l})=>{const[i,o]=G.useState(!1);return G.useEffect(()=>{const u=()=>{o(window.innerWidth<=768)};return u(),window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),console.log(e),e==="starting"?x.jsx(bl,{placeholder:n,value:t,onChange:r,onSend:a,isMobileView:i}):e==="generating"?x.jsx(kl,{placeholder:n,onStop:l,isMobileView:i}):e==="minimized"?x.jsx(mt,{placeholder:n,value:t,onChange:r,onSend:a}):x.jsx(mt,{placeholder:n,value:t,onChange:r,onSend:a})},Pl="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%202.66683C5.42267%202.66683%203.33333%204.75617%203.33333%207.3335H2C2%204.01979%204.68629%201.3335%208%201.3335C11.3137%201.3335%2014%204.01979%2014%207.3335C14%208.75016%2013.509%2010.0522%2012.6879%2011.0786L14.8047%2013.1954L13.8619%2014.1382L11.7451%2012.0214C10.7187%2012.8425%209.41667%2013.3335%208%2013.3335V12.0002C10.5773%2012.0002%2012.6667%209.91083%2012.6667%207.3335C12.6667%204.75617%2010.5773%202.66683%208%202.66683Z'%20fill='%23595959'%20/%3e%3cpath%20d='M5.85714%206.6665L2%2011.2498H4.57143L4.14286%2013.9998L8%209.4165H5.42857L5.85714%206.6665Z'%20fill='%23595959'%20/%3e%3c/svg%3e",Jl=()=>{const e=me(),{botData:n}=me(),t=G.useRef(null),r=i=>{e.sendMessage({message:i})},a=e.messages.length>0,l=()=>{t.current&&setTimeout(()=>{var i;(i=t.current)==null||i.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},100)};return G.useEffect(()=>{a&&l()},[e.messages,a]),x.jsxs(Q,{flex:1,justify:"space-between",align:"stretch",gap:3,h:"full",minH:"200px",maxH:"300px",overflow:"hidden",children:[!a&&(n==null?void 0:n.suggestedReply)&&x.jsx(W,{w:"full",flex:1,overflowY:"auto",overflowX:"hidden",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:x.jsx(ee,{wrap:"wrap",children:n.suggestedReply.map((i,o)=>x.jsxs(Pe,{variant:"outline",h:"auto",borderRadius:"20px",border:"1px solid #EDEDED",bg:"white",color:"#1A1A1A",fontSize:"12px",fontWeight:400,padding:"6px 10px 6px 10px",_hover:{bg:"#F8F8F8",borderColor:"#D0D0D0"},_active:{bg:"#F0F0F0",transform:"scale(0.98)"},onClick:()=>r(i),justifyContent:"start",maxW:"100%",children:[x.jsx(ne,{src:Pl,alt:"AI Search",w:3.5,h:3.5}),x.jsx(W,{as:"span",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"Estedad-FD, system-ui, sans-serif",children:i})]},o))})}),a&&x.jsx(W,{ref:t,flex:1,overflowY:"auto",overflowX:"hidden",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:x.jsx(Q,{gap:1.5,align:"stretch",pb:1.5,children:e.messages.map(i=>x.jsx(ml,{message:i},i.id))})}),x.jsx(W,{flexShrink:0,bg:"transparent",borderRadius:"10px",transition:"all 0.2s ease",children:x.jsx(yl,{state:e.inputState,placeholder:e.inputState==="generating"?"Processing...":"What's your question?",onSend:e.isInputDisabled?void 0:e.sendMessage,onStop:e.stopCurrentRequest})})]})};export{Xe as A,Sn as B,Qn as C,dt as D,se as E,Nl as F,wt as G,jn as H,jl as I,Qr as J,me as K,Vl as L,Jl as M,we as N,Zl as O,Ze as P,En as a,Ie as b,El as c,Tl as d,Gl as e,L as f,Dl as g,_l as h,Bl as i,Rl as j,Il as k,Ir as l,S as m,Fl as n,ql as o,Wl as p,Ct as q,Yl as r,re as s,Wr as t,Ml as u,Ll as v,Ol as w,Hl as x,Xl as y,$ as z};
17
- //# sourceMappingURL=chat-features-DGTkbzkq.js.map
17
+ //# sourceMappingURL=chat-features-CMTt4p4D.js.map