@cimulate/copilot-widget 1.52.1 → 1.52.2

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
- (function(Fe,$e){typeof exports=="object"&&typeof module!="undefined"?$e(exports):typeof define=="function"&&define.amd?define(["exports"],$e):(Fe=typeof globalThis!="undefined"?globalThis:Fe||self,$e(Fe.CimulateCopilot={}))})(this,(function(Fe){"use strict";var wU=Object.defineProperty,_U=Object.defineProperties;var xU=Object.getOwnPropertyDescriptors;var Ad=Object.getOwnPropertySymbols;var Q2=Object.prototype.hasOwnProperty,J2=Object.prototype.propertyIsEnumerable;var Js=(Fe,$e)=>($e=Symbol[Fe])?$e:Symbol.for("Symbol."+Fe),SU=Fe=>{throw TypeError(Fe)},zu=Math.pow,m0=(Fe,$e,Qe)=>$e in Fe?wU(Fe,$e,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Fe[$e]=Qe,B=(Fe,$e)=>{for(var Qe in $e||($e={}))Q2.call($e,Qe)&&m0(Fe,Qe,$e[Qe]);if(Ad)for(var Qe of Ad($e))J2.call($e,Qe)&&m0(Fe,Qe,$e[Qe]);return Fe},pe=(Fe,$e)=>_U(Fe,xU($e));var pn=(Fe,$e)=>{var Qe={};for(var dt in Fe)Q2.call(Fe,dt)&&$e.indexOf(dt)<0&&(Qe[dt]=Fe[dt]);if(Fe!=null&&Ad)for(var dt of Ad(Fe))$e.indexOf(dt)<0&&J2.call(Fe,dt)&&(Qe[dt]=Fe[dt]);return Qe};var Te=(Fe,$e,Qe)=>m0(Fe,typeof $e!="symbol"?$e+"":$e,Qe);var et=(Fe,$e,Qe)=>new Promise((dt,It)=>{var Tt=wt=>{try{un(Qe.next(wt))}catch(Cn){It(Cn)}},Ue=wt=>{try{un(Qe.throw(wt))}catch(Cn){It(Cn)}},un=wt=>wt.done?dt(wt.value):Promise.resolve(wt.value).then(Tt,Ue);un((Qe=Qe.apply(Fe,$e)).next())}),Qr=function(Fe,$e){this[0]=Fe,this[1]=$e},vd=(Fe,$e,Qe)=>{var dt=(un,wt,Cn,pr)=>{try{var Ki=Qe[un](wt),Ho=(wt=Ki.value)instanceof Qr,zo=Ki.done;Promise.resolve(Ho?wt[0]:wt).then(In=>Ho?dt(un==="return"?un:"next",wt[1]?{done:In.done,value:In.value}:In,Cn,pr):Cn({value:In,done:zo})).catch(In=>dt("throw",In,Cn,pr))}catch(In){pr(In)}},It=(un,wt,Cn,pr)=>Ue[un]=Ki=>(wt=new Promise((Ho,zo,In)=>(In=()=>dt(un,Ki,Ho,zo),Tt?Tt.then(In):In())),pr=()=>Tt===Cn&&(Tt=0),Tt=Cn=wt.then(pr,pr),wt),Tt,Ue={};return Qe=Qe.apply(Fe,$e),Ue[Js("asyncIterator")]=()=>Ue,It("next"),It("throw"),It("return"),Ue},g0=Fe=>{var $e=Fe[Js("asyncIterator")],Qe=!1,dt,It={};return $e==null?($e=Fe[Js("iterator")](),dt=Tt=>It[Tt]=Ue=>$e[Tt](Ue)):($e=$e.call(Fe),dt=Tt=>It[Tt]=Ue=>{if(Qe){if(Qe=!1,Tt==="throw")throw Ue;return Ue}return Qe=!0,{done:!1,value:new Qr(new Promise(un=>{var wt=$e[Tt](Ue);wt instanceof Object||SU("Object expected"),un(wt)}),1)}}),It[Js("iterator")]=()=>It,dt("next"),"throw"in $e?dt("throw"):It.throw=Tt=>{throw Tt},"return"in $e&&dt("return"),It},Z2=(Fe,$e,Qe)=>($e=Fe[Js("asyncIterator")])?$e.call(Fe):(Fe=Fe[Js("iterator")](),$e={},Qe=(dt,It)=>(It=Fe[dt])&&($e[dt]=Tt=>new Promise((Ue,un,wt)=>(Tt=It.call(Fe,Tt),wt=Tt.done,Promise.resolve(Tt.value).then(Cn=>Ue({value:Cn,done:wt}),un)))),Qe("next"),Qe("return"),$e);var $e=document.createElement("style");$e.textContent=`.cim-widget-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;height:auto;line-height:normal;background-color:transparent;border:1px solid transparent;border-radius:var(--cim-widget-border-radius);padding:0;cursor:pointer;color:#333;font-size:18px;svg{padding:6px;height:100%;width:100%}&:hover{background-color:#f0f0f0}&:disabled,&[disabled]{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-icon-image{object-fit:contain;padding:6px;width:.875em;height:.875em}.cim-widget-minimized-container{--base-color: var(--cim-widget-primary-color, #3182ce);--base-color-darken: color-mix(in srgb, var(--base-color), black 20%);position:fixed;z-index:9999;bottom:1rem;right:1rem;display:flex;align-items:center;justify-content:center;.cim-widget-minimized-button{height:3rem;width:3rem;border-radius:50%;padding:.25rem;border:none;color:#fff;box-shadow:0 4px 6px #00000040,0 1px 3px #00000050;background-color:var(--base-color);transition:background-color .1s ease-in-out;&:active{transform:translateY(1px);box-shadow:0 4px 6px #00000020,0 1px 3px #00000030}&:hover{background-color:var(--base-color-darken)}}.cim-widget-minimized-icon-img{object-fit:contain;width:stretch;height:stretch}}.cim-widget-minimized-container.cim-widget-layout-commerce .cim-widget-minimized-button{animation:cim-widget-fab-pulse 2s infinite ease-in-out;transition:transform .2s ease,background-color .2s ease}.cim-widget-minimized-container.cim-widget-layout-commerce .cim-widget-minimized-button:hover{transform:scale(1.1);animation-play-state:paused}.cim-widget-minimized-container.cim-widget-layout-commerce{background-color:transparent}@keyframes cim-widget-fab-pulse{0%,to{box-shadow:0 4px 10px #00000040,0 0 0 .1px color-mix(in srgb,var(--base-color) 40%,transparent)}50%{box-shadow:0 4px 15px #00000059,0 0 0 8px color-mix(in srgb,var(--base-color) 0%,transparent)}}.cim-widget-close-button{display:flex;align-items:center;justify-content:center;padding:.5rem;height:auto;line-height:normal;border-radius:var(--cim-widget-border-radius);border:1px solid transparent;background-color:transparent;cursor:pointer;&:hover{background-color:#f0f0f0}}.cim-widget-button{--base-color: var(--cim-widget-primary-color, #3182ce);padding:.25rem .5rem;min-height:32px;height:auto;line-height:normal;background-color:var(--base-color);border-radius:var(--cim-widget-border-radius);border-color:var(--base-color);border-style:solid;color:#fff;font-family:var(--cim-widget-font-family, inherit);cursor:pointer;&:disabled,&[disabled]{cursor:not-allowed;opacity:.6}&:hover{background-color:color-mix(in srgb,var(--base-color),black 20%);border-color:color-mix(in srgb,var(--base-color),black 20%)}&:focus-visible{outline:2px solid color-mix(in srgb,var(--base-color),white 25%)}}.cim-widget-cancel-button{color:#8a8a8a}.cim-widget-disclaimer{display:flex;flex-direction:column;padding:0 .5rem .5rem;gap:.5rem}.cim-widget-disclaimer-text{font-size:.75rem;color:#00000090;margin:0}.cim-widget-disclaimer-image{object-fit:contain;height:100%;width:100%}.cim-widget-search-bar-wrapper{display:flex;flex-direction:column;padding:.5rem;gap:.5rem;&.with-attachments{border-top:1px solid var(--cim-widget-border-color)}}.cim-widget-search-bar{display:flex;align-items:center;gap:4px;font-family:var(--cim-widget-font-family);&.drag-over{outline:2px dashed var(--cim-widget-primary-color);outline-offset:2px}}.cim-widget-image-file-preview{display:inline-flex;align-items:center;gap:8px;padding-left:.5rem}.cim-widget-image-preview{object-fit:contain;max-height:2.5rem;&.cim-modal-component{max-height:3.5rem}}.cim-widget-image-file-name{width:100%;font-size:.8rem;color:#00000090;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-clamp:3;overflow:hidden}.cim-widget-close-button.clear-attachment{padding:.15rem;color:#00000090}input.cim-widget-search-input{width:100%;height:stretch;min-width:0;min-height:2rem;padding:0 8px;font-size:.875rem;background-color:transparent;border:1px solid #00000040;border-radius:var(--cim-widget-border-radius)}@media(max-width:576px){input.cim-widget-search-input{font-size:16px}}.cim-widget-connection-status-icon{display:inline-block;min-width:8px;width:.6rem;height:.5rem;border-radius:50%;margin:.35rem;vertical-align:middle;&.connected{background-color:#00d60080}&.disconnected{background-color:#c9c7c7}}.cim-widget-image-upload-button-container{display:inline-flex;height:100%}button.cim-widget-image-upload-button{display:inline-flex;justify-content:center;align-items:center;padding:8px;margin:0;color:inherit;background:transparent;border:0;border-radius:var(--cim-widget-border-radius);cursor:pointer;&:hover{background-color:#f0f0f0}&:disabled,&.disabled{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-search-button{display:inline-flex;align-items:center;white-space:nowrap;gap:.25rem}.cim-widget-search-button-icon{--base-color: var(--cim-widget-primary-color, #3182ce);background-color:var(--base-color);border-color:var(--base-color);color:#fff;&:disabled,&[disabled]{background-color:var(--base-color);border-color:var(--base-color);opacity:.6}&:hover{background-color:color-mix(in srgb,var(--base-color),black 20%);border-color:color-mix(in srgb,var(--base-color),black 20%)}}.cim-widget-search-button-icon-image{object-fit:contain;width:1.25em;height:1.25em}.cim-widget-file-input{display:none}.cim-widget-attach-error{color:#e53e3e;font-size:.75rem;padding:4px 8px 0}.cim-widget-messaging-input-group{display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:4px;border:1px solid #00000040;border-radius:var(--cim-widget-border-radius);&:focus-within{border-color:var(--cim-widget-primary-color, #3182ce)}& input.cim-widget-search-input{flex:1 1 auto;width:auto;border:none;border-radius:0}& button.cim-widget-image-upload-button{flex:0 0 auto}.cim-widget-image-upload-label{font-size:1.25rem;line-height:1}}.cim-widget-messaging-composer-group{display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:4px}.cim-widget-overflow-menu{position:relative;height:auto;width:auto}.cim-widget-overflow-menu-list{width:170px;background:#fff;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color)}.cim-widget-overflow-menu-button{background-color:#fff}.cim-widget-overflow-menu-button-trigger,.cim-widget-overflow-menu-button{display:inline-flex;align-items:center;width:100%;border:1px solid transparent;border-radius:var(--cim-widget-border-radius);cursor:pointer;color:#333;&:hover{background-color:#f0f0f0}}.cim-widget-overflow-menu-button{gap:.5rem;padding:.5rem .75rem;background-color:#f0f0f080;svg{font-size:.75rem}}.cim-widget-carousel{position:relative;width:100%}.cim-widget-carousel__item-group{padding:4px 0;justify-content:flex-start;&.carousel-row-container{display:flex}}.cim-widget-carousel__item{flex-shrink:0;>*{height:100%}}.cim-widget-carousel__control{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;padding:0 4px}.cim-widget-carousel__prev-trigger,.cim-widget-carousel__next-trigger{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:1rem 0;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color, #d1d5db);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #3f3f46);cursor:pointer;box-shadow:0 1px 3px #0000001a;transition:background-color .15s ease,box-shadow .15s ease;&:hover{color:var(--cim-widget-font-color, #1a202c)}}.cim-widget-carousel__prev-trigger:hover,.cim-widget-carousel__next-trigger:hover{background-color:#f9fafb;box-shadow:0 2px 6px #0000001f}.cim-widget-carousel__prev-trigger:disabled,.cim-widget-carousel__next-trigger:disabled{opacity:.4;cursor:not-allowed}.cim-widget-carousel__indicator-group{display:flex;justify-content:center;gap:6px;padding-top:12px}.cim-widget-carousel__indicator{width:6px;height:6px;border-radius:3px;border:none;background-color:var(--cim-widget-border-color, #d1d5db);cursor:pointer;padding:0;transition:width .2s cubic-bezier(.16,1,.3,1),background-color .2s ease}.cim-widget-carousel__indicator[data-current]{background-color:var(--cim-widget-font-color, #1a202c);width:16px;border-radius:3px}.cim-widget-carousel__indicator:hover:not([data-current]){background-color:var(--cim-widget-font-color, #1a202c);opacity:.5}.cim-widget-overflow-panel{position:absolute;top:100%;left:0;right:0;display:flex;flex-direction:column;gap:.5rem;padding:.5rem;background:#fff;border-bottom:1px solid var(--cim-widget-border-color);z-index:10}.cim-widget-overflow-panel .cim-widget-overflow-menu-button{width:100%;justify-content:center;gap:.75rem;font-size:.875rem}.cim-widget-left-right-toggle-button{display:none}@media(min-width:576px){.cim-widget-left-right-toggle-button{display:inline-flex}}.cim-widget-toggle-modal-button.cim-dialog-component{display:none}@media(min-width:576px){.cim-widget-toggle-modal-button.cim-dialog-component{display:inline-flex}}.cim-widget-product-tile{display:inline-flex;flex-direction:column;background-color:#fff;border-radius:var(--cim-widget-border-radius);box-shadow:0 1px 3px #0000001a}.cim-widget-product-tile.embedded,.cim-widget-product-tile.standalone{min-width:10dvw;max-width:30dvw}.cim-widget-product-tile-image{object-fit:contain;width:100%;height:auto;max-height:25dvh;border-top-left-radius:4px;border-top-right-radius:4px}.cim-widget-product-tile-details{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:.5rem}.cim-widget-product-tile-brand{color:var(--cim-widget-primary-color)}.cim-widget-product-tile-pdp,.cim-widget-product-tile-name,.cim-widget-product-tile-price,.cim-widget-product-tile-pid{display:inline-block;line-height:1.25rem;font-size:.875rem}.cim-widget-product-tile-name{font-weight:700}.cim-widget-product-tile-pdp{color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 85%,black);text-decoration:none;word-wrap:break-word;&:hover{text-decoration:underline}}.cim-widget-product-tile-pdp-arrow{display:inline-block;transform:rotate(-45deg)}.cim-widget-product-tile-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.5rem;gap:.5rem}.cim-widget-product-tile-price{font-weight:700}@media(max-width:576px){.cim-widget-product-tile.embedded,.cim-widget-product-tile.standalone{min-width:30dvw;max-width:45dvw}.cim-widget-product-tile-pdp,.cim-widget-product-tile-name{display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}.cim-widget-display-products{flex-direction:column}.cim-widget-error-message-text{display:inline-flex;align-items:center;gap:.5rem;color:#e53e3e;&.embedded svg{min-width:1.25rem;height:1.25rem}}.cim-widget-blinking-cursor{display:inline-flex;margin-left:2px;line-height:0;animation:cim-widget-cursor-blink 1.5s steps(2) infinite}@keyframes cim-widget-cursor-blink{0%{opacity:0}}.cim-widget-ul{list-style-type:disc;padding-left:1.5rem}.cim-widget-ol{list-style-type:decimal;padding-left:1.5rem}.cim-widget-table-container{margin-top:1rem;margin-bottom:1rem;margin-right:.5rem;overflow-x:auto}.cim-widget-table{border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--cim-widget-border-color);border-collapse:collapse;width:100%}.cim-widget-thead{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent);border-bottom-width:2px;border-color:var(--cim-widget-border-color)}.cim-widget-tbody{border-width:0px;box-sizing:border-box;background-color:#ffffff90;overflow-wrap:break-word}.cim-widget-tr{border-style:solid;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-th{padding:.5rem 1rem;text-align:left;font-weight:700;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-td{padding:.5rem 1rem;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-message-container pre{margin:0}.cim-widget-progress-message.embedded,.cim-widget-progress-message.standalone{display:flex;align-items:center}.cim-widget-progress-text.embedded{font-size:.85rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 80%,white);line-height:1rem;line-clamp:3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cim-widget-progress-text.standalone{font-size:inherit;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 85%,white)}.cim-widget-thought-container{padding-left:.5rem;margin:.5rem;border-left:2px solid var(--cim-widget-primary-color)}p.cim-widget-progress-thought{margin-bottom:1rem;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 70%,white);line-height:1;font-size:.875rem}.cim-widget-thought-context-button{display:inline-flex;align-items:center;justify-content:space-between;padding:.25rem;min-width:84px;background-color:transparent;border-color:transparent;color:var(--cim-widget-primary-color);font-weight:700;cursor:pointer;&:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}}.cim-widget-message-icon.progress-icon.embedded{color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 50%,white)}.cim-widget-refined-event{display:flex;flex-direction:column}.cim-widget-refined-event-query{display:inline-flex;align-items:center;gap:4px;color:var(--cim-widget-primary-color)}.cim-widget-refined-event-query-text{line-height:normal}.cim-widget-message-icon.refined-event-icon{font-size:1.5rem;&.embedded,&.standalone{color:var(--cim-widget-primary-color)}}.cim-widget-facet-pill{display:inline-flex;align-items:center;margin-left:4px;padding:.25rem .5rem;color:var(--cim-widget-primary-color);border-radius:9999px;font-size:.75rem;font-weight:700;&.embedded{background-color:#ffffff90}&.standalone{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent)}}.cim-widget-facet-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.25rem}.cim-widget-facets{display:flex;flex-direction:column;padding:.25rem}.cim-widget-facets .cim-widget-facet-category{margin-bottom:0;font-size:.875rem;font-weight:700;word-wrap:break-word}.cim-widget-facets .cim-widget-facet-values{margin-top:0;font-size:.675rem}.cim-widget-message-timestamp.standalone{font-size:.75rem;color:#00000090}.cim-widget-message-timestamp.embedded{font-size:.65rem;color:#333333bf}.cim-widget-user-message{display:flex;flex-direction:column;gap:.5rem;.cim-widget-user-message-row{display:inline-flex;align-items:center;gap:.5rem}}.cim-widget-user-message.embedded{display:inline-flex;align-self:flex-end;padding:.5rem 1rem;border-radius:var(--cim-widget-border-radius);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:50%}.cim-widget-user-message.standalone{margin:.5rem 0}.cim-widget-user-message-image{object-fit:contain;border-radius:8px;&.embedded{max-height:2.5rem}&.standalone{max-height:3.5rem}}.cim-widget-user-message-text{font-weight:700}.cim-widget-user-message-text.standalone{font-size:1.125rem;margin:0}.cim-widget-user-message-text.embedded{margin:0}.cim-widget-message-icon.user-message-icon.embedded{color:var(--cim-widget-primary-color)}.cim-widget-user-search{display:flex;flex-direction:column}.cim-widget-user-search.embedded{display:inline-flex;align-self:flex-end;padding:.5rem 1rem;border-radius:var(--cim-widget-border-radius);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:50%;gap:4px}.cim-widget-user-search.standalone{flex-direction:column;font-size:1.125rem;padding-top:.5rem;padding-bottom:.5rem}.cim-widget-user-search-image{object-fit:contain;border-radius:8px;&.embedded{max-height:2.5rem}&.standalone{max-height:3.5rem}}.cim-widget-user-search-query{display:inline-flex}.cim-widget-message-icon.user-search-icon.embedded,.cim-widget-message-icon.user-search-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}.cim-widget-reset-message{font-size:.75rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 75%,white)}.cim-widget-start-search-message{font-size:.875rem;font-weight:700;color:var(--cim-widget-font-color)}.cim-widget-message-group,.cim-widget-message{display:flex;flex-direction:column}.cim-widget-message-group{gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;border-radius:var(--cim-widget-border-radius);&.standalone{padding:0 1rem}.cim-widget-message-group-child{max-width:100%;margin-bottom:.25rem}}.cim-widget-message-group.embedded{max-width:80%;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent)}.cim-widget-message{margin-bottom:1rem}.cim-widget-message.standalone{border-radius:0;background-color:transparent;padding:0 1rem}.cim-widget-message.embedded{margin-bottom:1rem}.cim-widget-embedded-chat{position:relative;width:100%;height:100%;margin:0 auto;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color)}.cim-widget-embedded-chat>.cim-widget-message-container{padding-top:2rem;padding-left:1rem;padding-right:1rem}.cim-widget-embedded-chat-menu{position:absolute;top:.25rem;right:.25rem}.cim-widget-embedded-chat.cim-widget-layout-commerce>.cim-widget-message-container{padding-top:3.75rem}.cim-widget-embedded-chat.cim-widget-layout-commerce .cim-widget-embedded-chat-menu{top:.75rem;right:.75rem}.cim-widget-overflow-menu-button-trigger.cim-chat-component{border:1px solid var(--cim-widget-border-color);border-radius:var(--cim-widget-border-radius);background-color:#fff}.cim-widget-overflow-menu-button.cim-chat-component{background-color:#fff;border-radius:var(--cim-widget-border-radius);&:hover{background-color:#f0f0f0}}.cim-widget-dialog{box-sizing:border-box;position:fixed;width:35dvw;max-width:100dvw;height:55dvh;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color);font-size:.875rem;z-index:9999;&.full-height{height:100%}&.full-height.bottom-left{bottom:0;left:0}&.full-height.bottom-right{bottom:0;right:0}&.bottom-left{bottom:.5rem;left:.5rem;animation:cim-widget-dialog-slide-in-left .25s ease-out}&.bottom-right{bottom:.5rem;right:.5rem;animation:cim-widget-dialog-slide-in-right .25s ease-out}.cim-widget-message-group.embedded{max-width:100%}}.cim-widget-dialog-content{display:flex;flex-direction:column;height:100%}.cim-widget-dialog-header{display:inline-flex;align-items:center;padding:.5rem 1rem;gap:8px;border-bottom:1px solid var(--cim-widget-border-color);background-color:var(--cim-widget-header-background-color)}.cim-widget-dialog-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-dialog-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-dialog-title{width:100%;margin-top:0;margin-bottom:0;line-height:normal;color:var(--cim-widget-header-text-color, inherit);font-size:var(--cim-widget-header-text-font-size);font-weight:var(--cim-widget-header-text-font-weight, bold);font-family:var(--cim-widget-header-text-font-family, inherit);text-align:var(--cim-widget-header-text-text-align, left)}.cim-widget-dialog.cim-widget-layout-commerce{border:0}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-header{box-sizing:border-box;height:3.875rem;min-height:3.875rem;gap:.75rem;padding:.75rem 8rem .75rem 1.5rem;border-bottom:1px solid var(--cim-widget-border-color, #e0e0e0);box-shadow:0 1px 1px -1px #17171b08,0 14px 30px -20px #17171b1a;background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #181818)}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-logo{box-sizing:border-box;width:1.75rem;max-width:1.75rem;height:1.75rem;padding:.25rem;border-radius:.375rem;background-color:var(--cim-widget-primary-color, #17171b)}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-title{overflow:hidden;color:var(--cim-widget-font-color, #181818);font-size:1rem;font-weight:400;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-controls{top:50%;right:1rem;transform:translateY(-50%)}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-controls button{color:var(--cim-widget-font-color, #181818)}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-controls button:hover{background-color:var(--cim-widget-border-color, #f3f3f3)}@media(min-width:576px)and (max-width:768px){.cim-widget-dialog{width:50%}}@media(max-width:576px){.cim-widget-dialog{height:100%;width:100dvw;max-width:100dvw;border-radius:0;&.full-height{height:100%}&.bottom-left{bottom:0;left:0}&.bottom-right{bottom:0;right:0}}.cim-widget-dialog.bottom-left,.cim-widget-dialog.bottom-right{animation:none}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-header{height:3.875rem;min-height:3.875rem;padding-left:1rem;padding-right:7.5rem}}@media(prefers-reduced-motion:reduce){.cim-widget-dialog.bottom-left,.cim-widget-dialog.bottom-right{animation:none}}@keyframes cim-widget-dialog-slide-in-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes cim-widget-dialog-slide-in-left{0%{transform:translate(-100%)}to{transform:translate(0)}}.cim-widget-modal-container{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;height:100dvh;width:100dvw;z-index:9999}.cim-widget-modal-backdrop{position:absolute;top:0;left:0;height:100%;width:100%;background:#00000080}.cim-widget-modal{position:fixed;width:70dvw;height:80dvh;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color);overflow-y:hidden;&.fullscreen{height:100%;width:100%;border-radius:0}}.cim-widget-modal-content{display:flex;flex-direction:column;height:100%}.cim-widget-modal-header{display:inline-flex;align-items:center;padding:.5rem 1rem;gap:8px;border-bottom:1px solid var(--cim-widget-border-color);background-color:var(--cim-widget-header-background-color)}.cim-widget-modal-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-modal-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-modal-title{width:100%;margin-top:0;margin-bottom:0;line-height:normal;color:var(--cim-widget-header-text-color, inherit);font-size:var(--cim-widget-header-text-font-size);font-weight:var(--cim-widget-header-text-font-weight, bold);font-family:var(--cim-widget-header-text-font-family, inherit);text-align:var(--cim-widget-header-text-text-align, left)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-header{box-sizing:border-box;height:3.875rem;min-height:3.875rem;gap:.75rem;padding:.75rem 8rem .75rem 1.5rem;border-bottom:1px solid var(--cim-widget-border-color, #e0e0e0);box-shadow:0 1px 1px -1px #17171b08,0 14px 30px -20px #17171b1a;background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #181818)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-logo{box-sizing:border-box;width:1.75rem;max-width:1.75rem;height:1.75rem;padding:.25rem;border-radius:.375rem;background-color:var(--cim-widget-primary-color, #17171b)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-title{overflow:hidden;color:var(--cim-widget-font-color, #181818);font-size:1rem;font-weight:400;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-controls{top:50%;right:1rem;transform:translateY(-50%)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-controls button{color:var(--cim-widget-font-color, #181818)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-controls button:hover{background-color:var(--cim-widget-border-color, #f3f3f3)}.cim-widget-modal-fullscreen-button,.cim-widget-modal-toggle-dialog-button{display:none}@media(max-width:576px){.cim-widget-modal{height:100%;width:100%;border-radius:0}}@media(min-width:576px){.cim-widget-modal-fullscreen-button,.cim-widget-modal-toggle-dialog-button{display:inline-flex}}.cim-widget-container{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--cim-widget-background-color);font-family:var(--cim-widget-font-family, inherit);color:var(--cim-widget-font-color, inherit)}.cim-widget-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cim-widget-message-container p{margin:.25rem 0;padding:0;+p{margin-top:.5rem}}.cim-widget-message-container span{line-height:1}.cim-widget-header{font-weight:700;color:inherit}.cim-widget-header.h1{margin-top:2rem;margin-bottom:2rem;font-size:1rem}.cim-widget-header.h2{margin-top:1.5rem;margin-bottom:1.5rem;font-size:1rem}.cim-widget-header.h3{margin-top:1rem;margin-bottom:1rem;font-size:1rem}.cim-widget-link{color:var(--cim-widget-primary-color);text-decoration:underline;cursor:pointer}.cim-widget-link:hover{color:var(--cim-widget-secondary-color);text-decoration:none}.cim-widget-text{line-height:1.5;color:inherit;margin-bottom:.25rem}.cim-widget-text.italic{font-style:italic}.cim-widget-text.bold{font-weight:700}.cim-widget-message-container{display:flex;flex-direction:column;flex:1;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere;padding:1rem;&.container-end{>:first-child{margin-top:auto}}}.cim-widget-message-icon{display:inline-flex;align-items:center;margin-right:.25rem}.cim-widget-message-icon.embedded{font-size:1rem;color:var(--cim-widget-secondary-color)}.cim-widget-message-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}.cim-widget-suggestion-container.embedded{display:inline-flex;flex-wrap:wrap;gap:.5rem}.cim-widget-suggestion-button.embedded{height:auto;padding:.2rem .5rem;border:1px solid var(--cim-widget-primary-color);border-radius:var(--cim-widget-border-radius);background-color:transparent;font-size:.875rem;font-weight:600;font-family:inherit;line-height:normal;text-transform:none;color:var(--cim-widget-primary-color);white-space:normal;word-break:break-word;text-align:left;cursor:pointer}.cim-widget-suggestion-button.embedded:hover{background-color:#fff;color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-container.standalone{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem;padding:.5rem 0}@media(max-width:768px){.cim-widget-suggestion-container.standalone{grid-template-columns:repeat(1,1fr)}}.cim-widget-suggestion-button.standalone{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid var(--cim-widget-primary-color);border-radius:var(--cim-widget-border-radius);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);font-weight:700;line-height:normal;color:var(--cim-widget-primary-color);text-align:left;white-space:normal;word-break:break-word}.cim-widget-suggestion-button.standalone:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 15%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-button.has-icon{display:inline-flex;align-items:center;gap:.35rem}.cim-widget-suggestion-button.icon-right{flex-direction:row-reverse;justify-content:start}.cim-widget-suggestion-button-icon{flex-shrink:0}.cim-widget-suggestion-button:disabled{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a;cursor:not-allowed}.cim-widget-suggestion-button:disabled:hover{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a}.cim-widget-layout-commerce{--cim-widget-shopping-canvas: #fcfcfc;--cim-widget-shopping-chip: #f7f7f7;--cim-widget-shopping-muted: #5c5c5c;--cim-widget-shopping-outline: #a3a3a3;background-color:var(--cim-widget-shopping-canvas)}.cim-widget-layout-commerce .cim-widget-message-container{gap:1rem;padding:1.25rem;background-color:var(--cim-widget-shopping-canvas)}.cim-widget-layout-commerce .cim-widget-message-group{width:100%;max-width:100%;margin-bottom:0;padding:0;border:0;background-color:transparent}.cim-widget-layout-commerce .cim-widget-message-group-child{width:100%}.cim-widget-layout-commerce .cim-widget-ask-cim-entry-message{width:auto;max-width:100%;padding:0;border:0;background-color:transparent;box-shadow:none}.cim-widget-layout-commerce .cim-widget-ask-cim-entry-text{box-sizing:border-box;width:100%;max-width:100%;margin:0;padding:1.25rem;border:1px solid var(--cim-widget-border-color, #e4e4e4);border-radius:var(--cim-widget-border-radius, .75rem);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #111111);line-height:1.5;box-shadow:0 1px 2px #0000000d}.cim-widget-layout-commerce .cim-widget-markdown,.cim-widget-layout-commerce .cim-widget-follow-up>.cim-widget-text,.cim-widget-layout-commerce .cim-widget-display-products{box-sizing:border-box;width:100%;max-width:100%;padding:1.25rem;border:1px solid var(--cim-widget-border-color, #e4e4e4);border-radius:var(--cim-widget-border-radius, .75rem);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #111111);box-shadow:0 1px 2px #0000000d}.cim-widget-layout-commerce .cim-widget-response-card{box-sizing:border-box;display:flex;flex-direction:column;gap:1rem;width:100%;max-width:100%;padding:1.25rem;border:1px solid var(--cim-widget-border-color, #e4e4e4);border-radius:var(--cim-widget-border-radius, .75rem);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #111111);box-shadow:0 1px 2px #0000000d}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown{width:auto;max-width:none;padding:0;border:0;border-radius:0;background-color:transparent;box-shadow:none}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-product-carousel{min-width:0;margin-bottom:0}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-msg-pdp{min-width:0;margin:0}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-cart{min-width:0;margin:0;padding:0;border:0;background-color:#fff}.cim-widget-layout-commerce .cim-widget-cart-box,.cim-widget-layout-commerce .cim-widget-cart-summary,.cim-widget-layout-commerce .cim-widget-cart-expanded,.cim-widget-layout-commerce .cim-widget-cart-coupon,.cim-widget-layout-commerce .cim-widget-cart-coupon-field,.cim-widget-layout-commerce .cim-widget-cart-coupon-input{background-color:#fff}.cim-widget-layout-commerce .cim-widget-cart-expanded{border-top:none}.cim-widget-layout-commerce .cim-widget-cart-totals{border-top:1px solid #dedede;padding-top:16px;gap:12px}.cim-widget-layout-commerce .cim-widget-cart-item-final-price{font-size:14px;font-weight:600}.cim-widget-layout-commerce .cim-widget-cart-total-row:not(.emphasized){font-size:14px}.cim-widget-layout-commerce .cim-widget-cart-summary{display:flex;align-items:center;gap:12px;padding:16px}.cim-widget-layout-commerce .cim-widget-cart-summary-icon-box{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;border-radius:8px;background-color:#f1f1f1;color:#181818}.cim-widget-layout-commerce .cim-widget-cart-summary-icon-box svg{width:20px;height:20px}.cim-widget-layout-commerce .cim-widget-cart-checkout-button{border-color:var(--cim-widget-border-color, #d3d3d3);background-color:var(--cim-widget-primary-color, #e8e8e8);color:var(--cim-widget-background-color, #ffffff);font-weight:600}.cim-widget-layout-commerce .cim-widget-cart-checkout-button:hover{border-color:var(--cim-widget-secondary-color, #b8b8b8);background-color:var(--cim-widget-secondary-color, #dcdcdc);color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-msg-pdp__card,.cim-widget-layout-commerce .cim-widget-msg-pdp__gallery,.cim-widget-layout-commerce .cim-widget-msg-pdp__content{background-color:#fff}.cim-widget-layout-commerce .cim-widget-msg-pdp__card{border-color:#dedede;border-radius:.75rem;box-shadow:0 1px 3px #00000012}.cim-widget-layout-commerce .cim-widget-msg-pdp__content{gap:1.25rem;padding:.75rem}.cim-widget-layout-commerce .cim-widget-msg-pdp__title,.cim-widget-layout-commerce .cim-widget-msg-pdp__title-link{color:#181818;font-size:.875rem}.cim-widget-layout-commerce .cim-widget-msg-pdp__description{color:#3e3e3c;font-size:.75rem;opacity:1}.cim-widget-layout-commerce .cim-widget-msg-pdp__description .cim-widget-markdown{padding:0;border:0;background-color:transparent;box-shadow:none}.cim-widget-layout-commerce button.cim-widget-msg-pdp__add-to-cart{min-height:2.25rem;border:1px solid var(--cim-widget-border-color, #d3d3d3);border-radius:var(--cim-widget-border-radius, .25rem);background-color:var(--cim-widget-primary-color, #e8e8e8);color:var(--cim-widget-background-color, #ffffff);font-weight:600}.cim-widget-layout-commerce button.cim-widget-msg-pdp__add-to-cart:hover:not(:disabled){border-color:var(--cim-widget-secondary-color, #b8b8b8);background-color:var(--cim-widget-secondary-color, #dcdcdc)}.cim-widget-layout-commerce label.cim-widget-msg-pdp__chip{border-radius:20px;background-color:#f1f1f1;border-color:var(--cim-widget-border-color, #e5e5e5);color:var(--cim-widget-font-color, #181818)}.cim-widget-layout-commerce label.cim-widget-msg-pdp__chip:hover{background-color:#ededed;border-color:var(--cim-widget-primary-color, #db665e)}.cim-widget-layout-commerce label.cim-widget-msg-pdp__chip.selected{background-color:var(--cim-widget-primary-color, #db665e);border-color:var(--cim-widget-primary-color, #db665e);color:#fff}.cim-widget-layout-commerce label.cim-widget-msg-pdp__chip.selected:hover{background-color:var(--cim-widget-secondary-color, #c9554d);border-color:var(--cim-widget-secondary-color, #c9554d);color:#fff}.cim-widget-layout-commerce label.cim-widget-msg-pdp__swatch.selected{outline:2px solid var(--cim-widget-primary-color, #181818);outline-offset:2px;border-color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-pdp-gallery__prev-trigger,.cim-widget-layout-commerce .cim-widget-pdp-gallery__next-trigger{width:2rem;height:2rem;padding:0;border:0;border-radius:.375rem;background-color:#f1f1f1;color:#5c5c5c;box-shadow:none}.cim-widget-layout-commerce .cim-widget-msg-product-card,.cim-widget-layout-commerce .cim-widget-msg-product-card__image-wrapper,.cim-widget-layout-commerce .cim-widget-msg-product-card__image-placeholder,.cim-widget-layout-commerce .cim-widget-msg-product-card__content{background-color:#fff}.cim-widget-layout-commerce .cim-widget-msg-product-card__title,.cim-widget-layout-commerce .cim-widget-msg-product-card__title-link,.cim-widget-layout-commerce .cim-widget-msg-product-card__price,.cim-widget-layout-commerce .cim-widget-product-tile-name,.cim-widget-layout-commerce .cim-widget-product-tile-price{font-family:"Source Sans Pro",var(--cim-widget-font-family, sans-serif);font-weight:600}.cim-widget-layout-commerce .cim-widget-carousel__control{padding:0}.cim-widget-layout-commerce .cim-widget-carousel__prev-trigger,.cim-widget-layout-commerce .cim-widget-carousel__next-trigger{width:2rem;min-width:2rem;height:2rem;min-height:2rem;padding:0;border:1px solid #dedede;border-radius:50%;background-color:#fff;color:#3e3e3c;box-shadow:0 2px 5px #00000026}.cim-widget-layout-commerce .cim-widget-carousel__prev-trigger{transform:translate(-50%)}.cim-widget-layout-commerce .cim-widget-carousel__next-trigger{transform:translate(50%)}.cim-widget-layout-commerce .cim-widget-carousel__prev-trigger:hover,.cim-widget-layout-commerce .cim-widget-carousel__next-trigger:hover{background-color:#fff;border-color:#c9c9c9;box-shadow:0 3px 7px #0000002e}.cim-widget-layout-commerce .cim-widget-carousel__prev-trigger:focus-visible,.cim-widget-layout-commerce .cim-widget-carousel__next-trigger:focus-visible{outline:2px solid #181818;outline-offset:2px}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown+.cim-widget-product-carousel,.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown+.cim-widget-cart,.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-cart+.cim-widget-markdown{padding-top:1rem;border-top:1px solid #e4e4e4}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown+.cim-widget-msg-pdp,.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-msg-pdp+.cim-widget-markdown{padding-top:1rem;border-top:none}.cim-widget-layout-commerce .cim-widget-markdown>:first-child,.cim-widget-layout-commerce .cim-widget-follow-up>.cim-widget-text{margin-top:0}.cim-widget-layout-commerce .cim-widget-markdown>:last-child,.cim-widget-layout-commerce .cim-widget-follow-up>.cim-widget-text{margin-bottom:0}.cim-widget-layout-commerce .cim-widget-ask-cim-suggestions-container,.cim-widget-layout-commerce .cim-widget-follow-up .cim-widget-suggestion-container{margin-top:.75rem}.cim-widget-layout-commerce .cim-widget-suggestion-container.embedded{display:flex;flex-wrap:wrap;gap:.5rem}.cim-widget-layout-commerce .cim-widget-suggestion-container.standalone{display:flex;flex-wrap:wrap;gap:.5rem;padding:0}.cim-widget-layout-commerce button.cim-widget-suggestion-button.embedded,.cim-widget-layout-commerce button.cim-widget-suggestion-button.standalone{min-height:2rem;padding:.4rem .8rem;border:1px solid var(--cim-widget-shopping-outline);border-radius:999px;background-color:var(--cim-widget-shopping-chip);color:var(--cim-widget-font-color, #303030);font-size:.8125rem;font-weight:400;line-height:1.25}.cim-widget-layout-commerce button.cim-widget-suggestion-button.embedded:hover,.cim-widget-layout-commerce button.cim-widget-suggestion-button.standalone:hover{border-color:var(--cim-widget-border-color, #b8b8b8);background-color:var(--cim-widget-secondary-color, #ededed);color:var(--cim-widget-background-color, #111111)}.cim-widget-layout-commerce button.cim-widget-suggestion-button.embedded:focus-visible,.cim-widget-layout-commerce button.cim-widget-suggestion-button.standalone:focus-visible{outline:2px solid var(--cim-widget-primary-color, #000000);outline-offset:2px}.cim-widget-layout-commerce .cim-widget-user-message.embedded,.cim-widget-layout-commerce .cim-widget-user-message.standalone{min-width:0;max-width:85%;margin:0;padding:.75rem 1rem;border-radius:var(--cim-widget-border-radius, .75rem);background-color:var(--cim-widget-primary-color, #3a3a3a);color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-user-message-text{font-family:"Source Sans Pro",var(--cim-widget-font-family, sans-serif);font-weight:400}.cim-widget-layout-commerce .cim-widget-message.embedded{margin-bottom:0}.cim-widget-layout-commerce .cim-widget-message.standalone{margin-bottom:0;padding:0}.cim-widget-layout-commerce .cim-widget-search-bar-wrapper{gap:.375rem;padding:.875rem 1.25rem 1rem;border-top:1px solid var(--cim-widget-border-color, #d5d5d5);background-color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-search-bar-wrapper.with-attachments{border-top-color:var(--cim-widget-border-color, #d5d5d5)}.cim-widget-layout-commerce .cim-widget-search-bar{gap:.5rem}.cim-widget-layout-commerce .cim-widget-search-bar:not(:has(.cim-widget-messaging-composer-group)),.cim-widget-layout-commerce .cim-widget-messaging-composer-group{position:relative;min-height:3.375rem;padding:.25rem .25rem .25rem .75rem;border:1px solid var(--cim-widget-shopping-outline);border-radius:999px;background-color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-search-bar:not(:has(.cim-widget-messaging-composer-group)):focus-within,.cim-widget-layout-commerce .cim-widget-messaging-composer-group:focus-within{border-color:var(--cim-widget-primary-color, #17171b);box-shadow:none}.cim-widget-layout-commerce .cim-widget-search-bar:has(.cim-widget-messaging-composer-group){min-height:auto;padding:0;border:0;border-radius:0;background-color:transparent}.cim-widget-layout-commerce .cim-widget-search-bar.cim-widget-search-bar-with-context:has(.cim-widget-messaging-composer-group){padding:.5rem .625rem;border:1px solid var(--cim-widget-shopping-outline);border-radius:1.5rem;background-color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-search-bar-with-context:focus-within{border-color:var(--cim-widget-primary-color, #17171b)}.cim-widget-layout-commerce .cim-widget-search-bar-with-context .cim-widget-messaging-composer-group{min-height:2.75rem;padding:0;border:0;border-radius:0;background-color:transparent}.cim-widget-layout-commerce .cim-widget-connection-status-icon{display:none}.cim-widget-layout-commerce input.cim-widget-search-input{min-height:2.75rem;padding:0 .625rem;border:0;border-radius:999px;background-color:transparent;color:var(--cim-widget-font-color, #111111);outline:0;box-shadow:none}.cim-widget-layout-commerce input.cim-widget-search-input::placeholder{color:var(--cim-widget-shopping-muted);opacity:1}.cim-widget-layout-commerce .cim-widget-messaging-composer-group .cim-widget-messaging-input-group{border:0;border-radius:999px}.cim-widget-layout-commerce .cim-widget-messaging-composer-group .cim-widget-messaging-input-group:focus-within{border-color:transparent}@media(forced-colors:active){.cim-widget-layout-commerce .cim-widget-search-bar:not(:has(.cim-widget-messaging-composer-group)):focus-within,.cim-widget-layout-commerce .cim-widget-messaging-composer-group:focus-within{outline:2px solid Highlight;outline-offset:2px}}.cim-widget-layout-commerce .cim-widget-search-button-icon{flex:0 0 auto;width:2.75rem;min-width:2.75rem;min-height:2.75rem;border:0;border-radius:50%;background-color:#111;color:#fff}.cim-widget-layout-commerce .cim-widget-search-button-icon svg{padding:.75rem}.cim-widget-layout-commerce .cim-widget-search-button-icon:hover{background-color:#333;border-color:transparent}.cim-widget-layout-commerce .cim-widget-search-button-icon:focus-visible{outline:2px solid #000000;outline-offset:3px}.cim-widget-layout-commerce .cim-widget-disclaimer{padding-bottom:0;color:var(--cim-widget-shopping-muted)}@media(max-width:576px){.cim-widget-layout-commerce .cim-widget-message-container{padding:1rem}.cim-widget-layout-commerce .cim-widget-search-bar-wrapper{padding-right:1rem;padding-left:1rem}}.cim-widget-prompts-extension-container{height:100%;width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:1rem .5rem 1rem 1.25rem;gap:.75rem;font-size:.875rem;font-family:var(--cim-widget-font-family, inherit);background-color:var(--cim-widget-background-color);color:var(--cim-widget-font-color, inherit);border:1px solid var(--cim-widget-border-color);border-radius:var(--cim-widget-border-radius);box-sizing:border-box}.cim-widget-prompts-input-container{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;label[for=cim-widget-prompts-input]{width:auto}.cim-widget-prompts-input-icon{width:20px;height:20px;color:var(--cim-widget-primary-color)}input.cim-widget-prompts-input{width:100%;padding:.25rem 0;outline:none;border-color:transparent;background-color:transparent;border-bottom-width:1px;border-bottom-color:var(--cim-widget-border-color);font-family:var(--cim-widget-font-family, inherit);color:var(--cim-widget-font-color, inherit);&:disabled{opacity:.6;cursor:not-allowed}}input.cim-widget-prompts-input:focus{border-bottom-color:color-mix(in srgb,var(--cim-widget-primary-color),white 25%)}.cim-widget-prompts-input-submit-button:disabled{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-prompts-header{display:flex;align-items:center;gap:.5rem;width:100%;.cim-widget-prompts-input-icon{width:20px;height:20px;color:var(--cim-widget-primary-color);flex-shrink:0}.cim-widget-prompts-header-text{color:var(--cim-widget-font-color, inherit)}}.cim-widget-prompts-button-group{display:inline-flex;flex-wrap:wrap;gap:.5rem;width:100%}.cim-widget-prompts-button{height:auto;padding:.2rem .5rem;border:1px solid var(--cim-widget-primary-color);border-radius:var(--cim-widget-border-radius);background-color:transparent;font-size:.875rem;font-weight:700;font-family:inherit;color:var(--cim-widget-primary-color);white-space:normal;word-break:break-word;text-align:left;cursor:pointer}.cim-widget-prompts-button.has-icon{display:inline-flex;align-items:center;gap:.35rem}.cim-widget-prompts-button.icon-right{flex-direction:row-reverse;justify-content:start}.cim-widget-prompts-button:hover{background-color:#fff;color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-prompts-button:disabled{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a;cursor:not-allowed}.cim-widget-prompts-button:disabled:hover{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a}.cim-widget-prompts-extension-messages-container{display:flex;flex-direction:column;gap:1rem;height:100%;width:100%;scrollbar-gutter:stable;overflow-y:auto}.cim-widget-prompts-user-message-container{display:flex;align-items:center;justify-content:flex-end;width:100%}.cim-widget-prompts-user-message{margin:0;max-width:85%;padding:.25rem 1rem;color:#fff;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-primary-color);background-color:var(--cim-widget-primary-color)}.cim-widget-prompts-response-container{display:flex;flex:none;flex-direction:column;justify-content:flex-start;padding:.5rem 1rem;border-radius:var(--cim-widget-border-radius);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent);overscroll-behavior:auto;max-width:85%}
1
+ (function(Fe,$e){typeof exports=="object"&&typeof module!="undefined"?$e(exports):typeof define=="function"&&define.amd?define(["exports"],$e):(Fe=typeof globalThis!="undefined"?globalThis:Fe||self,$e(Fe.CimulateCopilot={}))})(this,(function(Fe){"use strict";var wU=Object.defineProperty,_U=Object.defineProperties;var xU=Object.getOwnPropertyDescriptors;var Ad=Object.getOwnPropertySymbols;var Q2=Object.prototype.hasOwnProperty,J2=Object.prototype.propertyIsEnumerable;var Js=(Fe,$e)=>($e=Symbol[Fe])?$e:Symbol.for("Symbol."+Fe),SU=Fe=>{throw TypeError(Fe)},zu=Math.pow,m0=(Fe,$e,Qe)=>$e in Fe?wU(Fe,$e,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Fe[$e]=Qe,B=(Fe,$e)=>{for(var Qe in $e||($e={}))Q2.call($e,Qe)&&m0(Fe,Qe,$e[Qe]);if(Ad)for(var Qe of Ad($e))J2.call($e,Qe)&&m0(Fe,Qe,$e[Qe]);return Fe},pe=(Fe,$e)=>_U(Fe,xU($e));var pn=(Fe,$e)=>{var Qe={};for(var dt in Fe)Q2.call(Fe,dt)&&$e.indexOf(dt)<0&&(Qe[dt]=Fe[dt]);if(Fe!=null&&Ad)for(var dt of Ad(Fe))$e.indexOf(dt)<0&&J2.call(Fe,dt)&&(Qe[dt]=Fe[dt]);return Qe};var Te=(Fe,$e,Qe)=>m0(Fe,typeof $e!="symbol"?$e+"":$e,Qe);var et=(Fe,$e,Qe)=>new Promise((dt,It)=>{var Tt=wt=>{try{un(Qe.next(wt))}catch(Cn){It(Cn)}},Ue=wt=>{try{un(Qe.throw(wt))}catch(Cn){It(Cn)}},un=wt=>wt.done?dt(wt.value):Promise.resolve(wt.value).then(Tt,Ue);un((Qe=Qe.apply(Fe,$e)).next())}),Qr=function(Fe,$e){this[0]=Fe,this[1]=$e},vd=(Fe,$e,Qe)=>{var dt=(un,wt,Cn,pr)=>{try{var Ki=Qe[un](wt),Ho=(wt=Ki.value)instanceof Qr,zo=Ki.done;Promise.resolve(Ho?wt[0]:wt).then(In=>Ho?dt(un==="return"?un:"next",wt[1]?{done:In.done,value:In.value}:In,Cn,pr):Cn({value:In,done:zo})).catch(In=>dt("throw",In,Cn,pr))}catch(In){pr(In)}},It=(un,wt,Cn,pr)=>Ue[un]=Ki=>(wt=new Promise((Ho,zo,In)=>(In=()=>dt(un,Ki,Ho,zo),Tt?Tt.then(In):In())),pr=()=>Tt===Cn&&(Tt=0),Tt=Cn=wt.then(pr,pr),wt),Tt,Ue={};return Qe=Qe.apply(Fe,$e),Ue[Js("asyncIterator")]=()=>Ue,It("next"),It("throw"),It("return"),Ue},g0=Fe=>{var $e=Fe[Js("asyncIterator")],Qe=!1,dt,It={};return $e==null?($e=Fe[Js("iterator")](),dt=Tt=>It[Tt]=Ue=>$e[Tt](Ue)):($e=$e.call(Fe),dt=Tt=>It[Tt]=Ue=>{if(Qe){if(Qe=!1,Tt==="throw")throw Ue;return Ue}return Qe=!0,{done:!1,value:new Qr(new Promise(un=>{var wt=$e[Tt](Ue);wt instanceof Object||SU("Object expected"),un(wt)}),1)}}),It[Js("iterator")]=()=>It,dt("next"),"throw"in $e?dt("throw"):It.throw=Tt=>{throw Tt},"return"in $e&&dt("return"),It},Z2=(Fe,$e,Qe)=>($e=Fe[Js("asyncIterator")])?$e.call(Fe):(Fe=Fe[Js("iterator")](),$e={},Qe=(dt,It)=>(It=Fe[dt])&&($e[dt]=Tt=>new Promise((Ue,un,wt)=>(Tt=It.call(Fe,Tt),wt=Tt.done,Promise.resolve(Tt.value).then(Cn=>Ue({value:Cn,done:wt}),un)))),Qe("next"),Qe("return"),$e);var $e=document.createElement("style");$e.textContent=`.cim-widget-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;height:auto;line-height:normal;background-color:transparent;border:1px solid transparent;border-radius:var(--cim-widget-border-radius);padding:0;cursor:pointer;color:#333;font-size:18px;svg{padding:6px;height:100%;width:100%}&:hover{background-color:#f0f0f0}&:disabled,&[disabled]{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-icon-image{object-fit:contain;padding:6px;width:.875em;height:.875em}.cim-widget-minimized-container{--base-color: var(--cim-widget-primary-color, #3182ce);--base-color-darken: color-mix(in srgb, var(--base-color), black 20%);position:fixed;z-index:9999;bottom:1rem;right:1rem;display:flex;align-items:center;justify-content:center;.cim-widget-minimized-button{height:3rem;width:3rem;border-radius:50%;padding:.25rem;border:none;color:#fff;box-shadow:0 4px 6px #00000040,0 1px 3px #00000050;background-color:var(--base-color);transition:background-color .1s ease-in-out;&:active{transform:translateY(1px);box-shadow:0 4px 6px #00000020,0 1px 3px #00000030}&:hover{background-color:var(--base-color-darken)}}.cim-widget-minimized-icon-img{object-fit:contain;width:stretch;height:stretch}}.cim-widget-minimized-container.cim-widget-layout-commerce .cim-widget-minimized-button{animation:cim-widget-fab-pulse 2s infinite ease-in-out;transition:transform .2s ease,background-color .2s ease}.cim-widget-minimized-container.cim-widget-layout-commerce .cim-widget-minimized-button:hover{transform:scale(1.1);animation-play-state:paused}.cim-widget-minimized-container.cim-widget-layout-commerce{background-color:transparent}@keyframes cim-widget-fab-pulse{0%,to{box-shadow:0 4px 10px #00000040,0 0 0 .1px color-mix(in srgb,var(--base-color) 40%,transparent)}50%{box-shadow:0 4px 15px #00000059,0 0 0 8px color-mix(in srgb,var(--base-color) 0%,transparent)}}.cim-widget-close-button{display:flex;align-items:center;justify-content:center;padding:.5rem;height:auto;line-height:normal;border-radius:var(--cim-widget-border-radius);border:1px solid transparent;background-color:transparent;cursor:pointer;&:hover{background-color:#f0f0f0}}.cim-widget-button{--base-color: var(--cim-widget-primary-color, #3182ce);padding:.25rem .5rem;min-height:32px;height:auto;line-height:normal;background-color:var(--base-color);border-radius:var(--cim-widget-border-radius);border-color:var(--base-color);border-style:solid;color:#fff;font-family:var(--cim-widget-font-family, inherit);cursor:pointer;&:disabled,&[disabled]{cursor:not-allowed;opacity:.6}&:hover{background-color:color-mix(in srgb,var(--base-color),black 20%);border-color:color-mix(in srgb,var(--base-color),black 20%)}&:focus-visible{outline:2px solid color-mix(in srgb,var(--base-color),white 25%)}}.cim-widget-cancel-button{color:#8a8a8a}.cim-widget-disclaimer{display:flex;flex-direction:column;padding:0 .5rem .5rem;gap:.5rem}.cim-widget-disclaimer-text{font-size:.75rem;color:#00000090;margin:0}.cim-widget-disclaimer-image{object-fit:contain;height:100%;width:100%}.cim-widget-search-bar-wrapper{display:flex;flex-direction:column;padding:.5rem;gap:.5rem;&.with-attachments{border-top:1px solid var(--cim-widget-border-color)}}.cim-widget-search-bar{display:flex;align-items:center;gap:4px;font-family:var(--cim-widget-font-family);&.drag-over{outline:2px dashed var(--cim-widget-primary-color);outline-offset:2px}}.cim-widget-image-file-preview{display:inline-flex;align-items:center;gap:8px;padding-left:.5rem}.cim-widget-image-preview{object-fit:contain;max-height:2.5rem;&.cim-modal-component{max-height:3.5rem}}.cim-widget-image-file-name{width:100%;font-size:.8rem;color:#00000090;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-clamp:3;overflow:hidden}.cim-widget-close-button.clear-attachment{padding:.15rem;color:#00000090}input.cim-widget-search-input{width:100%;height:stretch;min-width:0;min-height:2rem;padding:0 8px;font-size:.875rem;background-color:transparent;border:1px solid #00000040;border-radius:var(--cim-widget-border-radius)}@media(max-width:576px){input.cim-widget-search-input{font-size:16px}}.cim-widget-connection-status-icon{display:inline-block;min-width:8px;width:.6rem;height:.5rem;border-radius:50%;margin:.35rem;vertical-align:middle;&.connected{background-color:#00d60080}&.disconnected{background-color:#c9c7c7}}.cim-widget-image-upload-button-container{display:inline-flex;height:100%}button.cim-widget-image-upload-button{display:inline-flex;justify-content:center;align-items:center;padding:8px;margin:0;color:inherit;background:transparent;border:0;border-radius:var(--cim-widget-border-radius);cursor:pointer;&:hover{background-color:#f0f0f0}&:disabled,&.disabled{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-search-button{display:inline-flex;align-items:center;white-space:nowrap;gap:.25rem}.cim-widget-search-button-icon{--base-color: var(--cim-widget-primary-color, #3182ce);background-color:var(--base-color);border-color:var(--base-color);color:#fff;&:disabled,&[disabled]{background-color:var(--base-color);border-color:var(--base-color);opacity:.6}&:hover{background-color:color-mix(in srgb,var(--base-color),black 20%);border-color:color-mix(in srgb,var(--base-color),black 20%)}}.cim-widget-search-button-icon-image{object-fit:contain;width:1.25em;height:1.25em}.cim-widget-file-input{display:none}.cim-widget-attach-error{color:#e53e3e;font-size:.75rem;padding:4px 8px 0}.cim-widget-messaging-input-group{display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:4px;border:1px solid #00000040;border-radius:var(--cim-widget-border-radius);&:focus-within{border-color:var(--cim-widget-primary-color, #3182ce)}& input.cim-widget-search-input{flex:1 1 auto;width:auto;border:none;border-radius:0}& button.cim-widget-image-upload-button{flex:0 0 auto}.cim-widget-image-upload-label{font-size:1.25rem;line-height:1}}.cim-widget-messaging-composer-group{display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:4px}.cim-widget-overflow-menu{position:relative;height:auto;width:auto}.cim-widget-overflow-menu-list{width:170px;background:#fff;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color)}.cim-widget-overflow-menu-button{background-color:#fff}.cim-widget-overflow-menu-button-trigger,.cim-widget-overflow-menu-button{display:inline-flex;align-items:center;width:100%;border:1px solid transparent;border-radius:var(--cim-widget-border-radius);cursor:pointer;color:#333;&:hover{background-color:#f0f0f0}}.cim-widget-overflow-menu-button{gap:.5rem;padding:.5rem .75rem;background-color:#f0f0f080;svg{font-size:.75rem}}.cim-widget-carousel{position:relative;width:100%}.cim-widget-carousel__item-group{padding:4px 0;justify-content:flex-start;&.carousel-row-container{display:flex}}.cim-widget-carousel__item{flex-shrink:0;>*{height:100%}}.cim-widget-carousel__control{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;padding:0 4px}.cim-widget-carousel__prev-trigger,.cim-widget-carousel__next-trigger{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:1rem 0;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color, #d1d5db);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #3f3f46);cursor:pointer;box-shadow:0 1px 3px #0000001a;transition:background-color .15s ease,box-shadow .15s ease;&:hover{color:var(--cim-widget-font-color, #1a202c)}}.cim-widget-carousel__prev-trigger:hover,.cim-widget-carousel__next-trigger:hover{background-color:#f9fafb;box-shadow:0 2px 6px #0000001f}.cim-widget-carousel__prev-trigger:disabled,.cim-widget-carousel__next-trigger:disabled{opacity:.4;cursor:not-allowed}.cim-widget-carousel__indicator-group{display:flex;justify-content:center;gap:6px;padding-top:12px}.cim-widget-carousel__indicator{width:6px;height:6px;border-radius:3px;border:none;background-color:var(--cim-widget-border-color, #d1d5db);cursor:pointer;padding:0;transition:width .2s cubic-bezier(.16,1,.3,1),background-color .2s ease}.cim-widget-carousel__indicator[data-current]{background-color:var(--cim-widget-font-color, #1a202c);width:16px;border-radius:3px}.cim-widget-carousel__indicator:hover:not([data-current]){background-color:var(--cim-widget-font-color, #1a202c);opacity:.5}.cim-widget-overflow-panel{position:absolute;top:100%;left:0;right:0;display:flex;flex-direction:column;gap:.5rem;padding:.5rem;background:#fff;border-bottom:1px solid var(--cim-widget-border-color);z-index:10}.cim-widget-overflow-panel .cim-widget-overflow-menu-button{width:100%;justify-content:center;gap:.75rem;font-size:.875rem}.cim-widget-left-right-toggle-button{display:none}@media(min-width:576px){.cim-widget-left-right-toggle-button{display:inline-flex}}.cim-widget-toggle-modal-button.cim-dialog-component{display:none}@media(min-width:576px){.cim-widget-toggle-modal-button.cim-dialog-component{display:inline-flex}}.cim-widget-product-tile{display:inline-flex;flex-direction:column;background-color:#fff;border-radius:var(--cim-widget-border-radius);box-shadow:0 1px 3px #0000001a}.cim-widget-product-tile.embedded,.cim-widget-product-tile.standalone{min-width:10dvw;max-width:30dvw}.cim-widget-product-tile-image{object-fit:contain;width:100%;height:auto;max-height:25dvh;border-top-left-radius:4px;border-top-right-radius:4px}.cim-widget-product-tile-details{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:.5rem}.cim-widget-product-tile-brand{color:var(--cim-widget-primary-color)}.cim-widget-product-tile-pdp,.cim-widget-product-tile-name,.cim-widget-product-tile-price,.cim-widget-product-tile-pid{display:inline-block;line-height:1.25rem;font-size:.875rem}.cim-widget-product-tile-name{font-weight:700}.cim-widget-product-tile-pdp{color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 85%,black);text-decoration:none;word-wrap:break-word;&:hover{text-decoration:underline}}.cim-widget-product-tile-pdp-arrow{display:inline-block;transform:rotate(-45deg)}.cim-widget-product-tile-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.5rem;gap:.5rem}.cim-widget-product-tile-price{font-weight:700}@media(max-width:576px){.cim-widget-product-tile.embedded,.cim-widget-product-tile.standalone{min-width:30dvw;max-width:45dvw}.cim-widget-product-tile-pdp,.cim-widget-product-tile-name{display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}.cim-widget-display-products{flex-direction:column}.cim-widget-error-message-text{display:inline-flex;align-items:center;gap:.5rem;color:#e53e3e;&.embedded svg{min-width:1.25rem;height:1.25rem}}.cim-widget-blinking-cursor{display:inline-flex;margin-left:2px;line-height:0;animation:cim-widget-cursor-blink 1.5s steps(2) infinite}@keyframes cim-widget-cursor-blink{0%{opacity:0}}.cim-widget-ul{list-style-type:disc;padding-left:1.5rem}.cim-widget-ol{list-style-type:decimal;padding-left:1.5rem}.cim-widget-table-container{margin-top:1rem;margin-bottom:1rem;margin-right:.5rem;overflow-x:auto}.cim-widget-table{border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--cim-widget-border-color);border-collapse:collapse;width:100%}.cim-widget-thead{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent);border-bottom-width:2px;border-color:var(--cim-widget-border-color)}.cim-widget-tbody{border-width:0px;box-sizing:border-box;background-color:#ffffff90;overflow-wrap:break-word}.cim-widget-tr{border-style:solid;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-th{padding:.5rem 1rem;text-align:left;font-weight:700;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-td{padding:.5rem 1rem;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-message-container pre{margin:0}.cim-widget-progress-message.embedded,.cim-widget-progress-message.standalone{display:flex;align-items:center}.cim-widget-progress-text.embedded{font-size:.85rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 80%,white);line-height:1rem;line-clamp:3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cim-widget-progress-text.standalone{font-size:inherit;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 85%,white)}.cim-widget-thought-container{padding-left:.5rem;margin:.5rem;border-left:2px solid var(--cim-widget-primary-color)}p.cim-widget-progress-thought{margin-bottom:1rem;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 70%,white);line-height:1;font-size:.875rem}.cim-widget-thought-context-button{display:inline-flex;align-items:center;justify-content:space-between;padding:.25rem;min-width:84px;background-color:transparent;border-color:transparent;color:var(--cim-widget-primary-color);font-weight:700;cursor:pointer;&:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}}.cim-widget-message-icon.progress-icon.embedded{color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 50%,white)}.cim-widget-refined-event{display:flex;flex-direction:column}.cim-widget-refined-event-query{display:inline-flex;align-items:center;gap:4px;color:var(--cim-widget-primary-color)}.cim-widget-refined-event-query-text{line-height:normal}.cim-widget-message-icon.refined-event-icon{font-size:1.5rem;&.embedded,&.standalone{color:var(--cim-widget-primary-color)}}.cim-widget-facet-pill{display:inline-flex;align-items:center;margin-left:4px;padding:.25rem .5rem;color:var(--cim-widget-primary-color);border-radius:9999px;font-size:.75rem;font-weight:700;&.embedded{background-color:#ffffff90}&.standalone{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent)}}.cim-widget-facet-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.25rem}.cim-widget-facets{display:flex;flex-direction:column;padding:.25rem}.cim-widget-facets .cim-widget-facet-category{margin-bottom:0;font-size:.875rem;font-weight:700;word-wrap:break-word}.cim-widget-facets .cim-widget-facet-values{margin-top:0;font-size:.675rem}.cim-widget-message-timestamp.standalone{font-size:.75rem;color:#00000090}.cim-widget-message-timestamp.embedded{font-size:.65rem;color:#333333bf}.cim-widget-user-message{display:flex;flex-direction:column;gap:.5rem;.cim-widget-user-message-row{display:inline-flex;align-items:center;gap:.5rem}}.cim-widget-user-message.embedded{display:inline-flex;align-self:flex-end;padding:.5rem 1rem;border-radius:var(--cim-widget-border-radius);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:50%}.cim-widget-user-message.standalone{margin:.5rem 0}.cim-widget-user-message-image{object-fit:contain;border-radius:8px;&.embedded{max-height:2.5rem}&.standalone{max-height:3.5rem}}.cim-widget-user-message-text{font-weight:700}.cim-widget-user-message-text.standalone{font-size:1.125rem;margin:0}.cim-widget-user-message-text.embedded{margin:0}.cim-widget-message-icon.user-message-icon.embedded{color:var(--cim-widget-primary-color)}.cim-widget-user-search{display:flex;flex-direction:column}.cim-widget-user-search.embedded{display:inline-flex;align-self:flex-end;padding:.5rem 1rem;border-radius:var(--cim-widget-border-radius);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:50%;gap:4px}.cim-widget-user-search.standalone{flex-direction:column;font-size:1.125rem;padding-top:.5rem;padding-bottom:.5rem}.cim-widget-user-search-image{object-fit:contain;border-radius:8px;&.embedded{max-height:2.5rem}&.standalone{max-height:3.5rem}}.cim-widget-user-search-query{display:inline-flex}.cim-widget-message-icon.user-search-icon.embedded,.cim-widget-message-icon.user-search-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}.cim-widget-reset-message{font-size:.75rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 75%,white)}.cim-widget-start-search-message{font-size:.875rem;font-weight:700;color:var(--cim-widget-font-color)}.cim-widget-message-group,.cim-widget-message{display:flex;flex-direction:column}.cim-widget-message-group{gap:.5rem;padding:.5rem 1rem;margin-bottom:1rem;border-radius:var(--cim-widget-border-radius);&.standalone{padding:0 1rem}.cim-widget-message-group-child{max-width:100%;margin-bottom:.25rem}}.cim-widget-message-group.embedded{max-width:80%;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent)}.cim-widget-message{margin-bottom:1rem}.cim-widget-message.standalone{border-radius:0;background-color:transparent;padding:0 1rem}.cim-widget-message.embedded{margin-bottom:1rem}.cim-widget-embedded-chat{position:relative;width:100%;height:100%;margin:0 auto;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color)}.cim-widget-embedded-chat>.cim-widget-message-container{padding-top:2rem;padding-left:1rem;padding-right:1rem}.cim-widget-embedded-chat-menu{position:absolute;top:.25rem;right:.25rem}.cim-widget-embedded-chat.cim-widget-layout-commerce>.cim-widget-message-container{padding-top:3.75rem}.cim-widget-embedded-chat.cim-widget-layout-commerce .cim-widget-embedded-chat-menu{top:.75rem;right:.75rem}.cim-widget-overflow-menu-button-trigger.cim-chat-component{border:1px solid var(--cim-widget-border-color);border-radius:var(--cim-widget-border-radius);background-color:#fff}.cim-widget-overflow-menu-button.cim-chat-component{background-color:#fff;border-radius:var(--cim-widget-border-radius);&:hover{background-color:#f0f0f0}}.cim-widget-dialog{box-sizing:border-box;position:fixed;width:35dvw;max-width:100dvw;height:55dvh;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color);font-size:.875rem;z-index:9999;&.full-height{height:100%}&.full-height.bottom-left{bottom:0;left:0}&.full-height.bottom-right{bottom:0;right:0}&.bottom-left{bottom:.5rem;left:.5rem;animation:cim-widget-dialog-slide-in-left .25s ease-out}&.bottom-right{bottom:.5rem;right:.5rem;animation:cim-widget-dialog-slide-in-right .25s ease-out}.cim-widget-message-group.embedded{max-width:100%}}.cim-widget-dialog-content{display:flex;flex-direction:column;height:100%}.cim-widget-dialog-header{display:inline-flex;align-items:center;padding:.5rem 1rem;gap:8px;border-bottom:1px solid var(--cim-widget-border-color);background-color:var(--cim-widget-header-background-color)}.cim-widget-dialog-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-dialog-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-dialog-title{width:100%;margin-top:0;margin-bottom:0;line-height:normal;color:var(--cim-widget-header-text-color, inherit);font-size:var(--cim-widget-header-text-font-size);font-weight:var(--cim-widget-header-text-font-weight, bold);font-family:var(--cim-widget-header-text-font-family, inherit);text-align:var(--cim-widget-header-text-text-align, left)}.cim-widget-dialog.cim-widget-layout-commerce{border:0}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-header{box-sizing:border-box;height:3.875rem;min-height:3.875rem;gap:.75rem;padding:.75rem 8rem .75rem 1.5rem;border-bottom:1px solid var(--cim-widget-border-color, #e0e0e0);box-shadow:0 1px 1px -1px #17171b08,0 14px 30px -20px #17171b1a;background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #181818)}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-logo{box-sizing:border-box;width:1.75rem;max-width:1.75rem;height:1.75rem;padding:.25rem;border-radius:.375rem;background-color:var(--cim-widget-primary-color, #17171b)}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-title{overflow:hidden;color:var(--cim-widget-font-color, #181818);font-size:1rem;font-weight:400;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-controls{top:50%;right:1rem;transform:translateY(-50%)}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-controls button{color:var(--cim-widget-font-color, #181818)}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-controls button:hover{background-color:var(--cim-widget-border-color, #f3f3f3)}@media(min-width:576px)and (max-width:768px){.cim-widget-dialog{width:50%}}@media(max-width:576px){.cim-widget-dialog{height:100%;width:100dvw;max-width:100dvw;border-radius:0;&.full-height{height:100%}&.bottom-left{bottom:0;left:0}&.bottom-right{bottom:0;right:0}}.cim-widget-dialog.bottom-left,.cim-widget-dialog.bottom-right{animation:none}.cim-widget-dialog.cim-widget-layout-commerce .cim-widget-dialog-header{height:3.875rem;min-height:3.875rem;padding-left:1rem;padding-right:7.5rem}}@media(prefers-reduced-motion:reduce){.cim-widget-dialog.bottom-left,.cim-widget-dialog.bottom-right{animation:none}}@keyframes cim-widget-dialog-slide-in-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes cim-widget-dialog-slide-in-left{0%{transform:translate(-100%)}to{transform:translate(0)}}.cim-widget-modal-container{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;height:100dvh;width:100dvw;z-index:9999}.cim-widget-modal-backdrop{position:absolute;top:0;left:0;height:100%;width:100%;background:#00000080}.cim-widget-modal{position:fixed;width:70dvw;height:80dvh;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-border-color);overflow-y:hidden;&.fullscreen{height:100%;width:100%;border-radius:0}}.cim-widget-modal-content{display:flex;flex-direction:column;height:100%}.cim-widget-modal-header{display:inline-flex;align-items:center;padding:.5rem 1rem;gap:8px;border-bottom:1px solid var(--cim-widget-border-color);background-color:var(--cim-widget-header-background-color)}.cim-widget-modal-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-modal-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-modal-title{width:100%;margin-top:0;margin-bottom:0;line-height:normal;color:var(--cim-widget-header-text-color, inherit);font-size:var(--cim-widget-header-text-font-size);font-weight:var(--cim-widget-header-text-font-weight, bold);font-family:var(--cim-widget-header-text-font-family, inherit);text-align:var(--cim-widget-header-text-text-align, left)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-header{box-sizing:border-box;height:3.875rem;min-height:3.875rem;gap:.75rem;padding:.75rem 8rem .75rem 1.5rem;border-bottom:1px solid var(--cim-widget-border-color, #e0e0e0);box-shadow:0 1px 1px -1px #17171b08,0 14px 30px -20px #17171b1a;background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #181818)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-logo{box-sizing:border-box;width:1.75rem;max-width:1.75rem;height:1.75rem;padding:.25rem;border-radius:.375rem;background-color:var(--cim-widget-primary-color, #17171b)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-title{overflow:hidden;color:var(--cim-widget-font-color, #181818);font-size:1rem;font-weight:400;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-controls{top:50%;right:1rem;transform:translateY(-50%)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-controls button{color:var(--cim-widget-font-color, #181818)}.cim-widget-modal.cim-widget-layout-commerce .cim-widget-modal-controls button:hover{background-color:var(--cim-widget-border-color, #f3f3f3)}.cim-widget-modal-fullscreen-button,.cim-widget-modal-toggle-dialog-button{display:none}@media(max-width:576px){.cim-widget-modal{height:100%;width:100%;border-radius:0}}@media(min-width:576px){.cim-widget-modal-fullscreen-button,.cim-widget-modal-toggle-dialog-button{display:inline-flex}}.cim-widget-container{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--cim-widget-background-color);font-family:var(--cim-widget-font-family, inherit);color:var(--cim-widget-font-color, inherit)}.cim-widget-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cim-widget-message-container p{margin:.25rem 0;padding:0;+p{margin-top:.5rem}}.cim-widget-message-container span{line-height:1}.cim-widget-header{font-weight:700;color:inherit}.cim-widget-header.h1{margin-top:2rem;margin-bottom:2rem;font-size:1rem}.cim-widget-header.h2{margin-top:1.5rem;margin-bottom:1.5rem;font-size:1rem}.cim-widget-header.h3{margin-top:1rem;margin-bottom:1rem;font-size:1rem}.cim-widget-link{color:var(--cim-widget-primary-color);text-decoration:underline;cursor:pointer}.cim-widget-link:hover{color:var(--cim-widget-secondary-color);text-decoration:none}.cim-widget-text{line-height:1.5;color:inherit;margin-bottom:.25rem}.cim-widget-text.italic{font-style:italic}.cim-widget-text.bold{font-weight:700}.cim-widget-message-container{display:flex;flex-direction:column;flex:1;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere;padding:1rem;&.container-end{>:first-child{margin-top:auto}}}.cim-widget-message-icon{display:inline-flex;align-items:center;margin-right:.25rem}.cim-widget-message-icon.embedded{font-size:1rem;color:var(--cim-widget-secondary-color)}.cim-widget-message-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}.cim-widget-suggestion-container.embedded{display:inline-flex;flex-wrap:wrap;gap:.5rem}.cim-widget-suggestion-button.embedded{height:auto;padding:.2rem .5rem;border:1px solid var(--cim-widget-primary-color);border-radius:var(--cim-widget-border-radius);background-color:transparent;font-size:.875rem;font-weight:600;font-family:inherit;line-height:normal;text-transform:none;color:var(--cim-widget-primary-color);white-space:normal;word-break:break-word;text-align:left;cursor:pointer}.cim-widget-suggestion-button.embedded:hover{background-color:#fff;color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-container.standalone{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem;padding:.5rem 0}@media(max-width:768px){.cim-widget-suggestion-container.standalone{grid-template-columns:repeat(1,1fr)}}.cim-widget-suggestion-button.standalone{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid var(--cim-widget-primary-color);border-radius:var(--cim-widget-border-radius);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);font-weight:700;line-height:normal;color:var(--cim-widget-primary-color);text-align:left;white-space:normal;word-break:break-word}.cim-widget-suggestion-button.standalone:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 15%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-button.has-icon{display:inline-flex;align-items:center;gap:.35rem}.cim-widget-suggestion-button.icon-right{flex-direction:row-reverse;justify-content:start}.cim-widget-suggestion-button-icon{flex-shrink:0}.cim-widget-suggestion-button:disabled{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a;cursor:not-allowed}.cim-widget-suggestion-button:disabled:hover{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a}.cim-widget-layout-commerce{--cim-widget-shopping-canvas: #fcfcfc;--cim-widget-shopping-chip: #f7f7f7;--cim-widget-shopping-muted: #5c5c5c;--cim-widget-shopping-outline: #a3a3a3;background-color:var(--cim-widget-shopping-canvas)}.cim-widget-layout-commerce .cim-widget-message-container{gap:1rem;padding:1.25rem;background-color:var(--cim-widget-shopping-canvas)}.cim-widget-layout-commerce .cim-widget-message-group{width:100%;max-width:100%;margin-bottom:0;padding:0;border:0;background-color:transparent}.cim-widget-layout-commerce .cim-widget-message-group-child{width:100%}.cim-widget-layout-commerce .cim-widget-ask-cim-entry-message{width:auto;max-width:100%;padding:0;border:0;background-color:transparent;box-shadow:none}.cim-widget-layout-commerce .cim-widget-ask-cim-entry-text{box-sizing:border-box;width:100%;max-width:100%;margin:0;padding:1.25rem;border:1px solid var(--cim-widget-border-color, #e4e4e4);border-radius:var(--cim-widget-border-radius, .75rem);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #111111);line-height:1.5;box-shadow:0 1px 2px #0000000d}.cim-widget-layout-commerce .cim-widget-markdown,.cim-widget-layout-commerce .cim-widget-follow-up>.cim-widget-text,.cim-widget-layout-commerce .cim-widget-display-products{box-sizing:border-box;width:100%;max-width:100%;padding:1.25rem;border:1px solid var(--cim-widget-border-color, #e4e4e4);border-radius:var(--cim-widget-border-radius, .75rem);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #111111);box-shadow:0 1px 2px #0000000d}.cim-widget-layout-commerce .cim-widget-response-card{box-sizing:border-box;display:flex;flex-direction:column;gap:1rem;width:100%;max-width:100%;padding:1.25rem;border:1px solid var(--cim-widget-border-color, #e4e4e4);border-radius:var(--cim-widget-border-radius, .75rem);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #111111);box-shadow:0 1px 2px #0000000d}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown{width:auto;max-width:none;padding:0;border:0;border-radius:0;background-color:transparent;box-shadow:none}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-product-carousel{min-width:0;margin-bottom:0}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-msg-pdp{min-width:0;margin:0}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-cart{min-width:0;margin:0;padding:0;border:0;background-color:#fff}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-product-comparison{margin:0;border:0;border-radius:0;background-color:transparent}.cim-widget-layout-commerce .cim-widget-cart-box,.cim-widget-layout-commerce .cim-widget-cart-summary,.cim-widget-layout-commerce .cim-widget-cart-expanded,.cim-widget-layout-commerce .cim-widget-cart-coupon,.cim-widget-layout-commerce .cim-widget-cart-coupon-field,.cim-widget-layout-commerce .cim-widget-cart-coupon-input{background-color:#fff}.cim-widget-layout-commerce .cim-widget-cart-expanded{border-top:none}.cim-widget-layout-commerce .cim-widget-cart-totals{border-top:1px solid #dedede;padding-top:16px;gap:12px}.cim-widget-layout-commerce .cim-widget-cart-item-final-price{font-size:14px;font-weight:600}.cim-widget-layout-commerce .cim-widget-cart-total-row:not(.emphasized){font-size:14px}.cim-widget-layout-commerce .cim-widget-cart-summary{display:flex;align-items:center;gap:12px;padding:16px}.cim-widget-layout-commerce .cim-widget-cart-summary-icon-box{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;border-radius:8px;background-color:#f1f1f1;color:#181818}.cim-widget-layout-commerce .cim-widget-cart-summary-icon-box svg{width:20px;height:20px}.cim-widget-layout-commerce .cim-widget-cart-checkout-button{border-color:var(--cim-widget-border-color, #d3d3d3);background-color:var(--cim-widget-primary-color, #e8e8e8);color:var(--cim-widget-background-color, #ffffff);font-weight:600}.cim-widget-layout-commerce .cim-widget-cart-checkout-button:hover{border-color:var(--cim-widget-secondary-color, #b8b8b8);background-color:var(--cim-widget-secondary-color, #dcdcdc);color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-msg-pdp__card,.cim-widget-layout-commerce .cim-widget-msg-pdp__gallery,.cim-widget-layout-commerce .cim-widget-msg-pdp__content{background-color:#fff}.cim-widget-layout-commerce .cim-widget-msg-pdp__card{border-color:#dedede;border-radius:.75rem;box-shadow:0 1px 3px #00000012}.cim-widget-layout-commerce .cim-widget-msg-pdp__content{gap:1.25rem;padding:.75rem}.cim-widget-layout-commerce .cim-widget-msg-pdp__title,.cim-widget-layout-commerce .cim-widget-msg-pdp__title-link{color:#181818;font-size:.875rem}.cim-widget-layout-commerce .cim-widget-msg-pdp__description{color:#3e3e3c;font-size:.75rem;opacity:1}.cim-widget-layout-commerce .cim-widget-msg-pdp__description .cim-widget-markdown{padding:0;border:0;background-color:transparent;box-shadow:none}.cim-widget-layout-commerce button.cim-widget-msg-pdp__add-to-cart{min-height:2.25rem;border:1px solid var(--cim-widget-border-color, #d3d3d3);border-radius:var(--cim-widget-border-radius, .25rem);background-color:var(--cim-widget-primary-color, #e8e8e8);color:var(--cim-widget-background-color, #ffffff);font-weight:600}.cim-widget-layout-commerce button.cim-widget-msg-pdp__add-to-cart:hover:not(:disabled){border-color:var(--cim-widget-secondary-color, #b8b8b8);background-color:var(--cim-widget-secondary-color, #dcdcdc)}.cim-widget-layout-commerce label.cim-widget-msg-pdp__chip{border-radius:20px;background-color:#f1f1f1;border-color:var(--cim-widget-border-color, #e5e5e5);color:var(--cim-widget-font-color, #181818)}.cim-widget-layout-commerce label.cim-widget-msg-pdp__chip:hover{background-color:#ededed;border-color:var(--cim-widget-primary-color, #db665e)}.cim-widget-layout-commerce label.cim-widget-msg-pdp__chip.selected{background-color:var(--cim-widget-primary-color, #db665e);border-color:var(--cim-widget-primary-color, #db665e);color:#fff}.cim-widget-layout-commerce label.cim-widget-msg-pdp__chip.selected:hover{background-color:var(--cim-widget-secondary-color, #c9554d);border-color:var(--cim-widget-secondary-color, #c9554d);color:#fff}.cim-widget-layout-commerce label.cim-widget-msg-pdp__swatch.selected{outline:2px solid var(--cim-widget-primary-color, #181818);outline-offset:2px;border-color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-pdp-gallery__prev-trigger,.cim-widget-layout-commerce .cim-widget-pdp-gallery__next-trigger{width:2rem;height:2rem;padding:0;border:0;border-radius:.375rem;background-color:#f1f1f1;color:#5c5c5c;box-shadow:none}.cim-widget-layout-commerce .cim-widget-msg-product-card,.cim-widget-layout-commerce .cim-widget-msg-product-card__image-wrapper,.cim-widget-layout-commerce .cim-widget-msg-product-card__image-placeholder,.cim-widget-layout-commerce .cim-widget-msg-product-card__content{background-color:#fff}.cim-widget-layout-commerce .cim-widget-msg-product-card__title,.cim-widget-layout-commerce .cim-widget-msg-product-card__title-link,.cim-widget-layout-commerce .cim-widget-msg-product-card__price,.cim-widget-layout-commerce .cim-widget-product-tile-name,.cim-widget-layout-commerce .cim-widget-product-tile-price{font-family:"Source Sans Pro",var(--cim-widget-font-family, sans-serif);font-weight:600}.cim-widget-layout-commerce .cim-widget-carousel__control{padding:0}.cim-widget-layout-commerce .cim-widget-carousel__prev-trigger,.cim-widget-layout-commerce .cim-widget-carousel__next-trigger{width:2rem;min-width:2rem;height:2rem;min-height:2rem;padding:0;border:1px solid #dedede;border-radius:50%;background-color:#fff;color:#3e3e3c;box-shadow:0 2px 5px #00000026}.cim-widget-layout-commerce .cim-widget-carousel__prev-trigger{transform:translate(-50%)}.cim-widget-layout-commerce .cim-widget-carousel__next-trigger{transform:translate(50%)}.cim-widget-layout-commerce .cim-widget-carousel__prev-trigger:hover,.cim-widget-layout-commerce .cim-widget-carousel__next-trigger:hover{background-color:#fff;border-color:#c9c9c9;box-shadow:0 3px 7px #0000002e}.cim-widget-layout-commerce .cim-widget-carousel__prev-trigger:focus-visible,.cim-widget-layout-commerce .cim-widget-carousel__next-trigger:focus-visible{outline:2px solid #181818;outline-offset:2px}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown+.cim-widget-product-carousel{padding-top:1rem;border-top:1px solid #e4e4e4}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown+.cim-widget-product-comparison,.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-product-comparison+.cim-widget-markdown{border-top:1px solid #e4e4e4}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown+.cim-widget-cart,.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-cart+.cim-widget-markdown{padding-top:1rem;border-top:none}.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-markdown+.cim-widget-msg-pdp,.cim-widget-layout-commerce .cim-widget-response-card .cim-widget-msg-pdp+.cim-widget-markdown{padding-top:1rem;border-top:none}.cim-widget-layout-commerce .cim-widget-markdown>:first-child,.cim-widget-layout-commerce .cim-widget-follow-up>.cim-widget-text{margin-top:0}.cim-widget-layout-commerce .cim-widget-markdown>:last-child,.cim-widget-layout-commerce .cim-widget-follow-up>.cim-widget-text{margin-bottom:0}.cim-widget-layout-commerce .cim-widget-ask-cim-suggestions-container,.cim-widget-layout-commerce .cim-widget-follow-up .cim-widget-suggestion-container{margin-top:.75rem}.cim-widget-layout-commerce .cim-widget-suggestion-container.embedded{display:flex;flex-wrap:wrap;gap:.5rem}.cim-widget-layout-commerce .cim-widget-suggestion-container.standalone{display:flex;flex-wrap:wrap;gap:.5rem;padding:0}.cim-widget-layout-commerce button.cim-widget-suggestion-button.embedded,.cim-widget-layout-commerce button.cim-widget-suggestion-button.standalone{min-height:2rem;padding:.4rem .8rem;border:1px solid var(--cim-widget-shopping-outline);border-radius:999px;background-color:var(--cim-widget-shopping-chip);color:var(--cim-widget-font-color, #303030);font-size:.8125rem;font-weight:400;line-height:1.25}.cim-widget-layout-commerce button.cim-widget-suggestion-button.embedded:hover,.cim-widget-layout-commerce button.cim-widget-suggestion-button.standalone:hover{border-color:var(--cim-widget-border-color, #b8b8b8);background-color:var(--cim-widget-secondary-color, #ededed);color:var(--cim-widget-background-color, #111111)}.cim-widget-layout-commerce button.cim-widget-suggestion-button.embedded:focus-visible,.cim-widget-layout-commerce button.cim-widget-suggestion-button.standalone:focus-visible{outline:2px solid var(--cim-widget-primary-color, #000000);outline-offset:2px}.cim-widget-layout-commerce .cim-widget-user-message.embedded,.cim-widget-layout-commerce .cim-widget-user-message.standalone{min-width:0;max-width:85%;margin:0;padding:.75rem 1rem;border-radius:var(--cim-widget-border-radius, .75rem);background-color:var(--cim-widget-primary-color, #3a3a3a);color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-user-message-text{font-family:"Source Sans Pro",var(--cim-widget-font-family, sans-serif);font-weight:400}.cim-widget-layout-commerce .cim-widget-message.embedded{margin-bottom:0}.cim-widget-layout-commerce .cim-widget-message.standalone{margin-bottom:0;padding:0}.cim-widget-layout-commerce .cim-widget-search-bar-wrapper{gap:.375rem;padding:.875rem 1.25rem 1rem;border-top:1px solid var(--cim-widget-border-color, #d5d5d5);background-color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-search-bar-wrapper.with-attachments{border-top-color:var(--cim-widget-border-color, #d5d5d5)}.cim-widget-layout-commerce .cim-widget-search-bar{gap:.5rem}.cim-widget-layout-commerce .cim-widget-search-bar:not(:has(.cim-widget-messaging-composer-group)),.cim-widget-layout-commerce .cim-widget-messaging-composer-group{position:relative;min-height:3.375rem;padding:.25rem .25rem .25rem .75rem;border:1px solid var(--cim-widget-shopping-outline);border-radius:999px;background-color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-search-bar:not(:has(.cim-widget-messaging-composer-group)):focus-within,.cim-widget-layout-commerce .cim-widget-messaging-composer-group:focus-within{border-color:var(--cim-widget-primary-color, #17171b);box-shadow:none}.cim-widget-layout-commerce .cim-widget-search-bar:has(.cim-widget-messaging-composer-group){min-height:auto;padding:0;border:0;border-radius:0;background-color:transparent}.cim-widget-layout-commerce .cim-widget-search-bar.cim-widget-search-bar-with-context:has(.cim-widget-messaging-composer-group){padding:.5rem .625rem;border:1px solid var(--cim-widget-shopping-outline);border-radius:1.5rem;background-color:var(--cim-widget-background-color, #ffffff)}.cim-widget-layout-commerce .cim-widget-search-bar-with-context:focus-within{border-color:var(--cim-widget-primary-color, #17171b)}.cim-widget-layout-commerce .cim-widget-search-bar-with-context .cim-widget-messaging-composer-group{min-height:2.75rem;padding:0;border:0;border-radius:0;background-color:transparent}.cim-widget-layout-commerce .cim-widget-connection-status-icon{display:none}.cim-widget-layout-commerce input.cim-widget-search-input{min-height:2.75rem;padding:0 .625rem;border:0;border-radius:999px;background-color:transparent;color:var(--cim-widget-font-color, #111111);outline:0;box-shadow:none}.cim-widget-layout-commerce input.cim-widget-search-input::placeholder{color:var(--cim-widget-shopping-muted);opacity:1}.cim-widget-layout-commerce .cim-widget-messaging-composer-group .cim-widget-messaging-input-group{border:0;border-radius:999px}.cim-widget-layout-commerce .cim-widget-messaging-composer-group .cim-widget-messaging-input-group:focus-within{border-color:transparent}@media(forced-colors:active){.cim-widget-layout-commerce .cim-widget-search-bar:not(:has(.cim-widget-messaging-composer-group)):focus-within,.cim-widget-layout-commerce .cim-widget-messaging-composer-group:focus-within{outline:2px solid Highlight;outline-offset:2px}}.cim-widget-layout-commerce .cim-widget-search-button-icon{flex:0 0 auto;width:2.75rem;min-width:2.75rem;min-height:2.75rem;border:0;border-radius:50%;background-color:#111;color:#fff}.cim-widget-layout-commerce .cim-widget-search-button-icon svg{padding:.75rem}.cim-widget-layout-commerce .cim-widget-search-button-icon:hover{background-color:#333;border-color:transparent}.cim-widget-layout-commerce .cim-widget-search-button-icon:focus-visible{outline:2px solid #000000;outline-offset:3px}.cim-widget-layout-commerce .cim-widget-disclaimer{padding-bottom:0;color:var(--cim-widget-shopping-muted)}@media(max-width:576px){.cim-widget-layout-commerce .cim-widget-message-container{padding:1rem}.cim-widget-layout-commerce .cim-widget-search-bar-wrapper{padding-right:1rem;padding-left:1rem}}.cim-widget-prompts-extension-container{height:100%;width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:1rem .5rem 1rem 1.25rem;gap:.75rem;font-size:.875rem;font-family:var(--cim-widget-font-family, inherit);background-color:var(--cim-widget-background-color);color:var(--cim-widget-font-color, inherit);border:1px solid var(--cim-widget-border-color);border-radius:var(--cim-widget-border-radius);box-sizing:border-box}.cim-widget-prompts-input-container{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;label[for=cim-widget-prompts-input]{width:auto}.cim-widget-prompts-input-icon{width:20px;height:20px;color:var(--cim-widget-primary-color)}input.cim-widget-prompts-input{width:100%;padding:.25rem 0;outline:none;border-color:transparent;background-color:transparent;border-bottom-width:1px;border-bottom-color:var(--cim-widget-border-color);font-family:var(--cim-widget-font-family, inherit);color:var(--cim-widget-font-color, inherit);&:disabled{opacity:.6;cursor:not-allowed}}input.cim-widget-prompts-input:focus{border-bottom-color:color-mix(in srgb,var(--cim-widget-primary-color),white 25%)}.cim-widget-prompts-input-submit-button:disabled{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-prompts-header{display:flex;align-items:center;gap:.5rem;width:100%;.cim-widget-prompts-input-icon{width:20px;height:20px;color:var(--cim-widget-primary-color);flex-shrink:0}.cim-widget-prompts-header-text{color:var(--cim-widget-font-color, inherit)}}.cim-widget-prompts-button-group{display:inline-flex;flex-wrap:wrap;gap:.5rem;width:100%}.cim-widget-prompts-button{height:auto;padding:.2rem .5rem;border:1px solid var(--cim-widget-primary-color);border-radius:var(--cim-widget-border-radius);background-color:transparent;font-size:.875rem;font-weight:700;font-family:inherit;color:var(--cim-widget-primary-color);white-space:normal;word-break:break-word;text-align:left;cursor:pointer}.cim-widget-prompts-button.has-icon{display:inline-flex;align-items:center;gap:.35rem}.cim-widget-prompts-button.icon-right{flex-direction:row-reverse;justify-content:start}.cim-widget-prompts-button:hover{background-color:#fff;color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-prompts-button:disabled{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a;cursor:not-allowed}.cim-widget-prompts-button:disabled:hover{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a}.cim-widget-prompts-extension-messages-container{display:flex;flex-direction:column;gap:1rem;height:100%;width:100%;scrollbar-gutter:stable;overflow-y:auto}.cim-widget-prompts-user-message-container{display:flex;align-items:center;justify-content:flex-end;width:100%}.cim-widget-prompts-user-message{margin:0;max-width:85%;padding:.25rem 1rem;color:#fff;border-radius:var(--cim-widget-border-radius);border:1px solid var(--cim-widget-primary-color);background-color:var(--cim-widget-primary-color)}.cim-widget-prompts-response-container{display:flex;flex:none;flex-direction:column;justify-content:flex-start;padding:.5rem 1rem;border-radius:var(--cim-widget-border-radius);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent);overscroll-behavior:auto;max-width:85%}
2
2
  /*$vite$:1*/`,document.head.appendChild($e);function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dt={exports:{}},It={},Tt={exports:{}},Ue={};var un;function wt(){if(un)return Ue;un=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function T(M){return M===null||typeof M!="object"?null:(M=m&&M[m]||M["@@iterator"],typeof M=="function"?M:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function N(M,Q,O){this.props=M,this.context=Q,this.refs=A,this.updater=O||y}N.prototype.isReactComponent={},N.prototype.setState=function(M,Q){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,Q,"setState")},N.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function S(){}S.prototype=N.prototype;function v(M,Q,O){this.props=M,this.context=Q,this.refs=A,this.updater=O||y}var C=v.prototype=new S;C.constructor=v,w(C,N.prototype),C.isPureReactComponent=!0;var U=Array.isArray,V=Object.prototype.hasOwnProperty,R={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function re(M,Q,O){var _e,Be={},Ae=null,xe=null;if(Q!=null)for(_e in Q.ref!==void 0&&(xe=Q.ref),Q.key!==void 0&&(Ae=""+Q.key),Q)V.call(Q,_e)&&!Y.hasOwnProperty(_e)&&(Be[_e]=Q[_e]);var Pe=arguments.length-2;if(Pe===1)Be.children=O;else if(1<Pe){for(var Ye=Array(Pe),ut=0;ut<Pe;ut++)Ye[ut]=arguments[ut+2];Be.children=Ye}if(M&&M.defaultProps)for(_e in Pe=M.defaultProps,Pe)Be[_e]===void 0&&(Be[_e]=Pe[_e]);return{$$typeof:e,type:M,key:Ae,ref:xe,props:Be,_owner:R.current}}function Ee(M,Q){return{$$typeof:e,type:M.type,key:Q,ref:M.ref,props:M.props,_owner:M._owner}}function q(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function ie(M){var Q={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(O){return Q[O]})}var fe=/\/+/g;function ke(M,Q){return typeof M=="object"&&M!==null&&M.key!=null?ie(""+M.key):Q.toString(36)}function ne(M,Q,O,_e,Be){var Ae=typeof M;(Ae==="undefined"||Ae==="boolean")&&(M=null);var xe=!1;if(M===null)xe=!0;else switch(Ae){case"string":case"number":xe=!0;break;case"object":switch(M.$$typeof){case e:case t:xe=!0}}if(xe)return xe=M,Be=Be(xe),M=_e===""?"."+ke(xe,0):_e,U(Be)?(O="",M!=null&&(O=M.replace(fe,"$&/")+"/"),ne(Be,Q,O,"",function(ut){return ut})):Be!=null&&(q(Be)&&(Be=Ee(Be,O+(!Be.key||xe&&xe.key===Be.key?"":(""+Be.key).replace(fe,"$&/")+"/")+M)),Q.push(Be)),1;if(xe=0,_e=_e===""?".":_e+":",U(M))for(var Pe=0;Pe<M.length;Pe++){Ae=M[Pe];var Ye=_e+ke(Ae,Pe);xe+=ne(Ae,Q,O,Ye,Be)}else if(Ye=T(M),typeof Ye=="function")for(M=Ye.call(M),Pe=0;!(Ae=M.next()).done;)Ae=Ae.value,Ye=_e+ke(Ae,Pe++),xe+=ne(Ae,Q,O,Ye,Be);else if(Ae==="object")throw Q=String(M),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.");return xe}function ae(M,Q,O){if(M==null)return M;var _e=[],Be=0;return ne(M,_e,"","",function(Ae){return Q.call(O,Ae,Be++)}),_e}function Se(M){if(M._status===-1){var Q=M._result;Q=Q(),Q.then(function(O){(M._status===0||M._status===-1)&&(M._status=1,M._result=O)},function(O){(M._status===0||M._status===-1)&&(M._status=2,M._result=O)}),M._status===-1&&(M._status=0,M._result=Q)}if(M._status===1)return M._result.default;throw M._result}var se={current:null},J={transition:null},oe={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:J,ReactCurrentOwner:R};function k(){throw Error("act(...) is not supported in production builds of React.")}return Ue.Children={map:ae,forEach:function(M,Q,O){ae(M,function(){Q.apply(this,arguments)},O)},count:function(M){var Q=0;return ae(M,function(){Q++}),Q},toArray:function(M){return ae(M,function(Q){return Q})||[]},only:function(M){if(!q(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Ue.Component=N,Ue.Fragment=n,Ue.Profiler=o,Ue.PureComponent=v,Ue.StrictMode=r,Ue.Suspense=d,Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,Ue.act=k,Ue.cloneElement=function(M,Q,O){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var _e=w({},M.props),Be=M.key,Ae=M.ref,xe=M._owner;if(Q!=null){if(Q.ref!==void 0&&(Ae=Q.ref,xe=R.current),Q.key!==void 0&&(Be=""+Q.key),M.type&&M.type.defaultProps)var Pe=M.type.defaultProps;for(Ye in Q)V.call(Q,Ye)&&!Y.hasOwnProperty(Ye)&&(_e[Ye]=Q[Ye]===void 0&&Pe!==void 0?Pe[Ye]:Q[Ye])}var Ye=arguments.length-2;if(Ye===1)_e.children=O;else if(1<Ye){Pe=Array(Ye);for(var ut=0;ut<Ye;ut++)Pe[ut]=arguments[ut+2];_e.children=Pe}return{$$typeof:e,type:M.type,key:Be,ref:Ae,props:_e,_owner:xe}},Ue.createContext=function(M){return M={$$typeof:u,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:a,_context:M},M.Consumer=M},Ue.createElement=re,Ue.createFactory=function(M){var Q=re.bind(null,M);return Q.type=M,Q},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(M){return{$$typeof:l,render:M}},Ue.isValidElement=q,Ue.lazy=function(M){return{$$typeof:p,_payload:{_status:-1,_result:M},_init:Se}},Ue.memo=function(M,Q){return{$$typeof:f,type:M,compare:Q===void 0?null:Q}},Ue.startTransition=function(M){var Q=J.transition;J.transition={};try{M()}finally{J.transition=Q}},Ue.unstable_act=k,Ue.useCallback=function(M,Q){return se.current.useCallback(M,Q)},Ue.useContext=function(M){return se.current.useContext(M)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(M){return se.current.useDeferredValue(M)},Ue.useEffect=function(M,Q){return se.current.useEffect(M,Q)},Ue.useId=function(){return se.current.useId()},Ue.useImperativeHandle=function(M,Q,O){return se.current.useImperativeHandle(M,Q,O)},Ue.useInsertionEffect=function(M,Q){return se.current.useInsertionEffect(M,Q)},Ue.useLayoutEffect=function(M,Q){return se.current.useLayoutEffect(M,Q)},Ue.useMemo=function(M,Q){return se.current.useMemo(M,Q)},Ue.useReducer=function(M,Q,O){return se.current.useReducer(M,Q,O)},Ue.useRef=function(M){return se.current.useRef(M)},Ue.useState=function(M){return se.current.useState(M)},Ue.useSyncExternalStore=function(M,Q,O){return se.current.useSyncExternalStore(M,Q,O)},Ue.useTransition=function(){return se.current.useTransition()},Ue.version="18.3.1",Ue}var Cn;function pr(){return Cn||(Cn=1,Tt.exports=wt()),Tt.exports}var Ki;function Ho(){if(Ki)return It;Ki=1;var e=pr(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(l,d,f){var p,m={},T=null,y=null;f!==void 0&&(T=""+f),d.key!==void 0&&(T=""+d.key),d.ref!==void 0&&(y=d.ref);for(p in d)r.call(d,p)&&!a.hasOwnProperty(p)&&(m[p]=d[p]);if(l&&l.defaultProps)for(p in d=l.defaultProps,d)m[p]===void 0&&(m[p]=d[p]);return{$$typeof:t,type:l,key:T,ref:y,props:m,_owner:o.current}}return It.Fragment=n,It.jsx=u,It.jsxs=u,It}var zo;function In(){return zo||(zo=1,dt.exports=Ho()),dt.exports}var _=In();const Nr=Object.create(null);Nr.open="0",Nr.close="1",Nr.ping="2",Nr.pong="3",Nr.message="4",Nr.upgrade="5",Nr.noop="6";const ju=Object.create(null);Object.keys(Nr).forEach(e=>{ju[Nr[e]]=e});const Cd={type:"error",data:"parser error"},E0=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",y0=typeof ArrayBuffer=="function",b0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,kd=({type:e,data:t},n,r)=>E0&&t instanceof Blob?n?r(t):T0(t,r):y0&&(t instanceof ArrayBuffer||b0(t))?n?r(t):T0(new Blob([t]),r):r(Nr[e]+(t||"")),T0=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function w0(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Nd;function rS(e,t){if(E0&&e.data instanceof Blob)return e.data.arrayBuffer().then(w0).then(t);if(y0&&(e.data instanceof ArrayBuffer||b0(e.data)))return t(w0(e.data));kd(e,!1,n=>{Nd||(Nd=new TextEncoder),t(Nd.encode(n))})}const _0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e<_0.length;e++)Zs[_0.charCodeAt(e)]=e;const iS=e=>{let t=e.length*.75,n=e.length,r,o=0,a,u,l,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r<n;r+=4)a=Zs[e.charCodeAt(r)],u=Zs[e.charCodeAt(r+1)],l=Zs[e.charCodeAt(r+2)],d=Zs[e.charCodeAt(r+3)],p[o++]=a<<2|u>>4,p[o++]=(u&15)<<4|l>>2,p[o++]=(l&3)<<6|d&63;return f},oS=typeof ArrayBuffer=="function",Pd=(e,t)=>{if(typeof e!="string")return{type:"message",data:x0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:sS(e.substring(1),t)}:ju[n]?e.length>1?{type:ju[n],data:e.substring(1)}:{type:ju[n]}:Cd},sS=(e,t)=>{if(oS){const n=iS(e);return x0(n,t)}else return{base64:!0,data:e}},x0=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,S0="",aS=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((a,u)=>{kd(a,!1,l=>{r[u]=l,++o===n&&t(r.join(S0))})})},uS=(e,t)=>{const n=e.split(S0),r=[];for(let o=0;o<n.length;o++){const a=Pd(n[o],t);if(r.push(a),a.type==="error")break}return r};function lS(){return new TransformStream({transform(e,t){rS(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const a=new DataView(o.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{o=new Uint8Array(9);const a=new DataView(o.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Od;function $u(e){return e.reduce((t,n)=>t+n.length,0)}function Vu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function cS(e,t){Od||(Od=new TextDecoder);const n=[];let r=0,o=-1,a=!1;return new TransformStream({transform(u,l){for(n.push(u);;){if(r===0){if($u(n)<1)break;const d=Vu(n,1);a=(d[0]&128)===128,o=d[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if($u(n)<2)break;const d=Vu(n,2);o=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),r=3}else if(r===2){if($u(n)<8)break;const d=Vu(n,8),f=new DataView(d.buffer,d.byteOffset,d.length),p=f.getUint32(0);if(p>Math.pow(2,21)-1){l.enqueue(Cd);break}o=p*Math.pow(2,32)+f.getUint32(4),r=3}else{if($u(n)<o)break;const d=Vu(n,o);l.enqueue(Pd(a?d:Od.decode(d),t)),r=0}if(o===0||o>e){l.enqueue(Cd);break}}}})}const A0=4;function Ut(e){if(e)return dS(e)}function dS(e){for(var t in Ut.prototype)e[t]=Ut.prototype[t];return e}Ut.prototype.on=Ut.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Ut.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Ut.prototype.off=Ut.prototype.removeListener=Ut.prototype.removeAllListeners=Ut.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this},Ut.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},Ut.prototype.emitReserved=Ut.prototype.emit,Ut.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Ut.prototype.hasListeners=function(e){return!!this.listeners(e).length};const qu=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),tr=typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")(),fS="arraybuffer";function AU(){}function v0(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const hS=tr.setTimeout,pS=tr.clearTimeout;function Yu(e,t){t.useNativeTimers?(e.setTimeoutFn=hS.bind(tr),e.clearTimeoutFn=pS.bind(tr)):(e.setTimeoutFn=tr.setTimeout.bind(tr),e.clearTimeoutFn=tr.clearTimeout.bind(tr))}const mS=1.33;function gS(e){return typeof e=="string"?ES(e):Math.ceil((e.byteLength||e.size)*mS)}function ES(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function C0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yS(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function bS(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class TS extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Id extends Ut{constructor(t){super(),this.writable=!1,Yu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new TS(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Pd(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=yS(t);return n.length?"?"+n:""}}class wS extends Id{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};uS(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,aS(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=C0()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let k0=!1;try{k0=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){}const _S=k0;function xS(){}class SS extends wS{constructor(t){if(super(t),typeof location!="undefined"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,a)=>{this.onError("xhr post error",o,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Pr extends Ut{constructor(t,n,r){super(),this.createRequest=t,Yu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=v0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch(o){}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}try{r.setRequestHeader("Accept","*/*")}catch(o){}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document!="undefined"&&(this._index=Pr.requestsCount++,Pr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr=="undefined"||this._xhr===null)){if(this._xhr.onreadystatechange=xS,t)try{this._xhr.abort()}catch(n){}typeof document!="undefined"&&delete Pr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Pr.requestsCount=0,Pr.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",N0);else if(typeof addEventListener=="function"){const e="onpagehide"in tr?"pagehide":"unload";addEventListener(e,N0,!1)}}function N0(){for(let e in Pr.requests)Pr.requests.hasOwnProperty(e)&&Pr.requests[e].abort()}const AS=(function(){const e=P0({xdomain:!1});return e&&e.responseType!==null})();class vS extends SS{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=AS&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Pr(P0,this.uri(),t)}}function P0(e){const t=e.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!t||_S))return new XMLHttpRequest}catch(n){}if(!t)try{return new tr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(n){}}const O0=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class CS extends Id{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=O0?{}:v0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;kd(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch(u){}o&&qu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=C0()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Rd=tr.WebSocket||tr.MozWebSocket;class kS extends CS{createSocket(t,n,r){return O0?new Rd(t,n,r):n?new Rd(t,n):new Rd(t)}doWrite(t,n){this.ws.send(n)}}class NS extends Id{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=cS(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=lS();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const a=()=>{r.read().then(({done:l,value:d})=>{l||(this.onPacket(d),a())}).catch(l=>{})};a();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&qu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const PS={websocket:kS,webtransport:NS,polling:vS},OS=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,IS=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ld(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=OS.exec(e||""),a={},u=14;for(;u--;)a[IS[u]]=o[u]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=RS(a,a.path),a.queryKey=LS(a,a.query),a}function RS(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function LS(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,a){o&&(n[o]=a)}),n}const Dd=typeof addEventListener=="function"&&typeof removeEventListener=="function",Wu=[];Dd&&addEventListener("offline",()=>{Wu.forEach(e=>e())},!1);class bi extends Ut{constructor(t,n){if(super(),this.binaryType=fS,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Ld(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Ld(n.host).host);Yu(this,n),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=bS(this.opts.query)),Dd&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Wu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=A0,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&bi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",bi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=gS(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,qu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(bi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Dd&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Wu.indexOf(this._offlineEventListener);r!==-1&&Wu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}bi.protocol=A0;class DS extends bi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;bi.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",m=>{if(!r)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;bi.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const T=new Error("probe error");T.transport=n.name,this.emitReserved("upgradeError",T)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const u=m=>{const T=new Error("probe error: "+m);T.transport=n.name,a(),this.emitReserved("upgradeError",T)};function l(){u("transport closed")}function d(){u("socket closed")}function f(m){n&&m.name!==n.name&&a()}const p=()=>{n.removeListener("open",o),n.removeListener("error",u),n.removeListener("close",l),this.off("close",d),this.off("upgrading",f)};n.once("open",o),n.once("error",u),n.once("close",l),this.once("close",d),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let MS=class extends DS{constructor(t,n={}){const r=typeof t=="object",o=r?B({},t):B({},n);(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(a=>PS[a]).filter(a=>!!a)),super(r?o:t,o)}};function FS(e,t="",n){let r=e;n=n||typeof location!="undefined"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n!="undefined"?e=n.protocol+"//"+e:e="https://"+e),r=Ld(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const BS=typeof ArrayBuffer=="function",US=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,I0=Object.prototype.toString,HS=typeof Blob=="function"||typeof Blob!="undefined"&&I0.call(Blob)==="[object BlobConstructor]",zS=typeof File=="function"||typeof File!="undefined"&&I0.call(File)==="[object FileConstructor]";function Md(e){return BS&&(e instanceof ArrayBuffer||US(e))||HS&&e instanceof Blob||zS&&e instanceof File}function Gu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Gu(e[n]))return!0;return!1}if(Md(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Gu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Gu(e[n]))return!0;return!1}function jS(e){const t=[],n=e.data,r=e;return r.data=Xu(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Xu(e,t,n){if(!e)return e;if(Md(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let o=0;o<e.length;o++)r[o]=Xu(e[o],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){if(e.toJSON&&typeof e.toJSON=="function"&&!n)return Xu(e.toJSON(),t,!0);const r={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Xu(e[o],t));return r}return e}function $S(e,t){return e.data=Fd(e.data,t),delete e.attachments,e}function Fd(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Fd(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Fd(e[n],t));return e}const VS=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var nt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(nt||(nt={}));class qS{constructor(t){this.replacer=t}encode(t){return(t.type===nt.EVENT||t.type===nt.ACK)&&Gu(t)?this.encodeAsBinary({type:t.type===nt.EVENT?nt.BINARY_EVENT:nt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===nt.BINARY_EVENT||t.type===nt.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=jS(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class Bd extends Ut{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===nt.BINARY_EVENT;r||n.type===nt.BINARY_ACK?(n.type=r?nt.EVENT:nt.ACK,this.reconstructor=new YS(n)):super.emitReserved("decoded",n)}else if(Md(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(nt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===nt.BINARY_EVENT||r.type===nt.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(a,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const l=Number(u);if(!WS(l)||l<1)throw new Error("Illegal attachments");if(l>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=l}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const a=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(Bd.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case nt.CONNECT:return R0(n);case nt.DISCONNECT:return n===void 0;case nt.CONNECT_ERROR:return typeof n=="string"||R0(n);case nt.EVENT:case nt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&VS.indexOf(n[0])===-1);case nt.ACK:case nt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class YS{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=$S(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const WS=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function R0(e){return Object.prototype.toString.call(e)==="[object Object]"}const GS=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Bd,Encoder:qS,get PacketType(){return nt}},Symbol.toStringTag,{value:"Module"}));function mr(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const XS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class L0 extends Ut{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[mr(t,"open",this.onopen.bind(this)),mr(t,"packet",this.onpacket.bind(this)),mr(t,"error",this.onerror.bind(this)),mr(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,a;if(XS.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:nt.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const p=this.ids++,m=n.pop();this._registerAckCallback(p,m),u.id=p}const l=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,d=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!l||(d?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},o),u=(...l)=>{this.io.clearTimeoutFn(a),n.apply(this,l)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...n){return new Promise((r,o)=>{const a=(u,l)=>u?o(u):r(l);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...a)=>(this._queue[0],o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:nt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case nt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case nt.EVENT:case nt.BINARY_EVENT:this.onevent(t);break;case nt.ACK:case nt.BINARY_ACK:this.onack(t);break;case nt.DISCONNECT:this.ondisconnect();break;case nt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:nt.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:nt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function jo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}jo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0},jo.prototype.reset=function(){this.attempts=0},jo.prototype.setMin=function(e){this.ms=e},jo.prototype.setMax=function(e){this.max=e},jo.prototype.setJitter=function(e){this.jitter=e};class Ud extends Ut{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Yu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new jo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||GS;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new MS(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=mr(n,"open",function(){r.onopen(),t&&t()}),a=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},u=mr(n,"error",a);if(this._timeout!==!1){const l=this._timeout,d=this.setTimeoutFn(()=>{o(),a(new Error("timeout")),n.close()},l);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(o),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(mr(t,"ping",this.onping.bind(this)),mr(t,"data",this.ondata.bind(this)),mr(t,"error",this.onerror.bind(this)),mr(t,"close",this.onclose.bind(this)),mr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){qu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new L0(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ea={};function Ku(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=FS(e,t.path||"/socket.io"),r=n.source,o=n.id,a=n.path,u=ea[o]&&a in ea[o].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let d;return l?d=new Ud(r,t):(ea[o]||(ea[o]=new Ud(r,t)),d=ea[o]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(Ku,{Manager:Ud,Socket:L0,io:Ku,connect:Ku});var KS=function(e){return(function(t){return!!t&&typeof t=="object"})(e)&&!(function(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||(function(r){return r.$$typeof===QS})(t)})(e)},QS=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function ta(e,t){return t.clone!==!1&&t.isMergeableObject(e)?$o((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function JS(e,t,n){return e.concat(t).map((function(r){return ta(r,n)}))}function D0(e){return Object.keys(e).concat((function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(n){return Object.propertyIsEnumerable.call(t,n)})):[]})(e))}function M0(e,t){try{return t in e}catch(n){return!1}}function ZS(e,t,n){var r={};return n.isMergeableObject(e)&&D0(e).forEach((function(o){r[o]=ta(e[o],n)})),D0(t).forEach((function(o){(function(a,u){return M0(a,u)&&!(Object.hasOwnProperty.call(a,u)&&Object.propertyIsEnumerable.call(a,u))})(e,o)||(M0(e,o)&&n.isMergeableObject(t[o])?r[o]=(function(a,u){if(!u.customMerge)return $o;var l=u.customMerge(a);return typeof l=="function"?l:$o})(o,n)(e[o],t[o],n):r[o]=ta(t[o],n))})),r}function $o(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||JS,n.isMergeableObject=n.isMergeableObject||KS,n.cloneUnlessOtherwiseSpecified=ta;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):ZS(e,t,n):ta(t,n)}$o.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(n,r){return $o(n,r,t)}),{})};var eA=$o;let tA=class{constructor(t){Object.assign(this,t)}};function kn(e){if(e)return(function(t){for(var n in kn.prototype)t[n]=kn.prototype[n];return t})(e)}kn.prototype.on=kn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},kn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},kn.prototype.off=kn.prototype.removeListener=kn.prototype.removeAllListeners=kn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this},kn.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},kn.prototype.emitReserved=kn.prototype.emit,kn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},kn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const nA=typeof ArrayBuffer=="function",F0=Object.prototype.toString,rA=typeof Blob=="function"||typeof Blob!="undefined"&&F0.call(Blob)==="[object BlobConstructor]",iA=typeof File=="function"||typeof File!="undefined"&&F0.call(File)==="[object FileConstructor]";function Hd(e){return nA&&(e instanceof ArrayBuffer||(t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer)(e))||rA&&e instanceof Blob||iA&&e instanceof File}function Qu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Qu(e[n]))return!0;return!1}if(Hd(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Qu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Qu(e[n]))return!0;return!1}function oA(e){const t=[],n=e.data,r=e;return r.data=zd(n,t),r.attachments=t.length,{packet:r,buffers:t}}function zd(e,t){if(!e)return e;if(Hd(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=zd(e[r],t);return n}if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=zd(e[r],t));return n}return e}function sA(e,t){return e.data=jd(e.data,t),delete e.attachments,e}function jd(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=jd(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=jd(e[n],t));return e}const aA=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var kt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(kt||(kt={}));class uA{constructor(t){this.replacer=t}encode(t){return t.type!==kt.EVENT&&t.type!==kt.ACK||!Qu(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===kt.EVENT?kt.BINARY_EVENT:kt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let n=""+t.type;return t.type!==kt.BINARY_EVENT&&t.type!==kt.BINARY_ACK||(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=oA(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class $d extends kn{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===kt.BINARY_EVENT;r||n.type===kt.BINARY_ACK?(n.type=r?kt.EVENT:kt.ACK,this.reconstructor=new lA(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else{if(!Hd(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n))}}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(kt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===kt.BINARY_EVENT||r.type===kt.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(a,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const l=Number(u);if(!cA(l)||l<0)throw new Error("Illegal attachments");if(l>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=l}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const a=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(!$d.isPayloadValid(r.type,a))throw new Error("invalid payload");r.data=a}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case kt.CONNECT:return B0(n);case kt.DISCONNECT:return n===void 0;case kt.CONNECT_ERROR:return typeof n=="string"||B0(n);case kt.EVENT:case kt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&aA.indexOf(n[0])===-1);case kt.ACK:case kt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class lA{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=sA(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const cA=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function B0(e){return Object.prototype.toString.call(e)==="[object Object]"}const U0=["searchParams.facetFilters","browseParams.facetFilters","baseCatalogParams.facetFilters","hits","products"],H0=(e,t,n)=>function r(o,a=[]){const u=Object.entries(o).map((([l,d])=>{const f=[...a,t(l)];return[e(l),d instanceof Object&&!(n!=null&&n.includes(f.join(".")))?r(d,f):d]}));return Array.isArray(o)?u.map((l=>l[1])):Object.fromEntries(u)},z0=e=>e.replace(/_([a-z])/g,((t,n)=>n.toUpperCase())),dA=H0((e=>e.replace(/([A-Z])/g,"_$1").toLowerCase()),(e=>e),U0),j0=H0(z0,z0,U0),fA={Encoder:class extends uA{encode(e){var t,n;return super.encode(pe(B({},e),{data:((t=e.data)==null?void 0:t.length)==2?[e.data[0],dA(e.data[1])]:((n=e.data)==null?void 0:n.length)==1?[e.data[0]]:typeof e.data=="object"&&e.data!=null?e.data:void 0}))}},Decoder:class extends $d{constructor(){super(((e,t)=>e==""&&Array.isArray(t)?t.map((n=>Array.isArray(n)?n.map((r=>r instanceof Object?j0(r):r)):n instanceof Object?j0(n):n)):t))}}},hA={path:"/api/v1/socket.io",autoConnect:!1,transports:["polling","websocket"],upgrade:!0,timeout:1e4};class pA{constructor({apiKey:t,apiToken:n,baseUrl:r,namespace:o="/copilot",customerId:a,tenantId:u,socketOptions:l={}}){if(this.sessionIdKey="x-cimulate-copilot-session-id",this.reconnectAttempts=0,this.maxReconnectAttempts=5,this.maxReconnectDelay=3e4,this.handleConnectAck=m=>{console.log("[Copilot SDK] Connect Ack:",m),this.socket.auth={[this.sessionIdKey]:m.sessionId}},this.handleDisconnect=m=>{console.warn(`[Copilot SDK] Disconnected: ${m}`),m!=="io client disconnect"&&(console.log(`[Copilot SDK] Disconnected due to ${m}. Attempting reconnect...`),this.retryConnect())},this.handleConnectError=m=>{console.error(`[Copilot SDK] Connect error: ${m.message}`);const T=m.message.match(/['"]error['"]:\s*['"](\w+)['"]/),y=T==null?void 0:T[1];y&&["InvalidApiKey","InvalidToken","BadRequest"].includes(y)?this.disconnect():this.socket.connected||this.socket.active||(console.log("[Copilot SDK] Retrying connect attempt..."),this.retryConnect())},this.offInternalHandlers=()=>{this.socket.off("connect_ack",this.handleConnectAck),this.socket.off("disconnect",this.handleDisconnect),this.off("connect_error",this.handleConnectError)},t&&n||!t&&!n)throw new Error("Provide exactly one authentication method: either 'apiKey' or 'apiToken', but not both.");const d=`${r}${o}`,f={};t?f["x-cimulate-api-key"]=t:n&&(f.Authorization=`Bearer ${n}`),a&&(f["x-cimulate-customer-id"]=a),u&&(f["Tenant-ID"]=u);const p=[hA,l,{parser:fA,withCredentials:!0,transportOptions:{polling:{extraHeaders:f}}}];this.socket=Ku(d,eA.all(p))}connect(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.reconnectAttempts=0),this.offInternalHandlers(),this.on("connect_ack",this.handleConnectAck),this.socket.on("disconnect",this.handleDisconnect),this.on("connect_error",this.handleConnectError),this.socket.auth&&this.sessionIdKey in this.socket.auth&&(this.socket.auth={}),this.socket.connect()}retryConnect(){if(!(this.socket.connected||this.socket.active||this.reconnectAttempts>=this.maxReconnectAttempts))if(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0),this.reconnectAttempts<this.maxReconnectAttempts){const t=Math.min(1e3*zu(2,this.reconnectAttempts),this.maxReconnectDelay);console.info(`[Copilot SDK] Retry #${this.reconnectAttempts+1} in ${t}ms...`),this.reconnectTimeout=setTimeout((()=>{this.socket.connected||this.socket.active||(this.reconnectAttempts++,this.reconnect())}),t)}else console.error("[Copilot SDK] Max reconnect attempts reached.")}reconnect(){this.socket.connected||this.socket.active||this.reconnectAttempts>=this.maxReconnectAttempts||(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0,this.reconnectAttempts=0),this.socket.connect())}browse(t,n){return et(this,null,function*(){return this.asyncResponse("copilot_browse",t,n)})}browseSuggestions(t,n){return et(this,null,function*(){return this.asyncResponse("copilot_browse_suggestions",t,n)})}search(t,n){return et(this,null,function*(){return this.asyncResponse("copilot_search",t,n)})}searchSuggestions(t,n){return et(this,null,function*(){return this.asyncResponse("copilot_search_suggestions",t,n)})}facetedNavigation(t,n){return et(this,null,function*(){return this.asyncResponse("faceted_navigation",t,n)})}cancelRequest(t,n){return this.asyncResponse("cancel",t,n)}conversationReset(t,n){return this.asyncResponse("conversation_reset",t,n)}productView(t,n){return et(this,null,function*(){return this.asyncResponse("product_view",t,n)})}productViewSuggestions(t,n){return et(this,null,function*(){return this.asyncResponse("product_view_suggestions",t,n)})}askCim(t,n){return et(this,null,function*(){return this.asyncResponse("ask_cim",t,n)})}askCimSuggestions(t,n){return et(this,null,function*(){return this.asyncResponse("ask_cim_suggestions",t,n)})}requestSessionInformation(t){return et(this,null,function*(){return new Promise((n=>{this.socket.emit("session_info",(r=>{t&&t(r),n(r)}))}))})}getConversationEvents(t,n){return et(this,null,function*(){return new Promise((r=>{this.socket.emit("conversation_events",t,(o=>{n&&n(o),r(o)}))}))})}on(t,n){return this.socket.on(t,n),n}once(t,n){this.socket.once(t,n)}off(t,n){this.socket.off(t,n)}disconnect(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0),this.offInternalHandlers(),this.socket.disconnect()}onDisconnect(t){this.socket.on("disconnect",t)}asyncResponse(t,n,r){return et(this,null,function*(){if(r)return void this.socket.emit(t,n,r);let o="";const a=(function(u){return vd(this,null,function*(){const l=[];let d=!1,f=null;const p=yield new Qr(u({emit:m=>{l.push(m),f&&(f(),f=null)},cancel:()=>{d=!0}}));try{for(;!d;)l.length>0?yield l.shift():yield new Qr(new Promise((m=>{f=m})));for(;l.length>0;)yield l.shift()}finally{yield new Qr(p==null?void 0:p())}})})((({emit:u,cancel:l})=>{const d=(f,p)=>{["done","error"].includes(p.name)&&l(),p.eventSourceId==o&&u(p)};return this.socket.onAny(d),()=>et(this,null,function*(){this.socket.offAny(d)})}));return{result:yield new Promise(((u,l)=>this.socket.emit(t,n,(d=>{d.name==="error"?l(new tA(d)):(o=d==null?void 0:d.id,u(d))})))),events:a}})}}const $0=e=>Array.from(new Set((e!=null?e:[]).map(t=>t.trim()).filter(Boolean))),V0=(e,t,n)=>{if(n==="override"&&t.length>0)return t;const r=n==="prepend"?[...t,...e]:[...e,...t];return Array.from(new Set(r))};var F=pr();const Qi=Qe(F);var q0=Symbol.for("immer-nothing"),Y0=Symbol.for("immer-draftable"),st=Symbol.for("immer-state");function nr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Vo=Object.getPrototypeOf;function qo(e){return!!e&&!!e[st]}function Jr(e){var t;return e?W0(e)||Array.isArray(e)||!!e[Y0]||!!((t=e.constructor)!=null&&t[Y0])||ra(e)||Zu(e):!1}var mA=Object.prototype.constructor.toString();function W0(e){if(!e||typeof e!="object")return!1;const t=Vo(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===mA}function na(e,t){Ju(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ju(e){const t=e[st];return t?t.type_:Array.isArray(e)?1:ra(e)?2:Zu(e)?3:0}function Vd(e,t){return Ju(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function G0(e,t,n){const r=Ju(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function gA(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ra(e){return e instanceof Map}function Zu(e){return e instanceof Set}function Jt(e){return e.copy_||e.base_}function qd(e,t){if(ra(e))return new Map(e);if(Zu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=W0(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[st];let o=Reflect.ownKeys(r);for(let a=0;a<o.length;a++){const u=o[a],l=r[u];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[u]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[u]})}return Object.create(Vo(e),r)}else{const r=Vo(e);if(r!==null&&n)return B({},e);const o=Object.create(r);return Object.assign(o,e)}}function Yd(e,t=!1){return tl(e)||qo(e)||!Jr(e)||(Ju(e)>1&&Object.defineProperties(e,{set:{value:el},add:{value:el},clear:{value:el},delete:{value:el}}),Object.freeze(e),t&&Object.values(e).forEach(n=>Yd(n,!0))),e}function el(){nr(2)}function tl(e){return Object.isFrozen(e)}var Wd={};function Ji(e){const t=Wd[e];return t||nr(0,e),t}function EA(e,t){Wd[e]||(Wd[e]=t)}var ia;function nl(){return ia}function yA(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function X0(e,t){t&&(Ji("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gd(e){Xd(e),e.drafts_.forEach(bA),e.drafts_=null}function Xd(e){e===ia&&(ia=e.parent_)}function K0(e){return ia=yA(ia,e)}function bA(e){const t=e[st];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Q0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[st].modified_&&(Gd(t),nr(4)),Jr(e)&&(e=rl(t,e),t.parent_||il(t,e)),t.patches_&&Ji("Patches").generateReplacementPatches_(n[st].base_,e,t.patches_,t.inversePatches_)):e=rl(t,n,[]),Gd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==q0?e:void 0}function rl(e,t,n){if(tl(t))return t;const r=t[st];if(!r)return na(t,(o,a)=>J0(e,r,t,o,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return il(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let a=o,u=!1;r.type_===3&&(a=new Set(o),o.clear(),u=!0),na(a,(l,d)=>J0(e,r,o,l,d,n,u)),il(e,o,!1),n&&e.patches_&&Ji("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function J0(e,t,n,r,o,a,u){if(qo(o)){const l=a&&t&&t.type_!==3&&!Vd(t.assigned_,r)?a.concat(r):void 0,d=rl(e,o,l);if(G0(n,r,d),qo(d))e.canAutoFreeze_=!1;else return}else u&&n.add(o);if(Jr(o)&&!tl(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;rl(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(ra(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&il(e,o)}}function il(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Yd(t,n)}function TA(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:nl(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,a=Kd;n&&(o=[r],a=oa);const{revoke:u,proxy:l}=Proxy.revocable(o,a);return r.draft_=l,r.revoke_=u,l}var Kd={get(e,t){if(t===st)return e;const n=Jt(e);if(!Vd(n,t))return wA(e,n,t);const r=n[t];return e.finalized_||!Jr(r)?r:r===Qd(e.base_,t)?(Jd(e),e.copy_[t]=sa(r,e)):r},has(e,t){return t in Jt(e)},ownKeys(e){return Reflect.ownKeys(Jt(e))},set(e,t,n){const r=Z0(Jt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Qd(Jt(e),t),a=o==null?void 0:o[st];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(gA(n,o)&&(n!==void 0||Vd(e.base_,t)))return!0;Jd(e),Zr(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Qd(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Jd(e),Zr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Jt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){nr(11)},getPrototypeOf(e){return Vo(e.base_)},setPrototypeOf(){nr(12)}},oa={};na(Kd,(e,t)=>{oa[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),oa.deleteProperty=function(e,t){return oa.set.call(this,e,t,void 0)},oa.set=function(e,t,n){return Kd.set.call(this,e[0],t,n,e[0])};function Qd(e,t){const n=e[st];return(n?Jt(n):e)[t]}function wA(e,t,n){var o;const r=Z0(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Z0(e,t){if(!(t in e))return;let n=Vo(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Vo(n)}}function Zr(e){e.modified_||(e.modified_=!0,e.parent_&&Zr(e.parent_))}function Jd(e){e.copy_||(e.copy_=qd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _A=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const u=this;return function(d=a,...f){return u.produce(d,p=>n.call(this,p,...f))}}typeof n!="function"&&nr(6),r!==void 0&&typeof r!="function"&&nr(7);let o;if(Jr(t)){const a=K0(this),u=sa(t,void 0);let l=!0;try{o=n(u),l=!1}finally{l?Gd(a):Xd(a)}return X0(a,r),Q0(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===q0&&(o=void 0),this.autoFreeze_&&Yd(o,!0),r){const a=[],u=[];Ji("Patches").generateReplacementPatches_(t,o,a,u),r(a,u)}return o}else nr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(u,...l)=>this.produceWithPatches(u,d=>t(d,...l));let r,o;return[this.produce(t,n,(u,l)=>{r=u,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Jr(e)||nr(8),qo(e)&&(e=xA(e));const t=K0(this),n=sa(e,void 0);return n[st].isManual_=!0,Xd(t),n}finishDraft(e,t){const n=e&&e[st];(!n||!n.isManual_)&&nr(9);const{scope_:r}=n;return X0(r,t),Q0(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Ji("Patches").applyPatches_;return qo(e)?r(e,t):this.produce(e,o=>r(o,t))}};function sa(e,t){const n=ra(e)?Ji("MapSet").proxyMap_(e,t):Zu(e)?Ji("MapSet").proxySet_(e,t):TA(e,t);return(t?t.scope_:nl()).drafts_.push(n),n}function xA(e){return qo(e)||nr(10,e),eg(e)}function eg(e){if(!Jr(e)||tl(e))return e;const t=e[st];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=qd(e,t.scope_.immer_.useStrictShallowCopy_)}else n=qd(e,!0);return na(n,(r,o)=>{G0(n,r,eg(o))}),t&&(t.finalized_=!1),n}function SA(){class e extends Map{constructor(d,f){super(),this[st]={type_:2,parent_:f,scope_:f?f.scope_:nl(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:d,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Jt(this[st]).size}has(d){return Jt(this[st]).has(d)}set(d,f){const p=this[st];return u(p),(!Jt(p).has(d)||Jt(p).get(d)!==f)&&(n(p),Zr(p),p.assigned_.set(d,!0),p.copy_.set(d,f),p.assigned_.set(d,!0)),this}delete(d){if(!this.has(d))return!1;const f=this[st];return u(f),n(f),Zr(f),f.base_.has(d)?f.assigned_.set(d,!1):f.assigned_.delete(d),f.copy_.delete(d),!0}clear(){const d=this[st];u(d),Jt(d).size&&(n(d),Zr(d),d.assigned_=new Map,na(d.base_,f=>{d.assigned_.set(f,!1)}),d.copy_.clear())}forEach(d,f){const p=this[st];Jt(p).forEach((m,T,y)=>{d.call(f,this.get(T),T,this)})}get(d){const f=this[st];u(f);const p=Jt(f).get(d);if(f.finalized_||!Jr(p)||p!==f.base_.get(d))return p;const m=sa(p,f);return n(f),f.copy_.set(d,m),m}keys(){return Jt(this[st]).keys()}values(){const d=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const f=d.next();return f.done?f:{done:!1,value:this.get(f.value)}}}}entries(){const d=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const f=d.next();if(f.done)return f;const p=this.get(f.value);return{done:!1,value:[f.value,p]}}}}[Symbol.iterator](){return this.entries()}}function t(l,d){return new e(l,d)}function n(l){l.copy_||(l.assigned_=new Map,l.copy_=new Map(l.base_))}class r extends Set{constructor(d,f){super(),this[st]={type_:3,parent_:f,scope_:f?f.scope_:nl(),modified_:!1,finalized_:!1,copy_:void 0,base_:d,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Jt(this[st]).size}has(d){const f=this[st];return u(f),f.copy_?!!(f.copy_.has(d)||f.drafts_.has(d)&&f.copy_.has(f.drafts_.get(d))):f.base_.has(d)}add(d){const f=this[st];return u(f),this.has(d)||(a(f),Zr(f),f.copy_.add(d)),this}delete(d){if(!this.has(d))return!1;const f=this[st];return u(f),a(f),Zr(f),f.copy_.delete(d)||(f.drafts_.has(d)?f.copy_.delete(f.drafts_.get(d)):!1)}clear(){const d=this[st];u(d),Jt(d).size&&(a(d),Zr(d),d.copy_.clear())}values(){const d=this[st];return u(d),a(d),d.copy_.values()}entries(){const d=this[st];return u(d),a(d),d.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(d,f){const p=this.values();let m=p.next();for(;!m.done;)d.call(f,m.value,m.value,this),m=p.next()}}function o(l,d){return new r(l,d)}function a(l){l.copy_||(l.copy_=new Set,l.base_.forEach(d=>{if(Jr(d)){const f=sa(d,l);l.drafts_.set(d,f),l.copy_.add(f)}else l.copy_.add(d)}))}function u(l){l.revoked_&&nr(3,JSON.stringify(Jt(l)))}EA("MapSet",{proxyMap_:t,proxySet_:o})}var AA=new _A,vA=AA.produce;function tg(e,t,n){var r=F.useMemo(function(){return vA(e)},[e]);return F.useReducer(r,t,n)}const ng={PAGE_CHANGED:"page-changed",PAGE_SIZE_CHANGED:"page-size-changed",FACET_FILTERS_CHANGED:"facet-filters-changed",RANGE_FILTERS_CHANGED:"range-filters-changed",CATALOG_SEGMENT_CHANGED:"catalog-segment-changed",PRICEBOOKS_CHANGED:"pricebooks-changed"},gt={RESET_STATE:"RESET_STATE",RESET_COPILOT:"RESET_COPILOT",ADD_MESSAGE:"ADD_MESSAGE",SET_COPILOT:"SET_COPILOT",SET_CONNECTED:"SET_CONNECTED",ADD_LOADING_MESSAGE:"ADD_LOADING_MESSAGE",REMOVE_LOADING_MESSAGE:"REMOVE_LOADING_MESSAGE",SET_ACTIVE_CONVERSATION_ID:"SET_ACTIVE_CONVERSATION_ID",ADD_CONVERSATION_ID:"ADD_CONVERSATION_ID",SET_CONVERSATION_IDS:"SET_CONVERSATION_IDS",SET_CONVERSATION_HISTORY_LOADED:"SET_CONVERSATION_HISTORY_LOADED",SET_IMAGE_FILE:"SET_IMAGE_FILE",SET_ASK_CIM_PROMPTS:"SET_ASK_CIM_PROMPTS"},Zi={copilot:null,connected:!1,messages:[],groupedMessages:[],loadingMessages:new Set,activeConversationId:null,conversationIds:[],conversationHistoryLoaded:!1,imageFile:null,askCimPrompts:{requestId:null,message:null}},rg=["ask_cim","search","browse","pdp"],CA=e=>rg.includes(e),ig={ask_cim:"ask_cim",search:"copilot_search",browse:"copilot_browse",pdp:"product_view"};new Set(Object.values(ig));const kA=new Map(Object.entries(ig).map(([e,t])=>[t,e])),NA=e=>{var t;return(t=kA.get(e))!=null?t:null},Yo="cimulate",Zd=`${Yo}:pdp-update`,ef=`${Yo}:browse-update`,tf=`${Yo}:search-update`,nf=`${Yo}:ui-state-update`,rf=`${Yo}:prompts-state-update`,of=`${Yo}:session-state`,Or=B({CONTEXT_UPDATED:"browse-context-updated",CATEGORY_ID_CHANGED:"category-id-changed",CATEGORY_NAME_CHANGED:"category-name-changed"},ng),PA={"browse-context":Or.CONTEXT_UPDATED,categoryId:Or.CATEGORY_ID_CHANGED,categoryName:Or.CATEGORY_NAME_CHANGED,page:Or.PAGE_CHANGED,pageSize:Or.PAGE_SIZE_CHANGED,includeFacets:Or.FACET_FILTERS_CHANGED,facetFilters:Or.FACET_FILTERS_CHANGED,rangeFilters:Or.RANGE_FILTERS_CHANGED,catalogSegment:Or.CATALOG_SEGMENT_CHANGED,pricebooks:Or.PRICEBOOKS_CHANGED},ei=B({SEARCH_CONTEXT_UPDATED:"search-context-updated",QUERY_CHANGED:"query-changed"},ng),OA={"search-context":ei.SEARCH_CONTEXT_UPDATED,query:ei.QUERY_CHANGED,page:ei.PAGE_CHANGED,pageSize:ei.PAGE_SIZE_CHANGED,includeFacets:ei.FACET_FILTERS_CHANGED,facetFilters:ei.FACET_FILTERS_CHANGED,rangeFilters:ei.RANGE_FILTERS_CHANGED,catalogSegment:ei.CATALOG_SEGMENT_CHANGED,pricebooks:ei.PRICEBOOKS_CHANGED},H="cim-widget",Vn=`--${H}`,eo={primaryColor:"#3182ce",secondaryColor:"#2c5282",fontColor:"#1a202c",fontFamily:"inherit",backgroundColor:"#ffffff",borderColor:"#dddddd",borderRadius:"0.25rem"},IA=(e={},t)=>{const n=t==="commerce",r=n?"#db665e":eo.primaryColor,o=n?"#c9554d":eo.secondaryColor,a=n?"0.75rem":eo.borderRadius;return{[`${Vn}-primary-color`]:e.primaryColor||r,[`${Vn}-secondary-color`]:e.secondaryColor||o,[`${Vn}-font-color`]:e.fontColor||eo.fontColor,[`${Vn}-font-family`]:e.fontFamily||eo.fontFamily,[`${Vn}-background-color`]:e.backgroundColor||eo.backgroundColor,[`${Vn}-border-color`]:e.borderColor||eo.borderColor,[`${Vn}-border-radius`]:e.borderRadius===0?"0":String(e.borderRadius||a)}},ti={RESET_CONVERSATION:"reset-conversation",END_CONVERSATION:"end-conversation",GET_SESSION_INFORMATION:"get-session-information",GET_CONVERSATION_MESSAGES:"get-conversation-messages",LOAD_CONVERSATION:"load-conversation"},og=F.createContext(null),sg=F.createContext(null),Et={SET_PROMPTS_EXTENSION_INITIALIZED:"SET_PROMPTS_EXTENSION_INITIALIZED",SET_PROMPTS_EXTENSION_OPEN:"SET_PROMPTS_EXTENSION_OPEN",SET_PROMPTS_EXTENSION_INLINE:"SET_PROMPTS_EXTENSION_INLINE",SET_PROMPTS_EXTENSION_ELEMENT_ID:"SET_PROMPTS_EXTENSION_ELEMENT_ID",SET_PROMPTS_EXTENSION_ENTRY_TYPE:"SET_PROMPTS_EXTENSION_ENTRY_TYPE",SET_PROMPTS_EXTENSION_PARAMS:"SET_PROMPTS_EXTENSION_PARAMS",RESET_PROMPTS_EXTENSION_PARAMS:"RESET_PROMPTS_EXTENSION_PARAMS",SET_PROMPTS_EXTENSION_ACTIVE_PROMPTS_ID:"SET_PROMPTS_EXTENSION_ACTIVE_PROMPTS_ID",RESET_PROMPTS_EXTENSION_ACTIVE_PROMPTS_ID:"RESET_PROMPTS_EXTENSION_ACTIVE_PROMPTS_ID",SET_PROMPTS_EXTENSION_USER_PROMPT:"SET_PROMPTS_EXTENSION_USER_PROMPT",SET_PROMPTS_EXTENSION_PROMPTS_MESSAGE:"SET_PROMPTS_EXTENSION_PROMPTS_MESSAGE",RESET_PROMPTS_EXTENSION_PROMPTS_MESSAGE:"RESET_PROMPTS_EXTENSION_PROMPTS_MESSAGE",SET_PROMPTS_EXTENSION_RESPONSE_MESSAGE:"SET_PROMPTS_EXTENSION_RESPONSE_MESSAGE",RESET_PROMPTS_EXTENSION_RESPONSE_MESSAGE:"RESET_PROMPTS_EXTENSION_RESPONSE_MESSAGE",SET_PROMPTS_EXTENSION_RESPONSE_LOADING:"SET_PROMPTS_EXTENSION_RESPONSE_LOADING"},ag={isInitialized:!1,isOpen:!1,isInline:!1,elementId:null,placeholder:null,askElseButtonLabel:null,entryType:null,params:null,activePromptsId:null,userPrompt:null,promptsMessage:null,isResponseLoading:!1,responseMessage:null,promptsDisplay:"both",staticQuestions:[],staticQuestionsStrategy:"append",disableAskElseButton:!1};function ug(e,t){return function(){return e.apply(t,arguments)}}const{toString:RA}=Object.prototype,{getPrototypeOf:Ti}=Object,{iterator:aa,toStringTag:lg}=Symbol,ua=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cg=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),dg=(e,t,n)=>e===Object.prototype||!n&&t===null,LA=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(cg(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},la=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const o=Ti(n);if(dg(n,o,n===e))return!1;if(ua(n,t))return!0;n=o}return!1},DA=(e,t)=>e!=null&&la(e,t)?e[t]:void 0,MA=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Ti(e);if(t===null&&LA(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let a=e;for(;a!=null&&o.indexOf(a)===-1;){o.push(a);const u=a===e?t:Ti(a);if(dg(a,u,a===e))break;const l=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(a));for(const d of l)cg(d)||ua(r,d)||(n[d]=e[d],r[d]=!0);a=u}return n},sf=(e=>t=>{const n=RA.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rr=e=>(e=e.toLowerCase(),t=>sf(t)===e),ol=e=>t=>typeof t===e,{isArray:to}=Array,no=ol("undefined");function Wo(e){return e!==null&&!no(e)&&e.constructor!==null&&!no(e.constructor)&&Rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fg=rr("ArrayBuffer");function FA(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fg(e.buffer),t}const BA=ol("string"),Rn=ol("function"),hg=ol("number"),Go=e=>e!==null&&typeof e=="object",UA=e=>e===!0||e===!1,sl=e=>{if(!Go(e))return!1;const t=Ti(e);return(t===null||t===Object.prototype||Ti(t)===null)&&!la(e,lg)&&!la(e,aa)},HA=e=>{if(!Go(e)||Wo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},zA=rr("Date"),jA=rr("File"),$A=e=>!!(e&&typeof e.uri!="undefined"),VA=e=>e&&typeof e.getParts!="undefined",qA=rr("Blob"),YA=rr("FileList"),WA=rr("Set"),GA=e=>Go(e)&&Rn(e.pipe);function XA(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const pg=XA(),mg=typeof pg.FormData!="undefined"?pg.FormData:void 0,KA=e=>{if(!e)return!1;if(mg&&e instanceof mg)return!0;const t=Ti(e);if(!t||t===Object.prototype||!Rn(e.append))return!1;const n=sf(e);return n==="formdata"||n==="object"&&Rn(e.toString)&&e.toString()==="[object FormData]"},QA=rr("URLSearchParams"),[JA,ZA,ev,tv]=["ReadableStream","Request","Response","Headers"].map(rr),nv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ca(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),to(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Wo(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let l;for(r=0;r<u;r++)l=a[r],t.call(null,e[l],l,e)}}function gg(e,t){if(Wo(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ro=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Eg=e=>!no(e)&&e!==ro;function af(...e){const{caseless:t,skipUndefined:n}=Eg(this)&&this||{},r={},o=(a,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const l=t&&typeof u=="string"&&gg(r,u)||u,d=ua(r,l)?r[l]:void 0;sl(d)&&sl(a)?r[l]=af(d,a):sl(a)?r[l]=af({},a):to(a)?r[l]=a.slice():(!n||!no(a))&&(r[l]=a)};for(let a=0,u=e.length;a<u;a++){const l=e[a];if(!l||Wo(l)||(ca(l,o),typeof l!="object"||to(l)))continue;const d=Object.getOwnPropertySymbols(l);for(let f=0;f<d.length;f++){const p=d[f];pv.call(l,p)&&o(l[p],p)}}return r}const rv=(e,t,n,{allOwnKeys:r}={})=>(ca(t,(o,a)=>{n&&Rn(o)?Object.defineProperty(e,a,{__proto__:null,value:ug(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),iv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ov=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},sv=(e,t,n,r)=>{let o,a,u;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!r||r(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&Ti(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},av=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},uv=e=>{if(!e)return null;if(to(e))return e;let t=e.length;if(!hg(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lv=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Ti(Uint8Array)),cv=(e,t)=>{const r=(e&&e[aa]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},dv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},fv=rr("HTMLFormElement"),hv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:pv}=Object.prototype,mv=rr("RegExp"),yg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ca(n,(o,a)=>{let u;(u=t(o,a,e))!==!1&&(r[a]=u||o)}),Object.defineProperties(e,r)},gv=e=>{yg(e,(t,n)=>{if(Rn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Rn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ev=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return to(e)?r(e):r(String(e).split(t)),n},yv=()=>{},bv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Tv(e){return!!(e&&Rn(e.append)&&e[lg]==="FormData"&&e[aa])}const wv=e=>{const t=new WeakSet,n=r=>{if(Go(r)){if(t.has(r))return;if(Wo(r))return r;if(!("toJSON"in r)){t.add(r);let o;if(WA(r)){o=[];for(const a of r){const u=n(a);!no(u)&&o.push(u)}}else o=to(r)?[]:{},ca(r,(a,u)=>{const l=n(a);!no(l)&&(o[u]=l)});return t.delete(r),o}}return r};return n(e)},_v=rr("AsyncFunction"),xv=e=>e&&(Go(e)||Rn(e))&&Rn(e.then)&&Rn(e.catch),bg=((e,t)=>e?setImmediate:t?((n,r)=>(ro.addEventListener("message",({source:o,data:a})=>{o===ro&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ro.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Rn(ro.postMessage)),Sv=typeof queueMicrotask!="undefined"?queueMicrotask.bind(ro):typeof process!="undefined"&&process.nextTick||bg,Tg=e=>e!=null&&Rn(e[aa]),j={isArray:to,isArrayBuffer:fg,isBuffer:Wo,isFormData:KA,isArrayBufferView:FA,isString:BA,isNumber:hg,isBoolean:UA,isObject:Go,isPlainObject:sl,isEmptyObject:HA,isReadableStream:JA,isRequest:ZA,isResponse:ev,isHeaders:tv,isUndefined:no,isDate:zA,isFile:jA,isReactNativeBlob:$A,isReactNative:VA,isBlob:qA,isRegExp:mv,isFunction:Rn,isStream:GA,isURLSearchParams:QA,isTypedArray:lv,isFileList:YA,forEach:ca,merge:af,extend:rv,trim:nv,stripBOM:iv,inherits:ov,toFlatObject:sv,kindOf:sf,kindOfTest:rr,endsWith:av,toArray:uv,forEachEntry:cv,matchAll:dv,isHTMLForm:fv,hasOwnProperty:ua,hasOwnProp:ua,hasOwnInPrototypeChain:la,getSafeProp:DA,toSafeFlatObject:MA,reduceDescriptors:yg,freezeMethods:gv,toObjectSet:Ev,toCamelCase:hv,noop:yv,toFiniteNumber:bv,findKey:gg,global:ro,isContextDefined:Eg,isSpecCompliantForm:Tv,toJSONObject:wv,isAsyncFn:_v,isThenable:xv,setImmediate:bg,asap:Sv,isIterable:Tg,isSafeIterable:e=>e!=null&&la(e,aa)&&Tg(e)},Av=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vv=e=>{const t={};let n,r,o;return e&&e.split(`
3
3
  `).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),r=u.substring(o+1).trim();const l=j.hasOwnProp(t,n);!n||l&&j.hasOwnProp(Av,n)||(n==="set-cookie"?l?t[n].push(r):t[n]=[r]:t[n]=l?t[n]+", "+r:r)}),t};function Cv(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const kv=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Nv=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function uf(e,t){return j.isArray(e)?e.map(n=>uf(n,t)):Cv(String(e).replace(t,""))}const Pv=e=>uf(e,kv),Ov=e=>uf(e,Nv);function wg(e){const t=Object.create(null);return j.forEach(e.toJSON(),(n,r)=>{t[r]=Ov(n)}),t}const _g=Symbol("internals");function da(e){return e&&String(e).trim().toLowerCase()}function al(e){return e===!1||e==null?e:j.isArray(e)?e.map(al):Pv(String(e))}function Iv(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Rv=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function lf(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Lv(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(o===34||o===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function Dv(e){const t=Object.create(null),n=String(e);let r=0,o=!1,a=!1;function u(l){const d=lf(n.slice(r,l)),f=d.indexOf("=");if(f<1)return;const p=lf(d.slice(0,f));if(!Rv.test(p))return;const m=p.toLowerCase();if(m==="__proto__"||m==="constructor"||m==="prototype")return;const T=lf(d.slice(f+1));t[m]=Lv(T)}for(let l=0;l<n.length;l++){const d=n.charCodeAt(l);o?a?a=!1:d===92?a=!0:d===34&&(o=!1):d===34?o=!0:(d===44||d===59)&&(u(l),r=l+1)}return u(n.length),t}const Mv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function cf(e,t,n,r,o){if(j.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!j.isString(t)){if(j.isString(r))return t.indexOf(r)!==-1;if(j.isRegExp(r))return r.test(t)}}function Fv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Bv(e,t){const n=j.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,a,u){return this[r].call(this,t,o,a,u)},configurable:!0})})}let mn=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,d,f){const p=da(d);if(!p)return;const m=j.findKey(o,p);(!m||o[m]===void 0||f===!0||f===void 0&&o[m]!==!1)&&(o[m||d]=al(l))}const u=(l,d)=>j.forEach(l,(f,p)=>a(f,p,d));if(j.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(j.isString(t)&&(t=t.trim())&&!Mv(t))u(vv(t),n);else if(j.isObject(t)&&j.isSafeIterable(t)){let l=Object.create(null),d,f;for(const p of t){if(!j.isArray(p))throw new TypeError("Object iterator must return a key-value pair");f=p[0],j.hasOwnProp(l,f)?(d=l[f],l[f]=j.isArray(d)?[...d,p[1]]:[d,p[1]]):l[f]=p[1]}u(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=da(t),t){const r=j.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Iv(o);if(j.isFunction(n))return n.call(this,o,r);if(j.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=da(t),t){const r=j.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||cf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(u){if(u=da(u),u){const l=j.findKey(r,u);l&&(!n||cf(r,r[l],l,n))&&(delete r[l],o=!0)}}return j.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||cf(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return j.forEach(this,(o,a)=>{const u=j.findKey(r,a);if(u){n[u]=al(o),delete n[a];return}const l=t?Fv(a):String(a).trim();l!==a&&delete n[a],n[l]=al(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return j.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&j.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
4
4
  `)}getSetCookie(){const t=this.get("set-cookie");return j.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return Dv(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[_g]=this[_g]={accessors:{}}).accessors,o=this.prototype;function a(u){const l=da(u);r[l]||(Bv(o,u),r[l]=!0)}return j.isArray(t)?t.forEach(a):a(t),this}};mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(mn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),j.freezeMethods(mn);const ul="[REDACTED ****]";function Uv(e){if(j.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(j.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Hv(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],o=a=>{if(a===null||typeof a!="object"||j.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof mn&&(a=a.toJSON()),r.push(a);let u;if(j.isArray(a))u=[],a.forEach((l,d)=>{const f=o(l);j.isUndefined(f)||(u[d]=f)});else{if(!j.isPlainObject(a)&&Uv(a))return r.pop(),a;u=Object.create(null);for(const[l,d]of Object.entries(a)){const f=n.has(l.toLowerCase())?ul:o(d);j.isUndefined(f)||(u[l]=f)}}return r.pop(),u};return o(e)}function xg(e){try{return String(e)}catch(t){return""}}function zv(e){return e.errors.map(n=>{try{return n&&n.message?xg(n.message):xg(n)}catch(r){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let be=class eS extends Error{static from(t,n,r,o,a,u){let l=t.message;!l&&j.isArray(t.errors)&&t.errors.length&&(l=zv(t));const d=new eS(l,n||t.code,r,o,a);return Object.defineProperty(d,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),d.name=t.name,t.status!=null&&d.status==null&&(d.status=t.status),u&&Object.assign(d,u),d}constructor(t,n,r,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&j.hasOwnProp(t,"redact")?t.redact:void 0,r=j.isArray(n)&&n.length>0?Hv(t,n):j.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};be.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",be.ERR_BAD_OPTION="ERR_BAD_OPTION",be.ECONNABORTED="ECONNABORTED",be.ETIMEDOUT="ETIMEDOUT",be.ECONNREFUSED="ECONNREFUSED",be.ERR_NETWORK="ERR_NETWORK",be.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",be.ERR_DEPRECATED="ERR_DEPRECATED",be.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",be.ERR_BAD_REQUEST="ERR_BAD_REQUEST",be.ERR_CANCELED="ERR_CANCELED",be.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",be.ERR_INVALID_URL="ERR_INVALID_URL",be.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const jv=null,Sg=100;function df(e){return j.isPlainObject(e)||j.isArray(e)}function Ag(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function ff(e,t,n){return e?e.concat(t).map(function(o,a){return o=Ag(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function $v(e){return j.isArray(e)&&!e.some(df)}const Vv=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function ll(e,t,n){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(v,C)=>{const U=j.getSafeProp(n,v);return j.isUndefined(U)?C:U},o=r("metaTokens",!0),a=r("visitor")||A,u=r("dots",!1),l=r("indexes",!1),d=r("Blob")||typeof Blob!="undefined"&&Blob,f=r("maxDepth",Sg),p=d&&j.isSpecCompliantForm(t),m=[];if(!j.isFunction(a))throw new TypeError("visitor must be a function");function T(v){if(v===null)return"";if(j.isDate(v))return v.toISOString();if(j.isBoolean(v))return v.toString();if(!p&&j.isBlob(v))throw new be("Blob is not supported. Use a Buffer instead.");if(j.isArrayBuffer(v)||j.isTypedArray(v)){if(p&&typeof d=="function")return new d([v]);throw new be("Blob is not supported. Use a Buffer instead.",be.ERR_NOT_SUPPORT)}return v}function y(v){if(v>f)throw new be("Object is too deeply nested ("+v+" levels). Max depth: "+f,be.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(v,C){if(f===1/0)return JSON.stringify(v);const U=[];return JSON.stringify(v,function(R,Y){if(!j.isObject(Y))return Y;for(;U.length&&U[U.length-1]!==this;)U.pop();return U.push(Y),y(C+U.length-1),Y})}function A(v,C,U){let V=v;if(j.isReactNative(t)&&j.isReactNativeBlob(v))return t.append(ff(U,C,u),T(v)),!1;if(v&&!U&&typeof v=="object"){if(j.endsWith(C,"{}"))C=o?C:C.slice(0,-2),v=w(v,1);else if(j.isArray(v)&&$v(v)||(j.isFileList(v)||j.endsWith(C,"[]"))&&(V=j.toArray(v)))return C=Ag(C),V.forEach(function(Y,re){!(j.isUndefined(Y)||Y===null)&&t.append(l===!0?ff([C],re,u):l===null?C:C+"[]",T(Y))}),!1}return df(v)?!0:(t.append(ff(U,C,u),T(v)),!1)}const N=Object.assign(Vv,{defaultVisitor:A,convertValue:T,isVisitable:df});function S(v,C,U=0){if(!j.isUndefined(v)){if(y(U),m.indexOf(v)!==-1)throw new Error("Circular reference detected in "+C.join("."));m.push(v),j.forEach(v,function(R,Y){(!(j.isUndefined(R)||R===null)&&a.call(t,R,j.isString(Y)?Y.trim():Y,C,N))===!0&&S(R,C?C.concat(Y):[Y],U+1)}),m.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return S(e),t}function vg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function hf(e,t){this._pairs=[],e&&ll(e,this,t)}const Cg=hf.prototype;Cg.append=function(t,n){this._pairs.push([t,n])},Cg.toString=function(t){const n=t?r=>t.call(this,r,vg):vg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function qv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function kg(e,t,n){if(!t)return e;e=e||"";const r=j.isFunction(n)?{serialize:n}:n,o=j.getSafeProp(r,"encode")||qv,a=j.getSafeProp(r,"serialize");let u;if(a?u=a(t,r):u=j.isURLSearchParams(t)?t.toString():new hf(t,r).toString(o),u){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}const fa=Symbol("internals");function Ng(e){return e?e.length:0}function Pg(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function ha(e,t){const n=e.handlers,r=Ng(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(a,u){n[a.index]!==a.handler&&t.handlerEntries.delete(u)}):t.handlerEntries.clear()),t.handlersLength=r}class Og{constructor(){this.handlers=[],this[fa]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const o={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},a=this[fa];this.handlers==null&&(this.handlers=[]),ha(this,a);const u=a.nextId++;return this.handlers.push(o),a.handlerEntries.set(u,{handler:o,index:this.handlers.length-1}),a.handlersLength=this.handlers.length,u}eject(t){const n=this[fa];ha(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(Pg(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],ha(this,this[fa]))}forEach(t){const n=this[fa];ha(this,n),n.iterationDepth++;try{j.forEach(this.handlers,function(o){o!==null&&t(o)})}finally{--n.iterationDepth||(ha(this,n),Pg(this.handlers),n.handlersLength=Ng(this.handlers))}}}const pf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Yv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:hf,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},mf=typeof window!="undefined"&&typeof document!="undefined",gf=typeof navigator=="object"&&navigator||void 0,Wv=mf&&(!gf||["ReactNative","NativeScript","NS"].indexOf(gf.product)<0),Gv=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xv=mf&&window.location.href||"http://localhost",Zt=B(B({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mf,hasStandardBrowserEnv:Wv,hasStandardBrowserWebWorkerEnv:Gv,navigator:gf,origin:Xv},Symbol.toStringTag,{value:"Module"}))),Yv);function Kv(e,t){return ll(e,new Zt.classes.URLSearchParams,B({visitor:function(n,r,o,a){return Zt.isNode&&j.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}const Ig=Sg;function Rg(e){if(e>Ig)throw new be("FormData field is too deeply nested ("+e+" levels). Max depth: "+Ig,be.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Qv(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)Rg(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Jv(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function Lg(e){function t(n,r,o,a){Rg(a);let u=n[a++];if(u==="__proto__")return!0;const l=Number.isFinite(+u),d=a>=n.length;return u=!u&&j.isArray(o)?o.length:u,d?(j.hasOwnProp(o,u)?o[u]=j.isArray(o[u])?o[u].concat(r):[o[u],r]:o[u]=r,!l):((!j.hasOwnProp(o,u)||!j.isObject(o[u]))&&(o[u]=[]),t(n,r,o[u],a)&&j.isArray(o[u])&&(o[u]=Jv(o[u])),!l)}if(j.isFormData(e)&&j.isFunction(e.entries)){const n={};return j.forEachEntry(e,(r,o)=>{t(Qv(r),o,n,0)}),n}return null}const Dg=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Xo=(e,t)=>e!=null&&j.hasOwnProp(e,t)?e[t]:void 0;function Zv(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pa={transitional:pf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=j.isObject(t);if(a&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return o?JSON.stringify(Lg(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)||j.isReadableStream(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){const d=Xo(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kv(t,d).toString();if((l=j.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=Xo(this,"env"),p=f&&f.FormData;return ll(l?{"files[]":t}:t,p&&new p,d)}}return a||o?(n.setContentType("application/json",!1),Zv(t)):t}],transformResponse:[function(t){const n=Xo(this,"transitional")||pa.transitional,r=n&&n.forcedJSONParsing,o=Xo(this,"responseType"),a=o==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(r&&!o||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,Xo(this,"parseReviver"))}catch(d){if(l)throw d.name==="SyntaxError"?be.from(d,be.ERR_BAD_RESPONSE,this,null,Xo(this,"response")):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zt.classes.FormData,Blob:Zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(Dg,e=>{pa.headers[e]={}});function Ef(e,t){const n=this||pa,r=t||n,o=mn.from(r.headers);let a=r.data;return j.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Mg(e){return!!(e&&e.__CANCEL__)}let ma=class extends be{constructor(t,n,r){super(t==null?"canceled":t,be.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Fg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new be("Request failed with status code "+n.status,n.status>=400&&n.status<500?be.ERR_BAD_REQUEST:be.ERR_BAD_RESPONSE,n.config,n.request,n))}const eC=/[\t\n\r]/g;function Bg(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(eC,"")}function yf(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function tC(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=r[a];u||(u=f),n[o]=d,r[o]=f;let m=a,T=0;for(;m!==o;)T+=n[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),f-u<t)return;const y=p&&f-p;return y?Math.round(T*1e3/y):void 0}}function nC(e,t){let n=0,r=1e3/t,o,a;const u=(p,m=Date.now())=>{n=m,o=null,a&&(clearTimeout(a),a=null),e(...p)};return[(...p)=>{const m=Date.now(),T=m-n;T>=r?u(p,m):(o=p,a||(a=setTimeout(()=>{a=null,u(o)},r-T)))},()=>o&&u(o),(...p)=>u(p)]}const cl=(e,t,n=3)=>{let r=0;const o=tC(50,250);return nC(a=>{if(!a||!j.isNumber(a.loaded))return;const u=a.loaded,l=a.lengthComputable?a.total:void 0,d=Math.max(0,l!=null?Math.min(u,l):u),f=Math.max(0,d-r),p=o(f);r=Math.max(r,d);const m={loaded:d,total:l,progress:l?d/l:void 0,bytes:f,rate:p||void 0,estimated:p&&l?(l-d)/p:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},n)},Ug=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Hg=(e,t=j.asap)=>(...n)=>t(()=>e(...n)),rC=Zt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Zt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Zt.origin),Zt.navigator&&/(msie|trident)/i.test(Zt.navigator.userAgent)):()=>!0,iC=Zt.hasStandardBrowserEnv?{write(e,t,n,r,o,a,u){if(typeof document=="undefined")return;const l=[`${e}=${encodeURIComponent(t)}`];j.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),j.isString(r)&&l.push(`path=${r}`),j.isString(o)&&l.push(`domain=${o}`),a===!0&&l.push("secure"),j.isString(u)&&l.push(`SameSite=${u}`),document.cookie=l.join("; ")},read(e){if(typeof document=="undefined")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch(a){return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function oC(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sC(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const aC=/^https?:(?!\/\/)/i;function uC(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${ul}`)}function lC(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ul}@`),n=t.indexOf("#"),o=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ul}`);return n===-1?o:`${o}#${uC(t.slice(n+1))}`}function zg(e,t){if(typeof e=="string"){const n=Bg(e);if(aC.test(n))throw new be(`Invalid URL ${JSON.stringify(lC(n))}: missing "//" after protocol`,be.ERR_INVALID_URL,t)}}function jg(e,t,n,r){zg(t,r);let o=!oC(t);return e&&(o||n===!1)?(zg(e,r),sC(e,t)):t}const $g=e=>e instanceof mn?B({},e):e,cC=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function io(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(p,m,T,y){return j.isPlainObject(p)&&j.isPlainObject(m)?j.merge.call({caseless:y},p,m):j.isPlainObject(m)?j.merge({},m):j.isArray(m)?m.slice():m}function o(p,m,T,y){if(j.isUndefined(m)){if(!j.isUndefined(p))return r(void 0,p,T,y)}else return r(p,m,T,y)}function a(p,m){if(!j.isUndefined(m))return r(void 0,m)}function u(p,m){if(j.isUndefined(m)){if(!j.isUndefined(p))return r(void 0,p)}else return r(void 0,m)}function l(p){const m=j.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!j.isUndefined(m))if(j.isPlainObject(m)){if(j.hasOwnProp(m,p))return m[p]}else return;const T=j.hasOwnProp(e,"transitional")?e.transitional:void 0;if(j.isPlainObject(T)&&j.hasOwnProp(T,p))return T[p]}function d(p,m,T){if(j.hasOwnProp(t,T))return r(p,m);if(j.hasOwnProp(e,T))return r(void 0,p)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutErrorMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:d,headers:(p,m,T)=>o($g(p),$g(m),T,!0)};return j.forEach(cC(B(B({},e),t)),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const T=j.hasOwnProp(f,m)?f[m]:o,y=j.hasOwnProp(e,m)?e[m]:void 0,w=j.hasOwnProp(t,m)?t[m]:void 0,A=T(y,w,m);j.isUndefined(A)&&T!==d||(n[m]=A)}),j.hasOwnProp(t,"validateStatus")&&j.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(j.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const dC=["content-type","content-length"];function fC(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{dC.includes(r.toLowerCase())&&e.set(r,o)})}const hC=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Vg(e){const t=io({},e),n=T=>j.hasOwnProp(t,T)?t[T]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),u=n("xsrfCookieName");let l=n("headers");const d=n("auth"),f=n("baseURL"),p=n("allowAbsoluteUrls"),m=n("url");if(t.headers=l=mn.from(l),t.url=kg(jg(f,m,p,t),n("params"),n("paramsSerializer")),d){const T=j.getSafeProp(d,"username")||"",y=j.getSafeProp(d,"password")||"";try{l.set("Authorization","Basic "+btoa(T+":"+(y?hC(y):"")))}catch(w){throw be.from(w,be.ERR_BAD_OPTION_VALUE,e)}}if(j.isFormData(r)){const T=j.getSafeProp(r,"getHeaders");Zt.hasStandardBrowserEnv||Zt.hasStandardBrowserWebWorkerEnv||j.isReactNative(r)?l.setContentType(void 0):j.isFunction(T)&&fC(l,T.call(r),n("formDataHeaderPolicy"))}if(Zt.hasStandardBrowserEnv&&(j.isFunction(o)&&(o=o(t)),o===!0||o==null&&rC(t.url))){const y=a&&u&&iC.read(u);y&&l.set(a,y)}return t}const pC=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,r){const o=Vg(e);let a=o.data;const u=mn.from(o.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:f}=o,p,m,T,y,w,A;function N(){y&&y(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function v(U){if(!S)return;if(S.status===0&&(yf(Bg(o.url))||yf(Zt.origin))!=="file"&&!(S.responseURL&&S.responseURL.startsWith("file:"))){r(new be("Request aborted",be.ECONNABORTED,e,S)),N(),S=null;return}try{U?A&&A(U):w&&w()}catch(re){setTimeout(()=>{throw re})}if(!S)return;const V=mn.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),Y={data:!l||l==="text"||l==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:V,config:e,request:S};Fg(function(Ee){n(Ee),N()},function(Ee){r(Ee),N()},Y),S=null}"onloadend"in S?S.onloadend=v:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(v)},S.onabort=function(){S&&(r(new be("Request aborted",be.ECONNABORTED,e,S)),N(),S=null)},S.onerror=function(V){const R=V&&V.message?V.message:"Network Error",Y=new be(R,be.ERR_NETWORK,e,S);Y.event=V||null,r(Y),N(),S=null},S.ontimeout=function(){let V=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||pf;o.timeoutErrorMessage&&(V=o.timeoutErrorMessage),r(new be(V,R.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,S)),N(),S=null},a===void 0&&u.setContentType(null),"setRequestHeader"in S&&j.forEach(wg(u),function(V,R){S.setRequestHeader(R,V)}),j.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),l&&l!=="json"&&(S.responseType=o.responseType),f&&([T,w,A]=cl(f,!0),S.addEventListener("progress",T)),d&&S.upload&&([m,y]=cl(d),S.upload.addEventListener("progress",m),S.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=U=>{S&&(r(!U||U.type?new ma(null,e,S):U),S.abort(),N(),S=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const C=yf(o.url);if(C&&!Zt.protocols.includes(C)){r(new be("Unsupported protocol "+C+":",be.ERR_BAD_REQUEST,e)),N();return}S.send(a||null)})},mC=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(d){if(!r){r=!0,u();const f=d instanceof Error?d:this.reason;n.abort(f instanceof be?f:new ma(f instanceof Error?f.message:f))}};let a=t&&setTimeout(()=>{a=null,o(new be(`timeout of ${t}ms exceeded`,be.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>{if(!r){if(d.aborted){o.call(d);return}d.addEventListener("abort",o,{once:!0})}});const{signal:l}=n;return l.unsubscribe=()=>j.asap(u),l},gC=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},EC=function(e,t){return vd(this,null,function*(){try{for(var n=Z2(yC(e)),r,o,a;r=!(o=yield new Qr(n.next())).done;r=!1){const u=o.value;yield*g0(gC(u,t))}}catch(o){a=[o]}finally{try{r&&(o=n.return)&&(yield new Qr(o.call(n)))}finally{if(a)throw a[0]}}})},yC=function(e){return vd(this,null,function*(){if(e[Symbol.asyncIterator]){yield*g0(e);return}const t=e.getReader();try{for(;;){const{done:n,value:r}=yield new Qr(t.read());if(n)break;yield r}}finally{yield new Qr(t.cancel())}})},qg=(e,t,n,r)=>{const o=EC(e,t);let a=0,u,l=f=>{u||(u=!0,r&&r(f))};return new ReadableStream({pull(f){return et(this,null,function*(){try{const{done:p,value:m}=yield o.next();if(p){l(),f.close();return}let T=m.byteLength;if(n){let y=a+=T;n(y)}f.enqueue(new Uint8Array(m))}catch(p){throw l(p),p}})},cancel(f){return l(f),o.return()}},{highWaterMark:2})},Yg=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Wg=(e,t,n)=>t+2<n&&Yg(e.charCodeAt(t+1))&&Yg(e.charCodeAt(t+2)),Gg=e=>e<=57?e-48:(e&223)-55,bC=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,TC=e=>e===9||e===10||e===12||e===13||e===32,wC=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},_C=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},xC=e=>{const t=e.length;let n=0,r=0,o=!1;for(let a=0;a<t;a++){let u=e.charCodeAt(a);if(u===37&&Wg(e,a,t)&&(u=Gg(e.charCodeAt(a+1))*16+Gg(e.charCodeAt(a+2)),a+=2),!TC(u)){if(u===61){r++;continue}if(!bC(u)||r>0){o=!0;continue}n++}}return o||r>2||r>0&&(n+r)%4!==0||n%4===1?_C(e):wC(n)},SC=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);let u=0;for(let l=0,d=o.length;l<d;l++){const f=o.charCodeAt(l);if(f===37&&Wg(o,l,d))u+=1,l+=2;else if(f<128)u+=1;else if(f<2048)u+=2;else if(f>=55296&&f<=56319&&l+1<d){const p=o.charCodeAt(l+1);p>=56320&&p<=57343?(u+=4,l++):u+=3}else u+=3}return u};function AC(e){const t=typeof e=="string"?e.indexOf("#"):-1;return SC(t===-1?e:e.slice(0,t),xC)}const bf="1.20.0",Xg=64*1024,vC={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:dl}=j,CC=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Kg=e=>{if(!j.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Qg=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},kC=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},NC=e=>{const t=j.global!==void 0&&j.global!==null?j.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=j.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:u}=e,l=o?dl(o):typeof fetch=="function",d=dl(a),f=dl(u);if(!l)return!1;const p=l&&dl(n),m=l&&(typeof r=="function"?(S=>v=>S.encode(v))(new r):S=>et(null,null,function*(){return new Uint8Array(yield new a(S).arrayBuffer())})),T=d&&p&&Qg(()=>{let S=!1;const v=new a(Zt.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),C=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),S&&!C}),y=f&&p&&Qg(()=>j.isReadableStream(new u("").body)),w={stream:y&&(S=>S.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!w[S]&&(w[S]=(v,C)=>{let U=v&&v[S];if(U)return U.call(v);throw new be(`Response type '${S}' is not supported`,be.ERR_NOT_SUPPORT,C)})});const A=S=>et(null,null,function*(){if(S==null)return 0;if(j.isBlob(S))return S.size;if(j.isSpecCompliantForm(S))return(yield new a(Zt.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(j.isArrayBufferView(S)||j.isArrayBuffer(S))return S.byteLength;if(j.isURLSearchParams(S)&&(S=S+""),j.isString(S))return(yield m(S)).byteLength}),N=(S,v)=>et(null,null,function*(){const C=j.toFiniteNumber(S.getContentLength());return C==null?A(v):C});return S=>et(null,null,function*(){let{url:v,method:C,data:U,signal:V,cancelToken:R,timeout:Y,onDownloadProgress:re,onUploadProgress:Ee,responseType:q,headers:ie,withCredentials:fe="same-origin",fetchOptions:ke,maxContentLength:ne,maxBodyLength:ae,maxRedirects:Se}=Vg(S);const se=j.isNumber(ne)&&ne>-1,J=j.isNumber(ae)&&ae>-1,oe=xe=>j.hasOwnProp(S,xe)?S[xe]:void 0;let k=o||fetch;q=q?(q+"").toLowerCase():"text";let M=mC([V,R&&R.toAbortSignal()],Y),Q=null;const O=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let _e,Be=null;const Ae=()=>new be("Request body larger than maxBodyLength limit",be.ERR_BAD_REQUEST,S,Q);try{let xe;const Pe=oe("auth");if(Pe){const Ve=j.getSafeProp(Pe,"username")||"",yt=j.getSafeProp(Pe,"password")||"";xe={username:Ve,password:yt}}if(kC(v)){const Ve=new URL(v,Zt.origin);if(!xe&&(Ve.username||Ve.password)){const yt=Kg(Ve.username),$t=Kg(Ve.password);xe={username:yt,password:$t}}(Ve.username||Ve.password)&&(Ve.username="",Ve.password="",v=Ve.href)}if(xe&&(ie.delete("authorization"),ie.set("Authorization","Basic "+btoa(CC((xe.username||"")+":"+(xe.password||""))))),se&&typeof v=="string"&&v.startsWith("data:")&&AC(v)>ne)throw new be("maxContentLength size of "+ne+" exceeded",be.ERR_BAD_RESPONSE,S,Q);if(J&&C!=="get"&&C!=="head"){const Ve=yield A(U);if(typeof Ve=="number"&&isFinite(Ve)&&(_e=Ve,Ve>ae))throw Ae()}const Ye=J&&(j.isReadableStream(U)||j.isStream(U)),ut=(Ve,yt,$t)=>qg(Ve,Xg,we=>{if(J&&we>ae)throw Be=Ae();yt&&yt(we)},$t);if(T&&C!=="get"&&C!=="head"&&(Ee||Ye)){if(_e=_e==null?yield N(ie,U):_e,_e!==0||Ye){let Ve=new a(v,{method:"POST",body:U,duplex:"half"}),yt;if(j.isFormData(U)&&(yt=Ve.headers.get("content-type"))&&ie.setContentType(yt),Ve.body){const[$t,we]=Ee&&Ug(_e,cl(Hg(Ee)))||[];U=ut(Ve.body,$t,we)}}}else if(Ye&&!d&&p&&C!=="get"&&C!=="head")U=ut(U);else if(Ye&&d&&!T&&C!=="get"&&C!=="head")throw new be("Stream request bodies are not supported by the current fetch implementation",be.ERR_NOT_SUPPORT,S,Q);j.isString(fe)||(fe=fe?"include":"omit");const ln=d&&"credentials"in a.prototype;if(j.isFormData(U)){const Ve=ie.getContentType();Ve&&/^multipart\/form-data/i.test(Ve)&&!/boundary=/i.test(Ve)&&ie.delete("content-type")}ie.set("User-Agent","axios/"+bf,!1);const Rt=ke==null?ke:Object.assign(Object.create(null),ke);Rt&&(delete Rt.body,delete Rt.headers,delete Rt.method,delete Rt.signal,delete Rt.duplex,delete Rt.credentials);const jt=Object.assign(Object.create(null),Rt,{signal:M,method:C.toUpperCase(),headers:wg(ie.normalize()),body:U,duplex:"half",credentials:ln?fe:void 0});d&&(j.forEach(vC,(Ve,yt)=>{jt[yt]===void 0&&(jt[yt]=Ve)}),jt.signal===void 0&&(jt.signal=null),jt.body===void 0&&(jt.body=null)),Se===0&&(jt.redirect="manual",Rt&&(Rt.redirect="manual")),Q=d&&new a(v,jt);let Nt=yield d?k(Q,Rt):k(v,jt);const Xn=mn.from(Nt.headers);if(se){const Ve=j.toFiniteNumber(Xn.getContentLength());if(Ve!=null&&Ve>ne)throw new be("maxContentLength size of "+ne+" exceeded",be.ERR_BAD_RESPONSE,S,Q)}const _n=y&&(q==="stream"||q==="response");if(y&&Nt.body&&(re||se||_n&&O)){const Ve={};["status","statusText","headers"].forEach(Xe=>{Ve[Xe]=Nt[Xe]});const yt=j.toFiniteNumber(Xn.getContentLength()),[$t,we]=re&&Ug(yt,cl(Hg(re),!0))||[];let Le=0;const Me=Xe=>{if(se&&(Le=Xe,Le>ne))throw new be("maxContentLength size of "+ne+" exceeded",be.ERR_BAD_RESPONSE,S,Q);$t&&$t(Xe)};Nt=new u(qg(Nt.body,Xg,Me,()=>{we&&we(),O&&O()}),Ve)}q=q||"text";let Gt=yield w[j.findKey(w,q)||"text"](Nt,S);if(se&&!y&&!_n){let Ve;if(Gt!=null&&(typeof Gt.byteLength=="number"?Ve=Gt.byteLength:typeof Gt.size=="number"?Ve=Gt.size:typeof Gt=="string"&&(Ve=typeof r=="function"?new r().encode(Gt).byteLength:Gt.length)),typeof Ve=="number"&&Ve>ne)throw new be("maxContentLength size of "+ne+" exceeded",be.ERR_BAD_RESPONSE,S,Q)}return!_n&&O&&O(),yield new Promise((Ve,yt)=>{Fg(Ve,yt,{data:Gt,headers:mn.from(Nt.headers),status:Nt.status,statusText:Nt.statusText,config:S,request:Q})})}catch(xe){if(O&&O(),M&&M.aborted&&M.reason instanceof be){const Pe=M.reason;throw Pe.config=S,Q&&(Pe.request=Q),xe!==Pe&&Object.defineProperty(Pe,"cause",{__proto__:null,value:xe,writable:!0,enumerable:!1,configurable:!0}),Pe}if(Be)throw Q&&!Be.request&&(Be.request=Q),Be;if(xe instanceof be)throw Q&&!xe.request&&(xe.request=Q),xe;if(xe&&xe.name==="TypeError"&&/Load failed|fetch/i.test(xe.message)){const Pe=new be("Network Error",be.ERR_NETWORK,S,Q,xe&&xe.response);throw Object.defineProperty(Pe,"cause",{__proto__:null,value:xe.cause||xe,writable:!0,enumerable:!1,configurable:!0}),Pe}throw be.from(xe,xe&&xe.code,S,Q,xe&&xe.response)}})},PC=new Map,Jg=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let u=a.length,l=u,d,f,p=PC;for(;l--;)d=a[l],f=p.get(d),f===void 0&&p.set(d,f=l?new Map:NC(t)),p=f;return f};Jg();const Tf={http:jv,xhr:pC,fetch:{get:Jg}};j.forEach(Tf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(n){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Zg=e=>`- ${e}`,OC=e=>j.isFunction(e)||e===null||e===!1;function IC(e,t){e=j.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let u=0;u<n;u++){r=e[u];let l;if(o=r,!OC(r)&&(o=Tf[(l=String(r)).toLowerCase()],o===void 0))throw new be(`Unknown adapter '${l}'`);if(o&&(j.isFunction(o)||(o=o.get(t))))break;a[l||"#"+u]=o}if(!o){const u=Object.entries(a).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?u.length>1?`since :