vendor: 4,597 bytes, line 1
1(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"main-20261002-f87f82c1c"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="62f724a0-1418-4a86-ab3a-309ee18d9873",e._sentryDebugIdIdentifier="sentry-dbid-62f724a0-1418-4a86-ab3a-309ee18d9873")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function ff(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jx={exports:{}},kh={};var S4;function AW(){if(S4)return kh;S4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var u in i)u!=="key"&&(s[u]=i[u])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return kh.Fragment=t,kh.jsx=n,kh.jsxs=n,kh}var w4;function _W(){return w4||(w4=1,jx.exports=AW()),jx.exports}var c=_W(),Ox={exports:{}},rt={};var C4;function RW(){if(C4)return rt;C4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.for("react.view_transition"),b=Symbol.iterator;function S(N){return N===null||typeof N!="object"?null:(N=b&&N[b]||N["@@iterator"],typeof N=="function"?N:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function E(N,le,ae){this.props=N,this.context=le,this.refs=C,this.updater=ae||I}E.prototype.isReactComponent={},E.prototype.setState=function(N,le){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,le,"setState")},E.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function A(){}A.prototype=E.prototype;function _(N,le,ae){this.props=N,this.context=le,this.refs=C,this.updater=ae||I}var R=_.prototype=new A;R.constructor=_,w(R,E.prototype),R.isPureReactComponent=!0;var L=Array.isArray;function j(){}var O={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function D(N,le,ae){var de=ae.ref;return{$$typeof:e,type:N,key:le,ref:de!==void 0?de:null,props:ae}}function H(N,le){return D(N.type,le,N.props)}function V(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function Y(N){var le={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ae){return le[ae]})}var K=/\/+/g;function z(N,le){return typeof N=="object"&&N!==null&&N.key!=null?Y(""+N.key):le.toString(36)}function q(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(j,j):(N.status="pending",N.then(function(le){N.status==="pending"&&(N.status="fulfilled",N.value=le)},function(le){N.status==="pending"&&(N.status="rejected",N.reason=le)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function $(N,le,ae,de,oe){var we=typeof N;(we==="undefined"||we==="boolean")&&(N=null);var je=!1;if(N===null)je=!0;else switch(we){case"bigint":case"string":case"number":je=!0;break;case"object":switch(N.$$typeof){case e:case t:je=!0;break;case m:return je=N._init,$(je(N._payload),le,ae,de,oe)}}if(je)return oe=oe(N),je=de===""?"."+z(N,0):de,L(oe)?(ae="",je!=null&&(ae=je.replace(K,"$&/")+"/"),$(oe,le,ae,"",function(qe){return qe})):oe!=null&&(V(oe)&&(oe=H(oe,ae+(oe.key==null||N&&N.key===oe.key?"":(""+oe.key).replace(K,"$&/")+"/")+je)),le.push(oe)),1;je=0;
vendor: 5,443 bytes, line 1
1var xe=de===""?".":de+":";if(L(N))for(var Se=0;Se<N.length;Se++)de=N[Se],we=xe+z(de,Se),je+=$(de,le,ae,we,oe);else if(Se=S(N),typeof Se=="function")for(N=Se.call(N),Se=0;!(de=N.next()).done;)de=de.value,we=xe+z(de,Se++),je+=$(de,le,ae,we,oe);else if(we==="object"){if(typeof N.then=="function")return $(q(N),le,ae,de,oe);throw le=String(N),Error("Objects are not valid as a React child (found: "+(le==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":le)+"). If you meant to render a collection of children, use an array instead.")}return je}function ue(N,le,ae){if(N==null)return N;var de=[],oe=0;return $(N,de,"","",function(we){return le.call(ae,we,oe++)}),de}function ge(N){if(N._status===-1){var le=N._result,ae=le();ae.then(function(de){(N._status===0||N._status===-1)&&(N._status=1,N._result=de,ae.status===void 0&&(ae.status="fulfilled",ae.value=de))},function(de){(N._status===0||N._status===-1)&&(N._status=2,N._result=de,ae.status===void 0&&(ae.status="rejected",ae.reason=de))}),N._status===-1&&(N._status=0,N._result=ae)}if(N._status===1)return N._result.default;throw N._result}var M=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var le=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(le))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function Z(N){var le=O.T,ae={};ae.types=le!==null?le.types:null,O.T=ae;try{var de=N(),oe=O.S;oe!==null&&oe(ae,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(j,M)}catch(we){M(we)}finally{le!==null&&ae.types!==null&&(le.types=ae.types),O.T=le}}function te(N){var le=O.T;if(le!==null){var ae=le.types;ae===null?le.types=[N]:ae.indexOf(N)===-1&&ae.push(N)}else Z(te.bind(null,N))}var B={map:ue,forEach:function(N,le,ae){ue(N,function(){le.apply(this,arguments)},ae)},count:function(N){var le=0;return ue(N,function(){le++}),le},toArray:function(N){return ue(N,function(le){return le})||[]},only:function(N){if(!V(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return rt.Activity=g,rt.Children=B,rt.Component=E,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=_,rt.StrictMode=r,rt.Suspense=d,rt.ViewTransition=y,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,rt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return O.H.useMemoCache(N)}},rt.addTransitionType=te,rt.cache=function(N){return function(){return N.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(N,le,ae){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var de=w({},N.props),oe=N.key;if(le!=null)for(we in le.key!==void 0&&(oe=""+le.key),le)!F.call(le,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&le.ref===void 0||(de[we]=le[we]);var we=arguments.length-2;if(we===1)de.children=ae;else if(1<we){for(var je=Array(we),xe=0;xe<we;xe++)je[xe]=arguments[xe+2];de.children=je}return D(N.type,oe,de)},rt.createContext=function(N){return N={$$typeof:l,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:s,_context:N},N},rt.createElement=function(N,le,ae){var de,oe={},we=null;if(le!=null)for(de in le.key!==void 0&&(we=""+le.key),le)F.call(le,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(oe[de]=le[de]);var je=arguments.length-2;if(je===1)oe.children=ae;else if(1<je){for(var xe=Array(je),Se=0;Se<je;Se++)xe[Se]=arguments[Se+2];oe.children=xe}if(N&&N.defaultProps)for(de in je=N.defaultProps,je)oe[de]===void 0&&(oe[de]=je[de]);return D(N,we,oe)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(N){return{$$typeof:u,render:N}},rt.isValidElement=V,rt.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:ge}},rt.memo=function(N,le){return{$$typeof:h,type:N,compare:le===void 0?null:le}},rt.startTransition=Z,rt.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},rt.use=function(N){return O.H.use(N)},rt.useActionState=function(N,le,ae){return O.H.useActionState(N,le,ae)},rt.useCallback=function(N,le){return O.H.useCallback(N,le)},rt.useContext=function(N){return O.H.useContext(N)},rt.useDebugValue=function(){},rt.useDeferredValue=function(N,le){return O.H.useDeferredValue(N,le)},rt.useEffect=function(N,le){return O.H.useEffect(N,le)},rt.useEffectEvent=function(N){return O.H.useEffectEvent(N)},rt.useId=function(){return O.H.useId()},rt.useImperativeHandle=function(N,le,ae){return O.H.useImperativeHandle(N,le,ae)},rt.useInsertionEffect=function(N,le){return O.H.useInsertionEffect(N,le)},rt.useLayoutEffect=function(N,le){return O.H.useLayoutEffect(N,le)},rt.useMemo=function(N,le){return O.H.useMemo(N,le)},rt.useOptimistic=function(N,le){return O.H.useOptimistic(N,le)},rt.useReducer=function(N,le,ae){return O.H.useReducer(N,le,ae)},rt.useRef=function(N){return O.H.useRef(N)},rt.useState=function(N){return O.H.useState(N)},rt.useSyncExternalStore=function(N,le,ae){return O.H.useSyncExternalStore(N,le,ae)},rt.useTransition=function(){return O.H.useTransition()},rt.version="19.3.0",rt}var I4;function TC(){return I4||(I4=1,Ox.exports=RW()),Ox.exports}var k=TC();const G=ff(k);var Lx={exports:{}},Eh={}
vendor: 27,803 bytes, lines 1-8
1,Dx={exports:{}},Mx={};var k4;function jW(){return k4||(k4=1,(function(e){function t(q,$){var ue=q.length;q.push($);e:for(;0<ue;){var ge=ue-1>>>1,M=q[ge];if(0<i(M,$))q[ge]=$,q[ue]=M,ue=ge;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var $=q[0],ue=q.pop();if(ue!==$){q[0]=ue;e:for(var ge=0,M=q.length,Z=M>>>1;ge<Z;){var te=2*(ge+1)-1,B=q[te],N=te+1,le=q[N];if(0>i(B,ue))N<M&&0>i(le,B)?(q[ge]=le,q[N]=ue,ge=N):(q[ge]=B,q[te]=ue,ge=te);else if(N<M&&0>i(le,ue))q[ge]=le,q[N]=ue,ge=N;else break e}}return $}function i(q,$){var ue=q.sortIndex-$.sortIndex;return ue!==0?ue:q.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],h=[],m=1,g=null,y=3,b=!1,S=!1,I=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function _(q){for(var $=n(h);$!==null;){if($.callback===null)r(h);else if($.startTime<=q)r(h),$.sortIndex=$.expirationTime,t(d,$);else break;$=n(h)}}function R(q){if(I=!1,_(q),!S)if(n(d)!==null)S=!0,L||(L=!0,V());else{var $=n(h);$!==null&&z(R,$.startTime-q)}}var L=!1,j=-1,O=5,F=-1;function D(){return w?!0:!(e.unstable_now()-F<O)}function H(){if(w=!1,L){var q=e.unstable_now();F=q;var $=!0;try{e:{S=!1,I&&(I=!1,E(j),j=-1),b=!0;var ue=y;try{t:{for(_(q),g=n(d);g!==null&&!(g.expirationTime>q&&D());){var ge=g.callback;if(typeof ge=="function"){g.callback=null,y=g.priorityLevel;var M=ge(g.expirationTime<=q);if(q=e.unstable_now(),typeof M=="function"){g.callback=M,_(q),$=!0;break t}g===n(d)&&r(d),_(q)}else r(d);g=n(d)}if(g!==null)$=!0;else{var Z=n(h);Z!==null&&z(R,Z.startTime-q),$=!1}}break e}finally{g=null,y=ue,b=!1}$=void 0}}finally{$?V():L=!1}}}var V;if(typeof A=="function")V=function(){A(H)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,K=Y.port2;Y.port1.onmessage=H,V=function(){K.postMessage(null)}}else V=function(){C(H,0)};function z(q,$){j=C(function(){q(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(q){switch(y){case 1:case 2:case 3:var $=3;break;default:$=y}var ue=y;y=$;try{return q()}finally{y=ue}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(q,$){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ue=y;y=q;try{return $()}finally{y=ue}},e.unstable_scheduleCallback=function(q,$,ue){var ge=e.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?ge+ue:ge):ue=ge,q){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=ue+M,q={id:m++,callback:$,priorityLevel:q,startTime:ue,expirationTime:M,sortIndex:-1},ue>ge?(q.sortIndex=ue,t(h,q),n(d)===null&&q===n(h)&&(I?(E(j),j=-1):I=!0,z(R,ue-ge))):(q.sortIndex=M,t(d,q),S||b||(S=!0,L||(L=!0,V()))),q},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(q){var $=y;return function(){var ue=y;y=$;try{return q.apply(this,arguments)}finally{y=ue}}}})(Mx)),Mx}var E4;function OW(){return E4||(E4=1,Dx.exports=jW()),Dx.exports}var Px={exports:{}},Mr={};var T4;function LW(){if(T4)return Mr;T4=1;var e=TC();function t(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal"),s=Symbol.for("react.recoverable"),l=Symbol.for("react.optimistic_key");function u(m,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:b==null?null:b===l?l:""+b,children:m,containerInfo:g,implementation:y}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Mr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Mr.browser=function(m){return{$$typeof:s,_reason:m}},Mr.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return u(m,g,null,y)},Mr.flushSync=function(m){var g=d.T,y=r.p;try{if(d.T=null,r.p=2,m)return m()}finally{d.T=g,r.p=y,r.d.f()}},Mr.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(m,g))},Mr.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Mr.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,b=h(y,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,I=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:I}):y==="script"&&r.d.X(m,{crossOrigin:b,integrity:S,fetchPriority:I,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Mr.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);r.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&r.d.M(m)},Mr.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=h(y,g.crossOrigin);r.d.L(m,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Mr.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);r.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else r.d.m(m)},Mr.requestFormReset=function(m){r.d.r(m)},Mr.unstable_batchedUpdates=function(m,g){return m(g)},Mr.useFormState=function(m,g,y){return d.H.useFormState(m,g,y)},Mr.useFormStatus=function(){return d.H.useHostTransitionStatus()},Mr.version="19.3.0",Mr}var A4;function fj(){if(A4)return Px.exports;A4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Px.exports=LW(),Px.exports}var _4;function DW(){if(_4)return Eh;_4=1;var e=OW(),t=TC(),n=fj();function r(a){var o="https://react.dev/errors/"+a;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){for(var o=a,f=o;f&&!f.alternate;)o=f,(o.flags&4098)!==0&&(a=o.return),f=o.return;for(;o.return;)o=o.return;return o.tag===3?a:null}function l(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function u(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function d(a){if(s(a)!==a)throw Error(r(188))}function h(a){var o=a.alternate;if(!o){if(o=s(a),o===null)throw Error(r(188));return o!==a?null:a}for(var f=a,p=o;;){var v=f.return;if(v===null)break;var x=v.alternate;if(x===null){if(p=v.return,p!==null){f=p;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===f)return d(v),a;if(x===p)return d(v),o;x=x.sibling}throw Error(r(188))}if(f.return!==p.return)f=v,p=x;else{for(var T=!1,P=v.child;P;){if(P===f){T=!0,f=v,p=x;break}if(P===p){T=!0,p=v,f=x;break}P=P.sibling}if(!T){for(P=x.child;P;){if(P===f){T=!0,f=x,p=v;break}if(P===p){T=!0,p=x,f=v;break}P=P.sibling}if(!T)throw Error(r(189))}}if(f.alternate!==p)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?a:o}function m(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=m(a),o!==null)return o;a=a.sibling}return null}function g(a,o,f,p,v,x){for(;a!==null;){if((a.tag===5||a.tag===27||a.tag===6)&&f(a,p,v,x)||(a.tag!==22||a.memoizedState===null)&&(o||a.tag!==5&&a.tag!==27)&&g(a.child,o,f,p,v,x))return!0;a=a.sibling}return!1}function y(a){for(a=a.return;a!==null;){if(a.tag===3||a.tag===5||a.tag===27)return a;a=a.return}return null}function b(a){var o=!1;for(a=a.return;a!==null&&(a.tag===4&&(o=!0),!(a.tag===3||a.tag===5||a.tag===27));)a=a.return;return o}function S(a){var o=[null,null],f=y(a);return f===null||I(o,a,f.child,{foundSelf:!1}),o}function I(a,o,f,p){for(;f!==null;){if(f===o)p.foundSelf=!0;else if(f.tag===5||f.tag===27||f.tag===6){if(p.foundSelf)return a[1]=f,!0;a[0]=f}else if((f.tag!==22||f.memoizedState===null)&&I(a,o,f.child,p))return!0;f=f.sibling}return!1}function w(a){switch(a.tag){case 5:case 27:case 6:return a.stateNode;case 3:return a.stateNode.containerInfo;default:throw Error(r(559))}}var C=null,E=null;function A(a,o,f){return a===f?!0:a===o?(C=a,!0):!1}function _(a,o,f){return a===f?(E=a,!1):a===o?(E!==null&&(C=a),!0):!1}function R(a){if(a===null)return null;do a=a===null?null:a.return;while(a&&a.tag!==5&&a.tag!==27&&a.tag!==3);return a||null}function L(a,o,f){for(var p=0,v=a;v;v=f(v))p++;v=0;for(var x=o;x;x=f(x))v++;for(;0<p-v;)a=f(a),p--;for(;0<v-p;)o=f(o),v--;for(;p--;){if(a===o||o!==null&&a===o.alternate)return a;a=f(a),o=f(o)}return null}var j=Object.assign,O=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),te=Symbol.for("react.legacy_hidden"),B=Symbol.for("react.memo_cache_sentinel"),N=Symbol.for("react.view_transition"),le=Symbol.for("react.recoverable"),ae=Symbol.iterator;function de(a){return a===null||typeof a!="object"?null:(a=ae&&a[ae]||a["@@iterator"],typeof a=="function"?a:null)}var oe=Symbol.for("react.client.reference");function we(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===oe?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case H:return"Fragment";case Y:return"Profiler";case V:return"StrictMode";case $:return"Suspense";case ue:return"SuspenseList";case Z:return"Activity";case N:return"ViewTransition"}if(typeof a=="object")switch(a.$$typeof){case D:return"Portal";case z:return a.displayName||"Context";case K:return(a._context.displayName||"Context")+".Consumer";case q:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case ge:return o=a.displayName||null,o!==null?o:we(a.type)||"Memo";case M:o=a._payload,a=a._init;try{return we(a(o))}catch{}}return null}var je=Array.isArray,xe=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qe={pending:!1,data:null,method:null,action:null},Ke=[],dt=-1;function at(a){return{current:a}}function nt(a){0>dt||(a.current=Ke[dt],Ke[dt]=null,dt--)}function Ae(a,o){dt++,Ke[dt]=a.current,a.current=o}var ot=at(null),en=at(null),ln=at(null),pr=at(null);function Xn(a,o){switch(Ae(ln,o),Ae(en,a),Ae(ot,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?RA(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=RA(o),a=jA(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}nt(ot),Ae(ot,a)}function Cn(){nt(ot),nt(en),nt(ln)}function Tr(a){var o=a.memoizedState;o!==null&&(ud._currentValue=o.memoizedState,Ae(pr,a)),o=ot.current;var f=jA(o,a.type);o!==f&&(Ae(en,a),Ae(ot,f))}function fe(a){en.current===a&&(nt(ot),nt(en)),pr.current===a&&(nt(pr),ud._currentValue=qe)}var Ce,Xe;function Je(a){if(Ce===void 0)try{throw Error()}catch(f){var o=f.stack.trim().match(/\n( *(at )?)/);Ce=o&&o[1]||"",Xe=-1<f.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+Ce+a+Xe}var wt=!1;function Rn(a,o){if(!a||wt)return"";wt=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(o){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(Le){var Q=Le}Reflect.construct(a,[],pe)}else{try{pe.call()}catch(Le){Q=Le}pe=!1;try{var se=Object.getOwnPropertyDescriptor(a.prototype,"props");Object.defineProperty(a.prototype,"props",{configurable:!0,set:function(){throw Error()}}),pe=!0,new a}finally{pe&&(se!==void 0?Object.defineProperty(a.prototype,"props",se):delete a.prototype.props)}}}else{try{throw Error()}catch(Le){Q=Le}(pe=a())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(Le){if(Le&&Q&&typeof Le.stack=="string")return[Le.stack,Q.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=p.DetermineComponentFrameRoot(),T=x[0],P=x[1];if(T&&P){var W=T.split(` 4`),re=P.split(` 5`);for(v=p=0;p<W.length&&!W[p].includes("DetermineComponentFrameRoot");)p++;for(;v<re.length&&!re[v].includes("DetermineComponentFrameRoot");)v++;if(p===W.length||v===re.length)for(p=W.length-1,v=re.length-1;1<=p&&0<=v&&W[p]!==re[v];)v--;for(;1<=p&&0<=v;p--,v--)if(W[p]!==re[v]){if(p!==1||v!==1)do if(p--,v--,0>v||W[p]!==re[v]){var ce=` 6`+W[p].replace(" at new "," at ");return a.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",a.displayName)),ce}while(1<=p&&0<=v);break}}}finally{wt=!1,Error.prepareStackTrace=f}return(f=a?a.displayName||a.name:"")?Je(f):""}function ri(a,o){switch(a.tag){case 26:case 27:case 5:return Je(a.type);case 16:return Je("Lazy");case 13:return a.child!==o&&o!==null?Je("Suspense Fallback"):Je("Suspense");case 19:return Je("SuspenseList");case 0:case 15:return Rn(a.type,!1);case 11:return Rn(a.type.render,!1);case 1:return Rn(a.type,!0);case 31:return Je("Activity");case 30:return Je("ViewTransition");default:return""}}function mr(a){try{var o="",f=null;do o+=ri(a,f),f=a,a=a.return;while(a);return o}catch(p){return` 7Error generating stack: `+p.message+` 8`+p.stack}}var Ar=Object.prototype.hasOwnProperty,gr=e.unstable_scheduleCallback,gn=e.unstable_cancelCallback,Hr=e.unstable_shouldYield,Oe=e.unstable_requestPaint,ve=e.unstable_now,St=e.unstable_getCurrentPriorityLevel,lt=e.unstable_ImmediatePriority,Rt=e.unstable_UserBlockingPriority,zn=e.unstable_NormalPriority,Ct=e.unstable_LowPriority,Hn=e.unstable_IdlePriority,ea=e.log,Gl=e.unstable_setDisableYieldValue,yi=null,Un=null;function vi(a){if(typeof ea=="function"&&Gl(a),Un&&typeof Un.setStrictMode=="function")try{Un.setStrictMode(yi,a)}catch{}}var ii=Math.clz32?Math.clz32:Zm,i2=Math.log,a2=Math.LN2;function Zm(a){return a>>>=0,a===0?32:31-(i2(a)/a2|0)|0}var Ds=256,Yl=262144,Ms=4194304;function ta(a){var o=a&42;if(o!==0)return o;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&-a;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Ps(a,o,f){var p=a.pendingLanes;if(p===0)return 0;var v=0,x=a.suspendedLanes,T=a.pingedLanes;a=a.warmLanes;var P=p&134217727;return P!==0?(p=P&~x,p!==0?v=ta(p):(T&=P,T!==0?v=ta(T):f||(f=P&~a,f!==0&&(v=ta(f))))):(P=p&~x,P!==0?v=ta(P):T!==0?v=ta(T):f||(f=p&~a,f!==0&&(v=ta(f)))),v===0?0:o!==0&&o!==v&&(o&x)===0&&(x=v&-v,f=o&-o,x>=f||x===32&&(f&4194048)!==0)?o:v}function ts(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function Kl(a,o){(o&8)!==0&&(o|=o&32);var f=a.entangledLanes;if(f!==0)for(a=a.entanglements,f&=o;0<f;){var p=31-ii(f),v=1<<p;o|=a[p],f&=~v}return o}function s2(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fs(){var a=Ms;return Ms<<=1,(Ms&62914560)===0&&(Ms=4194304),a}function wu(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function To(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Qm(a,o,f,p,v,x){var T=a.pendingLanes;a.pendingLanes=f,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=f,a.entangledLanes&=f,a.errorRecoveryDisabledLanes&=f,a.shellSuspendCounter=0;var P=a.entanglements,W=a.expirationTimes,re=a.hiddenUpdates;for(f=T&~f;0<f;){var ce=31-ii(f),pe=1<<ce;P[ce]=0,W[ce]=-1;var Q=re[ce];if(Q!==null)for(re[ce]=null,ce=0;ce<Q.length;ce++){var se=Q[ce];se!==null&&(se.lane&=-536870913)}f&=~pe}p!==0&&na(a,p,0),x!==0&&v===0&&a.tag!==0&&(a.suspendedLanes|=x&~(T&~o))}function na(a,o,f){a.pendingLanes|=o,a.suspendedLanes&=~o;var p=31-ii(o);a.entangledLanes|=o,a.entanglements[p]=a.entanglements[p]|1073741824|f&261930}function $m(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var p=31-ii(f),v=1<<p;v&o|a[p]&o&&(a[p]|=o),f&=~v}}function De(a,o){var f=o&-o;return f=(f&42)!==0?1:ra(f),(f&(a.suspendedLanes|o))!==0?0:f}function ra(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Cu(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function eg(){var a=Se.p;return a!==0?a:(a=window.event,a===void 0?32:p4(a.type))}function tg(a,o){var f=Se.p;try{return Se.p=a,o()}finally{Se.p=f}}var Bs=Math.random().toString(36).slice(2),_r="__reactFiber$"+Bs,bi="__reactProps$"+Bs,Iu="__reactContainer$"+Bs,cE="__reactEvents$"+Bs,Vz="__reactListeners$"+Bs,qz="__reactHandles$"+Bs,uE="__reactResources$"+Bs,Mf="__reactMarker$"+Bs,ng="__reactLoad$"+Bs;function rg(a){delete a[_r],delete a[bi],delete a[Vz],delete a[qz]}function Xl(a){var o;if(o=a[_r])return o;for(var f=a.parentNode;f;){if(o=f[Iu]||f[_r]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=KA(a);a!==null;){if(f=a[_r])return f;a=KA(a)}return o}a=f,f=a.parentNode}return null}function ku(a){if(a=a[_r]||a[Iu]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Pf(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function Eu(a){var o=a[uE];return o||(o=a[uE]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function yr(a){a[Mf]=!0}function dE(a){a[ng]=void 0}var fE=new Set,hE={};function Jl(a,o){Tu(a,o),Tu(a+"Capture",o)}function Tu(a,o){for(hE[a]=o,a=0;a<o.length;a++)fE.add(o[a])}var Gz=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),pE={},mE={};function Yz(a){return Ar.call(mE,a)?!0:Ar.call(pE,a)?!1:Gz.test(a)?mE[a]=!0:(pE[a]=!0,!1)}var Ut=!1;function gE(){var a=Ut;return Ut=!1,a}function ig(a,o,f){if(Yz(o))if(f===null)a.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var p=o.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,f)}}function ag(a,o,f){if(f===null)a.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,f)}}function Ns(a,o,f,p){if(p===null)a.removeAttribute(f);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(f);return}a.setAttributeNS(o,f,p)}}function Di(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function yE(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Kz(a,o,f){var p=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,x=p.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return v.call(this)},set:function(T){f=""+T,x.call(this,T)}}),Object.defineProperty(a,o,{enumerable:p.enumerable}),{getValue:function(){return f},setValue:function(T){f=""+T},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function o2(a){if(!a._valueTracker){var o=yE(a)?"checked":"value";a._valueTracker=Kz(a,o,""+a[o])}}function vE(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),p="";return a&&(p=yE(a)?a.checked?"true":"false":a.value),a=p,a!==f?(o.setValue(a),!0):!1}var Xz=/[\n"\\]/g;function ia(a){return a.replace(Xz,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function l2(a,o,f,p,v,x,T,P){a.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?a.type=T:a.removeAttribute("type"),o!=null?T==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Di(o)):a.value!==""+Di(o)&&(a.value=""+Di(o)):T!=="submit"&&T!=="reset"||a.removeAttribute("value"),o!=null?T==="number"&&a.value==o?c2(a,Di(a.value)):c2(a,Di(o)):f!=null?c2(a,Di(f)):p!=null&&a.removeAttribute("value"),v==null&&x!=null&&(a.defaultChecked=!!x),v!=null&&(a.checked=v&&typeof v!="function"&&typeof v!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?a.name=""+Di(P):a.removeAttribute("name")}function bE(a,o,f,p,v,x,T,P){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.type=x),o!=null||f!=null){if(!(x!=="submit"&&x!=="reset"||o!=null)){o2(a);return}f=f!=null?""+Di(f):"",o=o!=null?""+Di(o):f,P||o===a.value||(a.value=o),a.defaultValue=o}p=p??v,p=typeof p!="function"&&typeof p!="symbol"&&!!p,a.checked=P?a.checked:!!p,a.defaultChecked=!!p,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(a.name=T),o2(a)}function c2(a,o){a.defaultValue!==""+o&&(a.defaultValue=""+o)}function Au(a,o,f,p){if(a=a.options,o){o={};for(var v=0;v<f.length;v++)o["$"+f[v]]=!0;for(f=0;f<a.length;f++)v=o.hasOwnProperty("$"+a[f].value),a[f].selected!==v&&(a[f].selected=v),v&&p&&(a[f].defaultSelected=!0)}else{for(f=""+Di(f),o=null,v=0;v<a.length;v++){if(a[v].value===f){a[v].selected=!0,p&&(a[v].defaultSelected=!0);return}o!==null||a[v].disabled||(o=a[v])}o!==null&&(o.selected=!0)}}function xE(a,o,f){if(o!=null&&(o=""+Di(o),o!==a.value&&(a.value=o),f==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=f!=null?""+Di(f):""}function SE(a,o,f,p){if(o==null){if(p!=null){if(f!=null)throw Error(r(92));if(je(p)){if(1<p.length)throw Error(r(93));p=p[0]}f=p}f==null&&(f=""),o=f}f=Di(o),a.defaultValue=f,p=a.textContent,p===f&&p!==""&&p!==null&&(a.value=p),o2(a)}function _u(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Jz=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wE(a,o,f){var p=o.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?p?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":p?a.setProperty(o,f):typeof f!="number"||f===0||Jz.has(o)?o==="float"?a.cssFloat=f:a[o]=(""+f).trim():a[o]=f+"px"}function CE(a,o,f){if(o!=null&&typeof o!="object")throw Error(r(62));if(a=a.style,f!=null){for(var p in f)!f.hasOwnProperty(p)||o!=null&&o.hasOwnProperty(p)||(p.indexOf("--")===0?a.setProperty(p,""):p==="float"?a.cssFloat="":a[p]="",Ut=!0);for(var v in o)p=o[v],o.hasOwnProperty(v)&&f[v]!==p&&(wE(a,v,p),Ut=!0)}else for(var x in o)o.hasOwnProperty(x)&&wE(a,x,o[x])}function u2(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zz=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
8dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Qz=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function sg(a){return Qz.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ns(){}var d2=null;function f2(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Ru=null,ju=null;function IE(a){var o=ku(a);if(o&&(a=o.stateNode)){var f=a[bi]||null;e:switch(a=o.stateNode,o.type){case"input":if(l2(a,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+ia(""+o)+'"][type="radio"]'),o=0;o<f.length;o++){var p=f[o];if(p!==a&&p.form===a.form){var v=p[bi]||null;if(!v)throw Error(r(90));l2(p,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<f.length;o++)p=f[o],p.form===a.form&&vE(p)}break e;case"textarea":xE(a,f.value,f.defaultValue);break e;case"select":o=f.value,o!=null&&Au(a,!!f.multiple,o,!1)}}}var h2=!1;function kE(a,o,f){if(h2)return a(o,f);h2=!0;try{var p=a(o);return p}finally{if(h2=!1,(Ru!==null||ju!==null)&&(s0(),Ru&&(o=Ru,a=ju,ju=Ru=null,IE(o),a)))for(o=0;o<a.length;o++)IE(a[o])}}function Ff(a,o){var f=a.stateNode;if(f===null)return null;var p=f[bi]||null;if(p===null)return null;f=p[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(a=a.type,p=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!p;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(r(231,o,typeof f));return f}var zs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p2=!1;if(zs)try{var Bf={};Object.defineProperty(Bf,"passive",{get:function(){p2=!0}}),window.addEventListener("test",Bf,Bf),window.removeEventListener("test",Bf,Bf)}catch{p2=!1}var Ao=null,m2=null,og=null;function EE(){if(og)return og;var a,o=m2,f=o.length,p,v="value"in Ao?Ao.value:Ao.textContent,x=v.length;for(a=0;a<f&&o[a]===v[a];a++);var T=f-a;for(p=1;p<=T&&o[f-p]===v[x-p];p++);return og=v.slice(a,1<p?1-p:void 0)}function lg(a){var o=a.keyCode;
vendor: 2,821 bytes, line 8
8return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function cg(){return!0}function TE(){return!1}function ai(a){function o(f,p,v,x,T){this._reactName=f,this._targetInst=v,this.type=p,this.nativeEvent=x,this.target=T,this.currentTarget=null;for(var P in a)a.hasOwnProperty(P)&&(f=a[P],this[P]=f?f(x):x[P]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?cg:TE,this.isPropagationStopped=TE,this}return j(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=cg)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=cg)},persist:function(){},isPersistent:cg}),o}var _o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ug=ai(_o),Nf=j({},_o,{view:0,detail:0}),$z=ai(Nf),g2,y2,zf,dg=j({},Nf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:b2,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==zf&&(zf&&a.type==="mousemove"?(g2=a.screenX-zf.screenX,y2=a.screenY-zf.screenY):y2=g2=0,zf=a),g2)},movementY:function(a){return"movementY"in a?a.movementY:y2}}),AE=ai(dg),eH=j({},dg,{dataTransfer:0}),tH=ai(eH),nH=j({},Nf,{relatedTarget:0}),v2=ai(nH),rH=j({},_o,{animationName:0,elapsedTime:0,pseudoElement:0}),iH=ai(rH),aH=j({},_o,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),sH=ai(aH),oH=j({},_o,{data:0}),_E=ai(oH),lH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cH={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dH(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=uH[a])?!!o[a]:!1}function b2(){return dH}var fH=j({},Nf,{key:function(a){if(a.key){var o=lH[a.key]||a.key;if(o!=="Unidentified")return o}
vendor: 4,163 bytes, line 8
8return a.type==="keypress"?(a=lg(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?cH[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:b2,charCode:function(a){return a.type==="keypress"?lg(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?lg(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),hH=ai(fH),pH=j({},dg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),RE=ai(pH),mH=j({},_o,{submitter:0}),gH=ai(mH),yH=j({},Nf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:b2}),vH=ai(yH),bH=j({},_o,{propertyName:0,elapsedTime:0,pseudoElement:0}),xH=ai(bH),SH=j({},dg,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),wH=ai(SH),CH=j({},_o,{newState:0,oldState:0,source:0}),IH=ai(CH),kH=[9,13,27,32],x2=zs&&"CompositionEvent"in window,Hf=null;zs&&"documentMode"in document&&(Hf=document.documentMode);var EH=zs&&"TextEvent"in window&&!Hf,jE=zs&&(!x2||Hf&&8<Hf&&11>=Hf),OE=" ",LE=!1;function DE(a,o){switch(a){case"keyup":return kH.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ME(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ou=!1;function TH(a,o){switch(a){case"compositionend":return ME(o);case"keypress":return o.which!==32?null:(LE=!0,OE);case"textInput":return a=o.data,a===OE&&LE?null:a;default:return null}}function AH(a,o){if(Ou)return a==="compositionend"||!x2&&DE(a,o)?(a=EE(),og=m2=Ao=null,Ou=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return jE&&o.locale!=="ko"?null:o.data;default:return null}}var _H={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function PE(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!_H[a.type]:o==="textarea"}function FE(a,o,f,p){Ru?ju?ju.push(p):ju=[p]:Ru=p,o=f0(o,"onChange"),0<o.length&&(f=new ug("onChange","change",null,f,p),a.push({event:f,listeners:o}))}var Uf=null,Wf=null;function RH(a){IA(a,0)}function fg(a){var o=Pf(a);if(vE(o))return a}function BE(a,o){if(a==="change")return o}var NE=!1;if(zs){var S2;if(zs){var w2="oninput"in document;if(!w2){var zE=document.createElement("div");zE.setAttribute("oninput","return;"),w2=typeof zE.oninput=="function"}S2=w2}else S2=!1;NE=S2&&(!document.documentMode||9<document.documentMode)}function HE(){Uf&&(Uf.detachEvent("onpropertychange",UE),Wf=Uf=null)}function UE(a){if(a.propertyName==="value"&&fg(Wf)){var o=[];FE(o,Wf,a,f2(a)),kE(RH,o)}}function jH(a,o,f){a==="focusin"?(HE(),Uf=o,Wf=f,Uf.attachEvent("onpropertychange",UE)):a==="focusout"&&HE()}function OH(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return fg(Wf)}function LH(a,o){if(a==="click")return fg(o)}function DH(a,o){if(a==="input"||a==="change")return fg(o)}function MH(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Mi=typeof Object.is=="function"?Object.is:MH;function Vf(a,o){if(Mi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),p=Object.keys(o);if(f.length!==p.length)return!1;for(p=0;p<f.length;p++){var v=f[p];if(!Ar.call(o,v)||!Mi(a[v],o[v]))return!1}return!0}function C2(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function WE(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function VE(a,o){var f=WE(a);a=0;for(var p;f;){if(f.nodeType===3){if(p=a+f.textContent.length,a<=o&&p>=o)return{node:f,offset:o-a};a=p}e:{for(;f;
vendor: 39,903 bytes, line 8
8){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=WE(f)}}function qE(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?qE(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function GE(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=C2(a.document);o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=C2(a.document)}return o}function I2(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var PH=zs&&"documentMode"in document&&11>=document.documentMode,Lu=null,k2=null,qf=null,E2=!1;function YE(a,o,f){var p=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;E2||Lu==null||Lu!==C2(p)||(p=Lu,"selectionStart"in p&&I2(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),qf&&Vf(qf,p)||(qf=p,p=f0(k2,"onSelect"),0<p.length&&(o=new ug("onSelect","select",null,o,f),a.push({event:o,listeners:p}),o.target=Lu)))}function Zl(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var Du={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionrun:Zl("Transition","TransitionRun"),transitionstart:Zl("Transition","TransitionStart"),transitioncancel:Zl("Transition","TransitionCancel"),transitionend:Zl("Transition","TransitionEnd")},T2={},KE={};zs&&(KE=document.createElement("div").style,"AnimationEvent"in window||(delete Du.animationend.animation,delete Du.animationiteration.animation,delete Du.animationstart.animation),"TransitionEvent"in window||delete Du.transitionend.transition);function Ql(a){if(T2[a])return T2[a];if(!Du[a])return a;var o=Du[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in KE)return T2[a]=o[f];return a}var XE=Ql("animationend"),JE=Ql("animationiteration"),ZE=Ql("animationstart"),FH=Ql("transitionrun"),BH=Ql("transitionstart"),NH=Ql("transitioncancel"),QE=Ql("transitionend"),$E=new Map,A2="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");A2.push("scrollEnd");function ja(a,o){$E.set(a,o),Jl(o,[a])}var zH=0;function Hs(a,o){if(a.name!=null&&a.name!=="auto")return a.name;if(o.autoName!==null)return o.autoName;a=Ma.identifierPrefix;var f=zH++;return a="_"+a+"t_"+f.toString(32)+"_",o.autoName=a}function eT(a){if(a==null||typeof a=="string")return a;var o=null,f=ed;if(f!==null)for(var p=0;p<f.length;p++){var v=a[f[p]];if(v!=null){if(v==="none")return"none";o=o==null?v:o+(" "+v)}}return o??a.default}function Us(a,o){return a=eT(a),o=eT(o),o==null?a==="auto"?null:a:o==="auto"?null:o}var hg=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},aa=[],Mu=0,_2=0;function pg(){for(var a=Mu,o=_2=Mu=0;o<a;){var f=aa[o];aa[o++]=null;var p=aa[o];aa[o++]=null;var v=aa[o];aa[o++]=null;var x=aa[o];if(aa[o++]=null,p!==null&&v!==null){var T=p.pending;T===null?v.next=v:(v.next=T.next,T.next=v),p.pending=v}x!==0&&tT(f,v,x)}}function mg(a,o,f,p){aa[Mu++]=a,aa[Mu++]=o,aa[Mu++]=f,aa[Mu++]=p,_2|=p,a.lanes|=p,a=a.alternate,a!==null&&(a.lanes|=p)}function R2(a,o,f,p){return mg(a,o,f,p),gg(a)}function $l(a,o){return mg(a,null,null,o),gg(a)}function tT(a,o,f){a.lanes|=f;var p=a.alternate;p!==null&&(p.lanes|=f);for(var v=!1,x=a.return;x!==null;)x.childLanes|=f,p=x.alternate,p!==null&&(p.childLanes|=f),x.tag===22&&(a=x.stateNode,a===null||a._visibility&1||(v=!0)),a=x,x=x.return;return a.tag===3?(x=a.stateNode,v&&o!==null&&(v=31-ii(f),a=x.hiddenUpdates,p=a[v],p===null?a[v]=[o]:p.push(o),o.lane=f|536870912),x):null}function gg(a){if(50<hh)throw hh=0,a0=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var Pu={};function HH(a,o,f,p){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(a,o,f,p){return new HH(a,o,f,p)}function j2(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ws(a,o){var f=a.alternate;return f===null?(f=xi(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&1206910976,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f.refCleanup=a.refCleanup,f}function nT(a,o){a.flags&=1206910978;var f=a.alternate;return f===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=f.childLanes,a.lanes=f.lanes,a.child=f.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=f.memoizedProps,a.memoizedState=f.memoizedState,a.updateQueue=f.updateQueue,a.type=f.type,o=f.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a}function yg(a,o,f,p,v,x){var T=0;if(p=a,typeof p=="function")j2(p)&&(T=1);else if(typeof p=="string")T=mW(a,f,ot.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(p){case Z:return a=xi(31,f,o,v),a.elementType=Z,a.lanes=x,a;case H:return ec(f.children,v,x,o);case V:T=8,v|=24;break;case Y:return a=xi(12,f,o,v|2),a.elementType=Y,a.lanes=x,a;case $:return a=xi(13,f,o,v),a.elementType=$,a.lanes=x,a;case ue:return a=xi(19,f,o,v),a.elementType=ue,a.lanes=x,a;case te:case N:return a=v|32,a=xi(30,f,o,a),a.elementType=N,a.lanes=x,a.stateNode={autoName:null,paired:null,clones:null,ref:null},a;default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case z:T=10;break e;case K:T=9;break e;case q:T=11;break e;case ge:T=14;break e;case M:T=16,p=null;break e}T=29,f=Error(r(130,a===null?"null":typeof a,"")),p=null}return o=xi(T,f,o,v),o.elementType=a,o.type=p,o.lanes=x,o}function ec(a,o,f,p){return a=xi(7,a,p,o),a.lanes=f,a}function O2(a,o,f){return a=xi(6,a,null,o),a.lanes=f,a}function rT(a){var o=xi(18,null,null,0);return o.stateNode=a,o}function L2(a,o,f){return o=xi(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var iT=new WeakMap;function sa(a,o){if(typeof a=="object"&&a!==null){var f=iT.get(a);return f!==void 0?f:(o={value:a,source:o,stack:mr(o)},iT.set(a,o),o)}return{value:a,source:o,stack:mr(o)}}var Fu=[],Bu=0,vg=null,Gf=0,oa=[],la=0,Ro=null,rs=1,is="";function Vs(a,o){Fu[Bu++]=Gf,Fu[Bu++]=vg,vg=a,Gf=o}function aT(a,o,f){oa[la++]=rs,oa[la++]=is,oa[la++]=Ro,Ro=a;var p=rs;a=is;var v=32-ii(p)-1;p&=~(1<<v),f+=1;var x=32-ii(o)+v;if(30<x){var T=v-v%5;x=(p&(1<<T)-1).toString(32),p>>=T,v-=T,rs=1<<32-ii(o)+v|f<<v|p,is=x+a}else rs=1<<x|f<<v|p,is=a}function bg(a){a.return!==null&&(Vs(a,1),aT(a,1,0))}function D2(a){for(;a===vg;)vg=Fu[--Bu],Fu[Bu]=null,Gf=Fu[--Bu],Fu[Bu]=null;for(;a===Ro;)Ro=oa[--la],oa[la]=null,is=oa[--la],oa[la]=null,rs=oa[--la],oa[la]=null}function sT(a,o){oa[la++]=rs,oa[la++]=is,oa[la++]=Ro,rs=o.id,is=o.overflow,Ro=a}var vr=null,yn=null,vt=!1,jo=null,ca=!1,M2=Error(r(519));function Oo(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Yf(sa(o,a)),M2}function oT(a){var o=a.stateNode,f=a.type,p=a.memoizedProps;switch(o[_r]=a,o[bi]=p,f){case"dialog":kt("cancel",o),kt("close",o);break;case"iframe":case"object":case"embed":kt("load",o);break;case"video":case"audio":for(f=0;f<mh.length;f++)kt(mh[f],o);break;case"source":kt("error",o);break;case"img":case"image":case"link":kt("error",o),kt("load",o);break;case"details":kt("toggle",o);break;case"input":kt("invalid",o),bE(o,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":kt("invalid",o);break;case"textarea":kt("invalid",o),SE(o,p.value,p.defaultValue,p.children)}f=p.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||o.textContent===""+f||p.suppressHydrationWarning===!0||AA(o.textContent,f)?(p.popover!=null&&(kt("beforetoggle",o),kt("toggle",o)),p.onScroll!=null&&kt("scroll",o),p.onScrollEnd!=null&&kt("scrollend",o),p.onClick!=null&&(o.onclick=ns),o=!0):o=!1,o||Oo(a,!0)}function xg(a){for(vr=a.return;vr;)switch(vr.tag){case 5:case 31:case 13:ca=!1;return;case 27:case 3:ca=!0;return;default:vr=vr.return}}function Nu(a){if(a!==vr)return!1;if(!vt)return xg(a),vt=!0,!1;var o=a.tag,f;if((f=o!==3&&o!==27)&&((f=o===5)&&(f=a.type,f=!(f!=="form"&&f!=="button")||dx(a.type,a.memoizedProps)),f=!f),f&&yn&&Oo(a),xg(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));yn=YA(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));yn=YA(a)}else o===27?(o=yn,Ko(a.type)?(a=xx,xx=null,yn=a):yn=o):yn=vr?da(a.stateNode.nextSibling):null;return!0}function tc(){yn=vr=null,vt=!1}function P2(){var a=jo;return a!==null&&(Ci===null?Ci=a:Ci.push.apply(Ci,a),jo=null),a}function Yf(a){jo===null?jo=[a]:jo.push(a)}var F2=at(null),nc=null,qs=null;function Lo(a,o,f){Ae(F2,o._currentValue),o._currentValue=f}function Gs(a){a._currentValue=F2.current,nt(F2)}function Sg(a,o,f){for(;a!==null;){var p=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,p!==null&&(p.childLanes|=o)):p!==null&&(p.childLanes&o)!==o&&(p.childLanes|=o),a===f)break;a=a.return}}function B2(a,o,f,p){var v=a.child;for(v!==null&&(v.return=a);v!==null;){var x=v.dependencies;if(x!==null){var T=v.child;x=x.firstContext;e:for(;x!==null;){var P=x;x=v;for(var W=0;W<o.length;W++)if(P.context===o[W]){x.lanes|=f,P=x.alternate,P!==null&&(P.lanes|=f),Sg(x.return,f,a),p||(T=null);break e}x=P.next}}else if(v.tag===18){if(T=v.return,T===null)throw Error(r(341));T.lanes|=f,x=T.alternate,x!==null&&(x.lanes|=f),Sg(T,f,a),T=null}else v.tag===13&&v.memoizedState!==null&&v.memoizedState.dehydrated===null?(v.lanes|=f,T=v.alternate,T!==null&&(T.lanes|=f),Sg(v.return,f,a),T=v.child,T=T!==null?T.sibling:null):T=v.child;if(T!==null)T.return=v;else for(T=v;T!==null;){if(T===a){T=null;break}if(v=T.sibling,v!==null){v.return=T.return,T=v;break}T=T.return}v=T}}function rc(a,o,f,p){a=null;for(var v=o,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var T=v.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var P=v.type;Mi(v.pendingProps.value,T.value)||(a!==null?a.push(P):a=[P])}}else if(v===pr.current){if(T=v.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(a!==null?a.push(ud):a=[ud])}v=v.return}return a!==null&&B2(o,a,f,p),o.flags|=262144,a!==null}function wg(a){for(a=a.firstContext;a!==null;){if(!Mi(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function ic(a){nc=a,qs=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Rr(a){return lT(nc,a)}function Cg(a,o){return nc===null&&ic(a),lT(a,o)}function lT(a,o){var f=o._currentValue;if(o={context:o,memoizedValue:f,next:null},qs===null){if(a===null)throw Error(r(308));qs=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else qs=qs.next=o;return f}var UH=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(f,p){a.push(p)}};this.abort=function(){o.aborted=!0,a.forEach(function(f){return f()})}},WH=e.unstable_scheduleCallback,VH=e.unstable_NormalPriority,Jn={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function N2(){return{controller:new UH,data:new Map,refCount:0}}function Kf(a){a.refCount--,a.refCount===0&&WH(VH,function(){a.controller.abort()})}function cT(a,o){if((a.pendingLanes&4194048)!==0){var f=a.transitionTypes;for(f===null&&(f=a.transitionTypes=[]),a=0;a<o.length;a++){var p=o[a];f.indexOf(p)===-1&&f.push(p)}}}var Xf=null;function qH(a){var o=a.transitionTypes;return a.transitionTypes=null,o}var Jf=null,z2=0,ac=0,zu=null;function GH(a,o){if(Jf===null){var f=Jf=[];z2=0,ac=nx(),zu={status:"pending",value:void 0,then:function(p){f.push(p)}}}return z2++,o.then(uT,uT),o}function uT(){if(--z2===0&&(Xf=null,Jf!==null)){zu!==null&&(zu.status="fulfilled");var a=Jf;Jf=null,ac=0,zu=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function YH(a,o){var f=[],p={status:"pending",value:null,reason:null,then:function(v){f.push(v)}};return a.then(function(){p.status="fulfilled",p.value=o;for(var v=0;v<f.length;v++)(0,f[v])(o)},function(v){for(p.status="rejected",p.reason=v,v=0;v<f.length;v++)(0,f[v])(void 0)}),p}var dT=xe.S;xe.S=function(a,o){if(rA=ve(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&GH(a,o),Xf!==null)for(var f=id;f!==null;)cT(f,Xf),f=f.next;if(f=a.types,f!==null){for(var p=id;p!==null;)cT(p,f),p=p.next;if(ac!==0){p=Xf,p===null&&(p=Xf=[]);for(var v=0;v<f.length;v++){var x=f[v];p.indexOf(x)===-1&&p.push(x)}}}dT!==null&&dT(a,o)};var sc=at(null);function H2(){var a=sc.current;return a!==null?a:cn.pooledCache}function Ig(a,o){o===null?Ae(sc,sc.current):Ae(sc,o.pool)}function fT(){var a=H2();return a===null?null:{parent:Jn._currentValue,pool:a}}var Hu=Error(r(460)),U2=Error(r(474)),kg=Error(r(542)),Eg={then:function(){}};function hT(a){return a=a.status,a==="fulfilled"||a==="rejected"}function pT(a,o,f){switch(f=a[f],f===void 0?a.push(o):f!==o&&(o.then(ns,ns),o=f),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,gT(a),a===void 0&&!("reason"in o)?Error(r(600)):a;default:if(typeof o.status=="string")o.then(ns,ns);else{if(a=cn,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(p){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=p}},function(p){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=p}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,gT(a),a}throw lc=o,Hu}}function oc(a){try{var o=a._init;return o(a._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(lc=f,Hu):f}}var lc=null;function mT(){if(lc===null)throw Error(r(459));var a=lc;return lc=null,a}function gT(a){if(a===Hu||a===kg)throw Error(r(483))}var Uu=null,Zf=0;function Tg(a){var o=Zf;return Zf+=1,Uu===null&&(Uu=[]),pT(Uu,a,o)}function Do(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function Ag(a,o){throw o.$$typeof===O?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function yT(a){function o(ne,X){if(a){var ie=ne.deletions;ie===null?(ne.deletions=[X],ne.flags|=16):ie.push(X)}}function f(ne,X){if(!a)return null;for(;X!==null;)o(ne,X),X=X.sibling;return null}function p(ne){for(var X=new Map;ne!==null;)ne.key===null?X.set(ne.index,ne):X.set(ne.key,ne),ne=ne.sibling;return X}function v(ne,X){return ne=Ws(ne,X),ne.index=0,ne.sibling=null,ne}function x(ne,X,ie){return ne.index=ie,a?(ie=ne.alternate,ie!==null?(ie=ie.index,ie<X?(ne.flags|=2,X):ie):(ne.flags|=134217730,X)):(ne.flags|=1048576,X)}function T(ne){return a&&ne.alternate===null&&(ne.flags|=134217730),ne}function P(ne,X,ie,he){return X===null||X.tag!==6?(X=O2(ie,ne.mode,he),X.return=ne,X):(X=v(X,ie),X.return=ne,X)}function W(ne,X,ie,he){var He=ie.type;return He===H?(ne=ce(ne,X,ie.props.children,he,ie.key),Do(ne,ie),ne):X!==null&&(X.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===M&&oc(He)===X.type)?(X=v(X,ie.props),Do(X,ie),X.return=ne,X):(X=yg(ie.type,ie.key,ie.props,null,ne.mode,he),Do(X,ie),X.return=ne,X)}function re(ne,X,ie,he){return X===null||X.tag!==4||X.stateNode.containerInfo!==ie.containerInfo||X.stateNode.implementation!==ie.implementation?(X=L2(ie,ne.mode,he),X.return=ne,X):(X=v(X,ie.children||[]),X.return=ne,X)}function ce(ne,X,ie,he,He){return X===null||X.tag!==7?(X=ec(ie,ne.mode,he,He),X.return=ne,X):(X=v(X,ie),X.return=ne,X)}function pe(ne,X,ie){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=O2(""+X,ne.mode,ie),X.return=ne,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case F:return ie=yg(X.type,X.key,X.props,null,ne.mode,ie),Do(ie,X),ie.return=ne,ie;case D:return X=L2(X,ne.mode,ie),X.return=ne,X;case M:return X=oc(X),pe(ne,X,ie)}if(je(X)||de(X))return X=ec(X,ne.mode,ie,null),X.return=ne,X;if(typeof X.then=="function")return pe(ne,Tg(X),ie);if(X.$$typeof===z)return pe(ne,Cg(ne,X),ie);Ag(ne,X)}return null}function Q(ne,X,ie,he){var He=X!==null?X.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return He!==null?null:P(ne,X,""+ie,he);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case F:return ie.key===He?W(ne,X,ie,he):null;case D:return ie.key===He?re(ne,X,ie,he):null;case M:return ie=oc(ie),Q(ne,X,ie,he)}if(je(ie)||de(ie))return He!==null?null:ce(ne,X,ie,he,null);if(typeof ie.then=="function")return Q(ne,X,Tg(ie),he);if(ie.$$typeof===z)return Q(ne,X,Cg(ne,ie),he);Ag(ne,ie)}return null}function se(ne,X,ie,he,He){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return ne=ne.get(ie)||null,P(X,ne,""+he,He);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case F:return ne=ne.get(he.key===null?ie:he.key)||null,W(X,ne,he,He);case D:return ne=ne.get(he.key===null?ie:he.key)||null,re(X,ne,he,He);case M:return he=oc(he),se(ne,X,ie,he,He)}if(je(he)||de(he))return ne=ne.get(ie)||null,ce(X,ne,he,He,null);if(typeof he.then=="function")return se(ne,X,ie,Tg(he),He);if(he.$$typeof===z)return se(ne,X,ie,Cg(X,he),He);Ag(X,he)}return null}function Le(ne,X,ie,he){for(var He=null,At=null,Ye=X,$e=X=0,$n=null;Ye!==null&&$e<ie.length;$e++){Ye.index>$e?($n=Ye,Ye=null):$n=Ye.sibling;var Ft=Q(ne,Ye,ie[$e],he);if(Ft===null){Ye===null&&(Ye=$n);break}a&&Ye&&Ft.alternate===null&&o(ne,Ye),X=x(Ft,X,$e),At===null?He=Ft:At.sibling=Ft,At=Ft,Ye=$n}if($e===ie.length)return f(ne,Ye),vt&&Vs(ne,$e),He;if(Ye===null){for(;$e<ie.length;$e++)Ye=pe(ne,ie[$e],he),Ye!==null&&(X=x(Ye,X,$e),At===null?He=Ye:At.sibling=Ye,At=Ye);return vt&&Vs(ne,$e),He}for(Ye=p(Ye);$e<ie.length;$e++)$n=se(Ye,ne,$e,ie[$e],he),$n!==null&&(a&&(Ft=$n.alternate,Ft!==null&&Ye.delete(Ft.key===null?$e:Ft.key)),X=x($n,X,$e),At===null?He=$n:At.sibling=$n,At=$n);return a&&Ye.forEach(function($o){return o(ne,$o)}),vt&&Vs(ne,$e),He}function Ue(ne,X,ie,he){if(ie==null)throw Error(r(151));for(var He=null,At=null,Ye=X,$e=X=0,$n=null,Ft=ie.next();Ye!==null&&!Ft.done;$e++,Ft=ie.next()){Ye.index>$e?($n=Ye,Ye=null):$n=Ye.sibling;var $o=Q(ne,Ye,Ft.value,he);if($o===null){Ye===null&&(Ye=$n);break}a&&Ye&&$o.alternate===null&&o(ne,Ye),X=x($o,X,$e),At===null?He=$o:At.sibling=$o,At=$o,Ye=$n}if(Ft.done)return f(ne,Ye),vt&&Vs(ne,$e),He;if(Ye===null){for(;!Ft.done;$e++,Ft=ie.next())Ft=pe(ne,Ft.value,he),Ft!==null&&(X=x(Ft,X,$e),At===null?He=Ft:At.sibling=Ft,At=Ft);return vt&&Vs(ne,$e),He}for(Ye=p(Ye);!Ft.done;$e++,Ft=ie.next())Ft=se(Ye,ne,$e,Ft.value,he),Ft!==null&&(a&&($n=Ft.alternate,$n!==null&&Ye.delete($n.key===null?$e:$n.key)),X=x(Ft,X,$e),At===null?He=Ft:At.sibling=Ft,At=Ft);return a&&Ye.forEach(function(TW){return o(ne,TW)}),vt&&Vs(ne,$e),He}function ht(ne,X,ie,he){if(typeof ie=="object"&&ie!==null&&ie.type===H&&ie.key===null&&ie.props.ref===void 0&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case F:e:{for(var He=ie.key;X!==null;){if(X.key===He){if(He=ie.type,He===H){if(X.tag===7){f(ne,X.sibling),he=v(X,ie.props.children),Do(he,ie),he.return=ne,ne=he;break e}}else if(X.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===M&&oc(He)===X.type){f(ne,X.sibling),he=v(X,ie.props),Do(he,ie),he.return=ne,ne=he;break e}f(ne,X);break}else o(ne,X);X=X.sibling}ie.type===H?(he=ec(ie.props.children,ne.mode,he,ie.key),Do(he,ie),he.return=ne,ne=he):(he=yg(ie.type,ie.key,ie.props,null,ne.mode,he),Do(he,ie),he.return=ne,ne=he)}return T(ne);case D:e:{for(He=ie.key;X!==null;){if(X.key===He)if(X.tag===4&&X.stateNode.containerInfo===ie.containerInfo&&X.stateNode.implementation===ie.implementation){f(ne,X.sibling),he=v(X,ie.children||[]),he.return=ne,ne=he;break e}else{f(ne,X);break}else o(ne,X);X=X.sibling}he=L2(ie,ne.mode,he),he.return=ne,ne=he}return T(ne);case M:return ie=oc(ie),ht(ne,X,ie,he)}if(je(ie))return Le(ne,X,ie,he);if(de(ie)){if(He=de(ie),typeof He!="function")throw Error(r(150));return ie=He.call(ie),Ue(ne,X,ie,he)}if(typeof ie.then=="function")return ht(ne,X,Tg(ie),he);if(ie.$$typeof===z)return ht(ne,X,Cg(ne,ie),he);Ag(ne,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,X!==null&&X.tag===6?(f(ne,X.sibling),he=v(X,ie),he.return=ne,ne=he):(f(ne,X),he=O2(ie,ne.mode,he),he.return=ne,ne=he),T(ne)):f(ne,X)}return function(ne,X,ie,he){try{Zf=0;var He=ht(ne,X,ie,he);return Uu=null,He}catch(Ye){if(Ye===Hu||Ye===kg)throw Ye;var At=xi(29,Ye,null,ne.mode);return At.lanes=he,At.return=ne,At}}}var cc=yT(!0),vT=yT(!1),Mo=!1;function W2(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function V2(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Po(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Fo(a,o,f){var p=a.updateQueue;if(p===null)return null;if(p=p.shared,(Yt&2)!==0){var v=p.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),p.pending=o,o=gg(a),tT(a,null,f),o}return mg(a,p,o,f),gg(a)}function Qf(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194048)!==0)){var p=o.lanes;p&=a.pendingLanes,f|=p,o.lanes=f,$m(a,f)}}function q2(a,o){var f=a.updateQueue,p=a.alternate;if(p!==null&&(p=p.updateQueue,f===p)){var v=null,x=null;if(f=f.firstBaseUpdate,f!==null){do{var T={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};x===null?v=x=T:x=x.next=T,f=f.next}while(f!==null);x===null?v=x=o:x=x.next=o}else v=x=o;f={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:p.shared,callbacks:p.callbacks},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}var G2=!1;function $f(){if(G2){var a=zu;if(a!==null)throw a}}function eh(a,o,f,p){G2=!1;var v=a.updateQueue;Mo=!1;var x=v.firstBaseUpdate,T=v.lastBaseUpdate,P=v.shared.pending;if(P!==null){v.shared.pending=null;var W=P,re=W.next;W.next=null,T===null?x=re:T.next=re,T=W;var ce=a.alternate;ce!==null&&(ce=ce.updateQueue,P=ce.lastBaseUpdate,P!==T&&(P===null?ce.firstBaseUpdate=re:P.next=re,ce.lastBaseUpdate=W))}if(x!==null){var pe=v.baseState;T=0,ce=re=W=null,P=x;do{var Q=P.lane&-536870913,se=Q!==P.lane;if(se?(Tt&Q)===Q:(p&Q)===Q){Q!==0&&Q===ac&&(G2=!0),ce!==null&&(ce=ce.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Le=a,Ue=P;Q=o;var ht=f;switch(Ue.tag){case 1:if(Le=Ue.payload,typeof Le=="function"){pe=Le.call(ht,pe,Q);break e}pe=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ue.payload,Q=typeof Le=="function"?Le.call(ht,pe,Q):Le,Q==null)break e;pe=j({},pe,Q);break e;case 2:Mo=!0}}Q=P.callback,Q!==null&&(a.flags|=64,se&&(a.flags|=8192),se=v.callbacks,se===null?v.callbacks=[Q]:se.push(Q))}else se={lane:Q,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ce===null?(re=ce=se,W=pe):ce=ce.next=se,T|=Q;if(P=P.next,P===null){if(P=v.shared.pending,P===null)break;se=P,P=se.next,se.next=null,v.lastBaseUpdate=se,v.shared.pending=null}}while(!0);ce===null&&(W=pe),v.baseState=W,v.firstBaseUpdate=re,v.lastBaseUpdate=ce,x===null&&(v.shared.lanes=0),Vo|=T,a.lanes=T,a.memoizedState=pe}}function bT(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function xT(a,o){var f=a.callbacks;if(f!==null)for(a.callbacks=null,a=0;a<f.length;a++)bT(f[a],o)}var Bo=at(null),_g=at(0);function ST(a,o){a=Zs,Ae(_g,a),Ae(Bo,o),Zs=a|o.baseLanes}function Y2(){Ae(_g,Zs),Ae(Bo,Bo.current)}function K2(){Zs=_g.current,nt(Bo),nt(_g)}var jr=at(null),Ur=null;function No(a){var o=a.alternate;Ae(Or,Or.current&1),Ae(jr,a),Ur===null&&(o===null||Bo.current!==null||o.memoizedState!==null)&&(Ur=a)}function X2(a){Ae(Or,Or.current),Ae(jr,a),Ur===null&&(Ur=a)}function wT(a){a.tag===22?(Ae(Or,Or.current),Ae(jr,a),Ur===null&&(Ur=a)):zo()}function zo(){Ae(Or,Or.current),Ae(jr,jr.current)}function Pi(a){nt(jr),Ur===a&&(Ur=null),nt(Or)}var Or=at(0);function th(a,o){Ae(jr,jr.current),Ae(Or,o)}function J2(a){nt(Or),nt(jr),Ur===a&&(Ur=null)}function Rg(a){for(var o=a;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||vx(f)||bx(f)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!=="independent"){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ys=0,ft=null,an=null,Zn=null,jg=!1,Wu=!1,uc=!1,Og=0,nh=0,Vu=null,KH=0;function Fn(){throw Error(r(321))}function Z2(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!Mi(a[f],o[f]))return!1;return!0}function Q2(a,o,f,p,v,x){return Ys=x,ft=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,xe.H=a===null||a.memoizedState===null?a3:s3,uc=!1,x=f(p,v),uc=!1,Wu&&(x=IT(o,f,p,v)),CT(a),x}function CT(a){xe.H=Ng;var o=an!==null&&an.next!==null;if(Ys=0,Zn=an=ft=null,jg=!1,nh=0,Vu=null,o)throw Error(r(300));a===null||Qn||(a=a.dependencies,a!==null&&wg(a)&&(Qn=!0))}function IT(a,o,f,p){ft=a;var v=0;do{if(Wu&&(Vu=null),nh=0,Wu=!1,25<=v)throw Error(r(301));if(v+=1,Zn=an=null,a.updateQueue!=null){var x=a.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}xe.H=nU,x=o(f,p)}while(Wu);return x}function XH(){var a=xe.H,o=a.useState()[0];return o=typeof o.then=="function"?rh(o):o,a=a.useState()[0],(an!==null?an.memoizedState:null)!==a&&(ft.flags|=1024),o}function $2(){var a=Og!==0;return Og=0,a}function eb(a,o,f){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~f}function tb(a){if(jg){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}jg=!1}Ys=0,Zn=an=ft=null,Wu=!1,nh=Og=0,Vu=null}function si(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zn===null?ft.memoizedState=Zn=a:Zn=Zn.next=a,Zn}function Wn(){if(an===null){var a=ft.alternate;a=a!==null?a.memoizedState:null}else a=an.next;var o=Zn===null?ft.memoizedState:Zn.next;if(o!==null)Zn=o,an=a;else{if(a===null)throw ft.alternate===null?Error(r(467)):Error(r(310));an=a,a={memoizedState:an.memoizedState,baseState:an.baseState,baseQueue:an.baseQueue,queue:an.queue,next:null},Zn===null?ft.memoizedState=Zn=a:Zn=Zn.next=a}return Zn}function Lg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rh(a){var o=nh;return nh+=1,Vu===null&&(Vu=[]),a=pT(Vu,a,o),o=ft,(Zn===null?o.memoizedState:Zn.next)===null&&(o=o.alternate,xe.H=o===null||o.memoizedState===null?a3:s3),a}function Dg(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return rh(a);if(a.$$typeof===le)return;if(a.$$typeof===z)return Rr(a)}throw Error(r(438,String(a)))}function nb(a){var o=null,f=ft.updateQueue;if(f!==null&&(o=f.memoCache),o==null){var p=ft.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(o={data:p.data.map(function(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),f===null&&(f=Lg(),ft.updateQueue=f),f.memoCache=o,f=o.data[o.index],f===void 0)for(f=o.data[o.index]=Array(a),p=0;p<a;p++)f[p]=B;return o.index++,f}function Ks(a,o){return typeof o=="function"?o(a):o}function Mg(a){var o=Wn();return rb(o,an,a)}function rb(a,o,f){var p=a.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=f;var v=a.baseQueue,x=p.pending;if(x!==null){if(v!==null){var T=v.next;v.next=x.next,x.next=T}o.baseQueue=v=x,p.pending=null}if(x=a.baseState,v===null)a.memoizedState=x;else{o=v.next;var P=T=null,W=null,re=o,ce=!1;do{var pe=re.lane&-536870913;if(pe!==re.lane?(Tt&pe)===pe:(Ys&pe)===pe){var Q=re.revertLane;if(Q===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),pe===ac&&(ce=!0);else if((Ys&Q)===Q){re=re.next,Q===ac&&(ce=!0);continue}else pe={lane:0,revertLane:re.revertLane,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(P=W=pe,T=x):W=W.next=pe,ft.lanes|=Q,Vo|=Q;pe=re.action,uc&&f(x,pe),x=re.hasEagerState?re.eagerState:f(x,pe)}else Q={lane:pe,revertLane:re.revertLane,gesture:re.gesture,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(P=W=Q,T=x):W=W.next=Q,ft.lanes|=pe,Vo|=pe;re=re.next}while(re!==null&&re!==o);if(W===null?T=x:W.next=P,!Mi(x,a.memoizedState)&&(Qn=!0,ce&&(f=zu,f!==null)))throw f;a.memoizedState=x,a.baseState=T,a.baseQueue=W,p.lastRenderedState=x}return v===null&&(p.lanes=0),[a.memoizedState,p.dispatch]}function ib(a){var o=Wn(),f=o.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=a;var p=f.dispatch,v=f.pending,x=o.memoizedState;if(v!==null){f.pending=null;var T=v=v.next;do x=a(x,T.action),T=T.next;while(T!==v);Mi(x,o.memoizedState)||(Qn=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),f.lastRenderedState=x}return[x,p]}function kT(a,o,f){var p=ft,v=Wn(),x=vt;if(x){if(f===void 0)throw Error(r(407));f=f()}else f=o();var T=!Mi((an||v).memoizedState,f);if(T&&(v.memoizedState=f,Qn=!0),v=v.queue,ob(AT.bind(null,p,v,a),[a]),a=v.getSnapshot!==o||T||Zn!==null&&(Zn.memoizedState.tag&1)!==0,qu(a?9:8,{destroy:void 0},TT.bind(null,p,v,f,o),null),a){if(p.flags|=2048,cn===null)throw Error(r(349));x||(Ys&127)!==0||ET(p,o,f)}return f}function ET(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=ft.updateQueue,o===null?(o=Lg(),ft.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function TT(a,o,f,p){o.value=f,o.getSnapshot=p,_T(o)&&RT(a)}function AT(a,o,f){return f(function(){_T(o)&&RT(a)})}function _T(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!Mi(a,f)}catch{return!0}}function RT(a){var o=$l(a,2);o!==null&&Ii(o,a,2)}function ab(a){var o=si();if(typeof a=="function"){var f=a;if(a=f(),uc){vi(!0);try{f()}finally{vi(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ks,lastRenderedState:a},o}function jT(a,o,f,p){return a.baseState=f,rb(a,an,typeof p=="function"?p:Ks)}function JH(a,o,f,p,v){if(Bg(a))throw Error(r(485));if(a=o.action,a!==null){var x={payload:v,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){x.listeners.push(T)}};xe.T!==null?f(!0):x.isTransition=!1,p(x),f=o.pending,f===null?(x.next=o.pending=x,OT(o,x)):(x.next=f.next,o.pending=f.next=x)}}function OT(a,o){var f=o.action,p=o.payload,v=a.state;if(o.isTransition){var x=xe.T,T={};T.types=x!==null?x.types:null,xe.T=T;try{var P=f(v,p),W=xe.S;W!==null&&W(T,P),LT(a,o,P)}catch(re){sb(a,o,re)}finally{x!==null&&T.types!==null&&(x.types=T.types),xe.T=x}}else try{x=f(v,p),LT(a,o,x)}catch(re){sb(a,o,re)}}function LT(a,o,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(p){DT(a,o,p)},function(p){return sb(a,o,p)}):DT(a,o,f)}function DT(a,o,f){o.status="fulfilled",o.value=f,MT(o),a.state=f,o=a.pending,o!==null&&(f=o.next,f===o?a.pending=null:(f=f.next,o.next=f,OT(a,f)))}function sb(a,o,f){var p=a.pending;if(a.pending=null,p!==null){p=p.next;do o.status="rejected",o.reason=f,MT(o),o=o.next;while(o!==p)}a.action=null}function MT(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function PT(a,o){return o}function FT(a,o){if(vt){var f=cn.formState;if(f!==null){e:{var p=ft;if(vt){if(yn){t:{for(var v=yn,x=ca;v.nodeType!==8;){if(!x){v=null;break t}if(v=da(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){yn=da(v.nextSibling),p=v.data==="F!";break e}}Oo(p)}p=!1}p&&(o=f[0])}}return f=si(),f.memoizedState=f.baseState=o,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PT,lastRenderedState:o},f.queue=p,f=n3.bind(null,ft,p),p.dispatch=f,p=ab(!1),x=fb.bind(null,ft,!1,p.queue),p=si(),v={state:o,dispatch:null,action:a,pending:null},p.queue=v,f=JH.bind(null,ft,v,x,f),v.dispatch=f,p.memoizedState=a,[o,f,!1]}function BT(a){var o=Wn();return NT(o,an,a)}function NT(a,o,f){if(o=rb(a,o,PT)[0],a=Mg(Ks)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var p=rh(o)}catch(T){throw T===Hu?kg:T}else p=o;o=Wn();var v=o.queue,x=v.dispatch;return f!==o.memoizedState&&(ft.flags|=2048,qu(9,{destroy:void 0},ZH.bind(null,v,f),null)),[p,x,a]}function ZH(a,o){a.action=o}function zT(a){var o=Wn(),f=an;if(f!==null)return NT(o,f,a);Wn(),o=o.memoizedState,f=Wn();var p=f.queue.dispatch;return f.memoizedState=a,[o,p,!1]}function qu(a,o,f,p){return a={tag:a,create:f,deps:p,inst:o,next:null},o=ft.updateQueue,o===null&&(o=Lg(),ft.updateQueue=o),f=o.lastEffect,f===null?o.lastEffect=a.next=a:(p=f.next,f.next=a,a.next=p,o.lastEffect=a),a}function HT(){return Wn().memoizedState}function Pg(a,o,f,p){var v=si();ft.flags|=a,v.memoizedState=qu(1|o,{destroy:void 0},f,p===void 0?null:p)}function Fg(a,o,f,p){var v=Wn();p=p===void 0?null:p;var x=v.memoizedState.inst;an!==null&&p!==null&&Z2(p,an.memoizedState.deps)?v.memoizedState=qu(o,x,f,p):(ft.flags|=a,v.memoizedState=qu(1|o,x,f,p))}function UT(a,o){Pg(8390656,8,a,o)}function ob(a,o){Fg(2048,8,a,o)}function QH(a){ft.flags|=4;var o=ft.updateQueue;if(o===null)o=Lg(),ft.updateQueue=o,o.events=[a];else{var f=o.events;f===null?o.events=[a]:f.push(a)}}function WT(a){var o=Wn().memoizedState;return QH({ref:o,nextImpl:a}),function(){if((Yt&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function VT(a,o){return Fg(4,2,a,o)}function qT(a,o){return Fg(4,4,a,o)}function GT(a,o){if(typeof o=="function"){a=a();var f=o(a);return function(){typeof f=="function"?f():o(null)}}if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function YT(a,o,f){f=f!=null?f.concat([a]):null,Fg(4,4,GT.bind(null,o,a),f)}function lb(){}function KT(a,o){var f=Wn();o=o===void 0?null:o;var p=f.memoizedState;return o!==null&&Z2(o,p[1])?p[0]:(f.memoizedState=[a,o],a)}function XT(a,o){var f=Wn();o=o===void 0?null:o;var p=f.memoizedState;if(o!==null&&Z2(o,p[1]))return p[0];if(p=a(),uc){vi(!0);try{a()}finally{vi(!1)}}return f.memoizedState=[p,o],p}function cb(a,o,f){return f===void 0||(Ys&1073741824)!==0&&(Tt&261930)===0?a.memoizedState=o:(a.memoizedState=f,a=aA(),ft.lanes|=a,Vo|=a,f)}function JT(a,o,f,p){return Mi(f,o)?f:Bo.current!==null?(a=cb(a,f,p),Mi(a,o)||(Qn=!0),a):(Ys&106)===0||(Ys&1073741824)!==0&&(Tt&261930)===0?(Qn=!0,a.memoizedState=f):(a=aA(),ft.lanes|=a,Vo|=a,o)}function ZT(a,o,f,p,v){var x=Se.p;Se.p=x!==0&&8>x?x:8;var T=xe.T,P={};P.types=T!==null?T.types:null,xe.T=P,fb(a,!1,o,f);try{var W=v(),re=xe.S;if(re!==null&&re(P,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var ce=YH(W,p);ih(a,o,ce,zi(a))}else ih(a,o,p,zi(a))}catch(pe){ih(a,o,{then:function(){},status:"rejected",reason:pe},zi())}finally{Se.p=x,T!==null&&P.types!==null&&(T.types=P.types),xe.T=T}}function $H(){}function ub(a,o,f,p){if(a.tag!==5)throw Error(r(476));var v=QT(a).queue;ZT(a,v,o,qe,f===null?$H:function(){return $T(a),f(p)})}function QT(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:qe,baseState:qe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ks,lastRenderedState:qe},next:null};var f={};return o.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ks,lastRenderedState:f},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function $T(a){var o=QT(a);o.next===null&&(o=a.alternate.memoizedState),ih(a,o.next.queue,{},zi())}function db(){return Rr(ud)}function e3(){return Wn().memoizedState}function t3(){return Wn().memoizedState}function eU(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var f=zi();a=Po(f);var p=Fo(o,a,f);p!==null&&(Ii(p,o,f),Qf(p,o,f)),o={cache:N2()},a.payload=o;return}o=o.return}}function tU(a,o,f){var p=zi();f={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Bg(a)?r3(o,f):(f=R2(a,o,f,p),f!==null&&(Ii(f,a,p),i3(f,o,p)))}function n3(a,o,f){var p=zi();ih(a,o,f,p)}function ih(a,o,f,p){var v={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(Bg(a))r3(o,v);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var T=o.lastRenderedState,P=x(T,f);if(v.hasEagerState=!0,v.eagerState=P,Mi(P,T))return mg(a,o,v,0),cn===null&&pg(),!1}catch{}if(f=R2(a,o,v,p),f!==null)return Ii(f,a,p),i3(f,o,p),!0}return!1}function fb(a,o,f,p){if(p={lane:2,revertLane:nx(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Bg(a)){if(o)throw Error(r(479))}else o=R2(a,f,p,2),o!==null&&Ii(o,a,2)}function Bg(a){var o=a.alternate;return a===ft||o!==null&&o===ft}function r3(a,o){Wu=jg=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function i3(a,o,f){if((f&4194048)!==0){var p=o.lanes;p&=a.pendingLanes,f|=p,o.lanes=f,$m(a,f)}}var Ng={readContext:Rr,use:Dg,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useLayoutEffect:Fn,useInsertionEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useSyncExternalStore:Fn,useId:Fn,useHostTransitionStatus:Fn,useFormState:Fn,useActionState:Fn,useOptimistic:Fn,useMemoCache:Fn,useCacheRefresh:Fn,useEffectEvent:Fn},a3={readContext:Rr,use:Dg,useCallback:function(a,o){return si().memoizedState=[a,o===void 0?null:o],a},useContext:Rr,useEffect:UT,useImperativeHandle:function(a,o,f){f=f!=null?f.concat([a]):null,Pg(4194308,4,GT.bind(null,o,a),f)},useLayoutEffect:function(a,o){return Pg(4194308,4,a,o)},useInsertionEffect:function(a,o){Pg(4,2,a,o)},useMemo:function(a,o){var f=si();o=o===void 0?null:o;var p=a();if(uc){vi(!0);try{a()}finally{vi(!1)}}return f.memoizedState=[p,o],p},useReducer:function(a,o,f){var p=si();if(f!==void 0){var v=f(o);if(uc){vi(!0);try{f(o)}finally{vi(!1)}}}else v=o;return p.memoizedState=p.baseState=v,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:v},p.queue=a,a=a.dispatch=tU.bind(null,ft,a),[p.memoizedState,a]}
vendor: 4,109 bytes, line 8
8,useRef:function(a){var o=si();return a={current:a},o.memoizedState=a},useState:function(a){a=ab(a);var o=a.queue,f=n3.bind(null,ft,o);return o.dispatch=f,[a.memoizedState,f]},useDebugValue:lb,useDeferredValue:function(a,o){var f=si();return cb(f,a,o)},useTransition:function(){var a=ab(!1);return a=ZT.bind(null,ft,a.queue,!0,!1),si().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,f){var p=ft,v=si();if(vt){if(f===void 0)throw Error(r(407));f=f()}else{if(f=o(),cn===null)throw Error(r(349));(Tt&127)!==0||ET(p,o,f)}v.memoizedState=f;var x={value:f,getSnapshot:o};return v.queue=x,UT(AT.bind(null,p,x,a),[a]),p.flags|=2048,qu(9,{destroy:void 0},TT.bind(null,p,x,f,o),null),f},useId:function(){var a=si(),o=cn.identifierPrefix;if(vt){var f=is,p=rs;f=(p&~(1<<32-ii(p)-1)).toString(32)+f,o="_"+o+"R_"+f,f=Og++,0<f&&(o+="H"+f.toString(32)),o+="_"}else f=KH++,o="_"+o+"r_"+f.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:db,useFormState:FT,useActionState:FT,useOptimistic:function(a){var o=si();o.memoizedState=o.baseState=a;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=f,o=fb.bind(null,ft,!0,f),f.dispatch=o,[a,o]},useMemoCache:nb,useCacheRefresh:function(){return si().memoizedState=eU.bind(null,ft)},useEffectEvent:function(a){var o=si(),f={impl:a};return o.memoizedState=f,function(){if((Yt&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}},s3={readContext:Rr,use:Dg,useCallback:KT,useContext:Rr,useEffect:ob,useImperativeHandle:YT,useInsertionEffect:VT,useLayoutEffect:qT,useMemo:XT,useReducer:Mg,useRef:HT,useState:function(){return Mg(Ks)},useDebugValue:lb,useDeferredValue:function(a,o){var f=Wn();return JT(f,an.memoizedState,a,o)},useTransition:function(){var a=Mg(Ks)[0],o=Wn().memoizedState;return[typeof a=="boolean"?a:rh(a),o]},useSyncExternalStore:kT,useId:e3,useHostTransitionStatus:db,useFormState:BT,useActionState:BT,useOptimistic:function(a,o){var f=Wn();return jT(f,an,a,o)},useMemoCache:nb,useCacheRefresh:t3,useEffectEvent:WT},nU={readContext:Rr,use:Dg,useCallback:KT,useContext:Rr,useEffect:ob,useImperativeHandle:YT,useInsertionEffect:VT,useLayoutEffect:qT,useMemo:XT,useReducer:ib,useRef:HT,useState:function(){return ib(Ks)},useDebugValue:lb,useDeferredValue:function(a,o){var f=Wn();return an===null?cb(f,a,o):JT(f,an.memoizedState,a,o)},useTransition:function(){var a=ib(Ks)[0],o=Wn().memoizedState;return[typeof a=="boolean"?a:rh(a),o]},useSyncExternalStore:kT,useId:e3,useHostTransitionStatus:db,useFormState:zT,useActionState:zT,useOptimistic:function(a,o){var f=Wn();return an!==null?jT(f,an,a,o):(f.baseState=a,[a,f.queue.dispatch])},useMemoCache:nb,useCacheRefresh:t3,useEffectEvent:WT};function hb(a,o,f,p){o=a.memoizedState,f=f(p,o),f=f==null?o:j({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var pb={enqueueSetState:function(a,o,f){a=a._reactInternals;var p=zi(),v=Po(p);v.payload=o,f!=null&&(v.callback=f),o=Fo(a,v,p),o!==null&&(Ii(o,a,p),Qf(o,a,p))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var p=zi(),v=Po(p);v.tag=1,v.payload=o,f!=null&&(v.callback=f),o=Fo(a,v,p),o!==null&&(Ii(o,a,p),Qf(o,a,p))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=zi(),p=Po(f);p.tag=2,o!=null&&(p.callback=o),o=Fo(a,p,f),o!==null&&(Ii(o,a,f),Qf(o,a,f))}};function o3(a,o,f,p,v,x,T){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(p,x,T):o.prototype&&o.prototype.isPureReactComponent?!Vf(f,p)||!Vf(v,x):!0}function l3(a,o,f,p){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,p),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,p),o.state!==a&&pb.enqueueReplaceState(o,o.state,null)}function dc(a,o){var f=o;if("ref"in o){f={};for(var p in o)p!=="ref"&&(f[p]=o[p])}if(a=a.defaultProps){f===o&&(f=j({},f));for(var v in a)f[v]===void 0&&(f[v]=a[v])}return f}function c3(a){hg(a)}function u3(a){console.error(a)}function d3(a){hg(a)}function zg(a,o){try{var f=a.onUncaughtError;f(o.value,{componentStack:o.stack})}
vendor: 70,547 bytes, line 8
8catch(p){setTimeout(function(){throw p})}}function f3(a,o,f){try{var p=a.onCaughtError;p(f.value,{componentStack:f.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function mb(a,o,f){return f=Po(f),f.tag=3,f.payload={element:null},f.callback=function(){zg(a,o)},f}function h3(a){return a=Po(a),a.tag=3,a}function p3(a,o,f,p){var v=f.type.getDerivedStateFromError;if(typeof v=="function"){var x=p.value;a.payload=function(){return v(x)},a.callback=function(){f3(o,f,p)}}var T=f.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(a.callback=function(){f3(o,f,p),typeof v!="function"&&(qo===null?qo=new Set([this]):qo.add(this));var P=p.stack;this.componentDidCatch(p.value,{componentStack:P!==null?P:""})})}function rU(a,o,f,p,v){if(f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(o=f.alternate,o!==null&&rc(o,f,v,!0),f=jr.current,f!==null){switch(f.tag){case 31:case 13:case 19:return Ur===null?o0():f.alternate===null&&Bn===0&&(Bn=3),f.flags&=-257,f.flags|=65536,f.lanes=v,p===Eg?f.flags|=16384:(o=f.updateQueue,o===null?f.updateQueue=new Set([p]):o.add(p),$b(a,p,v)),!1;case 22:return f.flags|=65536,p===Eg?f.flags|=16384:(o=f.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([p])},f.updateQueue=o):(f=o.retryQueue,f===null?o.retryQueue=new Set([p]):f.add(p)),$b(a,p,v)),!1}throw Error(r(435,f.tag))}return $b(a,p,v),o0(),!1}if(vt)return o=jr.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,p!==M2&&(a=Error(r(422),{cause:p}),Yf(sa(a,f)))):(p!==M2&&(o=Error(r(423),{cause:p}),Yf(sa(o,f))),a=a.current.alternate,a.flags|=65536,v&=-v,a.lanes|=v,p=sa(p,f),v=mb(a.stateNode,p,v),q2(a,v),Bn!==4&&(Bn=2)),!1;var x=Error(r(520),{cause:p});if(x=sa(x,f),fh===null?fh=[x]:fh.push(x),Bn!==4&&(Bn=2),o===null)return!0;p=sa(p,f),f=o;do{switch(f.tag){case 3:return f.flags|=65536,a=v&-v,f.lanes|=a,a=mb(f.stateNode,p,a),q2(f,a),!1;case 1:if(o=f.type,x=f.stateNode,(f.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(qo===null||!qo.has(x))))return f.flags|=65536,v&=-v,f.lanes|=v,v=h3(v),p3(v,a,f,p),q2(f,v),!1;break;case 22:if(f.memoizedState!==null)return f.flags|=65536,!1}f=f.return}while(f!==null);return!1}var gb=Error(r(461)),Qn=!1;function sr(a,o,f,p){o.child=a===null?vT(o,null,f,p):cc(o,a.child,f,p)}function m3(a,o,f,p,v){f=f.render;var x=o.ref;if("ref"in p){var T={};for(var P in p)P!=="ref"&&(T[P]=p[P])}else T=p;return ic(o),p=Q2(a,o,f,T,x,v),P=$2(),a!==null&&!Qn?(eb(a,o,v),Xs(a,o,v)):(vt&&P&&bg(o),o.flags|=1,sr(a,o,p,v),o.child)}function g3(a,o,f,p,v){if(a===null){var x=f.type;return typeof x=="function"&&!j2(x)&&x.defaultProps===void 0&&f.compare===null?(o.tag=15,o.type=x,y3(a,o,x,p,v)):(a=yg(f.type,null,p,o,o.mode,v),a.ref=o.ref,a.return=o,o.child=a)}if(x=a.child,!Ib(a,v)){var T=x.memoizedProps;if(f=f.compare,f=f!==null?f:Vf,f(T,p)&&a.ref===o.ref)return Xs(a,o,v)}return o.flags|=1,a=Ws(x,p),a.ref=o.ref,a.return=o,o.child=a}function y3(a,o,f,p,v){if(a!==null){var x=a.memoizedProps;if(Vf(x,p)&&a.ref===o.ref)if(Qn=!1,o.pendingProps=p=x,Ib(a,v))(a.flags&131072)!==0&&(Qn=!0);else return o.lanes=a.lanes,Xs(a,o,v)}return yb(a,o,f,p,v)}function v3(a,o,f,p){var v=p.children,x=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((o.flags&128)!==0){if(x=x!==null?x.baseLanes|f:f,a!==null){for(p=o.child=a.child,v=0;p!==null;)v=v|p.lanes|p.childLanes,p=p.sibling;p=v&~x}else p=0,o.child=null;return b3(a,o,x,f,p)}if((f&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Ig(o,x!==null?x.cachePool:null),x!==null?ST(o,x):Y2(),wT(o);else return p=o.lanes=536870912,b3(a,o,x!==null?x.baseLanes|f:f,f,p)}else x!==null?(Ig(o,x.cachePool),ST(o,x),zo(),o.memoizedState=null):(a!==null&&Ig(o,null),Y2(),zo());return sr(a,o,v,f),o.child}function ah(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function b3(a,o,f,p,v){var x=H2();return x=x===null?null:{parent:Jn._currentValue,pool:x},o.memoizedState={baseLanes:f,cachePool:x},a!==null&&Ig(o,null),Y2(),wT(o),a!==null&&rc(a,o,p,!0),o.childLanes=v,null}function Hg(a,o){return o=Ug({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function x3(a,o,f){return cc(o,a.child,null,f),a=Hg(o,o.pendingProps),a.flags|=2,Pi(o),o.memoizedState=null,a}function iU(a,o,f){var p=o.pendingProps,v=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(vt){if(p.mode==="hidden")return a=Hg(o,p),o.lanes=536870912,a.memoizedState={baseLanes:0,cachePool:null},ah(null,a);if(X2(o),(a=yn)?(a=GA(a,ca),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Ro!==null?{id:rs,overflow:is}:null,retryLane:536870912,hydrationErrors:null},f=rT(a),f.return=o,o.child=f,vr=o,yn=null)):a=null,a===null)throw Oo(o);return o.lanes=536870912,null}return Hg(o,p)}var x=a.memoizedState;if(x!==null){var T=x.dehydrated;if(X2(o),v)if(o.flags&256)o.flags&=-257,o=x3(a,o,f);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(Qn||rc(a,o,f,!1),v=(f&a.childLanes)!==0,Qn||v){if(Bo.current===null){if(p=cn,p!==null&&(T=De(p,f),T!==0&&T!==x.retryLane))throw x.retryLane=T,$l(a,T),Ii(p,a,T),gb;o0()}o=x3(a,o,f)}else a=x.treeContext,yn=da(T.nextSibling),vr=o,vt=!0,jo=null,ca=!1,a!==null&&sT(o,a),o=Hg(o,p),o.flags|=134221824;return o}return a=Ws(a.child,{mode:p.mode,children:p.children}),a.ref=o.ref,o.child=a,a.return=o,a}function Gu(a,o){var f=o.ref;if(f===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(a===null||a.ref!==f)&&(o.flags|=4194816)}}function yb(a,o,f,p,v){return ic(o),f=Q2(a,o,f,p,void 0,v),p=$2(),a!==null&&!Qn?(eb(a,o,v),Xs(a,o,v)):(vt&&p&&bg(o),o.flags|=1,sr(a,o,f,v),o.child)}function S3(a,o,f,p,v,x){return ic(o),o.updateQueue=null,f=IT(o,p,f,v),CT(a),p=$2(),a!==null&&!Qn?(eb(a,o,x),Xs(a,o,x)):(vt&&p&&bg(o),o.flags|=1,sr(a,o,f,x),o.child)}function w3(a,o,f,p,v){if(ic(o),o.stateNode===null){var x=Pu,T=f.contextType;typeof T=="object"&&T!==null&&(x=Rr(T)),x=new f(p,x),o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=pb,o.stateNode=x,x._reactInternals=o,x=o.stateNode,x.props=p,x.state=o.memoizedState,x.refs={},W2(o),T=f.contextType,x.context=typeof T=="object"&&T!==null?Rr(T):Pu,x.state=o.memoizedState,T=f.getDerivedStateFromProps,typeof T=="function"&&(hb(o,f,T,p),x.state=o.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(T=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),T!==x.state&&pb.enqueueReplaceState(x,x.state,null),eh(o,p,x,v),$f(),x.state=o.memoizedState),typeof x.componentDidMount=="function"&&(o.flags|=4194308),p=!0}else if(a===null){x=o.stateNode;var P=o.memoizedProps,W=dc(f,P);x.props=W;var re=x.context,ce=f.contextType;T=Pu,typeof ce=="object"&&ce!==null&&(T=Rr(ce));var pe=f.getDerivedStateFromProps;ce=typeof pe=="function"||typeof x.getSnapshotBeforeUpdate=="function",P=o.pendingProps!==P,ce||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(P||re!==T)&&l3(o,x,p,T),Mo=!1;var Q=o.memoizedState;x.state=Q,eh(o,p,x,v),$f(),re=o.memoizedState,P||Q!==re||Mo?(typeof pe=="function"&&(hb(o,f,pe,p),re=o.memoizedState),(W=Mo||o3(o,f,W,p,Q,re,T))?(ce||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(o.flags|=4194308)):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=p,o.memoizedState=re),x.props=p,x.state=re,x.context=T,p=W):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),p=!1)}else{x=o.stateNode,V2(a,o),T=o.memoizedProps,ce=dc(f,T),x.props=ce,pe=o.pendingProps,Q=x.context,re=f.contextType,W=Pu,typeof re=="object"&&re!==null&&(W=Rr(re)),P=f.getDerivedStateFromProps,(re=typeof P=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(T!==pe||Q!==W)&&l3(o,x,p,W),Mo=!1,Q=o.memoizedState,x.state=Q,eh(o,p,x,v),$f();var se=o.memoizedState;T!==pe||Q!==se||Mo||a!==null&&a.dependencies!==null&&wg(a.dependencies)?(typeof P=="function"&&(hb(o,f,P,p),se=o.memoizedState),(ce=Mo||o3(o,f,ce,p,Q,se,W)||a!==null&&a.dependencies!==null&&wg(a.dependencies))?(re||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(p,se,W),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(p,se,W)),typeof x.componentDidUpdate=="function"&&(o.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof x.componentDidUpdate!="function"||T===a.memoizedProps&&Q===a.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&Q===a.memoizedState||(o.flags|=1024),o.memoizedProps=p,o.memoizedState=se),x.props=p,x.state=se,x.context=W,p=ce):(typeof x.componentDidUpdate!="function"||T===a.memoizedProps&&Q===a.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&Q===a.memoizedState||(o.flags|=1024),p=!1)}return x=p,Gu(a,o),p=(o.flags&128)!==0,x||p?(x=o.stateNode,f=p&&typeof f.getDerivedStateFromError!="function"?null:x.render(),o.flags|=1,a!==null&&p?(o.child=cc(o,a.child,null,v),o.child=cc(o,null,f,v)):sr(a,o,f,v),o.memoizedState=x.state,a=o.child):a=Xs(a,o,v),a}function C3(a,o,f,p){return tc(),o.flags|=256,sr(a,o,f,p),o.child}var vb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bb(a){return{baseLanes:a,cachePool:fT()}}function xb(a,o,f){return a=a!==null?a.childLanes&~f:0,o&&(a|=Ni),a}function I3(a,o,f){var p=o.pendingProps,v=!1,x=(o.flags&128)!==0,T;if((T=x)||(T=a!==null&&a.memoizedState===null?!1:(Or.current&2)!==0),T&&(v=!0,o.flags&=-129),T=(o.flags&32)!==0,o.flags&=-33,a===null){if(vt){if(v?No(o):zo(),(a=yn)?(a=GA(a,ca),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Ro!==null?{id:rs,overflow:is}:null,retryLane:536870912,hydrationErrors:null},f=rT(a),f.return=o,o.child=f,vr=o,yn=null)):a=null,a===null)throw Oo(o);return bx(a)?o.lanes=32:o.lanes=536870912,null}return x=p.children,p=p.fallback,v?(zo(),v=o.mode,x=Ug({mode:"hidden",children:x},v),p=ec(p,v,f,null),x.return=o,p.return=o,x.sibling=p,o.child=x,p=o.child,p.memoizedState=bb(f),p.childLanes=xb(a,T,f),o.memoizedState=vb,ah(null,p)):(No(o),Sb(o,x))}var P=a.memoizedState;if(P!==null){var W=P.dehydrated;if(W!==null)return aU(a,o,x,T,p,W,P,f)}return v?(zo(),v=p.fallback,x=o.mode,P=a.child,W=P.sibling,p=Ws(P,{mode:"hidden",children:p.children}),p.subtreeFlags=P.subtreeFlags&1206910976,W!==null?v=Ws(W,v):(v=ec(v,x,f,null),v.flags|=2),v.return=o,p.return=o,p.sibling=v,o.child=p,ah(null,p),p=o.child,v=a.child.memoizedState,v===null?v=bb(f):(x=v.cachePool,x!==null?(P=Jn._currentValue,x=x.parent!==P?{parent:P,pool:P}:x):x=fT(),v={baseLanes:v.baseLanes|f,cachePool:x}),p.memoizedState=v,p.childLanes=xb(a,T,f),o.memoizedState=vb,ah(a.child,p)):(No(o),f=a.child,a=f.sibling,f=Ws(f,{mode:"visible",children:p.children}),f.return=o,f.sibling=null,a!==null&&(T=o.deletions,T===null?(o.deletions=[a],o.flags|=16):T.push(a)),o.child=f,o.memoizedState=null,f)}function Sb(a,o){return o=Ug({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function Ug(a,o){return a=xi(22,a,null,o),a.lanes=0,a}function Wg(a,o,f){return cc(o,a.child,null,f),a=Sb(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function aU(a,o,f,p,v,x,T,P){if(f)return o.flags&256?(No(o),o.flags&=-257,Wg(a,o,P)):o.memoizedState!==null?(zo(),o.child=a.child,o.flags|=128,null):(zo(),x=v.fallback,T=o.mode,v=Ug({mode:"visible",children:v.children},T),x=ec(x,T,P,null),x.flags|=2,v.return=o,x.return=o,v.sibling=x,o.child=v,cc(o,a.child,null,P),v=o.child,v.memoizedState=bb(P),v.childLanes=xb(a,p,P),o.memoizedState=vb,ah(null,v));if(No(o),bx(x)){if(p=x.nextSibling&&x.nextSibling.dataset,p)var W=p.dgst;return p=W,p!==""&&(v=Error(r(419)),v.stack="",v.digest=p,Yf({value:v,source:null,stack:null})),Wg(a,o,P)}if(Qn||rc(a,o,P,!1),p=(P&a.childLanes)!==0,Qn||p){if(Bo.current!==null)return Wg(a,o,P);if(p=cn,p!==null&&(v=De(p,P),v!==0&&v!==T.retryLane))throw T.retryLane=v,$l(a,v),Ii(p,a,v),gb;return vx(x)||o0(),Wg(a,o,P)}return vx(x)?(o.flags|=192,o.child=a.child,null):(a=T.treeContext,yn=da(x.nextSibling),vr=o,vt=!0,jo=null,ca=!1,a!==null&&sT(o,a),o=Sb(o,v.children),o.flags|=134221824,o)}function k3(a,o,f){a.lanes|=o;var p=a.alternate;p!==null&&(p.lanes|=o),Sg(a.return,o,f)}function E3(a){for(var o=null;a!==null;){var f=a.alternate;f!==null&&Rg(f)===null&&(o=a),a=a.sibling}return o}function Vg(a,o,f,p,v,x){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:p,tail:f,tailMode:v,treeForkCount:x}:(T.isBackwards=o,T.rendering=null,T.renderingStartTime=0,T.last=p,T.tail=f,T.tailMode=v,T.treeForkCount=x)}function wb(a){var o=a.child;for(a.child=null;o!==null;){var f=o.sibling;o.sibling=a.child,a.child=o,o=f}}function Cb(a,o,f){var p=o.pendingProps,v=p.revealOrder,x=p.tail;p=p.children;var T=Or.current;if(o.flags&128)return th(o,T),null;var P=(T&2)!==0;if(P?(T=T&1|2,o.flags|=128):T&=1,th(o,T),v==="backwards"&&a!==null?(wb(a),sr(a,o,p,f),wb(a)):sr(a,o,p,f),p=vt?Gf:0,!P&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&k3(a,f,o);else if(a.tag===19)k3(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(v){case"backwards":f=E3(o.child),f===null?(v=o.child,o.child=null):(v=f.sibling,f.sibling=null,wb(o)),Vg(o,!0,v,null,x,p);break;case"unstable_legacy-backwards":for(f=null,v=o.child,o.child=null;v!==null;){if(a=v.alternate,a!==null&&Rg(a)===null){o.child=v;break}a=v.sibling,v.sibling=f,f=v,v=a}Vg(o,!0,f,null,x,p);break;case"together":Vg(o,!1,null,null,void 0,p);break;case"independent":o.memoizedState=null;break;default:f=E3(o.child),f===null?(v=o.child,o.child=null):(v=f.sibling,f.sibling=null),Vg(o,!1,v,f,x,p)}return o.child}function T3(a,o,f){var p=o.pendingProps;return Lo(o,o.type,p.value),sr(a,o,p.children,f),o.child}function Xs(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Vo|=o.lanes,(f&o.childLanes)===0)if(a!==null){if(rc(a,o,f,!1),(f&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(r(153));if(o.child!==null){for(a=o.child,f=Ws(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=Ws(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Ib(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&wg(a)))}function sU(a,o,f){switch(o.tag){case 3:Xn(o,o.stateNode.containerInfo),Lo(o,Jn,a.memoizedState.cache),tc();break;case 27:case 5:Tr(o);break;case 4:Xn(o,o.stateNode.containerInfo);break;case 10:Lo(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,X2(o),null;break;case 13:var p=o.memoizedState;if(p!==null){if(p.dehydrated!==null)return No(o),o.flags|=128,null;p=rc(a,o,f,!1);var v=o.child.childLanes;return p||(f&v)!==0?I3(a,o,f):(No(o),a=Xs(a,o,f),a!==null?a.sibling:null)}No(o);break;case 19:if(o.flags&128)return Cb(a,o,f);if(v=(a.flags&128)!==0,p=(f&o.childLanes)!==0,p||(rc(a,o,f,!1),p=(f&o.childLanes)!==0),v){if(p)return Cb(a,o,f);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),th(o,Or.current),p)break;return null;case 22:return o.lanes=0,v3(a,o,f,o.pendingProps);case 24:Lo(o,Jn,a.memoizedState.cache)}return Xs(a,o,f)}function A3(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps)Qn=!0;else{if(!Ib(a,f)&&(o.flags&128)===0)return Qn=!1,sU(a,o,f);Qn=(a.flags&131072)!==0}else Qn=!1,vt&&(o.flags&1048576)!==0&&aT(o,Gf,o.index);switch(o.lanes=0,o.tag){case 16:e:{var p=o.pendingProps;if(a=oc(o.elementType),o.type=a,typeof a=="function")j2(a)?(p=dc(a,p),o.tag=1,o=w3(null,o,a,p,f)):(o.tag=0,o=yb(null,o,a,p,f));else{if(a!=null){var v=a.$$typeof;if(v===q){o.tag=11,o=m3(null,o,a,p,f);break e}else if(v===ge){o.tag=14,o=g3(null,o,a,p,f);break e}else if(v===z){o.tag=10,o.type=a,o=T3(null,o,f);break e}}throw o=we(a)||a,Error(r(306,o,""))}}return o;case 0:return yb(a,o,o.type,o.pendingProps,f);case 1:return p=o.type,v=dc(p,o.pendingProps),w3(a,o,p,v,f);case 3:e:{if(Xn(o,o.stateNode.containerInfo),a===null)throw Error(r(387));p=o.pendingProps;var x=o.memoizedState;v=x.element,V2(a,o),eh(o,p,null,f);var T=o.memoizedState;if(p=T.cache,Lo(o,Jn,p),p!==x.cache&&B2(o,[Jn],f,!0),$f(),p=T.element,x.isDehydrated)if(x={element:p,isDehydrated:!1,cache:T.cache},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){o=C3(a,o,p,f);break e}else if(p!==v){v=sa(Error(r(424)),o),Yf(v),o=C3(a,o,p,f);break e}else for(a=o.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,yn=da(a.firstChild),vr=o,vt=!0,jo=null,ca=!0,f=vT(o,null,p,f),o.child=f;f;)f.flags=f.flags&-3|134221824,f=f.sibling;else{if(tc(),p===v){o=Xs(a,o,f);break e}sr(a,o,p,f)}o=o.child}return o;case 26:return Gu(a,o),a===null?(f=$A(o.type,null,o.pendingProps,null))?o.memoizedState=f:vt||(o.stateNode=OA(o.type,o.pendingProps,ln.current,o)):o.memoizedState=$A(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return Tr(o),a===null&&vt&&(p=o.stateNode=XA(o.type,o.pendingProps,ln.current),vr=o,ca=!0,v=yn,Ko(o.type)?(xx=v,yn=da(p.firstChild)):yn=v),sr(a,o,o.pendingProps.children,f),Gu(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&vt&&((v=p=yn)&&(p=eW(p,o.type,o.pendingProps,ca),p!==null?(o.stateNode=p,vr=o,yn=da(p.firstChild),ca=!1,v=!0):v=!1),v||Oo(o)),Tr(o),v=o.type,x=o.pendingProps,T=a!==null?a.memoizedProps:null,p=x.children,dx(v,x)?p=null:T!==null&&dx(v,T)&&(o.flags|=32),o.memoizedState!==null&&(v=Q2(a,o,XH,null,null,f),ud._currentValue=v),Gu(a,o),sr(a,o,p,f),o.child;case 6:return a===null&&vt&&((a=f=yn)&&(f=tW(f,o.pendingProps,ca),f!==null?(o.stateNode=f,vr=o,yn=null,a=!0):a=!1),a||Oo(o)),null;case 13:return I3(a,o,f);case 4:return Xn(o,o.stateNode.containerInfo),p=o.pendingProps,a===null?o.child=cc(o,null,p,f):sr(a,o,p,f),o.child;case 11:return m3(a,o,o.type,o.pendingProps,f);case 7:return p=o.pendingProps,Gu(a,o),sr(a,o,p,f),o.child;case 8:return sr(a,o,o.pendingProps.children,f),o.child;case 12:return sr(a,o,o.pendingProps.children,f),o.child;case 10:return T3(a,o,f);case 9:return v=o.type._context,p=o.pendingProps.children,ic(o),v=Rr(v),p=p(v),o.flags|=1,sr(a,o,p,f),o.child;case 14:return g3(a,o,o.type,o.pendingProps,f);case 15:return y3(a,o,o.type,o.pendingProps,f);case 19:return Cb(a,o,f);case 31:return iU(a,o,f);case 22:return v3(a,o,f,o.pendingProps);case 24:return ic(o),p=Rr(Jn),a===null?(v=H2(),v===null&&(v=cn,x=N2(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=f),v=x),o.memoizedState={parent:p,cache:v},W2(o),Lo(o,Jn,v)):((a.lanes&f)!==0&&(V2(a,o),eh(o,null,null,f),$f()),v=a.memoizedState,x=o.memoizedState,v.parent!==p?(v={parent:p,cache:p},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),Lo(o,Jn,p)):(p=x.cache,Lo(o,Jn,p),p!==v.cache&&B2(o,[Jn],f,!0))),sr(a,o,o.pendingProps.children,f),o.child;case 30:return o.stateNode===null&&(o.stateNode={autoName:null,paired:null,clones:null,ref:null}),p=o.pendingProps,p.name!=null&&p.name!=="auto"?o.flags|=a===null?18882560:18874368:vt&&bg(o),a!==null&&a.memoizedProps.name!==p.name?o.flags|=4194816:Gu(a,o),sr(a,o,p.children,f),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Js(a){a.flags|=4}function kb(a,o,f,p,v){var x;if((x=(a.mode&32)!==0)&&(x=f===null?r4(o,p):r4(o,p)&&(p.src!==f.src||p.srcSet!==f.srcSet)),x){if(a.flags|=16777216,(v&335544128)===v)if(a.stateNode.complete)a.flags|=8192;else if(cA())a.flags|=8192;else throw lc=Eg,U2}else a.flags&=-16777217}function _3(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!i4(o))if(cA())a.flags|=8192;else throw lc=Eg,U2}function qg(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?Fs():536870912,a.lanes|=o,Zu|=o)}function sh(a,o){if(!vt)switch(a.tailMode){case"visible":break;case"collapsed":for(var f=a.tail,p=null;f!==null;)f.alternate!==null&&(p=f),f=f.sibling;p===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:p.sibling=null;break;default:for(o=a.tail,f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null}}function vn(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,p=0;if(o)for(var v=a.child;v!==null;)f|=v.lanes|v.childLanes,p|=v.subtreeFlags&1206910976,p|=v.flags&1206910976,v.return=a,v=v.sibling;else for(v=a.child;v!==null;)f|=v.lanes|v.childLanes,p|=v.subtreeFlags,p|=v.flags,v.return=a,v=v.sibling;return a.subtreeFlags|=p,a.childLanes=f,o}function oU(a,o,f){var p=o.pendingProps;switch(D2(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vn(o),null;case 1:return vn(o),null;case 3:return f=o.stateNode,p=null,a!==null&&(p=a.memoizedState.cache),o.memoizedState.cache!==p&&(o.flags|=2048),Gs(Jn),Cn(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(a===null||a.child===null)&&(Nu(o)?Js(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,P2())),vn(o),null;case 26:var v=o.type,x=o.memoizedState;return a===null?(Js(o),x!==null?(vn(o),_3(o,x)):(vn(o),kb(o,v,null,p,f))):x?x!==a.memoizedState?(Js(o),vn(o),_3(o,x)):(vn(o),o.flags&=-16777217):(a=a.memoizedProps,a!==p&&Js(o),vn(o),kb(o,v,a,p,f)),null;case 27:if(fe(o),f=ln.current,v=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==p&&Js(o);else{if(!p){if(o.stateNode===null)throw Error(r(166));return vn(o),o.subtreeFlags&=-33554433,null}a=ot.current,Nu(o)?oT(o):(a=XA(v,p,f),o.stateNode=a,Js(o))}return vn(o),o.subtreeFlags&=-33554433,null;case 5:if(fe(o),v=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==p&&Js(o);else{if(!p){if(o.stateNode===null)throw Error(r(166));return vn(o),o.subtreeFlags&=-33554433,null}if(x=ot.current,Nu(o))oT(o);else{var T=yh(ln.current);switch(x){case 1:x=T.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=T.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=T.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=T.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=T.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof p.is=="string"?T.createElement("select",{is:p.is}):T.createElement("select"),p.multiple?x.multiple=!0:p.size&&(x.size=p.size);break;default:x=typeof p.is=="string"?T.createElement(v,{is:p.is}):T.createElement(v)}}x[_r]=o,x[bi]=p;e:for(T=o.child;T!==null;){if(T.tag===5||T.tag===6)x.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===o)break e;for(;T.sibling===null;){if(T.return===null||T.return===o)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}o.stateNode=x;e:switch(Dr(x,v,p),v){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Js(o)}}return vn(o),o.subtreeFlags&=-33554433,kb(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,f),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==p&&Js(o);else{if(typeof p!="string"&&o.stateNode===null)throw Error(r(166));if(a=ln.current,Nu(o)){if(a=o.stateNode,f=o.memoizedProps,p=null,v=vr,v!==null)switch(v.tag){case 27:case 5:p=v.memoizedProps}a[_r]=o,a=!!(a.nodeValue===f||p!==null&&p.suppressHydrationWarning===!0||AA(a.nodeValue,f)),a||Oo(o,!0)}else a=yh(a).createTextNode(p),a[_r]=o,o.stateNode=a}return vn(o),null;case 31:if(f=o.memoizedState,a===null||a.memoizedState!==null){if(p=Nu(o),f!==null){if(a===null){if(!p)throw Error(r(318));if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[_r]=o}else tc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vn(o),a=!1}else f=P2(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=f),a=!0;if(!a)return o.flags&256?(Pi(o),o):(Pi(o),null);if((o.flags&128)!==0)throw Error(r(558))}return vn(o),null;case 13:if(p=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(v=Nu(o),p!==null&&p.dehydrated!==null){if(a===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[_r]=o}else tc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vn(o),v=!1}else v=P2(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?(Pi(o),o):(Pi(o),null)}return Pi(o),(o.flags&128)!==0?(o.lanes=f,o):(f=p!==null,a=a!==null&&a.memoizedState!==null,f&&(p=o.child,v=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(v=p.alternate.memoizedState.cachePool.pool),x=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(x=p.memoizedState.cachePool.pool),x!==v&&(p.flags|=2048)),f!==a&&f&&(o.child.flags|=8192),qg(o,o.updateQueue),vn(o),null);case 4:return Cn(),a===null&&sx(o.stateNode.containerInfo),o.flags|=67108864,vn(o),null;case 10:return Gs(o.type),vn(o),null;case 19:if(J2(o),p=o.memoizedState,p===null)return vn(o),null;if(v=(o.flags&128)!==0,x=p.rendering,x===null)if(v)sh(p,!1);else{if(Bn!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(x=Rg(a),x!==null){for(o.flags|=128,sh(p,!1),a=x.updateQueue,o.updateQueue=a,qg(o,a),o.subtreeFlags=0,a=f,f=o.child;f!==null;)nT(f,a),f=f.sibling;return th(o,Or.current&1|2),vt&&Vs(o,p.treeForkCount),o.child}a=a.sibling}p.tail!==null&&ve()>r0&&(o.flags|=128,v=!0,sh(p,!1),o.lanes=4194304)}else{if(!v)if(a=Rg(x),a!==null){if(o.flags|=128,v=!0,a=a.updateQueue,o.updateQueue=a,qg(o,a),sh(p,!0),p.tail===null&&p.tailMode!=="collapsed"&&p.tailMode!=="visible"&&!x.alternate&&!vt)return vn(o),null}else 2*ve()-p.renderingStartTime>r0&&f!==536870912&&(o.flags|=128,v=!0,sh(p,!1),o.lanes=4194304);p.isBackwards?(x.sibling=o.child,o.child=x):(a=p.last,a!==null?a.sibling=x:o.child=x,p.last=x)}if(p.tail!==null){a=p.tail;e:{for(f=a;f!==null;){if(f.alternate!==null){f=!1;break e}f=f.sibling}f=!0}return p.rendering=a,p.tail=a.sibling,p.renderingStartTime=ve(),a.sibling=null,x=Or.current,x=v?x&1|2:x&1,p.tailMode==="visible"||p.tailMode==="collapsed"||!f||vt?th(o,x):(f=x,Ae(jr,o),Ae(Or,f),Ur===null&&(Ur=o)),vt&&Vs(o,p.treeForkCount),a}return vn(o),null;case 22:case 23:return Pi(o),K2(),p=o.memoizedState!==null,a!==null?a.memoizedState!==null!==p&&(o.flags|=8192):p&&(o.flags|=8192),p?(f&536870912)!==0&&(o.flags&128)===0&&(vn(o),o.subtreeFlags&6&&(o.flags|=8192)):vn(o),f=o.updateQueue,f!==null&&qg(o,f.retryQueue),f=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==f&&(o.flags|=2048),a!==null&&nt(sc),null;case 24:return f=null,a!==null&&(f=a.memoizedState.cache),o.memoizedState.cache!==f&&(o.flags|=2048),Gs(Jn),vn(o),null;case 25:return null;case 30:return o.flags|=33554432,vn(o),null}throw Error(r(156,o.tag))}function lU(a,o){switch(D2(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Gs(Jn),Cn(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return fe(o),null;case 31:if(o.memoizedState!==null){if(Pi(o),o.alternate===null)throw Error(r(340));tc()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(Pi(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));tc()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return J2(o),a=o.flags,a&65536?(o.flags=a&-65537|128,a=o.memoizedState,a!==null&&(a.rendering=null,a.tail=null),o.flags|=4,o):null;case 4:return Cn(),null;case 10:return Gs(o.type),null;case 22:case 23:return Pi(o),K2(),a!==null&&nt(sc),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return Gs(Jn),null;case 25:return null;default:return null}}function R3(a,o){switch(D2(o),o.tag){case 3:Gs(Jn),Cn();break;case 26:case 27:case 5:fe(o);break;case 4:Cn();break;case 31:o.memoizedState!==null&&Pi(o);break;case 13:Pi(o);break;case 19:J2(o);break;case 10:Gs(o.type);break;case 22:case 23:Pi(o),K2(),a!==null&&nt(sc);break;case 24:Gs(Jn)}}function oh(a,o){try{var f=o.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var v=p.next;f=v;do{if((f.tag&a)===a){p=void 0;var x=f.create,T=f.inst;p=x(),T.destroy=p}f=f.next}while(f!==v)}}catch(P){nn(o,o.return,P)}}function Ho(a,o,f){try{var p=o.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var x=v.next;p=x;do{if((p.tag&a)===a){var T=p.inst,P=T.destroy;if(P!==void 0){T.destroy=void 0,v=o;var W=f,re=P;try{re()}catch(ce){nn(v,W,ce)}}}p=p.next}while(p!==x)}}catch(ce){nn(o,o.return,ce)}}function j3(a){var o=a.updateQueue;if(o!==null){var f=a.stateNode;try{xT(o,f)}catch(p){nn(a,a.return,p)}}}function O3(a,o,f){f.props=dc(a.type,a.memoizedProps),f.state=a.memoizedState;try{f.componentWillUnmount()}catch(p){nn(a,o,p)}}function as(a,o){try{var f=a.ref;if(f!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:var v=a.stateNode,x=Hs(a.memoizedProps,v);(v.ref===null||v.ref.name!==x)&&(v.ref=NA(x)),p=v.ref;break;case 7:if(a.stateNode===null){var T=new Hi(a);g(a.child,!1,QU,T,void 0,void 0),a.stateNode=T}p=a.stateNode;break;default:p=a.stateNode}typeof f=="function"?a.refCleanup=f(p):f.current=p}}catch(P){nn(a,o,P)}}function Lr(a,o){var f=a.ref,p=a.refCleanup;if(f!==null)if(typeof p=="function")try{p()}catch(v){nn(a,o,v)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(v){nn(a,o,v)}else f.current=null}function Gg(a,o){if((a.tag===5||a.tag===27||a.tag===6)&&a.alternate===null&&o!==null)for(var f=0;f<o.length;f++)qA(a.stateNode,o[f])}function L3(a){for(var o=a.return;o!==null&&(Tb(o)&&qA(a.stateNode,o.stateNode),!Eb(o));)o=o.return}function lh(a){for(var o=a.return;o!==null&&(Tb(o)&&$U(a.stateNode,o.stateNode),!Eb(o));)o=o.return}function Eb(a){return a.tag===5||a.tag===3||a.tag===27}function Tb(a){return a&&a.tag===7&&a.stateNode!==null}function Ab(a){var o=a.type,f=a.memoizedProps,p=a.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":f.autoFocus&&p.focus();break e;case"img":f.src?p.src=f.src:f.srcSet&&(p.srcset=f.srcSet)}}catch(v){nn(a,a.return,v)}}function _b(a,o,f){try{var p=a.stateNode;DU(p,a.type,f,o),p[bi]=o}catch(v){nn(a,a.return,v)}}function D3(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ko(a.type)||a.tag===4}function Rb(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||D3(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ko(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function jb(a,o,f,p){var v=a.tag;if(v===5||v===6)v=a.stateNode,o?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(v,o):(o=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,o.appendChild(v),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=ns)),Gg(a,p),Ut=!0;else if(v!==4&&(v===27&&(Gg(a,p),p=null,Ko(a.type)&&(f=a.stateNode,o=null)),a=a.child,a!==null))for(jb(a,o,f,p),a=a.sibling;a!==null;)jb(a,o,f,p),a=a.sibling}function Yg(a,o,f,p){var v=a.tag;if(v===5||v===6)v=a.stateNode,o?f.insertBefore(v,o):f.appendChild(v),Gg(a,p),Ut=!0;else if(v!==4&&(v===27&&(Gg(a,p),p=null,Ko(a.type)&&(f=a.stateNode)),a=a.child,a!==null))for(Yg(a,o,f,p),a=a.sibling;a!==null;)Yg(a,o,f,p),a=a.sibling}function M3(a){var o=a.stateNode,f=a.memoizedProps;try{for(var p=a.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);Dr(o,p,f),o[_r]=a,o[bi]=f}catch(x){nn(a,a.return,x)}}var Kg=!1,Fi=null;function P3(a){(a.tag===30||(a.subtreeFlags&33554432)!==0)&&(Kg=!0)}var ss=null;function F3(){var a=ss;return ss=null,a}var Si=0;function Yu(a,o,f,p,v){return Si=0,B3(a.child,o,f,p,v)}function B3(a,o,f,p,v){for(var x=!1;a!==null;){if(a.tag===5){var T=a.stateNode;if(p!==null){var P=px(T);p.push(P),P.view&&(x=!0)}else x||px(T).view&&(x=!0);Kg=!0,FA(T,Si===0?o:o+"_"+Si,f),Si++}else(a.tag!==22||a.memoizedState===null)&&(a.tag===30&&v||B3(a.child,o,f,p,v)&&(x=!0));a=a.sibling}return x}function os(a,o){for(;a!==null;)a.tag===5?BA(a.stateNode,a.memoizedProps):(a.tag!==22||a.memoizedState===null)&&(a.tag===30&&o||os(a.child,o)),a=a.sibling}function Xg(a){if((a.subtreeFlags&18874368)!==0)for(a=a.child;a!==null;){if((a.tag!==22||a.memoizedState===null)&&(Xg(a),a.tag===30&&(a.flags&18874368)!==0&&a.stateNode.paired)){var o=a.memoizedProps;if(o.name==null||o.name==="auto")throw Error(r(544));var f=o.name;o=Us(o.default,o.share),o!=="none"&&(Yu(a,f,o,null,!1)||os(a.child,!1))}a=a.sibling}}function Ob(a,o){if(a.tag===30){var f=a.stateNode,p=a.memoizedProps,v=Hs(p,f),x=Us(p.default,f.paired?p.share:p.enter);x!=="none"?Yu(a,v,x,null,!1)?(Xg(a),f.paired||o||td(a,p.onEnter)):os(a.child,!1):Xg(a)}else if((a.subtreeFlags&33554432)!==0)for(a=a.child;a!==null;)Ob(a,o),a=a.sibling;else Xg(a)}function Lb(a){if(Fi!==null&&Fi.size!==0){var o=Fi;if((a.subtreeFlags&18874368)!==0)for(a=a.child;a!==null;){if(a.tag!==22||a.memoizedState===null){if(a.tag===30&&(a.flags&18874368)!==0){var f=a.memoizedProps,p=f.name;if(p!=null&&p!=="auto"){var v=o.get(p);if(v!==void 0){var x=Us(f.default,f.share);if(x!=="none"&&(Yu(a,p,x,null,!1)?(x=a.stateNode,v.paired=x,x.paired=v,td(a,f.onShare)):os(a.child,!1)),o.delete(p),o.size===0)break}}}Lb(a)}a=a.sibling}}}function Db(a){if(a.tag===30){var o=a.memoizedProps,f=Hs(o,a.stateNode),p=Fi!==null?Fi.get(f):void 0,v=Us(o.default,p!==void 0?o.share:o.exit);v!=="none"&&(Yu(a,f,v,null,!1)?p!==void 0?(v=a.stateNode,p.paired=v,v.paired=p,Fi.delete(f),td(a,o.onShare)):td(a,o.onExit):os(a.child,!1)),Fi!==null&&Lb(a)}else if((a.subtreeFlags&33554432)!==0)for(a=a.child;a!==null;)Db(a),a=a.sibling;else Fi!==null&&Lb(a)}function N3(a){for(a=a.child;a!==null;){if(a.tag===30){var o=a.memoizedProps,f=Hs(o,a.stateNode);o=Us(o.default,o.update),a.flags&=-5,o!=="none"&&Yu(a,f,o,a.memoizedState=[],!1)}else(a.subtreeFlags&33554432)!==0&&N3(a);a=a.sibling}}function Mb(a){if((a.subtreeFlags&18874368)!==0)for(a=a.child;a!==null;){if(a.tag!==22||a.memoizedState===null){if(a.tag===30&&(a.flags&18874368)!==0){var o=a.stateNode;o.paired!==null&&(o.paired=null,os(a.child,!1))}Mb(a)}a=a.sibling}}function Jg(a){if(a.tag===30)a.stateNode.paired=null,os(a.child,!1),Mb(a);else if((a.subtreeFlags&33554432)!==0)for(a=a.child;a!==null;)Jg(a),a=a.sibling;else Mb(a)}function z3(a){for(a=a.child;a!==null;)a.tag===30?os(a.child,!1):(a.subtreeFlags&33554432)!==0&&z3(a),a=a.sibling}function Pb(a,o,f,p,v,x,T){for(var P=!1;o!==null;){if(o.tag===5){var W=o.stateNode;if(x!==null&&Si<x.length){var re=x[Si],ce=px(W);(re.view||ce.view)&&(P=!0);var pe;if(pe=(a.flags&4)===0)if(ce.clip)pe=!0;else{pe=re.rect;var Q=ce.rect;pe=pe.y!==Q.y||pe.x!==Q.x||pe.height!==Q.height||pe.width!==Q.width}pe&&(a.flags|=4),ce.abs?ce=!re.abs:(re=re.rect,ce=ce.rect,ce=re.height!==ce.height||re.width!==ce.width),ce&&(a.flags|=32)}else a.flags|=32;(a.flags&4)!==0&&FA(W,Si===0?f:f+"_"+Si,v),P&&(a.flags&4)!==0||(ss===null&&(ss=[]),ss.push(W,Si===0?p:p+"_"+Si,o.memoizedProps)),Si++}else(o.tag!==22||o.memoizedState===null)&&(o.tag===30&&T?a.flags|=o.flags&32:Pb(a,o.child,f,p,v,x,T)&&(P=!0));o=o.sibling}return P}function H3(a,o){for(a=a.child;a!==null;){if(a.tag===30){var f=a.memoizedProps,p=a.stateNode,v=Hs(f,p),x=Us(f.default,f.update),T;T=a.memoizedState,a.memoizedState=null,p=a;var P=a.child;Si=0,v=Pb(p,P,v,v,x,T,!1),(a.flags&4)!==0&&v&&td(a,f.onUpdate)}else(a.subtreeFlags&33554432)!==0&&H3(a);a=a.sibling}}var br=!1,Jt=!1,ls=!1,Fb=!1,U3=typeof WeakSet=="function"?WeakSet:Set,xr=null,cs=!1,ch=!1,Zg=!1,Bb=!1;function cU(a,o,f){if(a=a.containerInfo,cx=dd,a=GE(a),I2(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else e:{p=(p=a.ownerDocument)&&p.defaultView||window;var v=p.getSelection&&p.getSelection();if(v&&v.rangeCount!==0){p=v.anchorNode;var x=v.anchorOffset,T=v.focusNode;v=v.focusOffset;try{p.nodeType,T.nodeType}catch{p=null;break e}var P=0,W=-1,re=-1,ce=0,pe=0,Q=a,se=null;t:for(;;){for(var Le;Q!==p||x!==0&&Q.nodeType!==3||(W=P+x),Q!==T||v!==0&&Q.nodeType!==3||(re=P+v),Q.nodeType===3&&(P+=Q.nodeValue.length),(Le=Q.firstChild)!==null;)se=Q,Q=Le;for(;;){if(Q===a)break t;if(se===p&&++ce===x&&(W=P),se===T&&++pe===v&&(re=P),(Le=Q.nextSibling)!==null)break;Q=se,se=Q.parentNode}Q=Le}p=W===-1||re===-1?null:{start:W,end:re}}else p=null}p=p||{start:0,end:0}}else p=null;for(ux={focusedElem:a,selectionRange:p},dd=!1,f=(f&335544064)===f,xr=o,o=f?9270:1024;xr!==null;){if(a=xr,f&&(p=a.deletions,p!==null))for(x=0;x<p.length;x++)f&&Db(p[x]);if(a.alternate===null&&(a.flags&2)!==0)f&&P3(a),Qg(f);else{if(a.tag===22){if(p=a.alternate,a.memoizedState!==null){p!==null&&p.memoizedState===null&&f&&Db(p),Qg(f);continue}else if(p!==null&&p.memoizedState!==null){f&&P3(a),Qg(f);continue}}p=a.child,(a.subtreeFlags&o)!==0&&p!==null?(p.return=a,xr=p):(f&&N3(a),Qg(f))}}Fi=null}function Qg(a){for(;xr!==null;){var o=xr,f=a,p=o.alternate,v=o.flags;switch(o.tag){case 0:case 11:case 15:break;case 1:if((v&1024)!==0&&p!==null){f=void 0,v=p.memoizedProps,p=p.memoizedState;var x=o.stateNode;try{var T=dc(o.type,v);f=x.getSnapshotBeforeUpdate(T,p),x.__reactInternalSnapshotBeforeUpdate=f}catch(P){nn(o,o.return,P)}}break;case 3:if((v&1024)!==0){if(p=o.stateNode.containerInfo,f=p.nodeType,f===9)yx(p);else if(f===1)switch(p.nodeName){case"HEAD":case"HTML":case"BODY":yx(p);break;default:p.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:f&&p!==null&&(f=Hs(p.memoizedProps,p.stateNode),v=o.memoizedProps,v=Us(v.default,v.update),v!=="none"&&Yu(p,f,v,p.memoizedState=[],!0));break;default:if((v&1024)!==0)throw Error(r(163))}if(p=o.sibling,p!==null){p.return=o.return,xr=p;break}xr=o.return}}function W3(a,o,f){var p=f.flags;switch(f.tag){case 0:case 11:case 15:us(a,f),p&4&&oh(5,f);break;case 1:if(us(a,f),p&4)if(a=f.stateNode,o===null)try{a.componentDidMount()}catch(T){nn(f,f.return,T)}else{var v=dc(f.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(v,o,a.__reactInternalSnapshotBeforeUpdate)}catch(T){nn(f,f.return,T)}}p&64&&j3(f),p&512&&as(f,f.return);break;case 3:if(us(a,f),p&64&&(a=f.updateQueue,a!==null)){if(o=null,f.child!==null)switch(f.child.tag){case 27:case 5:o=f.child.stateNode;break;case 1:o=f.child.stateNode}try{xT(a,o)}catch(T){nn(f,f.return,T)}}break;case 27:o===null&&p&4&&M3(f);case 26:case 5:us(a,f),o===null&&p&4&&Ab(f),p&512&&as(f,f.return);break;case 12:us(a,f);break;case 31:us(a,f),p&4&&Y3(a,f);break;case 13:us(a,f),p&4&&K3(a,f),p&64&&(a=f.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(f=SU.bind(null,f),nW(a,f))));break;case 22:if(p=f.memoizedState!==null||br,!p){var x=o!==null&&o.memoizedState!==null||Jt;o=br,v=Jt,br=p,(Jt=x)&&!v?(p=2,(f.subtreeFlags&8772)!==0&&(p|=1),Da(a,f,p)):us(a,f),br=o,Jt=v}break;case 30:us(a,f),p&512&&as(f,f.return);break;case 7:p&512&&as(f,f.return);default:us(a,f)}}function Nb(a,o){for(a=a.child;a!==null;)V3(a,o),a=a.sibling}function V3(a,o){switch(a.tag){case 5:case 26:try{var f=a.stateNode;if(o){var p=f.style;typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"}else{var v=a.stateNode,x=a.memoizedProps.style,T=x!=null&&x.hasOwnProperty("display")?x.display:null;v.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(W){nn(a,a.return,W)}zb(a,o);break;case 6:try{a.stateNode.nodeValue=o?"":a.memoizedProps,Ut=!0}catch(W){nn(a,a.return,W)}break;case 18:try{var P=a.stateNode;o?PA(P,!0):PA(a.stateNode,!1)}catch(W){nn(a,a.return,W)}break;case 22:case 23:a.memoizedState===null&&Nb(a,o);break;default:Nb(a,o)}}function zb(a,o){if(a.subtreeFlags&67108864)for(a=a.child;a!==null;){e:{var f=a,p=o;switch(f.tag){case 4:V3(f,p);break e;case 22:f.memoizedState===null&&zb(f,p);break e;default:zb(f,p)}}a=a.sibling}}function q3(a){var o=a.alternate;o!==null&&(a.alternate=null,q3(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&rg(o)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var jn=null,wi=!1;function Oa(a,o,f){for(f=f.child;f!==null;)G3(a,o,f),f=f.sibling}function G3(a,o,f){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(yi,f)}catch{}switch(f.tag){case 26:Jt||Lr(f,o),Oa(a,o,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&!Jt&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:Jt||Lr(f,o),lh(f);var p=jn,v=wi;Ko(f.type)&&(jn=f.stateNode,wi=!1),Oa(a,o,f),JA(f.stateNode,f.type,f.memoizedProps),jn=p,wi=v;break;case 5:Jt||Lr(f,o),lh(f);case 6:if(f.tag===6&&lh(f),p=jn,v=wi,jn=null,Oa(a,o,f),jn=p,wi=v,jn!==null)if(wi)try{(jn.nodeType===9?jn.body:jn.nodeName==="HTML"?jn.ownerDocument.body:jn).removeChild(f.stateNode),Ut=!0}catch(x){nn(f,o,x)}else try{jn.removeChild(f.stateNode),Ut=!0}catch(x){nn(f,o,x)}break;case 18:jn!==null&&(wi?(a=jn,MA(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,f.stateNode),fd(a)):MA(jn,f.stateNode));break;case 4:p=jn,v=wi,jn=f.stateNode.containerInfo,wi=!0,Oa(a,o,f),jn=p,wi=v;break;case 0:case 11:case 14:case 15:Ho(2,f,o),Jt||Ho(4,f,o),Oa(a,o,f);break;case 1:Jt||(Lr(f,o),p=f.stateNode,typeof p.componentWillUnmount=="function"&&O3(f,o,p)),Oa(a,o,f);break;case 21:Oa(a,o,f);break;case 22:Jt=(p=Jt)||f.memoizedState!==null,Oa(a,o,f),Jt=p;break;case 30:Lr(f,o),Oa(a,o,f);break;case 7:Jt||Lr(f,o),Oa(a,o,f);break;default:Oa(a,o,f)}}function Y3(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{fd(a)}catch(f){nn(o,o.return,f)}}}function K3(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{fd(a)}catch(f){nn(o,o.return,f)}}function uU(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new U3),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new U3),o;default:throw Error(r(435,a.tag))}}function $g(a,o){var f=uU(a);o.forEach(function(p){if(!f.has(p)){f.add(p);var v=wU.bind(null,a,p);p.then(v,v)}})}function oi(a,o,f){var p=o.deletions;if(p!==null)for(var v=0;v<p.length;v++){var x=p[v],T=a,P=o,W=P;e:for(;W!==null;){switch(W.tag){case 27:if(Ko(W.type)){jn=W.stateNode,wi=!1;break e}break;case 5:jn=W.stateNode,wi=!1;break e;case 3:case 4:jn=W.stateNode.containerInfo,wi=!0;break e}W=W.return}if(jn===null)throw Error(r(160));G3(T,P,x),jn=null,wi=!1,T=x.alternate,T!==null&&(T.return=null),x.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)X3(o,a,f),o=o.sibling}var La=null;function X3(a,o,f){var p=a.alternate,v=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(v&4&&(p=a.updateQueue,p=p!==null?p.events:null,p!==null))for(var x=0;x<p.length;x++){var T=p[x];T.ref.impl=T.nextImpl}oi(o,a,f),li(a),v&4&&(Ho(3,a,a.return),oh(3,a),Ho(5,a,a.return));break;case 1:oi(o,a,f),li(a),v&512&&(Jt||p===null||Lr(p,p.return)),v&64&&br&&(a=a.updateQueue,a!==null&&(o=a.callbacks,o!==null&&(f=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=f===null?o:f.concat(o))));break;case 26:if(x=La,oi(o,a,f),li(a),v&512&&(Jt||p===null||Lr(p,p.return)),v&4)if(v=p!==null?p.memoizedState:null,f=a.memoizedState,p===null)if(f===null)if(a.stateNode===null)if(br)a.stateNode=OA(a.type,a.memoizedProps,o.containerInfo,a);else{e:{o=a.type,f=a.memoizedProps,v=x.ownerDocument||x;t:switch(o){case"title":p=v.getElementsByTagName("title")[0],(!p||p[Mf]||p[_r]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=v.createElement(o),v.head.insertBefore(p,v.querySelector("head > title"))),Dr(p,o,f),p[_r]=a,yr(p),o=p;break e;case"link":if(x=n4("link","href",v).get(o+(f.href||""))){for(T=0;T<x.length;T++)if(p=x[T],p.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&p.getAttribute("rel")===(f.rel==null?null:f.rel)&&p.getAttribute("title")===(f.title==null?null:f.title)&&p.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){x.splice(T,1);break t}}p=v.createElement(o),Dr(p,o,f),v.head.appendChild(p);break;case"meta":if(x=n4("meta","content",v).get(o+(f.content||""))){for(T=0;T<x.length;T++)if(p=x[T],p.getAttribute("content")===(f.content==null?null:""+f.content)&&p.getAttribute("name")===(f.name==null?null:f.name)&&p.getAttribute("property")===(f.property==null?null:f.property)&&p.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&p.getAttribute("charset")===(f.charSet==null?null:f.charSet)){x.splice(T,1);break t}}p=v.createElement(o),Dr(p,o,f),v.head.appendChild(p);break;default:throw Error(r(468,o))}p[_r]=a,yr(p),o=p}a.stateNode=o}else br||Ix(x,a.type,a.stateNode);else a.stateNode=t4(x,f,a.memoizedProps);else v!==f?(v===null?(o=p.stateNode,o===null||Jt||o.parentNode.removeChild(o)):v.count--,f===null?br||Ix(x,a.type,a.stateNode):t4(x,f,a.memoizedProps)):f===null&&a.stateNode!==null&&_b(a,a.memoizedProps,p.memoizedProps);break;case 27:oi(o,a,f),li(a),v&512&&(Jt||p===null||Lr(p,p.return)),p!==null&&v&4&&_b(a,a.memoizedProps,p.memoizedProps);break;case 5:if(x=ls,ls=!1,oi(o,a,f),ls=x,li(a),v&512&&(Jt||p===null||Lr(p,p.return)),a.flags&32){o=a.stateNode;try{_u(o,""),Ut=!0}catch(ce){nn(a,a.return,ce)}}v&4&&a.stateNode!=null&&(o=a.memoizedProps,_b(a,o,p!==null?p.memoizedProps:o)),v&1024&&(Fb=!0);break;case 6:if(oi(o,a,f),li(a),v&4){if(a.stateNode===null)throw Error(r(162));o=a.memoizedProps,f=a.stateNode;try{f.nodeValue=o,Ut=!0}catch(ce){nn(a,a.return,ce)}}break;case 3:if(Ut=!1,p0=null,x=La,La=vh(o.containerInfo),oi(o,a,f),La=x,li(a),v&4&&p!==null&&p.memoizedState.isDehydrated)try{fd(o.containerInfo)}catch(ce){nn(a,a.return,ce)}Fb&&(Fb=!1,J3(a)),Ut=!1;break;case 4:v=ls,ls=br,p=gE(),x=La,La=vh(a.stateNode.containerInfo),oi(o,a,f),li(a),La=x,Ut&&ch&&(Zg=!0),Ut=p,ls=v;break;case 12:oi(o,a,f),li(a);break;case 31:oi(o,a,f),li(a),v&4&&(o=a.updateQueue,o!==null&&(a.updateQueue=null,$g(a,o)));break;case 13:oi(o,a,f),li(a),a.child.flags&8192&&a.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(n0=ve()),v&4&&(o=a.updateQueue,o!==null&&(a.updateQueue=null,$g(a,o)));break;case 22:x=a.memoizedState!==null,T=p!==null&&p.memoizedState!==null;var P=br,W=Jt,re=ls;br=P||x,ls=re||x,Jt=W||T,oi(o,a,f),Jt=W,ls=re,br=P,li(a),v&8192&&(o=a.stateNode,o._visibility=x?o._visibility&-2:o._visibility|1,!x||p===null||T||br||Jt||(o=T||Jt,f=br,p=Jt,br=x||br,Jt=o,Uo(a,2),br=f,Jt=p),!x&&ls||Nb(a,x)),v&4&&(o=a.updateQueue,o!==null&&(f=o.retryQueue,f!==null&&(o.retryQueue=null,$g(a,f))));break;case 19:oi(o,a,f),li(a),v&4&&(o=a.updateQueue,o!==null&&(a.updateQueue=null,$g(a,o)));break;case 30:v&512&&(Jt||p===null||Lr(p,p.return)),v=gE(),x=ch,T=(f&335544064)===f,P=a.memoizedProps,ch=T&&Us(P.default,P.update)!=="none",oi(o,a,f),li(a),T&&p!==null&&Ut&&(a.flags|=4),ch=x,Ut=v;break;case 21:break;case 7:v&512&&(Jt||p===null||Lr(p,p.return)),p&&p.stateNode!==null&&(p.stateNode._fragmentFiber=a);default:oi(o,a,f),li(a)}}function li(a){var o=a.flags;if(o&2){try{for(var f,p=a.return;p!==null;){if(D3(p)){f=p;break}p=p.return}p=null;for(var v=a.return;v!==null;){if(Tb(v)){var x=v.stateNode;p===null?p=[x]:p.push(x)}if(Eb(v))break;v=v.return}var T=p;if(f==null)throw Error(r(160));switch(f.tag){case 27:var P=f.stateNode,W=Rb(a);Yg(a,W,P,T);break;case 5:var re=f.stateNode;f.flags&32&&(_u(re,""),f.flags&=-33);var ce=Rb(a);Yg(a,ce,re,T);break;case 3:case 4:var pe=f.stateNode.containerInfo,Q=Rb(a);jb(a,Q,pe,T);break;default:throw Error(r(161))}}catch(se){nn(a,a.return,se)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function J3(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;J3(o),o.tag===5&&o.flags&1024&&(o=o.stateNode,dd=!0,o.reset(),dd=!1),a=a.sibling}}function Ku(a,o){if(o.subtreeFlags&9270)for(o=o.child;o!==null;)Z3(o,a),o=o.sibling;else H3(o)}function Z3(a,o){var f=a.alternate;if(f===null)Ob(a,!1);else switch(a.tag){case 3:if(Bb=cs=!1,F3(),Ku(o,a),!cs&&!Zg){if(a=ss,a!==null)for(var p=0;p<a.length;p+=3){f=a[p];var v=a[p+1];BA(f,a[p+2]),f=f.ownerDocument.documentElement,f!==null&&f.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+v+")"})}a=o.containerInfo,a=a.nodeType===9?a.documentElement:a.ownerDocument.documentElement,a!==null&&a.style.viewTransitionName===""&&(a.style.viewTransitionName="none",a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),a.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Bb=!0}ss=null;break;case 5:Ku(o,a);break;case 4:p=cs,cs=!1,Ku(o,a),cs&&(Zg=!0),cs=p;break;case 22:a.memoizedState===null&&(f.memoizedState!==null?Ob(a,!1):Ku(o,a));break;case 30:p=cs,v=F3(),cs=!1,Ku(o,a),cs&&(a.flags|=4);var x=a.memoizedProps,T=a.stateNode;o=Hs(x,T),T=Hs(f.memoizedProps,T);var P=Us(x.default,x.update);P==="none"?o=!1:(x=f.memoizedState,f.memoizedState=null,f=a.child,Si=0,o=Pb(a,f,o,T,P,x,!0),Si!==(x===null?0:x.length)&&(a.flags|=32)),(a.flags&4)!==0&&o?(td(a,a.memoizedProps.onUpdate),ss=v):v!==null&&(v.push.apply(v,ss),ss=v),cs=(a.flags&32)!==0?!0:p;break;default:Ku(o,a)}}function us(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)W3(a,o.alternate,o),o=o.sibling}function Uo(a,o){for(a=a.child;a!==null;){var f=a,p=o;switch(f.tag){case 0:case 11:case 14:case 15:Ho(4,f,f.return),Uo(f,p);break;case 1:Lr(f,f.return);var v=f.stateNode;typeof v.componentWillUnmount=="function"&&O3(f,f.return,v),Uo(f,p);break;case 27:(p&2)!==0&&JA(f.stateNode,f.type,f.memoizedProps);case 5:Lr(f,f.return),f.tag!==5&&f.tag!==27||lh(f),Uo(f,p);break;case 6:lh(f);break;case 26:Lr(f,f.return),v=f.stateNode,f.memoizedState!==null||v===null||Jt||v.parentNode.removeChild(v),Uo(f,p);break;case 22:f.memoizedState===null&&Uo(f,p);break;case 30:Lr(f,f.return),Uo(f,p);break;case 7:Lr(f,f.return);default:Uo(f,p)}a=a.sibling}}function Da(a,o,f){for(f=(o.subtreeFlags&8772)!==0?f:f&-2,o=o.child;o!==null;){var p=o.alternate,v=a,x=o,T=x.flags,P=(f&1)!==0;switch(x.tag){case 0:case 11:case 15:Da(v,x,f),oh(4,x);break;case 1:if(Da(v,x,f),p=x,v=p.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(ce){nn(p,p.return,ce)}if(p=x,v=p.updateQueue,v!==null){var W=p.stateNode;try{var re=v.shared.hiddenCallbacks;if(re!==null)for(v.shared.hiddenCallbacks=null,v=0;v<re.length;v++)bT(re[v],W)}catch(ce){nn(p,p.return,ce)}}P&&T&64&&j3(x),as(x,x.return);break;case 27:(f&2)!==0&&M3(x);case 5:x.tag!==5&&x.tag!==27||L3(x),Da(v,x,f),P&&p===null&&T&4&&Ab(x),as(x,x.return);break;case 6:L3(x);break;case 26:W=x.stateNode,x.memoizedState!==null||W===null||br||Ix(vh(W.ownerDocument),x.type,W),Da(v,x,f),P&&p===null&&T&4&&Ab(x),as(x,x.return);break;case 12:Da(v,x,f);break;case 31:Da(v,x,f),P&&T&4&&Y3(v,x);break;case 13:Da(v,x,f),P&&T&4&&K3(v,x);break;case 22:x.memoizedState===null&&Da(v,x,f),as(x,x.return);break;case 30:Da(v,x,f),as(x,x.return);break;case 7:as(x,x.return);default:Da(v,x,f)}o=o.sibling}}function Hb(a,o){var f=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==f&&(a!=null&&a.refCount++,f!=null&&Kf(f))}function Ub(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Kf(a))}function ua(a,o,f,p){var v=(f&335544064)===f;if(o.subtreeFlags&(v?10262:10256))for(o=o.child;o!==null;)Q3(a,o,f,p),o=o.sibling;else v&&z3(o)}function Q3(a,o,f,p){var v=(f&335544064)===f;v&&o.alternate===null&&o.return!==null&&o.return.alternate!==null&&Jg(o);var x=o.flags;switch(o.tag){case 0:case 11:case 15:ua(a,o,f,p),x&2048&&oh(9,o);break;case 1:ua(a,o,f,p);break;case 3:ua(a,o,f,p),v&&Bb&&(a=a.containerInfo,a=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,a.style.viewTransitionName==="root"&&(a.style.viewTransitionName=""),a=a.ownerDocument.documentElement,a!==null&&a.style.viewTransitionName==="none"&&(a.style.viewTransitionName="")),x&2048&&(x=null,o.alternate!==null&&(x=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==x&&(o.refCount++,x!=null&&Kf(x)));break;case 12:if(x&2048){ua(a,o,f,p),x=o.stateNode;try{var T=o.memoizedProps,P=T.id,W=T.onPostCommit;typeof W=="function"&&W(P,o.alternate===null?"mount":"update",x.passiveEffectDuration,-0)}catch(re){nn(o,o.return,re)}}else ua(a,o,f,p);break;case 31:ua(a,o,f,p);break;case 13:ua(a,o,f,p);break;case 23:break;case 22:T=o.stateNode,P=o.alternate,o.memoizedState!==null?(v&&P!==null&&P.memoizedState===null&&Jg(P),T._visibility&2?ua(a,o,f,p):uh(a,o)):(v&&P!==null&&P.memoizedState!==null&&Jg(o),T._visibility&2?ua(a,o,f,p):(T._visibility|=2,Xu(a,o,f,p,(o.subtreeFlags&10256)!==0||!1))),x&2048&&Hb(P,o);break;case 24:ua(a,o,f,p),x&2048&&Ub(o.alternate,o);break;case 30:v&&(x=o.alternate,x!==null&&(os(x.child,!0),os(o.child,!0))),ua(a,o,f,p);break;default:ua(a,o,f,p)}}function Xu(a,o,f,p,v){for(v=v&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var x=a,T=o,P=f,W=p,re=T.flags;switch(T.tag){case 0:case 11:case 15:Xu(x,T,P,W,v),oh(8,T);break;case 23:break;case 22:var ce=T.stateNode;T.memoizedState!==null?ce._visibility&2?Xu(x,T,P,W,v):uh(x,T):(ce._visibility|=2,Xu(x,T,P,W,v)),v&&re&2048&&Hb(T.alternate,T);break;case 24:Xu(x,T,P,W,v),v&&re&2048&&Ub(T.alternate,T);break;default:Xu(x,T,P,W,v)}o=o.sibling}}function uh(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var f=a,p=o,v=p.flags;switch(p.tag){case 22:uh(f,p),v&2048&&Hb(p.alternate,p);break;case 24:uh(f,p),v&2048&&Ub(p.alternate,p);break;default:uh(f,p)}o=o.sibling}}var fc=8192;function hc(a,o,f){if(a.subtreeFlags&fc)for(a=a.child;a!==null;)$3(a,o,f),a=a.sibling}function $3(a,o,f){switch(a.tag){case 26:hc(a,o,f),a.flags&fc&&(a.memoizedState!==null?gW(f,La,a.memoizedState,a.memoizedProps):(a=a.stateNode,(o&335544128)===o&&s4(f,a)));break;case 5:hc(a,o,f),a.flags&fc&&(a=a.stateNode,(o&335544128)===o&&s4(f,a));break;case 3:case 4:var p=La;La=vh(a.stateNode.containerInfo),hc(a,o,f),La=p;break;case 22:a.memoizedState===null&&(p=a.alternate,p!==null&&p.memoizedState!==null?(p=fc,fc=16777216,hc(a,o,f),fc=p):hc(a,o,f));break;case 30:if((a.flags&fc)!==0&&(p=a.memoizedProps.name,p!=null&&p!=="auto")){var v=a.stateNode;v.paired=null,Fi===null&&(Fi=new Map),Fi.set(p,v)}hc(a,o,f);break;default:hc(a,o,f)}}function eA(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function dh(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var f=0;f<o.length;f++){var p=o[f];xr=p,nA(p,a)}eA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)tA(a),a=a.sibling}function tA(a){switch(a.tag){case 0:case 11:case 15:dh(a),a.flags&2048&&Ho(9,a,a.return);break;case 3:dh(a);break;case 12:dh(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,e0(a)):dh(a);break;default:dh(a)}}function e0(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var f=0;f<o.length;f++){var p=o[f];xr=p,nA(p,a)}eA(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:Ho(8,o,o.return),e0(o);break;case 22:f=o.stateNode,f._visibility&2&&(f._visibility&=-3,e0(o));break;default:e0(o)}a=a.sibling}}function nA(a,o){for(;xr!==null;){var f=xr;switch(f.tag){case 0:case 11:case 15:Ho(8,f,o);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var p=f.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Kf(f.memoizedState.cache)}if(p=f.child,p!==null)p.return=f,xr=p;else e:for(f=a;xr!==null;){p=xr;var v=p.sibling,x=p.return;if(q3(p),p===f){xr=null;break e}if(v!==null){v.return=x,xr=v;break e}xr=x}}}var dU={getCacheForType:function(a){var o=Rr(Jn),f=o.data.get(a);return f===void 0&&(f=a(),o.data.set(a,f)),f},cacheSignal:function(){return Rr(Jn).controller.signal}},fU=typeof WeakMap=="function"?WeakMap:Map,Yt=0,cn=null,It=null,Tt=0,tn=0,Bi=null,Wo=!1,Ju=!1,Wb=!1,Zs=0,Bn=0,Vo=0,pc=0,t0=0,Ni=0,Zu=0,fh=null,Ci=null,Vb=!1,n0=0,rA=0,r0=1/0,i0=null,qo=null,Dn=0,Ma=null,mc=null,ds=0,qb=0,Gb=null,iA=null,Qu=null,$u=null,ed=null,hh=0,a0=null;function zi(){return(Yt&2)!==0&&Tt!==0?Tt&-Tt:xe.T!==null?nx():eg()}function aA(){if(Ni===0)if((Tt&536870912)===0||vt){var a=Yl;Yl<<=1,(Yl&3932160)===0&&(Yl=262144),Ni=a}else Ni=536870912;return a=jr.current,a!==null&&(a.flags|=32),Ni}function td(a,o){if(o!=null){var f=a.stateNode,p=f.ref;p===null&&(p=f.ref=NA(Hs(a.memoizedProps,f))),$u===null&&($u=[]),$u.push(o.bind(null,p))}}function Ii(a,o,f){(a===cn&&(tn===2||tn===9)||a.cancelPendingCommit!==null)&&(nd(a,0),Go(a,Tt,Ni,!1)),To(a,f),((Yt&2)===0||a!==cn)&&(a===cn&&((Yt&2)===0&&(pc|=f),Bn===4&&Go(a,Tt,Ni,!1)),fs(a))}function sA(a,o,f){if((Yt&6)!==0)throw Error(r(327));var p=!f&&(o&127)===0&&(o&a.expiredLanes)===0||ts(a,o),v=p?mU(a,o):Kb(a,o,!0),x=p;do{if(v===0){Ju&&!p&&Go(a,o,0,!1);break}else{if(f=a.current.alternate,x&&!hU(f)){v=Kb(a,o,!1),x=!1;continue}if(v===2){if(x=o,a.errorRecoveryDisabledLanes&x)var T=0;else T=a.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){o=T;e:{var P=a;v=fh;var W=P.current.memoizedState.isDehydrated;if(W&&(nd(P,T).flags|=256),T=Kb(P,T,!1),T!==2&&T!==6){if(Wb&&!W){P.errorRecoveryDisabledLanes|=x,pc|=x,v=4;break e}x=Ci,Ci=v,x!==null&&(Ci===null?Ci=x:Ci.push.apply(Ci,x))}v=T}if(x=!1,v!==2)continue}}if(v===1){nd(a,0),Go(a,o,0,!0);break}e:{switch(p=a,x=v,x){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o&&(o&62914560)!==o)break;case 6:Go(p,o,Ni,!Wo);break e;case 2:Ci=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(v=n0+300-ve(),10<v)){if(Go(p,o,Ni,!Wo),Ps(p,0,!0)!==0)break e;ds=o,p.timeoutHandle=hx(oA.bind(null,p,f,Ci,i0,Vb,o,Ni,pc,Zu,Wo,x,"Throttled",-0,0),v);break e}oA(p,f,Ci,i0,Vb,o,Ni,pc,Zu,Wo,x,null,-0,0)}}break}while(!0);fs(a)}function oA(a,o,f,p,v,x,T,P,W,re,ce,pe,Q,se){a.timeoutHandle=-1;var Le=o.subtreeFlags,Ue=(x&335544064)===x;if(pe=null,(Ue||Le&8192||(Le&16785408)===16785408)&&(pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ns},Fi=null,$3(o,x,pe),Ue&&(Le=pe,Ue=a.containerInfo,Ue=(Ue.nodeType===9?Ue:Ue.ownerDocument).__reactViewTransition,Ue!=null&&(Le.count++,Le.waitingForViewTransition=!0,Le=Sh.bind(Le),Ue.finished.then(Le,Le))),Le=(x&62914560)===x?n0-ve():(x&4194048)===x?rA-ve():0,Le=yW(pe,Le),Le!==null)){ds=x,a.cancelPendingCommit=Le(mA.bind(null,a,o,x,f,p,v,T,P,W,re,ce,pe,null,Q,se)),Go(a,x,T,!re);return}mA(a,o,x,f,p,v,T,P,W,re,ce,pe)}function hU(a){for(var o=a;;){var f=o.tag;if((f===0||f===11||f===15)&&o.flags&16384&&(f=o.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var p=0;p<f.length;p++){var v=f[p],x=v.getSnapshot;v=v.value;try{if(!Mi(x(),v))return!1}catch{return!1}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Go(a,o,f,p){o=Kl(a,o),o&=~t0,o&=~pc,a.suspendedLanes|=o,a.pingedLanes&=~o,p&&(a.warmLanes|=o),p=a.expirationTimes;for(var v=o;0<v;){var x=31-ii(v),T=1<<x;p[x]=-1,v&=~T}f!==0&&na(a,f,o)}function s0(){return(Yt&6)===0?(ph(0),!1):!0}function Yb(){if(It!==null){if(tn===0)var a=It.return;else a=It,qs=nc=null,tb(a),Uu=null,Zf=0,a=It;for(;a!==null;)R3(a.alternate,a),a=a.return;It=null}}function nd(a,o){var f=a.timeoutHandle;return f!==-1&&(a.timeoutHandle=-1,FU(f)),f=a.cancelPendingCommit,f!==null&&(a.cancelPendingCommit=null,f()),ds=0,Yb(),cn=a,It=f=Ws(a.current,null),Tt=o,tn=0,Bi=null,Wo=!1,Ju=ts(a,o),Wb=!1,Zu=Ni=t0=pc=Vo=Bn=0,Ci=fh=null,Vb=!1,Zs=Kl(a,o),pg(),f}function lA(a,o){ft=null,xe.H=Ng,o===Hu||o===kg?(o=mT(),tn=3):o===U2?(o=mT(),tn=4):tn=o===gb?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Bi=o,It===null&&(Bn=1,zg(a,sa(o,a.current)))}function cA(){var a=jr.current;return a===null?!0:(Tt&4194048)===Tt?Ur===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?a===Ur:!1}function uA(){var a=xe.H;return xe.H=Ng,a===null?Ng:a}function dA(){var a=xe.A;return xe.A=dU,a}function o0(){Bn=4,Wo||(Tt&4194048)!==Tt&&jr.current!==null||(Ju=!0),(Vo&134217727)===0&&(pc&134217727)===0||cn===null||Go(cn,Tt,Ni,!1)}function Kb(a,o,f){var p=Yt;Yt|=2;var v=uA(),x=dA();(cn!==a||Tt!==o)&&(i0=null,nd(a,o)),o=!1;var T=Bn;e:do try{if(tn!==0&&It!==null){var P=It,W=Bi;switch(tn){case 8:Yb(),T=6;break e;case 3:case 2:case 9:case 6:jr.current===null&&(o=!0);var re=tn;if(tn=0,Bi=null,rd(a,P,W,re),f&&Ju){T=0;break e}break;default:re=tn,tn=0,Bi=null,rd(a,P,W,re)}}pU(),T=Bn;break}catch(ce){lA(a,ce)}while(!0);return o&&a.shellSuspendCounter++,qs=nc=null,Yt=p,xe.H=v,xe.A=x,It===null&&(cn=null,Tt=0,pg()),T}function pU(){for(;It!==null;)fA(It)}function mU(a,o){var f=Yt;Yt|=2;var p=uA(),v=dA();cn!==a||Tt!==o?(i0=null,r0=ve()+500,nd(a,o)):Ju=ts(a,o);e:do try{if(tn!==0&&It!==null){o=It;var x=Bi;t:switch(tn){case 1:tn=0,Bi=null,rd(a,o,x,1);break;case 2:case 9:if(hT(x)){tn=0,Bi=null,hA(o);break}o=function(){tn!==2&&tn!==9||cn!==a||(tn=7),fs(a)},x.then(o,o);break e;case 3:tn=7;break e;case 4:tn=5;break e;case 7:hT(x)?(tn=0,Bi=null,hA(o)):(tn=0,Bi=null,rd(a,o,x,7));break;case 5:var T=null;switch(It.tag){case 26:T=It.memoizedState;case 5:case 27:var P=It;if(T?i4(T):P.stateNode.complete){tn=0,Bi=null;var W=P.sibling;if(W!==null)It=W;else{var re=P.return;re!==null?(It=re,l0(re)):It=null}break t}}tn=0,Bi=null,rd(a,o,x,5);break;case 6:tn=0,Bi=null,rd(a,o,x,6);break;case 8:Yb(),Bn=6;break e;default:throw Error(r(462))}}gU();break}catch(ce){lA(a,ce)}while(!0);return qs=nc=null,xe.H=p,xe.A=v,Yt=f,It!==null?0:(cn=null,Tt=0,pg(),Bn)}function gU(){for(;It!==null&&!Hr();)fA(It)}function fA(a){var o=A3(a.alternate,a,Zs);a.memoizedProps=a.pendingProps,o===null?l0(a):It=o}function hA(a){var o=a,f=o.alternate;switch(o.tag){case 15:case 0:o=S3(f,o,o.pendingProps,o.type,void 0,Tt);break;case 11:o=S3(f,o,o.pendingProps,o.type.render,o.ref,Tt);break;case 5:tb(o);var p=o;p===vr&&(vt?(xg(p),p.tag===5&&p.stateNode!=null&&(yn=p.stateNode)):(xg(p),vt=!0));default:R3(f,o),o=It=nT(o,Zs),o=A3(f,o,Zs)}a.memoizedProps=a.pendingProps,o===null?l0(a):It=o}function rd(a,o,f,p){qs=nc=null,tb(o),Uu=null,Zf=0;var v=o.return;try{if(rU(a,v,o,f,Tt)){Bn=1,zg(a,sa(f,a.current)),It=null;return}}catch(x){if(v!==null)throw It=v,x;Bn=1,zg(a,sa(f,a.current)),It=null;return}o.flags&32768?(vt||p===1?a=!0:Ju||(Tt&536870912)!==0?a=!1:(Wo=a=!0,(p===2||p===9||p===3||p===6)&&(p=jr.current,p!==null&&p.tag===13&&(p.flags|=16384))),pA(o,a)):l0(o)}function l0(a){var o=a;do{if((o.flags&32768)!==0){pA(o,Wo);return}a=o.return;var f=oU(o.alternate,o,Zs);if(f!==null){It=f;return}if(o=o.sibling,o!==null){It=o;return}It=o=a}while(o!==null);Bn===0&&(Bn=5)}function pA(a,o){do{var f=lU(a.alternate,a);if(f!==null){f.flags&=32767,It=f;return}if(f=a.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!o&&(a=a.sibling,a!==null)){It=a;return}It=a=f}while(a!==null);Bn=6,It=null}function mA(a,o,f,p,v,x,T,P,W,re,ce,pe){a.cancelPendingCommit=null;do c0();while(Dn!==0);if((Yt&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));a===cn&&(It=cn=null,Tt=0),mc=o,Ma=a,ds=f,Gb=v,iA=p,yU(a,o,f,T,P,W,pe)}}function yU(a,o,f,p,v,x,T){var P=o.lanes|o.childLanes;if(qb=P,P|=_2,Qm(a,f,P,p,v,x),$u=null,(f&335544064)===f?(ed=qH(a),p=10262):(ed=null,p=10256),(o.subtreeFlags&p)!==0||(o.flags&p)!==0?(a.callbackNode=null,a.callbackPriority=0,CU(zn,function(){return Qb(),null})):(a.callbackNode=null,a.callbackPriority=0),Kg=!1,p=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||p){p=xe.T,xe.T=null,v=Se.p,Se.p=2,x=Yt,Yt|=4;try{cU(a,o,f)}finally{Yt=x,Se.p=v,xe.T=p}}Dn=1,Kg?Qu=WU(T,a.containerInfo,ed,Xb,Jb,bU,Zb,Qb,vU):(Xb(),Jb(),Zb())}function vU(a){if(Dn!==0){var o=Ma.onRecoverableError;o(a,{componentStack:null})}}function bU(){Dn===3&&(Dn=0,Z3(mc,Ma),Dn=4)}function Xb(){if(Dn===1){Dn=0;var a=Ma,o=mc,f=ds,p=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||p){p=xe.T,xe.T=null;var v=Se.p;Se.p=2;var x=Yt;Yt|=4;try{ch=Zg=!1,X3(o,a,f),f=ux;var T=GE(a.containerInfo),P=f.focusedElem,W=f.selectionRange;if(T!==P&&P&&P.ownerDocument&&qE(P.ownerDocument.documentElement,P)){if(W!==null&&I2(P)){var re=W.start,ce=W.end;if(ce===void 0&&(ce=re),"selectionStart"in P)P.selectionStart=re,P.selectionEnd=Math.min(ce,P.value.length);else{var pe=P.ownerDocument||document,Q=pe&&pe.defaultView||window;if(Q.getSelection){var se=Q.getSelection(),Le=P.textContent.length,Ue=Math.min(W.start,Le),ht=W.end===void 0?Ue:Math.min(W.end,Le);!se.extend&&Ue>ht&&(T=ht,ht=Ue,Ue=T);var ne=VE(P,Ue),X=VE(P,ht);if(ne&&X&&(se.rangeCount!==1||se.anchorNode!==ne.node||se.anchorOffset!==ne.offset||se.focusNode!==X.node||se.focusOffset!==X.offset)){var ie=pe.createRange();ie.setStart(ne.node,ne.offset),se.removeAllRanges(),Ue>ht?(se.addRange(ie),se.extend(X.node,X.offset)):(ie.setEnd(X.node,X.offset),se.addRange(ie))}}}}for(pe=[],se=P;se=se.parentNode;)se.nodeType===1&&pe.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<pe.length;P++){var he=pe[P];he.element.scrollLeft=he.left,he.element.scrollTop=he.top}}dd=!!cx,ux=cx=null}finally{Yt=x,Se.p=v,xe.T=p}}a.current=o,Dn=2}}function Jb(){if(Dn===2){Dn=0;var a=Ma,o=mc,f=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||f){f=xe.T,xe.T=null;var p=Se.p;Se.p=2;var v=Yt;Yt|=4;try{W3(a,o.alternate,o)}finally{Yt=v,Se.p=p,xe.T=f}}Dn=3}}function Zb(){if(Dn===4||Dn===3){Dn=0;var a=Qu;Qu=null,Oe();var o=Ma,f=mc,p=ds,v=iA,x=(p&335544064)===p?10262:10256;if((f.subtreeFlags&x)!==0||(f.flags&x)!==0?Dn=5:(Dn=0,mc=Ma=null,gA(o,o.pendingLanes)),x=o.pendingLanes,x===0&&(qo=null),Cu(p),f=f.stateNode,Un&&typeof Un.onCommitFiberRoot=="function")try{Un.onCommitFiberRoot(yi,f,void 0,(f.current.flags&128)===128)}catch{}if(v!==null){f=xe.T,x=Se.p,Se.p=2,xe.T=null;try{for(var T=o.onRecoverableError,P=0;P<v.length;P++){var W=v[P];T(W.value,{componentStack:W.stack})}}finally{xe.T=f,Se.p=x}}if(v=$u,T=ed,ed=null,v!==null&&($u=null,T===null&&(T=[]),a!==null))for(W=0;W<v.length;W++)f=(0,v[W])(T),f!==void 0&&a.finished.finally(f);(ds&3)!==0&&c0(),fs(o),x=o.pendingLanes,(p&261930)!==0&&(x&42)!==0?o===a0?hh++:(hh=0,a0=o):(hh=0,a0=null),ph(0)}}function gA(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,Kf(o)))}function c0(){return Qu!==null&&(Qu.skipTransition(),Qu=null),Xb(),Jb(),Zb(),Qb()}function Qb(){if(Dn!==5)return!1;var a=Ma,o=qb;qb=0;var f=Cu(ds),p=xe.T,v=Se.p;try{Se.p=32>f?32:f,xe.T=null,f=Gb,Gb=null;var x=Ma,T=ds;if(Dn=0,mc=Ma=null,ds=0,(Yt&6)!==0)throw Error(r(331));var P=Yt;if(Yt|=4,tA(x.current),Q3(x,x.current,T,f),Yt=P,ph(0,!1),Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot(yi,x)}catch{}return!0}finally{Se.p=v,xe.T=p,gA(a,o)}}function yA(a,o,f){o=sa(f,o),o=mb(a.stateNode,o,2),a=Fo(a,o,2),a!==null&&(To(a,2),fs(a))}function nn(a,o,f){if(a.tag===3)yA(a,a,f);else for(;o!==null;){if(o.tag===3){yA(o,a,f);break}else if(o.tag===1){var p=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(qo===null||!qo.has(p))){a=sa(f,a),f=h3(2),p=Fo(o,f,2),p!==null&&(p3(f,p,o,a),To(p,2),fs(p));break}}o=o.return}}function $b(a,o,f){var p=a.pingCache;if(p===null){p=a.pingCache=new fU;var v=new Set;p.set(o,v)}else v=p.get(o),v===void 0&&(v=new Set,p.set(o,v));v.has(f)||(Wb=!0,v.add(f),a=xU.bind(null,a,o,f),o.then(a,a))}function xU(a,o,f){var p=a.pingCache;p!==null&&p.delete(o),a.pingedLanes|=a.suspendedLanes&f,a.warmLanes&=~f,cn===a&&(Tt&f)===f&&((Bn===4||Bn===3&&(Tt&62914560)===Tt&&300>ve()-n0)&&(Yt&2)===0?nd(a,0):t0|=f,Zu===Tt&&(Zu=0)),fs(a)}function vA(a,o){o===0&&(o=Fs()),a=$l(a,o),a!==null&&(To(a,o),fs(a))}function SU(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),vA(a,f)}function wU(a,o){var f=0;switch(a.tag){case 31:case 13:var p=a.stateNode,v=a.memoizedState;v!==null&&(f=v.retryLane);break;case 19:p=a.stateNode;break;case 22:p=a.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(o),vA(a,f)}function CU(a,o){return gr(a,o)}var id=null,ad=null,ex=!1,u0=!1,tx=!1,Yo=0;function fs(a){a!==ad&&a.next===null&&(ad===null?id=ad=a:ad=ad.next=a),u0=!0,ex||(ex=!0,kU())}function ph(a,o){if(!tx&&u0){tx=!0;do for(var f=!1,p=id;p!==null;){if(a!==0){var v=p.pendingLanes;if(v===0)var x=0;else{var T=p.suspendedLanes,P=p.pingedLanes;x=(1<<31-ii(42|a)+1)-1,x&=v&~(T&~P),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(f=!0,wA(p,x))}else x=Tt,x=Ps(p,p===cn?x:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(x&3)===0||ts(p,x)||(f=!0,wA(p,x));p=p.next}while(f);tx=!1}}function IU(){bA()}function bA(){u0=ex=!1;var a=0;Yo!==0&&PU()&&(a=Yo);for(var o=ve(),f=null,p=id;p!==null;){var v=p.next,x=xA(p,o);x===0?(p.next=null,f===null?id=v:f.next=v,v===null&&(ad=f)):(f=p,(a!==0||(x&3)!==0)&&(u0=!0)),p=v}Dn!==0&&Dn!==5||ph(a),Yo!==0&&(Yo=0)}function xA(a,o){for(var f=a.suspendedLanes,p=a.pingedLanes,v=a.expirationTimes,x=a.pendingLanes&-62914561;0<x;){var T=31-ii(x),P=1<<T,W=v[T];W===-1?((P&f)===0||(P&p)!==0)&&(v[T]=s2(P,o)):W<=o&&(a.expiredLanes|=P),x&=~P}if(o=cn,f=Tt,f=Ps(a,a===o?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p=a.callbackNode,f===0||a===o&&(tn===2||tn===9)||a.cancelPendingCommit!==null)return p!==null&&p!==null&&gn(p),a.callbackNode=null,a.callbackPriority=0;if((f&3)===0||ts(a,f)){if(o=f&-f,o===a.callbackPriority)return o;switch(p!==null&&gn(p),Cu(f)){case 2:case 8:f=Rt;break;case 32:f=zn;break;case 268435456:f=Hn;break;default:f=zn}
vendor: 3,718 bytes, line 8
8return p=SA.bind(null,a),f=gr(f,p),a.callbackPriority=o,a.callbackNode=f,o}return p!==null&&p!==null&&gn(p),a.callbackPriority=2,a.callbackNode=null,2}function SA(a,o){if(Dn!==0&&Dn!==5)return a.callbackNode=null,a.callbackPriority=0,null;var f=a.callbackNode;if(c0()&&a.callbackNode!==f)return null;var p=Tt;return p=Ps(a,a===cn?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p===0?null:(sA(a,p,o),xA(a,ve()),a.callbackNode!=null&&a.callbackNode===f?SA.bind(null,a):null)}function wA(a,o){if(c0())return null;sA(a,o,!0)}function kU(){BU(function(){(Yt&6)!==0?gr(lt,IU):bA()})}function nx(){if(Yo===0){var a=ac;a===0&&(a=Ds,Ds<<=1,(Ds&261888)===0&&(Ds=256)),Yo=a}return Yo}function CA(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:sg(a)}function EU(a,o,f,p,v){if(o==="submit"&&f&&f.stateNode===v){var x=CA((v[bi]||null).action),T=p.submitter;T&&(o=(o=T[bi]||null)?CA(o.formAction):T.getAttribute("formAction"),o!==null&&(x=o,T=null));var P=new ug("action","action",null,p,v);a.push({event:P,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Yo!==0){var W=new FormData(v,T);ub(f,{pending:!0,data:W,method:v.method,action:x},null,W)}}else typeof x=="function"&&(P.preventDefault(),W=new FormData(v,T),ub(f,{pending:!0,data:W,method:v.method,action:x},x,W))},currentTarget:v}]})}}for(var rx=0;rx<A2.length;rx++){var ix=A2[rx],TU=ix.toLowerCase(),AU=ix[0].toUpperCase()+ix.slice(1);ja(TU,"on"+AU)}ja(XE,"onAnimationEnd"),ja(JE,"onAnimationIteration"),ja(ZE,"onAnimationStart"),ja("dblclick","onDoubleClick"),ja("focusin","onFocus"),ja("focusout","onBlur"),ja(FH,"onTransitionRun"),ja(BH,"onTransitionStart"),ja(NH,"onTransitionCancel"),ja(QE,"onTransitionEnd"),Tu("onMouseEnter",["mouseout","mouseover"]),Tu("onMouseLeave",["mouseout","mouseover"]),Tu("onPointerEnter",["pointerout","pointerover"]),Tu("onPointerLeave",["pointerout","pointerover"]),Jl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_U=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mh));function IA(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var p=a[f],v=p.event;p=p.listeners;e:{var x=void 0;if(o)for(var T=p.length-1;0<=T;T--){var P=p[T],W=P.instance,re=P.currentTarget;if(P=P.listener,W!==x&&v.isPropagationStopped())break e;x=P,v.currentTarget=re;try{x(v)}catch(ce){hg(ce)}v.currentTarget=null,x=W}else for(T=0;T<p.length;T++){if(P=p[T],W=P.instance,re=P.currentTarget,P=P.listener,W!==x&&v.isPropagationStopped())break e;x=P,v.currentTarget=re;try{x(v)}catch(ce){hg(ce)}v.currentTarget=null,x=W}}}}function kt(a,o){var f=o[cE];f===void 0&&(f=o[cE]=new Set);var p=a+"__bubble";f.has(p)||(kA(o,a,2,!1),f.add(p))}function ax(a,o,f){var p=0;o&&(p|=4),kA(f,a,p,o)}var d0="_reactListening"+Math.random().toString(36).slice(2);function sx(a){if(!a[d0]){a[d0]=!0,fE.forEach(function(f){f!=="selectionchange"&&(_U.has(f)||ax(f,!1,a),ax(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;
vendor: 31,833 bytes, lines 8-9
8o===null||o[d0]||(o[d0]=!0,ax("selectionchange",!1,o))}}function kA(a,o,f,p){switch(p4(o)){case 2:var v=SW;break;case 8:v=wW;break;default:v=Ex}f=v.bind(null,o,f,a),v=void 0,!p2||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),p?v!==void 0?a.addEventListener(o,f,{capture:!0,passive:v}):a.addEventListener(o,f,!0):v!==void 0?a.addEventListener(o,f,{passive:v}):a.addEventListener(o,f,!1)}function ox(a,o,f,p,v){var x=p;if((o&1)===0&&(o&2)===0&&p!==null)e:for(;;){if(p===null)return;var T=p.tag;if(T===3||T===4){var P=p.stateNode.containerInfo;if(P===v)break;if(T===4)for(T=p.return;T!==null;){var W=T.tag;if((W===3||W===4)&&T.stateNode.containerInfo===v)return;T=T.return}for(;P!==null;){if(T=Xl(P),T===null)return;if(W=T.tag,W===5||W===6||W===26||W===27){p=x=T;continue e}P=P.parentNode}}p=p.return}kE(function(){var re=x,ce=f2(f),pe=[];e:{var Q=$E.get(a);if(Q!==void 0){var se=ug,Le=a;switch(a){case"keypress":if(lg(f)===0)break e;case"keydown":case"keyup":se=hH;break;case"focusin":Le="focus",se=v2;break;case"focusout":Le="blur",se=v2;break;case"beforeblur":case"afterblur":se=v2;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=AE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=tH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=vH;break;case XE:case JE:case ZE:se=iH;break;case QE:se=xH;break;case"scroll":case"scrollend":se=$z;break;case"wheel":se=wH;break;case"copy":case"cut":case"paste":se=sH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=RE;break;case"submit":se=gH;break;case"toggle":case"beforetoggle":se=IH}var Ue=(o&4)!==0,ht=!Ue&&(a==="scroll"||a==="scrollend"),ne=Ue?Q!==null?Q+"Capture":null:Q;Ue=[];for(var X=re,ie;X!==null;){var he=X;if(ie=he.stateNode,he=he.tag,he!==5&&he!==26&&he!==27||ie===null||ne===null||(he=Ff(X,ne),he!=null&&Ue.push(gh(X,he,ie))),ht)break;X=X.return}0<Ue.length&&(Q=new se(Q,Le,null,f,ce),pe.push({event:Q,listeners:Ue}))}}if((o&7)===0){e:{if(se=a==="mouseover"||a==="pointerover",Q=a==="mouseout"||a==="pointerout",se&&f!==d2&&(Le=f.relatedTarget||f.fromElement)&&(Xl(Le)||Le[Iu]))break e;(Q||se)&&(Le=ce.window===ce?ce:(se=ce.ownerDocument)?se.defaultView||se.parentWindow:window,Q?(se=f.relatedTarget||f.toElement,Q=re,se=se?Xl(se):null,se!==null&&(ht=s(se),Ue=se.tag,se!==ht||Ue!==5&&Ue!==27&&Ue!==6)&&(se=null)):(Q=null,se=re),Q!==se&&(Ue=AE,he="onMouseLeave",ne="onMouseEnter",X="mouse",(a==="pointerout"||a==="pointerover")&&(Ue=RE,he="onPointerLeave",ne="onPointerEnter",X="pointer"),ht=Q==null?Le:Pf(Q),ie=se==null?Le:Pf(se),Le=new Ue(he,X+"leave",Q,f,ce),Le.target=ht,Le.relatedTarget=ie,he=null,Xl(ce)===re&&(Ue=new Ue(ne,X+"enter",se,f,ce),Ue.target=ie,Ue.relatedTarget=ht,he=Ue),ht=he,Ue=Q&&se?L(Q,se,RU):null,Q!==null&&EA(pe,Le,Q,Ue,!1),se!==null&&ht!==null&&EA(pe,ht,se,Ue,!0)))}e:{if(Q=re?Pf(re):window,se=Q.nodeName&&Q.nodeName.toLowerCase(),se==="select"||se==="input"&&Q.type==="file")var He=BE;else if(PE(Q))if(NE)He=DH;else{He=OH;var At=jH}else se=Q.nodeName,!se||se.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?re&&u2(re.elementType)&&(He=BE):He=LH;if(He&&(He=He(a,re))){FE(pe,He,f,ce);break e}At&&At(a,Q,re)}switch(At=re?Pf(re):window,a){case"focusin":(PE(At)||At.contentEditable==="true")&&(Lu=At,k2=re,qf=null);break;case"focusout":qf=k2=Lu=null;break;case"mousedown":E2=!0;break;case"contextmenu":case"mouseup":case"dragend":E2=!1,YE(pe,f,ce);break;case"selectionchange":if(PH)break;case"keydown":case"keyup":YE(pe,f,ce)}var Ye;if(x2)e:{switch(a){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Ou?DE(a,f)&&($e="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&($e="onCompositionStart");$e&&(jE&&f.locale!=="ko"&&(Ou||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Ou&&(Ye=EE()):(Ao=ce,m2="value"in Ao?Ao.value:Ao.textContent,Ou=!0)),At=f0(re,$e),0<At.length&&($e=new _E($e,a,null,f,ce),pe.push({event:$e,listeners:At}),Ye?$e.data=Ye:(Ye=ME(f),Ye!==null&&($e.data=Ye)))),(Ye=EH?TH(a,f):AH(a,f))&&($e=f0(re,"onBeforeInput"),0<$e.length&&(At=new _E("onBeforeInput","beforeinput",null,f,ce),pe.push({event:At,listeners:$e}),At.data=Ye)),EU(pe,a,re,f,ce)}IA(pe,o)})}function gh(a,o,f){return{instance:a,listener:o,currentTarget:f}}function f0(a,o){for(var f=o+"Capture",p=[];a!==null;){var v=a,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=Ff(a,f),v!=null&&p.unshift(gh(a,v,x)),v=Ff(a,o),v!=null&&p.push(gh(a,v,x))),a.tag===3)return p;a=a.return}return[]}function RU(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function EA(a,o,f,p,v){for(var x=o._reactName,T=[];f!==null&&f!==p;){var P=f,W=P.alternate,re=P.stateNode;if(P=P.tag,W!==null&&W===p)break;P!==5&&P!==26&&P!==27||re===null||(W=re,v?(re=Ff(f,x),re!=null&&T.unshift(gh(f,re,W))):v||(re=Ff(f,x),re!=null&&T.push(gh(f,re,W)))),f=f.return}T.length!==0&&a.push({event:o,listeners:T})}var jU=/\r\n?/g,OU=/\u0000|\uFFFD/g;function TA(a){return(typeof a=="string"?a:""+a).replace(jU,` 9`).replace(OU,"")}function AA(a,o){return o=TA(o),TA(a)===o}function rn(a,o,f,p,v,x){switch(f){case"children":if(typeof p=="string")o==="body"||o==="textarea"&&p===""||_u(a,p);else if(typeof p=="number"||typeof p=="bigint")o!=="body"&&_u(a,""+p);else return;break;case"className":ag(a,"class",p);break;case"tabIndex":ag(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":ag(a,f,p);break;case"style":CE(a,p,x);return;case"data":if(o!=="object"){ag(a,"data",p);break}case"src":case"href":if(p===""&&(o!=="a"||f!=="href")){a.removeAttribute(f);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=sg(p),a.setAttribute(f,p);break;case"action":case"formAction":if(typeof p=="function"){a.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(f==="formAction"?(o!=="input"&&rn(a,o,"name",v.name,v,null),rn(a,o,"formEncType",v.formEncType,v,null),rn(a,o,"formMethod",v.formMethod,v,null),rn(a,o,"formTarget",v.formTarget,v,null)):(rn(a,o,"encType",v.encType,v,null),rn(a,o,"method",v.method,v,null),rn(a,o,"target",v.target,v,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=sg(p),a.setAttribute(f,p);break;case"onClick":p!=null&&(a.onclick=ns);return;case"onScroll":p!=null&&kt("scroll",a);return;case"onScrollEnd":p!=null&&kt("scrollend",a);return;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if(v.children!=null)throw Error(r(60));x?.__html!==f&&(a.innerHTML=f)}}break;case"multiple":a.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":a.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){a.removeAttribute("xlink:href");break}f=sg(p),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,p):a.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":p===!0?a.setAttribute(f,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,p):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?a.setAttribute(f,p):a.removeAttribute(f);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?a.removeAttribute(f):a.setAttribute(f,p);break;case"popover":kt("beforetoggle",a),kt("toggle",a),ig(a,"popover",p);break;case"xlinkActuate":Ns(a,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Ns(a,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Ns(a,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Ns(a,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Ns(a,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Ns(a,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Ns(a,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Ns(a,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Ns(a,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":ig(a,"is",p);break;case"innerText":case"textContent":return;default:if(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")f=Zz.get(f)||f,ig(a,f,p);else return}Ut=!0}function lx(a,o,f,p,v,x){switch(f){case"style":CE(a,p,x);return;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if(v.children!=null)throw Error(r(60));x?.__html!==f&&(a.innerHTML=f)}}break;case"children":if(typeof p=="string")_u(a,p);else if(typeof p=="number"||typeof p=="bigint")_u(a,""+p);else return;break;case"onScroll":p!=null&&kt("scroll",a);return;case"onScrollEnd":p!=null&&kt("scrollend",a);return;case"onClick":p!=null&&(a.onclick=ns);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!hE.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(v=f.endsWith("Capture"),x=f.slice(2,v?f.length-7:void 0),o=a[bi]||null,o=o!=null?o[f]:null,typeof o=="function"&&a.removeEventListener(x,o,v),typeof p=="function")){typeof o!="function"&&o!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(x,p,v);break e}Ut=!0,f in a?a[f]=p:p===!0?a.setAttribute(f,""):ig(a,f,p)}return}Ut=!0}function Dr(a,o,f){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kt("error",a),kt("load",a);var p=!1,v=!1,x;for(x in f)if(f.hasOwnProperty(x)){var T=f[x];if(T!=null)switch(x){case"src":p=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:rn(a,o,x,T,f,null)}}v&&rn(a,o,"srcSet",f.srcSet,f,null),p&&rn(a,o,"src",f.src,f,null);return;case"input":kt("invalid",a);var P=x=T=v=null,W=null,re=null;for(p in f)if(f.hasOwnProperty(p)){var ce=f[p];if(ce!=null)switch(p){case"name":v=ce;break;case"type":T=ce;break;case"checked":W=ce;break;case"defaultChecked":re=ce;break;case"value":x=ce;break;case"defaultValue":P=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(r(137,o));break;default:rn(a,o,p,ce,f,null)}}bE(a,x,P,W,re,T,v,!1);return;case"select":kt("invalid",a),p=T=x=null;for(v in f)if(f.hasOwnProperty(v)&&(P=f[v],P!=null))switch(v){case"value":x=P;break;case"defaultValue":T=P;break;case"multiple":p=P;default:rn(a,o,v,P,f,null)}o=x,f=T,a.multiple=!!p,o!=null?Au(a,!!p,o,!1):f!=null&&Au(a,!!p,f,!0);return;case"textarea":kt("invalid",a),x=v=p=null;for(T in f)if(f.hasOwnProperty(T)&&(P=f[T],P!=null))switch(T){case"value":p=P;break;case"defaultValue":v=P;break;case"children":x=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(91));break;default:rn(a,o,T,P,f,null)}SE(a,p,v,x);return;case"option":for(W in f)f.hasOwnProperty(W)&&(p=f[W],p!=null)&&(W==="selected"?a.selected=p&&typeof p!="function"&&typeof p!="symbol":rn(a,o,W,p,f,null));return;case"dialog":kt("beforetoggle",a),kt("toggle",a),kt("cancel",a),kt("close",a);break;case"iframe":case"object":kt("load",a);break;case"video":case"audio":for(p=0;p<mh.length;p++)kt(mh[p],a);break;case"image":kt("error",a),kt("load",a);break;case"details":kt("toggle",a);break;case"embed":case"source":case"link":kt("error",a),kt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in f)if(f.hasOwnProperty(re)&&(p=f[re],p!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:rn(a,o,re,p,f,null)}return;default:if(u2(o)){for(ce in f)f.hasOwnProperty(ce)&&(p=f[ce],p!==void 0&&lx(a,o,ce,p,f,void 0));return}}for(P in f)f.hasOwnProperty(P)&&(p=f[P],p!=null&&rn(a,o,P,p,f,null))}var LU={};function DU(a,o,f,p){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,T=null,P=null,W=null,re=null,ce=null;for(se in f){var pe=f[se];if(f.hasOwnProperty(se)&&pe!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":W=pe;default:p.hasOwnProperty(se)||rn(a,o,se,null,p,pe)}}for(var Q in p){var se=p[Q];if(pe=f[Q],p.hasOwnProperty(Q)&&(se!=null||pe!=null))switch(Q){case"type":se!==pe&&(Ut=!0),x=se;break;case"name":se!==pe&&(Ut=!0),v=se;break;case"checked":se!==pe&&(Ut=!0),re=se;break;case"defaultChecked":se!==pe&&(Ut=!0),ce=se;break;case"value":se!==pe&&(Ut=!0),T=se;break;case"defaultValue":se!==pe&&(Ut=!0),P=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:se!==pe&&rn(a,o,Q,se,p,pe)}}l2(a,T,P,W,re,ce,x,v);return;case"select":se=T=P=Q=null;for(x in f)if(W=f[x],f.hasOwnProperty(x)&&W!=null)switch(x){case"value":break;case"multiple":se=W;default:p.hasOwnProperty(x)||rn(a,o,x,null,p,W)}for(v in p)if(x=p[v],W=f[v],p.hasOwnProperty(v)&&(x!=null||W!=null))switch(v){case"value":x!==W&&(Ut=!0),Q=x;break;case"defaultValue":x!==W&&(Ut=!0),P=x;break;case"multiple":x!==W&&(Ut=!0),T=x;default:x!==W&&rn(a,o,v,x,p,W)}o=P,f=T,p=se,Q!=null?Au(a,!!f,Q,!1):!!p!=!!f&&(o!=null?Au(a,!!f,o,!0):Au(a,!!f,f?[]:"",!1));return;case"textarea":se=Q=null;for(P in f)if(v=f[P],f.hasOwnProperty(P)&&v!=null&&!p.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:rn(a,o,P,null,p,v)}for(T in p)if(v=p[T],x=f[T],p.hasOwnProperty(T)&&(v!=null||x!=null))switch(T){case"value":v!==x&&(Ut=!0),Q=v;break;case"defaultValue":v!==x&&(Ut=!0),se=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==x&&rn(a,o,T,v,p,x)}xE(a,Q,se);return;case"option":for(var Le in f)Q=f[Le],f.hasOwnProperty(Le)&&Q!=null&&!p.hasOwnProperty(Le)&&(Le==="selected"?a.selected=!1:rn(a,o,Le,null,p,Q));for(W in p)Q=p[W],se=f[W],p.hasOwnProperty(W)&&Q!==se&&(Q!=null||se!=null)&&(W==="selected"?(Q!==se&&(Ut=!0),a.selected=Q&&typeof Q!="function"&&typeof Q!="symbol"):rn(a,o,W,Q,p,se));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ue in f)Q=f[Ue],f.hasOwnProperty(Ue)&&Q!=null&&!p.hasOwnProperty(Ue)&&rn(a,o,Ue,null,p,Q);for(re in p)if(Q=p[re],se=f[re],p.hasOwnProperty(re)&&Q!==se&&(Q!=null||se!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,o));break;default:rn(a,o,re,Q,p,se)}return;default:if(u2(o)){for(var ht in f)Q=f[ht],f.hasOwnProperty(ht)&&Q!==void 0&&!p.hasOwnProperty(ht)&&lx(a,o,ht,void 0,p,Q);for(ce in p)Q=p[ce],se=f[ce],!p.hasOwnProperty(ce)||Q===se||Q===void 0&&se===void 0||lx(a,o,ce,Q,p,se);return}}for(var ne in f)Q=f[ne],f.hasOwnProperty(ne)&&Q!=null&&!p.hasOwnProperty(ne)&&rn(a,o,ne,null,p,Q);for(pe in p)Q=p[pe],se=f[pe],!p.hasOwnProperty(pe)||Q===se||Q==null&&se==null||rn(a,o,pe,Q,p,se)}function _A(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MU(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,f=performance.getEntriesByType("resource"),p=0;p<f.length;p++){var v=f[p],x=v.transferSize,T=v.initiatorType,P=v.duration;if(x&&P&&_A(T)){for(T=0,P=v.responseEnd,p+=1;p<f.length;p++){var W=f[p],re=W.startTime;if(re>P)break;var ce=W.transferSize,pe=W.initiatorType;ce&&_A(pe)&&(W=W.responseEnd,T+=ce*(W<P?1:(P-re)/(W-re)))}if(--p,o+=8*(x+T)/(v.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var cx=null,ux=null;function yh(a){return a.nodeType===9?a:a.ownerDocument}function RA(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jA(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function OA(a,o,f,p){return f=yh(f).createElement(a),f[_r]=p,f[bi]=o,Dr(f,a,o),yr(f),f}function dx(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var fx=null;function PU(){var a=window.event;return a&&a.type==="popstate"?a===fx?!1:(fx=a,!0):(fx=null,!1)}var hx=typeof setTimeout=="function"?setTimeout:void 0,FU=typeof clearTimeout=="function"?clearTimeout:void 0,LA=typeof Promise=="function"?Promise:void 0,DA=typeof requestAnimationFrame=="function"?requestAnimationFrame:hx,BU=typeof queueMicrotask=="function"?queueMicrotask:typeof LA<"u"?function(a){return LA.resolve(null).then(a).catch(NU)}:hx;function NU(a){setTimeout(function(){throw a})}function Ko(a){return a==="head"}function MA(a,o){var f=o,p=0;do{var v=f.nextSibling;if(a.removeChild(f),v&&v.nodeType===8)if(f=v.data,f==="/$"||f==="/&"){if(p===0){a.removeChild(v),fd(o);return}p--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")p++;else if(f==="html")Sx(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,Sx(f);for(var x=f.firstChild;x;){var T=x.nextSibling,P=x.nodeName;x[Mf]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&x.rel.toLowerCase()==="stylesheet"||f.removeChild(x),x=T}}else f==="body"&&Sx(a.ownerDocument.body);f=v}while(f);fd(o)}function PA(a,o){var f=a;a=0;do{var p=f.nextSibling;if(f.nodeType===1?o?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(o?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),p&&p.nodeType===8)if(f=p.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=p}while(f)}function FA(a,o,f){if(o=CSS.escape(o)!==o?"r-"+btoa(o).replace(/=/g,""):o,a.style.viewTransitionName=o,f!=null&&(a.style.viewTransitionClass=f),f=getComputedStyle(a),f.display==="inline"){if(o=a.getClientRects(),o.length===1)var p=1;else for(var v=p=0;v<o.length;v++){var x=o[v];0<x.width&&0<x.height&&p++}p===1&&(a=a.style,a.display=o.length===1?"inline-block":"block",a.marginTop="-"+f.paddingTop,a.marginBottom="-"+f.paddingBottom)}}function BA(a,o){a=a.style,o=o.style;var f=o!=null?o.hasOwnProperty("viewTransitionName")?o.viewTransitionName:o.hasOwnProperty("view-transition-name")?o["view-transition-name"]:null:null;a.viewTransitionName=f==null||typeof f=="boolean"?"":(""+f).trim(),f=o!=null?o.hasOwnProperty("viewTransitionClass")?o.viewTransitionClass:o.hasOwnProperty("view-transition-class")?o["view-transition-class"]:null:null,a.viewTransitionClass=f==null||typeof f=="boolean"?"":(""+f).trim(),a.display==="inline-block"&&(o==null?a.display=a.margin="":(f=o.display,a.display=f==null||typeof f=="boolean"?"":f,f=o.margin,f!=null?a.margin=f:(f=o.hasOwnProperty("marginTop")?o.marginTop:o["margin-top"],a.marginTop=f==null||typeof f=="boolean"?"":f,o=o.hasOwnProperty("marginBottom")?o.marginBottom:o["margin-bottom"],a.marginBottom=o==null||typeof o=="boolean"?"":o)))}function zU(a,o,f){return f=f.ownerDocument.defaultView,{rect:a,abs:o.position==="absolute"||o.position==="fixed",clip:o.clipPath!=="none"||o.overflow!=="visible"||o.filter!=="none"||o.mask!=="none"||o.mask!=="none"||o.borderRadius!=="0px",view:0<=a.bottom&&0<=a.right&&a.top<=f.innerHeight&&a.left<=f.innerWidth}}function px(a){var o=a.getBoundingClientRect(),f=getComputedStyle(a);return zU(o,f,a)}function HU(a){return a.documentElement.clientHeight}function UU(a){this.addEventListener("load",a),this.addEventListener("error",a)}function WU(a,o,f,p,v,x,T,P,W){var re=o.nodeType===9?o:o.ownerDocument;try{var ce=re.startViewTransition({update:function(){var Q=re.defaultView,se=Q.navigation&&Q.navigation.transition,Le=re.fonts.status;p();var Ue=[];if(Le==="loaded"&&(HU(re),re.fonts.status==="loading"&&Ue.push(re.fonts.ready)),Le=Ue.length,a!==null)for(var ht=a.suspenseyImages,ne=0,X=0;X<ht.length;X++){var ie=ht[X];if(!ie.complete){var he=ie.getBoundingClientRect();if(0<he.bottom&&0<he.right&&he.top<Q.innerHeight&&he.left<Q.innerWidth){if(ne+=a4(ie),ne>m0){Ue.length=Le;break}ie=new Promise(UU.bind(ie)),Ue.push(ie)}}}if(0<Ue.length)return Q=Promise.race([Promise.all(Ue),new Promise(function(He){return setTimeout(He,500)})]).then(v,v),(se?Promise.allSettled([se.finished,Q]):Q).then(x,x);if(v(),se)return se.finished.then(x,x);x()},types:f});re.__reactViewTransition=ce;var pe=[];return ce.ready.then(function(){for(var Q=re.documentElement.getAnimations({subtree:!0}),se=0;se<Q.length;se++){var Le=Q[se],Ue=Le.effect,ht=Ue.pseudoElement;if(ht!=null&&ht.startsWith("::view-transition")){pe.push(Le),Le=Ue.getKeyframes();for(var ne=ht=void 0,X=!0,ie=0;ie<Le.length;ie++){var he=Le[ie],He=he.width;if(ht===void 0)ht=He;else if(ht!==He){X=!1;break}if(He=he.height,ne===void 0)ne=He;else if(ne!==He){X=!1;break}delete he.width,delete he.height,he.transform==="none"&&delete he.transform}X&&ht!==void 0&&ne!==void 0&&(Ue.setKeyframes(Le),X=getComputedStyle(Ue.target,Ue.pseudoElement),X.width!==ht||X.height!==ne)&&(X=Le[0],X.width=ht,X.height=ne,X=Le[Le.length-1],X.width=ht,X.height=ne,Ue.setKeyframes(Le))}}T()},function(Q){re.__reactViewTransition===ce&&(re.__reactViewTransition=null);try{typeof Q=="object"&&Q!==null&&Q.name==="InvalidStateError"&&(Q.message==="View transition was skipped because document visibility state is hidden."||Q.message==="Skipping view transition because document visibility state has become hidden."||Q.message==="Skipping view transition because viewport size changed."||Q.message==="Transition was aborted because of invalid state")&&(Q=null),Q!==null&&W(Q)}finally{p(),v(),T()}}),ce.finished.finally(function(){for(var Q=0;Q<pe.length;Q++)pe[Q].cancel();re.__reactViewTransition===ce&&(re.__reactViewTransition=null),P()}),ce}catch{return p(),v(),T(),null}}function gc(a,o){this._scope=document.documentElement,this._selector="::view-transition-"+a+"("+o+")"}gc.prototype.animate=function(a,o){return o=typeof o=="number"?{duration:o}:j({},o),o.pseudoElement=this._selector,this._scope.animate(a,o)},gc.prototype.getAnimations=function(){for(var a=this._scope,o=this._selector,f=a.getAnimations({subtree:!0}),p=[],v=0;v<f.length;v++){var x=f[v].effect;x!==null&&x.target===a&&x.pseudoElement===o&&p.push(f[v])}return p},gc.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function NA(a){return{name:a,group:new gc("group",a),imagePair:new gc("image-pair",a),old:new gc("old",a),new:new gc("new",a)}}function Hi(a){this._fragmentFiber=a,this._observers=this._eventListeners=null}Hi.prototype.addEventListener=function(a,o,f){var p=null,v=null;if(!(f!=null&&typeof f!="boolean"&&(p=f.signal||null,p!==null&&p.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var x=this._eventListeners;if(HA(x,a,o,f)===-1){var T=this,P=o;f!=null&&typeof f!="boolean"&&f.once===!0&&(P=function(W){T.removeEventListener(a,o,f),typeof o=="function"?o.call(this,W):o.handleEvent(W)}),p!==null&&(v=T.removeEventListener.bind(T,a,o,f),p.addEventListener("abort",v,{once:!0}),v=p.removeEventListener.bind(p,"abort",v)),p=sd(f),x.push({type:a,listener:o,optionsOrUseCapture:f,attachedListener:P,cleanup:v}),g(this._fragmentFiber.child,!1,VU,a,P,p)}this._eventListeners=x}};function VU(a,o,f,p){return w(a).addEventListener(o,f,p),!1}Hi.prototype.removeEventListener=function(a,o,f){var p=this._eventListeners;if(p!==null&&(o=HA(p,a,o,f),o!==-1)){var v=p[o];f=v.attachedListener;var x=v.cleanup;v=sd(v.optionsOrUseCapture),g(this._fragmentFiber.child,!1,qU,a,f,v),p.splice(o,1),x!==null&&x()}};function qU(a,o,f,p){return w(a).removeEventListener(o,f,p),!1}function sd(a){return a!=null&&typeof a!="boolean"&&(a.once===!0||a.signal instanceof AbortSignal)?{capture:a.capture,passive:a.passive}:a}function zA(a){return a==null?"c=0":typeof a=="boolean"?"c="+(a?"1":"0"):"c="+(a.capture?"1":"0")}function HA(a,o,f,p){if(a.length===0)return-1;p=zA(p);for(var v=0;v<a.length;v++){var x=a[v];if(x.type===o&&x.listener===f&&zA(x.optionsOrUseCapture)===p)return v}return-1}Hi.prototype.dispatchEvent=function(a){var o=y(this._fragmentFiber);if(o===null)return!0;o=w(o);var f=this._eventListeners;if(f!==null&&0<f.length||!a.bubbles){var p=o.nodeType===9?o.createComment(""):document.createTextNode("");if(f)for(var v=0;v<f.length;v++){var x=f[v];p.addEventListener(x.type,x.attachedListener,sd(x.optionsOrUseCapture))}if(o.appendChild(p),a=p.dispatchEvent(a),f)for(v=0;v<f.length;v++)x=f[v],p.removeEventListener(x.type,x.attachedListener,sd(x.optionsOrUseCapture));return o.removeChild(p),a}return o.dispatchEvent(a)},Hi.prototype.focus=function(a){g(this._fragmentFiber.child,!0,UA,a,void 0,void 0)};function UA(a,o){return a.tag===6?!1:(a=w(a),rW(a,o))}Hi.prototype.focusLast=function(a){var o=[];g(this._fragmentFiber.child,!0,mx,o,void 0,void 0);for(var f=o.length-1;0<=f&&!UA(o[f],a);f--);};function mx(a,o){return o.push(a),!1}Hi.prototype.blur=function(){var a=y(this._fragmentFiber);a!==null&&(a=w(a),a=yh(a).activeElement,a!==null&&g(this._fragmentFiber.child,!1,GU,a,void 0,void 0))};function GU(a,o){return a.tag===6?!1:(a=w(a),a===o||a.contains(o)?(o.blur(),!0):!1)}Hi.prototype.observeUsing=function(a){this._observers===null&&(this._observers=new Set),this._observers.add(a),g(this._fragmentFiber.child,!1,YU,a,void 0,void 0)};function YU(a,o){return a.tag===6||(a=w(a),o.observe(a)),!1}Hi.prototype.unobserveUsing=function(a){var o=this._observers;if(o!==null&&o.has(a)){o.delete(a),g(this._fragmentFiber.child,!1,KU,a,void 0,void 0);for(var f=o=0;f<Pa.length;f++){var p=Pa[f];p.fragmentInstance===this&&p.observer===a?a.unobserve(p.instance):Pa[o++]=p}Pa.length=o}};function KU(a,o){return a.tag===6||(a=w(a),o.unobserve(a)),!1}var Pa=[],gx=!1;function XU(a,o,f){Pa.push({fragmentInstance:a,observer:o,instance:f}),gx||(gx=!0,iW(function(){gx=!1;var p=Pa;Pa=[];for(var v=0;v<p.length;v++){var x=p[v];x.observer.unobserve(x.instance)}}))}Hi.prototype.getClientRects=function(){var a=[];return g(this._fragmentFiber.child,!1,JU,a,void 0,void 0),a};function JU(a,o){if(a.tag===6){a=a.stateNode;var f=a.ownerDocument.createRange();f.selectNodeContents(a),o.push.apply(o,f.getClientRects())}else a=w(a),o.push.apply(o,a.getClientRects());return!1}Hi.prototype.getRootNode=function(a){var o=y(this._fragmentFiber);return o===null?this:w(o).getRootNode(a)},Hi.prototype.compareDocumentPosition=function(a){var o=y(this._fragmentFiber);if(o===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var f=[];g(this._fragmentFiber.child,!1,mx,f,void 0,void 0);var p=w(o);if(f.length===0){if(f=p,b(this._fragmentFiber)){e:{for(o=this._fragmentFiber.return;o!==null;){if(o.tag===4){o=o.stateNode.containerInfo;break e}if(o.tag===3||o.tag===5||o.tag===27)break;o=o.return}o=null}o!=null&&(f=o)}o=this._fragmentFiber;var v=p=f.compareDocumentPosition(a);return f===a?v=Node.DOCUMENT_POSITION_CONTAINS:p&Node.DOCUMENT_POSITION_CONTAINED_BY&&(f=S(o)[1],f===null?v=Node.DOCUMENT_POSITION_PRECEDING:(a=w(f).compareDocumentPosition(a),v=a===0||a&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),v|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}o=w(f[0]),v=w(f[f.length-1]);var x=b(this._fragmentFiber)?o.parentElement:p;if(x==null)return Node.DOCUMENT_POSITION_DISCONNECTED;p=x.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY,x=x.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY;var T=o.compareDocumentPosition(a),P=v.compareDocumentPosition(a),W=T&Node.DOCUMENT_POSITION_CONTAINED_BY||P&Node.DOCUMENT_POSITION_CONTAINED_BY;return P=p&&x&&T&Node.DOCUMENT_POSITION_FOLLOWING&&P&Node.DOCUMENT_POSITION_PRECEDING,o=p&&o===a||x&&v===a||W||P?Node.DOCUMENT_POSITION_CONTAINED_BY:!p&&o===a||!x&&v===a?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:T,o&Node.DOCUMENT_POSITION_DISCONNECTED||o&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||ZU(o,this._fragmentFiber,f[0],f[f.length-1],a)?o:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function ZU(a,o,f,p,v){var x=Xl(v);if(a&Node.DOCUMENT_POSITION_CONTAINED_BY){if(f=!!x)e:{for(;x!==null;){if(x.tag===7&&(x===o||x.alternate===o)){f=!0;break e}x=x.return}f=!1}return f}if(a&Node.DOCUMENT_POSITION_CONTAINS){if(x===null)return x=v.ownerDocument,v===x||v===x.documentElement||v===x.body;e:{for(x=o,o=y(o);x!==null;){if(!(x.tag!==5&&x.tag!==3&&x.tag!==27||x!==o&&x.alternate!==o)){x=!0;break e}x=x.return}x=!1}return x}return a&Node.DOCUMENT_POSITION_PRECEDING?((o=!!x)&&!(o=x===f)&&(o=L(f,x,R),o===null?o=!1:(g(o,!0,A,x,f),x=C,C=null,o=x!==null)),o):a&Node.DOCUMENT_POSITION_FOLLOWING?((o=!!x)&&!(o=x===p)&&(o=L(p,x,R),o===null?o=!1:(g(o,!0,_,x,p),x=C,E=C=null,o=x!==null)),o):!1}function WA(a,o){var f=a.ownerDocument.createRange();f.selectNodeContents(a),a=f.getBoundingClientRect(),window.scrollTo(window.scrollX+a.left,o?window.scrollY+a.top:window.scrollY+a.bottom-window.innerHeight)}Hi.prototype.scrollIntoView=function(a){if(typeof a=="object")throw Error(r(566));var o=[];g(this._fragmentFiber.child,!1,mx,o,void 0,void 0);var f=a!==!1;if(o.length===0){var p=S(this._fragmentFiber);if(p=f?p[1]||p[0]||y(this._fragmentFiber):p[0]||p[1],p===null)return;if(p.tag===6){a=w(p),WA(a,f);return}if(p=w(p),p.nodeType!==9){if(p.nodeType===11){f="host"in p?p.host:null,f!==null&&f.scrollIntoView(a);return}p.scrollIntoView(a)}}for(p=f?o.length-1:0;p!==(f?-1:o.length);){var v=o[p];v.tag===6?(v=w(v),WA(v,f)):w(v).scrollIntoView(a),p+=f?-1:1}};function QU(a,o){return a=w(a),VA(a,o),!1}function VA(a,o){a.reactFragments==null&&(a.reactFragments=new Set),a.reactFragments.add(o)}function qA(a,o){var f=o._eventListeners;if(f!==null)for(var p=0;p<f.length;p++){var v=f[p];a.addEventListener(v.type,v.attachedListener,sd(v.optionsOrUseCapture))}a.nodeType!==3&&(f=o._observers,f!==null&&f.forEach(function(x){for(var T=0,P=0;P<Pa.length;P++){var W=Pa[P];(W.fragmentInstance!==o||W.observer!==x||W.instance!==a)&&(Pa[T++]=W)}Pa.length=T,x.observe(a)}),VA(a,o))}function $U(a,o){var f=o._eventListeners;if(f!==null)for(var p=0;p<f.length;p++){var v=f[p];a.removeEventListener(v.type,v.attachedListener,sd(v.optionsOrUseCapture))}a.nodeType!==3&&(f=o._observers,f!==null&&f.forEach(function(x){typeof x.rootMargin=="str
9ing"?XU(o,x,a):x.unobserve(a)}),a.reactFragments!=null&&a.reactFragments.delete(o))}function yx(a){var o=a.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var f=o;switch(o=o.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":yx(f),rg(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function eW(a,o,f,p){for(;a.nodeType===1;){var v=f;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!p&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(p){if(!a[Mf])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(x=a.getAttribute("rel"),x==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(x!==v.rel||a.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||a.getAttribute("title")!==(v.title==null?null:v.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(x=a.getAttribute("src"),(x!==(v.src==null?null:v.src)||a.getAttribute("type")!==(v.type==null?null:v.type)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&a.getAttribute("name")===x)return a}else return a;if(a=da(a.nextSibling),a===null)break}return null}function tW(a,o,f){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=da(a.nextSibling),a===null))return null;return a}function GA(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=da(a.nextSibling),a===null))return null;return a}function vx(a){return a.data==="$?"||a.data==="$~"}function bx(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function nW(a,o){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||f.readyState!=="loading")o();else{var p=function(){o(),f.removeEventListener("DOMContentLoaded",p)};f.addEventListener("DOMContentLoaded",p),a._reactRetry=p}}function da(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var xx=null;function YA(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(o===0)return da(a.nextSibling);o--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||o++}a=a.nextSibling}return null}function KA(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(o===0)return a;o--}else f!=="/$"&&f!=="/&"||o++}a=a.previousSibling}return null}function rW(a,o){function f(){p=!0}if(a.ownerDocument.activeElement===a)return!0;var p=!1;try{a.ownerDocument.addEventListener("focus",f,!0),(a.focus||HTMLElement.prototype.focus).call(a,o)}finally{a.ownerDocument.removeEventListener("focus",f,!0)}return p}function iW(a){DA(function(){DA(function(o){return a(o)})})}function XA(a,o,f){switch(o=yh(f),a){case"html":if(a=o.documentElement,!a)throw Error(r(452));return a;case"head":if(a=o.head,!a)throw Error(r(453));return a;case"body":if(a=o.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function JA(a,o,f){for(var p in f){var v=f[p];f.hasOwnProperty(p)&&v!=null&&rn(a,o,p,null,LU,v)}f.dangerouslySetInnerHTML!=null&&(a.textContent=""),a.onclick===ns&&(a.onclick=null),rg(a)}function Sx(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);rg(a)}var fa=new Map,ZA=new Set;function vh(a){if(typeof a.getRootNode=="function"){var o=a.getRootNode();if(o.nodeType===9||o.nodeType===11)return o}return a.nodeType===9?a:a.ownerDocument}var Qs=Se.d;Se.d={f:aW,r:sW,D:oW,C:lW,L:cW,m:uW,X:fW,S:dW,M:hW};function aW(){var a=Qs.f(),o=s0();return a||o}function sW(a){var o=ku(a);o!==null&&o.tag===5&&o.type==="form"?$T(o):Qs.r(a)}var od=typeof document>"u"?null:document;function QA(a,o,f){var p=od;
vendor: 8,099 bytes, line 9
9if(p&&typeof o=="string"&&o){var v=ia(o);v='link[rel="'+a+'"][href="'+v+'"]',typeof f=="string"&&(v+='[crossorigin="'+f+'"]'),ZA.has(v)||(ZA.add(v),a={rel:a,crossOrigin:f,href:o},p.querySelector(v)===null&&(o=p.createElement("link"),Dr(o,"link",a),yr(o),p.head.appendChild(o)))}}function oW(a){Qs.D(a),QA("dns-prefetch",a,null)}function lW(a,o){Qs.C(a,o),QA("preconnect",a,o)}function cW(a,o,f){Qs.L(a,o,f);var p=od;if(p&&a&&o){var v='link[rel="preload"][as="'+ia(o)+'"]';o==="image"&&f&&f.imageSrcSet?(v+='[imagesrcset="'+ia(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(v+='[imagesizes="'+ia(f.imageSizes)+'"]')):v+='[href="'+ia(a)+'"]';var x=v;switch(o){case"style":x=ld(a);break;case"script":x=cd(a)}if(!(fa.has(x)||(a=j({rel:"preload",href:o==="image"&&f&&f.imageSrcSet?void 0:a,as:o},f),fa.set(x,a),p.querySelector(v)!==null||o==="style"&&p.querySelector(bh(x))||o==="script"&&p.querySelector(xh(x))))){var T=p.createElement("link");Dr(T,"link",a),o==="style"&&(T[ng]=!0,T.onload=T.onerror=function(){dE(T)}),yr(T),p.head.appendChild(T)}}}function uW(a,o){Qs.m(a,o);var f=od;if(f&&a){var p=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+ia(p)+'"][href="'+ia(a)+'"]',x=v;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=cd(a)}if(!fa.has(x)&&(a=j({rel:"modulepreload",href:a},o),fa.set(x,a),f.querySelector(v)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(xh(x)))return}p=f.createElement("link"),Dr(p,"link",a),yr(p),f.head.appendChild(p)}}}function dW(a,o,f){Qs.S(a,o,f);var p=od;if(p&&a){var v=Eu(p).hoistableStyles,x=ld(a);o=o||"default";var T=v.get(x);if(!T){var P={loading:0,preload:null};if(T=p.querySelector(bh(x)))P.loading=5;else{a=j({rel:"stylesheet",href:a,"data-precedence":o},f),(f=fa.get(x))&&wx(a,f);var W=T=p.createElement("link");yr(W),Dr(W,"link",a),W._p=new Promise(function(re,ce){W.onload=re,W.onerror=ce}),W.addEventListener("load",function(){P.loading|=1}),W.addEventListener("error",function(){P.loading|=2}),P.loading|=4,h0(T,o,p)}T={type:"stylesheet",instance:T,count:1,state:P},v.set(x,T)}}}function fW(a,o){Qs.X(a,o);var f=od;if(f&&a){var p=Eu(f).hoistableScripts,v=cd(a),x=p.get(v);x||(x=f.querySelector(xh(v)),x||(a=j({src:a,async:!0},o),(o=fa.get(v))&&Cx(a,o),x=f.createElement("script"),yr(x),Dr(x,"link",a),f.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},p.set(v,x))}}function hW(a,o){Qs.M(a,o);var f=od;if(f&&a){var p=Eu(f).hoistableScripts,v=cd(a),x=p.get(v);x||(x=f.querySelector(xh(v)),x||(a=j({src:a,async:!0,type:"module"},o),(o=fa.get(v))&&Cx(a,o),x=f.createElement("script"),yr(x),Dr(x,"link",a),f.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},p.set(v,x))}}function $A(a,o,f,p){var v=(v=ln.current)?vh(v):null;if(!v)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(f=ld(f.href),o=Eu(v).hoistableStyles,p=o.get(f),p||(p={type:"style",instance:null,count:0,state:null},o.set(f,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=ld(f.href);var x=Eu(v).hoistableStyles,T=x.get(a);if(T||(v=v.ownerDocument||v,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(a,T),(x=v.querySelector(bh(a)))?x._p||(T.instance=x,T.state.loading=5):(x=fa.get(a),x||(x={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},fa.set(a,x)),pW(v,a,x,T.state))),o&&p===null)throw Error(r(528,""));return T}if(o&&p!==null)throw Error(r(529,""));return null;case"script":return o=f.async,f=f.src,typeof f=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(f=cd(f),o=Eu(v).hoistableScripts,p=o.get(f),p||(p={type:"script",instance:null,count:0,state:null},o.set(f,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function ld(a){return'href="'+ia(a)+'"'}function bh(a){return'link[rel="stylesheet"]['+a+"]"}function e4(a){return j({},a,{"data-precedence":a.precedence,precedence:null})}function pW(a,o,f,p){if(o=a.querySelector('link[rel="preload"][as="style"]['+o+"]")){if(o[ng]!==!0){p.loading=1;return}}else o=a.createElement("link"),o[ng]=!0,o.onload=o.onerror=dE.bind(null,o),Dr(o,"link",f),yr(o),a.head.appendChild(o);p.preload=o,o.addEventListener("load",function(){return p.loading|=1}),o.addEventListener("error",function(){return p.loading|=2})}function cd(a){return'[src="'+ia(a)+'"]'}function xh(a){return"script[async]"+a}function t4(a,o,f){if(o.count++,o.instance===null)switch(o.type){case"style":var p=a.querySelector('style[data-href~="'+ia(f.href)+'"]');if(p)return o.instance=p,yr(p),p;var v=j({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement("style"),yr(p),Dr(p,"style",v),h0(p,f.precedence,a),o.instance=p;case"stylesheet":v=ld(f.href);var x=a.querySelector(bh(v));if(x)return o.state.loading|=4,o.instance=x,yr(x),x;p=e4(f),(v=fa.get(v))&&wx(p,v),x=(a.ownerDocument||a).createElement("link"),yr(x);var T=x;return T._p=new Promise(function(P,W){T.onload=P,T.onerror=W}),Dr(x,"link",p),o.state.loading|=4,h0(x,f.precedence,a),o.instance=x;case"script":return x=cd(f.src),(v=a.querySelector(xh(x)))?(o.instance=v,yr(v),v):(p=f,(v=fa.get(x))&&(p=j({},f),Cx(p,v)),a=a.ownerDocument||a,v=a.createElement("script"),yr(v),Dr(v,"link",p),a.head.appendChild(v),o.instance=v);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(p=o.instance,o.state.loading|=4,h0(p,f.precedence,a));return o.instance}function h0(a,o,f){for(var p=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=p.length?p[p.length-1]:null,x=v,T=0;T<p.length;T++){var P=p[T];if(P.dataset.precedence===o)x=P;else if(x!==v)break}x?x.parentNode.insertBefore(a,x.nextSibling):(o=f.nodeType===9?f.head:f,o.insertBefore(a,o.firstChild))}function wx(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Cx(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var p0=null;function n4(a,o,f){if(p0===null){var p=new Map,v=p0=new Map;v.set(f,p)}else v=p0,p=v.get(f),p||(p=new Map,v.set(f,p));if(p.has(a))return p;for(p.set(a,null),f=f.getElementsByTagName(a),v=0;v<f.length;v++){var x=f[v];if(!(x[Mf]||x[_r]||a==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var T=x.getAttribute(o)||"";T=a+T;var P=p.get(T);P?P.push(x):p.set(T,[x])}}return p}function Ix(a,o,f){a=a.ownerDocument||a,a.head.insertBefore(f,o==="title"?a.querySelector("head > title"):null)}function mW(a,o,f){if(f===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(a=o.disabled,typeof o.precedence=="string"&&a==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function r4(a,o){return a==="img"&&o.src!=null&&o.src!==""&&o.onLoad==null&&o.loading!=="lazy"}function i4(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function a4(a){return(a.width||100)*(a.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function s4(a,o){typeof o.decode=="function"&&(a.imgCount++,o.complete||(a.imgBytes+=a4(o),a.suspenseyImages.push(o)),a=vW.bind(a),o.decode().then(a,a))}function gW(a,o,f,p){if(f.type==="stylesheet"&&(typeof p.media!="str
9ing"||matchMedia(p.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var v=ld(p.href),x=o.querySelector(bh(v));if(x){o=x._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=Sh.bind(a),o.then(a,a)),f.state.loading|=4,f.instance=x,yr(x);return}x=o.ownerDocument||o,p=e4(p),(v=fa.get(v))&&wx(p,v),x=x.createElement("link"),yr(x);var T=x;T._p=new Promise(function(P,W){T.onload=P,T.onerror=W}),Dr(x,"link",p),f.instance=x}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,o),(o=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=Sh.bind(a),o.addEventListener("load",f),o.addEventListener("error",f))}}var m0=0;function yW(a,o){return a.stylesheets&&a.count===0&&y0(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var p=setTimeout(function(){if(a.stylesheets&&y0(a,a.stylesheets),a.unsuspend){var x=a.unsuspend;a.unsuspend=null,x()}},6e4+o);0<a.imgBytes&&m0===0&&(m0=62500*MU());var v=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&y0(a,a.stylesheets),a.unsuspend)){var x=a.unsuspend;a.unsuspend=null,x()}},(a.imgBytes>m0?50:800)+o);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(v)}}:null}function o4(a){if(a.count===0&&(a.imgCount===0||!a.waitingForImages)){if(a.stylesheets)y0(a,a.stylesheets);else if(a.unsuspend){var o=a.unsuspend;a.unsuspend=null,o()}}}function Sh(){this.count--,o4(this)}function vW(){this.imgCount--,o4(this)}var g0=null;function y0(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,g0=new Map,o.forEach(bW,a),g0=null,Sh.call(a))}function bW(a,o){if(!(o.state.loading&4)){var f=g0.get(a);if(f)var p=f.get(null);else{f=new Map,g0.set(a,f);for(var v=a.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var T=v[x];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(f.set(T.dataset.precedence,T),p=T)}p&&f.set(null,p)}v=o.instance,T=v.getAttribute("data-precedence"),x=f.get(T)||p,x===p&&f.set(null,v),f.set(T,v),this.count++,p=Sh.bind(this),v.addEventListener("load",p),v.addEventListener("error",p),x?x.parentNode.insertBefore(v,x.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(v,a.firstChild)),o.state.loading|=4}}var ud={$$typeof:z,Provider:null,Consumer:null,_currentValue:qe,_currentValue2:qe,_threadCount:0};function xW(a,o,f,p,v,x,T,P,W){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wu(0),this.hiddenUpdates=wu(null),this.identifierPrefix=p,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.transitionTypes=null,this.incompleteTransitions=new Map}function l4(a,o,f,p,v,x,T,P,W,re,ce,pe){return a=new xW(a,o,f,T,W,re,ce,pe,P),o=1,x===!0&&(o|=24),x=xi(3,null,null,o),a.current=x,x.stateNode=a,o=N2(),o.refCount++,a.pooledCache=o,o.refCount++,x.memoizedState={element:p,isDehydrated:f,cache:o},W2(x),a}function c4(a){return a?(a=Pu,a):Pu}function u4(a,o,f,p,v,x){v=c4(v),p.context===null?p.context=v:p.pendingContext=v,p=Po(o),p.payload={element:f},x=x===void 0?null:x,x!==null&&(p.callback=x),f=Fo(a,p,o),f!==null&&(Ii(f,a,o),Qf(f,a,o))}function d4(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function kx(a,o){d4(a,o),(a=a.alternate)&&d4(a,o)}function f4(a){if(a.tag===13||a.tag===31){var o=$l(a,67108864);o!==null&&Ii(o,a,67108864),kx(a,67108864)}}function h4(a){if(a.tag===13||a.tag===31){var o=zi();o=ra(o);var f=$l(a,o);f!==null&&Ii(f,a,o),kx(a,o)}}var dd=!0;function SW(a,o,f,p){var v=xe.T;xe.T=null;var x=Se.p;try{Se.p=2,Ex(a,o,f,p)}finally{Se.p=x,xe.T=v}}function wW(a,o,f,p){var v=xe.T;xe.T=null;var x=Se.p;try{Se.p=8,Ex(a,o,f,p)}finally{Se.p=x,xe.T=v}}function Ex(a,o,f,p){if(dd){var v=Tx(p);if(v===null)ox(a,o,p,v0,f),m4(a,p);else if(IW(v,a,o,f,p))p.stopPropagation();else if(m4(a,p),o&4&&-1<CW.indexOf(a)){for(;v!==null;){var x=ku(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var T=ta(x.pendingLanes);if(T!==0){var P=x;
vendor: 4,102 bytes, line 9
9for(P.pendingLanes|=2,P.entangledLanes|=2;T;){var W=1<<31-ii(T);P.entanglements[1]|=W,T&=~W}fs(x),(Yt&6)===0&&(r0=ve()+500,ph(0))}}break;case 31:case 13:P=$l(x,2),P!==null&&Ii(P,x,2),s0(),kx(x,2)}if(x=Tx(p),x===null&&ox(a,o,p,v0,f),x===v)break;v=x}v!==null&&p.stopPropagation()}else ox(a,o,p,null,f)}}function Tx(a){return a=f2(a),Ax(a)}var v0=null;function Ax(a){if(v0=null,a=Xl(a),a!==null){var o=s(a);if(o===null)a=null;else{var f=o.tag;if(f===13){if(a=l(o),a!==null)return a;a=null}else if(f===31){if(a=u(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return v0=a,null}function p4(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(St()){case lt:return 2;case Rt:return 8;case zn:case Ct:return 32;case Hn:return 268435456;default:return 32}default:return 32}}var _x=!1,Xo=null,Jo=null,Zo=null,wh=new Map,Ch=new Map,Qo=[],CW="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function m4(a,o){switch(a){case"focusin":case"focusout":Xo=null;break;case"dragenter":case"dragleave":Jo=null;break;case"mouseover":case"mouseout":Zo=null;break;case"pointerover":case"pointerout":wh.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ch.delete(o.pointerId)}}function Ih(a,o,f,p,v,x){return a===null||a.nativeEvent!==x?(a={blockedOn:o,domEventName:f,eventSystemFlags:p,nativeEvent:x,targetContainers:[v]},o!==null&&(o=ku(o),o!==null&&f4(o)),a):(a.eventSystemFlags|=p,o=a.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),a)}function IW(a,o,f,p,v){switch(o){case"focusin":return Xo=Ih(Xo,a,o,f,p,v),!0;case"dragenter":return Jo=Ih(Jo,a,o,f,p,v),!0;case"mouseover":return Zo=Ih(Zo,a,o,f,p,v),!0;case"pointerover":var x=v.pointerId;return wh.set(x,Ih(wh.get(x)||null,a,o,f,p,v)),!0;case"gotpointercapture":return x=v.pointerId,Ch.set(x,Ih(Ch.get(x)||null,a,o,f,p,v)),!0}return!1}function g4(a){var o=Xl(a.target);if(o!==null){var f=s(o);if(f!==null){if(o=f.tag,o===13){if(o=l(f),o!==null){a.blockedOn=o,tg(a.priority,function(){h4(f)});return}}else if(o===31){if(o=u(f),o!==null){a.blockedOn=o,tg(a.priority,function(){h4(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function b0(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=Tx(a.nativeEvent);if(f===null){f=a.nativeEvent;var p=new f.constructor(f.type,f);d2=p,f.target.dispatchEvent(p),d2=null}else return o=ku(f),o!==null&&f4(o),a.blockedOn=f,!1;o.shift()}return!0}function y4(a,o,f){b0(a)&&f.delete(o)}function kW(){_x=!1,Xo!==null&&b0(Xo)&&(Xo=null),Jo!==null&&b0(Jo)&&(Jo=null),Zo!==null&&b0(Zo)&&(Zo=null),wh.forEach(y4),Ch.forEac
9h(y4)}function x0(a,o){a.blockedOn===o&&(a.blockedOn=null,_x||(_x=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,kW)))}var S0=null;function v4(a){S0!==a&&(S0=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){S0===a&&(S0=null);for(var o=0;o<a.length;o+=3){var f=a[o],p=a[o+1],v=a[o+2];if(typeof p!="function"){if(Ax(p||f)===null)continue;break}var x=ku(f);x!==null&&(a.splice(o,3),o-=3,ub(x,{pending:!0,data:v,method:f.method,action:p},p,v))}}))}function fd(a){function o(W){return x0(W,a)}Xo!==null&&x0(Xo,a),Jo!==null&&x0(Jo,a),Zo!==null&&x0(Zo,a),wh.forEach(o),Ch.forEach(o);for(var f=0;f<Qo.length;f++){var p=Qo[f];p.blockedOn===a&&(p.blockedOn=null)}for(;0<Qo.length&&(f=Qo[0],f.blockedOn===null);)g4(f),f.blockedOn===null&&Qo.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(p=0;p<f.length;p+=3){var v=f[p],x=f[p+1],T=v[bi]||null;if(typeof x=="function")T||v4(f);else if(T){var P=null;if(x&&x.hasAttribute("formAction")){if(v=x,T=x[bi]||null)P=T.formAction;else if(Ax(v)!==null)continue}else P=T.action;typeof P=="function"?f[p+1]=P:(f.splice(p,3),p-=3),v4(f)}}}function b4(){function a(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(T){return v=T})},focusReset:"manual",scroll:"manual"})}function o(){v!==null&&(v(),v=null),p||setTimeout(f,20)}function f(){if(!p&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,v=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(f,100),function(){p=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),v!==null&&(v(),v=null)}}}function Rx(a){this._internalRoot=a}w0.prototype.render=Rx.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var f=o.current,p=zi();u4(f,p,a,o,null,null)},w0.prototype.unmount=Rx.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;u4(a.current,2,null,a,null,null),s0(),o[Iu]=null}};function w0(a){this._internalRoot=a}w0.prototype.unstable_scheduleHydration=function(a){if(a){var o=eg();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Qo.length&&o!==0&&o<Qo[f].priority;f++);Qo.splice(f,0,a),f===0&&g4(a)}};var x4=t.version;if(x4!=="19.3.0")throw Error(r(527,x4,"19.3.0"));Se.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(o),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var EW={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:xe,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var C0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!C0.isDisabled&&C0.supportsFiber)try{yi=C0.inject(EW),Un=C0}catch{}}return Eh.createRoot=function(a,o){if(!i(a))throw Error(r(299));var f=!1,p="",v=c3,x=u3,T=d3;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(T=o.onRecoverableError)),o=l4(a,1,!1,null,null,f,p,null,v,x,T,b4),a[Iu]=o.current,sx(a),new Rx(o)},Eh.hydrateRoot=function(a,o,f){if(!i(a))throw Error(r(299));var p=!1,v="",x=c3,T=u3,P=d3,W=null;return f!=null&&(f.unstable_strictMode===!0&&(p=!0),f.identifierPrefix!==void 0&&(v=f.identifierPrefix),f.onUncaughtError!==void 0&&(x=f.onUncaughtError),f.onCaughtError!==void 0&&(T=f.onCaughtError),f.onRecoverableError!==void 0&&(P=f.onRecoverableError),f.formState!==void 0&&(W=f.formState)),o=l4(a,1,!0,o,f??null,p,v,W,x,T,P,b4),o.context=c4(null),f=o.current,p=zi(),p=ra(p),v=Po(p),v.callback=null,Fo(f,v,p),f=p,o.current.lanes=f,To(o,f),fs(o),a[Iu]=o.current,sx(a),new w0(o)},Eh.version="19.3.0",Eh}var R4;function MW(){if(R4)return Lx.exports;R4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Lx.exports=DW(),Lx.exports}var PW=MW();var AC=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,hj=/^[\\/]{2}/;function FW(e,t){return t+e.replace(/\\/g,"/")}var j4="popstate";function O4(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function BW(e={}){function t(r,i){let s=i.state?.masked,{pathname:l,search:u,hash:d}=s||r.location;return t1("",{pathname:l,search:u,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:kl(i)}return pj(t,n,null,e)}function NW(e={}){function t(i,s){let{pathname:l="/",search:u="",hash:d=""}=uu(i.location.hash.substring(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),t1("",{pathname:l,search:u,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(i,s){let l=i.document.querySelector("base"),u="";if(l&&l.getAttribute("href")){let d=i.location.href,h=d.indexOf("#");u=h===-1?d:d.slice(0,h)}return u+"#"+(typeof s=="string"?s:kl(s))}function r(i,s){Ki(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(s)})`)}return pj(t,n,r,e)}function Ln(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ki(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zW(){return Math.random().toString(36).substring(2,10)}function L4(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function t1(e,t,n=null,r,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?uu(t):t,state:n,key:t&&t.key||r||zW(),mask:i}}function kl({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function uu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function pj(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,l=i.history,u="POP",d=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function g(){u="POP";let w=m(),C=w==null?null:w-h;h=w,d&&d({action:u,location:I.location,delta:C})}function y(w,C){u="PUSH";let E=O4(w)?w:t1(I.location,w,C);n&&n(E,w),h=m()+1;let A=L4(E,h),_=I.createHref(E.mask||E);try{l.pushState(A,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(_)}s&&d&&d({action:u,location:I.location,delta:1})}
9function b(w,C){u="REPLACE";let E=O4(w)?w:t1(I.location,w,C);n&&n(E,w),h=m();let A=L4(E,h),_=I.createHref(E.mask||E);l.replaceState(A,"",_),s&&d&&d({action:u,location:I.location,delta:0})}function S(w){return HW(i,w)}let I={get action(){return u},get location(){return e(i,l)},listen(w){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(j4,g),d=w,()=>{i.removeEventListener(j4,g),d=null}},createHref(w){return t(i,w)},createURL:S,encodeLocation(w){let C=S(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:b,go(w){return l.go(w)}};return I}function HW(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),Ln(r,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:kl(t);return i=i.replace(/ $/,"%20"),!n&&hj.test(i)&&(i=r+i),new URL(i,r)}function mj(e,t,n="/"){return UW(e,t,n,!1)}function UW(e,t,n,r,i){let s=typeof t=="string"?uu(t):t,l=go(s.pathname||"/",n);if(l==null)return null;let u=WW(e),d=null,h=eV(l);for(let m=0;d==null&&m<u.length;++m)d=$W(u[m],h,r);return d}function WW(e){let t=gj(e);return VW(t),t}function gj(e,t=[],n=[],r="",i=!1){let s=(l,u,d=i,h)=>{let m={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&d)return;Ln(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let g=Va([r,m.relativePath]),y=n.concat(m);l.children&&l.children.length>0&&(Ln(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),gj(l.children,t,y,g,d)),!(l.path==null&&!l.index)&&t.push({path:g,score:ZW(g,l.index),routesMeta:y.map((b,S)=>{let[I,w]=bj(b.relativePath,b.caseSensitive,S===y.length-1);return{...b,matcher:I,compiledParams:w}})})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))s(l,u);else for(let d of yj(l.path))s(l,u,!0,d)}),t}function yj(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let l=yj(r.join("/")),u=[];return u.push(...l.map(d=>d===""?s:[s,d].join("/"))),i&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function VW(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:QW(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var qW=/^:[\w-]+$/,GW=3,YW=2,KW=1,XW=10,JW=-2,D4=e=>e==="*";function ZW(e,t){let n=e.split("/"),r=n.length;return n.some(D4)&&(r+=JW),t&&(r+=YW),n.filter(i=>!D4(i)).reduce((i,s)=>i+(qW.test(s)?GW:s===""?KW:XW),r)}function QW(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function $W(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],h=u===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",g={path:d.relativePath,caseSensitive:d.caseSensitive,end:h},y=d.matcher&&d.compiledParams?vj(g,m,d.matcher,d.compiledParams):n1(g,m),b=d.route;if(!y&&h&&n&&!r[r.length-1].route.index&&(y=n1({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!y)return null;
9Object.assign(i,y.params),l.push({params:i,pathname:Va([s,y.pathname]),pathnameBase:rV(Va([s,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(s=Va([s,y.pathnameBase]))}return l}function n1(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bj(e.path,e.caseSensitive,e.end);return vj(e,t,n,r)}function vj(e,t,n,r){let i=t.match(n);if(!i)return null;let s=i[0],l=Vd(s,1),u=i.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:g},y)=>{if(m==="*"){let S=u[y]||"";l=Vd(s.slice(0,s.length-S.length),1)}const b=u[y];return g&&!b?h[m]=void 0:h[m]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:l,pattern:e}}function bj(e,t=!1,n=!0){Ki(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d,h,m)=>{if(r.push({paramName:u,isOptional:d!=null}),d){let g=m.charAt(h+l.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function eV(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ki(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function go(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function tV(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?uu(e):e,s;return n?(n=xj(n),n.startsWith("/")||n.startsWith("\\")?s=M4(n.substring(1),"/"):s=M4(n,t)):s=t,{pathname:s,search:iV(r),hash:aV(i)}}function M4(e,t){let n=Vd(t).split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Fx(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nV(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _C(e){let t=nV(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function q1(e,t,n,r=!1){let i;typeof e=="string"?i=uu(e):(i={...e},Ln(!i.pathname||!i.pathname.includes("?"),Fx("?","pathname","search",i)),Ln(!i.pathname||!i.pathname.includes("#"),Fx("#","pathname","hash",i)),Ln(!i.search||!i.search.includes("#"),Fx("#","search","hash",i)));let s=e===""||i.pathname==="",l=s?"/":i.pathname,u;if(l==null)u=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),g-=1;i.pathname=y.join("/")}u=g>=0?t[g]:"/"}let d=tV(i,u),h=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var xj=e=>e.replace(/[\\/]{2,}/g,"/"),Va=e=>xj(e.join("/"));function Vd(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var rV=e=>Vd(e).replace(/^\/*/,"/"),iV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,sV=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function oV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function lV(e){let t=e.map(n=>n.route.path).filter(Boolean);return Va(t)||"/"}var Sj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function wj(e,t){let n=e;
9if(typeof n!="string"||!AC.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Sj)try{let s=new URL(window.location.href),l=hj.test(n)?new URL(FW(n,s.protocol)):new URL(n),u=go(l.pathname,t);l.origin===s.origin&&u!=null?n=u+l.search+l.hash:i=!0}catch{Ki(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var P4=new URL("http://localhost");function RC(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),P4)}catch{return P4}}function Bx(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function cV(e,t){if(e.startsWith("//"))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===""||e.slice(n.length).startsWith("//"):!1}function jC(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let s=new URL(t,n),l=i!=null&&!Bx(i,n),u=!Bx(s,n);if(r==="reject"){if(l||u)throw new Error("External navigation is not allowed")}else if(u&&(i==null||!cV(e,i)||!Bx(i,s)))throw new Error("External navigation is not allowed")}var Cj=["POST","PUT","PATCH","DELETE"];new Set(Cj);var uV=["GET",...Cj];new Set(uV);var dV=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function fV(e){try{return dV.includes(new URL(e).protocol)}catch{return!1}}var hf=k.createContext(null);hf.displayName="DataRouter";var G1=k.createContext(null);G1.displayName="DataRouterState";var Ij=k.createContext(!1);function hV(){return k.useContext(Ij)}var kj=k.createContext({isTransitioning:!1});kj.displayName="ViewTransition";var pV=k.createContext(new Map);pV.displayName="Fetchers";var mV=k.createContext(null);mV.displayName="Await";var Qi=k.createContext(null);Qi.displayName="Navigation";var tm=k.createContext(null);tm.displayName="Location";var Qa=k.createContext({outlet:null,matches:[],isDataRoute:!1});Qa.displayName="Route";var OC=k.createContext(null);OC.displayName="RouteError";var Ej="REACT_ROUTER_ERROR",gV="REDIRECT",yV="ROUTE_ERROR_RESPONSE";function vV(e){if(e.startsWith(`${Ej}:${gV}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function bV(e){if(e.startsWith(`${Ej}:${yV}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new sV(t.status,t.statusText,t.data)}catch{}}function xV(e,{relative:t}={}){Ln(pf(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(Qi),{hash:i,pathname:s,search:l}=rm(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:Va([n,s])),r.createHref({pathname:u,search:l,hash:i})}function pf(){return k.useContext(tm)!=null}function Pt(){return Ln(pf(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(tm).location}var Tj="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Aj(e){k.useContext(Qi).static||k.useLayoutEffect(e)}function Y1(){let{isDataRoute:e}=k.useContext(Qa);return e?LV():SV()}function SV(){Ln(pf(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(hf),{basename:t,navigator:n}=k.useContext(Qi),{matches:r}=k.useContext(Qa),{pathname:i}=Pt(),s=JSON.stringify(_C(r)),l=k.useRef(!1);return Aj(()=>{l.current=!0}),k.useCallback((d,h={})=>
9{if(Ki(l.current,Tj),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=q1(d,JSON.parse(s),i,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Va([t,m.pathname])),jC(typeof d=="string"?d:kl(d),n.createHref(m),RC(n),"reject"),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,s,i,e])}k.createContext(null);function nm(){let{matches:e}=k.useContext(Qa);return e[e.length-1]?.params??{}}function rm(e,{relative:t}={}){let{matches:n}=k.useContext(Qa),{pathname:r}=Pt(),i=JSON.stringify(_C(n));return k.useMemo(()=>q1(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function wV(e,t){return _j(e,t)}function _j(e,t,n){Ln(pf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=k.useContext(Qi),{matches:i}=k.useContext(Qa),s=i[i.length-1],l=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",h=s&&s.route;{let w=h&&h.path||"";jj(u,!h||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 10 11Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let m=Pt(),g;if(t){let w=typeof t=="string"?uu(t):t;Ln(d==="/"||w.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${w.pathname}" was given in the \`location\` prop.`),g=w}else g=m;let y=g.pathname||"/",b=y;if(d!=="/"){let w=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=n&&n.state.matches.length?n.state.matches.map(w=>Object.assign(w,{route:n.manifest[w.route.id]||w.route})):mj(e,{pathname:b});Ki(h||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Ki(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let I=TV(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Va([d,r.encodeLocation?r.encodeLocation(w.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:Va([d,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),i,n);return t&&I?k.createElement(tm.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},I):I}function CV(){let e=OV(),t=oV(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=k.createElement(k.Fragment,null,k.createElement("p",null,"ð¿ Hey developer ð"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:s},"ErrorBoundary")," or"," ",k.createElement("code",{style:s},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,l)}var IV=k.createElement(CV,null),Rj=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=bV(e.digest);n&&(e=n)}let t=e!==void 0?k.createElement(Qa.Provider,{value:this.props.routeContext},k.createElement(OC.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(kV,{error:e},t):t}};Rj.contextType=Ij;var Nx=new WeakMap;function kV({children:e,error:t}){let{basename:n,navigator:r}=k.useContext(Qi);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=vV(t.digest);if(i){let s=Nx.get(t);if(s)throw s;let l=wj(i.location,n),u=l.absoluteURL||l.to;if(jC(i.location,u,RC(r),"allow-explicit"),fV(u))throw new Error("Invalid redirect location");if(Sj&&!Nx.get(t))if(l.isExternal||i.reloadDocument)window.location.href=u;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:i.replace}));throw Nx.set(t,d),d}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u}`})}}return e}function EV({routeContext:e,match:t,children:n}){let r=k.useContext(hf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(Qa.Provider,{value:e},n)}function TV(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=r?.errors;if(s!=null){let m=i.findIndex(g=>g.route.id&&s?.[g.route.id]!==void 0);Ln(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,m+1))}let l=!1,u=-1;if(n&&r){l=r.renderFallback;for(let m=0;m<i.length;m++){let g=i[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(u=m),g.route.id){let{loaderData:y,errors:b}
11=r,S=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||S){n.isStatic&&(l=!0),u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}}let d=n?.onError,h=r&&d?(m,g)=>{d(m,{location:r.location,params:r.matches?.[0]?.params??{},pattern:lV(r.matches),errorInfo:g})}:void 0;return i.reduceRight((m,g,y)=>{let b,S=!1,I=null,w=null;r&&(b=s&&g.route.id?s[g.route.id]:void 0,I=g.route.errorElement||IV,l&&(u<0&&y===0?(jj("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):u===y&&(S=!0,w=g.route.hydrateFallbackElement||null)));let C=t.concat(i.slice(0,y+1)),E=()=>{let A;return b?A=I:S?A=w:g.route.Component?A=k.createElement(g.route.Component,null):g.route.element?A=g.route.element:A=m,k.createElement(EV,{match:g,routeContext:{outlet:m,matches:C,isDataRoute:r!=null},children:A})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?k.createElement(Rj,{location:r.location,revalidation:r.revalidation,component:I,error:b,children:E(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:h}):E()},null)}function LC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AV(e){let t=k.useContext(hf);return Ln(t,LC(e)),t}function _V(e){let t=k.useContext(G1);return Ln(t,LC(e)),t}function RV(e){let t=k.useContext(Qa);return Ln(t,LC(e)),t}function DC(e){let t=RV(e),n=t.matches[t.matches.length-1];return Ln(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function jV(){return DC("useRouteId")}function OV(){let e=k.useContext(OC),t=_V("useRouteError"),n=DC("useRouteError");return e!==void 0?e:t.errors?.[n]}function LV(){let{router:e}=AV("useNavigate"),t=DC("useNavigate"),n=k.useRef(!1);return Aj(()=>{n.current=!0}),k.useCallback(async(i,s={})=>{Ki(n.current,Tj),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var F4={};function jj(e,t,n){!t&&!F4[e]&&(F4[e]=!0,Ki(!1,n))}k.memo(DV);function DV({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:s}){return _j(e,void 0,{manifest:t,state:r,isStatic:i,onError:s})}function Oj({to:e,replace:t,state:n,relative:r}){Ln(pf(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i,navigator:s}=k.useContext(Qi);Ki(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=k.useContext(Qa),{pathname:u}=Pt(),d=Y1(),h=q1(e,_C(l),u,r==="path");jC(typeof e=="string"?e:kl(e),s.createHref(h),RC(s),"reject");let m=JSON.stringify(h);return k.useEffect(()=>{d(JSON.parse(m),{replace:t,state:n,relative:r})},[d,m,r,t,n]),null}function Vn(e){Ln(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Lj({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,useTransitions:l}){Ln(!pf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=k.useMemo(()=>({basename:u,navigator:i,static:s,useTransitions:l,future:{}}),[u,i,s,l]);typeof n=="string"&&(n=uu(n));let{pathname:h="/",search:m="",hash:g="",state:y=null,key:b="default",mask:S}=n,I=k.useMemo(()=>{let w=go(h,u);return w==null?null:{location:{pathname:w,search:m,hash:g,state:y,key:b,mask:S},navigationType:r}},[u,h,m,g,y,b,r,S]);return Ki(I!=null,`<Router basename="${u}"> is not able to match the URL "${h}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),I==null?null:k.createElement(Qi.Provider,{value:d},k.createElement(tm.Provider,{children:t,value:I}))}function MV({children:e,location:t}){return wV(Ow(e),t)}function Ow(e,t=[]){let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let s=[...t,i];if(r.type===k.Fragment){n.push.apply(n,Ow(r.props.children,s));return}Ln(r.type===Vn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ln(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,
11shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ow(r.props.children,s)),n.push(l)}),n}var Cy="get",Iy="application/x-www-form-urlencoded";function K1(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function PV(e){return K1(e)&&e.tagName.toLowerCase()==="button"}function FV(e){return K1(e)&&e.tagName.toLowerCase()==="form"}function BV(e){return K1(e)&&e.tagName.toLowerCase()==="input"}function NV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zV(e,t){return e.button===0&&(!t||t==="_self")&&!NV(e)}function Lw(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function HV(e,t){let n=Lw(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}var I0=null;function UV(){if(I0===null)try{new FormData(document.createElement("form"),0),I0=!1}catch{I0=!0}return I0}var WV=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zx(e){return e!=null&&!WV.has(e)?(Ki(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Iy}"`),null):e}function VV(e,t){let n,r,i,s,l;if(FV(e)){let u=e.getAttribute("action");r=u?go(u,t):null,n=e.getAttribute("method")||Cy,i=zx(e.getAttribute("enctype"))||Iy,s=new FormData(e)}else if(PV(e)||BV(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?go(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Cy,i=zx(e.getAttribute("formenctype"))||zx(u.getAttribute("enctype"))||Iy,s=new FormData(u,e),!UV()){let{name:h,type:m,value:g}=e;if(m==="image"){let y=h?`${h}.`:"";s.append(`${y}x`,"0"),s.append(`${y}y`,"0")}else h&&s.append(h,g)}}else{if(K1(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Cy,r=null,i=Iy,l=e}return s&&i==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function MC(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dj(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&go(i.pathname,t)==="/"?i.pathname=`${Vd(t)}/_root.${r}`:i.pathname=`${Vd(i.pathname)}.${r}`,i}async function qV(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function GV(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function YV(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let l=await qV(s,n);return l.links?l.links():[]}return[]}));return ZV(r.flat(1).filter(GV).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function B4(e,t,n,r,i,s){let l=(d,h)=>n[h]?d.route.id!==n[h].route.id:!0,u=(d,h)=>n[h].pathname!==d.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,h)=>l(d,h)||u(d,h)):s==="data"?t.filter((d,h)=>{let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(l(d,h)||u(d,h))return!0;if(d.route.shouldRevalidate){let g=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function KV(e,t,{includeHydrateFallback:n}={}){return XV(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function XV(e){return[...new Set(e)]}function JV(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function ZV(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(JV(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function PC(){let e=k.useContext(hf);return MC(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function QV(){let e=k.useContext(G1);return MC(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var FC=k.createContext(void 0);FC.displayName="FrameworkContext";function X1(){let e=k.useContext(FC);return MC(e,"You must render this element inside a <HydratedRouter> element"),e}function $V(e,t){let n=k.useContext(FC),[r,i]=k.useState(!1),[s,l]=k.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:h,onMouseLeave:m,onTouchStart:g}=t,y=k.useRef(null);k.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let I=C=>
11{C.forEach(E=>{l(E.isIntersecting)})},w=new IntersectionObserver(I,{threshold:.5});return y.current&&w.observe(y.current),()=>{w.disconnect()}}},[e]),k.useEffect(()=>{if(r){let I=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(I)}}},[r]);let b=()=>{i(!0)},S=()=>{i(!1),l(!1)};return n?e!=="intent"?[s,y,{}]:[s,y,{onFocus:Th(u,b),onBlur:Th(d,S),onMouseEnter:Th(h,b),onMouseLeave:Th(m,S),onTouchStart:Th(g,b)}]:[!1,y,{}]}function Th(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function eq({page:e,...t}){let n=hV(),{nonce:r}=X1(),{router:i}=PC(),s=k.useMemo(()=>mj(i.routes,e,i.basename),[i.routes,e,i.basename]);return s?(t.nonce==null&&r&&(t={...t,nonce:r}),n?k.createElement(nq,{page:e,matches:s,...t}):k.createElement(rq,{page:e,matches:s,...t})):null}function tq(e){let{manifest:t,routeModules:n}=X1(),[r,i]=k.useState([]);return k.useEffect(()=>{let s=!1;return YV(e,t,n).then(l=>{s||i(l)}),()=>{s=!0}},[e,t,n]),r}function nq({page:e,matches:t,...n}){let r=Pt(),{future:i}=X1(),{basename:s}=PC(),l=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let u=Dj(e,s,i.v8_trailingSlashAwareDataRequests,"rsc"),d=!1,h=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?d=!0:h.push(m.route.id);return d&&h.length>0&&u.searchParams.set("_routes",h.join(",")),[u.pathname+u.search]},[s,i.v8_trailingSlashAwareDataRequests,e,r,t]);return k.createElement(k.Fragment,null,l.map(u=>k.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...n})))}function rq({page:e,matches:t,...n}){let r=Pt(),{future:i,manifest:s,routeModules:l}=X1(),{basename:u}=PC(),{loaderData:d,matches:h}=QV(),m=k.useMemo(()=>B4(e,t,h,s,r,"data"),[e,t,h,s,r]),g=k.useMemo(()=>B4(e,t,h,s,r,"assets"),[e,t,h,s,r]),y=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let I=new Set,w=!1;if(t.forEach(E=>{let A=s.routes[E.route.id];!A||!A.hasLoader||(!m.some(_=>_.route.id===E.route.id)&&E.route.id in d&&l[E.route.id]?.shouldRevalidate||A.hasClientLoader?w=!0:I.add(E.route.id))}),I.size===0)return[];let C=Dj(e,u,i.v8_trailingSlashAwareDataRequests,"data");return w&&I.size>0&&C.searchParams.set("_routes",t.filter(E=>I.has(E.route.id)).map(E=>E.route.id).join(",")),[C.pathname+C.search]},[u,i.v8_trailingSlashAwareDataRequests,d,r,s,m,t,e,l]),b=k.useMemo(()=>KV(g,s),[g,s]),S=tq(g);return k.createElement(k.Fragment,null,y.map(I=>k.createElement("link",{key:I,rel:"prefetch",as:"fetch",href:I,...n})),b.map(I=>k.createElement("link",{key:I,rel:"modulepreload",href:I,...n})),S.map(({key:I,link:w})=>k.createElement("link",{key:I,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function iq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var aq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{aq&&(window.__reactRouterVersion="7.18.4")}catch{}function sq({basename:e,children:t,useTransitions:n,window:r}){let i=k.useRef();i.current==null&&(i.current=BW({window:r,v5Compat:!0}));let s=i.current,[l,u]=k.useState({action:s.action,location:s.location}),d=k.useCallback(h=>{n===!1?u(h):k.startTransition(()=>u(h))},[n]);return k.useLayoutEffect(()=>s.listen(d),[s,d]),k.createElement(Lj,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,useTransitions:n})}function oq({basename:e,children:t,useTransitions:n,window:r}){let i=k.useRef();i.current==null&&(i.current=NW({window:r,v5Compat:!0}));let s=i.current,[l,u]=k.useState({action:s.action,location:s.location}),d=k.useCallback(h=>{n===!1?u(h):k.startTransition(()=>u(h))},[n]);return k.useLayoutEffect(()=>s.listen(d),[s,d]),k.createElement(Lj,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,useTransitions:n})}var qd=k.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:l,mask:u,state:d,target:h,to:m,preventScrollReset:g,viewTransition:y,defaultShouldRevalidate:b,...S},I){let{basename:w,navigator:C,useTransitions:E}=k.useContext(Qi),A=typeof m=="string"&&AC.test(m),_=wj(m,w);m=_.to;let R=xV(m,{relative:i}),L=Pt(),j=null;if(u){let z=q1(u,[],L.mask?L.mask.pathname:"/",!0);w!=="/"&&(z.pathname=z.pathname==="/"?w:Va([w,z.pathname])),j=C.createHref(z)}let[O,F,D]=$V(r,S),H=dq(m,{replace:l,mask:u,state:d,target:h,preventScrollReset:g,relative:i,viewTransition:y,defaultShouldRevalidate:b,useTransitions:E});function V(z){t&&t(z),z.defaultPrevented||H(z)}let Y=!(_.isExternal||s),K=k.createElement("a",{...S,...D,href:(Y?j:void 0)||_.absoluteURL||R,onClick:Y?V:t,ref:iq(I,F),target:h,"data-discover":!A&&n==="render"?"true":void 0});return O&&!A?k.createElement(k.Fragment,null,K,k.createElement(eq,{page:R})):K});qd.displayName="Link";var lq=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:l,viewTransition:u,children:d,...h},m){let g=rm(l,{relative:h.relative}),y=Pt(),b=k.useContext(G1),{navigator:S,basename:I}=k.useContext(Qi),w=b!=null&&yq(g)&&u===!0,C=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,E=y.pathname,A=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(E=E.toLowerCase(),A=A?A.toLowerCase():null,C=C.toLowerCase()),A&&I&&(A=go(A,I)||A);const _=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let R=E===C||!i&&E.startsWith(C)&&E.charAt(_)==="/",L=A!=null&&(A===C||!i&&A.startsWith(C)&&A.charAt(C.length)==="/"),j={isActive:R,isPending:L,isTransitioning:w},O=R?t:void 0,F;typeof r=="function"?F=r(j):F=[r,R?"active":null,L?"pending":null,w?"transitioning":null].filter(
11Boolean).join(" ");let D=typeof s=="function"?s(j):s;return k.createElement(qd,{...h,"aria-current":O,className:F,ref:m,style:D,to:l,viewTransition:u},typeof d=="function"?d(j):d)});lq.displayName="NavLink";var cq=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:l=Cy,action:u,onSubmit:d,relative:h,preventScrollReset:m,viewTransition:g,defaultShouldRevalidate:y,...b},S)=>{let{useTransitions:I}=k.useContext(Qi),w=mq(),C=gq(u,{relative:h}),E=l.toLowerCase()==="get"?"get":"post",A=typeof u=="string"&&AC.test(u),_=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let L=R.nativeEvent.submitter,j=L?.getAttribute("formmethod")||l,O=()=>w(L||R.currentTarget,{fetcherKey:t,method:j,navigate:n,replace:i,state:s,relative:h,preventScrollReset:m,viewTransition:g,defaultShouldRevalidate:y});I&&n!==!1?k.startTransition(()=>O()):O()};return k.createElement("form",{ref:S,method:E,action:C,onSubmit:r?d:_,...b,"data-discover":!A&&e==="render"?"true":void 0})});cq.displayName="Form";function uq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mj(e){let t=k.useContext(hf);return Ln(t,uq(e)),t}function dq(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:s,relative:l,viewTransition:u,defaultShouldRevalidate:d,useTransitions:h}={}){let m=Y1(),g=Pt(),y=rm(e,{relative:l});return k.useCallback(b=>{if(zV(b,t)){b.preventDefault();let S=n!==void 0?n:kl(g)===kl(y),I=()=>m(e,{replace:S,mask:r,state:i,preventScrollReset:s,relative:l,viewTransition:u,defaultShouldRevalidate:d});h?k.startTransition(()=>I()):I()}},[g,m,y,n,r,i,t,e,s,l,u,d,h])}function fq(e){Ki(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=k.useRef(Lw(e)),n=k.useRef(!1),r=Pt(),i=k.useMemo(()=>HV(r.search,n.current?null:t.current),[r.search]),s=Y1(),l=k.useCallback((u,d)=>{const h=Lw(typeof u=="function"?u(new URLSearchParams(i)):u);n.current=!0,s("?"+h,d)},[s,i]);return[i,l]}var hq=0,pq=()=>`__${String(++hq)}__`;function mq(){let{router:e}=Mj("useSubmit"),{basename:t}=k.useContext(Qi),n=jV(),r=e.fetch,i=e.navigate;return k.useCallback(async(s,l={})=>{let{action:u,method:d,encType:h,formData:m,body:g}=VV(s,t);if(l.navigate===!1){let y=l.fetcherKey||pq();await r(y,n,l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:g,formMethod:l.method||d,formEncType:l.encType||h,flushSync:l.flushSync})}else await i(l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:g,formMethod:l.method||d,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,i,t,n])}function gq(e,{relative:t}={}){let{basename:n}=k.useContext(Qi),r=k.useContext(Qa);Ln(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...rm(e||".",{relative:t})},l=Pt();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(g=>g).forEach(g=>u.append("index",g));let m=u.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Va([n,s.pathname])),kl(s)}function yq(e,{relative:t}={}){let n=k.useContext(kj);Ln(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Mj("useViewTransitionState"),i=rm(e,{relative:t});if(!n.isTransitioning)return!1;let s=go(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=go(n.nextLocation.pathname,r)||n.nextLocation.pathname;return n1(i.pathname,l)!=null||n1(i.pathname,s)!=null}var J1=fj();const Pj=ff(J1),vq=()=>{};var N4={};const Fj=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},bq=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=e[n++];t[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){const s=e[n++],l=e[n++],u=e[n++],d=((i&7)<<18|(s&63)<<12|(l&63)<<6|u&63)-65536;t[r++]=String.fromCharCode(55296+(d>>10)),t[r++]=String.fromCharCode(56320+(d&1023))}else{const s=e[n++],l=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|l&63)}}return t.join("")},Bj={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const s=e[i],l=i+1<e.length,u=l?e[i+1]:0,d=i+2<e.length,h=d?e[i+2]:0,m=s>>2,g=(s&3)<<4|u>>4;let y=(u&15)<<2|h>>6,b=h&63;d||(b=64,l||(y=64)),r.push(n[m],n[g],n[y],n[b])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Fj(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):bq(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const s=n[e.charAt(i++)],u=i<e.length?n[e.charAt(i)]:0;++i;const h=i<e.length?n[e.charAt(i)]:64;++i;const g=i<e.length?n[e.charAt(i)]:64;if(++i,s==null||u==null||h==null||g==null)throw new xq;const y=s<<2|u>>4;if(r.push(y),h!==64){const b=u<<4&240|h>>2;if(r.push(b),g!==64){const S=h<<6&192|g;r.push(S)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
11class xq extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Sq=function(e){const t=Fj(e);return Bj.encodeByteArray(t,!0)},Nj=function(e){return Sq(e).replace(/\./g,"")},zj=function(e){try{return Bj.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function wq(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const Cq=()=>wq().__FIREBASE_DEFAULTS__,Iq=()=>{if(typeof process>"u"||typeof N4>"u")return;const e=N4.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},kq=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&zj(e[1]);return t&&JSON.parse(t)},BC=()=>{try{return vq()||Cq()||Iq()||kq()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Eq=e=>BC()?.emulatorHosts?.[e],Hj=()=>BC()?.config,Uj=e=>BC()?.[`_${e}`];class Wj{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function mi(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Tq(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(mi())}function Aq(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function _q(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function Rq(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function jq(){const e=mi();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function Oq(){try{return typeof indexedDB=="object"}catch{return!1}}function Lq(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{t(i.error?.message||"")}}catch(n){t(n)}})}function cAe(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const Dq="FirebaseError";class Dl extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Dq,Object.setPrototypeOf(this,Dl.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,im.prototype.create)}}class im{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,s=this.errors[t],l=s?Mq(s,r):"Error",u=`${this.serviceName}: ${l} (${i}).`;return new Dl(i,u,r)}}function Mq(e,t){try{let n=0,r="";for(;n<e.length;){const i=e.indexOf("{$",n);if(i===-1){r+=e.substring(n);break}const s=e.indexOf("}",i+2);if(s===-1){r+=e.substring(n);break}const l=e.substring(i+2,s),u=t[l];r+=e.substring(n,i)+(u!=null?String(u):`<${l}?>`),n=s+1}return r}catch{return e}}function Pq(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Gd(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const s=e[i],l=t[i];if(z4(s)&&z4(l)){if(!Gd(s,l))return!1}else if(s!==l)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function z4(e){return e!==null&&typeof e=="object"}function mf(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(i=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function Yh(e){const t={};return e.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[i,s]=r.split("=");
11t[decodeURIComponent(i)]=decodeURIComponent(s)}}),t}function Kh(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function Fq(e,t){const n=new Bq(e,t);return n.subscribe.bind(n)}class Bq{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let i;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Nq(t,["next","error","complete"])?i=t:i={next:t,error:n,complete:r},i.next===void 0&&(i.next=Hx),i.error===void 0&&(i.error=Hx),i.complete===void 0&&(i.complete=Hx);const s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),s}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,t)}sendOne(t,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Nq(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function Hx(){}const zq=1e3,Hq=2,Uq=14400*1e3,Wq=.5;function uAe(e,t=zq,n=Hq){const r=t*Math.pow(n,e),i=Math.round(Wq*r*(Math.random()-.5)*2);return Math.min(Uq,r+i)}function mn(e){return e&&e._delegate?e._delegate:e}function NC(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function Vq(e){return(await fetch(e,{credentials:"include"})).ok}class Yd{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}const Ec="[DEFAULT]";class qq{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new Wj;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){const n=this.normalizeInstanceIdentifier(t?.identifier),r=t?.optional??!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(Yq(t))try{this.getOrInitializeService({instanceIdentifier:Ec})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch{}}}}clearInstance(t=Ec){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Ec){return this.instances.has(t)}getOptions(t=Ec){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,l]of this.instancesDeferred.entries()){const u=this.normalizeInstanceIdentifier(s);r===u&&l.resolve(i)}return i}onInit(t,n){const r=this.normalizeInstanceIdentifier(n),i=this.onInitCallbacks.get(r)??new Set;i.add(t),this.onInitCallbacks.set(r,i);const s=this.instances.get(r);return s&&t(s,r),()=>{i.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Gq(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Ec){return this.component?this.component.multipleInstances?t:Ec:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Gq(e){return e===Ec?void 0:e}function Yq(e){return e.instantiationMode==="EAGER"}class Kq{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new qq(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}var fn;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
11RROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(fn||(fn={}));const Xq={debug:fn.DEBUG,verbose:fn.VERBOSE,info:fn.INFO,warn:fn.WARN,error:fn.ERROR,silent:fn.SILENT},Jq=fn.INFO,Zq={[fn.DEBUG]:"log",[fn.VERBOSE]:"log",[fn.INFO]:"info",[fn.WARN]:"warn",[fn.ERROR]:"error"},Qq=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=Zq[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class Vj{constructor(t){this.name=t,this._logLevel=Jq,this._logHandler=Qq,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in fn))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?Xq[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,fn.DEBUG,...t),this._logHandler(this,fn.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,fn.VERBOSE,...t),this._logHandler(this,fn.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,fn.INFO,...t),this._logHandler(this,fn.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,fn.WARN,...t),this._logHandler(this,fn.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,fn.ERROR,...t),this._logHandler(this,fn.ERROR,...t)}}const $q=(e,t)=>t.some(n=>e instanceof n);let H4,U4;function eG(){return H4||(H4=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tG(){return U4||(U4=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const qj=new WeakMap,Dw=new WeakMap,Gj=new WeakMap,Ux=new WeakMap,zC=new WeakMap;function nG(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",s),e.removeEventListener("error",l)},s=()=>{n(bl(e.result)),i()},l=()=>{r(e.error),i()};e.addEventListener("success",s),e.addEventListener("error",l)});return t.then(n=>{n instanceof IDBCursor&&qj.set(n,e)}).catch(()=>{}),zC.set(t,e),t}function rG(e){if(Dw.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",l),e.removeEventListener("abort",l)},s=()=>{n(),i()},l=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",s),e.addEventListener("error",l),e.addEventListener("abort",l)});Dw.set(e,t)}let Mw={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Dw.get(e);if(t==="objectStoreNames")return e.objectStoreNames||Gj.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return bl(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function iG(e){Mw=e(Mw)}function aG(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Wx(this),t,...n);return Gj.set(r,t.sort?t.sort():[t]),bl(r)}:tG().includes(e)?function(...t){return e.apply(Wx(this),t),bl(qj.get(this))}:function(...t){return bl(e.apply(Wx(this),t))}}function sG(e){return typeof e=="function"?aG(e):(e instanceof IDBTransaction&&rG(e),$q(e,eG())?new Proxy(e,Mw):e)}function bl(e){if(e instanceof IDBRequest)return nG(e);if(Ux.has(e))return Ux.get(e);const t=sG(e);return t!==e&&(Ux.set(e,t),zC.set(t,e)),t}const Wx=e=>zC.get(e);function oG(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const l=indexedDB.open(e,t),u=bl(l);return r&&l.addEventListener("upgradeneeded",d=>{r(bl(l.result),d.oldVersion,d.newVersion,bl(l.transaction),d)}),n&&l.addEventListener("blocked",d=>n(d.oldVersion,d.newVersion,d)),u.then(d=>{s&&d.addEventListener("close",()=>s()),i&&d.addEventListener("versionchange",h=>i(h.oldVersion,h.newVersion,h))}).catch(()=>{}),u}const lG=["get","getKey","getAll","getAllKeys","count"],cG=["put","add","delete","clear"],Vx=new Map;function W4(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Vx.get(t))return Vx.get(t);
11const n=t.replace(/FromIndex$/,""),r=t!==n,i=cG.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||lG.includes(n)))return;const s=async function(l,...u){const d=this.transaction(l,i?"readwrite":"readonly");let h=d.store;return r&&(h=h.index(u.shift())),(await Promise.all([h[n](...u),i&&d.done]))[0]};return Vx.set(t,s),s}iG(e=>({...e,get:(t,n,r)=>W4(t,n)||e.get(t,n,r),has:(t,n)=>!!W4(t,n)||e.has(t,n)}));class uG{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(dG(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function dG(e){return e.getComponent()?.type==="VERSION"}const Pw="@firebase/app",V4="0.16.2";const yo=new Vj("@firebase/app"),fG="@firebase/app-compat",hG="@firebase/analytics-compat",pG="@firebase/analytics",mG="@firebase/app-check-compat",gG="@firebase/app-check",yG="@firebase/auth",vG="@firebase/auth-compat",bG="@firebase/database",xG="@firebase/data-connect",SG="@firebase/database-compat",wG="@firebase/functions",CG="@firebase/functions-compat",IG="@firebase/installations",kG="@firebase/installations-compat",EG="@firebase/messaging",TG="@firebase/messaging-compat",AG="@firebase/performance",_G="@firebase/performance-compat",RG="@firebase/remote-config",jG="@firebase/remote-config-compat",OG="@firebase/storage",LG="@firebase/storage-compat",DG="@firebase/firestore",MG="@firebase/ai",PG="@firebase/firestore-compat",FG="firebase",BG="12.19.0";const Fw="[DEFAULT]",NG={[Pw]:"fire-core",[fG]:"fire-core-compat",[pG]:"fire-analytics",[hG]:"fire-analytics-compat",[gG]:"fire-app-check",[mG]:"fire-app-check-compat",[yG]:"fire-auth",[vG]:"fire-auth-compat",[bG]:"fire-rtdb",[xG]:"fire-data-connect",[SG]:"fire-rtdb-compat",[wG]:"fire-fn",[CG]:"fire-fn-compat",[IG]:"fire-iid",[kG]:"fire-iid-compat",[EG]:"fire-fcm",[TG]:"fire-fcm-compat",[AG]:"fire-perf",[_G]:"fire-perf-compat",[RG]:"fire-rc",[jG]:"fire-rc-compat",[OG]:"fire-gcs",[LG]:"fire-g
11cs-compat",[DG]:"fire-fst",[PG]:"fire-fst-compat",[MG]:"fire-vertex","fire-js":"fire-js",[FG]:"fire-js-all"};const r1=new Map,zG=new Map,Bw=new Map;function q4(e,t){try{e.container.addComponent(t)}catch(n){yo.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function vp(e){const t=e.name;if(Bw.has(t))return yo.debug(`There were multiple attempts to register component ${t}.`),!1;Bw.set(t,e);for(const n of r1.values())q4(n,e);for(const n of zG.values())q4(n,e);return!0}function Yj(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Ir(e){return e==null?!1:e.settings!==void 0}const HG={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different {$mismatchedParam}. Existing: '{$oldValue}'. New: '{$newValue}'.","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
11d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},so=new im("app","Firebase",HG);class UG{constructor(t,n,r){this._isDeleted=!1,this._options={...t},this._config={...n},this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Yd("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw so.create("app-deleted",{appName:this._name})}}const am=BG;function Kj(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r={name:Fw,automaticDataCollectionEnabled:!0,...t},i=r.name;if(typeof i!="string"||!i)throw so.create("bad-app-name",{appName:String(i)});if(n||(n=Hj()),!n)throw so.create("no-options");const s=r1.get(i);if(s)if(Gd(n,s.options)){if(Gd(r,s.config))return s;throw so.create("duplicate-app",{appName:i,mismatchedParam:"config",oldValue:JSON.stringify(s.config),newValue:JSON.stringify(r)})}else throw so.create("duplicate-app",{appName:i,mismatchedParam:"options",oldValue:JSON.stringify(s.options),newValue:JSON.stringify(n)});const l=new Kq(i);for(const d of Bw.values())l.addComponent(d);const u=new UG(n,r,l);return r1.set(i,u),u}function WG(e=Fw){const t=r1.get(e);if(!t&&e===Fw&&Hj())return Kj();if(!t)throw so.create("no-app",{appName:e});return t}function Ld(e,t,n){let r=NG[e]??e;n&&(r+=`-${n}`);const i=r.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const l=[`Unable to register library "${r}" with version "${t}":`];i&&l.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&s&&l.push("and"),s&&l.push(`version name "${t}" contains illegal characters (whitespace or "/")`),yo.warn(l.join(" "));return}vp(new Yd(`${r}-version`,()=>({library:r,version:t}),"VERSION"))}const VG="firebase-heartbeat-database",qG=1,bp="firebase-heartbeat-store";let qx=null;function Xj(){return qx||(qx=oG(VG,qG,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(bp)}catch(n){console.warn(n)}}}}).catch(e=>{throw so.create("idb-open",{originalErrorMessage:e.message})})),qx}async function GG(e){try{const n=(await Xj()).transaction(bp),r=await n.objectStore(bp).get(Jj(e));return await n.done,r}catch(t){if(t instanceof Dl)yo.warn(t.message);else{const n=so.create("idb-get",{originalErrorMessage:t?.message});yo.warn(n.message)}}}async function G4(e,t){try{const r=(await Xj()).transaction(bp,"readwrite");await r.objectStore(bp).put(t,Jj(e)),await r.done}catch(n){if(n instanceof Dl)yo.warn(n.message);else{const r=so.create("idb-set",{originalErrorMessage:n?.message});yo.warn(r.message)}}}function Jj(e){return`${e.name}!${e.options.appId}`}const YG=1024,KG=30;class XG{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new ZG(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=Y4();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>KG){const i=QG(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(i,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(t){yo.warn(t)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const t=Y4(),{heartbeatsToSend:n,unsentEntries:r}=JG(this._heartbeatsCache.heartbeats),i=Nj(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(t){return yo.warn(t),""}}}function Y4(){return new Date().toISOString().substring(0,10)}function JG(e,t=YG){const n=[];let r=e.slice();for(const i of e){const s=n.find(l=>l.agent===i.agent);if(s){if(s.dates.push(i.date),K4(n)>t){s.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),K4(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class ZG{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Oq()?Lq().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await GG(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){if(await this._canUseIndexedDBPromise){const r=await this.read();return G4(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){if(await this._canUseIndexedDBPromise){const r=await this.read();return G4(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...t.heartbeats]})}else return}}function K4(e){return Nj(JSON.stringify({version:2,heartbeats:e})).length}function QG(e){if(e.length===0)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}function $G(e){vp(new Yd("platform-logger",t=>new uG(t),"PRIVATE")),vp(new Yd("heartbeat",t=>new XG(t),"PRIVATE")),Ld(Pw,V4,e),Ld(Pw,V4,"esm2020"),Ld("fire-js","")}$G("");function Zj(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const eY=Zj,Qj=new im("auth","Firebase",Zj());const i1=new Vj("@firebase/auth");function ky(e,...t){i1.logLevel<=fn.WARN&&i1.warn(`Auth (${am}): ${e}`,...t)}function Ey(e,...t){i1.logLevel<=fn.ERROR&&i1.error(`Auth (${am}): ${e}`,...t)}function ka(e,...t){throw HC(e,...t)}function Ri(e,...t){return HC(e,...t)}function Z1(e,t,n){const r={...eY(),[t]:n};
11return new im("auth","Firebase",r).create(t,{appName:e.name})}function hi(e){return Z1(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Q1(e,t,n){const r=n;if(!(t instanceof r))throw r.name!==t.constructor.name&&ka(e,"argument-error"),Z1(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function HC(e,...t){if(typeof e!="string"){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return Qj.create(e,...t)}function Me(e,t,...n){if(!e)throw HC(t,...n)}function oo(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Ey(t),new Error(t)}function vo(e,t){e||oo(t)}function xp(){return typeof self<"u"&&self.location?.href||""}function UC(){return X4()==="http:"||X4()==="https:"}function X4(){return typeof self<"u"&&self.location?.protocol||null}function tY(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(UC()||_q()||"connection"in navigator)?navigator.onLine:!0}function nY(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}class sm{constructor(t,n){this.shortDelay=t,this.longDelay=n,vo(n>t,"Short delay should be less than long delay!"),this.isMobile=Tq()||Rq()}get(){return tY()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function WC(e,t){vo(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}class $j{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;oo("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;oo("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;oo("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const rY={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
11aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};const iY=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],aY=new sm(3e4,6e4);function fr(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function hr(e,t,n,r,i={}){return eO(e,i,async()=>{let s={},l={};r&&(t==="GET"?l=r:s={body:JSON.stringify(r)});const u=mf({...l,key:e.config.apiKey}).slice(1),d=await e._getAdditionalHeaders();d["Content-Type"]="application/json",e.languageCode&&(d["X-Firebase-Locale"]=e.languageCode);const h={method:t,headers:d,...s};return Aq()||(h.referrerPolicy="strict-origin-when-cross-origin"),e.emulatorConfig&&NC(e.emulatorConfig.host)&&(h.credentials="include"),$j.fetch()(await tO(e,e.config.apiHost,n,u),h)})}async function eO(e,t,n){e._canInitEmulator=!1;const r={...rY,...t};try{const i=new oY(e),s=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const l=await s.json();if("needConfirmation"in l)throw Xh(e,"account-exists-with-different-credential",l);if(s.ok&&!("errorMessage"in l))return l;{const u=s.ok?l.errorMessage:l.error.message,[d,h]=u.split(" : ");if(d==="FEDERATED_USER_ID_ALREADY_LINKED")throw Xh(e,"credential-already-in-use",l);if(d==="EMAIL_EXISTS")throw Xh(e,"email-already-in-use",l);if(d==="USER_DISABLED")throw Xh(e,"user-disabled",l);const m=r[d]||d.toLowerCase().replace(/[_\s]+/g,"-");if(h)throw Z1(e,m,h);ka(e,m)}}catch(i){if(i instanceof Dl)throw i;ka(e,"network-request-failed",{message:String(i)})}}async function Io(e,t,n,r,i={}){const s=await hr(e,t,n,r,i);return"mfaPendingCredential"in s&&ka(e,"multi-factor-auth-required",{_serverResponse:s}),s}async function tO(e,t,n,r){const i=`${t}${n}?${r}`,s=e,l=s.config.emulator?WC(e.config,i):`${e.config.apiScheme}://${i}`;return iY.includes(n)&&(await s._persistenceManagerAvailable,s._getPersistenceType()==="COOKIE")?s._getPersistence()._getFinalTarget(l).toString():l}function sY(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class oY{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Ri(this.auth,"network-request-failed")),aY.get())})}}function Xh(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=Ri(e,t,r);return i.customData._tokenResponse=n,i}function J4(e){return e!==void 0&&e.getResponse!==void 0}function Z4(e){return e!==void 0&&e.enterprise!==void 0}class nO{constructor(t){if(this.siteKey="",this.recaptchaEnforcementState=[],t.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=t.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=t.recaptchaEnforcementState}getProviderEnforcementState(t){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===t)return sY(n.enforcementState);return null}isProviderEnabled(t){return this.getProviderEnforcementState(t)==="ENFORCE"||this.getProviderEnforcementState(t)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function lY(e){return(await hr(e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}async function rO(e,t){return hr(e,"GET","/v2/recaptchaConfig",fr(e,t))}async function cY(e,t){return hr(e,"POST","/v1/accounts:delete",t)}async function uY(e,t){return hr(e,"POST","/v1/accounts:update",t)}async function a1(e,t){return hr(e,"POST","/v1/accounts:lookup",t)}function tp(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function dY(e,t=!1){const n=mn(e),r=await n.getIdToken(t),i=$1(r);Me(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s=typeof i.firebase=="object"?i.firebase:void 0,l=s?.sign_in_provider;return{claims:i,token:r,authTime:tp(Gx(i.auth_time)),issuedAtTime:tp(Gx(i.iat)),expirationTime:tp(Gx(i.exp)),signInProvider:l||null,signInSecondFactor:s?.sign_in_second_factor||null}}function Gx(e){return Number(e)*1e3}function $1(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return Ey("JWT malformed, contained fewer than 3 sections"),null;try{const i=zj(n);return i?JSON.parse(i):(Ey("Failed to decode base64 JWT payload"),null)}catch(i){return Ey("Caught error parsing JWT payload as JSON",i?.toString()),null}}function Q4(e){const t=$1(e);return Me(t,"internal-error"),Me(typeof t.exp<"u","internal-error"),Me(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}async function Yc(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof Dl&&fY(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function fY({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}class hY{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){if(t){const n=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),n}else{this.errorBackoff=3e4;const r=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,r)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){t?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class Nw{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=tp(this.lastLoginAt),this.creationTime=tp(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Sp(e){const t=e.auth,n=await e.getIdToken(),r=await Yc(e,a1(t,{idToken:n}));Me(r?.users.length,t,"internal-error");const i=r.users[0];e._notifyReloadListener(i);
11const s=i.providerUserInfo?.length?iO(i.providerUserInfo):[],l=mY(e.providerData,s),u=e.isAnonymous,d=!(e.email&&i.passwordHash)&&!l?.length,h=u?d:!1,m={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:l,metadata:new Nw(i.createdAt,i.lastLoginAt),isAnonymous:h};Object.assign(e,m)}async function pY(e){const t=mn(e);await Sp(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function mY(e,t){return[...e.filter(r=>!t.some(i=>i.providerId===r.providerId)),...t]}function iO(e){return e.map(({providerId:t,...n})=>({providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}))}async function gY(e,t){const n=await eO(e,{},async()=>{const r=mf({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:i,apiKey:s}=e.config,l=await tO(e,i,"/v1/token",`key=${s}`),u=await e._getAdditionalHeaders();u["Content-Type"]="application/x-www-form-urlencoded";const d={method:"POST",headers:u,body:r};return e.emulatorConfig&&NC(e.emulatorConfig.host)&&(d.credentials="include"),$j.fetch()(l,d)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function yY(e,t){return hr(e,"POST","/v2/accounts:revokeToken",fr(e,t))}class Dd{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){Me(t.idToken,"internal-error"),Me(typeof t.idToken<"u","internal-error"),Me(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):Q4(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){Me(t.length!==0,"internal-error");const n=Q4(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Me(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:i,expiresIn:s}=await gY(t,n);this.updateTokensAndExpiration(r,i,Number(s))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:i,expirationTime:s}=n,l=new Dd;return r&&(Me(typeof r=="string","internal-error",{appName:t}),l.refreshToken=r),i&&(Me(typeof i=="string","internal-error",{appName:t}),l.accessToken=i),s&&(Me(typeof s=="number","internal-error",{appName:t}),l.expirationTime=s),l}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new Dd,this.toJSON())}_performRefresh(){return oo("not implemented")}}function el(e,t){Me(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class Wa{constructor({uid:t,auth:n,stsTokenManager:r,...i}){this.providerId="firebase",this.proactiveRefresh=new hY(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Nw(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(t){const n=await Yc(this,this.stsTokenManager.getToken(this.auth,t));return Me(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return dY(this,t)}reload(){return pY(this)}_assign(t){this!==t&&(Me(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>({...n})),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new Wa({...this,auth:t,stsTokenManager:this.stsTokenManager._clone()});return n.metadata._copy(this.metadata),n}_onReload(t){Me(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await Sp(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Ir(this.auth.app))return Promise.reject(hi(this.auth));const t=await this.getIdToken();return await Yc(this,cY(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
11nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>({...t})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){const r=n.displayName??void 0,i=n.email??void 0,s=n.phoneNumber??void 0,l=n.photoURL??void 0,u=n.tenantId??void 0,d=n._redirectEventId??void 0,h=n.createdAt??void 0,m=n.lastLoginAt??void 0,{uid:g,emailVerified:y,isAnonymous:b,providerData:S,stsTokenManager:I}=n;Me(g&&I,t,"internal-error");const w=Dd.fromJSON(this.name,I);Me(typeof g=="string",t,"internal-error"),el(r,t.name),el(i,t.name),Me(typeof y=="boolean",t,"internal-error"),Me(typeof b=="boolean",t,"internal-error"),el(s,t.name),el(l,t.name),el(u,t.name),el(d,t.name),el(h,t.name),el(m,t.name);const C=new Wa({uid:g,auth:t,email:i,emailVerified:y,displayName:r,isAnonymous:b,photoURL:l,phoneNumber:s,tenantId:u,stsTokenManager:w,createdAt:h,lastLoginAt:m});return S&&Array.isArray(S)&&(C.providerData=S.map(E=>({...E}))),d&&(C._redirectEventId=d),C}static async _fromIdTokenResponse(t,n,r=!1){const i=new Dd;i.updateFromServerResponse(n);const s=new Wa({uid:n.localId,auth:t,stsTokenManager:i,isAnonymous:r});return await Sp(s),s}static async _fromGetAccountInfoResponse(t,n,r){const i=n.users[0];Me(i.localId!==void 0,"internal-error");const s=i.providerUserInfo!==void 0?iO(i.providerUserInfo):[],l=!(i.email&&i.passwordHash)&&!s?.length,u=new Dd;u.updateFromIdToken(r);const d=new Wa({uid:i.localId,auth:t,stsTokenManager:u,isAnonymous:l}),h={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:s,metadata:new Nw(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!s?.length};return Object.assign(d,h),d}}const $4=new Map;function lo(e){vo(e instanceof Function,"Expected a class definition");let t=$4.get(e);return t?(vo(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,$4.set(e,t),t)}class aO{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}aO.type="NONE";const e_=aO;function Ty(e,t,n){return`firebase:${e}:${t}:${n}`}class Bc{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:i,name:s}=this.auth;this.fullUserKey=Ty(this.userKey,i.apiKey,s),this.fullPersistenceKey=Ty("persistence",i.apiKey,s),this.boundEventHandler=n._onStorageEvent.bind(n);try{this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}catch{}}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);if(!t)return null;if(typeof t=="string"){const n=await a1(this.auth,{idToken:t}).catch(()=>{});return n?Wa._fromGetAccountInfoResponse(this.auth,n,t):null}return Wa._fromJSON(this.auth,t)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){try{this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}catch{}}static async create(t,n,r="authUser"){if(!n.length)return new Bc(lo(e_),t,r);const i=(await Promise.all(n.map(async h=>{try{if(await h._isAvailable())return h}catch{return}}))).filter(h=>h);let s=i[0]||lo(e_);const l=Ty(r,t.config.apiKey,t.name);let u=null;for(const h of n)try{const m=await h._get(l);if(m){let g;if(typeof m=="string"){const y=await a1(t,{idToken:m}).catch(()=>{});if(!y)break;g=await Wa._fromGetAccountInfoResponse(t,y,m)}else g=Wa._fromJSON(t,m);h!==s&&(u=g),s=h;break}}catch{}const d=i.filter(h=>h._shouldAllowMigration);return!s._shouldAllowMigration||!d.length?new Bc(s,t,r):(s=d[0],u&&await s._set(l,u.toJSON()),await Promise.all(n.map(async h=>{if(h!==s)try{await h._remove(l)}catch{}})),new Bc(s,t,r))}}function t_(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(cO(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(sO(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(dO(t))return"Blackberry";if(fO(t))return"Webos";if(oO(t))return"Safari";if((t.includes("chrome/")||lO(t))&&!t.includes("edge/"))return"Chrome";if(uO(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if(r?.length===2)return r[1]}return"Other"}function sO(e=mi()){return/firefox\//i.test(e)}function oO(e=mi()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function lO(e=mi()){return/crios\//i.test(e)}function cO(e=mi()){return/iemobile/i.test(e)}function uO(e=mi()){return/android/i.test(e)}function dO(e=mi()){return/blackberry/i.test(e)}function fO(e=mi()){return/webos/i.test(e)}function VC(e=mi()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function vY(e=mi()){return VC(e)&&!!window.navigator?.standalone}function bY(){return jq()&&document.documentMode===10}function hO(e=mi()){return VC(e)||uO(e)||fO(e)||dO(e)||/windows phone/i.test(e)||cO(e)}function pO(e,t=[]){let n;switch(e){case"Browser":n=t_(mi());break;case"Worker":n=`${t_(mi())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${am}/${r}`}class xY{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=s=>new Promise((l,u)=>{try{const d=t(s);l(d)}catch(d){u(d)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const i of n)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}}async function SY(e,t={}){return hr(e,"GET","/v2/passwordPolicy",fr(e,t))}const wY=6;class CY{constructor(t){const n=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=n.minPasswordLength??wY,n.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=n.maxPasswordLength),n.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=n.containsLowercaseCharacter),n.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=n.containsUppercaseCharacter),n.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=n.containsNumericCharacter),n.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=n.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=t.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=t.forceUpgradeOnSignin??!1,this.schemaVersion=t.schemaVersion}validatePassword(t){const n={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,n),this.validatePasswordCharacterOptions(t,n),n.isValid&&
11(n.isValid=n.meetsMinPasswordLength??!0),n.isValid&&(n.isValid=n.meetsMaxPasswordLength??!0),n.isValid&&(n.isValid=n.containsLowercaseLetter??!0),n.isValid&&(n.isValid=n.containsUppercaseLetter??!0),n.isValid&&(n.isValid=n.containsNumericCharacter??!0),n.isValid&&(n.isValid=n.containsNonAlphanumericCharacter??!0),n}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),i&&(n.meetsMaxPasswordLength=t.length<=i)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let i=0;i<t.length;i++)r=t.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,i,s){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=s))}}class IY{constructor(t,n,r,i){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new n_(this),this.idTokenSubscription=new n_(this),this.beforeStateQueue=new xY(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Qj,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(s=>this._resolvePersistenceManagerAvailable=s)}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=lo(n)),this._initializationPromise=this.queue(async()=>{if(!this._deleted){try{this.persistenceManager=await Bc.create(this,t)}catch(r){ky(`Failed to initialize persistence: ${r}`),this.persistenceManager=await Bc.create(this,[])}finally{this._resolvePersistenceManagerAvailable?.()}if(!this._deleted){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}try{await this.initializeCurrentUser(n)}catch(r){ky(`Failed to initialize current user: ${r}`),await this.directlySetCurrentUser(null).catch(()=>{})}this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await a1(this,{idToken:t}),r=await Wa._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){if(Ir(this.app)){const s=this.app.settings.authIdToken;return s?new Promise(l=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(l,l))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=this.redirectUser?._redirectEventId,l=r?._redirectEventId,u=await this.tryRedirectSignIn(t);(!s||s===l)&&u?.user&&(r=u.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);
11if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(s){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return Me(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await Sp(t)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=nY()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Ir(this.app))return Promise.reject(hi(this));const n=t?mn(t):null;return n&&Me(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&Me(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Ir(this.app)?Promise.reject(hi(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Ir(this.app)?Promise.reject(hi(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(lo(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await SY(this),n=new CY(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(t){this._errorFactory=new im("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await yY(this,r)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&lo(t)||this._popupRedirectResolver;Me(n,this,"argument-error"),this.redirectPersistenceManager=await Bc.create(this,[lo(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===t?this._currentUser:this.redirectUser?._redirectEventId===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const t=this.currentUser?.uid??null;this.lastNotifiedUid!==t&&(this.lastNotifiedUid=t,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,i){if(this._deleted)return()=>{};const s=typeof n=="function"?n:n.next.bind(n);let l=!1;const u=this._isInitialized?Promise.resolve():this._initializationPromise;if(Me(u,this,"internal-error"),u.then(()=>{l||s(this.currentUser)}).catch(d=>{if(!l)if(typeof n!="function"&&n.error)n.error(d);else if(r)r(d);else throw d}),typeof n=="function"){const d=t.addObserver(n,r,i);return()=>{l=!0,d()}}else{const d=t.addObserver(n);return()=>{l=!0,d()}}}async directlySetCurrentUser(t){if(this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,this.persistenceManager)try{t?await this.persistenceManager.setCurrentUser(t):await this.persistenceManager.removeCurrentUser()}catch(n){const r=n?.message||String(n),i=Z1(this,"internal-error",`An internal AuthError has occurred: ${r}`);throw i.customData={originalError:n},i}}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return Me(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=pO(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){if(Ir(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return t?.error&&ky(`Error while retrieving App Check token: ${t.error}`),t?.token}}function Er(e){return mn(e)}class n_{constructor(t){this.auth=t,this.observer=null,this.addObserver=Fq(n=>this.observer=n)}get next(){return Me(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let om={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function kY(e){om=e}function qC(e){return om.loadJS(e)}function EY(){return om.recaptchaV2Script}function TY(){return om.recaptchaEnterpriseScript}function AY(){return om.gapiScript}function mO(e){return`__${e}${Math.floor(Math.random()*1e6)}`}const _Y=500,RY=6e4,k0=1e12;class jY{constructor(t){this.auth=t,this.counter=k0,this._widgets=new Map}render(t,n){const r=this.counter;return this._widgets.set(r,new DY(t,this.auth.name,n||{})),this.counter++,r}reset(t){const n=t||k0;this._widgets.get(n)?.delete(),this._widgets.delete(n)}getResponse(t){const n=t||k0;return this._widgets.get(n)?.getResponse()||""}async execute(t){const n=t||k0;return this._widgets.get(n)?.execute(),""}}class OY{constructor(){this.enterprise=new LY}ready(t){t()}execute(t,n){return Promise.resolve("token")}render(t,n){return""}}class LY{ready(t){t()}execute(t,n){return Promise.resolve("token")}render(t,n){return""}}class DY{constructor(t,n,r){this.params=r,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const i=typeof t=="string"?document.getElementById(t):t;Me(i,"argument-error",{appName:n}),this.container=i,this.isVisible=this.params.size!=="invisible",this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=MY(50);const{callback:t,"expired-callback":n}=this.params;if(t)try{t(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,n)try{n()}catch{}this.isVisible&&this.execute()},RY)},_Y))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}function MY(e){const t=[],n="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let r=0;r<e;r++)t.push(n.charAt(Math.floor(Math.random()*n.length)));return t.join("")}const PY="recaptcha-enterprise",np="NO_RECAPTCHA",r_="onFirebaseAuthREInstanceReady";class ro{constructor(t){this.type=PY,this.auth=Er(t)}
11async verify(t="verify",n=!1){async function r(s){if(!n){if(s.tenantId==null&&s._agentRecaptchaConfig!=null)return s._agentRecaptchaConfig.siteKey;if(s.tenantId!=null&&s._tenantRecaptchaConfigs[s.tenantId]!==void 0)return s._tenantRecaptchaConfigs[s.tenantId].siteKey}return new Promise(async(l,u)=>{rO(s,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(d=>{if(d.recaptchaKey===void 0)u(new Error("recaptcha Enterprise site key undefined"));else{const h=new nO(d);return s.tenantId==null?s._agentRecaptchaConfig=h:s._tenantRecaptchaConfigs[s.tenantId]=h,l(h.siteKey)}}).catch(d=>{u(d)})})}function i(s,l,u){const d=window.grecaptcha;Z4(d)?d.enterprise.ready(()=>{d.enterprise.execute(s,{action:t}).then(h=>{l(h)}).catch(()=>{l(np)})}):u(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new OY().execute("siteKey",{action:"verify"}):new Promise((s,l)=>{r(this.auth).then(async u=>{if(!n&&Z4(window.grecaptcha)&&ro.scriptInjectionDeferred)await ro.scriptInjectionDeferred.promise,i(u,s,l);else{if(typeof window>"u"){l(new Error("RecaptchaVerifier is only supported in browser"));return}let d=TY();d.length!==0&&(d+=u+`&onload=${r_}`),ro.scriptInjectionDeferred=new Wj,window[r_]=()=>{ro.scriptInjectionDeferred?.resolve()},qC(d).then(()=>ro.scriptInjectionDeferred?.promise).then(()=>{i(u,s,l)}).catch(h=>{l(h)})}}).catch(u=>{l(u)})})}}ro.scriptInjectionDeferred=null;async function Ah(e,t,n,r=!1,i=!1){const s=new ro(e);let l;if(i)l=np;else try{l=await s.verify(n)}catch{l=await s.verify(n,!0)}const u={...t};if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in u){const d=u.phoneEnrollmentInfo.phoneNumber,h=u.phoneEnrollmentInfo.recaptchaToken;Object.assign(u,{phoneEnrollmentInfo:{phoneNumber:d,recaptchaToken:h,captchaResponse:l,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in u){const d=u.phoneSignInInfo.recaptchaToken;Object.assign(u,{phoneSignInInfo:{recaptchaToken:d,captchaResponse:l,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return u}return r?Object.assign(u,{captchaResp:l}):Object.assign(u,{captchaResponse:l}),Object.assign(u,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(u,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),u}async function xl(e,t,n,r,i){if(i==="EMAIL_PASSWORD_PROVIDER")if(e._getRecaptchaConfig()?.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const s=await Ah(e,t,n,n==="getOobCode");return r(e,s)}else return r(e,t).catch(async s=>{if(s.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const l=await Ah(e,t,n,n==="getOobCode");return r(e,l)}else return Promise.reject(s)});else if(i==="PHONE_PROVIDER")if(e._getRecaptchaConfig()?.isProviderEnabled("PHONE_PROVIDER")){const s=await Ah(e,t,n);return r(e,s).catch(async l=>{if(e._getRecaptchaConfig()?.getProviderEnforcementState("PHONE_PROVIDER")==="AUDIT"&&(l.code==="auth/missing-recaptcha-token"||l.code==="auth/invalid-app-credential")){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${n} flow.`);const u=await Ah(e,t,n,!1,!0);return r(e,u)}return Promise.reject(l)})}else{const s=await Ah(e,t,n,!1,!0);return r(e,s)}else return Promise.reject(i+" provider is not supported.")}async function FY(e){const t=Er(e),n=await rO(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new nO(n);t.tenantId==null?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()&&new ro(t).verify()}function gO(e,t){const n=Yj(e,"auth");if(n.isInitialized()){const i=n.getImmediate(),s=n.getOptions();if(Gd(s,t??{}))return i;ka(i,"already-initialized")}return n.initialize({options:t})}function BY(e,t){const n=t?.persistence||[],r=(Array.isArray(n)?n:[n]).map(lo);t?.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t?.popupRedirectResolver)}function NY(e,t,n){const r=Er(e);
11Me(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!1,s=yO(t),{host:l,port:u}=zY(t),d=u===null?"":`:${u}`,h={url:`${s}//${l}${d}/`},m=Object.freeze({host:l,port:u,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator){Me(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),Me(Gd(h,r.config.emulator)&&Gd(m,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=h,r.emulatorConfig=m,r.settings.appVerificationDisabledForTesting=!0,NC(l)?Vq(`${s}//${l}${d}`):HY()}function yO(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function zY(e){const t=yO(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const s=i[1];return{host:s,port:i_(r.substr(s.length+1))}}else{const[s,l]=r.split(":");return{host:s,port:i_(l)}}}function i_(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function HY(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}class ev{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return oo("not implemented")}_getIdTokenResponse(t){return oo("not implemented")}_linkToIdToken(t,n){return oo("not implemented")}_getReauthenticationResolver(t){return oo("not implemented")}}async function UY(e,t){return hr(e,"POST","/v1/accounts:resetPassword",fr(e,t))}async function WY(e,t){return hr(e,"POST","/v1/accounts:update",t)}async function VY(e,t){return hr(e,"POST","/v1/accounts:signUp",t)}async function qY(e,t){return hr(e,"POST","/v1/accounts:update",fr(e,t))}async function GY(e,t){return Io(e,"POST","/v1/accounts:signInWithPassword",fr(e,t))}async function tv(e,t){return hr(e,"POST","/v1/accounts:sendOobCode",fr(e,t))}async function YY(e,t){return tv(e,t)}async function KY(e,t){return tv(e,t)}async function XY(e,t){return tv(e,t)}async function JY(e,t){return tv(e,t)}async function ZY(e,t){return Io(e,"POST","/v1/accounts:signInWithEmailLink",fr(e,t))}async function QY(e,t){return Io(e,"POST","/v1/accounts:signInWithEmailLink",fr(e,t))}class wp extends ev{constructor(t,n,r,i=null){super("password",r),this._email=t,this._password=n,this._tenantId=i}static _fromEmailAndPassword(t,n){return new wp(t,n,"password")}static _fromEmailAndCode(t,n,r=null){return new wp(t,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t;if(n?.email&&n?.password){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(t){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return xl(t,n,"signInWithPassword",GY,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return ZY(t,{email:this._email,oobCode:this._password});default:ka(t,"internal-error")}}async _linkToIdToken(t,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return xl(t,r,"signUpPassword",VY,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return QY(t,{idToken:n,email:this._email,oobCode:this._password});default:ka(t,"internal-error")}}_getReauthenticationResolver(t){return this._getIdTokenResponse(t)}}async function Md(e,t){return Io(e,"POST","/v1/accounts:signInWithIdp",fr(e,t))}const $Y="http://localhost";class bo extends ev{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new bo(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pen
11dingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):ka("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:i,...s}=n;if(!r||!i)return null;const l=new bo(r,i);return l.idToken=s.idToken||void 0,l.accessToken=s.accessToken||void 0,l.secret=s.secret,l.nonce=s.nonce,l.pendingToken=s.pendingToken||null,l}_getIdTokenResponse(t){const n=this.buildRequest();return Md(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,Md(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,Md(t,n)}buildRequest(){const t={requestUri:$Y,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=mf(n)}return t}}async function a_(e,t){return hr(e,"POST","/v1/accounts:sendVerificationCode",fr(e,t))}async function eK(e,t){return Io(e,"POST","/v1/accounts:signInWithPhoneNumber",fr(e,t))}async function tK(e,t){const n=await Io(e,"POST","/v1/accounts:signInWithPhoneNumber",fr(e,t));if(n.temporaryProof)throw Xh(e,"account-exists-with-different-credential",n);return n}const nK={USER_NOT_FOUND:"user-not-found"};async function rK(e,t){const n={...t,operation:"REAUTH"};return Io(e,"POST","/v1/accounts:signInWithPhoneNumber",fr(e,n),nK)}class rp extends ev{constructor(t){super("phone","phone"),this.params=t}static _fromVerification(t,n){return new rp({verificationId:t,verificationCode:n})}static _fromTokenResponse(t,n){return new rp({phoneNumber:t,temporaryProof:n})}_getIdTokenResponse(t){return eK(t,this._makeVerificationRequest())}_linkToIdToken(t,n){return tK(t,{idToken:n,...this._makeVerificationRequest()})}_getReauthenticationResolver(t){return rK(t,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:t,phoneNumber:n,verificationId:r,verificationCode:i}=this.params;return t&&n?{temporaryProof:t,phoneNumber:n}:{sessionInfo:r,code:i}}toJSON(){const t={providerId:this.providerId};return this.params.phoneNumber&&(t.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(t.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(t.verificationCode=this.params.verificationCode),this.params.verificationId&&(t.verificationId=this.params.verificationId),t}static fromJSON(t){typeof t=="string"&&(t=JSON.parse(t));const{verificationId:n,verificationCode:r,phoneNumber:i,temporaryProof:s}=t;return!r&&!n&&!i&&!s?null:new rp({verificationId:n,verificationCode:r,phoneNumber:i,temporaryProof:s})}}function iK(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function aK(e){const t=Yh(Kh(e)).link,n=t?Yh(Kh(t)).deep_link_id:null,r=Yh(Kh(e)).deep_link_id;return(r?Yh(Kh(r)).link:null)||r||n||t||e}class nv{constructor(t){const n=Yh(Kh(t)),r=n.apiKey??null,i=n.oobCode??null,s=iK(n.mode??null);Me(r&&i&&s,"argument-error"),this.apiKey=r,this.operation=s,this.code=i,this.continueUrl=n.continueUrl??null,this.languageCode=n.lang??null,this.tenantId=n.tenantId??null}static parseLink(t){const n=aK(t);try{return new nv(n)}catch{return null}}}class du{constructor(){this.providerId=du.PROVIDER_ID}static credential(t,n){return wp._fromEmailAndPassword(t,n)}static credentialWithLink(t,n){const r=nv.parseLink(n);return Me(r,"argument-error"),wp._fromEmailAndCode(t,r.code,r.tenantId)}}du.PROVIDER_ID="password";du.EMAIL_PASSWORD_SIGN_IN_METHOD="password";du.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class gf{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}class yf extends gf{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}class ip extends yf{static credentialFromJSON(t){const n=typeof t=="string"?JSON.parse(t):t;return Me("providerId"in n&&"signInMethod"in n,"argument-error"),bo._fromParams(n)}credential(t){return this._credential({...t,nonce:t.rawNonce})}_credential(t){return Me(t.idToken||t.accessToken,"argument-error"),bo._fromParams({...t,providerId:this.providerId,sign
11InMethod:this.providerId})}static credentialFromResult(t){return ip.oauthCredentialFromTaggedObject(t)}static credentialFromError(t){return ip.oauthCredentialFromTaggedObject(t.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:i,pendingToken:s,nonce:l,providerId:u}=t;if(!r&&!i&&!n&&!s||!u)return null;try{return new ip(u)._credential({idToken:n,accessToken:r,nonce:l,pendingToken:s})}catch{return null}}}class dl extends yf{constructor(){super("facebook.com")}static credential(t){return bo._fromParams({providerId:dl.PROVIDER_ID,signInMethod:dl.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return dl.credentialFromTaggedObject(t)}static credentialFromError(t){return dl.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return dl.credential(t.oauthAccessToken)}catch{return null}}}dl.FACEBOOK_SIGN_IN_METHOD="facebook.com";dl.PROVIDER_ID="facebook.com";class Ss extends yf{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return bo._fromParams({providerId:Ss.PROVIDER_ID,signInMethod:Ss.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return Ss.credentialFromTaggedObject(t)}static credentialFromError(t){return Ss.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Ss.credential(n,r)}catch{return null}}}Ss.GOOGLE_SIGN_IN_METHOD="google.com";Ss.PROVIDER_ID="google.com";class fl extends yf{constructor(){super("github.com")}static credential(t){return bo._fromParams({providerId:fl.PROVIDER_ID,signInMethod:fl.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return fl.credentialFromTaggedObject(t)}static credentialFromError(t){return fl.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return fl.credential(t.oauthAccessToken)}catch{return null}}}fl.GITHUB_SIGN_IN_METHOD="github.com";fl.PROVIDER_ID="github.com";class hl extends yf{constructor(){super("twitter.com")}static credential(t,n){return bo._fromParams({providerId:hl.PROVIDER_ID,signInMethod:hl.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return hl.credentialFromTaggedObject(t)}static credentialFromError(t){return hl.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return hl.credential(n,r)}catch{return null}}}hl.TWITTER_SIGN_IN_METHOD="twitter.com";hl.PROVIDER_ID="twitter.com";async function vO(e,t){return Io(e,"POST","/v1/accounts:signUp",fr(e,t))}class Ts{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,i=!1){const s=await Wa._fromIdTokenResponse(t,r,i),l=s_(r);return new Ts({user:s,providerId:l,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const i=s_(r);return new Ts({user:t,providerId:i,_tokenResponse:r,operationType:n})}}function s_(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}async function sK(e){if(Ir(e.app))return Promise.reject(hi(e));const t=Er(e);if(await t._initializationPromise,t.currentUser?.isAnonymous)return new Ts({user:t.currentUser,providerId:null,operationType:"signIn"});const n=await vO(t,{returnSecureToken:!0}),r=await Ts._fromIdTokenResponse(t,"signIn",n,!0);return await t._updateCurrentUser(r.user),r}class s1 extends Dl{constructor(t,n,r,i){super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,s1.prototype),this.customData={appName:t.name,tenantId:t.tenantId??void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,i){return new s1(t,n,r,i)}}function bO(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(s=>{throw s.code==="auth/multi-factor-auth-required"?s1._fromErrorAndOperation(e,s,t,r):s})}function xO(e){return new Set(e.map(({providerId:t})=>t).filter(t=>!!t))}async function dAe(e,t){const n=mn(e);await rv(!0,n,t);const{providerUserInfo:r}=await uY(n.auth,{idToken:await n.getIdToken(),deleteProvider:[t]}),i=xO(r||[]);return n.providerData=n.providerData.filter(s=>i.has(s.providerId)),i.has("phone")||(n.phoneNumber=null),await n.auth._persistUserIfCurrent(n),n}async function SO(e,t,n=!1){const r=await Yc(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Ts._forOperation(e,"link",r)}async function rv(e,t,n){await Sp(t);const r=xO(t.providerData),i=e===!1?"provider-already-linked":"no-such-provider";Me(r.has(n)===e,t.auth,i)}async function oK(e,t,n=!1){const{auth:r}=e;if(Ir(r.app))return Promise.reject(hi(r));const i="reauthenticate";try{const s=await Yc(e,bO(r,i,t,e),n);Me(s.idToken,r,"internal-error");const l=$1(s.idToken);Me(l,r,"internal-error");const{sub:u}=l;return Me(e.uid===u,r,"user-mismatch"),Ts._forOperation(e,i,s)}catch(s){throw s?.code==="auth/user-not-found"&&ka(r,"user-mismatch"),s}}async function wO(e,t,n=!1){if(Ir(e.app))return Promise.reject(hi(e));const r="signIn",i=await bO(e,r,t),s=await Ts._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(s.user),s}async function Cp(e,t){return wO(Er(e),t)}async function lK(e,t){const n=mn(e);return await rv(!1,n,t.providerId),SO(n,t)}async function cK(e,t){return Io(e,"POST","/v1/accounts:signInWithCustomToken",fr(e,t))}async function fAe(e,t){if(Ir(e.app))return Promise.reject(hi(e));const n=Er(e),r=await cK(n,{token:t,returnSecureToken:!0}),i=await Ts._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(i.user),i}function iv(e,t,n){Me(n.url?.length>
110,e,"invalid-continue-uri"),Me(typeof n.dynamicLinkDomain>"u"||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),Me(typeof n.linkDomain>"u"||n.linkDomain.length>0,e,"invalid-hosting-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.linkDomain=n.linkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(Me(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(Me(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}async function GC(e){const t=Er(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function hAe(e,t,n){const r=Er(e),i={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};n&&iv(r,i,n),await xl(r,i,"getOobCode",KY,"EMAIL_PASSWORD_PROVIDER")}async function pAe(e,t,n){await UY(mn(e),{oobCode:t,newPassword:n}).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&GC(e),r})}async function mAe(e,t){await qY(mn(e),{oobCode:t})}async function gAe(e,t,n){if(Ir(e.app))return Promise.reject(hi(e));const r=Er(e),l=await xl(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",vO,"EMAIL_PASSWORD_PROVIDER").catch(d=>{throw d.code==="auth/password-does-not-meet-requirements"&&GC(e),d}),u=await Ts._fromIdTokenResponse(r,"signIn",l);return await r._updateCurrentUser(u.user),u}function yAe(e,t,n){return Ir(e.app)?Promise.reject(hi(e)):Cp(mn(e),du.credential(t,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&GC(e),r})}async function vAe(e,t,n){const r=Er(e),i={requestType:"EMAIL_SIGNIN",email:t,clientType:"CLIENT_TYPE_WEB"};function s(l,u){Me(u.handleCodeInApp,r,"argument-error"),u&&iv(r,l,u)}s(i,n),await xl(r,i,"getOobCode",XY,"EMAIL_PASSWORD_PROVIDER")}function bAe(e,t){return nv.parseLink(t)?.operation==="EMAIL_SIGNIN"}async function xAe(e,t,n){if(Ir(e.app))return Promise.reject(hi(e));const r=mn(e),i=du.credentialWithLink(t,n||xp());return Me(i._tenantId===(r.tenantId||null),r,"tenant-id-mismatch"),Cp(r,i)}async function uK(e,t){return hr(e,"POST","/v1/accounts:createAuthUri",fr(e,t))}async function SAe(e,t){const n=UC()?xp():"http://localhost",r={identifier:t,continueUri:n},{signinMethods:i}=await uK(mn(e),r);return i||[]}async function wAe(e,t){const n=mn(e),i={requestType:"VERIFY_EMAIL",idToken:await e.getIdToken()};t&&iv(n.auth,i,t);const{email:s}=await YY(n.auth,i);s!==e.email&&await e.reload()}async function CAe(e,t,n){const r=mn(e),s={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await e.getIdToken(),newEmail:t};n&&iv(r.auth,s,n);const{email:l}=await JY(r.auth,s);l!==e.email&&await e.reload()}async function dK(e,t){return hr(e,"POST","/v1/accounts:update",t)}async function o_(e,t){const{displayName:n,photoURL:r}=t;if(n===void 0&&r===void 0)return;const i=mn(e),l={idToken:await i.getIdToken(),displayName:n,photoUrl:r,returnSecureToken:!0},u=await Yc(i,dK(i.auth,l));i.displayName=u.displayName||null,i.photoURL=u.photoUrl||null;const d=i.providerData.find(({providerId:h})=>h==="password");d&&(d.displayName=i.displayName,d.photoURL=i.photoURL),await i._updateTokensIfNecessary(u)}function IAe(e,t){const n=mn(e);return Ir(n.auth.app)?Promise.reject(hi(n.auth)):CO(n,t,null)}function kAe(e,t){return CO(mn(e),null,t)}async function CO(e,t,n){const{auth:r}=e,s={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(s.email=t),n&&(s.password=n);const l=await Yc(e,WY(r,s));await e._updateTokensIfNecessary(l,!0)}function fK(e){if(!e)return null;const{providerId:t}=e,n=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},r=e.isNewUser||e.kind==="identitytoolkit#SignupNewUserResponse";if(!t&&e?.idToken){const i=$1(e.idToken)?.firebase?.sign_in_provider;if(i){const s=i!=="anonymous"&&i!=="custom"?i:null;return new Pd(r,s)}}if(!t)return null;switch(t){case"facebook.com":return new hK(r,n);case"github.com":return new pK(r,n);case"google.com":return new mK(r,n);case"twitter.com":return new gK(r,n,e.screenName||null);
11case"custom":case"anonymous":return new Pd(r,null);default:return new Pd(r,t,n)}}class Pd{constructor(t,n,r={}){this.isNewUser=t,this.providerId=n,this.profile=r}}class IO extends Pd{constructor(t,n,r,i){super(t,n,r),this.username=i}}class hK extends Pd{constructor(t,n){super(t,"facebook.com",n)}}class pK extends IO{constructor(t,n){super(t,"github.com",n,typeof n?.login=="string"?n?.login:null)}}class mK extends Pd{constructor(t,n){super(t,"google.com",n)}}class gK extends IO{constructor(t,n,r){super(t,"twitter.com",n,r)}}function l_(e){const{user:t,_tokenResponse:n}=e;return t.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:fK(n)}function EAe(e,t){return mn(e).setPersistence(t)}function yK(e,t,n,r){return mn(e).onIdTokenChanged(t,n,r)}function vK(e,t,n){return mn(e).beforeAuthStateChanged(t,n)}function bK(e,t,n,r){return mn(e).onAuthStateChanged(t,n,r)}function c_(e){return mn(e).signOut()}function TAe(e,t){return Er(e).revokeAccessToken(t)}async function AAe(e){return mn(e).delete()}function u_(e,t){return hr(e,"POST","/v2/accounts/mfaEnrollment:start",fr(e,t))}const o1="__sak";class kO{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(o1,"1"),this.storage.removeItem(o1),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}const xK=1e3,SK=10;class EO extends kO{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=hO(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&t(n,i,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((l,u,d)=>{this.notifyListeners(l,d)});return}const r=t.key;n?this.detachListener():this.stopPolling();const i=()=>{const l=this.storage.getItem(r);!n&&this.localCache[r]===l||this.notifyListeners(r,l)},s=this.storage.getItem(r);bY()&&s!==t.newValue&&t.newValue!==t.oldValue?setTimeout(i,SK):i()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},xK)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}EO.type="LOCAL";const TO=EO;class AO extends kO{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}AO.type="SESSION";const _O=AO;function wK(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}class av{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(i=>i.isListeningto(t));if(n)return n;const r=new av(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:i,data:s}=n.data,l=this.handlersMap[i];if(!l?.size)return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const u=Array.from(l).map(async h=>h(n.origin,s)),d=await wK(u);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:d})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}av.receivers=[];function sv(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(Math.random()*10);return e+n}class CK{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let s,l;return new Promise((u,d)=>{const h=sv("",20);i.port1.start();const m=setTimeout(()=>{d(new Error("unsupported_event"))},r);l={messageChannel:i,onMessage(g){const y=g;if(y.data.eventId===h)switch(y.data.status){case"ack":clearTimeout(m),s=setTimeout(()=>{d(new Error("timeout"))},3e3);break;case"done":clearTimeout(s),u(y.data.response);break;default:clearTimeout(m),clearTimeout(s),d(new Error("invalid_response"));break}}},this.handlers.add(l),i.port1.addEventListener("message",l.onMessage),this.target.postMessage({eventType:t,eventId:h,data:n},[i.port2])}).finally(()=>{l&&this.removeMessageHandler(l)})}}function rr(){return window}
11function IK(e){rr().location.href=e}function YC(){return typeof rr().WorkerGlobalScope<"u"&&typeof rr().importScripts=="function"}async function kK(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function EK(){return navigator?.serviceWorker?.controller||null}function TK(){return YC()?self:null}const RO="firebaseLocalStorageDb",AK=1,l1="firebaseLocalStorage",jO="fbase_key";class lm{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function ov(e,t){return e.transaction([l1],t?"readwrite":"readonly").objectStore(l1)}function _K(){const e=indexedDB.deleteDatabase(RO);return new lm(e).toPromise()}function OO(){const e=indexedDB.open(RO,AK);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(l1,{keyPath:jO})}catch(i){n(i)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(l1)?t(r):(r.close(),await _K(),t(await OO()))})})}async function d_(e,t,n){const r=ov(e,!0).put({[jO]:t,value:n});return new lm(r).toPromise()}async function RK(e,t){const n=ov(e,!1).get(t),r=await new lm(n).toPromise();return r===void 0?null:r.value}function f_(e,t){const n=ov(e,!0).delete(t);return new lm(n).toPromise()}const jK=800,OK=3;class LO{registerLifecycleListeners(){typeof window<"u"&&typeof window.addEventListener=="function"&&(window.addEventListener("pagehide",this.onPageHide),window.addEventListener("pageshow",this.onPageShow))}unregisterLifecycleListeners(){typeof window<"u"&&typeof window.removeEventListener=="function"&&(window.removeEventListener("pagehide",this.onPageHide),window.removeEventListener("pageshow",this.onPageShow))}constructor(){this.type="LOCAL",this.dbPromise=null,this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.isClosing=!1,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this.onPageHide=()=>{this.isClosing=!0,this.stopPolling(),this.dbPromise&&(this.dbPromise.then(t=>t.close()).catch(()=>{}),this.dbPromise=null)},this.onPageShow=()=>{this.isClosing&&(this.isClosing=!1,Object.keys(this.listeners).length>0&&this.startPolling())},this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.dbPromise?this.dbPromise:(this.dbPromise=OO(),this.dbPromise.catch(()=>{this.dbPromise=null}),this.dbPromise)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>OK)throw r;if(this.dbPromise){const i=this.dbPromise;this.dbPromise=null;try{(await i).close()}catch{}}}}async initializeServiceWorkerMessaging(){return YC()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=av._getInstance(TK()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
11)),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){if(this.activeServiceWorker=await kK(),!this.activeServiceWorker)return;this.sender=new CK(this.activeServiceWorker);const t=await this.sender._send("ping",{},800);t&&t[0]?.fulfilled&&t[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||EK()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{return indexedDB?(await this._withRetries(async t=>{await d_(t,o1,"1"),await f_(t,o1)}),!0):!1}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>d_(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>RK(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>f_(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){if(this.isClosing)return[];try{const t=await this._withRetries(i=>{const s=ov(i,!1).getAll();return new lm(s).toPromise()});if(this.isClosing)return[];if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:i,value:s}of t)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(s)&&(this.notifyListeners(i,s),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}catch(t){return this.isClosing||ky(`Firebase Auth cross-tab polling failed with error: ${t}`),[]}}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),jK)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.startPolling(),this.registerLifecycleListeners()),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.stopPolling(),this.unregisterLifecycleListeners())}}LO.type="LOCAL";const DO=LO;function h_(e,t){return hr(e,"POST","/v2/accounts/mfaSignIn:start",fr(e,t))}const Yx=mO("rcb"),LK=new sm(3e4,6e4);class DK{constructor(){this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!rr().grecaptcha?.render}load(t,n=""){return Me(MK(n),t,"argument-error"),this.shouldResolveImmediately(n)&&J4(rr().grecaptcha)?Promise.resolve(rr().grecaptcha):new Promise((r,i)=>{const s=rr().setTimeout(()=>{i(Ri(t,"network-request-failed"))},LK.get());rr()[Yx]=()=>{rr().clearTimeout(s),delete rr()[Yx];const u=rr().grecaptcha;if(!u||!J4(u)){i(Ri(t,"internal-error"));return}const d=u.render;u.render=(h,m)=>{const g=d(h,m);return this.counter++,g},this.hostLanguage=n,r(u)};const l=`${EY()}?${mf({onload:Yx,render:"explicit",hl:n})}`;qC(l).catch(()=>{clearTimeout(s),i(Ri(t,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(t){return!!rr().grecaptcha?.render&&(t===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}function MK(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}class PK{async load(t){return new jY(t)}clearedOneInstance(){}}const ap="recaptcha",FK={theme:"light",type:"image"};class _Ae{constructor(t,n,r={...FK}){this.parameters=r,this.type=ap,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Er(t),this.isInvisible=this.parameters.size==="invisible",Me(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");const i=typeof n=="string"?document.getElementById(n):n;Me(i,this.auth,"argument-error"),this.container=i,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new PK:new DK,this.validateStartingState()}async verify(){this.assertNotDestroyed();const t=await this.render(),n=this.getAssertedRecaptcha(),r=n.getResponse(t);return r||new Promise(i=>{const s=l=>{l&&(this.tokenChangeListeners.delete(s),i(l))};this.tokenChangeListeners.add(s),this.isInvisible&&n.execute(t)})}render(){try{this.assertNotDestroyed()}catch(t){return Promise.reject(t)}return this.renderPromise?this.renderPromise:(this.renderPromise=this.makeRenderPromise().catch(t=>{throw this.renderPromise=null,t}),this.renderPromise)}_reset(){this.assertNotDestroyed(),this.widgetId!==null&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
11h(t=>{this.container.removeChild(t)})}validateStartingState(){Me(!this.parameters.sitekey,this.auth,"argument-error"),Me(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),Me(typeof document<"u",this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(t){return n=>{if(this.tokenChangeListeners.forEach(r=>r(n)),typeof t=="function")t(n);else if(typeof t=="string"){const r=rr()[t];typeof r=="function"&&r(n)}}}assertNotDestroyed(){Me(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let t=this.container;if(!this.isInvisible){const n=document.createElement("div");t.appendChild(n),t=n}this.widgetId=this.getAssertedRecaptcha().render(t,this.parameters)}return this.widgetId}async init(){Me(UC()&&!YC(),this.auth,"internal-error"),await BK(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const t=await lY(this.auth);Me(t,this.auth,"internal-error"),this.parameters.sitekey=t}getAssertedRecaptcha(){return Me(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}function BK(){let e=null;return new Promise(t=>{if(document.readyState==="complete"){t();return}e=()=>t(),window.addEventListener("load",e)}).catch(t=>{throw e&&window.removeEventListener("load",e),t})}class MO{constructor(t,n){this.verificationId=t,this.onConfirmation=n}confirm(t){const n=rp._fromVerification(this.verificationId,t);return this.onConfirmation(n)}}async function RAe(e,t,n){if(Ir(e.app))return Promise.reject(hi(e));const r=Er(e),i=await PO(r,t,mn(n));return new MO(i,s=>Cp(r,s))}async function jAe(e,t,n){const r=mn(e);await rv(!1,r,"phone");const i=await PO(r.auth,t,mn(n));return new MO(i,s=>lK(r,s))}async function PO(e,t,n){if(!e._getRecaptchaConfig())try{await FY(e)}catch{console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let r;if(typeof t=="string"?r={phoneNumber:t}:r=t,"session"in r){const i=r.session;if("phoneNumber"in r){Me(i.type==="enroll",e,"internal-error");const s={idToken:i.credential,phoneEnrollmentInfo:{phoneNumber:r.phoneNumber,clientType:"CLIENT_TYPE_WEB"}};return(await xl(e,s,"mfaSmsEnrollment",async(h,m)=>{if(m.phoneEnrollmentInfo.captchaResponse===np){Me(n?.type===ap,h,"argument-error");const g=await Kx(h,m,n);return u_(h,g)}return u_(h,m)},"PHONE_PROVIDER").catch(h=>Promise.reject(h))).phoneSessionInfo.sessionInfo}else{Me(i.type==="signin",e,"internal-error");const s=r.multiFactorHint?.uid||r.multiFactorUid;Me(s,e,"missing-multi-factor-info");const l={mfaPendingCredential:i.credential,mfaEnrollmentId:s,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}};return(await xl(e,l,"mfaSmsSignIn",async(m,g)=>{if(g.phoneSignInInfo.captchaResponse===np){Me(n?.type===ap,m,"argument-error");const y=await Kx(m,g,n);return h_(m,y)}return h_(m,g)},"PHONE_PROVIDER").catch(m=>Promise.reject(m))).phoneResponseInfo.sessionInfo}}else{const i={phoneNumber:r.phoneNumber,clientType:"CLIENT_TYPE_WEB"};return(await xl(e,i,"sendVerificationCode",async(d,h)=>{if(h.captchaResponse===np){Me(n?.type===ap,d,"argument-error");const m=await Kx(d,h,n);return a_(d,m)}return a_(d,h)},"PHONE_PROVIDER").catch(d=>Promise.reject(d))).sessionInfo}}finally{n?._reset()}}async function Kx(e,t,n){Me(n.type===ap,e,"argument-error");const r=await n.verify();Me(typeof r=="string",e,"argument-error");const i={...t};if("phoneEnrollmentInfo"in i){const s=i.phoneEnrollmentInfo.phoneNumber,l=i.phoneEnrollmentInfo.captchaResponse,u=i.phoneEnrollmentInfo.clientType,d=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:s,recaptchaToken:r,captchaResponse:l,clientType:u,recaptchaVersion:d}}),i}else if("phoneSignInInfo"in i){const s=i.phoneSignInInfo.captchaResponse,l=i.phoneSignInInfo.clientType,u=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:s,clientType:l,recaptchaVersion:u}}),i}else return Object.assign(i,{recaptchaToken:r}),i}function cm(e,t){return t?lo(t):(Me(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}class KC extends ev{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Md(t,this._buildIdpRequest())}_linkToIdToken(t,n){return Md(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return Md(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}
11function NK(e){return wO(e.auth,new KC(e),e.bypassAuthState)}function zK(e){const{auth:t,user:n}=e;return Me(n,t,"internal-error"),oK(n,new KC(e),e.bypassAuthState)}async function HK(e){const{auth:t,user:n}=e;return Me(n,t,"internal-error"),SO(n,new KC(e),e.bypassAuthState)}class FO{constructor(t,n,r,i,s=!1){this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:i,tenantId:s,error:l,type:u}=t;if(l){this.reject(l);return}const d={auth:this.auth,requestUri:n,sessionId:r,tenantId:s||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(u)(d))}catch(h){this.reject(h)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return NK;case"linkViaPopup":case"linkViaRedirect":return HK;case"reauthViaPopup":case"reauthViaRedirect":return zK;default:ka(this.auth,"internal-error")}}resolve(t){vo(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){vo(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const UK=new sm(2e3,1e4);async function p_(e,t,n){if(Ir(e.app))return Promise.reject(Ri(e,"operation-not-supported-in-this-environment"));const r=Er(e);Q1(e,t,gf);const i=cm(r,n);return new ml(r,"signInViaPopup",t,i).executeNotNull()}async function OAe(e,t,n){const r=mn(e);Q1(r.auth,t,gf);const i=cm(r.auth,n);return new ml(r.auth,"linkViaPopup",t,i,r).executeNotNull()}class ml extends FO{constructor(t,n,r,i,s){super(t,n,i,s),this.provider=r,this.authWindow=null,this.pollId=null,ml.currentPopupAction&&ml.currentPopupAction.cancel(),ml.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return Me(t,this.auth,"internal-error"),t}async onExecution(){vo(this.filter.length===1,"Popup operations only handle one event");const t=sv();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Ri(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(Ri(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,ml.currentPopupAction=null}pollUserCancellation(){const t=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Ri(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,UK.get())};t()}}ml.currentPopupAction=null;const WK="pendingRedirect",Ay=new Map;class VK extends FO{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Ay.get(this.auth._key());if(!t){try{const r=await qK(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Ay.set(this.auth._key(),t)}return this.bypassAuthState||Ay.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function qK(e,t){const n=zO(t),r=NO(e);
11if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}async function BO(e,t){return NO(e)._set(zO(t),"true")}function GK(e,t){Ay.set(e._key(),t)}function NO(e){return lo(e._redirectPersistence)}function zO(e){return Ty(WK,e.config.apiKey,e.name)}function m_(e,t,n){return YK(e,t,n)}async function YK(e,t,n){if(Ir(e.app))return Promise.reject(hi(e));const r=Er(e);Q1(e,t,gf),await r._initializationPromise;const i=cm(r,n);return await BO(i,r),i._openRedirect(r,t,"signInViaRedirect")}function LAe(e,t,n){return KK(e,t,n)}async function KK(e,t,n){const r=mn(e);Q1(r.auth,t,gf),await r.auth._initializationPromise;const i=cm(r.auth,n);await rv(!1,r,t.providerId),await BO(i,r.auth);const s=await JK(r);return i._openRedirect(r.auth,t,"linkViaRedirect",s)}async function XK(e,t){return await Er(e)._initializationPromise,HO(e,t,!1)}async function HO(e,t,n=!1){if(Ir(e.app))return Promise.reject(hi(e));const r=Er(e),i=cm(r,t),l=await new VK(r,i,n).execute();return l&&!n&&(delete l.user._redirectEventId,await r._persistUserIfCurrent(l.user),await r._setRedirectUser(null,t)),l}async function JK(e){const t=sv(`${e.uid}:::`);return e._redirectEventId=t,await e.auth._setRedirectUser(e),await e.auth._persistUserIfCurrent(e),t}const ZK=600*1e3;class QK{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!$K(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){if(t.error&&!UO(t)){const r=t.error.code?.split("auth/")[1]||"internal-error";n.onError(Ri(this.auth,r))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=ZK&&this.cachedEventUids.clear(),this.cachedEventUids.has(g_(t))}saveEventToCache(t){this.cachedEventUids.add(g_(t)),this.lastProcessedEventTime=Date.now()}}function g_(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function UO({type:e,error:t}){return e==="unknown"&&t?.code==="auth/no-auth-event"}function $K(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return UO(e);default:return!1}}async function eX(e,t={}){return hr(e,"GET","/v1/projects",t)}const tX=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nX=/^https?/;async function rX(e){if(e.config.emulator)return;const{authorizedDomains:t}=await eX(e);for(const n of t)try{if(iX(n))return}catch{}ka(e,"unauthorized-domain")}function iX(e){const t=xp(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const l=new URL(e);return l.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&l.hostname===r}if(!nX.test(n))return!1;if(tX.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const aX=new sm(3e4,6e4);function y_(){const e=rr().___jsl;if(e?.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}}function sX(e){return new Promise((t,n)=>{function r(){y_(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{y_(),n(Ri(e,"network-request-failed"))},timeout:aX.get()})}if(rr().gapi?.iframes?.Iframe)t(gapi.iframes.getContext());
11else if(rr().gapi?.load)r();else{const i=mO("iframefcb");return rr()[i]=()=>{gapi.load?r():n(Ri(e,"network-request-failed"))},qC(`${AY()}?onload=${i}`).catch(s=>n(s))}}).catch(t=>{throw _y=null,t})}let _y=null;function oX(e){return _y=_y||sX(e),_y}const lX=new sm(5e3,15e3),cX="__/auth/iframe",uX="emulator/auth/iframe",dX={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},fX=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function hX(e){const t=e.config;Me(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?WC(t,uX):`https://${e.config.authDomain}/${cX}`,r={apiKey:t.apiKey,appName:e.name,v:am},i=fX.get(e.config.apiHost);i&&(r.eid=i);const s=e._getFrameworks();return s.length&&(r.fw=s.join(",")),`${n}?${mf(r).slice(1)}`}async function pX(e){const t=await oX(e),n=rr().gapi;return Me(n,e,"internal-error"),t.open({where:document.body,url:hX(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:dX,dontclear:!0},r=>new Promise(async(i,s)=>{await r.restyle({setHideOnLeave:!1});const l=Ri(e,"network-request-failed"),u=rr().setTimeout(()=>{s(l)},lX.get());function d(){rr().clearTimeout(u),i(r)}r.ping(d).then(d,()=>{s(l)})}))}const mX={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},gX=500,yX=600,vX="_blank",bX="http://localhost";class v_{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function xX(e,t,n,r=gX,i=yX){const s=Math.max((window.screen.availHeight-i)/2,0).toString(),l=Math.max((window.screen.availWidth-r)/2,0).toString();let u="";const d={...mX,width:r.toString(),height:i.toString(),top:s,left:l},h=mi().toLowerCase();n&&(u=lO(h)?vX:n),sO(h)&&(t=t||bX,d.scrollbars="yes");const m=Object.entries(d).reduce((y,[b,S])=>`${y}${b}=${S},`,"");if(vY(h)&&u!=="_self")return SX(t||"",u),new v_(null);const g=window.open(t||"",u,m);Me(g,e,"popup-blocked");try{g.focus()}catch{}return new v_(g)}function SX(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}const wX="__/auth/handler",CX="emulator/auth/handler",IX=encodeURIComponent("fac");async function b_(e,t,n,r,i,s){Me(e.config.authDomain,e,"auth-domain-config-required"),Me(e.config.apiKey,e,"invalid-api-key");const l={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:am,eventId:i};if(t instanceof gf){t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",Pq(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters()));for(const[m,g]of Object.entries({}))l[m]=g}if(t instanceof yf){const m=t.getScopes().filter(g=>g!=="");m.length>0&&(l.scopes=m.join(","))}e.tenantId&&(l.tid=e.tenantId);const u=l;for(const m of Object.keys(u))u[m]===void 0&&delete u[m];const d=await e._getAppCheckToken(),h=d?`#${IX}=${encodeURIComponent(d)}`:"";return`${kX(e)}?${mf(u).slice(1)}${h}`}function kX({config:e}){return e.emulator?WC(e,CX):`https://${e.authDomain}/${wX}`}const Xx="webStorageSupport";class EX{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=_O,this._completeRedirectFn=HO,this._overrideRedirectResult=GK}async _openPopup(t,n,r,i){vo(this.eventManagers[t._key()]?.manager,"_initialize() not called before _openPopup()");const s=await b_(t,n,r,xp(),i);return xX(t,s,sv())}async _openRedirect(t,n,r,i){await this._originValidation(t);const s=await b_(t,n,r,xp(),i);return IK(s),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:i,promise:s}=this.eventManagers[n];return i?Promise.resolve(i):(vo(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await pX(t),r=new QK(t);return n.register("authEvent",i=>
11(Me(i?.authEvent,t,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(Xx,{type:Xx},i=>{const s=i?.[0]?.[Xx];s!==void 0&&n(!!s),ka(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=rX(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return hO()||oO()||VC()}}const TX=EX;var x_="@firebase/auth",S_="1.13.6";class AX{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Me(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function _X(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function RX(e){vp(new Yd("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),s=t.getProvider("app-check-internal"),{apiKey:l,authDomain:u}=r.options;Me(l&&!l.includes(":"),"invalid-api-key",{appName:r.name});const d={apiKey:l,authDomain:u,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:pO(e)},h=new IY(r,i,s,d);return BY(h,n),h},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),vp(new Yd("auth-internal",t=>{const n=Er(t.getProvider("auth").getImmediate());return(r=>new AX(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Ld(x_,S_,_X(e)),Ld(x_,S_,"esm2020")}const jX=300,OX=Uj("authIdTokenMaxAge")||jX;let w_=null;const LX=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>OX)return;const i=n?.token;w_!==i&&(w_=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function DX(e=WG()){const t=Yj(e,"auth");if(t.isInitialized())return t.getImmediate();const n=gO(e,{popupRedirectResolver:TX,persistence:[DO,TO,_O]}),r=Uj("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const s=new URL(r,location.origin);if(location.origin===s.origin){const l=LX(s.toString());vK(n,l,()=>l(n.currentUser)),yK(n,u=>l(u))}}const i=Eq("auth");return i&&NY(n,`http://${i}`),n}function MX(){return document.getElementsByTagName("head")?.[0]??document}kY({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=i=>{const s=Ri("internal-error");s.customData=i,n(s)},r.type="text/javascript",r.charset="UTF-8",MX().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});RX("Browser");const PX="modulepreload",FX=function(e){return"/"+e},C_={},Pn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");i=d(n.map(h=>{if(h=FX(h),h in C_)return;C_[h]=!0;const m=h.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":PX,m||(y.as="script"),y.crossOrigin="",y.href=h,u&&y.setAttribute("nonce",u),document.head.appendChild(y),m)return new Promise((b,S)=>{y.addEventListener("load",b),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return i.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var Kd;
11(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(Kd||(Kd={}));class Jx extends Error{constructor(t,n,r){super(t),this.message=t,this.code=n,this.data=r}}const BX=e=>{var t,n;return e?.androidBridge?"android":!((n=(t=e?.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},NX=e=>{const t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t!==null?t.name:BX(e),s=()=>i()!=="web",l=g=>{const y=h.get(g);return!!(y?.platforms.has(i())||u(g))},u=g=>{var y;return(y=n.PluginHeaders)===null||y===void 0?void 0:y.find(b=>b.name===g)},d=g=>e.console.error(g),h=new Map,m=(g,y={})=>{const b=h.get(g);if(b)return console.warn(`Capacitor plugin "${g}" already registered. Cannot register plugins twice.`),b.proxy;const S=i(),I=u(g);let w;const C=async()=>(!w&&S in y?w=typeof y[S]=="function"?w=await y[S]():w=y[S]:t!==null&&!w&&"web"in y&&(w=typeof y.web=="function"?w=await y.web():w=y.web),w),E=(O,F)=>{var D,H;if(I){const V=I?.methods.find(Y=>F===Y.name);if(V)return V.rtype==="promise"?Y=>n.nativePromise(g,F.toString(),Y):(Y,K)=>n.nativeCallback(g,F.toString(),Y,K);if(O)return(D=O[F])===null||D===void 0?void 0:D.bind(O)}else{if(O)return(H=O[F])===null||H===void 0?void 0:H.bind(O);throw new Jx(`"${g}" plugin is not implemented on ${S}`,Kd.Unimplemented)}},A=O=>{let F;const D=(...H)=>{const V=C().then(Y=>{const K=E(Y,O);if(K){const z=K(...H);return F=z?.remove,z}else throw new Jx(`"${g}.${O}()" is not implemented on ${S}`,Kd.Unimplemented)});return O==="addListener"&&(V.remove=async()=>F()),V};return D.toString=()=>`${O.toString()}() { [capacitor code] }`,Object.defineProperty(D,"name",{value:O,writable:!1,configurable:!1}),D},_=A("addListener"),R=A("removeListener"),L=(O,F)=>{const D=_({eventName:O},F),H=async()=>{const Y=await D;R({eventName:O,callbackId:Y},F)},V=new Promise(Y=>D.then(()=>Y({remove:H})));return V.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await H()},V},j=new Proxy({},{get(O,F){switch(F){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return I?L:_;case"removeListener":return R;default:return A(F)}}});return r[g]=j,h.set(g,{name:g,proxy:j,platforms:new Set([...Object.keys(y),...I?[S]:[]])}),j};return n.convertFileSrc||(n.convertFileSrc=g=>g),n.getPlatform=i,n.handleError=d,n.isNativePlatform=s,n.isPluginAvailable=l,n.registerPlugin=m,n.Exception=Jx,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},zX=e=>e.Capacitor=NX(e),Kc=zX(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),ei=Kc.registerPlugin;class XC{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(t,n){let r=!1;this.listeners[t]||(this.listeners[t]=[],r=!0),this.listeners[t].push(n);const s=this.windowListeners[t];s&&!s.registered&&this.addWindowListener(s),r&&this.sendRetainedArgumentsForEvent(t);const l=async()=>this.removeListener(t,n);return Promise.resolve({remove:l})}async removeAllListeners(){this.listeners={};for(const t in this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={}}notifyListeners(t,n,r){const i=this.listeners[t];if(!i){if(r){let s=this.retainedEventArguments[t];s||(s=[]),s.push(n),this.retainedEventArguments[t]=s}return}i.forEach(s=>s(n))}hasListeners(t){var n;return!!(!((n=this.listeners[t])===null||n===void 0)&&n.length)}registerWindowListener(t,n){this.windowListeners[n]={registered:!1,windowEventName:t,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(t="not implemented"){return new Kc.Exception(t,Kd.Unimplemented)}unavailable(t="not available"){return new Kc.Exception(t,Kd.Unavailable)}async removeListener(t,n){const r=this.listeners[t];if(!r)return;const i=r.indexOf(n);i!==-1&&this.listeners[t].splice(i,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t])}addWindowListener(t){window.addEventListener(t.windowEventName,t.handler),t.registered=!0}removeWindowListener(t){t&&(window.removeEventListener(t.windowEventName,t.handler),t.registered=!1)}sendRetainedArgumentsForEvent(t){const n=this.retainedEventArguments[t];
11n&&(delete this.retainedEventArguments[t],n.forEach(r=>{this.notifyListeners(t,r)}))}}const I_=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),k_=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class HX extends XC{async getCookies(){const t=document.cookie,n={};return t.split(";").forEach(r=>{if(r.length<=0)return;let[i,s]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");i=k_(i).trim(),s=k_(s).trim(),n[i]=s}),n}async setCookie(t){try{const n=I_(t.key),r=I_(t.value),i=t.expires?`; expires=${t.expires.replace("expires=","")}`:"",s=(t.path||"/").replace("path=",""),l=t.url!=null&&t.url.length>0?`domain=${t.url}`:"";document.cookie=`${n}=${r||""}${i}; path=${s}; ${l};`}catch(n){return Promise.reject(n)}}async deleteCookie(t){try{document.cookie=`${t.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}}async clearCookies(){try{const t=document.cookie.split(";")||[];for(const n of t)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(t){return Promise.reject(t)}}async clearAllCookies(){try{await this.clearCookies()}catch(t){return Promise.reject(t)}}}ei("CapacitorCookies",{web:()=>new HX});const UX=async e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{const i=r.result;t(i.indexOf(",")>=0?i.split(",")[1]:i)},r.onerror=i=>n(i),r.readAsDataURL(e)}),WX=(e={})=>{const t=Object.keys(e);return Object.keys(e).map(i=>i.toLocaleLowerCase()).reduce((i,s,l)=>(i[s]=e[t[l]],i),{})},VX=(e,t=!0)=>e?Object.entries(e).reduce((r,i)=>{const[s,l]=i;let u,d;return Array.isArray(l)?(d="",l.forEach(h=>{u=t?encodeURIComponent(h):h,d+=`${s}=${u}&`}),d.slice(0,-1)):(u=t?encodeURIComponent(l):l,d=`${s}=${u}`),`${r}&${d}`},"").substr(1):null,qX=(e,t={})=>{const n=Object.assign({method:e.method||"GET",headers:e.headers},t),i=WX(e.headers)["content-type"]||"";if(typeof e.data=="string")n.body=e.data;else if(i.includes("application/x-www-form-urlencoded")){const s=new URLSearchParams;for(const[l,u]of Object.entries(e.data||{}))s.set(l,u);n.body=s.toString()}else if(i.includes("multipart/form-data")||e.data instanceof FormData){const s=new FormData;if(e.data instanceof FormData)e.data.forEach((u,d)=>{s.append(d,u)});else for(const u of Object.keys(e.data))s.append(u,e.data[u]);n.body=s;const l=new Headers(n.headers);l.delete("content-type"),n.headers=l}else(i.includes("application/json")||typeof e.data=="object")&&(n.body=JSON.stringify(e.data));return n};class GX extends XC{async request(t){const n=qX(t,t.webFetchExtra),r=VX(t.params,t.shouldEncodeUrlParams),i=r?`${t.url}?${r}`:t.url,s=await fetch(i,n),l=s.headers.get("content-type")||"";let{responseType:u="text"}=s.ok?t:{};l.includes("application/json")&&(u="json");let d,h;switch(u){case"arraybuffer":case"blob":h=await s.blob(),d=await UX(h);break;case"json":d=await s.json();break;default:d=await s.text()}const m={};return s.headers.forEach((g,y)=>{m[y]=g}),{data:d,headers:m,status:s.status,url:s.url}}async get(t){return this.request(Object.assign(Object.assign({},t),{method:"GET"}))}async post(t){return this.request(Object.assign(Object.assign({},t),{method:"POST"}))}async put(t){return this.request(Object.assign(Object.assign({},t),{method:"PUT"}))}async patch(t){return this.request(Object.assign(Object.assign({},t),{method:"PATCH"}))}async delete(t){return this.request(Object.assign(Object.assign({},t),{method:"DELETE"}))}}ei("CapacitorHttp",{web:()=>new GX});var E_;(function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"})(E_||(E_={}));var T_;(function(e){e.StatusBar="StatusBar",e.NavigationBar="NavigationBar"})(T_||(T_={}));class YX extends XC{async setStyle(){this.unavailable("not available for web")}async setAnimation(){this.unavailable("not available for web")}async show(){this.unavailable("not available for web")}async hide(){this.unavailable("not available for web")}}ei("SystemBars",{web:()=>new YX});var A_;(function(e){e.IndexedDbLocal="INDEXED_DB_LOCAL",e.InMemory="IN_MEMORY",e.BrowserLocal="BROWSER_LOCAL",e.BrowserSession="BROWSER_SESSION"})(A_||(A_={}));var __;(function(e){e.APPLE="apple.com",e.FACEBOOK="facebook.com",e.GAME_CENTER="gc.apple.com",e.GITHUB="github.com",e.GOOGLE="google.com",e.MICROSOFT="microsoft.com",e.PLAY_GAMES="playgames.google.com",e.TWITTER="twitter.com",e.YAHOO="yaho
11o.com",e.PASSWORD="password",e.PHONE="phone"})(__||(__={}));const R_=ei("FirebaseAuthentication",{web:()=>Pn(()=>import("./web-DTLpeNdP.js"),[]).then(e=>new e.FirebaseAuthenticationWeb)});var KX="firebase",XX="12.19.0";Ld(KX,XX,"app");const JX={apiKey:"AIzaSyCSJUkguIw0_ztuhZeXHK_RBKxb3-iRkD4",authDomain:"tonita.co",projectId:"dev-svc-project-363713",storageBucket:"dev-svc-project-363713.appspot.com",messagingSenderId:"12910835896",appId:"1:12910835896:web:308165d253fc7e937fdc4d"},zw=Kj(JX),Ti=Kc.isNativePlatform()?gO(zw,{persistence:[DO,TO]}):DX(zw),c1=new Ss;c1.setCustomParameters({prompt:"select_account"});const Fd=new ip("apple.com");Fd.addScope("email");Fd.addScope("name");const ZX=Object.freeze(Object.defineProperty({__proto__:null,appleProvider:Fd,auth:Ti,default:zw,googleProvider:c1},Symbol.toStringTag,{value:"Module"})),Ve=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Et=globalThis,Nc="10.76.0";function Ml(){return um(Et),Et}function um(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Nc,t[Nc]=t[Nc]||{}}function vf(e,t,n=Et){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Nc]=r[Nc]||{};return i[e]||(i[e]=t())}const QX=["debug","info","warn","error","log","assert","trace"],$X="Sentry Logger ",u1={};function fu(e){if(!("console"in Et))return e();const t=Et.console,n={},r=Object.keys(u1);r.forEach(i=>{const s=u1[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function eJ(){ZC().enabled=!0}function tJ(){ZC().enabled=!1}function WO(){return ZC().enabled}function nJ(...e){JC("log",...e)}function rJ(...e){JC("warn",...e)}function iJ(...e){JC("error",...e)}function JC(e,...t){Ve&&WO()&&fu(()=>{Et.console[e](`${$X}[${e}]:`,...t)})}function ZC(){return Ve?vf("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Ee={enable:eJ,disable:tJ,isEnabled:WO,log:nJ,warn:rJ,error:iJ},VO=50,Xc="?",j_=/\(error: (.*)\)/,O_=/captureMessage|captureException/;function qO(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],l=n.split(` 12`);for(let u=r;u<l.length;u++){let d=l[u];d.length>1024&&(d=d.slice(0,1024));const h=j_.test(d)?d.replace(j_,"$1"):d;if(!h.includes("Error: ")){for(const m of t){const g=m(h);if(g){s.push(g);break}}if(s.length>=VO+i)break}}return sJ(s.slice(i))}}function aJ(e){return Array.isArray(e)?qO(...e):e}function sJ(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(E0(t).function||"")&&t.pop(),t.reverse(),O_.test(E0(t).function||"")&&(t.pop(),O_.test(E0(t).function||"")&&t.pop()),t.slice(0,VO).map(n=>({...n,filename:n.filename||E0(t).filename,function:n.function||Xc}))}function E0(e){return e[e.length-1]||{}}const Zx="<anonymous>";function xo(e){try{return!e||typeof e!="function"?Zx:e.name||Zx}catch{return Zx}}function L_(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Jh={},D_={};function Pl(e,t){return Jh[e]=Jh[e]||[],Jh[e].push(t),()=>{const n=Jh[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function Fl(e,t){if(!D_[e]){D_[e]=!0;try{t()}catch(n){Ve&&Ee.error(`Error while instrumenting ${e}`,n)}}}function Sa(e,t){const n=e&&Jh[e];if(n)for(const r of n)try{r(t)}catch(i){Ve&&Ee.error(`Error while triggering instrumentation handler. 13Type: ${e} 14Name: ${xo(r)} 15Error:`,i)}}let Qx=null;function GO(e){const t="error";Pl(t,e),Fl(t,oJ)}function oJ(){Qx=Et.onerror,Et.onerror=function(e,t,n,r,i){return Sa("error",{column:r,error:i,line:n,msg:e,url:t}),Qx?Qx.apply(this,arguments):!1},Et.onerror.__SENTRY_INSTRUMENTED__=!0}let $x=null;function YO(e){const t="unhandledrejection";Pl(t,e),Fl(t,lJ)}function lJ(){$x=Et.onunhandledrejection,Et.onunhandledrejection=function(e){return Sa("unhandledrejection",e),$x?$x.apply(this,arguments):!0},Et.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const KO=Object.prototype.toString;function As(e){switch(KO.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return uv(e,Error)}}function bf(e,t){return KO.call(e)===`[object ${t}]`}function XO(e){return bf(e,"ErrorEvent")}function M_(e){return bf(e,"DOMError")}function cJ(e){return bf(e,"DOMException")}function fo(e){return bf(e,"String")}function QC(e){return typeof e=="object"&&e!==null&&"__sentry_template_str
15ing__"in e&&"__sentry_template_values__"in e}function Jc(e){return e===null||QC(e)||typeof e!="object"&&typeof e!="function"}function Ip(e){return bf(e,"Object")}function lv(e){return typeof e=="object"&&e!==null}function cv(e){return typeof Event<"u"&&uv(e,Event)}function uJ(e){return bf(e,"RegExp")}function dm(e){return!!(e?.then&&typeof e.then=="function")}function uv(e,t){try{return e instanceof t}catch{return!1}}function $C(e){return typeof Request<"u"&&uv(e,Request)}function Gi(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&JO(i,r);try{e[t]=i}catch{Ve&&Ee.log(`Failed to replace method "${t}" in object`,e)}}function $r(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ve&&Ee.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function JO(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,$r(e,"__sentry_original__",t)}catch{}}function eI(e){return e.__sentry_original__}function ZO(e){if(As(e))return{message:e.message,name:e.name,stack:e.stack,...P_(e)};if(cv(e)){const{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...P_(e)}}return e}function P_(e){return lv(e)?Object.fromEntries(Object.entries(e)):{}}function dJ(e){const t=Object.keys(ZO(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let hd;function fm(e){if(hd!==void 0)return hd?hd(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Et;return t in n&&typeof n[t]=="function"?(hd=n[t],hd(e)):(hd=null,e())}function Sl(){return fm(()=>Math.random())}function Bl(){return fm(()=>Date.now())}const fJ=Symbol.for("sentry.skipNormalization"),hJ=Symbol.for("sentry.overrideNormalizationDepth");function pJ(e){return!!e[fJ]}function mJ(e){const t=e[hJ];return typeof t=="number"?t:void 0}let Hw;function QO(e){Hw=e}function to(e,t=100,n=1/0){try{return Uw("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function $O(e,t=3,n=100*1024){const r=to(e,t);return vJ(r)>n?$O(e,t-1,n):r}function Uw(e,t,n=1/0,r=1/0,i=bJ()){const[s,l]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const u=eL(e,t);if(!u.startsWith("[object "))return u;if(pJ(t))return t;const d=mJ(t),h=d!==void 0?d:n;if(h===0)return u.replace("object ","");if(s(t))return"[Circular ~]";const m=t;if(m&&typeof m.toJSON=="function")try{const S=m.toJSON();return Uw("",S,h-1,r,i)}catch{}const g=Array.isArray(t)?[]:{};let y=0;const b=ZO(t);for(const S in b){if(!Object.prototype.hasOwnProperty.call(b,S))continue;if(y>=r){g[S]="[MaxProperties ~]";break}const I=b[S];g[S]=Uw(S,I,h-1,r,i),y++}return l(t),g}function eL(e,t){try{if(Hw){const r=Hw(t);if(r)return r}return typeof global<"u"&&t===global?"[Global]":typeof t=="number"&&!Number.isFinite(t)?`[${t}]`:typeof t=="function"?`[Function: ${xo(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${gJ(t)}]`}catch(n){return`**non-serializable** (${n})`}}function gJ(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function yJ(e){return~-encodeURI(e).split(/%..|./).length}function vJ(e){return yJ(JSON.stringify(e))}function bJ(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Ww(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function F_(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];Jc(i)?n.push(String(i)):i instanceof Error?n.push(i.message?`${i.name}: ${i.message}`:i.name):n.push(eL(void 0,i))}return n.join(t)}function sp(e,t,n=!1){return fo(e)?uJ(t)?t.test(e):fo(t)?n?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1}function ho(e,t=[],n=!1){for(const r of t)if(sp(e,r,n))return!0;return!1}function xJ(){const e=Et;return e.crypto||e.msCrypto}let eS;function SJ(){return Sl()*16}function wa(e=xJ()){try{if(e?.randomUUID)return fm(()=>e.randomUUID()).replace(/-/g,"")}catch{}return eS||(eS="10000000100040008000"+1e11),eS.replace(/[018]/g,t=>(t^(SJ()&15)>>t/4).toString(16))}function tL(e){return e.exception?.values?.[0]}function Lc(e){const{message:t,event_id:n}=e;if(t)return t;const r=tL(e);return r?r.type&&r.value?`${r.type}: ${r.value}
15`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Vw(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function zc(e,t){const n=tL(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i?.data,...t.data};n.mechanism.data=s}}function B_(e){if(wJ(e))return!0;try{$r(e,"__sentry_captured__",!0)}catch{}return!1}function wJ(e){try{return e.__sentry_captured__}catch{}}const nL=1e3;function hu(){return Bl()/nL}function CJ(){const{performance:e}=Et;if(!e?.now||!e.timeOrigin)return hu;const t=e.timeOrigin;return()=>(t+fm(()=>e.now()))/nL}let N_;function dr(){return(N_??(N_=CJ()))()}let tS=null;function IJ(){const{performance:e}=Et;if(!e?.now)return;const t=3e5,n=fm(()=>e.now()),r=Bl(),i=e.timeOrigin;if(typeof i=="number"&&Math.abs(i+n-r)<t)return i;const s=e.timing?.navigationStart;return typeof s=="number"&&Math.abs(s+n-r)<t?s:r-n}function zr(){return tS===null&&(tS=IJ()),tS}function kJ(e){const t=dr(),n={sid:wa(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>TJ(n)};return e&&Xd(n,e),n}function Xd(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||dr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:wa()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function EJ(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Xd(e,n)}function TJ(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function hm(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=hm(r[i],t[i],n-1));return r}function El(){return wa()}function Tl(){return wa().substring(16)}function rL(e){try{const t=Et.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function iL(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}const qw="_sentrySpan";function kp(e,t){t?$r(e,qw,rL(t)):delete e[qw]}function d1(e){return iL(e[qw])}const AJ=100;class _s{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:El(),sampleRand:Sl()}}clone(){const t=new _s;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,kp(t,d1(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Xd(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof _s?n.getScopeData():Ip(n)?t:void 0,{tags:i,attributes:s,extra:l,user:u,contexts:d,level:h,fingerprint:m=[],propagationContext:g,conversationId:y}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...s},this._extra={...this._extra,...l},this._contexts={...this._contexts,...d},u&&Object.keys(u).length&&(this._user=u),h&&(this._level=h),m.length&&(this._fingerprint=m),g&&(this._propagationContext=g),y&&(this._conversationId=y),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,kp(this,void 0),this._attachments=[],this.setPropagationContext({traceId:El(),sampleRand:Sl()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:AJ;if(r<=0)return this;const i={timestamp:hu(),...t,message:t.message?Ww(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:d1(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=hm(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||wa();if(!this._client)return Ve&&Ee.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r?.event_id||wa();if(!this._client)return Ve&&Ee.warn("No client configured on scope - will not capture message!"),i;const s=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=t.event_id||n?.event_id||wa();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Ve&&Ee.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
15h(t=>{t(this)}),this._notifyingListeners=!1)}}function _J(){return vf("defaultCurrentScope",()=>new _s)}function RJ(){return vf("defaultIsolationScope",()=>new _s)}const z_=e=>e instanceof Promise&&!e[aL],aL=Symbol("chained PromiseLike"),jJ=(e,t,n)=>{const r=e.then(i=>(t(i),i),i=>{throw n(i),i});return z_(r)&&z_(e)?r:OJ(e,r)},OJ=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const i=e[r];typeof i=="function"?Object.defineProperty(t,r,{value:(...s)=>i.apply(e,s),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[aL]:!0}),t};class LJ{constructor(t,n){let r;t?r=t:r=new _s;let i;n?i=n:i=new _s,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return dm(r)?jJ(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Jd(){const e=Ml(),t=um(e);return t.stack=t.stack||new LJ(_J(),RJ())}function DJ(e){return Jd().withScope(e)}function MJ(e,t){const n=Jd();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function H_(e){return Jd().withScope(()=>e(Jd().getIsolationScope()))}function PJ(){return{withIsolationScope:H_,withScope:DJ,withSetScope:MJ,withSetIsolationScope:(e,t)=>H_(t),getCurrentScope:()=>Jd().getScope(),getIsolationScope:()=>Jd().getIsolationScope()}}function xf(e){const t=um(e);return t.acs?t.acs:PJ()}function FJ(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function BJ(e,t){const{value:n,unit:r}=FJ(e)?e:{value:e,unit:void 0},i=NJ(n),s=r&&typeof r=="string"?{unit:r}:{};if(i)return{...i,...s};if(!t||t==="skip-undefined"&&n===void 0)return;let l="";try{l=JSON.stringify(n)??""}catch{}return{value:l,type:"string",...s}}function U_(e,t=!1){const n={};for(const[r,i]of Object.entries(e??{})){const s=BJ(i,t);s&&(n[r]=s)}return n}function NJ(e){if(Array.isArray(e))return{value:e,type:"array"};const t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}function qt(){const e=Ml();return xf(e).getCurrentScope()}function Oi(){const e=Ml();return xf(e).getIsolationScope()}function zJ(){return vf("globalScope",()=>new _s)}function pm(...e){const t=Ml(),n=xf(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Mt(){return qt().getClient()}function HJ(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,s={trace_id:n,span_id:i||Tl()};return r&&(s.parent_span_id=r),s}const Cs="sentry.source",tI="sentry.sample_rate",sL="sentry.previous_trace_sample_rate",Ea="sentry.op",ar="sentry.origin",UJ="sentry.status.message",Ep="sentry.idle_span_finish_reason",mm="sentry.measurement_unit",gm="sentry.measurement_value",W_="sentry.custom_span_name",nI="sentry.profile_id",Nl="sentry.exclusive_time",WJ="sentry.link.type",VJ="gen_ai.conversation.id",oL=0,dv=1,wr=2;function qJ(e){if(e<400&&e>=100)return{code:dv};if(e>=400&&e<500)switch(e){case 401:return{code:wr,message:"unauthenticated"};case 403:return{code:wr,message:"permission_denied"};case 404:return{code:wr,message:"not_found"};case 409:return{code:wr,message:"already_exists"};case 413:return{code:wr,message:"failed_precondition"};case 429:return{code:wr,message:"resource_exhausted"};case 499:return{code:wr,message:"cancelled"};default:return{code:wr,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:wr,message:"unimplemented"};case 503:return{code:wr,message:"unavailable"};case 504:return{code:wr,message:"deadline_exceeded"};default:return{code:wr,message:"internal_error"}}return{code:wr,message:"internal_error"}}function lL(e,t){e.setAttribute("http.response.status_code",t);const n=qJ(t);n.message!=="unknown_error"&&e.setStatus(n)}const cL="_sentryScope",uL="_sentryIsolationScope",GJ=Symbol.for("sentry.otelSourceInference"),YJ=Symbol.for("sentry.otelSourceExplicitlySet"),KJ=Symbol.for("sentry.tracerProviderSpan");
15function Zd(e,t,n){e&&($r(e,uL,rL(n)),$r(e,cL,t))}function Bd(e){const t=e;return{scope:t[cL],isolationScope:iL(t[uL])}}function V_(e){return e[GJ]===!0}function XJ(e){$r(e,YJ,!0)}function q_(e){return e[KJ]===!0}const f1="sentry-",JJ=8192;function dL(e){const t=QJ(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.startsWith(f1)){const l=i.slice(f1.length);r[l]=s}return r},{});if(Object.keys(n).length>0)return n}function ZJ(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${f1}${r}`]=i),n),{});return $J(t)}function QJ(e){if(!(!e||!fo(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=G_(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):G_(e)}function G_(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),i=t.slice(n+1);return[r,i].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function $J(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,l=i===0?s:`${t},${s}`;return l.length>JJ?(Ve&&Ee.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):l},"")}const eZ=/^o(\d+)\./,tZ=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function nZ(e){return e==="http"||e==="https"}function pu(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:l,protocol:u,publicKey:d}=e;return`${u}://${d}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${l}`}function rZ(e){const t=tZ.exec(e);if(!t){fu(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",l="",u=""]=t.slice(1);let d="",h=u;const m=h.split("/");if(m.length>1&&(d=m.slice(0,-1).join("/"),h=m.pop()),h){const g=h.match(/^\d+/);g&&(h=g[0])}return fL({host:s,pass:i,path:d,projectId:h,port:l,protocol:n,publicKey:r})}function fL(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function iZ(e){if(!Ve)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(l=>e[l]?!1:(Ee.error(`Invalid Sentry Dsn: ${l} missing`),!0))?!1:n.match(/^\d+$/)?nZ(r)?t&&isNaN(parseInt(t,10))?(Ee.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Ee.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Ee.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function aZ(e){return e.match(eZ)?.[1]}function sZ(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=aZ(n)),r}function hL(e){const t=typeof e=="string"?rZ(e):fL(e);if(!(!t||!iZ(t)))return t}function Tp(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const pL=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function oZ(e){if(!e)return;const t=e.match(pL);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function lZ(e,t){const n=oZ(e),r=dL(t);if(!n?.traceId)return{traceId:El(),sampleRand:Sl()};const i=cZ(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:l,parentSampled:u}=n;return{traceId:s,parentSpanId:l,sampled:u,dsc:r||{},sampleRand:i}}function mL(e=El(),t=Tl(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function gL(e=El(),t=Tl(),n){return`00-${e}-${t}-${n?"01":"00"}`}function cZ(e,t){const n=Tp(t?.sample_rand);if(n!==void 0)return n;const r=Tp(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Sl()*r:r+Sl()*(1-r):Sl()}const yL=0,fv=1;let Y_=!1;function uZ(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:l,origin:u,links:d}=Wt(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:l,origin:u,links:d}}function dZ(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Wt(e).parent_span_id,s=Bd(e).scope,l=r?s?.getPropagationContext().propagationSpanId||Tl():t;return{parent_span_id:i,span_id:l,trace_id:n}}function fZ(e){const{traceId:t,spanId:n}=e.spanContext(),r=ko(e);return mL(t,n,r)}function hZ(e){const{traceId:t,spanId:n}=e.spanContext(),r=ko(e);return gL(t,n,r)}function vL(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===fv,attributes:s,...i}))}function bL(e){if(e?.length)return e.map(({context:{spanId:t,traceId:n,traceFlags:r},attributes:i})=>({span_id:t,trace_id:n,sampled:r===fv,attributes:i}))}function po(e){return typeof e=="number"?K_(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?K_(e.getTime()):dr()}function K_(e){return e>9999999999?e/1e3:e}function Wt(e){if(CL(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(wL(e)){const{attributes:r,startTime:i,name:s,endTime:l,status:u,links:d}=e;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:SL(e),start_timestamp:po(i),timestamp:po(l)||void 0,status:IL(u),op:r[Ea],origin:r[ar],links:v
15L(d)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function xL(e){if(CL(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(wL(e)){const{attributes:r,startTime:i,name:s,endTime:l,status:u,links:d}=e;return{name:s,span_id:t,trace_id:n,parent_span_id:SL(e),start_timestamp:po(i),end_timestamp:po(l),is_segment:e===Yw(e),status:rI(u),attributes:kL(r,u),links:bL(d)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===Yw(e)}}function SL(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function pZ(e){return{...e,attributes:U_(e.attributes),links:e.links?.map(t=>({...t,attributes:U_(t.attributes)}))}}function wL(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function CL(e){return typeof e.getSpanJSON=="function"}function ko(e){const{traceFlags:t}=e.spanContext();return t===fv}function IL(e){if(!(!e||e.code===oL))return e.code===dv?"ok":e.message||"internal_error"}function rI(e){return!e||e.code===dv||e.code===oL||e.message==="cancelled"?"ok":"error"}function kL(e,t){const n=rI(t)==="error"?t?.message:void 0;return{...n&&{[UJ]:n},...e}}const Hc="_sentryChildSpans",Gw="_sentryRootSpan";function Ry(e,t){const n=e[Gw]||e;$r(t,Gw,n),ko(e)&&(!e.isRecording()&&!n.isRecording()||(e[Hc]?e[Hc].add(t):$r(e,Hc,new Set([t]))))}function mZ(e,t){e[Hc]&&e[Hc].delete(t)}function jy(e){const t=new Set;function n(r){if(!t.has(r)&&ko(r)){t.add(r);const i=r[Hc]?Array.from(r[Hc]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}const Kr=Yw;function Yw(e){return e[Gw]||e}function $i(){const e=Ml(),t=xf(e);return t.getActiveSpan?t.getActiveSpan():d1(qt())}function Kw(){Y_||(fu(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Y_=!0)}let X_=!1;function gZ(){if(X_)return;function e(){const t=$i(),n=t&&Kr(t);if(n){const r="internal_error";Ve&&Ee.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:wr,message:r})}}X_=!0,GO(e),YO(e)}function Ta(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Mt()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function J_(e){Ee.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Ap(e,t){if(!t?.length)return!1;for(const n of t){if(bZ(n)){if(e.description&&sp(e.description,n))return Ve&&J_(e),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const i=n.name?e.description&&sp(e.description,n.name):!0,s=n.op?e.op&&sp(e.op,n.op):!0,l=n.attributes?Object.entries(n.attributes).every(([u,d])=>yZ(e.attributes?.[u],d)):!0;if(i&&s&&l)return Ve&&J_(e),!0}return!1}function yZ(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?sp(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e===t}function vZ(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function bZ(e){return typeof e=="string"||e instanceof RegExp}const EL=Symbol.for("sentry.nonRecordingSpan");class Zc{constructor(t={}){this._traceId=t.traceId||El(),this._spanId=t.spanId||Tl(),this.dropReason=t.dropReason,$r(this,EL,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:yL}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Qd(e){return!!e&&e[EL]===!0}const iI="production",TL="_frozenDsc";function Z_(e,t){$r(e,TL,t)}function AL(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||iI,release:n.release,public_key:r,trace_id:e,org_id:sZ(t)};return t.emit("createDsc",i),i}function aI(e,t){const n=t.getPropagationContext();return n.dsc||AL(n.traceId,e)}function Sf(e){const t=Mt();if(!t)return{};const n=Kr(e),r=Wt(n),i=r.data,s=n.spanContext().traceState,l=s?.get("sentry.sample_rate")??i[tI]??i[sL];function u(w){return(typeof l=="number"||typeof l=="string")&&(w.sample_rate=`${l}`),w}const d=n[TL];if(d)return u(d);const h=Qd(n),m=h&&n.dropReason==="ignored";if(h&&(!Ta(t.getOptions())||m)){const w=Bd(n).scope;if(w){const C={...aI(t,w)};return m&&(C.sampled="false"),u(C)}}const g=s?.get("sentry.dsc"),y=g&&dL(g);if(y)return u(y);const b=AL(e.spanContext().traceId,t),S=i[Cs]??i["sentry.segment.name.source"],I=r.description;return S!=="url"&&I&&(b.transaction=I),Ta()&&(b.sampled=String(ko(n)),b.sample_rand=s?.get("sentry.sample_rand")??Bd(n).scope?.getPropagationContext().sampleRand.toString()),u(b),t.emit("createDsc",b,n),b}function _L(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}function mu(e,t=[]){return[e,t]}function Q_(e,t){const[n,r]=e;return[n,[...r,t]]}function Xw(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function xZ(e,t){return Xw(e,(n,r)=>t.includes(r))}function Jw(e){const t=um(Et);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function SZ(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[Jw(r),s]:r.push(typeof s=="string"?Jw(s):s)}for(const s of n){const[l,u]=s;if(i(` 16${JSON.stringify(l)} 17`),typeof u=="string"||u instanceof Uint8Array)i(u);else{let d;try{d=JSON.stringify(u)}catch{d=JSON.stringify(to(u))}i(d)}}return typeof r=="string"?r:wZ(r)}function wZ(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function CZ(e){return[{type:"span"},e]}
17function IZ(e){const t=typeof e.data=="string"?Jw(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const RL={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function kZ(e){return e in RL}function $_(e){return kZ(e)?RL[e]:e}function jL(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function EZ(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(Bl()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:pu(r)},...i&&{trace:i}}}function TZ(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function AZ(e,t,n,r){const i=jL(n),s={sent_at:new Date(Bl()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:pu(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return mu(s,[l])}function _Z(e,t,n,r){const i=jL(n),s=e.type&&e.type!=="replay_event"?e.type:"event";TZ(e,n?.sdk);const l=EZ(e,i,r,t);return delete e.sdkProcessingMetadata,mu(l,[[{type:s},e]])}function RZ(e,t){function n(b){return!!b.trace_id&&!!b.public_key}const r=Sf(e[0]),i=t?.getDsn(),s=t?.getOptions().tunnel,l={sent_at:new Date(Bl()).toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:pu(i)}},{beforeSendSpan:u,ignoreSpans:d}=t?.getOptions()||{},h=d?.length?e.filter(b=>{const S=Wt(b);return!Ap({description:S.description,op:S.op,attributes:S.data},d)}):e,m=e.length-h.length;m&&t?.recordDroppedEvent("before_send","span",m);const g=u?b=>{const S=Wt(b),I=_L(u)?S:u(S);return I||(Kw(),S)}:Wt,y=[];for(const b of h){const S=g(b);S&&y.push(CZ(S))}return mu(l,y)}function jZ(e){if(!Ve)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Wt(e),{spanId:i}=e.spanContext(),s=ko(e),l=Kr(e),u=l===e,d=`[Tracing] Starting ${s?"sampled":"unsampled"} ${u?"root ":""}span`,h=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&h.push(`parent ID: ${r}`),!u){const{op:m,description:g}=Wt(l);h.push(`root ID: ${l.spanContext().spanId}`),m&&h.push(`root op: ${m}`),g&&h.push(`root description: ${g}`)}Ee.log(`${d} 18 ${h.join(` 19 `)}`)}function OZ(e){if(!Ve)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Wt(e),{spanId:r}=e.spanContext(),s=Kr(e)===e,l=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${r}`;Ee.log(l)}function OL(e,t,n,r=$i()){const i=r&&Kr(r);i&&(Ve&&Ee.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[gm]:t,[mm]:n}))}function e6(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[mm],s=r[gm];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}function t6(){return um(Ml()).segmentSpanCaptureStrategy}function js(e){return e.getOptions().traceLifecycle==="stream"}const n6=1e3;class hv{constructor(t={}){this._traceId=t.traceId||El(),this._spanId=t.spanId||Tl(),this._startTime=t.startTimestamp||dr(),this._links=t.links,this._attributes={},this.setAttributes({[ar]:"manual",[Ea]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._frozen?this:(this._links?this._links.push(t):this._links=[t],this)}addLinks(t){return this._frozen?this:(this._links?this._links.push(...t):this._links=t,this)}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?fv:yL}}setAttribute(t,n){return this._frozen?this:(n===void 0?delete this._attributes[t]:this._attributes[t]=n,t===Cs&&n!==void 0&&V_(this)&&XJ(this),this)}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._frozen||(this._startTime=po(t))}setStatus(t){return this._frozen?this:(this._status=t,this)}updateName(t){return this._frozen?this:(this._name=t,V_(this)||this.setAttribute(Cs,"custom"),this)}end(t){if(this._endTime){this._frozen=q_(this);return}this._endTime=po(t),OZ(this),this._onSpanEnded(),this._frozen=q_(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Ea],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:IL(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ar],profile_id:this._attributes[nI],exclusive_time:this._attributes[Nl],measurements:e6(this._events),is_segment:this._isStandaloneSpan&&Kr(this)===this||void 0,segment_id:this._isStandaloneSpan?Kr(this).spanContext().spanId:void 0,links:v
19L(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===Kr(this),status:rI(this._status),attributes:kL(this._attributes,this._status),links:bL(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){if(this._frozen)return this;Ve&&Ee.log("[Tracing] Adding an event to span:",t);const i=r6(n)?n:r||dr(),s=r6(n)?{}:n||{},l={name:t,time:po(i),attributes:s};return this._events.push(l),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Mt();t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this));const n=Kr(this),r=this._isStandaloneSpan||this===n;if(this._isStandaloneSpan){this._sampled?DZ(RZ([this],t)):(Ve&&Ee.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}if(!r){const l=t6();if(l){const u=Bd(this).scope||qt();l.onChildSpanEnded(this,n,d=>this._convertSpanToTransaction(d),u)}return}if(t&&js(t)){t.emit("afterSegmentSpanEnd",this);return}const i=Bd(this).scope||qt(),s=t6();if(s)s.onSegmentSpanEnded(l=>this._convertSpanToTransaction(l),i);else{const l=this._convertSpanToTransaction();l&&i.captureEvent(l)}}_convertSpanToTransaction(t={}){if(!i6(Wt(this)))return;this._name||(Ve&&Ee.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:n,isolationScope:r}=Bd(this),i=n?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;t.onSpanCaptured?.(this);const s=[];for(const g of jy(this)){if(g===this||LZ(g)||t.isSpanAlreadyCaptured?.(g))continue;const y=Wt(g);i6(y)&&(t.onSpanCaptured?.(g),s.push(y))}const l=this._attributes[Cs];delete this._attributes[W_];let u=!1;s.forEach(g=>{delete g.data[W_],g.op?.startsWith("gen_ai.")&&(u=!0)});const d={contexts:{trace:uZ(this)},spans:s.length>n6?s.sort((g,y)=>g.start_timestamp-y.start_timestamp).slice(0,n6):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:n,capturedSpanIsolationScope:r,dynamicSamplingContext:Sf(this),hasGenAiSpans:u},request:i,...l&&{transaction_info:{source:l}}},h=e6(this._events);return h&&Object.keys(h).length&&(Ve&&Ee.log("[Measurements] Adding measurements to transaction event",JSON.stringify(h,void 0,2)),d.measurements=h),d}}function r6(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function i6(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function LZ(e){return e instanceof hv&&e.isStandaloneSpan()}function DZ(e){const t=Mt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function MZ(e,t,n){if(!Ta(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:u=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):u}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const s=Tp(i);if(s===void 0)return Ve&&Ee.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!s)return Ve&&Ee.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,r];const l=n<s;return l||Ve&&Ee.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[l,s,r]}const PZ="__SENTRY_SUPPRESS_TRACING__";function zl(e){const t=oI();return t.startInactiveSpan?t.startInactiveSpan(e):FZ(e)}function FZ(e){const t=zZ(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?s=>pm(e.scope,s):r!==void 0?s=>LL(r,s):s=>s())(()=>{const s=qt(),l=UZ(s,r),u=Mt();return e.onlyIfParent&&!l?BZ(s,u):NZ({parentSpan:l,spanArguments:t,forceTransaction:n,scope:s})})}function LL(e,t){const n=oI();return n.withActiveSpan?n.withActiveSpan(e,t):pm(r=>(kp(r,e||void 0),t(r)))}function sI(e=qt()){const t=oI();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[PZ]===!0}function BZ(e,t){t?.recordDroppedEvent("no_parent_span","span");const n=new Zc({traceId:e.getPropagationContext().traceId});return Zd(n,e,Oi()),n}function NZ({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){const i=Oi();if(!Ta()){const u=r.getPropagationContext(),d=e?e.spanContext().traceId:u.traceId,h=new Zc({traceId:d});return e&&!n&&Ry(e,h),Zd(h,r,i),h}const s=Mt();if(WZ(s,t)){sI(r)||s?.recordDroppedEvent("ignored","span");
19const u=new Zc({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&Ry(e,u),Zd(u,r,i),u}let l;if(e&&!n)l=HZ(e,r,t,i),Ry(e,l);else if(e){const u=Sf(e),{traceId:d,spanId:h}=e.spanContext(),m=ko(e);l=a6({traceId:d,parentSpanId:h,...t},r,i,m),Z_(l,u)}else{const{traceId:u,dsc:d,parentSpanId:h,sampled:m}=r.getPropagationContext();l=a6({traceId:u,parentSpanId:h,...t},r,i,m),d&&Z_(l,d)}return jZ(l),l}function zZ(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=po(e.startTime),delete r.startTime,r}return n}function oI(){const e=Ml();return xf(e)}function a6(e,t,n,r){const i=Mt(),s=i?.getOptions()||{},{name:l=""}=e,u={spanAttributes:{...e.attributes},spanName:l,parentSampled:r};i?.emit("beforeSampling",u,{decision:!1});const d=u.parentSampled??r,h=u.spanAttributes,m=t.getPropagationContext(),g=sI(t),[y,b,S]=g?[!1]:MZ(s,{name:l,parentSampled:d,attributes:h,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Tp(m.dsc?.sample_rate)},m.sampleRand),I=new hv({...e,attributes:{[Cs]:"custom",[tI]:b!==void 0&&S?b:void 0,...h},sampled:y});return!y&&i&&!g&&(Ve&&Ee.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",js(i)?"span":"transaction")),Zd(I,t,n),i&&i.emit("spanStart",I),I}function HZ(e,t,n,r){const{spanId:i,traceId:s}=e.spanContext(),l=sI(t),u=l?!1:ko(e),d=u?new hv({...n,parentSpanId:i,traceId:s,sampled:u}):new Zc({traceId:s});Ry(e,d),Zd(d,t,r);const h=Mt();return h&&(js(h)&&Qd(d)&&(Qd(e)&&e.dropReason?(d.dropReason=e.dropReason,h.recordDroppedEvent(e.dropReason,"span")):l||(d.dropReason="sample_rate",h.recordDroppedEvent("sample_rate","span"))),h.emit("spanStart",d),n.endTimestamp&&(h.emit("spanEnd",d),h.emit("afterSpanEnd",d))),d}function UZ(e,t){if(t)return t;if(t===null)return;const n=d1(e);if(!n)return;const r=Mt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Kr(n):n}function WZ(e,t){const n=e?.getOptions().ignoreSpans;return!e||!js(e)||!n?.length?!1:Ap({description:t.name||"",op:t.attributes?.[Ea]||t.op,attributes:t.attributes},n)}function DL(e){return Qd(e)&&e.dropReason==="ignored"}const Oy={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},VZ="heartbeatFailed",qZ="idleTimeout",GZ="finalTimeout",YZ="externalFinish";function ML(e,t={}){const n=new Map;let r=!1,i,s,l=YZ,u=!t.disableAutoFinish;const d=[],{idleTimeout:h=Oy.idleTimeout,finalTimeout:m=Oy.finalTimeout,childSpanTimeout:g=Oy.childSpanTimeout,beforeSpanEnd:y,trimIdleSpanEndTimestamp:b=!0}=t,S=Mt(),I=qt();if(!S||!Ta()){const F=new Zc({traceId:I.getPropagationContext().traceId});return Zd(F,I,Oi()),F}const w=$i(),C=KZ(e);C.end=new Proxy(C.end,{apply(F,D,H){if(y&&y(C),Qd(D))return;const[V,...Y]=H,K=V||dr(),z=po(K),q=jy(C).filter(te=>te!==C),$=Wt(C);if(!q.length||!b)return O(z),Reflect.apply(F,D,[z,...Y]);const ue=S.getOptions().ignoreSpans,ge=q?.reduce((te,B)=>{const N=Wt(B);return!N.timestamp||ue&&Ap({description:N.description,op:N.op,attributes:N.data},ue)?te:te?Math.max(te,N.timestamp):N.timestamp},void 0),M=$.start_timestamp,Z=Math.min(M?M+m/1e3:1/0,Math.max(M||-1/0,Math.min(z,ge||1/0)));return O(Z),Reflect.apply(F,D,[Z,...Y])}});function E(){i&&(clearTimeout(i),i=void 0)}function A(){s&&(clearTimeout(s),s=void 0)}function _(F){E(),i=setTimeout(()=>{!r&&n.size===0&&u&&(l=qZ,C.end(F))},h)}function R(F){A(),s=setTimeout(()=>{!r&&u&&(l=VZ,C.end(F))},g)}function L(F){E(),n.set(F,!0);const D=dr();R(D+g/1e3)}function j(F){if(n.has(F)&&n.delete(F),n.size===0){const D=dr();_(D+h/1e3),A()}}function O(F){r=!0,n.clear(),d.forEach(q=>q()),kp(I,w);const D=Wt(C),{start_timestamp:H}=D;if(!H)return;D.data[Ep]||C.setAttribute(Ep,l);const Y=D.status;(!Y||Y==="unknown")&&C.setStatus({code:dv}),Ee.log(`[Tracing] Idle span "${D.op}" finished`);const K=jy(C).filter(q=>q!==C);let z=0;K.forEach(q=>{q.isRecording()&&(q.setStatus({code:wr,message:"cancelled"}),q.end(F),Ve&&Ee.log("[Tracing] Cancelling span since span ended early",JSON.stringify(q,void 0,2)));const $=Wt(q),{timestamp:ue=0,start_timestamp:ge=0}=$,M=ge<=F,Z=(m+h)/1e3,te=ue-ge<=Z;if(Ve){const B=JSON.stringify(q,void 0,2);M?te||Ee.log("[Tracing] Discarding span since it finished after idle span final timeout",B):Ee.log("[Tracing] Discarding span since it happened after idle span was finished",B)}(!te||!M)&&(mZ(C,q),z++)}),z>0&&C.setAttribute("sentry.idle_span_discarded_spans",z)}return d.push(S.on("spanStart",F=>{if(r||F===C||Wt(F).timestamp||F instanceof hv&&F.isStandaloneSpan())return;jy(C).includes(F)&&L(F.spanContext().spanId)})),d.push(S.on("spanEnd",F=>{r||j(F.spanContext().spanId)})),d.push(S.on("idleSpanEnableAutoFinish",F=>{F===C&&(u=!0,_(),n.size&&R())})),t.disableAutoFinish||_(),setTimeout(()=>{r||(C.setStatus({code:wr,message:"deadline_exceeded"}),l=GZ,C.end())},m),C}function KZ(e){const t=zl(e);
19return kp(qt(),t),Ve&&Ee.log("[Tracing] Started span is an idle span"),t}function XZ(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;JZ(e,t),r&&$Z(e,r),eQ(e,n),ZZ(e,i),QZ(e,s)}function s6(e,t){const{extra:n,tags:r,attributes:i,user:s,contexts:l,level:u,sdkProcessingMetadata:d,breadcrumbs:h,fingerprint:m,eventProcessors:g,attachments:y,propagationContext:b,transactionName:S,span:I}=t;_h(e,"extra",n),_h(e,"tags",r),_h(e,"attributes",i),_h(e,"user",s),_h(e,"contexts",l),e.sdkProcessingMetadata=hm(e.sdkProcessingMetadata,d,2),u&&(e.level=u),S&&(e.transactionName=S),I&&(e.span=I),h.length&&(e.breadcrumbs=[...e.breadcrumbs,...h]),m.length&&(e.fingerprint=[...e.fingerprint,...m]),g.length&&(e.eventProcessors=[...e.eventProcessors,...g]),y.length&&(e.attachments=[...e.attachments,...y]),e.propagationContext={...e.propagationContext,...b}}function _h(e,t,n){e[t]=hm(e[t],n,1)}function PL(e,t){const n=zJ().getScopeData();return e&&s6(n,e.getScopeData()),t&&s6(n,t.getScopeData()),n}function JZ(e,t){const{extra:n,tags:r,user:i,contexts:s,level:l,transactionName:u}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),l&&(e.level=l),u&&e.type!=="transaction"&&(e.transaction=u)}function ZZ(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function QZ(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function $Z(e,t){e.contexts={trace:dZ(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Sf(t),...e.sdkProcessingMetadata};const n=Kr(t),r=Wt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function eQ(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}const tQ="http.request.header",FL="http.url",nQ="sentry.op",BL="sentry.segment.name",NL="sentry.transaction",wf="url.full",rQ="url.path",iQ="user_agent.original";function zL(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([r,i])=>{i!=null&&!(r in n)&&(n[r]=i)})}const nS=0,o6=1,l6=2;function ym(e){return new _p(t=>{t(e)})}function HL(e){return new _p((t,n)=>{n(e)})}class _p{constructor(t){this._state=nS,this._handlers=[],this._runExecutor(t)}then(t,n){return new _p((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(l){i(l)}},s=>{if(!n)i(s);else try{r(n(s))}catch(l){i(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new _p((n,r)=>{let i,s;return this.then(l=>{s=!1,i=l,t&&t()},l=>{s=!0,i=l,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===nS)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===o6&&n[1](this._value),this._state===l6&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,l)=>{if(this._state===nS){if(dm(l)){l.then(r,i);return}this._state=s,this._value=l,this._executeHandlers()}},r=s=>{n(o6,s)},i=s=>{n(l6,s)};try{t(r,i)}catch(s){i(s)}}}function aQ(e,t,n,r=0){try{const i=Zw(t,n,e,r);return dm(i)?i:ym(i)}catch(i){return HL(i)}}function Zw(e,t,n,r){const i=n[r];if(!e||!i)return e;const s=i({...e},t);return Ve&&s===null&&Ee.log(`Event processor "${i.id||"?"}" dropped event`),dm(s)?s.then(l=>Zw(l,t,n,r+1)):Zw(s,t,n,r+1)}let yc,c6,u6,tl;function sQ(e){const t=Et._sentryDebugIds,n=Et._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(tl&&r.length===c6&&i.length===u6)return tl;c6=r.length,u6=i.length,tl={},yc||(yc={});const s=(l,u)=>{for(const d of l){const h=u[d],m=yc?.[d];if(m&&tl&&h)tl[m[0]]=h,yc&&(yc[d]=[m[0],h]);else if(h){const g=e(d);for(let y=g.length-1;y>=0;y--){const S=g[y]?.filename;if(S&&tl&&yc){tl[S]=h,yc[d]=[S,h];break}}}}};return t&&s(r,t),n&&s(i,n),tl}function oQ(e,t,n,r,i,s){const{normalizeDepth:l=3,normalizeMaxBreadth:u=1e3}=e,d={...t,event_id:t.event_id||n.event_id||wa(),timestamp:t.timestamp||hu()},h=n.integrations||e.integrations.map(C=>C.name);lQ(d,e),dQ(d,h),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&cQ(d,e.stackParser);const m=hQ(r,n.captureContext);n.mechanism&&zc(d,n.mechanism);const g=i?i.getEventProcessors():[],y=PL(s,m),b=[...n.attachments||[],...y.attachments];b.length&&(n.attachments=b),XZ(d,y);const S=[...g,...y.eventProcessors];return(n.data&&n.data.__sentry__===!0?ym(d):aQ(S,d,n)).then(C=>(C&&uQ(C),typeof l=="number"&&l>0?fQ(C,l,u):C))}function lQ(e,t){const{environment:n,release:r,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||iI,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const l=e.request;l?.url&&s&&(l.url=Ww(l.url,s)),s&&e.exception?.values?.forEach(u=>{u.value&&(u.value=Ww(u.value,s))})}function cQ(e,t){const n=sQ(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>
19{i.filename&&(i.debug_id=n[i.filename])})})}function uQ(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function dQ(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function fQ(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:to(i.data,t,n)}}))},...e.user&&{user:to(e.user,t,n)},...e.contexts&&{contexts:to(e.contexts,t,n)},...e.extra&&{extra:to(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=to(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:to(i.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=to(e.contexts.flags,3,n)),r}function hQ(e,t){if(!t)return e;const n=e?e.clone():new _s;return n.update(t),n}function pQ(e){if(e)return mQ(e)?{captureContext:e}:yQ(e)?{captureContext:e}:e}function mQ(e){return e instanceof _s||typeof e=="function"}const gQ=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function yQ(e){return Object.keys(e).some(t=>gQ.includes(t))}function pv(e,t){return qt().captureException(e,pQ(t))}function vQ(e,t){const n=t;return qt().captureMessage(e,n,void 0)}function UL(e,t){return qt().captureEvent(e,t)}function bQ(e,t){Oi().setContext(e,t)}function d6(e){Oi().setUser(e)}function xQ(){return Oi().lastEventId()}function SQ(){const e=Mt();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function DAe(e){Oi().addEventProcessor(e)}function f6(e){const t=Oi(),{user:n}=PL(t,qt()),{userAgent:r}=Et.navigator||{},i=kJ({user:n,...r&&{userAgent:r},...e}),s=t.getSession();return s?.status==="ok"&&Xd(s,{status:"exited"}),WL(),t.setSession(i),i}function WL(){const e=Oi(),n=qt().getSession()||e.getSession();n&&EJ(n),VL(),e.setSession()}function VL(){const e=Oi(),t=Mt(),n=e.getSession();n&&t&&t.captureSession(n)}function rS(e=!1){if(e){WL();return}VL()}function qL(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const wQ="7";function GL(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function CQ(e){return`${GL(e)}${e.projectId}/envelope/`}function IQ(e,t){const n={sentry_version:wQ};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function kQ(e,t,n){return t||`${CQ(e)}?${IQ(e,n)}`}function EQ(e,t){const n=hL(e);if(!n)return"";const r=`${GL(n)}embed/error-page/`;let i=`dsn=${pu(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const l=t.user;if(!l)continue;l.name&&(i+=`&name=${encodeURIComponent(l.name)}`),l.email&&(i+=`&email=${encodeURIComponent(l.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const h6=[];function TQ(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];
19i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function AQ(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return TQ(r)}function _Q(e,t){const n={};return t.forEach(r=>{r?.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&YL(e,r,n)}),n}function p6(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function YL(e,t,n){if(n[t.name]){Ve&&Ee.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!h6.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),h6.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,l)=>r(s,l,e),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(r=>{const i=t[r];typeof i=="function"&&e.on(r,s=>i.call(t,s,e))}),Ve&&Ee.log(`Integration installed: ${t.name}`)}function MAe(e){const t=Mt();if(!t){Ve&&Ee.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function RQ(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function jQ(){return"npm"}function OQ(){return!RQ()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function mv(){return typeof window<"u"&&(!OQ()||LQ())}function LQ(){return Et.process?.type==="renderer"}function DQ(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...mv()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function MQ(e,t,n,r,i){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=pu(r)),mu(s,[DQ(e,i)])}function PQ(e,t){const n=t??FQ(e)??[];if(n.length===0)return;const r=e.getOptions(),i=MQ(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);KL().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function FQ(e){return KL().get(e)}function KL(){return vf("clientToLogBufferMap",()=>new WeakMap)}function BQ(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...mv()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function NQ(e,t,n,r,i){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=pu(r)),mu(s,[BQ(e,i)])}function zQ(e,t){const n=t??HQ(e)??[];if(n.length===0)return;const r=e.getOptions(),i=NQ(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);XL().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function HQ(e){return XL().get(e)}function XL(){return vf("clientToMetricBufferMap",()=>new WeakMap)}function UQ(e){const t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status==="ok"||e.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...e.data},links:e.links};return pZ(t)}function WQ(e,t){if(e.type!=="transaction"||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||js(t))return;const n=[],r=[];for(const s of e.spans)s.op?.startsWith("gen_ai.")?n.push(UQ(s)):r.push(s);if(n.length===0)return;e.spans=r;const i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...mv()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}const lI=Symbol.for("SentryBufferFullError");function cI(e=100){const t=new Set;function n(){return t.size<e}function r(l){t.delete(l)}function i(l){if(!n())return HL(lI);const u=l();return t.add(u),u.then(()=>r(u),()=>r(u)),u}function s(l){if(!t.size)return ym(!0);const u=Promise.allSettled(Array.from(t)).then(()=>!0);if(!l)return u;const d=[u,new Promise(h=>qL(setTimeout(()=>h(!1),l)))];return Promise.race(d)}return{get $(){return Array.from(t)},add:i,drain:s}}const VQ=60*1e3;function qQ(e,t=Bl()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?VQ:r-t}function GQ(e,t){return e[t]||e.all||0}function YQ(e,t,n=Bl()){return GQ(e,t)>n}function KQ(e,{statusCode:t,headers:n},r=Bl()){const i={...e},s=n?.["x-sentry-rate-limits"],l=n?.["retry-after"];if(s)for(const u of s.trim().split(",")){const[d,h,,,m]=u.split(":",5),g=parseInt(d,10),y=(isNaN(g)?60:g)*1e3;if(!h)i.all=r+y;else for(const b of h.split(";"))b==="metric_bucket"?(!m||m.split(";").includes("custom"))&&(i[b]=r+y):i[b]=r+y}else l?i.all=r+qQ(l,r):t===429&&(i.all=r+60*1e3);return i}const JL=64;function XQ(e,t,n=cI(e.bufferSize||JL)){let r={};const i=l=>n.drain(l);function s(l){const u=[];
19if(Xw(l,(g,y)=>{const b=$_(y);YQ(r,b)?e.recordDroppedEvent("ratelimit_backoff",b):u.push(g)}),u.length===0)return Promise.resolve({});const d=mu(l[0],u),h=g=>{if(xZ(d,["client_report"])){Ve&&Ee.warn(`Dropping client report. Will not send outcomes (reason: ${g}).`);return}Xw(d,(y,b)=>{e.recordDroppedEvent(g,$_(b))})},m=()=>t({body:SZ(d)}).then(g=>g.statusCode===413?(Ve&&Ee.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),h("send_error"),g):(Ve&&g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300)&&Ee.warn(`Sentry responded with status code ${g.statusCode} to sent event.`),r=KQ(r,g),g),g=>{throw h("network_error"),Ve&&Ee.error("Encountered error running transport request:",g),g});return n.add(m).then(g=>g,g=>{if(g===lI)return Ve&&Ee.error("Skipped sending event because buffer is full."),h("queue_overflow"),Promise.resolve({});throw g})}return{send:s,flush:i}}function JQ(e,t,n){const r=[{type:"client_report"},{timestamp:hu(),discarded_events:e}];return mu(t?{dsn:t}:{},[r])}function ZL(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function ZQ(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:l,op:u}=e.contexts?.trace??{};return{data:l??{},description:e.transaction,op:u,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:l?.[nI],exclusive_time:l?.[Nl],measurements:e.measurements,is_segment:!0}}function QQ(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[nI]:e.profile_id},...e.exclusive_time&&{[Nl]:e.exclusive_time}}}},measurements:e.measurements}}const $Q="[Filtered]",T0=["forwarded","-ip","remote-","via","-user"],e$=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"];function t$(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:T0},httpHeaders:{request:{deny:T0},response:{deny:T0}},httpBodies:[],urlQueryParams:{deny:T0},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}const n$={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function r$(e){return typeof e=="boolean"||"allow"in e||"deny"in e}function i$(e,t){return e===void 0?{...t.httpHeaders}:r$(e)?{request:e,response:e}:{request:e.request??t.httpHeaders.request,response:e.response??t.httpHeaders.response}}function a$(e){const t=e.dataCollection!=null?n$:t$(e.sendDefaultPii),n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:i$(n.httpHeaders,t),httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}const m6="Not capturing exception because it's already been captured.",g6="Discarded session because of missing or non-string release",QL=Symbol.for("SentryInternalError"),$L=Symbol.for("SentryDoNotSendEventError"),s$=5e3;function Ly(e){return{message:e,[QL]:!0}}function iS(e){return{message:e,[$L]:!0}}function y6(e){return lv(e)&&QL in e}function v6(e){return lv(e)&&$L in e}function b6(e,t,n,r,i){let s=0,l,u=!1;e.on(n,()=>{s=0,clearTimeout(l),u=!1}),e.on(t,d=>{if(s+=r(d),s>=8e5)i(e);else if(!u){const h=e.getOptions()._flushInterval??s$;h>0&&(u=!0,l=qL(setTimeout(()=>{i(e)},h)))}}),e.on("flush",()=>{i(e)})}class o${constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=cI(t.transportOptions?.bufferSize??JL),this._dataCollection=a$(t),t.dsn?this._dsn=hL(t.dsn):Ve&&Ee.warn("No DSN provided, client will not send events."),this._dsn){const r=kQ(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&b6(this,"afterCaptureLog","flushLogs",d$,PQ),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&b6(this,"afterCaptureMetric","flushMetrics",u$,zQ)}captureException(t,n,r){const i=wa();if(B_(t))return Ve&&Ee.log(m6),i;const s={event_id:i,...n};return this._process(()=>this.eventFromException(t,s).then(l=>this._captureEvent(l,s,r)).then(l=>l),"error"),s.event_id}captureMessage(t,n,r,i){const s={event_id:wa(),...r},l=QC(t)?t:String(t),u=Jc(t),d=u?this.eventFromMessage(l,n,s):this.eventFromException(t,s);return this._process(()=>d.then(h=>this._captureEvent(h,s,i)),u?"unknown":"error"),s.event_id}captureEvent(t,n,r){const i=wa();if(n?.originalException&&B_(n.originalException))return Ve&&Ee.log(m6),i;const s={event_id:i,...n},l=t.sdkProcessingMetadata||{},u=l.capturedSpanScope,d=l.capturedSpanIsolationScope,h=x6(t.type);return this._process(()=>this._captureEvent(t,s,u||r,d),h),s.event_id}captureSession(t){this.sendSession(t),Xd(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;
19if(this.emit("flush"),!n)return!0;const r=await this._isClientDoneProcessing(t),i=await n.flush(t);return r&&i}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){const n=this._integrations[t.name];!n&&t.beforeSetup&&t.beforeSetup(this),YL(this,t,this._integrations),n||p6(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);const r=WQ(t,this);let i=_Z(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])i=Q_(i,IZ(s));r&&(i=Q_(i,r)),this.sendEnvelope(i).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=iI}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n){Ve&&Ee.warn(g6);return}s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n){Ve&&Ee.warn(g6);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=AZ(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;Ve&&Ee.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,i=(...s)=>n(...s);return r.add(i),()=>{r.delete(i)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return Ve&&Ee.error("Error while sending envelope:",n),{}}return Ve&&Ee.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=_Q(this,t),p6(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const s=n.exception?.values;if(s){i=!0,r=!1;for(const d of s)if(d.mechanism?.handled===!1){r=!0;break}}const l=t.status==="ok";(l&&t.errors===0||l&&r)&&(Xd(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const s=this.getOptions(),l=this.getIntegrationNames();return!n.integrations&&l.length&&(n.integrations=l),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),oQ(s,t,n,r,this,i).then(u=>{if(u===null)return u;this.emit("postprocessEvent",u,n),u.contexts={trace:{...u.contexts?.trace,...HJ(r)},...u.contexts};const d=aI(this,r);return u.sdkProcessingMetadata={dynamicSamplingContext:d,...u.sdkProcessingMetadata},u})}_captureEvent(t,n={},r=qt(),i=Oi()){return Ve&&Qw(t)&&Ee.log(`Captured error event \`${ZL(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,i).then(s=>s.event_id,s=>{Ve&&(v6(s)?Ee.log(s.message):y6(s)?Ee.warn(s.message):Ee.warn(s))})}_processEvent(t,n,r,i){const s=this.getOptions(),{sampleRate:l}=s,u=eD(t),d=Qw(t),m=`before send for type \`${t.type||"error"}\``,g=typeof l>"u"?void 0:Tp(l),y=x6(t.type);return this._prepareEvent(t,n,r,i).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",y),iS("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return b;const I=c$(this,s,b,n);return l$(I,m)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",y),u){const C=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",C)}throw iS(`${m} returned \`null\`, will not send event.`)}const S=r.getSession()||i.getSession();if(d&&S&&this._updateSessionFromEvent(S,b),d&&typeof g=="number"&&Sl()>g)throw this.recordDroppedEvent("sample_rate","error"),iS(`Discarding event because it's not included in the random sample (sampling rate = ${l})`);if(u){const w=b.sdkProcessingMetadata?.spanCountBeforeProcessing||0,C=b.spans?b.spans.length:0,E=w-C;E>0&&this.recordDroppedEvent("before_send","span",E)}const I=b.transaction_info;if(u&&I&&b.transaction!==t.transaction){const w="custom";b.transaction_info={...I,source:w}}return this.sendEvent(b,n),b}).then(null,b=>{throw v6(b)||y6(b)?b:(this.captureException(b,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:b}),Ly(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 20Reason: ${b}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===lI&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){Ve&&Ee.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Ve&&Ee.log("No outcomes to send");return}if(!this._dsn){Ve&&Ee.log("No dsn provided, will not send outcomes");return}Ve&&Ee.log("Sending outcomes:",t);const n=JQ(t,this._options.tunnel&&pu(this._dsn));this.sendEnvelope(n)}}function x6(e){return e==="replay_event"?"replay":e||"error"}function l$(e,t){const n=`${t} must return \`null\` or a valid event.`;if(dm(e))return e.then(r=>{if(!Ip(r)&&r!==null)throw Ly(n);return r},r=>{throw Ly(`${t} rejected with ${r}`)});if(!Ip(e)&&e!==null)throw Ly(n);return e}function c$(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,ignoreSpans:l}=t,u=!_L(t.beforeSendSpan)&&t.beforeSendSpan;let d=n;if(Qw(d)&&i)return i(d,r);if(eD(d)){if(u||l){const h=ZQ(d);if(l?.length&&Ap({description:h.description,op:h.op,attributes:h.data},l))return null;if(u){const m=u(h);m?d=hm(n,QQ(m)):Kw()}if(d.spans){const m=[],g=d.spans;for(const b of g){if(l?.length&&Ap({description:b.description,op:b.op,attributes:b.data},l)){vZ(g,b);continue}if(u){const S=u(b);S?m.push(S):(Kw(),m.push(b))}else m.push(b)}const y=d.spans.length-m.length;y&&e.recordDroppedEvent("before_send","span",y),d.spans=m}}if(s){if(d.spans){const h=d.spans.length;d.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:h}}return s(d,r)}}return d}function Qw(e){return e.type===void 0}function eD(e){return e.type==="transaction"}function u$(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+tD(e.attributes)}function d$(e){let t=0;return e.message&&(t+=e.message.length*2),t+tD(e.attributes)}function tD(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*S6(n[0]):Jc(n)?t+=S6(n):t+=100}),t}function S6(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function f$(e,t){t.debug===!0&&(Ve?Ee.enable():fu(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),qt().update(t.initialScope);const r=new e(t);return h$(r),r.init(),r}function h$(e){qt().setClient(e)}function p$(e,t){return t.some(n=>e.includes(n))}function m$(e,t,n){if(t===!1)return!0;const r=e.toLowerCase();if(p$(r,e$))return!0;
20if(t===!0)return!1;const l=("deny"in t?t.deny:t.allow).some(u=>r.includes(u.toLowerCase()));return"deny"in t?l:!l}function nD(e,t){if(!(!e||t===!1))return e.split("&").map(n=>{const r=n.indexOf("="),i=r===-1?n:n.slice(0,r),s=new URLSearchParams(`${i}=`).keys().next().value;return s!==void 0&&m$(s,t)?`${i}=${$Q}`:n}).join("&")}function g$(e,t){const n=e.indexOf("#"),r=n===-1?e.length:n,i=e.indexOf("?");if(i===-1||i>r)return e;const s=e.slice(0,i),l=e.slice(i+1,r),u=e.slice(r),d=nD(l,t);return d?`${s}?${d}${u}`:`${s}${u}`}function rD(e){return(e??Mt())?.getDataCollectionOptions().urlQueryParams??!0}function Ca(e,t){return e===void 0?void 0:g$(e,rD(t))}function iD(e,t){if(!e)return e;const n=e.startsWith("?"),r=nD(n?e.slice(1):e,rD(t));return r&&n?`?${r}`:r}const y$="thismessage:/";function uI(e){return"isRelative"in e}function h1(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?y$:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function aD(e){if(uI(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Uc(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function v$(e){return e.split(/[?#]/,1)[0]}function qa(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(",");let l="";if(t&&s!==-1){const u=e.slice(s+1);l=u.length>10?`${u.slice(0,10)}... [truncated]`:u}return`data:${r}${i?",base64":""}${l?`,${l}`:""}`}return e}function b$(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function sD(e,t,n=[t],r="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(s=>({name:`${r}:@sentry/${s}`,version:Nc})),i.version=Nc)}function oD(e={}){const t=e.client||Mt();if(!SQ()||!t)return{};const n=Ml(),r=xf(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||qt(),s=e.span||$i(),l=Qd(s)&&!Ta(t.getOptions()),u=s&&!l?fZ(s):x$(i),d=s?Sf(s):aI(t,i),h=ZJ(d);if(!pL.test(u))return Ee.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const g={"sentry-trace":u,baggage:h};return e.propagateTraceparent&&(g.traceparent=s&&!l?hZ(s):S$(i)),g}function x$(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return mL(t,r,n)}function S$(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return gL(t,r,n)}const w$=100;function Qc(e,t){const n=Mt(),r=Oi();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=w$}=n.getOptions();if(s<=0)return;const u={timestamp:hu(),...e},d=i?fu(()=>i(u,t)):u;d!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",d,t),r.addBreadcrumb(d,s))}const C$="FunctionToString",w6=new WeakMap,I$=(()=>({name:C$,setupOnce(){const e=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=eI(this);let r;try{w6.has(Mt())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){w6.set(e,!0)}})),k$=I$,E$=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],T$="EventFilters",A$=(e={})=>{let t;return{name:T$,setup(n){const r=n.getOptions();t=C6(e,r)},processEvent(n,r,i){if(!t){const s=i.getOptions();t=C6(e,s)}return R$(n,t)?null:n}}},_$=((e={})=>({...A$(e),name:"InboundFilters"}));function C6(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:E$],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function R$(e,t){if(e.type){if(e.type==="transaction"&&O$(e,t.ignoreTransactions))return Ve&&Ee.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 21Event: ${Lc(e)}`),!0}else{if(j$(e,t.ignoreErrors))return Ve&&Ee.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 22Event: ${Lc(e)}`),!0;if(P$(e))return Ve&&Ee.warn(`Event dropped due to not having an error message, error type or stacktrace. 23Event: ${Lc(e)}`),!0;if(L$(e,t.denyUrls))return Ve&&Ee.warn(`Event dropped due to being matched by \`denyUrls\` option. 24Event: ${Lc(e)}. 25Url: ${p1(e)}`),!0;if(!D$(e,t.allowUrls))return Ve&&Ee.warn(`Event dropped due to not being matched by \`allowUrls\` option. 26Event: ${Lc(e)}. 27Url: ${p1(e)}`),!0}return!1}function j$(e,t){return t?.length?ZL(e).some(n=>ho(n,t)):!1}function O$(e,t){if(!t?.length)return!1;const n=e.transaction;return n?ho(n,t):!1}function L$(e,t){if(!t?.length)return!1;const n=p1(e);return n?ho(n,t):!1}function D$(e,t){if(!t?.length)return!0;const n=p1(e);return n?ho(n,t):!0}function M$(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function p1(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?M$(n):null}catch{return Ve&&Ee.error(`Cannot extract url for event ${Lc(e)}`),null}}function P$(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function F$(e,t,n,r,i,s){if(!i.exception?.values||!s||!As(s.originalException))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=$w(e,t,r,s.originalException,n,i.exception.values,l,0))}function $w(e,t,n,r,i,s,l,u){if(s.length>=n+1)return s;let d=[...s];if(As(r[i])){I6(l,u,r);const h=e(t,r[i]),m=d.length;k6(h,i,m,u),d=$w(e,t,n,r[i],i,[h,...d],h,m)}
27return lD(r)&&r.errors.forEach((h,m)=>{if(As(h)){I6(l,u,r);const g=e(t,h),y=d.length;k6(g,`errors[${m}]`,y,u),d=$w(e,t,n,h,i,[g,...d],g,y)}}),d}function lD(e){return Array.isArray(e.errors)}function I6(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...lD(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function k6(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function B$(e){return As(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function E6(e){return B$(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}const T6=new Set([]);function N$(e){const t="console",n=Pl(t,e);return Fl(t,z$),n}const A6=new Set;function z$(){"console"in Et&&QX.forEach(function(e){A6.has(e)||!(e in Et.console)||(A6.add(e),Gi(Et.console,e,function(t){return u1[e]=t,function(...n){const r=n[0],i=u1[e],s=T6.size&&typeof r=="string"&&ho(r,T6);s||Sa("console",{args:n,level:e}),(!s||Ve&&Ee.isEnabled())&&i?.apply(Et.console,n)}}))})}function H$(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const U$="Dedupe",W$=(()=>{let e;return{name:U$,processEvent(t){if(t.type)return t;try{if(q$(t,e))return Ve&&Ee.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),V$=W$;function q$(e,t){return t?!!(G$(e,t)||Y$(e,t)):!1}function G$(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!uD(e,t)||!cD(e,t))}function Y$(e,t){const n=_6(t),r=_6(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!uD(e,t)||!cD(e,t))}function cD(e,t){let n=L_(e),r=L_(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],l=n[i];if(s.filename!==l.filename||s.lineno!==l.lineno||s.colno!==l.colno||s.function!==l.function)return!1}return!0}function uD(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function _6(e){return e.exception?.values?.[0]}const K$="ConversationId",X$=(()=>({name:K$,setup(e){e.on("spanStart",t=>{const n=qt().getScopeData(),r=Oi().getScopeData(),i=n.conversationId||r.conversationId;if(i){const{op:s,data:l,description:u}=Wt(t);if(!s?.startsWith("gen_ai.")&&!l["ai.operationId"]&&!u?.startsWith("ai."))return;t.setAttribute(VJ,i)}})}})),J$=X$;function Z$(e,t,n,r,i){if(!e.fetchData)return;const{method:s,url:l}=e.fetchData,u=Ta()&&t(l);if(e.endTimestamp){const I=e.fetchData.__span;if(!I)return;const w=r[I];w&&(u&&(eee(w,e),Q$(w,e,i)),delete r[I]);return}const{spanOrigin:d="auto.http.browser",propagateTraceparent:h=!1}=typeof i=="object"?i:{spanOrigin:i},m=Mt(),g=!!$i(),y=g||!!m&&js(m),b=u&&y?zl(ree(l,s,d,m)):new Zc,S=DL(b)&&g?void 0:b;if(u&&!y&&m?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=b.spanContext().spanId,r[b.spanContext().spanId]=b,n(e.fetchData.url)){const I=e.args[0],w={...e.args[1]||{}},C=$$(I,w,Ta()&&y?S:void 0,h);C&&(e.args[1]=w,w.headers=C)}if(m){const I={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};m.emit("beforeOutgoingRequestSpan",b,I)}return b}function Q$(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function $$(e,t,n,r){const i=oD({span:n,propagateTraceparent:r}),s=i["sentry-trace"],l=i.baggage,u=i.traceparent;if(!s)return;const d=t.headers||($C(e)?e.headers:void 0);if(d)if(tee(d)){const h=new Headers(d);if(h.get("sentry-trace")||h.set("sentry-trace",s),r&&u&&!h.get("traceparent")&&h.set("traceparent",u),l){const m=h.get("baggage");m?A0(m)||h.set("baggage",`${m},${l}`):h.set("baggage",l)}return h}else if(nee(d)){const h=[...d];h.find(g=>g[0]==="sentry-trace")||h.push(["sentry-trace",s]),r&&u&&!h.find(g=>g[0]==="traceparent")&&h.push(["traceparent",u]);const m=d.find(g=>g[0]==="baggage"&&typeof g[1]=="string"&&A0(g[1]));return l&&!m&&h.push(["baggage",l]),h}else{const h="sentry-trace"in d?d["sentry-trace"]:void 0,m="traceparent"in d?d.traceparent:void 0,g="baggage"in d?d.baggage:void 0,y=g?Array.isArray(g)?[...g]:[g]:[],b=g&&(Array.isArray(g)?g.find(I=>A0(I)):A0(g));l&&!b&&y.push(l);const S=Object.assign({},d,{"sentry-trace":h??s,...y.length>0&&{baggage:y.join(",")}});return r&&u&&!m&&(S.traceparent=u),S}else return{"sentry-trace":s,...l&&{baggage:l},...u&&{traceparent:u}}}function eee(e,t){if(t.response){lL(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:wr,message:"internal_error"});e.end()}function A0(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(f1))}function tee(e){return typeof Headers<"u"&&uv(e,Headers)}function nee(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}function ree(e,t,n,r){if(e.startsWith("data:")){const l=qa(e);return{name:`${t} ${l}`,attributes:R6(e,void 0,t,n,r)}}const i=h1(e),s=i?aD(i):e;return{name:`${t} ${s}`,attributes:R6(e,i,t,n,r)}}function R6(e,t,n,r,i){const s={url:Ca(qa(e),i),type:"fetch","http.method":n,[ar]:r,[Ea]:"http.client"};return t&&(uI(t)||(s[FL]=Ca(qa(t.href),i),s[wf]=Ca(qa(t.href),i),s["server.address"]=t.host),t.search&&(s["http.query"]=iD(t.search,i)),t.hash&&(s["http.fragment"]=t.hash)),s}function dD(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Rp=Et;function iee(){return"history"in Rp&&!!Rp.history}function aee(){if(!("fetch"in Rp))return!1;
27try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function e5(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function see(){if(typeof EdgeRuntime=="string")return!0;if(!aee())return!1;if(e5(Rp.fetch))return!0;let e=!1;const t=Rp.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=e5(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ve&&Ee.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function dI(e,t){const n="fetch",r=Pl(n,e);return Fl(n,()=>fD(void 0,t)),r}function oee(e){const t="fetch-body-resolved",n=Pl(t,e);return Fl(t,()=>fD(cee)),n}function fD(e,t=!1){t&&!see()||Gi(Et,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:l}=uee(r),u={args:r,fetchData:{method:s,url:l},startTimestamp:dr()*1e3,virtualError:i,headers:dee(r)};return e||Sa("fetch",{...u}),n.apply(Et,r).then(async d=>(e?e(d):Sa("fetch",{...u,endTimestamp:dr()*1e3,response:d}),d),d=>{Sa("fetch",{...u,endTimestamp:dr()*1e3,error:d}),As(d)&&d.stack===void 0&&(d.stack=i.stack,$r(d,"framesToPop",1));const m=Mt()?.getOptions().enhanceFetchErrorMessages??"always";if(m!==!1&&As(d)&&d.name==="TypeError"&&(d.message==="Failed to fetch"||d.message==="Load failed"||d.message==="NetworkError when attempting to fetch resource."))try{const b=new URL(u.fetchData.url).host;m==="always"?d.message=`${d.message} (${b})`:$r(d,"__sentry_fetch_url_host__",b)}catch{}throw d})}})}async function lee(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let l;try{l=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:u}=await r.read();clearTimeout(l),u&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(l)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function cee(e){let t;try{t=e.clone()}catch{return}lee(t,()=>{Sa("fetch-body-resolved",{endTimestamp:dr()*1e3,response:e})})}function Dy(e,t){return lv(e)&&!!e[t]}function j6(e){return typeof e=="string"?e:e?Dy(e,"url")?e.url:e.toString?e.toString():"":""}function uee(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:j6(n),method:Dy(r,"method")?String(r.method).toUpperCase():$C(n)&&Dy(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:j6(t),method:Dy(t,"method")?String(t.method).toUpperCase():"GET"}}function dee(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if($C(t))return new Headers(t.headers)}catch{}}const hD=Et;function $d(){try{return hD.document.location.href}catch{return""}}function pD(e,t=5){if(!hD.HTMLElement)return null;let n=e;for(let r=0;r<t;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}const mt=Et;let t5=0;function mD(){return t5>0}function fee(){t5++,setTimeout(()=>{t5--})}function ef(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const s=e.__sentry_wrapped__;return typeof s=="function"?s:e}if(eI(e))return e}catch{return e}const r=function(...i){Et._sentryWrappedDepth=(Et._sentryWrappedDepth||0)+1;try{const s=i.map(l=>ef(l,t));return e.apply(this,s)}catch(s){throw fee(),pm(l=>{l.addEventProcessor(u=>(t.mechanism&&(Vw(u,void 0),zc(u,t.mechanism)),u.extra={...u.extra,arguments:i},u)),pv(s)}),s}finally{Et._sentryWrappedDepth=(Et._sentryWrappedDepth||0)-1}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}JO(r,e),$r(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function m1(){const e=$d(),{referrer:t}=mt.document||{},{userAgent:n}=mt.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function fI(e,t){const n=gv(e,t),r={type:yee(t),value:vee(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function hee(e,t,n,r){const s=Mt()?.getOptions().normalizeDepth,l=Cee(t),u={__serialized__:$O(t,s)};if(l)return{exception:{values:[fI(e,l)]},extra:u};const d={exception:{values:[{type:cv(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:See(t,{isUnhandledRejection:r})}]},extra:u};if(n){const h=gv(e,n);h.length&&(d.exception.values[0].stacktrace={frames:h})}return d}function aS(e,t){return{exception:{values:[fI(e,t)]}}}
27function gv(e,t){const n=t.stacktrace||t.stack||"",r=mee(t),i=gee(t);try{return e(n,r,i)}catch{}return[]}const pee=/Minified React error #\d+;/i;function mee(e){return e&&pee.test(e.message)?1:0}function gee(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function gD(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function yee(e){const t=e?.name;return!t&&gD(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function vee(e){const t=e?.message;return gD(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?E6(t.error):E6(e):"No error message"}function bee(e,t,n,r){const i=n?.syntheticException||void 0,s=hI(e,t,i,r);return zc(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),ym(s)}function xee(e,t,n="info",r,i){const s=r?.syntheticException||void 0,l=n5(e,t,s,i);return l.level=n,r?.event_id&&(l.event_id=r.event_id),ym(l)}function hI(e,t,n,r,i){let s;if(XO(t)&&t.error)return aS(e,t.error);if(M_(t)||cJ(t)){const l=t;if("stack"in t){s=aS(e,t);const u=s.exception?.values?.[0];if(r&&n&&u&&!u.stacktrace){const d=gv(e,n);d.length&&(u.stacktrace={frames:d},zc(s,{synthetic:!0}))}}else{const u=l.name||(M_(l)?"DOMError":"DOMException"),d=l.message?`${u}: ${l.message}`:u;s=n5(e,d,n,r),Vw(s,d)}return"code"in l&&(s.tags={...s.tags,"DOMException.code":`${l.code}`}),s}return As(t)?aS(e,t):Ip(t)||cv(t)?(s=hee(e,t,n,i),zc(s,{synthetic:!0}),s):(s=n5(e,t,n,r),Vw(s,`${t}`),zc(s,{synthetic:!0}),s)}function n5(e,t,n,r){const i={};if(r&&n){const s=gv(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),zc(i,{synthetic:!0})}if(QC(t)){const{__sentry_template_string__:s,__sentry_template_values__:l}=t;return i.logentry={message:s,params:l},i}return i.message=t,i}function See(e,{isUnhandledRejection:t}){const n=dJ(e),r=t?"promise rejection":"exception";return XO(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:cv(e)?`Event \`${wee(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function wee(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Cee(e){return Object.values(e).find(As)}class Iee extends o${constructor(t){const n=kee(t),r=mt.SENTRY_SDK_SOURCE||jQ();sD(n,"browser",["browser"],r),super(n);const{userInfo:i}=this.getDataCollectionOptions();n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:i?"auto":"never",...n._metadata.sdk.settings});const{sendClientReports:s}=this._options;mt.document&&mt.document.addEventListener("visibilitychange",()=>{mt.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),i&&this.on("beforeSendSession",b$)}eventFromException(t,n){return bee(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return xee(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function kee(e){return{release:"main-20261002-f87f82c1c",sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Xa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ut=Et,Eee=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",vm=(e,t,n,r)=>{let i,s;return l=>{t.value>=0&&(l||r)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=Eee(t.value,n),e(t)))}},bm=(e=!0)=>{const t=ut.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Cf=()=>bm()?.activationStart??0;function wl(e,t,n){ut.document&&ut.addEventListener(e,t,n)}function g1(e,t,n){ut.document&&ut.removeEventListener(e,t,n)}let Nd=-1;const yD=new Set,Tee=()=>ut.document?.visibilityState==="hidden"&&!ut.document?.prerendering?0:1/0,My=e=>{if(Aee(e)&&Nd>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of yD)t();isFinite(Nd)||(Nd=e.type==="visibilitychange"?e.timeStamp:0,g1("prerenderingchange",My,!0))}},xm=()=>{if(ut.document&&Nd<0){const e=Cf();Nd=(ut.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??Tee(),wl("visibilitychange",My,!0),wl("pagehide",My,!0),wl("prerenderingchange",My,!0)}return{get firstHiddenTime(){return Nd},onHidden(e){yD.add(e)}}};function Aee(e){return e.type==="pagehide"||ut.document?.visibilityState==="hidden"}const _ee=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Sm=(e,t=-1)=>{const n=bm();let r="navigate";return n&&(ut.document?.prerendering||Cf()>0?r="prerender":ut.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:_ee(),navigationType:r}},sS=new WeakMap;function pI(e,t){try{return sS.get(e)||sS.set(e,new t),sS.get(e)}catch{return new t}}class Ree{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const If=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},mI=e=>{let t=!1;return()=>{t||(e(),t=!0)}},yv=e=>{ut.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},jee=[1800,3e3],Oee=(e,t={})=>{yv(()=>{const n=xm(),r=Sm("FCP");let i;const l=If("paint",u=>{for(const d of u)d.name==="first-contentful-paint"&&(l.disconnect(),d.startTime<n.firstHiddenTime&&(r.value=Math.max(d.startTime-Cf(),0),r.entries.push(d),i(!0)))});l&&(i=vm(e,r,jee,t.reportAllChanges))})},Lee=[.1,.25],Dee=(e,t={})=>{Oee(mI(()=>{const n=Sm("CLS",0);let r;const i=xm(),s=pI(t,Ree),l=d=>{for(const h of d)s._processEntry(h);s._sessionValue>
27n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},u=If("layout-shift",l);u&&(r=vm(e,n,Lee,t.reportAllChanges),i.onHidden(()=>{l(u.takeRecords()),r(!0)}),ut?.setTimeout?.(r))}))};let vD=0,oS=1/0,_0=0;const Mee=e=>{e.forEach(t=>{t.interactionId&&(oS=Math.min(oS,t.interactionId),_0=Math.max(_0,t.interactionId),vD=_0?(_0-oS)/7+1:0)})};let r5;const bD=()=>r5?vD:performance.interactionCount||0,Pee=()=>{"interactionCount"in performance||r5||(r5=If("event",Mee,{type:"event",buffered:!0,durationThreshold:0}))},lS=10;let xD=0;const Fee=()=>bD()-xD;class Bee{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){xD=bD(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Fee()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<lS||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,s)=>s._latency-i._latency),this._longestInteractionList.length>lS){const i=this._longestInteractionList.splice(lS);for(const s of i)this._longestInteractionMap.delete(s.id)}this._onAfterProcessingINPCandidate?.(r)}}}const gI=e=>{const t=ut.requestIdleCallback||ut.setTimeout;ut.document?.visibilityState==="hidden"?e():(e=mI(e),wl("visibilitychange",e,{once:!0,capture:!0}),wl("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),g1("visibilitychange",e,{capture:!0}),g1("pagehide",e,{capture:!0})}))},Nee=[200,500],zee=40,Hee=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=xm();yv(()=>{Pee();const r=Sm("INP");let i;const s=pI(t,Bee),l=d=>{gI(()=>{for(const m of d)s._processEntry(m);const h=s._estimateP98LongestInteraction();h&&h._latency!==r.value&&(r.value=h._latency,r.entries=h.entries,i())})},u=If("event",l,{durationThreshold:t.durationThreshold??zee});i=vm(e,r,Nee,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{l(u.takeRecords()),i(!0)}))})};class Uee{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const Wee=[2500,4e3],Vee=(e,t={})=>{yv(()=>{const n=xm(),r=Sm("LCP");let i;const s=pI(t,Uee),l=d=>{t.reportAllChanges||(d=d.slice(-1));for(const h of d)h&&(s._processEntry(h),h.startTime<n.firstHiddenTime&&(r.value=Math.max(h.startTime-Cf(),0),r.entries=[h],i()))},u=If("largest-contentful-paint",l);if(u){i=vm(e,r,Wee,t.reportAllChanges);const d=mI(()=>{l(u.takeRecords()),u.disconnect(),i(!0)}),h=m=>{m.isTrusted&&(gI(d),g1(m.type,h,{capture:!0}))};for(const m of["keydown","click","visibilitychange"])wl(m,h,{capture:!0})}})},qee=[800,1800],i5=e=>{ut.document?.prerendering?yv(()=>i5(e)):ut.document?.readyState!=="complete"?addEventListener("load",()=>i5(e),!0):setTimeout(e)},Gee=(e,t={})=>{const n=Sm("TTFB"),r=vm(e,n,qee,t.reportAllChanges);i5(()=>{const i=bm();i&&(n.value=Math.max(i.responseStart-Cf(),0),n.entries=[i],r(!0))})},op={},y1={};let SD,wD,CD,ID;function yI(e,t=!1){return vv("cls",e,Kee,SD,t)}function vI(e,t=!1){return vv("lcp",e,Xee,wD,t)}function Yee(e){return vv("ttfb",e,Jee,CD)}function kD(e){return vv("inp",e,Zee,ID)}function tf(e,t){return ED(e,t),y1[e]||(Qee(e),y1[e]=!0),TD(e,t)}function wm(e,t){const n=op[e];if(n?.length)for(const r of n)try{r(t)}catch(i){Xa&&Ee.error(`Error while triggering instrumentation handler. 28Type: ${e} 29Name: ${xo(r)} 30Error:`,i)}}function Kee(){return Dee(e=>{wm("cls",{metric:e}),SD=e},{reportAllChanges:!0})}function Xee(){return Vee(e=>{wm("lcp",{metric:e}),wD=e},{reportAllChanges:!0})}function Jee(){return Gee(e=>{wm("ttfb",{metric:e}),CD=e})}function Zee(){return Hee(e=>{wm("inp",{metric:e}),ID=e})}function vv(e,t,n,r,i=!1){ED(e,t);let s;return y1[e]||(s=n(),y1[e]=!0),r&&t({metric:r}),TD(e,t,i?s:void 0)}function Qee(e){const t={};e==="event"&&(t.durationThreshold=0),If(e,n=>{wm(e,{entries:n})},t)}function ED(e,t){op[e]=op[e]||[],op[e].push(t)}function TD(e,t,n){return()=>{n&&n();const r=op[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function $ee(e){return"duration"in e}const ete=80,Tc={};try{typeof Node<"u"&&(Tc.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(Tc.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,Tc.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,Tc.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,Tc.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(Tc.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function ll(e,t,n){const r=Tc[t];if(r)try{return r.call(e,n)}catch{}const i=e[t];return typeof i=="function"?i.call(e,n):i}function Nr(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,l=0;const u=" > ",d=u.length;let h;const m=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||ete;for(;n&&s++<r&&(h=tte(n,m),!(h==="html"||s>1&&l+i.length*d+h.length>=g));)i.push(h),l+=h.length,n=ll(n,"parentNode");return i.reverse().join(u)}catch{return"<unknown>"}}function tte(e,t){const n=[],r=ll(e,"tagName");if(!r)return"";if(typeof HTMLElement<"u"&&e instanceof HTMLElement){const s=ll(e,"dataset");if(s){if(s.sentryComponent)return s.sentryComponent;if(s.sentryElement)return s.sentryElement}}n.push(r.toLowerCase());const i=t?.length?t.filter(s=>ll(e,"getAttribute",s)).map(s=>[s,ll(e,"getAttribute",s)]):null;if(i?.length)i.forEach(s=>
30{n.push(`[${s[0]}="${s[1]}"]`)});else{const s=ll(e,"id");s&&n.push(`#${s}`);const l=ll(e,"className");if(l&&fo(l)){const u=l.split(/\s+/);for(const d of u)n.push(`.${d}`)}}for(const s of["aria-label","type","name","title","alt"]){const l=ll(e,"getAttribute",s);l&&n.push(`[${s}="${l}"]`)}return n.join("")}const nte=e=>{const t=n=>{(n.type==="pagehide"||ut.document?.visibilityState==="hidden")&&e(n)};wl("visibilitychange",t,{capture:!0,once:!0}),wl("pagehide",t,{capture:!0,once:!0})};function cS(e){return typeof e=="number"&&isFinite(e)}function Al(e,t,n,{...r}){const i=Wt(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),LL(e,()=>{const s=zl({startTime:t,...r});return s&&s.end(n),s})}function bI(e){const t=Mt();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:l,environment:u}=t.getOptions(),{userInfo:d}=t.getDataCollectionOptions(),m=t.getIntegrationByName("Replay")?.getReplayId(),g=qt(),y=g.getUser(),b=y!==void 0?y.email||y.id||y.ip_address:void 0;let S;try{S=g.getScopeData().contexts.profile.profile_id}catch{}const I={release:l,environment:u,user:b||void 0,profile_id:S||void 0,replay_id:m||void 0,transaction:r,"user_agent.original":ut.navigator?.userAgent,"client.address":d?"{{auto}}":void 0,...i};return zl({name:n,attributes:I,startTime:s,experimental:{standalone:!0}})}function kf(){return ut.addEventListener&&ut.performance}function xn(e){return e/1e3}function rte(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function bv(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function xv(e,t){let n,r=!1;function i(u){!r&&n&&t(u,n.spanContext().spanId,n),r=!0}nte(()=>{i("pagehide")});const s=e.on("beforeStartNavigationSpan",(u,d)=>{d?.isRedirect||(i("navigation"),s(),l())}),l=e.on("afterStartPageLoadSpan",u=>{n=u,l()})}function ite(e){let t=0,n;if(!bv("layout-shift"))return;const r=yI(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);xv(e,(i,s)=>{ate(t,n,s,i),r()})}function ate(e,t,n,r){Xa&&Ee.log(`Sending CLS span (${e})`);const i=t?xn((zr()||0)+t.startTime):dr(),s=qt().getScopeData().transactionName,l=t?Nr(t.sources[0]?.node):"Layout shift",u={[ar]:"auto.http.browser.cls",[Ea]:"ui.webvital.cls",[Nl]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((h,m)=>{u[`cls.source.${m+1}`]=Nr(h.node)});const d=bI({name:l,transaction:s,attributes:u,startTime:i});d&&(d.addEvent("cls",{[mm]:"",[gm]:e}),d.end(i))}const ste=6e4;function Cm(e){return e!=null&&e>0&&e<=ste}function ote(e){let t=0,n;if(!bv("largest-contentful-paint"))return;const r=vI(({metric:i})=>{const s=i.entries[i.entries.length-1];!s||!Cm(i.value)||(t=i.value,n=s)},!0);xv(e,(i,s)=>{lte(t,n,s,i),r()})}function lte(e,t,n,r){if(!Cm(e))return;Xa&&Ee.log(`Sending LCP span (${e})`);const i=xn((zr()||0)+(t?.startTime||0)),s=qt().getScopeData().transactionName,l=t?Nr(t.element):"Largest contentful paint",u={[ar]:"auto.http.browser.lcp",[Ea]:"ui.webvital.lcp",[Nl]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(u["lcp.element"]=Nr(t.element)),t.id&&(u["lcp.id"]=t.id),t.url&&(u["lcp.url"]=t.url),t.loadTime!=null&&(u["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(u["lcp.renderTime"]=t.renderTime),t.size!=null&&(u["lcp.size"]=t.size));const d=bI({name:l,transaction:s,attributes:u,startTime:i});d&&(d.addEvent("lcp",{[mm]:"millisecond",[gm]:e}),d.end(i))}function ha(e){return e&&((zr()||performance.timeOrigin)+e)/1e3}function AD(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=rte(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return zr()||kf()?.timeOrigin?cte({...t,"http.request.redirect_start":ha(e.redirectStart),"http.request.redirect_end":ha(e.redirectEnd),"http.request.worker_start":ha(e.workerStart),"http.request.fetch_start":ha(e.fetchStart),"http.request.domain_lookup_start":ha(e.domainLookupStart),"http.request.domain_lookup_end":ha(e.domainLookupEnd),"http.request.connect_start":ha(e.connectStart),"http.request.secure_connection_start":ha(e.secureConnectionStart),"http.request.connection_end":ha(e.connectEnd),"http.request.request_start":ha(e.requestStart),"http.request.response_start":ha(e.responseStart),"http.request.response_end":ha(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function cte(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const ute=2147483647;let O6=0,_i={},Ei,v1;function dte({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=kf();if(r&&zr()){r.mark&&ut.performance.mark("sentry-tracing-init");const i=t?ote(n):t===!1?gte():void 0,s=e?ite(n):e===!1?mte():void 0,l=yte(),u=vte();return()=>{l(),u(),i?.(),s?.()}}return()=>{}}function fte(){tf("longtask",({entries:e})=>{const t=$i();if(!t)return;const{op:n,start_timestamp:r}=Wt(t);for(const i of e){const s=xn(zr()+i.startTime),l=xn(i.duration);n==="navigation"&&r&&s<r||Al(t,s,s+l,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[ar]:"auto.ui.browser.metrics"}})}})}function hte(){new PerformanceObserver(t=>{const n=$i();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=xn(zr()+r.startTime),{start_timestamp:s,op:l}=Wt(n);if(l==="navigation"&&s&&i<s)continue;const u=xn(r.duration),d={[ar]:"auto.ui.browser.metrics"},h=r.scripts[0],{invoker:m,invokerType:g,sourceURL:y,sourceFunctionName:b,sourceCharPosition:S}=h;d["browser.script.invoker"]=m,d["browser.script.invoker_type"]=g,y&&(d["code.filepath"]=y),b&&(d["code.function"]=b),S!==-1&&(d["browser.script.source_char_position"]=S),Al(n,i,i+u,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:d})}}).observe({type:"long-animation-frame",buffered:!0})}function pte(){tf("event",({entries:e})=>{const t=$i();if(t){for(const n of e)if(n.name==="click"){const r=xn(zr()+n.startTime),i=xn(n.duration),s={name:Nr(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[ar]:"auto.ui.browser.metrics"}},l=pD(n.target);l&&(s.attributes["ui.component_name"]=l),Al(t,r,r+i,s)}}})}function mte(){return yI(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_i.cls={value:e.value,unit:""},v1=t)},!0)}function gte(){return vI(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!Cm(e.value)||(_i.lcp={value:e.value,unit:"millisecond"},Ei=t)},!0)}function yte(){return Yee(({metric:e})=>{e.entries[e.entries.length-1]&&(_i.ttfb={value:e.value,unit:"millisecond"})})}function vte(){return tf("paint",({entries:e})=>{const t=xm();for(const n of e){const r=n.startTime<t.firstHiddenTime;n.name==="first-paint"&&r&&(_i.fp={value:n.startTime,unit:"millisecond"}),n.name==="first-contentful-paint"&&r&&(_i.fcp={value:n.startTime,unit:"millisecond"})}})}function bte(e,t){const n=kf(),r=zr();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:i,ignorePerformanceApiSpans:s,ignoreResourceSpans:l}=t,u=xn(r),d=n.getEntries(),{op:h,start_timestamp:m}=Wt(e);
30d.slice(O6).forEach(g=>{const y=xn(g.startTime),b=xn(Math.max(0,g.duration));if(!(h==="navigation"&&m&&u+y<m))switch(g.entryType){case"navigation":{Ite(e,g,u);break}case"mark":case"paint":case"measure":{wte(e,g,y,b,u,s);break}case"resource":{Tte(e,g,g.name,y,b,u,l);break}}}),O6=Math.max(d.length-1,0),Ate(e,i)}function xte(e,t){const n=zr();if(!kf()?.getEntries||!n){L6();return}const{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:s}=t,l=xn(n);if(Wt(e).op==="pageload"){if(jte(_i),r){const u=(d,h,m)=>{const g=m??`browser.web_vital.${d}.value`;e.setAttribute(g,h),Xa&&Ee.log("Setting web vital attribute",{[g]:h},"on pageload span")};["ttfb","fp","fcp"].forEach(d=>{_i[d]&&u(d,_i[d].value)}),_i["ttfb.requestTime"]&&u("ttfb.requestTime",_i["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else i||delete _i.cls,s||delete _i.lcp,Object.entries(_i).forEach(([u,d])=>{OL(u,d.value,d.unit,e)}),_te(e,t);e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",l),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",Cf())}L6()}function L6(){Ei=void 0,v1=void 0,_i={}}function Ste(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components â"}catch{return}}function wte(e,t,n,r,i,s){if(Ste(t)||["mark","measure"].includes(t.entryType)&&ho(t.name,s))return;const l=bm(!1),u=xn(l?l.requestStart:0),d=i+Math.max(n,u),h=i+n,m=h+r,g={[ar]:"auto.resource.browser.metrics"};d!==h&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=d),Cte(g,t),d<=m&&Al(e,d,m,{name:t.name,op:t.entryType,attributes:g})}function Cte(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Jc(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Jc(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Ite(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{R0(e,t,r,n)}),R0(e,t,"secureConnection",n,"TLS/SSL"),R0(e,t,"fetch",n,"cache"),R0(e,t,"domainLookup",n,"DNS"),Ete(e,t,n)}function R0(e,t,n,r,i=n){const s=kte(n),l=t[s],u=t[`${n}Start`];!u||!l||Al(e,r+xn(u),r+xn(l),{op:`browser.${i}`,name:t.name,attributes:{[ar]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function kte(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Ete(e,t,n){const r=n+xn(t.requestStart),i=n+xn(t.responseEnd),s=n+xn(t.responseStart);t.responseEnd&&(Al(e,r,i,{op:"browser.request",name:t.name,attributes:{[ar]:"auto.ui.browser.metrics"}}),Al(e,s,i,{op:"browser.response",name:t.name,attributes:{[ar]:"auto.ui.browser.metrics"}}))}function Tte(e,t,n,r,i,s,l){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(l?.includes(u))return;const d={[ar]:"auto.resource.browser.metrics"},h=Uc(n);h.protocol&&(d["url.scheme"]=h.protocol.split(":").pop()),h.host&&(d["server.address"]=h.host),d["url.same_origin"]=n.includes(ut.location.origin),d[wf]=Ca(n),Rte(t,d,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const m={...d,...AD(t)},g=s+r,y=g+i;Al(e,g,y,{name:n.replace(ut.location.origin,""),op:u,attributes:m})}function Ate(e,t){const n=ut.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),cS(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):Wt(e).op==="pageload"&&OL("connection.rtt",r.rtt,"millisecond"))),cS(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),cS(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function _te(e,t){Ei&&t.recordLcpOnPageloadSpan&&(Ei.element&&e.setAttribute("lcp.element",Nr(Ei.element)),Ei.id&&e.setAttribute("lcp.id",Ei.id),Ei.url&&e.setAttribute("lcp.url",Ei.url.trim().slice(0,200)),Ei.loadTime!=null&&e.setAttribute("lcp.loadTime",Ei.loadTime),Ei.renderTime!=null&&e.setAttribute("lcp.renderTime",Ei.renderTime),e.setAttribute("lcp.size",Ei.size)),v1?.sources&&t.recordClsOnPageloadSpan&&v1.sources.forEac
30h((n,r)=>e.setAttribute(`cls.source.${r+1}`,Nr(n.node)))}function Rte(e,t,n){n.forEach(([r,i])=>{const s=e[r];s!=null&&(typeof s=="number"&&s<ute||typeof s=="string")&&(t[i]=s)})}function jte(e){const t=bm(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const uS=[],lp=new Map,pd=new Map,_D=60;function Ote(){if(kf()&&zr()){const t=Lte();return()=>{t()}}return()=>{}}const jp={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Lte(){return kD(Dte)}const Dte=({metric:e})=>{if(e.value==null)return;const t=xn(e.value);if(t>_D)return;const n=e.entries.find(S=>S.duration===e.value&&jp[S.name]);if(!n)return;const{interactionId:r}=n,i=jp[n.name],s=xn(zr()+n.startTime),l=$i(),u=l?Kr(l):void 0,d=r!=null?lp.get(r):void 0,h=d?.span||u,m=h?Wt(h).description:qt().getScopeData().transactionName,g=d?.elementName||Nr(n.target),y={[ar]:"auto.http.browser.inp",[Ea]:`ui.interaction.${i}`,[Nl]:n.duration},b=bI({name:g,transaction:m,attributes:y,startTime:s});b&&(b.addEvent("inp",{[mm]:"millisecond",[gm]:e.value}),b.end(s+t))};function Mte(e){return e!=null?lp.get(e):void 0}function Pte(){const e=Object.keys(jp);mv()&&e.forEach(i=>{ut.addEventListener(i,t,{capture:!0,passive:!0})});function t(i){const s=i.target;if(!s)return;const l=Nr(s),u=Math.round(i.timeStamp);if(pd.set(u,l),pd.size>50){const d=pd.keys().next().value;d!==void 0&&pd.delete(d)}}function n(i){const s=Math.round(i.startTime);let l=pd.get(s);if(!l)for(let u=-5;u<=5;u++){const d=pd.get(s+u);if(d){l=d;break}}return l||"<unknown>"}const r=({entries:i})=>{const s=$i(),l=s&&Kr(s);i.forEach(u=>{if(!$ee(u))return;const d=u.interactionId;if(d==null||lp.has(d))return;const h=u.target?Nr(u.target):n(u);if(uS.length>10){const m=uS.shift();lp.delete(m)}uS.push(d),lp.set(d,{span:l,elementName:h})})};tf("event",r),tf("first-input",r)}function xI(e){const{name:t,op:n,origin:r,metricName:i,value:s,attributes:l,parentSpan:u,reportEvent:d,startTime:h,endTime:m}=e,g=qt().getScopeData().transactionName,y={[ar]:r,[Ea]:n,[Nl]:0,[`browser.web_vital.${i}.value`]:s,[NL]:g,[BL]:g,"user_agent.original":ut.navigator?.userAgent,...l};u&&xL(u).attributes?.[Ea]==="pageload"&&(y["sentry.pageload.span_id"]=u.spanContext().spanId),d&&(y[`browser.web_vital.${i}.report_event`]=d);const b=zl({name:t,attributes:y,startTime:h,parentSpan:u});b&&b.end(m??h)}function Fte(e){let t=0,n;if(!bv("largest-contentful-paint"))return;const r=vI(({metric:i})=>{const s=i.entries[i.entries.length-1];!s||!Cm(i.value)||(t=i.value,n=s)},!0);xv(e,(i,s,l)=>{Bte(t,n,l,i),r()})}function Bte(e,t,n,r){if(!Cm(e))return;Xa&&Ee.log(`Sending LCP span (${e})`);const i=zr()||0,s=xn(i),l=xn(i+(t?.startTime||0)),u=t?Nr(t.element):"Largest contentful paint",d={};t?.element&&(d["browser.web_vital.lcp.element"]=Nr(t.element)),t?.id&&(d["browser.web_vital.lcp.id"]=t.id),t?.url&&(d["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(d["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(d["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(d["browser.web_vital.lcp.size"]=t.size),xI({name:u,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:d,parentSpan:n,reportEvent:r,startTime:s,endTime:l})}function Nte(e){let t=0,n;if(!bv("layout-shift"))return;const r=yI(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);xv(e,(i,s,l)=>{zte(t,n,l,i),r()})}function zte(e,t,n,r){Xa&&Ee.log(`Sending CLS span (${e})`);const i=t?xn((zr()||0)+t.startTime):dr(),s=t?Nr(t.sources[0]?.node):"Layout shift",l={};t?.sources&&t.sources.forEach((u,d)=>{l[`browser.web_vital.cls.source.${d+1}`]=Nr(u.node)}),xI({name:s,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:l,parentSpan:n,reportEvent:r,startTime:i})}function Hte(){if(!kf()||!zr())return;kD(({metric:n})=>{if(n.value==null||xn(n.value)>_D)return;const i=n.entries.find(s=>s.duration===n.value&&jp[s.name]);i&&Ute(n.value,i)})}function Ute(e,t){Xa&&Ee.log(`Sending INP span (${e})`);const n=xn(zr()+t.startTime),r=xn(e),i=jp[t.name],s=Mte(t.interactionId),l=$i(),u=l?Kr(l):void 0,d=s?.span||u,h=d?xL(d).name:qt().getScopeData().transactionName,m=s?.elementName||Nr(t.target);xI({name:m,op:`ui.interaction.${i}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[Nl]:t.duration,[NL]:h,[BL]:h},startTime:n,endTime:n+r,parentSpan:d})}const Wte=1e3;let D6,a5,s5;function Vte(e){Pl("dom",e),Fl("dom",qte)}function qte(){if(!ut.document)return;const e=Sa.bind(null,"dom"),t=M6(e,!0);ut.document.addEventListener("click",t,!1),ut.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=ut[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(Gi(i,"addEventListener",function(s){return function(l,u,d){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},m=h[l]=h[l]||{refCount:0};if(!m.handler){const g=M6(e);m.handler=g,s.call(this,l,g,d)}m.refCount++}catch{}return s.call(this,l,u,d)}}),Gi(i,"removeEventListener",function(s){return function(l,u,d){if(l==="click"||l=="keypress")try{const h=this.__sentry_instrumentation_handlers__||{},m=h[l];m&&(m.refCount--,m.refCount<=0&&(s.call(this,l,m.handler,d),m.handler=void 0,delete h[l]),Object.keys(h).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,l,u,d)}}))})}function Gte(e){if(e.type!==a5)return!1;try{if(!e.target||e.target._sentryId!==s5)return!1}catch{}return!0}function Yte(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function M6(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Kte(n);if(Yte(n.type,r))return;$r(n,"_sentryCaptured",!0),r&&!r._sentryId&&$r(r,"_sentryId",wa());
30const i=n.type==="keypress"?"input":n.type;Gte(n)||(e({event:n,name:i,global:t}),a5=n.type,s5=r?r._sentryId:void 0),clearTimeout(D6),D6=ut.setTimeout(()=>{s5=void 0,a5=void 0},Wte)}}function Kte(e){try{return e.target}catch{return null}}let j0;function SI(e){const t="history";Pl(t,e),Fl(t,Xte)}function Xte(){if(ut.addEventListener("popstate",()=>{const t=ut.location.href,n=j0;if(j0=t,n===t)return;Sa("history",{from:n,to:t})}),!iee())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=j0,s=Jte(String(r));if(j0=s,i===s)return t.apply(this,n);Sa("history",{from:i,to:s})}return t.apply(this,n)}}Gi(ut.history,"pushState",e),Gi(ut.history,"replaceState",e)}function Jte(e){try{return new URL(e,ut.location.origin).toString()}catch{return e}}const Py={};function RD(e){const t=Py[e];if(t)return t;let n=ut[e];if(e5(n))return Py[e]=n.bind(ut);const r=ut.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s?.[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){Xa&&Ee.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(Py[e]=n.bind(ut))}function Zte(e){Py[e]=void 0}function PAe(...e){return RD("setTimeout")(...e)}const Td="__sentry_xhr_v3__";function jD(e){Pl("xhr",e),Fl("xhr",Qte)}function Qte(){if(!ut.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let i=new Error;const s=dr()*1e3,l=fo(r[0])?r[0].toUpperCase():void 0,u=$te(r[1]);if(!l||!u)return t.apply(n,r);n[Td]={method:l,url:u,request_headers:{}},l==="POST"&&u.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const d=()=>{const h=n[Td];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const m={endTimestamp:dr()*1e3,startTimestamp:s,xhr:n,virtualError:i};Sa("xhr",m),i=void 0,n.removeEventListener("readystatechange",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,m,g){return d(),h.apply(m,g)}}):n.addEventListener("readystatechange",d),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,m,g){const[y,b]=g,S=m[Td];return S&&fo(y)&&fo(b)&&(S.request_headers[y.toLowerCase()]=b),h.apply(m,g)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Td];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:dr()*1e3,xhr:n};return Sa("xhr",s),t.apply(n,r)}})}function $te(e){if(fo(e))return e;try{return e.toString()}catch{}}const ene=Symbol.for("sentry__originalRequestBody");function tne(e){return new URLSearchParams(e).toString()}function FAe(e,t=Ee){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[tne(e)];if(!e)return[void 0]}catch(n){return Xa&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Xa&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function BAe(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][ene];return n!==void 0?n:void 0}}function nne(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return Xa&&Ee.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 31`).reduce((n,r)=>{const[i,s]=r.split(": ");return s&&(n[i.toLowerCase()]=s),n},{}):{}}function rne(e){if(typeof Element>"u")return!1;try{return e instanceof Element}catch{return!1}}const ine=40;function ane(e,t=RD("fetch")){let n=0,r=0;async function i(s){const l=s.body.length;n+=l,r++;const u={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const d=await t(e.url,u);return{statusCode:d.status,headers:{"x-sentry-rate-limits":d.headers.get("X-Sentry-Rate-Limits"),"retry-after":d.headers.get("Retry-After")}}}catch(d){throw Zte("fetch"),d}finally{n-=l,r--}}return XQ(e,i,cI(e.bufferSize||ine))}const pi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sne=30,one=50;function o5(e,t,n,r){const i={filename:e,function:t==="<anonymous>
31"?Xc:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const lne=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,cne=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,une=/\((\S*)(?::(\d+))(?::(\d+))\)/,dne=/at (.+?) ?\(data:(.+?),/,fne=e=>{const t=e.match(dne);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=lne.exec(e);if(n){const[,i,s,l]=n;return o5(i,Xc,+s,+l)}const r=cne.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const u=une.exec(r[2]);u&&(r[2]=u[1],r[3]=u[2],r[4]=u[3])}const[s,l]=OD(r[1]||Xc,r[2]);return o5(l,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},hne=[sne,fne],pne=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,mne=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gne=e=>{const t=pne.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=mne.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||Xc;return[i,r]=OD(i,r),o5(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},yne=[one,gne],vne=[hne,yne],bne=qO(...vne),OD=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Xc,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},O0=1024,xne="Breadcrumbs",Sne=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:xne,setup(n){t.console&&N$(kne(n)),t.dom&&Vte(Ine(n,t.dom)),t.xhr&&jD(Ene(n)),t.fetch&&dI(Tne(n)),t.history&&SI(Ane(n)),t.sentry&&n.on("beforeSendEvent",Cne(n))}}}),wne=Sne;function Cne(e){return function(n){Mt()===e&&Qc({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Lc(n)},{event:n})}}function Ine(e,t){return function(r){if(Mt()!==e)return;let i,s,l=typeof t=="object"?t.serializeAttribute:void 0,u=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;u&&u>O0&&(pi&&Ee.warn(`\`dom.maxStringLength\` cannot exceed ${O0}, but a value of ${u} was configured. Sentry will use ${O0} instead.`),u=O0),typeof l=="string"&&(l=[l]);try{const h=r.event,m=_ne(h)?h.target:h;i=Nr(m,{keyAttrs:l,maxStringLength:u}),s=pD(m)}catch{i="<unknown>"}if(i.length===0)return;const d={category:`ui.${r.name}`,message:i};s&&(d.data={"ui.component_name":s}),Qc(d,{event:r.event,name:r.name,global:r.global})}}function kne(e){return function(n){if(Mt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:H$(n.level),message:F_(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${F_(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Qc(r,{input:n.args,level:n.level})}}function Ene(e){return function(n){if(Mt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Td];if(!r||!i||!s)return;const{method:l,url:u,status_code:d,body:h}=s,m={method:l,url:u,status_code:d},g={xhr:n.xhr,input:h,startTimestamp:r,endTimestamp:i},y={category:"xhr",data:m,type:"http",level:dD(d)};e.emit("beforeOutgoingRequestBreadcrumb",y,g),Qc(y,g)}}function Tne(e){return function(n){if(Mt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",l,s),Qc(l,s)}else{const s=n.response,l={...n.fetchData,status_code:s?.status},u={input:n.args,response:s,startTimestamp:r,endTimestamp:i},d={category:"fetch",data:l,type:"http",level:dD(l.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",d,u),Qc(d,u)}}}function Ane(e){return function(n){if(Mt()!==e)return;let r=n.from,i=n.to;const s=Uc(mt.location.href);let l=r?Uc(r):void 0;const u=Uc(i);l?.path||(l=s),s.protocol===u.protocol&&s.host===u.host&&(i=u.relative),s.protocol===l.protocol&&s.host===l.host&&(r=l.relative),Qc({category:"navigation",data:{from:r,to:i}})}}function _ne(e){return!!e&&!!e.target}const Rne="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
31Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),jne="BrowserApiErrors",One=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:jne,setupOnce(){t.setTimeout&&Gi(mt,"setTimeout",P6),t.setInterval&&Gi(mt,"setInterval",P6),t.requestAnimationFrame&&Gi(mt,"requestAnimationFrame",Dne),t.XMLHttpRequest&&"XMLHttpRequest"in mt&&Gi(XMLHttpRequest.prototype,"send",Mne);const n=t.eventTarget;n&&(Array.isArray(n)?n:Rne).forEach(i=>Pne(i,t))}}}),Lne=One;function P6(e){return function(...t){const n=t[0];return t[0]=ef(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${xo(e)}`}}),e.apply(this,t)}}function Dne(e){return function(t){return e.apply(this,[ef(t,{mechanism:{data:{handler:xo(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Mne(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gi(n,i,function(s){const l={mechanism:{data:{handler:xo(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},u=eI(s);return u&&(l.mechanism.data.handler=xo(u)),ef(s,l)})}),e.apply(this,t)}}function Pne(e,t){const r=mt[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Gi(r,"addEventListener",function(i){return function(s,l,u){try{Fne(l)&&(l.handleEvent=ef(l.handleEvent,{mechanism:{data:{handler:xo(l),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&Bne(this,s,l),i.apply(this,[s,ef(l,{mechanism:{data:{handler:xo(l),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),u])}}),Gi(r,"removeEventListener",function(i){return function(s,l,u){try{if(Object.prototype.hasOwnProperty.call(l,"__sentry_wrapped__")){const d=l.__sentry_wrapped__;d&&i.call(this,s,d,u)}}catch{}return i.call(this,s,l,u)}}))}function Fne(e){return typeof e.handleEvent=="function"}function Bne(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Nne=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof mt.document>"u"){pi&&Ee.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}f6({ignoreDuration:!0});let n=!1;gI(()=>{n||(rS(),n=!0)});const r=Oi();let i=r.getUser();r.addScopeListener(s=>{const l=s.getUser();(i?.id!==l?.id||i?.ip_address!==l?.ip_address)&&(i=l,n&&rS())}),t==="route"&&SI(({from:s,to:l})=>{s!==l&&(f6({ignoreDuration:!0}),rS(),n=!0)})}}},zne="CultureContext",Hne=(()=>({name:zne,preprocessEvent(e){const t=F6();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=F6();t&&zL(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})),Une=Hne;function F6(){try{const e=mt.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const Wne="GlobalHandlers",Vne=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Wne,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Gne(n),B6("onerror")),t.onunhandledrejection&&(Yne(n),B6("onunhandledrejection"))}}}),qne=Vne;function Gne(e){GO(t=>{const{stackParser:n,attachStacktrace:r}=LD();if(Mt()!==e||mD())return;const{msg:i,url:s,line:l,column:u,error:d}=t,h=Jne(hI(n,d||i,void 0,r,!1),s,l,u);h.level="error",UL(h,{originalException:d,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Yne(e){YO(t=>{const{stackParser:n,attachStacktrace:r}=LD();if(Mt()!==e||mD())return;const i=Kne(t),s=Jc(i)?Xne(i):hI(n,i,void 0,r,!0);s.level="error",UL(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Kne(e){if(Jc(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Xne(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Jne(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],l=s[0]=s[0]||{},u=l.stacktrace=l.stacktrace||{},d=u.frames=u.frames||[];return d.length===0&&d.push({colno:r,lineno:n,filename:Zne(t)??$d(),function:Xc,in_app:!0}),e}function B6(e){pi&&Ee.log(`Global Handler attached: ${e}`)}function LD(){return Mt()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Zne(e){if(!(!fo(e)||e.length===0))return e.startsWith("data:")?`<${qa(e,!1)}>`:e}const Qne=()=>({name:"HttpContext",preprocessEvent(e){if(!mt.navigator&&!mt.location&&!mt.document)return;const t=m1(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSpan(e){if(!mt.navigator&&!mt.location&&!mt.document)return;const t=m1();zL(e,{[iQ]:t.headers["User-Agent"],...e.is_segment&&{[wf]:e.attributes?.[nQ]!=="http.client"?C
31a(t.url):void 0,[`${tQ}.referer`]:t.headers.Referer}})}}),$ne="cause",ere=5,tre="LinkedErrors",nre=((e={})=>{const t=e.limit||ere,n=e.key||$ne;return{name:tre,preprocessEvent(r,i,s){const l=s.getOptions();F$(fI,l.stackParser,n,t,r,i)}}}),rre=nre,ire=/^HTML(\w*)Element$/;function DD(e){if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(rne(e)){const t=are(e);if(ire.test(t))return`[HTMLElement: ${Nr(e)}]`}}function are(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function sre(){return ore()?(pi&&fu(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function ore(){if(typeof mt.window>"u")return!1;const e=mt;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=$d();return!(mt===mt.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function lre(e){return[_$(),k$(),J$(),Lne(),wne(),qne(),rre(),V$(),Qne(),Une(),Nne()]}function cre(e={}){const t=!e.skipBrowserExtensionCheck&&sre();let n=e.defaultIntegrations==null?lre():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:aJ(e.stackParser||bne),integrations:AQ({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ane};return QO(DD),f$(Iee,r)}function N6(e={}){const t=mt.document,n=t?.head||t?.body;if(!n){pi&&Ee.error("[showReportDialog] Global document not defined");return}const r=qt(),s=Mt()?.getDsn();if(!s){pi&&Ee.error("[showReportDialog] DSN not configured");return}const l={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||xQ()},u=mt.document.createElement("script");u.async=!0,u.crossOrigin="anonymous",u.src=EQ(s,l);const{onLoad:d,onClose:h}=l;if(d&&(u.onload=d),h){const m=g=>{if(g.data==="__sentry_reportdialog_closed__")try{h()}finally{mt.removeEventListener("message",m)}};mt.addEventListener("message",m)}n.appendChild(u)}function ure(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function MD(e){try{return new URL(e,mt.location.origin).href}catch{return}}function dre(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function PD(e){try{return new Headers(e)}catch{return}}const FD={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function fre(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:l,onRequestSpanStart:u,onRequestSpanEnd:d}={...FD,...t},h=typeof i=="function"?i:b=>!0,m=b=>pre(b,l),g={},y=e.getOptions().propagateTraceparent;n&&dI(b=>{const S=Z$(b,h,m,g,{propagateTraceparent:y,onRequestSpanEnd:d});if(S){const I=MD(b.fetchData.url),w=I?Uc(I).host:void 0,C=I?qa(I):void 0;S.setAttributes({[FL]:Ca(C),[wf]:Ca(C),"server.address":w}),s&&z6(S,e),u?.(S,{headers:b.headers})}}),r&&jD(b=>{const S=mre(b,h,m,g,y,d);S&&(s&&z6(S,e),u?.(S,{headers:PD(b.xhr.__sentry_xhr_v3__?.request_headers)}))})}const hre=300;function z6(e,t){const{url:n}=Wt(e).data;if(!n||typeof n!="string")return;let r=()=>{setTimeout(i)};if(js(t)){const s=e.end.bind(e);e.end=l=>{const u=l??dr();let d=!1;const h=()=>{d||(d=!0,setTimeout(i),s(u),clearTimeout(m))};r=h;const m=setTimeout(h,hre)}}const i=tf("resource",({entries:s})=>{s.forEach(l=>{dre(l)&&l.name.endsWith(n)&&(e.setAttributes(AD(l)),r())})})}function pre(e,t){const n=$d();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?ho(r.toString(),t)||s&&ho(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?ho(e,t):r}}function mre(e,t,n,r,i,s){const l=e.xhr,u=l?.[Td];if(!l||l.__sentry_own_request__||!u)return;const{url:d,method:h}=u,m=Ta()&&t(d);if(e.endTimestamp){const _=l.__sentry_xhr_span_id__;if(!_)return;const R=r[_];R&&(m&&u.status_code!==void 0&&(lL(R,u.status_code),R.end(),s?.(R,{headers:PD(nne(l)),error:e.error})),delete r[_]);return}const g=MD(d),y=Uc(g||d),b=g?qa(g):void 0,S=qa(v$(d)),I=Mt(),w=!!$i(),C=w||!!I&&js(I),E=m&&C?zl({name:`${h} ${S}`,attributes:{url:Ca(qa(d)),type:"xhr","http.method":h,"http.url":Ca(b),[wf]:Ca(b),"server.address":y?.host,[ar]:"auto.http.browser",[Ea]:"http.client",...y?.search&&{"http.query":iD(y?.search)},...y?.hash&&{"http.fragment":y?.hash}}}):new Zc,A=DL(E)&&w?void 0:E;return m&&!C&&I?.recordDroppedEvent("no_parent_span","span"),l.__sentry_xhr_span_id__=E.spanContext().spanId,r[l.__sentry_xhr_span_id__]=E,n(d)&&gre(l,Ta()&&C?A:void 0,i),I&&I.emit("beforeOutgoingRequestSpan",E,e),E}function gre(e,t,n){const{"sentry-trace":r,baggage:i,traceparent:s}=oD({span:t,propagateTraceparent:n});r&&yre(e,r,i,s)}function yre(e,t,n,r){const i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){const s=i?.baggage;(!s||!ure(s))&&e.setRequestHeader("baggage",n)}}catch{}}const H6=new WeakMap,U6=new WeakMap,vre=9e4,bre=["text/event-stream","application/x-ndjson","application/stream+json"],xre=()=>({name:"FetchStreamPerformance",setup(){oee(e=>{if(e.response){const t=H6.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);const n=U6.get(e.response);n&&clearTimeout(n)}}}),dI(e=>{if(e.endTimestamp&&e.response){const t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!bre.some(d=>t.startsWith(d)))return;const n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",i=h1(n),s=n.startsWith("data:")?qa(n):i?aD(i):n,l=zl({name:`${r} ${s}`,startTime:e.endTimestamp,attributes:{url:Ca(qa(n)),"http.method":r,type:"fetch",[Ea]:"http.client.stream",[ar]:"auto.http.browser.stream"}});H6.set(e.response,l);const u=setTimeout(()=>{l.isRecording()&&l.end()},vre);U6.set(e.response,u)}})}}),BD="WebVitals",Sre=(e={})=>{const t=new Set(e.ignore??[]);return{name:BD,setup(n){const r=js(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:s}=e._experiments??{},l=r||t.has("cls")?void 0:i||!1,u=r||t.has("lcp")?void 0:s||!1,d=dte({recordClsStandaloneSpans:l,recordLcpStandaloneSpans:u,client:n}),h=new WeakSet;n.on("afterStartPageLoadSpan",m=>{h.add(m)}),n.on("spanEnd",m=>{h.delete(m)&&(d(),xte(m,{recordClsOnPageloadSpan:l===!1,recordLcpOnPageloadSpan:u===!1,spanStreamingEnabled:r}))}),r?(t.has("lcp")||Fte(n),t.has("cls")||Nte(n),t.has("inp")||Hte()):t.has("inp")||Ote()},afterAllSetup(){t.has("inp")||Pte()}}};function wre(){mt.document?mt.document.addEventListener("visibilitychange",()=>{const e=$i();if(!e)return;const t=Kr(e);
31if(mt.document.hidden&&t){const n="cancelled",{op:r,status:i}=Wt(t);pi&&Ee.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:wr,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):pi&&Ee.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Cre=3600,ND="sentry_previous_trace",Ire="sentry.previous_trace";function kre(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?Are():void 0;e.on("spanStart",l=>{if(Kr(l)!==l)return;const u=qt().getPropagationContext();i=Ere(i,l,u),r&&Tre(i)});let s=!0;n&&e.on("beforeSampling",l=>{if(!i)return;const u=qt(),d=u.getPropagationContext();if(s&&d.parentSpanId){s=!1;return}u.setPropagationContext({...d,dsc:{...d.dsc,sample_rate:String(i.sampleRate),sampled:String(l5(i.spanContext))},sampleRand:i.sampleRand}),l.parentSampled=l5(i.spanContext),l.parentSampleRate=i.sampleRate,l.spanAttributes={...l.spanAttributes,[sL]:i.sampleRate}})}function Ere(e,t,n){const r=Wt(t);function i(){try{const u=Number(r.data?.[tI]??n.dsc?.sample_rate);return Number.isNaN(u)?0:u}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const l=e.spanContext;return l.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=Cre&&(pi&&Ee.log(`Adding previous_trace \`${JSON.stringify(l)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:l,attributes:{[WJ]:"previous_trace"}}),t.setAttribute(Ire,`${l.traceId}-${l.spanId}-${l5(l)?1:0}`)),s)}function Tre(e){try{mt.sessionStorage.setItem(ND,JSON.stringify(e))}catch(t){pi&&Ee.warn("Could not store previous trace in sessionStorage",t)}}function Are(){try{const e=mt.sessionStorage?.getItem(ND);return JSON.parse(e)}catch{return}}function l5(e){return e.traceFlags===1}const _re="BrowserTracing",Rre=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function jre(){const e=mt.navigator;return e?.userAgent?Rre.test(e.userAgent):!1}const Ore={...Oy,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...FD},Lre=((e={})=>{"enableElementTiming"in e&&fu(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=mt.document,{enableInp:r,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:d},beforeStartSpan:h,idleTimeout:m,finalTimeout:g,childSpanTimeout:y,markBackgroundSpan:b,traceFetch:S,traceXHR:I,trackFetchStreamPerformance:w,shouldCreateSpanForRequest:C,enableHTTPTimings:E,ignoreResourceSpans:A,ignorePerformanceApiSpans:_,instrumentPageLoad:R,instrumentNavigation:L,detectRedirects:j,linkPreviousTrace:O,consistentTraceSampling:F,enableReportPageLoaded:D,onRequestSpanStart:H,onRequestSpanEnd:V}={...Ore,...e},Y=jre();let K,z;function q($,ue,ge=!0,M){const Z=ue.op==="pageload",te=ue.name,B=h?h(ue):ue,N=h1(M||$d()),le={...N?.pathname&&{[rQ]:N.pathname},...N&&!uI(N)&&{[wf]:Ca(N.href)},...B.attributes};if(te!==B.name&&(le[Cs]="custom"),B.attributes=le,!ge){const oe=hu();zl({...B,startTime:oe}).end(oe);return}t.name=B.name,t.source=le[Cs];const ae=ML(B,{idleTimeout:m,finalTimeout:g,childSpanTimeout:y,disableAutoFinish:Z,beforeSpanEnd:oe=>{bte(oe,{ignoreResourceSpans:A,ignorePerformanceApiSpans:_,spanStreamingEnabled:js($)}),q6($,void 0);const we=qt(),je=we.getPropagationContext();we.setPropagationContext({...je,traceId:ae.spanContext().traceId,sampled:ko(ae),dsc:Sf(oe)}),Z&&(z=void 0)},trimIdleSpanEndTimestamp:!D});Z&&D&&(z=ae),q6($,ae);function de(){n&&["interactive","complete"].includes(n.readyState)&&($.emit("idleSpanEnableAutoFinish",ae),n.removeEventListener("readystatechange",de))}Z&&!D&&n&&(n.addEventListener("readystatechange",de),de())}return{name:_re,setup($){if(Y){pi&&Ee.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(gZ(),s&&Et.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?hte():i&&fte(),l&&pte(),j&&n){const ge=()=>{K=dr()};addEventListener("click",ge,{capture:!0}),addEventListener("keydown",ge,{capture:!0,passive:!0})}function ue(){const ge=Op($);ge&&!Wt(ge).timestamp&&(pi&&Ee.log(`[Tracing] Finishing current active span with op: ${Wt(ge).op}`),ge.setAttribute(Ep,"cancelled"),ge.end())}$.on("startNavigationSpan",(ge,M)=>{if(Mt()!==$)return;if(M?.isRedirect){pi&&Ee.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),q($,{op:"navigation.redirect",...ge},!1,M.url);return}K=void 0,ue();const Z=qt();Z.setPropagationContext({traceId:El(),sampleRand:Math.random(),propagationSpanId:Ta()?void 0:Tl()}),Z.setSDKProcessingMetadata({normalizedRequest:void 0}),q($,{op:"navigation",...ge,parentSpan:null,forceTransaction:!0},!0,M?.url)}),$.on("startPageLoadSpan",(ge,M={})=>
31{if(Mt()!==$)return;ue();const Z=M.sentryTrace||W6("sentry-trace")||V6("sentry-trace"),te=M.baggage||W6("baggage")||V6("baggage"),B=lZ(Z,te),N=qt();N.setPropagationContext(B),Ta()||(N.getPropagationContext().propagationSpanId=Tl()),N.setSDKProcessingMetadata({normalizedRequest:m1()}),q($,{op:"pageload",...ge})}),$.on("endPageloadSpan",()=>{D&&z&&(z.setAttribute(Ep,"reportPageLoaded"),z.end())})},afterAllSetup($){if(Y)return;$.addIntegration&&!$.getIntegrationByName?.(BD)&&$.addIntegration(Sre({ignore:r?[]:["inp"],_experiments:{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:d}}));let ue=$d();if(O!=="off"&&kre($,{linkPreviousTrace:O,consistentTraceSampling:F}),mt.location){if(R){const ge=zr();Dre($,{name:mt.location.pathname,startTime:ge?ge/1e3:void 0,attributes:{[Cs]:"url",[ar]:"auto.pageload.browser"}})}L&&SI(({to:ge,from:M})=>{if(M===void 0&&ue?.indexOf(ge)!==-1){ue=void 0;return}ue=void 0;const Z=h1(ge),te=Op($),B=te&&j&&Fre(te,K);Mre($,{name:Z?.pathname||mt.location.pathname,attributes:{[Cs]:"url",[ar]:"auto.navigation.browser"}},{url:ge,isRedirect:B})})}b&&wre(),l&&Pre($,m,g,y,t),fre($,{traceFetch:S,traceXHR:I,tracePropagationTargets:$.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:C,enableHTTPTimings:E,onRequestSpanStart:H,onRequestSpanEnd:V}),w&&$.addIntegration(xre())}}});function Dre(e,t,n){e.emit("startPageLoadSpan",t,n),qt().setTransactionName(t.name);const r=Op(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Mre(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:r}),e.emit("startNavigationSpan",t,{isRedirect:i,url:r});const s=qt();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...m1(),url:r}}),Op(e)}function W6(e){return mt.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function V6(e){return mt.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function Pre(e,t,n,r,i){const s=mt.document;let l;const u=()=>{const d="ui.action.click",h=Op(e);if(h){const m=Wt(h).op;if(["navigation","pageload"].includes(m)){pi&&Ee.warn(`[Tracing] Did not create ${d} span because a pageload or navigation span is in progress.`);return}}if(l&&(l.setAttribute(Ep,"interactionInterrupted"),l.end(),l=void 0),!i.name){pi&&Ee.warn(`[Tracing] Did not create ${d} transaction because _latestRouteName is missing.`);return}l=ML({name:i.name,op:d,attributes:{[Cs]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",u,{capture:!0})}const zD="_sentry_idleSpan";function Op(e){return e[zD]}function q6(e,t){$r(e,zD,t)}const G6=1.5;function Fre(e,t){const n=Wt(e),r=hu(),i=n.start_timestamp;return!(r-i>G6||t&&r-t<=G6)}function Bre(e){return Ip(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Nre(e){const t={...e};sD(t,"react"),bQ("react",{version:k.version});const n=cre(t);return QO(zre),n}function zre(e){return Bre(e)?"[SyntheticEvent]":DD(e)}function Hre(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function Ure(e,t){const n=new WeakSet;function r(i,s){if(!n.has(i)){if(i.cause)return n.add(i),r(i.cause,s);i.cause=s}}r(e,t)}function Wre(e,{componentStack:t},n){if(Hre(k.version)&&As(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,Ure(e,r)}return pv(e,n)}const Vre=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,dS={componentStack:null,error:null,eventId:null};let qre=class extends k.Component{constructor(t){super(t),this.state=dS,this._openFallbackReportDialog=!0;const n=Mt();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&N6({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:i,onError:s,showDialog:l,dialogOptions:u}=this.props;pm(d=>{i&&i(d,t,r);const h=this.props.handled!=null?this.props.handled:!!this.props.fallback,m=Wre(t,n,{mechanism:{handled:h,type:"auto.function.react.error_boundary"}});s&&s(t,r,m),l&&(this._lastEventId=m,this._openFallbackReportDialog&&N6({...u,eventId:m})),this.setState({error:t,componentStack:r,eventId:m})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&(this.state===dS?i(null,null,null):i(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(dS)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const i=typeof t=="function"?k.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return k.isValidElement(i)?i:(t&&Vre&&Ee.warn("fallback did not produce a valid ReactElement"),null)}};const Y6=e=>{let t;const n=new Set,r=(h,m)=>{const g=typeof h=="function"?h(t):h;if(!Object.is(g,t)){const y=t;t=m??(typeof g!="object"||g===null)?g:Object.assign({}
31,t,g),n.forEach(b=>b(t,y))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>d,subscribe:h=>(n.add(h),()=>n.delete(h))},d=t=e(r,i,u);return u},Im=(e=>e?Y6(e):Y6),Gre=e=>e;function HD(e,t=Gre){const n=G.useSyncExternalStore(e.subscribe,G.useCallback(()=>t(e.getState()),[e,t]),G.useCallback(()=>t(e.getInitialState()),[e,t]));return G.useDebugValue(n),n}const K6=e=>{const t=Im(e),n=r=>HD(t,r);return Object.assign(n,t),n},wn=(e=>e?K6(e):K6),$c=e=>!!e.userId&&!e.isGuest,be=wn(e=>({userId:"",email:void 0,displayName:void 0,photoURL:void 0,isGuest:!1,isFirstVisit:!0,setUser:t=>{d6({id:t.userId}),e(t)},clearUser:()=>{d6(null),e({userId:"",email:void 0,displayName:void 0,photoURL:void 0,isGuest:!1,isFirstVisit:!0})},markVisitComplete:()=>{e({isFirstVisit:!1})},markAsUnvisited:()=>{e({isFirstVisit:!0})}})),Yre=Object.freeze(Object.defineProperty({__proto__:null,selectIsSignedIn:$c,useUserStore:be},Symbol.toStringTag,{value:"Module"})),Kre=ei("Browser",{web:()=>Pn(()=>import("./web-DnA1ozOl.js"),[]).then(e=>new e.BrowserWeb)}),xt=()=>Kc.isNativePlatform(),Xre=()=>{if(typeof window>"u"||typeof document>"u")return!1;const e=document;if(document.fullscreenElement||e.webkitFullscreenElement||typeof window.matchMedia=="function"&&window.matchMedia("(display-mode: fullscreen)").matches)return!0;const t=window.screen?.width??0,n=window.screen?.height??0;return t<=0||n<=0?!1:Math.abs(window.outerWidth-t)<=8&&Math.abs(window.outerHeight-n)<=8},Jre=()=>/GSA\//.test(navigator.userAgent),Zre=()=>/Instagram/.test(navigator.userAgent),Qre=()=>/musical_ly|BytedanceWebview|TikTok/i.test(navigator.userAgent),gu=()=>Jre()||Zre()||Qre(),Sv=()=>gu()?(window.location.hash.slice(1)||"/").split("?")[0]:window.location.pathname,km=()=>{if(gu()){const e=window.location.hash.slice(1)||"",t=e.indexOf("?");return t!==-1?new URLSearchParams(e.slice(t+1)):new URLSearchParams}return new URLSearchParams(window.location.search)},$re=()=>{if(!gu())return;const{pathname:e,search:t,hash:n}=window.location;if(e==="/"&&n.length>1)return;const i=e==="/"&&!t?window.location.origin+"/#":window.location.origin+"/#"+e+t,s=window.location.origin+e+t+n;i!==s&&window.history.replaceState(null,"",i)},eie=()=>{if(gu())return;const{pathname:e,hash:t}=window.location;if(!t.startsWith("#/")||e!=="/")return;const n=t.slice(1),r=window.location.origin+n;window.history.replaceState(null,"",r)},X6=()=>Kc.getPlatform(),tie=()=>{const e=navigator.userAgent;return!!(/iPhone|iPad|iPod/.test(e)||/Mac/.test(e)&&navigator.maxTouchPoints>1)},nie=()=>typeof navigator>"u"?!1:/iPhone|iPad|iPod|Android|Mobile|Silk|Kindle/i.test(navigator.userAgent)?!0:typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)").matches&&window.matchMedia("(hover: none)").matches:tie(),nf=async e=>{/^(mailto|tel|sms):/i.test(e)?window.location.href=e:xt()?await Kre.open({url:e}):window.open(e,"_blank","noopener,noreferrer")},rie=ei("MetaEvents"),UD=ei("TikTokBusiness"),iie="6759357836",aie="7626760472036950036",sie="",oie=!1,lie="fb_mobile_complete_registration",cie="CompleteRegistration";async function uie(){if(xt())try{await UD.initialize({appId:iie,tiktokAppId:aie,accessToken:sie||void 0,debug:oie})}catch(e){console.warn("TikTok SDK init failed:",e)}}async function die(e){if(xt()){try{await rie.logEvent({eventName:lie,params:e?{fb_registration_method:e}:void 0})}catch(t){console.warn("Meta CompleteRegistration failed:",t)}try{await UD.trackEvent({eventName:cie,properties:e?{method:e}:void 0})}catch(t){console.warn("TikTok CompleteRegistration failed:",t)}}}let J6=!1;class zd{static setExtensionContext(t){J6=t}static isExtensionContext(){return J6}static getAuthStatusFromExtension(t=5e3){return this.postMessageRequest("TONITA_CHECK_AUTH_STATUS","TONITA_AUTH_STATUS_RESPONSE",n=>({isAuthenticated:!!n.isAuthenticated,userId:n.userId||null,email:n.email||null}),{isAuthenticated:!1,userId:null,email:null},t)}static getTokenFromExtension(t=5e3){return this.postMessageRequest("TONITA_REQUEST_TOKEN","TONITA_TOKEN_RESPONSE",n=>n.token||null,null,t)}static postMessageRequest(t,n,r,i,s=5e3){return new Promise(l=>{const u=h=>{if(h.source!==window.parent)return;const{data:m}=h;!m?.type||m.type!==n||(window.removeEventListener("message",u),clearTimeout(d),l(r(m)))};window.addEventListener("message",u);const d=setTimeout(()=>{window.removeEventListener("message",u),l(i)},s);(window.parent||window).postMessage({type:t},"*")})}}const fie=3,hie=1e3;async function pie(e,t={}){const{maxRetries:n=fie,initialDelayMs:r=hie,isRetryable:i=()=>!0}=t;let s,l=r;
31for(let u=0;u<=n;u++)try{return await e()}catch(d){if(s=d,u>=n||!i(d))throw d;await new Promise(h=>setTimeout(h,l)),l*=2}throw s}function mie(e){if(!(e instanceof Error))return!1;const t=e,n=["auth/network-request-failed","auth/timeout","auth/too-many-requests","unavailable","deadline-exceeded"];if(t.code&&n.includes(t.code))return!0;const r=e.message.toLowerCase();return["network request failed","timeout","failed to fetch","load failed","net::err"].some(s=>r.includes(s))}const Pr=[];for(let e=0;e<256;++e)Pr.push((e+256).toString(16).slice(1));function gie(e,t=0){return(Pr[e[t+0]]+Pr[e[t+1]]+Pr[e[t+2]]+Pr[e[t+3]]+"-"+Pr[e[t+4]]+Pr[e[t+5]]+"-"+Pr[e[t+6]]+Pr[e[t+7]]+"-"+Pr[e[t+8]]+Pr[e[t+9]]+"-"+Pr[e[t+10]]+Pr[e[t+11]]+Pr[e[t+12]]+Pr[e[t+13]]+Pr[e[t+14]]+Pr[e[t+15]]).toLowerCase()}let fS;const yie=new Uint8Array(16);function vie(){if(!fS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");fS=crypto.getRandomValues.bind(crypto)}return fS(yie)}const bie=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Z6={randomUUID:bie};function $t(e,t,n){if(Z6.randomUUID&&!e)return Z6.randomUUID();e=e||{};const r=e.random??e.rng?.()??vie();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,gie(r)}const mo=wn(e=>({toasts:[],addToast:(t,n="info",r,i)=>{if(n!=="error"&&!i?.showInProd)return;const s=$t(),u=r!==void 0?r:n==="error"||n==="warning"?0:5e3,d={id:s,message:t,type:n,duration:u};e(h=>({toasts:[...h.toasts,d]})),u>0&&setTimeout(()=>{e(h=>({toasts:h.toasts.filter(m=>m.id!==s)}))},u)},removeToast:t=>{e(n=>({toasts:n.toasts.filter(r=>r.id!==t)}))},clearAllToasts:()=>{e({toasts:[]})}}));var WD=Symbol.for("immer-nothing"),Q6=Symbol.for("immer-draftable"),Qt=Symbol.for("immer-state");function ba(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Lp=Object.getPrototypeOf;function rf(e){return!!e&&!!e[Qt]}function So(e){return e?VD(e)||Array.isArray(e)||!!e[Q6]||!!e.constructor?.[Q6]||Em(e)||Cv(e):!1}var xie=Object.prototype.constructor.toString(),$6=new WeakMap;function VD(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=$6.get(n);return r===void 0&&(r=Function.toString.call(n),$6.set(n,r)),r===xie}function Dp(e,t,n=!0){wv(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function wv(e){const t=e[Qt];return t?t.type_:Array.isArray(e)?1:Em(e)?2:Cv(e)?3:0}function c5(e,t){return wv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function qD(e,t,n){const r=wv(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Sie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Em(e){return e instanceof Map}function Cv(e){return e instanceof Set}function Cr(e){return e.copy_||e.base_}function u5(e,t){if(Em(e))return new Map(e);if(Cv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=VD(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Qt];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const l=i[s],u=r[l];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[l]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[l]})}return Object.create(Lp(e),r)}else{const r=Lp(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function wI(e,t=!1){return Iv(e)||rf(e)||!So(e)||(wv(e)>1&&Object.defineProperties(e,{set:L0,add:L0,clear:L0,delete:L0}),Object.freeze(e),t&&Object.values(e).forEach(n=>wI(n,!0))),e}function wie(){ba(2)}var L0={value:wie};function Iv(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var d5={};function eu(e){const t=d5[e];return t||ba(0,e),t}function Cie(e,t){d5[e]||(d5[e]=t)}var Mp;function b1(){return Mp}function Iie(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function e7(e,t){t&&(eu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function f5(e){h5(e),e.drafts_.forEach(kie),e.drafts_=null}function h5(e){e===Mp&&(Mp=e.parent_)}function t7(e){return Mp=Iie(Mp,e)}function kie(e){const t=e[Qt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function n7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Qt].modified_&&(f5(t),ba(4)),So(e)&&(e=x1(t,e),t.parent_||S1(t,e)),t.patches_&&eu("Patches").generateReplacementPatches_(n[Qt].base_,e,t.patches_,t.inversePatches_)):e=x1(t,n,[]),f5(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==WD?e:void 0}function x1(e,t,n){if(Iv(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[Qt];if(!i)return Dp(t,(s,l)=>r7(e,i,t,s,l,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return S1(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;
31const s=i.copy_;let l=s,u=!1;i.type_===3&&(l=new Set(s),s.clear(),u=!0),Dp(l,(d,h)=>r7(e,i,s,d,h,n,u),r),S1(e,s,!1),n&&e.patches_&&eu("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function r7(e,t,n,r,i,s,l){if(i==null||typeof i!="object"&&!l)return;const u=Iv(i);if(!(u&&!l)){if(rf(i)){const d=s&&t&&t.type_!==3&&!c5(t.assigned_,r)?s.concat(r):void 0,h=x1(e,i,d);if(qD(n,r,h),rf(h))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if(So(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&u)return;x1(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Em(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&S1(e,i)}}}function S1(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wI(t,n)}function Eie(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:b1(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,s=CI;n&&(i=[r],s=Pp);const{revoke:l,proxy:u}=Proxy.revocable(i,s);return r.draft_=u,r.revoke_=l,u}var CI={get(e,t){if(t===Qt)return e;const n=Cr(e);if(!c5(n,t))return Tie(e,n,t);const r=n[t];return e.finalized_||!So(r)?r:r===hS(e.base_,t)?(pS(e),e.copy_[t]=Fp(r,e)):r},has(e,t){return t in Cr(e)},ownKeys(e){return Reflect.ownKeys(Cr(e))},set(e,t,n){const r=GD(Cr(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=hS(Cr(e),t),s=i?.[Qt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Sie(n,i)&&(n!==void 0||c5(e.base_,t)))return!0;pS(e),no(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 hS(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,pS(e),no(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Cr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ba(11)},getPrototypeOf(e){return Lp(e.base_)},setPrototypeOf(){ba(12)}},Pp={};Dp(CI,(e,t)=>{Pp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Pp.deleteProperty=function(e,t){return Pp.set.call(this,e,t,void 0)};Pp.set=function(e,t,n){return CI.set.call(this,e[0],t,n,e[0])};function hS(e,t){const n=e[Qt];return(n?Cr(n):e)[t]}function Tie(e,t,n){const r=GD(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function GD(e,t){if(!(t in e))return;let n=Lp(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Lp(n)}}function no(e){e.modified_||(e.modified_=!0,e.parent_&&no(e.parent_))}function pS(e){e.copy_||(e.copy_=u5(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Aie=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const l=this;return function(d=s,...h){return l.produce(d,m=>n.call(this,m,...h))}}typeof n!="function"&&ba(6),r!==void 0&&typeof r!="function"&&ba(7);let i;if(So(t)){const s=t7(this),l=Fp(t,void 0);let u=!0;try{i=n(l),u=!1}finally{u?f5(s):h5(s)}return e7(s,r),n7(i,s)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===WD&&(i=void 0),this.autoFreeze_&&wI(i,!0),r){const s=[],l=[];eu("Patches").generateReplacementPatches_(t,i,s,l),r(s,l)}return i}else ba(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...u)=>this.produceWithPatches(l,d=>t(d,...u));let r,i;return[this.produce(t,n,(l,u)=>{r=l,i=u}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){So(e)||ba(8),rf(e)&&(e=_ie(e));const t=t7(this),n=Fp(e,void 0);return n[Qt].isManual_=!0,h5(t),n}finishDraft(e,t){const n=e&&e[Qt];(!n||!n.isManual_)&&ba(9);const{scope_:r}=n;return e7(r,t),n7(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>
31-1&&(t=t.slice(n+1));const r=eu("Patches").applyPatches_;return rf(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Fp(e,t){const n=Em(e)?eu("MapSet").proxyMap_(e,t):Cv(e)?eu("MapSet").proxySet_(e,t):Eie(e,t);return(t?t.scope_:b1()).drafts_.push(n),n}function _ie(e){return rf(e)||ba(10,e),YD(e)}function YD(e){if(!So(e)||Iv(e))return e;const t=e[Qt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=u5(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=u5(e,!0);return Dp(n,(i,s)=>{qD(n,i,YD(s))},r),t&&(t.finalized_=!1),n}function KD(){class e extends Map{constructor(d,h){super(),this[Qt]={type_:2,parent_:h,scope_:h?h.scope_:b1(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:d,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Cr(this[Qt]).size}has(d){return Cr(this[Qt]).has(d)}set(d,h){const m=this[Qt];return l(m),(!Cr(m).has(d)||Cr(m).get(d)!==h)&&(n(m),no(m),m.assigned_.set(d,!0),m.copy_.set(d,h),m.assigned_.set(d,!0)),this}delete(d){if(!this.has(d))return!1;const h=this[Qt];return l(h),n(h),no(h),h.base_.has(d)?h.assigned_.set(d,!1):h.assigned_.delete(d),h.copy_.delete(d),!0}clear(){const d=this[Qt];l(d),Cr(d).size&&(n(d),no(d),d.assigned_=new Map,Dp(d.base_,h=>{d.assigned_.set(h,!1)}),d.copy_.clear())}forEach(d,h){const m=this[Qt];Cr(m).forEach((g,y,b)=>{d.call(h,this.get(y),y,this)})}get(d){const h=this[Qt];l(h);const m=Cr(h).get(d);if(h.finalized_||!So(m)||m!==h.base_.get(d))return m;const g=Fp(m,h);return n(h),h.copy_.set(d,g),g}keys(){return Cr(this[Qt]).keys()}values(){const d=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const h=d.next();return h.done?h:{done:!1,value:this.get(h.value)}}}}entries(){const d=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const h=d.next();if(h.done)return h;const m=this.get(h.value);return{done:!1,value:[h.value,m]}}}}[Symbol.iterator](){return this.entries()}}function t(u,d){return new e(u,d)}function n(u){u.copy_||(u.assigned_=new Map,u.copy_=new Map(u.base_))}class r extends Set{constructor(d,h){super(),this[Qt]={type_:3,parent_:h,scope_:h?h.scope_:b1(),modified_:!1,finalized_:!1,copy_:void 0,base_:d,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Cr(this[Qt]).size}has(d){const h=this[Qt];return l(h),h.copy_?!!(h.copy_.has(d)||h.drafts_.has(d)&&h.copy_.has(h.drafts_.get(d))):h.base_.has(d)}add(d){const h=this[Qt];return l(h),this.has(d)||(s(h),no(h),h.copy_.add(d)),this}delete(d){if(!this.has(d))return!1;const h=this[Qt];return l(h),s(h),no(h),h.copy_.delete(d)||(h.drafts_.has(d)?h.copy_.delete(h.drafts_.get(d)):!1)}clear(){const d=this[Qt];l(d),Cr(d).size&&(s(d),no(d),d.copy_.clear())}values(){const d=this[Qt];return l(d),s(d),d.copy_.values()}entries(){const d=this[Qt];return l(d),s(d),d.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(d,h){const m=this.values();let g=m.next();for(;!g.done;)d.call(h,g.value,g.value,this),g=m.next()}}function i(u,d){return new r(u,d)}function s(u){u.copy_||(u.copy_=new Set,u.base_.forEach(d=>{if(So(d)){const h=Fp(d,u);u.drafts_.set(d,h),u.copy_.add(h)}else u.copy_.add(d)}))}function l(u){u.revoked_&&ba(3,JSON.stringify(Cr(u)))}Cie("MapSet",{proxyMap_:t,proxySet_:i})}var Rie=new Aie,jie=Rie.produce;const Oie=e=>(t,n,r)=>(r.setState=(i,s,...l)=>{const u=typeof i=="function"?jie(i):i;return t(u,s,...l)},e(r.setState,n,r)),Ef=Oie,Lie=256,Die={listingId:"",isSkeleton:!0,title:null,currentPrice:null,originalPrice:null,storeName:null,brandName:null,size:null,color:null,colors:[],availableSizes:[],availableColorsDict:{},rating:null,reviewCount:null,features:[],reviewSummary:null,reviewPros:null,reviewCons:null,oneLineDescription:null,images:[],thumbnailImage:null,url:null,listingName:null,sourceMessageId:"",sourceComponentId:"",colorSwatch:null,siblingVariantColorSwatches:[],colorSwatches:[],groupId:""};function Mie(e){return Array(e).fill(null).map((t,n)=>({...Die,listingId:`preloader-${n}`,groupId:`skeleton-${n}`}))}const Ad=1024,XD=768;function Pie(e){return e>=Ad?"desktop":e>=XD?"tablet":"mobile"}function Tm(){return typeof window<"u"&&window.innerWidth>=Ad}const p5="--stable-svh",II=`var(${p5}, 100svh)`;function m5(){return{isOpen:!1,phase:"idle",canvasComponents:[],seenCanvasKeys:new Set}}const cr=wn((e,t)=>({...m5(),handles:null,chatColumn:null,registerCallHandles:n=>e({handles:n}),setChatColumn:n=>e({chatColumn:n}),setPhase:n=>e({phase:n}),setCanvasComponents:n=>e({canvasComponents:n}
31),markCanvasSeen:n=>e(r=>{if(r.seenCanvasKeys.has(n))return r;const i=new Set(r.seenCanvasKeys);return i.add(n),{seenCanvasKeys:i}}),enter:()=>{e({isOpen:!0}),t().handles?.start()},open:()=>e({isOpen:!0}),exit:()=>{t().handles?.stop(),e(m5())}}));function kI(e){return e==="requestingMic"||e==="connecting"||e==="listening"||e==="speaking"}function Fie(){return cr(e=>kI(e.phase))}function JD(e){return e==="requestingMic"||e==="connecting"}function Bie(e){return e==="listening"||e==="speaking"}function Nie(){return cr(e=>Bie(e.phase))}function zie(){return cr(e=>e.isOpen&&!JD(e.phase))}const Hie=24,bn=wn((e,t)=>({recentlyInteractedListings:new Map,isRecentlyInteractedCarouselOpen:!1,savedCarouselState:null,hasEverHadItems:!1,addInteraction:(n,r)=>{e(i=>{const s=new Map(i.recentlyInteractedListings),l=s.get(n.listingId);if(l){const u=new Set(l.interactions);u.add(r),s.set(n.listingId,{listing:n,timestamp:Date.now(),interactions:u})}else if(s.set(n.listingId,{listing:n,timestamp:Date.now(),interactions:new Set([r])}),s.size>Hie){let u=null,d=1/0;for(const[h,m]of s.entries())m.timestamp<d&&(d=m.timestamp,u=h);u&&s.delete(u)}return{recentlyInteractedListings:s,hasEverHadItems:!0}})},removeFromRecentlyInteracted:n=>{e(r=>{if(r.recentlyInteractedListings.has(n)){const i=new Map(r.recentlyInteractedListings);return i.delete(n),{recentlyInteractedListings:i}}return r})},clearRecentlyInteracted:()=>{e({recentlyInteractedListings:new Map,isRecentlyInteractedCarouselOpen:!1})},openRecentlyInteractedCarousel:()=>{e({isRecentlyInteractedCarouselOpen:!0})},closeRecentlyInteractedCarousel:()=>{e({isRecentlyInteractedCarouselOpen:!1})},toggleRecentlyInteractedCarousel:()=>{e(n=>({isRecentlyInteractedCarouselOpen:!n.isRecentlyInteractedCarouselOpen}))},savePreviousCarouselState:n=>{e({savedCarouselState:n})},restorePreviousCarousel:()=>{const{savedCarouselState:n}=t();n?(Fe.getState().openCarousel(n.cards,n.messageId??void 0,n.componentId??void 0,n.title),e({savedCarouselState:null})):Fe.getState().closeCarousel()},isInRecentlyInteracted:n=>t().recentlyInteractedListings.has(n),getRecentlyInteractedCount:()=>t().recentlyInteractedListings.size,getRecentlyInteractedListings:()=>{const n=Array.from(t().recentlyInteractedListings.values());return n.sort((r,i)=>i.timestamp-r.timestamp),n.map(r=>r.listing)},getListingInteractions:n=>{const r=t().recentlyInteractedListings.get(n);return r?r.interactions:new Set},getCarouselTitle:()=>`Recently Viewed (${t().recentlyInteractedListings.size})`}));var Uie={hasSubscribers:!1},Wie=Uie,Vie=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ZD=new Set,i7=typeof process=="object"&&process?process:{},qie=(e,t,n,r)=>{typeof i7.emitWarning=="function"?i7.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},Gie=e=>!ZD.has(e),cl=e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e),QD=e=>cl(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Fy:null:null,Fy=class extends Array{constructor(e){super(e),this.fill(0)}},Yie=class Zh{heap;length;static#o=!1;static create(t){let n=QD(t);if(!n)return[];Zh.#o=!0;let r=new Zh(t,n);return Zh.#o=!1,r}constructor(t,n){if(!Zh.#o)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Kie=class $D{#o;#d;#g;#_;#y;#M;#P;#v;get perf(){return this.#v}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#i;#b;#r;#n;#e;#c;#f;#l;#a;#x;#s;#S;#w;#h;#p;#C;#F;#u;#R;static unsafeExposeInternals(t){return{starts:t.#w,ttls:t.#h,autopurgeTimers:t.#p,sizes:t.#S,keyMap:t.#r,keyList:t.#n,valList:t.#e,next:t.#c,prev:t.#f,get head(){return t.#l},get tail(){return t.#a},free:t.#x,isBackgroundFetch:n=>t.#t(n),backgroundFetch:(n,r,i,s)=>t.#z(n,r,i,s),moveToTail:n=>t.#D(n),indexes:n=>t.#I(n),rindexes:n=>t.#k(n),isStale:n=>t.#m(n)}}get max(){return this.#o}get maxSize(){return this.#d}get calculatedSize(){return this.#b}get size(){return this.#i}get fetchMethod(){return this.#M}get memoMethod(){return this.#P}get dispose(){return this.#g}get onInsert(){return this.#_}get disposeAfter(){return this.#y}constructor(t){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:l,updateAgeOnHas:u,allowStale:d,dispose:h,onInsert:m,disposeAfter:g,noDisposeOnSet:y,noUpdateTTL:b,maxSize:S=0,maxEntrySize:I=0,sizeCalculation:w,fetchMethod:C,memoMethod:E,noDeleteOnFetchRejection:A,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:L,ignoreFetchAbort:j,backgroundFetchSize:O=1,perf:F}=t;if(this.backgroundFetchSize=O,F!==void 0&&typeof F?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#v=F??Vie,n!==0&&!cl(n))throw new TypeError("max option must be a nonnegative integer");let D=n?QD(n):Array;if(!D)throw new Error("invalid max value: "+n);if(this.#o=n,this.#d=S,this.maxEntrySize=I||this.#d,this.sizeCalculation=w,this.sizeCalculation){if(!this.#d&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#P=E,C!==void 0&&typeof C!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#M=C,this.#F=!!C,this.#r=new Map,this.#n=Array.from({length:n}).fill(void 0),this.#e=Array.from({length:n}).fill(void 0),this.#c=new D(n),this.#f=new D(n),this.#l=0,this.#a=0,this.#x=Yie.create(n),this.#i=0,this.#b=0,typeof h=="function"&&(this.#g=h),typeof m=="function"&&(this.#_=m),typeof g=="function"?(this.#y=g,this.#s=[]):(this.#y=void 0,this.#s=void 0),this.#C=!!this.#g,this.#R=!!this.#_,this.#u=!!this.#y,this.noDisposeOnSet=!!y,this.noUpdateTTL=!!b,this.noDeleteOnFetchRejection=!!A,this.allowStaleOnFetchRejection=!!R,this.allowStaleOnFetchAbort=!!L,this.ignoreFetchAbort=!!j,this.maxEntrySize!==0){if(this.#d!==0&&!cl(this.#d))throw new TypeError("maxSize must be a positive integer if specified");if(!cl(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#K()}if(this.allowStale=!!d,this.noDeleteOnStaleGet=!!_,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!u,this.ttlResolution=cl(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!cl(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#H()}if(this.#o===0&&this.ttl===0&&this.#d===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#o&&!this.#d){let H="LRU_CACHE_UNBOUNDED";Gie(H)&&(ZD.add(H),qie("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",H,$D))}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#H(){let t=new Fy(this.#o),n=new Fy(this.#o);this.#h=t,this.#w=n;let r=this.ttlAutopurge?Array.from({length:this.#o}):void 0;this.#p=r,this.#U=(d,h,m=this.#v.now())=>{n[d]=h!==0?m:0,t[d]=h,i(d,h)},this.#j=d=>{n[d]=t[d]!==0?this.#v.now():0,i(d,t[d])};let i=this.ttlAutopurge?(d,h)=>{if(r?.[d]&&(clearTimeout(r[d]),r[d]=void 0),h&&h!==0&&r){let m=setTimeout(()=>
vendor: 10,057 bytes, line 31
31{this.#m(d)?(this.#E(this.#n[d],"expire"),r[d]=void 0):i(d,u(d))},h+1);m.unref&&m.unref(),r[d]=m}}:()=>{};this.#T=(d,h)=>{if(t[h]){let m=t[h],g=n[h];if(!m||!g)return;d.ttl=m,d.start=g,d.now=s||l();let y=d.now-g;d.remainingTTL=m-y}};let s=0,l=()=>{let d=this.#v.now();if(this.ttlResolution>0){s=d;let h=setTimeout(()=>s=0,this.ttlResolution);h.unref&&h.unref()}return d};this.getRemainingTTL=d=>{let h=this.#r.get(d);return h===void 0?0:u(h)};let u=d=>{let h=t[d],m=n[d];if(!h||!m)return 1/0;let g=(s||l())-m;return h-g};this.#m=d=>{let h=n[d],m=t[d];return!!m&&!!h&&(s||l())-h>m}}#j=()=>{};#T=()=>{};#U=()=>{};#m=()=>!1;#K(){let t=new Fy(this.#o);this.#b=0,this.#S=t,this.#O=n=>{this.#b-=t[n],t[n]=0},this.#W=(n,r,i,s)=>{if(!cl(i)){if(this.#t(r))return this.backgroundFetchSize;if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(r,n),!cl(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return i},this.#B=(n,r,i)=>{if(t[n]=r,this.#d){let s=this.#d-t[n];for(;this.#b>s;)this.#N(!0)}this.#b+=t[n],i&&(i.entrySize=r,i.totalCalculatedSize=this.#b)}}#O=t=>{};#B=(t,n,r)=>{};#W=(t,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#I({allowStale:t=this.allowStale}={}){if(this.#i)for(let n=this.#a;this.#V(n)&&((t||!this.#m(n))&&(yield n),n!==this.#l);)n=this.#f[n]}*#k({allowStale:t=this.allowStale}={}){if(this.#i)for(let n=this.#l;this.#V(n)&&((t||!this.#m(n))&&(yield n),n!==this.#a);)n=this.#c[n]}#V(t){return t!==void 0&&this.#r.get(this.#n[t])===t}*entries(){for(let t of this.#I())this.#e[t]!==void 0&&this.#n[t]!==void 0&&!this.#t(this.#e[t])&&(yield[this.#n[t],this.#e[t]])}*rentries(){for(let t of this.#k())this.#e[t]!==void 0&&this.#n[t]!==void 0&&!this.#t(this.#e[t])&&(yield[this.#n[t],this.#e[t]])}*keys(){for(let t of this.#I()){let n=this.#n[t];n!==void 0&&!this.#t(this.#e[t])&&(yield n)}}*rkeys(){for(let t of this.#k()){let n=this.#n[t];n!==void 0&&!this.#t(this.#e[t])&&(yield n)}}*values(){for(let t of this.#I())this.#e[t]!==void 0&&!this.#t(this.#e[t])&&(yield this.#e[t])}*rvalues(){for(let t of this.#k())this.#e[t]!==void 0&&!this.#t(this.#e[t])&&(yield this.#e[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,n={}){for(let r of this.#I()){let i=this.#e[r],s=this.#t(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#n[r],this))return this.#L(this.#n[r],n)}}forEach(t,n=this){for(let r of this.#I()){let i=this.#e[r],s=this.#t(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(n,s,this.#n[r],this)}}rforEach(t,n=this){for(let r of this.#k()){let i=this.#e[r],s=this.#t(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(n,s,this.#n[r],this)}}purgeStale(){let t=!1;for(let n of this.#k({allowStale:!0}))this.#m(n)&&(this.#E(this.#n[n],"expire"),t=!0);return t}info(t){let n=this.#r.get(t);if(n===void 0)return;let r=this.#e[n],i=this.#t(r)?r.__staleWhileFetching:r;if(i===void 0)return;let s={value:i};if(this.#h&&this.#w){let l=this.#h[n],u=this.#w[n];if(l&&u){let d=l-(this.#v.now()-u);s.ttl=d,s.start=Date.now()}}return this.#S&&(s.size=this.#S[n]),s}dump(){let t=[];for(let n of this.#I({allowStale:!0})){let r=this.#n[n],i=this.#e[n],s=this.#t(i)?i.__staleWhileFetching:i;if(s===void 0||r===void 0)continue;let l={value:s};if(this.#h&&this.#w){l.ttl=this.#h[n];let u=this.#v.now()-this.#w[n];l.start=Math.floor(Date.now()-u)}this.#S&&(l.size=this.#S[n]),t.unshift([r,l])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let i=Date.now()-r.start;r.start=this.#v.now()-i}this.#A(n,r.value,r)}}set(t,n,r={}){let{status:i=void 0}=r;return r.status=i,i&&(i.op="set",i.key=t,n!==void 0&&(i.value=n),i.cache=this),this.#A(t,n,r)}#A(t,n,r,i){let{ttl:s=this.ttl,start:l,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:d=this.sizeCalculation,status:h}=r,m=this.#t(n);if(n===void 0)return h&&(h.set="deleted"),this.delete(t),this;let{noUpdateTTL:g=this.noUpdateTTL}=r;h&&!m&&(h.value=n);let y=this.#W(t,n,r.size||0,d,h);if(this.maxEntrySize&&y>this.maxEntrySize)return this.#E(t,"set"),h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this;let b=this.#i===0?void 0:this.#r.get(t);if(b===void 0)b=this.#i===0?this.#a:this.#x.length!==0?this.#x.pop():this.#i===this.#o?this.#N(!1):this.#i,this.#n[b]=t,this.#e[b]=n,this.#r.set(t,b),this.#c[this.#a]=b,this.#f[b]=this.#a,this.#a=b,this.#i++,this.#B(b,y,h),h&&(h.set="add"),g=!1,this.#R&&!m&&this.#_?.(n,t,"add");else{this.#D(b);let S=this.#e[b];if(n!==S){if(!u)if(this.#t(S)){S!==i&&S.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:I}=S;I!==void 0&&I!==n&&(this.#C&&this.#g?.(I,t,"set"),this.#u&&this.#s?.push([I,t,"set"]))}else this.#C&&this.#g?.(S,t,"set"),this.#u&&this.#s?.push([S,t,"set"]);if(this.#O(b),this.#B(b,y,h),this.#e[b]=n,!m){let I=S&&this.#t(S)?S.__staleWhileFetching:S,w=I===void 0?"add":n!==I?"replace":"update";h&&(h.set=w,I!==void 0&&(h.oldValue=I)),this.#R&&this.onInsert?.(n,t,w)}}else m||(h&&(h.set="update"),this.#R&&this.onInsert?.(n,t,"update"))}if(s!==0&&!this.#h&&this.#H(),this.#h&&(g||this.#U(b,s,l),h&&this.#T(h,b)),!u&&this.#u&&this.#s){let S=this.#s,I;for(;I=S?.shift();)this.#y?.(...I)}return this}pop(){try{for(;this.#i;){let t=this.#e[this.#l];if(this.#N(!0),this.#t(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#u&&this.#s){let t=this.#s,n;for(;n=t?.shift();)this.#y?.(...n)}}}#N(t){let n=this.#l,r=this.#n[n],i=this.#e[n],s=this.#t(i);s&&i.__abortController.abort(new Error("evicted"));let l=s?i.__staleWhileFetching:i;return(this.#C||this.#u)&&l!==void 0&&(this.#C&&this.#g?.(l,r,"evict"),this.#u&&this.#s?.push([l,r,"evict"])),this.#O(n),this.#p?.[n]&&(clearTimeout(this.#p[n]),this.#p[n]=void 0),t&&(this.#n[n]=void 0,this.#e[n]=void 0,this.#x.push(n)),this.#i===1?(this.#l=this.#a=0,this.#x.length=0):this.#l=this.#c[n],this.#r.delete(r),this.#i--,n}has(t,n={}){let{status:r=void 0}=n;return n.status=r,r&&(r.op="has",r.key=t,r.cache=this),this.#X(t,n)}#X(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,s=this.#r.get(t);if(s!==void 0){let l=this.#e[s];if(this.#t(l)&&l.__staleWhileFetching===void 0)return!1;if(this.#m(s))i&&(i.has="stale",this.#T(i,s));else return r&&this.#j(s),i&&(i.has="hit",this.#T(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,n={}){let{status:r=void 0}=n;return r&&(r.op="peek",r.key=t,r.cache=this),n.status=r,this.#J(t,n)}#J(t,n){let{status:r,allowStale:i=this.allowStale}=n,s=this.#r.get(t);if(s===void 0||!i&&this.#m(s)){r&&(r.peek=s===void 0?"miss":"stale");return}let l=this.#e[s],u=this.#t(l)?l.__staleWhileFetching:l;return r&&(u!==void 0?(r.peek="hit",r.value=u):r.peek="miss"),u}#z(t,n,r,i){let s=n===void 0?void 0:this.#e[n];if(this.#t(s))return s;let l=new AbortController,{signal:u}=r;u?.addEventListener("abort",()=>l.abort(u.reason),{signal:l.signal});let d={signal:l.signal,options:r,context:i},h=(I,w=!1)=>{let{aborted:C}=l.signal,E=r.ignoreFetchAbort&&I!==void 0,A=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&I!==void 0);if(r.status&&(C&&!w?(r.status.fetchAborted=!0,r.status.fetchError=l.signal.reason,E&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),C&&!E&&!w)return g(l.signal.reason,A);let _=b,R=this.#e[n];return(R===b||R===void 0&&E&&w)&&(I===void 0?_.__staleWhileFetching!==void 0?this.#e[n]=_.__staleWhileFetching:this.#E(t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.#A(t,I,d.options,_))),I},m=I=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=I),g(I,!1)),g=(I,w)=>{let{aborted:C}=l.signal,E=C&&r.allowStaleOnFetchAbort,A=E||r.allowStaleOnFetchRejection,_=A||r.noDeleteOnFetchRejection,R=b;if(this.#e[n]===b&&(!_||!w&&R.__staleWhileFetching===void 0?this.#E(t,"fetch"):E||(this.#e[n]=R.__staleWhileFetching)),A)return r.status&&R.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),R.__staleWhileFetching;if(R.__returned===R)throw I},y=(I,w)=>{let C=this.#M?.(t,s,d);l.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(I(void 0),r.allowStaleOnFetchAbort&&(I=E=>h(E,!0)))}),C&&C instanceof Promise?C.then(E=>I(E===void 0?void 0:E),w):C!==void 0&&I(C)};r.status&&(r.status.fetchDispatched=!0);let b=new Promise(y).then(h,m),S=Object.assign(b,{__abortController:l,__staleWhileFetching:s,__returned:void 0});return n===void 0?(this.#A(t,S,{...d.options,status:void 0}),n=this.#r.get(t)):this.#e[n]=S,S}#t(t){if(!this.#F)return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof AbortController}fetch(t,n={}){let{status:r=void 0}=n;return n.status=r,r&&n.context&&(r.context=n.context),this.#q(t,n)}async#q(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:l=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:d=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:y=this.allowStaleOnFetchRejection,ignoreFetchAbort:b=this.ignoreFetchAbort,allowStaleOnFetchAbort:S=this.allowStaleOnFetchAbort,context:I,forceRefresh:w=!1,status:C,signal:E}=n;if(C&&(C.op="fetch",C.key=t,w&&(C.forceRefresh=!0),C.cache=this),!this.#F)return C&&(C.fetch="get"),this.#L(t,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:C});let A={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:l,noDisposeOnSet:u,size:d,sizeCalculation:h,noUpdateTTL:m,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:S,ignoreFetchAbort:b,status:C,signal:E},_=this.#r.get(t);if(_===void 0){C&&(C.fetch="miss");let R=this.#z(t,_,A,I);return R.__returned=R}else{let R=this.#e[_];if(this.#t(R)){let F=r&&R.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",F&&(C.returnedStale=!0)),F?R.__staleWhileFetching:R.__returned=R}let L=this.#m(_);
31if(!w&&!L)return C&&(C.fetch="hit"),this.#D(_),i&&this.#j(_),C&&this.#T(C,_),R;let j=this.#z(t,_,A,I),O=j.__staleWhileFetching!==void 0&&r;return C&&(C.fetch=L?"stale":"refresh",O&&L&&(C.returnedStale=!0)),O?j.__staleWhileFetching:j.__returned=j}}forceFetch(t,n={}){let{status:r=void 0}=n;return n.status=r,r&&n.context&&(r.context=n.context),this.#Z(t,n)}async#Z(t,n={}){let r=await this.#q(t,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(t,n={}){let{status:r=void 0}=n;n.status=r,r&&(r.op="memo",r.key=t,n.context&&(r.context=n.context),r.cache=this);let i=this.#Q(t,n);return r&&(r.value=i),i}#Q(t,n={}){let r=this.#P;if(!r)throw new Error("no memoMethod provided to constructor");let{context:i,status:s,forceRefresh:l,...u}=n;s&&l&&(s.forceRefresh=!0);let d=this.#L(t,u),h=l||d===void 0;if(s&&(s.memo=h?"miss":"hit",h||(s.value=d)),!h)return d;let m=r(t,d,{options:u,context:i});return s&&(s.value=m),this.#A(t,m,u),m}get(t,n={}){let{status:r=void 0}=n;n.status=r,r&&(r.op="get",r.key=t,r.cache=this);let i=this.#L(t,n);return r&&(i!==void 0&&(r.value=i),Wie.hasSubscribers),i}#L(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:l}=n,u=this.#r.get(t);if(u===void 0){l&&(l.get="miss");return}let d=this.#e[u],h=this.#t(d);return l&&this.#T(l,u),this.#m(u)?h?(l&&(l.get="stale-fetching"),r&&d.__staleWhileFetching!==void 0?(l&&(l.returnedStale=!0),d.__staleWhileFetching):void 0):(s||this.#E(t,"expire"),l&&(l.get="stale"),r?(l&&(l.returnedStale=!0),d):void 0):(l&&(l.get=h?"fetching":"hit"),this.#D(u),i&&this.#j(u),h?d.__staleWhileFetching:d)}#G(t,n){this.#f[n]=t,this.#c[t]=n}#D(t){t!==this.#a&&(t===this.#l?this.#l=this.#c[t]:this.#G(this.#f[t],this.#c[t]),this.#G(this.#a,t),this.#a=t)}delete(t){return this.#E(t,"delete")}#E(t,n){let r=!1;if(this.#i!==0){let i=this.#r.get(t);if(i!==void 0)if(this.#p?.[i]&&(clearTimeout(this.#p[i]),this.#p[i]=void 0),r=!0,this.#i===1)this.#Y(n);else{this.#O(i);let s=this.#e[i];if(this.#t(s)?s.__abortController.abort(new Error("deleted")):(this.#C||this.#u)&&(this.#C&&this.#g?.(s,t,n),this.#u&&this.#s?.push([s,t,n])),this.#r.delete(t),this.#n[i]=void 0,this.#e[i]=void 0,i===this.#a)this.#a=this.#f[i];else if(i===this.#l)this.#l=this.#c[i];else{let l=this.#f[i];this.#c[l]=this.#c[i];let u=this.#c[i];this.#f[u]=this.#f[i]}this.#i--,this.#x.push(i)}}if(this.#u&&this.#s?.length){let i=this.#s,s;for(;s=i?.shift();)this.#y?.(...s)}return r}clear(){return this.#Y("delete")}#Y(t){for(let n of this.#k({allowStale:!0})){let r=this.#e[n];if(this.#t(r))r.__abortController.abort(new Error("deleted"));else{let i=this.#n[n];this.#C&&this.#g?.(r,i,t),this.#u&&this.#s?.push([r,i,t])}}if(this.#r.clear(),this.#e.fill(void 0),this.#n.fill(void 0),this.#h&&this.#w){this.#h.fill(0),this.#w.fill(0);for(let n of this.#p??[])n!==void 0&&clearTimeout(n);this.#p?.fill(void 0)}if(this.#S&&this.#S.fill(0),this.#l=0,this.#a=0,this.#x.length=0,this.#b=0,this.#i=0,this.#u&&this.#s){let n=this.#s,r;for(;r=n?.shift();)this.#y?.(...r)}}};const g5=e=>e%1===0?`$${e.toFixed(0)}`:`$${e.toFixed(2)}`,_l=e=>{const t=e.replace("$",""),n=parseFloat(t);return isNaN(n)?e:g5(n)},a7=e=>parseFloat(e.replace(/[$,]/g,"")),af=(e,t)=>{if(!e||!t)return!1;const n=a7(e),r=a7(t);return Number.isFinite(n)&&Number.isFinite(r)&&n<r},Xie=e=>{const t=new Set,n=[];for(const r of e){const i=r.imageId?.trim();i&&(t.has(i)||(t.add(i),n.push(r)))}return n},eM=(e,t)=>{if(!t||!e.length)return e;const n=e.findIndex(s=>s.imageId===t.imageId||s.image?.address?.imageUrl===t.image?.address?.imageUrl);if(n<=0)return e;const r=[...e],[i]=r.splice(n,1);return r.unshift(i),r},tM=e=>{const t=e.toLowerCase().trim(),n={black:"#000000",jet:"#000000",ebony:"#000000",onyx:"#000000",coal:"#1F2937",midnight:"#111827",raven:"#000000",charcoal:"#374151",graphite:"#4B5563",slate:"#475569",ash:"#6B7280",white:"#FFFFFF","off white":"#FAFAFA",cream:"#FEF7CD",ivory:"#FFFBEB",pearl:"#F8FAFC",snow:"#FFFFFF",vanilla:"#FEF3C7",bone:"#FAF7F2",eggshell:"#F7F5F3","antique white":"#FAEBD7",linen:"#FAF0E6",parchment:"#F1E5AC",gray:"#808080",grey:"#808080",silver:"#C0C0C0","light gray":"#D1D5DB","light grey":"#D1D5DB","dark gray":"#4B5563","dar
31k grey":"#4B5563",steel:"#71717A",pewter:"#8B8B8B",platinum:"#C0C0C0",iron:"#71717A",smoke:"#9CA3AF",dove:"#B8B8B8",titanium:"#878787",red:"#DC2626",crimson:"#DC143C",scarlet:"#FF2400",cherry:"#D2001F",ruby:"#E0115F",burgundy:"#7F1D1D",wine:"#722F37",maroon:"#991B1B",brick:"#B22222",blood:"#8B0000",coral:"#FF7F50",salmon:"#FA8072",rust:"#B7410E",auburn:"#A52A2A",garnet:"#733635",cardinal:"#C41E3A",blue:"#2563EB",navy:"#1E3A8A","navy blue":"#1E3A8A","royal blue":"#3B82F6","sky blue":"#0EA5E9","light blue":"#60A5FA","dark blue":"#1E40AF",cobalt:"#0047AB",azure:"#007FFF",cerulean:"#007BA7",sapphire:"#0F52BA",indigo:"#6366F1","midnight blue":"#191970","powder blue":"#B0E0E6","steel blue":"#4682B4",cornflower:"#6495ED",periwinkle:"#CCCCFF",denim:"#1560BD",ocean:"#006994",aqua:"#00FFFF",cyan:"#06B6D4",turquoise:"#40E0D0",teal:"#0D9488",green:"#16A34A","forest green":"#15803D","dark green":"#166534","light green":"#4ADE80","lime green":"#65A30D",lime:"#84CC16",mint:"#98FB98",sage:"#9CAF88",olive:"#65A30D",jade:"#00A86B",emerald:"#50C878",malachite:"#0BDA51","kelly green":"#4CBB17","hunter green":"#355E3B",pine:"#01796F",moss:"#8A9A5B",seafoam:"#93E9BE",chartreuse:"#7FFF00",avocado:"#568203",yellow:"#EAB308",gold:"#F59E0B",canary:"#FFFF99",lemon:"#FFF700",butter:"#FFFF8B",blonde:"#FAF0BE",champagne:"#F7E7CE",honey:"#FFB347",amber:"#FFBF00",mustard:"#FFDB58",saffron:"#F4C430",citrus:"#FFE135",banana:"#FFE135",corn:"#FBEC5D",orange:"#EA580C",tangerine:"#F28500",peach:"#FFCBA4",apricot:"#FBCEB1",mango:"#FDBE02",papaya:"#FFEFD5",carrot:"#ED9121",pumpkin:"#FF7518","burnt orange":"#CC5500",copper:"#B87333",bronze:"#CD7F32",terracotta:"#E2725B",persimmon:"#EC5800",purple:"#9333EA",violet:"#8B5CF6",lavender:"#E6E6FA",lilac:"#C8A2C8",plum:"#8E4585",eggplant:"#614051",mauve:"#E0B0FF",orchid:"#DA70D6",magenta:"#D946EF",fuchsia:"#FF00FF",amethyst:"#9966CC",grape:"#6F2DA8","royal purple":"#7851A9","deep purple":"#663399",pink:"#EC4899","hot pink":"#FF69B4","baby pink":"#F8BBD9",blush:"#DE5D83",rose:"#FF69B4",flamingo:"#FC8EAC",bubblegum:"#FFC1CC","cotton candy":"#FFBCD9","cherry blossom":"#FFB7C5",watermelon:"#FF7F7F",brown:"#A16207",tan:"#D2B48C",beige:"#F5F5DC",khaki:"#F0E68C",sand:"#C2B280",taupe:"#483C32",chocolate:"#7B3F00",coffee:"#6F4E37",mocha:"#967117",camel:"#C19A6B",cognac:"#9A463D",chestnut:"#954535",mahogany:"#C04000",walnut:"#773F1A",oak:"#806517",cedar:"#871F78",hazel:"#8E7618",cinnamon:"#D2691E",caramel:"#AF6E4D",toffee:"#755A57",espresso:"#362D1D",umber:"#635147",sienna:"#A0522D","burnt sienna":"#E97451"};if(n[t])return n[t];for(const[r,i]of Object.entries(n))if(t.includes(r)||r.includes(t))return i;return t.includes("red")||t.includes("pink")?"#DC2626":t.includes("blue")||t.includes("azure")||t.includes("cyan")?"#2563EB":t.includes("green")||t.includes("lime")||t.includes("mint")?"#16A34A":t.includes("yellow")||t.includes("gold")||t.includes("lemon")?"#EAB308":t.includes("orange")||t.includes("peach")||t.includes("coral")?"#EA580C":t.includes("purple")||t.includes("violet")||t.includes("magenta")?"#9333EA":t.includes("brown")||t.includes("tan")||t.includes("beige")?"#A16207":t.includes("black")||t.includes("dark")?"#000000":t.includes("white")||t.includes("cream")||t.includes("ivory")?"#FFFFFF":t.includes("gray")||t.includes("grey")||t.includes("silver")?"#808080":"unknown"},s7=e=>{if(!e||e.trim()==="")return null;const t=e.trim();return t.startsWith("#")?t:`#${t}`},o7=(e,t)=>{if(e)return e;if(!t)return null;const n=tM(t);return n==="unknown"?null:n},l7=(e,t)=>{const n=s7(t.primary_color?.hex_code),r=t.primary_color?.name||null,i=o7(n,r);if(!i&&!r)return null;const s={hexCode:i,name:r},l=(t.secondary_colors||[]).map(u=>{const d=u.name||null;return{hexCode:o7(s7(u.hex_code),d),name:d}}).filter(u=>u.hexCode!==null||u.name!==null);return{listingId:e,primaryColor:s,secondaryColors:l}},Jie=e=>{if(e==null||e==="")return null;const t=typeof e=="string"?parseFloat(e):e;return!isNaN(t)&&t>0?t:null},c7=e=>e?.image?.address?.imageUrl,Zie=e=>{const t=e?.thumbnailImage,n=e?.images,r=n?.length>0?n[0]:null;return c7(t)?t:c7(r)?r:null},Ia=(e,t,n)=>{const r=JSON.parse(e.listing.metadataJson),i=JSON.parse(e.listing.tagBag?.jsonString||"{}"),s=e.listing.reviewsSummary?JSON.parse(e.listing.reviewsSummary):null,l=l7(e.listingId,i),u=(e.listing.siblingVariants||[]).map(h=>{try{const m=JSON.parse(h.tagBag?.jsonString||"{}");return l7(h.listingId,m)}catch{return null}}).filter(h=>h!==null&&h.listingId!==e.listingId);return{title:r.name||r.listing_title,currentPrice:r.price?g5(parseFloat(r.price)):null,originalPrice
31:(()=>{const h=r.regular_price??r.originalPrice;return h!=null&&h!==""?g5(parseFloat(h)):null})(),storeName:r.storeName||r.domain_display_name,brandName:r.brand?.name||(typeof r.brand=="string"?r.brand:null),size:i.tags_related_to_available_sizes?.[0],color:i.tags_related_to_available_colors?.[0],colors:i.tags_related_to_available_colors||[],availableSizes:i.tags_related_to_available_sizes||[],availableColorsDict:(i.tags_related_to_available_colors||[]).reduce((h,m)=>(h[m]=tM(m),h),{}),rating:r.aggregateRating?.ratingValue,reviewCount:r.aggregateRating?.reviewCount,features:i.highlight_phrases||[],reviewSummary:s?.summary,reviewPros:Array.isArray(s?.pros)?s.pros:null,reviewCons:Array.isArray(s?.cons)?s.cons:null,oneLineDescription:i.one_line_description||null,images:Xie(e.imageGallery?.images||[]),thumbnailImage:Zie(e.imageGallery),url:r.url,listingId:e.listingId,listingName:r.name||"Product",originalListing:e,sourceMessageId:t,sourceComponentId:n,colorSwatch:l,siblingVariantColorSwatches:u,colorSwatches:[...l?[l]:[],...u],groupId:`${t}-${n}-${e.listingId}`}};function Sn(){return{}}const Qie=Object.freeze(Object.defineProperty({__proto__:null,getDeploymentHeaders:Sn},Symbol.toStringTag,{value:"Module"}));function nM(e,t){return function(){return e.apply(t,arguments)}}const{toString:$ie}=Object.prototype,{getPrototypeOf:Rl}=Object,{iterator:Am,toStringTag:rM}=Symbol,Bp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),iM=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),aM=(e,t,n)=>e===Object.prototype||!n&&t===null,eae=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(iM(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},Np=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const i=Rl(n);if(aM(n,i,n===e))return!1;if(Bp(n,t))return!0;n=i}return!1},tae=(e,t)=>e!=null&&Np(e,t)?e[t]:void 0,nae=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Rl(e);if(t===null&&eae(e))return e;const n=Object.create(null),r=Object.create(null),i=[];let s=e;for(;s!=null&&i.indexOf(s)===-1;){i.push(s);const l=s===e?t:Rl(s);if(aM(s,l,s===e))break;const u=Object.getOwnPropertyNames(s);Object.getOwnPropertySymbols&&u.push(...Object.getOwnPropertySymbols(s));for(const d of u)iM(d)||Bp(r,d)||(n[d]=e[d],r[d]=!0);s=l}return n},EI=(e=>t=>{const n=$ie.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ra=e=>(e=e.toLowerCase(),t=>EI(t)===e),kv=e=>t=>typeof t===e,{isArray:tu}=Array,nu=kv("undefined");function Tf(e){return e!==null&&!nu(e)&&e.constructor!==null&&!nu(e.constructor)&&ji(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sM=Ra("ArrayBuffer");function rae(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sM(e.buffer),t}const iae=kv("string"),ji=kv("function"),oM=kv("number"),Af=e=>e!==null&&typeof e=="object",aae=e=>e===!0||e===!1,By=e=>{if(!Af(e))return!1;const t=Rl(e);return(t===null||t===Object.prototype||Rl(t)===null)&&!Np(e,rM)&&!Np(e,Am)},sae=e=>{if(!Af(e)||Tf(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},oae=Ra("Date"),lae=Ra("File"),cae=e=>!!(e&&typeof e.uri<"u"),uae=e=>e&&typeof e.getParts<"u",dae=Ra("Blob"),fae=Ra("FileList"),hae=Ra("Set"),pae=e=>Af(e)&&ji(e.pipe);function mae(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const u7=mae(),d7=typeof u7.FormData<"u"?u7.FormData:void 0,gae=e=>{if(!e)return!1;if(d7&&e instanceof d7)return!0;const t=Rl(e);if(!t||t===Object.prototype||!ji(e.append))return!1;const n=EI(e);return n==="formdata"||n==="object"&&ji(e.toString)&&e.toString()==="[object FormData]"},yae=Ra("URLSearchParams"),[vae,bae,xae,Sae]=["ReadableStream","Request","Response","Headers"].map(Ra),wae=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _m(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),tu(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Tf(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function lM(e,t){if(Tf(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Dc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cM=e=>!nu(e)&&e!==Dc;function y5(...e){const{caseless:t,skipUndefined:n}=cM(this)&&this||{},r={},i=(s,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const u=t&&typeof l=="string"&&lM(r,l)||l,d=Bp(r,u)?r[u]:void 0;By(d)&&By(s)?r[u]=y5(d,s):By(s)?r[u]=y5({},s):tu(s)?r[u]=s.slice():(!n||!nu(s))&&(r[u]=s)};for(let s=0,l=e.length;s<l;s++){const u=e[s];if(!u||Tf(u)||(_m(u,i),typeof u!="object"||tu(u)))continue;const d=Object.getOwnPropertySymbols(u);for(let h=0;h<d.length;h++){const m=d[h];Dae.call(u,m)&&i(u[m],m)}}return r}const Cae=(e,t,n,{allOwnKeys:r}={})=>(_m(t,(i,s)=>{n&&ji(i)?Object.defineProperty(e,s,{__proto__:null,value:nM(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Iae=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kae=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,148 bytes, lines 31-32
31configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Eae=(e,t,n,r)=>{let i,s,l;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)l=i[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Rl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Tae=(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},Aae=e=>{if(!e)return null;if(tu(e))return e;let t=e.length;if(!oM(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_ae=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Rl(Uint8Array)),Rae=(e,t)=>{const r=(e&&e[Am]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},jae=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Oae=Ra("HTMLFormElement"),Lae=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:Dae}=Object.prototype,Mae=Ra("RegExp"),uM=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_m(n,(i,s)=>{let l;(l=t(i,s,e))!==!1&&(r[s]=l||i)}),Object.defineProperties(e,r)},Pae=e=>{uM(e,(t,n)=>{if(ji(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(ji(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+"'")})}})},Fae=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return tu(e)?r(e):r(String(e).split(t)),n},Bae=()=>{},Nae=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zae(e){return!!(e&&ji(e.append)&&e[rM]==="FormData"&&e[Am])}const Hae=e=>{const t=new WeakSet,n=r=>{if(Af(r)){if(t.has(r))return;if(Tf(r))return r;if(!("toJSON"in r)){t.add(r);let i;if(hae(r)){i=[];for(const s of r){const l=n(s);!nu(l)&&i.push(l)}}else i=tu(r)?[]:{},_m(r,(s,l)=>{const u=n(s);!nu(u)&&(i[l]=u)});return t.delete(r),i}}return r};return n(e)},Uae=Ra("AsyncFunction"),Wae=e=>e&&(Af(e)||ji(e))&&ji(e.then)&&ji(e.catch),dM=((e,t)=>e?setImmediate:t?((n,r)=>(Dc.addEventListener("message",({source:i,data:s})=>{i===Dc&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Dc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ji(Dc.postMessage)),Vae=typeof queueMicrotask<"u"?queueMicrotask.bind(Dc):typeof process<"u"&&process.nextTick||dM,fM=e=>e!=null&&ji(e[Am]),qae=e=>e!=null&&Np(e,Am)&&fM(e),J={isArray:tu,isArrayBuffer:sM,isBuffer:Tf,isFormData:gae,isArrayBufferView:rae,isString:iae,isNumber:oM,isBoolean:aae,isObject:Af,isPlainObject:By,isEmptyObject:sae,isReadableStream:vae,isRequest:bae,isResponse:xae,isHeaders:Sae,isUndefined:nu,isDate:oae,isFile:lae,isReactNativeBlob:cae,isReactNative:uae,isBlob:dae,isRegExp:Mae,isFunction:ji,isStream:pae,isURLSearchParams:yae,isTypedArray:_ae,isFileList:fae,forEach:_m,merge:y5,extend:Cae,trim:wae,stripBOM:Iae,inherits:kae,toFlatObject:Eae,kindOf:EI,kindOfTest:Ra,endsWith:Tae,toArray:Aae,forEachEntry:Rae,matchAll:jae,isHTMLForm:Oae,hasOwnProperty:Bp,hasOwnProp:Bp,hasOwnInPrototypeChain:Np,getSafeProp:tae,toSafeFlatObject:nae,reduceDescriptors:uM,freezeMethods:Pae,toObjectSet:Fae,toCamelCase:Lae,noop:Bae,toFiniteNumber:Nae,findKey:lM,global:Dc,isContextDefined:cM,isSpecCompliantForm:zae,toJSONObject:Hae,isAsyncFn:Uae,isThenable:Wae,setImmediate:dM,asap:Vae,isIterable:fM,isSafeIterable:qae},Gae=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"]),Yae=e=>{const t={};let n,r,i;return e&&e.split(` 32`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim();const u=J.hasOwnProp(t,n);!n||u&&J.hasOwnProp(Gae,n)||(n==="set-cookie"?u?t[n].push(r):t[n]=[r]:t[n]=u?t[n]+", "+r:r)}),t};function Kae(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)}
32const Xae=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Jae=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function TI(e,t){return J.isArray(e)?e.map(n=>TI(n,t)):Kae(String(e).replace(t,""))}const Zae=e=>TI(e,Xae),Qae=e=>TI(e,Jae);function hM(e){const t=Object.create(null);return J.forEach(e.toJSON(),(n,r)=>{t[r]=Qae(n)}),t}const f7=Symbol("internals");function Rh(e){return e&&String(e).trim().toLowerCase()}function Ny(e){return e===!1||e==null?e:J.isArray(e)?e.map(Ny):Zae(String(e))}function $ae(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 ese=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function mS(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 tse(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 i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function nse(e){const t=Object.create(null),n=String(e);let r=0,i=!1,s=!1;function l(u){const d=mS(n.slice(r,u)),h=d.indexOf("=");if(h<1)return;const m=mS(d.slice(0,h));if(!ese.test(m))return;const g=m.toLowerCase();if(g==="__proto__"||g==="constructor"||g==="prototype")return;const y=mS(d.slice(h+1));t[g]=tse(y)}for(let u=0;u<n.length;u++){const d=n.charCodeAt(u);i?s?s=!1:d===92?s=!0:d===34&&(i=!1):d===34?i=!0:(d===44||d===59)&&(l(u),r=u+1)}return l(n.length),t}const rse=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gS(e,t,n,r,i){if(J.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function ise(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ase(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,s,l){return this[r].call(this,t,i,s,l)},configurable:!0})})}let Zr=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(u,d,h){const m=Rh(d);if(!m)return;const g=J.findKey(i,m);(!g||i[g]===void 0||h===!0||h===void 0&&i[g]!==!1)&&(i[g||d]=Ny(u))}const l=(u,d)=>J.forEach(u,(h,m)=>s(h,m,d));if(J.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(J.isString(t)&&(t=t.trim())&&!rse(t))l(Yae(t),n);else if(J.isObject(t)&&J.isSafeIterable(t)){let u=Object.create(null),d,h;for(const m of t){if(!J.isArray(m))throw new TypeError("Object iterator must return a key-value pair");h=m[0],J.hasOwnProp(u,h)?(d=u[h],u[h]=J.isArray(d)?[...d,m[1]]:[d,m[1]]):u[h]=m[1]}l(u,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Rh(t),t){const r=J.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return $ae(i);if(J.isFunction(n))return n.call(this,i,r);if(J.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rh(t),t){const r=J.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||gS(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(l){if(l=Rh(l),l){const u=J.findKey(r,l);u&&(!n||gS(r,r[u],u,n))&&(delete r[u],i=!0)}}return J.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||gS(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return J.forEach(this,(i,s)=>{const l=J.findKey(r,s);if(l){n[l]=Ny(i),delete n[s];return}const u=t?ise(s):String(s).trim();u!==s&&delete n[s],n[u]=Ny(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=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(` 33`)}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 nse(t)}static concat(t,...n){const r=new this(t);
33return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[f7]=this[f7]={accessors:{}}).accessors,i=this.prototype;function s(l){const u=Rh(l);r[u]||(ase(i,l),r[u]=!0)}return J.isArray(t)?t.forEach(s):s(t),this}};Zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Zr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});J.freezeMethods(Zr);const w1="[REDACTED ****]";function sse(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 ose(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],i=s=>{if(s===null||typeof s!="object"||J.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Zr&&(s=s.toJSON()),r.push(s);let l;if(J.isArray(s))l=[],s.forEach((u,d)=>{const h=i(u);J.isUndefined(h)||(l[d]=h)});else{if(!J.isPlainObject(s)&&sse(s))return r.pop(),s;l=Object.create(null);for(const[u,d]of Object.entries(s)){const h=n.has(u.toLowerCase())?w1:i(d);J.isUndefined(h)||(l[u]=h)}}return r.pop(),l};return i(e)}function h7(e){try{return String(e)}catch{return""}}function lse(e){return e.errors.map(n=>{try{return n&&n.message?h7(n.message):h7(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let Pe=class pM extends Error{static from(t,n,r,i,s,l){let u=t.message;!u&&J.isArray(t.errors)&&t.errors.length&&(u=lse(t));const d=new pM(u,n||t.code,r,i,s);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),l&&Object.assign(d,l),d}constructor(t,n,r,i,s){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),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&J.hasOwnProp(t,"redact")?t.redact:void 0,r=J.isArray(n)&&n.length>0?ose(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}}};Pe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Pe.ERR_BAD_OPTION="ERR_BAD_OPTION";Pe.ECONNABORTED="ECONNABORTED";Pe.ETIMEDOUT="ETIMEDOUT";Pe.ECONNREFUSED="ECONNREFUSED";Pe.ERR_NETWORK="ERR_NETWORK";Pe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Pe.ERR_DEPRECATED="ERR_DEPRECATED";Pe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Pe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Pe.ERR_CANCELED="ERR_CANCELED";Pe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Pe.ERR_INVALID_URL="ERR_INVALID_URL";Pe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const cse=null,mM=100;function v5(e){return J.isPlainObject(e)||J.isArray(e)}function gM(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function yS(e,t,n){return e?e.concat(t).map(function(i,s){return i=gM(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function use(e){return J.isArray(e)&&!e.some(v5)}const dse=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function Ev(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(E,A)=>{const _=J.getSafeProp(n,E);return J.isUndefined(_)?A:_},i=r("metaTokens",!0),s=r("visitor")||I,l=r("dots",!1),u=r("indexes",!1),d=r("Blob")||typeof Blob<"u"&&Blob,h=r("maxDepth",mM),m=d&&J.isSpecCompliantForm(t),g=[];if(!J.isFunction(s))throw new TypeError("visitor must be a function");function y(E){if(E===null)return"";if(J.isDate(E))return E.toISOString();if(J.isBoolean(E))return E.toString();if(!m&&J.isBlob(E))throw new Pe("Blob is not supported. Use a Buffer instead.");if(J.isArrayBuffer(E)||J.isTypedArray(E)){if(m&&typeof d=="function")return new d([E]);throw new Pe("Blob is not supported. Use a Buffer instead.",Pe.ERR_NOT_SUPPORT)}return E}function b(E){if(E>h)throw new Pe("Object is too deeply nested ("+E+" levels). Max depth: "+h,Pe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function S(E,A){if(h===1/0)return JSON.stringify(E);const _=[];return JSON.stringify(E,function(L,j){if(!J.isObject(j))return j;for(;_.length&&_[_.length-1]!==this;)_.pop();return _.push(j),b(A+_.length-1),j})}function I(E,A,_){let R=E;if(J.isReactNative(t)&&J.isReactNativeBlob(E))return t.append(yS(_,A,l),y(E)),!1;if(E&&!_&&typeof E=="object"){if(J.endsWith(A,"{}"))A=i?A:A.slice(0,-2),E=S(E,1);else if(J.isArray(E)&&use(E)||(J.isFileList(E)||J.endsWith(A,"[]"))&&(R=J.toArray(E)))return A=gM(A),R.forEach(function(j,O){!(J.isUndefined(j)||j===null)&&t.append(u===!0?yS([A],O,l):u===null?A:A+"[]",y(j))}),!1}return v5(E)?!0:(t.append(yS(_,A,l),y(E)),!1)}const w=Object.assign(dse,{defaultVisitor:I,convertValue:y,isVisitable:v5});function C(E,A,_=0){if(!J.isUndefined(E)){if(b(_),g.indexOf(E)!==-1)throw new Error("Circular reference detected in "+A.join("."));g.push(E),J.forEach(E,function(L,j){(!(J.isUndefined(L)||L===null)&&s.call(t,L,J.isString(j)?j.trim():j,A,w))===!0&&C(L,A?A.concat(j):[j],_+1)}),g.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return C(e),t}
33function p7(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function AI(e,t){this._pairs=[],e&&Ev(e,this,t)}const yM=AI.prototype;yM.append=function(t,n){this._pairs.push([t,n])};yM.toString=function(t){const n=t?r=>t.call(this,r,p7):p7;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function fse(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vM(e,t,n){if(!t)return e;e=e||"";const r=J.isFunction(n)?{serialize:n}:n,i=J.getSafeProp(r,"encode")||fse,s=J.getSafeProp(r,"serialize");let l;if(s?l=s(t,r):l=J.isURLSearchParams(t)?t.toString():new AI(t,r).toString(i),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}const jh=Symbol("internals");function bM(e){return e?e.length:0}function m7(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Oh(e,t){const n=e.handlers,r=bM(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(s,l){n[s.index]!==s.handler&&t.handlerEntries.delete(l)}):t.handlerEntries.clear()),t.handlersLength=r}class g7{constructor(){this.handlers=[],this[jh]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const i={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},s=this[jh];this.handlers==null&&(this.handlers=[]),Oh(this,s);const l=s.nextId++;return this.handlers.push(i),s.handlerEntries.set(l,{handler:i,index:this.handlers.length-1}),s.handlersLength=this.handlers.length,l}eject(t){const n=this[jh];Oh(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||(m7(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Oh(this,this[jh]))}forEach(t){const n=this[jh];Oh(this,n),n.iterationDepth++;try{J.forEach(this.handlers,function(i){i!==null&&t(i)})}finally{--n.iterationDepth||(Oh(this,n),m7(this.handlers),n.handlersLength=bM(this.handlers))}}}const _I={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},hse=typeof URLSearchParams<"u"?URLSearchParams:AI,pse=typeof FormData<"u"?FormData:null,mse=typeof Blob<"u"?Blob:null,gse={isBrowser:!0,classes:{URLSearchParams:hse,FormData:pse,Blob:mse},protocols:["http","https","file","blob","url","data"]},RI=typeof window<"u"&&typeof document<"u",b5=typeof navigator=="object"&&navigator||void 0,yse=RI&&(!b5||["ReactNative","NativeScript","NS"].indexOf(b5.product)<0),vse=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bse=RI&&window.location.href||"http://localhost",xse=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:RI,hasStandardBrowserEnv:yse,hasStandardBrowserWebWorkerEnv:vse,navigator:b5,origin:bse},Symbol.toStringTag,{value:"Module"})),kr={...xse,...gse};function Sse(e,t){return Ev(e,new kr.classes.URLSearchParams,{visitor:function(n,r,i,s){return kr.isNode&&J.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const y7=mM;function xM(e){if(e>y7)throw new Pe("FormData field is too deeply nested ("+e+" levels). Max depth: "+y7,Pe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function wse(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)xM(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Cse(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function SM(e){function t(n,r,i,s){xM(s);let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),d=s>=n.length;return l=!l&&J.isArray(i)?i.length:l,d?(J.hasOwnProp(i,l)?i[l]=J.isArray(i[l])?i[l].concat(r):[i[l],r]:i[l]=r,!u):((!J.hasOwnProp(i,l)||!J.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],s)&&J.isArray(i[l])&&(i[l]=Cse(i[l])),!u)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(r,i)=>{t(wse(r),i,n,0)}),n}return null}const wM=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),md=(e,t)=>e!=null&&J.hasOwnProp(e,t)?e[t]:void 0;function Ise(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 Rm={transitional:_I,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=J.isObject(t);
33if(s&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(SM(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 u;if(s){const d=md(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Sse(t,d).toString();if((u=J.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=md(this,"env"),m=h&&h.FormData;return Ev(u?{"files[]":t}:t,m&&new m,d)}}return s||i?(n.setContentType("application/json",!1),Ise(t)):t}],transformResponse:[function(t){const n=md(this,"transitional")||Rm.transitional,r=n&&n.forcedJSONParsing,i=md(this,"responseType"),s=i==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(r&&!i||s)){const u=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,md(this,"parseReviver"))}catch(d){if(u)throw d.name==="SyntaxError"?Pe.from(d,Pe.ERR_BAD_RESPONSE,this,null,md(this,"response")):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kr.classes.FormData,Blob:kr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(wM,e=>{Rm.headers[e]={}});function vS(e,t){const n=this||Rm,r=t||n,i=Zr.from(r.headers);let s=r.data;return J.forEach(e,function(u){s=u.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function CM(e){return!!(e&&e.__CANCEL__)}let jm=class extends Pe{constructor(t,n,r){super(t??"canceled",Pe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function IM(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Pe("Request failed with status code "+n.status,n.status>=400&&n.status<500?Pe.ERR_BAD_REQUEST:Pe.ERR_BAD_RESPONSE,n.config,n.request,n))}const kse=/[\t\n\r]/g;function kM(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(kse,"")}function bS(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Ese(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,l;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),m=r[s];l||(l=h),n[i]=d,r[i]=h;let g=s,y=0;for(;g!==i;)y+=n[g++],g=g%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),h-l<t)return;const b=m&&h-m;return b?Math.round(y*1e3/b):void 0}}function Tse(e,t){let n=0,r=1e3/t,i,s;const l=(m,g=Date.now())=>{n=g,i=null,s&&(clearTimeout(s),s=null),e(...m)};return[(...m)=>{const g=Date.now(),y=g-n;y>=r?l(m,g):(i=m,s||(s=setTimeout(()=>{s=null,l(i)},r-y)))},()=>i&&l(i),(...m)=>l(m)]}const C1=(e,t,n=3)=>{let r=0;const i=Ese(50,250);return Tse(s=>{if(!s||!J.isNumber(s.loaded))return;const l=s.loaded,u=s.lengthComputable?s.total:void 0,d=Math.max(0,u!=null?Math.min(l,u):l),h=Math.max(0,d-r),m=i(h);r=Math.max(r,d);const g={loaded:d,total:u,progress:u?d/u:void 0,bytes:h,rate:m||void 0,estimated:m&&u?(u-d)/m:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},v7=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},b7=(e,t=J.asap)=>(...n)=>t(()=>e(...n)),Ase=kr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kr.origin),kr.navigator&&/(msie|trident)/i.test(kr.navigator.userAgent)):()=>!0,_se=kr.hasStandardBrowserEnv?{write(e,t,n,r,i,s,l){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&u.push(`path=${r}`),J.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),J.isString(l)&&u.push(`SameSite=${l}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Rse(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jse(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 Ose=/^https?:(?!\/\/)/i;function Lse(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${w1}`)}function Dse(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${w1}@`),n=t.indexOf("#"),i=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${w1}`);return n===-1?i:`${i}#${Lse(t.slice(n+1))}`}function x7(e,t){if(typeof e=="string"){const n=kM(e);if(Ose.test(n))throw new Pe(`Invalid URL ${JSON.stringify(Dse(n))}: missing "//" after protocol`,Pe.ERR_INVALID_URL,t)}}function EM(e,t,n,r){x7(t,r);let i=!Rse(t);return e&&(i||n===!1)?(x7(e,r),jse(e,t)):t}const S7=e=>e instanceof Zr?{...e}:e,Mse=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function ru(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(m,g,y,b){return J.isPlainObject(m)&&J.isPlainObject(g)?J.merge.call({caseless:b},m,g):J.isPlainObject(g)?J.merge({},g):J.isArray(g)?g.slice():g}function i(m,g,y,b){if(J.isUndefined(g)){if(!J.isUndefined(m))return r(void 0,m,y,b)}else return r(m,g,y,b)}function s(m,g){if(!J.isUndefined(g))return r(void 0,g)}function l(m,g){if(J.isUndefined(g)){if(!J.isUndefined(m))return r(void 0,m)}else return r(void 0,g)}function u(m){const g=J.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!J.isUndefined(g))if(J.isPlainObject(g)){if(J.hasOwnProp(g,m))return g[m]}else return;const y=J.hasOwnProp(e,"transitional")?e.transitional:void 0;if(J.isPlainObject(y)&&J.hasOwnProp(y,m))return y[m]}function d(m,g,y){if(J.hasOwnProp(t,y))return r(m,g);if(J.hasOwnProp(e,y))return r(void 0,m)}const h={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutErrorMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:d,headers:(m,g,y)=>i(S7(m),S7(g),y,!0)};return J.forEach(Mse({...e,...t}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const y=J.hasOwnProp(h,g)?h[g]:i,b=J.hasOwnProp(e,g)?e[g]:void 0,S=J.hasOwnProp(t,g)?t[g]:void 0,I=y(b,S,g);J.isUndefined(I)&&y!==d||(n[g]=I)}),J.hasOwnProp(t,"validateStatus")&&J.isUndefined(t.validateStatus)&&u("validateStatusUndefinedResolves")===!1&&(J.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
33idateStatus),n}const Pse=["content-type","content-length"];function Fse(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{Pse.includes(r.toLowerCase())&&e.set(r,i)})}const Bse=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function TM(e){const t=ru({},e),n=y=>J.hasOwnProp(t,y)?t[y]:void 0,r=n("data");let i=n("withXSRFToken");const s=n("xsrfHeaderName"),l=n("xsrfCookieName");let u=n("headers");const d=n("auth"),h=n("baseURL"),m=n("allowAbsoluteUrls"),g=n("url");if(t.headers=u=Zr.from(u),t.url=vM(EM(h,g,m,t),n("params"),n("paramsSerializer")),d){const y=J.getSafeProp(d,"username")||"",b=J.getSafeProp(d,"password")||"";try{u.set("Authorization","Basic "+btoa(y+":"+(b?Bse(b):"")))}catch(S){throw Pe.from(S,Pe.ERR_BAD_OPTION_VALUE,e)}}if(J.isFormData(r)){const y=J.getSafeProp(r,"getHeaders");kr.hasStandardBrowserEnv||kr.hasStandardBrowserWebWorkerEnv||J.isReactNative(r)?u.setContentType(void 0):J.isFunction(y)&&Fse(u,y.call(r),n("formDataHeaderPolicy"))}if(kr.hasStandardBrowserEnv&&(J.isFunction(i)&&(i=i(t)),i===!0||i==null&&Ase(t.url))){const b=s&&l&&_se.read(l);b&&u.set(s,b)}return t}const Nse=typeof XMLHttpRequest<"u",zse=Nse&&function(e){return new Promise(function(n,r){const i=TM(e);let s=i.data;const l=Zr.from(i.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:h}=i,m,g,y,b,S,I;function w(){b&&b(),S&&S(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function E(_){if(!C)return;if(C.status===0&&(bS(kM(i.url))||bS(kr.origin))!=="file"&&!(C.responseURL&&C.responseURL.startsWith("file:"))){r(new Pe("Request aborted",Pe.ECONNABORTED,e,C)),w(),C=null;return}try{_?I&&I(_):S&&S()}catch(O){setTimeout(()=>{throw O})}if(!C)return;const R=Zr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),j={data:!u||u==="text"||u==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:R,config:e,request:C};IM(function(F){n(F),w()},function(F){r(F),w()},j),C=null}"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.startsWith("file:"))||setTimeout(E)},C.onabort=function(){C&&(r(new Pe("Request aborted",Pe.ECONNABORTED,e,C)),w(),C=null)},C.onerror=function(R){const L=R&&R.message?R.message:"Network Error",j=new Pe(L,Pe.ERR_NETWORK,e,C);j.event=R||null,r(j),w(),C=null},C.ontimeout=function(){let R=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const L=i.transitional||_I;i.timeoutErrorMessage&&(R=i.timeoutErrorMessage),r(new Pe(R,L.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,C)),w(),C=null},s===void 0&&l.setContentType(null),"setRequestHeader"in C&&J.forEach(hM(l),function(R,L){C.setRequestHeader(L,R)}),J.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),u&&u!=="json"&&(C.responseType=i.responseType),h&&([y,S,I]=C1(h,!0),C.addEventListener("progress",y)),d&&C.upload&&([g,b]=C1(d),C.upload.addEventListener("progress",g),C.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(m=_=>{C&&(r(!_||_.type?new jm(null,e,C):_),C.abort(),w(),C=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const A=bS(i.url);if(A&&!kr.protocols.includes(A)){r(new Pe("Unsupported protocol "+A+":",Pe.ERR_BAD_REQUEST,e)),w();return}C.send(s||null)})},Hse=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(d){if(!r){r=!0,l();const h=d instanceof Error?d:this.reason;n.abort(h instanceof Pe?h:new jm(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>
33{s=null,i(new Pe(`timeout of ${t}ms exceeded`,Pe.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>{if(!r){if(d.aborted){i.call(d);return}d.addEventListener("abort",i,{once:!0})}});const{signal:u}=n;return u.unsubscribe=()=>J.asap(l),u},Use=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Wse=async function*(e,t){for await(const n of Vse(e))yield*Use(n,t)},Vse=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},w7=(e,t,n,r)=>{const i=Wse(e,t);let s=0,l,u=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:h,value:m}=await i.next();if(h){u(),d.close();return}let g=m.byteLength;if(n){let y=s+=g;n(y)}d.enqueue(new Uint8Array(m))}catch(h){throw u(h),h}},cancel(d){return u(d),i.return()}},{highWaterMark:2})},C7=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,AM=(e,t,n)=>t+2<n&&C7(e.charCodeAt(t+1))&&C7(e.charCodeAt(t+2)),I7=e=>e<=57?e-48:(e&223)-55,qse=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Gse=e=>e===9||e===10||e===12||e===13||e===32,Yse=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Kse=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)},Xse=e=>{const t=e.length;let n=0,r=0,i=!1;for(let s=0;s<t;s++){let l=e.charCodeAt(s);if(l===37&&AM(e,s,t)&&(l=I7(e.charCodeAt(s+1))*16+I7(e.charCodeAt(s+2)),s+=2),!Gse(l)){if(l===61){r++;continue}if(!qse(l)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!==0||n%4===1?Kse(e):Yse(n)},Jse=(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),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let l=0;for(let u=0,d=i.length;u<d;u++){const h=i.charCodeAt(u);if(h===37&&AM(i,u,d))l+=1,u+=2;else if(h<128)l+=1;else if(h<2048)l+=2;else if(h>=55296&&h<=56319&&u+1<d){const m=i.charCodeAt(u+1);m>=56320&&m<=57343?(l+=4,u++):l+=3}else l+=3}return l};function Zse(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Jse(t===-1?e:e.slice(0,t),Xse)}const jI="1.20.0",k7=64*1024,Qse={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:D0}=J,$se=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),E7=e=>{if(!J.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},T7=(e,...t)=>{try{return!!e(...t)}catch{return!1}},eoe=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},toe=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:i,Request:s,Response:l}=e,u=i?D0(i):typeof fetch=="function",d=D0(s),h=D0(l);if(!u)return!1;const m=u&&D0(n),g=u&&(typeof r=="function"?(C=>E=>C.encode(E))(new r):async C=>new Uint8Array(await new s(C).arrayBuffer())),y=d&&m&&T7(()=>{let C=!1;const E=new s(kr.origin,{body:new n,method:"POST",get duplex(){return C=!0,"half"}}),A=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),C&&!A}),b=h&&m&&T7(()=>J.isReadableStream(new l("").body)),S={stream:b&&(C=>C.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!S[C]&&(S[C]=(E,A)=>{let _=E&&E[C];if(_)return _.call(E);throw new Pe(`Response type '${C}' is not supported`,Pe.ERR_NOT_SUPPORT,A)})});const I=async C=>{if(C==null)return 0;if(J.isBlob(C))return C.size;if(J.isSpecCompliantForm(C))return(await new s(kr.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(J.isArrayBufferView(C)||J.isArrayBuffer(C))return C.byteLength;if(J.isURLSearchParams(C)&&(C=C+""),J.isString(C))return(await g(C)).byteLength},w=async(C,E)=>{const A=J.toFiniteNumber(C.getContentLength());return A??I(E)};return async C=>{let{url:E,method:A,data:_,signal:R,cancelToken:L,timeout:j,onDownloadProgress:O,onUploadProgress:F,responseType:D,headers:H,withCredentials:V="same-origin",fetchOptions:Y,maxContentLength:K,maxBodyLength:z,maxRedirects:q}=TM(C);const $=J.isNumber(K)&&K>-1,ue=J.isNumber(z)&&z>-1,ge=de=>J.hasOwnProp(C,de)?C[de]:void 0;let M=i||fetch;D=D?(D+"").toLowerCase():"text";let Z=Hse([R,L&&L.toAbortSignal()],j),te=null;const B=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let N,le=null;const ae=()=>new Pe("Request body larger than maxBodyLength limit",Pe.ERR_BAD_REQUEST,C,te);try{let de;const oe=ge("auth");if(oe){const Ae=J.getSafeProp(oe,"username")||"",ot=J.getSafeProp(oe,"password")||"";de={username:Ae,password:ot}}if(eoe(E)){const Ae=new URL(E,kr.origin);if(!de&&(Ae.username||Ae.password)){const ot=E7(Ae.username),en=E7(Ae.password);de={username:ot,password:en}}(Ae.username||Ae.password)&&(Ae.username="",Ae.password="",E=Ae.href)}if(de&&(H.delete("authorization"),H.set("Authorization","Basic "+btoa($se((de.username||"")+":"+(de.password||""))))),$&&typeof E=="string"&&E.startsWith("data:")&&Zse(E)>K)throw new Pe("maxContentLength size of "+K+" exceeded",Pe.ERR_BAD_RESPONSE,C,te);if(ue&&A!=="get"&&A!=="head"){const Ae=await I(_);if(typeof Ae=="number"&&isFinite(Ae)&&(N=Ae,Ae>z))throw ae()}const we=ue&&(J.isReadableStream(_)||J.isStream(_)),je=(Ae,ot,en)=>w7(Ae,k7,ln=>{if(ue&&ln>z)throw le=ae();ot&&ot(ln)},en);if(y&&A!=="get"&&A!=="head"&&(F||we)){if(N=N??await w(H,_),N!==0||we){let Ae=new s(E,{method:"POST",body:_,duplex:"half"}),ot;if(J.isFormData(_)&&(ot=Ae.headers.get("content-type"))&&H.setContentType(ot),Ae.body){const[en,ln]=F&&v7(N,C1(b7(F)))||[];_=je(Ae.body,en,ln)}}}else if(we&&!d&&m&&A!=="get"&&A!=="head")_=je(_);else if(we&&d&&!y&&A!=="get"&&A!=="head")throw new Pe("Stream request bodies are not supported by the current fetch implementation",Pe.ERR_NOT_SUPPORT,C,te);J.isString(V)||(V=V?"include":"omit");const xe=d&&"credentials"in s.prototype;if(J.isFormData(_)){const Ae=H.getContentType();Ae&&/^multipart\/form-data/i.test(Ae)&&!/boundary=/i.test(Ae)&&H.delete("content-type")}H.set("User-Agent","axios/"+jI,!1);const Se=Y==null?Y:Object.assign(Object.create(null),Y);Se&&(delete Se.body,delete Se.headers,delete Se.method,delete Se.signal,delete Se.duplex,delete Se.credentials);const qe=Object.assign(Object.create(null),Se,{signal:Z,method:A.toUpperCase(),headers:hM(H.normalize()),body:_,duplex:"half",credentials:xe?V:void 0});d&&(J.forEach(Qse,(Ae,ot)=>{qe[ot]===void 0&&(qe[ot]=Ae)}),qe.signal===void 0&&(qe.signal=null),qe.body===void 0&&(qe.body=null)),q===0&&(qe.redirect="manual",Se&&(Se.redirect="manual")),te=d&&new s(E,qe);let Ke=await(d?M(te,Se):M(E,qe));const dt=Zr.from(Ke.headers);if($){const Ae=J.toFiniteNumber(dt.getContentLength());if(Ae!=null&&Ae>K)throw new Pe("maxContentLength size of "+K+" exceeded",Pe.ERR_BAD_RESPONSE,C,te)}const at=b&&(D==="stream"||D==="response");if(b&&Ke.body&&(O||$||at&&B)){const Ae={};["status","statusText","headers"].forEach(Cn=>{Ae[Cn]=Ke[Cn]});const ot=J.toFiniteNumber(dt.getContentLength()),[en,ln]=O&&v7(ot,C1(b7(O),!0))||[];let pr=0;const Xn=Cn=>{if($&&(pr=Cn,pr>K))throw new Pe("maxContentLength size of "+K+" exceeded",Pe.ERR_BAD_RESPONSE,C,te);en&&en(Cn)};Ke=new l(w7(Ke.body,k7,Xn,()=>{ln&&ln(),B&&B()}),Ae)}D=D||"text";let nt=await S[J.findKey(S,D)||"text"](Ke,C);if($&&!b&&!at){let Ae;if(nt!=null&&(typeof nt.byteLength=="number"?Ae=nt.byteLength:typeof nt.size=="number"?Ae=nt.size:typeof nt=="string"&&(Ae=typeof r=="function"?new r().encode(nt).byteLength:nt.length)),typeof Ae=="number"&&Ae>K)throw new Pe("maxContentLength size of "+K+" exceeded",Pe.ERR_BAD_RESPONSE,C,te)}return!at&&B&&B(),await new Promise((Ae,ot)=>{IM(Ae,ot,{data:nt,headers:Zr.from(Ke.headers),status:Ke.status,statusText:Ke.statusText,config:C,request:te})})}catch(de){if(B&&B(),Z&&Z.aborted&&Z.reason instanceof Pe){const oe=Z.reason;throw oe.config=C,te&&(oe.request=te),de!==oe&&Object.defineProperty(oe,"cause",{__proto__:null,value:de,writable:!0,enumerable:!1,
vendor: 3,417 bytes, lines 33-35
33configurable:!0}),oe}if(le)throw te&&!le.request&&(le.request=te),le;if(de instanceof Pe)throw te&&!de.request&&(de.request=te),de;if(de&&de.name==="TypeError"&&/Load failed|fetch/i.test(de.message)){const oe=new Pe("Network Error",Pe.ERR_NETWORK,C,te,de&&de.response);throw Object.defineProperty(oe,"cause",{__proto__:null,value:de.cause||de,writable:!0,enumerable:!1,configurable:!0}),oe}throw Pe.from(de,de&&de.code,C,te,de&&de.response)}}},noe=new Map,_M=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let l=s.length,u=l,d,h,m=noe;for(;u--;)d=s[u],h=m.get(d),h===void 0&&m.set(d,h=u?new Map:toe(t)),m=h;return h};_M();const OI={http:cse,xhr:zse,fetch:{get:_M}};J.forEach(OI,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const A7=e=>`- ${e}`,roe=e=>J.isFunction(e)||e===null||e===!1;function ioe(e,t){e=J.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let l=0;l<n;l++){r=e[l];let u;if(i=r,!roe(r)&&(i=OI[(u=String(r)).toLowerCase()],i===void 0))throw new Pe(`Unknown adapter '${u}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;s[u||"#"+l]=i}if(!i){const l=Object.entries(s).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since : 34`+l.map(A7).join(` 35`):" "+A7(l[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+u,Pe.ERR_NOT_SUPPORT)}return i}const RM={getAdapter:ioe,adapters:OI};function xS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jm(null,e)}function SS(e){const t=J.toSafeFlatObject(e);return xS(t),t.headers=Zr.from(J.getSafeProp(t,"headers")),t.data=vS.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),RM.getAdapter(t.adapter||Rm.adapter,t)(t).then(function(i){xS(t),t.response=i;try{i.data=vS.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=Zr.from(i.headers),i},function(i){if(!CM(i)&&(xS(t),i&&i.response)){t.response=i.response;try{i.response.data=vS.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=Zr.from(i.response.headers)}return Promise.reject(i)})}const Tv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Tv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _7={};Tv.transitional=function(t,n,r){function i(s,l){return"[Axios v"+jI+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,u)=>{if(t===!1)throw new Pe(i(l," has been removed"+(n?" in "+n:"")),Pe.ERR_DEPRECATED);return n&&!_7[l]&&(_7[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,u):!0}};Tv.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function aoe(e,t,n){if(typeof e!="object"||e===null)throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],l=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(l){const u=e[s],d=u===void 0||l(u,s,e);if(d!==!0)throw new Pe("option "+s+" must be "+d,Pe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Pe("Unknown option "+s,Pe.ERR_BAD_OPTION)}}const zy={assertOptions:aoe,validators:Tv}
35,Wr=zy.validators;let Wc=class{constructor(t){this.defaults=t||{},this.interceptors={request:new g7,response:new g7}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack;let l="";if(typeof s=="string"){const u=s.indexOf(` 36`);l=u===-1?"":s.slice(u+1)}if(!r.stack)r.stack=l;else if(l){const u=l.indexOf(` 37`),d=u===-1?-1:l.indexOf(` 38`,u+1),h=d===-1?"":l.slice(d+1);String(r.stack).endsWith(h)||(r.stack+=` 39`+l)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ru(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&zy.assertOptions(r,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean),legacyInterceptorReqResOrdering:Wr.transitional(Wr.boolean),advertiseZstdAcceptEncoding:Wr.transitional(Wr.boolean),validateStatusUndefinedResolves:Wr.transitional(Wr.boolean)},!1),i!=null&&(J.isFunction(i)?n.paramsSerializer={serialize:i}:zy.assertOptions(i,{encode:Wr.function,serialize:Wr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),zy.assertOptions(n,{baseUrl:Wr.spelling("baseURL"),withXsrfToken:Wr.spelling("withXSRFToken")},!0),n.method=(J.getSafeProp(n,"method")||J.getSafeProp(this.defaults,"method")||"get").toLowerCase();let l=s&&J.merge(s.common,s[n.method]);s&&J.forEach(wM.concat("common"),S=>{delete s[S]}),n.headers=Zr.concat(l,s);const u=[];let d=!0;this.interceptors.request.forEach(function(I){if(typeof I.runWhen=="function"&&I.runWhen(n)===!1)return;d=d&&I.synchronous;const w=n.transitional||_I;w&&w.legacyInterceptorReqResOrdering?u.unshift(I.fulfilled,I.rejected):u.push(I.fulfilled,I.rejected)});const h=[];this.interceptors.response.forEach(function(I){h.push(I.fulfilled,I.rejected)});let m,g=0,y;if(!d){const S=[SS.bind(this),void 0];for(S.unshift(...u),S.push(...h),y=S.length,m=Promise.resolve(n);g<y;)m=m.then(S[g++],S[g++]);return m}y=u.length;let b=n;for(;g<y;){const S=u[g++],I=u[g++];try{b=S?S(b):b}catch(w){if(!I){m=Promise.reject(w);break}try{const C=I.call(this,w);J.isThenable(C)&&(m=Promise.resolve(C).then(()=>SS.call(this,b)))}catch(C){m=Promise.reject(C)}break}}if(!m)try{m=SS.call(this,b)}catch(S){m=Promise.reject(S)}for(g=0,y=h.length;g<y;)m=m.then(h[g++],h[g++]);return m}getUri(t){t=ru(this.defaults,t);const n=EM(t.baseURL,t.url,t.allowAbsoluteUrls,t);return vM(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Wc.prototype[t]=function(n,r){return this.request(ru(r||{},{method:t,url:n,data:r&&J.hasOwnProp(r,"data")?r.data:void 0}))}});J.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,l,u){return this.request(ru(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Wc.prototype[t]=n(),t!=="query"&&(Wc.prototype[t+"Form"]=n(!0))});let soe=class jM{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(i);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,u){r.reason||(r.reason=new jm(s,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jM(function(i){t=i}),cancel:t}}};function ooe(e){return function(n){return e.apply(null,n)}}function loe(e){return J.isObject(e)&&e.isAxiosError===!0}const Hy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
39setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Hy).forEach(([e,t])=>{Hy[t]===void 0&&(Hy[t]=e)});function OM(e){const t=new Wc(e),n=nM(Wc.prototype.request,t);return J.extend(n,Wc.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return OM(ru(e,i))},n}const Kn=OM(Rm);Kn.Axios=Wc;Kn.CanceledError=jm;Kn.CancelToken=soe;Kn.isCancel=CM;Kn.VERSION=jI;Kn.toFormData=Ev;Kn.AxiosError=Pe;Kn.Cancel=Kn.CanceledError;Kn.all=function(t){return Promise.all(t)};Kn.spread=ooe;Kn.isAxiosError=loe;Kn.mergeConfig=ru;Kn.AxiosHeaders=Zr;Kn.formToJSON=e=>SM(J.isHTMLForm(e)?new FormData(e):e);Kn.getAdapter=RM.getAdapter;Kn.HttpStatusCode=Hy;Kn.default=Kn;const{Axios:WAe,AxiosError:VAe,CanceledError:qAe,isCancel:GAe,CancelToken:YAe,VERSION:KAe,all:XAe,Cancel:JAe,isAxiosError:coe,spread:ZAe,toFormData:QAe,AxiosHeaders:$Ae,HttpStatusCode:e4e,formToJSON:t4e,getAdapter:n4e,mergeConfig:r4e,create:i4e}=Kn;var wS,R7;function uoe(){if(R7)return wS;R7=1;const e=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);return wS=t=>!e.has(t&&t.code),wS}var doe=uoe();const foe=ff(doe),LI="axios-retry";function LM(e){const t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:foe(e)}const DM=["get","head","options"],hoe=DM.concat(["put","delete"]);function DI(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function poe(e){return e.config?.method?DI(e)&&DM.indexOf(e.config.method)!==-1:!1}function MM(e){return e.config?.method?DI(e)&&hoe.indexOf(e.config.method)!==-1:!1}function MI(e){return LM(e)||MM(e)}function PI(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=(Number(t)||0)*1e3;return n===0&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}function moe(e=0,t=void 0){return Math.max(0,PI(t))}function goe(e=0,t=void 0,n=100){const r=2**e*n,i=Math.max(r,PI(t)),s=i*.2*Math.random();return i+s}function yoe(e=100){return(t=0,n=void 0)=>{const r=t*e;return Math.max(r,PI(n))}}const voe={retries:3,retryCondition:MI,retryDelay:moe,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function boe(e,t){return{...voe,...t,...e[LI]}}function j7(e,t,n=!1){const r=boe(e,t||{});return r.retryCount=r.retryCount||0,(!r.lastRequestTime||n)&&(r.lastRequestTime=
39Date.now()),e[LI]=r,r}function xoe(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function Soe(e,t){const{retries:n,retryCondition:r}=e,i=(e.retryCount||0)<n&&r(t);if(typeof i=="object")try{return await i!==!1}catch{return!1}return i}async function woe(e,t,n,r){t.retryCount+=1;const{retryDelay:i,shouldResetTimeout:s,onRetry:l}=t,u=i(t.retryCount,n);if(xoe(e,r),!s&&r.timeout&&t.lastRequestTime){const d=Date.now()-t.lastRequestTime,h=r.timeout-d-u;if(h<=0)return Promise.reject(n);r.timeout=h}return r.transformRequest=[d=>d],await l(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise(d=>{const h=()=>{clearTimeout(m),d(e(r))},m=setTimeout(()=>{d(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",h)},u);r.signal?.addEventListener&&r.signal.addEventListener("abort",h,{once:!0})})}async function Coe(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}const wo=(e,t)=>{const n=e.interceptors.request.use(i=>(j7(i,t,!0),i[LI]?.validateResponse&&(i.validateStatus=()=>!1),i)),r=e.interceptors.response.use(null,async i=>{const{config:s}=i;if(!s)return Promise.reject(i);const l=j7(s,t);return i.response&&l.validateResponse?.(i.response)?i.response:await Soe(l,i)?woe(e,l,i,s):(await Coe(l,i),Promise.reject(i))});return{requestInterceptorId:n,responseInterceptorId:r}};wo.isNetworkError=LM;wo.isSafeRequestError=poe;wo.isIdempotentRequestError=MM;wo.isNetworkOrIdempotentRequestError=MI;wo.exponentialDelay=goe;wo.linearDelay=yoe;wo.isRetryableError=DI;const Tn=Kn.create({timeout:3e4});function PM(e){if(coe(e))return e.response?.status}wo(Tn,{retries:3,retryDelay:wo.exponentialDelay,retryCondition:e=>!!(MI(e)||e.response&&e.response.status>=500||e.response&&e.response.status===429)});const FM="https://api.tonita.co",x5=new Kie({max:20});async function Ioe(e,t,n){const r=x5.get(e);return r||(await koe({listingIds:[e],sourceMessageId:t,sourceComponentId:n})).get(e)||null}async function koe(e){const{listingIds:t,sourceMessageId:n,sourceComponentId:r}=e,i=new Map;if(t.length===0)return i;const s=[];for(const l of t){const u=x5.get(l);u?i.set(l,u):s.push(l)}if(s.length===0)return i;try{const l=be.getState().userId;if(!l)return i;const d={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":l,...Sn()},g=(await Tn.post(`${FM}/listing/populate-listing-cards`,{listing_ids:s},{headers:d})).data.cardComponents||[];if(!Array.isArray(g))return i;for(const y of g)try{const b=y.listingCarouselCard;if(!b?.listing)continue;const S=Ia(b,n,r);i.set(S.listingId,S),x5.set(S.listingId,S)}catch(b){pt({error:b,source:"listingService.populateListingCards.parse"},{showToast:!1})}return i}catch(l){return pt({error:l,source:"listingService.populateListingCards"},{showToast:!1}),i}}async function Eoe(e){if(e.length===0)return[];const t=be.getState().userId;if(!t)return[];const r={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":t,...Sn()},s=(await Tn.post(`${FM}/listing/get-listing-details`,{listing_ids:e},{headers:r})).data.listingDetailCards||[],l=[];for(const u of s){if(!u.listing)continue;const d={listingId:u.listingId,listing:u.listing,imageGallery:u.imageGallery,text:u.text};try{const h=Ia(d,"direct","direct");l.push(h)}catch(h){pt({error:h,source:"listingService.getListingDetailCards.parse"},{showToast:!1})}}return l}const Vc=wn(e=>({focusedProduct:null,setInFocus:t=>{e({focusedProduct:t})},clearInFocus:()=>{e({focusedProduct:null})}}));function Av(e,t){function n(r){const s=k.useContext(t)??e;return HD(s,r??Toe)}return Object.assign(n,e)}const Toe=e=>e,Aoe=e=>Im((t,n)=>({selectedListing:null,isListingDetailsOpen:!1,...e,openListingDetails:r=>{t({selectedListing:r,isListingDetailsOpen:!0}),Vc.getState().setInFocus(r)},closeListingDetails:()=>{t({selectedListing:null,isListingDetailsOpen:!1}),Vc.getState().clearInFocus()},updateSelectedListing:r=>{const{isListingDetailsOpen:i}=n();i&&(t({selectedListing:r}),Vc.getState().setInFocus(r))}}
39)),_oe=k.createContext(null),Roe=Aoe(),Xt=Av(Roe,_oe),FI=(e,t)=>e.groups.get(t.groupId)?.colorSwatches||t.colorSwatches||[],Xi=wn((e,t)=>({groups:new Map,loadingListingIds:new Set,initializeGroup:n=>{const r=t().groups.get(n.groupId);if(r)return r;const i={groupId:n.groupId,listings:new Map([[n.listingId,n]]),selectedListingId:n.listingId,colorSwatches:n.colorSwatches};return e(s=>{const l=new Map(s.groups);return l.set(i.groupId,i),{groups:l}}),i},getGroup:n=>t().groups.get(n),getSelectedListing:n=>{const r=t().groups.get(n);return r?.listings.get(r.selectedListingId)},updateGroup:n=>{e(r=>{const i=new Map(r.groups);return i.set(n.groupId,n),{groups:i}})},fetchAndSelectVariant:async n=>{const{groupId:r,variantListingId:i,sourceMessageId:s,sourceComponentId:l}=n,u=t().groups.get(r);if(!u)return null;if(u.selectedListingId===i)return u.listings.get(i)||null;if(u.listings.has(i)){const h={...u,selectedListingId:i};t().updateGroup(h);const m=h.listings.get(i)||null;return m&&Xt.getState().updateSelectedListing(m),m}if(t().loadingListingIds.has(i))return t().updateGroup({...u,selectedListingId:i}),null;const d=u.selectedListingId;t().updateGroup({...u,selectedListingId:i}),e(h=>{const m=new Set(h.loadingListingIds);return m.add(i),{loadingListingIds:m}});try{const h=await Ioe(i,s,l);if(h){const m={...h,groupId:r},g=t().groups.get(r);if(g){const y=new Map(g.listings);y.set(h.listingId,m),t().updateGroup({...g,listings:y}),g.selectedListingId===i&&Xt.getState().updateSelectedListing(m)}return m}return null}catch{const h=t().groups.get(r);if(h&&h.selectedListingId===i){const m=h.listings.has(d)?d:h.colorSwatches.find(g=>h.listings.has(g.listingId))?.listingId;if(m){t().updateGroup({...h,selectedListingId:m});const g=h.listings.get(m);g&&Xt.getState().updateSelectedListing(g)}}return null}finally{e(h=>{const m=new Set(h.loadingListingIds);return m.delete(i),{loadingListingIds:m}})}},isLoading:n=>t().loadingListingIds.has(n),clearAll:()=>{e({groups:new Map,loadingListingIds:new Set})}}));function _v(e,t){return`${e}::${t}`}const Fe=wn((e,t)=>({isCarouselOpen:!1,currentCarouselCards:[],currentMessageId:null,currentComponentId:null,currentCarouselTitle:null,currentSearchRequestJson:null,savedScrollContext:null,previewVisibleListingId:null,openedAtCarouselCount:null,hasCarouselBeenUpdatedOnceForTurn:!1,carouselStartedThisTurn:!1,turnRightPanelCarouselKey:null,openCarousel:(n,r,i,s,l,u)=>{const h=U.getState().messages.filter(g=>g.role==="ASSISTANT"&&g.type==="carousel").length;i&&!i.includes("recently-interacted-carousel")&&bn.getState().closeRecentlyInteractedCarousel();const m=u===void 0?null:u;e(g=>({isCarouselOpen:!0,currentCarouselCards:n?[...n]:g.currentCarouselCards,currentMessageId:r||g.currentMessageId,currentComponentId:i||g.currentComponentId,currentCarouselTitle:s||g.currentCarouselTitle,currentSearchRequestJson:l||g.currentSearchRequestJson,openedAtCarouselCount:h,previewVisibleListingId:m})),m||t().resetScrollPosition()},closeCarousel:()=>{bn.getState().closeRecentlyInteractedCarousel(),Xi.getState().clearAll(),e({isCarouselOpen:!1,savedScrollContext:null,previewVisibleListingId:null,currentMessageId:null,currentComponentId:null,currentCarouselTitle:null,currentSearchRequestJson:null,openedAtCarouselCount:null})},setCarouselCards:(n,r,i,s,l,u=!0)=>{e(d=>{const h=(r||null)!==d.currentMessageId||(i||null)!==d.currentComponentId;return{currentCarouselCards:[...n],currentMessageId:r||null,currentComponentId:i||null,currentCarouselTitle:s||d.currentCarouselTitle,currentSearchRequestJson:l||d.currentSearchRequestJson,previewVisibleListingId:h?null:d.previewVisibleListingId}}),u&&t().resetScrollPosition()},saveScrollContext:()=>{const n=t(),r=document.querySelector(".carousel-container");if(r){const i=r.scrollTop,s=i+r.clientHeight;let l=null,u=0;const d=r.querySelectorAll("[data-listing-id]");for(const m of d){const g=m.getBoundingClientRect(),y=r.getBoundingClientRect(),b=g.top-y.top+i;if(b+g.height>i&&b<s){l=m.getAttribute("data-listing-id"),u=b-i;break}}const h={topVisibleListingId:l,offsetFromTop:u,messageId:n.currentMessageId,componentId:n.currentComponentId,timestamp:Date.now()};e({savedScrollContext:h})}},restoreScrollPosition:()=>{const{savedScrollContext:n,currentMessageId:r,currentComponentId:i}=t();!n||!n.topVisibleListingId||requestAnimationFrame(()=>{const s=document.querySelector(".carousel-container");if(!s)return;if(n.messageId===r&&n.componentId===i&&Date.now()-n.timestamp<600*1e3){const u=s.querySelector(`[data-listing-id="${n.topVisibleListingId}"]`);if(u){const d=s.getBoundingClientRect(),m=u.getBoundingClientRect().top-d.top+s.scrollTop;s.scrollTop=m-n.offsetFromTop}}})},resetScrollPosition:()=>{requestAnimationFrame(()=>{const n=document.querySelector(".carousel-container");n&&(n.scrollTo({top:0,behavior:"instant"}),e({savedScrollContext:null}))})},setHasCarouselBeenUpdatedOnceForTurn:n=>e({hasCarouselBeenUpdatedOnceForTurn:n}),setCarouselStartedThisTurn:n=>e({carouselStartedThisTurn:n}),setTurnRightPanelCarouselKey:n=>
39e({turnRightPanelCarouselKey:n})})),Ji=wn()(Ef(e=>({sendUserMessage:null,resendUserMessage:null,rerankFunction:null,cancelActiveTurn:null,setSendUserMessage:t=>e(n=>{n.sendUserMessage=t}),setResendUserMessage:t=>e(n=>{n.resendUserMessage=t}),setRerankFunction:t=>e(n=>{n.rerankFunction=t}),setCancelActiveTurn:t=>e(n=>{n.cancelActiveTurn=t})}))),joe=e=>e===0?"0":e<100?`${e}`:`${Math.floor(e/100)*100}+`,O7=e=>e===0?"0":e<10?`${e}`:`${Math.floor(e/10)*10}+`,Ac=e=>{const t=new Set;return e.forEach(n=>{n.storeName&&t.add(n.storeName)}),Array.from(t)},_c=e=>{const t=new Set;return e.forEach(n=>{n.brandName&&t.add(n.brandName)}),Array.from(t)},BM=(e,t,n)=>{const r=[];return t>0&&r.push(`${O7(t)} stores`),e>0&&r.push(`${O7(e)} brands`),r.push(`${joe(n)} products`),r.join(", ")};KD();function vc(e,t,n){return e.filter(r=>!(r.role==="ASSISTANT"&&r.type==="status_update"&&(t===void 0?r.laneId===void 0&&r.messageId===n:r.laneId===t)))}let BI=null;function Ooe(e){BI=e}function L7(e){BI?.autoOpenDesktop(e)}function D7(e){BI?.clearActiveIf(e)}let I1=null;function Loe(e){I1=e}function Uy(){return I1?I1.claimCarouselOwner():{ownsPanel:!0,freshlyClaimed:!0,priorOwner:null}}function Doe(){I1?.takeCarouselOwnerOnSearchStart()}function M0(e,t,n,r=!1){const i=Fe.getState();if(i.isCarouselOpen&&i.currentMessageId===e&&i.currentComponentId===t){const s=n.find(l=>l.role==="ASSISTANT"&&l.type==="carousel"&&l.messageId===e&&l.componentId===t);s&&i.setCarouselCards(s.cards,e,t,s.title,s.searchRequestJson,r)}}function Wy(e){const t=Fe.getState();Tm()||Moe()?t.openCarousel(e.cards,e.messageId,e.componentId,e.title):t.isCarouselOpen&&t.setCarouselCards(e.cards,e.messageId,e.componentId,e.title,e.searchRequestJson,!0),t.setCarouselStartedThisTurn(!0),t.setHasCarouselBeenUpdatedOnceForTurn(!0)}function Moe(){return Tm()?!1:kI(cr.getState().phase)}function Poe(e){Fe.getState().setTurnRightPanelCarouselKey(_v(e.messageId,e.componentId)),Uy().ownsPanel&&Wy(e)}function P0(e,t){const n=Fe.getState(),r=_v(e,t),i=n.turnRightPanelCarouselKey;return i===null?(n.setTurnRightPanelCarouselKey(r),!0):i===r}function Foe(e,t){const n=t.length>=2?t[0]:void 0;return n!=null?e.messages.some(r=>r.role==="ASSISTANT"&&r.type==="carousel"&&r.laneId===n):!!(!e.assistantInProgress||e.isWaitingForFirstToken||e.streamedTokenBlock&&e.streamedTokenBlock.length>0)}function M7(e,t){return`voice-${e}-${t}`}function P7(e,t){return`voice-${e}-photo-${t}`}function Boe(e){return`text:${e}`}const U=wn()(Ef((e,t)=>({isVisible:!1,chatId:null,referrerChatId:null,showChatGptWelcome:!1,shouldSkipTranscriptFetch:!1,isLoadingTranscript:!1,transcriptLoadedFromHistory:!1,codeBlockPhrases:{},messages:[],streamedTokenBlock:null,assistantInProgress:!1,isWaitingForFirstToken:!1,multipleChoiceAnswers:{},multipleChoiceQuestions:{},isShared:!1,snapshotChatId:null,snapshotUpdatedAtEpochS:null,landingPageInfo:null,agenticChatV2:!1,pendingWirePayload:null,chatErrorState:{hasError:!1,errorMessage:"",lastWirePayload:null},openChat:()=>e(n=>{n.isVisible=!0}),closeChat:()=>e(n=>{n.isVisible=!1}),setChatId:n=>e(r=>{r.chatId=n}),setReferrerChatId:n=>e(r=>{r.referrerChatId=n}),disableTranscriptFetch:()=>e(n=>{n.shouldSkipTranscriptFetch=!0}),enableTranscriptFetch:()=>e(n=>{n.shouldSkipTranscriptFetch=!1}),setLoadingTranscript:n=>e(r=>{r.isLoadingTranscript=n}),setTranscriptLoadedFromHistory:n=>e(r=>{r.transcriptLoadedFromHistory=n}),addMessage:n=>e(r=>{r.messages.push(n),n.role==="USER"&&(r.landingPageInfo=null)}),setMessages:n=>e(r=>{r.messages=n}),clearMessages:()=>e(n=>{n.messages=[],n.multipleChoiceQuestions={},n.multipleChoiceAnswers={},n.showChatGptWelcome=!1}),setShowChatGptWelcome:n=>e(r=>{r.showChatGptWelcome=n}),beginStreamedTokenBlock:()=>e(n=>{n.messages=n.messages.filter(r=>!(r.role==="ASSISTANT"&&r.type==="status_update")),n.streamedTokenBlock=""}),appendToStreamedTokenBlock:n=>e(r=>{r.streamedTokenBlock+=n}),endStreamedTokenBlock:()=>e(n=>{if(n.streamedTokenBlock&&n.streamedTokenBlock.length>0){const r={role:"ASSISTANT",type:"text",messageId:crypto.randomUUID(),componentId:crypto.randomUUID(),text:n.streamedTokenBlock};n.messages.push(r)}n.streamedTokenBlock=null}),addTextMessage:n=>e(r=>{const i={role:"ASSISTANT",type:"text",messageId:n.message_id,componentId:n.component.componentId||crypto.randomUUID(),laneId:n.laneId,groupPath:n.groupPath,text:n.component.text.text};r.messages.push(i)}
39),addCarouselMessage:n=>{e(r=>{r.messages=vc(r.messages,n.laneId,n.message_id);const i=n.component.carousel?.cards||[],s=n.isPlaceholderCarousel??!1,l=!s&&i.length>0?new Map(i.map(I=>[I.listingId,I])):void 0,u=s?Lie:i.length,d=n.component.carousel,m=d?.numUniqueStores!==void 0&&d?.numUniqueBrands!==void 0&&d?.numProducts!==void 0?{productCount:d.numProducts,brandCount:d.numUniqueBrands,sellerCount:d.numUniqueStores}:s?null:{productCount:i.length,brandCount:_c(i).length,sellerCount:Ac(i).length},g=s,y=g?Mie(u):i,b={role:"ASSISTANT",type:"carousel",messageId:n.message_id,componentId:n.component.componentId,laneId:n.laneId,groupPath:n.groupPath,title:n.component.carousel?.title||null,cards:y,searchRequestJson:n.component.carousel?.searchRequestJson||null,stats:m,listingDataMap:l,rerankStatus:g&&u>0?"reranking_requested":void 0};r.messages.push(b);const S=r.chatId;if(g&&S&&u>0){const I=be.getState().userId;Ji.getState().rerankFunction?.({origin:window.location.origin,userId:I||"anonymous",customerId:"apparel",corpusId:"en_US",chatId:S,messageId:n.message_id,componentId:n.component.componentId})}P0(b.messageId,b.componentId)&&Uy().ownsPanel&&Wy(b)})},startCarouselPartial:n=>{if(e(u=>{const d=u.messages.find(m=>m.role==="ASSISTANT"&&m.type==="carousel"&&m.messageId===n.message_id&&m.componentId===n.component.componentId);if(d){n.component.carousel?.title&&!d.title&&(d.title=n.component.carousel.title);return}u.messages=vc(u.messages,n.laneId,n.message_id);const h={role:"ASSISTANT",type:"carousel",messageId:n.message_id,componentId:n.component.componentId,laneId:n.laneId,groupPath:n.groupPath,title:n.component.carousel?.title||null,cards:[],searchRequestJson:null,stats:null};u.messages.push(h)}),n.mayTakeTheScreen===!1)return;const r=Fe.getState();r.setCarouselStartedThisTurn(!0);const i=P0(n.message_id,n.component.componentId),s=!r.isCarouselOpen||r.currentComponentId!==n.component.componentId,l=i;l&&Tm()?(Doe(),s&&r.openCarousel([],n.message_id,n.component.componentId,n.component.carousel?.title||null)):l&&r.isCarouselOpen&&s&&r.setCarouselCards([],n.message_id,n.component.componentId,n.component.carousel?.title||null,null,!0)},appendCarouselPartialUpdate:n=>{e(r=>{const i=n.component.carousel,s=(i?.cards||[]).map(h=>({...h,isSkeleton:!1})),l=i?.numUniqueStores!==void 0&&i?.numUniqueBrands!==void 0&&i?.numProducts!==void 0,u=r.messages.find(h=>h.role==="ASSISTANT"&&h.type==="carousel"&&h.messageId===n.message_id&&h.componentId===n.component.componentId);if(u){const h=u.cards.length===0;if(u.cards.push(...s),i?.title&&!u.title&&(u.title=i.title),u.stats=l?{productCount:i.numProducts,brandCount:i.numUniqueBrands,sellerCount:i.numUniqueStores}:{productCount:u.cards.length,brandCount:_c(u.cards).length,sellerCount:Ac(u.cards).length},n.mayTakeTheScreen!==!1&&s.length>0&&P0(n.message_id,n.component.componentId)){const g=Uy();if(g.ownsPanel){const y=Fe.getState().isCarouselOpen,b=g.freshlyClaimed&&!y&&g.priorOwner!=null;(h||b)&&Wy(u)}}return}r.messages=vc(r.messages,n.laneId,n.message_id);const d={role:"ASSISTANT",type:"carousel",messageId:n.message_id,componentId:n.component.componentId,laneId:n.laneId,groupPath:n.groupPath,title:i?.title||null,cards:s,searchRequestJson:null,stats:l?{productCount:i.numProducts,brandCount:i.numUniqueBrands,sellerCount:i.numUniqueStores}:{productCount:s.length,brandCount:_c(s).length,sellerCount:Ac(s).length}};r.messages.push(d),n.mayTakeTheScreen!==!1&&P0(n.message_id,n.component.componentId)&&s.length>0&&Uy().ownsPanel&&Wy(d)}),M0(n.message_id,n.component.componentId,t().messages,!1)},completeCarouselPartial:n=>{e(r=>{const i=r.messages.find(l=>l.role==="ASSISTANT"&&l.type==="carousel"&&l.messageId===n.message_id&&l.componentId===n.component_id);if(!i)return;i.cards.some(l=>l.isSkeleton)&&(i.cards=i.cards.filter(l=>!l.isSkeleton),i.stats={productCount:i.cards.length,brandCount:_c(i.cards).length,sellerCount:Ac(i.cards).length})}),M0(n.message_id,n.component_id,t().messages,!1)},showVoiceCarousel:n=>{const r=t().messages.find(i=>i.role==="ASSISTANT"&&i.type==="carousel"&&i.messageId===n.messageId&&i.componentId===n.componentId);return r?(Poe(r),!0):!1},openVoiceTranscriptTurn:n=>{e(r=>{const i=M7(n.voiceCallId,n.itemId);r.messages.some(l=>l.role==="USER"&&l.messageId===i)||r.messages.push({role:"USER",messageId:i,text:"",selectedListingCards:[],images:[],awaitingSpokenWords:!0})})},addVoicePhotoTurn:n=>{e(r=>{const i=P7(n.voiceCallId,n.photoId);r.messages.some(s=>s.messageId===i)||r.messages.push({role:"USER",messageId:i,text:"",selectedListingCards:[],images:[],imageDataUrls:[n.imageDataUrl]})})},removeVoicePhotoTurn:n=>{e(r=>{const i=P7(n.voiceCallId,n.photoId);r.messages=r.messages.filter(s=>s.messageId!==i)})},addVoiceTranscriptTurn:n=>{const r=n.text.trim();r&&e(i=>{const s=M7(n.voiceCallId,n.itemId);if(n.speaker==="user"){const d=i.messages.find(h=>h.role==="USER"&&h.messageId===s);if(d){d.text=r,d.awaitingSpokenWords=!1;return}i.messages.push({role:"USER",messageId:s,text:r,selectedListingCards:[],images:[]});return}const l=Boe(n.itemId),u=i.messages.find(d=>d.role==="ASSISTANT"&&d.type==="text"&&d.messageId===s&&d.componentId===l);if(u){u.text=r;return}i.messages.push({role:"ASSISTANT",type:"text",messageId:s,componentId:l,text:r})})},appendRerankedCards:n=>{e(r=>{const i=r.messages.find(s=>s.role==="ASSISTANT"&&s.type==="carousel"&&s.messageId===n.message_id&&s.componentId===n.component_id);if(!i)throw new Error(`Carousel message not found for message_id: ${n.message_id} and component_id: ${n.component_id}`);if(n.cards&&n.cards.length!==n.listing_ids.length)throw new Error(`Number of cards (${n.cards.length}) does not match number of listing_ids (${n.listing_ids.length})`);if(n.listing_ids.forEach((s,l)=>{const u=n.cards?.[l]??i.listingDataMap?.get(s);if(!u)return;const d=i.cards.findIndex(h=>h.isSkeleton);d===-1?i.cards.push({...u,isSkeleton:!1}):i.cards[d]={...u,isSkeleton:!1}}
39),!i.stats){const s=i.cards.filter(l=>!l.isSkeleton);i.stats={productCount:s.length,brandCount:_c(s).length,sellerCount:Ac(s).length}}i.rerankStatus==="reranking_requested"&&(i.rerankStatus="reranking_partially_completed")}),M0(n.message_id,n.component_id,t().messages,!1)},removeExcessSkeletonCards:n=>{e(r=>{const i=r.messages.find(l=>l.role==="ASSISTANT"&&l.type==="carousel"&&l.messageId===n.message_id&&l.componentId===n.component_id);if(!(!i||i.cards.filter(l=>l.isSkeleton).length===0)&&(i.cards=i.cards.filter(l=>!l.isSkeleton),!i.stats)){const l=i.cards;i.stats={productCount:l.length,brandCount:_c(l).length,sellerCount:Ac(l).length}}}),M0(n.message_id,n.component_id,t().messages,!1)},setCarouselRerankStatus:n=>e(r=>{const i=r.messages.find(s=>s.role==="ASSISTANT"&&s.type==="carousel"&&s.messageId===n.message_id&&s.componentId===n.component_id);i&&(i.rerankStatus=n.status)}),addStatusUpdateMessage:n=>e(r=>{r.messages=vc(r.messages,n.laneId,n.message_id);const i={role:"ASSISTANT",type:"status_update",messageId:n.message_id,componentId:n.component.componentId||crypto.randomUUID(),laneId:n.laneId,groupPath:n.groupPath,text:n.component.statusUpdate.text};r.messages.push(i)}),clearStatusUpdates:()=>e(n=>{n.messages=n.messages.filter(r=>!(r.role==="ASSISTANT"&&r.type==="status_update"))}),addMultipleChoiceQuestionMessage:n=>e(r=>{const i=n.component.multipleChoiceQuestion,s={role:"ASSISTANT",type:"multiple_choice_question",messageId:n.message_id,componentId:n.component.componentId,laneId:n.laneId,groupPath:n.groupPath,question:i.question,options:i.options,answerOptions:i.answerOptions?.map(l=>({label:l.label,heroImageUrls:l.heroImageUrls||[],heroImageProductSearchQuery:l.heroImageProductSearchQuery||null,voicePrompt:l.voicePrompt||null,icon:l.icon||null,sublabel:l.sublabel||null})),isSingleChoicePrompt:i.renderAsSingleChoicePrompt||!1,writeInPlaceholder:i.writeInPlaceholder||void 0};r.messages.push(s),r.multipleChoiceQuestions[n.component.componentId]=i.question}),startStructuredQuestionLoading:n=>{let r=!1;e(i=>{i.messages.some(l=>l.role==="ASSISTANT"&&l.componentId===n.componentId)||(i.messages.push(n),r=!0)}),r&&L7(n.componentId)},addStructuredQuestionBlockMessage:n=>{let r=!1;e(i=>{i.messages=vc(i.messages,n.laneId,n.messageId);const s=i.messages.findIndex(l=>l.role==="ASSISTANT"&&l.componentId===n.componentId);if(s>=0){i.messages[s]=n;return}i.messages.push(n),r=!0}),r&&L7(n.componentId)},removeStructuredQuestionBlock:n=>{e(r=>{r.messages=r.messages.filter(i=>!(i.role==="ASSISTANT"&&i.componentId===n))}),D7(n)},clearLoadingStructuredQuestionBlocks:()=>{const n=t().messages.filter(r=>r.role==="ASSISTANT"&&r.type==="structured_question_block"&&r.phase==="loading").map(r=>r.componentId);e(r=>{r.messages=r.messages.filter(i=>!(i.role==="ASSISTANT"&&i.type==="structured_question_block"&&i.phase==="loading"))});for(const r of n)D7(r)},addOneClickSuggestionPanelMessage:n=>e(r=>{const i={role:"ASSISTANT",type:"one_click_suggestion_panel",messageId:n.message_id,componentId:n.component.componentId,laneId:n.laneId,groupPath:n.groupPath,options:n.component.oneClickSuggestionPanel.options};r.messages.push(i)}),addCategoryCarouselMessage:n=>e(r=>{r.messages=vc(r.messages,n.laneId,n.message_id);const i={role:"ASSISTANT",type:"category_carousel",messageId:n.message_id,componentId:n.component.componentId,laneId:n.laneId,groupPath:n.groupPath,title:n.component.categoryCarousel.title||null,categories:n.component.categoryCarousel.categories.map(s=>({categoryName:s.categoryName,heroImageUrls:s.heroImageUrls||[],heroImageProductSearchQuery:s.heroImageProductSearchQuery||null}))};r.messages.push(i)}),addExplorationCarouselMessage:n=>e(r=>{r.messages=vc(r.messages,n.laneId,n.messageId),r.messages.push(n)}),addReasoningBlockMessage:n=>e(r=>{const i=n.component.reasoningBlock??{},s={role:"ASSISTANT",type:"reasoning",messageId:n.message_id,componentId:n.component.componentId||crypto.randomUUID(),laneId:n.laneId,groupPath:n.groupPath,groupId:i.reasoningBlockGroupId??"",title:i.title??"",body:i.body??"",fullText:i.fullText??""};r.messages.push(s)}),addCodeExecutionMessage:n=>e(r=>{const i=n.component.codeExecution??{},s={role:"ASSISTANT",type:"code_execution",messageId:n.message_id,componentId:n.component.componentId||crypto.randomUUID(),laneId:n.laneId,groupPath:n.groupPath,code:i.code??"",stdout:i.stdout??"",stderr:i.stderr??"",exit
39Code:i.exitCode??0,timedOut:i.timedOut??!1,codingDurationS:i.codingDurationS??0,executionDurationS:i.executionDurationS??0};r.messages.push(s)}),markMultipleChoiceQuestionActive:n=>e(r=>{n in r.multipleChoiceAnswers||(r.multipleChoiceAnswers[n]=new Set)}),toggleMultipleChoiceAnswer:(n,r)=>e(i=>{n in i.multipleChoiceAnswers&&(i.multipleChoiceAnswers[n].has(r)?i.multipleChoiceAnswers[n].delete(r):i.multipleChoiceAnswers[n].add(r))}),setSingleMultipleChoiceAnswer:(n,r)=>e(i=>{n in i.multipleChoiceAnswers&&(i.multipleChoiceAnswers[n]=new Set([r]))}),deactivateMultipleChoiceQuestion:n=>e(r=>{delete r.multipleChoiceAnswers[n]}),getMultipleChoiceAnswers:n=>t().multipleChoiceAnswers[n]||new Set,clearMultipleChoiceData:()=>e(n=>{n.multipleChoiceAnswers={},n.multipleChoiceQuestions={}}),setMultipleChoiceQuestion:(n,r)=>e(i=>{i.multipleChoiceQuestions[n]=r}),setAssistantInProgress:n=>e(r=>{r.assistantInProgress=n}),setWaitingForFirstToken:n=>e(r=>{r.isWaitingForFirstToken=n}),markAsShared:(n,r)=>e(i=>{i.isShared=!0,i.snapshotChatId=n,i.snapshotUpdatedAtEpochS=r}),markAsNotShared:()=>e(n=>{n.isShared=!1,n.snapshotChatId=null,n.snapshotUpdatedAtEpochS=null}),setLandingPageInfo:n=>e(r=>{r.landingPageInfo=n}),startNewChat:n=>e(r=>{r.isVisible=!0,r.chatId=n??null,r.referrerChatId=null,r.shouldSkipTranscriptFetch=!0,r.isLoadingTranscript=!1,r.transcriptLoadedFromHistory=!1,r.messages=[],r.streamedTokenBlock=null,r.assistantInProgress=!1,r.isWaitingForFirstToken=!1,r.multipleChoiceAnswers={},r.multipleChoiceQuestions={},r.codeBlockPhrases={},r.showChatGptWelcome=!1,r.isShared=!1,r.snapshotChatId=null,r.snapshotUpdatedAtEpochS=null,r.landingPageInfo=null,r.pendingWirePayload=null,r.chatErrorState={hasError:!1,errorMessage:"",lastWirePayload:null}}),toggleAgenticChatV2:()=>e(n=>{n.agenticChatV2=!n.agenticChatV2}),setPendingWirePayload:n=>e(r=>{r.pendingWirePayload=n}),setChatError:(n,r)=>e(i=>{let s=-1;for(let l=i.messages.length-1;l>=0;l--)if(i.messages[l].role==="USER"){s=l;break}s>=0&&(i.messages=i.messages.slice(0,s+1)),i.streamedTokenBlock=null,i.chatErrorState={hasError:!0,errorMessage:n,actionUrl:r?.url,actionLabel:r?.label,lastWirePayload:i.pendingWirePayload}}),clearChatError:()=>e(n=>{n.pendingWirePayload=null,n.chatErrorState={hasError:!1,errorMessage:"",lastWirePayload:null}}),startCodeBlockStatus:n=>e(r=>{const{code_block_id:i,emission_group_id_path:s,message_id:l}=n;if(!i||!s||s.length===0||r.messages.some(h=>h.role==="ASSISTANT"&&h.type==="code_block_status"&&h.componentId===i)||Foe(r,s))return;const d={role:"ASSISTANT",type:"code_block_status",messageId:l??crypto.randomUUID(),componentId:i,laneId:s.length>=2?s[0]:void 0,groupPath:s,path:s};r.messages.push(d)}),endCodeBlockStatus:n=>e(r=>{n&&(r.messages=r.messages.filter(i=>!(i.role==="ASSISTANT"&&i.type==="code_block_status"&&i.componentId===n)),delete r.codeBlockPhrases[n])}),setCodeBlockPhrases:(n,r)=>e(i=>{!n||!r||r.length===0||(i.codeBlockPhrases[n]=r)}),clearCodeBlockPhrases:()=>e(n=>{n.codeBlockPhrases={}})})));function Noe(e){mo.getState().addToast(e??"Something went wrong. Please try again.","error")}function pt(e,t={}){const{error:n,source:r,metadata:i}=e,{showToast:s=!0,toastMessage:l}=t,u=e.chatId??U.getState().chatId??null;pm(d=>{d.setTag("source",r),i&&d.setContext("metadata",i),d.setContext("app",{chatId:u,pathname:window.location.pathname,routePath:Sv(),origin:window.location.origin}),n instanceof Error?pv(n):vQ(String(n),"error")}),s&&Noe(l)}async function Ht(e=!1){if(zd.isExtensionContext()){const n=await zd.getTokenFromExtension();if(n)return n}const t=Ti.currentUser;if(t)try{return await pie(()=>t.getIdToken(e),{isRetryable:mie})}catch(n){throw pt({error:n,source:"getIdToken",metadata:{forceRefresh:e,userId:t.uid}},{showToast:!1}),n}throw new Error("Unable to authenticate - please sign in")}const zoe=Object.freeze(Object.defineProperty({__proto__:null,getIdToken:Ht},Symbol.toStringTag,{value:"Module"})),Fa=ei("PushNotifications",{}),S5=wn(e=>({pendingPath:null,setPendingPath:t=>e({pendingPath:t}),clearPendingPath:()=>e({pendingPath:null})})),Hoe=/^\/(c|p)\/[A-Za-z0-9._!-]+$/;function NM(e){if(typeof e!="string"||e.length===0)return null;let t;try{t=new URL(e)}catch{return null}return t.protocol!=="https:"||!(t.hostname==="tonita.co"||t.hostname.endsWith(".tonita.co"))?null:t.pathname+t.search+t.hash}function Uoe(e){const t=NM(e);if(t===null)return null;const n=t.split(/[?#]/,1)[0];return t!==n||!Hoe.test(n)?null:n}const Woe="/",W1=class W1{static async initialize(){if(xt()&&!this.isInitialized){this.isInitialized=!0;try{this.setupListeners();const t=await Fa.checkPermissions();if(t.receive==="granted"){await Fa.register();return}
39if(t.receive==="denied")return;(await Fa.requestPermissions()).receive==="granted"&&await Fa.register()}catch(t){pt({error:t,source:"PushNotificationService.initialize"},{showToast:!1})}}}static async checkPermissions(){if(!xt())return"denied";try{return(await Fa.checkPermissions()).receive}catch(t){return pt({error:t,source:"PushNotificationService.checkPermissions"},{showToast:!1}),"denied"}}static async requestPermissionsAndRegister(){if(!xt())return"denied";try{const t=await Fa.requestPermissions();return t.receive==="granted"&&await Fa.register(),t.receive}catch(t){return pt({error:t,source:"PushNotificationService.requestPermissionsAndRegister"},{showToast:!1}),"denied"}}static async openPlatformSettings(){if(xt())try{window.location.href="app-settings:"}catch(t){pt({error:t,source:"PushNotificationService.openPlatformSettings"},{showToast:!1})}}static setupListeners(){Fa.addListener("registration",async t=>{this.deviceToken=t.value,await this.registerTokenWithBackend(t.value)}),Fa.addListener("registrationError",t=>{pt({error:new Error(t.error),source:"PushNotificationService.registrationError"},{showToast:!1})}),Fa.addListener("pushNotificationReceived",t=>{}),Fa.addListener("pushNotificationActionPerformed",t=>{const n=t.notification.data?.open_url,r=Uoe(n)??Woe;S5.getState().setPendingPath(r)})}static async registerTokenWithBackend(t){const n=be.getState().userId;if(!n)return;const r="https://api.tonita.co/mobile-app/register-device-token",i=X6();try{const l={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":n,...Sn()};await Tn.post(r,{device_token:t,platform:i},{headers:l})}catch(s){pt({error:s,source:"PushNotificationService.registerTokenWithBackend"},{showToast:!1})}}static async registerTokenForCurrentUser(){this.deviceToken&&await this.registerTokenWithBackend(this.deviceToken)}static getDeviceToken(){return this.deviceToken}static async unregisterCurrentToken(){if(!xt()||!this.deviceToken)return;const t=be.getState().userId;if(!t)return;const n="https://api.tonita.co/mobile-app/unregister-device-token",r=X6();try{const s={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":t,...Sn()};await Tn.post(n,{device_token:this.deviceToken,platform:r},{headers:s})}catch(i){pt({error:i,source:"PushNotificationService.unregisterCurrentToken"},{showToast:!1})}}};W1.isInitialized=!1,W1.deviceToken=null;let Gr=W1;class Wi{static getSignInMode(){return"redirect"}static shouldUseRedirectSignIn(){return xt()?!1:this.getSignInMode()==="redirect"||Xre()}static async signInWithGooglePopup(){await Gr.unregisterCurrentToken();try{await p_(Ti,c1)}catch(t){throw t}}static async signInWithGoogleRedirect(){await Gr.unregisterCurrentToken();try{await m_(Ti,c1)}catch(t){throw t}}static async signInWithGoogleNative(){await Gr.unregisterCurrentToken();try{const n=(await R_.signInWithGoogle()).credential?.idToken;if(!n)throw new Error("No ID token received from native Google Sign-In");const r=Ss.credential(n),i=await Cp(Ti,r);this.reportRegistrationIfNew(i,"google")}catch(t){throw t}}static async signInWithApplePopup(){await Gr.unregisterCurrentToken();try{const t=await p_(Ti,Fd);await this.captureAppleDisplayName(t)}catch(t){throw t}}static async signInWithAppleRedirect(){await Gr.unregisterCurrentToken();try{await m_(Ti,Fd)}catch(t){throw t}}static async signInWithAppleNative(){await Gr.unregisterCurrentToken();try{const t=await R_.signInWithApple(),n=t.credential?.idToken,r=t.credential?.nonce;if(!n)throw new Error("No ID token received from native Apple Sign-In");const i=Fd.credential({idToken:n,rawNonce:r}),s=await Cp(Ti,i);this.reportRegistrationIfNew(s,"apple");const l=t.user?.displayName;l&&s.user&&!s.user.displayName&&(await o_(s.user,{displayName:l}),be.setState({displayName:l}))}catch(t){throw t}}static async handleRedirectResult(){if(xt())return null;try{const t=await XK(Ti);if(t&&t.user){await this.captureAppleDisplayName(t);const n=t.user;return{userId:n.uid,email:n.email||void 0,displayName:n.displayName||void 0,photoURL:n.photoURL||void 0}}return null}catch(t){throw t}}static async captureAppleDisplayName(t){if(!t.user||t.user.displayName)return;const n=l_(t);if(!n?.profile||n.providerId!=="apple.com")return;const r=n.profile,i=r.name?.firstName,s=r.name?.lastName;
39if(i||s){const l=[i,s].filter(Boolean).join(" ");await o_(t.user,{displayName:l}),be.setState({displayName:l})}}static reportRegistrationIfNew(t,n){try{l_(t)?.isNewUser&&die(n)}catch{}}static async signOut(){await Gr.unregisterCurrentToken();try{await c_(Ti)}catch(t){throw t}}static getCurrentUser(){return Ti.currentUser}static onAuthStateChanged(t){return bK(Ti,n=>{t(n?{userId:n.uid,email:n.email||void 0,displayName:n.displayName||void 0,photoURL:n.photoURL||void 0,isGuest:n.isAnonymous}:null)})}static async deleteAccount(t){const n=be.getState().userId;if(!n)throw new Error("No authenticated user found");const i={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":n,...Sn()};await Tn.post("https://api.tonita.co/chat/delete-account",{reason:t},{headers:i}),await c_(Ti)}}async function Voe(){await Gr.unregisterCurrentToken();const e=await sK(Ti);return be.getState().setUser({userId:e.user.uid,email:e.user.email||void 0,displayName:e.user.displayName||void 0,photoURL:e.user.photoURL||void 0,isGuest:!0}),e.user.uid}let zM;const qoe=new Promise(e=>{zM=e});let w5=!1;function Goe(){w5||(w5=!0,zM())}function Yoe(e){return w5?Promise.resolve():new Promise(t=>{const n=setTimeout(t,e);qoe.then(()=>{clearTimeout(n),t()})})}const Mc=wn()(Ef((e,t)=>({images:[],imageUrls:[],addImages:n=>e(r=>{r.images.push(...n);const i=n.map(s=>URL.createObjectURL(s));r.imageUrls.push(...i)}),removeImage:n=>e(r=>{n>=0&&n<r.images.length&&(r.imageUrls[n]&&URL.revokeObjectURL(r.imageUrls[n]),r.images.splice(n,1),r.imageUrls.splice(n,1))}),clearImages:()=>e(n=>{n.imageUrls.forEach(r=>URL.revokeObjectURL(r)),n.images=[],n.imageUrls=[]}),setImages:n=>e(r=>{r.imageUrls.forEach(i=>URL.revokeObjectURL(i)),r.images=n,r.imageUrls=n.map(i=>URL.createObjectURL(i))})})));KD();const Ai=wn()(Ef((e,t)=>({transcriptCache:new Map,cacheOrder:[],getCachedTranscript:n=>{const r=t(),i=r.transcriptCache.get(n);if(i){const s=r.cacheOrder.indexOf(n);return s>-1&&e(l=>{l.cacheOrder.splice(s,1),l.cacheOrder.push(n)}),{messages:i.messages,isShared:i.isShared,snapshotChatId:i.snapshotChatId}}return null},cacheTranscript:(n,r,i=null)=>e(s=>{const u=i??null,d=!!u,h={chatId:n,messages:[...r],timestamp:Date.now(),isShared:d,snapshotChatId:u};s.transcriptCache.set(n,h);const m=s.cacheOrder.indexOf(n);for(m>-1&&s.cacheOrder.splice(m,1),s.cacheOrder.push(n);s.cacheOrder.length>10;){const g=s.cacheOrder.shift();g&&s.transcriptCache.delete(g)}}),updateCachedTranscriptShareStatus:(n,r,i)=>e(s=>{const l=s.transcriptCache.get(n);if(l){if(!r){l.isShared=!1,l.snapshotChatId=null;return}i!==void 0&&(l.snapshotChatId=i),l.isShared=!!l.snapshotChatId}}),removeCachedTranscript:n=>e(r=>{if(r.transcriptCache.delete(n)){const s=r.cacheOrder.indexOf(n);s>-1&&r.cacheOrder.splice(s,1)}}),clearTranscriptCache:()=>e(n=>{n.transcriptCache.clear(),n.cacheOrder=[]})})));class Koe{static async fetchFavorites(){try{const t=be.getState().userId;if(!t)throw new Error("No authenticated user found");const r={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":t,...Sn()},s=(await Tn.post("https://api.tonita.co/chat/fetch-favorites",{},{headers:r})).data,l=Array.isArray(s)?s:s.favoriteListings||[];if(l.length===0)return Gn.getState().clearFavorites(),!0;const u=new Map,d=[...l].reverse();for(const h of d)try{const m=h.listingCarouselCard;if(!m?.listing)continue;const g=Ia(m,h.messageId||"favorites-messageId",h.componentId||"favorites-componentId");u.set(g.listingId,g)}catch{}return Gn.getState().setFavorites(u),!0}catch(t){return pt({error:t,source:"FetchFavoritesService.fetchFavorites"},{showToast:!1}),Gn.getState().clearFavorites(),!1}}static clearFavorites(){Gn.getState().clearFavorites()}}const Xoe=()=>Im((e,t)=>({favoriteListings:new Map,isLoading:!1,error:null,hasFetched:!1,addToFavorites:n=>{e(r=>{if(!r.favoriteListings.has(n.listingId)){const i=new Map(r.favoriteListings);return i.set(n.listingId,{listing:n,timestamp:Date.now()}),{favoriteListings:i}}return r})},removeFromFavorites:n=>{e(r=>{if(r.favoriteListings.has(n)){const i=new Map(r.favoriteListings);return i.delete(n),{favoriteListings:i}}return r})},toggleFavorite:n=>{e(r=>{const i=new Map(r.favoriteListings);return i.has(n.listingId)?i.delete(n.listingId):i.set(n.listingId,{listing:n,timestamp:Date.now()}),{favoriteListings:i}})},setFavorites:n=>{const r=new Map,i=Array.from(n.entries()),s=Date.now();
39i.forEach(([l,u],d)=>{r.set(l,{listing:u,timestamp:s+d*1e3})}),e({favoriteListings:r})},clearFavorites:()=>{e({favoriteListings:new Map,hasFetched:!1,isLoading:!1,error:null})},fetchFavorites:async()=>{const{hasFetched:n,isLoading:r}=t();if(!(n||r)){e({isLoading:!0,error:null});try{const i=await Koe.fetchFavorites();e(i?{isLoading:!1,error:null,hasFetched:!0}:{isLoading:!1,error:"Failed to load favorites",hasFetched:!1})}catch(i){e({isLoading:!1,error:i instanceof Error?i.message:"Failed to load favorites",hasFetched:!1})}}},isFavorited:n=>t().favoriteListings.has(n),getFavoriteCount:()=>t().favoriteListings.size,getFavoriteListings:()=>{const n=Array.from(t().favoriteListings.values());return n.sort((r,i)=>i.timestamp-r.timestamp),n.map(r=>r.listing)}})),Joe=k.createContext(null),Zoe=Xoe(),Gn=Av(Zoe,Joe);class NI{static async fetchChatHistory(){try{const t=be.getState().userId;if(!t)throw new Error("No authenticated user found");const r={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":t,...Sn()};return(await Tn.post("https://api.tonita.co/chat/list-chat-history",{},{headers:r})).data.transcriptInfos?.map(u=>({id:u.chatId,name:u.chatTitle?.text||"Untitled Chat",timestamp:new Date(u.timestamp||new Date).getTime()}))||[]}catch(t){return pt({error:t,source:"HistoryService.fetchChatHistory"},{showToast:!1}),[]}}static async deleteChats(t){const n=be.getState().userId;if(!n)throw new Error("No authenticated user found");if(t.length===0)return[];const i={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":n,...Sn()};return(await Tn.post("https://api.tonita.co/chat/delete-chats",{chat_ids:t},{headers:i})).data.deletedChatIds??[]}}const hn=wn((e,t)=>({historyItems:[],selectedIndex:null,isLoading:!1,error:null,hasFetched:!1,addHistoryItem:(n,r)=>{const{historyItems:i}=t();if(!i.some(l=>l.id===r)){const l={id:r,name:n,timestamp:Date.now()};e(u=>({historyItems:[l,...u.historyItems],selectedIndex:0}))}},moveChatToTop:(n,r)=>{e(i=>{const s=i.historyItems.findIndex(g=>g.id===n);if(s===-1)return i;const l=i.historyItems[s],u={...l,name:r||l.name,timestamp:Date.now()},d=i.historyItems.filter(g=>g.id!==n),h=[u,...d];let m=i.selectedIndex;return i.selectedIndex===s?m=0:i.selectedIndex!==null&&i.selectedIndex>s&&(m=i.selectedIndex-1),{historyItems:h,selectedIndex:m}})},removeHistoryItem:n=>{e(r=>{const i=r.historyItems.filter(u=>u.id!==n),s=r.historyItems.findIndex(u=>u.id===n);let l=r.selectedIndex;return s===r.selectedIndex?l=null:r.selectedIndex!==null&&s<r.selectedIndex&&(l=r.selectedIndex-1),{historyItems:i,selectedIndex:l}})},clearHistory:()=>{e({historyItems:[],selectedIndex:null,hasFetched:!1})},fetchHistory:async()=>{const{hasFetched:n,isLoading:r}=t();if(!(n||r)){e({isLoading:!0,error:null});try{const i=await NI.fetchChatHistory();e({historyItems:i,isLoading:!1,error:null,selectedIndex:null,hasFetched:!0})}catch(i){e({isLoading:!1,error:i instanceof Error?i.message:"Failed to load chat history",hasFetched:!1})}}},setHistoryItems:n=>{e({historyItems:n})},setSelectedIndex:n=>{e({selectedIndex:n})}})),a4e={selectedIds:[],texts:[]},Qoe=e=>!!(e&&(e.selectedIds.length>0||e.texts.some(t=>t.trim()))),$oe=e=>Object.fromEntries(e.map(t=>[t.id,{selectedIds:t.selectedOptions.map(n=>n.id),texts:t.texts}])),ele=e=>e.sections.flatMap(t=>t.pages.flatMap(n=>n.questions)),s4e=(e,t)=>
39ele(e).flatMap(n=>{const r=t[n.id];if(!r)return[];const i=n.options.filter(l=>r.selectedIds.includes(l.id)).map(l=>({id:l.id,label:l.label})),s=r.texts.map(l=>l.trim()).filter(Boolean);return!i.length&&!s.length?[]:[{id:n.id,label:n.label,selectedOptions:i,texts:s}]}),o4e=e=>[...e.selectedOptions.map(t=>t.label),...e.texts].join(", "),C5=(e,t)=>{if(!e)return!0;const n=t[e.questionId];return Qoe(n)?e.anyOf.some(r=>n.selectedIds.includes(r)):!0},l4e=(e,t)=>e.options.filter(n=>C5(n.visibleWhen,t)),tle=(e,t)=>C5(e.visibleWhen,t)?e.questions.filter(n=>C5(n.visibleWhen,t)):[],nle=(e,t)=>e.sections.map(n=>({section:n,pages:n.pages.map(r=>({page:r,questions:tle(r,t)})).filter(({questions:r})=>r.length>0)})).filter(({pages:n})=>n.length>0),c4e=e=>{const t=[];return e.forEach(({section:n,pages:r},i)=>{const s=r.length;r.forEach(({page:l,questions:u},d)=>t.push({kind:"page",section:n,si:i,page:l,questions:u,pi:d,count:s}))}),t.push({kind:"review"},{kind:"finished"}),t},rle=({sectionId:e,pageId:t})=>`${e}/${t??""}`,ile=e=>e.kind==="page"?rle({sectionId:e.section.id,pageId:e.page.id}):e.kind,u4e=(e,t)=>Math.max(0,e.findIndex(n=>n.kind==="page"&&n.si===t)),d4e=(e,t)=>{const n=e.findIndex(i=>ile(i)===t);if(n>=0)return n;if(!t.includes("/"))return e.length-1;const r=t.split("/")[0];return Math.max(0,e.findIndex(i=>i.kind==="page"&&i.section.id===r))},zI="self",ale=new Set([zI,"myself","me"]),HM=e=>ale.has(e.trim().toLowerCase()),k1=e=>HM(e.relationship),f4e=e=>({id:`p_${Math.random().toString(36).slice(2,9)||"0"}`,...e,createdAt:null,updatedAt:null,answeredQuestions:[],remainder:[]}),sle=(e,t)=>{if(t===null)return null;const n=e.filter(k1);return n.length===1?n[0]:e.find(r=>r.id===t)??null},ole=e=>[...e.filter(k1),...e.filter(t=>!k1(t))],UM={value:zI,chip:"Myself",label:"Me"},I5=[{value:"partner",chip:"My partner",label:"Partner"},{value:"kid",chip:"My kid",label:"Kid"},{value:"parent",chip:"A parent",label:"Parent"},{value:"friend",chip:"A friend",label:"Friend"}],lle=40,h4e=(e,t)=>{const n=e.some(k1);return{choices:n?[...I5]:[UM,...I5],initial:t&&!n?zI:null}},HI="relationship",WM=e=>`${HI}.${e}`,F7=e=>e.slice(HI.length+1),p4e=e=>({id:HI,prompt:"This is",label:"Relationship",options:e.map(t=>({id:WM(t.value),label:t.chip,visibleWhen:null,ui:{caption:""}})),writeIn:!0,visibleWhen:null,ui:{control:"chips",selection:"single",writeInEntries:"single",placeholder:"Someone elseâ¦",suggestions:[],suggestionStyle:"autocomplete",note:"",footnote:""}}),m4e=(e,t)=>e?t.some(n=>n.value===e)?{selectedIds:[WM(e)],texts:[]}:{selectedIds:[],texts:[e]}:{selectedIds:[],texts:[]},g4e=(e,t)=>{const n=t.texts.find(i=>!e.texts.includes(i));if(n)return n.slice(0,lle);const r=t.selectedIds.find(i=>!e.selectedIds.includes(i));return r?F7(r):t.selectedIds.length?F7(t.selectedIds[0]):t.texts[0]??null},cle=e=>HM(e)?UM.label:I5.find(t=>t.value===e)?.label??e.charAt(0).toUpperCase()+e.slice(1),ule=(e,t,n)=>{const r=new Map(t.map(l=>[l.id,l])),i=nle(e,$oe(t)).map(({section:l,pages:u})=>({section:l,items:u.flatMap(({page:d,questions:h})=>h.map(m=>({question:m,page:d,answer:r.get(m.id)??null})))})),s=i.flatMap(({items:l})=>l);return{sections:i,earlier:n,answered:s.filter(({answer:l})=>l).length,total:s.length}},dle=({sections:e,earlier:t})=>{const n=new Set(e.flatMap(({items:r})=>r.flatMap(({question:i,answer:s})=>s?[i.id]:[])));return n.size+t.filter(r=>!n.has(r.id)).length},fle=(e,t)=>dle(ule(e,t.answeredQuestions,t.remainder)),hle=e=>e.name.trim().charAt(0).toUpperCase()||"?",ple=e=>`${e} ${e===1?"thing":"things"}`,mle=(e,t)=>
39`${cle(e.relationship)} · ${t?`${ple(t)} remembered`:"Nothing saved yet"}`;class CS{static async post(t,n){const r=be.getState().userId;if(!r)throw new Error("No authenticated user found");const s={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":r,...Sn()};return(await Tn.post(`https://api.tonita.co/chat/${t}`,n,{headers:s})).data}static listProfiles(){return this.post("list-memory-profiles",{})}static async writeProfile(t){const n={profile:t};return(await this.post("write-memory-profile",n)).profile}static async deleteProfile(t){const n={profileId:t};await this.post("delete-memory-profile",n)}}const B7={form:null,profiles:[],status:"idle",chosenId:void 0,lastUsedId:void 0},VM=e=>e.chosenId===void 0?sle(e.profiles,e.lastUsedId):e.profiles.find(t=>t.id===e.chosenId)??null,gle=720*60*60*1e3,qM=e=>`tonita:memoryProfile:${e}`,k5="none:",yle=e=>{let t;try{t=localStorage.getItem(qM(e))}catch{return}if(!t)return;if(!t.startsWith(k5))return t;const n=Number(t.slice(k5.length));return Date.now()-n<gle?null:void 0},vle=e=>{const{userId:t}=be.getState();if(t)try{localStorage.setItem(qM(t),e??k5+Date.now())}catch{}};let nl=0,IS=0,F0=0;const Qh=new Map,N7=(e,t)=>{const n=(Qh.get(e)??Promise.resolve()).then(t),r=n.catch(()=>{});return Qh.set(e,r),r.then(()=>{Qh.get(e)===r&&Qh.delete(e)}),n},z7=()=>{if(!$c(be.getState()))throw new Error("Memory needs a signed-in account")},H7=(e,t)=>e.some(n=>n.id===t.id)?e.map(n=>n.id===t.id?t:n):[...e,t],ws=wn((e,t)=>({...B7,fetchProfiles:async({force:n=!1}={})=>{if(!$c(be.getState()))return;const{status:r}=t();if(!n&&(r==="loading"||r==="loaded"))return;const i=++IS,s=F0,l=nl;e({status:"loading"});try{const{form:u,profiles:d}=await CS.listProfiles();if(i!==IS||nl!==l)return;const h=yle(be.getState().userId);e(F0===s?{form:u,profiles:d,status:"loaded",lastUsedId:h}:{form:u,status:"loaded",lastUsedId:h})}catch(u){if(i!==IS||nl!==l)return;e({status:"failed"}),pt({error:u,source:"memoryStore.fetchProfiles"},{showToast:!1})}},saveProfile:async(n,{choose:r=!1}={})=>{z7();const i=nl,s=await N7(n.id,()=>CS.writeProfile(n));return nl===i&&(F0++,e(l=>({profiles:H7(l.profiles,s)})),r&&t().chooseProfile(s.id)),s},renameProfile:async(n,r)=>{const i=t().profiles.find(l=>l.id===n);if(!i)return;const s={...i,...r};e(l=>({profiles:H7(l.profiles,s)}));try{await t().saveProfile(s)}catch(l){e(u=>({profiles:u.profiles.map(d=>d===s?i:d)})),pt({error:l,source:"memoryStore.renameProfile"},{toastMessage:"Couldnât update the profile. Please try again."})}},deleteProfile:async n=>{z7();const r=nl;await N7(n,()=>CS.deleteProfile(n)),nl===r&&(F0++,e(i=>({profiles:i.profiles.filter(s=>s.id!==n)})))},chooseProfile:n=>{vle(n),e({chosenId:n,lastUsedId:n})},resetChoice:()=>e({chosenId:void 0}),takeChoiceFromChat:n=>e({chosenId:n}),profileIdForSend:()=>{if(!$c(be.getState()))return;const n=t(),r=VM(n);if(r)return(n.chosenId!==r.id||n.lastUsedId!==r.id)&&t().chooseProfile(r.id),r.id;n.chosenId===void 0&&e({chosenId:null})},clear:()=>{nl++,Qh.clear(),e(B7)}})),kS={userPhoto:null,resultImage:null,isUploading:!1,isLoading:!1,currentImageIndex:0},ble=e=>Im((t,n)=>({recentImages:[],isVTOModalOpen:!1,selectedListing:null,...kS,...e,addImage:(r,i,s)=>{const l=n().recentImages,u={id:$t(),data:r,name:i,fileType:s,timestamp:Date.now()},d=[...l,u].slice(-5);t({recentImages:d})},clearRecentImages:()=>{t({recentImages:[]})},openVTOModal:r=>{t({isVTOModalOpen:!0,selectedListing:r,...kS})},closeVTOModal:()=>{t({isVTOModalOpen:!1,selectedListing:null})},setUserPhoto:r=>{t({userPhoto:r})},setResultImage:r=>{t({resultImage:r})},setIsUploading:r=>{t({isUploading:r})},setIsLoading:r=>{t({isLoading:r})},setCurrentImageIndex:r=>{t({currentImageIndex:r})},advanceCurrentImageIndex:r=>{r<=0||t(i=>({currentImageIndex:(i.currentImageIndex+1)%r}))},resetSession:()=>{t({...kS})}})),xle=k.createContext(null),Sle=ble(),or=Av(Sle,xle);class U7{static async fetchTutorialProgress(){try{const t=be.getState().userId;if(!t)throw new Error("No authenticated user found");const r={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":t,...Sn()},d=(((await Tn.post("https://api.tonita.co/chat/get-tutorial-progress",{},{headers:r})).data.tutorialProgress||{userId:"",tutorials:[]}).tutorials||[]).map(h=>h.tutorialName);return ir.getState().setTutorialProgressFromBackend(d),!0}catch(t){return pt({error:t,source:"TutorialService.fetchTutorialProgress"},{showToast:!1}),ir.getState().setTutorialProgressFromBackend([]),!1}}static async updateTutorialProgress(t){try{const n=be.getState().userId;if(!n)throw new Error("No authenticated user found");const i={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":n,...Sn()};return await Tn.post("https://api.tonita.co/chat/update-tutorial-progress",{tutorialName:t},{headers:i}),!0}catch(n){return pt({error:n,source:"TutorialService.updateTutorialProgress"},{showToast:!1}),!1}}static clearTutorialProgress(){ir.getState().resetTutorialProgress()}}const ES=!1,wle=1e4,ir=wn()((e,t)=>({isFetchingTutorialProgress:!1,tutorialFetchError:null,hasLoadedTutorialProgress:!1,tutorialsAlreadySeenByUser:new Set,activeHintName:null,cooldownUntil:null,tutorialsEnabled:ES,activePopupHintName:null,popupHintContext:null,showHint:n=>{t().canShowHint(n)&&e({activeHintName:n})},markTutorialComplete:n=>{const{activeHintName:r,tutorialsAlreadySeenByUser:i}=t();if(i.has(n))return;const s=new Set(i);s.add(n),e({tutorialsAlreadySeenByUser:s}),r===n&&(e({activeHintName:null}),t().startCooldown(wle)),t().syncTutorialProgress(n)},canShowHint:n=>{const r=t();return!r.tutorialsEnabled||!r.hasLoadedTutorialProgress||r.activeHintName!==null||r.isInCooldown()?!1:!r.tutorialsAlreadySeenByUser.has(n)},startCooldown:n=>{const r=Date.now()+n;e({cooldownUntil:r})},isInCooldown:()=>{const{cooldownUntil:n}=t();if(n===null)return!1;const r=Date.now()<n;return r||e({cooldownUntil:null}),r},setTutorialsEnabled:n=>{e({tutorialsEnabled:n})},resetAllTutorials:()=>{e({tutorialsAlreadySeenByUser:new Set,activeHintName:null,cooldownUntil:null,tutorialsEnabled:ES,activePopupHintName:null,popupHintContext:null})},fetchTutorialProgress:async()=>{e({isFetchingTutorialProgress:!0,tutorialFetchError:null});try{if(!await U7.fetchTutorialProgress())throw new Error("Failed to fetch tutorial progress");
39e({isFetchingTutorialProgress:!1,hasLoadedTutorialProgress:!0,tutorialFetchError:null})}catch(n){console.error("Error fetching tutorial progress:",n),e({isFetchingTutorialProgress:!1,hasLoadedTutorialProgress:!0,tutorialFetchError:n instanceof Error?n.message:"Unknown error"})}},setTutorialProgressFromBackend:n=>{e({tutorialsAlreadySeenByUser:new Set(n)})},syncTutorialProgress:n=>{U7.updateTutorialProgress(n).catch(r=>{console.error("Failed to sync tutorial progress to backend:",r)})},resetTutorialProgress:()=>{e({tutorialsAlreadySeenByUser:new Set,activeHintName:null,cooldownUntil:null,tutorialsEnabled:ES,isFetchingTutorialProgress:!1,tutorialFetchError:null,hasLoadedTutorialProgress:!1,activePopupHintName:null,popupHintContext:null})},showPopupHint:(n,r)=>{e({activePopupHintName:n,popupHintContext:r??null})},hidePopupHint:()=>{e({activePopupHintName:null,popupHintContext:null})}})),E5="tonita:enableThinkingAfterSignIn",Cle=()=>{try{localStorage.setItem(E5,"1")}catch{}},Ile=()=>{try{const e=localStorage.getItem(E5)==="1";return e&&localStorage.removeItem(E5),e}catch{return!1}},Qr=wn((e,t)=>({isSelectionMode:!1,selectedCards:new Map,enableSelectionMode:()=>{e({isSelectionMode:!0})},disableSelectionMode:()=>{e({isSelectionMode:!1,selectedCards:new Map})},toggleSelectionMode:()=>{e(n=>({isSelectionMode:!n.isSelectionMode,selectedCards:n.isSelectionMode?new Map:n.selectedCards}))},selectCard:n=>{e(r=>{if(!r.selectedCards.has(n.listingId)){const i=new Map(r.selectedCards);return i.set(n.listingId,n),{selectedCards:i}}return r})},deselectCard:n=>{e(r=>{if(r.selectedCards.has(n)){const i=new Map(r.selectedCards);return i.delete(n),{selectedCards:i}}return r})},toggleCardSelection:n=>{e(r=>{const i=new Map(r.selectedCards);return i.has(n.listingId)?i.delete(n.listingId):i.set(n.listingId,n),{selectedCards:i}})},clearSelectedCards:()=>{e({selectedCards:new Map})},isCardSelected:n=>t().selectedCards.has(n),getSelectedCardCount:()=>t().selectedCards.size,getSelectedCards:()=>Array.from(t().selectedCards.values())}));let GM=null;function kle(e){GM=e}function W7(e){Tm()&&(e==="block"?Fe.getState().closeCarousel():GM?.())}function Ele(e){const{owner:t,isCarouselOpen:n,isBlockOpen:r}=e;return t==="block"&&r?"block":t==="carousel"&&n?"carousel":r?"block":n?"carousel":null}const Ja=wn((e,t)=>({owner:null,ownerClaimedThisTurn:!1,claimOwnerOnArrival:n=>t().ownerClaimedThisTurn?!1:(e({owner:n,ownerClaimedThisTurn:!0}),W7(n),!0),setOwner:n=>{e({owner:n,ownerClaimedThisTurn:!0}),W7(n)},startNewTurn:()=>e({ownerClaimedThisTurn:!1}),reset:()=>e({owner:null,ownerClaimedThisTurn:!1})}));Loe({claimCarouselOwner:()=>{const{ownerClaimedThisTurn:e,owner:t,claimOwnerOnArrival:n}=Ja.getState(),r=t;return e?{ownsPanel:t==="carousel",freshlyClaimed:!1,priorOwner:r}:(n("carousel"),{ownsPanel:!0,freshlyClaimed:!0,priorOwner:r})},takeCarouselOwnerOnSearchStart:()=>{Ja.getState().setOwner("carousel")}});const Tle=e=>Im()(Ef((t,n)=>({expandedByBlock:{},activeBlockId:null,answersByBlock:{},writeInsByBlock:{},writeInFiredByBlock:{},...e,setExpanded:(r,i)=>t(s=>{if(i){for(const l of Object.keys(s.expandedByBlock))l!==r&&(s.expandedByBlock[l]=!1);s.expandedByBlock[r]=!0,s.activeBlockId=r}else s.expandedByBlock[r]=!1,s.activeBlockId===r&&(s.activeBlockId=null)}),closeActiveBlock:()=>t(r=>{for(const i of Object.keys(r.expandedByBlock))r.expandedByBlock[i]=!1;r.activeBlockId=null}),maybeAutoOpenDesktopSplitPanel:r=>{if(!Tm())return;const{ownerClaimedThisTurn:i,owner:s,claimOwnerOnArrival:l,setOwner:u}=Ja.getState(),{activeBlockId:d}=n();if(i){s==="block"&&d==null&&(n().setExpanded(r,!0),u("block"));return}n().setExpanded(r,!0),l("block")},toggleOption:(r,i,s)=>t(l=>{const u=l.answersByBlock[r]??={},d=u[i]??=[],h=d.indexOf(s);h>=0?d.splice(h,1):d.push(s)}),setWriteIn:(r,i,s)=>t(l=>{const u=l.writeInsByBlock[r]??={};u[i]=s}),markWriteInFired:(r,i)=>n().writeInFiredByBlock[r]?.[i]?!1:(t(s=>{const l=s.writeInFiredByBlock[r]??={};l[i]=!0}),!0),clearStructuredAnswers:()=>t(r=>{r.answersByBlock={},r.writeInsByBlock={},r.writeInFiredByBlock={}}),resetForNewChat:()=>t(r=>{r.expandedByBlock={},r.activeBlockId=null,r.answersByBlock={},r.writeInsByBlock={},r.writeInFiredByBlock={}})}))),Ale=k.createContext(null),_le=Tle(),kn=Av(_le,Ale);Ooe({autoOpenDesktop:e=>{kn.getState().maybeAutoOpenDesktopSplitPanel(e)},clearActiveIf:e=>
39{const t=kn.getState();t.activeBlockId===e&&t.setExpanded(e,!1)}});kle(()=>{kn.getState().closeActiveBlock()});const Rle="https://prod-tonita-streaming-chat-server-sse-12910835896.us-central1.run.app";class jle extends Error{constructor(t,n,r){super(t),this.name="DomainSearchRequestError",this.status=n,this.traceback=r}}async function YM(e,t={}){const n=await Ht(),r=await fetch(`${Rle}${e}`,{...t,headers:{"Content-Type":"application/json",...t.headers||{},Authorization:`Bearer ${n}`}});if(!r.ok){const i=await r.text();let s=i,l;try{const u=JSON.parse(i);s=u.error||i,l=u.traceback}catch{}throw new jle(s||`Request failed with ${r.status}`,r.status,l)}return await r.json()}async function y4e(){return YM("/domain-search/params")}async function Ole(e,t,n,r){const i={query:e,topK:t};return n!==void 0&&(i.params=n),YM("/domain-search",{method:"POST",body:JSON.stringify(i),signal:r})}const Lle=30,TS={isOpen:!1,blockId:null,questionIndex:0,messageId:null,title:"",options:[],activeIndex:0},ui=wn(e=>({...TS,resultsByQuery:{},statusByQuery:{},open:({blockId:t,questionIndex:n,messageId:r,questionText:i,options:s})=>{const l=s.map(u=>({...u,query:u.query.trim()})).filter(u=>u.query.length>0);e({isOpen:!0,blockId:t,questionIndex:n,messageId:r,title:i,options:l,activeIndex:0})},setActiveIndex:t=>e({activeIndex:t}),setStatus:(t,n)=>e(r=>({statusByQuery:{...r.statusByQuery,[t]:n}})),setResult:(t,n)=>e(r=>({resultsByQuery:{...r.resultsByQuery,[t]:n},statusByQuery:{...r.statusByQuery,[t]:n.length>0?"idle":"empty"}})),close:()=>e({...TS}),reset:()=>e({...TS,resultsByQuery:{},statusByQuery:{}})}));function Dle(e){const t=$t(),n=e.carouselComp?.carousel?.cards??[],r=[];for(const i of n)try{r.push(Ia(i,"structured-question-visual-preview",t))}catch{}return r}async function Mle(e){const t=e.trim();if(!t)return;const n=ui,{statusByQuery:r,resultsByQuery:i}=n.getState();if(!(r[t]==="loading"||i[t]!==void 0)){n.getState().setStatus(t,"loading");try{const s=await Ole(t,Lle);n.getState().setResult(t,Dle(s))}catch{n.getState().setStatus(t,"error")}}}const E1=wn()(Ef(e=>({viewStateByBlock:{},showBlocks:!1,setViewState:(t,n)=>e(r=>{r.viewStateByBlock[t]=n}),toggleShowBlocks:()=>e(t=>{t.showBlocks=!t.showBlocks}),resetForNewChat:()=>e(t=>{t.viewStateByBlock={}})}))),nr=wn((e,t)=>({nudgeText:null,setNudge:n=>e({nudgeText:n}),clearNudge:()=>e({nudgeText:null}),startVoice:null,setStartVoice:n=>e({startVoice:n}),cancelVoice:null,setCancelVoice:n=>e({cancelVoice:n}),stopVoice:null,setStopVoice:n=>e({stopVoice:n}),stopAndSendVoice:null,setStopAndSendVoice:n=>e({stopAndSendVoice:n}),voiceState:"idle",setVoiceState:n=>e({voiceState:n}),voiceError:null,setVoiceError:n=>e({voiceError:n}),resetForChatSwitch:()=>{const{cancelVoice:n,voiceState:r}=t();(r==="listening"||r==="processing")&&n?.(),e({nudgeText:null,voiceState:"idle",voiceError:null})}})),KM=()=>{Ji.getState().cancelActiveTurn?.(),Fe.getState().closeCarousel(),Xt.getState().closeListingDetails(),Xi.getState().clearAll(),Ja.getState().reset(),kn.getState().resetForNewChat(),ui.getState().reset(),E1.getState().resetForNewChat(),nr.getState().resetForChatSwitch()},$a=()=>{U.getState().startNewChat(),hn.getState().setSelectedIndex(null),Qr.getState().disableSelectionMode(),ws.getState().resetChoice(),KM()},UI=()=>{$a(),be.getState().markAsUnvisited()},V7=e=>{e||Ile()&&U.setState({agenticChatV2:!0})},XM=k.createContext({isLoading:!1}),Ple=({children:e})=>{const[t,n]=G.useState(!0),r=be(u=>u.setUser),i=be(u=>u.clearUser),s=()=>{hn.getState().clearHistory(),$a(),Mc.getState().clearImages(),Ai.getState().clearTranscriptCache(),Gn.getState().clearFavorites(),ws.getState().clear(),or.getState().clearRecentImages(),ir.getState().resetTutorialProgress(),mo.getState().clearAllToasts(),bn.getState().clearRecentlyInteracted(),be.getState().markAsUnvisited()},l=u=>{s(),r(u),V7(u.isGuest),n(!1)};return k.useEffect(()=>{let u;return(async()=>{try{const h=new URLSearchParams(window.location.search).get("type")==="extension";if(zd.setExtensionContext(h),h){const g=await zd.getAuthStatusFromExtension();if(g.isAuthenticated&&g.userId){l({userId:g.userId,email:g.email||void 0,displayName:g.email?.split("@")[0]||`User-${g.userId.slice(0,8)}`,photoURL:void 0,isGuest:!1});return}}const m=await Wi.handleRedirectResult();if(m)l({userId:m.userId,email:m.email,displayName:m.displayName,photoURL:m.photoURL,isGuest:!1});else{const g=Wi.getCurrentUser();g&&l({userId:g.uid,email:g.email||void 0,displayName:g.displayName||void 0,photoURL:g.photoURL||void 0,isGuest:g.isAnonymous})}u=Wi.onAuthStateChanged(g=>{if(g){be.getState().userId===g.userId||(s(),r({userId:g.userId,email:g.email,displayName:g.displayName,photoURL:g.photoURL,isGuest:g.isGuest})),V7(g.isGuest),n(!1);return}if(s(),i(),zd.isExtensionContext()||xt()){n(!1);return}(async()=>{try{await Voe()}catch(b){pt({error:b,source:"AuthContext.guestOnNoSession"},{showToast:!1})}finally{n(!1)}})()})}catch(h){pt({error:h,source:"AuthContext.initializeAuth"},{showToast:!1}),i(),n(!1)}})(),()=>u?.()},[r,i]),k.useEffect(()=>{t||Goe()},[t]),c.jsx(XM.Provider,{value:{isLoading:t},children:e})},ti=()=>{const e=k.useContext(XM);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},Fle=k.createContext(null);function Ble(){return k.useContext(Fle)}const We=()=>{const[e,t]=k.useState(typeof window<"u"?window.innerWidth:Ad);k.useEffect(()=>{const i=()=>{t(window.innerWidth)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]);const r=Ble()??e;return{isMobile:r<Ad,isTablet:r>=XD&&r<Ad,isDesktop:r>=Ad,band:Pie(r),windowWidth:r}},cp=wn(()=>({stableHeight:0,keyboardInset:0}));function Nle(e,t){if(t.textFieldFocused)return e;const n={height:t.height,width:t.width};return!e||t.height>=e.height||t.width!==e.width||t.pageFocused?n:e}const zle=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]);function Hle(e){return e?e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!zle.has(e.type):e instanceof HTMLElement&&e.isContentEditable===!0:!1}function Ule(){if(typeof document>"u")return()=>{};const e=document.documentElement,t=document.createElement("div");t.setAttribute("aria-hidden","true"),t.dataset.testid="layout-viewport-probe",Object.assign(t.style,{position:"fixed",top:"0",left:"0",width:"0",height:"100svh",visibility:"hidden",pointerEvents:"none"}),document.body.appendChild(t);let n=null;const r=()=>{const s=t.getBoundingClientRect().height;if(!(s>0))return;const l=Nle(n,{height:s,width:window.innerWidth,textFieldFocused:Hle(document.activeElement),pageFocused:document.hasFocus()});if(!l)return;n=l;const u=Math.max(0,Math.round(l.height-s)),d=cp.getState();d.stableHeight!==l.height&&e.style.setProperty(p5,`${l.height}px`),(d.stableHeight!==l.height||d.keyboardInset!==u)&&cp.setState({stableHeight:l.height,keyboardInset:u})},i=typeof ResizeObserver<"u"?new ResizeObserver(r):null;return i?.observe(t),i||window.addEventListener("resize",r),document.addEventListener("focusin",r),document.addEventListener("focusout",r),window.addEventListener("focus",r),window.addEventListener("blur",r),r(),()=>{i?.disconnect(),window.removeEventListener("resize",r),document.removeEventListener("focusin",r),document.removeEventListener("focusout",r),window.removeEventListener("focus",r),window.removeEventListener("blur",r),t.remove(),e.style.removeProperty(p5),cp.setState({stableHeight:0,keyboardInset:0})}}function Wle(e){k.useEffect(()=>{if(e)return Ule()},[e])}const Vle={background:"#ffffff",backgroundSecondary:"#f8f9fa",backgroundTertiary:"#e9ecef",text:"#212529",textSecondary:"#495057",textMuted:"#6c757d",border:"#dee2e6",borderLight:"#e9ecef",cardBackgroun
39d:"#ffffff",inputBackground:"#ffffff",buttonBackground:"#007bff",buttonText:"#ffffff",success:"#28a745",error:"#dc3545",warning:"#ffc107",info:"#17a2b8",hover:"#f1f3f5",active:"#e9ecef",selected:"#e7f3ff",shadow:"rgba(0, 0, 0, 0.1)",shadowStrong:"rgba(0, 0, 0, 0.2)",inputBoxShadow:"rgba(14, 14, 17, 0.16)",inputBoxShadowTyping:"rgba(14, 14, 17, 0.20)",inputBoxShadowDisabled:"rgba(14, 14, 17, 0.08)",composerShadow:"inset 0 0 0 1px #DDDDDF, 0 14px 36px rgba(14, 14, 17, 0.16)",composerShadowFocused:"inset 0 0 0 1px #FFFFFF, 0 26px 60px rgba(14, 14, 17, 0.26)",composerShadowTyping:"inset 0 0 0 1px #FE765F, 0 0 0 3px rgba(254, 118, 95, 0.18), 0 26px 60px rgba(14, 14, 17, 0.26)",composerShadowDictating:"inset 0 0 0 1px #FDB341, 0 0 0 3px rgba(253, 179, 65, 0.22), 0 14px 36px rgba(253, 179, 65, 0.12)",welcomeInputGradient:"linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 50%, rgba(241, 245, 249, 0.85) 100%)",welcomeInputShadow:"0 8px 32px rgba(14, 14, 17, 0.12), 0 2px 8px rgba(14, 14, 17, 0.08)",welcomeInputBorder:"rgba(255, 255, 255, 0.3)",welcomeSearchInputBackground:"rgba(255, 255, 255, 0.6)",welcomeSearchInputFocusedBackground:"rgba(255, 255, 255, 0.8)",welcomeSearchInputFocusedShadow:"0 0 0 2px rgba(14, 14, 17, 0.1)",heroBaseSurface:"#EEECE8",heroScrimRgb:"255, 255, 255",listItemHover:"rgba(0, 0, 0, 0.04)",listItemActive:"rgba(0, 0, 0, 0.08)",listItemSelected:"#F2F2F3",imageContainerBackground:"transparent",toggleButtonColor:"#007bff",toggleIconColor:"#ffffff",toggleButtonShadow:"rgba(0, 0, 0, 0.2)",modalOverlayBackground:"rgba(255, 255, 255, 1)",modalBackground:"#FFFFFF",modalShadow:"0 -4px 32px 0 rgba(14, 14, 17, 0.16)",modalHandleColor:"#E5E5E5",modalTitleColor:"#0E0E11",imagePreloaderLoadingGradient:` 40 linear-gradient(90deg, 41 transparent 0%, 42 transparent 20%, 43 rgba(255, 255, 255, 0.4) 40%, 44 rgba(255, 255, 255, 0.7) 50%, 45 rgba(255, 255, 255, 0.4) 60%, 46 transparent 80%, 47 transparent 100% 48 ), 49 #F2F2F3 50 `,imagePreloaderErrorBackground:"#F2F2F3",imagePreloaderErrorText:"#71717F",buttonHover:"rgba(0, 0, 0, 0.04)",buttonActive:"rgba(0, 0, 0, 0.08)",vtoContainerBackground:"#FFFFFF",vtoContainerShadow:"0 20px 60px rgba(0, 0, 0, 0.3)",vtoBorder:"#F3F4F6",vtoTitleColor:"#111827",vtoLoadingBackground:"#F9FAFB",vtoDisclaimerText:"#6B7280",vtoDisclaimerBackground:"#F9FAFB",vtoButtonBackground:"#FFFFFF",vtoButtonText:"#111827",vtoButtonBorder:"#D1D5DB",vtoButtonDisabledBackground:"#D1D5DB",vtoErrorBackground:"#FEE2E2",vtoErrorText:"#DC2626",iconFilter:"none",favoritesButtonBackground:"rgba(255, 255, 255, 0.20)",carouselHeaderButtonHover:"#F5F5F7",selectionToggleBackgroun
50d:"rgba(255, 255, 255, 0.9)",selectionToggleBorder:"rgba(0, 0, 0, 0.2)",selectionToggleHoverBackground:"rgba(255, 255, 255, 0.95)",selectionToggleHoverBorder:"rgba(0, 0, 0, 0.3)",selectionToggleSelectedBackground:"#22C55E",listingCardMoreOptionsIconFilter:"none",glowRectangleGradient:"linear-gradient(90deg, #FCDA2E 0%, #42F098 100%)"},qle={background:"#1D1D1D",backgroundSecondary:"#262626",backgroundTertiary:"#2C2C2C",text:"#F0F0F0",textSecondary:"#C8CDD2",textMuted:"#5F6368",border:"#393C3F",borderLight:"#27282A",cardBackground:"#262626",inputBackground:"#2C2C2C",buttonBackground:"#8AB4F8",buttonText:"#1D1D1D",success:"#81C995",error:"#F28B82",warning:"#FDD663",info:"#78D9EC",hover:"#2A2A2A",active:"#393C3F",selected:"#243D5E",shadow:"rgba(0, 0, 0, 0.4)",shadowStrong:"rgba(0, 0, 0, 0.7)",inputBoxShadow:"rgba(0, 0, 0, 0.7)",inputBoxShadowTyping:"rgba(0, 0, 0, 0.7)",inputBoxShadowDisabled:"rgba(0, 0, 0, 0.2)",composerShadow:"inset 0 0 0 1px #393C3F, 0 14px 36px rgba(0, 0, 0, 0.5)",composerShadowFocused:"inset 0 0 0 1px #4A4D50, 0 26px 60px rgba(0, 0, 0, 0.68)",composerShadowTyping:"inset 0 0 0 1px #FE765F, 0 0 0 3px rgba(254, 118, 95, 0.22), 0 26px 60px rgba(0, 0, 0, 0.68)",composerShadowDictating:"inset 0 0 0 1px #FDB341, 0 0 0 3px rgba(253, 179, 65, 0.26), 0 14px 36px rgba(0, 0, 0, 0.5)",welcomeInputGradient:"linear-gradient(135deg, #2C2C2C 0%, #2C2C2C 50%, #262626 100%)",welcomeInputShadow:"0 8px 32px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4)",welcomeInputBorder:"#393C3F",welcomeSearchInputBackground:"#2C2C2C",welcomeSearchInputFocusedBackground:"#2C2C2C",welcomeSearchInputFocusedShadow:"0 0 0 2px #393C3F",heroBaseSurface:"#1A1917",heroScrimRgb:"29, 29, 29",listItemHover:"rgba(255, 255, 255, 0.08)",listItemActive:"rgba(255, 255, 255, 0.12)",listItemSelected:"#243D5E",imageContainerBackground:"#FFFFFF",toggleButtonColor:"#8AB4F8",toggleIconColor:"#171717",toggleButtonShadow:"rgba(0, 0, 0, 0.6)",modalOverlayBackground:"rgba(0, 0, 0, 1)",modalBackground:"#262626",modalShadow:"0 -4px 32px 0 rgba(0, 0, 0, 0.5)",modalHandleColor:"#393C3F",modalTitleColor:"#F0F0F0",imagePreloaderLoadingGradient:` 51 linear-gradient(90deg, 52 transparent 0%, 53 transparent 20%, 54 rgba(255, 255, 255, 0.1) 40%, 55 rgba(255, 255, 255, 0.2) 50%, 56 rgba(255, 255, 255, 0.1) 60%, 57 transparent 80%, 58 transparent 100% 59 ), 60 #2C2C2C 61 `,imagePreloaderErrorBackground:"#2C2C2C",imagePreloaderErrorText:"#8E9196",buttonHover:"rgba(255, 255, 255, 0.08)",buttonActive:"rgba(255, 255, 255, 0.12)",vtoContainerBackground:"#262626",vtoContainerShadow:"0 20px 60px rgba(0, 0, 0, 0.7)",vtoBorder:"#393C3F",vtoTitleColor:"#F0F0F0",vtoLoadingBackground:"#2C2C2C",vtoDisclaimerText:"#8E9196",vtoDisclaimerBackground:"#2C2C2C",vtoButtonBackground:"#262626",vtoButtonText:"#F0F0F0",vtoButtonBorder:"#393C3F",vtoButtonDisabledBackground:"#393C3F",vtoErrorBackground:"rgba(239, 68, 68, 0.2)",vtoErrorText:"#F28B82",iconFilter:"brightness(0) invert(0.9)",favoritesButtonBackground:"rgba(255, 255, 255, 0.04)",carouselHeaderButtonHover:"rgba(255, 255, 255, 0.08)",selectionToggleBackgroun
61d:"rgba(0, 0, 0, 0.25)",selectionToggleBorder:"rgba(255, 255, 255, 0.2)",selectionToggleHoverBackground:"rgba(0, 0, 0, 0.35)",selectionToggleHoverBorder:"rgba(255, 255, 255, 0.3)",selectionToggleSelectedBackground:"#22C55E",listingCardMoreOptionsIconFilter:"brightness(0)",glowRectangleGradient:"linear-gradient(90deg, #FCDA2E 0%, #42F098 100%)"},WI=e=>"var(--Gradients-lemon, linear-gradient(90deg, #FCDA2E 0%, #FDB341 100%))",VI=()=>typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",T1=e=>e==="system"?VI():e,JM=()=>{const e=localStorage.getItem("tonita-theme");return e==="dark"||e==="light"||e==="system"?e:"system"},up=e=>{document.documentElement.setAttribute("data-theme",e)},Gle=()=>{const e=JM(),t=T1(e);up(t)},Yle=e=>e==="dark"?qle:Vle,ZM=JM(),Kle=VI();up(T1(ZM));const $h=wn((e,t)=>({mode:ZM,systemTheme:Kle,setTheme:n=>{localStorage.setItem("tonita-theme",n);const r=T1(n);up(r),e({mode:n})},cycleTheme:()=>{e(n=>{const r=["light","dark","system"],s=(r.indexOf(n.mode)+1)%r.length,l=r[s];localStorage.setItem("tonita-theme",l);const u=T1(l);return up(u),{mode:l}})},getResolvedTheme:()=>{const n=t();return n.mode==="system"?n.systemTheme:n.mode},updateSystemTheme:()=>{const n=VI(),r=t();e({systemTheme:n}),r.mode==="system"&&up(n)}}));typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{$h.getState().updateSystemTheme()});const ze=()=>{const e=$h(u=>u.mode),t=$h(u=>u.systemTheme),n=$h(u=>u.setTheme),r=$h(u=>u.cycleTheme),i=e==="system"?t:e,s=Yle(i);return{mode:e,systemTheme:t,colors:s,setTheme:n,cycleTheme:r,isDark:i==="dark",resolvedTheme:i}},An=wn(e=>({isOpen:!1,toggle:()=>e(t=>({isOpen:!t.isOpen})),close:()=>e({isOpen:!1}),open:()=>e({isOpen:!0})}));typeof window<"u"&&window.addEventListener("keydown",e=>{e.key==="Escape"&&An.getState().close()});const Xle=()=>{const{isLoading:e}=ti(),t=be(s=>s.userId),n=hn(s=>s.hasFetched),r=hn(s=>s.isLoading),i=hn(s=>s.error);return k.useEffect(()=>{e||t&&hn.getState().fetchHistory()},[e,t]),{isLoading:r,error:i,hasFetched:n}},Jle=()=>{const{isLoading:e}=ti(),t=be(s=>s.userId),n=Gn(s=>s.hasFetched),r=Gn(s=>s.isLoading),i=Gn(s=>s.error);return k.useEffect(()=>{e||t&&Gn.getState().fetchFavorites()},[e,t]),{isLoading:r,error:i,hasFetched:n}},Zle=()=>{const{isLoading:e}=ti(),t=be(r=>r.userId),n=be($c);k.useEffect(()=>{e||!n||ws.getState().fetchProfiles()},[e,n,t])},Qle=()=>{const{isLoading:e}=ti(),t=be(n=>n.userId);k.useEffect(()=>{if(e||!t)return;const{hasLoadedTutorialProgress:n,isFetchingTutorialProgress:r}=ir.getState();n||r||ir.getState().fetchTutorialProgress()},[e,t])},QM=ei("App",{web:()=>Pn(()=>import("./web-C8gEFGPc.js"),[]).then(e=>new e.AppWeb)}),Bt=()=>{const e=Y1();return k.useCallback((t,n)=>{if(typeof t=="number"){e(t);return}const r=gu()?!1:n?.replace??!1;e(t,{...n,replace:r})},[e])};function $le(){const e=Bt(),t=xt();k.useEffect(()=>{if(!t)return;let n=null,r=!1;return(async()=>{const s=await QM.addListener("appUrlOpen",l=>{const u=NM(l.url);if(u===null){console.warn("Ignoring app URL open:",l.url);return}e(u)});r?s.remove():n=s})(),()=>{r=!0,n?.remove()}},[t,e])}function ece(){k.useEffect(()=>{uie()},[])}function tce(){const e=be(t=>t.userId);k.useEffect(()=>{Gr.initialize()},[]),k.useEffect(()=>{e&&Gr.registerTokenForCurrentUser()},[e])}function nce(){const e=Bt(),t=S5(r=>r.pendingPath),n=S5(r=>r.clearPendingPath);k.useEffect(()=>{t!==null&&(e(t),n())},[t,e,n])}const rce=new Set(["/recent"]);function ice(){const e=Bt(),t=Pt(),n=U(i=>i.chatId),r=k.useRef(null);k.useEffect(()=>{if(!n){r.current=null;return}n!==r.current&&(r.current=n,!t.pathname.startsWith("/c/")&&(rce.has(t.pathname)||e(`/c/${n}`,{replace:!0})))},[n,e,t.pathname])}function iu(){if(typeof window>"u"||!window.matchMedia)return!1;try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}const AS=ei("KeepAwake",{web:()=>Pn(()=>import("./web-C_sLw6pi.js"),[]).then(e=>new e.KeepAwakeWeb)}),ace="oppref";let T5=!1;function sce(){try{const e=km().get(ace);e&&e.trim()!==""&&(T5=!0)}catch{}}function oce(){return T5?(T5=!1,!0):!1}
61const qI=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/bmp","image/tiff","image/heif","image/heic"],lce=new Set(qI.map(e=>e.toLowerCase()));function cce(e){return e?lce.has(e.toLowerCase()):!1}async function uce(e){try{const t=await e.slice(4,8).arrayBuffer();return new TextDecoder("utf-8").decode(t)==="ftyp"}catch{return!1}}async function GI(e){const t=await Promise.all(e.map(uce));if(!t.some(Boolean))return e;let n;try{n=await Pn(()=>import("./heic-to-Co3dQFPe.js"),[])}catch(s){return console.warn("HEIC decoder failed to load, sending files as-is",s),e}const{heicTo:r,isHeic:i}=n;return Promise.all(e.map(async(s,l)=>{if(!t[l])return s;try{if(!await i(s))return s;const u=await r({blob:s,type:"image/jpeg",quality:.9}),d=s.name.replace(/\.hei[cf]$/i,".jpg");return new File([u],d,{type:"image/jpeg"})}catch(u){return console.warn(`HEIC normalization failed for ${s.name}, sending as-is`,u),s}}))}async function dce(e){return Rv(e,!0)}async function Rv(e,t=!1){return Promise.all(e.map(n=>new Promise((r,i)=>{const s=new FileReader;s.onload=()=>{let l=s.result;if(t){const u=l.indexOf(",");u!==-1&&(l=l.slice(u+1))}r(l)},s.onerror=()=>i(s.error),s.readAsDataURL(n)})))}async function fce(e){return(await Rv([e],!0))[0]}function hce(e){return e.map(t=>{const n=t.indexOf(",");return n===-1?null:t.slice(n+1)}).filter(t=>t!==null)}var B0={},q7;function pce(){if(q7)return B0;q7=1,Object.defineProperty(B0,"__esModule",{value:!0});var e=function(n){console.warn("[react-gtm]",n)};return B0.default=e,B0}var _S,G7;function mce(){if(G7)return _S;G7=1;var e=pce(),t=n(e);function n(i){return i&&i.__esModule?i:{default:i}}var r={tags:function(s){var l=s.id,u=s.events,d=s.dataLayer,h=s.dataLayerName,m=s.preview,g=s.auth,y=">m_auth="+g,b=">m_preview="+m;l||(0,t.default)("GTM Id is required");var S=` 62 <iframe src="https://www.googletagmanager.com/ns.html?id=`+l+y+b+`>m_cookies_win=x" 63 height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,I=` 64 (function(w,d,s,l,i){w[l]=w[l]||[]; 65 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(u).slice(1,-1)+`}); 66 var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:''; 67 j.async=true;
67j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'`+y+b+`>m_cookies_win=x'; 68 f.parentNode.insertBefore(j,f); 69 })(window,document,'script','`+h+"','"+l+"');",w=this.dataLayer(d,h);return{iframe:S,script:I,dataLayerVar:w}},dataLayer:function(s,l){return` 70 window.`+l+" = window."+l+` || []; 71 window.`+l+".push("+JSON.stringify(s)+")"}};return _S=r,_S}var RS,Y7;function gce(){if(Y7)return RS;Y7=1;var e=mce(),t=n(e);function n(i){return i&&i.__esModule?i:{default:i}}var r={dataScript:function(s){var l=document.createElement("script");return l.innerHTML=s,l},gtm:function(s){var l=t.default.tags(s),u=function(){var g=document.createElement("noscript");return g.innerHTML=l.iframe,g},d=function(){var g=document.createElement("script");return g.innerHTML=l.script,g},h=this.dataScript(l.dataLayerVar);return{noScript:u,script:d,dataScript:h}},initialize:function(s){var l=s.gtmId,u=s.events,d=u===void 0?{}:u,h=s.dataLayer,m=s.dataLayerName,g=m===void 0?"dataLayer":m,y=s.auth,b=y===void 0?"":y,S=s.preview,I=S===void 0?"":S,w=this.gtm({id:l,events:d,dataLayer:h||void 0,dataLayerName:g,auth:b,preview:I});h&&document.head.appendChild(w.dataScript),document.head.insertBefore(w.script(),document.head.childNodes[0]),document.body.insertBefore(w.noScript(),document.body.childNodes[0])},dataLayer:function(s){var l=s.dataLayer,u=s.dataLayerName,d=u===void 0?"dataLayer":u;if(window[d])return window[d].push(l);var h=t.default.dataLayer(l,d),m=this.dataScript(h);document.head.insertBefore(m,document.head.childNodes[0])}};return RS=r,RS}var jS,K7;function yce(){if(K7)return jS;K7=1;var e=gce(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return jS=t.default,jS}var vce=yce();const X7=ff(vce);var J7;(function(e){e.AdPersonalization="AD_PERSONALIZATION",e.AdStorage="AD_STORAGE",e.AdUserData="AD_USER_DATA",e.AnalyticsStorage="ANALYTICS_STORAGE",e.FunctionalityStorage="FUNCTIONALITY_STORAGE",e.PersonalizationStorage="PERSONALIZATION_STORAGE"})(J7||(J7={}));var Z7;(function(e){e.Granted="GRANTED",e.Denied="DENIED"})(Z7||(Z7={}));const Q7=ei("FirebaseAnalytics",{web:()=>Pn(()=>import("./web-BLGYrEYz.js"),[]).then(e=>new e.FirebaseAnalyticsWeb)}),bce="choice_hide",$M="choice_show",xce={tonitaExperimentVar_chatGptWelcomeBanner:{enabled:!0,choices:{[bce]:{index:0},[$M]:{index:1}}}};class Sce{constructor(){this.config=xce}hashForChoice(t,n){const r=`${t}:${n}`;let i=0;for(let s=0;s<r.length;s++){const l=r.charCodeAt(s);i=(i<<5)-i+l,i=i&i}return Math.abs(i)}getChoice(t,n){const r=this.config[t];if(!r?.enabled)return null;const i=r.choices,s=Object.keys(i).length,l=this.hashForChoice(n,t)%s;for(const[u,d]of Object.entries(i))if(d.index===l)return u;return null}
71getExperimentChatRequestParams(t){if(!t)return{};const n={};for(const[r,i]of Object.entries(this.config)){if(!i.enabled)continue;const s=this.getChoice(r,t),l=s&&i.choices[s]?.chatRequestParams;l&&Object.assign(n,l)}return n}getGTMExperimentEventParams(t){if(!t)return{};const n={};for(const[r,i]of Object.entries(this.config)){if(!i.enabled)continue;const s=this.getChoice(r,t);s&&(n[r]=s)}return n}isChatGptWelcomeBannerShown(t){return t?this.getChoice("tonitaExperimentVar_chatGptWelcomeBanner",t)===$M:!1}}const A5=new Sce,eP="tonita_consent",wce={ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"},Cce={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied"},Ice={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"granted"},kce=new Set(["Europe/Vienna","Europe/Brussels","Europe/Sofia","Europe/Zagreb","Asia/Nicosia","Asia/Famagusta","Europe/Prague","Europe/Copenhagen","Europe/Tallinn","Europe/Helsinki","Europe/Paris","Europe/Berlin","Europe/Busingen","Europe/Athens","Europe/Budapest","Europe/Dublin","Europe/Rome","Europe/Riga","Europe/Vilnius","Europe/Luxembourg","Europe/Malta","Europe/Amsterdam","Europe/Warsaw","Europe/Lisbon","Atlantic/Azores","Atlantic/Madeira","Europe/Bucharest","Europe/Bratislava","Europe/Ljubljana","Europe/Madrid","Africa/Ceuta","Atlantic/Canary","Europe/Stockholm","Atlantic/Reykjavik","Europe/Vaduz","Europe/Oslo","Europe/London","Europe/Zurich"]);function $7(e){let t=e;if(t===void 0)try{t=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{t=""}return t?kce.has(t)?"strict":"open":"strict"}function eR(){return typeof navigator>"u"?!1:navigator.globalPrivacyControl===!0}function Ece(){try{return localStorage.getItem(eP)==="opted_out"}catch{return!1}}function Tce(e){try{localStorage.setItem(eP,e?"opted_out":"opted_in")}catch{}}function OS(e,t){return e==="strict"?{...Cce}:t?{...Ice}:{...wce}}const Ace=function(){const e=window;e.dataLayer=e.dataLayer||[],e.dataLayer.push(arguments)};function tR(e,t){Ace("consent",e,t)}class _ce{constructor(){this.initialized=!1}initialize(){if(xt()||this.initialized)return;this.initialized=!0;const{region:t,adOptOut:n}=this.getSnapshot();tR("default",OS(t,n))}getSnapshot(){const t=$7(),n=eR(),r=t==="strict"||n||Ece();return{region:t,adOptOut:r,gpc:n}}adTrackingAllowed(){if(xt())return!1;const{region:t,adOptOut:n}=this.getSnapshot();return OS(t,n).ad_storage==="granted"}setAdOptOut(t){if(xt())return;const n=$7();n!=="strict"&&(eR()||(Tce(t),tR("update",OS(n,t))))}}const _5=new _ce,Rce="https://api.tonita.co/meta-capi/track",jce={tonitaEvent_visitStart:"PageView",tonitaEvent_userMessage:"Search",tonitaEvent_productCardClick:"ViewContent",tonitaEvent_favoriteClick:"AddToWishlist",tonitaEvent_clickOut:"ClickOut"};function nR(e){const t=e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1"),n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):void 0}function Oce(){try{return new URLSearchParams(window.location.search).get("fbclid")||void 0}catch{return}}async function rR(e,t,n){if(!_5.adTrackingAllowed())return;const r=jce[e];if(r)try{const[{auth:i},{getIdToken:s},{getDeploymentHeaders:l},{useUserStore:u},{getStoredAttribution:d}]=await Promise.all([Pn(()=>Promise.resolve().then(()=>ZX),void 0),Pn(()=>Promise.resolve().then(()=>zoe),void 0),Pn(()=>Promise.resolve().then(()=>Qie),void 0),Pn(()=>Promise.resolve().then(()=>Yre),void 0),Pn(()=>Promise.resolve().then(()=>tAe),void 0)]);await i.authStateReady();const h=await s(),{userId:m,email:g}=u.getState(),y=n||m||void 0,b=d()?.lastTouch,S=nR("_fbc")||b?.fbc,I=b?.params.fbclid||Oce(),w={event_name:r,event_id:t,event_source_url:window.location.href,user_data:{email:g||void 0,external_id:y,fbp:nR("_fbp"),fbc:S,fbclid:I}},C=await fetch(Rce,{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json",Authorization:`Bearer ${h}`,...l()},body:JSON.stringify(w)});C.ok||console.error("[MetaCAPI] Non-OK response for event:",e,C.status)}catch(i){console.error("[MetaCAPI] Failed to send event:",e,i)}}const iR=crypto.randomUUID(),N0=Kc.isNativePlatform();var Ot=(e=>(e.VISIT_START="tonitaEvent_visitStart",e.USER_MESSAGE="tonitaEvent_userMessage",e.CLICK_OUT="tonitaEvent_clickOut",e.SIMILAR_LISTINGS_CLICK="tonitaEvent_similarListingsClick",e.SEND_BUTTON_CLICK="tonitaEvent_sendButtonClick",e.PRODUCT_CARD_CLICK="tonitaEvent_productCardClick",e.VIEW_MORE_RESULTS_CLICK="tonitaEvent_viewMoreResultsClick",e.RECEIVED_COMPONENT="tonitaEvent_receivedComponent",e.CATEGORY_CAROUSEL_CARD_CLICK="tonitaEvent_categoryCarouselCardClick",e.MULTIPLE_CHOICE_CHIP_CLICK="tonitaEvent_multipleChoiceChipClick",e.STRUCTURED_QUESTION_CHIP_CLICK="tonitaEvent_structuredQuestionChipClick",e.STRUCTURED_QUESTION_WRITE_IN="tonitaEvent_structuredQuestionWriteIn",e.STRUCTURED_QUESTION_SEND_BUTTON_HINT_SHOWN="tonitaEvent_structuredQuestionSendButtonHintShown",e.STRUCTURED_QUESTION_SEND_BUTTON_HINT_DISMISSED="tonitaEvent_structuredQuestionSendButtonHintDismissed",e.STRUCTURED_QUESTION_VISUAL_OPTION_VIEWED="tonitaEvent_structuredQuestionVisualOptionViewed",e.ONE_CLICK_SUGGESTION_CLICK="tonitaEvent_oneClickSuggestionClick",e.MORE_OPTIONS_CLICK="tonitaEvent_moreOptionsClick",e.CLOSE_PRODUCT_DETAILS="tonitaEvent_closeProductDetails",e.FAVORITE_CLICK="tonitaEvent_favoriteClick",e.VIRTUAL_TRY_ON_CLICK="tonitaEvent_virtualTryOnClick",e.IMAGE_GALLERY_INTERACTION="tonitaEvent_imageGalleryInteraction",e.CATEGORY_CAROUSEL_SCROLL="tonitaEvent_categoryCarouselScroll",e.EXPLORATION_CAROUSEL_CARD_CLICK="tonitaEvent_explorationCarouselCardClick",e.EXPLORATION_CAROUSEL_SCROLL="tonitaEvent_explorationCarouselScroll",e.SHARE_LISTING_CLICK="tonitaEvent_shareListingClick",e.VOICE_DICTATION_USED="tonitaEvent_voiceDictationUsed",e.VOICE_DICTATION_CANCELLED="tonitaEvent_voiceDictationCancelled",e.VOICE_CALL_STARTED="tonitaEvent_voiceCallStarted",e.VOICE_CALL_STOPPED="tonitaEvent_voiceCallStopped",e.HOME_PAGE_CLICK_INPUT_BOX="tonitaEvent_homePageClickInputBox",e.HOME_PAGE_DEMO_INTERACTION="tonitaEvent_homePageDemoInteraction",e.HOME_PAGE_NEXT_STEP_CLICK="tonitaEvent_homePageNextStepClick",e.BROW
71SE_SUGGESTION_CLICK="tonitaEvent_browseSuggestionClick",e.MEMORY_ACTION="tonitaEvent_memoryAction",e.CHOSE_HOW_TO_PROCEED_OPTION="tonitaEvent_choseHowToProceedOption",e))(Ot||{}),me=(e=>(e.USER_ID="tonitaVar_userId",e.CHAT_ID="tonitaVar_chatId",e.MESSAGE_ID="tonitaVar_messageId",e.LISTING_ID="tonitaVar_listingId",e.COMPONENT_ID="tonitaVar_componentId",e.COMPONENT_TYPE="tonitaVar_componentType",e.QUESTION_INDEX="tonitaVar_questionIndex",e.OPTION_LABEL="tonitaVar_optionLabel",e.PAGE="tonitaVar_page",e.DESTINATION="tonitaVar_destination",e.SUGGESTION_KIND="tonitaVar_suggestionKind",e.ACTION_TYPE="tonitaVar_actionType",e.HOW_TO_PROCEED_OPTION="tonitaVar_howToProceedOption",e.TIMESTAMP_USEC="tonitaVar_timestampUsec",e.VISIT_ID="tonitaVar_visitId",e.EVENT_ID="tonitaVar_eventId",e))(me||{});class Lce{constructor(){this.initialized=!1}async initialize(){if(!this.initialized)try{if(N0)await Q7.setEnabled({enabled:!0});else{const n="GTM-W9ZZ3S6Q";X7.initialize({gtmId:n})}this.initialized=!0;const t=crypto.randomUUID();this.pushEvent("tonitaEvent_visitStart",{tonitaVar_visitId:iR,tonitaVar_timestampUsec:Date.now()*1e3,tonitaVar_eventId:t}),N0||rR("tonitaEvent_visitStart",t)}catch(t){console.error("[Analytics] Initialization failed:",t)}}async pushEvent(t,n){const r=Object.fromEntries(Object.entries(n).filter(([,i])=>i!=null));try{N0?await Q7.logEvent({name:t,params:r}):X7.dataLayer({dataLayer:{event:t,...r}})}catch(i){console.error("[Analytics] Failed to push event:",t,i)}}track(t,n,r){if(!this.initialized)return;const i=A5.getGTMExperimentEventParams(r),s=Date.now()*1e3,l=crypto.randomUUID();this.pushEvent(t,{...n,...i,tonitaVar_timestampUsec:s,tonitaVar_visitId:iR,tonitaVar_eventId:l}),N0||rR(t,l,r)}}const Lt=new Lce;function YI(e){return e.startsWith("/c/")}const Nt=()=>{const e=be(M=>M.userId),t=U(M=>M.chatId),n=k.useCallback((M,Z)=>{const te=e||be.getState().userId;if(!te)return;const B=Z||t||U.getState().chatId||void 0;Lt.track(Ot.USER_MESSAGE,{[me.CHAT_ID]:B,[me.MESSAGE_ID]:M,[me.USER_ID]:te},te)},[t,e]),r=k.useCallback((M,Z)=>{e&&Lt.track(Ot.PRODUCT_CARD_CLICK,{[me.LISTING_ID]:M,[me.CHAT_ID]:t,[me.MESSAGE_ID]:Z,[me.USER_ID]:e},e)},[t,e]),i=k.useCallback((M,Z,te)=>{e&&Lt.track(Ot.CLICK_OUT,{[me.LISTING_ID]:M,[me.PAGE]:Z,[me.CHAT_ID]:t,[me.MESSAGE_ID]:te,[me.USER_ID]:e},e)},[t,e]),s=k.useCallback((M,Z)=>{e&&Lt.track(Ot.SIMILAR_LISTINGS_CLICK,{[me.LISTING_ID]:M,[me.CHAT_ID]:t,[me.MESSAGE_ID]:Z,[me.USER_ID]:e},e)},[t,e]),l=k.useCallback(()=>{e&&Lt.track(Ot.SEND_BUTTON_CLICK,{[me.CHAT_ID]:t,[me.USER_ID]:e},e)},[t,e]),u=k.useCallback(()=>{e&&Lt.track(Ot.VOICE_DICTATION_USED,{[me.CHAT_ID]:t,[me.USER_ID]:e},e)},[t,e]),d=k.useCallback(()=>{e&&Lt.track(Ot.VOICE_CALL_STARTED,{[me.CHAT_ID]:t,[me.USER_ID]:e},e)},[t,e]),h=k.useCallback(()=>{e&&Lt.track(Ot.VOICE_CALL_STOPPED,{[me.CHAT_ID]:t,[me.USER_ID]:e},e)},[t,e]),m=k.useCallback(()=>{e&&Lt.track(Ot.VOICE_DICTATION_CANCELLED,{[me.CHAT_ID]:t,[me.USER_ID]:e},e)},[t,e]),g=k.useCallback(()=>{const M=e||be.getState().userId;M&&Lt.track(Ot.HOME_PAGE_CLICK_INPUT_BOX,{[me.USER_ID]:M},M)},[e]),y=k.useCallback(()=>{const M=e||be.getState().userId;M&&Lt.track(Ot.HOME_PAGE_DEMO_INTERACTION,{[me.USER_ID]:M},M)},[e]),b=k.useCallback(M=>{const Z=e||be.getState().userId;Z&&Lt.track(Ot.HOME_PAGE_NEXT_STEP_CLICK,{[me.USER_ID]:Z,[me.DESTINATION]:M},Z)},[e]),S=k.useCallback(M=>{const Z=e||be.getState().userId;Z&&Lt.track(Ot.BROWSE_SUGGESTION_CLICK,{[me.USER_ID]:Z,[me.SUGGESTION_KIND]:M},Z)},[e]),I=k.useCallback(M=>{const Z=e||be.getState().userId;Z&&Lt.track(Ot.MEMORY_ACTION,{[me.USER_ID]:Z,[me.CHAT_ID]:YI(window.location.pathname)&&t||void 0,[me.ACTION_TYPE]:M},Z)},[t,e]),w=k.useCallback((M,Z,te)=>{const B=e||be.getState().userId;if(!B)return;const N=t||U.getState().chatId||void 0;Lt.track(Ot.CHOSE_HOW_TO_PROCEED_OPTION,{[me.USER_ID]:B,[me.CHAT_ID]:N,[me.MESSAGE_ID]:Z,[me.COMPONENT_ID]:te,[me.HOW_TO_PROCEED_OPTION]:M},B)},[t,e]),C=k.useCallback(M=>{e&&Lt.track(Ot.VIEW_MORE_RESULTS_CLICK,{[me.CHAT_ID]:t,[me.MESSAGE_ID]:M,[me.USER_ID]:e},e)},[t,e]),E=k.useCallback((M,Z,te)=>{e&&Lt.track(Ot.RECEIVED_COMPONENT,{[me.COMPONENT_TYPE]:M,...Z&&{[me.COMPONENT_ID]:Z},...te&&{[me.MESSAGE_ID]:te},[me.CHAT_ID]:t,[me.USER_ID]:e},e)},[t,e]),A=k.useCallback((M,Z)=>{e&&Lt.track(Ot.CATEGORY_CAROUSEL_CARD_CLICK,{[me.USER_ID]:e,[me.CHAT_ID]:t,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},e)},[t,e]),_=k.useCallback((M,Z)=>{e&&Lt.track(Ot.MULTIPLE_CHOICE_CHIP_CLICK,{[me.USER_ID]:e,[me.CHAT_ID]:t,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},e)},[t,e]),R=k.useCallback((M,Z)=>{const te=e||be.getState().userId;if(!te)return;const B=t||U.getState().chatId||void 0;Lt.track(Ot.STRUCTURED_QUESTION_CHIP_CLICK,{[me.USER_ID]:te,[me.CHAT_ID]:B,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},te)},[t,e]),L=k.useCallback((M,Z)=>{const te=e||be.getState().userId;if(!te)return;const B=t||U.getState().chatId||void 0;Lt.track(Ot.STRUCTURED_QUESTION_WRITE_IN,{[me.USER_ID]:te,[me.CHAT_ID]:B,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},te)},[t,e]),j=k.useCallback((M,Z)=>{const te=e||be.getState().userId;if(!te)return;const B=t||U.getState().chatId||void 0;Lt.track(Ot.STRUCTURED_QUESTION_SEND_BUTTON_HINT_SHOWN,{[me.USER_ID]:te,[me.CHAT_ID]:B,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},te)},[t,e]),O=k.useCallback((M,Z)=>{const te=e||be.getState().userId;if(!te)return;const B=t||U.getState().chatId||void 0;Lt.track(Ot.STRUCTURED_QUESTION_SEND_BUTTON_HINT_DISMISSED,{[me.USER_ID]:te,[me.CHAT_ID]:B,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},te)},[t,e]),F=k.useCallback((M,Z,te)=>{const B=e||be.getState().userId;if(!B)return;const N=t||U.getState().chatId||void 0;Lt.track(Ot.STRUCTURED_QUESTION_VISUAL_OPTION_VIEWED,{[me.USER_ID]:B,[me.CHAT_ID]:N,[me.COMPONENT_ID]:M,[me.QUESTION_INDEX]:Z,[me.OPTION_LABEL]:te},B)},[t,e]),D=k.useCallback((M,Z)=>{e&&Lt.track(Ot.ONE_CLICK_SUGGESTION_CLICK,{[me.USER_ID]:e,[me.CHAT_ID]:t,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},e)},[t,e]),H=k.useCallback((M,Z,te)=>{e&&Lt.track(Ot.MORE_OPTIONS_CLICK,{[me.LISTING_ID]:M,[me.PAGE]:Z,[me.CHAT_ID]:t,[me.MESSAGE_ID]:te,[me.USER_ID]:e},e)},[t,e]),V=k.useCallback((M,Z,te)=>{e&&Lt.track(Ot.SHARE_LISTING_CLICK,{[me.LISTING_ID]:M,[me.PAGE]:Z,[me.CHAT_ID]:t,[me.MESSAGE_ID]:te??"",[me.USER_ID]:e},e)},[t,e]),Y=k.useCallback((M,Z)=>{e&&Lt.track(Ot.CLOSE_PRODUCT_DETAILS,{[me.LISTING_ID]:M,[me.CHAT_ID]:t,[me.MESSAGE_ID]:Z,[me.USER_ID]:e},e)},[t,e]),K=k.useCallback((M,Z,te)=>{e&&Lt.track(Ot.FAVORITE_CLICK,{[me.LISTING_ID]:M,[me.PAGE]:Z,[me.CHAT_ID]:t,[me.MESSAGE_ID]:te,[me.USER_ID]:e},e)},[t,e]),z=k.useCallback((M,Z,te)=>{e&&Lt.track(Ot.VIRTUAL_TRY_ON_CLICK,{[me.LISTING_ID]:M,[me.PAGE]:Z,[me.CHAT_ID]:t,[me.MESSAGE_ID]:te,[me.USER_ID]:e},e)},[t,e]),q=k.useCallback((M,Z)=>{e&&Lt.track(Ot.IMAGE_GALLERY_INTERACTION,{[me.LISTING_ID]:M,[me.CHAT_ID]:t,[me.MESSAGE_ID]:Z,[me.USER_ID]:e},e)},[t,e]),$=k.useCallback((M,Z)=>{e&&Lt.track(Ot.EXPLORATION_CAROUSEL_CARD_CLICK,{[me.USER_ID]:e,[me.CHAT_ID]:t,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},e)},[t,e]),ue=k.useCallback((M,Z)=>{e&&Lt.track(Ot.EXPLORATION_CAROUSEL_SCROLL,{[me.USER_ID]:e,[me.CHAT_ID]:t,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},e)},[t,e]),ge=k.useCallback((M,Z)=>{e&&Lt.track(Ot.CATEGORY_CAROUSEL_SCROLL,{[me.USER_ID]:e,[me.CHAT_ID]:t,[me.MESSAGE_ID]:M,[me.COMPONENT_ID]:Z},e)},[t,e]);return{trackUserMessage:n,trackListingClick:r,trackVisitSite:i,trackSim
71ilarListings:s,trackSendButton:l,trackVoiceDictationUsed:u,trackVoiceDictationCancelled:m,trackVoiceCallStarted:d,trackVoiceCallStopped:h,trackHomePageClickInputBox:g,trackHomePageDemoInteraction:y,trackHomePageNextStepClick:b,trackBrowseSuggestionClick:S,trackMemoryAction:I,trackChoseHowToProceedOption:w,trackViewMoreResults:C,trackReceivedComponent:E,trackCategoryCarouselCardClick:A,trackMultipleChoiceChipClick:_,trackStructuredQuestionChipClick:R,trackStructuredQuestionWriteIn:L,trackStructuredQuestionSendButtonHintShown:j,trackStructuredQuestionSendButtonHintDismissed:O,trackStructuredQuestionVisualOptionViewed:F,trackOneClickSuggestionClick:D,trackMoreOptionsClick:H,trackShareListing:V,trackCloseProductDetails:Y,trackFavoriteClick:K,trackVirtualTryOnClick:z,trackImageGalleryInteraction:q,trackCategoryCarouselScroll:ge,trackExplorationCarouselCardClick:$,trackExplorationCarouselScroll:ue}},R5=wn(e=>({shouldCollapse:!1,isExpanded:!1,collapseAll:()=>e({shouldCollapse:!0,isExpanded:!1}),resetCollapse:()=>e({shouldCollapse:!1}),setExpanded:t=>e({isExpanded:t})}));function Dce(e){return e.startsWith("iVBORw0KGgo")?"image/png":e.startsWith("/9j/")?"image/jpeg":e.startsWith("R0lGOD")?"image/gif":e.startsWith("UklGR")?"image/webp":"image/jpeg"}function Mce(e,t){return Array.isArray(e)?e.map(n=>{try{if(n.listingCarouselCard)return Ia(n.listingCarouselCard,t,n.componentId)}catch{return null}}).filter(n=>n!==null):[]}function tP(e,t){const n=e.explorationCarousel||{},r=e.componentId||$t(),s=(Array.isArray(n.items)?n.items:[]).map(l=>{const u=l.heroCard;let d=null;if(u)try{d=Ia(u,t,r)}catch{d=null}return{label:l.label||"",description:l.description||"",heroCard:d}});return{role:"ASSISTANT",type:"exploration_carousel",messageId:t,componentId:r,title:n.title||null,items:s}}function Pce(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.role==="USER")return n.memoryProfileId??null}}function ep(e){const t=[];let n=0;const r={};for(const i of e)if(i.role==="USER"){n++;const s=i.selectedListingCardComponents?Mce(i.selectedListingCardComponents,i.messageId||$t()):[],l=[];if(i.queryImages&&Array.isArray(i.queryImages))for(const h of i.queryImages){const m=h?.image?.base64String;if(m&&typeof m=="string"){const y=`data:${Dce(m)};base64,${m}`;l.push(y)}}const u=i.memory?.profileId,d={role:"USER",messageId:i.messageId||$t(),text:i.text||"",...u&&{memoryProfileId:u},selectedListingCards:s,images:[],imageDataUrls:l,mcqAnswers:i.mcqAnswers};t.push(d)}else if(i.role==="ASSISTANT"&&i.components&&i.components.length>0)for(const s of i.components)if(s.text&&s.text.text){const l={role:"ASSISTANT",type:"text",text:s.text.text,messageId:i.messageId||$t(),componentId:s.componentId||$t()};t.push(l)}else if(s.carousel){const l=s.carousel,d=(l.cards||[]).map(m=>{try{return Ia(m,i.messageId,s.componentId)}catch{return null}}).filter(m=>m!==null),h={role:"ASSISTANT",type:"carousel",messageId:i.messageId||$t(),componentId:s.componentId||$t(),cards:d,title:l.title||null,searchRequestJson:l.searchRequestJson||null,stats:{productCount:d.length,brandCount:_c(d).length,sellerCount:Ac(d).length}};t.push(h)}else if(s.multipleChoiceQuestion){const l=s.multipleChoiceQuestion,u=s.componentId||$t(),d=l.question||"",m=l.answerOptions?.map(y=>({label:y.label||"",heroImageUrls:y.heroImageUrls||[],heroImageProductSearchQuery:y.heroImageProductSearchQuery||null,voicePrompt:y.voicePrompt||null,icon:y.icon||null,sublabel:y.sublabel||null})),g={role:"ASSISTANT",type:"multiple_choice_question",messageId:i.messageId||$t(),componentId:u,question:d,options:l.options||[],answerOptions:m,isSingleChoicePrompt:l.renderAsSingleChoicePrompt||!1,writeInPlaceholder:l.writeInPlaceholder||void 0};t.push(g),r[n]||(r[n]=[]),r[n].push({componentId:u,question:d})}else if(s.oneClickSuggestionPanel){const l=s.oneClickSuggestionPanel,u={role:"ASSISTANT",type:"one_click_suggestion_panel",messageId:i.messageId||$t(),componentId:s.componentId||$t(),options:l.options||[]};t.push(u)}else if(s.categoryCarousel){const l=s.categoryCarousel,u=l.categories||[],d={role:"ASSISTANT",type:"category_carousel",messageId:i.messageId||$t(),componentId:s.componentId||$t(),title:l.title||null,categories:u.map(h=>({categoryName:h.categoryName||"",heroImageUrls:h.heroImageUrls||[],heroImageProductSearchQuery:h.heroImageProductSearchQuery||null}))};t.push(d)}else if(s.explorationCarousel)t.push(tP(s,i.messageId||$t()));else if(s.codeExecution,s.reasoningBlock){const l=s.reasoningBlock,u={role:"ASSISTANT",type:"reasoning",messageId:i.messageId||$t(),componentId:s.componentId||$t(),groupId:l.reasoningBlockGroupId??"",title:l.title??"",body:l.body??"",fullText:l.fullText??""};t.push(u)}else s.structuredQuestionBlock&&t.push(KI(s,i.messageId||$t()));if(n>
710&&r[n]){const i=U.getState();r[n].forEach(({componentId:s,question:l})=>{i.markMultipleChoiceQuestionActive(s),i.setMultipleChoiceQuestion(s,l)})}return t}function KI(e,t){const n=e.structuredQuestionBlock||{},i=(n.questions||[]).map(s=>{const l=s.options||[];return{q:s.q||"",note:s.note||"",options:l.map(u=>({label:u.label||"",visualSearchQuery:u.visualSearchQuery||""})),writeInPlaceholder:s.writeInPlaceholder||"",writeInChip:s.writeInChip||!1,visual:s.visual||!1}});return{role:"ASSISTANT",type:"structured_question_block",messageId:t||$t(),componentId:e.componentId||$t(),kicker:n.kicker||"",hint:n.hint||"",peek:n.peek||"",questions:i,phase:"complete"}}function Fce(e,t){return{role:"ASSISTANT",type:"structured_question_block",messageId:t||$t(),componentId:e,kicker:"",hint:"",peek:"",questions:[],phase:"loading"}}function nP(e){return e.awaitingSpokenWords===!0&&!e.text}function Bce(e,t=[],n=[],r){return{role:"USER",messageId:$t(),text:e,selectedListingCards:t,images:n,...r&&{mcqAnswers:r}}}const Vy=2;function Nce(e){if(!(!e||e.length===0))return e.map(t=>({messageId:t.sourceMessageId,listingId:t.listingId}))}function zce(e){const{userMessage:t}=e,n=Nce(t.selectedListingCards);return{origin:e.origin,customerId:"apparel",corpusId:"en_US",chatId:e.chatId,userId:e.userId,clientWireVersion:Vy,...e.referrerChatId&&{referrerChatId:e.referrerChatId},message:{role:"USER",text:t.text,messageId:t.messageId,...e.queryImages&&{queryImages:e.queryImages},...n?.length&&{selectedListingCardIds:n},...t.mcqAnswers&&{mcqAnswers:t.mcqAnswers}},useCacheForInitialUserMessage:!0,...e.useAgenticChatV2&&{useAgenticChatV2:!0},...e.memoryProfileId&&{memoryProfileId:e.memoryProfileId},...e.experimentParams}}function Hce(e){return{userMessage:e.userMessage,chatMessageRequest:zce(e)}}function Uce(e){return e.isReferrerPath&&!e.existingChatId&&!!e.savedReferrerChatId}function Wce(e){return!!(e.text?.trim()||""||e.hasMCQAnswers||e.imageCount>0||e.selectedCardCount>0)}function Vce(e,t){if(Object.keys(e).length===0)return;const n=Object.entries(e).filter(([,r])=>r.size>0).map(([r,i])=>({questionId:r,question:t[r]||"",selectedOptions:Array.from(i)}));return n.length>0?n:void 0}function qce(e){return Object.values(e).some(t=>t.size>0)}function Gce(e,t,n){const r=[];for(const i of e){if(i.role!=="ASSISTANT"||i.type!=="structured_question_block")continue;const{componentId:s,questions:l}=i;l.forEach((u,d)=>{const h=[...t[s]?.[d]??[]],m=(n[s]?.[d]??"").trim();m&&h.push(m),h.length!==0&&r.push({questionId:`${s}:${d}`,question:u.q,selectedOptions:h})})}return r}function j5(e,t){return Object.values(e).some(r=>Object.values(r).some(i=>i.length>0))?!0:Object.values(t).some(r=>Object.values(r).some(i=>i.trim().length>0))}function aR(e){let t=e instanceof Error?e.message:"Failed to send message";return(t.includes("network-request-failed")||t.includes("network request failed"))&&(t="Network error - please check your connection and try again"),t}function Yce(e){return e.length>50?e.substring(0,47)+"...":e}function Kce(e){return e.startsWith("/pages/")||e.startsWith("/share/")||e==="/favorites"}const rP="favorites";function Xce(e,t){if(e&&t.length>0)throw new Error("Cannot have both focusedProduct and selectedCards at the same time");return e?[e]:t}async function Jce(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function Zce(e){let t,n,r,i=!1;return function(l){t===void 0?(t=l,n=0,r=-1):t=$ce(t,l);const u=t.length;let d=0;for(;n<u;){i&&(t[n]===10&&(d=++n),i=!1);let h=-1;for(;n<u&&h===-1;++n)switch(t[n]){case 58:r===-1&&(r=n-d);break;case 13:i=!0;case 10:h=n;break}if(h===-1)break;e(t.subarray(d,h),r),d=n,r=-1}d===u?t=void 0:d!==0&&(t=t.subarray(d),n-=d)}}function Qce(e,t,n){let r=sR();const i=new TextDecoder;return function(l,u){if(l.length===0)n?.(r),r=sR();else if(u>0){const d=i.decode(l.subarray(0,u)),h=u+(l[u+1]===32?2:1),m=i.decode(l.subarray(h));switch(d){case"data":r.data=r.data?r.data+` 72`+m:m;break;case"event":r.event=m;break;case"id":e(r.id=m);break;case"retry":const g=parseInt(m,10);isNaN(g)||t(r.retry=g);break}}}}function $ce(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function sR(){return{data:"",event:"",id:"",retry:void 0}}var eue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zp="text/event-stream",tue=1e3,oR="last-event-id";function iP(e,t){var{signal:n,headers:r,onopen:i,onmessage:s,onclose:l,onerror:u,openWhenHidden:d,fetch:h}=t,m=eue(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((g,y)=>{const b=Object.assign({},r);b.accept||(b.accept=zp);let S;function I(){S.abort(),document.hidden||R()}d||document.addEventListener("visibilitychange",I);let w=tue,C=0;function E(){document.removeEventListener("visibilitychange",I),window.clearTimeout(C),S.abort()}n?.addEventListener("abort",()=>{E(),g()});const A=h??window.fetch,_=i??nue;async function R(){var L;S=new AbortController;try{const j=await A(e,Object.assign(Object.assign({},m),{headers:b,signal:S.signal}));await _(j),await Jce(j.body,Zce(Qce(O=>{O?b[oR]=O:delete b[oR]},O=>{w=O},s))),l?.(),E(),g()}catch(j){if(!S.signal.aborted)try{const O=(L=u?.(j))!==null&&L!==void 0?L:w;window.clearTimeout(C),C=window.setTimeout(R,O)}catch(O){E(),y(O)}}}R()})}function nue(e){const t=e.headers.get("content-type");if(!t?.startsWith(zp))throw new Error(`Expected content-type to be ${zp}, Actual: ${t}`)}const rue={chat:"/chat",rerank_carousel:"/rerank"};function iue(e){const{sendInProgressRef:t}=e,n="https://prod-tonita-streaming-chat-server-sse-12910835896.us-central1.run.app".replace(/\/+$/,"");let r=null;const i=new Map,s=new Map,l=()=>{t.current=!1,U.getState().setAssistantInProgress(!1),U.getState().setWaitingForFirstToken(!1)},u=w=>{const C=w.type;if(!C)return;const E=s.get(C);
72E&&[...E].forEach(A=>{try{A(w)}catch(_){pt({error:_ instanceof Error?_:new Error(String(_)),source:"chatStreamClient.dispatch",metadata:{type:C}})}})},d=w=>{u({type:"chat_error",error_message:w})},h=async()=>r||Ht();class m extends Error{}const g=async(w,C)=>{const E=rue[w];if(!E)return;i.get(w)?.abort();const A=new AbortController;i.set(w,A);try{const _=await h();await iP(`${n}${E}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${_}`,...Sn()},body:JSON.stringify(C),signal:A.signal,openWhenHidden:!0,onopen:async R=>{if(R.status===401||R.status===403)throw u({type:"auth_error"}),new m;if(!R.ok||!R.headers.get("content-type")?.startsWith(zp))throw d(`Connection error: server responded ${R.status}. Tap Resend to try again.`),new m},onmessage:R=>{if(R.data)try{u(JSON.parse(R.data))}catch(L){pt({error:L instanceof Error?L:new Error(String(L)),source:"chatStreamClient.parseLine",metadata:{data:R.data.slice(0,200)}})}},onclose:()=>{throw new m},onerror:R=>{throw R}})}catch(_){if(_ instanceof m||A.signal.aborted)return;pt({error:_ instanceof Error?_:new Error(String(_)),source:"chatStreamClient.runStream",metadata:{event:w}}),d("Connection lost. Tap Resend to try again, or refresh the page.")}finally{i.get(w)===A&&i.delete(w)}};return{setAuthToken:w=>{r=w},emit:(w,...C)=>{g(w,C[0])},on:(w,C)=>{let E=s.get(w);return E||(E=new Set,s.set(w,E)),E.add(C),()=>{s.get(w)?.delete(C)}},clearSendState:l,disconnect:()=>{i.forEach(w=>w.abort()),i.clear()}}}const aue=8e3;function lR(){Xt.getState().closeListingDetails(),R5.getState().collapseAll(),Fe.getState().closeCarousel(),kn.getState().closeActiveBlock()}function sue(e){if(!(!e||e.length===0))return e.map(t=>({image:{base64String:t}}))}function oue({user:e,children:t}){const{isMobile:n}=We(),r=U(S=>S.assistantInProgress),i=k.useRef(!1),{trackUserMessage:s,trackReceivedComponent:l}=Nt(),u=k.useRef(l);u.current=l;const d=k.useRef(null);d.current||(d.current=iue({sendInProgressRef:i}));const h=d.current;k.useEffect(()=>{const S=[];return S.push(h.on("token_block_start",()=>{U.getState().beginStreamedTokenBlock()})),S.push(h.on("token",(...I)=>{const w=I[0];U.getState().appendToStreamedTokenBlock(w.token),U.getState().setWaitingForFirstToken(!1)})),S.push(h.on("token_block_end",()=>{U.getState().endStreamedTokenBlock(),u.current("text")})),S.push(h.on("carousel_complete",(...I)=>{const w=I[0],C=w.component.carousel?.isPlaceholderCarousel??!1,E=C?[]:w.component.carousel?.cards?.map(_=>Ia(_,w.message_id,w.component.componentId))||[],A={...w,component:{...w.component,carousel:{...w.component.carousel,cards:E}},laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path,isPlaceholderCarousel:C};U.getState().addCarouselMessage(A),u.current("carousel",w.component.componentId,w.message_id)})),S.push(h.on("carousel_partial_start",(...I)=>{const w=I[0];w?.component&&(U.getState().setWaitingForFirstToken(!1),U.getState().startCarouselPartial({component:{componentId:w.component.componentId,carousel:w.component.carousel},message_id:w.message_id,laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path}))})),S.push(h.on("carousel_partial_update",(...I)=>{const w=I[0];if(!w?.component)return;const C=w.component.carousel?.cards?.map(E=>Ia(E,w.message_id,w.component.componentId))||[];U.getState().setWaitingForFirstToken(!1),U.getState().appendCarouselPartialUpdate({component:{componentId:w.component.componentId,carousel:{...w.component.carousel,cards:C}},message_id:w.message_id,laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path})})),S.push(h.on("carousel_partial_complete",(...I)=>{const w=I[0];w?.component&&(U.getState().completeCarouselPartial({message_id:w.message_id,component_id:w.component.componentId}),u.current("carousel",w.component.componentId,w.message_id))})),S.push(h.on("status_update",(...I)=>{if(U.getState().agenticChatV2)return;const w=I[0];U.getState().setWaitingForFirstToken(!1),U.getState().addStatusUpdateMessage({...w,laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path})})),S.push(h.on("text",(...I)=>{const w=I[0];U.getState().setWaitingForFirstToken(!1),U.getState().addTextMessage({...w,laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path})})),S.push(h.on("reranked_carousel_start",()=>{})),S.push(h.on("reranked_listing_ids",(...I)=>{const C=I[0].component,E=C.rerankedListingIds,A=C.cards;if(E.length===0)return;const _=A?.map(R=>Ia(R,C.messageId,C.componentId));U.getState().appendRerankedCards({message_id:C.messageId,component_id:C.componentId,listing_ids:E,cards:_})})),S.push(h.on("reranked_carousel_complete",(...I)=>{const C=I[0].component;U.getState().removeExcessSkeletonCards({message_id:C.messageId,component_id:C.componentId}),U.getState().setCarouselRerankStatus({message_id:C.messageId,component_id:C.componentId,status:"reranking_complete"}),u.current("rerankedCarousel",C.componentId,C.messageId)})),S.push(h.on("reranked_error",()=>{})),S.push(h.on("multiple_choice_question",(...I)=>{const w=I[0];U.getState().setWaitingForFirstToken(!1),U.getState().addMultipleChoiceQuestionMessage({...w,laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path}),U.getState().markMultipleChoiceQuestionActive(w.component.componentId),u.current("multipleChoiceQuestion",w.component.componentId,w.message_id)})),S.push(h.on("one_click_suggestion_panel",(...I)=>{const w=I[0];U.getState().addOneClickSuggestionPanelMessage({...w,laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path}),u.current("oneClickSuggestionPanel",w.component.componentId,w.message_id)})),S.push(h.on("category_carousel_complete",(...I)=>{const w=I[0];U.getState().setWaitingForFirstToken(!1),U.getState().addCategoryCarouselMessage({...w,laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path}),u.current("categoryCarousel",w.component.componentId,w.message_id)})),S.push(h.on("exploration_carousel",(...I)=>{const w=I[0];U.getState().setWaitingForFirstToken(!1);const C=tP(w.component,w.message_id);C.laneId=w.emission_group_id_path?.[0],C.groupPath=w.emission_group_id_path,U.getState().addExplorationCarouselMessage(C),u.current("explorationCarousel",w.component.componentId,w.message_id)})),S.push(h.on("structured_question_loading",(...I)=>{const w=I[0];U.getState().setWaitingForFirstToken(!1);const C=Fce(w.component.componentId,w.message_id);C.laneId=w.emission_group_id_path?.[0],C.groupPath=w.emission_group_id_path,U.getState().startStructuredQuestionLoading(C)})),S.push(h.on("structured_question_block",(...I)=>{const w=I[0];U.getState().setWaitingForFirstToken(!1);const C=KI(w.component,w.message_id);C.laneId=w.emission_group_id_path?.[0],C.groupPath=w.emission_group_id_path,U.getState().addStructuredQuestionBlockMessage(C),u.current("structuredQuestionBlock",w.component.componentId,w.message_id)})),S.push(h.on("structured_question_error",(...I)=>{const w=I[0];U.getState().removeStructuredQuestionBlock(w.component.componentId)})),S.push(h.on("reasoning_block",(...I)=>{const w=I[0];w?.component&&(U.getState().setWaitingForFirstToken(!1),U.getState().addReasoningBlockMessage({...w,laneId:w.emission_group_id_path?.[0],groupPath:w.emission_group_id_path}),u.current("reasoningBlock",w.component.componentId,w.message_id))})),S.push(h.on("code_block_generation_start",(...I)=>{const w=I[0],C=w?.code_block_id,E=w?.emission_group_id_path;!C||!E||E.length===0||U.getState().startCodeBlockStatus({code_block_id:C,emission_group_id_path:E,message_id:w.message_id})})),S.push(h.on("code_block_execution_end",(...I)=>{const C=I[0]?.code_block_id;C&&U.getState().endCodeBlockStatus(C)})),S.push(h.on("code_block_user_facing_update",(...I)=>{const w=I[0],C=w?.component?.codeBlockUserFacingUpdatePhrases?.messages,E=w?.emission_group_id_path?.[0]??w?.code_block_id;!E||!C?.length||U.getState().setCodeBlockPhrases(E,C)})),S.push(h.on("turn_end",()=>{h.clearSendState(),U.getState().clearStatusUpdates(),U.getState().clearLoadingStructuredQuestionBlocks(),U.getState().clearCodeBlockPhrases()})),S.push(h.on("chat_error",(...I)=>{const w=I[0];h.clearSendState();const C=w?.error_message||w?.error||"Something went wrong. Please try again.",E=w?.error_action_url||w?.error_action_label?{url:w?.error_action_url,label:w?.error_action_label}:void 0;U.getState().setChatError(C,E),U.getState().clearLoadingStructuredQuestionBlocks(),pt({error:new Error(C),source:"chatContext.chat_error",metadata:{payload:w}},{showToast:!1})}
72)),()=>S.forEach(I=>I())},[h]);const m=k.useRef(void 0);k.useEffect(()=>{const S=m.current;m.current=e;const I=S&&e&&S.userId!==e.userId;return(e===null||I)&&(h.disconnect(),h.clearSendState()),()=>{h.clearSendState(),h.disconnect()}},[e,h]),k.useEffect(()=>{if(xt()){if(r)return AS.keepAwake().catch(()=>{}),()=>{AS.allowSleep().catch(()=>{})};AS.allowSleep().catch(()=>{})}},[r]);const g=k.useCallback(async(S,I)=>{if(i.current){console.warn("[sendUserMessage] Send already in progress, ignoring duplicate request");return}i.current=!0;try{const w=Sv(),C=Kce(w),E=C?U.getState().referrerChatId:null,A=U.getState().landingPageInfo;await Yoe(aue),E&&!U.getState().referrerChatId&&U.getState().setReferrerChatId(E),A&&!U.getState().landingPageInfo&&U.getState().setLandingPageInfo(A),U.getState().clearChatError(),be.getState().markVisitComplete(),U.getState().setAssistantInProgress(!0),Fe.getState().setHasCarouselBeenUpdatedOnceForTurn(!1),Fe.getState().setCarouselStartedThisTurn(!1),Fe.getState().setTurnRightPanelCarouselKey(null),Ja.getState().startNewTurn();const _=S?.trim()||"",R=U.getState().multipleChoiceAnswers,L=kn.getState(),j=qce(R)||j5(L.answersByBlock,L.writeInsByBlock),O=Mc.getState().images,F=I??Xce(Vc.getState().focusedProduct,Qr.getState().getSelectedCards());if(n&&lR(),!Wce({text:_,hasMCQAnswers:j,imageCount:O.length,selectedCardCount:F.length})){h.clearSendState();return}const D=U.getState().multipleChoiceQuestions,H=Gce(U.getState().messages,L.answersByBlock,L.writeInsByBlock),Y=[...Vce(R,D)??[],...H],K=Y.length>0?Y:void 0,z=Bce(_,F,O,K),q={...z,imageDataUrls:[]};U.getState().addMessage(q),U.getState().setWaitingForFirstToken(!0);const $=U.getState().chatId;let ue=$;const ge=Uce({isReferrerPath:C,existingChatId:$,savedReferrerChatId:E});if(ue)hn.getState().moveChatToTop(ue);else{ue=$t(),U.getState().setChatId(ue),U.setState({shouldSkipTranscriptFetch:!0});const ae=e?.userId||be.getState().userId||void 0;oce()&&A5.isChatGptWelcomeBannerShown(ae)&&U.getState().setShowChatGptWelcome(!0);const de=Yce(z.text);hn.getState().addHistoryItem(de,ue)}const M=await Ht(!0);h.setAuthToken(M);const Z=z.images?.length?sue(await dce(z.images)):void 0,te=e?.userId||be.getState().userId||void 0,B=A5.getExperimentChatRequestParam
72s(te),N={...q};if(z.images?.length){N.imageDataUrls=await Rv(z.images);const ae=U.getState().messages;U.getState().setMessages(ae.map(de=>de.messageId===z.messageId?N:de))}const le=Hce({userMessage:N,origin:window.location.origin,chatId:ue,userId:te??"anonymous",queryImages:Z,referrerChatId:ge?E:void 0,experimentParams:B,useAgenticChatV2:!!e?.userId&&!e?.isGuest&&U.getState().agenticChatV2,memoryProfileId:ws.getState().profileIdForSend()});U.getState().setPendingWirePayload(le),h.emit("chat",le.chatMessageRequest),s(z.messageId,ue),U.getState().clearMultipleChoiceData(),kn.getState().clearStructuredAnswers(),Mc.getState().clearImages(),Qr.getState().clearSelectedCards(),Qr.getState().disableSelectionMode()}catch(w){h.clearSendState(),U.getState().setChatError(aR(w))}},[e,h,s,n]),y=k.useCallback(async S=>{if(i.current){console.warn("[resendUserMessage] Send already in progress, ignoring duplicate request");return}i.current=!0;try{U.getState().clearChatError(),U.getState().setAssistantInProgress(!0),Fe.getState().setHasCarouselBeenUpdatedOnceForTurn(!1),Fe.getState().setCarouselStartedThisTurn(!1),Fe.getState().setTurnRightPanelCarouselKey(null),Ja.getState().startNewTurn();const I=await Ht(!0);h.setAuthToken(I);const w=U.getState().chatId;if(!w)throw new Error("No chatId available for resend");S.chatMessageRequest.chatId!==w&&console.warn("[resendUserMessage] store chatId !== wire chatId",{storeChatId:w,wireChatId:S.chatMessageRequest.chatId});const E=U.getState().messages.slice(0,-1);U.getState().setMessages(E);const{userMessage:A}=S;n&&lR(),U.getState().addMessage(A),U.getState().setWaitingForFirstToken(!0),hn.getState().moveChatToTop(w),U.getState().setPendingWirePayload(S),h.emit("chat",S.chatMessageRequest),s(A.messageId,w)}catch(I){h.clearSendState(),U.getState().setChatError(aR(I))}},[e,h,s,n]),b=k.useCallback(S=>{h.emit("rerank_carousel",S)},[h]);return k.useEffect(()=>{const S=Ji.getState();return S.setSendUserMessage(g),S.setResendUserMessage(y),S.setRerankFunction(b),S.setCancelActiveTurn(()=>{h.disconnect(),h.clearSendState()}),()=>{const I=Ji.getState();I.setSendUserMessage(null),I.setResendUserMessage(null),I.setRerankFunction(null),I.setCancelActiveTurn(null)}},[g,y,b,h]),c.jsx(c.Fragment,{children:t})}const A1="share_",lue="The person who shared this chat with you has stopped sharing it.";function aP(e){return e.startsWith(A1)?e:`${A1}${e}`}function cue(e){return e.startsWith(A1)?e.slice(A1.length):e}function _1(e){return`https://tonita.co/share/${cue(e)}`}function sP(e){return new Date(e*1e3).toLocaleDateString(void 0,{month:"long",day:"numeric",year:"numeric"})}function uue(e){const t=e.find(r=>r.role==="ASSISTANT"&&r.type==="carousel");if(!t)return;const n=new Map;for(const r of t.cards??[])n.set(r.listingId,r);Gn.getState().setFavorites(n)}class jv{static async fetchSharedSnapshot(t){try{const n=aP(t),r=be.getState().userId;if(!r)throw new Error("No authenticated user found");const s={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":r,"user-chat-id":n,...Sn()},u=(await Tn.post("https://api.tonita.co/chat/get-transcript",{chat_id:n,client_wire_version:Vy},{headers:s})).data;if(u.errorType==="SHARED_SNAPSHOT_REVOKED")return{status:"revoked"};if(u.errorType==="CLIENT_TOO_STALE")return mo.getState().addToast(u.errorMessage??"Please update the Tonita app to view this chat.","error"),{status:"error"};if(u.errorType==="CHAT_DOES_NOT_EXIST"||u.errorType==="CHAT_NOT_FOUND"||u.errorType==="TRANSCRIPT_NOT_FOUND")return{status:"not_found"};if(u.errorType)return{status:"error"};const d=u.transcript;return d?.messages?.length?{status:"ok",messages:ep(d.messages),snapshotChatId:n}:{status:"not_found"}}catch(n){return pt({error:n,source:"FetchTranscriptService.fetchSharedSnapshot"}),{status:"error"}}}static async fetchTranscript(t){try{const n=Ai.getState().getCachedTranscript(t);if(n)return U.getState().setMessages(n.messages),U.getState().setChatId(t),n.isShared&&n.snapshotChatId?U.getState().markAsShared(n.snapshotChatId,0):U.getState().markAsNotShared(),U.getState().setTranscriptLoadedFromHistory(n.messages.length>0),be.getState().markVisitComplete(),!0;U.getState().markAsNotShared();const r=be.getState().userId;if(!r)throw new Error("No authenticated user found");
72const i=await Ht(),s=U.getState().chatId,l={"Content-Type":"application/json",Authorization:`Bearer ${i}`,"user-uuid":r,"user-chat-id":t,...Sn()};s&&(l["user-chat-id"]=s);const d=(await Tn.post("https://api.tonita.co/chat/get-transcript",{chat_id:t,client_wire_version:Vy},{headers:l})).data;if(d.errorType){if(d.errorType==="CHAT_NOT_FOUND"||d.errorType==="TRANSCRIPT_NOT_FOUND")return U.getState().setMessages([]),U.getState().setChatId(t),Ai.getState().cacheTranscript(t,[]),!0;if(d.errorType==="CLIENT_TOO_STALE")return mo.getState().addToast(d.errorMessage??"Please update the Tonita app to view this chat.","error"),!1;throw new Error(`Error fetching transcript: ${d.errorType}`)}if(!d.transcript)return U.getState().setMessages([]),U.getState().setChatId(t),Ai.getState().cacheTranscript(t,[]),!0;const h=d.transcript;if(!h.messages||h.messages.length===0)return U.getState().setMessages([]),U.getState().setChatId(t),Ai.getState().cacheTranscript(t,[]),!0;const m=ep(h.messages);U.getState().setMessages(m),U.getState().setChatId(t);const g=d.sharedSnapshotInfo,y=g?.snapshotChatId&&g.revokedAtEpochS==null?g.snapshotChatId:null;return Ai.getState().cacheTranscript(t,m,y),y&&U.getState().markAsShared(y,g?.updatedAtEpochS??0),U.getState().setTranscriptLoadedFromHistory(m.length>0),be.getState().markVisitComplete(),!0}catch(n){return pt({error:n,source:"FetchTranscriptService.fetchTranscript"},{toastMessage:"Failed to load chat. Please refresh the page."}),!1}}static async fetchFavoritesViewTranscript(){const t=rP;try{Ai.getState().removeCachedTranscript(t);const n=be.getState().userId;if(!n)throw new Error("No authenticated user found");const i={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":n,"user-chat-id":t,...Sn()},l=(await Tn.post("https://api.tonita.co/chat/get-transcript",{chat_id:t,client_wire_version:Vy},{headers:i})).data;if(l.errorType==="CLIENT_TOO_STALE")return mo.getState().addToast(l.errorMessage??"Please update the Tonita app to view your favorites.","error"),!1;if(l.errorType)throw new Error(`Error fetching favorites transcript: ${l.errorType}`);if(!l.transcript?.messages||l.transcript.messages.length===0)throw new Error("Favorites transcript was empty");const u=ep(l.transcript.messages);return U.getState().setMessages(u),uue(u),be.getState().markVisitComplete(),!0}catch(n){return pt({error:n,source:"FetchTranscriptService.fetchFavoritesViewTranscript"},{toastMessage:"Failed to load favorites. Please try again."}),!1}}static async fetchRecentlyInteractedTranscript(t){try{const n=Ai.getState().getCachedTranscript(t);if(n)return U.getState().setMessages(n.messages),U.getState().setChatId(t),be.getState().markVisitComplete(),!0;const i=bn.getState().getRecentlyInteractedListings();if(i.length===0)return U.getState().setMessages([]),U.getState().setChatId(t),Ai.getState().cacheTranscript(t,[]),!0;const s={messages:[{role:"USER",messageId:"recently-interacted-user-msg",text:"Show me my recently viewed items"},{role:"ASSISTANT",messageId:"recently-interacted-assistant-msg",components:[{componentId:`recently-interacted-text-pre-${t}`,text:{text:`Here are the ${i.length} item${i.length===1?"":"s"} you've recently interacted with.`}},{componentId:`recently-interacted-carousel-${t}`,carousel:{title:`Recently Viewed (${i.length})`,cards:i.filter(u=>u.originalListing).map(u=>u.originalListing)}},{componentId:`recently-interacted-text-post-${t}`,text:{text:`**What you can do with recently viewed items:** 73 74⢠**View full details** - Click on any item to see complete information including all photos, pricing details, features, and location 75 76⢠**Save favorites** - Tap the heart icon on items you love to save them to your favorites collection 77 78⢠**Visit product pages** - Click on any item to go directly to the seller's website 79 80**Note:** This is a read-only view of your recently interacted items. To search for similar products or ask questions, start a new chat from the home page.`}}]}]},l=ep(s.messages);return U.getState().setMessages(l),U.getState().setChatId(t),Ai.getState().cacheTranscript(t,l),be.getState().markVisitComplete(),!0}catch(n){return pt({error:n,source:"FetchTranscriptService.fetchRecentlyInteractedTranscript"},{toastMessage:"Sorry, we couldn't load your recently viewed items. Please try again later."}),!1}}static clearChat(){$a()}}function due(e){const t=new URLSearchParams(e);return t.get("q")||t.get("query")||null}function fue(e){const{isFirstVisit:t,messagesLength:n,search:r}=e,i=due(r)!==null;return t===!0&&n===0&&!i}function oP(e){const{isFirstVisit:t,messagesLength:n,search:r}=e;return fue({isFirstVisit:t,messagesLength:n,search:r})?"welcome":e.authLoading||e.isLoadingTranscript?"pending":"chat"}const XI=({replace:e,...t})=>{const n=gu()?!1:e??!1;return c.jsx(Oj,{...t,replace:n})},hue=k.createContext(null);function pue(){return k.useContext(hue)}const Aa=({children:e,container:t})=>{const n=pue();return J1.createPortal(e,t??n??document.body)},mue={overlay:(e,t,n,r)=>({position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:r,backdropFilter:`blur(${e}px)`,backgroundColor:`rgba(0, 0, 0, ${t})`,pointerEvents:n?"none":"auto"})},yu=({isOpen:e,onClose:t,children:n,closeOnOverlayClick:r=!0,closeOnEscape:i=!0,freezeBackgroun
80d:s=!0,blurIntensity:l=6,overlayOpacity:u=.3,allowPointerEvents:d=!1,overlayZIndex:h=1400,allowTouchActions:m=!1,keepMounted:g=!1})=>{const y=S=>{r&&S.target===S.currentTarget&&t&&t()};if(k.useEffect(()=>{if(!e||!i||!t)return;const S=I=>{I.key==="Escape"&&t()};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[e,i,t]),k.useEffect(()=>{if(e&&s){const S=document.body.style.overflow,I=document.body.style.userSelect,w=document.body.style.touchAction;return document.body.style.overflow="hidden",document.body.style.userSelect="none",m||(document.body.style.touchAction="none"),m||(document.body.style.touchAction="none"),()=>{document.body.style.overflow=S,document.body.style.userSelect=I,document.body.style.touchAction=w}}},[e,s,m]),!e&&!g)return null;const b=mue.overlay(l,u,d,h);return!e&&g&&(b.pointerEvents="none"),c.jsx(Aa,{children:c.jsx("div",{style:b,onClick:y,"data-modal-overlay":"true",children:n})})};class z0{static async upsertChatShare(t){const n=be.getState().userId;if(!n)throw new Error("No authenticated user found");const i={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":n,"user-chat-id":t,...Sn()};return(await Tn.post("https://api.tonita.co/chat/share/upsert",{chat_id:t},{headers:i})).data.sharedSnapshotInfo}static async revokeChatShare(t){const n=be.getState().userId;if(!n)throw new Error("No authenticated user found");const i={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":n,"user-chat-id":t,...Sn()};await Tn.post("https://api.tonita.co/chat/share/revoke",{chat_id:t},{headers:i})}}class Is{static async shareChat(){try{const t=U.getState().chatId;if(!t)throw new Error("No chat ID found");const n=await z0.upsertChatShare(t),r=n.updatedAtEpochS??Math.floor(Date.now()/1e3);return U.getState().markAsShared(n.snapshotChatId,r),Ai.getState().updateCachedTranscriptShareStatus(t,!0,n.snapshotChatId),_1(n.snapshotChatId)}catch(t){return pt({error:t,source:"ShareService.shareChat"},{toastMessage:"Failed to share chat. Please try again."}),null}}static async shareChatById(t){try{const n=await z0.upsertChatShare(t);return Ai.getState().updateCachedTranscriptShareStatus(t,!0,n.snapshotChatId),_1(n.snapshotChatId)}catch(n){return pt({error:n,source:"ShareService.shareChatById"},{toastMessage:"Failed to share chat. Please try again."}),null}}static async updateShare(){try{const t=U.getState().chatId,n=U.getState().snapshotChatId;if(!t||!n)throw new Error("updateShare called with no active share");const r=await z0.upsertChatShare(t),i=r.updatedAtEpochS??Math.floor(Date.now()/1e3);return U.getState().markAsShared(r.snapshotChatId,i),Ai.getState().updateCachedTranscriptShareStatus(t,!0,r.snapshotChatId),!0}catch(t){return pt({error:t,source:"ShareService.updateShare"},{toastMessage:"Failed to update share. Please try again."}),!1}}static async revokeShare(){try{const t=U.getState().chatId;if(!t)throw new Error("revokeShare called with no chat");return await z0.revokeChatShare(t),U.getState().markAsNotShared(),Ai.getState().updateCachedTranscriptShareStatus(t,!1,null),!0}catch(t){return pt({error:t,source:"ShareService.revokeShare"},{toastMessage:"Failed to stop sharing. Please try again."}),!1}}}async function gue(e){try{if(typeof navigator<"u"&&typeof navigator.clipboard?.writeText=="function")await navigator.clipboard.writeText(e);else if(typeof document<"u"&&document.body!=null){const r=document.createElement("textarea");r.value=e,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r)}else throw new Error("No clipboard or document");return!0}catch{return!1}}async function Om(e){const{addToast:t}=mo.getState();if(typeof navigator<"u"&&typeof navigator.share=="function")try{return await navigator.share({url:e.url}),"shared"}catch(r){if(r instanceof Error&&r.name==="AbortError")return"cancelled"}return await gue(e.url)?(t("Link copied to clipboard","success",2500),"copied"):(t("Could not share link","error"),"failed")}function lP(){const e=Pt(),t=U(O=>O.isShared),n=U(O=>
80O.snapshotChatId),r=U(O=>O.snapshotUpdatedAtEpochS),i=U(O=>O.chatId),s=U(O=>O.messages.length),l=U(O=>O.assistantInProgress),u=YI(e.pathname)&&s>0&&!!i,[d,h]=k.useState(!1),[m,g]=k.useState(!1),[y,b]=k.useState(!1),[S,I]=k.useState(!1),w=n!=null?_1(n):null,C=y||S,E=m?"minting":t?"already-shared":"never-shared",A=k.useCallback(async()=>{if(l||m)return;if(t&&w){h(!0);return}g(!0);const O=await Is.shareChat();g(!1),O&&await Om({url:O})},[l,m,t,w]),_=k.useCallback(()=>h(!1),[]),R=k.useCallback(()=>{setTimeout(()=>h(!1),1200)},[]),L=k.useCallback(async()=>{b(!0),await Is.updateShare(),b(!1),h(!1)},[]),j=k.useCallback(async()=>{I(!0),await Is.revokeShare(),I(!1),h(!1)},[]);return{mode:E,isShared:t,assistantInProgress:l,hasShareableChat:u,updating:y,revoking:S,busy:C,shareUrl:w,snapshotUpdatedAtEpochS:r,isManageOpen:d,handleShareTap:A,closeManage:_,handleCopy:R,handleUpdate:L,handleRevoke:j}}const Ov=({isOpen:e,onClose:t,onConfirm:n,title:r,message:i,confirmLabel:s="Confirm",cancelLabel:l="Cancel",variant:u="default"})=>{const{colors:d,isDark:h}=ze(),[m,g]=k.useState(!1),y=async()=>{g(!0);try{await n()}finally{g(!1)}},b=u==="destructive",S={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 2rem)",maxWidth:"400px",padding:"1.5rem",borderRadius:"var(--radius-large, 0.75rem)",background:d.backgroundSecondary,boxShadow:h?"0 8px 32px rgba(0, 0, 0, 0.5)":"0 8px 32px rgba(0, 0, 0, 0.15)",border:`1px solid ${d.borderLight}`},I={margin:0,marginBottom:"0.75rem",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-medium, 1.125rem)",fontWeight:"var(--weight-semibold, 600)",color:d.text,lineHeight:"var(--line-height-large, 1.5rem)"},w={margin:0,marginBottom:"1.5rem",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontWeight:"var(--weight-regular, 400)",color:d.textSecondary,lineHeight:"var(--line-height-small, 1.25rem)"},C={display:"flex",justifyContent:"flex-end",gap:"0.75rem"},E={padding:"0.625rem 1rem",borderRadius:"var(--radius-medium, 0.5rem)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontWeight:"var(--weight-medium, 500)",lineHeight:"var(--line-height-x-small, 1.125rem)",cursor:m?"wait":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",border:"none"},A={...E,background:"transparent",color:d.textSecondary,border:`1px solid ${d.borderLight}`},_={...E,background:b?"#EF4444":d.buttonBackground,color:b?"#FFFFFF":d.buttonText,opacity:m?.7:1};return c.jsx(yu,{isOpen:e,onClose:t,closeOnOverlayClick:!m,closeOnEscape:!m,overlayZIndex:1800,blurIntensity:4,overlayOpacity:.4,children:c.jsxs("div",{style:S,role:"alertdialog","aria-modal":"true","aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-message",children:[c.jsx("h2",{id:"confirmation-dialog-title",style:I,children:r}),c.jsx("p",{id:"confirmation-dialog-message",style:w,children:i}),c.jsxs("div",{style:C,children:[c.jsx("button",{type:"button",style:A,onClick:t,disabled:m,onMouseEnter:R=>{m||(R.currentTarget.style.backgroundColor=h?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.04)")},onMouseLeave:R=>{R.currentTarget.style.backgroundColor="transparent"},children:l}),c.jsx("button",{type:"button",style:_,onClick:y,disabled:m,onMouseEnter:R=>{m||(R.currentTarget.style.backgroundColor=b?"#DC2626":d.buttonHover)},onMouseLeave:R=>{R.currentTarget.style.backgroundColor=b?"#EF4444":d.buttonBackground},children:m?"Please wait...":s})]})]})})},cP="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10%205C10.8284%205%2011.5%204.32843%2011.5%203.5C11.5%202.67157%2010.8284%202%2010%202C9.17157%202%208.5%202.67157%208.5%203.5C8.5%204.32843%209.17157%205%2010%205ZM10%2011.5C10.8284%2011.5%2011.5%2010.8284%2011.5%2010C11.5%209.17157%2010.8284%208.5%2010%208.5C9.17157%208.5%208.5%209.17157%208.5%2010C8.5%2010.8284%209.17157%2011.5%2010%2011.5ZM10%2018C10.8284%2018%2011.5%2017.3284%2011.5%2016.5C11.5%2015.6716%2010.8284%2015%2010%2015C9.17157%2015%208.5%2015.6716%208.5%2016.5C8.5%2017.3284%209.17157%2018%2010%2018Z'
80%20fill='%2327272F'/%3e%3c/svg%3e",Lm="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.5%204.98332C14.725%204.70832%2011.9333%204.56665%209.15%204.56665C7.5%204.56665%205.85%204.64998%204.2%204.81665L2.5%204.98332'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.08331%204.14167L7.26665%203.05C7.39998%202.25833%207.49998%201.66667%208.90831%201.66667H11.0916C12.5%201.66667%2012.6083%202.29167%2012.7333%203.05833L12.9166%204.14167'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.7084%207.61667L15.1667%2016.0083C15.075%2017.3167%2015%2018.3333%2012.675%2018.3333H7.32502C5.00002%2018.3333%204.92502%2017.3167%204.83335%2016.0083L4.29169%207.61667'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.60834%2013.75H11.3833'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.91669%2010.4167H12.0834'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",sf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M17.2501%2010.5071C17.6643%2010.5071%2018.0001%2010.8429%2018.0001%2011.2571V16.2483C17.9996%2017.4906%2016.9924%2018.4983%2015.7501%2018.4983H4.25006C3.0013%2018.4982%201.99127%2017.4804%202.00006%2016.2317V11.2532C2.00341%2010.8394%202.34104%2010.5062%202.75494%2010.5091C3.16906%2010.5121%203.50294%2010.8509%203.50006%2011.2649V16.2425C3.49728%2016.6585%203.83396%2016.9982%204.25006%2016.9983H15.7501C16.164%2016.9983%2016.4996%2016.6622%2016.5001%2016.2483V11.2571C16.5001%2010.843%2016.8359%2010.5072%2017.2501%2010.5071ZM9.11627%201.86751C9.6044%201.37945%2010.3957%201.37945%2010.8838%201.86751L14.2481%205.23176C14.5409%205.52464%2014.5409%205.99943%2014.2481%206.2923C13.9552%206.58511%2013.4804%206.5851%2013.1876%206.2923L10.7501%203.85481V12.7493C10.7499%2013.1634%2010.4142%2013.4993%2010.0001%2013.4993C9.58591%2013.4993%209.25017%2013.1634%209.25006%2012.7493V3.85481L6.81256%206.2923C6.51968%206.58511%206.04489%206.5851%205.75201%206.2923C5.45918%205.99942%205.45919%205.52464%205.75201%205.23176L9.11627%201.86751Z'%20fill='%2327272F'/%3e%3c/svg%3e",uP=180,yue=e=>{if(!e)return 0;const t=e.right-uP;return t<8?e.left:t},cR=({chatId:e,onOpenChange:t,isOpenControlled:n,hideTrigger:r=!1,anchorRef:i,isActiveChat:s=!1,onShareTap:l,onManageShareTap:u})=>{const{colors:d,isDark:h}=ze();We();const m=Bt();Pt();const g=hn(te=>te.removeHistoryItem),y=U(te=>te.isShared),[b,S]=k.useState(!1),[I,w]=k.useState(!1),[C,E]=k.useState(!1),A=k.useRef(null),_=k.useRef(null),R=n!==void 0?n:b,L=te=>{S(te),t?.(te)};k.useEffect(()=>{if(!R)return;const te=N=>{_.current?.contains(N.target)||A.current?.contains(N.target)||(L(!1),t?.(!1))},B=()=>{L(!1),t?.(!1)};return document.addEventListener("mousedown",te),document.addEventListener("scroll",B,!0),()=>{document.removeEventListener("mousedown",te),document.removeEventListener("scroll",B,!0)}},[R,t]);const j=te=>{te.stopPropagation(),L(!R)},O=te=>{te.stopPropagation(),L(!1),t?.(!1),s&&y?u?.():l?.()},F=te=>{te.stopPropagation(),L(!1),t?.(!1),E(!0)},D=async()=>{try{await NI.deleteChats([e]),g(e),E(!1),U.getState().chatId===e&&($a(),An.getState().close(),m("/home"))}catch(te){E(!1),pt({error:te,source:"ChatHistoryMoreOptions.handleDelete",chatId:e},{toastMessage:"Could not remove chat. Please try again."})}},H={backgroundColor:I?h?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.04)":"transparent",border:"none",borderRadius:"0.375rem",width:"28px",height:"28px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.15s ease",flexShrink:0},V=A.current?.getBoundingClientRect()||null,Y=i?.current?.getBoundingClientRect()||null,K=V||Y,z={display:"flex",flexDirection:"column",width:`${uP}px`,padding:"0.5rem",position:"fixed",top:K?K.bottom+4:"50%",left:K?yue(K):"50%",...K?{}:{transform:"translate(-50%, -50%)"},borderRadius:"0.75rem",overflow:"hidden",background:d.backgroundSecondary,boxShadow:h?"0 4px 16px rgba(0, 0, 0, 0.4)":"0 4px 16px rgba(0, 0, 0, 0.12)",zIndex:"var(--z-index-chat-history-more-menu, 1700)",border:`1px solid ${d.borderLight}`},q={display:"flex",alignItems:"center",gap:"0.5rem",padding:"0.5rem 0.75rem",borderRadius:"0.375rem",border:"none",background:"transparent",curs
80or:"pointer",width:"100%",textAlign:"left",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.875rem",color:d.text,transition:"background-color 0.15s ease"},$={...q,color:"#EF4444"},ue={width:"1rem",height:"1rem",filter:d.iconFilter,flexShrink:0},ge={width:"1rem",height:"1rem",filter:"invert(36%) sepia(76%) saturate(2291%) hue-rotate(336deg) brightness(93%) contrast(93%)",flexShrink:0},M=h?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)",Z=h?"rgba(239, 68, 68, 0.1)":"rgba(239, 68, 68, 0.08)";return c.jsxs("div",{style:{position:"relative"},onClick:te=>te.stopPropagation(),children:[!r&&c.jsx("button",{ref:A,type:"button",style:H,onClick:j,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),"aria-label":"More options","aria-expanded":R,children:c.jsx("img",{src:cP,alt:"",style:{width:"1rem",height:"1rem",filter:d.iconFilter}})}),R&&c.jsx(Aa,{children:c.jsxs("div",{ref:_,role:"menu",style:z,onClick:te=>{te.stopPropagation(),te.nativeEvent.stopImmediatePropagation()},onMouseDown:te=>{te.stopPropagation(),te.nativeEvent.stopImmediatePropagation()},children:[c.jsxs("button",{type:"button",role:"menuitem",style:q,onClick:O,onMouseEnter:te=>te.currentTarget.style.backgroundColor=M,onMouseLeave:te=>te.currentTarget.style.backgroundColor="transparent",children:[c.jsx("img",{src:sf,alt:"",style:ue}),c.jsx("span",{children:s&&y?"Shared":"Share"})]}),c.jsxs("button",{type:"button",role:"menuitem",style:$,onClick:F,onMouseEnter:te=>te.currentTarget.style.backgroundColor=Z,onMouseLeave:te=>te.currentTarget.style.backgroundColor="transparent",children:[c.jsx("img",{src:Lm,alt:"",style:ge}),c.jsx("span",{children:"Delete"})]})]})}),c.jsx(Ov,{isOpen:C,onClose:()=>E(!1),onConfirm:D,title:"Remove chat",message:"This chat will be removed from your history. You won't be able to access it anymore.",confirmLabel:"Remove",cancelLabel:"Cancel",variant:"destructive"})]})},vue=2e3;function Lv(e){const[t,n]=G.useState(!1),r=G.useRef(null);G.useEffect(()=>()=>{r.current!==null&&clearTimeout(r.current)},[]);const i=G.useCallback(async()=>{let s=!1;try{await navigator.clipboard.writeText(e),s=!0}catch{const l=document.createElement("textarea");l.value=e,l.style.position="fixed",l.style.opacity="0",document.body.appendChild(l);try{l.select(),s=document.execCommand("copy")}finally{document.body.removeChild(l)}}s&&(n(!0),r.current!==null&&clearTimeout(r.current),r.current=setTimeout(()=>n(!1),vue))},[e]);return{copied:t,copy:i}}const dP="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M13.7248%205C14.4285%205.00022%2014.9992%205.57073%2014.9992%206.27446L14.9992%2014.4134C14.9992%2014.8356%2014.6567%2015.1779%2014.2346%2015.1781C13.8123%2015.1781%2013.47%2014.8357%2013.47%2014.4134L13.47%207.60966C9.10952%2011.9704%2010.2632%2010.8173%205.90277%2015.1781C5.60419%2015.4766%205.12012%2015.4766%204.82155%2015.1781C4.52299%2014.8795%204.52306%2014.3954%204.82155%2014.0968L12.3878%206.52935L5.58666%206.52935C5.16437%206.52935%204.82204%206.187%204.82204%205.76468C4.82204%205.34236%205.16437%205%205.58666%205L13.7248%205Z'%20fill='%2327272F'/%3e%3c/svg%3e",Dm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M17.7442%209.16279C17.7442%208.58482%2017.2756%208.11628%2016.6977%208.11628H9.16279C8.58482%208.11628%208.11628%208.58482%208.11628%209.16279V16.6977C8.11628%2017.2756%208.58482%2017.7442%209.16279%2017.7442H16.6977C17.2756%2017.7442%2017.7442%2017.2756%2017.7442%2016.6977V9.16279ZM11.8837%204.13953V3.30233C11.8837%203.02477%2011.7734%202.75867%2011.5771%202.56241C11.3809%202.36615%2011.1148%202.25581%2010.8372%202.25581H3.30233C3.02477%202.25581%202.75867%202.36615%202.56241%202.56241C2.36615%202.75867%202.25581%203.02477%202.25581%203.30233V10.8372C2.25581%2011.1148%202.36615%2011.3809%202.56241%2011.5771C2.75867%2011.7734%203.02477%2011.8837%203.30233%2011.8837H4.13953C4.48632%2011.8837%204.76744%2012.1648%204.76744%2012.5116C4.76744%2012.8584%204.48632%2013.1395%204.13953%2013.1395H3.30233C2.69171%2013.1395%202.10628%2012.8968%201.67451%2012.465C1.24274%2012.0333%201%2011.4478%201%2010.8372V3.30233C1%202.69171%201.24274%202.10628%201.67451%201.67451C2.10628%201.24274%202.69171%201%203.30233%201H10.8372C11.4478%201%2012.0333%201.24274%2012.465%201.67451C12.8968%202.10628%2013.1395%202.69171%2013.1395%203.30233V4.13953C13.1395%204.48632%2012.8584%204.76744%2012.5116%204.76744C12.1648%204.76744%2011.8837%204.48632%2011.8837%204.13953ZM19%2016.6977C19%2017.9692%2017.9692%2019%2016.6977%2019H9.16279C7.89125%2019%206.86047%2017.9692%206.86047%2016.6977V9.16279C6.86047%207.89125%207.89125%206.86047%209.16279%206.86047H16.6977C17.9692%206.86047%2019%207.89125%2019%209.16279V16.6977Z'%20fill='%2327272F'/%3e%3c/svg%3e",gl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3ccircle%20cx='10'%20cy='10'%20r='8'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-dasharray='50.26548'%20stroke-dashoffset='50.26548'%20fill='none'%20opacity='0.3'%20/%3e%3ccircle%20cx='10'%20cy='10'%20r='8'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-dasharray='12.566'%20stroke-dashoffset='0'%20fill='none'%20/%3e%3c/svg%3e",JI="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%201L9%204H7V8H5V4H3L6%201Z'%20fill='%2327272F'%20/%3e%3cpath%20d='M2%209V10C2%2010.5523%202.44772%2011%203%2011H9C9.55228%2011%2010%2010.5523%2010%2010V9'%20stroke='%2327272F'%20stroke-width='1'%20stroke-linecap='round'%20/%3e%3c/svg%3e",Dt=(e,t="medium",n={})=>{let r="1.25rem",i="1.25rem";return t==="small"?(r="1rem",i="1rem"):t==="large"?(r="1.5rem",i="1.5rem"):typeof t=="string"&&t!=="medium"&&(r=t,i=t),{width:r,height:i,aspectRatio:"1/1",flexShrink:0,...n,filter:e,transition:"filter 0.3s ease"}};function bue(){const e=Pt(),t=U(R=>R.assistantInProgress),n=U(R=>R.isShared),r=U(R=>R.snapshotChatId),i=U(R=>
80R.snapshotUpdatedAtEpochS),s=U(R=>R.messages.length),l=U(R=>R.chatId),u=YI(e.pathname)&&s>0&&!!l,[d,h]=k.useState(null),[m,g]=k.useState("just-shared"),[y,b]=k.useState(!1),S=r!=null?_1(r):null,I=y?"minting":n?"already-shared":"never-shared",w=m==="already-shared"?i:null,C=k.useCallback(async R=>{if(R.preventDefault(),R.stopPropagation(),t||y)return;if(n&&S){h(S),g("already-shared");return}b(!0);const L=await Is.shareChat();b(!1),L&&(h(L),g("just-shared"))},[t,y,n,S]),E=k.useCallback(()=>{h(null)},[]),A=k.useCallback(async()=>{await Is.updateShare()},[]),_=k.useCallback(async()=>{await Is.revokeShare()},[]);return{mode:I,dialogMode:m,hasShareableChat:u,assistantInProgress:t,isShared:n,dialogShareUrl:d,dialogUpdatedAtEpochS:w,handlePillClick:C,closeDialog:E,handleUpdate:A,handleRevoke:_}}const ZI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M14.7205%200.219351C15.0132%20-0.0729661%2015.4879%20-0.0731053%2015.7805%200.219351C16.073%200.511989%2016.0728%200.986653%2015.7805%201.2794L9.06004%207.99986L15.7805%2014.7203L15.8322%2014.7769C16.0721%2015.0713%2016.0546%2015.506%2015.7805%2015.7804C15.5061%2016.0548%2015.0715%2016.0721%2014.7771%2015.8321L14.7205%2015.7804L7.99999%209.05991L1.27953%2015.7804C0.986803%2016.073%200.512204%2016.073%200.21948%2015.7804C-0.0730619%2015.4877%20-0.0730955%2015.013%200.21948%2014.7203L6.93994%207.99986L0.21948%201.2794C-0.0731027%200.986629%20-0.0732175%200.512049%200.21948%200.219351C0.512199%20-0.0730879%200.986844%20-0.073146%201.27953%200.219351L7.99999%206.93982L14.7205%200.219351Z'%20fill='var(--icon-default-primary,%20%2327272F)'/%3e%3c/svg%3e",uR={button:{background:"none",border:"none",cursor:"pointer",padding:"0.25rem",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--modal-close-color)",borderRadius:"0.25rem",fontSize:"1rem",fontWeight:"400",lineHeight:1,backgroundColor:"transparent",transition:"background-color 0.15s ease",flexShrink:0},buttonHovered:{backgroundColor:"var(--modal-close-hover-bg)"}}
80,dR="2rem",xue=(e,t,n)=>({container:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"0.5rem",border:t?`1px solid ${e.borderLight}`:"none",outline:"none",cursor:"pointer",color:e.textSecondary,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem",transition:"transform 0.15s ease, background-color 0.15s ease",padding:n==="compact"?"0.25rem":"0.375rem",borderRadius:"var(--radius-small, 0.25rem)",minHeight:n==="compact"?void 0:dR,minWidth:n==="compact"?void 0:dR,boxSizing:"border-box",backgroundColor:t?"var(--surface-primary-default)":"transparent",flexShrink:0}}),Hl=({onClose:e,withBorder:t=!1,variant:n="default",size:r="default"})=>{const{colors:i}=ze(),s=An(b=>b.close),[l,u]=G.useState(!1),[d,h]=G.useState(!1),m=e||s;if(n==="modal")return c.jsx("button",{type:"button",style:{...uR.button,...d?uR.buttonHovered:{}},onClick:m,"aria-label":"Close",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:"â"});const g=xue(i,t,r),y=()=>{const b=t?"var(--surface-primary-default)":"transparent";return{...g.container,backgroundColor:d?i.carouselHeaderButtonHover:b,...l?{transform:"scale(0.95)"}:{}}};return c.jsx("button",{type:"button",style:y(),onClick:m,"aria-label":"Close",onMouseEnter:()=>h(!0),onMouseLeave:()=>{h(!1),u(!1)},onMouseDown:()=>u(!0),onMouseUp:()=>u(!1),onTouchStart:()=>u(!0),onTouchEnd:()=>u(!1),onTouchCancel:()=>u(!1),children:c.jsx("img",{src:ZI,alt:"Close",style:Dt(i.iconFilter,r==="compact"?"0.75rem":"0.875rem")})})},zt={pillBase:{position:"relative",display:"inline-flex",flexDirection:"row",padding:"var(--spacing-small, 0.75rem) var(--spacing-medium, 1rem)",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",cursor:"pointer",border:"none",backgroundColor:"transparent",borderRadius:"var(--radius-medium, 0.5rem)",transition:"background-color 0.15s ease, transform 0.15s ease",margin:"0"},pillText:{color:"var(--text-default-primary)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"},pillIcon:{width:"1.25rem",height:"1.25rem",aspectRatio:"1/1",transition:"filter 0.3s ease"},dialogCard:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"min(38rem, 92vw)",maxHeight:"calc(100vh - 4rem)",overflowY:"auto",backgroundColor:"var(--modal-content-bg)",borderRadius:"var(--radius-large, 0.75rem)",boxShadow:"var(--modal-shadow)",border:"1px solid var(--border-default)",padding:"1.5rem",display:"flex",flexDirection:"column",gap:"1rem",zIndex:1401,fontFamily:"var(--font-Inter, Inter)"},header:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"0.75rem"},titleBlock:{display:"flex",flexDirection:"column",gap:"0.375rem",flex:1},dialogTitle:{fontFamily:"var(--font-Arizona-sans, Inter)",fontSize:"1.125rem",fontWeight:600,color:"var(--modal-title-color, var(--text-default-primary))",letterSpacing:"-0.01em",margin:0},dialogBody:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.8125rem",lineHeight:1.45,color:"var(--text-default-secondary)",margin:0},urlBox:{display:"flex",alignItems:"center",gap:"0.5rem",padding:"0.75rem 0.875rem",backgroundColor:"var(--surface-secondary-default)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",transition:"background-color 0.15s ease",width:"100%",textAlign:"left"},urlText:{fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',fontSize:"0.8125rem",color:"var(--text-default-primary)",letterSpacing:0,whiteSpace:"nowrap"},urlCopiedBadge:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:600,color:"var(--status-success, #2DA44E)",flexShrink:0,marginLeft:"0.5rem"},metaLine:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",color:"var(--text-default-secondary)",margin:0},copyLinkButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",padding:"0.5rem 0.9375rem",borderRadius:"var(--radius-medium, 0.5rem)",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.875rem",fontWeight:600,cursor:"pointer",letterSpacing:"-0.01em",minHeight:"2.25rem",minWidth:"9.25rem",whiteSpace:"nowrap",transition:"background-color 0.15s ease, transform 0.15s ease",background:"var(--action-gradient, #0E0E11)",border:"none",color:"#0E0E11"},secondaryButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",padding:"0.5rem 0.9375rem",borderRadius:"var(--radius-medium, 0.5rem)",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.875rem",fontWeight:500,cursor:"pointer",letterSpacing:"-0.01em",minHeight:"2.25rem",whiteSpace:"nowrap",transition:"background-color 0.15s ease, transform 0.15s ease",border:"1px solid var(--border-default, #E9E9EA)",background:"var(--surface-primary-default, #FFFFFF)",color:"var(--text-default-primary, #0E0E11)"},dangerLink:{display:"inline-flex",alignItems:"center",gap:"0.375rem",background:"transparent",border:"none",padding:"0.25rem 0",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.8125rem",fontWeight:500,color:"var(--danger-color, #B91C1C)",cursor:"pointer",letterSpacing:"-0.005em"},actionRow:{display:"flex",flexWrap:"wrap",gap:"0.5rem",alignItems:"center",justifyContent:"space-between"},footerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"0.75rem",borderTop:"1px solid var(--border-default-secondary, #E9E9EA)"}
80,spinnerIcon:{width:"0.875rem",height:"0.875rem",flexShrink:0,filter:"var(--icon-filter)"},spinnerIconLarge:{width:"1.25rem",height:"1.25rem",flexShrink:0,filter:"var(--icon-filter)"},urlCopyIcon:{flexShrink:0}},Sue={...zt.pillText,color:"#0e0e11"},wue={...zt.urlBox,backgroundColor:"var(--surface-secondary-hover)"},Cue=({url:e})=>{const[t,n]=k.useState(!1),{copied:r,copy:i}=Lv(e);return c.jsxs("button",{type:"button",style:t?wue:zt.urlBox,onClick:()=>{i()},"aria-label":"Copy share link",title:"Click to copy",onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[c.jsx("img",{src:Dm,alt:"",style:{...Dt("var(--icon-filter)","small"),...zt.urlCopyIcon}}),c.jsx("span",{style:zt.urlText,children:e}),r&&c.jsx("span",{style:zt.urlCopiedBadge,children:"Copied"})]})},fP=({shareUrl:e,updatedAtEpochS:t,mode:n,onClose:r,onUpdate:i,onRevoke:s,chatTitle:l})=>{const[u,d]=k.useState(!1),[h,m]=k.useState(!1),[g,y]=k.useState(!1),[b,S]=k.useState(!1),{copied:I,copy:w}=Lv(e),C=u||h||g||b,E=k.useCallback(async()=>{d(!0);try{await w()}finally{d(!1)}},[w]),A=k.useCallback(async()=>{m(!0);try{await Om({url:e})}finally{m(!1)}},[e]),_=k.useCallback(async()=>{y(!0);try{await i()}finally{y(!1)}},[i]),R=k.useCallback(async()=>{S(!0);try{await s(),r()}finally{S(!1)}},[s,r]);return c.jsx(yu,{isOpen:!0,onClose:r,overlayOpacity:.25,blurIntensity:4,overlayZIndex:1400,children:c.jsxs("div",{style:zt.dialogCard,onClick:L=>L.stopPropagation(),children:[c.jsxs("div",{style:zt.header,children:[c.jsxs("div",{style:zt.titleBlock,children:[c.jsxs("h2",{style:zt.dialogTitle,children:["Share ",l?`"${l}"`:"this chat"]}),c.jsx("p",{style:zt.dialogBody,children:"Anyone with this link can view a read-only snapshot of this chat. Your future messages won't be included."})]}),c.jsx(Hl,{onClose:r,variant:"modal"})]}),c.jsx(Cue,{url:e}),t!=null&&t>0&&c.jsxs("p",{style:zt.metaLine,children:["Snapshot last updated ",sP(t)]}),c.jsxs("div",{style:zt.actionRow,children:[c.jsxs("button",{type:"button",style:{...zt.secondaryButton,opacity:C?.6:1},onClick:A,disabled:C,children:[h?c.jsx("img",{src:gl,alt:"","aria-hidden":"true",className:"spinner-rotate",style:zt.spinnerIcon}):c.jsx("img",{src:dP,alt:"",style:Dt("var(--icon-filter)","small")}),"Share via apps"]}),n==="already-shared"&&c.jsxs("button",{type:"button",style:{...zt.secondaryButton,opacity:C?.6:1},onClick:_,disabled:C,children:[g?c.jsx("img",{src:gl,alt:"","aria-hidden":"true",className:"spinner-rotate",style:zt.spinnerIcon}):c.jsx("img",{src:JI,alt:"","aria-hidden":"true",style:Dt("var(--icon-filter)","small")}),"Update snapshot"]}),c.jsxs("button",{type:"button",style:{...zt.copyLinkButton,opacity:C?.85:1,cursor:C?"wait":"pointer"},onClick:E,disabled:C,children:[u?c.jsx("img",{src:gl,alt:"","aria-hidden":"true",className:"spinner-rotate",style:{...zt.spinnerIcon,filter:"none"}}):c.jsx("img",{src:Dm,alt:"",style:Dt("invert(0%)","small")}),I?"Copied":"Copy link"]})]}),n==="already-shared"&&c.jsxs("div",{style:zt.footerRow,children:[c.jsx("span",{style:zt.metaLine,children:"Done sharing?"}),c.jsxs("button",{type:"button",style:{...zt.dangerLink,opacity:C?.6:1,cursor:C?"not-allowed":"pointer"},onClick:R,disabled:C,children:[b?c.jsx("img",{src:gl,alt:"","aria-hidden":"true",className:"spinner-rotate",style:zt.spinnerIcon}):c.jsx("img",{src:Lm,alt:"",style:Dt("invert(36%) sepia(76%) saturate(2291%) hue-rotate(336deg) brightness(93%) contrast(93%)","small")}),"Stop sharing"]})]})]})})},Iue=()=>{const{mode:e,dialogMode:t,hasShareableChat:n,assistantInProgress:r,isShared:i,dialogShareUrl:s,dialogUpdatedAtEpochS:l,handlePillClick:u,closeDialog:d,handleUpdate:h,handleRevoke:m}=bue(),[g,y]=k.useState(!1),[b,S]=k.useState(!1),I=U(A=>A.chatId),w=hn(A=>A.historyItems.find(_=>_.id===I)?.name);if(!n)return null;const C=r||e==="minting",E=()=>C?{...zt.pillBase,background:i?"var(--action-gradient)":"none",backgroundColor:"transparent",opacity:.5,cursor:"not-allowed"}:i?b?{...zt.pillBase,background:"var(--action-gradient)",transform:"scale(0.95)"}:g?{...zt.pillBase,background:"var(--action-gradient)",transform:"scale(0.98)"}:{...zt.pillBase,background:"var(--action-gradient)"}:b?{...zt.pillBase,background:"none",backgroundColor:"var(--dropdown-button-active)",transform:"scale(0.95)"}:g?{...zt.pillBase,background:"none",backgroundColor:"var(--dropdown-button-hover)"}:{...zt.pillBase,background:"none",backgroundColor:"transparent"};return c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",style:E(),onClick:u,disabled:C,"aria-label":C?"Share (disabled
80while assistant is thinking)":i?"Manage shared chat":"Share chat",onMouseEnter:()=>!C&&y(!0),onMouseLeave:()=>{y(!1),S(!1)},onMouseDown:()=>!C&&S(!0),onMouseUp:()=>S(!1),onTouchStart:()=>!C&&S(!0),onTouchEnd:()=>S(!1),onTouchCancel:()=>S(!1),children:[e==="minting"?c.jsx("img",{src:gl,alt:"","aria-hidden":"true",className:"spinner-rotate",style:zt.spinnerIconLarge}):c.jsx("img",{src:sf,alt:"",style:{...zt.pillIcon,filter:i?"none":"var(--icon-filter)"}}),c.jsx("span",{style:i?Sue:zt.pillText,children:i?"Shared":"Share"})]}),s&&c.jsx(fP,{shareUrl:s,updatedAtEpochS:l,mode:t,onClose:d,onUpdate:h,onRevoke:m,chatTitle:w})]})},kue=(e,t,n)=>{const r=e?"0, 0, 0":"255, 255, 255",i=e?n*.8:n;return{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:2e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",backdropFilter:`blur(${t}px)`,backgroundColor:`rgba(${r}, ${i})`,transition:"background-color 0.3s ease"}},Eue=(e,t)=>({backgroundColor:"var(--modal-content-bg)",borderTopLeftRadius:"var(--radius-2x-large, 1.5rem)",borderTopRightRadius:"var(--radius-2x-large, 1.5rem)",width:"100%",maxHeight:e,minHeight:t,padding:"var(--spacing-medium, 1rem)",paddingTop:"var(--spacing-large, 1.5rem)",paddingBottom:"calc(var(--spacing-medium, 1rem) + env(safe-area-inset-bottom))",boxShadow:"var(--modal-shadow)",transform:"translateY(0)",transition:"transform 0.3s ease-out, background-color 0.3s ease, box-shadow 0.3s ease",position:"relative",zIndex:2100,pointerEvents:"all",display:"flex",flexDirection:"column"}),gd={sheetContainer:{display:"flex",flexDirection:"column",alignItems:"flex-end",width:"100%",pointerEvents:"none"},closeButtonContainer:{marginBottom:"0.75rem",marginRight:"1rem",pointerEvents:"all"},header:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"var(--spacing-medium, 1rem)"},backButton:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:"0.25rem",cursor:"pointer",color:"var(--modal-title-color)",fontSize:"1.25rem",lineHeight:1},title:{fontSize:"var(--font-size-large, 1.125rem)",fontWeight:"var(--font-weight-semibold, 600)",color:"var(--modal-title-color)",margin:0,transition:"color 0.3s ease"},content:{overflow:"auto",flex:1,display:"flex",flexDirection:"column"}},QI=({isOpen:e,onClose:t,onBack:n,children:r,title:i,showCloseButton:s=!0,blurIntensity:l=6,overlayOpacity:u=.6,maxHeight:d="80dvh",minHeight:h,freezeBackground:m=!0})=>{const{isDark:g}=ze(),y=S=>{S.preventDefault(),S.stopPropagation(),t()},b=S=>{S.preventDefault(),S.stopPropagation()};return k.useEffect(()=>{if(e&&m){const S=document.body.style.overflow,I=document.body.style.userSelect,w=document.body.style.touchAction;document.body.style.overflow="hidden",document.body.style.userSelect="none",document.body.style.touchAction="none";const C=document.getElementById("root");let E="";return C&&(E=C.style.pointerEvents,C.style.pointerEvents="none"),()=>{document.body.style.overflow=S,document.body.style.userSelect=I,document.body.style.touchAction=w,C&&(C.style.pointerEvents=E)}}},[e,m]),e?c.jsx(Aa,{children:c.jsx("div",{style:kue(g,l,u),onClick:y,"data-bottom-sheet-overlay":"true",children:c.jsxs("div",{style:gd.sheetContainer,children:[s&&c.jsx("div",{style:gd.closeButtonContainer,onClick:S=>S.stopPropagation(),children:c.jsx(Hl,{onClose:t,withBorder:!0})}),c.jsxs("div",{style:Eue(d,h),onClick:b,children:[i&&c.jsxs("div",{style:gd.header,children:[n&&c.jsx("button",{style:gd.backButton,onClick:n,"aria-label":"Go back",children:"â"}),c.jsx("h2",{style:gd.title,children:i})]}),c.jsx("div",{style:gd.content,children:r})]})]})})}):null},co={sharedOnMeta:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.8125rem",color:"var(--text-default-secondary)",margin:0,marginBottom:"1rem"},urlBox:{display:"flex",alignItems:"center",gap:"0.625rem",padding:"0.75rem 0.875rem",backgroundColor:"var(--surface-secondary-default)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",boxSizing:"border-box",transition:"background-color 0.15s ease"},urlText:{fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',fontSize:"0.8125rem",color:"var(--modal-title-color, #e8eaed)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1,minWidth:0},urlCopiedBadge:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:600,color:"var(--status-success, #2DA44E)",flexShrink:0},actionsRow:{display:"flex",flexDirection:"row",justifyContent:"center",gap:"1.25rem",paddingTop:"1.5rem",paddingBottom:"0.5rem"},circleButton:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.375rem",background:"none",border:"none",outline:"none",cursor:"pointer",padding:0,WebkitTapHighlightColor:"transparent"},circleIconWrap:{width:"3.25rem",height:"3.25rem",borderRadius:"50%",backgroundColor:"var(--surface-secondary-default)",border:"1px solid var(--border-default)",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.15s ease, transform 0.1s ease"},circleLabel:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.6875rem",fontWeight:500,letterSpacing:"-0.005em",color:"var(--modal-title-color, var(--text-default-primary))",textAlign:"center",whiteSpace:"nowrap"},spinnerIcon:{width:"1.125rem",height:"1.125rem",flexShrink:0,filter:"var(--icon-filter)"}},H0=({icon:e,label:t,onClick:n,disabled:r=!1,loading:i=!1,danger:s=!1})=>{const[l,u]=k.useState(!1);return c.jsxs("button",{type:"button",style:{...co.circleButton,opacity:r?.45:1,cursor:r?"not-allowed":"pointer"},onClick:n,disabled:r,onTouchStart:()=>!r&&u(!0),onTouchEnd:()=>u(!1),onTouchCancel:()=>u(!1),children:[c.jsx("div",{style:{...co.circleIconWrap,backgroundColor:l?"var(--surface-secondary-hover)":"var(--surface-secondary-default)",transform:l?"scale(0.92)":"none"},children:i?c.jsx("img",{src:gl,alt:"","aria-hidden":"true",className:"spinner-rotate",style:co.spinnerIcon}):c.jsx("img",{src:e,alt:"",style:Dt(s?"invert(36%) sepia(76%) saturate(2291%) hue-rotate(336deg) brightness(93%) contrast(93%)":"var(--icon-filter)","small")})}),c.jsx("span",{style:{...co.circleLabel,color:s?"var(--danger-color, #B91C1C)":"var(--modal-title-color, #e8eaed)"},children:t})]})},Tue=({url:e,copied:t,onCopy:n})=>{const[r,i]=k.useState(!1);return c.jsxs("button",{type:"button",style:{...co.urlBox,backgroundColor:r?"var(--surface-secondary-hover)":"var(--surface-secondary-default)"},onClick:n,"aria-label":"Copy share link",onTouchStart:()=>i(!0),onTouchEnd:()=>i(!1),onTouchCancel:()=>i(!1),children:[c.jsx("img",{src:Dm,alt:"",style:{...Dt("var(--icon-filter)","small"),flexShrink:0}}),c.jsx("span",{style:co.urlText,children:e}),t&&c.jsx("span",{style:co.urlCopiedBadge,children:"Copied"})]})},hP=({isOpen:e,onClose:t,shareUrl:n,chatTitle:r,snapshotUpdatedAtEpoc
80hS:i,updating:s,revoking:l,busy:u,onCopy:d,onUpdate:h,onRevoke:m})=>{const[g,y]=k.useState(!1),{copied:b,copy:S}=Lv(n??""),I=k.useCallback(async()=>{if(n){y(!0);try{await Om({url:n})}finally{y(!1)}}},[n]),w=async()=>{await S(),d()};return c.jsxs(QI,{isOpen:e,onClose:t,title:r?`"${r}"`:"Shared chat",showCloseButton:!0,blurIntensity:6,overlayOpacity:.6,freezeBackground:!0,children:[c.jsx("p",{style:co.sharedOnMeta,children:i!=null&&i>0?`Shared on ${sP(i)}`:"Shared"}),n&&c.jsx(Tue,{url:n,copied:b,onCopy:()=>{w()}}),c.jsxs("div",{style:co.actionsRow,children:[c.jsx(H0,{icon:Dm,label:"Copy",onClick:()=>{w()},disabled:u||g}),c.jsx(H0,{icon:sf,label:"Share",onClick:I,loading:g,disabled:u||g}),c.jsx(H0,{icon:JI,label:"Update",onClick:h,loading:s,disabled:u||g}),c.jsx(H0,{icon:Lm,label:"Revoke",onClick:m,loading:l,disabled:u||g,danger:!0})]})]})},Aue=500,U0={display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",width:"100%",padding:"0.375rem",transition:"background-color 0.15s ease",cursor:"pointer",WebkitUserSelect:"none",userSelect:"none",WebkitTouchCallout:"none"},W0={default:U0,hover:{...U0,backgroundColor:"var(--hover-bg-subtle)"},active:{...U0,backgroundColor:"var(--color-active)"},selected:{...U0,backgroundColor:"var(--dropdown-button-hover)"}},_ue={button:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",border:"none",background:"transparent",cursor:"pointer",textAlign:"left",flex:1,minWidth:0,textTransform:"capitalize"}},pP=({chatId:e,name:t,isSelected:n=!1,onClick:r})=>{const{isMobile:i}=We(),s=Bt(),l=hn(N=>N.removeHistoryItem),u=U(N=>N.chatId),d=U(N=>N.messages.length),h=!!u&&e===u&&d>0,[m,g]=k.useState(!1),[y,b]=k.useState(!1),[S,I]=k.useState(!1),[w,C]=k.useState(!1),[E,A]=k.useState(!1),_=k.useRef(null),R=k.useRef(null),L=k.useRef(!1),j=lP(),[O,F]=k.useState(null),D=k.useCallback(()=>{_.current&&(clearTimeout(_.current),_.current=null)},[]),H=k.useCallback(()=>{L.current=!1,_.current=setTimeout(()=>{L.current=!0,A(!0)},Aue)},[]),V=k.useCallback(()=>{D()},[D]),Y=k.useCallback(()=>{D()},[D]),K=()=>{let N;return n?N=W0.selected:y?N=W0.active:m||S||E?N=W0.hover:N=W0.default,{...N,borderRadius:"var(--radius-medium, 0.5rem)"}},z=()=>{if(L.current){L.current=!1;return}r?.()},q=async()=>{try{await NI.deleteChats([e]),l(e),C(!1),U.getState().chatId===e&&($a(),An.getState().close(),s("/home"))}catch(N){C(!1),pt({error:N,source:"HistoryListItem.handleDeleteConfirm",chatId:e},{toastMessage:"Could not remove chat. Please try again."})}},$=k.useCallback(async()=>{const N=h?await Is.shareChat():await Is.shareChatById(e);N&&F(N)},[h,e]),ue=$,ge=k.useCallback(async()=>{if(h&&j.isShared){if(j.assistantInProgress)return;await j.handleShareTap(),An.getState().close();return}const N=h?await Is.shareChat():await Is.shareChatById(e);N&&(An.getState().close(),await Om({url:N}))},[j,h,e]),M=ge,Z={opacity:m||S?1:0,transition:"opacity 0.15s ease",flexShrink:0},te=c.jsxs("div",{ref:R,style:K(),onClick:z,onMouseEnter:()=>!i&&g(!0),onMouseLeave:()=>!i&&g(!1),onMouseDown:()=>!i&&b(!0),onMouseUp:()=>!i&&b(!1),onTouchStart:i?H:void 0,onTouchEnd:i?V:void 0,onTouchMove:i?Y:void 0,children:[c.jsx("button",{type:"button",style:{..._ue.button,color:"var(--color-text)"},children:t}),!i&&c.jsx("div",{style:Z,onClick:N=>N.stopPropagation(),children:c.jsx(cR,{chatId:e,onOpenChange:I,isActiveChat:h,onShareTap:$,onManageShareTap:ue})})]}),B=O?c.jsx(fP,{shareUrl:O,updatedAtEpochS:null,mode:"just-shared",onClose:()=>F(null),onUpdate:async()=>{},onRevoke:async()=>{},chatTitle:t}):null;return i?c.jsxs(c.Fragment,{children:[te,c.jsx(cR,{chatId:e,isOpenControlled:E,onOpenChange:A,hideTrigger:!0,anchorRef:R,isActiveChat:h,onShareTap:ge,onManageShareTap:M}),h&&c.jsx(hP,{isOpen:j.isManageOpen,onClose:j.closeManage,shareUrl:j.shareUrl,chatTitle:t,snapshotUpdatedAtEpoc
80hS:j.snapshotUpdatedAtEpochS,updating:j.updating,revoking:j.revoking,busy:j.busy,onCopy:j.handleCopy,onUpdate:j.handleUpdate,onRevoke:j.handleRevoke}),c.jsx(Ov,{isOpen:w,onClose:()=>C(!1),onConfirm:q,title:"Delete chat",message:"This chat will be removed from your history. You won't be able to access it anymore.",confirmLabel:"Delete",cancelLabel:"Cancel",variant:"destructive"})]}):c.jsxs(c.Fragment,{children:[te,B]})},Rue="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M17.2471%2015.25C17.6613%2015.25%2017.9971%2015.5858%2017.9971%2016C17.9971%2016.4142%2017.6613%2016.75%2017.2471%2016.75H2.75C2.33595%2016.7498%202%2016.4141%202%2016C2%2015.5859%202.33595%2015.2502%202.75%2015.25H17.2471ZM17.2471%209.25C17.6613%209.25%2017.9971%209.58579%2017.9971%2010C17.9971%2010.4142%2017.6613%2010.75%2017.2471%2010.75H2.75C2.33595%2010.7498%202%2010.4141%202%2010C2%209.58591%202.33595%209.2502%202.75%209.25H17.2471ZM17.2471%203.25C17.6613%203.25%2017.9971%203.58579%2017.9971%204C17.9971%204.41421%2017.6613%204.75%2017.2471%204.75H2.75C2.33595%204.7498%202%204.41409%202%204C2%203.58591%202.33595%203.2502%202.75%203.25H17.2471Z'%20fill='%2327272F'/%3e%3c/svg%3e",Dv={position:"relative",display:"inline-flex",flexDirection:"row",padding:"var(--spacing-small, 0.75rem) var(--spacing-medium, 1rem)",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",cursor:"pointer",border:"none",backgroundColor:"transparent",borderRadius:"var(--radius-medium, 0.5rem)",transition:"background-color 0.15s ease, transform 0.15s ease",margin:"0.75rem 0"},jue={...Dv,backgroundColor:"var(--dropdown-button-hover)"},Oue={...Dv,backgroundColor:"var(--dropdown-button-active)",transform:"scale(0.95)"},Lue={...Dv,cursor:"not-allowed",opacity:.5,backgroundColor:"transparent"},Due={width:"1.25rem",height:"1.25rem",filter:"var(--icon-filter)",transition:"filter 0.3s ease"},mP=()=>{const e=An(h=>h.toggle),t=An(h=>h.isOpen),n=U(h=>h.assistantInProgress),[r,i]=G.useState(!1),[s,l]=G.useState(!1),u=()=>{n||e()},d=()=>n?Lue:s?Oue:r?jue:Dv;return c.jsx("button",{style:d(),onClick:u,onMouseEnter:()=>!n&&i(!0),onMouseLeave:()=>i(!1),onMouseDown:()=>!n&&l(!0),onMouseUp:()=>l(!1),"aria-label":"sideNavButton","data-testid":"side-nav-menu-button","data-open":t?"true":"false",children:c.jsx("img",{src:Rue,alt:"Side Nav Button",style:Due})})},Mv={position:"relative",cursor:"pointer",padding:"var(--spacing-small) var(--spacing-medium)",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"var(--spacing-3x-small)",width:"100%",minHeight:"3rem",borderRadius:"var(--border-radius-medium, 0.5rem)",transition:"background-color 0.15s ease",backgroundColor:"transparent",boxSizing:"border-box"},Mue={...Mv,backgroundColor:"var(--dropdown-button-hover)"},Pue={...Mv,backgroundColor:"var(--dropdown-button-active)"},Fue={...Mv,cursor:"not-allowed",opacity:.5,backgroundColor:"transparent"},Bue={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"var(--spacing-3x-small)",minWidth:0},Nue={width:"1.25rem",height:"1.25rem",minWidth:"1.25rem",aspectRatio:"1/1",flexShrink:0,filter:"var(--icon-filter)",transition:"filter 0.3s ease"},zue={color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},Hue=({text:e,iconSrc:t,onClick:n})=>{const[r,i]=G.useState(!1),[s,l]=G.useState(!1),u=U(g=>g.assistantInProgress),d=e==="Favorites"?"favorites-icon-header":void 0,h=()=>{u||!n||n()},m=()=>u?Fue:s?Pue:r?Mue:Mv;return c.jsx("div",{style:m(),onClick:h,onMouseEnter:()=>i(!0),onMouseLeave:()=>{i(!1),l(!1)},onMouseDown:()=>l(!0),onMouseUp:()=>l(!1),"data-testid":d,children:c.jsxs("div",{style:Bue,children:[c.jsx("img",{src:t,alt:e,style:Nue}),c.jsx("span",{style:zue,children:e})]})})},gP="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M8.67838%201.43219C9.46637%200.855936%2010.5336%200.855935%2011.3216%201.43219L17.0727%205.6378C17.6551%206.06385%2017.9998%206.74527%2018%207.47025V15.735C17.9998%2016.9857%2016.9929%2017.9999%2015.7511%2018H4.2489C3.007%2018%202.00021%2016.9857%202%2015.735V7.47025C2.00015%206.74526%202.34484%206.06385%202.92728%205.6378L8.67838%201.43219ZM10.4402%202.65416C10.1776%202.46217%209.82241%202.4621%209.55979%202.65416L3.80869%206.85976C3.61464%207.00172%203.49942%207.22872%203.49927%207.47025V15.735C3.49948%2016.1518%203.83502%2016.49%204.2489%2016.49H7.00244V11.2217C7.00248%2010.5268%207.56184%209.96334%208.25183%209.96334H11.7491C12.4391%209.96341%2012.9985%2010.5268%2012.9985%2011.2217V16.49H15.7511C16.1649%2016.4899%2016.5005%2016.1517%2016.5007%2015.735V7.47025C16.5006%207.2289%2016.3861%207.00174%2016.1923%206.85976L10.4402%202.65416ZM8.50171%2016.49H11.4993V11.4733H8.50171V16.49Z'%20fill='%2327272F'/%3e%3c/svg%3e",$I="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cg%20style='mix-blend-mode:multiply'%3e%3cpath%20d='M10.6885%204.41453C12.5898%202.52852%2015.6728%202.52846%2017.5741%204.41453C19.4753%206.30059%2019.4753%209.35888%2017.5741%2011.245L10.6885%2017.7277L10.6133%2017.7916C10.2533%2018.0695%209.74674%2018.0695%209.38673%2017.7916L9.31154%2017.7277L2.42595%2011.245C0.524713%209.35888%200.524656%206.30059%202.42595%204.41453C4.32724%202.52846%207.41021%202.52852%209.31154%204.41453L10%205.09747L10.6885%204.41453ZM16.5135%205.46656C15.198%204.16158%2013.0645%204.16163%2011.749%205.46656L10.3522%206.8529C10.1573%207.0464%209.84273%207.0464%209.64777%206.8529L8.25101%205.46656C6.93546%204.16163%204.80199%204.16158%203.48647%205.46656C2.17551%206.76702%202.17099%208.87331%203.4728%2010.1794L10%2016.324L16.5262%2010.1794C17.8285%208.87334%2017.8246%206.76718%2016.5135%205.46656Z'%20fill='%2327272F'/%3e%3c/g%3e%3c/svg%3e",Uue="0.3s",Wue="ease";function yP(...e){return e.map(t=>`${t} ${Uue} ${Wue}`).join(", ")}let vP=null;function fR(){return vP}function Vue(e){vP=e}const que={position:"relative",display:"inline-block"},Gue={display:"inline-grid",gridAutoFlow:"column",gridAutoColumns:"1fr",alignItems:"start"},Yue={position:"absolute",bottom:0,left:0,height:"0.125rem",borderRadius:"0.125rem",background:"linear-gradient(90deg, var(--gradients-peach-100, #fcda2e) 0.09%, var(--gradients-peach-400, #fe6966) 99.91%)",pointerEvents:"none",zIndex:1,willChange:"transform, opacity"},LS=[{id:"home",text:"Home",iconSrc:gP},{id:"favorites",text:"Favorites",iconSrc:$I}],Kue=()=>{const e=Bt(),t=Pt(),n=G.useRef(null),r=G.useRef(fR()?.index??0),i=G.useRef(!1),[s,l]=G.useState({left:0,width:0,visible:!1}),[u,d]=G.useState(!1),h=t.pathname==="/home"?"home":t.pathname==="/favorites"?"favorites":"",m=LS.findIndex(I=>I.id===h),g=G.useCallback((I,w)=>
80{const C=n.current;if(!C)return null;const E=C.getBoundingClientRect().width/LS.length;return E<=0?null:{left:I*E,width:E,visible:w}},[]),y=G.useCallback((I,w)=>{l(C=>C.visible===I.visible&&C.left===I.left&&C.width===I.width?C:I),r.current=w,Vue({index:w,visible:I.visible})},[]);G.useLayoutEffect(()=>{const I=m>=0,w=I?m:r.current,C=g(w,I);if(!C){const E=requestAnimationFrame(()=>{const A=g(w,I);A&&(y(A,w),d(!0),i.current=!0)});return()=>cancelAnimationFrame(E)}if(!i.current){i.current=!0;const E=fR();if(E!=null&&(E.index!==w||E.visible!==I)&&E){const R=g(E.index,E.visible);if(R){l(R),r.current=E.index;const L=requestAnimationFrame(()=>{d(!0),y(C,w)});return()=>cancelAnimationFrame(L)}}y(C,w);const _=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(_)}y(C,w),d(!0)},[m,g,y]),G.useEffect(()=>{const I=()=>{const w=m>=0,C=w?m:r.current,E=g(C,w);E&&y(E,C)};return window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[m,g,y]);const b=I=>{I==="home"?(UI(),e("/home")):I==="favorites"&&e("/favorites")},S={...Yue,width:`${s.width}px`,transform:`translateX(${s.left}px)`,opacity:s.visible?1:0,transition:u?yP("transform","width","opacity"):"none"};return c.jsxs("div",{style:que,children:[c.jsx("div",{ref:n,style:Gue,children:LS.map(I=>c.jsx(Hue,{text:I.text,iconSrc:I.iconSrc,onClick:()=>b(I.id)},I.id))}),c.jsx("div",{style:S,"aria-hidden":!s.visible})]})},Pv={position:"relative",cursor:"pointer",padding:"var(--spacing-small) 6px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",width:"100%",minHeight:"3rem",borderRadius:"var(--border-radius-medium, 0.5rem)",transition:"background-color 0.15s ease",backgroundColor:"transparent"},Xue={...Pv,backgroundColor:"var(--dropdown-button-hover)"},Jue={...Pv,backgroundColor:"var(--dropdown-button-active)"},Zue={...Pv,backgroundColor:"var(--background-secondary)",borderRadius:"var(--border-radius-medium, 0.5rem)"},Que={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",flex:"1",minWidth:0},$ue={width:"1.25rem",height:"1.25rem",minWidth:"1.25rem",aspectRatio:"1/1",flexShrink:0,filter:"var(--icon-filter)",transition:"filter 0.3s ease"},bP={color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0},ede={...bP,fontWeight:500,color:"var(--text-default-primary)"},V0=({text:e,iconSrc:t,onClick:n,isActive:r=!1})=>{const[i,s]=G.useState(!1),[l,u]=G.useState(!1),d=()=>r?Zue:l?Jue:i?Xue:Pv;return c.jsx("div",{style:d(),onClick:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>{s(!1),u(!1)},onMouseDown:()=>u(!0),onMouseUp:()=>u(!1),onTouchStart:()=>u(!0),onTouchEnd:()=>u(!1),onTouchCancel:()=>u(!1),children:c.jsxs("div",{style:Que,children:[c.jsx("img",{src:t,alt:e,style:$ue}),c.jsx("span",{style:r?ede:bP,children:e})]})})},xP="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10%202C14.4183%202%2018%205.58172%2018%2010C18%2014.4183%2014.4183%2018%2010%2018C5.58172%2018%202%2014.4183%202%2010C2%205.58172%205.58172%202%2010%202ZM10%203.5C6.41015%203.5%203.5%206.41015%203.5%2010C3.5%2013.5899%206.41015%2016.5%2010%2016.5C13.5899%2016.5%2016.5%2013.5899%2016.5%2010C16.5%206.41015%2013.5899%203.5%2010%203.5ZM10%205C10.4142%205%2010.75%205.33579%2010.75%205.75V9.56066L13.0303%2011.841C13.3232%2012.1339%2013.3232%2012.6088%2013.0303%2012.9017C12.7374%2013.1946%2012.2626%2013.1946%2011.9697%2012.9017L9.46967%2010.4017C9.32902%2010.261%209.25%2010.0702%209.25%209.87132V5.75C9.25%205.33579%209.58579%205%2010%205Z'%20fill='%2327272F'/%3e%3c/svg%3e",SP="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M16.748%203C17.9915%203.00021%2018.9999%204.0096%2019%205.25391L18.9883%2014.7461C18.9881%2015.9904%2017.9798%2016.9998%2016.7363%2017H5.41602L2.97168%2018.7695C2.14288%2019.3539%201%2018.7607%201%2017.7461L1.00195%205.25391C1.00209%204.00948%202.01026%203%203.25391%203H16.748ZM3.25391%204.50195C2.83941%204.50195%202.50306%204.83917%202.50293%205.25391L2.50098%2017.2627L4.74609%2015.6348L4.8457%2015.5762C4.94864%2015.5252%205.06284%2015.4981%205.17871%2015.498H16.7363C17.1506%2015.4978%2017.4871%2015.1607%2017.4873%2014.7461L17.499%205.25391C17.4989%204.8393%2017.1624%204.50216%2016.748%204.50195H3.25391ZM9.99414%206.43457C10.3823%206.43476%2010.7018%206.73036%2010.7402%207.1084L10.7441%207.18457V9.25586H12.8145C13.2286%209.25586%2013.5643%209.59176%2013.5645%2010.0059C13.5645%2010.4201%2013.2287%2010.7559%2012.8145%2010.7559H10.7441V12.8145C10.7441%2013.2285%2010.4082%2013.5643%209.99414%2013.5645C9.57993%2013.5645%209.24414%2013.2287%209.24414%2012.8145V10.7559H7.18457L7.1084%2010.752C6.73024%2010.7135%206.43457%2010.3942%206.43457%2010.0059C6.43469%209.61765%206.7303%209.29818%207.1084%209.25977L7.18457%209.25586H9.24414V7.18457L9.24805%207.1084C9.28652%206.73028%209.60587%206.43457%209.99414%206.43457Z'%20fill='%2327272F'/%3e%3c/svg%3e",tde={container:{display:"flex",flexDirection:"column",alignItems:"flex-start",ga
80p:"var(--spacing-x-small)",width:"100%"}},nde=()=>{const e=Bt(),t=Pt(),n=An(u=>u.close),i=bn(u=>u.recentlyInteractedListings.size)>0,s=()=>t.pathname==="/home"?"home":t.pathname==="/favorites"?"favorites":t.pathname==="/recent"?"recent":"",l=async u=>{n(),u==="home"?(UI(),e("/")):u==="favorites"?e("/favorites"):u==="recent"?e("/recent"):u==="newChat"&&($a(),e("/"))};return c.jsxs("div",{style:tde.container,children:[c.jsx(V0,{text:"Home",iconSrc:gP,isActive:s()==="home",onClick:()=>l("home")}),c.jsx(V0,{text:"Favorites",iconSrc:$I,isActive:s()==="favorites",onClick:()=>l("favorites")}),i&&c.jsx(V0,{text:"Recent",iconSrc:xP,isActive:s()==="recent",onClick:()=>l("recent")}),c.jsx(V0,{text:"New Chat",iconSrc:SP,isActive:!1,onClick:()=>l("newChat")})]})},wP=()=>{const{isMobile:e}=We();return e?c.jsx(nde,{}):c.jsx(Kue,{})},Mm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='73'%20height='64'%20viewBox='0%200%2073%2064'%20fill='none'%3e%3cpath%20d='M36.2517%2031.9997L28.9103%2044.7029L36.2517%2057.4062C55.2519%2068.3768%2058.2547%2066.6426%2058.2539%2044.7027L36.2517%2031.9997ZM36.2517%206.5938V31.9997H21.6253L14.2486%2019.2974C14.2477%20-2.64258%2017.2516%20-4.37691%2036.2517%206.5938Z'%20fill='url(%23paint0_linear_40000384_16541)'/%3e%3cpath%20d='M36.2522%2031.9997V57.4062C17.2521%2068.3768%2014.2492%2066.6426%2014.25%2044.7027L36.2522%2031.9997ZM36.2522%206.5938V31.9997H50.8786L58.2553%2019.2974C58.2562%20-2.64258%2055.2523%20-4.37691%2036.2522%206.5938Z'%20fill='url(%23paint1_linear_40000384_16541)'/%3e%3cpath%20d='M58.257%2019.2969L36.2538%2031.9992L14.2507%2019.2969C-4.75024%2030.2661%20-4.75024%2033.7324%2014.2507%2044.7017C33.2516%2055.6708%2039.256%2055.6708%2058.257%2044.7017C77.2579%2033.7324%2077.2579%2030.2661%2058.257%2019.2969Z'%20fill='url(%23paint2_linear_40000384_16541)'/%3e%3cpath%20d='M58.2539%2044.7026L36.2518%2031.9996L28.9103%2019.2967L36.2518%206.59375C55.2507%2017.5639%2058.253%2022.764%2058.2539%2044.7026Z'%20fill='url(%23paint3_linear_40000384_16541)'/%3e%3cpath%20d='M14.25%2044.7026L36.2522%2031.9996V6.59375C17.2532%2017.5639%2014.2509%2022.764%2014.25%2044.7026Z'%20fill='url(%23paint4_linear_40000384_16541)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_40000384_16541'%20x1='58.2539'%20y1='44.8665'%20x2='14.2486'%20y2='44.8665'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FE6767'/%3e%3cstop%20offset='1'%20stop-color='%23F5AD05'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_40000384_16541'%20x1='14.25'%20y1='44.1541'%20x2='58.2543'%20y2='44.1541'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230471C4'/%3e%3cstop%20offset='1'%20stop-color='%230BCB9B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_40000384_16541'%20x1='0'%20y1='32.0955'%20x2='72.5077'%20y2='32.0955'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FCDA2E'/%3e%3cstop%20offset='1'%20stop-color='%2342F098'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_40000384_16541'%20x1='58.2539'%20y1='44.7026'%20x2='14.25'%20y2='44.7026'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FE6767'/%3e%3cstop%20offset='1'%20stop-color='%23F5AD05'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_40000384_16541'%20x1='14.25'%20y1='44.7026'%20x2='58.2546'%20y2='44.7026'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230471C4'/%3e%3cstop%20offset='1'%20stop-color='%230BCB9B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Pm="data:image/svg+xml,%3csvg%20width='154'%20height='136'%20viewBox='0%200%20154%20136'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M76.8618%2067.8426L61.2972%2094.7747L76.8618%20121.707C117.144%20144.966%20123.51%20141.289%20123.509%2094.7743L76.8618%2067.8426ZM76.8618%2013.9796V67.8426H45.8522L30.2129%2040.9124C30.2111%20-5.60247%2036.5796%20-9.27942%2076.8618%2013.9796Z'%20fill='url(%23paint0_linear_17_54)'/%3e%3cpath%20d='M76.8619%2067.8426V121.707C36.5797%20144.966%2030.2133%20141.289%2030.2151%2094.7743L76.8619%2067.8426ZM76.8619%2013.9796V67.8426H107.871L123.511%2040.9124C123.513%20-5.60247%20117.144%20-9.27942%2076.8619%2013.9796Z'%20fill='url(%23paint1_linear_17_54)'/%3e%3cpath%20d='M123.511%2040.9122L76.8618%2067.8425L30.2129%2040.9122C-10.071%2064.1681%20-10.071%2071.517%2030.2129%2094.7729C70.4968%20118.029%2083.2266%20118.029%20123.511%2094.7729C163.795%2071.517%20163.795%2064.1681%20123.511%2040.9122Z'%20fill='url(%23paint2_linear_17_54)'/%3e%3cpath%20d='M123.509%2094.7742L76.8618%2067.8427L61.2971%2040.9111L76.8618%2013.9796C117.141%2037.2374%20123.507%2048.2622%20123.509%2094.7742Z'%20fill='url(%23paint3_linear_17_54)'/%3e%3cpath%20d='M30.2151%2094.7742L76.8619%2067.8427V13.9796C36.5822%2037.2374%2030.217%2048.2622%2030.2151%2094.7742Z'%20fill='url(%23paint4_linear_17_54)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_17_54'%20x1='123.509'%20y1='95.1215'%20x2='30.2128'%20y2='95.1215'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FE6767'/%3e%3cstop%20offset='1'%20stop-color='%23F5AD05'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_17_54'%20x1='30.2151'%20y1='93.6112'%20x2='123.509'%20y2='93.6112'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230479D2'/%3e%3cstop%20offset='1'%20stop-color='%230BCB9B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_17_54'%20x1='0'%20y1='68.0466'%20x2='153.724'%20y2='68.0466'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FCDA2E'/%3e%3cstop%20offset='1'%20stop-color='%2342F098'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_17_54'%20x1='123.509'%20y1='94.7742'%20x2='30.2159'%20y2='94.7742'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FE6767'/%3e%3cstop%20offset='1'%20stop-color='%23F5AD05'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_17_54'%20x1='30.2151'%20y1='94.7742'%20x2='123.509'%20y2='94.7742'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230479D2'/%3e%3cstop%20offset='1'%20stop-color='%230BCB9B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Fv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='60'%20height='18'%20viewBox='0%200%2060%2018'%20fill='none'%3e%3cpath%20d='M6.02903%2017.09V2.49428H0.34375V0.460449H14.0314V2.49428H8.32225V17.09H6.02903Z'%20fill='%230E0E11'/%3e%3cpath%20d='M16.6191%2017.3771C13.4182%2017.3771%2010.9339%2014.8887%2010.9339%2011.3953C10.9339%207.90187%2013.4182%205.43735%2016.6191%205.43735C19.844%205.43735%2022.3283%207.90187%2022.3283%2011.3953C22.3283%2014.8887%2019.844%2017.3771%2016.6191%2017.3771ZM16.6191%2015.4868C18.6735%2015.4868%2020.0351%2013.8598%2020.0351%2011.3953C20.0351%208.93074%2018.6735%207.32761%2016.6191%207.32761C14.5887%207.32761%2013.2271%208.93074%2013.2271%2011.3953C13.2271%2013.8598%2014.5887%2015.4868%2016.6191%2015.4868Z'%20fill='%230E0E11'/%3e%3cpath%20d='M24.3491%205.72447H26.5467V7.37546H26.6184C27.4306%206.05946%2028.6488%205.43735%2029.9627%205.43735C32.1603%205.43735%2033.8325%206.9687%2033.8325%209.95962V17.09H31.6348
80V10.0075C31.6348%208.23685%2030.7987%207.27975%2029.4133%207.27975C27.98%207.27975%2026.5467%208.42827%2026.5467%2010.8689V17.09H24.3491V5.72447Z'%20fill='%230E0E11'/%3e%3cpath%20d='M37.5561%203.64279C36.6722%203.64279%2035.9556%202.9489%2035.9556%202.06358C35.9556%201.22613%2036.6722%200.532232%2037.5561%200.532232C38.3921%200.532232%2039.0849%201.22613%2039.0849%202.06358C39.0849%202.9489%2038.3921%203.64279%2037.5561%203.64279ZM38.6549%2017.09H36.4572V5.72447H38.6549V17.09Z'%20fill='%230E0E11'/%3e%3cpath%20d='M45.9951%2017.3771C43.9407%2017.3771%2042.6508%2016.1807%2042.6508%2013.788V7.56688H40.3098V5.77233C42.5791%205.77233%2042.7941%205.50913%2042.7941%203.04461H44.8007V5.72447H47.9061V7.56688H44.8007V13.6923C44.8007%2014.9126%2045.3501%2015.5347%2046.4728%2015.5347C47.0223%2015.5347%2047.4522%2015.439%2047.9061%2015.2954V16.9943C47.4522%2017.2096%2046.7356%2017.3771%2045.9951%2017.3771Z'%20fill='%230E0E11'/%3e%3cpath%20d='M53.8625%2017.3771C51.211%2017.3771%2048.7983%2015.1279%2048.7983%2011.3953C48.7983%207.71045%2051.211%205.43735%2053.8864%205.43735C55.3914%205.43735%2056.6813%206.22695%2057.374%207.42332H57.4218V5.72447H59.6195V17.09H57.4218V15.3672H57.374C56.5857%2016.7071%2055.2003%2017.3771%2053.8625%2017.3771ZM54.3403%2015.6065C56.1797%2015.6065%2057.5174%2013.9555%2057.5174%2011.3953V11.3474C57.5174%208.8111%2056.1797%207.20797%2054.3403%207.20797C52.4532%207.20797%2051.0916%208.83503%2051.0916%2011.3953C51.0916%2013.9555%2052.4532%2015.6065%2054.3403%2015.6065Z'%20fill='%230E0E11'/%3e%3c/svg%3e",rde={display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",flexShrink:0,cursor:"pointer",borderRadius:"var(--radius-medium, 0.5rem)",gap:"0.375rem"},ide={width:"1.25rem",height:"1.25rem",flexShrink:0},ade={width:"3.70475rem",height:"1.05731rem",flexShrink:0,filter:"var(--logo-text-filter)",transition:"filter 0.3s ease"},CP=()=>{const e=Bt(),{isDark:t}=ze(),n=()=>{UI(),e("/")};return c.jsxs("div",{style:rde,onClick:n,role:"button",tabIndex:0,onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),n())},children:[c.jsx("img",{src:t?Pm:Mm,alt:"Tonita logo",style:ide}),c.jsx("img",{src:Fv,alt:"Tonita",style:ade})]})},DS={desktopButton:(e,t,n,r)=>({position:"relative",display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem) var(--spacing-medium, 1rem)",borderRadius:"var(--radius-medium, 0.5rem)",transition:"background-color 0.15s ease, transform 0.15s ease",backgroundColor:n?"transparent":t?r?"rgba(255, 255, 255, 0.12)":"rgba(0, 0, 0, 0.08)":e?r?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.04)":"transparent",cursor:n?"not-allowed":"pointer",opacity:n?.5:1,border:"none",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontWeight:400,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",color:"var(--text-default-primary)",transform:t?"scale(0.95)":"none",margin:"0"}),desktopButtonActive:(e,t,n,r)=>({position:"relative",display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem) var(--spacing-medium, 1rem)",borderRadius:"var(--radius-medium, 0.5rem)",transition:"background-color 0.15s ease, transform 0.15s ease",background:WI(),cursor:n?"not-allowed":"pointer",opacity:n?.5:1,border:"none",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontWeight:400,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",color:"#0E0E11",transform:t?"scale(0.95)":e?"scale(0.98)":"none",margin:"0"}),mobileButton:e=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:"0.625rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",backgroundColor:"transparent",cursor:e?"not-allowed":"pointer",opacity:e?.5:1,border:"none",transition:"all 0.2s ease"}),createIconStyle:e=>({width:"1.25rem",height:"1.25rem",minWidth:"1.25rem",flexShrink:0,filter:e,transition:"filter 0.3s ease"})},sde=()=>{const{isMobile:e}=We(),{colors:t,isDark:n}=ze(),r=Bt(),i=Pt(),[s,l]=G.useState(!1),[u,d]=G.useState(!1),h=bn(K=>K.recentlyInteractedListings),m=bn(K=>K.getRecentlyInteractedListings),g=bn(K=>
80K.savePreviousCarouselState),y=bn(K=>K.restorePreviousCarousel),b=bn(K=>K.openRecentlyInteractedCarousel),S=Fe(K=>K.openCarousel),I=Fe(K=>K.isCarouselOpen),w=Fe(K=>K.currentComponentId),C=Fe(K=>K.currentCarouselCards),E=Fe(K=>K.currentMessageId),A=Fe(K=>K.currentCarouselTitle),_=Xt(K=>K.closeListingDetails),R=U(K=>K.messages),L=U(K=>K.assistantInProgress),j=h.size;if(j===0)return null;const O=i.pathname==="/recent",F=w?.includes("recently-interacted-carousel"),D=R.length>0&&!O,H=O||F&&D,V=K=>{if(!(L||j===0)){if(!D||e){O?($a(),r("/")):r("/recent");return}if(F)y();else{I&&C.length>0&&!F?g({cards:C,messageId:E,componentId:w,title:A}):g(null),_();const z=m();b(),S(z,"recently-interacted-message",`recently-interacted-carousel-${$t()}`,`Recently Viewed (${j})`),Ja.getState().setOwner("carousel")}}},Y=()=>e?DS.mobileButton(L):H?DS.desktopButtonActive(s,u,L):DS.desktopButton(s,u,L,n);return c.jsxs("button",{style:Y(),onClick:V,onMouseEnter:()=>l(!0),onMouseLeave:()=>{l(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),"aria-label":"Recently Viewed","aria-pressed":H,type:"button","data-testid":"recently-interacted-toggle",disabled:L,children:[c.jsx("img",{src:xP,alt:"Recently Viewed",style:Dt(H?"none":t.iconFilter)}),!e&&c.jsx("span",{children:"Recent"})]})},Fm={position:"relative",display:"inline-flex",flexDirection:"row",padding:"var(--spacing-small, 0.75rem) var(--spacing-medium, 1rem)",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",cursor:"pointer",border:"none",backgroundColor:"transparent",borderRadius:"var(--radius-medium, 0.5rem)",transition:"background-color 0.15s ease, transform 0.15s ease",margin:"0"},Bv={...Fm,padding:"0.625rem"},ode=e=>({...Fm,backgroundColor:e}),lde=e=>({...Bv,backgroundColor:e}),cde=e=>({...Fm,backgroundColor:e,transform:"scale(0.95)"}),ude=e=>({...Bv,backgroundColor:e,transform:"scale(0.95)"}),dde={...Fm,opacity:"0.5",cursor:"not-allowed"},fde={...Bv,opacity:"0.5",cursor:"not-allowed"},hR={createIconStyle:e=>({width:"1.25rem",height:"1.25rem",aspectRatio:"1/1",filter:e,transition:"filter 0.3s ease"}),text:{color:"var(--text-default-primary, #0E0E11)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"}},IP=({iconOnly:e=!1})=>{const t=Bt(),{colors:n}=ze(),r=U(m=>m.assistantInProgress),[i,s]=G.useState(!1),[l,u]=G.useState(!1),d=()=>{r||($a(),t("/"))},h=()=>e?r?fde:l?ude(n.buttonActive):i?lde(n.buttonHover):Bv:r?dde:l?cde(n.buttonActive):i?ode(n.buttonHover):Fm;return c.jsxs("button",{style:h(),onClick:d,disabled:r,"data-testid":"new-chat-button","aria-label":r?"New chat (disabled while assistant is thinking)":"Start new chat",onMouseEnter:()=>!r&&s(!0),onMouseLeave:()=>{s(!1),u(!1)},onMouseDown:()=>!r&&u(!0),onMouseUp:()=>u(!1),onTouchStart:()=>!r&&u(!0),onTouchEnd:()=>u(!1),onTouchCancel:()=>u(!1),children:[c.jsx("img",{src:SP,alt:"New chat",style:hR.createIconStyle(n.iconFilter)}),!e&&c.jsx("span",{style:hR.text,children:"New chat"})]})},bc={button:{position:"relative",display:"inline-flex",flexDirection:"row",padding:"var(--spacing-small, 0.75rem) var(--spacing-medium, 1rem)",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",cursor:"pointer",border:"none",backgroundColor:"transparent",borderRadius:"var(--radius-medium, 0.5rem)",transition:"background-color 0.15s ease, transform 0.15s ease",margin:"0"},buttonHover:{backgroundColor:"var(--dropdown-button-hover)"},buttonActive:{backgroundColor:"var(--dropdown-button-active)",transform:"scale(0.95)"},icon:{width:"1.25rem",height:"1.25rem",aspectRatio:"1/1",color:"var(--icon-default)",transition:"color 0.3s ease"},text:{color:"var(--text-default-primary, #0E0E11)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"}},kP=({iconOnly:e=!1})=>{const t=Pt(),[n,r]=G.useState(!1),[i,s]=G.useState(!1);if(!(new URLSearchParams(t.search).get("type")==="extension"))return null;const d=()=>{const m=new URL(window.location.href);m.searchParams.delete("type"),window.open(m.toString(),"_blank","noopener,noreferrer")},h=()=>i?{...bc.button,...bc.buttonActive}:n?{...bc.button,...bc.buttonHover}:bc.button;return c.jsxs("button",{style:h(),onClick:d,"aria-label":"Expand",onMouseEnter:()=>r(!0),onMouseLeave:()=>{r(!1),s(!1)},onMouseDown:()=>s(!0),onMouseUp:()=>s(!1),onTouchStart:()=>s(!0),onTouchEnd:()=>s(!1),onTouchCancel:()=>s(!1),children:[c.jsxs("svg",{style:bc.icon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),c.jsx("polyline",{points:"15 3 21 3 21 9"}),c.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}),!e&&c.jsx("span",{style:bc.text,children:"Expand"})]})},hde=e=>({color:"var(--text-default-primary, #0E0E11)",textAlign:"center",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlice
80nsed Trial")',fontSize:e<40?"var(--size-small, 1rem)":"var(--size-large, 1.5rem)",fontStyle:"normal",fontWeight:"400",lineHeight:e<40?"var(--line-height-medium, 1.25rem)":"var(--line-height-x-large, 1.75rem)",letterSpacing:"-0.03rem"}),pde=(e,t,n)=>({display:"flex",width:`${e}px`,height:`${e}px`,padding:n?"0":"0.75rem 0.375rem 0.625rem 0.375rem",justifyContent:"center",alignItems:"center",flexShrink:0,aspectRatio:"1/1",borderRadius:"var(--radius-medium, 0.5rem)",background:n?"transparent":"linear-gradient(90deg, #FCDA2E 0%, #42F098 100%)",border:"none",cursor:t?"pointer":"default",transition:t?"background-color 0.2s ease":"none",overflow:"hidden",position:"relative"}),mde=()=>({width:"100%",height:"100%",objectFit:"cover"}),R1=({size:e=48,onClick:t,isClickable:n=!1})=>{const r=be(u=>u.email),i=be(u=>u.photoURL),s=i!==void 0,l=()=>{n&&t&&t()};return c.jsx("button",{type:"button","data-testid":"user-profile-button",style:pde(e,n,s),onClick:l,"aria-label":`User avatar for ${r||"User"}`,children:s?c.jsx("img",{src:i,alt:r||"User",style:mde(),crossOrigin:"anonymous",referrerPolicy:"no-referrer"}):c.jsx("span",{style:hde(e),children:r?.charAt(0).toUpperCase()||"?"})})},gde=700;function yde({value:e,options:t,onChange:n,ariaLabel:r,size:i=24}){const{colors:s}=ze(),l=i,u=Math.max(0,t.findIndex(C=>C.value===e)),d=t[u]??t[0],h={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",width:`${l*t.length}px`,height:`${i}px`,backgroundColor:s.backgroundTertiary,borderRadius:`${i/2}px`,border:`1px solid ${s.border}`,position:"relative",flexShrink:0,transition:"background-color 0.3s ease, border-color 0.3s ease"},g={position:"absolute",left:`${u===0?2:u===t.length-1?l*u:l*u+1}px`,width:`${l-4}px`,height:`${i-4}px`,background:s.toggleButtonColor,borderRadius:`${(i-4)/2}px`,transition:yP("left","background","background-color","width"),display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",boxShadow:`0 1px 3px ${s.toggleButtonShadow}`,pointerEvents:"none"},y={flex:1,height:"100%",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:`${i/2}px`,transition:"background-color 0.2s ease"},b=(C,E)=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),n(E))},S=k.useRef(-1/0),I=(C,E)=>{C.preventDefault(),S.current=Date.now();const A=C.changedTouches[0];if(!A)return;const{top:_,right:R,bottom:L,left:j}=C.currentTarget.getBoundingClientRect();A.clientX>=j&&A.clientX<=R&&A.clientY>=_&&A.clientY<=L&&n(E)},w=C=>{Date.now()-S.current<gde||n(C)};return c.jsxs("div",{style:h,role:"radiogroup","aria-label":r,children:[c.jsx("div",{style:g,"data-testid":"segmented-toggle-thumb",children:d?.activeContent}),t.map(C=>c.jsx("div",{style:y,onClick:()=>w(C.value),onTouchEnd:E=>I(E,C.value),onKeyDown:E=>b(E,C.value),role:"radio","aria-checked":e===C.value,"aria-label":C.ariaLabel,title:C.title,tabIndex:0,children:e!==C.value&&C.inactiveContent},C.value))]})}const vde="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20d='M10%202a1%201%200%20011%201v1a1%201%200%2011-2%200V3a1%201%200%20011-1zm4%208a4%204%200%2011-8%200%204%204%200%20018%200zm-.464%204.95l.707.707a1%201%200%20001.414-1.414l-.707-.707a1%201%200%2000-1.414%201.414zm2.12-10.607a1%201%200%20010%201.414l-.706.707a1%201%200%2011-1.414-1.414l.707-.707a1%201%200%20011.414%200zM17%2011a1%201%200%20100-2h-1a1%201%200%20100%202h1zm-7%204a1%201%200%20011%201v1a1%201%200%2011-2%200v-1a1%201%200%20011-1zM5.05%206.464A1%201%200%20106.465%205.05l-.708-.707a1%201%200%2000-1.414%201.414l.707.707zm1.414%208.486l-.707.707a1%201%200%2001-1.414-1.414l.707-.707a1%201%200%20011.414%201.414zM4%2011a1%201%200%20100-2H3a1%201%200%20000%202h1z'%20clip-rule='evenodd'/%3e%3c/svg%3e",bde="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.293%2013.293A8%208%200%20016.707%202.707a8.001%208.001%200%201010.586%2010.586z'/%3e%3c/svg%3e",xde="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20d='M3%205a2%202%200%20012-2h10a2%202%200%20012%202v8a2%202%200%2001-2%202h-2.22l.123.489.8
8004.804A1%201%200%200113%2018H7a1%201%200%2001-.707-1.707l.804-.804L7.22%2015H5a2%202%200%2001-2-2V5zm5.771%207H5V5h10v7H8.771z'%20clip-rule='evenodd'/%3e%3c/svg%3e",EP=({size:e=24})=>{const{mode:t,setTheme:n,isDark:r}=ze(),i=r?"brightness(0)":"brightness(0) invert(1)",s={width:`${e*.5}px`,height:`${e*.5}px`,transition:"filter 0.2s ease",filter:i},l={width:`${e*.5}px`,height:`${e*.5}px`,transition:"filter 0.2s ease",opacity:.5,filter:"var(--inactive-icon-filter)"},u=()=>{switch(t){case"light":return"Light mode selected";case"dark":return"Dark mode selected";case"system":return"System mode selected";default:return"Theme toggle"}},d=[{value:"light",ariaLabel:"Light mode",icon:vde},{value:"dark",ariaLabel:"Dark mode",icon:bde},{value:"system",ariaLabel:"System mode",icon:xde}].map(h=>({value:h.value,ariaLabel:h.ariaLabel,activeContent:c.jsx("img",{src:h.icon,alt:"",style:s}),inactiveContent:c.jsx("img",{src:h.icon,alt:"",style:l})}));return c.jsx(yde,{value:t,options:d,onChange:n,ariaLabel:u(),size:e})},MS="https://api.tonita.co/mcp";class PS{static async getActiveApiKey(){const t=be.getState().userId;if(!t)throw new Error("No authenticated user found");const r={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":t,...Sn()},s=(await Tn.post(`${MS}/get-active-api-token`,{},{headers:r})).data;return s.keyId?{keyId:s.keyId,perDayLimit:s.perDayLimit??0}:null}static async generateApiKey(t){const n=be.getState().userId;if(!n)throw new Error("No authenticated user found");const r=await Ht(),{email:i}=be.getState(),s={};i&&(s.userEmail=i),t?.description&&(s.description=t.description);const l={"Content-Type":"application/json",Authorization:`Bearer ${r}`,"user-uuid":n,...Sn()};try{return(await Tn.post(`${MS}/generate-api-token`,s,{headers:l})).data}catch(u){throw PM(u)===409?new Error("You already have an active API key. Revoke it before generating a new one."):u}}static async revokeApiKey(){const t=be.getState().userId;if(!t)throw new Error("No authenticated user found");const r={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":t,...Sn()};return{revoked:(await Tn.post(`${MS}/revoke-api-token`,{},{headers:r})).data.revoked}}}const Sde="data:image/svg+xml,%3csvg%20aria-hidden='true'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='%23E5E7EB'/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.912
801%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='%2371717F'/%3e%3c/svg%3e",FS={getWrapperStyle:e=>({display:"inline-flex",width:`${e}rem`,height:`${e}rem`,alignItems:"center",justifyContent:"center",flexShrink:0,lineHeight:0}),getSpinnerStyle:e=>({width:`${e}rem`,height:`${e}rem`,animation:"circular-spin 1s linear infinite",display:"block"}),keyframes:` 81 @keyframes circular-spin { 82 0% { 83 transform: rotate(0deg); 84 } 85 100% { 86 transform: rotate(360deg); 87 } 88 } 89 `},Cl=({size:e=1})=>c.jsxs("span",{style:FS.getWrapperStyle(e),children:[c.jsx("img",{src:Sde,alt:"Loading",style:FS.getSpinnerStyle(e)}),c.jsx("style",{children:FS.keyframes})]}),TP="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2012V18C5%2018.5523%205.44772%2019%206%2019H18C18.5523%2019%2019%2018.5523%2019%2018V12'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%203L12%2015M12%2015L16%2011M12%2015L8%2011'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",O5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10%2019.001C14.9705%2019.001%2018.9999%2014.9714%2019%2010.001C19%205.03041%2014.9706%201.00098%2010%201.00098C5.02944%201.00098%201%205.03041%201%2010.001C1.00013%2014.9714%205.02952%2019.001%2010%2019.001ZM10%2017.501C5.85795%2017.501%202.50013%2014.143%202.5%2010.001C2.5%205.85884%205.85786%202.50098%2010%202.50098C14.1421%202.50098%2017.5%205.85884%2017.5%2010.001C17.4999%2014.143%2014.1421%2017.501%2010%2017.501ZM10%2011C10.4142%2011%2010.75%2010.6642%2010.75%2010.25V6.72559C10.7499%206.31148%2010.4141%205.97559%2010%205.97559C9.58587%205.97559%209.25013%206.31148%209.25%206.72559V10.25C9.25%2010.6642%209.58579%2011%2010%2011ZM10%2014.0361C10.5523%2014.0361%2011%2013.5884%2011%2013.0361C11%2012.4838%2010.5523%2012.0361%2010%2012.0361C9.44771%2012.0361%209%2012.4838%209%2013.0361C9%2013.5884%209.44771%2014.0361%2010%2014.0361Z'%20fill='%2327272F'/%3e%3c/svg%3e",AP="data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='8'%20cy='8'%20r='8'%20fill='%2310B981'%20/%3e%3cpath%20d='M11.3333%205.5L6.75%2010.0833L4.66667%208'%20stroke='white'%20strokeWidth='1.5'%20strokeLinecap='round'%20strokeLinejoin='round'%20/%3e%3c/svg%3e",jt={card:{display:"flex",flexDirection:"column",gap:"var(--spacing-small, 0.75rem)",padding:"1rem",border:"1px solid var(--border-default, #E9E9EA)",borderRadius:"var(--radius-large, 0.75rem)",backgroundColor:"var(--surface-secondary-default, #F2F2F3)",fontFamily:"var(--font-Inter, Inter)"},headerBlock:{display:"flex",flexDirection:"column",gap:"0.375rem"},heading:{fontFamily:"var(--font-Arizona-sans, Inter)",fontSize:"1rem",fontWeight:600,color:"var(--text-default-primary, #0E0E11)",letterSpacing:"-0.01em"},bodyText:{fontSize:"0.8125rem",lineHeight:1.45,color:"var(--text-default-secondary, #3F3F4A)"},primaryButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",padding:"0.5rem 1rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--action-gradient, #0E0E11)",border:"none",color:"#0E0E11",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.875rem",fontWeight:600,cursor:"pointer",letterSpacing:"-0.01em",alignSelf:"flex-end",minHeight:"2.25rem"},primaryButtonBusy:{opacity:.85,cursor:"wait"},secondaryButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.375rem",padding:"0.4375rem 0.75rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--surface-primary-default, #FFFFFF)",border:"1px solid var(--border-default, #E9E9EA)",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.8125rem",fontWeight:500,cursor:"pointer",minHeight:"2rem"},dangerButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.375rem",padding:"0.4375rem 0.75rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"color-mix(in srgb, var(--danger-color) 8%, transparent)",border:"1px solid var(--danger-button-border)",color:"var(--danger-color)",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.8125rem",fontWeight:500,cursor:"pointer",minHeight:"2rem"},dangerButtonBusy:{alignSelf:"flex-end",cursor:"wait",opacity:.85},keyCard:{padding:"0.75rem 0.875rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--code-block-bg, var(--surface-secondary-default, #F2F2F3))",border:"1px solid var(--code-block-border, var(--border-default, #E9E9EA))",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',fontSize:"0.8125rem",color:"var(--code-block-text, var(--text-default-primary, #0E0E11))",wordBreak:"break-all",lineHeight:1.4},metaText:{fontSize:"0.75rem",color:"var(--text-default-secondary, #6B6B73)"}
89,warning:{display:"flex",alignItems:"flex-start",gap:"0.5rem",padding:"0.5rem 0.75rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--status-warning-bg)",border:"1px solid var(--status-warning-border)",fontSize:"0.75rem",color:"var(--status-warning)",fontWeight:500,lineHeight:1.4},warningCalloutIconOffset:{marginTop:"0.125rem"},inlineStatusRow:{display:"inline-flex",alignItems:"center",gap:"0.5rem"},inlineStatusRowAlignEnd:{display:"inline-flex",alignItems:"center",gap:"0.5rem",alignSelf:"flex-end"},actionSlot:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%",minHeight:"2.25rem"},successPill:{display:"inline-flex",alignItems:"center",gap:"0.4375rem",padding:"0.25rem 0.625rem",borderRadius:"999px",background:"var(--status-success-bg)",border:"1px solid var(--status-success-border)",color:"var(--status-success)",fontSize:"0.75rem",fontWeight:600,minWidth:0,flex:"1 1 auto",overflow:"hidden"},successCheckmark:{width:"0.875rem",height:"0.875rem",flexShrink:0},keyIdMono:{fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',fontWeight:600,letterSpacing:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},activeRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",width:"100%",flexWrap:"nowrap"},dangerButtonCompact:{flexShrink:0},errorBlock:{display:"flex",alignItems:"flex-start",gap:"0.5rem",padding:"0.5rem 0.75rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"color-mix(in srgb, var(--danger-color) 8%, transparent)",border:"1px solid var(--danger-button-border)",fontSize:"0.75rem",color:"var(--danger-color)",fontWeight:500,lineHeight:1.4},revealCard:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"min(28rem, 92vw)",maxHeight:"calc(100vh - 4rem)",overflowY:"auto",backgroundColor:"var(--modal-content-bg, #FFFFFF)",borderRadius:"var(--radius-large, 0.75rem)",boxShadow:"var(--modal-shadow, 0 20px 60px rgba(14, 14, 17, 0.25))",border:"1px solid var(--border-default, #E9E9EA)",padding:"1.5rem",display:"flex",flexDirection:"column",gap:"0.875rem",zIndex:11001,fontFamily:"var(--font-Inter, Inter)"},revealTitle:{fontFamily:"var(--font-Arizona-sans, Inter)",fontSize:"1.125rem",fontWeight:600,color:"var(--modal-title-color, #0E0E11)",letterSpacing:"-0.01em",margin:0},revealActionRow:{display:"flex",flexWrap:"wrap",gap:"0.5rem",marginTop:"0.25rem"},revealPrimaryButton:{alignSelf:"auto",marginLeft:"auto"},inlineActionRow:{display:"flex",flexWrap:"wrap",gap:"0.5rem"}};function wde(e){const t=new Date().toISOString().slice(0,10);return["Tonita API key","",`Key ID: ${e.keyId}`,`Daily limit: ${e.perDayLimit} requests per day`,`Created: ${t}`,"",e.apiKey,"","Keep this file safe â Tonita cannot show this key again.","Paste the key into your AI assistant's MCP server settings.",""].join(` 90`)}function Cde(e){const t=new Blob([wde(e)],{type:"text/plain;charset=utf-8"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=`tonita-api-key-${e.keyId}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}const _P=()=>{const{colors:e}=ze(),[t,n]=k.useState({kind:"hydrating"}),r=Dt(e.iconFilter,"0.875rem"),i=Dt(e.iconFilter,"0.875rem",jt.warningCalloutIconOffset);k.useEffect(()=>{let g=!1;return(async()=>{try{const y=await PS.getActiveApiKey();if(g)return;n(y?{kind:"active",keyId:y.keyId}:{kind:"idle"})}catch{if(g)return;n({kind:"idle"})}})(),()=>{g=!0}},[]);const s=async()=>{n({kind:"generating"});try{const g=await PS.generateApiKey();n({kind:"displaying",key:g,copied:!1,downloaded:!1})}catch(g){const y=g instanceof Error?g.message:"Failed to generate API key.";n({kind:"error",message:y})}},l=async()=>{n({kind:"revoking"});try{await PS.revokeApiKey(),n({kind:"idle"})}catch(g){const y=g instanceof Error?g.message:"Failed to revoke API key.";n({kind:"error",message:y})}},u=async g=>{try{await navigator.clipboard.writeText(g),n(y=>y.kind==="displaying"?{...y,copied:!0}:y)}catch{}},d=g=>{Cde(g),n(y=>y.kind==="displaying"?{...y,downloaded:!0}:y)},h=()=>{n(g=>g.kind==="displaying"?{kind:"active",keyId:g.key.keyId}:g)},m=t.kind==="displaying"||t.kind==="active";return c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:jt.card,children:[c.jsxs("div",{style:jt.headerBlock,children:[c.jsx("div",{style:jt.heading,children:"Connect Tonita to your AI assistant"}),c.jsx("div",{style:jt.bodyText,children:"Search the catalog, compare products, and shop right inside Claude, ChatGPT, and other AI assistants that speak MCP. Create a key, then paste it into your assistant's settings to get started."})]}),c.jsxs("div",{style:jt.actionSlot,children:[t.kind==="hydrating"&&c.jsxs("div",{style:jt.inlineStatusRowAlignEnd,children:[c.jsx(Cl,{size:.875}),c.jsx("span",{style:jt.metaText,children:"Checking your keyâ¦"})]}),t.kind==="idle"&&c.jsx("button",{style:jt.primaryButton,onClick:s,children:"Create a key"}),t.kind==="generating"&&c.jsx("button",{style:{...jt.primaryButton,...jt.primaryButtonBusy},disabled:!0,children:c.jsxs("span",{style:jt.inlineStatusRow,children:[c.jsx(Cl,{size:.875}),"Creating your keyâ¦"]})}),m&&c.jsxs("div",{style:jt.activeRow,children:[c.jsxs("div",{style:jt.successPill,children:[c.jsx("img",{src:AP,alt:"",style:jt.successCheckmark}),c.jsxs("span",{children:["Active:"," ",c.jsx("span",{style:jt.keyIdMono,children:t.kind==="displaying"?t.key.keyId:t.kind==="active"?t.keyId:""})]})]}),c.jsx("button",{style:{...jt.dangerButton,...jt.dangerButtonCompact},onClick:l,children:"Revoke"})]}),t.kind==="revoking"&&c.jsx("button",{style:{...jt.dangerButton,...jt.dangerButtonBusy},disabled:!0,children:c.jsxs("span",{style:jt.inlineStatusRow,children:[c.jsx(Cl,{size:.875}),"Revokingâ¦"]})})]}),t.kind==="error"&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:jt.errorBlock,children:[c.jsx("img",{src:O5,alt:"",style:i}),c.jsx("span",{children:t.message})]}),c.jsxs("div",{style:jt.inlineActionRow,children:[c.jsx("button",{style:jt.dangerButton,onClick:l,children:"Revoke existing key"}),c.jsx("button",{style:jt.secondaryButton,onClick:()=>n({kind:"idle"}),children:"Close"})]})]})]}),t.kind==="displaying"&&c.jsx(yu,{isOpen:!0,onClose:h,closeOnOverlayClick:!1,closeOnEscape:!0,overlayOpacity:.35,blurIntensity:6,overlayZIndex:11e3,children:c.jsxs("div",{style:jt.revealCard,onClick:g=>g.stopPropagation(),children:[c.jsx("h2",{style:jt.revealTitle,children:"Your new API key"}),c.jsx("div",{style:jt.keyCard,children:t.key.apiKey}),c.jsxs("div",{style:jt.metaText,children:["Key ID: ",t.key.keyId," · Up to ",t.key.perDayLimit," requests per day"]}),c.jsxs("div",{style:jt.warning,children:[c.jsx("img",{src:O5,alt:"",style:i}),c.jsx("span",{children:"Save this key now â Tonita can't show it again. Copy it or download a .txt backup before closing this dialog."})]}),c.jsxs("div",{style:jt.revealActionRow,children:[c.jsxs("button",{style:jt.secondaryButton,onClick:()=>u(t.key.apiKey),children:[c.jsx("img",{src:Dm,alt:"",style:r}),t.copied?"Copied":"Copy"]}),c.jsxs("button",{style:jt.secondaryButton,onClick:()=>d(t.key),children:[c.jsx("img",{src:TP,alt:"",style:r}),t.downloaded?"Downloaded":"Download .txt"]}),c.jsx("button",{style:{...jt.primaryButton,...jt.revealPrimaryButton},onClick:h,children:"I've saved my key"})]})]})})]})};function Ide(){const[e,t]=k.useState(()=>xt()?"loading":"unsupported"),n=k.useCallback(async()=>
90{if(!xt())return;const i=await Gr.checkPermissions();t(i)},[]);k.useEffect(()=>{if(!xt())return;let i=null,s=!1;return(async()=>(await n(),!s&&(i=await QM.addListener("appStateChange",u=>{u.isActive&&n()}),s&&(i.remove(),i=null))))(),()=>{s=!0,i?.remove()}},[n]);const r=k.useCallback(async()=>{if(e==="unsupported"||e==="loading")return;if(e==="granted"||e==="denied"){await Gr.openPlatformSettings();return}const i=await Gr.requestPermissionsAndRegister();t(i)},[e]);return{status:e,handleToggle:r}}const xc={row:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",padding:"var(--spacing-medium, 1rem)",backgroundColor:"var(--surface-secondary-default)",borderRadius:"var(--radius-medium, 0.5rem)",border:"none",cursor:"pointer",textAlign:"left"},topLine:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%"},label:{color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,fontSize:"var(--size-small, 1rem)",lineHeight:"var(--line-height-medium, 1.25rem)"},rightGroup:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)"},value:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:400,fontSize:"var(--size-small, 1rem)"},arrow:{color:"var(--text-default-tertiary)",fontSize:"1rem"},subLabel:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:400,fontSize:"var(--size-x-small, 0.875rem)",lineHeight:"var(--line-height-x-small, 1.125rem)",marginTop:"var(--spacing-2x-small, 0.375rem)"}},kde=()=>{const{status:e,handleToggle:t}=Ide();if(e==="unsupported"||e==="loading")return null;const r=e==="granted"?"On":"Off",i=e==="denied";return c.jsxs("button",{style:xc.row,onClick:t,type:"button",children:[c.jsxs("div",{style:xc.topLine,children:[c.jsx("span",{style:xc.label,children:"Notifications"}),c.jsxs("div",{style:xc.rightGroup,children:[c.jsx("span",{style:xc.value,children:r}),c.jsx("span",{style:xc.arrow,"aria-hidden":"true",children:"â"})]})]}),i&&c.jsx("span",{style:xc.subLabel,children:"Enable in iOS Settings"})]})},L5="tonita.micPermissionDenied",RP="tonita.voiceMicEnabled",j1="tonita.micBlockedNoticeDismissed",Hp="tonita-mic-settings-change";function jP(){try{return localStorage.getItem(RP)!=="0"}catch{return!0}}function BS(e){try{localStorage.setItem(RP,e?"1":"0")}catch{}LP()}function D5(){try{return sessionStorage.getItem(L5)==="1"}catch{return!1}}function ks(e){try{e?(sessionStorage.setItem(L5,"1"),sessionStorage.removeItem(j1)):(sessionStorage.removeItem(L5),sessionStorage.removeItem(j1))}catch{}LP()}function Nv(){return{enabled:jP(),denied:D5()}}function OP(e){const t=e.detail;return t&&typeof t.enabled=="boolean"&&typeof t.denied=="boolean"?t:Nv()}function Ede(){const{enabled:e,denied:t}=Nv();return e&&!t}function LP(){typeof window>"u"||window.dispatchEvent(new CustomEvent(Hp,{detail:Nv()}))}function pR(){try{return sessionStorage.getItem(j1)==="1"}catch{return!1}}function Tde(e){try{e&&sessionStorage.setItem(j1,"1")}catch{}}async function DP(){try{return typeof navigator>"u"||!navigator.permissions||typeof navigator.permissions.query!="function"?null:(await navigator.permissions.query({name:"microphone"})).state}catch{return null}}function MP(e=typeof navigator<"u"&&navigator.userAgent||""){return/iPhone|iPad|iPod/.test(e)||/CriOS/.test(e)?/CriOS/.test(e)?"ios-chrome":"ios-safari":/Android/.test(e)&&/Chrome/.test(e)?"android-chrome":/Mobile/.test(e)?"generic":"desktop"}function M5(e){switch(e){case"ios-chrome":return"Open the iOS Settings app â Chrome â Microphone, turn it on, then return here and tap this row again.";case"ios-safari":return"Open the iOS Settings app â Safari â Microphone (or Settings â Tonita for the app), turn it on, then return here and tap this row again.";case"android-chrome":return"In Chrome: tap the lock icon in the address bar â Permissions â Microphone â Allow. Or Android Settings â Apps â Chrome â Permissions â Microphone.";case"desktop":return"Click the lock / site-info icon in the address bar â allow Microphone for this site, then reload or tap this row again.";default:return"Allow microphone access for this browser in your device settings, then return here and tap this row again."}}const Sc={row:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",padding:"var(--spacing-medium, 1rem)",backgroundColor:"var(--surface-secondary-default)",borderRadius:"var(--radius-medium, 0.5rem)",border:"none",cursor:"pointer",textAlign:"left"},topLine:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%"},label:{color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,fontSize:"var(--size-small, 1rem)",lineHeight:"var(--line-height-medium, 1.25rem)"},rightGroup:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)"},value:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:400,fontSize:"var(--size-small, 1rem)"},arrow:{color:"var(--text-default-tertiary)",fontSize:"1rem"},subLabel:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:400,fontSize:"var(--size-x-small, 0.875rem)",lineHeight:"var(--line-height-x-small, 1.125rem)",marginTop:"var(--spacing-2x-small, 0.375rem)"}},PP=()=>{const e=MP(),[t,n]=k.useState(()=>Nv()),[r,i]=k.useState(!1),[s,l]=k.useState(null);k.useEffect(()=>{const S=I=>{n(OP(I))};return window.addEventListener(Hp,S),DP().then(I=>{I==="denied"?ks(!0):I==="granted"&&ks(!1)}),()=>{window.removeEventListener(Hp,S)}},[]);const{enabled:u,denied:d}=t,h=u&&!d,m=k.useCallback(async()=>
90{if(!(typeof navigator<"u"&&!!navigator.mediaDevices?.getUserMedia))return l("This browser can't access the microphone."),!1;try{return(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(w=>w.stop()),ks(!1),!0}catch(I){const w=typeof I=="object"&&I!==null&&"name"in I?String(I.name??""):"";return w==="NotAllowedError"||w==="SecurityError"?(ks(!0),l(M5(e)),xt()&&Gr.openPlatformSettings()):l("Couldn't reach the microphone. Make sure one is connected and not in use by another app, then try again."),!1}},[e]),g=k.useCallback(async()=>{if(!r){i(!0),l(null);try{if(d){await m()&&(BS(!0),l("Microphone enabled â the Mic button is available again."));return}if(u){BS(!1),l("Voice input turned off. Tap again to turn it back on.");return}await m()&&(BS(!0),l("Voice input turned on."))}finally{i(!1)}}},[r,d,u,m]);let y="Off";r?y="â¦":d?y="Blocked":h&&(y="On");const b=s||(d?M5(e):u?"Tap to turn voice input off.":"Tap to turn voice input on.");return c.jsxs("button",{style:Sc.row,onClick:()=>{g()},type:"button","aria-busy":r||void 0,"aria-pressed":h,"aria-label":`Microphone ${y}`,children:[c.jsxs("div",{style:Sc.topLine,children:[c.jsx("span",{style:Sc.label,children:"Microphone"}),c.jsxs("div",{style:Sc.rightGroup,children:[c.jsx("span",{style:Sc.value,children:y}),c.jsx("span",{style:Sc.arrow,"aria-hidden":"true",children:"â"})]})]}),c.jsx("span",{style:Sc.subLabel,children:b})]})},P5=(e={})=>({personalize:e}),v4e=e=>e?.personalize,Lh={row:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",padding:"var(--spacing-medium, 1rem)",backgroundColor:"var(--surface-secondary-default)",borderRadius:"var(--radius-medium, 0.5rem)",border:"none",cursor:"pointer",textAlign:"left"},topLine:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%"},label:{color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,fontSize:"var(--size-small, 1rem)",lineHeight:"var(--line-height-medium, 1.25rem)"},arrow:{color:"var(--text-default-tertiary)",fontSize:"1rem"},subLabel:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:400,fontSize:"var(--size-x-small, 0.875rem)",lineHeight:"var(--line-height-x-small, 1.125rem)",marginTop:"var(--spacing-2x-small, 0.375rem)"}},FP=({onClose:e})=>{const t=Bt(),{trackMemoryAction:n}=Nt();return c.jsxs("button",{type:"button",style:Lh.row,onClick:()=>{e(),n("visit_memory_dashboard_from_settings"),t("/personalize",{state:P5()})},children:[c.jsxs("div",{style:Lh.topLine,children:[c.jsx("span",{style:Lh.label,children:"Personalize"}),c.jsx("span",{style:Lh.arrow,"aria-hidden":"true",children:"â"})]}),c.jsx("span",{style:Lh.subLabel,children:"Manage how Tonita personalizes shopping for you and anyone you shop for."})]})},ek=(e=!1,t=!1)=>{const n=Bt(),r=be(z=>z.email),i=be(z=>z.isGuest),s=be(z=>z.displayName),l=be(z=>z.userId),u=An(z=>z.close),d=zd.isExtensionContext(),[h,m]=k.useState(!1),[g,y]=k.useState(!1),[b,S]=k.useState(!1),[I,w]=k.useState(!1),[C,E]=k.useState(!1);return{email:r,isGuest:i,displayName:s,userId:l,isDropdownOpen:h,isBottomSheetOpen:g,isAccountSettingsOpen:b,isDeleteAccountConfirmOpen:I,isDeletingAccount:C,handleGoogleSignIn:async()=>{if(d){window.open("https://extension.tonita.co/sign-in","_blank","noopener,noreferrer");return}try{xt()?await Wi.signInWithGoogleNative():t||Wi.shouldUseRedirectSignIn()?await Wi.signInWithGoogleRedirect():await Wi.signInWithGooglePopup(),m(!1),y(!1),e&&u()}catch(z){pt({error:z,source:"useUserAuth.handleGoogleSignIn"},{toastMessage:"Sign in failed. Please try again."})}},handleAppleSignIn:async()=>{if(d){window.open("https://extension.tonita.co/sign-in","_blank");return}try{xt()?await Wi.signInWithAppleNative():t||Wi.shouldUseRedirectSignIn()?await Wi.signInWithAppleRedirect():await Wi.signInWithApplePopup(),m(!1),y(!1),e&&u()}catch(z){pt({error:z,source:"useUserAuth.handleAppleSignIn"},{toastMessage:"Sign in failed. Please try again."})}},handleSignOut:async()=>{if(d){window.open("https://extension.tonita.co/sign-out","_blank","noopener,noreferrer");return}try{await Wi.signOut(),m(!1),y(!1),e&&u();const z=xt()?"/sign-in":"/";n(z,{replace:!0})}catch(z){pt({error:z,source:"useUserAuth.handleSignOut"},{toastMessage:"Sign out failed. Please try again."})}},toggleDropdown:z=>{z&&z.stopPropagation(),m(!h)},handleMobileProfileClick:()=>{y(!0)},handleCloseBottomSheet:()=>{y(!1)},setIsDropdownOpen:m,handleOpenAccountSettings:()=>{S(!0),m(!1)},handleCloseAccountSettings:()=>{S(!1)},handleBackFromAccountSettings:()=>{S(!1)},handleOpenDeleteAccountConfirm:()=>{w(!0)},handleCloseDeleteAccountConfirm:()=>{w(!1)},handleConfirmDeleteAccount:async z=>{if(!C)try{E(!0),await Wi.deleteAccount(z),w(!1),S(!1),y(!1),m(!1),e&&u(),n("/",{replace:!0})}catch(q){pt({error:q,source:"useUserAuth.handleConfirmDeleteAccount"},{toastMessage:"Failed to delete account. Please try again."})}finally{E(!1)}}}},_d=e=>e?e.includes("@privaterelay.appleid.com")?"Apple Private Email":e:null,Ade="v0.0.67",_de=[{version:"v0.0.67",date:"September 23, 2026",content:["A new home page: tell Tonita
90what you're shopping for right from the first screen","Learn how to use Tonita like a pro â an eight-step story from your first question to trying it on and saving a favorite","Browse what's trending: flip between Women, Men and Accessories, and tap any photo or question to start a chat with it"]},{version:"v0.0.66",date:"September 14, 2026",content:["Talk to Tonita: tap the handset and shop out loud â Tonita searches while you speak and puts what it finds on your screen","Share a photo mid-call by tapping the Tonita mark â 'something like this' now works","Voice mode now looks right in dark mode, a new carousel announces itself, and switching between carousels starts each one from the top"]},{version:"v0.0.65",date:"September 9, 2026",content:["CUSTOMIZE questions can now show you what an answer looks like â tap 'Show me' to flip through real products for each option before you pick one"]},{version:"v0.0.64",date:"August 13, 2026",content:["Opening a chat now asks how you'd like to start â speak it, answer a few questions, or browse first","New welcome page with a Shopping should be easy hero and a How Tonita Works tour"]}
90,{version:"v0.0.63",date:"July 24, 2026",content:["Redesigned CUSTOMIZE box with a clearer expand animation","Product cards and pages now show regular price and a cleaner brand name","Download Virtual Try-On looks via the share sheet on iOS","Smoother desktop split view and carousel behavior"]},{version:"v0.0.62",date:"July 16, 2026",content:["The CUSTOMIZE block gets you and Tonita on the same page ASAP","Our MCP server now supports skills","Voice mode is now available","Some UI fixes"]},{version:"v0.0.61",date:"July 7, 2026",content:["Your Favorites page is now fully interactive â revisit saved items, ask follow-up questions, and keep shopping from one place","Our MCP server supports conversation-linked search, so follow-up questions stay connected to what you asked earlier","Fixed color swatches on product pages so you can switch between variants","Fixed navigation from shared chat links â the logo and back button now return you home without getting stuck on a loading screen"]},{version:"v0.0.60",date:"June 22, 2026",content:["New Thinking mode â watch the assistant reason through your request step by step before it answers","Smoother, more reliable chat streaming so replies come through steadily even on flaky connections"]},{version:"v0.0.59",date:"May 26, 2026",content:["Share a chat with a link â anyone you send it to can read a snapshot of the conversation","Share from the chat header or your history list; copy the link, refresh what you shared, or stop sharing anytime","Try on clothes in one tap with a new Try On button on product photos"]},{version:"v0.0.58",date:"May 19, 2026",content:["Virtual Try-On requests now wait longer before timing out, so slow generations are less likely to fail"]},{version:"v0.0.57",date:"May 7, 2026",content:["Dedicated product pages you can share with anyone","Notifications on your device when there's something new","Paste images directly into the message box","Cleaner pros and cons in review summaries"]},{version:"v0.0.56",date:"March 26, 2026",content:["Improved performance on uploaded images","Added ability to delete accounts and chats"]},{version:"v0.0.55",date:"March 17, 2026",content:["Apple Sign-In support","New product grid layout","Better scroll fixes and layout design","Updated welcome screen with spring designs and new layout"]},{version:"v0.0.54",date:"February 26, 2026",content:["Improved mobile carousel expand behavior"]},{version:"v0.0.53",date:"February 24, 2026",content:["Increased robustness against sporadic network failures"]},{version:"v0.0.52",date:"February 5, 2026",content:["Fixed welcome screen scroll on certain desktop devices","Cleaner product grid UI"]},{version:"v0.0.51",date:"February 3, 2026",content:["Easier navigation/discovery options for broad queries","A smooth new scroll experience for product grids"]},{version:"v0.0.50",date:"January 20, 2026",content:["Faster results"]},{version:"v0.0.49",date:"January 5, 2026",content:["New products indexed"]},{version:"v0.0.48",date:"December 30, 2025",content:["New products indexed","Added a retry mechanism for reranking timeout errors"]},{version:"v0.0.47",date:"December 23, 2025",content:["New products indexed","Enhanced the efficiency of the carousel scrolling"]},{version:"v0.0.46",date:"December 11, 2025",content:["Initial support for color variants of products","Fixed issues with visual similarity search"]},{version:"v0.0.45",date:"December 2, 2025",content:["Improved the look and feel of the side navigation","Added support for 'dark mode'"]},{version:"v0.0.44",date:"November 25, 2025",content:["Fixed bug where queries from browser extension created duplicate messages"]},{version:"v0.0.43",date:"November 25, 2025",content:["Added new 'Recently Viewed' section to the app","Added toast notifications to communicate errors and warnings","Enhanced product similarity search using product URLs"]},{version:"v0.0.42",date:"November 20, 2025",content:["New tutorial system for guiding users through the app"]},{version:"v0.0.41",date:"November 17, 2025",content:["New ranking model for improved search relevance","More bugfixes related to Virtual Try-On"]},{version:"v0.0.40",date:"October 27, 2025",content:["Fixed bugs related to Virtual Try-On","Fixed bugs related to loading history and favorites"]},{version:"v0.0.39",date:"October 24, 2025",content:["Introducing Virtual Try-On","Fixed bugs related to favorites"]},{version:"v0.0.38",date:"October 20, 2025",content:["Fixes for recently-observed awkward assistant behavior","Fixed randomly-occurring infinite hangs"]},{version:"v0.0.37",date:"October 9, 2025",content:["More stores and products indexed","Added 'Favorites' feature","Fixed jittery app feel"]},{version:"v0.0.36",date:"October 1, 2025",content:["Revamped suggestions on home page","Eliminated blurry images on product cards","Fixed 'flicker' effect when scrolling through a product grid"]},{version:"v0.0.35",date:"September 30, 2025",content:["Bug fixes related to multiple choice questions"]},{version:"v0.0.34",date:"September 26, 2025",content:["Bunch of UI improvements"]},{version:"v0.0.33",date:"September 19, 2025",content:["Several more products and sellers","Improved handling of brand/seller constraints","Continued UI improvements"]},{version:"v0.0.32",date:"September 12, 2025",content:["Many more items from many more stores","Robust seller/brand constraints through natural language","Fresh new design and revamped user experience"]},{version:"v0.0.31",date:"August 21, 2025",content:["Improvements in search relevance"]},{version:"v0.0.30",date:"June 11, 2025",content:["Revamped review summaries on product-detail pages"]},{version:"v0.0.29",date:"June 3, 2025",content:["A new look for the landing page!"]},{version:"v0.0.28",date:"June 2, 2025",content:["Several new stores and products indexed"]},{version:"v0.0.27",date:"May 15, 2025",content:["Faster loading of review summaries on product-detail pages","Better handling of brand/seller constraints"]},{version:"v0.0.26",date:"May 8, 2025",content:["Improved strategies for blending relevance/diversity/ratings/availability"]},{version:"v0.0.25",date:"May 6, 2025",content:["Faster reranking models"]},{version:"v0.0.24",date:"Apr 30, 2025",content:["Further improvements in search latency","Updated retrieval models"]},{version:"v0.0.23",date:"Apr 14, 2025",content:["Improved search latency","A fresh set of suggested starter messages"]},{version:"v0.0.22",date:"Apr 1, 2025",content:["Many more stores and products indexed"]},{version:"v0.0.21",date:"Mar 24, 2025",content:["Better handling of price constraints"]},{version:"v0.0.20",date:"Mar 21, 2025",content:["More items, more stores","Continued improvements to visual similarity"]},{version:"v0.0.19",date:"Mar 13, 2025",content:["Improvements in search latency","Improved visual similarity"]},{version:"v0.0.18",date:"Mar 5, 2025",content:["More robust conversational agent","Some bugs fixed"]},{version:"v0.0.17",date:"Mar 3, 2025",content:["Improved visual search"]},{version:"v0.0.16",date:"Feb 27, 2025",content:["A new conversational AI model","A snappier feel"]},{version:"v0.0.15",date:"Feb 20, 2025",content:["More stores and products indexed","Improvements in latency"]},{version:"v0.0.14",date:"Feb 6, 2025",content:["More stores and products indexed","Improved results for color-based queries"]},{version:"v0.0.13",date:"Jan 17, 2025",content:["AI summaries on the product details page redesigned"]},{version:"v0.0.12",date:"Dec 20, 2024",content:["Significantly more stores and products indexed","New models for text and image retrieval"]},{version:"v0.0.11",date:"Dec 6, 2024",content:["Rich UI with substantially larger result set","Gallery view for browsing result set","Progress bar with constant status updates"]},{version:"v0.0.10",date:"Nov 27, 2024",content:["Increased coverage for apparel and accessories","Upgraded our models for better search quality","Added reviews and ratings for certain products","Re
90sults include sale prices for many products"]}],tk={currentVersion:Ade,releases:_de},qn={deleteAccountButton:{display:"flex",height:"3rem",padding:"0.75rem 1rem",justifyContent:"center",alignItems:"center",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",border:"1px solid var(--danger-button-border)",cursor:"pointer",color:"var(--danger-color)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontWeight:"500",width:"100%"},confirmationWarning:{color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:"500",lineHeight:"1.5"},confirmationText:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",lineHeight:"1.5"},reasonInputContainer:{width:"100%"},reasonInputLabel:{color:"var(--text-default-secondary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",marginBottom:"0.5rem",display:"block"},reasonInput:{width:"100%",padding:"0.75rem 1rem",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default)",backgroundColor:"var(--surface-secondary-default)",color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",resize:"none",outline:"none",boxSizing:"border-box"},buttonRow:{display:"flex",gap:"1rem",width:"100%"},cancelButton:{flex:1,height:"3rem",padding:"0.75rem 1rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--settings-button-bg)",border:"none",cursor:"pointer",color:"var(--settings-button-text)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontWeight:"500"},confirmDeleteButton:{flex:1,height:"3rem",padding:"0.75rem 1rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--danger-button-bg)",border:"none",cursor:"pointer",color:"white",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontWeight:"500"}},Ua={menuItem:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",border:"none",textAlign:"left"},menuItemLabel:{color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:"500"},menuItemValue:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontWeight:"400"},menuItemArrow:{color:"var(--text-default-tertiary)"},themeToggleLabel:{color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontStyle:"normal",fontWeight:"500"}},Rde={spacer:{flex:1}},Up="data-account-control",jde={desktop:"6rem",compact:"5.25rem",inlineRow:"100%"},BP={desktop:"1rem",compact:"0.75rem",inlineRow:"1rem"},Ode={signedOut:"1.375rem",signedIn:"1rem"},Lde="0.5rem",Dde="2.25rem",Bm=(e,t,n)=>e==="inlineRow"?{width:"100%",height:n==="signedIn"?`calc(${t}px + ${Lde} * 2)`:Dde}:{width:n==="signedIn"?`${t}px`:jde[e],height:`${t}px`,...e==="desktop"?{marginRight:Ode[n]}:{}},NP="tonita:accountControlShape",Mde=()=>{try{return localStorage.getItem(NP)==="signedIn"?"signedIn":"signedOut"}catch{return"signedOut"}},Pde=e=>{try{localStorage.setItem(NP,e)}catch{}},Fde=(e,t)=>({...Bm(e,t,"signedIn"),display:"flex",alignItems:"center",cursor:"pointer",...e==="compact"?{flexShrink:0}:{gap:"0.75rem",padding:"0.5rem 0"}}),Bde=(e,t)=>({...Bm(e,t,"signedOut"),display:"flex",padding:`0 ${BP[e]}`,justifyContent:"center",alignItems:"center",gap:"0.5rem",flexShrink:0,whiteSpace:"nowrap",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--action-gradient)",border:"none",cursor:"pointer",color:"#0E0E11",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem"}),Zt={userDetails:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:"0.125rem",flex:"1 0 0"},displayName:{color:"var(--text-default-primary)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"},email:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-x-small, 1.125rem)"},sheetSignInButton:{display:"flex",padding:"0.5rem 1rem",justifyContent:"center",alignItems:"center",gap:"0.5rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--action-gradient)",border:"none",cursor:"pointer",color:"#0E0E11",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",width:"100%"},bottomSheetContent:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",ga
90p:"var(--spacing-medium, 1rem)",width:"100%",height:"100%",flex:1},bottomSheetUserInfo:{display:"flex",alignItems:"center",gap:"var(--spacing-medium, 1rem)",width:"100%",padding:"var(--spacing-medium, 1rem)",backgroundColor:"var(--surface-secondary-default)",borderRadius:"var(--radius-medium, 0.5rem)"},bottomSheetUserDetails:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:"var(--spacing-2x-small, 0.375rem)",flex:"1 0 0"},bottomSheetDisplayName:{color:"var(--text-default-primary)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-medium, 1.125rem)",fontStyle:"normal",fontWeight:"600",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01125rem"},bottomSheetEmail:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-medium, 1.25rem)"},themeToggleContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"var(--spacing-medium, 1rem)",backgroundColor:"var(--surface-secondary-default)",borderRadius:"var(--radius-medium, 0.5rem)"},themeToggleLabel:{...Ua.themeToggleLabel,fontSize:"var(--size-small, 1rem)",lineHeight:"var(--line-height-medium, 1.25rem)"},logOutButton:{display:"flex",height:"3rem",padding:"0.75rem 1rem",justifyContent:"center",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--danger-button-bg)",border:"none",cursor:"pointer",color:"white",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-1, 1.5rem)",letterSpacing:"-0.01rem",width:"100%"},settingsButton:{display:"flex",height:"3rem",padding:"0.75rem 1rem",justifyContent:"center",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--settings-button-bg)",border:"none",cursor:"pointer",color:"var(--settings-button-text)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-1, 1.5rem)",letterSpacing:"-0.01rem",width:"100%"},deleteAccountButton:qn.deleteAccountButton,confirmationText:{...qn.confirmationText,width:"100%"},confirmationWarning:{...qn.confirmationWarning,width:"100%"},reasonInputContainer:qn.reasonInputContainer,reasonInputLabel:qn.reasonInputLabel,reasonInput:qn.reasonInput,buttonRow:{...qn.buttonRow,marginTop:"auto"},cancelButton:qn.cancelButton,confirmDeleteButton:qn.confirmDeleteButton,spacer:Rde.spacer,menuItem:{...Ua.menuItem,padding:"var(--spacing-medium, 1rem)",backgroundColor:"var(--surface-secondary-default)"},menuItemLabel:{...Ua.menuItemLabel,fontSize:"var(--size-small, 1rem)",lineHeight:"var(--line-height-medium, 1.25rem)"},menuItemValue:{...Ua.menuItemValue,fontSize:"var(--size-small, 1rem)"},menuItemArrow:{...Ua.menuItemArrow,fontSize:"1rem"}},Nde=({size:e=40,compact:t=!1})=>{const n=Bt(),r=An(V=>V.close),{email:i,isGuest:s,displayName:l,userId:u,isBottomSheetOpen:d,isAccountSettingsOpen:h,isDeleteAccountConfirmOpen:m,isDeletingAccount:g,handleSignOut:y,handleMobileProfileClick:b,handleCloseBottomSheet:S,handleOpenAccountSettings:I,handleBackFromAccountSettings:w,handleOpenDeleteAccountConfirm:C,handleCloseDeleteAccountConfirm:E,handleConfirmDeleteAccount:A}=ek(!0,!0),[_,R]=k.useState(""),L=t?"compact":"inlineRow",j=()=>{r(),n("/sign-in")},O=()=>{R(""),E(),w(),S()},F=()=>{m?(R(""),E()):h&&w()},D=async()=>{await A(_||void 0),R("")},H=h||m;return!u||s?c.jsx("button",{onClick:j,style:Bde(L,e),[Up]:"signedOut",children:"Sign in"}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:Fde(L,e),onClick:b,[Up]:"signedIn",children:[c.jsx(R1,{size:e,isClickable:!1}),!t&&c.jsxs("div",{style:Zt.userDetails,children:[c.jsx("div",{style:Zt.displayName,children:s?"Guest User":l||"User"}),!s&&_d(i)&&c.jsx("div",{style:Zt.email,children:_d(i)})]})]}),c.jsx(QI,{isOpen:d,onClose:O,onBack:H?F:void 0,title:m?"Delete Account":h?"Settings":"Account",minHeight:h?"72dvh":m?"48dvh":"40dvh",maxHeight:h?"92dvh":void 0,children:c.jsx("div",{style:Zt.bottomSheetContent,children:m?c.jsxs(c.Fragment,{children:[c.jsx("div",{style:Zt.confirmationWarning,children:"Are you sure you want to delete your account?"}),c.jsx("div",{style:Zt.confirmationText,children:"Your account will be deleted immediately. All your chat history will be permanently deleted. If you sign in again, you'll start with a fresh account."}),c.jsxs("div",{style:Zt.reasonInputContainer,children:[c.jsx("label",{htmlFor:"deletion-reason",style:Zt.reasonInputLabel,children:"Reason for leaving (optional)"}
90),c.jsx("textarea",{id:"deletion-reason",style:Zt.reasonInput,placeholder:"Help us improve by sharing why you're leaving...",value:_,onChange:V=>R(V.target.value),rows:2,disabled:g})]}),c.jsx("div",{style:Zt.spacer}),c.jsxs("div",{style:Zt.buttonRow,children:[c.jsx("button",{onClick:F,style:Zt.cancelButton,disabled:g,children:"Cancel"}),c.jsx("button",{onClick:D,style:Zt.confirmDeleteButton,disabled:g,children:g?"Deleting...":"Delete"})]})]}):h?c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:Zt.themeToggleContainer,children:[c.jsx("div",{style:Zt.themeToggleLabel,children:"Theme"}),c.jsx(EP,{size:20})]}),c.jsx(FP,{onClose:()=>{O(),r()}}),c.jsx(_P,{}),c.jsx(kde,{}),c.jsx(PP,{}),c.jsxs("button",{style:Zt.menuItem,onClick:()=>{O(),r(),n("/help")},children:[c.jsx("span",{style:Zt.menuItemLabel,children:"Help"}),c.jsx("span",{style:Zt.menuItemArrow,children:"â"})]}),c.jsxs("button",{style:Zt.menuItem,"aria-label":"What's new",onClick:()=>{O(),r(),n("/whats-new")},children:[c.jsx("span",{style:Zt.menuItemLabel,children:"Version"}),c.jsx("span",{style:Zt.menuItemValue,children:tk.currentVersion})]}),c.jsx("div",{style:Zt.spacer}),c.jsx("button",{onClick:C,style:Zt.deleteAccountButton,children:"Delete Account"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:Zt.bottomSheetUserInfo,children:[c.jsx(R1,{size:60,isClickable:!1}),c.jsxs("div",{style:Zt.bottomSheetUserDetails,children:[c.jsx("div",{style:Zt.bottomSheetDisplayName,children:s?"Guest User":l||"User"}),!s&&_d(i)&&c.jsx("div",{style:Zt.bottomSheetEmail,children:_d(i)})]})]}),s?c.jsx("button",{onClick:j,style:Zt.sheetSignInButton,children:"Sign in"}):c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:I,style:Zt.settingsButton,children:"Settings"}),c.jsx("button",{onClick:y,style:Zt.logOutButton,children:"Log Out"})]})]})})})]})},zde=e=>({...Bm("desktop",e,"signedIn"),position:"relative",display:"flex",alignItems:"center",flexShrink:0}),Hde=e=>({...Bm("desktop",e,"signedOut"),display:"flex",padding:`0 ${BP.desktop}`,justifyContent:"center",alignItems:"center",gap:"0.5rem",flexShrink:0,whiteSpace:"nowrap",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--action-gradient)",border:"none",cursor:"pointer",color:"#0E0E11",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-1, 1.5rem)",letterSpacing:"-0.01rem"}),gt={dropdown:{display:"flex",width:"16.25rem",padding:"var(--spacing-x-small, 0.5rem)",justifyContent:"space-between",alignItems:"flex-start",position:"absolute",right:0,borderRadius:"var(--radius-large, 0.75rem)",backgroundColor:"var(--dropdown-bg)",boxShadow:"var(--dropdown-shadow)",zIndex:1e3,border:"1px solid var(--dropdown-border)"},dropdownInner:{display:"flex",width:"15.25rem",flexDirection:"column",alignItems:"flex-start",flexShrink:0},dropdownButton:{display:"flex",height:"3rem",padding:"0.5rem 1rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",cursor:"pointer",border:"none",textAlign:"left",width:"100%"},dropdownButtonHover:{display:"flex",height:"3rem",padding:"0.5rem 1rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--dropdown-button-hover)",cursor:"pointer",border:"none",textAlign:"left",width:"100%"},dropdownButtonText:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,flex:"1 0 0",overflow:"hidden",color:"var(--text-default-primary)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem"},userDisplayName:{alignSelf:"stretch",color:"var(--text-default-secondary)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"},userEmail:{alignSelf:"stretch",color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-x-small, 1.125rem)"},userDetails:{display:"flex",paddingBottom:"var(--spacing-4x-small, 0.125rem)",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",ga
90p:"var(--spacing-4x-small, 0.125rem)",flex:"1 0 0"},userInfo:{display:"flex",padding:"1rem",alignItems:"center",gap:"0.75rem",alignSelf:"stretch",background:"transparent"},themeToggleContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:"0.5rem 1rem",alignSelf:"stretch"},themeToggleLabel:{...Ua.themeToggleLabel,fontSize:"var(--button-size-small, 0.875rem)",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem"},modalOverlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"var(--modal-overlay-bg)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e4},modalContent:{backgroundColor:"var(--modal-content-bg)",borderRadius:"var(--radius-large, 0.75rem)",padding:"1.5rem",width:"24rem",maxWidth:"90vw",boxShadow:"var(--modal-shadow)",position:"relative"},modalTitle:{color:"var(--modal-title-color)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"1.25rem",fontWeight:"600",marginBottom:"1.5rem"},modalSection:{display:"flex",flexDirection:"column",gap:"1rem",width:"100%"},deleteAccountButton:{...qn.deleteAccountButton,marginTop:"0.5rem"},deleteAccountButtonHover:{...qn.deleteAccountButton,marginTop:"0.5rem",backgroundColor:"var(--danger-button-hover-bg, rgba(239, 68, 68, 0.1))"},confirmationText:{...qn.confirmationText,textAlign:"center",marginBottom:"1rem"},confirmationWarning:{...qn.confirmationWarning,textAlign:"center",marginBottom:"0.5rem"},buttonRow:{...qn.buttonRow,marginTop:"0.5rem"},cancelButton:qn.cancelButton,cancelButtonHover:{...qn.cancelButton,backgroundColor:"var(--dropdown-button-hover)"},confirmDeleteButton:qn.confirmDeleteButton,confirmDeleteButtonHover:{...qn.confirmDeleteButton,backgroundColor:"var(--danger-button-hover, #dc2626)"},reasonInputContainer:{...qn.reasonInputContainer,marginTop:"0.5rem"},reasonInputLabel:qn.reasonInputLabel,reasonInput:qn.reasonInput,closeButton:{position:"absolute",top:"1rem",right:"1rem",background:"none",border:"none",cursor:"pointer",color:"var(--modal-close-color)",fontSize:"1.5rem",lineHeight:1,padding:"0.25rem",borderRadius:"var(--radius-small, 0.25rem)"},closeButtonHover:{position:"absolute",top:"1rem",right:"1rem",background:"var(--dropdown-button-hover)",border:"none",cursor:"pointer",color:"var(--modal-close-color)",fontSize:"1.5rem",lineHeight:1,padding:"0.25rem",borderRadius:"var(--radius-small, 0.25rem)"},menuItem:{...Ua.menuItem,padding:"0.5rem 1rem",backgroundColor:"transparent"},menuItemHover:{...Ua.menuItem,padding:"0.5rem 1rem",backgroundColor:"var(--dropdown-button-hover)"},menuItemLabel:{...Ua.menuItemLabel,fontSize:"var(--button-size-small, 0.875rem)",lineHeight:"var(--button-line-height-2, 1.25rem)"},menuItemValue:{...Ua.menuItemValue,fontSize:"var(--button-size-small, 0.875rem)"},menuItemArrow:{...Ua.menuItemArrow,fontSize:"0.875rem"}},Ude=({size:e=48})=>{const t=Bt(),{email:n,isGuest:r,displayName:i,userId:s,isDropdownOpen:l,isAccountSettingsOpen:u,isDeleteAccountConfirmOpen:d,isDeletingAccount:h,handleSignOut:m,toggleDropdown:g,setIsDropdownOpen:y,handleOpenAccountSettings:b,handleCloseAccountSettings:S,handleOpenDeleteAccountConfirm:I,handleCloseDeleteAccountConfirm:w,handleConfirmDeleteAccount:C}=ek(),[E,A]=k.useState(""),[_,R]=k.useState(null),L=q=>_===q?gt.dropdownButtonHover:gt.dropdownButton,j=q=>_===q?gt.menuItemHover:gt.menuItem,O=()=>_==="close"?gt.closeButtonHover:gt.closeButton,F=()=>_==="deleteAccount"?gt.deleteAccountButtonHover:gt.deleteAccountButton,D=()=>_==="cancel"?gt.cancelButtonHover:gt.cancelButton,H=()=>_==="confirmDelete"?gt.confirmDeleteButtonHover:gt.confirmDeleteButton,V=()=>{t("/sign-in")},Y=async()=>{await C(E||void 0),A("")},K=()=>{A(""),w()};if(k.useEffect(()=>{if(!l)return;const q=()=>{y(!1)},$=setTimeout(()=>{document.addEventListener("click",q)},100);return()=>{clearTimeout($),document.removeEventListener("click",q)}},[l,y]),!s||r)return c.jsx("button",{onClick:V,style:Hde(e),[Up]:"signedOut",children:"Sign in"});const z={...gt.dropdown,top:`${e+8}px`};return c.jsxs("div",{style:zde(e),onClick:q=>q.stopPropagation(),[Up]:"signedIn",children:[c.jsx(R1,{size:e,onClick:g,isClickable:!0}),l&&c.jsx("div",{style:z,"data-testid":"user-profile-dropdown",onClick:q=>q.stopPropagation(),children:c.jsxs("div",{style:gt.dropdownInner,children:[c.jsxs("div",{style:gt.userInfo,children:[c.jsx(R1,{size:40,isClickable:!1}),c.jsxs("div",{style:gt.userDetails,children:[c.jsx("div",{style:gt.userDisplayName,children:r?"Guest User":i||"User"}),!r&&_d(n)&&c.jsx("div",{style:gt.userEmail,children:_d(n)})]})]}),r?c.jsx("button",{onClick:V,style:L("signIn"),onMouseEnter:()=>R("signIn"),onMouseLeave:()=>R(null),children:c.jsx("span",{style:gt.dropdownButtonText,children:"Sign in"})}):c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:b,style:L("settings"),onMouseEnter:()=>R("settings"),onMouseLeave:()=>R(null),children:c.jsx("span",{style:gt.dropdownButtonText,children:"Settings"})}),c.jsx("button",{"data-testid":"logout-button",onClick:m,style:L("logout"),onMouseEnter:()=>R("logout"),onMouseLeave:()=>R(null),children:c.jsx("span",{style:gt.dropdownButtonText,children:"Log out"})})]})]})}),u&&c.jsx(Aa,{children:c.jsx("div",{style:gt.modalOverlay,onClick:S,children:c.jsxs("div",{style:gt.modalContent,onClick:q=>q.stopPropagation(),children:[c.jsx("button",{style:O(),onClick:S,onMouseEnter:()=>R("close"),onMouseLeave:()=>R(null),"aria-label":"Close settings",children:"Ã"}),c.jsx("div",{style:gt.modalTitle,children:"Settings"}),c.jsxs("div",{style:gt.modalSection,children:[c.jsxs("div",{style:gt.themeToggleContainer,children:[c.jsx("div",{style:gt.themeToggleLabel,children:"Theme"}),c.jsx(EP,{size:20})]}),c.jsx(FP,{onClose:S}),c.jsx(_P,{}),c.jsx(PP,{}),c.jsxs("button",{style:j("help"),onClick:()=>{S(),t("/help")},onMouseEnter:()=>R("help"),onMouseLeave:()=>R(null),children:[c.jsx("span",{style:gt.menuItemLabel,children:"Help"}),c.jsx("span",{style:gt.menuItemArrow,children:"â"})]}),c.jsxs("button",{style:j("version"),"aria-label":"What's new",onClick:()=>{S(),t("/whats-new")},onMouseEnter:()=>R("version"),onMouseLeave:()=>R(null),children:[c.jsx("span",{style:gt.menuItemLabel,children:"Version"}),c.jsx("span",{style:gt.menuItemValue,children:tk.currentVersion})]}),c.jsx("button",{onClick:I,style:F(),onMouseEnter:()=>R("deleteAccount"),onMouseLeave:()=>R(null),children:"Delete Account"})]})]})})}),d&&c.jsx(Aa,{children:c.jsx("div",{style:gt.modalOverlay,onClick:K,children:c.jsxs("div",{style:gt.modalContent,onClick:q=>q.stopPropagation(),children:[c.jsx("div",{style:gt.modalTitle,children:"Delete Account"}),c.jsx("div",{style:gt.confirmationWarning,children:"Are you sure you want to delete your account?"}),c.jsx("div",{style:gt.confirmationText,children:"Your account will be deleted immediately. All your chat history will be permanently deleted. If you sign in again, you'll start with a fresh account."}),c.jsxs("div",{style:gt.reasonInputContainer,children:[c.jsx("label",{htmlFor:"desktop-deletion-reason",style:gt.reasonInputLabel,children:"Reason for leaving (optional)"}),c.jsx("textarea",{id:"desktop-deletion-reason",style:gt.reasonInput,placeholder:"Help us improve by sharing why you're leaving...",value:E,onChange:q=>A(q.target.value),rows:2,disabled:h})]}),c.jsxs("div",{style:gt.buttonRow,children:[c.jsx("button",{onClick:K,style:D(),onMouseEnter:()=>R("cancel"),onMouseLeave:()=>R(null),disabled:h,children:"Cancel"}),c.jsx("button",{onClick:Y,style:H(),onMouseEnter:()=>R("confirmDelete"),onMouseLeave:()=>R(null),disabled:h,children:h?"Deleting...":"Delete"})]})]})})})]})},nk=({size:e=48,showInlineInfo:t,compact:n=!1})=>{const{isLoading:r}=ti(),{isMobile:i}=We(),s=be(g=>g.userId),l=be(g=>g.isGuest),u=i||!!t,d=u?n?"compact":"inlineRow":"desktop",[h]=G.useState(Mde),m=!s||l?"signedOut":"signedIn";return G.useEffect(()=>{r||Pde(m)},[r,m]),r?c.jsx("div",{"aria-hidden":!0,"data-testid":"user-profile-auth-pending",[Up]:"pe
90nding",style:{...Bm(d,e,h),flexShrink:0}}):u?c.jsx(Nde,{size:e,compact:n}):c.jsx(Ude,{size:e})},yd={container:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",height:"var(--header-height, 4rem)",position:"relative"},leftSideContainer:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-medium, 1rem)",flex:1},centerLogo:{position:"absolute",left:"50%",transform:"translateX(-50%)",zIndex:1},centerTitle:{position:"absolute",left:"50%",transform:"translateX(-50%)",zIndex:1,color:"var(--text-default-primary, #0E0E11)",fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem"},rightSideContainer:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-small, 0.75rem)",marginLeft:"auto"},groupedButtons:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)"}},Wde=({title:e,showNewChat:t=!0})=>c.jsxs("div",{style:yd.container,children:[c.jsxs("div",{style:yd.leftSideContainer,children:[c.jsx(mP,{}),c.jsx(wP,{})]}),e?c.jsx("span",{style:yd.centerTitle,children:e}):c.jsx("div",{style:yd.centerLogo,children:c.jsx(CP,{})}),c.jsxs("div",{style:yd.rightSideContainer,children:[c.jsxs("div",{style:yd.groupedButtons,children:[c.jsx(Iue,{}),c.jsx(sde,{}),t&&c.jsx(IP,{})]}),c.jsx(kP,{}),c.jsx(nk,{size:44})]})]}),NS={buttonBase:{position:"relative",display:"inline-flex",flexDirection:"row",padding:"0.625rem",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",borderRadius:"var(--radius-medium, 0.5rem)",transition:"background-color 0.15s ease, transform 0.15s ease",margin:0},icon:{width:"1.25rem",height:"1.25rem",aspectRatio:"1/1",transition:"filter 0.3s ease"}},zS="linear-gradient(90deg, #FCDA2E 0.09%, #FDB341 99.91%)",Vde=()=>{const{colors:e}=ze(),{mode:t,isShared:n,assistantInProgress:r,hasShareableChat:i,isManageOpen:s,shareUrl:l,snapshotUpdatedAtEpochS:u,updating:d,revoking:h,busy:m,handleShareTap:g,closeManage:y,handleCopy:b,handleUpdate:S,handleRevoke:I}=lP(),w=U(F=>F.chatId),C=hn(F=>F.historyItems.find(D=>D.id===w)?.name),[E,A]=k.useState(!1),[_,R]=k.useState(!1);if(!i)return null;const L=t==="minting",j=r||L,O=()=>j?{background:"none",backgroundColor:"transparent"}:_?n?{background:zS,transform:"scale(0.95)"}:{background:"none",backgroundColor:e.buttonActive,transform:"scale(0.95)"}:E?n?{background:zS,transform:"scale(0.98)"}:{background:"none",backgroundColor:e.buttonHover}:n?{background:zS}:{background:"none",backgroundColor:"transparent"};return c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",style:{...NS.buttonBase,...O(),opacity:j&&!L?.5:1,cursor:j?"not-allowed":"pointer"},onClick:g,disabled:j,"data-testid":"mobile-chat-share-button","aria-label":r?"Share (disabled while assistant is thinking)":n?"Manage shared chat":"Share chat",onMouseEnter:()=>!j&&A(!0),onMouseLeave:()=>{A(!1),R(!1)},onMouseDown:()=>!j&&R(!0),onMouseUp:()=>R(!1),onTouchStart:()=>!j&&R(!0),onTouchEnd:()=>R(!1),onTouchCancel:()=>R(!1),children:L?c.jsx("img",{src:gl,alt:"","aria-hidden":"true",className:"spinner-rotate",style:{...NS.icon,filter:e.iconFilter}}):c.jsx("img",{src:sf,alt:"",style:{...NS.icon,filter:n?"none":e.iconFilter}})}),c.jsx(hP,{isOpen:s,onClose:y,shareUrl:l,chatTitle:C,snapshotUpdatedAtEpochS:u,updating:d,revoking:h,busy:m,onCopy:b,onUpdate:S,onRevoke:I})]})},qde="var(--spacing-medium, 1rem)",q0="var(--spacing-3x-small, 0.25rem)",G0={container:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",height:"var(--header-height, 4rem)",position:"relative"},centerSlot:{position:"absolute",left:"50%",transform:"translateX(-50%)",zIndex:1},rightSideContainer:{display:"flex",flexDirection:"row",alignItems:"center",gap:0,paddingTop:q0,paddingBottom:q0,paddingLeft:q0,paddingRight:q0,borderRadius:"var(--radius-medium, 0.5rem)",marginLeft:"auto"},title:{color:"var(--text-default-primary, #0E0E11)",fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlice
90nsed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",textAlign:"center"}},Gde=({title:e,showNewChat:t=!0,showAccountControl:n=!1})=>c.jsxs("div",{style:G0.container,children:[c.jsx(mP,{}),c.jsx("div",{style:G0.centerSlot,children:e?c.jsx("span",{style:G0.title,children:e}):c.jsx(CP,{})}),c.jsxs("div",{"data-testid":"mobile-header-trailing",style:{...G0.rightSideContainer,...n?{paddingRight:qde}:null},children:[c.jsx(Vde,{}),t&&c.jsx(IP,{iconOnly:!0}),c.jsx(kP,{iconOnly:!0}),n&&c.jsx(nk,{compact:!0,size:32})]})]}),es=({title:e,showNewChat:t=!0,showAccountControl:n=!1})=>{const{isMobile:r}=We();return r?c.jsx(Gde,{title:e,showNewChat:t,showAccountControl:n}):c.jsx(Wde,{title:e,showNewChat:t})},jl="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.6667%201.66667H5.00001C4.08334%201.66667%203.34167%202.41667%203.34167%203.33334L3.33334%2016.6667C3.33334%2017.5833%204.07501%2018.3333%204.99167%2018.3333H15C15.9167%2018.3333%2016.6667%2017.5833%2016.6667%2016.6667V6.66667L11.6667%201.66667ZM13.3333%2013.3333H6.66667V11.6667H13.3333V13.3333ZM13.3333%2010H6.66667V8.33334H13.3333V10ZM10.8333%207.50001V2.91667L15.4167%207.50001H10.8333Z'%20fill='currentColor'/%3e%3c/svg%3e",Yde="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline%20data-name='Right'%20fill='none'%20points='3%2017.3%203%2021%206.7%2021'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cline%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20x1='10'%20x2='3.8'%20y1='14'%20y2='20.2'/%3e%3cline%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20x1='14'%20x2='20.2'%20y1='10'%20y2='3.8'/%3e%3cpolyline%20data-name='Right'%20fill='none'%20points='21%206.7%2021%203%2017.3%203'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/svg%3e",io="Tech Blog",Kde=[{id:"microservices-deployment-stack",title:"Building a Startup-Friendly Microservices Deployment Stack",publishedAt:"2026-02-06"},{id:"deployment-workflow",title:"Complete Deployment Workflow: 7 Steps to Safe Releases",publishedAt:"2026-02-11"},{id:"tonita-mcp",title:"Tonita is for Agents, too!",publishedAt:"2026-05-27"}],rk=[...Kde].sort((e,t)=>t.publishedAt.localeCompare(e.publishedAt)),mR=rk[0].id,O1=`â Back to ${io}`;function zP(e){return rk.some(t=>t.id===e)}const Xde=()=>({display:"flex",flexDirection:"column",width:"100%",height:"100dvh",backgroundColor:"var(--surface-primary-default, #FFFFFF)"}),Jde=()=>({flex:1,paddingTop:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-x-large, 2rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-x-large, 2rem)",justifyContent:"flex-start",alignItems:"stretch",overflowY:"auto",overflowX:"hidden",minHeight:0,maxHeight:"100%",overscrollBehavior:"contain"}),Zde=e=>({position:"fixed",top:0,left:0,right:0,zIndex:1100,backgroundColor:"var(--surface-primary-default, #FFF)",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:0,paddingLeft:e?0:"var(--spacing-small, 0.75rem)",paddingRight:e?0:"var(--spacing-small, 0.75rem)",touchAction:"none"}),ee={mainContent:{display:"flex",flexDirection:"column",maxWidth:"48rem",margin:"0 auto",width:"100%",gap:"var(--spacing-medium, 1rem)",border:"1px solid var(--border-default, #E5E5E7)",borderRadius:"var(--radius-medium, 0.5rem)",backgroundColor:"var(--surface-primary-default)",padding:"clamp(1.25rem, 0.7rem + 2.2vw, 2rem)"},blogHeader:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-large, 1.5rem)",borderBottom:"1px solid var(--border-default, #E5E5E7)"},blogTitle:{fontFeatureSettings:'"case" on, "salt" on, "ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlice
90nsed Trial")',fontSize:"var(--size-3x-large, 2rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.2",letterSpacing:"-0.04rem",color:"var(--text-default-primary)"},blogSubtitle:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-medium, 1.125rem)",fontStyle:"italic",fontWeight:400,lineHeight:"1.5",color:"var(--text-default-secondary)"},authorName:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",fontWeight:500,color:"var(--text-default-primary)"},section:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},sectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-x-large, 1.5rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginTop:"var(--spacing-medium, 1rem)"},subSectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginTop:"var(--spacing-small, 0.75rem)"},paragraph:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:400,lineHeight:"1.7",letterSpacing:"-0.01rem"},codeBlock:{padding:"var(--spacing-medium, 1rem)",borderRadius:"var(--radius-medium, 0.5rem)",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.8rem",lineHeight:"1.6",overflowX:"auto",whiteSpace:"pre"},codeBlockStyles:{backgroundColor:"var(--code-block-bg)",color:"var(--code-block-text)",border:"1px solid var(--code-block-border)"},codeCaption:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--spacing-x-small, 0.5rem)"},codeLabel:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05em"},githubLink:{color:"#6366f1",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:500,textDecoration:"none",cursor:"pointer"},inlineCode:{backgroundColor:"var(--surface-secondary-default, #F2F2F3)",padding:"0.125rem 0.375rem",borderRadius:"0.25rem",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.875em",color:"var(--inline-code-text)"},diagramContainer:{padding:"var(--spacing-large, 1.5rem)",borderRadius:"var(--radius-large, 0.75rem)",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.75rem",lineHeight:"1.5",overflowX:"auto",whiteSpace:"pre",backgroundColor:"var(--diagram-bg)",color:"var(--diagram-text)",border:"1px solid var(--diagram-border)"},table:{width:"100%",borderCollapse:"collapse",marginTop:"var(--spacing-small, 0.75rem)",fontSize:"var(--size-x-small, 0.875rem)"},tableHeader:{backgroundColor:"var(--surface-secondary-default, #F2F2F3)",textAlign:"left",padding:"var(--spacing-small, 0.75rem)",fontWeight:600,borderBottom:"2px solid var(--border-default, #E5E5E7)"},tableCell:{padding:"var(--spacing-small, 0.75rem)",borderBottom:"1px solid var(--border-default, #E5E5E7)",verticalAlign:"top"},highlightBox:{backgroundColor:"rgba(253, 228, 104, 0.15)",border:"1px solid rgba(253, 228, 104, 0.4)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},calloutBox:{backgroundColor:"rgba(99, 102, 241, 0.1)",border:"1px solid rgba(99, 102, 241, 0.3)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},warningBox:{backgroundColor:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},noteBox:{backgroundColor:"rgba(34, 211, 238, 0.1)",border:"1px solid rgba(34, 211, 238, 0.3)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)",marginTop:"var(--spacing-small, 0.75rem)"},screenshot:{width:"100%",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default, #E5E5E7)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",marginTop:"var(--spacing-small, 0.75rem)"},screenshotCaption:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontStyle:"italic",textAlign:"center",marginTop:"var(--spacing-x-small, 0.5rem)"},footer:{marginTop:"var(--spacing-x-large, 2rem)",paddingTop:"var(--spacing-large, 1.5rem)",borderTop:"1px solid var(--border-default, #E5E5E7)",textAlign:"center"},footerText:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontStyle:"italic"},stepNumber:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.5rem",height:"1.5rem",borderRadius:"50%",backgroundColor:"#6366f1",color:"#ffffff",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:600,marginRight:"0.5rem"},backLink:{display:"inline-flex",alignItems:"center",gap:"0.5rem",color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",textDecoration:"none",marginBottom:"var(--spacing-medium, 1rem)",cursor:"pointer"},navButton:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"},navButtonHover:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:"var(--dropdown-button-hover)",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"},navButtonActive:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:"var(--dropdown-button-active)",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"},createNavButtonSelected:e=>({display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:e?"var(--dropdown-button-hover)":"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"}),navButtonText:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlice
90nsed Trial")',fontSize:"var(--size-small, 0.9375rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00938rem"},mobileMenuItemContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",paddingLeft:"var(--spacing-large, 1.5rem)",paddingRight:"var(--spacing-large, 1.5rem)",paddingTop:"var(--spacing-small, 0.75rem)",paddingBottom:"var(--spacing-small, 0.75rem)",cursor:"pointer",transition:"background-color 0.15s ease",gap:"0.75rem",backgroundColor:"transparent",border:"none",textAlign:"left"},mobileMenuItemContainerHover:{backgroundColor:"var(--dropdown-button-hover)"},mobileMenuItemContainerActive:{backgroundColor:"var(--dropdown-button-active)"}},Sr=({label:e,githubPath:t,children:n})=>c.jsxs("div",{children:[c.jsxs("div",{style:ee.codeCaption,children:[c.jsx("span",{style:ee.codeLabel,children:e}),t&&c.jsx("a",{href:`https://github.com/tonitaco/tonita-oss/blob/main/microservices-deployment-stack/${t}`,target:"_blank",rel:"noopener noreferrer",style:ee.githubLink,children:"View on GitHub â"})]}),c.jsx("pre",{style:{...ee.codeBlock,...ee.codeBlockStyles},children:n})]}),HP=({asNavButton:e=!1})=>{const{colors:t}=ze(),{isMobile:n}=We(),r=Bt(),i=Pt(),[s,l]=G.useState(!1),[u,d]=G.useState(!1),h=i.pathname==="/blog/microservices-deployment-stack";if(e&&n){const m=()=>u?{...ee.mobileMenuItemContainer,...ee.mobileMenuItemContainerActive}:s?{...ee.mobileMenuItemContainer,...ee.mobileMenuItemContainerHover}:ee.mobileMenuItemContainer;return c.jsxs("button",{style:m(),onMouseEnter:()=>l(!0),onMouseLeave:()=>{l(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onClick:()=>r("/blog/microservices-deployment-stack"),children:[c.jsx("img",{src:jl,alt:"Microservices Deployment Stack",style:Dt(t.text,"1.25rem")}),c.jsx("span",{style:ee.navButtonText,children:"Microservices Deployment Stack"})]})}if(e){const m=()=>h?ee.createNavButtonSelected(s):u?ee.navButtonActive:s?ee.navButtonHover:ee.navButton;return c.jsxs("button",{style:m(),onMouseEnter:()=>l(!0),onMouseLeave:()=>{l(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onClick:()=>r("/blog/microservices-deployment-stack"),children:[c.jsx("img",{src:jl,alt:"Microservices Deployment Stack",style:Dt(t.text,"1.25rem")}),c.jsx("span",{style:ee.navButtonText,children:"Microservices Deployment Stack"})]})}return c.jsxs("div",{style:Xde(),"data-testid":"microservices-deployment-blog",children:[c.jsx("div",{style:Zde(n),children:c.jsx(es,{title:io})}),c.jsx("div",{style:Jde(),children:c.jsxs("div",{className:"blog-page-card",style:ee.mainContent,children:[c.jsx("div",{style:ee.backLink,"data-testid":"blog-back-link",onClick:()=>r("/blog"),onKeyDown:m=>m.key==="Enter"&&r("/blog"),role:"button",tabIndex:0,children:O1}),c.jsxs("header",{style:ee.blogHeader,children:[c.jsx("h1",{style:ee.blogTitle,children:"Building a Startup-Friendly Microservices Deployment Stack"}),c.jsx("p",{style:ee.blogSubtitle,children:"From chaos to one-command deployments with Bash, Skaffold, Helm & Istio"}),c.jsx("span",{style:ee.authorName,children:"By Raghul Ravi (AI Software & Systems Engineer, Tonita)"}),c.jsx("div",{style:ee.noteBox,children:c.jsxs("p",{style:ee.paragraph,children:["ð ",c.jsx("strong",{children:"Platform Note:"})," This tutorial was tested on a setup comprising ",c.jsx("strong",{children:"Helm"}),","," ",c.jsx("strong",{children:"Skaffold"}),", and ",c.jsx("strong",{children:"Kubernetes"})," on the Google Cloud ecosystem, where ",c.jsx("strong",{children:"GKE"})," was used for Kubernetes and ",c.jsx("strong",{children:"Istio"})," was set up in GKE. However, the concepts and code are applicable to"," ",c.jsx("strong",{children:"any Kubernetes cluster"}),", whether you're running on AWS EKS, Azure AKS, DigitalOcean Kubernetes, or a self-hosted cluster. Detailed blogs on setting up each component (Helm, Skaffold, Kubernetes cluster, and Istio) will be covered in following blog posts."]})})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"The Problem We Needed to Solve"}),c.jsx("p",{style:ee.paragraph,children:"Picture this: you have a growing startup with multiple microservices. Each service needs to be deployed, tested, and sometimes rolled back. You want to test new features without breaking things for users. And you need this to work on any Kubernetes cluster, whether it's in the cloud or running locally."}),c.jsx("p",{style:ee.paragraph,children:"We built a deployment system that does exactly this. One command deploys everything. It works with any Kubernetes cluster, including GKE, EKS, AKS, or even a local cluster. And here's the cool part: you can run multiple versions of the same service simultaneously and control which users see which version."}),c.jsx("p",{style:ee.paragraph,children:"Let's walk through how it all works, step by step."})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"Kubernetes Deployment"}),c.jsx("p",{style:ee.paragraph,children:"The deployment system is built for Kubernetes, any Kubernetes cluster. Whether you're running on Google Kubernetes Engine (GKE), Amazon EKS, Azure AKS, DigitalOcean Kubernetes, or a self-hosted cluster, the same commands work. The script uses standard Kubernetes tools: Helm for packaging deployments, Skaffold for build-push-deploy automation, and Istio for traffic management."}),c.jsx("p",{style:ee.paragraph,children:"The key challenge: how do you safely test new code without breaking things for real users? That's where Istio comes in."})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"What is Istio? (And Why Do We Need It?)"}),c.jsx("h3",{style:ee.subSectionTitle,children:"The Problem Without Istio"}),c.jsx("p",{style:ee.paragraph,children:"Without Istio, Kubernetes is pretty simple but limited. When you deploy a new version of your service, it just... replaces the old one. Want to test the new version first? Too bad, it's already live. Want to gradually roll out to 10% of users? Kubernetes alone can't do that."}),c.jsx("div",{style:ee.warningBox,children:c.jsxs("p",{style:ee.paragraph,children:[c.jsx("strong",{children:"Without Istio:"})," Deploy new version â Old version gone â Everyone sees new version immediately â If there's a bug, everyone is affected."]})}),c.jsx("h3",{style:ee.subSectionTitle,children:"What Istio Actually Does"}),c.jsx("p",{style:ee.paragraph,children:'Istio is a "service mesh". Think of it as a smart traffic cop that sits between your users and your services. Every request goes through Istio first, and Istio decides where to send it.'}),c.jsx("p",{style:ee.paragraph,children:"This means you can run v1 and v2 of the same service at the same time, and Istio will route traffic between them based on rules you define. Maybe 90% goes to v1 (stable) and 10% goes to v2 (testing). Maybe requests with a special header go to v2. You control it."}),c.jsx("pre",{style:ee.diagramContainer,children:` User Request 91 â 92 â¼ 93 âââââââââââââââââ 94 â Istio Gateway â â Entry point to your cluster 95 âââââââââ¬ââââââââ 96 â 97 â¼ 98 âââââââââââââââââââ 99 â VirtualService â â "Which version should handle this?" 100 ââââââââââ¬âââââââââ 101 â 102 ââââââââââââ´âââââââââââ 103 â â 104 â¼ â¼ 105ââââââââââ ââââââââââ 106â v1 â â v2 â 107â 90% â â 10% â 108ââââââââââ ââââââââââ`})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"The Three Key Istio Resources"}),c.jsx("p",{style:ee.paragraph,children:"There are three Istio resources you need to understand. Think of them as layers that work together:"}),c.jsxs("h3",{style:ee.subSectionTitle,children:[c.jsx("span",{style:ee.stepNumber,children:"1"}),"Istio Gateway - The Front Door"]}),c.jsx("p",{style:ee.paragraph,children:"The Gateway is like the front door to your application. It accepts traffic from the outside world (the internet) and lets it into your cluster. You typically have one Gateway for your whole application."}),c.jsx("p",{style:ee.paragraph,children:`The Gateway says: "I'll accept HTTP traffic on port 80 for requests to my-app.example.com."`}),c.jsx(Sr,{label:"Gateway - Accepts external traffic",githubPath:"ops/helm-charts/gateway.yaml",children:`apiVersion: networking.istio.io/v1beta1 109kind: Gateway 110metadata: 111 name: main-gateway 112spec: 113 selector: 114 istio: ingressgateway # Use Istio's built-in gateway 115 servers: 116 - port: 117 number: 80 118 name: http 119 protocol: HTTP 120 hosts: 121 - "my-app.example.com" # Accept traffic for this domain`}),c.jsxs("h3",{style:ee.subSectionTitle,children:[c.jsx("span",{style:ee.stepNumber,children:"2"}),"VirtualService - The Traffic Router"]}),c.jsx("p",{style:ee.paragraph,children:"This is where the magic happens. The VirtualService defines routing rules. When a request comes in, it decides: should this go to v1? v2? Both with different weights? Should requests with a special header go somewhere specific?"}),c.jsx("p",{style:ee.paragraph,children:'Think of it as a smart receptionist who looks at each request and says "You go to room A, you go to room B."'}),c.jsx(Sr,{label:"VirtualService - Routes traffic between versions",githubPath:"ops/helm-charts/microservice-1/templates/virtualservice.yaml",children:`apiVersion: networking.istio.io/v1beta1 122kind: VirtualService 123metadata: 124 name: microservice-1 125spec: 126 hosts: 127 - microservice-1 # Internal service name 128 gateways: 129 - main-gateway # Connected to our Gateway 130 http: 131 # Rule 1: Header-based routing for developers 132 - match: 133 - headers: 134 x-version: 135 exact: "v2" # If request has "x-version: v2" header 136 route: 137 - destination: 138 host: microservice-1 139 subset: v2 # Send to v2 140 141 # Rule 2: Default traffic split 142 - route: 143 - destination: 144 host: microservice-1 145 subset: v1 146 weight: 90 # 90% to v1 147 - destination: 148 host: microservice-1 149 subset: v2 150 weight: 10 # 10% to v2`}),c.jsx("div",{style:ee.calloutBox,children:c.jsxs("p",{style:ee.paragraph,children:[c.jsx("strong",{children:"ð¡ The Developer Hack:"})," See that header match rule? This is how developers test v2 without affecting real users. Just add the header",c.jsx("code",{style:{...ee.inlineCode},children:"x-version: v2"})," ","to your request, and you'll always hit v2, even if it's receiving 0% of normal traffic!"]})}),c.jsxs("h3",{style:ee.subSectionTitle,children:[c.jsx("span",{style:ee.stepNumber,children:"3"}),'DestinationRule - Defining What "v1" and "v2" Mean']}),c.jsx("p",{style:ee.paragraph,children:`The VirtualService references "subsets" like v1 and v2, but Kubernetes doesn't know
150what those mean. The DestinationRule defines them. It says: "v1 means pods with the label version=v1, and v2 means pods with version=v2."`}),c.jsx(Sr,{label:"DestinationRule - Defines version subsets",githubPath:"ops/helm-charts/microservice-1/templates/destinationrule.yaml",children:`apiVersion: networking.istio.io/v1beta1 151kind: DestinationRule 152metadata: 153 name: microservice-1 154spec: 155 host: microservice-1 156 subsets: 157 - name: v1 158 labels: 159 version: v1 # Pods with this label are "v1" 160 - name: v2 161 labels: 162 version: v2 # Pods with this label are "v2"`})]}),c.jsx("section",{style:ee.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-success-bg)",border:"1px solid var(--status-success-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{...ee.sectionTitle,color:"var(--status-success)",marginTop:0},children:"TRAFFIC.yaml: The Single Source of Truth"}),c.jsxs("p",{style:ee.paragraph,children:["All traffic weights are managed through a single configuration file called"," ",c.jsx("code",{style:{...ee.inlineCode},children:"TRAFFIC.yaml"}),". This file is the single source of truth for how traffic is split between versions."]}),c.jsx("h3",{style:ee.subSectionTitle,children:"File Location"}),c.jsxs("p",{style:ee.paragraph,children:["Each service has its own"," ",c.jsx("code",{style:{...ee.inlineCode},children:"TRAFFIC.yaml"}),"file located in the"," ",c.jsx("code",{style:{...ee.inlineCode},children:"deployments/"}),"folder within the service's Helm chart directory:"]}),c.jsx("pre",{style:{...ee.diagramContainer},children:`ops/ 163âââ helm-charts/ 164 âââ microservice-1/ 165 âââ skaffold.yaml 166 âââ values.yaml 167 âââ templates/ 168 â âââ deployment.yaml 169 â âââ virtualservice.yaml 170 â âââ destinationrule.yaml 171 âââ deployments/ 172 âââ TRAFFIC.yaml â Traffic weights configuration`}),c.jsx("h3",{style:ee.subSectionTitle,children:"File Structure"}),c.jsx("p",{style:ee.paragraph,children:"The file uses a simple YAML format to define traffic weights for each version:"}),c.jsx(Sr,{label:"TRAFFIC.yaml - File structure",githubPath:"ops/helm-charts/microservice-1/deployments/TRAFFIC.yaml",children:`# Traffic splitting configuration 173# Usage: helm upgrade ms1 . -f deployments/TRAFFIC.yaml 174# 175# IMPORTANT: Weights are RELATIVE, not absolute percentages! 176# Example: v1=50, v2=50, v3=50 (total=150) means each gets 33.3% 177 178versions: 179 - name: v1 180 weight: 50 # Relative weight, not percentage 181 - name: v2 182 weight: 50 # Relative weight, not percentage 183 - name: v3 184 weight: 0 # Not receiving traffic (but can be deployed)`}),c.jsx("h3",{style:ee.subSectionTitle,children:"How It's Used"}),c.jsxs("p",{style:ee.paragraph,children:["The"," ",c.jsx("code",{style:{...ee.inlineCode},children:"TRAFFIC.yaml"}),"file is used in two ways:"]}),c.jsxs("ol",{style:{...ee.paragraph,paddingLeft:"1.5rem"},children:[c.jsxs("li",{style:{marginBottom:"0.5rem"},children:[c.jsx("strong",{children:"By Helm:"})," When you run"," ",c.jsx("code",{style:{...ee.inlineCode},children:"helm upgrade"}),", Helm reads this file and applies the weights to the VirtualService configuration."]}),c.jsxs("li",{style:{marginBottom:"0.5rem"},children:[c.jsx("strong",{children:"By run.sh:"})," The deployment script reads and writes to this file when you use commands like"," ",c.jsx("code",{style:{...ee.inlineCode},children:"update_traffic"}),". When you deploy a new version with"," ",c.jsx("code",{style:{...ee.inlineCode},children:"start"}),", it automatically adds the new version to this file with 0% traffic."]})]}),c.jsx("h3",{style:ee.subSectionTitle,children:"Updating Traffic Weights"}),c.jsx("p",{style:ee.paragraph,children:"To change traffic distribution, you have two options:"}),c.jsxs("ol",{style:{...ee.paragraph,paddingLeft:"1.5rem"},children:[c.jsxs("li",{style:{marginBottom:"0.5rem"},children:[c.jsx("strong",{children:"Edit the file manually:"})," Open"," ",c.jsx("code",{style:{...ee.inlineCode},children:"helm-charts/microservice-1/deployments/TRAFFIC.yaml"}),", change the weights, then run"," ",c.jsx("code",{style:{...ee.inlineCode},children:"./ops/run.sh update_traffic microservice-1 v1"}),"."]}),c.jsxs("li",{style:{marginBottom:"0.5rem"},children:[c.jsx("strong",{children:"Use the update_traffic command:"})," The command reads the current weights from the file, updates the specified version's weight, and applies the changes via Helm."]})]}),c.jsx("div",{style:{backgroundColor:"var(--status-highlight-bg)",border:"1px solid var(--status-highlight-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{...ee.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Key Point:"})," The file only contains versions that are currently deployed. When you deploy a new version, it's automatically added. When you delete a ver
184sion, it's removed from the file. This ensures the file always reflects the actual state of your deployments."]})})]})}),c.jsx("section",{style:ee.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-warning-bg)",border:"1px solid var(--status-warning-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{...ee.sectionTitle,color:"var(--status-warning)",marginTop:0},children:"â ï¸ Understanding Traffic Distribution Variance"}),c.jsx("p",{style:ee.paragraph,children:c.jsx("strong",{children:'Why tests might show "FAIL" but everything is actually working correctly:'})}),c.jsxs("p",{style:ee.paragraph,children:["Istio's traffic splitting uses"," ",c.jsx("strong",{children:"probabilistic routing"})," - each request is like a coin toss. With small sample sizes (e.g., 30 requests), you'll see natural variance:"]}),c.jsxs("ul",{style:{...ee.paragraph,paddingLeft:"1.5rem",marginTop:"0.5rem"},children:[c.jsxs("li",{style:{marginBottom:"0.5rem"},children:[c.jsx("strong",{children:"Expected 50/50 split:"})," You might see 23%/77% or 36%/64% instead of exactly 50%/50%"]}),c.jsxs("li",{style:{marginBottom:"0.5rem"},children:[c.jsx("strong",{children:"Expected 33/33/33 split:"})," You might see 13%/43%/43% instead of exactly 33%/33%/33%"]})]}),c.jsxs("p",{style:ee.paragraph,children:["This is ",c.jsx("strong",{children:"completely normal"})," and expected behavior! It's the same as flipping a coin 30 times - you won't always get exactly 15 heads and 15 tails."]}),c.jsx("p",{style:ee.paragraph,children:c.jsx("strong",{children:"Real-world impact:"})}),c.jsxs("ul",{style:{...ee.paragraph,paddingLeft:"1.5rem",marginTop:"0.5rem"},children:[c.jsxs("li",{style:{marginBottom:"0.5rem"},children:["With ",c.jsx("strong",{children:"thousands of requests"}),", the distribution converges to the exact weights"]}),c.jsxs("li",{style:{marginBottom:"0.5rem"},children:["With ",c.jsx("strong",{children:"small test samples"}),", variance is expected and acceptable"]}),c.jsx("li",{style:{marginBottom:"0.5rem"},children:"The tests use wide acceptance ranges (20-80% for 50/50, 10-60% for 33/33/33) to account for this"})]}),c.jsxs("p",{style:ee.paragraph,children:[c.jsx("strong",{children:"Bottom line:"})," If your test shows variance but stays within the wide ranges, your traffic splitting is working correctly. The weights are applied correctly; you're just seeing the natural randomness of probabilistic routing with small sample sizes."]})]})}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"Tracing a Request Step by Step"}),c.jsx("p",{style:ee.paragraph,children:"Let's trace what happens when a user makes a request:"}),c.jsx("pre",{style:ee.diagramContainer,children:`User: curl https://my-app.example.com/api/hello 185 186Step 1: Request hits the Istio Gateway 187 Gateway checks: "This is for my-app.example.com, let it in" 188 189Step 2: VirtualService checks the request 190 No x-version header? Use the default route. 191 Roll the dice: 90% chance goes to v1, 10% chance goes to v2 192 193Step 3: DestinationRule translates the subset 194 "v1 means pods with label version=v1" 195 Finds a healthy pod with that label 196 197Step 4: Request reaches the actual container 198 Python/Node.js code runs 199 Response goes back through Istio`}),c.jsx("p",{style:ee.paragraph,children:"Now let's trace a developer testing v2:"}),c.jsx("pre",{style:ee.diagramContainer,children:`Developer: curl -H "x-version: v2" https://my-app.example.com/api/hello 200 201Step 1: Request hits the Istio Gateway 202 Gateway lets it in 203 204Step 2: VirtualService checks the request 205 Has "x-version: v2" header! 206 Matches the first rule and routes to v2 subset 207 208Step 3: DestinationRule translates 209 "v2 means pods with label version=v2" 210 211Step 4: Request reaches v2 container 212 Developer sees the new behavior 213 Regular users are unaffected`})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"Walking Through the Deployment Code"}),c.jsxs("p",{style:ee.paragraph,children:["Now let's look at how the deployment script actually works. When you run",c.jsx("code",{style:{...ee.inlineCode},children:"./ops/run.sh start microservice-1 v1"}),", here's what happens under the hood:"]}),c.jsxs("h3",{style:ee.subSectionTitle,children:[c.jsx("span",{style:ee.stepNumber,children:"1"}),"Parse the Arguments"]}),c.jsx(Sr,{label:"run.sh - Argument parsing",githubPath:"ops/run.sh",children:`# The script parses your command line arguments 214ACTION="$1" # "start" 215SERVICE="$2" # "microservice-1" 216VERSION="$3" # "v1" 217 218# After parsing: 219# ACTION = "start" 220# SERVICE = "microservice-1" 221# VERSION = "v1"`}),c.jsxs("h3",{style:ee.subSectionTitle,children:[c.jsx("span",{style:ee.stepNumber,children:"2"}),"Validate the Registry"]}),c.jsx("p",{style:ee.paragraph,children:"For Kubernetes deployments, we need somewhere to store Docker images. The script checks that you've set the REGISTRY environment variable."}),c.jsx(Sr,{label:"run.sh - Registry validation",githubPath:"ops/run.sh",children:`validate_registry() { 222 if [ -z "$REGISTRY" ]; then 223 echo "Error: REGISTRY environment variable is required" 224 echo "" 225 echo "Set your container registry URL:" 226 echo ' export REGISTRY="us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO"' 227 exit 1 228 fi 229} 230 231# Example: 232# export REGISTRY="us-central1-docker.pkg.dev/myproject/myrepo"`}),c.jsxs("h3",{style:ee.subSectionTitle,children:[c.jsx("span",{style:ee.stepNumber,children:"3"}),"Call Skaffold"]}),c.jsx("p",{style:ee.paragraph,children:'Skaffold is the orchestrator. It reads a config file that says: "Build this Dockerfile, push to this registry, deploy using this Helm chart." One command does all three.'}),c.jsx(Sr,{label:"run.sh - Skaffold execution",githubPath:"ops/run.sh",children:`start() { 233 local SERVICE="$1" 234 local VERSION="$2" 235 236 validate_service "$SERVICE" 237 validate_registry 238 239 print_header "Starting: $SERVICE ($VERSION)" 240 241 # Set the version as an environment variable 242 # Skaffold and Helm will use this 243 export DEPLOYMENT_VERSION="$VERSION"
244 245 # The magic command - Skaffold does everything 246 SKAFFOLD_DIR="$HELM_CHARTS_DIR/$SERVICE" 247 248 cd "$SKAFFOLD_DIR" 249 skaffold run -f "skaffold.yaml" --default-repo="$REGISTRY" 250 251 echo "â Deployed: $SERVICE ($VERSION) with 0% traffic" 252}`}),c.jsxs("h3",{style:ee.subSectionTitle,children:[c.jsx("span",{style:ee.stepNumber,children:"4"}),"Skaffold Reads Its Config"]}),c.jsx("p",{style:ee.paragraph,children:"The skaffold.yaml file tells Skaffold what to build and how to deploy:"}),c.jsx(Sr,{label:"skaffold.yaml - Build and deploy configuration",githubPath:"ops/helm-charts/microservice-1/skaffold.yaml",children:`apiVersion: skaffold/v4beta6 253kind: Config 254metadata: 255 name: microservice-1 256 257build: 258 artifacts: 259 - image: services/microservice-1 260 context: ../../../ # Build from repo root 261 docker: 262 dockerfile: services/microservice-1/Dockerfile 263 264deploy: 265 helm: 266 releases: 267 - name: microservice-1-{{.DEPLOYMENT_VERSION}} # e.g., "microservice-1-v1" 268 chartPath: . 269 setValueTemplates: 270 image: "{{.IMAGE_FULLY_QUALIFIED_services_microservice_1}}" 271 version: "{{.DEPLOYMENT_VERSION}}"`}),c.jsxs("h3",{style:ee.subSectionTitle,children:[c.jsx("span",{style:ee.stepNumber,children:"5"}),"Helm Creates Kubernetes Resources"]}),c.jsx("p",{style:ee.paragraph,children:"Helm takes the templates (Deployment, Service, VirtualService, DestinationRule) and fills in the values. The result is actual Kubernetes resources that get created in your cluster."}),c.jsx(Sr,{label:"deployment.yaml template",githubPath:"ops/helm-charts/microservice-1/templates/deployment.yaml",children:`apiVersion: apps/v1 272kind: Deployment 273metadata: 274 name: {{ .Release.Name }} 275 labels: 276 app: microservice-1 277 version: {{ .Values.version }} # "v1" or "v2" 278spec: 279 replicas: 1 280 selector: 281 matchLabels: 282 app: microservice-1 283 version: {{ .Values.version }} 284 template: 285 metadata: 286 labels: 287 app: microservice-1 288 version: {{ .Values.version }} # This label is how Istio finds pods 289 spec: 290 containers: 291 - name: microservice-1 292 image: {{ .Values.image }} # The image Skaffold built 293 env: 294 - name: VERSION 295 value: {{ .Values.version }} # App reads this to know its version`})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"Real-World Use Case: A/B Testing"}),c.jsx("p",{style:ee.paragraph,children:"Let's say you want to test a new recommendation algorithm. Here's exactly how you'd do it:"}),c.jsx("h3",{style:ee.subSectionTitle,children:"Step 1: Deploy v2 with 0% Traffic"}),c.jsx("p",{style:ee.paragraph,children:"First, deploy v2 but don't send any real traffic to it yet:"}),c.jsx(Sr,{label:"Terminal - Deploy v2",children:`# Deploy v2 (it starts with 0% traffic by default) 296./ops/run.sh start microservice-1 v2 297 298# Now you have both running: 299# - microservice-1-v1 â 100% of traffic 300# - microservice-1-v2 â 0% of traffic`}),c.jsx("h3",{style:ee.subSectionTitle,children:"Step 2: Test v2 Using Header Routing"}),c.jsx("p",{style:ee.paragraph,children:"QA team tests v2 using the special header. Normal users are unaffected:"}),c.jsx(Sr,{label:"Terminal - Developer testing",children:`# Normal users hit v1 301curl https://my-app.example.com/api/recommend 302# â Response from v1 (old algorithm) 303 304# Developer tests v2 using header 305curl -H "x-version: v2" https://my-app.example.com/api/recommend 306# â Response from v2 (new algorithm)`}),c.jsx("h3",{style:ee.subSectionTitle,children:"Step 3: Gradually Shift Traffic"}),c.jsx("p",{style:ee.paragraph,children:"Once v2 is verified, update the VirtualService to shift 10% of traffic:"}),c.jsx(Sr,{label:"TRAFFIC.yaml - Traffic weights",githubPath:"ops/helm-charts/microservice-1/deployments/TRAFFIC.yaml",children:`# Edit deployments/TRAFFIC.yaml (single source of truth) 307versions: 308 - name: v1 309 weight: 90 # 90% stays on v1 310 - name: v2 311 weight: 10 # 10% goes to v2 for testing 312 313# Then apply the changes: 314./ops/run.sh update_traffic microservice-1 v1`}),c.jsx("h3",{style:ee.subSectionTitle,children:"Step 4: Monitor and Roll Forward (or Back)"}),c.jsx("p",{style:ee.paragraph,children:"Watch your metrics. If v2 performs well, increase to 50%, then 100%. If something goes wrong, instantly drop v2 back to 0%. No redeployment needed. Just change the weights."})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"What You Need to Get Started"}),c.jsx("p",{style:ee.paragraph,children:"Before trying this yourself, you'll need these tools installed:"}),c.jsxs("table",{style:ee.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{style:ee.tableHeader,children:"Tool"}),c.jsx("th",{style:ee.tableHeader,children:"What It Does"}),c.jsx("th",{style:ee.tableHeader,children:"Version"})]})}),c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:c.jsx("strong",{children:"Docker"})}),c.jsx("td",{style:ee.tableCell,children:"Builds container images for Kubernetes"}),c.jsx("td",{style:ee.tableCell,children:"20.10+"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:c.jsx("strong",{children:"kubectl"})}),c.jsx("td",{style:ee.tableCell,children:"Talks to your Kubernetes cluster"}),c.jsx("td",{style:ee.tableCell,children:"1.25+"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:c.jsx("strong",{children:"Helm"})}),c.jsx("td",{style:ee.tableCell,children:"Packages Kubernetes deployments"}),c.jsx("td",{style:ee.tableCell,children:"3.10+"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:c.jsx("strong",{children:"Skaffold"})}),c.jsx("td",{style:ee.tableCell,children:"Automates build â push â deploy"}),c.jsx("td",{style:ee.tableCell,children:"2.0+"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:c.jsx("strong",{children:"Istio"})}),c.jsx("td",{style:ee.tableCell,children:"Installed on your Kubernetes cluster"}),c.jsx("td",{style:ee.tableCell,children:"1.17+"})]})]})]}),c.jsxs("div",{style:{...ee.highlightBox,marginTop:"var(--spacing-medium, 1rem)"},children:[c.jsxs("p",{style:ee.paragraph,children:["ð ",c.jsx("strong",{children:"Coming Soon: Step-by-Step Setup Guides"})]}),c.jsx("p",{style:{...ee.paragraph,marginTop:"0.5rem"},children:"We're writing detailed tutorials for setting up each of these tools, from installing Docker to provisioning a Kubernetes cluster with Istio. Stay tuned!"})]})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"The Result"}),c.jsxs("table",{style:ee.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{style:ee.tableHeader,children:"Before"}),c.jsx("th",{style:ee.tableHeader,children:"After"})]})}),c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:"30-60 min manual deployments"}),c.jsx("td",{style:ee.tableCell,children:"One command"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:"Deploying = Replacing old version"}),c.jsx("td",{style:ee.tableCell,children:"Multiple versions run simultaneously"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:"Testing in production = Risky"}),c.jsx("td",{style:ee.tableCell,children:"Test with headers, users unaffected"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:ee.tableCell,children:"Rollback = Redeploy old code"}),c.jsx("td",{style:ee.tableCell,children:"Rollback = Change traffic weights"})]})]})]})]}),c.jsxs("section",{style:ee.section,children:[c.jsx("h2",{style:ee.sectionTitle,children:"Try It Yourself"}),c.jsx(Sr,{label:"Quick start",children:`# Clone the repo 315git clone https://github.com/tonitaco/tonita-oss.git 316cd tonita-oss/microservices-deployment-stack 317 318# Set your container registry 319export REGISTRY="us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO" 320# Or use any registry: ECR, ACR, Docker Hub, Harbor, etc. 321 322# Deploy individual versions (each starts with 0% traffic) 323./ops/run.sh start microservice-1 v1 324./ops/run.sh start microservice-1 v2 325 326# List active versions and traffic distribution 327./ops/run.sh list microservice-1 328 329# Update traffic weights (edit deployments/TRAFFIC.yaml first) 330./ops/run.sh update_traffic microservice-1 v1 331./ops/run.sh update_traffic microservice-1 v2 332 333# Watch pod health in real-time 334./ops/run.sh ping microservice-1`}),c.jsx("h3",{style:ee.subSectionTitle,children:"What You'll See"}),c.jsxs("p",{style:ee.paragraph,children:["When you run"," ",c.jsx("code",{style:{...ee.inlineCode},children:"start SERVICE VERSION"}),", Skaffold deploys that specific version with 0% traffic. You'll see it build images, push to your registry, and create a Helm release. Here's what the output looks like:"]}
334),c.jsx(Sr,{label:"Terminal - Deploy v1",children:`./ops/run.sh start microservice-1 v1 335 336============================================ 337Starting: microservice-1 (v1) 338============================================ 339 340Registry: us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO 341Service: microservice-1 342Version: v1 343 344Generating tags... 345 - services/microservice-1 -> us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO/services/microservice-1:snapshot-... 346Starting deploy... 347Helm release microservice-1-v1 not installed. Installing... 348NAME: microservice-1-v1 349LAST DEPLOYED: Fri Feb 6 01:16:30 2026 350NAMESPACE: default 351STATUS: deployed 352REVISION: 1 353Waiting for deployments to stabilize... 354 - default:deployment/microservice-1-v1 is ready. 355Deployments stabilized in 11.228 seconds 356 357â Deployed: microservice-1 (v1) with 0% traffic 358 359Update traffic with: 360 Edit deployments/TRAFFIC.yaml, then: 361 ./ops/run.sh update_traffic microservice-1 v1`}),c.jsxs("p",{style:{...ee.paragraph,marginTop:"var(--spacing-medium, 1rem)"},children:["Notice how the deployment shows: the image being built, the registry it's pushed to, and the Helm release being created (like"," ",c.jsx("code",{style:{...ee.inlineCode},children:"microservice-1-v1"}),'). The "Deployments stabilized" message means your pod is running and healthy. The version starts with 0% traffic, so you can safely test it before routing any real traffic.']}),c.jsx("h3",{style:ee.subSectionTitle,children:"List Active Versions"}),c.jsx("p",{style:ee.paragraph,children:"Check which versions are deployed and their traffic distribution:"}),c.jsx(Sr,{label:"Terminal - List active versions",children:`./ops/run.sh list microservice-1 362 363============================================ 364Active Versions: microservice-1 365============================================ 366 367Deployed Versions: 368 369 Version Weight Percentage Status Pods 370 ================================================================================ 371 v1 50 50.0% â Active â 1 running 372 v2 50 50.0% â Active â 1 running 373 v3 0 0.0% Deployed (0% traffic) â 1 running 374 375Total Weight: 100 376Note: Weights are relative, not absolute percentages`}),c.jsx("h3",{style:ee.subSectionTitle,children:"Verify with List and Ping"}),c.jsxs("p",{style:ee.paragraph,children:["After deploying versions, you can verify their status and traffic distribution using the"," ",c.jsx("code",{style:{...ee.inlineCode},children:"list"})," ","command, and monitor pod health in real-time with the"," ",c.jsx("code",{style:{...ee.inlineCode},children:"ping"})," ","command:"]}),c.jsx(Sr,{label:"Terminal - List active versions",children:`./ops/run.sh list microservice-1 377 378============================================ 379Active Versions: microservice-1 380============================================ 381 382Deployed Versions: 383 384 Version Weight Percentage Status Pods 385 ================================================================================ 386 v1 50 50.0% â Active â 1 running 387 v2 50 50.0% â Active â 1 running 388 389Total Weight: 100`}),c.jsxs("p",{style:ee.paragraph,children:["The"," ",c.jsx("code",{style:{...ee.inlineCode},children:"list"})," ","command shows all deployed versions, their traffic weights, percentages, and pod status."]}),c.jsx("h3",{style:ee.subSectionTitle,children:"Monitoring Pod Health"}),c.jsxs("p",{style:ee.paragraph,children:["The"," ",c.jsx("code",{style:{...ee.inlineCode},children:"ping"})," ","command continuously monitors pods and shows their health status in real-time:"]}),c.jsx(Sr,{label:"Terminal - Continuous health monitoring",children:`./ops/run.sh ping microservice-1 390 391============================================ 392Ping: microservice-1 393============================================ 394[01:25:30] 395 microservice-1(v1): â OK (pod: microservice-1-v1-6984fcccc9-hp4rt, health: 200) 396 microservice-1(v2): â OK (pod: microservice-1-v2-7b84c6f674-bzbng, health: 200) 397 398[01:25:33] 399 microservice-1(v1): â OK (pod: microservice-1-v1-6984fcccc9-hp4rt, health: 200) 400 microservice-1(v2): â OK (pod: microservice-1-v2-7b84c6f674-bzbng, health: 200) 401 402Press Ctrl+C to stop`}),c.jsx("h3",{style:ee.subSectionTitle,children:"Cleaning Up"}),c.jsx("p",{style:ee.paragraph,children:"When you're done testing, you can remove individual versions or entire services:"}),c.jsx(Sr,{label:"Terminal - Remove deployments",children:`# Remove a specific version 403./ops/run.sh delete_version microservice-1 v2 404 405# Remove entire service (all versions) 406./ops/run.sh delete_service microservice-1 407 408# Confirmation prompt appears:
409# WARNING: This will remove ALL versions of microservice-1 410# Type 'yes' to confirm: yes 411 412# Output: 413# Removing Helm releases... 414# Uninstalling microservice-1-v1... 415# Uninstalling microservice-1-v2... 416# Uninstalling microservice-1-v3... 417# â Deleted service: microservice-1`}),c.jsx("p",{style:{...ee.paragraph,marginTop:"var(--spacing-medium, 1rem)"},children:'The script asks for confirmation before removing anything. The "â Deleted service" message confirms your cluster is clean.'})]})]})})]})},Qde=()=>({display:"flex",flexDirection:"column",width:"100%",height:"100dvh",backgroundColor:"var(--surface-primary-default, #FFFFFF)"}),$de=()=>({flex:1,paddingTop:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-x-large, 2rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-x-large, 2rem)",justifyContent:"flex-start",alignItems:"stretch",overflowY:"auto",overflowX:"hidden",minHeight:0,maxHeight:"100%",overscrollBehavior:"contain"}),efe=e=>({position:"fixed",top:0,left:0,right:0,zIndex:1100,backgroundColor:"var(--surface-primary-default, #FFF)",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:0,paddingLeft:e?0:"var(--spacing-small, 0.75rem)",paddingRight:e?0:"var(--spacing-small, 0.75rem)",touchAction:"none"}),_e={mainContent:{display:"flex",flexDirection:"column",maxWidth:"48rem",margin:"0 auto",width:"100%",gap:"var(--spacing-medium, 1rem)",border:"1px solid var(--border-default, #E5E5E7)",borderRadius:"var(--radius-medium, 0.5rem)",backgroundColor:"var(--surface-primary-default)",padding:"clamp(1.25rem, 0.7rem + 2.2vw, 2rem)"},blogHeader:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-large, 1.5rem)",borderBottom:"1px solid var(--border-default, #E5E5E7)"},blogTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"case" on, "salt" on, "ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-3x-large, 2rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.2",letterSpacing:"-0.04rem"},blogSubtitle:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-medium, 1.125rem)",fontStyle:"italic",fontWeight:400,lineHeight:"1.5"},authorName:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",fontWeight:500},section:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},sectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-x-large, 1.5rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginTop:"var(--spacing-medium, 1rem)"},subSectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginTop:"var(--spacing-small, 0.75rem)"},paragraph:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:400,lineHeight:"1.7",letterSpacing:"-0.01rem"},codeBlock:{padding:"var(--spacing-medium, 1rem)",borderRadius:"var(--radius-medium, 0.5rem)",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.8rem",lineHeight:"1.6",overflowX:"auto",whiteSpace:"pre"},codeBlockStyles:{backgroundColor:"var(--code-block-bg)",color:"var(--code-block-text)",border:"1px solid var(--code-block-border)"},codeCaption:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--spacing-x-small, 0.5rem)"},codeLabel:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05rem"},diagramContainer:{padding:"var(--spacing-large, 1.5rem)",borderRadius:"var(--radius-large, 0.75rem)",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.75rem",lineHeight:"1.5",overflowX:"auto",whiteSpace:"pre",backgroundColor:"var(--diagram-bg)",color:"var(--diagram-text)",border:"1px solid var(--diagram-border)"},inlineCode:{backgroundColor:"var(--surface-secondary-default, #F2F2F3)",padding:"0.125rem 0.375rem",borderRadius:"0.25rem",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.875em",color:"var(--inline-code-text)"},backLink:{display:"inline-flex",alignItems:"center",gap:"0.5rem",color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",textDecoration:"none",marginBottom:"var(--spacing-medium, 1rem)",cursor:"pointer"},navButton:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"},navButtonHover:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:"var(--dropdown-button-hover)",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"},navButtonActive:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:"var(--dropdown-button-active)",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"},createNavButtonSelected:e=>({display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:e?"var(--dropdown-button-hover)":"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"}),navButtonText:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00938rem"},mobileMenuItemContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",paddingLeft:"var(--spacing-large, 1.5rem)",paddingRight:"var(--spacing-large, 1.5rem)",paddingTop:"var(--spacing-small, 0.75rem)",paddingBottom:"var(--spacing-small, 0.75rem)",cursor:"pointer",transition:"background-color 0.15s ease",gap:"0.75rem",backgroundColor:"transparent",border:"none",textAlign:"left"},mobileMenuItemContainerHover:{backgroundColor:"var(--dropdown-button-hover)"},mobileMenuItemContainerActive:{backgroundColor:"var(--dropdown-button-active)"}},hs=({label:e,children:t})=>c.jsxs("div",{children:[c.jsx("div",{style:_e.codeCaption,children:c.jsx("span",{style:_e.codeLabel,children:e})}),c.jsx("pre",{style:{..._e.codeBlock,..._e.codeBlockStyles},children:t})]}),UP=({asNavButton:e=!1})=>{const{colors:t}=ze(),{isMobile:n}=We(),r=Bt(),i=Pt(),[s,l]=G.useState(!1),[u,d]=G.useState(!1),h=i.pathname==="/blog/deployment-workflow";if(e&&n){const m=()=>u?{..._e.mobileMenuItemContainer,..._e.mobileMenuItemContainerActive}:s?{..._e.mobileMenuItemContainer,..._e.mobileMenuItemContainerHover}:_e.mobileMenuItemContainer;return c.jsxs("button",{style:m(),onMouseEnter:()=>l(!0),onMouseLeave:()=>{l(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onClick:()=>r("/blog/deployment-workflow"),children:[c.jsx("img",{src:jl,alt:"Deployment Workflow",style:Dt(t.text,"1.25rem")}),c.jsx("span",{style:_e.navButtonText,children:"Deployment Workflow"})]})}if(e){const m=()=>h?_e.createNavButtonSelected(s):u?_e.navButtonActive:s?_e.navButtonHover:_e.navButton;return c.jsxs("button",{style:m(),onMouseEnter:()=>l(!0),onMouseLeave:()=>{l(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onClick:()=>r("/blog/deployment-workflow"),children:[c.jsx("img",{src:jl,alt:"Deployment Workflow",style:Dt(t.text,"1.25rem")}),c.jsx("span",{style:_e.navButtonText,children:"Deployment Workflow"})]})}return c.jsxs("div",{style:Qde(),"data-testid":"deployment-workflow-blog",children:[c.jsx("div",{style:efe(n),children:c.jsx(es,{title:io})}),c.jsx("div",{style:$de(),children:c.jsxs("div",{className:"blog-page-card",style:_e.mainContent,children:[c.jsx("div",{style:_e.backLink,"data-testid":"blog-back-link",onClick:()=>r("/blog"),onKeyDown:m=>m.key==="Enter"&&r("/blog"),role:"button",tabIndex:0,children:O1}),c.jsxs("header",{style:_e.blogHeader,children:[c.jsx("h1",{style:_e.blogTitle,children:"Complete Deployment Workflow: 7 Steps to Safe Releases"}),c.jsx("p",{style:_e.blogSubtitle,children:"A real-world scenario with v1, v2, v3: relative weights, header testing, and step-by-step verification"}),c.jsx("p",{style:_e.authorName,children:"By Raghul Ravi (AI Software & Systems Engineer, Tonita)"})]}),c.jsxs("section",{style:_e.section,children:[c.jsxs("p",{style:_e.paragraph,children:["Deploying to production is scary. One bad deployment can take down your entire service, affecting all users. But it doesn't have to be this way. With Istio's traffic management, you can deploy new versions with ",c.jsx("strong",{children:"zero risk"})," to your users."]}),c.jsxs("p",{style:_e.paragraph,children:["This guide walks through a ",c.jsx("strong",{children:"real-world scenario"})," ","with three versions (v1, v2, v3) showing how traffic weights work, how to test each step, and how to verify everything with the ping command."]}),c.jsx("h3",{style:_e.subSectionTitle,children:"Run All Steps Automatically"}),c.jsxs("p",{style:_e.paragraph,children:["You can run all steps in sequence using the"," ",c.jsx("code",{style:{..._e.inlineCode},children:"run_all"})," ","command:"]}),c.jsx(hs,{label:"Terminal - Run all workflow steps",children:`export GATEWAY_ENDPOINT="http://YOUR-GATEWAY-IP/api/version" 418./ops/test.sh run_all microservice-1 419 420============================================ 421Running All Test Steps 422============================================ 423 424Service: microservice-1 425Endpoint: http://10.0.128.22/api/version 426 427=========================================== 428Step 0: Setup Baseline 429===========================================
430... (deploys v1 and v2 at 50% each) 431â Step 0 passed 432 433=========================================== 434Step 1: Test Baseline 435=========================================== 436... (verifies v1=50%, v2=50%) 437â Step 1 passed 438 439=========================================== 440Step 2: Deploy v3 441=========================================== 442... (deploys v3 with 0% traffic, tests header routing) 443â Step 2 passed 444 445=========================================== 446Step 3: Add v3 to Rotation 447=========================================== 448... (adds v3 to rotation at 33.3% each) 449â Step 3 passed 450 451=========================================== 452Step 4: Retire v2 453=========================================== 454... (retires v2, v1 and v3 split 50/50) 455â Step 4 passed 456 457=========================================== 458Step 5: Retire v1 459=========================================== 460... (retires v1, v3 gets 100%) 461â Step 5 passed 462 463=========================================== 464Step 6: Cleanup 465=========================================== 466... (removes all deployments) 467â Step 6 passed 468 469=========================================== 470Test Summary 471=========================================== 472 473 Total steps: 7 (Step 0-6) 474 Passed: 7 475 Failed: 0 476 477â All steps passed!`}),c.jsx("pre",{style:_e.diagramContainer,children:`âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ 478â COMPLETE 3-VERSION DEPLOYMENT WORKFLOW â 479ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ⤠480â â 481â Step 0: SETUP BASELINE (deploy v1 and v2 at 50% each) â 482â Step 1: VERIFY BASELINE (v1=50%, v2=50%) â 483â âââ v1: 50% ââââââââââââ â 484â âââ v2: 50% ââââââââââââ Equal split â 485â âââ v3: not deployed yet â 486â â 487â Step 2: DEPLOY v3 (0% traffic) â 488â âââ v1: 50% ââââââââââââ â 489â âââ v2: 50% ââââââââââââ â 490â âââ v3: 0% Running but invisible â 491â âââ Test v3 with header: x-version: v3 â 492â â 493â Step 3: ADD v3 TO ROTATION (v1=50, v2=50, v3=50) â 494â âââ Total weight: 150 (weights are RELATIVE!) â 495â âââ v1: 33.3% ââââââââ â 496â âââ v2: 33.3% ââââââââ â 497â âââ v3: 33.3% ââââââââ Now receiving traffic â 498â â 499â Step 4: RETIRE v2 (v1=50, v2=0, v3=50) â 500â âââ v1: 50% ââââââââââââ â 501â âââ v2: 0% No traffic, but pod still runs â 502â âââ v3: 50% ââââââââââââ 50/50 split (v1 & v3) â 503â â 504â Step 5: RETIRE v1 (v1=0, v2=0, v3=50) â 505â âââ v1: 0% No traffic, but pod still runs â 506â âââ v2: 0% No traffic, but pod still runs â 507â âââ v3: 100% ââââââââââââââââââââââââ Only version getting trafficâ 508â â 509â Step 6: CLEAN UP ALL â 510â âââ Remove all deployments â 511â âââ ./ops/run.sh delete_service microservice-1 â 512â â 513âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ`})]}),c.jsx("section",{style:_e.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-purple-bg)",border:"1px solid var(--status-purple-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{..._e.sectionTitle,color:"var(--status-purple)",marginTop:0},children:"ð Understanding Relative Weights"}),c.jsxs("p",{style:_e.paragraph,children:[c.jsx("strong",{children:"This is the most important concept to understand:"})," ","Istio weights are ",c.jsx("em",{children:"relative"}),", not absolute percentages. The actual traffic percentage for each version is calculated as:"]}),c.jsx("pre",{style:{..._e.diagramContainer},children:`Actual % = (version weight / total of all weights) à 100 514 515Example 1: v1=50, v2=50, v3=0 516 Total = 100 517 v1 = 50/100 = 50% 518 v2 = 50/100 = 50% 519 v3 = 0/100 = 0% 520 521Example 2: v1=50, v2=50, v3=50 522 Total = 150 523 v1 = 50/150 = 33.3% 524 v2 = 50/150 = 33.3% 525 v3 = 50/150 = 33.3% 526 527Example 3: v1=0, v2=50, v3=100 528 Total = 150 529 v1 = 0/150 = 0% 530 v2 = 50/150 = 33.3% 531 v3 = 100/150 = 66.7%`}),c.jsx("p",{style:_e.paragraph,children:"This means adding a new version with weight 50 doesn't give it 50% of traffic. It depends on what the other weights are!"})]})}),c.jsx("section",{style:_e.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-info-bg)",border:"1px solid var(--status-info-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{..._e.sectionTitle,color:"var(--status-info)",marginTop:0}
531,children:"Step 0: Setup Baseline (Deploy v1 and v2 at 50% each)"}),c.jsx("p",{style:_e.paragraph,children:"Before testing the deployment workflow, we need to set up the baseline state: deploy v1 and v2, and configure them to split traffic 50/50. This automated step handles everything in one command."}),c.jsx("h3",{style:_e.subSectionTitle,children:"Automated Setup"}),c.jsx(hs,{label:"Terminal - Setup baseline",children:`./ops/test.sh test_step0_baseline microservice-1 532 533============================================ 534Step 0: Setting up BASELINE (deploy v1 and v2 at 50% each) 535============================================ 536 537Deploying v1 and v2 with 50% traffic each... 538 539Deploying v1... 540 541============================================ 542Starting: microservice-1 (v1) 543============================================ 544 545Registry: us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO 546Service: microservice-1 547Version: v1 548 549Generating tags... 550 - services/microservice-1 -> us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO/services/microservice-1:snapshot-... 551Checking cache... 552 - services/microservice-1: Found. Tagging 553Starting test... 554Tags used in deployment: 555 - services/microservice-1 -> us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO/services/microservice-1:snapshot-...@sha256:... 556Starting deploy... 557Helm release microservice-1-v1 not installed. Installing... 558NAME: microservice-1-v1 559LAST DEPLOYED: Wed Feb 11 15:20:19 2026 560NAMESPACE: default 561STATUS: deployed 562REVISION: 1 563TEST SUITE: None 564Waiting for deployments to stabilize... 565 - default:deployment/microservice-1-v1: waiting for rollout to finish: 0 of 1 updated replicas are available... 566 - default:deployment/microservice-1-v1 is ready. 567Deployments stabilized in 11.24 seconds 568You can also run [skaffold run --tail] to get the logs 569 570â Deployed: microservice-1 (v1) 571 572Traffic weight is read from deployments/TRAFFIC.yaml 573To apply traffic changes, run: ./ops/test.sh update_traffic microservice-1 v1 574Deploying v2... 575 576============================================ 577Starting: microservice-1 (v2) 578============================================ 579 580Registry: us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO 581Service: microservice-1 582Version: v2 583 584Generating tags... 585 - services/microservice-1 -> us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO/services/microservice-1:snapshot-... 586Checking cache... 587 - services/microservice-1: Found Remotely 588Starting test... 589Tags used in deployment: 590 - services/microservice-1 -> us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO/services/microservice-1:snapshot-...@sha256:... 591Starting deploy... 592Helm release microservice-1-v2 not installed. Installing... 593NAME: microservice-1-v2 594LAST DEPLOYED: Wed Feb 11 15:20:33 2026 595NAMESPACE: default 596STATUS: deployed 597REVISION: 1 598TEST SUITE: None 599Waiting for deployments to stabilize... 600 - default:deployment/microservice-1-v2: waiting for rollout to finish: 0 of 1 updated replicas are available... 601 - default:deployment/microservice-1-v2 is ready. 602Deployments stabilized in 10.242 seconds 603You can also run [skaffold run --tail] to get the logs 604 605â Deployed: microservice-1 (v2) 606 607Traffic weight is read from deployments/TRAFFIC.yaml 608To apply traffic changes, run: ./ops/test.sh update_traffic microservice-1 v2 609 610Applying traffic weights (v1=50%, v2=50%)... 611 612============================================ 613Updating Traffic: microservice-1 (v1) 614============================================ 615Release "microservice-1-v1" has been upgraded. Happy Helming! 616NAME: microservice-1-v1 617LAST DEPLOYED: Wed Feb 11 15:20:46 2026 618NAMESPACE: default 619STATUS: deployed 620REVISION: 2 621TEST SUITE: None 622â Updated v1 weight to 50 623 624New Traffic Distribution: 625 v1: 50 â 50.0% 626 v2: 50 â 50.0% 627 628Waiting 2 seconds for Istio to propagate... 629â Traffic updated 630 631â Baseline setup complete: v1 and v2 deployed at 50% traffic each`}),c.jsx("div",{style:{backgroundColor:"var(--status-info-bg)",border:"1px solid var(--status-info-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Note:"})," This step can be run independently with:"," ",c.jsx("code",{style:{..._e.inlineCode},children:"./ops/test.sh test_step0_baseline microservice-1"})]})})]})}),c.jsx("section",{style:_e.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-success-bg)",border:"1px solid var(--status-success-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{..._e.sectionTitle,color:"var(--status-success)",marginTop:0},children:"Step 1: Verify Baseline (v1=50%, v2=50%)"}),c.jsx("p",{style:_e.paragraph,children:"After setting up the baseline, verify that both versions are running and receiving traffic evenly. This step tests the traffic distribution to ensure everything is working correctly."}),c.jsx("h3",{style:_e.subSectionTitle,children:"Test Traffic Distribution"}),c.jsx(hs,{label:"Terminal - Test baseline traffic",children:`./ops/test.sh test_step1_baseline microservice-1 632 633============================================ 634Step 1: Testing BASELINE (v1=50%, v2=50%, v3=0%) 635============================================ 636 637Expected: v1=50%, v2=50%, v3=0% 638Making 30 requests... 639 640Results: 641 v1: 5 (16.7%) 642 v2: 12 (40.0%) 643 v3: 0 (0.0%) 644 Errors: 13 645 646â FAIL: v1 traffic out of range (got 16.7%, expected ~50%) 647â Step 1 failed`}),c.jsx("div",{style:{backgroundColor:"var(--status-highlight-bg)",border:"1px solid var(--status-highlight-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:'â ï¸ Why This "FAIL" Is Actually Fine:'})," The test shows 13 errors out of 30 requests, meaning only 17 requests succeeded. With such a small sample size (17 successful requests), variance is even higher. Of the successful requests, v1 got 5 (29.4%) and v2 got 12 (70.6%), which is within acceptable variance for probabilistic routing. The errors are likely transient (network issues, pod startup delays, etc.) and don't indicate a problem with traffic splitting. In production with thousands of requests and no errors, the distribution converges to the exact 50/50 split. This is why the tests use wide acceptance rangesâto account for both variance and transient errors with small sample sizes."]})}),c.jsx("h3",{style:_e.subSectionTitle,children:"Current Configuration"}),c.jsx(hs,{label:"TRAFFIC.yaml - Baseline configuration",children:`# Current traffic weights (managed via update_traffic command) 648versions: 649 - name: v1 650 weight: 50 # 50% of traffic 651 - name: v2 652 weight: 50 # 50% of traffic 653 - name: v3 654 weight: 0 # Not deployed yet`}),c.jsx("div",{style:{backgroundColor:"var(--status-highlight-bg)",border:"1px solid var(--status-highlight-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Note:"}),` All pods show "OK" in ping because they're running and healthy. The ping command checks pod health, not traffic routing. v3 is healthy but receives 0% of actual user traffic.`]})})]})}),c.jsx("section",{style:_e.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-success-bg)",border:"1px solid var(--status-success-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{..._e.sectionTitle,color:"var(--status-success)",marginTop:0},children:"Step 2: Test v3 Without Affecting Users"}),c.jsx("p",{style:_e.paragraph,children:"Before giving v3 any real traffic, developers can test it using header-based routing. This bypasses the weight rules entirely."}),c.jsx("h3",{style:_e.subSectionTitle,children:"Deploy and Test v3"}),c.jsx(hs,{label:"Terminal - Deploy and test v3",children:`./ops/test.sh test_step2_deploy_v3 microservice-1 655 656============================================ 657Step 2: Testing DEPLOY v3 (v1=50%, v2=50%, v3=0% but accessible) 658============================================ 659 660Deploying v3... 661 662============================================ 663Starting: microservice-1 (v3) 664============================================ 665 666Registry: us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO 667Service: microservice-1 668Version: v3 669 670Generating tags... 671 - services/microservice-1 -> us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO/services/microservice-1:snapshot-... 672Checking cache... 673 - services/microservice-1: Found Remotely 674Starting test... 675Tags used in deployment: 676 - services/microservice-1 -> us-central1-docker.pkg.dev/YOUR-PROJECT/YOUR-REPO/services/microservice-1:snapshot-...@sha256:... 677Starting deploy... 678Helm release microservice-1-v3 not installed. Installing... 679NAME: microservice-1-v3 680LAST DEPLOYED: Wed Feb 11 15:21:00 2026 681NAMESPACE: default 682STATUS: deployed 683REVISION: 1 684TEST SUITE: None 685Waiting for deployments to stabilize...
686 - default:deployment/microservice-1-v3: waiting for rollout to finish: 0 of 1 updated replicas are available... 687 - default:deployment/microservice-1-v3 is ready. 688Deployments stabilized in 10.242 seconds 689You can also run [skaffold run --tail] to get the logs 690 691â Deployed: microservice-1 (v3) 692 693Traffic weight is read from deployments/TRAFFIC.yaml 694To apply traffic changes, run: ./ops/test.sh update_traffic microservice-1 v3 695 696Ensuring traffic weights: v1=50%, v2=50%, v3=0% 697 698============================================ 699Updating Traffic: microservice-1 (v1) 700============================================ 701Release "microservice-1-v1" has been upgraded. Happy Helming! 702NAME: microservice-1-v1 703LAST DEPLOYED: Wed Feb 11 15:21:13 2026 704NAMESPACE: default 705STATUS: deployed 706REVISION: 3 707TEST SUITE: None 708â Updated v1 weight to 50 709 710New Traffic Distribution: 711 v1: 50 â 50.0% 712 v2: 50 â 50.0% 713 v3: 0 â 0.0% 714 715Waiting 2 seconds for Istio to propagate... 716â Traffic updated 717 718 719Expected: v1=50%, v2=50%, v3=0% (normal traffic) 720Expected: v3 accessible via x-version: v3 header 721 722Testing normal traffic (without header)... 723 v1: 14 (46.7%) 724 v2: 16 (53.3%) 725 v3: 0 (0.0%) 726 727Testing v3 with header (x-version: v3)... 728 v3 via header: 5 / 5 729 730â PASS: v3 deployed and accessible via header, no normal traffic`}),c.jsx("div",{style:{backgroundColor:"var(--status-highlight-bg)",border:"1px solid var(--status-highlight-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð Zero Risk:"})," v3 is running with real production databases and dependencies, but no real users can hit it. Perfect for QA and staging in production."]})}),c.jsx("div",{style:{backgroundColor:"var(--status-info-bg)",border:"1px solid var(--status-info-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Note:"})," This step can be run independently with:"," ",c.jsx("code",{style:{..._e.inlineCode},children:"./ops/test.sh test_step2_deploy_v3 microservice-1 [ENDPOINT]"})]})})]})}),c.jsx("section",{style:_e.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-warning-bg)",border:"1px solid var(--status-warning-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{..._e.sectionTitle,color:"var(--status-warning)",marginTop:0},children:"Step 3: Add v3 to Rotation (33% Each)"}),c.jsx("p",{style:_e.paragraph,children:"Now we add v3 to the traffic rotation. Here's where the relative weights become important. When all three versions have weight 50, the total is 150, so each gets 33.3% of traffic."}),c.jsx("h3",{style:_e.subSectionTitle,children:"Test Traffic Distribution"}),c.jsx(hs,{label:"Terminal - Test v3 in rotation",children:`./ops/test.sh test_step3_add_v3 microservice-1 731 732============================================ 733Step 3: Testing ADD v3 TO ROTATION (v1=33.3%, v2=33.3%, v3=33.3%) 734============================================ 735 736Updating traffic weights: v1=50, v2=50, v3=50 (33% each)... 737 738============================================ 739Updating Traffic: microservice-1 (v1) 740============================================ 741Release "microservice-1-v1" has been upgraded. Happy Helming! 742NAME: microservice-1-v1 743LAST DEPLOYED: Wed Feb 11 15:21:26 2026 744NAMESPACE: default 745STATUS: deployed 746REVISION: 4 747TEST SUITE: None 748â Updated v1 weight to 50 749 750New Traffic Distribution: 751 v1: 50 â 33.3% 752 v2: 50 â 33.3% 753 v3: 50 â 33.3% 754 755Waiting 2 seconds for Istio to propagate... 756â Traffic updated 757 758Expected: v1=33.3%, v2=33.3%, v3=33.3% 759Making 30 requests... 760 761Results: 762 v1: 6 (20.0%) 763 v2: 13 (43.3%) 764 v3: 11 (36.7%) 765 Errors: 0 766 767â PASS: All three versions receiving traffic (~33% each)`}),c.jsx("div",{style:{backgroundColor:"var(--status-highlight-bg)",border:"1px solid var(--status-highlight-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"â ï¸ Watch the Math:"})," You set v3 to 50, but it doesn't get 50% of traffic! Because the total is now 150, each version gets only 33.3%. This is the key insight of relative weights."]})}),c.jsx("div",{style:{backgroundColor:"var(--status-info-bg)",border:"1px solid var(--status-info-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Note:"})," This step can be run independently with:"," ",c.jsx("code",{style:{..._e.inlineCode},children:"./ops/test.sh test_step3_add_v3 microservice-1 [ENDPOINT]"})]})})]})}),c.jsx("section",{style:_e.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-warning-bg)",border:"1px solid var(--status-warning-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{..._e.sectionTitle,color:"var(--status-warning)",marginTop:0},children:"Step 4: Retire v2 (v1=50%, v3=50%)"}),c.jsx("p",{style:_e.paragraph,children:"v2 has been running alongside v1 and v3. Now we retire it by setting its weight to 0. Traffic now splits 50/50 between v1 and v3."}),c.jsx("h3",{style:_e.subSectionTitle,children:"Test Traffic Distribution"}),c.jsx(hs,{label:"Terminal - Test v2 retirement",children:`./ops/test.sh test_step4_retire_v2 microservice-1 768 769============================================ 770Step 4: Testing RETIRE v2 (v1=50%, v2=0%, v3=50%) 771============================================ 772 773Updating traffic weights: v1=50, v2=0, v3=50 (50% each)... 774 775============================================ 776Updating Traffic: microservice-1 (v1) 777============================================ 778Release "microservice-1-v1" has been upgraded. Happy Helming! 779NAME: microservice-1-v1 780LAST DEPLOYED: Wed Feb 11 15:21:39 2026 781NAMESPACE: default 782STATUS: deployed 783REVISION: 5 784TEST SUITE: None 785â Updated v1 weight to 50 786 787New Traffic Distribution: 788 v1: 50 â 50.0% 789 v2: 0 â 0.0% 790 v3: 50 â 50.0% 791 792Waiting 2 seconds for Istio to propagate... 793â Traffic updated 794 795Expected: v1=50%, v2=0%, v3=50% 796Making 30 requests... 797 798Results: 799 v1: 15 (50.0%) 800 v2: 0 (0.0%) 801 v3: 15 (50.0%) 802 Errors: 0 803 804â PASS: v2 retired, v1 and v3 split traffic 50/50`}),c.jsx("div",{style:{backgroundColor:"var(--status-success-bg)",border:"1px solid var(--status-success-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð Instant Rollback:"})," Even though v2 gets 0% traffic, the pod is still running. If v3 has issues, just set v2 back to 50 and traffic shifts instantly. No rebuild needed!"]})}),c.jsx("div",{style:{backgroundColor:"var(--status-info-bg)",border:"1px solid var(--status-info-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Note:"})," This step can be run independently with:"," ",c.jsx("code",{style:{..._e.inlineCode},children:"./ops/test.sh test_step4_retire_v2 microservice-1 [ENDPOINT]"})]})})]})}),c.jsx("section",{style:_e.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-info-bg)",border:"1px solid var(--status-info-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{..._e.sectionTitle,color:"var(--status-info)",marginTop:0},children:"Step 5: Retire v1 (v3 Gets 100%)"}),c.jsx("p",{style:_e.paragraph,children:"v3 is stable and performing well. Now we retire v1 by setting its weight to 0. Since only v3 has weight 50 (and total=50), v3 now receives 100% of traffic."}),c.jsx("h3",{style:_e.subSectionTitle,children:"Test Traffic Distribution"}),c.jsx(hs,{label:"Terminal - Test v1 retirement",children:`./ops/test.sh test_step5_retire_v1 microservice-1 805 806============================================ 807Step 5: Testing RETIRE v1 (v1=0%, v2=0%, v3=100%) 808============================================ 809 810Updating traffic weights: v1=0, v2=0, v3=100 (100% v3)... 811 812============================================ 813Updating Traffic: microservice-1 (v1) 814============================================ 815Release "microservice-1-v1" has been upgraded. Happy Helming! 816NAME: microservice-1-v1 817LAST DEPLOYED: Wed Feb 11 15:21:52 2026 818NAMESPACE: default 819STATUS: deployed 820REVISION: 6 821TEST SUITE: None 822â Updated v1 weight to 0 823 824New Traffic Distribution:
825 v1: 0 â 0.0% 826 v2: 0 â 0.0% 827 v3: 100 â 100.0% 828 829Waiting 2 seconds for Istio to propagate... 830â Traffic updated 831 832Expected: v1=0%, v2=0%, v3=100% 833Making 30 requests... 834 835Results: 836 v1: 0 (0.0%) 837 v2: 0 (0.0%) 838 v3: 30 (100.0%) 839 Errors: 0 840 841â PASS: v1 and v2 retired, v3 receiving 100% traffic`}),c.jsx("div",{style:{backgroundColor:"var(--status-success-bg)",border:"1px solid var(--status-success-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Pro Tip:"})," Keep old versions running with 0% traffic for a day or two. If you discover a critical bug in v3, you can instantly shift traffic back without waiting for a rebuild."]})}),c.jsx("div",{style:{backgroundColor:"var(--status-info-bg)",border:"1px solid var(--status-info-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Note:"})," This step can be run independently with:"," ",c.jsx("code",{style:{..._e.inlineCode},children:"./ops/test.sh test_step5_retire_v1 microservice-1 [ENDPOINT]"})]})})]})}),c.jsx("section",{style:_e.section,children:c.jsxs("div",{style:{backgroundColor:"var(--status-purple-bg)",border:"1px solid var(--status-purple-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},children:[c.jsx("h2",{style:{..._e.sectionTitle,color:"var(--status-purple)",marginTop:0},children:"Step 6: Clean Up All Deployments"}),c.jsx("p",{style:_e.paragraph,children:"After v3 has been stable for a while, you can optionally remove all old versions to free up cluster resources."}),c.jsx("h3",{style:_e.subSectionTitle,children:"Test Cleanup"}),c.jsx(hs,{label:"Terminal - Test cleanup verification",children:`./ops/test.sh test_step6_cleanup microservice-1 842 843============================================ 844Step 6: Testing CLEAN UP (delete all deployments) 845============================================ 846 847Deleting service: microservice-1 848 849============================================ 850Deleting Service: microservice-1 851============================================ 852 853WARNING: This will remove ALL versions of microservice-1 854 855Removing Helm releases... 856Uninstalling microservice-1-v1... 857These resources were kept due to the resource policy: 858[Service] microservice-1-service 859[DestinationRule] microservice-1-dr 860[VirtualService] microservice-1-vs 861 862release "microservice-1-v1" uninstalled 863Uninstalling microservice-1-v2... 864release "microservice-1-v2" uninstalled 865Uninstalling microservice-1-v3... 866release "microservice-1-v3" uninstalled 867 868â Deleted service: microservice-1 869 870Verifying cleanup... 871 872Waiting for pods to terminate... 873Results: 874 Running pods: 0 875 Total pods (including Terminating): 1 876 Helm releases: 0 877 878Note: 1 pod(s) still terminating (this is normal) 879NAME READY STATUS RESTARTS AGE 880microservice-1-v3-64c97f57d4-mrvdv 0/2 Completed 0 56s 881â PASS: All deployments cleaned up`}),c.jsx("div",{style:{backgroundColor:"var(--status-highlight-bg)",border:"1px solid var(--status-highlight-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"â ï¸ Note:"})," Only run this after v3 has been stable for a sufficient period. Once removed, you'll need to redeploy if you need to rollback."]})}),c.jsx("div",{style:{backgroundColor:"var(--status-info-bg)",border:"1px solid var(--status-info-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¡ Note:"})," This step can be run independently with:"," ",c.jsx("code",{style:{..._e.inlineCode},children:"./ops/test.sh test_step6_cleanup microservice-1"})]})})]})}),c.jsxs("section",{style:_e.section,children:[c.jsx("h2",{style:_e.sectionTitle,children:"Summary: Complete Reference"}),c.jsx("h3",{style:_e.subSectionTitle,children:"Commands Quick Reference"}),c.jsx(hs,{label:"Terminal - All commands",children:`# Clone the repo and enter the ops directory 882git clone https://github.com/tonitaco/tonita-oss.git 883cd tonita-oss/microservices-deployment-stack 884 885# Deploy a version (starts with 0% traffic) 886./ops/run.sh start microservice-1 v1 887 888# List active versions and traffic distribution 889./ops/run.sh list microservice-1 890 891# Update traffic: Edit deployments/TRAFFIC.yaml, then: 892./ops/run.sh update_traffic microservice-1 v1 893 894# Check pod health 895./ops/run.sh ping microservice-1 896./ops/run.sh ping microservice-1 v1 # Specific version 897 898# Remove a specific version 899./ops/run.sh delete_version microservice-1 v1 900 901# Remove entire service (all versions) 902./ops/run.sh delete_service microservice-1 903 904# Test traffic distribution 905export GATEWAY_ENDPOINT="http://YOUR-GATEWAY-IP/api/version" 906./ops/test.sh test_traffic 907 908# Test specific version (header bypass) 909./ops/test.sh test_v3 microservice-1 910 911# Run complete workflow tests 912./ops/test.sh test_step0_baseline microservice-1 # Setup baseline 913./ops/test.sh test_step1_baseline microservice-1 # Verify baseline 914./ops/test.sh test_step2_deploy_v3 microservice-1 # Deploy v3 915./ops/test.sh test_step3_add_v3 microservice-1 # Add v3 to rotation 916./ops/test.sh test_step4_retire_v2 microservice-1 # Retire v2 917./ops/test.sh test_step5_retire_v1 microservice-1 # Retire v1 918./ops/test.sh test_step6_cleanup microservice-1 # Clean up`}),c.jsx("h3",{style:_e.subSectionTitle,children:"Weight Cheat Sheet"}),c.jsx("pre",{style:_e.diagramContainer,children:`ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ 919â WEIGHT CHEAT SHEET â 920âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ⤠921â â 922â EQUAL SPLIT (3 versions): â 923â v1=50, v2=50, v3=50 â Total=150 â 33.3% each â 924â v1=100, v2=100, v3=100 â Total=300 â 33.3% each (same!) â 925â â 926â RETIRE ONE VERSION: â 927â v1=0, v2=50, v3=50 â Total=100 â v2=50%, v3=50% â 928â â 929â PROMOTE ONE VERSION: â 930â v1=0, v2=50, v3=100 â Total=150 â v2=33.3%, v3=66.7% â 931â v1=0, v2=25, v3=75 â Total=100 â v2=25%, v3=75% â 932â â 933â FULL ROLLOUT: â 934â v1=0, v2=0, v3=100 â Total=100 â v3=100% â 935â â 936â QUICK ROLLBACK: â 937â v1=0, v2=100, v3=0 â Total=100 â v2=100% â 938â â 939ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ`}),c.jsx("div",{style:{backgroundColor:"var(--status-success-bg)",border:"1px solid var(--status-success-border)",borderRadius:"var(--radius-small, 0.25rem)",padding:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-medium, 1rem)"},children:c.jsxs("p",{style:{..._e.paragraph,margin:0},children:[c.jsx("strong",{children:"ð¯ Key Takeaways:"}),' Weights are relative, not absolute. Ping checks pod health, not traffic routing. Keep old versions running for instant rollback. Test with headers before adding traffic weight. Traffic distribution tests may
939show variance with small sample sizesâthis is normal and expected, especially when there are transient errors reducing the effective sample size (see "Understanding Traffic Distribution Variance" section above).']})})]}),c.jsx("div",{style:{marginTop:"var(--spacing-large, 1.5rem)"},children:c.jsx("div",{style:_e.backLink,onClick:()=>r("/blog"),onKeyDown:m=>m.key==="Enter"&&r("/blog"),role:"button",tabIndex:0,children:O1})})]})})]})};function tfe(e){const[t,n]=G.useState(e),r=G.useCallback(i=>{n(i.currentTarget.open)},[]);return{open:t,onToggle:r}}const pa=({label:e,defaultOpen:t=!0,copyable:n=!0,children:r})=>{const{open:i,onToggle:s}=tfe(t),{copied:l,copy:u}=Lv(r),d=h=>{h.preventDefault(),h.stopPropagation(),u()};return c.jsxs("details",{className:"blog-collapsible blog-collapsible--code",open:i,onToggle:s,children:[c.jsxs("summary",{className:"blog-collapsible__summary",children:[c.jsxs("span",{className:"blog-collapsible__summary-label",children:[c.jsx("span",{className:"blog-collapsible__chevron","aria-hidden":"true"}),e]}),n?c.jsx("button",{type:"button",className:"blog-collapsible__copy-button",onClick:d,"aria-label":`Copy ${e}`,children:l?"Copied":"Copy"}):null]}),c.jsx("pre",{className:"blog-collapsible__code",children:r})]})},nfe=`#!/usr/bin/env python3 940"""Minimal Tonita MCP client â get started without Claude or Cursor. 941 942Mimics what an LLM client does on connect: 943 initialize â tools/list â tonita-search â tonita-get-listing-details 944 945Usage: 946 pip install requests 947 export MCP_API_KEY='tnk_live_kp_...' 948 python3 sandbox/tonita/api_server/tonita_mcp/sample_client.py 949 950Optional env vars: 951 MCP_URL Base URL (default: generic MCP on Cloud Run) 952 MCP_QUERY Override the sample search query 953 954Requires: pip install requests 955""" 956 957from __future__ import annotations 958 959import json 960import os 961import sys 962import uuid 963 964import requests 965 966DEFAULT_MCP_URL = ( 967 "__MCP_BASE_URL__" 968) 969 970 971def parse_sse_body(text: str) -> dict: 972 for line in text.splitlines(): 973 if not line.startswith("data: "): 974 continue 975 msg = json.loads(line[len("data: ") :]) 976 if "result" in msg or "error" in msg: 977 return msg 978 raise ValueError(f"No JSON-RPC message in SSE body:\\n{text[:500]}") 979 980 981def mcp_call( 982 base_url: str, 983 api_key: str, 984 method: str, 985 params: dict | None = None, 986 timeout: int = 120, 987) -> dict: 988 payload: dict = { 989 "jsonrpc": "2.0", 990 "id": str(uuid.uuid4()), 991 "method": method, 992 } 993 if params is not None: 994 payload["params"] = params 995 996 resp = requests.post( 997 f"{base_url.rstrip('/')}/mcp", 998 json=payload, 999 headers={ 1000 "Content-Type": "application/json", 1001 "Accept": "application/json, text/event-stream", 1002 "Authorization": f"Bearer {api_key}", 1003 }, 1004 timeout=timeout, 1005 ) 1006 1007 if resp.status_code == 401: 1008 raise SystemExit("401 unauthorized â check MCP_API_KEY") 1009 if resp.status_code == 429: 1010 body = resp.json() 1011 raise SystemExit( 1012 "429 rate limit â " 1013 f"used={body.get('used')} limit={body.get('limit')} " 1014 f"retry_after_seconds={body.get('retry_after_seconds')}" 1015 ) 1016 resp.raise_for_status() 1017 1018 content_type = resp.headers.get("Content-Type", "") 1019 if "text/event-stream" in content_type: 1020 return parse_sse_body(resp.text) 1021 return resp.json() 1022 1023 1024def call_tool(base_url: str, api_key: str, name: str, arguments: dict) -> dict: 1025 envelope = mcp_call( 1026 base_url, 1027 api_key, 1028 "tools/call", 1029 {"name": name, "arguments": arguments}, 1030 ) 1031 if "error" in envelope: 1032 raise RuntimeError(f"JSON-RPC error: {envelope['error']}") 1033 result = envelope["result"] 1034 if result.get("isError"): 1035 raise RuntimeError(f"Tool {name} failed: {result.get('content')}") 1036 return result 1037 1038 1039def main() -> int: 1040 base_url = os.environ.get("MCP_URL", DEFAULT_MCP_URL).rstrip("/") 1041 api_key = os.environ.get("MCP_API_KEY", "").strip() 1042 if not api_key: 1043 print( 1044 "Set MCP_API_KEY to your Tonita API key (tnk_live_kp_...).", 1045 file=sys.stderr, 1046 ) 1047 return 2 1048 1049 query = os.environ.get("MCP_QUERY", "white leather sneakers") 1050 1051 print(f"MCP URL: {base_url}/mcp\\n") 1052 1053 print("1) initialize") 1054 init = mcp_call( 1055 base_url, 1056 api_key, 1057 "initialize", 1058 { 1059 "protocolVersion": "2025-03-26", 1060 "capabilities": {}, 1061 "clientInfo": {"name": "sample-client", "version": "1.0"}, 1062 }, 1063 ) 1064 server = init["result"]["serverInfo"] 1065 print(f" server: {server.get('name')} {server.get('version', '')}") 1066 1067 print("2) tools/list") 1068 tools_msg = mcp_call(base_url, api_key, "tools/list") 1069 tools = tools_msg["result"]["tools"] 1070 print(f" tools: {[t['name'] for t in tools]}") 1071 1072 print("3) tonita-search") 1073 search = call_tool( 1074 base_url, 1075 api_key, 1076 "tonita-search", 1077 { 1078 "product_type": "sneakers", 1079 "gender": "Mens", 1080 "retrieval_queries": [query], 1081 }, 1082 ) 1083 sc = search["structuredContent"] 1084 cards = sc.get("listingCards") or [] 1085 print(f" title: {sc.get('title')!r}") 1086 print(f" results: {len(cards)}") 1087 for card in cards[:2]: 1088 print( 1089 f" - {card.get('listingId')}: " 1090 f"{(card.get('title') or '')[:60]}" 1091 ) 1092 if len(cards) > 2: 1093 print(f" ... and {len(cards) - 2} more") 1094 1095 if cards: 1096 listing_id = cards[0]["listingId"] 1097 print("4) tonita-get-listing-details") 1098 details = call_tool( 1099 base_url, 1100 api_key, 1101 "tonita-get-listing-details", 1102 {"listing_ids": [listing_id]}, 1103 ) 1104 entry = details["structuredContent"]["listing_details"][listing_id] 1105 thumb = entry.get("thumbnail_image") or {} 1106 print(f" url: {entry.get('url', '')[:80]}") 1107 print(f" thumbnail image_id: {thumb.get('image_id')}") 1108 1109 print("\\nDone.") 1110 return 0 1111 1112 1113if __name__ == "__main__": 1114 raise SystemExit(main()) 1115`;function rfe(e){return nfe.replace("__MCP_BASE_URL__",e)}function WP(){const e="https://mcp-generic.tonita.co".trim();if(!e)throw new Error("VITE_TONITA_GENERIC_MCP_BASE_URL is not set. Add it to .env-cmdrc.json for this environment.");return e.replace(/\/+$/,"")}function ife(){return`${WP()}/mcp`}const VP=WP(),wc=ife(),afe=rfe(VP),sfe=()=>({display:"flex",flexDirection:"column",width:"100%",height:"100dvh",backgroundColor:"var(--surface-primary-default, #FFFFFF)"}),ofe=()=>({flex:1,paddingTop:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-x-large, 2rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-x-large, 2rem)",justifyContent:"flex-start",alignItems:"stretch",overflowY:"auto",overflowX:"hidden",minHeight:0,maxHeight:"100%",overscrollBehavior:"contain"}),lfe=e=>({position:"fixed",top:0,left:0,right:0,zIndex:1100,backgroundColor:"var(--surface-primary-default, #FFF)",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:0,paddingLeft:e?0:"var(--spacing-small, 0.75rem)",paddingRight:e?0:"var(--spacing-small, 0.75rem)",touchAction:"none"}),Ie={mainContent:{display:"flex",flexDirection:"column",maxWidth:"48rem",margin:"0 auto",width:"100%",gap:"var(--spacing-medium, 1rem)",border:"1px solid var(--border-default, #E5E5E7)",borderRadius:"var(--radius-medium, 0.5rem)",backgroundColor:"var(--surface-primary-default)",padding:"clamp(1.25rem, 0.7rem + 2.2vw, 2rem)"},blogHeader:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-large, 1.5rem)",borderBottom:"1px solid var(--border-default, #E5E5E7)"},blogTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"case" on, "salt" on, "ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlice
1115nsed Trial")',fontSize:"var(--size-3x-large, 2rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.2",letterSpacing:"-0.04rem"},blogSubtitle:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-medium, 1.125rem)",fontStyle:"italic",fontWeight:400,lineHeight:"1.5"},section:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},sectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-x-large, 1.5rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginTop:"var(--spacing-medium, 1rem)"},subSectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginTop:"var(--spacing-small, 0.75rem)"},paragraph:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:400,lineHeight:"1.7",letterSpacing:"-0.01rem"},list:{margin:0,paddingLeft:"1.25rem",display:"flex",flexDirection:"column",gap:"0.375rem",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",lineHeight:"1.6"},codeBlock:{padding:"var(--spacing-medium, 1rem)",borderRadius:"var(--radius-medium, 0.5rem)",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.8rem",lineHeight:"1.6",overflowX:"auto",whiteSpace:"pre",backgroundColor:"var(--code-block-bg)",color:"var(--code-block-text)",border:"1px solid var(--code-block-border)"},codeCaption:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--spacing-x-small, 0.5rem)"},codeLabel:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05rem"},inlineCode:{backgroundColor:"var(--surface-secondary-default, #F2F2F3)",padding:"0.125rem 0.375rem",borderRadius:"0.25rem",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.875em",color:"var(--inline-code-text)"},backLink:{display:"inline-flex",alignItems:"center",gap:"0.5rem",color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",textDecoration:"none",marginBottom:"var(--spacing-medium, 1rem)",cursor:"pointer"},noteBox:{backgroundColor:"rgba(34, 211, 238, 0.1)",border:"1px solid rgba(34, 211, 238, 0.3)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},table:{width:"100%",borderCollapse:"collapse",fontSize:"var(--size-x-small, 0.875rem)"},tableHeader:{backgroundColor:"var(--surface-secondary-default, #F2F2F3)",textAlign:"left",padding:"var(--spacing-small, 0.75rem)",fontWeight:600,borderBottom:"2px solid var(--border-default, #E5E5E7)"},tableCell:{padding:"var(--spacing-small, 0.75rem)",borderBottom:"1px solid var(--border-default, #E5E5E7)",verticalAlign:"top"},link:{color:"#6366f1",textDecoration:"none"},navButton:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"},navButtonHover:{backgroundColor:"var(--dropdown-button-hover)"},navButtonActive:{backgroundColor:"var(--dropdown-button-active)"},createNavButtonSelected:e=>({display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:e?"var(--dropdown-button-hover)":"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",width:"100%",textAlign:"left",transition:"background-color 0.15s ease"}),navButtonText:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",fontWeight:400,lineHeight:"var(--line-height-small, 1.25rem)"},mobileMenuItemContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",paddingLeft:"var(--spacing-large, 1.5rem)",paddingRight:"var(--spacing-large, 1.5rem)",paddingTop:"var(--spacing-small, 0.75rem)",paddingBottom:"var(--spacing-small, 0.75rem)",cursor:"pointer",transition:"background-color 0.15s ease",gap:"0.75rem",backgroundColor:"transparent",border:"none",textAlign:"left"},mobileMenuItemContainerHover:{backgroundColor:"var(--dropdown-button-hover)"},mobileMenuItemContainerActive:{backgroundColor:"var(--dropdown-button-active)"}},Ba=({children:e})=>c.jsx("code",{style:Ie.inlineCode,children:e}),qP=({asNavButton:e=!1})=>{const{colors:t}=ze(),{isMobile:n}=We(),r=Bt(),i=Pt(),[s,l]=G.useState(!1),[u,d]=G.useState(!1),h=i.pathname==="/blog/tonita-mcp";if(e&&n){const m=()=>u?{...Ie.mobileMenuItemContainer,...Ie.mobileMenuItemContainerActive}:s?{...Ie.mobileMenuItemContainer,...Ie.mobileMenuItemContainerHover}:Ie.mobileMenuItemContainer;return c.jsxs("button",{style:m(),onMouseEnter:()=>l(!0),onMouseLeave:()=>{l(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onClick:()=>r("/blog/tonita-mcp"),children:[c.jsx("img",{src:jl,alt:"Tonita MCP",style:Dt(t.text,"1.25rem")}),c.jsx("span",{style:Ie.navButtonText,children:"Tonita MCP"})]})}if(e){const m=()=>h?Ie.createNavButtonSelected(s):u?{...Ie.navButton,...Ie.navButtonActive}:s?{...Ie.navButton,...Ie.navButtonHover}
1115:Ie.navButton;return c.jsxs("button",{style:m(),onMouseEnter:()=>l(!0),onMouseLeave:()=>{l(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onClick:()=>r("/blog/tonita-mcp"),children:[c.jsx("img",{src:jl,alt:"Tonita MCP",style:Dt(t.text,"1.25rem")}),c.jsx("span",{style:Ie.navButtonText,children:"Tonita MCP"})]})}return c.jsxs("div",{style:sfe(),"data-testid":"tonita-mcp-blog",children:[c.jsx("div",{style:lfe(n),children:c.jsx(es,{title:io})}),c.jsx("div",{style:ofe(),children:c.jsxs("div",{className:"blog-page-card",style:Ie.mainContent,children:[c.jsx("div",{style:Ie.backLink,"data-testid":"blog-back-link",onClick:()=>r("/blog"),onKeyDown:m=>m.key==="Enter"&&r("/blog"),role:"button",tabIndex:0,children:O1}),c.jsxs("header",{style:Ie.blogHeader,children:[c.jsx("h1",{style:Ie.blogTitle,children:"Tonita is for Agents, too!"}),c.jsx("p",{style:Ie.paragraph,children:"We built Tonita to make shopping search feel natural for humans: describe what you want, refine it in conversation, search by image, and get results grounded in real apparel inventory. Now we are opening the same deep search engine to AI agents."}),c.jsx("p",{style:Ie.paragraph,children:"Tonita MCP lets LLM clients tap into Tonita's apparel search through the Model Context Protocol. Instead of relying on brittle web browsing or generic product guesses, agents can call a purpose-built shopping search stack and receive structured, inventory-grounded JSON results. This guide covers the Generic MCP server: tools, requests, responses, and JSON. Our ChatGPT app uses a separate server with interactive product card widgets."})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"What is Tonita MCP?"}),c.jsxs("p",{style:Ie.paragraph,children:["Tonita MCP is a"," ",c.jsx("a",{href:"https://modelcontextprotocol.io/",target:"_blank",rel:"noopener noreferrer",style:Ie.link,children:"Model Context Protocol"})," ","server that exposes Tonita's apparel search to LLM clients. This guide covers the ",c.jsx("strong",{children:"Generic MCP"})," server (tools + JSON). Our ChatGPT app uses a separate server with interactive product card widgets."]})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"Quick reference (for agents)"}),c.jsx(pa,{label:"yaml",children:`service: tonita-generic-mcp 1116protocol: MCP 2025-03-26 over Streamable HTTP 1117endpoint: ${wc} 1118auth: 1119 header: Authorization 1120 format: "Bearer <your Tonita API key>" 1121 example: "tnk_live_kp_abc12345_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 1122tools: 1123 - tonita-search 1124 - tonita-get-listing-details 1125rate_limit: 1126 default_per_day: 100 1127 reset: UTC midnight 1128contact: [email protected] 1129privacy: https://tonita.co/privacy-policy`})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"Get an API key"}),c.jsxs("p",{style:Ie.paragraph,children:["Every ",c.jsx(Ba,{children:"POST /mcp"})," request requires"," ",c.jsx("strong",{children:"one Tonita API key"}),". There is no separate key per environment â create one key in Settings and use it everywhere below."]}),c.jsxs("ol",{style:Ie.list,children:[c.jsxs("li",{children:["Sign in at"," ",c.jsx("a",{href:"https://tonita.co",style:Ie.link,children:"tonita.co"})]}),c.jsxs("li",{children:["Open Settings â"," ",c.jsx("strong",{children:"Connect Tonita to your AI assistant"})]}),c.jsxs("li",{children:["Click ",c.jsx("strong",{children:"Create a key"})," and copy it immediately"]})]}),c.jsxs("p",{style:Ie.paragraph,children:["Keys look like ",c.jsx(Ba,{children:"tnk_live_kp_abc12345_â¦"}),". One active key per account. Default limit:"," ",c.jsx("strong",{children:"100 requests per UTC day"}),"."]}),c.jsxs("p",{style:Ie.paragraph,children:["Higher limits or partner access:"," ",c.jsx("a",{href:"mailto:[email protected]",style:Ie.link,children:"[email protected]"})]})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"Quick Start"}),c.jsxs("p",{style:Ie.paragraph,children:["The fastest way to verify your key is our"," ",c.jsx("strong",{children:"Python sample client"}),". It mimics what an LLM client (like Claude) does: ",c.jsx(Ba,{children:"initialize"})," â"," ",c.jsx(Ba,{children:"tools/list"})," â"," ",c.jsx(Ba,{children:"tonita-search"})," â"," ",c.jsx(Ba,{children:"tonita-get-listing-details"}),"."]}),c.jsx(pa,{label:"terminal setup",children:`pip install requests 1130 1131export MCP_API_KEY="tnk_live_kp_your_key_id_your_secret" 1132export MCP_URL="${VP}" 1133 1134# Save the sample_client.py block below, then: 1135python sample_client.py`}),c.jsx(pa,{label:"sample_client.py (copy and run)",defaultOpen:!1,children:afe}),c.jsx("h3",{style:Ie.subSectionTitle,children:"Example output"}),c.jsx("div",{style:Ie.noteBox,children:c.jsx("p",{style:Ie.paragraph,children:"Illustrative only â your listings will differ."})}),c.jsx(pa,{label:"stdout",children:`MCP URL: ${wc} 1136 11371) initialize 1138 server: tonita-mcp 1.25.0 1139 11402) tools/list 1141 tools: ['tonita-search', 'tonita-get-listing-details'] 1142 11433) tonita-search 1144 title: 'white leather sneakers' 1145 results: 20 1146 - seavees.com!360921c9ade74097: Mens - Diamond Cup - White 1147 - greats.com!34b88f1fab7ee769: The Kingston - White White 1148 ... and 18 more 1149 11504) tonita-get-listing-details 1151 url: https://seavees.com/products/mens-diamond-cup-white?variant=42288352067658 1152 thumbnail image_id: 9143b224a1934df1 1153 1154Done.`})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"About the system prompt"}),c.jsxs("p",{style:Ie.paragraph,children:["When your MCP client connects, Tonita sends server instructions that tell the model how to use our tools. Much of this text is shared with the ",c.jsx("strong",{children:"interactive tonita.co chat"}),", so some lines assume a shopper is browsing product carousels on our website."]}),c.jsxs("table",{style:Ie.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{style:Ie.tableHeader,children:"Guidance"}),c.jsx("th",{style:Ie.tableHeader,children:"MCP?"}),c.jsx("th",{style:Ie.tableHeader,children:"Notes"})]})}),c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{style:Ie.tableCell,children:"One product type per search"}),c.jsx("td",{style:Ie.tableCell,children:"Yes"}),c.jsx("td",{style:Ie.tableCell,children:"Required for good results"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:Ie.tableCell,children:"Literal, self-contained queries"}),c.jsx("td",{style:Ie.tableCell,children:"Yes"}),c.jsx("td",{style:Ie.tableCell})]}),c.jsxs("tr",{children:[c.jsx("td",{style:Ie.tableCell,children:"Call listing details before follow-ups"}),c.jsx("td",{style:Ie.tableCell,children:"Yes"}),c.jsx("td",{style:Ie.tableCell,children:"Model must track listing IDs from prior tool results â no on-screen carousel"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:Ie.tableCell,children:'"Previously shown listing" flows'}),c.jsx("td",{style:Ie.tableCell,children:"Partially"}),c.jsx("td",{style:Ie.tableCell,children:"Works if the model saved IDs from earlier tool calls"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:Ie.tableCell,children:"Widget / carousel hints"}),c.jsx("td",{style:Ie.tableCell,children:"No"}),c.jsx("td",{style:Ie.tableCell,children:"Generic MCP returns JSON; your client presents results"})]})]})]}),c.jsxs("p",{style:Ie.paragraph,children:["For v1, treat the instructions as"," ",c.jsx("strong",{children:"search discipline"})," (how to call the tools well), not as UI behavior."]})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"Expected responses"}),c.jsx("div",{style:Ie.noteBox,children:c.jsxs("p",{style:Ie.paragraph,children:[c.jsx("strong",{children:"Disclaimer:"})," Catalog contents change constantly. Examples below are illustrative â your actual titles, prices, IDs, and counts will differ."]})}),c.jsxs("h3",{style:Ie.subSectionTitle,children:[c.jsx(Ba,{children:"tonita-search"})," (first 2 listings)"]}),c.jsx(pa,{label:"json excerpt â tonita-search",children:`{ 1155 "retrieval_queries": ["white leather low-top sneakers"], 1156 "total_results": 20, 1157 "listings": [ 1158 { 1159 "listingId": "greats.com!548716d2c2d39029", 1160 "title": "The Royale 2.0 - Blanco", 1161 "currentPrice": "$118.97", 1162 "brandName": "GREATS", 1163 "storeName": "greats.com", 1164 "url": "https://greats.com/products/the-royale-2-0-blanco-mens?...", 1165 "availableSizes": ["7", "8", "8.5", "9", "10"] 1166 }, 1167 { 1168 "listingId": "seavees.com!360921c9ade74097", 1169 "title": "Mens - Diamond Cup - White", 1170 "currentPrice": "$85.00", 1171 "brandName": "SeaVees", 1172 "storeName": "seavees.com", 1173 "url": "https://seavees.com/products/mens-diamond-cup-white?...", 1174 "availableSizes": ["8", "9", "10", "11"] 1175 } 1176 ] 1177}`}),c.jsx("h3",{style:Ie.subSectionTitle,children:c.jsx(Ba,{children:"tonita-get-listing-details"})}),c.jsx(pa,{label:"json excerpt â tonita-get-listing-details",children:`{ 1178 "listing_details": { 1179 "greats.com!548716d2c2d39029": { 1180 "url": "https://greats.com/products/the-royale-2-0-blanco-mens?...", 1181 "title": "The Royale 2.0 - Blanco", 1182 "one_line_description": "Minimal white leather low-top sneaker with embossed branding...", 1183 "current_price": {"value": 118.97, "currency": "USD"}, 1184 "available_sizes": ["7", "8", "8.5", "9", "10", "11"], 1185 "thumbnail_image": { 1186 "image_id": "89e667d28336d70f", 1187 "image_url": "https://cdn.shopify.com/..." 1188 } 1189 } 1190 } 1191}`}),c.jsxs("p",{style:Ie.paragraph,children:["The tool's text content for listing details is a short summary (",c.jsx(Ba,{children:"Fetched details for 1 listings"}),"). The JSON above lives in"," ",c.jsx(Ba,{children:"structuredContent.listing_details"}),"."]})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"Rate limits"}),c.jsxs("table",{style:Ie.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{style:Ie.tableHeader,children:"Setting"}),c.jsx("th",{style:Ie.tableHeader,children:"Value"})]})}),c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{style:Ie.tableCell,children:"Default daily cap"}),c.jsx("td",{style:Ie.tableCell,children:c.jsx("strong",{children:"100 requests / key / UTC day"})})]}),c.jsxs("tr",{children:[c.jsx("td",{style:Ie.tableCell,children:"Counter reset"}),c.jsx("td",{style:Ie.tableCell,children:"UTC midnight"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:Ie.tableCell,children:"When exceeded"}),c.jsxs("td",{style:Ie.tableCell,children:["HTTP 429 with ",c.jsx(Ba,{children:"Retry-After"})]})]})]})]})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"Connect your client"}),c.jsx(pa,{label:"endpoint",children:wc}),c.jsx("h3",{style:Ie.subSectionTitle,children:"Cursor"}),c.jsx(pa,{label:".cursor/mcp.json",children:`{ 1192 "mcpServers": { 1193 "tonita": { 1194 "url": "${wc}", 1195 "headers": { 1196 "Authorization": "Bearer tnk_live_kp_your_key_id_your_secret" 1197 } 1198 } 1199 } 1200}`})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"curl examples"}),c.jsx(pa,{label:"setup",children:'export TONITA_MCP_KEY="tnk_live_kp_your_key_id_your_secret"'}),c.jsx("h3",{style:Ie.subSectionTitle,children:"Auth check â expected 401 without a key"}),c.jsx(pa,{label:"curl â auth check",children:`curl -sS -X POST \\ 1201 "${wc}" \\ 1202 -H "Content-Type: application/json" \\ 1203 -H "Accept: application/json, text/event-stream" \\ 1204 -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' 1205 1206# Expected: {"error": "unauthorized"}`}),c.jsx("h3",{style:Ie.subSectionTitle,children:"Search â expected listingCards"}),c.jsx(pa,{label:"curl â tonita-search",children:`curl -sS -X POST \\ 1207 "${wc}" \\ 1208 -H "Content-Type: application/json" \\ 1209 -H "Accept: application/json, text/event-stream" \\ 1210 -H "Authorization: Bearer $TONITA_MCP_KEY" \\ 1211 -d '{ 1212 "jsonrpc": "2.0", 1213 "id": "search-1", 1214 "method": "tools/call", 1215 "params": { 1216 "name": "tonita-search", 1217 "arguments": { 1218 "product_type": "sneakers", 1219 "gender": "Mens", 1220 "retrieval_queries": ["white leather low-top sneakers"] 1221 } 1222 } 1223 }'`}),c.jsx("h3",{style:Ie.subSectionTitle,children:"Listing details â use a listingId from search"}),c.jsx(pa,{label:"curl â tonita-get-listing-details",children:`curl -sS -X POST \\ 1224 "${wc}" \\ 1225 -H "Content-Type: application/json" \\ 1226 -H "Accept: application/json, text/event-stream" \\ 1227 -H "Authorization: Bearer $TONITA_MCP_KEY" \\ 1228 -d '{ 1229 "jsonrpc": "2.0", 1230 "id": "details-1", 1231 "method": "tools/call", 1232 "params": { 1233 "name": "tonita-get-listing-details", 1234 "arguments": { 1235 "listing_ids": ["LISTING_ID_FROM_SEARCH"] 1236 } 1237 } 1238 }'`})]}),c.jsxs("section",{style:Ie.section,children:[c.jsx("h2",{style:Ie.sectionTitle,children:"Privacy & contact"}),c.jsxs("ul",{style:Ie.list,children:[c.jsxs("li",{children:["Privacy:"," ",c.jsx("a",{href:"https://tonita.co/privacy-policy",style:Ie.link,children:"tonita.co/privacy-policy"})]}),c.jsxs("li",{children:["MCP questions:"," ",c.jsx("a",{href:"mailto:[email protected]",style:Ie.link,children:"[email protected]"})]})]})]})]})})]})},cfe=()=>({display:"flex",flexDirection:"column",width:"100%",height:"100dvh",backgroundColor:"var(--surface-primary-default, #FFFFFF)"}),ufe=e=>({flex:1,paddingTop:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",paddingBottom:e?"var(--spacing-x-large, 2rem)":0,display:"flex",flexDirection:e?"column":"row",gap:"var(--spacing-medium, 1rem)",justifyContent:"flex-start",alignItems:"stretch",minHeight:0,overflowY:e?"auto":"hidden",overflowX:"hidden",maxHeight:"100%",overscrollBehavior:"contain"}),dfe=e=>({position:"fixed",top:0,left:0,right:0,zIndex:1100,backgroundColor:"var(--surface-primary-default, #FFF)",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:0,paddingLeft:e?0:"var(--spacing-small, 0.75rem)",paddingRight:e?0:"var(--spacing-small, 0.75rem)",touchAction:"none"}),sn={mainContent:{display:"flex",flexDirection:"column",maxWidth:"48rem",margin:"0 auto",width:"100%",gap:"var(--spacing-medium, 1rem)"},blogHeader:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-large, 1.5rem)",borderBottom:"1px solid var(--border-default, #E5E5E7)"},blogTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"case" on, "salt" on, "ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlice
1238nsed Trial")',fontSize:"var(--size-3x-large, 2rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.2",letterSpacing:"-0.04rem"},blogSubtitle:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-medium, 1.125rem)",fontStyle:"italic",fontWeight:400,lineHeight:"1.5"},authorName:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",fontWeight:500},section:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},sectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-x-large, 1.5rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginTop:"var(--spacing-medium, 1rem)"},subSectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginTop:"var(--spacing-small, 0.75rem)"},paragraph:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:400,lineHeight:"1.7",letterSpacing:"-0.01rem"},codeBlock:{padding:"var(--spacing-medium, 1rem)",borderRadius:"var(--radius-medium, 0.5rem)",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.8rem",lineHeight:"1.6",overflowX:"auto",whiteSpace:"pre",backgroundColor:"var(--code-block-bg)",color:"var(--code-block-text)",border:"1px solid var(--code-block-border)"},codeCaption:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--spacing-x-small, 0.5rem)"},codeLabel:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05em"},githubLink:{color:"#6366f1",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:500,textDecoration:"none",cursor:"pointer"},inlineCode:{backgroundColor:"var(--surface-secondary-default, #F2F2F3)",padding:"0.125rem 0.375rem",borderRadius:"0.25rem",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.875em"},inlineCodeLight:{color:"#c7254e"},inlineCodeDark:{color:"#f472b6"},diagramContainer:{padding:"var(--spacing-large, 1.5rem)",borderRadius:"var(--radius-large, 0.75rem)",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.75rem",lineHeight:"1.5",overflowX:"auto",whiteSpace:"pre"},diagramContainerLight:{backgroundColor:"var(--surface-secondary-default, #f2f2f3)",color:"#0891b2",border:"1px solid var(--border-default, #E5E5E7)"},diagramContainerDark:{backgroundColor:"#0f0f1a",color:"#22d3ee",border:"1px solid rgba(34, 211, 238, 0.2)"},table:{width:"100%",borderCollapse:"collapse",marginTop:"var(--spacing-small, 0.75rem)",fontSize:"var(--size-x-small, 0.875rem)"},tableHeader:{backgroundColor:"var(--surface-secondary-default, #F2F2F3)",textAlign:"left",padding:"var(--spacing-small, 0.75rem)",fontWeight:600,borderBottom:"2px solid var(--border-default, #E5E5E7)"},tableCell:{padding:"var(--spacing-small, 0.75rem)",borderBottom:"1px solid var(--border-default, #E5E5E7)",verticalAlign:"top"},highlightBox:{backgroundColor:"rgba(253, 228, 104, 0.15)",border:"1px solid rgba(253, 228, 104, 0.4)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},calloutBox:{backgroundColor:"rgba(99, 102, 241, 0.1)",border:"1px solid rgba(99, 102, 241, 0.3)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},warningBox:{backgroundColor:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)"},noteBox:{backgroundColor:"rgba(34, 211, 238, 0.1)",border:"1px solid rgba(34, 211, 238, 0.3)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-medium, 1rem)",marginTop:"var(--spacing-small, 0.75rem)"},screenshot:{width:"100%",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default, #E5E5E7)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",marginTop:"var(--spacing-small, 0.75rem)"},screenshotCaption:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontStyle:"italic",textAlign:"center",marginTop:"var(--spacing-x-small, 0.5rem)"},navButton:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",backgroundColor:"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent"},navButtonHover:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",backgroundColor:"var(--dropdown-button-hover)",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent"},navButtonActive:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",backgroundColor:"var(--dropdown-button-active)",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent"},createNavButtonSelected:e=>({display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",backgroundColor:e?"var(--dropdown-button-hover)":"var(--surface-secondary-default, #F2F2F3)",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent"}
1238),mobileMenuItemContainer:{position:"relative",cursor:"pointer",padding:"var(--spacing-small) 6px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",width:"100%",minHeight:"3rem",borderRadius:"var(--border-radius-medium, 0.5rem)",transition:"background-color 0.15s ease",backgroundColor:"transparent"},mobileMenuItemContainerHover:{backgroundColor:"var(--dropdown-button-hover)"},mobileMenuItemContainerActive:{backgroundColor:"var(--dropdown-button-active)"},mobileMenuItemContainerSelected:{backgroundColor:"var(--background-secondary)",borderRadius:"var(--border-radius-medium, 0.5rem)"},mobileMenuItemContent:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",flex:"1",minWidth:0},createMobileMenuItemIcon:e=>({width:"1.25rem",height:"1.25rem",minWidth:"1.25rem",aspectRatio:"1/1",flexShrink:0,filter:e,transition:"filter 0.3s ease"}),mobileMenuItemText:{color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontWeight:400,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0},mobileMenuItemTextActive:{color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontWeight:500,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0},footer:{marginTop:"var(--spacing-x-large, 2rem)",paddingTop:"var(--spacing-large, 1.5rem)",borderTop:"1px solid var(--border-default, #E5E5E7)",textAlign:"center"},footerText:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontStyle:"italic"},stepNumber:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.5rem",height:"1.5rem",borderRadius:"50%",backgroundColor:"#6366f1",color:"#ffffff",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:600,marginRight:"0.5rem"},introSection:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-medium, 1rem)",alignSelf:"stretch"},welcome:{display:"flex",padding:"var(--spacing-medium, 1rem) var(--grid-content-margin, 0)",flexDirection:"column",alignItems:"center",gap:"var(--spacing-medium, 1rem)",alignSelf:"stretch"},logo:{display:"flex",width:"5rem",height:"5rem",padding:"0.5rem 0.21825rem 0.5rem 0.25rem",justifyContent:"center",alignItems:"center",aspectRatio:"1/1"},pageTitle:{color:"var(--text-default-primary, #0E0E11)",textAlign:"center",fontFeatureSettings:'"case" on, "salt" on, "ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-4x-large, 2.5rem)",fontStyle:"normal",fontWeight:300,lineHeight:"var(--line-height-4x-large, 3rem)",letterSpacing:"-0.05rem"},logoContainer:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:"var(--spacing-large, 1.5rem)"},logoSmall:{height:"3rem",width:"auto"},blogsIndexContainer:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",marginBottom:"var(--spacing-x-large, 2rem)",padding:"var(--spacing-large, 1.5rem)",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default, #E5E5E7)",backgroundColor:"var(--surface-primary-default)"},blogsIndexTitle:{fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"1.3",letterSpacing:"-0.02rem",marginBottom:"var(--spacing-small, 0.75rem)",color:"var(--text-default-primary)"},blogIndexItem:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-small, 0.75rem)",padding:"var(--spacing-small, 0.75rem)",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:"transparent",border:"none",textAlign:"left",width:"100%"},blogIndexItemHover:{backgroundColor:"var(--dropdown-button-hover)"},blogIndexItemActive:{backgroundColor:"var(--dropdown-button-active)"},blogIndexItemNumber:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-medium, 1.125rem)",fontWeight:600,minWidth:"1.5rem",color:"var(--text-default-primary)"},blogIndexItemText:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:400,lineHeight:"1.5",color:"var(--text-default-primary)"},blogPartLabel:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em",marginLeft:"var(--spacing-small, 0.75rem)",color:"var(--text-default-secondary)"},createIndexContainer:e=>({display:"flex",flexDirection:"column",width:e?"100%":"20rem",minWidth:e?"auto":"20rem",maxWidth:e?"100%":"20rem",gap:e?"var(--spacing-x-large, 2rem)":"var(--spacing-medium, 1rem)",...e?{}:{padding:"var(--spacing-medium, 1rem)",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default, #E5E5E7)",backgroundColor:"var(--surface-primary-default)",minHeight:0},overflowY:e?"visible":"auto",overscrollBehavior:"contain"}),pagerContainer:{flex:1,display:"flex",flexDirection:"column",position:"relative",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default, #E5E5E7)",overflow:"hidden",minHeight:0},pagerContainerBg:{backgroundColor:"var(--surface-primary-default)"},pagerContent:{flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden",padding:"var(--spacing-large, 1.5rem)",paddingBottom:"var(--spacing-x-large, 2rem)",overscrollBehavior:"contain"},expandOverlay:{position:"absolute",top:"var(--spacing-medium, 1rem)",right:"var(--spacing-medium, 1rem)",zIndex:10,padding:"var(--spacing-small, 0.75rem)",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default, #E5E5E7)",cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",transition:"all 0.15s ease"},createExpandOverlay:e=>({backgroundColor:e?"var(--dropdown-button-active)":"var(--dropdown-button-hover)",color:"var(--text-default-primary)"}),emptyPager:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,padding:"var(--spacing-x-large, 2rem)",textAlign:"center"},emptyPagerText:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-medium, 1.125rem)",fontWeight:400,color:"var(--text-default-secondary)"}},zv=({asNavButton:e=!1})=>{const{colors:t}=ze(),{isMobile:n}=We(),r=Bt(),i=Pt(),{slug:s}=nm(),l=An(L=>L.close),u=hn(L=>L.setSelectedIndex),[d,h]=G.useState(!1),[m,g]=G.useState(!1),[y,b]=G.useState(null),[S,I]=G.useState(null),[w,C]=G.useState(null),[E,A]=G.useState(!1),_=G.useRef(null),R=i.pathname.startsWith("/blog");if(G.useEffect(()=>{if(!(n||e)){if(s&&zP(s)){C(s);return}i.pathname==="/blog"&&r(`/blog/${mR}`,{replace:!0})}},[e,n,i.pathname,r,s]),G.useEffect(()=>{!n||i.pathname!=="/blog"||w||C(mR)},[n,i.pathname,w]),G.useEffect(()=>{_.current?.scrollTo({top:0})},[w]),e){const L=()=>{u(null),r("/blog"),l()};if(n){const O=()=>R?{...sn.mobileMenuItemContainer,...sn.mobileMenuItemContainerSelected}:m?{...sn.mobileMenuItemContainer,...sn.mobileMenuItemContainerActive}:d?{...sn.mobileMenuItemContainer,...sn.mobileMenuItemContainerHover}:sn.mobileMenuItemContainer;return c.jsx("div",{style:O(),onClick:L,onMouseEnter:()=>h(!0),onMouseLeave:()=>{h(!1),g(!1)},onMouseDown:()=>g(!0),onMouseUp:()=>g(!1),onTouchStart:()=>g(!0),onTouchEnd:()=>g(!1),onTouchCancel:()=>g(!1),"data-testid":"blogs-nav-item",children:c.jsxs("div",{style:sn.mobileMenuItemContent,children:[c.jsx("img",{src:jl,alt:io,style:sn.createMobileMenuItemIcon(t.iconFilter)}),c.jsx("span",{style:R?sn.mobileMenuItemTextActive:sn.mobileMenuItemText,children:io})]})})}const j=()=>R?sn.createNavButtonSelected(d):m?sn.navButtonActive:d?sn.navButtonHover:sn.navButton;return c.jsxs("button",{style:j(),onClick:L,onMouseEnter:()=>h(!0),onMouseLeave:()=>{h(!1),g(!1)},onMouseDown:()=>g(!0),onMouseUp:()=>g(!1),"data-testid":"blogs-nav-item",children:[c.jsx("img",{src:jl,alt:io,style:{...Dt(t.iconFilter),marginRight:"var(--spacing-3x-small, 0.25rem)"}}),io]})}return c.jsxs("div",{style:cfe(),"data-testid":"blogs-page",children:[c.jsx("div",{style:dfe(n),children:c.jsx(es,{title:io})}),c.jsxs("div",{style:ufe(n),children:[c.jsx("div",{style:sn.createIndexContainer(n),children:c.jsx("section",{style:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},children:c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)",border:"1px solid var(--interactive-border)",borderRadius:"var(--radius-medium, 0.5rem)",padding:"var(--spacing-small, 0.75rem)"},children:rk.map(L=>{const j=w===L.id,O=y===L.id,F=S===L.id;return c.jsx("button",{style:{...sn.blogIndexItem,...j?sn.blogIndexItemActive:O?sn.blogIndexItemHover:F?sn.blogIndexItemActive:{}},onClick:()=>{n?r(`/blog/${L.id}`):r(`/blog/${L.id}`,{replace:!0})},onMouseEnter:()=>b(L.id),onMouseLeave:()=>{b(null),I(null)},onMouseDown:()=>I(L.id),onMouseUp:()=>I(null),children:c.jsx("span",{style:sn.blogIndexItemText,children:L.title})},L.id)})})})}),!n&&c.jsxs("div",{style:{...sn.pagerContainer,...sn.pagerContainerBg},children:[w&&c.jsxs(c.Fragment,{children:[c.jsx("button",{style:{...sn.expandOverlay,...sn.createExpandOverlay(E)},onClick:()=>r(`/blog/${w}?expanded=1`),onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),"aria-label":"Expand to full page",children:c.jsx("img",{src:Yde,alt:"Expand",style:{width:"1.25rem",height:"1.25rem",filter:"var(--icon-filter)"}})}),c.jsx("div",{ref:_,style:sn.pagerContent,children:w==="microservices-deployment-stack"?c.jsx(ffe,{}):w==="deployment-workflow"?c.jsx(hfe,{}):w==="tonita-mcp"?c.jsx(pfe,{}):null})]}),!w&&c.jsx("div",{style:sn.emptyPager,children:c.jsx("p",{style:sn.emptyPagerText,children:"Select a blog from the index to view its content"})})]})]})]})},ik=({blogTestId:e,children:t})=>c.jsxs("div",{"data-blog-preview":e,children:[t,c.jsx("style",{children:` 1239 [data-blog-preview="${e}"] [data-testid="${e}"] { 1240 height: auto !important; 1241 min-height: 0 !important; 1242 } 1243 [data-blog-preview="${e}"] [data-testid="${e}"] > div:first-child { 1244 display: none !important; 1245 } 1246 [data-blog-preview="${e}"] [data-testid="${e}"] [data-testid="blog-back-link"] { 1247 display: none !important; 1248 } 1249 [data-blog-preview="${e}"] [data-testid="${e}"] > div:last-child { 1250 overflow: visible !important; 1251 max-height: none !important; 1252 flex: none !important; 1253 padding-top: 0 !important; 1254 } 1255 /* 1256 * Standalone blog pages frame their content in a bordered card. Inside 1257 * this preview pane the pager already provides that border, so strip the 1258 * inner card here to avoid a card-inside-a-card double border. 1259 */ 1260 [data-blog-preview="${e}"] .blog-page-card { 1261 border: none !important; 1262 border-radius: 0 !important; 1263 background-color: transparent !important; 1264 padding: 0 !important; 1265 } 1266 `})]}),ffe=()=>c.jsx(ik,{blogTestId:"microservices-deployment-blog",children:c.jsx(HP,{asNavButton:!1})}),hfe=()=>c.jsx(ik,{blogTestId:"deployment-workflow-blog",children:c.jsx(UP,{asNavButton:!1})}),pfe=()=>c.jsx(ik,{blogTestId:"tonita-mcp-blog",children:c.jsx(qP,{asNavButton:!1})}),gR="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%201.66667L3.33334%204.16667V9.16667C3.33334%2013.5833%206.16667%2017.6917%2010%2018.75C13.8333%2017.6917%2016.
12666667%2013.5833%2016.6667%209.16667V4.16667L10%201.66667ZM10%209.99167H15C14.6583%2013.3167%2012.6667%2016.2917%2010%2017.0833V10H5.00001V5.25L10%203.20833V9.99167Z'%20fill='currentColor'/%3e%3c/svg%3e",mfe="/assets/about-glass-box-DGK63h5S.webp",GP="https://tonita.co",gfe=`${GP}/blog/tonita-mcp`,yR="[email protected]",yfe=` 1267@keyframes aboutTermBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } } 1268@keyframes aboutTermPulse { 1269 0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.45); } 1270 70% { box-shadow: 0 0 0 0.35rem rgba(39, 201, 63, 0); } 1271 100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); } 1272} 1273.about-term-caret { 1274 display: inline-block; 1275 width: 0.5rem; 1276 height: 1.05em; 1277 margin-left: 0.25rem; 1278 background-color: #27C93F; 1279 vertical-align: text-bottom; 1280 animation: aboutTermBlink 1.1s steps(1) infinite; 1281} 1282.about-term-dot { animation: aboutTermPulse 2s ease-out infinite; } 1283@media (prefers-reduced-motion: reduce) { 1284 .about-term-caret, .about-term-dot { animation: none; } 1285} 1286`,vfe=[{name:"Aravind",linkedInUrl:"https://www.linkedin.com/in/aravind-sivakumar-a1430410b/"},{name:"Raghul",linkedInUrl:"https://www.linkedin.com/in/toraghulravi/"},{name:"Siva",linkedInUrl:"https://www.linkedin.com/in/d-sivakumar-858ba964/"},{name:"Uma",linkedInUrl:"https://www.linkedin.com/in/uma-mahadevan/"}],bfe=["A polished travel outfit for Lisbon","A dress like this but more understated","Jeans that work with ankle boots","Show me how this might look on me"],xfe=()=>({display:"flex",flexDirection:"column",width:"100%",height:"100dvh",backgroundColor:"var(--surface-primary-default, #FFFFFF)"}),Sfe=()=>({flex:1,paddingTop:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-x-large, 2rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-x-large, 2rem)",justifyContent:"flex-start",alignItems:"stretch",minHeight:0,overflowY:"auto",overflowX:"hidden",maxHeight:"100%",overscrollBehavior:"contain"}),wfe=e=>({position:"fixed",top:0,left:0,right:0,zIndex:1100,backgroundColor:"var(--surface-primary-default, #FFF)",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:0,paddingLeft:e?0:"var(--spacing-small, 0.75rem)",paddingRight:e?0:"var(--spacing-small, 0.75rem)",touchAction:"none"}),Be={mainContent:{display:"flex",flexDirection:"column",maxWidth:"48rem",margin:"0 auto",width:"100%",gap:"var(--spacing-2x-large, 3rem)"},hero:{display:"flex",flexDirection:"column",gap:"var(--spacing-large, 1.5rem)",paddingTop:"var(--spacing-medium, 1rem)"},heroTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"case" on, "salt" on, "ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem)",fontStyle:"normal",fontWeight:400,lineHeight:1.04,letterSpacing:"-0.03em",margin:0,textWrap:"balance"},heroFigure:{margin:0,display:"flex",flexDirection:"column",gap:"var(--spacing-x-small, 0.5rem)"},heroImage:{display:"block",width:"100%",height:"auto",aspectRatio:"1697 / 927",objectFit:"cover",borderRadius:"var(--radius-large, 1rem)",border:"1px solid var(--border-default, #E5E5E9)"},heroCaption:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:400,lineHeight:1.5,color:"var(--text-default-secondary, #6B6B70)",margin:0},queryList:{display:"flex",flexWrap:"wrap",gap:"var(--spacing-x-small, 0.5rem)"},queryPill:{display:"inline-flex",alignItems:"center",padding:"0.5rem 0.875rem",borderRadius:"var(--radius-full, 62.4375rem)",border:"1px solid var(--border-default, #E5E5E9)",backgroundColor:"var(--surface-secondary-default, #F2F2F3)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontWeight:400,lineHeight:1.3,color:"var(--text-default-primary, #0E0E11)"},section:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},movement:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"clamp(0.875rem, 0.4rem + 2vw, 1.5rem)"},movementBody:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},sectionHead:{display:"flex",flexDirection:"column",gap:"var(--spacing-x-small, 0.5rem)",marginBottom:"var(--spacing-2x-small, 0.375rem)"},contactCard:{display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1286p:"var(--spacing-medium, 1rem)",width:"100%",padding:"clamp(1.125rem, 0.6rem + 2.2vw, 1.625rem)",borderRadius:"var(--radius-large, 1rem)",borderWidth:"1px",borderStyle:"solid"},contactPrompt:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"clamp(1.125rem, 0.95rem + 0.8vw, 1.375rem)",fontWeight:400,lineHeight:1.32,letterSpacing:"-0.02rem",margin:0,width:"100%"},contactButton:{display:"inline-flex",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"0.625rem 1.125rem",borderRadius:"var(--radius-full, 62.4375rem)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:500,letterSpacing:"-0.01rem",textDecoration:"none",cursor:"pointer",borderWidth:"1px",borderStyle:"solid",transition:"background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease"},contactButtonArrow:{fontSize:"1.05em",lineHeight:1,transition:"transform 0.15s ease"},sectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--prose-heading-line-height, 1.3)",letterSpacing:"var(--prose-heading-letter-spacing, -0.02rem)",margin:0},paragraph:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:400,lineHeight:"var(--prose-body-line-height, 1.7)",letterSpacing:"var(--prose-body-letter-spacing, -0.01rem)",margin:0},link:{color:"var(--text-default-primary, #0E0E11)",textDecoration:"underline",textUnderlineOffset:"0.15em"},kicker:{display:"block",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:600,lineHeight:1.2,letterSpacing:"0.16em",textTransform:"uppercase",color:"var(--text-default-secondary, #6B6B70)",margin:0},lead:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"clamp(1.25rem, 1.05rem + 1vw, 1.5rem)",fontWeight:400,lineHeight:1.32,letterSpacing:"-0.02rem",margin:0},divider:{border:"none",borderTopWidth:"1px",borderTopStyle:"solid",width:"2.5rem",margin:0},toolCallGroup:{display:"flex",flexDirection:"column",gap:"var(--spacing-x-small, 0.5rem)"},toolCallCard:{borderRadius:"var(--radius-medium, 0.75rem)",border:"1px solid var(--code-block-border)",backgroundColor:"var(--code-block-bg)",overflow:"hidden"},toolCallHeader:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:"0.625rem 0.875rem",borderBottom:"1px solid var(--code-block-border)"},toolCallLabel:{fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:500,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--text-default-secondary, #71717F)"},toolCallStatus:{display:"inline-flex",alignItems:"center",gap:"0.4rem",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"var(--size-2x-small, 0.75rem)",color:"var(--text-default-secondary, #71717F)"},toolCallStatusDot:{width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:"#3FB950",boxShadow:"0 0 0 0.2rem rgba(63,185,80,0.16)"},toolCallBody:{padding:"var(--spacing-medium, 1rem)",display:"flex",flexDirection:"column",gap:"0.5rem",overflowX:"auto"},toolCallArrow:{fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.8125rem",fontWeight:600,lineHeight:1.5,color:"var(--code-block-text)",margin:0,whiteSpace:"pre"},toolCallCode:{fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.8125rem",lineHeight:1.6,color:"var(--code-block-text)",margin:0,whiteSpace:"pre",opacity:.85},toolCallCaption:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.8125rem",lineHeight:1.5,color:"var(--text-default-secondary, #6B6B70)",margin:0},terminalWindow:{width:"100%",borderRadius:"var(--radius-large, 1rem)",border:"1px solid var(--code-block-border)",backgroundColor:"var(--code-block-bg)",overflow:"hidden",boxShadow:"0 1px 2px rgba(0,0,0,0.04), 0 18px 48px rgba(0,0,0,0.10), 0 28px 64px -28px rgba(253,179,65,0.45)"},terminalChrome:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-small, 0.75rem)",padding:"0.75rem 1rem",borderBottom:"1px solid var(--code-block-border)"},terminalDots:{display:"inline-flex",alignItems:"center",gap:"0.4rem",flexShrink:0},terminalDot:{width:"0.7rem",height:"0.7rem",borderRadius:"50%",display:"inline-block"},terminalTitle:{flex:1,textAlign:"center",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"var(--size-2x-small, 0.75rem)",letterSpacing:"0.04em",color:"var(--text-default-secondary, #71717F)"},terminalStatus:{display:"inline-flex",alignItems:"center",gap:"0.4rem",flexShrink:0,fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"var(--size-2x-small, 0.75rem)",color:"var(--text-default-secondary, #71717F)"},terminalStatusDot:{width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:"#27C93F",flexShrink:0},terminalBody:{display:"flex",flexDirection:"column",gap:"var(--spacing-2x-large, 3rem)",padding:"clamp(1.125rem, 0.6rem + 2.2vw, 1.75rem)"},exchange:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},promptLine:{fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.9375rem",fontWeight:500,lineHeight:1.5,letterSpacing:"-0.01em",color:"var(--text-default-primary, #0E0E11)",margin:0},promptSymbol:{color:"#27C93F",fontWeight:700,marginRight:"0.5rem"},responseBlock:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",paddingLeft:"clamp(0.75rem, 0.5rem + 1vw, 1.125rem)",borderLeft:"1px solid var(--code-block-border)"},answerHeadline:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"clamp(1.125rem, 1rem + 0.7vw, 1.375rem)",fontWeight:500,lineHeight:1.35,letterSpacing:"-0.015rem",margin:0},contactCommand:{display:"inline-flex",alignItems:"center",fontFamily:'"JetBrains Mono", "Fira Code", monospace',fontSize:"0.9375rem",fontWeight:500,color:"var(--text-default-primary, #0E0E11)",textDecoration:"none",cursor:"pointer",width:"fit-content"},navButton:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",backgroundColor:"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent"},navButtonHover:{backgroundColor:"var(--dropdown-button-hover)"},navButtonActive:{backgroundColor:"var(--dropdown-button-active)"},createNavButtonSelected:e=>({display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent",backgroundColor:e?"var(--dropdown-button-hover)":"var(--surface-secondary-default, #F2F2F3)"}
1286),mobileMenuItemContainer:{position:"relative",cursor:"pointer",padding:"var(--spacing-small) 6px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",width:"100%",minHeight:"3rem",borderRadius:"var(--border-radius-medium, 0.5rem)",transition:"background-color 0.15s ease",backgroundColor:"transparent"},mobileMenuItemContainerHover:{backgroundColor:"var(--dropdown-button-hover)"},mobileMenuItemContainerActive:{backgroundColor:"var(--dropdown-button-active)"},mobileMenuItemContainerSelected:{backgroundColor:"var(--background-secondary)",borderRadius:"var(--border-radius-medium, 0.5rem)"},mobileMenuItemContent:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",flex:"1",minWidth:0},mobileMenuItemText:{color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0},mobileMenuItemTextActive:{color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontStyle:"normal",fontWeight:500,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0},quietContact:{color:"var(--text-default-secondary, #6B6B70)",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.8125rem",fontWeight:400,lineHeight:1.6,letterSpacing:"-0.01rem",margin:0,marginTop:"calc(-1 * var(--spacing-large, 1.5rem))"}},Y0=e=>({...Be.lead,textWrap:e?void 0:"balance"}),Dh=({href:e,children:t})=>{const[n,r]=G.useState(!1);return c.jsx("a",{href:e,onClick:i=>{i.preventDefault(),nf(e)},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),style:{color:"var(--text-default-primary, #0E0E11)",textDecorationLine:"underline",textDecorationThickness:n?"0.125em":"0.0625em",textUnderlineOffset:"0.2em",textDecorationColor:n?"currentColor":"var(--text-default-secondary, rgba(127,127,127,0.55))",transition:"text-decoration-thickness 0.15s ease, text-decoration-color 0.15s ease",cursor:"pointer"},children:t})},Cfe=()=>c.jsxs("div",{style:Be.toolCallCard,children:[c.jsxs("div",{style:Be.toolCallHeader,children:[c.jsx("span",{style:Be.toolCallLabel,children:"tonita · mcp"}),c.jsxs("span",{style:Be.toolCallStatus,children:[c.jsx("span",{style:Be.toolCallStatusDot}),"tool call"]})]}),c.jsxs("div",{style:Be.toolCallBody,children:[c.jsx("p",{style:Be.toolCallArrow,children:"â tonita-search"}),c.jsx("pre",{style:Be.toolCallCode,children:'{ "query": "polished travel outfit for Lisbon" }'}),c.jsx("p",{style:Be.toolCallArrow,children:"â 24 listings"}),c.jsx("pre",{style:Be.toolCallCode,children:`[ 1287 { "title": "Linen-Blend Camp Shirt", "price": "$95" }, 1288 ⦠+23 more 1289]`})]})]}),ak=({asNavButton:e=!1})=>{const{colors:t}=ze(),{isMobile:n}=We(),r=Bt(),i=Pt(),s="https://apps.apple.com/app/tonita/id6759357836",l=`mailto:${yR}`,u=An(S=>S.close),d=hn(S=>S.setSelectedIndex),[h,m]=G.useState(!1),[g,y]=G.useState(!1),b=i.pathname==="/about";if(e){const S=()=>{d(null),r("/about"),u()};if(n){const w=()=>b?{...Be.mobileMenuItemContainer,...Be.mobileMenuItemContainerSelected}:g?{...Be.mobileMenuItemContainer,...Be.mobileMenuItemContainerActive}:h?{...Be.mobileMenuItemContainer,...Be.mobileMenuItemContainerHover}:Be.mobileMenuItemContainer;return c.jsx("div",{style:w(),onClick:S,onMouseEnter:()=>m(!0),onMouseLeave:()=>{m(!1),y(!1)},onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),onTouchStart:()=>y(!0),onTouchEnd:()=>y(!1),onTouchCancel:()=>y(!1),"data-testid":"about-nav-item",children:c.jsxs("div",{style:Be.mobileMenuItemContent,children:[c.jsx("img",{src:gR,alt:"About",style:Dt(t.iconFilter)}),c.jsx("span",{style:b?Be.mobileMenuItemTextActive:Be.mobileMenuItemText,children:"About"})]})})}const I=()=>b?Be.createNavButtonSelected(h):g?{...Be.navButton,...Be.navButtonActive}:h?{...Be.navButton,...Be.navButtonHover}:Be.navButton;return c.jsxs("button",{style:I(),onClick:S,onMouseEnter:()=>m(!0),onMouseLeave:()=>{m(!1),y(!1)},onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),"data-testid":"about-nav-item",children:[c.jsx("img",{src:gR,alt:"About",style:{...Dt(t.iconFilter),marginRight:"var(--spacing-3x-small, 0.25rem)"}}),"About"]})}return c.jsxs("div",{style:xfe(),"data-testid":"about-page",children:[c.jsx("div",{style:wfe(n),children:c.jsx(es,{})}),c.jsxs("div",{style:Sfe(),children:[c.jsx("style",{children:yfe}),c.jsxs("div",{style:Be.mainContent,children:[c.jsxs("header",{style:Be.hero,children:[c.jsx("h1",{style:Be.heroTitle,children:"The AI discovery layer for modern commerce"}),c.jsxs("figure",{style:Be.heroFigure,children:[c.jsx("img",{style:Be.heroImage,src:mfe,alt:"An AI agent studying Tonita's glass-box search engine â its inner workings glowing inside a transparent cube â in front of a wall of product listings.",loading:"eager",decoding:"async",width:1697,height:927}),c.jsx("figcaption",{style:Be.heroCaption,children:"A glass-box engine: an AI that can reason about â and see inside â how it searches across millions of products"})]})]}),c.jsx("section",{style:Be.movement,children:c.jsxs("div",{style:Be.movementBody,children:[c.jsxs("div",{style:Be.sectionHead,children:[c.jsx("span",{style:Be.kicker,children:"Tonita began with a belief"}),c.jsx("p",{style:{...Y0(n),...n?{}:{textWrap:"nowrap"}},children:"Search and Discovery needed to be rebuilt from the ground up for the AI era."})]}),c.jsxs("p",{style:Be.paragraph,children:["This mission has guided our development of an AI-native search and discovery engine powered by the latest generation of language, vision, and code-generation models. As of spring 2026, our search innovations power the Tonita"," ",c.jsx(Dh,{href:GP,children:"web"})," and"," ",c.jsx(Dh,{href:s,children:"iOS apps"}),", with a catalog spanning apparel and accessories from thousands of brands and millions of listings â helping shoppers discover products they would never find through traditional keyword search, filters, or endless product grids."]}
1289),c.jsx("p",{style:Be.paragraph,children:"That means a shopper can ask for something vague, visual, contextual, or highly specific:"}),c.jsx("div",{style:Be.queryList,children:bfe.map(S=>c.jsx("span",{style:Be.queryPill,children:S},S))}),c.jsx("p",{style:Be.paragraph,children:"Tonita translates these intents and guides the shopper journey with intelligent search behavior across millions of products."})]})}),c.jsx("section",{style:Be.movement,children:c.jsxs("div",{style:Be.movementBody,children:[c.jsxs("div",{style:Be.sectionHead,children:[c.jsx("span",{style:Be.kicker,children:"Under the hood"}),c.jsx("p",{style:Y0(n),children:"A glass-box engine powered by code"})]}),c.jsx("p",{style:Be.paragraph,children:"Tonitaâs glass-box architecture gives the AI transparent access to the underlying search services that power discovery. Rather than consuming the default output of a black-box search engine, the LLM can reason over user intent, generate code-based search strategies, tune retrieval, adjust ranking logic, and orchestrate the full search pipeline to deliver better results. The commerce-optimized stack combines large language models, code-generation models, visual understanding, semantic retrieval, product ranking, real-time catalog intelligence, and virtual try-on."})]})}),c.jsx("section",{style:Be.movement,children:c.jsxs("div",{style:Be.movementBody,children:[c.jsxs("div",{style:Be.sectionHead,children:[c.jsx("span",{style:Be.kicker,children:"The future of shopping"}),c.jsx("p",{style:Y0(n),children:"Not just conversational."}),c.jsx("p",{style:Y0(n),children:"It is agentic, visual, adaptive, and deeply personalized."})]}),c.jsxs("p",{style:Be.paragraph,children:["Tonita is also built for that agentic future. Through"," ",c.jsx(Dh,{href:gfe,children:"MCP"}),", Tonita makes its search and discovery capabilities available to AI agents and LLM clients. This turns commerce discovery into a tool that agents can call, reason over, and compose into larger workflows. For shoppers, this means a more natural and magical experience. For agents, it means a powerful commerce layer for discovering products, comparing alternatives, refining intent, and completing complex shopping tasks programmatically."]}),c.jsxs("div",{style:Be.terminalWindow,children:[c.jsxs("div",{style:Be.terminalChrome,children:[c.jsxs("span",{style:Be.terminalDots,children:[c.jsx("span",{style:{...Be.terminalDot,backgroundColor:"#FF5F56"}}),c.jsx("span",{style:{...Be.terminalDot,backgroundColor:"#FFBD2E"}}),c.jsx("span",{style:{...Be.terminalDot,backgroundColor:"#27C93F"}})]}),!n&&c.jsx("span",{style:Be.terminalTitle,children:"tonita · agent session"}),c.jsxs("span",{style:Be.terminalStatus,children:[c.jsx("span",{className:"about-term-dot",style:Be.terminalStatusDot}),"connected"]})]}),c.jsx("div",{style:Be.terminalBody,children:c.jsxs("section",{style:Be.exchange,children:[c.jsxs("p",{style:Be.promptLine,children:[c.jsx("span",{style:Be.promptSymbol,children:"â¯"}),"can an agent shop with tonita?",c.jsx("span",{className:"about-term-caret"})]}),c.jsxs("div",{style:Be.responseBlock,children:[c.jsx("p",{style:Be.paragraph,children:"Yes. An LLM client calls Tonita over MCP and gets back structured, inventory-grounded results it can reason over."}),c.jsx(Cfe,{})]})]})})]})]})}),c.jsx("section",{style:Be.movement,children:c.jsxs("div",{style:Be.movementBody,children:[c.jsx("div",{style:Be.sectionHead,children:c.jsx("span",{style:Be.kicker,children:"The team"})}
1289),c.jsxs("p",{style:Be.paragraph,children:["Tonitaâs founding team (",vfe.map((S,I)=>c.jsxs(G.Fragment,{children:[I>0?", ":"",c.jsx(Dh,{href:S.linkedInUrl,children:S.name})]},S.linkedInUrl)),") brings together deep experience in search, discovery and personalization; machine learning and AI research; search advertising; and large-scale systems. We are building the AI discovery layer for modern commerce â technical under the hood, magical on the surface, and designed for the way humans â and agents â actually shop."]})]})}),c.jsxs("p",{style:Be.quietContact,children:["Have questions, feedback, or just want to say hello? Weâd love to hear from you at"," ",c.jsx(Dh,{href:l,children:yR}),"."]})]})]})]})},qy={container:{display:"flex",alignItems:"center",justifyContent:"center"},logo:{animation:"tonita-spin 2s linear infinite"},getLogoStyle:e=>({...qy.logo,width:`${e}rem`,height:`${e}rem`}),keyframes:` 1290 @keyframes tonita-spin { 1291 0% { 1292 transform: rotate(0deg); 1293 } 1294 100% { 1295 transform: rotate(360deg); 1296 } 1297 } 1298 `},Zi=({size:e=1.5,customStyles:t={}})=>{const{isDark:n}=ze(),r={...qy.container,...t},i={...qy.getLogoStyle(e)};return c.jsxs("div",{style:r,children:[c.jsx("img",{src:n?Pm:Mm,alt:"Loading...",style:i}),c.jsx("style",{children:qy.keyframes})]})},Ife={display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-medium, 1rem)",alignSelf:"stretch",height:"100%",width:"100%",pointerEvents:"auto",zIndex:1600,position:"relative"},kfe={display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.5rem",overflowY:"auto",overflowX:"hidden",width:"100%",minHeight:0,overscrollBehavior:"contain"},Efe=e=>({display:"flex",paddingTop:"var(--spacing-large, 1.5rem)",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-x-small)",alignSelf:"stretch",flexShrink:0,marginTop:"auto",width:"100%",borderTop:`1px solid ${e}`}),Tfe=e=>({display:"flex",paddingTop:"var(--spacing-medium, 1rem)",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",width:"100%",borderTop:`1px solid ${e}`}),Afe=e=>({display:"flex",paddingTop:"var(--spacing-medium, 1rem)",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-medium, 1rem)",alignSelf:"stretch",width:"100%",borderTop:`1px solid ${e}`,flex:1,minHeight:0}),_fe=()=>{const{colors:e}=ze(),t=hn(m=>m.historyItems),n=hn(m=>m.selectedIndex),r=hn(m=>m.isLoading),i=hn(m=>m.error),s=hn(m=>m.setSelectedIndex),l=An(m=>m.close),u=Bt(),d=Pt();k.useEffect(()=>{if(d.pathname.startsWith("/c/")){const m=d.pathname.slice(3),g=t.findIndex(y=>y.id===m);g!==-1&&g!==n?s(g):g===-1&&n!==null&&s(null)}else n!==null&&s(null)},[d.pathname,t,n,s]);const h=m=>{s(m);const g=t[m];g&&u(`/c/${g.id}`),l()};return c.jsxs("div",{style:Ife,children:[c.jsx(wP,{}),c.jsx("div",{style:Afe(e.borderLight),children:c.jsx("div",{style:{...kfe,flex:1},"data-testid":"history-list",children:r?c.jsx("div",{style:{padding:"1rem",display:"flex",justifyContent:"center",alignItems:"center",flex:1,width:"100%",height:"100%"},children:c.jsx(Zi,{size:1.5})}):i?c.jsx("div",{style:{padding:"1rem",textAlign:"center",color:"var(--text-default-secondary, #71717F)"},children:"Failed to load chat history"}):t.length===0?c.jsx("div",{style:{padding:"1rem",textAlign:"center",color:"var(--text-default-secondary, #71717F)"},children:"No chat history yet"}):c.jsx(c.Fragment,{children:t.slice(0,25).map((m,g)=>c.jsx(pP,{chatId:m.id,name:m.name,isSelected:n===g,onClick:()=>h(g)},m.id))})})}),c.jsxs("div",{style:Efe(e.borderLight),children:[c.jsx(zv,{asNavButton:!0}),c.jsx(ak,{asNavButton:!0})]}),c.jsx("div",{style:Tfe(e.borderLight),children:c.jsx(nk,{size:40,showInlineInfo:!0})})]})},Rfe={display:"flex",height:"100%",padding:"1.5rem",paddingTop:"calc(1.5rem + env(safe-area-inset-top, 0px))",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",flexShrink:0,backgroundColor:"var(--surface-secondary-default)",position:"relative",zIndex:1500,pointerEvents:"auto",transition:"background-color 0.3s ease"},jfe=e=>({...Rfe,width:"85%",maxWidth:"22.125rem",boxShadow:"var(--sidenav-shadow)",borderRadius:"0 var(--radius-large, 0.75rem) var(--radius-large, 0.75rem) 0",position:"fixed",left:0,top:0,transform:e?"translateX(0)":"translateX(-100%)",transition:"transform 0.3s ease-out"}),Ofe=()=>{const e=An(r=>r.isOpen),t={...jfe(e),display:"flex"},n=r=>{r.stopPropagation()};return c.jsx("div",{style:t,onClick:n,"data-side-nav-overlay":"true","data-testid":"side-nav-overlay",children:c.jsx(_fe,{})})},Lfe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M8%201C11.866%201%2015%204.13401%2015%208C15%209.66278%2014.4186%2011.1888%2013.4502%2
1298012.3896L17.7793%2016.7188L17.8311%2016.7754C18.0712%2017.07%2018.0538%2017.5048%2017.7793%2017.7793C17.5048%2018.0538%2017.07%2018.0712%2016.7754%2017.8311L16.7188%2017.7793L12.3896%2013.4502C11.1888%2014.4186%209.66278%2015%208%2015C4.13401%2015%201%2011.866%201%208C1%204.13401%204.13401%201%208%201ZM8%202.5C4.96243%202.5%202.5%204.96243%202.5%208C2.5%2011.0376%204.96243%2013.5%208%2013.5C11.0376%2013.5%2013.5%2011.0376%2013.5%208C13.5%204.96243%2011.0376%202.5%208%202.5Z'%20fill='%2327272F'/%3e%3c/svg%3e",Dfe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M12.4804%202.01952C13.3917%202.02312%2014.2191%202.55299%2014.6025%203.37908L14.8983%203.98083L16.6582%203.98864C17.9519%203.99368%2018.998%205.04361%2018.998%206.33616L19%2014.6525C19%2015.9496%2017.9467%2017.0014%2016.6485%2017L3.35445%2016.9854C2.05828%2016.984%201.00806%2015.9338%201.00781%2014.6388L1%206.34884C1%205.05275%202.05238%204.00145%203.34957%204.00131H5.05781L5.38384%203.32544C5.77738%202.51199%206.60365%201.9966%207.50792%202.00002L12.4804%202.01952ZM7.50206%203.49806C7.17505%203.4969%206.87616%203.68372%206.73384%203.97791L5.99783%205.49936H3.34957C2.88045%205.4995%202.49935%205.8801%202.49935%206.34884L2.50716%2014.6388C2.50741%2015.1071%202.88767%2015.4868%203.3564%2015.4873L16.6504%2015.502C17.1198%2015.5023%2017.5006%2015.1215%2017.5007%2014.6525L17.4987%206.33616C17.4986%205.86868%2017.1203%205.48851%2016.6524%205.48668L13.9387%205.47596L13.7386%205.0439L13.2476%203.98766C13.1089%203.68906%2012.804%203.51889%2012.4745%203.51757L7.50206%203.49806ZM9.99805%206.44832C10.386%206.44851%2010.7054%206.74377%2010.7438%207.12127L10.7477%207.19734V9.26594H12.8181C13.2318%209.2662%2013.5676%209.60157%2013.5678%2010.015C13.5678%2010.4286%2013.2312%2010.764%2012.8171%2010.764H10.7477V12.8199C10.7477%2013.2335%2010.4119%2013.5697%209.99805%2013.5699C9.58418%2013.5699%209.24864%2013.2343%209.24837%2012.8209V10.764H7.1897L7.11356%2010.7601C6.73563%2010.7216%206.44002%2010.4027%206.44002%2010.015C6.44015%209.62715%206.73644%209.30805%207.11453%209.26984L7.19067%209.26594H9.24837V7.19832L9.25228%207.12225C9.29053%206.74441%209.60979%206.44832%209.99805%206.44832Z'%20fill='%2327272F'/%3e%3c/svg%3e",Mfe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M16.748%203C17.9915%203.0002%2018.9999%204.00914%2019%205.25344L18.9882%2014.7466C18.9881%2015.9908%2017.9797%2016.9998%2016.7363%2017H5.41556L2.97145%2018.7692C2.14265%2019.3536%201%2018.7608%201%2017.7462L1.00157%205.25344C1.0017%204.00901%202.00989%203%203.25354%203H16.748ZM3.25354%204.5023C2.83904%204.5023%202.50302%204.83871%202.50288%205.25344L2.50131%2017.263L4.74603%2015.6346L4.84572%2015.5759C4.94875%2015.5249%205.06305%2015.4977%205.17902%2015.4977H16.7363C17.1506%2015.4975%2017.4868%2015.1611%2017.4869%2014.7466L17.4987%205.25344C17.4986%204.83883%2017.1624%204.50249%2016.748%204.5023H3.25354ZM13.2408%2011.0091C13.6554%2011.0091%2013.9915%2011.3454%2013.9915%2011.7602C13.9915%2012.1751%2013.6554%2012.5114%2013.2408%2012.5114L6.74739%2012.5101C6.33298%2012.5099%205.99673%2012.1737%205.99673%2011.759C5.99673%2011.3442%206.33298%2011.008%206.74739%2011.0078L13.2408%2011.0091ZM13.2408%207.49378C13.6554%207.49378%2013.9915%207.83008%2013.9915%208.24493C13.9915%208.65977%2013.6554%208.99607%2013.2408%208.99607L6.74739%208.99219L6.67017%208.98828C6.29185%208.94961%205.99673%208.62981%205.99673%208.24104C5.99673%207.82619%206.33281%207.48989%206.74739%207.48989L13.2408%207.49378Z'%20fill='black'/%3e%3c/svg%3e",Pfe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M16.7475%202.99988C17.991%203.00008%2018.9994%204.00902%2018.9995%205.25333C18.9999%208.96062%2018.9882%2011.0391%2018.9877%2014.7464C18.9876%2015.9907%2017.9792%2016.9997%2016.7358%2016.9999C12.3147%2017.0006%209.83605%2016.9932%205.41504%2016.9999C4.57075%2017.0012%204.09739%2017.0064%203.2531%2017.0038C1.99902%2016.9999%200.960938%2015.9999%200.960938%2014.7464C0.960938%2011.0391%201.00066%208.96065%201.
129800105%205.25333C1.00119%204.0089%202.00938%202.99989%203.25302%202.99988C8.52295%202.99988%2011.4776%202.99905%2016.7475%202.99988ZM3.25302%204.50218C2.83853%204.50218%202.5025%204.83859%202.50237%205.25333C2.50119%208.96065%202.46249%2014.7464%202.46249%2014.7464C2.46249%2015.15%202.80732%2015.4976%203.2531%2015.4976C3.2531%2015.4976%204.42716%2015.5083%204.99902%2015.4991C5.05866%2015.4981%205.11846%2015.4976%205.17851%2015.4976C9.69189%2015.4976%2012.2224%2015.4998%2016.7358%2015.4976C17.1501%2015.4974%2017.4862%2015.161%2017.4864%2014.7464C17.4879%2011.0391%2017.4993%208.96062%2017.4982%205.25333C17.498%204.83872%2017.1618%204.50238%2016.7475%204.50218C11.4776%204.49966%208.52295%204.50218%203.25302%204.50218Z'%20fill='black'/%3e%3cpath%20d='M18.4546%204.99656L11.061%2010.6343C10.4343%2011.1121%209.56466%2011.1121%208.93796%2010.6343L1.54441%204.99656L2.45456%203.80321L9.84812%209.4409C9.93764%209.50915%2010.0613%209.50914%2010.1509%209.4409L17.5444%203.80321L18.4546%204.99656Z'%20fill='black'/%3e%3c/svg%3e",F5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M11.3475%201.92173C13.5158%20-0.302824%2017.2415%201.83015%2016.3825%204.80419L15.8488%206.65108L17.7295%207.11723C20.7568%207.86669%2020.7568%2012.1327%2017.7295%2012.8821L15.8488%2013.3473L16.3825%2015.1962C17.241%2018.1698%2013.5158%2020.3025%2011.3475%2018.0786L9.99949%2016.6959L8.65247%2018.0786C6.48421%2020.302%202.75918%2018.1696%203.61748%2015.1962L4.15015%2013.3473L2.27046%2012.8821C-0.756827%2012.1327%20-0.756811%207.86672%202.27046%207.11723L4.15015%206.65108L3.61748%204.80419C2.7585%201.83023%206.48415%20-0.302536%208.65247%201.92173L9.99949%203.30346L11.3475%201.92173ZM4.88714%2015.5561C4.40712%2017.2192%206.49046%2018.4115%207.7032%2017.168L9.08098%2015.7528L8.23685%2014.8864C7.7944%2014.4324%207.23179%2014.111%206.61407%2013.958L5.4327%2013.665L4.88714%2015.5561ZM13.3859%2013.958C12.7685%2014.111%2012.2064%2014.4327%2011.7641%2014.8864L10.918%2015.7538L12.2968%2017.168C13.5095%2018.4119%2015.594%2017.2194%2015.1138%2015.5561L14.5673%2013.665L13.3859%2013.958ZM9.18612%206.02365C8.5719%206.65374%207.79098%207.10065%206.93347%207.31294L5.79673%207.5942L6.1191%208.7104C6.36241%209.55284%206.36241%2010.4465%206.1191%2011.289L5.79574%2012.4052L6.93347%2012.6874C7.79104%2012.8997%208.57189%2013.3465%209.18612%2013.9767L9.99949%2014.8116L10.8139%2013.9767C11.428%2013.3466%2012.2091%2012.8998%2013.0665%2012.6874L14.2032%2012.4052L13.8809%2011.289C13.6376%2010.4466%2013.6376%209.55279%2013.8809%208.7104L14.2032%207.5942L13.0665%207.31294C12.2091%207.10059%2011.428%206.65374%2010.8139%206.02365L9.99949%205.18773L9.18612%206.02365ZM2.58986%208.38783C0.897078%208.80726%200.89698%2011.1932%202.58986%2011.6125L4.51418%2012.0885L4.84945%2010.929C5.02475%2010.3221%205.02473%209.67826%204.84945%209.07132L4.51418%207.91087L2.58986%208.38783ZM15.1505%209.07132C14.9753%209.67821%2014.9752%2010.3222%2015.1505%2010.929L15.4848%2012.0885L17.4101%2011.6125C19.1032%2011.1933%2019.1031%208.80716%2017.4101%208.38783L15.4848%207.91087L15.1505%209.07132ZM7.7032%202.83141C6.49046%201.58739%204.40695%202.78%204.88714%204.44327L5.4327%206.33442L6.61407%206.04233C7.23181%205.88938%207.79438%205.56789%208.23685%205.11397L9.08197%204.24559L7.7032%202.83141ZM15.1138%204.44327C15.5938%202.78006%2013.5094%201.58727%2012.2968%202.83141L10.918%204.24559L11.7641%205.11397C12.2064%205.56761%2012.7685%205.88936%2013.3859%206.04233L14.5673%206.33442L15.1138%204.44327Z'%20fill='%2327272F'/%3e%3c/svg%3e",Ffe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cg%20style='mix-blend-mode:multiply'%3e%3cpath%20d='M10.6885%204.41453C12.5898%202.52852%2015.6728%202.52846%2017.5741%204.41453C19.4753%206.30059%2019.4753%209.35888%2017.5741%2011.245L10.6885%2017.7277L10.6133%2017.7916C10.2533%2018.0695%209.74674%2018.0695%209.38673%2017.7916L9.31154%2017.7277L2.42595%2011.245C0.524713%209.35888%200.524656%206.30059%202.42595%204.41453C4.32724%202.52846%207.41021%202.52852%209.31154%204.41453L10%205.09747L10.6885%204.41453ZM16.5135%205.46656C15.198%204.16158%2013.0645%204.16163%2011.749%205.46656L10.3522%206.8529C10.1573%207.0464%209.84273%207.0464%209.64777%206.8529L8.25101%205.46656C6.93546%204.16163%204.80199%204.16158%203.48647%205.46656C2.17551%206.76702%202.17099%208.87331%203.4728%2010.1794L10%2016.324L16.5262%2010.1794C17.8285%208.87334%2017.8246%206.76718%2016.5135%205.46656Z'%20fill='%2327272F'/%3e%3c/g%3e%3c/svg%3e",HS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10%201.00098C14.9705%201.
129800098%2018.9999%205.03053%2019%2010.001C19%2014.9715%2014.9706%2019.001%2010%2019.001C5.02944%2019.001%201%2014.9715%201%2010.001C1.00013%205.03053%205.02952%201.00098%2010%201.00098ZM10%202.50098C5.85795%202.50098%202.50013%205.85895%202.5%2010.001C2.5%2014.1431%205.85786%2017.501%2010%2017.501C14.1421%2017.501%2017.5%2014.1431%2017.5%2010.001C17.4999%205.85895%2014.1421%202.50098%2010%202.50098ZM10%209.00195C10.4142%209.00195%2010.75%209.33774%2010.75%209.75195V13.2764C10.7499%2013.6905%2010.4141%2014.0264%2010%2014.0264C9.58587%2014.0264%209.25013%2013.6905%209.25%2013.2764V9.75195C9.25%209.33774%209.58579%209.00195%2010%209.00195ZM10%205.96582C10.5523%205.96582%2011%206.41354%2011%206.96582C11%207.51811%2010.5523%207.96582%2010%207.96582C9.44771%207.96582%209%207.51811%209%206.96582C9%206.41354%209.44771%205.96582%2010%205.96582Z'%20fill='%2327272F'/%3e%3c/svg%3e",YP="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M16.6784%204.27706C16.9502%203.96276%2017.4252%203.92797%2017.7396%204.19965C18.0539%204.47143%2018.0886%204.94648%2017.817%205.26085L8.76596%2015.7268C8.62213%2015.893%208.41253%2015.9876%208.19274%2015.9865C7.97302%2015.9852%207.76446%2015.8886%207.62246%2015.7209L2.17831%209.29104L2.13128%209.22931C1.91556%208.91482%201.96917%208.48161%202.2665%208.22985C2.56387%207.97825%202.99925%207.99753%203.27381%208.26218L3.32672%208.31804L8.20352%2014.0767L16.6784%204.27706Z'%20fill='%2327272F'/%3e%3c/svg%3e",Bfe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M12.4804%202.01952C13.3917%202.02312%2014.2191%202.55299%2014.6025%203.37908L14.8983%203.98083L16.6582%203.98864C17.9519%203.99368%2018.998%205.04361%2018.998%206.33616L19%2014.6525C19%2015.9496%2017.9467%2017.0014%2016.6485%2017L3.35445%2016.9854C2.05828%2016.984%201.00806%2015.9338%201.00781%2014.6388L1%206.34884C1%205.05275%202.05238%204.00145%203.34957%204.00131H5.05781L5.38384%203.32544C5.77738%202.51199%206.60365%201.9966%207.50792%202.00002L12.4804%202.01952ZM7.50206%203.49806C7.17505%203.4969%206.87616%203.68372%206.73384%203.97791L5.99783%205.49936H3.34957C2.88045%205.4995%202.49935%205.8801%202.49935%206.34884L2.50716%2014.6388C2.50741%2015.1071%202.88767%2015.4868%203.3564%2015.4873L16.6504%2015.502C17.1198%2015.5023%2017.5006%2015.1215%2017.5007%2014.6525L17.4987%206.33616C17.4986%205.86868%2017.1203%205.48851%2016.6524%205.48668L13.9387%205.47596L13.7386%205.0439L13.2476%203.98766C13.1089%203.68906%2012.804%203.51889%2012.4745%203.51757L7.50206%203.49806ZM9.99805%206.44832C10.386%206.44851%2010.7054%206.74377%2010.7438%207.12127L10.7477%207.19734V9.26594H12.8181C13.2318%209.2662%2013.5676%209.60157%2013.5678%2010.015C13.5678%2010.4286%2013.2312%2010.764%2012.8171%2010.764H10.7477V12.8199C10.7477%2013.2335%2010.4119%2013.5697%209.99805%2013.5699C9.58418%2013.5699%209.24864%2013.2343%209.24837%2012.8209V10.764H7.1897L7.11356%2010.7601C6.73563%2010.7216%206.44002%2010.4027%206.44002%2010.015C6.44015%209.62715%206.73644%209.30805%207.11453%209.26984L7.19067%209.26594H9.24837V7.19832L9.25228%207.12225C9.29053%206.74441%209.60979%206.44832%209.99805%206.44832Z'%20fill='%2327272F'/%3e%3c/svg%3e",Nfe=()=>({display:"flex",flexDirection:"column",width:"100%",height:"100dvh",backgroundColor:"var(--surface-primary-default, #FFFFFF)"}),zfe=()=>({flex:1,paddingTop:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-x-large, 2rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-x-large, 2rem)",justifyContent:"flex-start",alignItems:"stretch",minHeight:0,overflowY:"auto",overflowX:"hidden",maxHeight:"100%",overscrollBehavior:"contain"}),Hfe=e=>({position:"fixed",top:0,left:0,right:0,zIndex:1100,backgroundColor:"var(--surface-primary-default, #FFF)",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:0,paddingLeft:e?0:"var(--spacing-small, 0.75rem)",paddingRight:e?0:"var(--spacing-small, 0.75rem)",touchAction:"none"}),Re={mainContent:{display:"flex",flexDirection:"column",maxWidth:"42.75rem",margin:"0 auto",width:"100%",gap:"var(--spacing-x-large, 2rem)"},topRule:{height:"1px",width:"100%",border:"none",margin:0,background:"linear-gradient(to right, transparent, var(--border-default, #E5E5E7) 18%, var(--border-default, #E5E5E7) 82%, transparent)"},introSection:{display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1298p:"var(--spacing-medium, 1rem)",alignSelf:"stretch"},welcome:{display:"flex",padding:"var(--spacing-medium, 1rem) var(--grid-content-margin, 0)",flexDirection:"column",alignItems:"center",gap:"var(--spacing-medium, 1rem)",alignSelf:"stretch"},logo:{display:"flex",width:"5rem",height:"5rem",padding:"0.5rem 0.21825rem 0.5rem 0.25rem",justifyContent:"center",alignItems:"center",aspectRatio:"1/1"},title:{color:"var(--text-default-primary, #0E0E11)",textAlign:"center",fontFeatureSettings:'"case" on, "salt" on, "ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-4x-large, 2.5rem)",fontStyle:"normal",fontWeight:300,lineHeight:"var(--line-height-4x-large, 3rem)",letterSpacing:"-0.05rem"},headline:{flex:"1 0 0",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--prose-body-line-height, 1.7)",letterSpacing:"var(--prose-body-letter-spacing, -0.01rem)"},section:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},sectionTitle:{color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--prose-heading-line-height, 1.3)",letterSpacing:"var(--prose-heading-letter-spacing, -0.02rem)"},usageTips:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)"},tipItem:{display:"flex",alignItems:"flex-start",gap:"var(--spacing-x-small, 0.5rem)",fontSize:"var(--size-medium, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:400,color:"var(--text-default-primary, #0E0E11)",lineHeight:"var(--line-height-medium, 1.5rem)"},tipText:{flex:1},tipMainText:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:4,alignSelf:"stretch",overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',textOverflow:"ellipsis",fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-medium, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.0125rem",marginBottom:"var(--spacing-3x-small, 0.25rem)"},tipSubText:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:4,alignSelf:"stretch",overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.9375rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-medium, 1.375rem)",letterSpacing:"-0.00938rem"},iconWrapper:{marginTop:"0.125rem"},iconContainer:{display:"flex",padding:"0.625rem",alignItems:"center",gap:"0.5rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"linear-gradient(38deg, #F2F2F3 4.36%, #FDE468 95.1%)"},iconSvg:{width:"1.25rem",height:"1.25rem"},contactContainer:{display:"flex",padding:"var(--spacing-medium, 1rem) var(--spacing-large, 1.5rem)",justifyContent:"space-between",alignItems:"center",gap:"var(--spacing-medium, 1rem)",borderRadius:"var(--radius-x-large, 1rem)",background:"var(--surface-secondary-default, #F2F2F3)"},contactLeft:{display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)"},contactTitle:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:4,overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',textOverflow:"ellipsis",fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-medium, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.0125rem"},contactSubText:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:4,overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.9375rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-medium, 1.375rem)",letterSpacing:"-0.00938rem"},contactRight:{display:"flex",padding:"var(--spacing-x-small, 0.5rem)",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",cursor:"pointer",borderRadius:"var(--radius-small, 0.25rem)",transition:"background-color 0.15s ease"},contactRightHover:{backgroundColor:"var(--dropdown-button-hover)"},emailIcon:{width:"1.25rem",height:"1.25rem"},emailText:{color:"var(--text-default-primary, #0E0E11)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"},usageTipsHeadline:{display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)",marginBottom:"var(--spacing-medium, 1rem)"},usageTipsTitle:{flex:"1 0 0",color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlice
1298nsed Trial")',fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-x-large, 1.625rem)",letterSpacing:"-0.025rem"},usageTipsSubText:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-medium, 1.375rem)",letterSpacing:"-0.00875rem"},navButton:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",backgroundColor:"transparent",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent"},navButtonHover:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent",backgroundColor:"var(--dropdown-button-hover)"},navButtonActive:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent",backgroundColor:"var(--dropdown-button-active)"},createNavButtonSelected:e=>({display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",fontSize:"var(--size-small, 1rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",color:"var(--text-default-primary, #0E0E11)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent",backgroundColor:e?"var(--dropdown-button-hover)":"var(--surface-secondary-default, #F2F2F3)"}),mobileMenuItemContainer:{position:"relative",cursor:"pointer",padding:"var(--spacing-small) 6px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",width:"100%",minHeight:"3rem",borderRadius:"var(--border-radius-medium, 0.5rem)",transition:"background-color 0.15s ease",backgroundColor:"transparent"},mobileMenuItemContainerHover:{backgroundColor:"var(--dropdown-button-hover)"},mobileMenuItemContainerActive:{backgroundColor:"var(--dropdown-button-active)"},mobileMenuItemContainerSelected:{backgroundColor:"var(--background-secondary)",borderRadius:"var(--border-radius-medium, 0.5rem)"},mobileMenuItemContent:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",flex:"1",minWidth:0},createMobileMenuItemIcon:e=>({width:"1.25rem",height:"1.25rem",minWidth:"1.25rem",aspectRatio:"1/1",flexShrink:0,filter:e,transition:"filter 0.3s ease"}),mobileMenuItemText:{color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0},mobileMenuItemTextActive:{color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontStyle:"normal",fontWeight:500,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0}},ps=({iconSrc:e,alt:t})=>c.jsx("div",{style:Re.iconContainer,children:c.jsx("img",{src:e,alt:t,style:Re.iconSvg})}),KP=({asNavButton:e=!1})=>{const{colors:t}=ze(),{isMobile:n}=We(),r=Bt(),i=Pt(),s=An(y=>y.close),l=hn(y=>y.setSelectedIndex),[u,d]=G.useState(!1),[h,m]=G.useState(!1),g=i.pathname==="/help";if(e){const y=()=>
1298{l(null),r("/help"),s()};if(n){const S=()=>g?{...Re.mobileMenuItemContainer,...Re.mobileMenuItemContainerSelected}:h?{...Re.mobileMenuItemContainer,...Re.mobileMenuItemContainerActive}:u?{...Re.mobileMenuItemContainer,...Re.mobileMenuItemContainerHover}:Re.mobileMenuItemContainer;return c.jsx("div",{style:S(),onClick:y,onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1),m(!1)},onMouseDown:()=>m(!0),onMouseUp:()=>m(!1),onTouchStart:()=>m(!0),onTouchEnd:()=>m(!1),onTouchCancel:()=>m(!1),"data-testid":"help-nav-item",children:c.jsxs("div",{style:Re.mobileMenuItemContent,children:[c.jsx("img",{src:HS,alt:"Help",style:Re.createMobileMenuItemIcon(t.iconFilter)}),c.jsx("span",{style:g?Re.mobileMenuItemTextActive:Re.mobileMenuItemText,children:"Help"})]})})}const b=()=>g?Re.createNavButtonSelected(u):h?Re.navButtonActive:u?Re.navButtonHover:Re.navButton;return c.jsxs("button",{style:b(),onClick:y,onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1),m(!1)},onMouseDown:()=>m(!0),onMouseUp:()=>m(!1),"data-testid":"help-nav-item",children:[c.jsx("img",{src:HS,alt:"Help",style:{...Dt(t.iconFilter),marginRight:"var(--spacing-3x-small, 0.25rem)"}}),"Help"]})}return c.jsxs("div",{style:Nfe(),"data-testid":"help-page",children:[c.jsx("div",{style:Hfe(n),children:c.jsx(es,{title:"Help"})}),c.jsx("div",{style:zfe(),children:c.jsxs("div",{style:Re.mainContent,children:[c.jsx("hr",{style:Re.topRule}),c.jsx("section",{style:Re.introSection,children:c.jsx("p",{style:Re.headline,children:"Tonita is a new way to shop, using a chat-based assistive experience. Currently supports searches for clothing and apparel."})}),c.jsx("section",{style:Re.section,children:c.jsxs("div",{style:Re.usageTips,children:[c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:Lfe,alt:"Search icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Ask for it with words"}),c.jsx("div",{style:Re.tipSubText,children:"Want more product details, have a question, or need a variation? Just ask."})]})]}),c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:Dfe,alt:"Camera icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Or use 1000 words"}),c.jsx("div",{style:Re.tipSubText,children:"Take or upload a photo to find something similar or suggest a modification."})]})]}),c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:Mfe,alt:"Chat icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Brainstorm"}),c.jsx("div",{style:Re.tipSubText,children:"Shopping for an occasion or need matching tips? Ask Tonita for tips!"})]})]}),c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:O5,alt:"Warning icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Stay safe online"}),c.jsx("div",{style:Re.tipSubText,children:"Tonita isn't a store, so don't share personal details like your address or credit card. This early version is still improving."})]})]})]})}),c.jsx("section",{style:Re.section,children:c.jsxs("div",{style:Re.contactContainer,children:[c.jsxs("div",{style:Re.contactLeft,children:[c.jsx("div",{style:Re.contactTitle,children:"Contact Us"}),c.jsx("div",{style:Re.contactSubText,children:"Need more help? We're here to assist you. Reach out to our support team for any questions or issues you might have with using Tonita."})]}),c.jsxs("div",{style:Re.contactRight,onClick:()=>nf("mailto:[email protected]"),onMouseEnter:y=>{Object.assign(y.currentTarget.style,Re.contactRightHover)},onMouseLeave:y=>{y.currentTarget.style.backgroundColor=""},children:[c.jsx("img",{src:Pfe,alt:"Email icon",style:Re.emailIcon}),c.jsx("span",{style:Re.emailText,children:"[email protected]"})]})]})}),c.jsxs("section",{style:Re.section,children:[c.jsxs("div",{style:Re.usageTipsHeadline,children:[c.jsx("div",{style:Re.usageTipsTitle,children:"Usage tips"}),c.jsx("div",{style:Re.usageTipsSubText,children:"Talk to Tonita in simple, natural language, like an expert shopping concierge, with shortcuts for quicker actions."})]}),c.jsxs("div",{style:Re.usageTips,children:[c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:
1298F5,alt:"Star icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Show similar"}),c.jsx("div",{style:Re.tipSubText,children:"Tap on this suggest or type it to see similar products."})]})]}),c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:Ffe,alt:"Heart icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Save to favorites"}),c.jsx("div",{style:Re.tipSubText,children:"Add to Favorites to save for later. View saved items via the Favorites button."})]})]}),c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:HS,alt:"Info icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Product details"}),c.jsx("div",{style:Re.tipSubText,children:"Tap a product card to view details with Tonita's summary."})]})]}),c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:dP,alt:"Arrow icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Buy a product"}),c.jsx("div",{style:Re.tipSubText,children:"To review or buy a product, tap the Visit button to open the store with the best price."})]})]}),c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:YP,alt:"Checkmark icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Select multiple products"}),c.jsx("div",{style:Re.tipSubText,children:"Select the products to ask questions or request variations."})]})]}),c.jsxs("div",{style:Re.tipItem,children:[c.jsx("div",{style:Re.iconWrapper,children:c.jsx(ps,{iconSrc:Bfe,alt:"Plus icon"})}),c.jsxs("div",{style:Re.tipText,children:[c.jsx("div",{style:Re.tipMainText,children:"Search by photo"}),c.jsx("div",{style:Re.tipSubText,children:"Upload or take a photo to search by visual similarity, and optionally add text to refine the search."})]})]})]})]})]})})]})},Ufe={display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",border:"none",backgroundColor:"transparent",cursor:"pointer",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",borderRadius:"var(--radius-medium, 0.5rem)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",outline:"none",WebkitTapHighlightColor:"transparent"},Wfe={display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",border:"none",cursor:"pointer",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",borderRadius:"var(--radius-medium, 0.5rem)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",backgroundColor:"var(--dropdown-button-hover)"},Vfe={display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",border:"none",cursor:"pointer",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",borderRadius:"var(--radius-medium, 0.5rem)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",backgroundColor:"var(--dropdown-button-active)"},qfe=e=>({display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"0.375rem",border:"none",cursor:"pointer",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",borderRadius:"var(--radius-medium, 0.5rem)",width:"100%",textAlign:"left",transition:"background-color 0.15s ease",backgroundColor:e?"var(--dropdown-button-hover)":"var(--surface-secondary-default, #F2F2F3)"}),Gfe=()=>({display:"flex",flexDirection:"column",width:"100%",height:"100dvh",backgroundColor:"var(--surface-primary-default, #FFF)"}),Yfe=e=>({position:"fixed",top:0,left:0,right:0,zIndex:1100,backgroundColor:"var(--surface-primary-default, #FFF)",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:0,paddingLeft:e?0:"var(--spacing-small, 0.75rem)",paddingRight:e?0:"var(--spacing-small, 0.75rem)",touchAction:"none"}),Kfe=()=>({flex:1,paddingTop:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",paddingBottom:"var(--spacing-x-large, 2rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-x-large, 2rem)",justifyContent:"flex-start",alignItems:"stretch",minHeight:0,overflowY:"auto",overflowX:"hidden",maxHeight:"100%",overscrollBehavior:"contain"}),Xfe=()=>({display:"flex",flexDirection:"column",maxWidth:"42.75rem",width:"100%",margin:"0 auto",gap:"var(--spacing-x-large, 2rem)"}),Jfe={height:"1px",width:"100%",border:"none",margin:0,background:"linear-gradient(to right, transparent, var(--border-default, #E5E5E7) 18%, var(--border-default, #E5E5E7) 82%, transparent)"},Zfe={display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1298p:"var(--spacing-medium, 1rem)",alignSelf:"stretch"},Qfe={flex:"1 0 0",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--prose-body-line-height, 1.7)",letterSpacing:"var(--prose-body-letter-spacing, -0.01rem)"},$fe={display:"flex",flexDirection:"column",gap:"var(--spacing-large, 1.5rem)"},ehe={display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",padding:"var(--spacing-large, 1.5rem)",borderRadius:"var(--radius-large, 0.75rem)",background:"var(--surface-secondary-default, #F2F2F3)"},the={display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},nhe={display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:4,overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:'"ss01" on',textOverflow:"ellipsis",fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-medium, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.0125rem"},rhe={display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:4,overflow:"hidden",color:"var(--text-default-tertiary, #71717F)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"},ihe={display:"flex",flexDirection:"column",gap:"var(--spacing-small, 0.75rem)",marginTop:"var(--spacing-small, 0.75rem)"},ahe={display:"flex",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)"},she={display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:4,alignSelf:"stretch",overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"},ohe={width:"0.375rem",height:"0.375rem",borderRadius:"50%",backgroundColor:"var(--text-default-primary, #0E0E11)",marginTop:"0.5625rem",flexShrink:0},ms={container:{position:"relative",cursor:"pointer",padding:"var(--spacing-small) 6px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",width:"100%",minHeight:"3rem",borderRadius:"var(--border-radius-medium, 0.5rem)",transition:"background-color 0.15s ease",backgroundColor:"transparent"},containerHover:{backgroundColor:"var(--dropdown-button-hover)"},containerActive:{backgroundColor:"var(--dropdown-button-active)"},containerSelected:{backgroundColor:"var(--background-secondary)",borderRadius:"var(--border-radius-medium, 0.5rem)"},content:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--spacing-3x-small)",flex:"1",minWidth:0},text:{color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0},textActive:{color:"var(--text-default-primary)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small)",fontStyle:"normal",fontWeight:500,lineHeight:"var(--line-height-large)",letterSpacing:"-0.01rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",minWidth:0}},XP=({asNavButton:e=!1})=>{const{colors:t}=ze(),{isMobile:n}=We(),r=Bt(),i=Pt(),s=An(b=>b.close),l=hn(b=>b.setSelectedIndex),[u,d]=G.useState(!1),[h,m]=G.useState(!1),g=tk.releases,y=i.pathname==="/whats-new";if(e){const b=()=>{l(null),r("/whats-new"),s()};if(n){const I=()=>y?{...ms.container,...ms.containerSelected}:h?{...ms.container,...ms.containerActive}:u?{...ms.container,...ms.containerHover}:ms.container;return c.jsx("div",{style:I(),onClick:b,onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1),m(!1)},onMouseDown:()=>m(!0),onMouseUp:()=>m(!1),onTouchStart:()=>m(!0),onTouchEnd:()=>m(!1),onTouchCancel:()=>m(!1),"data-testid":"whatsnew-nav-item",children:c.jsxs("div",{style:ms.content,children:[c.jsx("img",{src:F5,alt:"What's New",style:Dt(t.iconFilter)}),c.jsx("span",{style:y?ms.textActive:ms.text,children:"What's New"})]})})}const S=()=>y?qfe(u):h?Vfe:u?Wfe:Ufe;return c.jsxs("button",{style:S(),onClick:b,onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1),m(!1)},onMouseDown:()=>m(!0),onMouseUp:()=>m(!1),"data-testid":"whatsnew-nav-item",children:[c.jsx("img",{src:F5,alt:"What's New",style:{...Dt(t.iconFilter),marginRight:"var(--spacing-3x-small, 0.25rem)"}}),"What's New"]})}return c.jsxs("div",{style:Gfe(),"data-testid":"whatsnew-page",children:[c.jsx("div",{style:Yfe(n),children:c.jsx(es,{title:"What's New"})}),c.jsx("div",{style:Kfe(),children:c.jsxs("div",{style:Xfe(),children:[c.jsx("hr",{style:Jfe}),c.jsx("section",{style:Zfe,children:c.jsx("p",{style:Qfe,children:"At Tonita, we're actively building a whole bunch of features to delight our users, and are constantly working to improve the quality and speed of our systems. Stay tuned!"})}),c.jsx("section",{style:$fe,children:g.map((b,S)=>c.jsxs("div",{style:ehe,children:[c.jsxs("div",{style:the,children:[c.jsx("span",{style:nhe,children:b.date}),c.jsx("span",{style:rhe,children:b.version})]}),c.jsx("div",{style:ihe,children:b.content.map((I,w)=>c.jsxs("div",{style:ahe,children:[c.jsx("div",{style:ohe}),c.jsx("span",{style:she,children:I})]},w))})]},S))})]})})]})},lhe={display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1298p:"var(--spacing-medium, 1rem)",alignSelf:"stretch",height:"100%",width:"100%"},che={display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-medium, 1rem)",overflowY:"auto",overflowX:"hidden",width:"100%",minHeight:0,overscrollBehavior:"contain"},uhe=e=>({display:"flex",paddingTop:"var(--spacing-large, 1.5rem)",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-medium, 1rem)",alignSelf:"stretch",flexShrink:0,marginTop:"auto",width:"100%",borderTop:`1px solid ${e}`}),dhe={display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",alignSelf:"stretch",width:"100%",padding:"0.375rem"},fhe={flex:"1 0 0",color:"var(--text-default-primary, #0E0E11)",fontFeatureSettings:"'ss01' on",fontFamily:"var(--font-Arizona-serif)",fontSize:"var(--size-large, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-x-large, 1.625rem)",letterSpacing:"-0.025rem"},hhe=()=>{const{colors:e}=ze(),t=hn(h=>h.historyItems),n=hn(h=>h.selectedIndex),r=hn(h=>h.isLoading),i=hn(h=>h.error),s=hn(h=>h.setSelectedIndex),l=Bt(),u=Pt();k.useEffect(()=>{if(u.pathname.startsWith("/c/")){const h=u.pathname.slice(3),m=t.findIndex(g=>g.id===h);m!==-1&&m!==n?s(m):m===-1&&n!==null&&s(null)}else n!==null&&s(null)},[u.pathname,t,n,s]);const d=h=>{s(h);const m=t[h];m&&l(`/c/${m.id}`)};return c.jsxs("div",{style:lhe,children:[c.jsx(Hl,{}),c.jsx("div",{style:dhe,children:c.jsx("span",{style:fhe,children:"Chats"})}),c.jsx("div",{style:che,"data-testid":"history-list",children:r?c.jsx("div",{style:{padding:"1rem",display:"flex",justifyContent:"center",alignItems:"center",flex:1,height:"100%",width:"100%"},children:c.jsx(Zi,{size:1.5})}):i?c.jsx("div",{style:{padding:"1rem",textAlign:"center",color:"var(--text-default-secondary, #71717F)"},children:"Failed to load chat history"}):t.length===0?c.jsx("div",{style:{padding:"1rem",textAlign:"center",color:"var(--text-default-secondary, #71717F)"},children:"No chat history yet"}):t.slice(0,25).map((h,m)=>c.jsx(pP,{chatId:h.id,name:h.name,isSelected:n===m,onClick:()=>d(m)},h.id))}),c.jsxs("div",{style:uhe(e.borderLight),children:[c.jsx(XP,{asNavButton:!0}),c.jsx(KP,{asNavButton:!0}),c.jsx(zv,{asNavButton:!0}),c.jsx(ak,{asNavButton:!0})]})]})},phe={display:"flex",height:"100%",padding:"1.5rem",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",flexShrink:0,backgroundColor:"var(--surface-secondary-default)",position:"relative",zIndex:1300,pointerEvents:"auto",transition:"background-color 0.3s ease"},mhe=e=>({...phe,width:"20rem",boxShadow:"var(--sidenav-shadow)",borderRadius:"0 var(--radius-large, 0.75rem) var(--radius-large, 0.75rem) 0",position:"fixed",left:0,top:0,transform:e?"translateX(0)":"translateX(-100%)",transition:"transform 0.3s ease-out"}),ghe=()=>{const e=An(i=>i.isOpen),t=An(i=>i.close),n=k.useRef(null);k.useEffect(()=>{if(!e)return;const i=s=>{n.current&&!n.current.contains(s.target)&&t()};return document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[e,t]);const r={...mhe(e),display:"flex"};return c.jsx("div",{ref:n,style:r,"data-side-nav-overlay":"true","data-testid":"side-nav-overlay",children:c.jsx(hhe,{})})},yhe=()=>{const{isMobile:e}=We();return e?c.jsx(Ofe,{}):c.jsx(ghe,{})},vhe=()=>{const e=U(y=>y.messages),t=Fe(y=>y.isCarouselOpen),n=Fe(y=>y.openedAtCarouselCount),r=Fe(y=>y.hasCarouselBeenUpdatedOnceForTurn),i=Fe(y=>y.currentMessageId),s=Fe(y=>y.currentComponentId),l=Fe(y=>y.turnRightPanelCarouselKey),u=Fe(y=>y.openCarousel),d=Fe(y=>y.setHasCarouselBeenUpdatedOnceForTurn),h=Xt(y=>y.isListingDetailsOpen),m=Xt(y=>y.closeListingDetails),g=Vc(y=>y.focusedProduct);k.useEffect(()=>{if(!t||r)return;const y=e.filter(I=>I.role==="ASSISTANT"&&I.type==="carousel").length;if(n!==null&&y<=n)return;let b;for(let I=e.length-1;I>=0;I--)if(e[I].role==="USER"){for(let C=I+1;C<e.length;C++){const E=e[C];if(E.role==="ASSISTANT"&&E.type==="carousel"&&"cards"in E&&E.cards&&E.cards.length>0){b=E;break}}break}!b||l!==null&&_v(b.messageId,b.componentId)!==l||b.messageId===i&&b.componentId===s||(h&&m(),u(b.cards,b.messageId,b.componentId,b.title),d(!0))},[e,t,h,n,r,i,s,l,u,d,m,g])},K0=xt(),bhe=()=>{const e=Fe(l=>l.isCarouselOpen),t=Fe(l=>l.closeCarousel),n=R5(l=>l.isExpanded),r=R5(l=>l.collapseAll),i=Xt(l=>l.isListingDetailsOpen),s=Xt(l=>l.closeListingDetails);k.useEffect(()=>{K0||e&&window.history.pushState({carousel:"open"},"",window.location.href)},[e]),k.useEffect(()=>{K0||n&&window.history.pushState({expandableCarousel:"expanded"},"",window.location.href)},[n]),k.useEffect(()=>{K0||i&&window.history.pushState({productDetails:"open"},"",window.location.href)},[i]),k.useEffect(()=>{if(K0)return;const l=u=>{u.state,i?(s(),n?window.history.pushState({expandableCarousel:"expanded"},"",window.location.href):e&&window.history.pushState({carousel:"open"},"",window.location.href)):n?(r(),window.history.pushState(null,"",window.location.href)):e&&(bn.getState().savePreviousCarou
1298selState(null),t())};return window.addEventListener("popstate",l),()=>{window.removeEventListener("popstate",l)}},[e,n,i,t,r,s])},xhe=e=>(t,n,r)=>{const i=r.subscribe;return r.subscribe=((l,u,d)=>{let h=l;if(u){const m=d?.equalityFn||Object.is;let g=l(r.getState());h=y=>{const b=l(y);if(!m(g,b)){const S=g;u(g=b,S)}},d?.fireImmediately&&u(g,g)}return i(h)}),e(t,n,r)},She=xhe,di=wn()(She((e,t)=>({activityState:"active",lastActivityTime:Date.now(),lastVisibilityChange:Date.now(),isTabVisible:!0,hasUpdatesAvailable:!1,staleThreshold:1800*1e3,updateCheckInterval:1800*1e3,debounceThreshold:500,updateActivity:()=>{const n=Date.now();e({lastActivityTime:n,activityState:"active"})},updateVisibility:n=>{const r=Date.now();e({isTabVisible:n,lastVisibilityChange:r})},setActivityState:n=>{t().activityState!==n&&e({activityState:n})},setUpdatesAvailable:n=>{e({hasUpdatesAvailable:n})}}))),vR=["mousedown","mousemove","keypress","scroll","touchstart","click"];function whe(){const e=di(S=>S.updateActivity),t=di(S=>S.updateVisibility),n=di(S=>S.setActivityState),r=di(S=>S.activityState),i=di(S=>S.lastActivityTime),s=di(S=>S.isTabVisible),l=di(S=>S.staleThreshold),u=di(S=>S.debounceThreshold),d=k.useRef(null),h=k.useRef(Date.now()),m=k.useCallback(()=>{const S=Date.now();S-h.current>u&&(h.current=S,e())},[e,u]),g=k.useCallback(()=>{const S=!document.hidden;t(S)},[t]),y=k.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),b=k.useCallback(()=>{if(y(),r==="active"){const I=Date.now()-i,w=Math.max(0,l-I);d.current=setTimeout(()=>{n("stale")},w)}},[r,i,l,n,y]);return k.useEffect(()=>{const S={passive:!0,capture:!0};return vR.forEach(I=>{document.addEventListener(I,m,S)}),document.addEventListener("visibilitychange",g),()=>{vR.forEach(I=>{document.removeEventListener(I,m,S)}),document.removeEventListener("visibilitychange",g),y()}},[m,g,y]),k.useEffect(()=>{b()},[b]),{activityState:r,isTabVisible:s,lastActivityTime:i}}class Che{constructor(){this.currentVersion=null,this.checkInterval=18e5}async initialize(){try{this.currentVersion=await this.fetchVersion()}catch{}}async fetchVersion(){const t=await fetch("/version.json?"+Date.now());if(!t.ok)throw new Error(`Failed to fetch version: ${t.status}`);return{version:(await t.json()).currentVersion}}async checkForUpdate(){try{if(!this.currentVersion)return await this.initialize(),!1;const t=await this.fetchVersion();return this.currentVersion.version!==t.version}catch{return!1}}}const JP=new Che;function ZP(){const e=di(y=>y.activityState),t=di(y=>y.isTabVisible),n=di(y=>y.updateCheckInterval),r=di(y=>y.setUpdatesAvailable),i=k.useRef(null),s=k.useRef(!1),l=k.useRef(null),u=k.useCallback(async()=>{try{return await JP.checkForUpdate()}catch{return!1}},[]),d=k.useCallback(()=>{window.location.reload()},[]),h=k.useCallback(()=>{if(!i.current)return!1;const y=Date.now()-i.current,b=di.getState().staleThreshold;return y>=b},[]),m=k.useCallback(async()=>{try{await u()&&r(!0)}catch{}},[u,r]);return k.useEffect(()=>{if(xt())return;const y=()=>{document.hidden?(i.current=Date.now(),s.current=!1):!s.current&&e==="stale"&&h()&&(s.current=!0,m())};return document.addEventListener("visibilitychange",y),()=>{document.removeEventListener("visibilitychange",y)}},[e,h,m]),k.useEffect(()=>{if(!xt())return e==="stale"&&t?(m(),l.current=setInterval(()=>{e==="stale"&&t&&m()},n)):l.current&&(clearInterval(l.current),l.current=null),()=>{l.current&&(clearInterval(l.current),l.current=null)}},[e,t,n,m]),{triggerRefresh:k.useCallback(()=>{d()},[d]),activityState:e}}function Ihe(){const e=di(i=>i.hasUpdatesAvailable),{triggerRefresh:t}=ZP();if(!e)return null;const n={notification:{position:"fixed",top:"1.5rem",left:"50%",right:"auto",transform:"translateX(-50%)",background:"linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 250, 246, 0.95) 100%)",border:"1px solid rgba(252, 218, 46, 0.2)",borderRadius:"0.75rem",padding:"1rem 1.25rem",display:"flex",flexDirection:"row",alignItems:"center",gap:"1rem",boxShadow:"0 8px 32px rgba(252, 218, 46, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08)",zIndex:1101,maxWidth:"calc(100vw - 2rem)",width:"auto",backdropFilter:"blur(8px)",animation:"refreshNotificationSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1)"},icon:{width:"1.25rem",height:"1.25rem",borderRadius:"50%",background:"linear-gradient(90deg, #FCDA2E 0%, #42F098 100%)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},content:{display:"flex",flexDirection:"column",gap:"0.25rem",flex:1},title:{fontSize:"0.875rem",fontWeight:"600",color:"var(--text-default-primary, #1D1D1F)",margin:0,lineHeight:"1.25"},text:{fontSize:"0.8125rem",color:"var(--text-default-tertiary, #86868B)",margin:0,lineHeight:"1.3"},buttonContainer:{display:"flex",flexDirection:"row",gap:"0.5rem",alignItems:"center"},button:{background:"linear-gradient(90deg, #FCDA2E 0.09%, #FDB341 99.91%)",color:"#0E0E11",border:"none",borderRadius:"0.5rem",padding:"0.5rem 1rem",fontSize:"0.8125rem",fontWeight:"500",cursor:"pointer",whiteSpace:"nowrap",transition:"opacity 0.2s ease, filter 0.2s ease",boxShadow:"0 2px 8px rgba(252, 218, 46, 0.3)"},dismissButton:{backgroundColor:"transparent",color:"var(--text-default-tertiary, #86868B)",border:"none",borderRadius:"0.5rem",padding:"0.5rem 0.75rem",fontSize:"0.8125rem",fontWeight:"500",cursor:"pointer",whiteSpace:"nowrap",transition:"opacity 0.2s ease, color 0.2s ease"}},r=()=>
1298{di.getState().setUpdatesAvailable(!1)};return c.jsxs(c.Fragment,{children:[c.jsx("style",{children:` 1299 @keyframes refreshNotificationSlideIn { 1300 from { 1301 opacity: 0; 1302 transform: translateX(-50%) translateY(-2rem); 1303 } 1304 to { 1305 opacity: 1; 1306 transform: translateX(-50%) translateY(0); 1307 } 1308 } 1309 1310 @media (max-width: 1023px) { 1311 .notification-subtext { 1312 display: none; 1313 } 1314 } 1315 1316 .refresh-button:hover { 1317 opacity: 0.9; 1318 filter: brightness(0.95); 1319 } 1320 1321 .dismiss-button:hover { 1322 color: #1D1D1F; 1323 opacity: 0.8; 1324 } 1325 `}),c.jsxs("div",{style:n.notification,children:[c.jsx("div",{style:n.icon,children:c.jsx("img",{src:JI,alt:"Update available",width:"12",height:"12"})}),c.jsxs("div",{style:n.content,children:[c.jsx("p",{style:n.title,children:"New Version Available"}),c.jsx("p",{style:n.text,className:"notification-subtext",children:"Please refresh to get the latest updates"})]}),c.jsxs("div",{style:n.buttonContainer,children:[c.jsx("button",{style:n.button,className:"refresh-button",onClick:t,children:"Refresh Now"}),c.jsx("button",{style:n.dismissButton,className:"dismiss-button",onClick:r,children:"Later"})]})]})]})}const khe={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9998,pointerEvents:"none"}},X0=8,J0=8,Ehe=({targetElement:e})=>{const t=k.useId(),[n,r]=k.useState(null),[i,s]=k.useState(0);if(k.useEffect(()=>{if(!e){r(null),s(0);return}const m=()=>{const y=e.getBoundingClientRect();r(y)};m(),setTimeout(()=>s(1),50);const g=new ResizeObserver(m);return g.observe(e),window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),()=>{g.disconnect(),window.removeEventListener("scroll",m,!0),window.removeEventListener("resize",m)}},[e]),!n)return null;const l=n.left-X0,u=n.top-X0,d=n.width+X0*2,h=n.height+X0*2;return c.jsxs("svg",{style:{...khe.overlay,opacity:i,transition:"opacity 0.4s ease-in-out"},width:"100%",height:"100%",children:[c.jsx("defs",{children:c.jsxs("mask",{id:t,children:[c.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),c.jsx("rect",{x:l,y:u,width:d,height:h,rx:J0,ry:J0,fill:"black"})]})}),c.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"rgba(0, 0, 0, 0.6)",mask:`url(#${t})`}),c.jsx("rect",{x:l,y:u,width:d,height:h,rx:J0,ry:J0,fill:"none",stroke:"rgba(253, 228, 104, 0.8)",strokeWidth:"3",style:{animation:"pulse 2s ease-in-out infinite"}}),c.jsx("style",{children:` 1326 @keyframes pulse { 1327 0%, 100% { 1328 opacity: 1; 1329 } 1330 50% { 1331 opacity: 0.5; 1332 } 1333 } 1334 `})]})},The={button:{display:"flex",flexDirection:"row",padding:"0.5rem 0.875rem",justifyContent:"center",alignItems:"center",gap:"0.5rem",background:"linear-gradient(90deg, #FCDA2E 0.09%, #FDB341 99.91%)",border:"none",borderRadius:"var(--radius-medium, 0.5rem)",cursor:"pointer",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem",transition:"transform 0.15s ease"}},Ahe=({tutorialName:e})=>{const t=ir(r=>r.markTutorialComplete),n=()=>{t(e)};return c.jsx("button",{style:The.button,onClick:n,onMouseDown:r=>{r.currentTarget.style.transform="scale(0.98)"},onMouseUp:r=>{r.currentTarget.style.transform="scale(1)"},onMouseLeave:r=>{r.currentTarget.style.transform="scale(1)"},onTouchStart:r=>{r.currentTarget.style.transform="scale(0.98)"},onTouchEnd:r=>{r.currentTarget.style.transform="scale(1)"},"aria-label":"Dismiss tutorial",children:"Got it"})},Mh={container:{position:"fixed",zIndex:9999,maxWidth:"20rem",minWidth:"16rem",backgroundColor:"var(--surface-primary-default, #FFFFFF)",borderRadius:"var(--radius-x-large, 1rem)",boxShadow:"0 8px 32px rgba(14, 14, 17, 0.16), 0 2px 8px rgba(14, 14, 17, 0.08)",padding:"var(--spacing-medium, 1rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-small, 0.75rem)",pointerEvents:"auto"},header:{display:"flex",flexDirection:"row",alignItems:"center"},title:{color:"var(--text-default-primary, #0E0E11)",fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlice
1334nsed Trial")',fontSize:"var(--size-medium, 1.25rem)",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.0125rem"},content:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontWeight:400,lineHeight:"var(--line-height-medium, 1.375rem)",letterSpacing:"-0.00875rem"},buttonContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"}},_he=({targetElement:e,title:t,content:n,tutorialName:r,placement:i="auto",isWaiting:s=!1})=>{const[l,u]=k.useState(null),[d,h]=k.useState(0),m=G.useRef(null);return k.useEffect(()=>{l?setTimeout(()=>h(1),50):h(0)},[l]),k.useEffect(()=>{if(s&&!e){const b=()=>{u({left:window.innerWidth-340,top:window.innerHeight-200})};return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}}if(!e||!m.current)return;const g=()=>{const b=e.getBoundingClientRect(),S=m.current?.getBoundingClientRect();if(!S)return;const I=16;let w=i;if(i==="auto"){const A=window.innerHeight-b.bottom,_=b.top,R=window.innerWidth-b.right,L=b.left;A>=S.height+I?w="bottom":_>=S.height+I?w="top":R>=S.width+I?w="right":L>=S.width+I?w="left":w="bottom"}let C=0,E=0;switch(w){case"bottom":C=b.bottom+I,E=b.left+b.width/2-S.width/2;break;case"top":C=b.top-S.height-I,E=b.left+b.width/2-S.width/2;break;case"right":C=b.top+b.height/2-S.height/2,E=b.right+I;break;case"left":C=b.top+b.height/2-S.height/2,E=b.left-S.width-I;break}E=Math.max(I,Math.min(E,window.innerWidth-S.width-I)),C=Math.max(I,Math.min(C,window.innerHeight-S.height-I)),u({top:C,left:E})};g();const y=new ResizeObserver(g);return y.observe(e),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g),()=>{y.disconnect(),window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g)}},[e,i,s]),l?c.jsxs("div",{ref:m,style:{...Mh.container,top:`${l.top}px`,left:`${l.left}px`,opacity:s?.95:d,transition:s?"none":"opacity 0.4s ease-in-out",animation:s?"pulse 2s ease-in-out infinite":"none"},children:[s&&c.jsx("style",{children:` 1335 @keyframes pulse { 1336 0%, 100% { 1337 opacity: 0.95; 1338 } 1339 50% { 1340 opacity: 1; 1341 } 1342 } 1343 `}),c.jsx("div",{style:Mh.header,children:c.jsx("div",{style:Mh.title,children:t})}),c.jsx("div",{style:Mh.content,children:n}),c.jsx("div",{style:Mh.buttonContainer,children:c.jsx(Ahe,{tutorialName:r})})]}):null},Rhe=500,jhe=()=>{const e=ir(y=>y.activeHintName),t=ir(y=>y.canShowHint),n=ir(y=>y.showHint),r=ir(y=>y.tutorialsEnabled),i=U(y=>y.messages),s=U(y=>y.assistantInProgress),{isMobile:l}=We(),[u,d]=k.useState(null),h=k.useRef(new Map),m=k.useMemo(()=>[{tutorialName:"initial_search",selector:'[data-tutorial-id="input-box"]',title:"Start your search",content:"Type your questions here, upload images, or describe what you're looking for!",priority:1,delayMs:8e3,disableAutoScroll:!0,showCondition:()=>U.getState().messages.filter(I=>I.role==="USER").length===0},{tutorialName:"refine_search",selector:'[data-tutorial-id="input-box"]',title:"Refine your search",content:"Try asking follow-up questions or describe what you want to see differently!",priority:3,disableAutoScroll:!0,showCondition:()=>{const b=Fe.getState();
1343return b.isCarouselOpen?U.getState().messages.find(w=>w.role==="ASSISTANT"&&w.type==="carousel"&&w.messageId===b.currentMessageId&&w.componentId===b.currentComponentId)?.rerankStatus==="reranking_complete":!1}}].sort((b,S)=>b.priority-S.priority),[l]);if(k.useEffect(()=>{if(!r||s||e!==null)return;const y=()=>{for(const S of m){if(!t(S.tutorialName)){h.current.delete(S.tutorialName);continue}if(!S.showCondition()){h.current.delete(S.tutorialName);continue}if(!document.querySelector(S.selector)){h.current.delete(S.tutorialName);continue}const w=S.delayMs||0;if(w>0){if(!h.current.has(S.tutorialName)){h.current.set(S.tutorialName,Date.now());continue}const C=h.current.get(S.tutorialName);if(Date.now()-C<w)continue}h.current.delete(S.tutorialName),n(S.tutorialName);break}};y();const b=setInterval(y,Rhe);return()=>{clearInterval(b),h.current.clear()}},[r,i,s,e,t,n,m]),k.useEffect(()=>{if(!e){d(null);return}const y=m.find(S=>S.tutorialName===e);if(!y)return;const b=document.querySelector(y.selector);b?(d(b),y.disableAutoScroll===!1&&b.scrollIntoView({behavior:"instant",block:"center"})):d(null)},[e,m]),!e||s)return null;const g=m.find(y=>y.tutorialName===e);return g?c.jsxs(c.Fragment,{children:[u&&c.jsx(Ehe,{targetElement:u}),c.jsx(_he,{targetElement:u,title:g.title,content:g.content,tutorialName:e,placement:"auto",isWaiting:!u})]}):null},Ohe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M8.80555%203.61993C9.09831%203.32723%209.57285%203.32719%209.86559%203.61993C10.1582%203.91268%2010.1582%204.38726%209.86559%204.67998L5.30906%209.23663L16.4076%209.19416L16.4847%209.19807C16.8625%209.23666%2017.1572%209.55582%2017.1572%209.94381C17.1572%2010.3578%2016.8215%2010.6934%2016.4076%2010.6935L5.30906%2010.7359L9.86559%2015.2926L9.91634%2015.3492C10.1568%2015.6436%2010.1401%2016.0781%209.86559%2016.3526C9.59103%2016.6272%209.15661%2016.6438%208.86216%2016.4034L8.80555%2016.3526L2.96937%2010.5163C2.67662%2010.2236%202.67662%209.74901%202.96937%209.45626L8.80555%203.61993Z'%20fill='%2327272F'/%3e%3c/svg%3e",US={container:{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"0.5rem"},button:{background:"none",border:"none",cursor:"pointer",padding:"0.375rem",transition:"transform 0.15s ease, background-color 0.15s ease",borderRadius:"0.25rem",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:"2rem"},buttonPressed:{transform:"scale(0.9)"}},sk=({onClick:e})=>{const{isMobile:t}=We(),{colors:n}=ze(),[r,i]=G.useState(!1),[s,l]=G.useState(!1),u=h=>{h.stopPropagation(),e()},d=()=>({...US.button,backgroundColor:s?n.carouselHeaderButtonHover:"transparent",...r?US.buttonPressed:{}});return c.jsx("div",{style:US.container,children:c.jsx("button",{style:d(),onClick:u,onMouseEnter:()=>!t&&l(!0),onMouseLeave:()=>{t||l(!1),i(!1)},onMouseDown:()=>i(!0),onMouseUp:()=>i(!1),onTouchStart:()=>i(!0),onTouchEnd:()=>i(!1),onTouchCancel:()=>i(!1),"data-testid":"back-button",children:c.jsx("img",{src:Ohe,alt:"Back",style:Dt(n.iconFilter,t?"1rem":void 0)})})})},Ph={container:{display:"inline-flex",flexDirection:"row",padding:"0.375rem",alignItems:"center",gap:"0.5rem"},button:{background:"none",border:"none",cursor:"pointer",padding:"0.375rem",transition:"transform 0.15s ease, background-color 0.15s ease, opacity 0.2s ease",borderRadius:"0.25rem",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:"2rem"},buttonPressed:{transform:"scale(0.9)"},buttonDisabled:{cursor:"not-allowed",opacity:.3},iconDisabled:{opacity:.5}},QP=({onClick:e,disabled:t=!1})=>{const{isMobile:n}=We(),[r,i]=G.useState(!1),[s,l]=G.useState(!1),u=m=>{m.stopPropagation(),t||e()},d=()=>{const m={...Ph.button,backgroundColor:s&&!t?"var(--dropdown-button-hover)":"transparent",...r&&!t?Ph.buttonPressed:{}};return t?{...m,...Ph.buttonDisabled}:m},h=()=>{const m=Dt("var(--icon-filter)");return t?{...m,...Ph.iconDisabled}:m};return c.jsx("div",{style:Ph.container,children:c.jsx("button",{style:d(),onClick:u,disabled:t,onMouseEnter:()=>!n&&!t&&l(!0),onMouseLeave:()=>{n||l(!1),i(!1)},onMouseDown:()=>!t&&i(!0),onMouseUp:()=>i(!1),onTouchStart:()=>!t&&i(!0),onTouchEnd:()=>i(!1),onTouchCancel:()=>i(!1),children:c.jsx("img",{src:TP,alt:"Download",style:h()})})})},Lhe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10.6885%204.41453C12.5898%202.52852%2015.6728%202.52846%2017.5741%204.41453C19.4753%206.30059%2019.4753%209.35888%2017.5741%2011.245L10.6885%2017.7277L10.6133%2017.7916C10.2533%2018.0695%209.74674%2018.0695%209.38673%2017.7916L9.31154%2017.7277L2.42595%2011.245C0.524713%209.35888%200.524656%206.30059%202.42595%204.41453C4.32724%202.52846%207.41021%202.52852%209.31154%204.41453L10%205.09747L10.6885%204.41453Z'%20fill='%23E53E3E'/%3e%3c/svg%3e",lE=class lE{static async updateFavorite(t,n){try{const r=be.getState().userId;if(!r)return!1;const i=await Ht(),s=t.originalListing,l=n&&U.getState().chatId||null,u={chat_id:l,favorite_listing:{chat_id:l,listing_id:t.listingId,is_favorite:n,listing_carousel_card:s}};return await Tn.post(`${this.API_BASE_URL}/chat/update-decoration`,u,{headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json","user-uuid":r,...Sn()}}),!0}catch(r){return pt({error:r,source:"UpdateFavoritesService.updateFavorite",metadata:{listingId:t.listingId,isFavorite:n}},{showToast:!1}),!1}}};lE.API_BASE_URL="https://api.tonita.co";let B5=lE;const Dhe=()=>{const e=Gn(I=>I.addToFavorites),t=Gn(I=>I.removeFromFavorites),n=Gn(I=>I.toggleFavorite),r=Gn(I=>I.setFavorites),i=Gn(I=>I.clearFavorites),s=Gn(I=>I.isFavorited),l=Gn(I=>I.getFavoriteCount),u=Gn(I=>I.getFavoriteListings),d=U(I=>I.chatId),h=k.useCallback(I=>{e(I)},[e]),m=k.useCallback((I,w)=>{t(I)},[t]),g=k.useCallback(I=>{const C=!s(I.listingId);n(I),B5.updateFavorite(I,C)},[s,n,d]),y=k.useCallback(()=>
1343{l(),i()},[i,l]),b=l(),S=u();return{addFavorite:h,removeFavorite:m,toggleFavorite:g,clearAllFavorites:y,isFavorited:s,favoriteCount:b,favoriteListings:S,addToFavorites:e,removeFromFavorites:t,setFavorites:r,clearFavorites:i}},bR="2rem",xR={buttonPressed:{transform:"scale(0.95)"},iconContainer:{position:"relative",width:"16px",height:"16px"}},Nm=({listing:e,iconFilter:t,page:n="listingCard"})=>{const{colors:r}=ze(),{toggleFavorite:i,favoriteCount:s}=Dhe(),{trackFavoriteClick:l}=Nt(),u=Pt(),d=bn(E=>E.addInteraction),h=Fe(E=>E.closeCarousel),[m,g]=k.useState(!1),y=Gn(E=>E.favoriteListings.has(e.listingId)),b=t??r.listingCardMoreOptionsIconFilter,S=E=>{E.stopPropagation(),g(!0),setTimeout(()=>g(!1),150),y||d(e,"favorite"),l(e.listingId,n,e.sourceMessageId);const A=y&&s===1&&u.pathname==="/favorites";i(e),A&&h()},I={backgroundColor:r.favoritesButtonBackground,border:"none",borderRadius:"1.6875rem",width:bR,height:bR,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",backdropFilter:"blur(5px)",...m?xR.buttonPressed:{}},w={position:"absolute",top:0,left:0,width:"16px",height:"16px",opacity:y?0:1,transition:"opacity 0.3s ease, filter 0.3s ease",filter:b},C={position:"absolute",top:0,left:0,width:"16px",height:"16px",opacity:y?1:0,transition:"opacity 0.3s ease, transform 0.3s ease",transform:y?"scale(1)":"scale(0.8)",filter:"hue-rotate(-10deg) saturate(1.5) brightness(0.8) contrast(1.2)"};return c.jsx("button",{style:I,onClick:S,"aria-label":y?"Remove from favorites":"Add to favorites","data-testid":"favorites-button","data-filled":y?"true":"false",children:c.jsxs("div",{style:xR.iconContainer,children:[c.jsx("img",{src:$I,alt:"Favorite outline",style:w}),c.jsx("img",{src:Lhe,alt:"Favorite filled",style:C})]})})},Mhe={async tryOn(e,t,n,r){const i=be.getState().userId;if(!i)throw new Error("User not authenticated");const s=await Ht(),l="https://api.tonita.co",u=new FormData,d={listing_ids:[e],chat_id:n,customer_id:"apparel",corpus_id:"en_US",user_id:i};u.append("json",new Blob([JSON.stringify(d)],{type:"application/json"})),u.append("person_image",t);const h={Authorization:`Bearer ${s}`,"user-uuid":i,"user-chat-id":n,...Sn()},g=(await Tn.post(`${l}/chat/virtual-try-on`,u,{headers:h,signal:r,timeout:6e4})).data;if(g.singleViewResults.length!==1)throw new Error("Sorry, we could not generate your virtual try-on right now. Please try again.");const y=g.singleViewResults[0];if(y.errorMessage)throw new Error("Sorry, we could not generate your virtual try-on right now. Please try again.");if(!y.generatedImages||y.generatedImages.length===0)throw new Error("Sorry, we could not generate your virtual try-on right now. Please try again.");return y.generatedImages[0].base64String}},Phe=ei("Media",{web:()=>Pn(()=>import("./web-BtOO5cnI.js"),[]).then(e=>new e.MediaWeb)});async function Fhe(e){try{return await Phe.savePhoto({path:e}),"saved"}catch{return"failed"}}async function Bhe(e,t){try{const r=await(await fetch(e)).blob(),i=new File([r],t,{type:"image/png"});return typeof navigator<"u"&&typeof navigator.share=="function"&&typeof navigator.canShare=="function"&&navigator.canShare({files:[i]})?(await navigator.share({files:[i]}),"shared"):null}catch(n){return n instanceof Error&&n.name==="AbortError"?"cancelled":null}}function Nhe(e,t){const n=document.createElement("a");return n.href=e,n.download=t,n.click(),"downloaded"}async function zhe(e,t){if(nie()){const n=await Bhe(e,t);if(n!=null)return n}return Nhe(e,t)}async function Hhe(e){const t=`virtual-try-on-${Date.now()}.png`,n=`data:image/png;base64,${e}`;return xt()?Fhe(n):zhe(n,t)}const $P=({isOpen:e,onClose:t,parsedListingData:n})=>{const[r,i]=k.useState("upload"),[s,l]=k.useState(null),[u,d]=k.useState(null),[h,m]=k.useState(!1),g=k.useRef(null),y=k.useRef(null),b=U(ae=>ae.chatId),S=mo(ae=>ae.addToast),I=or(ae=>ae.recentImages),w=or(ae=>ae.addImage),C=or(ae=>ae.userPhoto),E=or(ae=>ae.resultImage),A=or(ae=>ae.isLoading),_=or(ae=>ae.isUploading),R=or(ae=>ae.currentImageIndex),L=or(ae=>ae.setUserPhoto),j=or(ae=>ae.setResultImage),O=or(ae=>ae.setIsLoading),F=or(ae=>ae.setIsUploading),D=or(ae=>ae.setCurrentImageIndex),H=or(ae=>ae.advanceCurrentImageIndex),V=or(ae=>ae.resetSession),Y=n.images||[],K=n.listingId,z=n.title,q=2500;k.useEffect(()=>{if(A&&Y.length>0){D(0);const ae=setInterval(()=>{H(Y.length)},q);return()=>clearInterval(ae)}},[A,Y.length,D,H]);const $=async ae=>{J1.flushSync(()=>{L(null),l(null),F(!0),d(null),j(null)}),await new Promise(de=>requestAnimationFrame(()=>de()));try{const[de]=await GI([ae]);l(de);const oe=await fce(de);L(oe),w(oe,de.name,de.type),F(!1)}catch{d("Failed to read image file"),F(!1)}};return{currentStep:r,userPhoto:C,resultImage:E,isLoading:A,isUploading:_,error:u,imageHovered:h,setImageHovered:m,currentImageIndex:R,recentImages:I,fileInputRef:g,listingImages:Y,listingTitle:z,handleSelectRecentImage:async ae=>{try{L(ae.data);const de=`data:${ae.fileType};base64,${ae.data}
1343`,we=await(await fetch(de)).blob(),je=new File([we],ae.name,{type:ae.fileType});l(je),j(null),d(null)}catch{d("Failed to load recent image")}},handleEditPhoto:()=>{g.current?.click()},handleFileInputChange:ae=>{const de=ae.target.files?.[0];de&&$(de)},handleDrop:ae=>{ae.preventDefault();const de=ae.dataTransfer.files?.[0];de&&de.type.startsWith("image/")&&$(de)},handleTryItOn:async()=>{if(!s||!K||!b){d("Please upload an image first");return}y.current=new AbortController,O(!0),d(null),i("results");try{const ae=await Mhe.tryOn(K,s,b,y.current.signal);j(ae)}catch(ae){if(y.current?.signal.aborted||ae instanceof Error&&ae.name==="AbortError"||ae?.code==="ERR_CANCELED")return;const oe=ae instanceof Error?ae.message:"Failed to generate virtual try-on";d(oe),i("upload")}finally{O(!1),y.current=null}},handleDownload:async()=>{if(!E)return;const ae=await Hhe(E);ae==="saved"?S("Saved to Photos","success",2500,{showInProd:!0}):ae==="failed"&&S("Could not save image","error")},handleBack:()=>{y.current&&(y.current.abort(),y.current=null),i("upload"),j(null),d(null),O(!1)},handleClose:()=>{y.current&&(y.current.abort(),y.current=null),i("upload"),l(null),d(null),V(),t()}}},Uhe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10%201.00098C14.9705%201.00098%2018.9999%205.03053%2019%2010.001C19%2014.9715%2014.9706%2019.001%2010%2019.001C5.02944%2019.001%201%2014.9715%201%2010.001C1.00013%205.03053%205.02952%201.00098%2010%201.00098ZM10%202.50098C5.85795%202.50098%202.50013%205.85895%202.5%2010.001C2.5%2014.1431%205.85786%2017.501%2010%2017.501C14.1421%2017.501%2017.5%2014.1431%2017.5%2010.001C17.4999%205.85895%2014.1421%202.50098%2010%202.50098ZM10%209.00195C10.4142%209.00195%2010.75%209.33774%2010.75%209.75195V13.2764C10.7499%2013.6905%2010.4141%2014.0264%2010%2014.0264C9.58587%2014.0264%209.25013%2013.6905%209.25%2013.2764V9.75195C9.25%209.33774%209.58579%209.00195%2010%209.00195ZM10%205.96582C10.5523%205.96582%2011%206.41354%2011%206.96582C11%207.51811%2010.5523%207.96582%2010%207.96582C9.44771%207.96582%209%207.51811%209%206.96582C9%206.41354%209.44771%205.96582%2010%205.96582Z'%20fill='currentColor'/%3e%3c/svg%3e",Cc={container:{position:"relative",display:"inline-flex",alignItems:"center"},icon:{transition:"color 0.2s"},tooltipBox:{position:"fixed",padding:"8px 12px",backgroundColor:"var(--tooltip-bg)",color:"var(--tooltip-text)",fontSize:"12px",lineHeight:"1.4",borderRadius:"6px",whiteSpace:"nowrap",boxShadow:"var(--tooltip-shadow)",border:"1px solid var(--tooltip-border)",zIndex:9999,pointerEvents:"none"},arrow:{position:"absolute",top:"100%",left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"6px solid var(--tooltip-bg)"},mobileBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:9999,padding:"1rem"},mobileDialog:{backgroundColor:"var(--card-bg)",borderRadius:"12px",padding:"1.5rem",maxWidth:"20rem",width:"100%",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.3)",border:"1px solid var(--card-border)"},mobileDialogText:{color:"var(--tooltip-text)",fontSize:"14px",lineHeight:"1.5",textAlign:"center",margin:0}},Whe=({text:e,iconSize:t=16,iconColor:n="#6B7280"})=>{const{isMobile:r}=We(),[i,s]=k.useState(!1),[l,u]=k.useState({top:0,left:0}),d=k.useRef(null);k.useEffect(()=>{if(i&&d.current){const y=d.current.getBoundingClientRect();
1343u({top:y.top,left:y.left+y.width/2})}},[i]);const h=y=>{r&&(y.stopPropagation(),s(!0))},m=()=>{r&&s(!1)},g=y=>{y.stopPropagation()};return c.jsxs(c.Fragment,{children:[c.jsx("div",{style:Cc.container,onMouseEnter:r?void 0:()=>s(!0),onMouseLeave:r?void 0:()=>s(!1),onClick:r?h:void 0,onTouchStart:r?h:void 0,children:c.jsx("img",{ref:d,src:Uhe,alt:"Info",style:{...Cc.icon,width:"0.75rem",height:"0.75rem",cursor:r?"pointer":"default"}})}),i&&Pj.createPortal(r?c.jsx("div",{style:Cc.mobileBackdrop,onClick:m,children:c.jsx("div",{style:Cc.mobileDialog,onClick:g,children:c.jsx("p",{style:Cc.mobileDialogText,children:e})})}):c.jsxs("div",{style:{...Cc.tooltipBox,top:`${l.top}px`,left:`${l.left}px`,transform:"translate(-50%, calc(-100% - 16px))"},children:[e,c.jsx("div",{style:Cc.arrow})]}),document.body)]})},of=e=>/^(https?:|data:|blob:)/.test(e)?e:`data:image/png;base64,${e}`,eF=` 1344 @keyframes fadeIn { 1345 from { opacity: 0; } 1346 to { opacity: 1; } 1347 } 1348`,_f=()=>({header:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"1rem",borderBottom:"1px solid var(--vto-border)",flexShrink:0,gap:"0.5rem",transition:"border-color 0.3s ease"},headerLeft:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",flexShrink:0,width:"3rem"},headerCenter:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",flex:1,minWidth:0,overflow:"hidden"},headerRight:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0,gap:"0.25rem"},title:{fontSize:"18px",fontWeight:600,color:"var(--vto-title-color)",margin:0,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",transition:"color 0.3s ease"},content:{flex:1,minHeight:0,overflow:"hidden",position:"relative"},slideContainer:{display:"flex",width:"100%",height:"100%",position:"relative"},slide:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",flexDirection:"column",transition:"transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease"},sectionLayout:{display:"flex",flex:1,minHeight:0,overflow:"hidden"},uploadArea:{flex:1,border:"2px dashed var(--card-border)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--loading-bg)",transition:"all 0.2s",minHeight:"300px",overflow:"hidden",position:"relative",zIndex:1},uploadPlaceholder:{textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},uploadIcon:{fontSize:"48px",marginBottom:"1rem"},uploadText:{fontSize:"16px",fontWeight:500,color:"var(--text-default-secondary)",marginBottom:"0.5rem",transition:"color 0.3s ease"},uploadSubtext:{fontSize:"14px",color:"var(--icon-muted)",transition:"color 0.3s ease"},uploadedImage:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"},imageOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",cursor:"pointer"},editPhotoButton:{padding:"0.75rem 1.5rem",backgroundColor:"var(--card-bg-elevated)",color:"var(--text-default-primary)",border:"1px solid var(--card-border)",borderRadius:"8px",fontSize:"14px",fontWeight:600,cursor:"pointer",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",transition:"all 0.2s"},buttonContainer:{display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",flexShrink:0,position:"relative",zIndex:1},tryOnButton:{padding:"1rem 2rem",background:"var(--action-gradient, linear-gradient(135deg, #FCDA2E 0%, #F7C948 100%))",color:"#0E0E11",border:"none",borderRadius:"8px",fontSize:"16px",fontWeight:600,cursor:"pointer",transition:"all 0.2s",flexShrink:0,position:"relative",zIndex:2},tryOnButtonDisabled:{background:"var(--card-border)",cursor:"not-allowed",opacity:.6},error:{padding:"1rem",backgroundColor:"var(--error-bg, #FEE2E2)",color:"var(--danger-color)",borderRadius:"8px",fontSize:"14px",flexShrink:0,transition:"background-color 0.3s ease, color 0.3s ease"},loadingOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"1.5rem",backgroundColor:"rgba(0, 0, 0, 0.4)"},loadingText:{fontSize:"16px",color:"#FFFFFF",fontWeight:500,textAlign:"center",letterSpacing:"-0.01em"},loadingSubtext:{fontSize:"13px",color:"rgba(255, 255, 255, 0.75)",fontWeight:400,textAlign:"center",letterSpacing:"-0.01em",marginTop:"-0.75rem"},rotatingImage:{width:"100%",height:"100%",objectFit:"contain",animation:"fadeIn 0.8s ease-in-out"},recentImagesContainer:{display:"flex",flexDirection:"column",gap:"0.75rem",flexShrink:0},recentImagesLabel:{fontSize:"14px",fontWeight:600,color:"var(--text-default-secondary)",display:"flex",flexDirection:"row",alignItems:"center",gap:"0.25rem",transition:"color 0.3s ease"}
1348,recentImagesGrid:{display:"flex",flexDirection:"row",gap:"0.5rem"},recentImageThumb:{width:"60px",height:"60px",borderRadius:"8px",overflow:"hidden",cursor:"pointer",flexShrink:0,transition:"all 0.2s",backgroundColor:"var(--loading-bg)"},recentImageThumbImg:{width:"100%",height:"100%",objectFit:"cover"}}),tF=({recentImages:e,userPhoto:t,onSelectImage:n,gridStyle:r={}})=>{const i=_f();return e.length===0?null:c.jsxs("div",{style:i.recentImagesContainer,children:[c.jsxs("div",{style:i.recentImagesLabel,children:[c.jsx("span",{children:"Recent Photos"}),c.jsx(Whe,{text:"Photos are stored in your browser only and will not be available after refresh"})]}),c.jsx("div",{style:{...i.recentImagesGrid,...r},children:e.map(s=>c.jsx("div",{onClick:()=>n(s),style:{...i.recentImageThumb,border:t===s.data?"2px solid #FCDA2E":"2px solid var(--card-border)"},children:c.jsx("img",{src:`data:image/jpeg;base64,${s.data}`,alt:s.name,style:i.recentImageThumbImg})},s.timestamp))})]})},Vhe=({userPhoto:e,isUploading:t,imageHovered:n,onAreaClick:r,onDrop:i,onImageHoverChange:s,onEditClick:l,isMobile:u=!1,uploadText:d,uploadSubtext:h})=>{const m=_f(),g=u?{}:{onMouseEnter:()=>e&&s(!0),onMouseLeave:()=>s(!1)};return u&&(e||t)?c.jsx("div",{style:{...m.uploadArea,cursor:"default",minHeight:"300px",display:"flex",alignItems:"center",justifyContent:"center"},children:t?c.jsxs("div",{style:m.uploadPlaceholder,children:[c.jsx(Zi,{size:2}),c.jsx("div",{style:{...m.uploadText,marginTop:"1.5rem"},children:"Uploading your image..."})]}):e?c.jsx("img",{src:of(e),alt:"Your photo",style:m.uploadedImage}):null}):c.jsx("div",{onClick:()=>!e&&!t&&r(),onDragOver:y=>y.preventDefault(),onDrop:i,...g,style:{...m.uploadArea,cursor:e||t?"default":"pointer",position:"relative"},children:t?c.jsxs("div",{style:m.uploadPlaceholder,children:[c.jsx(Zi,{size:2}),c.jsx("div",{style:{...m.uploadText,marginTop:"1.5rem"},children:"Uploading your image..."})]}):e?c.jsxs(c.Fragment,{children:[c.jsx("img",{src:of(e),alt:"Your photo",style:m.uploadedImage}),n&&c.jsx("div",{style:m.imageOverlay,onClick:l,children:c.jsx("button",{style:m.editPhotoButton,children:"Edit Photo"})})]}):c.jsxs("div",{style:m.uploadPlaceholder,children:[c.jsx("div",{style:m.uploadIcon,children:"ð¸"}),c.jsx("div",{style:m.uploadText,children:d}),c.jsx("div",{style:m.uploadSubtext,children:h})]})})},qhe=({disabled:e,isLoading:t,onClick:n})=>{const r=_f();return c.jsx("div",{style:r.buttonContainer,children:c.jsx("button",{onClick:n,disabled:e,style:{...r.tryOnButton,...e&&r.tryOnButtonDisabled},children:t?"Processing...":"Try On »"})})},Ghe=({error:e})=>{const t=_f();return e?c.jsx("div",{style:t.error,children:e}):null},Yhe=e=>({container:{position:"fixed",top:0,left:0,width:"100dvw",height:"100dvh",backgroundColor:e.background,display:"flex",flexDirection:"column",overflow:"hidden",zIndex:2201,transition:"background-color 0.3s ease",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:"env(safe-area-inset-bottom, 0px)"},header:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"0.625rem 0.75rem",borderBottom:"1px solid var(--vto-border)",flexShrink:0,gap:"0.5rem",minHeight:"56px",transition:"border-color 0.3s ease"},title:{fontSize:"16px",fontWeight:600,color:"var(--vto-title-color)",margin:0,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",transition:"color 0.3s ease"},content:{flex:1,display:"flex",flexDirection:"column",minHeight:0,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain"},recentContainer:{padding:"0.75rem",flexShrink:0},imageSection:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"0.75rem",overflow:"hidden",minHeight:"300px",position:"relative"},uploadAreaMobile:{width:"100%",height:"100%",border:"2px dashed var(--vto-border)",borderRadius:"12px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:e.backgroundTertiary,overflow:"hidden",position:"relative",transition:"border-color 0.3s ease, background-color 0.3s ease"},uploadedImageContainer:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},uploadedImageMobile:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain"},resultImage:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain"},loadingState:{width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.vtoLoadingBackgroun
1348d,overflow:"hidden",transition:"background-color 0.3s ease"},buttonContainer:{padding:"0.75rem",flexShrink:0},disclaimer:{padding:"0.5rem 0.75rem",fontSize:"10px",color:e.vtoDisclaimerText,textAlign:"center",lineHeight:"1.4",backgroundColor:e.vtoDisclaimerBackground,borderTop:"1px solid var(--vto-border)",flexShrink:0,transition:"background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease"},recentImagesGrid:{display:"flex",flexDirection:"row",gap:"0.5rem",overflowX:"auto",paddingBottom:"0.25rem"},editPhotoButton:{padding:"0.875rem 1.25rem",backgroundColor:e.vtoButtonBackground,color:e.vtoButtonText,border:`1px solid ${e.vtoButtonBorder}`,borderRadius:"8px",fontSize:"15px",fontWeight:600,cursor:"pointer",transition:"all 0.2s",flexShrink:0},tryOnButtonActive:{padding:"0.875rem 1.5rem",background:"var(--action-gradient, linear-gradient(135deg, #FCDA2E 0%, #F7C948 100%))",color:"#0E0E11",border:"none",borderRadius:"8px",fontSize:"15px",fontWeight:600,cursor:"pointer",transition:"all 0.2s",flex:1,opacity:1},tryOnButtonDisabled:{padding:"0.875rem 1.5rem",background:e.vtoButtonDisabledBackground,color:"#0E0E11",border:"none",borderRadius:"8px",fontSize:"15px",fontWeight:600,cursor:"not-allowed",transition:"all 0.2s",flex:1,opacity:.6},tryAnotherPhotoButton:{padding:"0.875rem 1.5rem",backgroundColor:e.vtoButtonBackground,color:e.vtoButtonText,border:`1px solid ${e.vtoButtonBorder}`,borderRadius:"8px",fontSize:"15px",fontWeight:600,cursor:"pointer",transition:"all 0.2s",width:"100%"},buttonsRow:{display:"flex",flexDirection:"row",gap:"0.5rem",alignItems:"center",width:"100%"},errorMessage:{padding:"0.75rem",backgroundColor:e.vtoErrorBackground,color:e.vtoErrorText,borderRadius:"8px",fontSize:"13px",textAlign:"center",transition:"background-color 0.3s ease, color 0.3s ease"}}),Khe=({isOpen:e,onClose:t,parsedListingData:n})=>{const{colors:r}=ze(),i=_f(),s=Yhe(r),{userPhoto:l,resultImage:u,isLoading:d,isUploading:h,error:m,currentImageIndex:g,recentImages:y,fileInputRef:b,listingImages:S,listingTitle:I,handleSelectRecentImage:w,handleEditPhoto:C,handleFileInputChange:E,handleDrop:A,handleTryItOn:_,handleDownload:R,handleClose:L}=$P({isOpen:e,onClose:t,parsedListingData:n}),j=()=>h?c.jsx("div",{style:s.loadingState,children:c.jsxs("div",{style:{...i.loadingOverlay,borderRadius:0},children:[c.jsx(Zi,{size:2}),c.jsx("div",{style:i.loadingText,children:"Loading your photo..."})]})}):d&&S.length>0?c.jsxs("div",{style:s.loadingState,children:[c.jsx("img",{src:S[g]?.image?.address?.imageUrl||"",alt:"Loading preview",style:i.rotatingImage},g),c.jsxs("div",{style:{...i.loadingOverlay,borderRadius:0},children:[c.jsx(Zi,{size:2}),c.jsx("div",{style:i.loadingText,children:"Almost there â perfecting your fit ð"}),c.jsx("div",{style:i.loadingSubtext,children:"This may take up to 30 seconds."})]})]}):u?c.jsx("img",{src:of(u),alt:"Virtual try-on result",style:s.resultImage}):l?c.jsx("div",{style:s.uploadAreaMobile,children:c.jsx("div",{style:s.uploadedImageContainer,children:c.jsx("img",{src:of(l),alt:"Your photo",style:s.uploadedImageMobile})})}):c.jsx("div",{style:{...s.uploadAreaMobile,cursor:"pointer"},onClick:()=>b.current?.click(),onDrop:A,onDragOver:F=>F.preventDefault(),children:c.jsxs("div",{style:i.uploadPlaceholder,children:[c.jsx("div",{style:i.uploadIcon,children:"ð¸"}),c.jsx("div",{style:i.uploadText,children:"Tap to upload your photo"}),c.jsx("div",{style:i.uploadSubtext,children:"or drag & drop"})]})}),O=()=>{if(u)return c.jsx("button",{onClick:C,style:s.tryAnotherPhotoButton,children:"Try Another Photo"});if(l){const F=!l||d||h;return c.jsxs("div",{style:s.buttonsRow,children:[c.jsx("button",{onClick:C,style:s.editPhotoButton,children:"Edit Photo"}),c.jsx("button",{onClick:_,disabled:F,style:F?s.tryOnButtonDisabled:s.tryOnButtonActive,children:d?"Processing...":"Try On »"})]})}return null};return e?c.jsxs(c.Fragment,{children:[c.jsx("style",{children:eF}),c.jsx(yu,{isOpen:e,onClose:L,closeOnOverlayClick:!1,closeOnEscape:!0,overlayZIndex:2200,overlayOpacity:1,blurIntensity:0,allowTouchActions:!0,children:c.jsxs("div",{"data-vto-surface":"mobile",style:s.container,onClick:F=>F.stopPropagation(),children:[c.jsx("input",{ref:b,type:"file",accept:"image/*",onChange:E,style:{display:"none"}}),c.jsxs("div",{style:s.header,children:[c.jsx("div",{style:i.headerLeft,children:c.jsx(sk,{onClick:L})}),c.jsx("div",{style:i.headerCenter,children:c.jsx("h2",{style:s.title,children:I})}),c.jsxs("div",{style:i.headerRight,children:[c.jsx(Nm,{listing:n,iconFilter:r.iconFilter,page:"virtualTryOn"}),c.jsx(QP,{onClick:R,disabled:!u||d})]})]}),c.jsxs("div",{style:s.content,children:[!u&&y.length>0&&c.jsx("div",{style:s.recentContainer,children:c.jsx(tF,{recentImages:y,userPhoto:l,onSelectImage:w,gridStyle:s.recentImagesGr
1348id})}),c.jsx("div",{style:s.imageSection,children:j()})]}),c.jsxs("div",{style:s.buttonContainer,children:[O(),m&&c.jsx("div",{style:s.errorMessage,children:m})]}),c.jsx("div",{style:s.disclaimer,children:"This is AI-generated and can make mistakes. If the result doesn't look right, please try uploading a different photo."})]})})]}):null},Xhe=e=>({container:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90%",maxWidth:"900px",height:"95dvh",maxHeight:"95dvh",backgroundColor:e.vtoContainerBackground,borderRadius:"12px",boxShadow:e.vtoContainerShadow,display:"flex",flexDirection:"column",overflow:"hidden",zIndex:1501,transition:"background-color 0.3s ease"},leftColumn:{width:"180px",flexShrink:0,overflowY:"auto",overscrollBehavior:"contain",padding:"1rem",display:"flex",flexDirection:"column",gap:"1rem",borderRight:"1px solid var(--vto-border)",transition:"border-color 0.3s ease"},listingImage:{width:"100%",height:"auto",objectFit:"contain",borderRadius:"8px",border:"1px solid var(--vto-border)",transition:"border-color 0.3s ease"},rightColumn:{flex:1,display:"flex",flexDirection:"column",padding:"1.5rem",gap:"1rem",overflowY:"auto",overscrollBehavior:"contain",position:"relative",zIndex:1},resultsContainer:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2rem 2rem 2rem",overflowY:"auto",overscrollBehavior:"contain",minHeight:0},resultsWrapper:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0",width:"100%",maxWidth:"800px",maxHeight:"100%",overflowY:"auto",overscrollBehavior:"contain"},comparisonGrid:{display:"flex",gap:"2rem",alignItems:"flex-start",justifyContent:"center",width:"100%",maxWidth:"800px"},comparisonColumn:{display:"flex",flexDirection:"column",gap:"1rem",flex:1,minWidth:0,maxWidth:"350px"},comparisonImage:{width:"100%",aspectRatio:"3 / 4",objectFit:"contain",borderRadius:"12px",border:"1px solid var(--card-border)",backgroundColor:"var(--loading-bg)",transition:"border-color 0.3s ease, background-color 0.3s ease"},loadingState:{width:"100%",aspectRatio:"3 / 4",position:"relative",borderRadius:"12px",border:"1px solid var(--card-border)",backgroundColor:"var(--loading-bg)",overflow:"hidden",transition:"border-color 0.3s ease, background-color 0.3s ease"},disclaimer:{marginTop:"1rem",padding:"0.75rem 1rem",fontSize:"11px",color:"var(--icon-muted)",textAlign:"center",lineHeight:"1.5",backgroundColor:"var(--loading-bg)",borderRadius:"8px",border:"1px solid var(--card-border)",flexShrink:0,transition:"background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease"},recentImagesGrid:{display:"flex",flexDirection:"row",gap:"0.5rem",flexWrap:"wrap"}}),Jhe=({isOpen:e,onClose:t,parsedListingData:n})=>{const{colors:r}=ze(),i=_f(),s=Xhe(r),{currentStep:l,userPhoto:u,resultImage:d,isLoading:h,isUploading:m,error:g,imageHovered:y,setImageHovered:b,currentImageIndex:S,recentImages:I,fileInputRef:w,listingImages:C,listingTitle:E,handleSelectRecentImage:A,handleEditPhoto:_,handleFileInputChange:R,handleDrop:L,handleTryItOn:j,handleDownload:O,handleBack:F,handleClose:D}=$P({isOpen:e,onClose:t,parsedListingData:n}),H=()=>c.jsx("div",{style:{...i.slide,transform:l==="upload"?"translateX(0)":"translateX(-100%)",opacity:l==="upload"?1:0,pointerEvents:l==="upload"?"auto":"none"},children:c.jsxs("div",{style:i.sectionLayout,children:[c.jsx("div",{style:s.leftColumn,children:C.map((Y,K)=>{const z=Y?.image?.address?.imageUrl;return z?c.jsx("img",{src:z,alt:`Product image ${K+1}`,style:s.listingImage},K):null})}),c.jsxs("div",{style:s.rightColumn,children:[c.jsx("input",{ref:w,type:"file",accept:"image/*",onChange:R,style:{display:"none"}}),c.jsx(tF,{recentImages:I,userPhoto:u,onSelectImage:A,gridStyle:s.recentImagesGrid}),c.jsx(Vhe,{userPhoto:u,isUploading:m,imageHovered:y,onAreaClick:()=>w.current?.click(),onDrop:L,onImageHoverChange:b,onEditClick:_,isMobile:!1,uploadText:"Drag & drop your photo here",uploadSubtext:"or click to browse"}),c.jsx(qhe,{disabled:!u||h||m,isLoading:h,onClick:j}),c.jsx(Ghe,{error:g})]})]})}),V=()=>c.jsx("div",{style:{...i.slide,transform:l==="results"?"translateX(0)":"translateX(100%)",opacity:l==="results"?1:0,pointerEvents:l==="results"?"auto":"none"},children:c.jsx("div",{style:s.resultsContainer,children:c.jsxs("div",{style:s.resultsWrapper,children:[c.jsxs("div",{style:s.comparisonGrid,children:[c.jsx("div",{style:s.comparisonColumn,children:u&&c.jsx("img",{src:of(u),alt:"Your photo",style:s.comparisonImage})}),c.jsx("div",{style:s.comparisonColumn,children:d?c.jsx("img",{src:of(d),alt:"Virtual try-on result",style:s.comparisonImage}):h&&C.length>0?c.jsxs("div",{style:s.loadingState,children:[c.jsx("img",{src:C[S]?.image?.address?.imageUrl||"",alt:"Loading preview",style:i.rotatingImage},S),c.jsxs("div",{style:{...i.loadingOverlay,borderRadius:"12px"},children:[c.jsx(Zi,{size:2}),c.jsx("div",{style:i.loadingText,children:"Almost there â perfecting your fit ð"}),c.jsx("div",{style:i.loadingSubtext,children:"This may take up to 30 seconds."})]})]}):null})]}),c.jsx("div",{style:s.disclaimer,children:"This is AI-generated and can make mistakes. If the result doesn't look right, please try uploading a different photo."})]})})});return e?c.jsxs(c.Fragment,{children:[c.jsx("style",{children:eF}),c.jsx(yu,{isOpen:e,onClose:D,closeOnOverlayClick:!0,closeOnEscape:!0,overlayZIndex:1400,overlayOpacity:.4,blurIntensity:6,children:c.jsxs("div",{style:s.container,onClick:Y=>Y.stopPropagation(),children:[c.jsxs("div",{style:i.header,children:[c.jsx("div",{style:i.headerLeft,children:c.jsx(sk,{onClick:l==="upload"?D:F})}),c.jsx("div",{style:i.headerCenter,children:c.jsx("h2",{style:i.title,children:E})}),c.jsxs("div",{style:i.headerRight,children:[c.jsx(Nm,{listing:n,iconFilter:r.iconFilter,page:"virtualTryOn"}),c.jsx(QP,{onClick:O,disabled:l!=="results"||!d||h})]})]}),c.jsx("div",{style:i.content,children:c.jsxs("div",{style:i.slideContainer,children:[H(),V()]})})]})})]}):null},nF=()=>{const{isMobile:e}=We(),t=or(i=>i.isVTOModalOpen),n=or(i=>i.selectedListing),r=or(i=>i.closeVTOModal);return!t||!n?null:e?c.jsx(Khe,{isOpen:t,onClose:r,parsedListingData:n}):c.jsx(Jhe,{isOpen:t,onClose:r,parsedListingData:n})};var SR;(function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"})(SR||(SR={}));var wR;(function(e){e.Body="body",e.Ionic="ionic",e.Native="native",e.None="none"})(wR||(wR={}));const Wp=ei("Keyboard"),zm=()=>{const[e,t]=k.useState({height:0,isClosing:!1}),n=cp(r=>r.keyboardInset);return k.useEffect(()=>{if(!xt())return;const r=Wp.addListener("keyboardWillShow",s=>{t({height:s.keyboardHeight,isClosing:!1})}),i=Wp.addListener("keyboardWillHide",()=>{t({height:0,isClosing:!0})});return()=>{r.then(s=>s.remove()),i.then(s=>s.remove())}},[]),xt()?e:{height:n,isClosing:!1}},ul={container:{alignSelf:"flex-start",maxWidth:"70%",padding:"var(--spacing-small, 0.75rem)",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",color:"var(--text-default-primary, #0E0E11)",display:"flex",flexDirection:"row",alignItems:"flex-start"},dotsContainer:{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.25rem"},dot:{width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:"var(--text-default-secondary, #6B7280)",animation:"thinking-dot 1.4s ease-in-out infinite both"},getContainerStyle:()=>({...ul.container}),getDotStyle:e=>({...ul.dot,animationDelay:e}),keyframes:` 1349 @keyframes thinking-dot { 1350 0%, 80%, 100% { 1351 transform: scale(0.8); 1352 opacity: 0.5; 1353 } 1354 40% { 1355 transform: scale(1); 1356 opacity: 1; 1357 } 1358 } 1359 `},Zhe=()=>c.jsxs("div",{"data-message-type":"thinking",style:ul.getContainerStyle(),children:[c.jsxs("div",{style:ul.dotsContainer,children:[c.jsx("div",{style:ul.getDotStyle("0s")}),c.jsx("div",{style:ul.getDotStyle("0.2s")}),c.jsx("div",{style:ul.getDotStyle("0.4s")})]}),c.jsx("style",{children:ul.keyframes})]});function Qhe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $he=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,epe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tpe={};function CR(e,t){return(tpe.jsx?epe:$he).test(e)}const npe=/[ \t\n\f\r]/g;function rpe(e){return typeof e=="object"?e.type==="text"?IR(e.value):!1:IR(e)}function IR(e){return e.replace(npe,"")===""}class Hm{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Hm.prototype.normal={};Hm.prototype.property={};Hm.prototype.space=void 0;function rF(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Hm(n,r,t)}function N5(e){return e.toLowerCase()}class Li{constructor(t,n){this.attribute=n,this.property=t}}Li.prototype.attribute="";Li.prototype.booleanish=!1;Li.prototype.boolean=!1;Li.prototype.commaOrSpaceSeparated=!1;Li.prototype.commaSeparated=!1;Li.prototype.defined=!1;Li.prototype.mustUseProperty=!1;Li.prototype.number=!1;Li.prototype.overloadedBoolean=!1;Li.prototype.property="";Li.prototype.spaceSeparated=!1;Li.prototype.space=void 0;let ipe=0;const st=vu(),tr=vu(),z5=vu(),ke=vu(),dn=vu(),qc=vu(),Ui=vu();function vu(){return 2**++ipe}const H5=Object.freeze(Object.defineProperty({__proto__:null,boolean:st,booleanish:tr,commaOrSpaceSeparated:Ui,commaSeparated:qc,number:ke,overloadedBoolean:z5,spaceSeparated:dn},Symbol.toStringTag,{value:"Module"})),WS=Object.keys(H5);class ok extends Li{constructor(t,n,r,i){let s=-1;if(super(t,n),kR(this,"space",i),typeof r=="number")for(;++s<WS.length;){const l=WS[s];kR(this,WS[s],(r&H5[l])===H5[l])}}}ok.prototype.defined=!0;function kR(e,t,n){n&&(e[t]=n)}function Rf(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new ok(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[N5(r)]=r,n[N5(s.attribute)]=r}return new Hm(t,n,e.space)}const iF=Rf({properties:{ariaActiveDescendant:null,ariaAtomic:tr,ariaAutoComplete:null,ariaBusy:tr,ariaChecked:tr,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControl
vendor: 4,133 bytes, line 1359
1359s:dn,ariaCurrent:null,ariaDescribedBy:dn,ariaDetails:null,ariaDisabled:tr,ariaDropEffect:dn,ariaErrorMessage:null,ariaExpanded:tr,ariaFlowTo:dn,ariaGrabbed:tr,ariaHasPopup:null,ariaHidden:tr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dn,ariaLevel:ke,ariaLive:null,ariaModal:tr,ariaMultiLine:tr,ariaMultiSelectable:tr,ariaOrientation:null,ariaOwns:dn,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:tr,ariaReadOnly:tr,ariaRelevant:null,ariaRequired:tr,ariaRoleDescription:dn,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:tr,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function aF(e,t){return t in e?e[t]:t}function sF(e,t){return aF(e,t.toLowerCase())}const ape=Rf({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qc,acceptCharset:dn,accessKey:dn,action:null,allow:null,allowFullScreen:st,allowPaymentRequest:st,allowUserMedia:st,alpha:st,alt:null,as:null,async:st,autoCapitalize:null,autoComplete:dn,autoFocus:st,autoPlay:st,blocking:dn,capture:null,charSet:null,checked:st,cite:null,className:dn,closedBy:null,colorSpace:null,cols:ke,colSpan:ke,command:null,commandFor:null,content:null,contentEditable:tr,controls:st,controlsList:dn,coords:ke|qc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:st,defer:st,dir:null,dirName:null,disabled:st,download:z5,draggable:tr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:st,formTarget:null,headers:dn,height:ke,hidden:z5,high:ke,href:null,hrefLang:null,htmlFor:dn,httpEquiv:dn,id:null,imageSizes:null,imageSrcSet:null,inert:st,inputMode:null,integrity:null,is:null,isMap:st,itemId:null,itemProp:dn,itemRef:dn,itemScope:st,itemType:dn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:st,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:st,muted:st,name:null,nonce:null,noModule:st,noValidate:st,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:st,optimum:ke,pattern:null,ping:dn,placeholder:null,playsInline:st,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:st,referrerPolicy:null,rel:dn,required:st,reversed:st,rows:ke,rowSpan:ke,sandbox:dn,scope:null,scoped:st,seamless:st,selected:st,shadowRootClonable:st,shadowRootCustomElementRegistry:st,shadowRootDelegatesFocus:st,shadowRootMode:null,shadowRootSerializable:st,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:tr,src:null,
1359srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:st,useMap:null,value:tr,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dn,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:st,declare:st,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:st,noHref:st,noShade:st,noWrap:st,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:tr,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:st,disablePictureInPicture:st,disableRemotePlayback:st,exportParts:qc,part:dn,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:sF}),spe=Rf({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1359-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ui,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:dn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:st,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qc,g2:qc,glyphName:qc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Ui,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 7,195 bytes, lines 1359-1360
1359Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ui,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ui,rev:Ui,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ui,requiredFeatures:Ui,requiredFonts:Ui,requiredFormats:Ui,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Ui,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ui,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ui,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:aF}),oF=Rf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),lF=Rf({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sF}),cF=Rf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ope={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},lpe=/[A-Z]/g,ER=/-[a-z]/g,cpe=/^data[-\w.:]+$/i;function upe(e,t){const n=N5(t);let r=t,i=Li;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&cpe.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(ER,fpe);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!ER.test(s)){let l=s.replace(lpe,dpe);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=ok}return new i(r,t)}function dpe(e){return"-"+e.toLowerCase()}function fpe(e){return e.charAt(1).toUpperCase()}const hpe=rF([iF,ape,oF,lF,cF],"html"),lk=rF([iF,spe,oF,lF,cF],"svg");function ppe(e){return e.join(" ").trim()}var vd={},VS,TR;function mpe(){if(TR)return VS;TR=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,d=` 1360`,h="/",m="*",g="",y="comment",b="declaration";function S(w,C){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];C=C||{};var E=1,A=1;function _(K){var z=K.match(t);z&&(E+=z.length);var q=K.lastIndexOf(d);A=~q?K.length-q:A+K.length}function R(){var K={line:E,column:A};return function(z){return z.position=new L(K),F(),z}}function L(K){this.start=K,this.end={line:E,column:A},this.source=C.source}L.prototype.content=w;function j(K){var z=new Error(C.source+":"+E+":"+A+": "+K);if(z.reason=K,z.filename=C.source,z.line=E,z.column=A,z.source=w,!C.silent)throw z}function O(K){var z=K.exec(w);if(z){var q=z[0];return _(q),w=w.slice(q.length),z}}function F(){O(n)}function D(K){var z;for(K=K||[];z=H();)z!==!1&&K.push(z);return K}function H(){var K=R();if(!(h!=w.charAt(0)||m!=w.charAt(1))){for(var z=2;g!=w.charAt(z)&&(m!=w.charAt(z)||h!=w.charAt(z+1));)++z;if(z+=2,g===w.charAt(z-1))return j("End of comment missing");var q=w.slice(2,z-2);return A+=2,_(q),w=w.slice(z),A+=2,K({type:y,comment:q})}}function V(){var K=R(),z=O(r);if(z){if(H(),!O(i))return j("property missing ':'");var q=O(s),$=K({type:b,property:I(z[0].replace(e,g)),value:q?I(q[0].replace(e,g)):g});return O(l),$}}function Y(){var K=[];D(K);for(var z;z=V();)z!==!1&&(K.push(z),D(K));return K}return F(),Y()}function I(w){return w?w.replace(u,g):g}return VS=S,VS}var AR;function gpe(){if(AR)return vd;AR=1;var e=vd&&vd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vd,"__esModule",{value:!0}),vd.default=n;const t=e(mpe());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const l=(0,t.default)(r),u=typeof i=="function";return l.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:m}=d;u?i(h,m,d):m&&(s=s||{},s[h]=m)}),s}return vd}var Fh={},_R;function ype(){if(_R)return Fh;_R=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(h){return!h||n.test(h)||e.test(h)},l=function(h,m){return m.toUpperCase()},u=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),s(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(i,u):h=h.replace(r,u),h.replace(t,l))};return Fh.camelCase=d,Fh}var Bh,RR;function vpe(){if(RR)return Bh;RR=1;var e=Bh&&Bh.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(gpe()),n=ype();function r(i,s){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(u,d){u&&d&&(l[(0,n.camelCase)(u,s)]=d)}),l}return r.default=r,Bh=r,Bh}var bpe=vpe();const xpe=ff(bpe),uF=dF("end"),ck=dF("start");function dF(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Spe(e){const t=ck(e),n=uF(e);if(t&&n)return{start:t,end:n}}function dp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jR(e.position):"start"in e||"end"in e?jR(e):"line"in e||"column"in e?U5(e):""}function U5(e){return OR(e&&e.line)+":"+OR(e&&e.column)}function jR(e){return U5(e&&e.start)+"-"+U5(e&&e.end)}function OR(e){return e&&typeof e=="number"?e:1}
vendor: 1,927 bytes, line 1360
1360class ni extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},l=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(l=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?s.ruleId=r:(s.source=r.slice(0,d),s.ruleId=r.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const u=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=dp(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=l&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ni.prototype.file="";ni.prototype.name="";ni.prototype.reason="";ni.prototype.message="";ni.prototype.stack="";ni.prototype.column=void 0;ni.prototype.line=void 0;ni.prototype.ancestors=void 0;ni.prototype.cause=void 0;ni.prototype.fatal=void 0;ni.prototype.place=void 0;ni.prototype.ruleId=void 0;ni.prototype.source=void 0;const uk={}.hasOwnProperty,wpe=new Map,Cpe=/[A-Z]/g,Ipe=new Set(["table","tbody","thead","tfoot","tr"]),kpe=new Set(["td","th"]),fF="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Epe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Dpe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,346 bytes, line 1360
1360if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Lpe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?lk:hpe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=hF(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function hF(e,t,n){if(t.type==="element")return Tpe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ape(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Rpe(e,t,n);if(t.type==="mdxjsEsm")return _pe(e,t);if(t.type==="root")return jpe(e,t,n);if(t.type==="text")return Ope(e,t)}function Tpe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=lk,e.schema=i),e.ancestors.push(t);const s=mF(e,t.tagName,!1),l=Mpe(e,t);let u=fk(e,t);return Ipe.has(t.tagName)&&(u=u.filter(function(d){return typeof d=="string"?!rpe(d):!0})),pF(e,l,s,t),dk(l,u),e.ancestors.pop(),e.schema=r,e.create(t,s,l,n)}function Ape(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Vp(e,t.position)}function _pe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Vp(e,t.position)}function Rpe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=lk,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:mF(e,t.name,!0),l=Ppe(e,t),u=fk(e,t);return pF(e,l,s,t),dk(l,u),e.ancestors.pop(),e.schema=r,e.create(t,s,l,n)}function jpe(e,t,n){const r={};return dk(r,fk(e,t)),e.create(t,e.Fragment,r,n)}function Ope(e,t){return t.value}function pF(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function dk(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Lpe(e,t,n){return r;function r(i,s,l,u){const h=Array.isArray(l.children)?n:t;return u?h(s,l,u):h(s,l)}}function Dpe(e,t){return n;function n(r,i,s,l){const u=Array.isArray(s.children),d=ck(r);return t(i,s,l,u,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function Mpe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&uk.call(t.properties,i)){const s=Fpe(e,i,t.properties[i]);if(s){const[l,u]=s;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&kpe.has(t.tagName)?r=u:n[l]=u}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ppe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const l=s.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Vp(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,s=e.evaluater.evaluateExpression(u.expression)}else Vp(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function fk(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:wpe;for(;++r<t.children.length;){const s=t.children[r];let l;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const h=i.get(d)||0;l=d+"-"+h,i.set(d,h+1)}}const u=hF(e,s,l);u!==void 0&&n.push(u)}return n}function Fpe(e,t,n){const r=upe(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Qhe(n):ppe(n)),r.property==="style"){let i=typeof n=="object"?n:Bpe(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Npe(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ope[r.property]||r.property:r.attribute,n]}}function Bpe(e,t){try{return xpe(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ni("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=fF+"#cannot-parse-style-attribute",i}}function mF(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,l;for(;++s<i.length;){const u=CR(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(s&&u.type==="Literal"),optional:!1}:u}r=l}else r=CR(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return uk.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Vp(e)}function Vp(e,t){const n=new ni("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=fF+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Npe(e){const t={};let n;for(n in e)uk.call(e,n)&&(t[zpe(n)]=e[n]);return t}function zpe(e){let t=e.replace(Cpe,Hpe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Hpe(e){return"-"+e.toLowerCase()}const qS={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Upe={};function hk(e,t){const n=Upe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return gF(e,r,i)}function gF(e,t,n){if(Wpe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return LR(e.children,t,n)}return Array.isArray(e)?LR(e,t,n):""}function LR(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=gF(e[i],t,n);return r.join("")}function Wpe(e){return!!(e&&typeof e=="object")}const DR=document.createElement("i");function pk(e){const t="&"+e+";";DR.innerHTML=t;const n=DR.textContent;
vendor: 12,048 bytes, line 1360
1360return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ga(e,t,n,r){const i=e.length;let s=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);s<r.length;)l=r.slice(s,s+1e4),l.unshift(t,0),e.splice(...l),s+=1e4,t+=1e4}function va(e,t){return e.length>0?(Ga(e,e.length,0,t),e):t}const MR={}.hasOwnProperty;function yF(e){const t={};let n=-1;for(;++n<e.length;)Vpe(t,e[n]);return t}function Vpe(e,t){let n;for(n in t){const i=(MR.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let l;if(s)for(l in s){MR.call(i,l)||(i[l]=[]);const u=s[l];qpe(i[l],Array.isArray(u)?u:u?[u]:[])}}}function qpe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ga(e,0,0,r)}function vF(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ya(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fi=Ul(/[A-Za-z]/),Xr=Ul(/[\dA-Za-z]/),Gpe=Ul(/[#-'*+\--9=?A-Z^-~]/);function L1(e){return e!==null&&(e<32||e===127)}const W5=Ul(/\d/),Ype=Ul(/[\dA-Fa-f]/),Kpe=Ul(/[!-/:-@[-`{-~]/);function Qe(e){return e!==null&&e<-2}function pn(e){return e!==null&&(e<0||e===32)}function bt(e){return e===-2||e===-1||e===32}const Hv=Ul(new RegExp("\\p{P}|\\p{S}","u")),au=Ul(/\s/);function Ul(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function jf(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let l="";if(s===37&&Xr(e.charCodeAt(n+1))&&Xr(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(l=String.fromCharCode(s));else if(s>55295&&s<57344){const u=e.charCodeAt(n+1);s<56320&&u>56319&&u<57344?(l=String.fromCharCode(s,u),i=1):l="�"}else l=String.fromCharCode(s);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Vt(e,t,n,r){const i=r?r-1:1/0;let s=0;return l;function l(d){return bt(d)?(e.enter(n),u(d)):t(d)}function u(d){return bt(d)&&s++<i?(e.consume(d),u):(e.exit(n),t(d))}}function bF(e,t,n,r,i,s){let l=0;return u;function u(m){return bt(m)?(e.enter(r),d(m)):h(m)}function d(m){return bt(m)&&l<s?(e.consume(m),l++,d):(e.exit(r),h(m))}function h(m){return l>=i?t(m):n(m)}}const Xpe={tokenize:Jpe};function Jpe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Vt(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),s(u)}function s(u){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Qe(u)?(e.consume(u),e.exit("chunkText"),s):(e.consume(u),l)}}let D1=class{constructor(){this.index=new Map,this.map=[]}add(t,n,r){PR(this,t,n,r,!1)}addBefore(t,n,r){PR(this,t,n,r,!0)}consume(t){if(this.map.sort(function(s,l){return s[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0,this.index.clear()}};function PR(e,t,n,r,i){if(n===0&&r.length===0)return;const s=e.index.get(t);if(s){s[1]+=n,i?(r.push(...s[2]),s[2]=r):s[2].push(...r);return}const l=[t,n,r];e.map.push(l),e.index.set(t,l)}const Zpe={tokenize:Qpe},FR={tokenize:$pe};function Qpe(e){const t=this,n=[];let r=0,i,s,l;return u;function u(A){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,d,h)(A)}return h(A)}function d(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const _=t.events.length;let R=_,L;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){L=t.events[R][1].end;break}C(r);let j=_;for(;j<t.events.length;)t.events[j][1].end={...L},j++;const O=new D1;return O.add(R+1,0,t.events.slice(_)),O.add(_,j-_,[]),O.consume(t.events),h(A)}return u(A)}function h(A){if(r===n.length){if(!i)return y(A);if(i.currentConstruct&&i.currentConstruct.concrete)return S(A);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(FR,m,g)(A)}function m(A){return i&&E(),C(r),y(A)}function g(A){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,S(A)}function y(A){return t.containerState={},e.attempt(FR,b,S)(A)}function b(A){return r++,n.push([t.currentConstruct,t.containerState]),y(A)}function S(A){if(A===null){i&&E(),C(0),e.consume(A);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),I(A)}function I(A){if(A===null){w(e.exit("chunkFlow"),!0),C(0),e.consume(A);return}return Qe(A)?(e.consume(A),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(A),I)}function w(A,_){const R=t.sliceStream(A);if(_&&R.push(null),A.previous=s,s&&(s.next=A),s=A,i.defineSkip(A.start),i.write(R),t.parser.lazy[A.start.line]){let L=i.events.length;for(;L--;)if(i.events[L][1].start.offset<l&&(!i.events[L][1].end||i.events[L][1].end.offset>l))return;const j=t.events.length;let O=j,F,D;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(F){D=t.events[O][1].end;break}F=!0}for(C(r),L=j;L<t.events.length;)t.events[L][1].end={...D},L++;const H=new D1;H.add(O+1,0,t.events.slice(j)),H.add(j,L-j,[]),H.consume(t.events)}}function C(A){let _=n.length;for(;_-- >A;){const R=n[_];t.containerState=R[1],R[0].exit.call(t,e)}n.length=A}function E(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $pe(e,t,n){return Vt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function M1(e){if(e===null||pn(e)||au(e))return 1;if(Hv(e))return 2}function Uv(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const V5={name:"attention",resolveAll:eme,tokenize:tme};function eme(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;const s=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,l={...e[i][1].end},u={...e[n][1].start};BR(l,-s),BR(u,s);const d={type:s>1?"strongSequence":"emphasisSequence",start:l,end:{...e[i][1].end}},h={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:u},m={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},g={type:s>1?"strong":"emphasis",start:{...d.start},end:{...h.end}};e[i][1].end={...d.start},e[n][1].start={...h.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=va(r,[["enter",e[i][1],t],["exit",e[i][1],t]])),r=va(r,[["enter",g,t],["enter",d,t],["exit",d,t],["enter",m,t]]),r=va(r,Uv(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=va(r,[["exit",m,t],["enter",h,t],["exit",h,t],["exit",g,t]]);let y=0;e[n][1].end.offset-e[n][1].start.offset&&(y=2,r=va(r,[["enter",e[n][1],t],["exit",e[n][1],t]])),Ga(e,i-1,n-i+3,r),n=i+r.length-y-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function tme(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=M1(r);let s;return l;function l(d){return s=d,e.enter("attentionSequence"),u(d)}function u(d){if(d===s)return e.consume(d),u;const h=e.exit("attentionSequence"),m=M1(d),g=!m||m===2&&i||n.includes(d)&&d!==42&&d!==95,y=!i||i===2&&m||n.includes(r)&&r!==42&&r!==95;return h._open=!!(s===42?g:g&&(i||!y)),h._close=!!(s===42?y:y&&(m||!g)),t(d)}}function BR(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nme={name:"autolink",tokenize:rme};function rme(e,t,n){let r=0;return i;function i(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(b){return fi(b)?(e.consume(b),l):b===64?n(b):h(b)}function l(b){return b===43||b===45||b===46||Xr(b)?(r=1,u(b)):h(b)}function u(b){return b===58?(e.consume(b),r=0,d):(b===43||b===45||b===46||Xr(b))&&r++<32?(e.consume(b),u):(r=0,h(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||L1(b)?n(b):(e.consume(b),d)}function h(b){return b===64?(e.consume(b),m):Gpe(b)?(e.consume(b),h):n(b)}function m(b){return Xr(b)?g(b):n(b)}function g(b){return b===46?(e.consume(b),r=0,m):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):y(b)}function y(b){if((b===45||Xr(b))&&r++<63){const S=b===45?y:g;return e.consume(b),S}return n(b)}}const Um={partial:!0,tokenize:ime};function ime(e,t,n){return r;function r(s){return bt(s)?Vt(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||Qe(s)?t(s):n(s)}}const xF={continuation:{tokenize:sme},exit:ome,name:"blockQuote",tokenize:ame};function ame(e,t,n){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),s}return n(l)}function s(l){return bt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function sme(e,t,n){const r=this;return i;function i(l){return bt(l)?Vt(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):s(l)}function s(l){return e.attempt(xF,t,n)(l)}}function ome(e){e.exit("blockQuote")}const SF={name:"characterEscape",tokenize:lme};function lme(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Kpe(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const wF={name:"characterReference",tokenize:cme};function cme(e,t,n){const r=this;let i=0,s,l;return u;function u(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,l=Xr,m(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,l=Ype,m):(e.enter("characterReferenceValue"),s=7,l=W5,m(g))}function m(g){if(g===59&&i){const y=e.exit("characterReferenceValue");return l===Xr&&!pk(r.sliceSerialize(y))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(g)&&i++<s?(e.consume(g),m):n(g)}}const q5={partial:!0,tokenize:ume};function ume(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s)}function s(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const NR={concrete:!0,name:"codeFenced",tokenize:dme};function dme(e,t,n){const r=this,i={partial:!0,tokenize:R};let s=0,l=0,u;return d;function d(L){return h(L)}function h(L){const j=r.events[r.events.length-1];return s=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,u=L,e.enter("co
1360deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(L)}function m(L){return L===u?(l++,e.consume(L),m):l<3?n(L):(e.exit("codeFencedFenceSequence"),bt(L)?Vt(e,g,"whitespace")(L):g(L))}function g(L){return L===null||Qe(L)?(e.exit("codeFencedFence"),r.interrupt?t(L):e.check(q5,I,_)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(L))}function y(L){return L===null||Qe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):bt(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Vt(e,b,"whitespace")(L)):L===96&&L===u?n(L):(e.consume(L),y)}function b(L){return L===null||Qe(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(L))}function S(L){return L===null||Qe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===u?n(L):(e.consume(L),S)}function I(L){return e.attempt(i,_,w)(L)}function w(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),C}function C(L){return s>0&&bt(L)?Vt(e,E,"linePrefix",s+1)(L):E(L)}function E(L){return L===null||Qe(L)?e.check(q5,I,_)(L):(e.enter("codeFlowValue"),A(L))}function A(L){return L===null||Qe(L)?(e.exit("codeFlowValue"),E(L)):(e.consume(L),A)}function _(L){return e.exit("codeFenced"),t(L)}function R(L,j,O){let F=0;return D;function D(z){return L.enter("lineEnding"),L.consume(z),L.exit("lineEnding"),H}function H(z){return L.enter("codeFencedFence"),bt(z)?Vt(L,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):V(z)}function V(z){return z===u?(L.enter("codeFencedFenceSequence"),Y(z)):O(z)}function Y(z){return z===u?(F++,L.consume(z),Y):F>=l?(L.exit("codeFencedFenceSequence"),bt(z)?Vt(L,K,"whitespace")(z):K(z)):O(z)}function K(z){return z===null||Qe(z)?(L.exit("codeFencedFence"),j(z)):O(z)}}}const GS={name:"codeIndented",tokenize:hme},fme={partial:!0,tokenize:pme};function hme(e,t,n){return r;function r(u){return e.enter("codeIndented"),bF(e,i,n,"linePrefix",4,4)(u)}function i(u){return u===null?l(u):Qe(u)?e.attempt(fme,i,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Qe(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function pme(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):Qe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):bF(e,t,s,"linePrefix",4,4)(l)}function s(l){return Qe(l)?i(l):n(l)}}const mme={name:"codeText",previous:yme,resolve:gme,tokenize:vme};function gme(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function yme(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vme(e,t,n){let r=0,i,s;return l;function l(g){return e.enter("codeText"),e.enter("codeTextSequence"),u(g)}function u(g){return g===96?(e.consume(g),r++,u):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(s=e.enter("codeTextSequence"),i=0,m(g)):Qe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Qe(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),h)}function m(g){return g===96?(e.consume(g),i++,m):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(s.type="codeTextData",h(g))}}class bme{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Nh(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Nh(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Nh(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Nh(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Nh(this.left,n.reverse())}}}function Nh(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function CF(e){const t={};let n=-1,r,i,s,l,u,d,h;const m=new bme(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,xme(m,n)),n=t[n],h=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(l=m.get(s),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=s);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...m.get(i)[1].start},u=m.slice(i,n),u.unshift(r),m.splice(i,n-i+1,u))}}return Ga(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function xme(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,d=[],h={};let m,g,y=-1,b=n,S=0,I=0;const w=[I];for(;b;){for(;e.get(++i)[1]!==b;);s.push(i),b._tokenizer||(m=r.sliceStream(b),b.next||m.push(null),g&&l.defineSki
vendor: 16,437 bytes, line 1360
1360p(b.start),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(m),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=n;++y<u.length;)u[y][0]==="exit"&&u[y-1][0]==="enter"&&u[y][1].type===u[y-1][1].type&&u[y][1].start.line!==u[y][1].end.line&&(I=y+1,w.push(I),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(l.events=[],b?(b._tokenizer=void 0,b.previous=void 0):w.pop(),y=w.length;y--;){const C=u.slice(w[y],w[y+1]),E=s.pop();d.push([E,E+C.length-1]),e.splice(E,2,C)}for(d.reverse(),y=-1;++y<d.length;)h[S+d[y][0]]=S+d[y][1],S+=d[y][1]-d[y][0]-1;return h}const Sme={resolve:Cme,tokenize:Ime},wme={partial:!0,tokenize:kme};function Cme(e){return CF(e),e}function Ime(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?s(u):Qe(u)?e.check(wme,l,s)(u):(e.consume(u),i)}function s(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function kme(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Vt(e,s,"linePrefix")}function s(l){if(l===null||Qe(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function IF(e,t,n,r,i,s,l,u,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return g;function g(C){return C===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(C),e.exit(s),y):C===null||C===32||C===41||L1(C)?n(C):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),I(C))}function y(C){return C===62?(e.enter(s),e.consume(C),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===62?(e.exit("chunkString"),e.exit(u),y(C)):C===null||C===60||Qe(C)?n(C):(e.consume(C),C===92?S:b)}function S(C){return C===60||C===62||C===92?(e.consume(C),b):b(C)}function I(C){return!m&&(C===null||C===41||pn(C))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(C)):m<h&&C===40?(e.consume(C),m++,I):C===41?(e.consume(C),m--,I):C===null||C===32||C===40||L1(C)?n(C):(e.consume(C),C===92?w:I)}function w(C){return C===40||C===41||C===92?(e.consume(C),I):I(C)}}function kF(e,t,n,r,i,s){const l=this;let u=0,d;return h;function h(b){return e.enter(r),e.enter(i),e.consume(b),e.exit(i),e.enter(s),m}function m(b){return u>999||b===null||b===91||b===93&&!d||b===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(b):b===93?(e.exit(s),e.enter(i),e.consume(b),e.exit(i),e.exit(r),t):Qe(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||Qe(b)||u++>999?(e.exit("chunkString"),m(b)):(e.consume(b),d||(d=!bt(b)),b===92?y:g)}function y(b){return b===91||b===92||b===93?(e.consume(b),u++,g):g(b)}}function EF(e,t,n,r,i,s){let l;return u;function u(y){return y===34||y===39||y===40?(e.enter(r),e.enter(i),e.consume(y),e.exit(i),l=y===40?41:y,d):n(y)}function d(y){return y===l?(e.enter(i),e.consume(y),e.exit(i),e.exit(r),t):(e.enter(s),h(y))}function h(y){return y===l?(e.exit(s),d(l)):y===null?n(y):Qe(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Vt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===l||y===null||Qe(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?g:m)}function g(y){return y===l||y===92?(e.consume(y),m):m(y)}}function fp(e,t){let n;return r;function r(i){return Qe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):bt(i)?Vt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Eme={name:"definition",tokenize:Ame},Tme={partial:!0,tokenize:_me};function Ame(e,t,n){const r=this;let i;return s;function s(b){return e.enter("definition"),l(b)}function l(b){return kF.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function u(b){return i=Ya(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):n(b)}function d(b){return pn(b)?fp(e,h)(b):h(b)}function h(b){return IF(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function m(b){return e.attempt(Tme,g,g)(b)}function g(b){return bt(b)?Vt(e,y,"whitespace")(b):y(b)}function y(b){return b===null||Qe(b)?(e.exit("definition"),r.parser.defined.push(i),t(b)):n(b)}}function _me(e,t,n){return r;function r(u){return pn(u)?fp(e,i)(u):n(u)}function i(u){return EF(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function s(u){return bt(u)?Vt(e,l,"whitespace")(u):l(u)}function l(u){return u===null||Qe(u)?t(u):n(u)}}const Rme={name:"hardBreakEscape",tokenize:jme};function jme(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return Qe(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ome={name:"headingAtx",resolve:Lme,tokenize:Dme};function Lme(e,t){let n=e.length-2,r=3;if(e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r){const i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};Ga(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])}return e}function Dme(e,t,n){let r=0;return i;function i(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&r++<6?(e.consume(m),l):m===null||pn(m)?(e.exit("atxHeadingSequence"),u(m)):n(m)}function u(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Qe(m)?(e.exit("atxHeading"),t(m)):bt(m)?Vt(e,u,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),u(m))}function h(m){return m===null||m===35||pn(m)?(e.exit("atxHeadingText"),u(m)):(e.consume(m),h)}}const Mme=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],zR=["pre","script","style","textarea"],Pme={concrete:!0,name:"htmlFlow",resolveTo:Bme,tokenize:Nme},Fme={partial:!0,tokenize:zme};function Bme(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Nme(e,t,n){const r=this;let i,s,l,u,d;return h;function h(B){return m(B)}function m(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),g}function g(B){return B===33?(e.consume(B),y):B===47?(e.consume(B),s=!0,I):B===63?(e.consume(B),i=3,r.interrupt?t:M):fi(B)?(e.consume(B),l=String.fromCharCode(B),w):n(B)}function y(B){return B===45?(e.consume(B),i=2,b):B===91?(e.consume(B),i=5,u=0,S):fi(B)?(e.consume(B),i=4,r.interrupt?t:M):n(B)}function b(B){return B===45?(e.consume(B),r.interrupt?t:M):n(B)}function S(B){const N="CDATA[";return B===N.charCodeAt(u++)?(e.consume(B),u===N.length?r.interrupt?t:V:S):n(B)}function I(B){return fi(B)?(e.consume(B),l=String.fromCharCode(B),w):n(B)}function w(B){if(B===null||B===47||B===62||pn(B)){const N=B===47,le=l.toLowerCase();return!N&&!s&&zR.includes(le)?(i=1,r.interrupt?t(B):V(B)):Mme.includes(l.toLowerCase())?(i=6,N?(e.consume(B),C):r.interrupt?t(B):V(B)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):s?E(B):A(B))}return B===45||Xr(B)?(e.consume(B),l+=String.fromCharCode(B),w):n(B)}function C(B){return B===62?(e.consume(B),r.interrupt?t:V):n(B)}function E(B){return bt(B)?(e.consume(B),E):D(B)}function A(B){return B===47?(e.consume(B),D):B===58||B===95||fi(B)?(e.consume(B),_):bt(B)?(e.consume(B),A):D(B)}function _(B){return B===45||B===46||B===58||B===95||Xr(B)?(e.consume(B),_):R(B)}function R(B){return B===61?(e.consume(B),L):bt(B)?(e.consume(B),R):A(B)}function L(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),d=B,j):bt(B)?(e.consume(B),L):O(B)}function j(B){return B===d?(e.consume(B),d=null,F):B===null||Qe(B)?n(B):(e.consume(B),j)}function O(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||pn(B)?R(B):(e.consume(B),O)}function F(B){return B===47||B===62||bt(B)?A(B):n(B)}function D(B){return B===62?(e.consume(B),H):n(B)}function H(B){return B===null||Qe(B)?V(B):bt(B)?(e.consume(B),H):n(B)}function V(B){return B===45&&i===2?(e.consume(B),q):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),Z):B===63&&i===3?(e.consume(B),M):B===93&&i===5?(e.consume(B),ge):Qe(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Fme,te,Y)(B)):B===null||Qe(B)?(e.exit("htmlFlowData"),Y(B)):(e.consume(B),V)}function Y(B){return e.check(q5,K,te)(B)}function K(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),z}function z(B){return B===null||Qe(B)?Y(B):(e.enter("htmlFlowData"),V(B))}function q(B){return B===45?(e.consume(B),M):V(B)}function $(B){return B===47?(e.consume(B),l="",ue):V(B)}function ue(B){if(B===62){const N=l.toLowerCase();return zR.includes(N)?(e.consume(B),Z):V(B)}return fi(B)&&l.length<8?(e.consume(B),l+=String.fromCharCode(B),ue):V(B)}function ge(B){return B===93?(e.consume(B),M):V(B)}function M(B){return B===62?(e.consume(B),Z):B===45&&i===2?(e.consume(B),M):V(B)}function Z(B){return B===null||Qe(B)?(e.exit("htmlFlowData"),te(B)):(e.consume(B),Z)}function te(B){return e.exit("htmlFlow"),t(B)}}function zme(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Um,t,n)}}const Hme={name:"htmlText",tokenize:Ume};function Ume(e,t,n){const r=this;let i,s,l;return u;function u(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),d}function d(M){return M===33?(e.consume(M),h):M===47?(e.consume(M),R):M===63?(e.consume(M),A):fi(M)?(e.consume(M),O):n(M)}function h(M){return M===45?(e.consume(M),m):M===91?(e.consume(M),s=0,S):fi(M)?(e.consume(M),E):n(M)}function m(M){return M===45?(e.consume(M),b):n(M)}function g(M){return M===null?n(M):M===45?(e.consume(M),y):Qe(M)?(l=g,$(M)):(e.consume(M),g)}function y(M){return M===45?(e.consume(M),b):g(M)}function b(M){return M===62?q(M):M===45?y(M):g(M)}function S(M){const Z="CDATA[";return M===Z.charCodeAt(s++)?(e.consume(M),s===Z.length?I:S):n(M)}function I(M){return M===null?n(M):M===93?(e.consume(M),w):Qe(M)?(l=I,$(M)):(e.consume(M),I)}function w(M){return M===93?(e.consume(M),C):I(M)}function C(M){return M===62?q(M):M===93?(e.consume(M),C):I(M)}function E(M){return M===null||M===62?q(M):Qe(M)?(l=E,$(M)):(e.consume(M),E)}function A(M){return M===null?n(M):M===63?(e.consume(M),_):Qe(M)?(l=A,$(M)):(e.consume(M),A)}function _(M){return M===62?q(M):A(M)}function R(M){return fi(M)?(e.consume(M),L):n(M)}function L(M){return M===45||Xr(M)?(e.consume(M),L):j(M)}function j(M){return Qe(M)?(l=j,$(M)):bt(M)?(e.consume(M),j):q(M)}function O(M){return M===45||Xr(M)?(e.consume(M),O):M===47||M===62||pn(M)?F(M):n(M)}function F(M){return M===47?(e.consume(M),q):M===58||M===95||fi(M)?(e.consume(M),D):Qe(M)?(l=F,$(M)):bt(M)?(e.consume(M),F):q(M)}function D(M){return M===45||M===46||M===58||M===95||Xr(M)?(e.consume(M),D):H(M)}function H(M){return M===61?(e.consume(M),V):Qe(M)?(l=H,$(M)):bt(M)?(e.consume(M),H):F(M)}function V(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),i=M,Y):Qe(M)?(l=V,$(M)):bt(M)?(e.consume(M),V):(e.consume(M),K)}function Y(M){return M===i?(e.consume(M),i=void 0,z):M===null?n(M):Qe(M)?(l=Y,$(M)):(e.consume(M),Y)}function K(M){return M===null||M===34||M===39||M===60||M===61||M===96?n(M):M===47||M===62||pn(M)?F(M):(e.consume(M),K)}function z(M){return M===47||M===62||pn(M)?F(M):n(M)}function q(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):n(M)}function $(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ue}function ue(M){return bt(M)?Vt(e,ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):ge(M)}function ge(M){return e.enter("htmlTextData"),l(M)}}const mk={name:"labelEnd",resolveAll:Gme,resolveTo:Yme,tokenize:Kme},Wme={tokenize:Xme},Vme={tokenize:Jme},qme={tokenize:Zme};function Gme(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ga(e,0,e.length,n),e}function Yme(e,t){let n=e.length,r=0,i,s,l;for(;n--;){const m=e[n][1];if(i){if(m.type==="link"||m.type==="labelLink"&&m._inactive)break;e[n][0]==="enter"&&m.type==="labelLink"&&(m._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(m.type==="labelImage"||m.type==="labelLink")&&!m._balanced&&(i=n,m.type!=="labelLink")){r=2;break}}else m.type==="labelEnd"&&(s=n)}const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",u,t],["enter",d,t]],l=va(l,e.slice(i+1,i+r+3)),l=va(l,[["enter",h,t]]),l=va(l,Uv(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),l=va(l,[["exit",h,t],e[s-2],e[s-1],["exit",d,t]]),l=va(l,e.slice(s+1)),l=va(l,[["exit",u,t]]),Ga(e,i,e.length,l),e}function Kme(e,t,n){const r=this,i=r._labelStarts;let s,l;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();s=i[i.length-1]}return u;function u(y){return s?s._inactive?g(y):(l=r.parser.defined.includes(Ya(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),d):n(y)}function d(y){return y===40?e.attempt(Wme,m,l?m:g)(y):y===91?e.attempt(Vme,m,l?h:g)(y):l?m(y):g(y)}function h(y){return e.attempt(qme,m,g)(y)}function m(y){return i.pop(),t(y)}function g(y){return s._balanced=!0,n(y)}}function Xme(e,t,n){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),i}function i(g){return pn(g)?fp(e,s)(g):s(g)}function s(g){return g===41?m(g):IF(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function l(g){return pn(g)?fp(e,d)(g):m(g)}function u(g){return n(g)}function d(g){return g===34||g===39||g===40?EF(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function h(g){return pn(g)?fp(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function Jme(e,t,n){const r=this;return i;function i(u){return kF.call(r,e,s,l,"reference","referenceMarker","referenceString")(u)}function s(u){return r.parser.defined.includes(Ya(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function Zme(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Qme={name:"labelStartImage",resolveAll:mk.resolveAll,tokenize:$me};function $me(e,t,n){const r=this;let i;return s;function s(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),l}function l(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),i=e.exit("labelImage"),u):n(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(d):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(d
vendor: 2,068 bytes, line 1360
1360))}}const ege={name:"labelStartLink",resolveAll:mk.resolveAll,tokenize:tge};function tge(e,t,n){const r=this;let i;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),i=e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(u))}}const YS={name:"lineEnding",tokenize:nge};function nge(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vt(e,t,"linePrefix")}}const Gy={name:"thematicBreak",tokenize:rge};function rge(e,t,n){let r=0,i;return s;function s(h){return e.enter("thematicBreak"),l(h)}function l(h){return i=h,u(h)}function u(h){return h===i?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||Qe(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===i?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),bt(h)?Vt(e,u,"whitespace")(h):u(h))}}const ki={continuation:{tokenize:oge},exit:cge,name:"list",tokenize:sge},ige={partial:!0,tokenize:uge},age={partial:!0,tokenize:lge};function sge(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return u;function u(b){const S=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:W5(b)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Gy,n,h)(b):h(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return n(b)}function d(b){return W5(b)&&++l<10?(e.consume(b),d):(!r.interrupt||l<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):n(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(Um,r.interrupt?n:m,e.attempt(ige,y,g))}
vendor: 5,465 bytes, line 1360
1360function m(b){return r.containerState.initialBlankLine=!0,s++,y(b)}function g(b){return bt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),y):n(b)}function y(b){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function oge(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Um,i,s);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Vt(e,t,"listItemIndent",r.containerState.size+1)(u)}function s(u){return r.containerState.furtherBlankLines||!bt(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(age,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,Vt(e,e.attempt(ki,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function lge(e,t,n){const r=this;return Vt(e,i,"listItemIndent",r.containerState.size+1);function i(s){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(s):n(s)}}function cge(e){e.exit(this.containerState.type)}function uge(e,t,n){const r=this;return Vt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const l=r.events[r.events.length-1];return!bt(s)&&l&&l[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const HR={name:"setextUnderline",resolveTo:dge,tokenize:fge};function dge(e,t){const n=new D1;let r=e.length,i,s,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&n.add(r,1,[]),!l&&e[r][1].type==="definition"&&(l=r);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(n.add(s,0,[["enter",u,t]]),n.add(l+1,0,[["exit",e[i][1],t]]),e[i][1].end={...e[l][1].end}):e[i][1]=u,n.add(e.length,0,[["exit",u,t]]),n.consume(e),e}function fge(e,t,n){const r=this;let i;return s;function s(h){let m=r.events.length,g;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){g=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),i=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===i?(e.consume(h),u):(e.exit("setextHeadingLineSequence"),bt(h)?Vt(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Qe(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const hge={tokenize:pge};function pge(e){const t=this,n=e.attempt(Um,r,e.attempt(this.parser.constructs.flowInitial,i,Vt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Sme,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const mge={resolveAll:AF()},gge=TF("string"),yge=TF("text");function TF(e){return{resolveAll:AF(e==="text"?vge:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,l,u);return l;function l(m){return h(m)?s(m):u(m)}function u(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),s(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const g=i[m];let y=-1;if(g)for(;++y<g.length;){const b=g[y];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function AF(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function vge(e,t){const n=new D1;let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],s=t.sliceStream(i);let l=s.length,u=-1,d=0,h;for(;l--;){const m=s[l];if(typeof m=="string"){for(u=m.length;m.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(m===-2)h=!0,d++;else if(m!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const m={type:r===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...m.start},i.start.offset===i.end.offset?Object.assign(i,m):n.add(r,0,[["enter",m,t],["exit",m,t]])}r++}return n.consume(e),e}const bge={42:ki,43:ki,45:ki,48:ki,49:ki,50:ki,51:ki,52:ki,53:ki,54:ki,55:ki,56:ki,57:ki,62:xF},xge={91:Eme},Sge={[-2]:GS,[-1]:GS,32:GS},wge={35:Ome,42:Gy,45:[HR,Gy],60:Pme,61:HR,95:Gy,96:NR,126:NR},Cge={38:wF,92:SF},Ige={[-5]:YS,[-4]:YS,[-3]:YS,33:Qme,38:wF,42:V5,60:[nme,Hme],91:ege,92:[Rme,SF],93:mk,95:V5,96:mme},kge={null:[V5,mge]},Ege={null:[42,95]},Tge={null:[]},Age=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ege,contentInitial:xge,disable:Tge,document:bge,flow:wge,flowInitial:Sge,insideSpan:kge,string:Cge,text:Ige},Symbol.toStringTag,{value:"Module"}));function _ge(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 4,465 bytes, lines 1360-1362
1360olumn:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let l=[],u=[];const d={attempt:j(R),check:j(L),consume:E,enter:A,exit:_,interrupt:j(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:I,events:[],now:S,parser:e,previous:null,sliceSerialize:y,sliceStream:b,write:g};let m=t.tokenize.call(h,d);return t.resolveAll&&s.push(t),h;function g(H){return l=va(l,H),w(),l[l.length-1]!==null?[]:(O(t,0),h.events=Uv(s,h.events,h),h.events)}function y(H,V){return jge(b(H),V)}function b(H){return Rge(l,H)}function S(){const{_bufferIndex:H,_index:V,line:Y,column:K,offset:z}=r;return{_bufferIndex:H,_index:V,line:Y,column:K,offset:z}}function I(H){i[H.line]=H.column,D()}function w(){for(;r._index<l.length;){const H=l[r._index];if(typeof H=="string"){const V=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===V&&r._bufferIndex<H.length;)C(H.charCodeAt(r._bufferIndex))}else C(H)}}function C(H){m=m(H)}function E(H){Qe(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,D()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=H}function A(H,V){const Y=V||{};return Y.type=H,Y.start=S(),h.events.push(["enter",Y,h]),u.push(Y),Y}function _(H){const V=u.pop();return V.end=S(),h.events.push(["exit",V,h]),V}function R(H,V){O(H,V.from)}function L(H,V){V.restore()}function j(H,V){return Y;function Y(K,z,q){let $,ue,ge,M;return Array.isArray(K)?te(K):"tokenize"in K?te([K]):Z(K);function Z(ae){return de;function de(oe){const we=oe!==null&&ae[oe],je=oe!==null&&ae.null,xe=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(je)?je:je?[je]:[]];return te(xe)(oe)}}function te(ae){return $=ae,ue=0,ae.length===0?q:B(ae[ue])}function B(ae){return de;function de(oe){return M=F(),ge=ae,ae.partial||(h.currentConstruct=ae),ae.name&&h.parser.constructs.disable.null.includes(ae.name)?le():ae.tokenize.call(V?Object.assign(Object.create(h),V):h,d,N,le)(oe)}}function N(ae){return H(ge,M),z}function le(ae){return M.restore(),++ue<$.length?B($[ue]):q}}}function O(H,V){H.resolveAll&&!s.includes(H)&&s.push(H),H.resolve&&Ga(h.events,V,h.events.length-V,H.resolve(h.events.slice(V),h)),H.resolveTo&&(h.events=H.resolveTo(h.events,h))}function F(){const H=S(),V=h.previous,Y=h.currentConstruct,K=h.events.length,z=Array.from(u);return{from:K,restore:q};function q(){r=H,h.previous=V,h.currentConstruct=Y,h.events.length=K,u=z,D()}}function D(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Rge(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,s)];else{if(l=e.slice(n,i),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}s>0&&l.push(e[i].slice(0,s))}return l}function jge(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let l;if(typeof s=="string")l=s;else switch(s){case-5:{l="\r";break}case-4:{l=` 1361`;break}case-3:{l=`\r 1362`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(s)}i=s===-2,r.push(l)}return r.join("")}function Oge(e){const r={constructs:yF([Age,...(e||{}).extensions||[]]),content:i(Xpe),defined:[],document:i(Zpe),flow:i(hge),lazy:{},string:i(gge),text:i(yge)};return r;function i(s){return l;function l(u){return _ge(r,s,u)}}}function Lge(e){for(;!CF(e););return e}const UR=/[\0\t\n\r]/g;function Dge(){let e=1,t="",n=!0,r;return i;function i(s,l,u){s=t+(typeof s=="string"?s.toString():new TextDecoder(l||void 0).decode(s));const d=[];let h=0;for(t="",n&&(s.charCodeAt(0)===65279&&h++,n=void 0);h<s.length;){UR.lastIndex=h;const m=UR.exec(s),g=m&&m.index!==void 0?m.index:s.length,y=s.charCodeAt(g);if(!m){t=s.slice(h);break}if(y===10&&h===g&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),h<g&&(d.push(s.slice(h,g)),e+=g-h),y){case 0:{d.push(65533),e++;break}case 9:{const b=Math.ceil(e/4)*4;for(d.push(-2);e++<b;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}h=g+1}return u&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const Mge=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pge(e){return e.replace(Mge,Fge)}function Fge(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return vF(n.slice(s?2:1),s?16:10)}return pk(n)||e}const _F={}.hasOwnProperty;function Bge(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Nge(n)(Lge(Oge(n).document().write(Dge()(e,t,!0))
vendor: 9,983 bytes, line 1362
1362))}function Nge(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ot),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(dt),blockQuote:s(je),characterEscape:F,characterReference:F,codeFenced:s(xe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(xe,l),codeText:s(Se,l),codeTextData:F,data:F,codeFlowValue:F,definition:s(qe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(Ke),hardBreakEscape:s(at),hardBreakTrailing:s(at),htmlFlow:s(nt,l),htmlFlowData:F,htmlText:s(nt,l),htmlTextData:F,image:s(Ae),label:l,link:s(ot),listItem:s(ln),listItemValue:y,listOrdered:s(en,g),listUnordered:s(en),paragraph:s(pr),reference:B,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(dt),strong:s(Xn),thematicBreak:s(Tr)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:we,autolinkProtocol:oe,blockQuote:d(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:ae,characterReference:de,codeFenced:d(w),codeFencedFence:I,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:D,codeIndented:d(C),codeText:d(z),codeTextData:D,data:D,definition:d(),definitionDestinationString:_,definitionLabelString:E,definitionTitleString:A,emphasis:d(),hardBreakEscape:d(V),hardBreakTrailing:d(V),htmlFlow:d(Y),htmlFlowData:D,htmlText:d(K),htmlTextData:D,image:d($),label:ge,labelText:ue,lineEnding:H,link:d(q),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:N,resourceDestinationString:M,resourceTitleString:Z,resource:te,setextHeading:d(O),setextHeadingLineSequence:j,setextHeadingText:L,strong:d(),thematicBreak:d()}};RF(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(fe){let Ce={type:"root",children:[]};const Xe={stack:[Ce],tokenStack:[],config:t,enter:u,exit:h,buffer:l,resume:m,data:n},Je=[];let wt=-1;for(;++wt<fe.length;)if(fe[wt][1].type==="listOrdered"||fe[wt][1].type==="listUnordered")if(fe[wt][0]==="enter")Je.push(wt);else{const Rn=Je.pop();wt=i(fe,Rn,wt)}for(wt=-1;++wt<fe.length;){const Rn=t[fe[wt][0]];_F.call(Rn,fe[wt][1].type)&&Rn[fe[wt][1].type].call(Object.assign({sliceSerialize:fe[wt][2].sliceSerialize},Xe),fe[wt][1])}if(Xe.tokenStack.length>0){const Rn=Xe.tokenStack[Xe.tokenStack.length-1];(Rn[1]||WR).call(Xe,void 0,Rn[0])}for(Ce.position={start:rl(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:rl(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},wt=-1;++wt<t.transforms.length;)Ce=t.transforms[wt](Ce)||Ce;return Ce}function i(fe,Ce,Xe){let Je=Ce-1,wt=-1,Rn=!1,ri,mr,Ar,gr;for(;++Je<=Xe;){const gn=fe[Je];switch(gn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gn[0]==="enter"?wt++:wt--,gr=void 0;break}case"lineEndingBlank":{gn[0]==="enter"&&(ri&&!gr&&!wt&&!Ar&&(Ar=Je),gr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:gr=void 0}if(!wt&&gn[0]==="enter"&&gn[1].type==="listItemPrefix"||wt===-1&&gn[0]==="exit"&&(gn[1].type==="listUnordered"||gn[1].type==="listOrdered")){if(ri){let Hr=Je;for(mr=void 0;Hr--;){const Oe=fe[Hr];if(Oe[1].type==="lineEnding"||Oe[1].type==="lineEndingBlank"){if(Oe[0]==="exit")continue;mr&&(fe[mr][1].type="lineEndingBlank",Rn=!0),Oe[1].type="lineEnding",mr=Hr}else if(!(Oe[1].type==="linePrefix"||Oe[1].type==="blockQuotePrefix"||Oe[1].type==="blockQuotePrefixWhitespace"||Oe[1].type==="blockQuoteMarker"||Oe[1].type==="listItemIndent"))break}Ar&&(!mr||Ar<mr)&&(ri._spread=!0),ri.end=Object.assign({},mr?fe[mr][1].start:gn[1].end),fe.splice(mr||Je,0,["exit",ri,gn[2]]),Je++,Xe++}if(gn[1].type==="listItemPrefix"){const Hr={type:"listItem",_spread:!1,start:Object.assign({},gn[1].start),end:void 0};ri=Hr,fe.splice(Je,0,["enter",Hr,gn[2]]),Je++,Xe++,Ar=void 0,gr=!0}}}return fe[Ce][1]._spread=Rn,Xe}function s(fe,Ce){return Xe;function Xe(Je){u.call(this,fe(Je),Je),Ce&&Ce.call(this,Je)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(fe,Ce,Xe){this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([Ce,Xe||void 0]),fe.position={start:rl(Ce.start),end:void 0}}function d(fe){return Ce;function Ce(Xe){fe&&fe.call(this,Xe),h.call(this,Xe)}}function h(fe,Ce){const Xe=this.stack.pop(),Je=this.tokenStack.pop();if(Je)Je[0].type!==fe.type&&(Ce?Ce.call(this,fe,Je[0]):(Je[1]||WR).call(this,fe,Je[0]));else throw new Error("Cannot close `"+fe.type+"` ("+dp({start:fe.start,end:fe.end})+"): itâs not open");Xe.position.end=rl(fe.end)}function m(){return hk(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function y(fe){if(this.data.expectingFirstListItemValue){const Ce=this.stack[this.stack.length-2];Ce.start=Number.parseInt(this.sliceSerialize(fe),10),this.data.expectingFirstListItemValue=void 0}}function b(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.lang=fe}function S(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.meta=fe}function I(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=fe.replace(/(\r?\n|\r)$/g,"")}function E(fe){const Ce=this.resume(),Xe=this.stack[this.stack.length-1];Xe.label=Ce,Xe.identifier=Ya(this.sliceSerialize(fe)).toLowerCase()}function A(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.title=fe}function _(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.url=fe}function R(fe){const Ce=this.stack[this.stack.length-1];if(!Ce.depth){const Xe=this.sliceSerialize(fe).length;Ce.depth=Xe}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function j(fe){const Ce=this.stack[this.stack.length-1];Ce.depth=this.sliceSerialize(fe).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function F(fe){const Xe=this.stack[this.stack.length-1].children;let Je=Xe[Xe.length-1];(!Je||Je.type!=="text")&&(Je=Cn(),Je.position={start:rl(fe.start),end:void 0},Xe.push(Je)),this.stack.push(Je)}function D(fe){const Ce=this.stack.pop();Ce.value+=this.sliceSerialize(fe),Ce.position.end=rl(fe.end)}function H(fe){const Ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Xe=Ce.children[Ce.children.length-1];Xe.position.end=rl(fe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ce.type)&&(F.call(this,fe),D.call(this,fe))}function V(){this.data.atHardBreak=!0}function Y(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=fe}function K(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=fe}function z(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=fe}function q(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const Ce=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=Ce,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function $(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const Ce=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=Ce,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function ue(fe){const Ce=this.sliceSerialize(fe),Xe=this.stack[this.stack.length-2];Xe.label=Pge(Ce),Xe.identifier=Ya(Ce).toLowerCase()}function ge(){const fe=this.stack[this.stack.length-1],Ce=this.resume(),Xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Xe.type==="link"){const Je=fe.children;Xe.children=Je}else Xe.alt=Ce}function M(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.url=fe}function Z(){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.title=fe}function te(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function N(fe){const Ce=this.resume(),Xe=this.stack[this.stack.length-1];Xe.label=Ce,Xe.identifier=Ya(this.sliceSerialize(fe)).toLowerCase(),this.data.referenceType="full"}function le(fe){this.data.characterReferenceType=fe.type}function ae(fe){const Ce=this.sliceSerialize(fe),Xe=this.data.characterReferenceType;let Je;Xe?(Je=vF(Ce,Xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Je=pk(Ce);const wt=this.stack[this.stack.length-1];wt.value+=Je}function de(fe){const Ce=this.stack.pop();Ce.position.end=rl(fe.end)}function oe(fe){D.call(this,fe);const Ce=this.stack[this.stack.length-1];Ce.url=this.sliceSerialize(fe)}function we(fe){D.call(this,fe);const Ce=this.stack[this.stack.length-1];Ce.url="mailto:"+this.sliceSerialize(fe)}function je(){return{type:"blockquote",children:[]}}function xe(){return{type:"code",lang:null,meta:null,value:""}}function Se(){return{type:"inlineCode",value:""}}function qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ke(){return{type:"emphasis",children:[]}}function dt(){return{type:"heading",depth:0,children:[]}}function at(){return{type:"break"}}function nt(){return{type:"html",value:""}}function Ae(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function en(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function ln(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function pr(){return{type:"paragraph",children:[]}}function Xn(){return{type:"strong",children:[]}}function Cn(){return{type:"text",value:""}}function Tr(){return{type:"thematicBreak"}}}function rl(e){return{line:e.line,column:e.column,offset:e.offset}}function RF(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?RF(e,r):zge(e,r)}}
vendor: 4,200 bytes, lines 1362-1364
1362function zge(e,t){let n;for(n in t)if(_F.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function WR(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+dp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+dp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+dp({start:t.start,end:t.end})+") is still open")}function Hge(e){const t=this;t.parser=n;function n(r){return Bge(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Uge(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Wge(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 1363`}]}function Vge(e,t){const n=t.value?t.value+` 1364`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function qge(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gge(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yge(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=jf(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=s+1,u+=1,e.footnoteCounts.set(r,u);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function Kge(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xge(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function jF(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Jge(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jF(e,t);const i={src:jf(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Zge(e,t){const n={src:jf(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Qge(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function $ge(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jF(e,t);const i={href:jf(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function e0e(e,t){const n={href:jf(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function t0e(e,t,n){const r=e.all(t),i=n?n0e(n):OF(t),s={},l=[];
vendor: 4,036 bytes, lines 1364-1366
1364if(typeof t.checked=="boolean"){const m=r[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const m=r[u];(i||u!==0||m.type!=="element"||m.tagName!=="p")&&l.push({type:"text",value:` 1365`}),m.type==="element"&&m.tagName==="p"&&!i?l.push(...m.children):l.push(m)}const d=r[r.length-1];d&&(i||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:` 1366`});const h={type:"element",tagName:"li",properties:s,children:l};return e.patch(t,h),e.applyData(t,h)}function n0e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=OF(n[r])}return t}function OF(e){const t=e.spread;return t??e.children.length>1}function r0e(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function i0e(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function a0e(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function s0e(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function o0e(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=ck(t.children[1]),d=uF(t.children[t.children.length-1]);u&&d&&(l.position={start:u,end:d}),i.push(l)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function l0e(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,u=l?l.length:t.children.length;let d=-1;const h=[];for(;++d<u;){const g=t.children[d],y={},b=l?l[d]:void 0;b&&(y.align=b);let S={type:"element",tagName:s,properties:y,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),h.push(S)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function c0e(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const VR=9,qR=32;function u0e(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(GR(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(GR(t.slice(i),i>0,!1)),s.join("")}function GR(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===VR||s===qR;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===VR||s===qR;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function d0e(e,t){const n={type:"text",value:u0e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function f0e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const h0e={blockquote:Uge,break:Wge,code:Vge,delete:qge,emphasis:Gge,footnoteReference:Yge,heading:Kge,html:Xge,imageReference:Jge,image:Zge,inlineCode:Qge,linkReference:$ge,link:e0e,listItem:t0e,list:r0e,paragraph:i0e,root:a0e,strong:s0e,table:o0e,tableCell:c0e,tableRow:l0e,text:d0e,thematicBreak:f0e,toml:Z0,yaml:Z0,definition:Z0,footnoteDefinition:Z0};function Z0(){}const LF=-1,Wv=0,hp=1,P1=2,gk=3,yk=4,vk=5,bk=6,DF=7,MF=8,{defineProperty:p0e}=Object,PF=typeof self=="object"?self:globalThis,YR=(e,t)=>
1366{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new PF[e](t)},m0e=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,l]=t[i];switch(s){case Wv:case LF:return n(l,i);case hp:{const u=n([],i);for(const d of l)u.push(r(d));return u}case P1:{const u=n({},i);for(const[d,h]of l){const m=r(d),g=r(h);m==="__proto__"?p0e(u,m,{value:g,configurable:!0,enumerable:!0,writable:!0}):u[m]=g}return u}case gk:return n(new Date(l),i);case yk:{const{source:u,flags:d}=l;return n(new RegExp(u,d),i)}case vk:{const u=n(new Map,i);for(const[d,h]of l)u.set(r(d),r(h));return u}case bk:{const u=n(new Set,i);for(const d of l)u.add(r(d));return u}case DF:{const{name:u,message:d}=l;return n(typeof PF[u]=="function"?YR(u,d):new Error(d),i)}case MF:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return n(new DataView(u),l)}case"-0":return-0}return n(YR(s,l),i)};return r},KR=e=>m0e(new Map,e)(0),Rc="",{toString:g0e}={},{keys:y0e,is:v0e}=Object,zh=e=>{const t=typeof e;if(t!=="object"||!e)return[Wv,t];const n=g0e.call(e).slice(8,-1);switch(n){case"Array":return[hp,Rc];case"Object":return[P1,Rc];case"Date":return[gk,Rc];case"RegExp":return[yk,Rc];case"Map":return[vk,Rc];case"Set":return[bk,Rc];case"DataView":return[hp,n]}return n.includes("Array")?[hp,n]:e instanceof Error?[DF,e.name||"Error"]:[P1,n]},Q0=([e,t])=>e===Wv&&(t==="function"||t==="symbol"),b0e=(e,t,n,r)=>{const i=(l,u)=>{const d=r.push(l)-1;return n.set(u,d),d},s=l=>{if(n.has(l))return n.get(l);let[u,d]=zh(l);switch(u){case Wv:{let m=l;switch(d){case"bigint":u=MF,m=l.toString();break;case"number":if(!l&&v0e(l,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return i([LF],l)}return i([u,m],l)}case hp:{if(d){let y=l;return d==="DataView"?y=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(y=new Uint8Array(l)),i([d,[...y]],l)}const m=[],g=i([u,m],l);for(const y of l)m.push(s(y));return g}case P1:{if(d)switch(d){case"BigInt":return i([d,l.toString()],l);case"Boolean":case"Number":case"String":return i([d,l.valueOf()],l)}if(t&&"toJSON"in l)return s(l.toJSON());const m=[],g=i([u,m],l);for(const y of y0e(l))(e||!Q0(zh(l[y])))&&m.push([s(y),s(l[y])]);return g}case gk:return i([u,isNaN(l.getTime())?Rc:l.toISOString()],l);case yk:{const{source:m,flags:g}=l;return i([u,{source:m,flags:g}],l)}case vk:{const m=[],g=i([u,m],l);for(const[y,b]of l)(e||!(Q0(zh(y))||Q0(zh(b))))&&m.push([s(y),s(b)]);return g}case bk:{const m=[],g=i([u,m],l);for(const y of l)(e||!Q0(zh(y)))&&m.push(s(y));return g}}const{message:h}=l;return i([u,{name:d,message:h}],l)};return s},XR=(e,{json:t,lossy:n}={})=>{const r=[];return b0e(!(t||n),!!t,new Map,r)(e),r},F1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?KR(XR(e,t)):structuredClone(e):(e,t)=>KR(XR(e,t));function x0e(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function S0e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function w0e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||x0e,r=e.options.footnoteBackLabel||S0e,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),g=String(h.identifier).toUpperCase(),y=jf(g.toLowerCase());let b=0;const S=[],I=e.footnoteCounts.get(g);for(;I!==void 0&&++b<=I;){S.length>0&&S.push({type:"text",value:" "});let E=typeof n=="string"?n:n(d,b);typeof E=="string"&&(E={type:"text",value:E}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,b),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const w=m[m.length-1];
vendor: 5,235 bytes, lines 1366-1372
1366if(w&&w.type==="element"&&w.tagName==="p"){const E=w.children[w.children.length-1];E&&E.type==="text"?E.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...S)}else m.push(...S);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(m,!0)};e.patch(h,C),u.push(C)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...F1(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 1367`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:` 1368`}]}}const Vv=(function(e){if(e==null)return E0e;if(typeof e=="function")return qv(e);if(typeof e=="object")return Array.isArray(e)?C0e(e):I0e(e);if(typeof e=="string")return k0e(e);throw new Error("Expected function, string, or object as test")});function C0e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Vv(e[n]);return qv(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function I0e(e){const t=e;return qv(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function k0e(e){return qv(t);function t(n){return n&&n.type===e}}function qv(e){return t;function t(n,r,i){return!!(T0e(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function E0e(){return!0}function T0e(e){return e!==null&&typeof e=="object"&&"type"in e}const FF=[],A0e=!0,G5=!1,_0e="skip";function BF(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=Vv(i),l=r?-1:1;u(e,void 0,[])();function u(d,h,m){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return y;function y(){let b=FF,S,I,w;if((!t||s(d,h,m[m.length-1]||void 0))&&(b=R0e(n(d,m)),b[0]===G5))return b;if("children"in d&&d.children){const C=d;if(C.children&&b[0]!==_0e)for(I=(r?C.children.length:-1)+l,w=m.concat(C);I>-1&&I<C.children.length;){const E=C.children[I];if(S=u(E,I,w)(),S[0]===G5)return S;I=typeof S[1]=="number"?S[1]:I+l}}return b}}}function R0e(e){return Array.isArray(e)?e:typeof e=="number"?[A0e,e]:e==null?FF:[e]}function xk(e,t,n,r){let i,s,l;typeof t=="function"&&typeof n!="function"?(s=void 0,l=t,i=n):(s=t,l=n,i=r),BF(e,s,u,i);function u(d,h){const m=h[h.length-1],g=m?m.children.indexOf(d):void 0;return l(d,g,m)}}const Y5={}.hasOwnProperty,j0e={};function O0e(e,t){const n=t||j0e,r=new Map,i=new Map,s=new Map,l={...h0e,...n.handlers},u={all:h,applyData:D0e,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:l,one:d,options:n,patch:L0e,wrap:P0e};return xk(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?r:i,y=String(m.identifier).toUpperCase();g.has(y)||g.set(y,m)}}),u;function d(m,g){const y=m.type,b=u.handlers[y];if(Y5.call(u.handlers,y)&&b)return b(u,m,g);if(u.options.passThrough&&u.options.passThrough.includes(y)){if("children"in m){const{children:I,...w}=m,C=F1(w);return C.children=u.all(m),C}return F1(m)}return(u.options.unknownHandler||M0e)(u,m,g)}function h(m){const g=[];if("children"in m){const y=m.children;let b=-1;for(;++b<y.length;){const S=u.one(y[b],m);if(S){if(b&&y[b-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=JR(S.value)),!Array.isArray(S)&&S.type==="element")){const I=S.children[0];I&&I.type==="text"&&(I.value=JR(I.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function L0e(e,t){e.position&&(t.position=Spe(e))}function D0e(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&s&&Object.assign(n.properties,F1(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function M0e(e,t){const n=t.data||{},r="value"in t&&!(Y5.call(n,"hProperties")||Y5.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function P0e(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 1369`});++r<e.length;)r&&n.push({type:"text",value:` 1370`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 1371`}),n}function JR(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ZR(e,t){const n=O0e(e,t),r=n.one(e,void 0),i=w0e(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:` 1372`},i),s}function F0e(e,t){return e&&"run"in e?async function(n,r){const i=ZR(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ZR(n,{file:r,...e||t})}}function QR(e){if(e)throw e}var KS,$R;function B0e(){if($R)return KS;$R=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},s=function(h){if(!h||t.call(h)!=="[object Object]")return!1;
vendor: 8,879 bytes, line 1372
1372var m=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!g)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},l=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},u=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(r)return r(h,m).value}else return;return h[m]};return KS=function d(){var h,m,g,y,b,S,I=arguments[0],w=1,C=arguments.length,E=!1;for(typeof I=="boolean"&&(E=I,I=arguments[1]||{},w=2),(I==null||typeof I!="object"&&typeof I!="function")&&(I={});w<C;++w)if(h=arguments[w],h!=null)for(m in h)g=u(I,m),y=u(h,m),I!==y&&(E&&y&&(s(y)||(b=i(y)))?(b?(b=!1,S=g&&i(g)?g:[]):S=g&&s(g)?g:{},l(I,{name:m,newValue:d(E,S,y)})):typeof y<"u"&&l(I,{name:m,newValue:y}));return I},KS}var N0e=B0e();const XS=ff(N0e);function K5(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function z0e(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...i);function u(d,...h){const m=e[++s];let g=-1;if(d){l(d);return}for(;++g<i.length;)(h[g]===null||h[g]===void 0)&&(h[g]=i[g]);i=h,m?H0e(m,u)(...h):l(null,...h)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function H0e(e,t){let n;return r;function r(...l){const u=e.length>l.length;let d;u&&l.push(i);try{d=e.apply(this,l)}catch(h){const m=h;if(u&&n)throw m;return i(m)}u||(d&&d.then&&typeof d.then=="function"?d.then(s,i):d instanceof Error?i(d):s(d))}function i(l,...u){n||(n=!0,t(l,...u))}function s(l){i(null,l)}}const vs={basename:U0e,dirname:W0e,extname:V0e,join:q0e,sep:"/"};function U0e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Wm(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else l<0&&(s=!0,l=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function W0e(e){if(Wm(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function V0e(e){Wm(e);let t=e.length,n=-1,r=0,i=-1,s=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),u===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function q0e(...e){let t=-1,n;for(;++t<e.length;)Wm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":G0e(n)}function G0e(e){Wm(e);const t=e.codePointAt(0)===47;let n=Y0e(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Y0e(e,t){let n="",r=0,i=-1,s=0,l=-1,u,d;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(i===l-1||s===1))if(i!==l-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),i=l,s=0;continue}}else if(n.length>0){n="",r=0,i=l,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,s=0}else u===46&&s>-1?s++:s=-1}return n}function Wm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const K0e={cwd:X0e};function X0e(){return"/"}function X5(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function J0e(e){if(typeof e=="string")e=new URL(e);else if(!X5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Z0e(e)}function Z0e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const JS=["history","path","basename","stem","extname","dirname"];class NF{constructor(t){let n;t?X5(t)?n={path:t}:typeof t=="string"||Q0e(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":K0e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<JS.length;){const s=JS[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)JS.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?vs.basename(this.path):void 0}set basename(t){QS(t,"basename"),ZS(t,"basename"),this.path=vs.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?vs.dirname(this.path):void 0}set dirname(t){e8(this.basename,"dirname"),this.path=vs.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?vs.extname(this.path):void 0}set extname(t){if(ZS(t,"extname"),e8(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=vs.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){X5(t)&&(t=J0e(t)),QS(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?vs.basename(this.path,this.extname):void 0}set stem(t){QS(t,"stem"),ZS(t,"stem"),this.path=vs.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ni(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ZS(e,t){if(e&&e.includes(vs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vs.sep+"`")}function QS(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function e8(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Q0e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $0e=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),eye={}.hasOwnProperty;class Sk extends $0e{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=z0e()}copy(){const t=new Sk;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(XS(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(tw("data",this.frozen),this.namespace[t]=n,this):eye.call(this.namespace,t)&&this.namespace[t]||void 0:t?(tw("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=$0(t),r=this.parser||this.Parser;return $S("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),$S("process",this.parser||this.Parser),ew("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,l){const u=$0(t),d=r.parse(u);r.run(d,u,function(m,g,y){if(m||!g||!y)return h(m);const b=g,S=r.stringify(b,y);rye(S)?y.value=S:y.result=S,h(m,y)});function h(m,g){m||!g?l(m):s?s(g):n(void 0,g)}}}processSync(t){let n=!1,r;return this.freeze(),$S("processSync",this.parser||this.Parser),ew("processSync",this.compiler||this.Compiler),this.process(t,i),n8("processSync","process",n),r;function i(s,l){n=!0,QR(s),r=l}}
vendor: 6,775 bytes, line 1372
1372run(t,n,r){t8(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(l,u){const d=$0(n);i.run(t,d,h);function h(m,g,y){const b=g||t;m?u(m):l?l(b):r(void 0,b,y)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),n8("runSync","run",r),i;function s(l,u){QR(l),i=u,r=!0}}stringify(t,n){this.freeze();const r=$0(n),i=this.compiler||this.Compiler;return ew("stringify",i),t8(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(tw("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...g]=h;d(m,g)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(i.settings=XS(!0,i.settings,h.settings))}function u(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const g=h[m];s(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let g=-1,y=-1;for(;++g<r.length;)if(r[g][0]===h){y=g;break}if(y===-1)r.push([h,...m]);else if(m.length>0){let[b,...S]=m;const I=r[y][1];K5(I)&&K5(b)&&(b=XS(!0,I,b)),r[y]=[h,b,...S]}}}}const tye=new Sk().freeze();function $S(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ew(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function tw(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function t8(e){if(!K5(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function n8(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $0(e){return nye(e)?e:new NF(e)}function nye(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function rye(e){return typeof e=="string"||iye(e)}function iye(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aye="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",r8=[],i8={allowDangerousHtml:!0},sye=/^(https?|ircs?|mailto|xmpp)$/i,oye=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lye(e){const t=cye(e),n=uye(e);return dye(t.runSync(t.parse(n),n),e)}function cye(e){const t=e.rehypePlugins||r8,n=e.remarkPlugins||r8,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...i8}:i8;return tye().use(Hge).use(n).use(F0e,r).use(t)}function uye(e){const t=e.children||"",n=new NF;return typeof t=="string"&&(n.value=t),n}function dye(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,s=t.disallowedElements,l=t.skipHtml,u=t.unwrapDisallowed,d=t.urlTransform||fye;for(const m of oye)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+aye+m.id,void 0);return xk(e,h),Epe(e,{Fragment:c.Fragment,components:i,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function h(m,g,y){if(m.type==="raw"&&y&&typeof g=="number")return l?y.children.splice(g,1):y.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let b;for(b in qS)if(Object.hasOwn(qS,b)&&Object.hasOwn(m.properties,b)){const S=m.properties[b],I=qS[b];(I===null||I.includes(m.tagName))&&(m.properties[b]=d(String(S||""),b,m))}}if(m.type==="element"){let b=n?!n.includes(m.tagName):s?s.includes(m.tagName):!1;if(!b&&r&&typeof g=="number"&&(b=!r(m,g,y)),b&&y&&typeof g=="number")return u&&m.children?y.children.splice(g,1,...m.children):y.children.splice(g,1),g}}}function fye(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||sye.test(e.slice(0,t))?e:""}function a8(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function hye(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function pye(e,t,n){const i=Vv((n||{}).ignore||[]),s=mye(t);let l=-1;for(;++l<s.length;)BF(e,"text",u);function u(h,m){let g=-1,y;for(;++g<m.length;){const b=m[g],S=y?y.children:void 0;if(i(b,S?S.indexOf(b):void 0,y))return;y=b}if(y)return d(h,m)}function d(h,m){const g=m[m.length-1],y=s[l][0],b=s[l][1];let S=0;const w=g.children.indexOf(h);let C=!1,E=[];y.lastIndex=0;let A=y.exec(h.value);for(;A;){const _=A.index,R={index:A.index,input:A.input,stack:[...m,h]};let L=b(...A,R);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?y.lastIndex=_+1:(S!==_&&E.push({type:"text",value:h.value.slice(S,_)}),Array.isArray(L)?E.push(...L):L&&E.push(L),S=_+A[0].length,C=!0),!y.global)break;A=y.exec(h.value)}return C?(S<h.value.length&&E.push({type:"text",value:h.value.slice(S)}),g.children.splice(w,1,...E)):E=[h],w+E.length}}function mye(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([gye(i[0]),yye(i[1])])}return t}function gye(e){return typeof e=="string"?new RegExp(hye(e),"g"):e}function yye(e){return typeof e=="function"?e:function(){return e}}const nw="phrasing",rw=["autolink","link","image","label"];
vendor: 7,614 bytes, lines 1372-1376
1372function vye(){return{transforms:[kye],enter:{literalAutolink:xye,literalAutolinkEmail:iw,literalAutolinkHttp:iw,literalAutolinkWww:iw},exit:{literalAutolink:Iye,literalAutolinkEmail:Cye,literalAutolinkHttp:Sye,literalAutolinkWww:wye}}}function bye(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nw,notInConstruct:rw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nw,notInConstruct:rw},{character:":",before:"[ps]",after:"\\/",inConstruct:nw,notInConstruct:rw}]}}function xye(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function iw(e){this.config.enter.autolinkProtocol.call(this,e)}function Sye(e){this.config.exit.autolinkProtocol.call(this,e)}function wye(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Cye(e){this.config.exit.autolinkEmail.call(this,e)}function Iye(e){this.exit(e)}function kye(e){pye(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Eye],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Tye]],{ignore:["link","linkReference"]})}function Eye(e,t,n,r,i){let s="";if(!zF(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!Aye(n)))return!1;const l=_ye(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:s+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function Tye(e,t,n,r){return!zF(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Aye(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function _ye(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=a8(e,"(");let s=a8(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function zF(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||au(n)||Hv(n))&&(!t||n!==47)}HF.peek=Bye;function Rye(){this.buffer()}function jye(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Oye(){this.buffer()}function Lye(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Dye(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ya(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Mye(e){this.exit(e)}function Pye(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ya(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Fye(e){this.exit(e)}function Bye(){return"["}function HF(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const l=n.enter("footnoteReference"),u=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),u(),l(),s+=i.move("]"),s}function Nye(){return{enter:{gfmFootnoteCallString:Rye,gfmFootnoteCall:jye,gfmFootnoteDefinitionLabelString:Oye,gfmFootnoteDefinition:Lye},exit:{gfmFootnoteCallString:Dye,gfmFootnoteCall:Mye,gfmFootnoteDefinitionLabelString:Pye,gfmFootnoteDefinition:Fye}}}function zye(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:HF},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,l){const u=s.createTracker(l);let d=u.move("[^");const h=s.enter("footnoteDefinition"),m=s.enter("label");return d+=u.move(s.safe(s.associationId(r),{before:d,after:"]"})),m(),d+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),d+=u.move((t?` 1373`:" ")+s.indentLines(s.containerFlow(r,u.current()),t?UF:Hye))),h(),d}}function Hye(e,t,n){return t===0?e:UF(e,t,n)}function UF(e,t,n){return(n?"":" ")+e}const Uye=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wk.attention=Yye;wk.peek=Kye;function Wye(){return{canContainEols:["delete"],enter:{strikethrough:qye},exit:{strikethrough:Gye}}}function Vye(){return{handlers:{delete:wk},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Uye}]}}function qye(e){this.enter({type:"delete",children:[],position:void 0},e)}function Gye(e){this.exit(e)}function wk(e,t,n,r){const i=n.createTracker(r),s=n.stack.includes("strikethrough")?"~":"~~",l=n.enter("strikethrough");let u=i.move(s);return u+=n.containerPhrasing(e,{...i.current(),before:u,after:"~"}),u+=i.move(s),l(),u}function Yye(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function Kye(){return"~"}function Xye(e){return e.length}function Jye(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Xye,s=[],l=[],u=[],d=[];let h=0,m=-1;for(;++m<e.length;){const I=[],w=[];let C=-1;for(e[m].length>h&&(h=e[m].length);++C<e[m].length;){const E=Zye(e[m][C]);if(n.alignDelimiters!==!1){const A=i(E);w[C]=A,(d[C]===void 0||A>d[C])&&(d[C]=A)}I.push(E)}l[m]=I,u[m]=w}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<h;)s[g]=s8(r[g]);else{const I=s8(r);for(;++g<h;)s[g]=I}g=-1;const y=[],b=[];for(;++g<h;){const I=s[g];let w="",C="";I===99?(w=":",C=":"):I===108?w=":":I===114&&(C=":");let E=n.alignDelimiters===!1?1:Math.max(1,d[g]-w.length-C.length);const A=w+"-".repeat(E)+C;n.alignDelimiters!==!1&&(E=w.length+E+C.length,E>d[g]&&(d[g]=E),b[g]=E),y[g]=A}l.splice(1,0,y),u.splice(1,0,b),m=-1;const S=[];for(;++m<l.length;){const I=l[m],w=u[m];g=-1;const C=[];for(;++g<h;){const E=I[g]||"";let A="",_="";if(n.alignDelimiters!==!1){const R=d[g]-(w[g]||0),L=s[g];L===114?A=" ".repeat(R):L===99?R%2?(A=" ".repeat(R/2+.5),_=" ".repeat(R/2-.5)):(A=" ".repeat(R/2),_=A):_=" ".repeat(R)}n.delimiterStart!==!1&&!g&&C.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&E==="")&&(n.delimiterStart!==!1||g)&&C.push(" "),n.alignDelimiters!==!1&&C.push(A),C.push(E),n.alignDelimiters!==!1&&C.push(_),n.padding!==!1&&C.push(" "),(n.delimiterEnd!==!1||g!==h-1)&&C.push("|")}S.push(n.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return S.join(` 1374`)}function Zye(e){return e==null?"":String(e)}function s8(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Qye=Vv(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function $ye(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const l=n.indentLines(n.containerFlow(e,s.current()),e1e);return i(),l}function e1e(e,t,n){return">"+(n?"":" ")+e}function t1e(e,t){return o8(e,t.inConstruct,!0)&&!o8(e,t.notInConstruct,!1)}function o8(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function l8(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){const s=n.unsafe[i];if(s.character===` 1375`&&!s.before&&!s.after&&t1e(n.stack,s))return/[\t ]/.test(r.before)?"":" "}return`\\ 1376`}function n1e(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>l&&(l=s):s=1,i=r+t.length,r=n.indexOf(t,i);return l}function r1e(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function i1e(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function a1e(e,t,n,r){const i=i1e(n),s=e.value||"";
1376if(r1e(e,n)){const g=n.enter("codeIndented"),y=n.indentLines(s,s1e);return g(),y}const l=n.createTracker(r),u=i.repeat(Math.max(n1e(s,i)+1,3)),d=n.enter("codeFenced"),h=i==="`"?"GraveAccent":"Tilde";let m=l.move(u);if(e.lang){const g=n.enter(`codeFencedLang${h}`);m+=l.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...l.current()})),g()}if(e.lang&&e.meta){const g=n.enter(`codeFencedMeta${h}`);m+=l.move(" "),m+=l.move(n.safe(e.meta,{before:m,after:` 1377`,encode:["`"],...l.current()})),g()}return m+=l.move(` 1378`),s&&(m+=l.move(s+` 1379`)),m+=l.move(u),d(),m}function s1e(e,t,n){return(n?"":" ")+e}function Ck(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function o1e(e,t,n,r){const i=Ck(n),s=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let u=n.enter("label");const d=n.createTracker(r);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(u=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":` 1380`,...d.current()}))),u(),e.title&&(u=n.enter(`title${s}`),h+=d.move(" "+i),h+=d.move(n.safe(e.title,{before:h,after:i,...d.current()})),h+=d.move(i),u()),l(),h}function l1e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Ik.attention=c1e;Ik.peek=u1e;function Ik(e,t,n,r){const i=n.enter("phrasing"),s=n.containerPhrasing({type:"root",children:[e]},r);return i(),s}function c1e(e,t){return{construct:"emphasis",markers:l1e(t)==="*"?["*","_"]:["_","*"],sizes:[1]}}function u1e(e,t,n){return n.options.emphasis||"*"}function d1e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function f1e(e,t){let n=!1;return xk(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,G5}),!!((!e.depth||e.depth<3)&&hk(e)&&(t.options.setext||n))}function h1e(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(f1e(e,n)){const g=n.enter("headingSetext"),y=n.enter("phrasing"),b=n.containerPhrasing(e,{...s.current(),before:` 1381`,after:` 1382`});return y(),g(),b+` 1383`+(i===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(` 1384`))+1))}const l="#".repeat(i),u=n.enter("headingAtx"),d=n.enter("phrasing");s.move(l+" ");let h=n.containerPhrasing(e,{before:"# ",after:` 1385`,...s.current()});const m=h.charCodeAt(0);return(m===9||m===32)&&(h=d1e(m)+h.slice(1)),h=h?l+" "+h:l,n.options.closeAtx&&(h+=" "+l),d(),u(),h}WF.peek=p1e;function WF(e){return e.value||""}function p1e(){return"<"}VF.peek=m1e;function VF(e,t,n,r){const i=Ck(n),s=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const d=n.createTracker(r);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(u=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),u(),e.title&&(u=n.enter(`title${s}`),h+=d.move(" "+i),h+=d.move(n.safe(e.title,{before:h,after:i,...d.current()})),h+=d.move(i),u()),h+=d.move(")"),l(),h}function m1e(){return"!"}qF.peek=g1e;function qF(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("![");const h=n.safe(e.alt,{before:d,after:"]",...u.current()});d+=u.move(h+"]["),l();const m=n.stack;n.stack=m.filter(function(y){return y!=="phrasing"}),l=n.enter("reference");const g=n.safe(n.associationId(e),{before:d,after:"]",...u.current()});return l(),n.stack=m,s(),i==="full"||!h||h!==g?d+=u.move(g+"]"):i==="shortcut"?d=d.slice(0,-1):d+=u.move("]"),d}function g1e(){return"!"}GF.peek=y1e;function GF(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const l=n.unsafe[s],u=n.compilePattern(l);if(!l.atBreak)continue;let d;for(;d=u.exec(r);){let h=d.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(d.index+1)}}return i+r+i}function y1e(){return"`"}function YF(e,t){const n=hk(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}KF.peek=v1e;function KF(e,t,n,r){const i=Ck(n),s=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);if(YF(e,n)){const m=n.stack;n.stack=m.filter(function(b){return b!=="phrasing"});const g=n.enter("autolink");let y=l.move("<");return y+=l.move(n.containerPhrasing(e,{before:y,after:">",...l.current()})),y+=l.move(">"),g(),n.stack=m,y}const u=n.enter("link");let d=n.enter("label"),h=l.move("[");return h+=l.move(n.containerPhrasing(e,{before:h,after:"](",...l.current()})),h+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=l.move("<"),h+=l.move(n.safe(e.url,{before:h,after:">",...l.current()})),h+=l.move(">")):(d=n.enter("destinationRaw"),h+=l.move(n.safe(e.url,{before:h,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${s}`),h+=l.move(" "+i),h+=l.move(n.safe(e.title,{before:h,after:i,...l.current()})),h+=l.move(i),d()),h+=l.move(")"),u(),h}function v1e(e,t,n){return YF(e,n)?"<":"["}
vendor: 2,344 bytes, line 1385
1385XF.peek=b1e;function XF(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...u.current()});d+=u.move(h+"]["),l();const m=n.stack;n.stack=m.filter(function(y){return y!=="phrasing"}),l=n.enter("reference");const g=n.safe(n.associationId(e),{before:d,after:"]",...u.current()});return l(),n.stack=m,s(),i==="full"||!h||h!==g?d+=u.move(g+"]"):i==="shortcut"?d=d.slice(0,-1):d+=u.move("]"),d}function b1e(){return"["}function kk(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function x1e(e){const t=kk(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function S1e(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function JF(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function w1e(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let l=e.ordered?S1e(n):kk(n);const u=e.ordered?l==="."?")":".":x1e(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),JF(n)===l&&m){let g=-1;for(;++g<e.children.length;){const y=e.children[g];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=u),n.bulletCurrent=l;const h=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=s,i(),h}function C1e(e){const t=e.options.listItemIndent||"one";
vendor: 5,552 bytes, lines 1385-1387
1385if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function I1e(e,t,n,r){const i=C1e(n);let s=n.bulletCurrent||kk(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let l=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=n.createTracker(r);u.move(s+" ".repeat(l-s.length)),u.shift(l);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,u.current()),m);return d(),h;function m(g,y,b){return y?(b?"":" ".repeat(l))+g:(b?s:s+" ".repeat(l-s.length))+g}}function k1e(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),l=n.containerPhrasing(e,r);return s(),i(),l}function E1e(e,t,n,r){if(!e.children.some(function(u){return Qye(u)}))return n.containerFlow(e,r);const s=n.enter("phrasing"),l=n.containerPhrasing(e,r);return s(),l}function T1e(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ek.attention=A1e;Ek.peek=_1e;function Ek(e,t,n,r){const i=n.enter("phrasing"),s=n.containerPhrasing({type:"root",children:[e]},r);return i(),s}function A1e(e,t){return{construct:"strong",markers:T1e(t)==="*"?["*","_"]:["_","*"],sizes:[2]}}function _1e(e,t,n){return n.options.strong||"*"}function R1e(e,t,n,r){return n.safe(e.value,r)}function j1e(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function O1e(e,t,n){const r=(JF(n)+(n.options.ruleSpaces?" ":"")).repeat(j1e(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ZF={blockquote:$ye,break:l8,code:a1e,definition:o1e,emphasis:Ik,hardBreak:l8,heading:h1e,html:WF,image:VF,imageReference:qF,inlineCode:GF,link:KF,linkReference:XF,list:w1e,listItem:I1e,paragraph:k1e,root:E1e,strong:Ek,text:R1e,thematicBreak:O1e};function L1e(){return{enter:{table:D1e,tableData:c8,tableHeader:c8,tableRow:P1e},exit:{codeText:F1e,table:M1e,tableData:aw,tableHeader:aw,tableRow:aw}}}function D1e(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function M1e(e){this.exit(e),this.data.inTable=void 0}function P1e(e){this.enter({type:"tableRow",children:[]},e)}function aw(e){this.exit(e)}function c8(e){this.enter({type:"tableCell",children:[]},e)}function F1e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,B1e));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function B1e(e,t){return t==="|"?t:e}function N1e(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 1386`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:l,tableCell:d,tableRow:u}};function l(b,S,I,w){return h(m(b,I,w),b.align)}function u(b,S,I,w){const C=g(b,I,w),E=h([C]);return E.slice(0,E.indexOf(` 1387`))}function d(b,S,I,w){const C=I.enter("tableCell"),E=I.enter("phrasing"),A=I.containerPhrasing(b,{...w,before:s,after:s});return E(),C(),A}function h(b,S){return Jye(b,{align:S,alignDelimiters:r,padding:n,stringLength:i})}function m(b,S,I){const w=b.children;let C=-1;const E=[],A=S.enter("table");for(;++C<w.length;)E[C]=g(w[C],S,I);return A(),E}function g(b,S,I){const w=b.children;let C=-1;const E=[],A=S.enter("tableRow");for(;++C<w.length;)E[C]=d(w[C],b,S,I);return A(),E}function y(b,S,I){let w=ZF.inlineCode(b,S,I);return I.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function z1e(){return{exit:{taskListCheckValueChecked:u8,taskListCheckValueUnchecked:u8,paragraph:U1e}}}function H1e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:W1e}}}function u8(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function U1e(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,l;for(;++s<i.length;){const u=i[s];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function W1e(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);s&&u.move(l);let d=ZF.listItem(e,t,n,{...r,...u.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+l}}function V1e(){return[vye(),Nye(),Wye(),L1e(),z1e()]}function q1e(e){return{extensions:[bye(),zye(e),Vye(),N1e(e),H1e()]}}const G1e={tokenize:Q1e,partial:!0},QF={tokenize:$1e,partial:!0},$F={tokenize:eve,partial:!0},eB={tokenize:tve,partial:!0},Y1e={tokenize:nve,partial:!0},tB={name:"wwwAutolink",tokenize:J1e,previous:rB},nB={name:"protocolAutolink",tokenize:Z1e,previous:iB},Eo={name:"emailAutolink",tokenize:X1e,previous:aB},Os={};function K1e(){return{text:Os}}let Ic=48;
vendor: 7,866 bytes, line 1387
1387for(;Ic<123;)Os[Ic]=Eo,Ic++,Ic===58?Ic=65:Ic===91&&(Ic=97);Os[43]=Eo;Os[45]=Eo;Os[46]=Eo;Os[95]=Eo;Os[72]=[Eo,nB];Os[104]=[Eo,nB];Os[87]=[Eo,tB];Os[119]=[Eo,tB];function X1e(e,t,n){const r=this;let i,s;return l;function l(g){return!J5(g)||!aB.call(r,r.previous)||Tk(r.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(g))}function u(g){return J5(g)?(e.consume(g),u):g===64?(e.consume(g),d):n(g)}function d(g){return g===46?e.check(Y1e,m,h)(g):g===45||g===95||Xr(g)?(s=!0,e.consume(g),d):m(g)}function h(g){return e.consume(g),i=!0,d}function m(g){return s&&i&&fi(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):n(g)}}function J1e(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!rB.call(r,r.previous)||Tk(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(G1e,e.attempt(QF,e.attempt($F,s),n),n)(l))}function s(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Z1e(e,t,n){const r=this;let i="",s=!1;return l;function l(g){return(g===72||g===104)&&iB.call(r,r.previous)&&!Tk(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(g),e.consume(g),u):n(g)}function u(g){if(fi(g)&&i.length<5)return i+=String.fromCodePoint(g),e.consume(g),u;if(g===58){const y=i.toLowerCase();if(y==="http"||y==="https")return e.consume(g),d}return n(g)}function d(g){return g===47?(e.consume(g),s?h:(s=!0,d)):n(g)}function h(g){return g===null||L1(g)||pn(g)||au(g)||Hv(g)?n(g):e.attempt(QF,e.attempt($F,m),n)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function Q1e(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),s):n(l)}function s(l){return l===null?n(l):t(l)}}function $1e(e,t,n){let r,i,s;return l;function l(h){return h===46||h===95?e.check(eB,d,u)(h):h===null||pn(h)||au(h)||h!==45&&Hv(h)?d(h):(s=!0,e.consume(h),l)}function u(h){return h===95?r=!0:(i=r,r=void 0),e.consume(h),l}function d(h){return i||r||!s?n(h):t(h)}}function eve(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?s(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(eB,t,s)(l):l===null||pn(l)||au(l)?t(l):(e.consume(l),i)}function s(l){return l===41&&r++,e.consume(l),i}}function tve(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),s):u===93?(e.consume(u),i):u===60||u===null||pn(u)||au(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||pn(u)||au(u)?t(u):r(u)}function s(u){return fi(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):fi(u)?(e.consume(u),l):n(u)}}function nve(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Xr(s)?n(s):t(s)}}function rB(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||pn(e)}function iB(e){return!fi(e)}function aB(e){return!(e===47||J5(e))}function J5(e){return e===43||e===45||e===46||e===95||Xr(e)}function Tk(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const rve={tokenize:dve,partial:!0};function ive(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lve,continuation:{tokenize:cve},exit:uve}},text:{91:{name:"gfmFootnoteCall",tokenize:ove},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ave,resolveTo:sve}}}}function ave(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const d=r.events[i][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return u;function u(d){if(!l||!l._balanced)return n(d);const h=Ya(r.sliceSerialize({start:l.end,end:r.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function sve(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function ove(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,l;return u;function u(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),d}function d(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(s>999||g===93&&!l||g===null||g===91||pn(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return i.includes(Ya(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(g)}return pn(g)||(l=!0),s++,e.consume(g),g===92?m:h}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,h):h(g)}}function lve(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,l=0,u;return d;function d(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(S)}function m(S){if(l>999||S===93&&!u||S===null||S===91||pn(S))return n(S);if(S===93){e.exit("chunkString");const I=e.exit("gfmFootnoteDefinitionLabelString");return s=Ya(r.sliceSerialize(I)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return pn(S)||(u=!0),l++,e.consume(S),S===92?g:m}function g(S){return S===91||S===92||S===93?(e.consume(S),l++,m):m(S)}function y(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),i.includes(s)||i.push(s),Vt(e,b,"gfmFootnoteDefinitionWhitespace")):n(S)}function b(S){return t(S)}}function cve(e,t,n){return e.check(Um,t,e.attempt(rve,t,n))}function uve(e){e.exit("gfmFootnoteDefinition")}function dve(e,t,n){const r=this;return Vt(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(s):n(s)}}function fve(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let d=-1;for(;++d<l.length;)if(l[d][0]==="enter"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._close){let h=d;for(;h--;
vendor: 5,549 bytes, line 1387
1387)if(l[h][0]==="exit"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._open&&l[d][1].end.offset-l[d][1].start.offset===l[h][1].end.offset-l[h][1].start.offset){l[d][1].type="strikethroughSequence",l[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},l[h][1].start),end:Object.assign({},l[d][1].end)},g={type:"strikethroughText",start:Object.assign({},l[h][1].end),end:Object.assign({},l[d][1].start)},y=[["enter",m,u],["enter",l[h][1],u],["exit",l[h][1],u],["enter",g,u]],b=u.parser.constructs.insideSpan.null;b&&Ga(y,y.length,0,Uv(b,l.slice(h+1,d),u)),Ga(y,y.length,0,[["exit",g,u],["enter",l[d][1],u],["exit",l[d][1],u],["exit",m,u]]),Ga(l,h-1,d-h+3,y),d=h+y.length-2;break}}for(d=-1;++d<l.length;)l[d][1].type==="strikethroughSequenceTemporary"&&(l[d][1].type="data");return l}function s(l,u,d){const h=this.previous,m=this.events;let g=0;return y;function y(S){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(S):(l.enter("strikethroughSequenceTemporary"),b(S))}function b(S){const I=M1(h);if(S===126)return g>1?d(S):(l.consume(S),g++,b);if(g<2&&!n)return d(S);const w=l.exit("strikethroughSequenceTemporary"),C=M1(S);return w._open=!C||C===2&&!!I,w._close=!I||I===2&&!!C,u(S)}}}class hve{constructor(){this.map=[],this.index=new Map}add(t,n,r){pve(this,t,n,r)}consume(t){if(this.map.sort(function(s,l){return s[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0,this.index.clear()}}function pve(e,t,n,r){if(n===0&&r.length===0)return;const i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}const s=[t,n,r];e.map.push(s),e.index.set(t,s)}function mve(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function gve(){return{flow:{null:{name:"table",tokenize:yve,resolveAll:vve}}}}function yve(e,t,n){const r=this;let i=0,s=0,l;return u;function u(D){let H=r.events.length-1;for(;H>-1;){const{type:K}=r.events[H][1];if(K==="lineEnding"||K==="linePrefix")H--;else break}const V=H>-1?r.events[H][1].type:null,Y=V==="tableHead"||V==="tableRow"?L:d;return Y===L&&r.parser.lazy[r.now().line]?n(D):Y(D)}function d(D){return e.enter("tableHead"),e.enter("tableRow"),h(D)}function h(D){return D===124||(l=!0,s+=1),m(D)}function m(D){return D===null?n(D):Qe(D)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),b):n(D):bt(D)?Vt(e,m,"whitespace")(D):(s+=1,l&&(l=!1,i+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),l=!0,m):(e.enter("data"),g(D)))}function g(D){return D===null||D===124||pn(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?y:g)}function y(D){return D===92||D===124?(e.consume(D),g):g(D)}function b(D){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(D):(e.enter("tableDelimiterRow"),l=!1,bt(D)?Vt(e,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):S(D))}function S(D){return D===45||D===58?w(D):D===124?(l=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),I):R(D)}function I(D){return bt(D)?Vt(e,w,"whitespace")(D):w(D)}function w(D){return D===58?(s+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):D===45?(s+=1,C(D)):D===null||Qe(D)?_(D):R(D)}function C(D){return D===45?(e.enter("tableDelimiterFiller"),E(D)):R(D)}function E(D){return D===45?(e.consume(D),E):D===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(D))}function A(D){return bt(D)?Vt(e,_,"whitespace")(D):_(D)}function _(D){return D===124?S(D):D===null||Qe(D)?!l||i!==s?R(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):R(D)}function R(D){return n(D)}function L(D){return e.enter("tableRow"),j(D)}function j(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),j):D===null||Qe(D)?(e.exit("tableRow"),t(D)):bt(D)?Vt(e,j,"whitespace")(D):(e.enter("data"),O(D))}function O(D){return D===null||D===124||pn(D)?(e.exit("data"),j(D)):(e.consume(D),D===92?F:O)}function F(D){return D===92||D===124?(e.consume(D),O):O(D)}}function vve(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],l=[0,0,0,0],u=!1,d=0,h,m,g;const y=new hve;for(;++n<e.length;){const b=e[n],S=b[1];b[0]==="enter"?S.type==="tableHead"?(u=!1,d!==0&&(d8(y,t,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},y.add(n,0,[["enter",h,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(r=!0,g=void 0,s=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,m={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},y.add(n,0,[["enter",m,t]])),i=S.type==="tableDelimiterRow"?2:m?3:1):i&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(s[1]!==0&&(l[0]=l[1],g=ey(y,t,s,i,void 0,g),s=[0,0,0,0]),l[2]=n)):S.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(l[0]=l[1],g=ey(y,t,s,i,void 0,g)),s=l,l=[s[1],n,0,0])):S.type==="tableHead"?(u=!0,d=n):S.t
1387ype==="tableRow"||S.type==="tableDelimiterRow"?(d=n,s[1]!==0?(l[0]=l[1],g=ey(y,t,s,i,n,g)):l[1]!==0&&(g=ey(y,t,l,i,n,g)),i=0):i&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&d8(y,t,d,h,m),y.consume(t.events),n=-1;++n<t.events.length;){const b=t.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=mve(t.events,n))}return e}function ey(e,t,n,r,i,s){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(s.end=Object.assign({},Id(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const d=Id(t.events,n[1]);if(s={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const h=Id(t.events,n[2]),m=Id(t.events,n[3]),g={type:u,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",g,t]]),r!==2){const y=t.events[n[2]],b=t.events[n[3]];if(y[1].end=Object.assign({},b[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const S=n[2]+1,I=n[3]-n[2]-1;e.add(S,I,[])}}e.add(n[3]+1,0,[["exit",g,t]])}return i!==void 0&&(s.end=Object.assign({},Id(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function d8(e,t,n,r,i){const s=[],l=Id(t.events,n);i&&(i.end=Object.assign({},l),s.push(["exit",i,t])),r.end=Object.assign({},l),s.push(["exit",r,t]),e.add(n+1,0,s)}function Id(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const bve={name:"tasklistCheck",tokenize:Sve};function xve(){return{text:{91:bve}}}function Sve(e,t,n){const r=this;return i;function i(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return pn(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(d)}function u(d){return Qe(d)?t(d):bt(d)?e.check({tokenize:wve},t,n)(d):n(d)}}function wve(e,t,n){return Vt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Cve(e){return yF([K1e(),ive(),fve(e),gve(),xve()])}const Ive={};function kve(e){const t=this,n=e||Ive,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Cve(n)),s.push(V1e()),l.push(q1e(n))}const ty=new Map;class Eve{static async fetchLinkPreview(t,n){if(ty.has(t))return ty.get(t);try{const r=be.getState().userId;if(!r)throw new Error("User not authenticated");const s={"Content-Type":"application/json",Authorization:`Bearer ${await Ht()}`,"user-uuid":r,...Sn()},u=(await Tn.post("https://api.tonita.co/link-preview",{url:t},{headers:s,signal:n})).data,d={title:u.title||null,description:u.description||null,image:u.image||null,siteName:u.siteName||null,hostname:u.hostname||null,favicon:u.favicon||null};return ty.set(t,d),d}catch(r){if(n?.aborted||r instanceof Error&&r.name==="AbortError"||r?.code==="ERR_CANCELED")throw r;pt({error:r,source:"LinkPreviewService.fetchLinkPreview"},{showToast:!1});const s={title:null,description:null,image:null,siteName:null,hostname:null,favicon:null};return ty.set(t,s),s}}}const Tve=e=>({container:{display:"flex",flexDirection:"column",borderWidth:"1px",borderStyle:"solid",borderColor:e.border,borderRadius:"var(--radius-medium, 0.5rem)",overflow:"hidden",cursor:"pointer",textDecoration:"none",color:"inherit",transition:"border-color 0.2s ease",backgroundColor:e.background,padding:"var(--spacing-x-small, 0.5rem)",gap:"var(--spacing-x-small, 0.5rem)"},containerHover:{borderColor:e.borderSecondary},image:{width:"100%",objectFit:"contain",display:"block",backgroundColor:e.backgroundSecondary,borderRadius:"var(--radius-small, 0.25rem)"},content:{display:"flex",flexDirection:"column",gap:"var(--spacing-4x-small, 0.125rem)",alignItems:"flex-start",alignSelf:"stretch"},hostnameRow:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.375rem)"},favicon:{width:"16px",height:"16px",borderRadius:"2px",objectFit:"contain",flexShrink:0},hostname:{color:e.textTertiary,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem"},fallbackContainer:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)"}
1387,linkIcon:{width:"1rem",height:"1rem",color:e.textSecondary},fallbackText:{fontSize:"var(--size-x-small, 0.875rem)",color:e.textSecondary,fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',wordBreak:"break-all"},title:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",textOverflow:"ellipsis",alignSelf:"stretch",color:e.text,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.9375rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-medium, 1.375rem)",letterSpacing:"-0.00938rem"},description:{fontSize:"var(--size-x-small, 0.875rem)",color:e.textSecondary,fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',lineHeight:"var(--line-height-small, 1.25rem)",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},skeletonImage:{width:"100%",aspectRatio:"16 / 9",backgroundColor:e.backgroundSecondary,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-small, 0.25rem)"},skeletonContent:{display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)"},skeletonLine:{height:"1rem",backgroundColor:e.backgroundSecondary,borderRadius:"var(--radius-small, 0.25rem)"},spinner:{width:"24px",height:"24px",borderWidth:"3px",borderStyle:"solid",borderColor:e.border,borderTopColor:e.textSecondary,borderRadius:"50%",animation:"spin 0.8s linear infinite"}}),Ave=({url:e})=>{const{colors:t}=ze(),n=Tve(t),[r,i]=k.useState(null),[s,l]=k.useState(!1),[u,d]=k.useState(!1);k.useEffect(()=>{const y=new AbortController;return(async()=>{try{const S=await Eve.fetchLinkPreview(e,y.signal);S&&(S.title||S.description)&&i(S),l(!0)}catch(S){if(y.signal.aborted||S instanceof Error&&S.name==="AbortError"||S?.code==="ERR_CANCELED")return;console.error("Error loading preview:",S),l(!0)}})(),()=>{y.abort()}},[e]);const h=()=>{nf(e)};if(s&&r&&(r.title||r.description))return c.jsxs("div",{style:{...n.container,...u?n.containerHover:{}},onClick:h,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[r.image?c.jsx("img",{src:r.image,alt:r.title||"Link preview",style:n.image,onError:y=>{y.currentTarget.style.visibility="hidden"}}):c.jsx("div",{style:n.skeletonImage}),c.jsxs("div",{style:n.content,children:[r.hostname&&c.jsxs("div",{style:n.hostnameRow,children:[r.favicon&&c.jsx("img",{src:r.favicon,alt:"",style:n.favicon,onError:y=>{y.currentTarget.style.display="none"}}),c.jsx("div",{style:n.hostname,children:r.hostname})]}),r.title&&c.jsx("div",{style:n.title,children:r.title}),r.description&&c.jsx("div",{style:n.description,children:r.description})]})]});const m=r?.hostname||e,g=!s;return c.jsx("div",{style:{...n.container,...u?n.containerHover:{}},onClick:h,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:g?c.jsxs(c.Fragment,{children:[c.jsx("div",{style:n.skeletonImage,children:c.jsx("div",{style:n.spinner})}),c.jsxs("div",{style:n.skeletonContent,children:[c.jsx("div",{style:{...n.skeletonLine,width:"60%"}}),c.jsx("div",{style:{...n.skeletonLine,width:"90%"}})]}),c.jsx("style",{children:` 1388 @keyframes spin { 1389 from { 1390 transform: rotate(0deg); 1391 } 1392 to { 1393 transform: rotate(360deg); 1394 } 1395 } 1396 `})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{style:n.skeletonImage}),c.jsx("div",{style:n.content,children:c.jsxs("div",{style:n.fallbackContainer,children:[c.jsxs("svg",{style:n.linkIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),c.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}),c.jsx("div",{style:n.fallbackText,children:m})]})})]})})},_ve=e=>{if(typeof e!="string")return"";try{const t=/(\]\()?https?:\/\/[^\s<>)\]]+/g;return e.replace(t,(n,r)=>{if(r)return n;try{return` 1397[webpage from ${new URL(n).hostname.replace(/^www\./,"")}](${n}) 1398`}catch{return` 1399[${n}](${n}) 1400`}})}catch(t){return pv(t,{tags:{component:"urlUtils",function:"convertUrlsToLinks"},extra:{textLength:e?.length}}),e}},Rve=e=>{const t=/(https?:\/\/[^\s]+)/g;return e.match(t)||[]},f8=e=>{try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}},jve=` 1401 .markdown p { 1402 margin: 0 0 var(--spacing-x-small, 0.5rem) 0; 1403 } 1404 .markdown p:last-child { 1405 margin-bottom: 0; 1406 } 1407 .markdown strong { 1408 font-weight: 600; 1409 } 1410 .markdown em { 1411 font-style: italic; 1412 } 1413 .markdown code { 1414 background-color: var(--surface-secondary-default, #F2F2F3); 1415 padding: var(--spacing-4x-small, 0.125rem) var(--spacing-3x-small, 0.25rem); 1416 border-radius: var(--radius-small, 0.25rem); 1417 font-family: monospace; 1418 font-size: 0.875em; 1419 } 1420 .markdown pre { 1421 background-color: var(--surface-secondary-default, #F2F2F3); 1422 padding: var(--spacing-small, 0.75rem); 1423 border-radius: var(--radius-medium, 0.5rem); 1424 overflow: auto; 1425 margin: var(--spacing-x-small, 0.5rem) 0; 1426 } 1427 .markdown pre code { 1428 background-color: transparent; 1429 padding: 0; 1430 } 1431 .markdown ul, .markdown ol { 1432 margin: var(--spacing-x-small, 0.5rem) 0; 1433 padding-left: var(--spacing-medium, 1rem); 1434 } 1435 .markdown li { 1436 margin: var(--spacing-3x-small, 0.25rem) 0; 1437 } 1438 .markdown img { 1439 max-width: 100%; 1440 height: auto; 1441 border-radius: var(--radius-medium, 0.5rem); 1442 display: block; 1443 margin: var(--spacing-x-small, 0.5rem) 0; 1444 } 1445 .markdown li img { 1446 max-width: 100%; 1447 max-height: 300px; 1448 width: auto; 1449 height: auto; 1450 object-fit: contain; 1451 margin: var(--spacing-3x-small, 0.25rem) 0; 1452 } 1453 .markdown h1, .markdown h2, .markdown h3 { 1454 margin: var(--spacing-small, 0.75rem) 0 var(--spacing-x-small, 0.5rem) 0; 1455 font-weight: 600; 1456 } 1457 .markdown h1:first-child, .markdown h2:first-child, .markdown h3:first-child { 1458 margin-top: 0; 1459 } 1460 .markdown .table-container { 1461 overflow-x: auto; 1462 margin: var(--spacing-small, 0.75rem) 0; 1463 border-radius: var(--radius-medium, 0.5rem); 1464 border: 1px solid var(--border-default-primary, #DDDDDF); 1465 } 1466 .markdown table { 1467 border-collapse: collapse; 1468 width: 100%; 1469 min-width: max-content; 1470 margin: 0; 1471 border: none; 1472 border-radius: 0; 1473 overflow: hidden; 1474 } 1475 .markdown th, .markdown td { 1476 padding: var(--spacing-x-small, 0.5rem) var(--spacing-small, 0.75rem); 1477 text-align: left; 1478 border-bottom: 1px solid var(--border-default-primary, #DDDDDF); 1479 } 1480 .markdown th { 1481 background-color: var(--surface-secondary-default, #F2F2F3); 1482 font-weight: 600; 1483 color: var(--text-default-primary, #0E0E11); 1484 } 1485 .markdown tbody tr:hover { 1486 background-color: var(--surface-primary-hover, #F9F9F9); 1487 } 1488 .markdown tbody tr:last-child td { 1489 border-bottom: none; 1490 } 1491 .markdown a { 1492 color: var(--text-link, #0066CC); 1493 text-decoration: underline; 1494 word-break: break-all; 1495 overflow-wrap: break-word; 1496 } 1497 .markdown a:hover { 1498 color: var(--text-link-hover, #0052A3); 1499 } 1500 `,Ove=(e,t)=>
1500({a:({href:n,children:r,...i})=>t?c.jsx(c.Fragment,{children:r}):c.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:s=>{xt()&&n&&(s.preventDefault(),nf(n))},...i,children:r}),table:({children:n,...r})=>c.jsx("div",{className:"table-container",children:c.jsx("table",{...r,children:n})}),p:({children:n,...r})=>{if(e&&n){const i=G.Children.toArray(n),s=[];i.forEach(u=>{if(G.isValidElement(u)&&typeof u.props=="object"&&u.props!==null&&"href"in u.props){const h=u.props.href;h&&f8(h)&&s.push(h)}typeof u=="string"&&Rve(u).forEach(h=>{f8(h)&&s.push(h)})});const l=Array.from(new Set(s));if(l.length>0)return c.jsxs(c.Fragment,{children:[l.map((u,d)=>c.jsx("div",{style:{marginTop:"var(--spacing-x-small, 0.5rem)",marginBottom:"var(--spacing-x-small, 0.5rem)"},children:c.jsx(Ave,{url:u})},`${u}-${d}`)),c.jsx("p",{...r,children:n})]})}return c.jsx("p",{...r,children:n})}}),Ak=({content:e,enableGfm:t=!1,enableLinkPreviews:n=!0,stripLinks:r=!1})=>{const i=G.useMemo(()=>Ove(n,r),[n,r]),s=G.useMemo(()=>_ve(e),[e]);return c.jsxs(c.Fragment,{children:[c.jsx("style",{children:jve}),c.jsx("div",{className:"markdown",children:c.jsx(lye,{remarkPlugins:t?[kve]:[],components:i,children:s})})]})},Lve=e=>({message:{alignSelf:"stretch",width:"100%",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:e.background,color:e.text,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)"},text:{alignSelf:"stretch",color:e.text,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"},getMessageStyle:()=>({alignSelf:"stretch",width:"100%",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:e.background,color:e.text,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)"})}),h8=({textMessage:e})=>{const{colors:t}=ze(),n=Lve(t);return c.jsx("div",{"data-message-id":e.messageId,"data-message-type":"text","data-role":"assistant",style:n.getMessageStyle(),children:c.jsx("div",{style:n.text,children:c.jsx(Ak,{content:e.text,enableGfm:!0})})})},Dve=e=>({container:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-x-small, 0.5rem)",borderRadius:"1rem",padding:0,backgroundColor:"var(--card-bg)",transition:"background-color 0.3s ease"},createImageContainer:()=>({position:"relative",width:"100%",minHeight:e?"150px":"220px",overflow:"hidden",borderRadius:"var(--radius-large, 0.75rem)",background:` 1501 linear-gradient(90deg, 1502 transparent 0%, 1503 transparent 20%, 1504 var(--loading-shimmer) 40%, 1505 var(--loading-shimmer) 50%, 1506 var(--loading-shimmer) 60%, 1507 transparent 80%, 1508 transparent 100% 1509 ), 1510 var(--loading-bg) 1511 `,backgroundSize:"300% 100%",animation:"shimmerStripes 3s linear infinite"}),imageContainerPreview:{aspectRatio:"1 / 1",minHeight:"auto"},imageContainerNormal:{aspectRatio:"4 / 3"},topIcons:{position:"absolute",top:"var(--spacing-3x-small, 0.25rem)",left:"var(--spacing-3x-small, 0.25rem)",right:"var(--spacing-3x-small, 0.25rem)",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",zIndex:2},createSelectionToggle:()=>({width:"1.5rem",height:"1.5rem",borderRadius:"50%",background:"var(--card-bg-elevated)"}),actionButtons:{display:"flex",flexDirection:"row",gap:"var(--spacing-3x-small, 0.25rem)"},createActionButton:()=>({width:"2rem",height:"2rem",borderRadius:"50%",background:"var(--card-bg-elevated)"}),content:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",padding:"0.5rem 0.5rem 0.75rem 0.5rem"},productInfo:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-4x-small, 0.125rem)",alignSelf:"stretch"},sellerRatingRow:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},createSkeletonLine:()=>({borderRadius:"0.25rem",background:` 1512 linear-gradient(90deg, 1513 transparent 0%, 1514 transparent 20%, 1515 var(--loading-shimmer) 40%, 1516 var(--loading-shimmer) 50%, 1517 var(--loading-shimmer) 60%, 1518 transparent 80%, 1519 transparent 100% 1520 ), 1521 var(--loading-bg) 1522 `,backgroundSize:"300% 100%",animation:"shimmerStripes 3s linear infinite"}),sellerName:{height:"1rem",width:"60%"},rating:{height:"1rem",width:"2.5rem"},productName:{height:"1.25rem",width:"80%"},productNamePreview:{height:"1rem",width:"75%"},productNameSecondLine:{height:"1.25rem",width:"60%",marginTop:"0.125rem"},priceSection:{display:"flex",flexDirection:"row",height:"1.375rem",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",alignSelf:"stretch"},currentPrice:{height:"1.375rem",width:"3rem"}
1522,originalPrice:{height:"1.375rem",width:"2.5rem"}}),su=({previewMode:e=!1,enableSelection:t=!1,style:n,className:r})=>{const{isMobile:i}=We(),s=Dve(i),l={...s.container,...n},u={...s.createImageContainer(),...e?s.imageContainerPreview:s.imageContainerNormal};return c.jsxs(c.Fragment,{children:[c.jsx("style",{children:` 1523 @keyframes shimmerStripes { 1524 0% { 1525 background-position: 300% 0; 1526 } 1527 100% { 1528 background-position: -300% 0; 1529 } 1530 } 1531 `}),c.jsxs("div",{style:l,className:r,children:[c.jsx("div",{style:u,children:c.jsxs("div",{style:s.topIcons,children:[t&&c.jsx("div",{style:{...s.createSkeletonLine(),...s.createSelectionToggle()}}),!t&&c.jsxs("div",{style:s.actionButtons,children:[c.jsx("div",{style:{...s.createSkeletonLine(),...s.createActionButton()}}),c.jsx("div",{style:{...s.createSkeletonLine(),...s.createActionButton()}})]})]})}),c.jsxs("div",{style:s.content,children:[c.jsxs("div",{style:s.productInfo,children:[!e&&c.jsxs("div",{style:s.sellerRatingRow,children:[c.jsx("div",{style:{...s.createSkeletonLine(),...s.sellerName}}),c.jsx("div",{style:{...s.createSkeletonLine(),...s.rating}})]}),c.jsx("div",{style:{...s.createSkeletonLine(),...e?s.productNamePreview:s.productName}}),!e&&c.jsx("div",{style:{...s.createSkeletonLine(),...s.productNameSecondLine}})]}),c.jsxs("div",{style:s.priceSection,children:[c.jsx("div",{style:{...s.createSkeletonLine(),...s.currentPrice}}),c.jsx("div",{style:{...s.createSkeletonLine(),...s.originalPrice}})]})]})]})]})},_k=({iconFilter:e,size:t})=>{const{colors:n}=ze(),{isMobile:r}=We(),i=e??n.iconFilter;return c.jsx("img",{src:cP,alt:"More options",style:Dt(i,t??(r?"1rem":void 0))})},Mve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10%201.00098C14.9705%201.00098%2018.9999%205.03053%2019%2010.001C19%2014.9715%2014.9706%2019.001%2010%2019.001C5.02944%2019.001%201%2014.9715%201%2010.001C1.00013%205.03053%205.02952%201.00098%2010%201.00098ZM10%202.50098C5.85795%202.50098%202.50013%205.85895%202.5%2010.001C2.5%2014.1431%205.85786%2017.501%2010%2017.501C14.1421%2017.501%2017.5%2014.1431%2017.5%2010.001C17.4999%205.85895%2014.1421%202.50098%2010%202.50098ZM10%209.00195C10.4142%209.00195%2010.75%209.33774%2010.75%209.75195V13.2764C10.7499%2013.6905%2010.4141%2014.0264%2010%2014.0264C9.58587%2014.0264%209.25013%2013.6905%209.25%2013.2764V9.75195C9.25%209.33774%209.58579%209.00195%2010%209.00195ZM10%205.96582C10.5523%205.96582%2011%206.41354%2011%206.96582C11%207.51811%2010.5523%207.96582%2010%207.96582C9.44771%207.96582%209%207.51811%209%206.96582C9%206.41354%209.44771%205.96582%2010%205.96582Z'%20fill='%2327272F'/%3e%3c/svg%3e",sw={button:{display:"flex",flex:1,flexDirection:"row",height:"3rem",padding:"0.75rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",cursor:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",border:"none",outline:"none"},buttonPressed:{transform:"scale(0.98)"},createTextStyle:e=>({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,flex:"1 0 0",overflow:"hidden",color:e,textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",textAlign:"left"})},sB=({parsedListingData:e,onClose:t})=>{const n=Xt(b=>b.openListingDetails),r=bn(b=>b.addInteraction),{trackListingClick:i}=Nt(),[s,l]=G.useState(!1),u=b=>{b.stopPropagation(),b.preventDefault(),t&&t(),e&&(r(e,"view_details"),i(e.listingId,e.sourceMessageId),n(e))},[d,h]=G.useState(!1),m=()=>{h(!0)},g=()=>{h(!1),l(!1)},y=()=>{const b={...sw.button};return s?{...b,...sw.buttonPressed,background:"transparent",backgroundColor:"var(--dropdown-button-active)"}:d?{...b,background:"transparent",backgroundColor:"var(--dropdown-button-hover)"}:{...b,background:"transparent",backgroundColor:"transparent"}};return c.jsxs("button",{style:y(),onClick:u,onMouseEnter:m,onMouseLeave:g,onMouseDown:()=>l(!0),onMouseUp:()=>l(!1),onTouchStart:()=>l(!0),onTouchEnd:()=>l(!1),onTouchCancel:()=>l(!1),children:[c.jsx("img",{src:Mve,alt:"View Details",style:Dt("var(--icon-filter)")}),c.jsx("span",{style:sw.createTextStyle("var(--text-default-primary)"),children:"View details"})]})},Pve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M8%201C11.866%201%2015%204.13401%2015%208C15%209.66278%2014.4186%2011.1888%2013.4502%2
1531012.3896L17.7793%2016.7188L17.8311%2016.7754C18.0712%2017.07%2018.0538%2017.5048%2017.7793%2017.7793C17.5048%2018.0538%2017.07%2018.0712%2016.7754%2017.8311L16.7188%2017.7793L12.3896%2013.4502C11.1888%2014.4186%209.66278%2015%208%2015C4.13401%2015%201%2011.866%201%208C1%204.13401%204.13401%201%208%201ZM8%202.5C4.96243%202.5%202.5%204.96243%202.5%208C2.5%2011.0376%204.96243%2013.5%208%2013.5C11.0376%2013.5%2013.5%2011.0376%2013.5%208C13.5%204.96243%2011.0376%202.5%208%202.5Z'%20fill='%2327272F'/%3e%3c/svg%3e",ny={button:{display:"flex",flex:1,flexDirection:"row",height:"3rem",padding:"0.75rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",cursor:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",border:"none",outline:"none"},buttonPressed:{transform:"scale(0.98)"},buttonDisabled:{opacity:.5,cursor:"not-allowed"},createTextStyle:e=>({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,flex:"1 0 0",overflow:"hidden",color:e,textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",textAlign:"left"})},oB=({parsedListingData:e,onClose:t})=>{const{isMobile:n}=We(),r=Ji(L=>L.sendUserMessage),i=Fe(L=>L.closeCarousel),s=Fe(L=>L.currentComponentId),l=U(L=>L.assistantInProgress),u=bn(L=>L.addInteraction),h=Pt().pathname==="/recent",m=s?.includes("recently-interacted-carousel")||!1,g=h||m,[y,b]=G.useState(!1),{trackSimilarListings:S}=Nt(),I=async L=>{if(!(l||g)){L.stopPropagation(),L.preventDefault(),u(e,"show_similar"),S(e.listingId,e.sourceMessageId),t&&t(),n&&i();try{await r?.("More like this",[e])}catch{}}},[w,C]=G.useState(!1),E=()=>{!l&&!g&&C(!0)},A=()=>{C(!1),b(!1)},_=()=>{const L={...ny.button};return l||g?{...L,...ny.buttonDisabled}:y?{...L,...ny.buttonPressed,background:"transparent",backgroundColor:"var(--dropdown-button-active)"}:w?{...L,background:"transparent",backgroundColor:"var(--dropdown-button-hover)"}:{...L,background:"transparent",backgroundColor:"transparent"}},R=l||g;return c.jsxs("button",{style:_(),onClick:I,disabled:R,onMouseEnter:E,onMouseLeave:A,onMouseDown:()=>!R&&b(!0),onMouseUp:()=>b(!1),onTouchStart:()=>!R&&b(!0),onTouchEnd:()=>b(!1),onTouchCancel:()=>b(!1),children:[c.jsx("img",{src:Pve,alt:"Show Similar",style:Dt("var(--icon-filter)")}),c.jsx("span",{style:ny.createTextStyle("var(--text-default-primary)"),children:"Show similar"})]})},ow={buttonPressed:{transform:"scale(0.95)"},iconContainer:{position:"relative",width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center"},icon:{width:"16px",height:"16px",transition:"filter 0.3s ease"}},ry={button:{display:"flex",flex:1,flexDirection:"row",height:"3rem",padding:"0.75rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",cursor:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",border:"none",outline:"none"},buttonPressed:{transform:"scale(0.98)"},buttonDisabled:{opacity:.5,cursor:"not-allowed"},text:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,flex:"1 0 0",overflow:"hidden",color:"var(--text-default-primary)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",textAlign:"left"}},Gv=({url:e,title:t,text:n,variant:r="icon",onShare:i,onClose:s,iconFilter:l,ariaLabel:u="Share"})=>{const{colors:d}=ze(),[h,m]=k.useState(!1),[g,y]=k.useState(!1),b=!e,S=async E=>{E.stopPropagation(),E.preventDefault(),!b&&(i&&i(),s&&s(),await Om({url:e}))};if(r==="menu-row"){const E=()=>{const A={...ry.button};return b?{...A,...ry.buttonDisabled}:h?{...A,...ry.buttonPressed,background:"transparent",backgroundColor:"var(--dropdown-button-active)"}:g?{...A,background:"transparent",backgroundColor:"var(--dropdown-button-hover)"}:{...A,background:"transparent",backgroundColor:"transparent"}};return c.jsxs("button",{type:"button",style:E(),onClick:S,disabled:b,"aria-label":u,"data-testid":"share-button",onMouseEnter:()=>!b&&y(!0),onMouseLeave:()=>{y(!1),m(!1)},onMouseDown:()=>!b&&m(!0),onMouseUp:()=>m(!1),onTouchStart:()=>!b&&m(!0),onTouchEnd:()=>m(!1),onTouchCancel:()=>m(!1),children:[c.jsx("img",{src:sf,alt:"",style:Dt("var(--icon-filter)")}),c.jsx("span",{style:ry.text,children:"Share"})]})}const I=l??d.listingCardMoreOptionsIconFilter,w={backgroundColor:d.favoritesButtonBackgroun
1531d,border:"none",borderRadius:"1.6875rem",width:"32px",height:"32px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",backdropFilter:"blur(5px)",...h?ow.buttonPressed:{}},C={...ow.icon,filter:I};return c.jsx("button",{type:"button",style:w,onClick:S,"aria-label":u,"data-testid":"share-button",disabled:b,children:c.jsx("div",{style:ow.iconContainer,children:c.jsx("img",{src:sf,alt:"",style:C})})})},p8="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M11%203C10.4477%203%2010%203.44772%2010%204C10%204.55228%2010.4477%205%2011%205H13.5858L9.29289%209.29289C8.90237%209.68342%208.90237%2010.3166%209.29289%2010.7071C9.68342%2011.0976%2010.3166%2011.0976%2010.7071%2010.7071L15%206.41421V9C15%209.55228%2015.4477%2010%2016%2010C16.5523%2010%2017%209.55228%2017%209V4C17%203.44772%2016.5523%203%2016%203H11ZM5%205C3.89543%205%203%205.89543%203%207V15C3%2016.1046%203.89543%2017%205%2017H13C14.1046%2017%2015%2016.1046%2015%2015V13C15%2012.4477%2014.5523%2012%2014%2012C13.4477%2012%2013%2012.4477%2013%2013V15H5V7H7C7.55228%207%208%206.55228%208%206C8%205.44772%207.55228%205%207%205H5Z'%20fill='%2327272F'/%3e%3c/svg%3e",Hh={button:{display:"flex",flex:1,flexDirection:"row",height:"3rem",padding:"0.75rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",cursor:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",border:"none",outline:"none"},buttonPressed:{transform:"scale(0.98)"},buttonDisabled:{opacity:.5,cursor:"not-allowed"},text:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,flex:"1 0 0",overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",textAlign:"left"}},Vm=({listings:e,tagManagerPage:t="listingCard",customStyle:n,onClose:r})=>{const{colors:i}=ze();bn(A=>A.addInteraction);const[s,l]=G.useState(!1),[u,d]=G.useState(!1),{trackVisitSite:h}=Nt(),m=e.length===0,g=A=>{m||(A.stopPropagation(),e.forEach(_=>{_.url&&(h(_.listingId,t,_.sourceMessageId),nf(_.url))}),r&&r())},y=A=>{if(m){A.preventDefault();return}A.stopPropagation();const _=e[0];_?.url&&(h(_.listingId,t,_.sourceMessageId),xt()&&(A.preventDefault(),nf(_.url))),r&&r()},b=()=>{m||d(!0)},S=()=>{d(!1),l(!1)},I=()=>{const A={...Hh.button,...n?.button};if(m)return{...A,...Hh.buttonDisabled};if(n?.button?.background){if(s)return{...A,...Hh.buttonPressed}}else return s?{...A,...Hh.buttonPressed,background:"transparent",backgroundColor:i.buttonActive}:u?{...A,background:"transparent",backgroundColor:i.buttonHover}:{...A,background:"transparent",backgroundColor:"transparent"};return A},w=()=>e.length>1?`Visit site (${e.length})`:"Visit site",C=()=>n?.button?.background?{width:"1.25rem",height:"1.25rem",filter:"none",transition:"filter 0.3s ease",...n?.icon}:{width:"1.25rem",height:"1.25rem",filter:i.iconFilter,transition:"filter 0.3s ease",...n?.icon},E=()=>{const A={...Hh.text};return n?.button?.background?{...A,...n?.text}:{...A,color:i.text,transition:"color 0.3s ease",...n?.text}};return e.length===1&&e[0]?.url?c.jsxs("a",{href:e[0].url,target:"_blank",rel:"noopener noreferrer",style:{...I(),textDecoration:"none"},onClick:y,onMouseEnter:b,onMouseLeave:S,onMouseDown:()=>!m&&l(!0),onMouseUp:()=>l(!1),onTouchStart:()=>!m&&l(!0),onTouchEnd:()=>l(!1),onTouchCancel:()=>l(!1),children:[c.jsx("img",{src:p8,alt:"Visit Site",style:C()}),c.jsx("span",{style:E(),children:w()})]}):c.jsxs("button",{style:I(),onClick:g,disabled:m,onMouseEnter:b,onMouseLeave:S,onMouseDown:()=>!m&&l(!0),onMouseUp:()=>l(!1),onTouchStart:()=>!m&&l(!0),onTouchEnd:()=>l(!1),onTouchCancel:()=>l(!1),children:[c.jsx("img",{src:p8,alt:"Visit Site",style:C()}),c.jsx("span",{style:E(),children:w()})]})},Fve="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%204C10.8284%204%2011.5%203.32843%2011.5%202.5C11.5%201.67157%2010.8284%201%2010%201C9.17157%201%208.5%201.67157%208.5%202.5C8.5%203.32843%209.17157%204%2010%204Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%206H6C5.44772%206%205%206.44772%205%207V8.5C5%209.05228%205.44772%209.5%206%209.5H6.5V17C6.5%2017.5523%206.94772%2018%207.5%2018H8.5C9.05228%2018%209.5%2017.5523%209.5%2017V13.5H10.5V17C10.5%2017.5523%2010.9477%2018%2011.5%2018H12.5C13.0523%2018%2013.5%2017.5523%2013.5%2017V9.5H14C14.5523%209.5%2015%209.05228%2015%208.5V7C15%206.44772%2014.5523%206%2014%206Z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function lB(e){const{trackVirtualTryOnClick:t}=Nt(),n=or(i=>i.openVTOModal),r=bn(i=>i.addInteraction);return k.useCallback(i=>{r(i,"virtual_try_on"),t(i.listingId,e,i.sourceMessageId),n(i)},[r,n,e,t])}const lw={button:{display:"flex",flex:1,flexDirection:"row",height:"3rem",padding:"0.75rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",curs
1531or:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",border:"none",outline:"none"},buttonPressed:{transform:"scale(0.98)"},createTextStyle:e=>({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,flex:"1 0 0",overflow:"hidden",color:e,textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",textAlign:"left"})},cB=({parsedListingData:e,onClose:t,page:n="listingCard"})=>{const r=lB(n),[i,s]=k.useState(!1),l=y=>{y.stopPropagation(),r(e),t&&t()},[u,d]=G.useState(!1),h=()=>{d(!0)},m=()=>{d(!1),s(!1)},g=()=>{const y={...lw.button};return i?{...y,...lw.buttonPressed,background:"transparent",backgroundColor:"var(--dropdown-button-active)"}:u?{...y,background:"transparent",backgroundColor:"var(--dropdown-button-hover)"}:{...y,background:"transparent",backgroundColor:"transparent"}};return c.jsx(c.Fragment,{children:c.jsxs("button",{style:g(),onClick:l,onMouseEnter:h,onMouseLeave:m,onMouseDown:()=>s(!0),onMouseUp:()=>s(!1),onTouchStart:()=>s(!0),onTouchEnd:()=>s(!1),onTouchCancel:()=>s(!1),children:[c.jsx("img",{src:Fve,alt:"Virtual Try-On",style:Dt("var(--icon-filter)")}),c.jsx("span",{style:lw.createTextStyle("var(--text-default-primary)"),children:"Virtual Try-On"})]})})},cw={button:{display:"flex",flex:1,flexDirection:"row",height:"3rem",padding:"0.75rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",cursor:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",border:"none",outline:"none"},buttonPressed:{transform:"scale(0.98)"},text:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,flex:"1 0 0",overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",textAlign:"left"}},uB=({parsedListingData:e,onClose:t})=>{const{colors:n}=ze(),r=bn(b=>b.removeFromRecentlyInteracted),i=Qr(b=>b.deselectCard),[s,l]=k.useState(!1),u=b=>{b.stopPropagation(),b.preventDefault(),r(e.listingId),i(e.listingId),t&&t()},[d,h]=k.useState(!1),m=()=>{h(!0)},g=()=>{h(!1),l(!1)},y=()=>{const b={...cw.button};return s?{...b,...cw.buttonPressed,background:"transparent",backgroundColor:n.buttonActive}:d?{...b,background:"transparent",backgroundColor:n.buttonHover}:{...b,background:"transparent",backgroundColor:"transparent"}};return c.jsxs("button",{style:y(),onClick:u,onMouseEnter:m,onMouseLeave:g,onMouseDown:()=>l(!0),onMouseUp:()=>l(!1),onTouchStart:()=>l(!0),onTouchEnd:()=>l(!1),onTouchCancel:()=>l(!1),children:[c.jsx("img",{src:Lm,alt:"Remove",style:Dt(n.iconFilter)}),c.jsx("span",{style:cw.text,children:"Remove"})]})};function Yv(e){return`https://tonita.co/p/${e}`}const dB="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M8%201L10.09%205.26L15%206L11%209.74L11.91%2014.74L8%2012.77L4.09%2014.74L5%209.74L1%206L5.91%205.26L8%201Z'%20fill='%23FFC107'/%3e%3c/svg%3e",gs={container:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)"}
1531,starIcon:{width:"1rem",height:"1rem"},starIconSmall:{width:"0.875rem",height:"0.875rem"},starIconLarge:{width:"1.25rem",height:"1.25rem"},ratingText:{fontSize:"var(--size-x-small, 0.875rem)",fontWeight:"500",color:"var(--text-default-primary, #0E0E11)"},ratingTextSmall:{fontSize:"var(--size-2x-small, 0.75rem)",fontWeight:"500",color:"var(--text-default-primary, #0E0E11)"},ratingTextLarge:{fontSize:"var(--size-small, 1rem)",fontWeight:"500",color:"var(--text-default-primary, #0E0E11)"},reviewCount:{fontSize:"var(--size-2x-small, 0.75rem)",color:"var(--text-default-tertiary, #666666)"},reviewCountSmall:{fontSize:"var(--size-3x-small, 0.625rem)",color:"var(--text-default-tertiary, #666666)"},reviewCountLarge:{fontSize:"var(--size-x-small, 0.875rem)",color:"var(--text-default-tertiary, #666666)"}},Yy=({rating:e,reviewCount:t,showReviewCount:n=!1,starIconSize:r="medium",customStyles:i={}})=>{const s=()=>({...(()=>{switch(r){case"small":return gs.starIconSmall;case"large":return gs.starIconLarge;default:return gs.starIcon}})(),...i.starIcon}),l=()=>({...(()=>{switch(r){case"small":return gs.ratingTextSmall;case"large":return gs.ratingTextLarge;default:return gs.ratingText}})(),...i.ratingText}),u=()=>({...(()=>{switch(r){case"small":return gs.reviewCountSmall;case"large":return gs.reviewCountLarge;default:return gs.reviewCount}})(),...i.reviewCount});return c.jsxs("div",{style:{...gs.container,...i.container},children:[c.jsx("img",{src:dB,alt:"Star rating",style:s()}),c.jsx("span",{style:l(),children:e.toFixed(1)}),n&&t&&c.jsxs("span",{style:u(),children:["(",t,")"]})]})},_a="/assets/productPlaceholder-BLpbrsLM.svg",Bve=(e,t=!0)=>{const[n,r]=k.useState(!!e&&t),[i,s]=k.useState(!1),[l,u]=k.useState(!1);return k.useEffect(()=>{if(s(!1),u(!1),!e||!t){r(!1);return}r(!0);const d=new Image,h=()=>{r(!1),u(!0),s(!1)},m=()=>{r(!1),s(!0),u(!1)};return d.addEventListener("load",h),d.addEventListener("error",m),d.src=e,()=>{d.removeEventListener("load",h),d.removeEventListener("error",m)}},[e,t]),{isLoading:n,hasError:i,hasLoaded:l}},Nve=e=>({container:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",width:"100%",height:"100%"},image:{width:"100%",height:"100%",objectFit:"contain",transition:"opacity 0.3s ease"},imageHidden:{opacity:0},imageVisible:{opacity:1},createLoadingContainer:()=>({position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",background:e.imagePreloaderLoadingGradient,backgroundSize:"300% 100%",animation:"shimmerStripes 3s linear infinite",zIndex:1}),createErrorContainer:()=>({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:e.imagePreloaderErrorBackground,zIndex:1,transition:"background-color 0.3s ease"}),createErrorText:()=>({marginTop:"0.5rem",fontSize:"0.75rem",color:e.imagePreloaderErrorText,textAlign:"center",transition:"color 0.3s ease"})}),qp=({src:e,alt:t,style:n,fallbackSrc:r=_a,onLoad:i,onError:s,className:l,loading:u="lazy",preload:d=!0,groupId:h,showLoadingOnlyForVariant:m=!1})=>{const{colors:g}=ze(),y=Nve(g),b=Xi(L=>{if(!h)return!1;const j=L.groups.get(h);return j?L.isLoading(j.selectedListingId):!1}),{isLoading:S,hasError:I,hasLoaded:w}=Bve(e,d),C=m?b:b||S,E=()=>{i?.()},A=L=>{L.currentTarget.src=r,s?.()},_={...y.container,...n},R=w&&!C?y.imageVisible:y.imageHidden;return c.jsxs(c.Fragment,{children:[c.jsx("style",{children:` 1532 @keyframes shimmerStripes { 1533 0% { 1534 background-position: 300% 0; 1535 } 1536 100% { 1537 background-position: -300% 0; 1538 } 1539 } 1540 `}),c.jsxs("div",{style:_,className:l,children:[e&&!I&&c.jsx("img",{src:e,alt:t,loading:u,style:{...y.image,...R},onLoad:E,onError:A}),I&&c.jsx("img",{src:r,alt:t,loading:u,style:{...y.image,...y.imageVisible},onLoad:E}),C&&!I&&c.jsx("div",{style:y.createLoadingContainer()}),!e&&!C&&c.jsxs("div",{style:y.createErrorContainer(),children:[c.jsx("img",{src:_a,alt:"Image unavailable",style:Dt(g.iconFilter,"2rem")}),c.jsx("div",{style:y.createErrorText(),children:"No image available"})]})]})]})}
1540,zve=(e,t,n)=>({container:{position:"relative"},button:{backgroundColor:n?"var(--dropdown-button-active)":t?"var(--dropdown-button-hover)":"var(--more-options-button-bg)",border:"none",borderRadius:"var(--radius-round, 62.4375rem)",width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease",backdropFilter:"blur(5px)",outline:"none",WebkitTapHighlightColor:"transparent"},visitButtonCustomStyles:{button:{height:"3rem",padding:"0.75rem 1rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"var(--action-gradient)",transition:"none"},text:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontWeight:"500",lineHeight:"var(--button-line-height-1, 1.5rem)",letterSpacing:"-0.01rem",color:"#0E0E11"},icon:{width:"1.25rem",height:"1.25rem",filter:"none"}},productSection:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-medium, 1rem)",marginBottom:"var(--spacing-large, 1.5rem)",paddingBottom:"var(--spacing-medium, 1rem)",borderBottom:`1px solid ${e.borderLight}`,transition:"border-color 0.3s ease"},productImage:{width:"4rem",height:"4rem",borderRadius:"var(--radius-medium, 0.5rem)",objectFit:"cover"},productInfo:{flex:1,display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)"},productName:{fontSize:"var(--size-medium, 1.125rem)",fontWeight:"var(--weight-medium, 500)",color:"var(--text-default-primary)",lineHeight:"var(--line-height-medium, 1.375rem)",margin:0,transition:"color 0.3s ease"},productRating:{fontSize:"var(--size-small, 1rem)",color:"var(--text-default-secondary)",display:"flex",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",transition:"color 0.3s ease"},optionsList:{display:"flex",flexDirection:"column",gap:"var(--spacing-x-small, 0.5rem)",marginBottom:"var(--spacing-large, 1.5rem)"},optionItem:{display:"flex",alignItems:"center",width:"100%"},fullWidthButtonWrapper:{width:"100%",display:"flex",flex:1},priceSection:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"var(--spacing-medium, 1rem)",marginTop:"var(--spacing-large, 1.5rem)",paddingTop:"var(--spacing-medium, 1rem)",borderTop:`1px solid ${e.borderLight}`,transition:"border-color 0.3s ease"},priceInfo:{display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)"},priceRow:{display:"flex",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)"},currentPrice:{fontSize:"var(--size-large, 1.25rem)",fontWeight:"var(--weight-semibold, 600)",color:"var(--text-default-primary)",transition:"color 0.3s ease"},originalPrice:{fontSize:"var(--size-medium, 1.125rem)",fontWeight:"var(--weight-regular, 400)",color:"var(--text-default-secondary)",textDecoration:"line-through",transition:"color 0.3s ease"},retailer:{fontSize:"var(--size-small, 1rem)",color:"var(--text-default-secondary)",transition:"color 0.3s ease"},visitButtonContainer:{display:"flex",alignItems:"center"}}),Hve=({parsedListingData:e,hideViewDetails:t=!1,hideVisitSite:n=!1,iconFilter:r,page:i="listingCard"})=>{const{colors:s}=ze(),{trackMoreOptionsClick:l,trackShareListing:u}=Nt(),d=r??s.listingCardMoreOptionsIconFilter,[h,m]=G.useState(!1),[g,y]=G.useState(!1),b=zve(s,h,g),{currentPrice:S,originalPrice:I,storeName:w,title:C,thumbnailImage:E,rating:A,reviewCount:_}=e,R=Fe(V=>V.currentComponentId);bn(V=>V.recentlyInteractedListings.size);const L=bn(V=>V.addInteraction),j=E?.image?.address?.imageUrl,[O,F]=k.useState(!1),D=R?.includes("recently-interacted-carousel"),H=V=>{V.preventDefault(),V.stopPropagation(),O||l(e.listingId,i,e.sourceMessageId),F(!0)};return c.jsxs(c.Fragment,{children:[c.jsx("div",{style:b.container,children:c.jsx("button",{style:b.button,onClick:H,onMouseEnter:()=>m(!0),onMouseLeave:()=>{m(!1),y(!1)},onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),onTouchStart:()=>y(!0),onTouchEnd:()=>y(!1),onTouchCancel:()=>y(!1),"aria-label":"More options",children:c.jsx(_k,{iconFilter:d})})}),c.jsxs(QI,{isOpen:O,onClose:()=>F(!1),blurIntensity:6,overlayOpacity:.6,freezeBackground:!0,children:[j&&C&&c.jsxs("div",{style:b.productSection,children:[c.jsx(qp,{src:j,alt:C,style:b.productImage,loading:"lazy"}),c.jsxs("div",{style:b.productInfo,children:[c.jsx("h3",{style:b.productName,children:C}),A&&c.jsx(Yy,{rating:A,reviewCount:_||void 0,showReviewCount:!!_})]})]}),c.jsxs("div",{style:b.optionsList,children:[!t&&c.jsx("div",{style:b.optionItem,children:c.jsx("div",{style:b.fullWidthButtonWrapper,children:c.jsx(sB,{parsedListingData:e,onClose:()=>F(!1)})})}),c.jsx("div",{style:b.optionItem,children:c.jsx("div",{style:b.fullWidthButtonWrapper,children:c.jsx(oB,{parsedListingData:e,onClose:()=>F(!1)})})}),c.jsx("div",{style:b.optionItem,children:c.jsx("div",{style:b.fullWidthButtonWrapper,children:c.jsx(Gv,{variant:"menu-row",url:e.listingId?Yv(e.listingId):null,onShare:()=>{u(e.listingId,i,e.sourceMessageId),L(e,"share")},onClose:()=>F(!1)})})}),c.jsx("div",{style:b.optionItem,children:c.jsx("div",{style:b.fullWidthButtonWrapper,children:c.jsx(cB,{parsedListingData:e,onClose:()=>F(!1),page:i})})}),D&&c.jsx("div",{style:b.optionItem,children:c.jsx("div",{style:b.fullWidthButtonWrapper,children:c.jsx(uB,{parsedListingData:e,onClose:()=>F(!1)})})})]}),(S||w)&&c.jsxs("div",{style:b.priceSection,children:[c.jsxs("div",{style:b.priceInfo,children:[S&&c.jsxs("div",{style:b.priceRow,children:[c.jsx("span",{style:b.currentPrice,children:S&&_l(S)}),af(S,I)&&I&&c.jsx("span",{style:b.originalPrice,children:_l(I)})]}),w&&c.jsx("span",{style:b.retailer,children:w})]}),c.jsx("div",{style:b.visitButtonContainer,children:c.jsx(Vm,{listings:[e],tagManagerPage:"listingCard",customStyle:b.visitButtonCustomStyles,onClose:()=>F(!1)})})]})]})]})},Uve={position:"relative"},Wve=(e,t)=>
1540({backgroundColor:t?"var(--dropdown-button-active)":e?"var(--dropdown-button-hover)":"var(--more-options-button-bg)",border:"none",borderRadius:"1.6875rem",width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease",backdropFilter:"blur(5px)",outline:"none",WebkitTapHighlightColor:"transparent"}),Vve=224,qve=e=>{if(!e)return 0;const t=e.right-Vve;return t<8?e.left:t},Gve=e=>({display:"flex",width:"14rem",padding:"0.75rem 0.25rem",justifyContent:"space-between",alignItems:"flex-start",position:"fixed",top:e?e.bottom+8:0,left:qve(e),borderRadius:"var(--radius-large, 0.75rem)",background:"var(--dropdown-bg)",backgroundColor:"var(--dropdown-bg)",opacity:1,boxShadow:"var(--dropdown-shadow)",zIndex:1e3,border:"1px solid var(--dropdown-border)",WebkitBackfaceVisibility:"hidden",backfaceVisibility:"hidden",transform:"translateZ(0)"}),Yve={display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",flexShrink:0},Kve=({parsedListingData:e,hideViewDetails:t=!1,hideVisitSite:n=!1,iconFilter:r,page:i="listingCard"})=>{const{colors:s}=ze(),{trackMoreOptionsClick:l,trackShareListing:u}=Nt(),d=r??s.listingCardMoreOptionsIconFilter,h=Fe(R=>R.currentComponentId);bn(R=>R.recentlyInteractedListings.size);const m=bn(R=>R.addInteraction),[g,y]=k.useState(!1),[b,S]=k.useState(!1),[I,w]=k.useState(!1),C=k.useRef(null),E=h?.includes("recently-interacted-carousel"),A=R=>{R.stopPropagation(),g||l(e.listingId,i,e.sourceMessageId),y(!g)},_=()=>{y(!1)};return G.useEffect(()=>{if(g){const R=L=>{const j=L.target,O=document.querySelector("[data-modal-overlay]");O&&O.contains(j)||y(!1)};return document.addEventListener("click",_),document.addEventListener("scroll",R,!0),window.addEventListener("scroll",R),()=>{document.removeEventListener("click",_),document.removeEventListener("scroll",R,!0),window.removeEventListener("scroll",R)}}},[g]),c.jsxs("div",{style:Uve,children:[c.jsx("button",{ref:C,style:Wve(b,I),onClick:A,onMouseEnter:()=>S(!0),onMouseLeave:()=>{S(!1),w(!1)},onMouseDown:()=>w(!0),onMouseUp:()=>w(!1),onTouchStart:()=>w(!0),onTouchEnd:()=>w(!1),onTouchCancel:()=>w(!1),"aria-label":"More options",children:c.jsx(_k,{iconFilter:d})}),g&&c.jsx(Aa,{children:c.jsx("div",{style:Gve(C.current?.getBoundingClientRect()||null),onClick:R=>R.stopPropagation(),children:c.jsxs("div",{style:Yve,children:[!t&&c.jsx(sB,{parsedListingData:e,onClose:()=>y(!1)}),c.jsx(oB,{parsedListingData:e,onClose:()=>y(!1)}),c.jsx(Gv,{variant:"menu-row",url:e.listingId?Yv(e.listingId):null,onShare:()=>{u(e.listingId,i,e.sourceMessageId),m(e,"share")},onClose:()=>y(!1)}),c.jsx(cB,{parsedListingData:e,onClose:()=>y(!1),page:i}),!n&&c.jsx(Vm,{listings:[e],tagManagerPage:"listingCard",onClose:()=>y(!1)}),E&&c.jsx(uB,{parsedListingData:e,onClose:()=>y(!1)})]})})})]})},Rk=({parsedListingData:e,onOptionSelect:t,hideViewDetails:n=!1,hideVisitSite:r=!1,iconFilter:i,page:s="listingCard"})=>{const{isMobile:l}=We();return l?c.jsx(Hve,{parsedListingData:e,onOptionSelect:t,hideViewDetails:n,hideVisitSite:r,iconFilter:i,page:s}):c.jsx(Kve,{parsedListingData:e,onOptionSelect:t,hideViewDetails:n,hideVisitSite:r,iconFilter:i,page:s})},Xve=e=>({container:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",gap:"0.375rem",maxWidth:"100%",minWidth:0,overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",WebkitOverflowScrolling:"touch",touchAction:"pan-x pan-y",overscrollBehaviorX:"contain"},swatchWrapper:{position:"relative",display:"inline-block"},swatch:{borderRadius:"50%",flexShrink:0,boxSizing:"border-box",transition:"border-color 0.15s ease"},swatchSelected:{border:`1.5px solid ${e.text}`},swatchUnselected:{border:`1.5px solid ${e.border}`},overflowIndicator:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:e.textMuted,fontFamily:"var(--font-Inter, Inter)",fontWeight:500,cursor:"pointer"},tooltip:{position:"fixed",padding:"4px 8px",backgroundColor:"var(--tooltip-bg)",color:"var(--tooltip-text)",fontSize:"11px",lineHeight:"1.3",borderRadius:"4px",whiteSpace:"nowrap",boxShadow:"var(--tooltip-shadow)",border:"1px solid var(--tooltip-border)",zIndex:999999,pointerEvents:"none",transform:"translate(-50%, -100%)"},tooltipArrow:{position:"absolute",top:"100%",left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"4px solid var(--tooltip-bg)"}}),Jve={display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#E5E5E5",fontSize:"0.625rem",fontWeight:600,color:"#666666"},Zve=({swatch:e,isSelected:t,swatchSize:n,styles:r,onClick:i,isMobile:s})=>{const[l,u]=k.useState(!1),[d,h]=k.useState({top:0,left:0}),m=k.useRef(null),g=e.primaryColor?.name,y=e.primaryColor?.hexCode,b=!y&&g,S=()=>
1540{if(!s&&g&&m.current){const w=m.current.getBoundingClientRect();h({top:w.top-6,left:w.left+w.width/2}),u(!0)}},I=w=>{w.stopPropagation(),i(e.listingId)};return c.jsxs(c.Fragment,{children:[c.jsx("div",{ref:m,style:{...r.swatch,...t?r.swatchSelected:r.swatchUnselected,width:n,height:n,backgroundColor:y||"transparent",cursor:"pointer",...b?Jve:{}},onClick:I,onMouseEnter:S,onMouseLeave:()=>u(!1),children:b&&"?"}),l&&g&&c.jsx(Aa,{children:c.jsxs("div",{style:{...r.tooltip,top:d.top,left:d.left},children:[g,c.jsx("div",{style:r.tooltipArrow})]})})]})},jk=({colorSwatches:e,size:t="small",maxVisible:n,onOverflowClick:r,groupId:i})=>{const{colors:s}=ze(),{isMobile:l}=We(),u=Xve(s),d=Xi(E=>E.groups.get(i)),h=Xi(E=>E.fetchAndSelectVariant),m=d?.selectedListingId,g=E=>{if(E===m)return;const A=d?.listings.get(d?.selectedListingId||"");!A?.sourceMessageId||!A?.sourceComponentId||h({groupId:i,variantListingId:E,sourceMessageId:A.sourceMessageId,sourceComponentId:A.sourceComponentId})},y=e.filter(E=>E.primaryColor?.hexCode!=null||E.primaryColor?.name!=null);if(y.length<=1)return null;const b=t==="small"?"14px":"24px",S=t==="small"?"0.75rem":"1.25rem",I=n!==void 0&&y.length>n,w=I?y.slice(0,n):y,C=I?y.length-n:0;return c.jsxs("div",{"data-testid":"color-swatches",className:"webkit-scrollbar-hidden",style:u.container,onClick:E=>E.stopPropagation(),children:[w.map(E=>c.jsx(Zve,{swatch:E,isSelected:E.listingId===m,swatchSize:b,styles:u,onClick:g,isMobile:l},E.listingId)),I&&c.jsxs("div",{style:{...u.overflowIndicator,fontSize:S},onClick:E=>{E.stopPropagation(),r?.()},children:["+",C]})]})},fB="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M12.2863%204.2988C12.6733%203.9048%2013.3073%203.8991%2013.7014%204.2861C14.0954%204.6731%2014.101%205.3071%2013.7141%205.7011L6.8391%2012.7011C6.651%2012.8925%206.3935%2012.9999%206.1252%2012.9999C5.8569%2012.9999%205.5994%2012.8925%205.4113%2012.7011L2.2863%209.5185C1.89975%209.1245%201.90524%208.4913%202.299%208.1044C2.693%207.7174%203.3271%207.7231%203.7141%208.1171L6.1242%2010.5712L12.2863%204.2988Z'%20fill='white'/%3e%3c/svg%3e",Qve=(e,t,n
1540)=>({display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"0.5rem",border:"none",outline:"none",cursor:"pointer",color:t?"var(--text-default-secondary, #71717F)":e.textSecondary,fontFamily:"var(--font-Inter, Inter)",fontSize:n==="large"?"var(--size-x-small, 0.875rem)":"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem",transition:"transform 0.15s ease, background-color 0.15s ease",padding:n==="large"?"0.5rem 0.75rem":"0.375rem 0.75rem",borderRadius:"var(--radius-small, 0.25rem)",minHeight:n==="large"?"2.5rem":"2rem",boxSizing:"border-box",whiteSpace:"nowrap",flexShrink:0}),$ve={transform:"scale(0.95)"},e2e=e=>({base:{backgroundColor:e.selectionToggleBackground,border:`2px solid ${e.selectionToggleBorder}`,borderRadius:"1.4rem",width:"24px",height:"24px",flexShrink:0,backdropFilter:"blur(5px)",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease, transform 0.15s ease",marginTop:"6px",marginRight:"6px"},pressed:{transform:"scale(0.9)"},selected:{backgroundColor:e.selectionToggleSelectedBackground,backdropFilter:"blur(5px)"},hover:{backgroundColor:e.selectionToggleHoverBackground,border:`2px solid ${e.selectionToggleHoverBorder}`}}),Kv=({disabled:e=!1,size:t="default"})=>{const{colors:n}=ze(),{isMobile:r}=We(),i=Qr(y=>y.isSelectionMode),s=Qr(y=>y.toggleSelectionMode),[l,u]=G.useState(!1),[d,h]=G.useState(!1),m=()=>{e||s()},g=()=>({...Qve(n,r,t),backgroundColor:d&&!e?n.carouselHeaderButtonHover:"transparent",...l&&!e?$ve:{}});return c.jsx("button",{style:g(),onClick:m,disabled:e,"aria-label":i?"Deselect all":"Select",onMouseEnter:()=>!e&&!r&&h(!0),onMouseLeave:()=>{r||h(!1),u(!1)},onMouseDown:()=>!e&&u(!0),onMouseUp:()=>u(!1),onTouchStart:()=>!e&&u(!0),onTouchEnd:()=>u(!1),onTouchCancel:()=>u(!1),children:i?"Deselect all":"Select"})},t2e=({listingId:e,parsedListingData:t})=>{const{colors:n}=ze(),{isMobile:r}=We(),i=Qr(b=>b.toggleCardSelection),s=Qr(b=>b.selectedCards.has(e)),[l,u]=G.useState(!1),[d,h]=G.useState(!1),m=e2e(n),g=b=>{b.stopPropagation(),b.preventDefault(),i(t)},y=()=>{const b={...m.base,...s&&m.selected,...d&&!r&&!s&&m.hover};return l?{...b,...m.pressed}:b};return c.jsx("div",{style:y(),onClick:g,onMouseEnter:()=>!r&&h(!0),onMouseLeave:()=>{r||h(!1),u(!1)},onMouseDown:()=>u(!0),onMouseUp:()=>u(!1),onTouchStart:()=>u(!0),onTouchEnd:()=>u(!1),onTouchCancel:()=>u(!1),children:s?c.jsx("img",{src:fB,alt:"Selected",style:{width:"1rem",he
1540ight:"1rem"}}):null})},m8=e=>e.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/[^a-z0-9]/g,""),Ok=(e,t)=>{const n=t?.trim(),r=e?.trim();if(!n)return null;if(r){const i=m8(n),s=m8(r);if(i&&s&&(i.includes(s)||s.includes(i)))return null}return n},n2e=(e,t,n)=>({display:"flex",width:"100%",height:"100%",minWidth:0,maxWidth:"100%",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-x-small, 0.5rem)",borderRadius:"1rem",cursor:e?"default":"pointer",border:"none",padding:0,backgroundColor:n,boxShadow:"0 1px 2px rgba(14,14,17,0.05), 0 6px 16px rgba(14,14,17,0.06)",transition:"box-shadow 0.2s ease"}),r2e=(e,t)=>({position:"relative",width:"100%",minHeight:e?"150px":"220px",overflow:"hidden",borderRadius:"var(--radius-large, 0.75rem)",border:"none",backgroundColor:t,mixBlendMode:"normal",transition:"background-color 0.3s ease"}),Vr={productImage:{width:"100%",height:"100%",objectFit:"contain",transition:"transform 0.3s ease"},topIcons:{position:"absolute",top:"var(--spacing-3x-small, 0.25rem)",left:"var(--spacing-3x-small, 0.25rem)",right:"var(--spacing-3x-small, 0.25rem)",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",zIndex:2},topIconsSelectionMode:{position:"absolute",top:"var(--spacing-2x-small, 0.5rem)",left:"var(--spacing-2x-small, 0.5rem)",right:"var(--spacing-2x-small, 0.5rem)",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",zIndex:2},content:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",padding:"0.5rem 0.5rem 0.75rem 0.5rem"},productInfo:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-4x-small, 0.125rem)",alignSelf:"stretch"},sellerRatingRow:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",gap:"var(--spacing-2x-small, 0.5rem)",minWidth:0},priceSection:{display:"flex",flexDirection:"row",height:"1.375rem",alignItems:"center",justifyContent:"space-between",gap:"var(--spacing-2x-small, 0.375rem)",alignSelf:"stretch"},priceGroup:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",flex:"1 1 auto",minWidth:0,overflow:"hidden"},seller:{color:"var(--text-default-tertiary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-3x-small, 0.75rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-2x-small, 1rem)",letterSpacing:"-0.00875rem",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},productName:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis",alignSelf:"stretch",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00938rem"},productNamePreview:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis",alignSelf:"stretch",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00938rem"},newPrice:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem",flexShrink:0},oldPrice:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-tertiary, #71717F)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00938rem",textDecorationLine:"line-through",minWidth:0},rating:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px",flexShrink:0}
1540,starIcon:{width:"0.75rem",height:"0.75rem"},ratingText:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-3x-small, 0.75rem)",fontStyle:"normal",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)"}},i2e=({parsedListingData:e,previewMode:t=!1,enableSelection:n=!1,disableClick:r=!1})=>{const{isMobile:i}=We(),{colors:s}=ze(),l=Xt(z=>z.openListingDetails),u=Qr(z=>z.isSelectionMode),d=Qr(z=>z.toggleCardSelection),h=bn(z=>z.addInteraction),{trackListingClick:m}=Nt(),g=e.title,y=e.currentPrice?.replace("$",""),b=e.storeName,S=Jie(e.rating),I=S?{ratingValue:S,reviewCount:e.reviewCount}:null,w=e.url,C=af(e.currentPrice,e.originalPrice),E=C?e.originalPrice:null,A=Ok(b,e.brandName),_=b?A?`${b} | ${A}`:b:A,R=Xi(z=>FI(z,e)),L=Vr.seller,j=t?Vr.productNamePreview:Vr.productName,O=Vr.newPrice,F=Vr.oldPrice,D=()=>{r||(u&&n?d(e):(h(e,"view_details"),m(e.listingId,e.sourceMessageId),l(e)))},H=z=>{z.stopPropagation(),D()},V=z=>{r||(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),z.stopPropagation(),D())},K=(()=>{const z=e.thumbnailImage;return z?.image?.details?.width&&z?.image?.details?.height?{width:"100%",height:"auto",aspectRatio:z.image.details.width/z.image.details.height,minHeight:void 0}:{width:"100%",height:"auto",aspectRatio:"1 / 1",minHeight:"unset"}})();return c.jsxs("div",{"data-testid":"listing-card","data-listing-id":e.listingId,style:n2e(r,i,s.cardBackground),onClick:H,onKeyDown:V,role:r?void 0:"button",tabIndex:r?void 0:0,onMouseEnter:z=>{!r&&!i&&(z.currentTarget.style.boxShadow=`0 8px 22px ${s.shadow}`)},onMouseLeave:z=>{!r&&!i&&(z.currentTarget.style.boxShadow="0 1px 2px rgba(14,14,17,0.05), 0 6px 16px rgba(14,14,17,0.06)")},children:[c.jsxs("div",{style:{...r2e(i,s.imageContainerBackground),width:K.width,height:K.height,aspectRatio:K.aspectRatio,minHeight:K.minHeight},children:[c.jsx(qp,{src:e.thumbnailImage?.image?.address?.imageUrl,alt:g||"Product image",style:{...Vr.productImage,objectFit:"contain"},fallbackSrc:_a,loading:"lazy",groupId:e.groupId,showLoadingOnlyForVariant:!0}),c.jsxs("div",{style:u?Vr.topIconsSelectionMode:Vr.topIcons,children:[!u&&c.jsx(Nm,{listing:e}),u&&n?c.jsx(t2e,{listingId:e.listingId,parsedListingData:e}):w&&c.jsx(Rk,{parsedListingData:e})]})]}),c.jsxs("div",{style:Vr.content,children:[c.jsxs("div",{style:Vr.productInfo,children:[(_||I)&&c.jsxs("div",{style:Vr.sellerRatingRow,children:[_&&c.jsx("div",{style:L,children:_}),I&&c.jsxs("div",{style:Vr.rating,children:[c.jsx("img",{src:dB,alt:"Star rating",style:Vr.starIcon}),c.jsxs("span",{style:Vr.ratingText,children:[I.ratingValue.toFixed(1),I.reviewCount&&I.reviewCount>0&&` (${I.reviewCount})`]})]})]}),g&&c.jsx("h3",{style:j,children:g})]}),(y||E||R.length>1)&&c.jsxs("div",{style:Vr.priceSection,children:[c.jsxs("div",{style:Vr.priceGroup,children:[y&&c.jsx("div",{style:C?{...O,color:s.error}:O,children:_l(y)}),C&&E&&c.jsx("div",{style:F,children:_l(E)})]}),R.length>1&&c.jsx(jk,{colorSwatches:R,size:"small",maxVisible:3,groupId:e.groupId,onOverflowClick:()=>{r||l(e)}})]})]})]})},a2e=k.memo(i2e),s2e=({parsedListingData:e,enableSelection:t=!1,disableClick:n=!1,previewMode:r=!1})=>{const i=Xi(u=>u.groups.get(e.groupId)),s=Xi(u=>u.initializeGroup);k.useEffect(()=>{i||s(e)},[i,s,e]);const l=i?i.listings.get(i.selectedListingId)||i.listings.values().next().value:e;return l?c.jsx(a2e,{parsedListingData:l,previewMode:r,enableSelection:t,disableClick:n}):null},qm=k.memo(s2e),o2e=e=>e?.includes("recently-interacted-carousel")?"recents":"static",l2e=[],Gm=(e,t)=>{const n=o2e(e),r=Fe(d=>n==="static"?d.currentCarouselCards:l2e),i=Fe(d=>n==="static"?d.currentCarouselTitle:null),s=bn(d=>n==="recents"?d.recentlyInteractedListings.size:0),l=bn(d=>d.getRecentlyInteractedListings),u=bn(d=>d.getCarouselTitle);return k.useMemo(()=>n==="recents"?{cards:l(),title:u()}:{cards:r,title:t??i},[n,r,i,t,s,l,u])};function lf(){Qr.getState().clearSelectedCards(),bn.getState().savePreviousCarouselState(null),Fe.getState().closeCarousel(),kn.getState().closeActiveBlock(),ui.getState().close(),Ja.getState().reset()}const Ze={ink:"var(--text-default-primary, #0e0e11)",ink2:"var(--text-default-secondary, #3f3f4a)",ink3:"var(--text-default-tertiary, #71717f)",ink4:"var(--text-disabled-default, #adadb8)",white:"var(--surface-primary-default, #ffffff)",gray1:"var(--surface-secondary-default, #f2f2f3)",gray2:"var(--surface-tertiary-default, #e9e9ea)",gray3:"var(--border-default-secondary, #c1c1c7)",rule:"var(--border-default-primary, #dddddf)",danger:"var(--surface-danger-default, #c62828)",dangerText:"var(--text-danger-default, #c62828)",success:"var(--status-success, #16a34a)"},x4e="var(--gradient-peach, linear-gradient(90deg, #fe6767 0%, #fcda2e 100%))",hB="var(--Gradients-lemon, linear-gradient(90deg, #fcda2e 0%, #fdb341 100%))",c2e="#27272f",Nn={display:"var(--font-Arizona-serif, 'ABC Arizona Mix', Georgia, serif)",heading:"var(--font-Arizona-sans, 'ABC Arizona Sans', Inter, sans-serif)",body:"var(--font-Inter, Inter, -apple-system, sans-serif)"},Rd="var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))",ou={fast:120,base:200,slow:320},Lk=({as:e="button",shape:t,label:n,icon:r,iconAlt:i,children:s,shimmer:l=!1,shimmerLoop:u=!1,sheenWidth:d="42%",pressed:h=!1,pressedScale:m=.9,style:g,contentStyle:y,...b})=>{const S=e,I={position:"relative",overflow:"hidden",display:"inline-flex",alignItems:"center",justifyContent:"center",border:"none",borderRadius:t==="round"?"50%":"999px",background:hB,color:"#27272F",transform:h?`scale(${m})`:void 0,...g},w={position:"absolute",top:0,bottom:0,left:0,width:d,zIndex:0,background:"linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%)",transform:"translateX(-160%) skewX(-14deg)",animation:`shimmer-btn-sheen 2.8s ease-in-out ${u?"infinite":"1"}`,pointerEvents:"none"},C={position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",gap:"6px",...y};return c.jsxs(S,{style:I,...b,children:[l&&c.jsx("span",{"aria-hidden":"true",style:w}),c.jsx("span",{style:C,children:s??c.jsxs(c.Fragment,{children:[n,typeof r=="string"?c.jsx("img",{src:r,alt:i??""}):r]})})]})},pB=({onClick:e,label:t,ariaLabel:n,ariaExpanded:r,additionalStyles:i={},dataTutorialId:s})=>{const{isMobile:l}=We(),[u,d]=k.useState(!1),h=r===!0,m=g=>{g.stopPropagation(),e(g)};return h?c.jsx("button",{type:"button",onClick:m,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),"aria-label":n,"aria-expanded":r,"data-tutorial-id":s,style:{alignSelf:"center",display:"inline-flex",alignItems:"center",padding:"0.5rem 1rem",borderRadius:"var(--radius-round, 999px)",border:"1px solid var(--border-default-secondary, #E9E9EA)",backgroundColor:u?"var(--surface-secondary-default, #F4F4F5)":"transparent",color:"var(--text-default-secondary, #3F3F4A)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-medium, 500)",letterSpacing:"-0.00813rem",cursor:"pointer",transition:"background-color 0.18s ease",...i},children:t}):c.jsx(Lk,{as:"button",type:"button",shape:"pill",shimmer:!0,onClick:m,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),"aria-label":n,"aria-expanded":r,"data-tutorial-id":s,label:c.jsx("span",{children:t}),icon:l?c.jsx("span",{"aria-hidden":"true",style:{transform:u?"translateY(2px)":"translateY(0)",transition:"transform 0.18s ease"},children:"â"}):void 0,style:{alignSelf:"center",padding:"10px 18px",cursor:"pointer",color:"#0E0E11",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"14px",fontWeight:600,letterSpacing:"0.01em",boxShadow:"0 6px 18px rgba(0,0,0,0.28)",...i}})},u2e=200,il={container:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",ga
1540p:"var(--spacing-small, 0.75rem)",position:"relative"},getMasonryWrapperStyle:e=>({position:"relative",width:"100%",maxHeight:e?`${u2e}svh`:"none",overflow:"hidden"}),masonryContainer:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"var(--spacing-2x-small, 0.5rem)",width:"100%"},column:{flex:"1 1 0",minWidth:0,maxWidth:"calc((100% - var(--spacing-2x-small, 0.5rem)) / 2)",display:"flex",flexDirection:"column",alignItems:"stretch",gap:"var(--spacing-2x-small, 0.5rem)"},cardsContainerUser:{display:"flex",flexDirection:"row",alignItems:"stretch",width:"100%",gap:"var(--spacing-small, 0.75rem)",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",overscrollBehaviorX:"contain",touchAction:"manipulation"},cardWrapper:{width:"100%",height:"auto"},getGradientOverlayStyle:e=>({position:"absolute",bottom:0,left:0,right:0,height:"80px",background:`linear-gradient(to top, ${e} 0%, ${e}E6 50%, transparent 100%)`,pointerEvents:"none",zIndex:1})},d2e={flex:"0 0 auto",width:"180px",minWidth:"180px",display:"flex",justifyContent:"center"},mB=({listingCards:e,messageId:t,componentId:n,fromUserMessage:r=!1,title:i,searchRequestJson:s})=>{const{isMobile:l}=We(),{colors:u}=ze(),{trackViewMoreResults:d}=Nt(),h=U(D=>D.chatId),m=u.background,g=Fe(D=>D.isCarouselOpen),y=Fe(D=>D.currentMessageId),b=Fe(D=>D.currentComponentId),S=n?.includes("recently-interacted-carousel"),{cards:I}=Gm(S?n:null),w=S?I:e,C=g&&y===t&&b===n;if(!w||w.length===0)return null;const E=w.length>4,_=E?w.slice(0,8):w,R=k.useMemo(()=>{const D=[[],[]];return _.forEach((H,V)=>{D[V%2].push(H)}),D},[_]),L=()=>{C?lf():(d(t),Xt.getState().closeListingDetails(),Fe.getState().openCarousel(w,t,n,i,s),Ja.getState().setOwner("carousel"))},j=!r,O=D=>D.isSkeleton?c.jsx(su,{previewMode:!0,enableSelection:j}):c.jsx(qm,{parsedListingData:D,previewMode:!0,enableSelection:j});if(r)return c.jsxs("div",{style:il.container,children:[c.jsx("style",{children:` 1541 .inline-carousel-cards::-webkit-scrollbar {
1542 display: none; 1543 } 1544 `}),c.jsx("div",{className:"inline-carousel-cards",style:il.cardsContainerUser,children:_.map(D=>c.jsx("div",{style:d2e,children:O(D)},`${h}-${t}-${n}-${D.listingId}`))})]});const F=l?!C:!0;return c.jsxs("div",{style:il.container,children:[c.jsxs("div",{style:il.getMasonryWrapperStyle(F),children:[c.jsx("div",{style:il.masonryContainer,children:R.map((D,H)=>c.jsx("div",{style:il.column,children:D.map(V=>c.jsx("div",{style:il.cardWrapper,children:O(V)},`${h}-${t}-${n}-${V.listingId}`))},`${h}-${t}-${n}-column-${H}`))}),F&&E&&c.jsx("div",{style:il.getGradientOverlayStyle(m)})]}),(E||C)&&c.jsx(pB,{onClick:L,label:C?"Collapse":"View all",additionalStyles:{width:l?"100%":"auto",alignSelf:l?"stretch":"center"}})]})},Rs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='20'%20viewBox='0%200%2021%2020'%20fill='none'%3e%3crect%20width='10.402'%20height='10.402'%20rx='2.98373'%20transform='matrix(0.501438%20-0.865194%20-0.501372%20-0.865232%207.13867%2019)'%20fill='url(%23paint0_linear_40000350_16299)'/%3e%3crect%20width='10.402'%20height='10.402'%20rx='2.98373'%20transform='matrix(0.501438%20-0.865194%20-0.501372%20-0.865232%2010.125%2019)'%20fill='url(%23paint1_linear_40000350_16299)'/%3e%3crect%20width='10.402'%20height='10.402'%20rx='2.98373'%20transform='matrix(0.501438%20-0.865194%20-0.501372%20-0.865232%2013.708%2019)'%20fill='url(%23paint2_linear_40000350_16299)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_40000350_16299'%20x1='12.8344'%20y1='13.7599'%20x2='-6.07512'%20y2='4.63446'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2342F098'/%3e%3cstop%20offset='1'%20stop-color='%230471C4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_40000350_16299'%20x1='12.1226'%20y1='6.92181'%20x2='-2.91641'%20y2='-0.597687'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2342F098'/%3e%3cstop%20offset='1'%20stop-color='%23FCDA2E'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_40000350_16299'%20x1='-8.48011'%20y1='-8.45069'%20x2='9.95429'%20y2='9.98452'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FCDA2E'/%3e%3cstop%20offset='1'%20stop-color='%23FE6767'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",gB=({stats:e,style:t,showRotatingStats:n=!1})=>{const{brandCount:r,sellerCount:i,productCount:s}=e,l=k.useMemo(()=>{const h=[];return i>0&&h.push(`Found products from ${i} storesâ¦`),r>0&&h.push(`Refining across ${r} brandsâ¦`),s>0&&h.push(`Analyzing the top ${s} productsâ¦`),h},[r,i,s]),[u,d]=k.useState(0);return k.useEffect(()=>{if(!n||l.length===0)return;d(0);const h=setInterval(()=>{d(m=>(m+1)%Math.max(1,l.length))},2600);return()=>clearInterval(h)},[n,l.length]),n&&l.length>0?c.jsx("span",{style:t,children:l[u]}):c.jsx("span",{style:t,children:BM(r,i,s)})},uw=["Searching for products","Looking through listings","Still working on it","Checking the catalog","One moment"],g8=2500,f2e=2500,h2e=2500;function p2e(){const e=f2e-g8;return g8+Math.floor(Math.random()*(e+1))}const y8={message:{flex:1,minWidth:0,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00813rem",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden",minHeight:"calc(var(--line-height-small, 1.25rem) * 2)",color:"var(--text-default-secondary, #71717F)"},messageSingleLine:{flex:1,minWidth:0,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.875rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minHeight:"var(--line-height-x-small, 1.125rem)",color:"var(--text-default-secondary, #71717F)"}};function dw(){return uw.length===0?"":uw[Math.floor(Math.random()*uw.length)]}const Dk=({active:e=!0,phrases:t,singleLine:n=!1})=>{const r=Array.isArray(t)&&t.length>0,i=r?t.join("\0"):"",[s,l]=k.useState(()=>r?t[0]:dw());return k.useEffect(()=>{if(!e)return;if(r){const h=t;let m=0;if(l(h[0]),h.length===1)return;const g=setInterval(()=>{if(m+=1,m>=h.length){clearInterval(g);return}l(h[m])},h2e);return()=>clearInterval(g)}l(dw());let u;const d=()=>{u=setTimeout(()=>{l(dw()),d()},p2e())};return d(),()=>clearTimeout(u)},[e,r,i]),c.jsx("span",{style:n?y8.messageSingleLine:y8.message,"data-single-line":n?"true":void 0,children:s})},$s={container:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"flex-start",justifyContent:"space-between",width:"100%",gap:"var(--spacing-2x-small, 0.5rem)",minWidth:0},titleCol:{display:"flex",flexDirection:"column",flex:"1 1 0",minWidth:0,gap:"var(--spacing-4x-small, 0.125rem)"},title:{fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",color:"var(--text-default-secondary, #71717F)",margin:"0",padding:"0",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},buttonsContainer:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",gap:"var(--spacing-2x-small, 0.5rem)",flexShrink:0},statusLine:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",minHeight:"var(--line-height-x-small, 1.125rem)"}
1544,statusIcon:{width:"0.75rem",height:"0.75rem",flexShrink:0},statusText:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem"}},v8=({title:e,stats:t,showTitle:n=!0,searchRequestJson:r,rerankStatus:i,showSelect:s=!1,reserveStats:l=!1,loadingPhrases:u})=>{const d=i==="reranking_requested",h=n&&!!e,m=t?c.jsxs("div",{style:$s.statusLine,children:[c.jsx("img",{src:Rs,alt:"Status",style:$s.statusIcon}),c.jsx(gB,{stats:t,style:$s.statusText,showRotatingStats:d})]}):l?c.jsxs("div",{style:$s.statusLine,"aria-busy":"true",children:[c.jsx("img",{src:Rs,alt:"","aria-hidden":"true",style:$s.statusIcon}),c.jsx(Dk,{phrases:u,singleLine:!0})]}):null,g=h||!!m;return!g&&!s?null:c.jsxs("div",{style:$s.container,children:[g?c.jsxs("div",{style:$s.titleCol,children:[h?c.jsx("h3",{style:$s.title,children:e}):null,m]}):c.jsx("span",{style:{flex:"1 1 0",minWidth:0}}),(s||i&&!1||r&&!1)&&c.jsxs("div",{style:$s.buttonsContainer,children:[i&&!1,r&&!1,s&&c.jsx(Kv,{})]})]})},m2e=120,g2e=12,yB=e=>({container:{display:"flex",flexDirection:"column",width:"calc(100% + 2 * var(--spacing-medium, 1rem))",marginLeft:"calc(-1 * var(--spacing-medium, 1rem))",marginRight:"calc(-1 * var(--spacing-medium, 1rem))",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",gap:"var(--spacing-2x-small, 0.5rem)"},cardsContainer:{display:"flex",flexDirection:"row",gap:"var(--spacing-2x-small, 0.5rem)",width:"100%"},column:{flex:"1 1 0",minWidth:0,maxWidth:"calc((100% - var(--spacing-2x-small, 0.5rem)) / 2)"},cardWrapper:{paddingBottom:"var(--spacing-2x-small, 0.5rem)"},collapsedGradientOverlay:t=>({position:"absolute",bottom:0,left:0,right:0,height:"80px",background:`linear-gradient(to top, ${t} 0%, transparent 100%)`,pointerEvents:"none"})}),Z5=k.memo(({cards:e,chatId:t,messageId:n,componentId:r})=>{const{colors:i}=ze(),s=k.useMemo(()=>yB(i.background),[i.background]);return c.jsx(c.Fragment,{children:e.map(l=>c.jsx("div",{style:s.cardWrapper,children:l.isSkeleton?c.jsx(su,{previewMode:!1,enableSelection:!0}
1544):c.jsx(qm,{parsedListingData:l,enableSelection:!0})},`${t}-${n}-${r}-${l.listingId}`))})});Z5.displayName="StaticColumn";function y2e(e,t){const n=t.getBoundingClientRect(),r=e.querySelectorAll("[data-listing-id]");let i=null,s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;for(const u of r){const d=u.getBoundingClientRect();if(!(d.bottom>n.top+1&&d.top<n.bottom-1))continue;const h=u.getAttribute("data-listing-id");h&&(d.top<s||d.top===s&&d.left<l)&&(s=d.top,l=d.left,i=h)}return i}const v2e=({message:e})=>{const{colors:t}=ze(),n=U(j=>j.chatId),r=U(j=>j.referrerChatId),i=k.useRef(null),[s,l]=k.useState(null);k.useEffect(()=>{const j=document.querySelector('[data-scrollable="messages"]');l(j)},[]);const{cards:u,messageId:d,componentId:h,title:m,searchRequestJson:g}=e,y=h?.includes("recently-interacted-carousel"),{cards:b}=Gm(y?h:null,m),S=y?b:u,I=k.useMemo(()=>yB(t.background),[t.background]),{trackViewMoreResults:w}=Nt(),C=k.useCallback(j=>{j?.stopPropagation(),w(d),Xt.getState().closeListingDetails();const F=(i.current&&s?y2e(i.current,s):null)??S[0]?.listingId??null;Fe.getState().openCarousel(S,d,h,m,g,F)},[w,d,s,S,h,m,g]),{previewLeft:E,previewRight:A}=k.useMemo(()=>{const j=[],O=[];return S.slice(0,g2e).forEach((F,D)=>{D%2===0?j.push(F):O.push(F)}),{previewLeft:j,previewRight:O}},[S]),R=S.length>4;if(!S||S.length===0)return null;const L=n??r;return c.jsxs(c.Fragment,{children:[c.jsxs("div",{ref:i,style:{...I.container,position:"relative",...R?{maxHeight:`${m2e}svh`,overflow:"hidden"}:{}},children:[L&&c.jsxs("div",{style:I.cardsContainer,children:[c.jsx("div",{style:I.column,children:c.jsx(Z5,{cards:E,chatId:L,messageId:d,componentId:h})}),c.jsx("div",{style:I.column,children:c.jsx(Z5,{cards:A,chatId:L,messageId:d,componentId:h})})]}),R&&c.jsx("div",{style:I.collapsedGradientOverlay(t.background)})]}),R&&c.jsx("div",{style:{display:"flex",justifyContent:"center",width:"100%"},children:c.jsx(pB,{onClick:C,label:"View all",ariaLabel:"Show more results",ariaExpanded:!1})})]})},b2e=k.memo(v2e),x2e=[[248,192,224],[200,256,184]],bd={container:{alignSelf:"flex-start",minHeight:"auto",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",color:"var(--text-default-primary, #0E0E11)",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.5rem",width:"100%",minWidth:0},loadingMasonry:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"var(--spacing-2x-small, 0.5rem)",width:"100%",padding:"0.25rem 0 0.5rem"},loadingColumn:{flex:"1 1 0",minWidth:0,maxWidth:"calc((100% - var(--spacing-2x-small, 0.5rem)) / 2)",display:"flex",flexDirection:"column",gap:"var(--spacing-2x-small, 0.5rem)"},shimmerCard:{width:"100%",borderRadius:"var(--radius-medium, 0.75rem)",background:"linear-gradient(90deg, #ECECEF 25%, #F4F4F6 50%, #ECECEF 75%)",backgroundSize:"200% 100%",animation:"carousel-preview-shimmer 1.8s ease-in-out infinite"}},S2e=({message:e})=>{const{isMobile:t}=We(),n=e.componentId?.includes("recently-interacted-carousel"),{title:r}=Gm(n?e.componentId:null,e.title),i=n?r:e.title,s=U(g=>g.assistantInProgress),l=U(g=>e.laneId?g.codeBlockPhrases[e.laneId]:void 0),u=!!e.laneId;if(!n&&(!e.cards||e.cards.length===0))return s?c.jsxs("div",{"data-message-type":"carousel",style:bd.container,children:[!u&&c.jsx(v8,{title:i,stats:null,reserveStats:!0,loadingPhrases:l}),c.jsxs("div",{style:bd.loadingMasonry,"aria-busy":"true",children:[c.jsx("style",{children:` 1545 @keyframes carousel-preview-shimmer { 1546 0% { background-position: 200% 0; } 1547 100% { background-position: -200% 0; } 1548 } 1549 `}),x2e.map((g,y)=>c.jsx("div",{style:bd.loadingColumn,children:g.map((b,S)=>c.jsx("div",{style:{...bd.shimmerCard,height:`${b}px`}},S))},y))]})]}):null;const h=!n&&!u,m=u?null:c.jsx(v8,{title:i,stats:e.stats,showTitle:!0,showSelect:h,searchRequestJson:e.searchRequestJson,rerankStatus:e.rerankStatus});return t?c.jsxs("div",{"data-message-type":"carousel",style:bd.container,children:[m,c.jsx(b2e,{message:e})]}):c.jsxs("div",{"data-message-type":"carousel",style:bd.container,children:[m,c.jsx(mB,{listingCards:e.cards,messageId:e.messageId,componentId:e.componentId,title:i,searchRequestJson:e.searchRequestJson})]})},yl={container:{display:"flex",alignItems:"center",justifyContent:"center"},icon:{transition:"transform 0.3s ease"},rotating:{animation:"status-rotate 3s linear infinite"},pulsing:{animation:"status-pulse 2s ease-in-out infinite"},shuffling:{animation:"status-shuffle 2.5s ease-in-out infinite"},getIconStyle:(e,t)=>
1549{const n={...yl.icon,width:`${e}rem`,height:`${e}rem`};return t==="rotate"?{...n,...yl.rotating}:t==="pulse"?{...n,...yl.pulsing}:t==="shuffle"?{...n,...yl.shuffling}:n},keyframes:` 1550 @keyframes status-rotate { 1551 0% { 1552 transform: rotate(0deg); 1553 } 1554 100% { 1555 transform: rotate(360deg); 1556 } 1557 } 1558 1559 @keyframes status-pulse { 1560 0%, 100% { 1561 transform: scale(1); 1562 opacity: 1; 1563 } 1564 50% { 1565 transform: scale(1.1); 1566 opacity: 0.8; 1567 } 1568 } 1569 1570 @keyframes status-shuffle { 1571 0% { 1572 transform: translateX(0) translateY(0) rotate(0deg); 1573 } 1574 12.5% { 1575 transform: translateX(2px) translateY(-1px) rotate(2deg); 1576 } 1577 25% { 1578 transform: translateX(-1px) translateY(2px) rotate(-1deg); 1579 } 1580 37.5% { 1581 transform: translateX(1.5px) translateY(-1.5px) rotate(1.5deg); 1582 } 1583 50% { 1584 transform: translateX(-2px) translateY(1px) rotate(-2deg); 1585 } 1586 62.5% { 1587 transform: translateX(1px) translateY(-2px) rotate(1deg); 1588 } 1589 75% { 1590 transform: translateX(-1.5px) translateY(1.5px) rotate(-1.5deg); 1591 } 1592 87.5% { 1593 transform: translateX(1px) translateY(-1px) rotate(0.5deg); 1594 } 1595 100% { 1596 transform: translateX(0) translateY(0) rotate(0deg); 1597 } 1598 } 1599 1600 @keyframes shuffle-card-1 { 1601 0% { 1602 transform: translateX(0px); 1603 z-index: 1; 1604 } 1605 33.33% { 1606 transform: translateX(2.986px); 1607 z-index: 2; 1608 } 1609 66.66% { 1610 transform: translateX(6.569px); 1611 z-index: 3; 1612 } 1613 100% { 1614 transform: translateX(0px); 1615 z-index: 1; 1616 } 1617 } 1618 1619 @keyframes shuffle-card-2 { 1620 0% { 1621 transform: translateX(0px); 1622 z-index: 2; 1623 } 1624 33.33% { 1625 transform: translateX(3.583px); 1626 z-index: 3; 1627 } 1628 66.66% { 1629 transform: translateX(-2.986px); 1630 z-index: 1; 1631 } 1632 100% { 1633 transform: translateX(0px); 1634 z-index: 2; 1635 } 1636 } 1637 1638 @keyframes shuffle-card-3 { 1639 0% { 1640 transform: translateX(0px); 1641 z-index: 3; 1642 } 1643 33.33% { 1644 transform: translateX(-6.569px); 1645 z-index: 1; 1646 } 1647 66.66% { 1648 transform: translateX(-3.583px); 1649 z-index: 2; 1650 } 1651 100% { 1652 transform: translateX(0px); 1653 z-index: 3; 1654 } 1655 } 1656 `},Mk=({size:e=1.25,animationType:t="shuffle",customStyles:n={}})=>{const r={...yl.container,...n},i=yl.getIconStyle(e,t);if(t==="shuffle"){const s={...r,position:"relative",width:`${e}rem`,height:`${e}rem`},l={position:"absolute",top:0,left:0,width:`${e}rem`,height:`${e}rem`};return c.jsxs("div",{style:s,children:[c.jsxs("svg",{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...l,animation:"shuffle-card-1 3s ease-in-out infinite",transform:"matrix(0.501438, -0.865194, -0.501372, -0.865232, 7.13867px, 19px)"},children:[c.jsx("rect",{width:"10.402",height:"10.402",rx:"2.98373",transform:"matrix(0.501438 -0.865194 -0.501372 -0.865232 7.13867 19)",fill:"url(#paint0_linear_1)"}),c.jsx("defs",{children:c.jsxs("linearGradient",{id:"paint0_linear_1",x1:"12.8344",y1:"13.7599",x2:"-6.07512",y2:"4.63446",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#42F098"}),c.jsx("stop",{offset:"1",stopColor:"#0471C4"})]})})]}),c.jsxs("svg",{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...l,animation:"shuffle-card-2 3s ease-in-out infinite"},children:[c.jsx("rect",{width:"10.402",height:"10.402",rx:"2.98373",transform:"matrix(0.501438 -0.865194 -0.501372 -0.865232 10.125 19)",fill:"url(#paint1_linear_2)"}),c.jsx("defs",{children:c.jsxs("linearGradient",{id:"paint1_linear_2",x1:"12.1226",y1:"6.92181",x2:"-2.91641",y2:"-0.597687",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#42F098"}),c.jsx("stop",{offset:"1",stopColor:"#FCDA2E"})]})})]}),c.jsxs("svg",{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...l,animation:"shuffle-card-3 3s ease-in-out infinite"},children:[c.jsx("rect",{width:"10.402",height:"10.402",rx:"2.98373",transform:"matrix(0.501438 -0.865194 -0.501372 -0.865232 13.708 19)",fill:"url(#paint2_linear_3)"}),c.jsx("defs",{children:c.jsxs("linearGradient",{id:"paint2_linear_3",x1:"-8.48011",y1:"-8.45069",x2:"9.95429",y2:"9.98452",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#FCDA2E"}),c.jsx("stop",{offset:"1",stopColor:"#FE6767"})]})})]}),c.jsx("style",{children:yl.keyframes})]})}return c.jsxs("div",{style:r,children:[c.jsx("img",{src:Rs,alt:"Status update",style:i}),c.jsx("style",{children:yl.keyframes})]})},Ky={container:{alignSelf:"flex-start",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",color:"var(--text-default-primary, #0E0E11)",display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)"},getContainerStyle:()=>({...Ky.container,alignItems:"flex-start"}),iconContainer:{display:"flex",alignItems:"center",justifyContent:"center"},text:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:400,lineHeight:"1.25rem",display:"flex",alignItems:"center"}},w2e=({message:e})=>{const t=e.text;return t?c.jsxs("div",{style:Ky.getContainerStyle(),children:[c.jsx(Mk,{size:1.25,animationType:"shuffle",customStyles:Ky.iconContainer}),c.jsx("div",{style:Ky.text,children:t})]}):null},vB=()=>
1656{if(xt())return;const e=document.querySelector('textarea[name="chat-input-textarea"]');e&&setTimeout(()=>e.focus(),0)},kc={option:{display:"flex",flexShrink:0,padding:"var(--spacing-x-small, 0.5rem) 1rem",justifyContent:"center",alignItems:"center",gap:"0.5rem",borderRadius:"var(--radius-round, 62.4375rem)",border:"none",backgroundColor:"var(--surface-secondary-default, #F2F2F3)",cursor:"pointer",transition:"background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease",color:"var(--text-default-primary, #0E0E11)",textAlign:"center",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:500,lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",userSelect:"none",whiteSpace:"nowrap",minHeight:"1.75rem"},optionElevated:{backgroundColor:"var(--surface-primary-default, #FFFFFF)",border:"1px solid var(--border-default, #E5E5E9)",borderColor:"var(--border-default, #E5E5E9)"},optionSelected:{backgroundColor:"var(--primary-default, #0E0E11)",color:"var(--text-default-inverted, #FFFFFF)",borderColor:"transparent",transform:"scale(0.98)"},optionHover:{backgroundColor:"var(--surface-tertiary-default, #E9E9EA)"},optionHoverElevated:{backgroundColor:"var(--surface-primary-hover, #F9F9FB)",borderColor:"var(--border-default-secondary, #C1C1C7)"},optionPressed:{backgroundColor:"var(--primary-default, #0E0E11)",color:"var(--text-default-inverted, #FFFFFF)",borderColor:"transparent",transform:"scale(0.98)"},optionDisabled:{cursor:"default",opacity:.6,backgroundColor:"var(--surface-tertiary-default, #E9E9EA)",color:"var(--text-default-tertiary, #ADADB5)"}},Pk=G.memo(({option:e,isSelected:t,isActive:n,isDisabled:r,onClick:i,restingSurface:s="secondary"})=>{const[l,u]=k.useState(!1),[d,h]=k.useState(!1),m=s==="primary",g=()=>{let y={...kc.option,...m?kc.optionElevated:{}};return!n||r?y={...y,...kc.optionDisabled}:t?y={...y,...kc.optionSelected}:d?y={...y,...kc.optionPressed}:l&&(y={...y,...m?kc.optionHoverElevated:kc.optionHover}),y};return c.jsx("div",{style:g(),onClick:i,onMouseEnter:()=>n&&!r&&u(!0),onMouseLeave:()=>{u(!1),h(!1)},onMouseDown:()=>{n&&!r&&h(!0)},onMouseUp:()=>h(!1),onTouchStart:()=>n&&!r&&h(!0),onTouchEnd:()=>h(!1),onTouchCancel:()=>h(!1),role:"button",tabIndex:n&&!r?0:-1,"aria-pressed":t,"aria-disabled":!n||r,onKeyDown:y=>{n&&!r&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),h(!0),i(),setTimeout(()=>h(!1),150))},children:e})}),Xy={container:{alignSelf:"flex-start",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",color:"var(--text-default-primary, #0E0E11)",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)",width:"100%"},getContainerStyle:()=>({...Xy.container}),question:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",color:"var(--text-default-primary, #0E0E11)",margin:"0"},optionsContainer:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"var(--spacing-3x-small, 0.25rem)",alignItems:"center",alignSelf:"stretch"}},C2e=140,I2e=160,k2e=200,E2e=220,eo={card:{position:"relative",cursor:"pointer",overflow:"hidden",borderRadius:"16px",backgroundColor:"transparent",transition:"box-shadow 0.2s ease, transform 0.15s ease",flexShrink:0},imageContainer:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden",borderRadius:"16px"},image:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center top",transition:"filter 0.25s ease, opacity 0.3s ease",borderRadius:"16px"},placeholder:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"16px"},gradientOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 15%, transparent 30%, transparent 50%, rgba(0, 0, 0, 0.15) 65%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.8) 100%)",pointerEvents:"none",borderRadius:"16px"},content:{position:"absolute",bottom:0,left:0,right:0,padding:"12px",display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1656p:"6px"},label:{color:"#ffffff",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"14px",fontWeight:600,lineHeight:"1.3",letterSpacing:"-0.01em",margin:0,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden"},checkBadge:{position:"absolute",top:"8px",right:"8px",width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"var(--primary-default, #0E0E11)",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.15s ease, transform 0.15s ease",zIndex:2},checkMark:{color:"#ffffff",fontSize:"14px",fontWeight:700,lineHeight:1}},T2e=G.memo(({option:e,isSelected:t,isActive:n,isDisabled:r,isMobile:i,onClick:s})=>{const[l,u]=k.useState(!1),[d,h]=k.useState(0),[m,g]=k.useState(!1),{colors:y}=ze(),b=e.heroImageUrls||[],S=b[d],I=d>=b.length,w=i?C2e:I2e,C=i?k2e:E2e,E=()=>{const R=d+1;R<b.length?(h(R),u(!1)):h(b.length)},A=!S||I||!l,_=()=>{const R={...eo.card,width:`${w}px`,height:`${C}px`};return!n||r?{...R,opacity:.5,cursor:"not-allowed"}:t?{...R,boxShadow:"0 0 0 3px var(--primary-default, #0E0E11)",transform:"scale(0.98)"}:R};return c.jsxs("div",{style:_(),onClick:()=>{n&&!r&&s()},onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),role:"button",tabIndex:n&&!r?0:-1,"aria-pressed":t,"aria-disabled":!n||r,onKeyDown:R=>{n&&!r&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),s())},children:[t&&c.jsx("div",{style:eo.checkBadge,children:c.jsx("span",{style:eo.checkMark,children:"â"})}),c.jsxs("div",{style:eo.imageContainer,children:[A&&c.jsx("div",{style:{...eo.placeholder,backgroundColor:y.backgroundTertiary},children:c.jsx("img",{src:_a,alt:"",style:{width:"40px",height:"40px",opacity:.3}})}),S&&!I&&c.jsx("img",{src:S,alt:e.label,style:{...eo.image,opacity:l?1:0,filter:m&&!i&&n&&!r?"brightness(1.1)":"brightness(1)"},onLoad:()=>u(!0),onError:E,loading:"lazy"})]}),c.jsx("div",{style:eo.gradientOverlay}),c.jsx("div",{style:eo.content,children:c.jsx("h4",{style:eo.label,children:e.label})})]})}),A2e=12,b8={cardsContainer:{display:"flex",flexDirection:"row",alignItems:"stretch",width:"100%",gap:`${A2e}px`,overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",scrollSnapType:"x mandatory",WebkitOverflowScrolling:"touch",paddingTop:"2px",paddingBottom:"4px"},cardWrapper:{flexShrink:0,scrollSnapAlign:"start"}};function _2e(e){return!e||e.length===0?!1:e.some(t=>t.heroImageUrls&&t.heroImageUrls.length>0)}const R2e=({message:e})=>{const{isMobile:t}=We(),n=e.componentId,r=U(b=>b.multipleChoiceAnswers),i=U(b=>b.toggleMultipleChoiceAnswer),s=U(b=>b.assistantInProgress),{trackMultipleChoiceChipClick:l}=Nt(),u=n in r,d=r[n]||new Set,h=k.useRef(null),m=b=>{!u||s||(i(n,b),l(e.messageId,e.componentId),t||vB())},g=_2e(e.answerOptions),y=e.answerOptions?e.answerOptions.map(b=>b.label):e.options;return c.jsxs("div",{"data-message-id":e.messageId,"data-component-id":e.componentId,"data-message-type":"multiple_choice_question","data-role":"assistant",style:Xy.getContainerStyle(),children:[c.jsx("p",{style:Xy.question,children:e.question}),g?c.jsxs(c.Fragment,{children:[c.jsx("style",{children:` 1657 .visual-mcq-cards::-webkit-scrollbar {
1658 display: none; 1659 } 1660 `}),c.jsx("div",{ref:h,className:"visual-mcq-cards",style:b8.cardsContainer,children:e.answerOptions.map((b,S)=>c.jsx("div",{style:b8.cardWrapper,children:c.jsx(T2e,{option:b,isSelected:d.has(b.label),isActive:u,isDisabled:s,isMobile:t,onClick:()=>m(b.label)})},`${e.componentId}-${S}`))})]}):c.jsx("div",{style:Xy.optionsContainer,children:y.map(b=>c.jsx(Pk,{option:b,isSelected:d.has(b),isActive:u,isDisabled:s,onClick:()=>m(b)},b))})]})},j2e={chat:[{path:"M11.5 17l-4.3 3.2V17H6.5A2.5 2.5 0 0 1 4 14.5v-8A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5v8a2.5 2.5 0 0 1-2.5 2.5h-6Z"}],camera:[{path:"M6.5 19h11a2 2 0 0 0 2-2V9.5a2 2 0 0 0-2-2h-2.5L13.65 5.4a1 1 0 0 0-.84-.45h-1.62a1 1 0 0 0-.84.45L9 7.5H6.5a2 2 0 0 0-2 2V17a2 2 0 0 0 2 2Z"},{circle:{cx:12,cy:13.25,r:3.4}}],sliders:[{path:"M4 8.5h4.5M13 8.5H20"},{circle:{cx:10.75,cy:8.5,r:2.25}},{path:"M4 15.5h9.25M17.75 15.5H20"},{circle:{cx:15.5,cy:15.5,r:2.25}}],grid:[{path:"M5.25 4.5h4A0.75 0.75 0 0 1 10 5.25v4a0.75 0.75 0 0 1-.75.75h-4a0.75 0.75 0 0 1-.75-.75v-4a0.75 0.75 0 0 1 .75-.75Z"},{path:"M14.75 4.5h4a0.75 0.75 0 0 1 .75.75v4a0.75 0.75 0 0 1-.75.75h-4A0.75 0.75 0 0 1 14 9.25v-4a0.75 0.75 0 0 1 .75-.75Z"},{path:"M5.25 14h4a0.75 0.75 0 0 1 .75.75v4a0.75 0.75 0 0 1-.75.75h-4a0.75 0.75 0 0 1-.75-.75v-4A0.75 0.75 0 0 1 5.25 14Z"},{path:"M14.75 14h4a0.75 0.75 0 0 1 .75.75v4a0.75 0.75 0 0 1-.75.75h-4a0.75 0.75 0 0 1-.75-.75v-4A0.75 0.75 0 0 1 14.75 14Z"}],eye:[{path:"M3 12C4.9 8.6 8.2 6.5 12 6.5s7.1 2.1 9 5.5c-1.9 3.4-5.2 5.5-9 5.5S4.9 15.4 3 12Z"},{circle:{cx:12,cy:12,r:3}}],microphone:[{path:"M12 3.5a3 3 0 0 1 3 3V12a3 3 0 0 1-6 0V6.5a3 3 0 0 1 3-3Z"},{path:"M18 11.5a6 6 0 0 1-12 0"},{path:"M12 17.5V21M9.2 21h5.6"}],heart:[{path:"M12 20.2l-7-7.1a4.55 4.55 0 0 1 0-6.45 4.55 4.55 0 0 1 6.45 0l.55.55.55-.55a4.55 4.55 0 0 1 6.45 0 4.55 4.55 0 0 1 0 6.45Z"}],mirror:[{path:"M5 3.5h14A1.5 1.5 0 0 1 20.5 5v14a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 19V5A1.5 1.5 0 0 1 5 3.5Z"},{circle:{cx:12,cy:9.4,r:2.2}},{path:"M7.9 18.3a4.2 4.2 0 0 1 8.2 0"}]},O2e="#0E0E11",L2e={microphone:{icon:"microphone",bg:"var(--Gradients-lemon, linear-gradient(90deg, #FCDA2E 0%, #FDB341 100%))",glow:!0,muted:.29},sliders:{icon:"sliders",bg:"linear-gradient(90deg, #42F098 0%, #B2E358 100%)",muted:!0},grid:{icon:"grid",bg:"linear-gradient(90deg, #0471C4 0%, #28BBAA 100%)",muted:!0}},D2e={microphone:"speak",sliders:"questions",grid:"browse"},M2e=(e,t)=>e&&(D2e[e]??e)||`option_${t+1}`,P2e=.58,F2e=e=>`linear-gradient(rgba(255, 255, 255, ${e}), rgba(255, 255, 255, ${e}))`,B2e="0 3px 12px rgba(253, 179, 65, 0.5)",N2e=({name:e})=>c.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:j2e[e].map((t,n)=>"circle"in t?c.jsx("circle",{cx:t.circle.cx,cy:t.circle.cy,r:t.circle.r},n):c.jsx("path",{d:t.path},n))}),z2e=({bg:e,muted:t=!1,glow:n=!1,children:r})=>{const i=t===!0?P2e:typeof t=="number"?t:0;return c.jsx("span",{style:{...Fr.iconBadge,background:i>0?`${F2e(i)}, ${e}`:e,color:O2e,boxShadow:n?B2e:"none"},children:r})},x8="1.25rem",H2e="var(--spacing-2x-small, 0.5rem)",Fr={container:{alignSelf:"stretch",width:"100%",display:"flex",flexDirection:"column",color:"var(--text-default-primary, #0E0E11)",paddingTop:"var(--spacing-small, 0.75rem)"},header:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"flex-start",gap:H2e,padding:"0 0 var(--spacing-small, 0.75rem)"},headerIcon:{flexShrink:0,width:x8,height:x8,marginTop:"0.125rem"},headerText:{display:"flex",flexDirection:"column",gap:"0.125rem",minWidth:0},question:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",margin:0},optionsList:{display:"flex",flexDirection:"column",gap:"var(--spacing-x-small, 0.5rem)",paddingLeft:0},optionRow:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-small, 0.75rem)",padding:"var(--spacing-small, 0.75rem) var(--spacing-medium, 1rem)",cursor:"pointer",textAlign:"left",appearance:"none",WebkitAppearance:"none",backgroundColor:"var(--surface-primary-default, #FFFFFF)",border:"1px solid var(--border-default-primary, #DDDDDF)",borderRadius:"var(--radius-medium, 0.5rem)",width:"100%",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",lineHeight:"var(--line-height-large, 1.5rem)",transition:"background-color 0.15s ease, transform 0.15s ease"},optionHover:{backgroundColor:"var(--hover-bg-subtle, #F6F6F7)"},optionPressed:{backgroundColor:"var(--dropdown-button-active, #ECECEE)",transform:"scale(0.98)"},optionDisabled:{cursor:"default"},iconBadge:{flexShrink:0,width:"2rem",height:"2rem",borderRadius:"999px",display:"flex",alignItems:"center",justifyContent:"center"},optionText:{flex:1,display:"flex",flexDirection:"column",gap:"0.0625rem",minWidth:0},optionHeading:{fontSize:"0.9375rem",fontWeight:450,color:"var(--text-default-primary, #0E0E11)",lineHeight:"1.35",letterSpacing:"-0.01rem"},optionSub:{fontSize:"var(--size-x-small, 0.875rem)",color:"var(--text-default-secondary, #6B6B76)",lineHeight:"1.3"},returnHint:{flexShrink:0,color:"var(--text-default-secondary, #6B6B76)",fontSize:"0.85rem",lineHeight:"var(--line-height-large, 1.5rem)"},footnote:{margin:0,paddingTop:"var(--spacing-medium, 1rem)",color:"var(--text-default-secondary, #6B6B76)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",lineHeight:"1.4",letterSpacing:"-0.005rem"}},U2e=({message:e})=>{const{isMobile:t}=We(),n=e.componentId,r=U(_=>_.multipleChoiceAnswers),i=U(_=>_.setSingleMultipleChoiceAnswer),s=U(_=>_.assistantInProgress),l=Ji(_=>_.sendUserMessage),u=nr(_=>_.setNudge),{trackMultipleChoiceChipClick:d,trackChoseHowToProceedOption:h}=Nt(),[m,g]=k.useState(null),[y,b]=k.useState(null),S=n in r,I=S&&!s,w=(_,R,L)=>I?L?{..._,...Fr.optionPressed}:R?{..._,...Fr.optionHover}:_:{..._,...Fr.optionDisabled},C=e.answerOptions?e.answerOptions.map(_=>({label:_.label,sublabel:_.sublabel,voicePrompt:_.voicePrompt,icon:_.icon})):e.options.map(_=>({label:_})),E=async _=>{if(I){i(n,_),d(e.messageId,e.componentId);try{await l?.("")}catch{}}},A=(_,R)=>{if(I){if(h(M2e(_.icon,R),e.messageId,e.componentId),_.voicePrompt){d(e.messageId,e.componentId),u(_.voicePrompt);return}E(_.label)}};return c.jsxs("div",{"data-message-id":e.messageId,"data-component-id":e.componentId,"data-message-type":"multiple_choice_question","data-single-choice-prompt":"true","data-role":"assistant",style:{...Fr.container,opacity:S?1:.6},children:[c.jsxs("div",{style:Fr.header,children:[c.jsx("img",{src:Rs,alt:"",style:Fr.headerIcon}),c.jsx("div",{style:Fr.headerText,children:c.jsx("p",{style:Fr.question,children:e.question})})]}
1660),c.jsx("div",{style:Fr.optionsList,children:C.map((_,R)=>{const L=m===R,j=y===R,O=_.icon?L2e[_.icon]:void 0;return c.jsxs("button",{type:"button",style:w(Fr.optionRow,L,j),disabled:!I,onClick:()=>A(_,R),onMouseEnter:()=>g(R),onMouseLeave:()=>{g(null),b(null)},onMouseDown:()=>I&&b(R),onMouseUp:()=>b(null),onTouchStart:()=>I&&b(R),onTouchEnd:()=>b(null),onTouchCancel:()=>b(null),children:[O?c.jsx(z2e,{bg:O.bg,muted:O.muted,glow:O.glow,children:c.jsx(N2e,{name:O.icon})}):c.jsx("span",{style:Fr.iconBadge}),c.jsxs("span",{style:Fr.optionText,children:[c.jsx("span",{style:Fr.optionHeading,children:_.label}),_.sublabel?c.jsx("span",{style:Fr.optionSub,children:_.sublabel}):null]}),L&&I&&!t&&c.jsx("span",{style:Fr.returnHint,"aria-hidden":"true",children:"â"})]},`${e.componentId}-${R}`)})}),c.jsxs("p",{style:Fr.footnote,children:["Something else? Type it in the ",c.jsx("strong",{children:"chat box"})," below."]})]})},ys={container:{alignSelf:"flex-start",paddingTop:"var(--spacing-small, 0.75rem)",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",color:"var(--text-default-primary, #0E0E11)",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)",width:"100%"},getContainerStyle:()=>({...ys.container}),titleSection:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)"},titleIcon:{width:"1.25rem",height:"1.25rem"},titleText:{color:"var(--text-default-secondary, #3F3F4A)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-x-small, 0.9375rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00938rem",display:"flex",alignItems:"center"},optionsContainer:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"var(--spacing-x-small, 0.5rem)",alignItems:"flex-start",alignSelf:"stretch"},option:{display:"inline-flex",padding:"var(--spacing-small, 0.75rem) var(--spacing-medium, 1rem)",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default-primary, #DDDDDF)",backgroundColor:"var(--surface-primary-default, #FFF)",cursor:"pointer",transition:"background-color 0.15s ease, transform 0.15s ease",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",userSelect:"none"},optionHover:{backgroundColor:"var(--hover-bg-subtle)"},optionPressed:{backgroundColor:"var(--dropdown-button-active)",transform:"scale(0.95)"},optionDisabled:{opacity:.5,cursor:"not-allowed",backgroundColor:"var(--surface-secondary-default, #F2F2F3)"}},W2e=({message:e})=>{const t=Ji(l=>l.sendUserMessage),{trackOneClickSuggestionClick:n}=Nt(),r=U(l=>l.assistantInProgress),i=async l=>{if(!r){n(e.messageId,e.componentId);try{await t?.(l)}catch{}}},s=(l,u)=>{let d={...ys.option};return r?d={...d,...ys.optionDisabled}:u?d={...d,...ys.optionPressed}:l&&(d={...d,...ys.optionHover}),d};return c.jsxs("div",{"data-message-id":e.messageId,"data-component-id":e.componentId,"data-message-type":"one_click_suggestion_panel","data-role":"assistant",style:ys.getContainerStyle(),children:[c.jsxs("div",{style:ys.titleSection,children:[c.jsx("img",{src:Rs,alt:"Suggestions",style:ys.titleIcon}),c.jsx("span",{style:ys.titleText,children:"Suggestions"})]}),c.jsx("div",{style:ys.optionsContainer,children:e.options.map(l=>{const[u,d]=G.useState(!1),[h,m]=G.useState(!1);return c.jsx("div",{style:s(u,h),onClick:()=>i(l),onMouseEnter:()=>!r&&d(!0),onMouseLeave:()=>{d(!1),m(!1)},onMouseDown:()=>!r&&m(!0),onMouseUp:()=>m(!1),onTouchStart:()=>!r&&m(!0),onTouchEnd:()=>m(!1),onTouchCancel:()=>m(!1),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onKeyDown:g=>{!r&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),m(!0),i(l),setTimeout(()=>m(!1),150))},children:l},l)})})]})},V2e=140,q2e=160,G2e=200,Y2e=220,Na={card:{position:"relative",curs
1660or:"pointer",overflow:"hidden",borderRadius:"16px",backgroundColor:"transparent"},imageContainer:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden",borderRadius:"16px"},image:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center top",transition:"filter 0.25s ease, opacity 0.3s ease",borderRadius:"16px"},placeholder:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"16px"},gradientOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 15%, transparent 30%, transparent 50%, rgba(0, 0, 0, 0.15) 65%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.8) 100%)",pointerEvents:"none",borderRadius:"16px"},content:{position:"absolute",bottom:0,left:0,right:0,padding:"12px",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"6px"},categoryName:{color:"#ffffff",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"14px",fontWeight:600,lineHeight:"1.3",letterSpacing:"-0.01em",margin:0,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden"},exploreHint:{display:"flex",flexDirection:"row",alignItems:"center",gap:"3px",padding:"4px 8px",backgroundColor:"rgba(255, 255, 255, 0.2)",borderRadius:"12px",backdropFilter:"blur(4px)",transition:"opacity 0.2s ease, background-color 0.2s ease"},exploreText:{color:"#ffffff",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"10px",fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase"},arrow:{color:"#ffffff",fontSize:"10px",transition:"transform 0.2s ease"},cardDisabled:{opacity:.5,cursor:"not-allowed"}},K2e=({category:e,isMobile:t,messageId:n,componentId:r})=>{const[i,s]=k.useState(!1),[l,u]=k.useState(!1),[d,h]=k.useState(!1),{colors:m}=ze(),g=Ji(_=>_.sendUserMessage),{trackCategoryCarouselCardClick:y}=Nt(),b=U(_=>_.assistantInProgress),S=e.heroImageUrls?.[0],I=t?V2e:q2e,w=t?G2e:Y2e,C=async()=>{if(!b){y(n,r);try{await g?.(e.categoryName)}catch(_){console.error("Failed to send category query:",_)}}},E=!S||l||!i,A=()=>{const _={...Na.card,width:`${I}px`,height:`${w}px`};return b?{..._,...Na.cardDisabled}:_};return c.jsxs("div",{style:A(),onClick:C,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),role:"button",tabIndex:b?-1:0,"aria-disabled":b,onKeyDown:_=>{!b&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),C())},children:[c.jsxs("div",{style:Na.imageContainer,children:[E&&c.jsx("div",{style:{...Na.placeholder,backgroundColor:m.backgroundTertiary},children:c.jsx("img",{src:_a,alt:"",style:{width:"40px",height:"40px",opacity:.3}})}),S&&!l&&c.jsx("img",{src:S,alt:e.categoryName,style:{...Na.image,opacity:i?1:0,filter:d&&!t&&!b?"brightness(1.1)":"brightness(1)"},onLoad:()=>s(!0),onError:()=>u(!0),loading:"lazy"})]}),c.jsx("div",{style:Na.gradientOverlay}),c.jsxs("div",{style:Na.content,children:[c.jsx("h4",{style:Na.categoryName,children:e.categoryName}),c.jsxs("div",{style:{...Na.exploreHint,backgroundColor:d&&!t&&!b?"rgba(255, 255, 255, 0.35)":"rgba(255, 255, 255, 0.2)"},children:[c.jsx("span",{style:Na.exploreText,children:"Explore"}),c.jsx("span",{style:{...Na.arrow,transform:d&&!t&&!b?"translateX(2px)":"translateX(0)"},children:"â"})]})]})]})},X2e=12,al={container:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",gap:"12px"},carouselWrapper:{position:"relative",width:"100%"},carouselBackground:{width:"100%",boxSizing:"border-box"},cardsContainer:{display:"flex",flexDirection:"row",alignItems:"stretch",width:"100%",gap:`${X2e}px`,overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",scrollSnapType:"x mandatory",WebkitOverflowScrolling:"touch",paddingTop:"2px",paddingBottom:"4px"},cardWrapper:{flexShrink:0,scrollSnapAlign:"start"},titleSection:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)"},titleIcon:{width:"1.25rem",height:"1.25rem"},title:{color:"var(--text-default-secondary, #3F3F4A)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-x-small, 0.9375rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00938rem",margin:0}},J2e=({message:e})=>{const{isMobile:t}=We(),n=k.useRef(null),{trackCategoryCarouselScroll:r}=Nt(),i=k.useRef(!1),s=k.useRef(!1);k.useLayoutEffect(()=>{const u=n.current;if(!u)return;s.current=!1,i.current=!1,u.scrollLeft=0;const d=requestAnimationFrame(()=>{u.scrollLeft=0,s.current=!0});return()=>cancelAnimationFrame(d)},[e.componentId]);const l=()=>{s.current&&(i.current||(i.current=!0,r(e.messageId,e.componentId)))};return c.jsxs("div",{"data-message-type":"category_carousel",style:al.container,children:[e.title&&c.jsxs("div",{style:al.titleSection,children:[c.jsx("img",{src:Rs,alt:"",style:al.titleIcon}),c.jsx("h3",{style:al.title,children:e.title})]}),c.jsx("style",{children:` 1661 .category-carousel-cards::-webkit-scrollbar {
1662 display: none; 1663 } 1664 `}),c.jsx("div",{style:al.carouselWrapper,children:c.jsx("div",{style:al.carouselBackground,children:c.jsx("div",{ref:n,className:"category-carousel-cards",style:al.cardsContainer,onScroll:l,children:e.categories.map((u,d)=>c.jsx("div",{style:al.cardWrapper,children:c.jsx(K2e,{category:u,isMobile:t,messageId:e.messageId,componentId:e.componentId})},`${e.componentId}-${d}`))})})})]})},S8=({label:e="Explore this",onClick:t,interactive:n=!0,shimmer:r=!1})=>c.jsx(Lk,{as:"button",type:"button",shape:"pill",shimmer:r,shimmerLoop:!0,tabIndex:n?0:-1,disabled:!n,label:c.jsx("span",{children:e}),icon:c.jsx("span",{"aria-hidden":"true",children:"â"}),onClick:i=>{i.stopPropagation(),n&&t()},style:{marginTop:"4px",gap:"5px",padding:"7px 14px",cursor:n?"pointer":"default",color:"#0E0E11",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"13px",fontWeight:600,letterSpacing:"0.01em",boxShadow:"0 4px 14px rgba(0,0,0,0.24)"}}),Z2e=520,Q2e=300,$2e=356,ebe=340,tbe=.9,nbe=22,rbe=12,ibe=18,abe="var(--spacing-medium, 1rem)",sbe=10,obe="0 1px 2px rgba(14,14,17,0.05), 0 6px 16px rgba(14,14,17,0.06)",lbe="0 1px 2px rgba(14,14,17,0.06), 0 10px 24px rgba(14,14,17,0.16), 0 22px 48px rgba(14,14,17,0.12)",cbe="0 2px 4px rgba(14,14,17,0.08), 0 14px 30px rgba(14,14,17,0.20), 0 26px 56px rgba(14,14,17,0.14)",iy=22,ube=` 1665 .exploration-carousel-track { scrollbar-width: none; -ms-overflow-style: none; } 1666 .exploration-carousel-track::-webkit-scrollbar { display: none; } 1667 .exploration-flip-inner { 1668 transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); 1669 } 1670 .exploration-flip-back-scroll { scrollbar-width: thin; } 1671 .exploration-flip-back-scroll::-webkit-scrollbar { width: 5px; } 1672 .exploration-flip-back-scroll::-webkit-scrollbar-thumb { 1673 background: rgba(255,255,255,0.28); border-radius: 999px; 1674 } 1675 @media (prefers-reduced-motion: reduce) { 1676 .exploration-flip-inner { transition-duration: 0.001s; } 1677 } 1678`,dbe=({title:e,cards:t,disabled:n=!1,onExplore:r,titleIconSrc:i,dataMessageType:s="exploration_carousel",onFirstInteraction:l,edgeToEdge:u=!1})=>{const d=k.useRef(null),[h,m]=k.useState(360);if(k.useLayoutEffect(()=>{const b=d.current;if(!b)return;const S=()=>m(b.clientWidth);S();const I=new ResizeObserver(S);return I.observe(b),()=>I.disconnect()},[]),t.length===0)return null;const g=h>=Z2e,y=u&&!g;return c.jsxs("div",{ref:d,"data-message-type":s,style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"var(--spacing-small, 0.75rem)",opacity:n?.6:1,transition:"opacity 0.2s ease"},children:[c.jsx("style",{children:ube}),e&&c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",minWidth:0},children:[i&&c.jsx("img",{src:i,alt:"",style:{width:"1.25rem",height:"1.25rem",flexShrink:0}}),c.jsx("h3",{style:{margin:0,color:"var(--text-default-secondary, #4A4A52)",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-x-small, 0.9375rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00938rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})]}),c.jsx(hbe,{cards:t,isDesktop:g,disabled:n,onExplore:r,onFirstInteraction:l,edgeToEdge:y})]})};function fbe(e){const t=k.useRef(!1);return()=>{t.current||!e||(t.current=!0,e())}}const hbe=({cards:e,isDesktop:t,disabled:n,onExplore:r,onFirstInteraction:i,edgeToEdge:s=!1})=>{const[l,u]=k.useState(0),[d,h]=k.useState(null),m=k.useRef(null),g=k.useRef(0),y=fbe(i);k.useEffect(()=>()=>cancelAnimationFrame(g.current),[]);const b=t?ibe:rbe,S=t?$2e:Q2e,I=s?abe:`${nbe}px`,w=t?`min(calc((100% - ${b}px) / 1.2), ${ebe}px)`:`calc((100% - ${b}px) / 1.2)`,C=()=>{y(),cancelAnimationFrame(g.current),g.current=requestAnimationFrame(()=>{const A=m.current;if(!A)return;const _=A.scrollWidth-A.clientWidth,R=4;let L=0;if(_<=R)L=0;else if(A.scrollLeft<=R)L=0;else if(A.scrollLeft>=_-R)L=e.length-1;else{const j=A.scrollLeft+A.clientWidth/2;let O=1/0;
1678Array.from(A.children).forEach((F,D)=>{const H=F,V=H.offsetLeft+H.offsetWidth/2,Y=Math.abs(V-j);Y<O&&(O=Y,L=D)})}u(L),h(j=>j!==null&&j!==L?null:j)})},E=A=>h(_=>_===A?null:A);return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[c.jsx("div",{ref:m,className:"exploration-carousel-track",onScroll:C,style:{display:"flex",alignItems:"center",gap:`${b}px`,overflowX:"auto",scrollSnapType:"x proximity",padding:`${sbe}px ${s?I:"0px"}`,scrollPaddingLeft:I,scrollPaddingRight:I,marginLeft:s?"calc(-1 * var(--spacing-medium, 1rem))":void 0,marginRight:s?"calc(-1 * var(--spacing-medium, 1rem))":void 0,touchAction:"pan-x pan-y",overscrollBehaviorX:"contain"},children:e.map((A,_)=>{const R=_===l,L=!n&&(t||R),j=_===0?"start":_===e.length-1?"end":"center";return c.jsx("div",{style:{flex:"0 0 auto",width:w,height:`${S}px`,scrollSnapAlign:j,transform:`scale(${R?1:tbe})`,transformOrigin:"center center",opacity:R?1:.72,transition:"transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease"},children:c.jsx(pbe,{look:A,active:R,interactive:L,enableHover:t,disabled:n,shadow:R?lbe:obe,flipped:d===_,onToggleFlip:()=>E(_),onExplore:r})},`${A.label}-${_}`)})}),e.length>1&&c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"5px"},"aria-hidden":"true",children:e.map((A,_)=>c.jsx("span",{style:{width:_===l?"18px":"6px",height:"6px",borderRadius:"999px",backgroundColor:_===l?"var(--text-default-tertiary, #71717F)":"var(--border-default-primary, #D7D7DC)",transition:"width 0.28s ease, background-color 0.28s ease"}},_))})]})},pbe=({look:e,active:t,interactive:n,enableHover:r,disabled:i,shadow:s,flipped:l,onToggleFlip:u,onExplore:d})=>{const[h,m]=k.useState(!1),[g,y]=k.useState(!1),[b,S]=k.useState(!1),I=!!e.imageUrl&&!g,w=!i&&t&&n&&!l,C=r&&b&&!i,E=_=>{n&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),u())},A={position:"absolute",inset:0,borderRadius:`${iy}px`,overflow:"hidden",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",cursor:n?"pointer":"default"};return c.jsx("div",{onMouseEnter:()=>r&&S(!0),onMouseLeave:()=>r&&S(!1),style:{position:"relative",width:"100%",height:"100%",boxSizing:"border-box",borderRadius:`${iy}px`,boxShadow:C?cbe:s,transform:C?"translateY(-3px)":"translateY(0)",transition:"transform 0.25s ease, box-shadow 0.25s ease",perspective:"1000px"},children:c.jsxs("div",{className:"exploration-flip-inner",style:{position:"relative",width:"100%",height:"100%",transformStyle:"preserve-3d",transform:l?"rotateY(180deg)":"rotateY(0deg)"},children:[c.jsxs("div",{role:"button",tabIndex:n&&!l?0:-1,"aria-expanded":l,"aria-disabled":!n,"aria-hidden":l,"aria-label":"Show details",onClick:()=>n&&u(),onKeyDown:E,style:A,children:[I&&c.jsx("img",{src:e.imageUrl,alt:e.label,draggable:!1,onLoad:()=>m(!0),onError:()=>y(!0),style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center top",borderRadius:`${iy}px`,opacity:h?1:0,transition:"opacity 0.4s ease",userSelect:"none"}}),c.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:`${iy}px`,background:"linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.80) 20%, rgba(0,0,0,0.38) 44%, rgba(0,0,0,0.06) 66%, rgba(0,0,0,0.10) 100%)"}}),c.jsxs("div",{style:{position:"absolute",left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"8px",padding:"0 18px 18px"},children:[c.jsx("h4",{style:{margin:0,color:"#ffffff",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"23px",fontWeight:600,lineHeight:1.15,letterSpacing:"-0.015em",textShadow:"0 1px 6px rgba(0,0,0,0.35)"},children:e.label}),e.description&&c.jsx("p",{style:{margin:0,color:"rgba(255,255,255,0.88)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"1.5",letterSpacing:"-0.00813rem",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,textShadow:"0 1px 4px rgba(0,0,0,0.35)"},children:e.description}),c.jsx(S8,{label:"Explore this",interactive:n&&!l,shimmer:w,onClick:()=>d(e.label)})]})]}),c.jsxs("div",{role:"button",tabIndex:n&&l?0:-1,"aria-label":"Hide details","aria-hidden":!l,onClick:()=>n&&u(),onKeyDown:E,style:{...A,transform:"rotateY(180deg)",display:"flex",flexDirection:"column",backgroundColor:"#15151a"},children:[I&&c.jsx("img",{src:e.imageUrl,alt:"","aria-hidden":"true",draggable:!1,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center top",filter:"blur(18px) brightness(0.45) saturate(1.1)",transform:"scale(1.15)",userSelect:"none"}}),c.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none",background:"linear-gradient(160deg, rgba(8,8,11,0.78) 0%, rgba(8,8,11,0.92) 100%)"}}),c.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",height:"100%",boxSizing:"border-box",padding:"18px 18px 18px",gap:"10px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"10px"},children:[c.jsx("h4",{style:{margin:0,color:"#ffffff",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"21px",fontWeight:600,lineHeight:1.15,letterSpacing:"-0.015em"},children:e.label}),c.jsx("button",{type:"button","aria-label":"Back to photo",tabIndex:n&&l?0:-1,onClick:_=>{_.stopPropagation(),n&&u()},style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",borderRadius:"999px",border:"none",cursor:n?"pointer":"default",background:"rgba(255,255,255,0.14)",color:"#ffffff",fontSize:"16px",lineHeight:1},children:c.jsx("span",{"aria-hidden":"true",children:"Ã"})})]}),c.jsx("div",{className:"exploration-flip-back-scroll",style:{flex:1,minHeight:0,overflowY:"auto",color:"rgba(255,255,255,0.90)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"1.55",letterSpacing:"-0.00813rem",whiteSpace:"pre-wrap"},children:e.description||"No further details for this direction."}),c.jsx("div",{style:{alignSelf:"flex-start"},children:c.jsx(S8,{label:"Explore this",interactive:n&&l,shimmer:!1,onClick:()=>d(e.label)})})]})]})]})})},mbe=e=>e?e.thumbnailImage?.image.address.imageUrl??e.images?.[0]?.image.address.imageUrl??null:null,gbe=({message:e})=>{const t=Ji(d=>d.sendUserMessage),{trackExplorationCarouselCardClick:n,trackExplorationCarouselScroll:r}=Nt(),i=U(d=>d.assistantInProgress),s=k.useMemo(()=>e.items.map(d=>({label:d.label,description:d.description||void 0,imageUrl:mbe(d.heroCard)})).filter(d=>d.imageUrl!==null),[e.items]),l=async d=>{if(!i){n(e.messageId,e.componentId);try{await t?.(d)}catch(h){console.error("Failed to send exploration query:",h)}}},u=()=>{r(e.messageId,e.componentId)};return s.length===0?null:c.jsx(dbe,{title:e.title,cards:s,disabled:i,onExplore:l,titleIconSrc:Rs,dataMessageType:"exploration_carousel",onFirstInteraction:u,edgeToEdge:!0})},Ym="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%3e%3cpath%20d='M2.5%204L6%208L9.5%204'%20stroke='var(--text-default-tertiary,%20%2371717F)'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ybe="13rem",w8=` 1679 /* The outgoing line lifts up and out; the incoming line rises in from below 1680 â together they read as a single "swipe up" as the reasoning advances. */ 1681 @keyframes reasoning-trail-swap-out { 1682 from { opacity: 1; transform: translateY(0); } 1683 to { opacity: 0; transform: translateY(-100%); } 1684 } 1685 @keyframes reasoning-trail-swap-in { 1686 from { opacity: 0; transform: translateY(100%); } 1687 to { opacity: 1; transform: translateY(0); } 1688 } 1689 @keyframes reasoning-trail-step-in { 1690 from { opacity: 0; transform: translateY(0.25rem); } 1691 to { opacity: 1; transform: translateY(0); } 1692 } 1693`,Mn={container:{position:"relative",alignSelf:"flex-start",width:"100%",maxWidth:"40rem",boxSizing:"border-box",borderRadius:"var(--radius-large, 0.75rem)",overflow:"hidden"},innerSurface:{position:"relative",borderRadius:"var(--radius-large, 0.75rem)",overflow:"hidden"},bar:{display:"flex",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",width:"100%",height:"2.5rem",padding:0,boxSizing:"border-box",background:"none",border:"none",cursor:"pointer",textAlign:"left",color:"var(--text-default-tertiary, #71717F)"},label:{flexShrink:0,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-medium, 500)",letterSpacing:"-0.00813rem"},labelThinking:{color:"var(--text-default-secondary, #71717F)"},labelDone:{color:"var(--text-default-secondary, #71717F)"}
1693,sep:{flexShrink:0,width:"0.1875rem",height:"0.1875rem",borderRadius:"var(--radius-round, 999px)",backgroundColor:"var(--border-default-primary, #DDDDDF)"},tickerWrap:{flex:1,minWidth:0,position:"relative",overflow:"hidden",height:"var(--line-height-small, 1.25rem)"},tickerText:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00813rem",color:"var(--text-default-secondary, #4A4A52)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},spacer:{flex:1,minWidth:0},chevron:{width:"12px",height:"12px",flexShrink:0,transition:"transform 0.18s ease"},viewport:{maxHeight:ybe,overflowY:"auto",scrollbarWidth:"none",msOverflowStyle:"none",padding:"0 0 var(--spacing-small, 0.75rem)"},trail:{display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",paddingTop:"var(--spacing-3x-small, 0.25rem)"},step:{display:"flex",flexDirection:"column",gap:"var(--spacing-4x-small, 0.125rem)",animation:"reasoning-trail-step-in 0.2s ease"},stepTitle:{margin:0,color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-medium, 500)",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00813rem"},stepContent:{margin:0,color:"var(--text-default-secondary, #4A4A52)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.00813rem",whiteSpace:"pre-wrap",wordBreak:"break-word"}},vbe=({expanded:e})=>c.jsx("img",{src:Ym,alt:"","aria-hidden":"true",style:{...Mn.chevron,transform:e?"rotate(180deg)":"rotate(0deg)"}}),C8=340,bbe=({id:e,text:t,animate:n,textStyle:r,wrapperStyle:i})=>{const[s,l]=k.useState([{id:e,text:t}]),u=k.useRef(e);k.useEffect(()=>{if(e===u.current){l(m=>m.map(g=>g.id===e?{id:e,text:t}:g));return}if(u.current=e,!n){l([{id:e,text:t}]);return}l(m=>[m[m.length-1],{id:e,text:t}]);const h=setTimeout(()=>l([{id:e,text:t}]),C8);return()=>clearTimeout(h)},[e,t,n]);const d=s.length>1;return c.jsx("span",{style:{position:"relative",overflow:"hidden",...i},children:s.map((h,m)=>{const g=m===s.length-1;return c.jsx("span",{style:{...r,position:"absolute",top:0,left:0,right:0,animation:d?`${g?"reasoning-trail-swap-in":"reasoning-trail-swap-out"} ${C8}ms cubic-bezier(0.22, 1, 0.36, 1) forwards`:void 0},children:h.text},h.id)})})};function xbe(e){const t=Math.round(e/1e3);if(t<=1)return"a moment";if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return r?`${n}m ${r}s`:`${n}m`}const Sbe=({steps:e,status:t,bare:n=!1})=>{const[r,i]=k.useState(!1),s=k.useRef(null),l=t==="thinking",u=e.length>0?e[e.length-1]:null,d=k.useRef(null),[h,m]=k.useState(null);if(k.useEffect(()=>{n||(l?(d.current==null&&(d.current=Date.now()),m(null)):d.current!=null&&(m(Date.now()-d.current),d.current=null))},[n,l]),k.useEffect(()=>{if(n||!r||!l)return;const b=s.current;b&&(b.scrollTop=b.scrollHeight)},[n,e,r,l]),n)return e.length===0?null:c.jsxs("div",{"data-message-type":"reasoning",style:Mn.container,children:[c.jsx("div",{style:Mn.trail,children:e.map(b=>c.jsxs("div",{style:Mn.step,children:[b.title&&c.jsx("p",{style:Mn.stepTitle,children:b.title}),b.content&&c.jsx("p",{style:Mn.stepContent,children:b.content})]},b.id))}),c.jsx("style",{children:w8})]});if(e.length===0&&!l)return null;const g=l&&!r&&!!u?.title,y=h!=null?`Reasoned for ${xbe(h)}`:"Reasoned for a moment";return c.jsxs("div",{"data-message-type":"reasoning",style:Mn.container,children:[c.jsxs("div",{style:Mn.innerSurface,children:[c.jsxs("button",{type:"button",onClick:()=>i(b=>!b),style:Mn.bar,"aria-expanded":r,children:[c.jsx(vbe,{expanded:r}),l?c.jsxs(c.Fragment,{children:[c.jsx("span",{style:{...Mn.label,...Mn.labelThinking},children:"Thinking"}),g&&u?c.jsxs(c.Fragment,{children:[c.jsx("span",{style:Mn.sep}),c.jsx(bbe,{id:u.id,text:u.title,animate:!0,textStyle:Mn.tickerText,wrapperStyle:Mn.tickerWrap})]}):c.jsx("span",{style:Mn.spacer})]}):c.jsxs(c.Fragment,{children:[c.jsx("span",{style:{...Mn.label,...Mn.labelDone},children:y}),c.jsx("span",{style:Mn.spacer})]})]}),r&&(e.length>0||l)&&c.jsx("div",{ref:s,className:"webkit-scrollbar-hidden",style:Mn.viewport,children:c.jsx("div",{style:Mn.trail,children:e.map(b=>c.jsxs("div",{style:Mn.step,children:[b.title&&c.jsx("p",{style:Mn.stepTitle,children:b.title}),b.content&&c.jsx("p",{style:Mn.stepContent,children:b.content})]},b.id))})})]}),c.jsx("style",{children:w8})]})},wbe=({blocks:e,status:t,bare:n=!1})=>{const r=k.useMemo(()=>e.map(i=>({id:i.componentId,title:i.title,content:i.body||(i.title?"":i.fullText)})).filter(i=>i.title?.trim()||i.content?.trim()),[e]);return r.length===0&&t!=="thinking"?null:c.jsx(Sbe,{steps:r,status:t,bare:n})},Cbe=` 1694 linear-gradient( 1695 90deg, 1696 transparent 0%, 1697 transparent 20%, 1698 var(--loading-shimmer) 40%, 1699 var(--loading-shimmer) 50%, 1700 var(--loading-shimmer) 60%, 1701 transparent 80%, 1702 transparent 100% 1703 ), 1704 var(--loading-bg) 1705`,Ibe=` 1706 linear-gradient( 1707 90deg, 1708 transparent 0%, 1709 transparent 30%, 1710 var(--loading-shimmer-strong) 50%, 1711 transparent 70%, 1712 transparent 100% 1713 ), 1714 var(--loading-bg) 1715`,Jy=({width:e="100%",height:t="0.6rem",borderRadius:n="0.3rem",variant:r="stripes",style:i})=>{const s=r==="sweep";return c.jsx("span",{"aria-hidden":"true",style:{display:"block",width:e,height:t,borderRadius:n,background:s?Ibe:Cbe,backgroundSize:s?"200% 100%":"300% 100%",animation:s?"shimmerSweep 1.5s ease-in-out infinite":"shimmerStripes 3s linear infinite",...i}})},bB=1200,xB=3,kbe=bB*xB,I8=.6,Ebe=` 1716 @property --tnt-block-angle { 1717 syntax: '<angle>'; 1718 initial-value: 0deg; 1719 inherits: false; 1720 }
1721 @keyframes tnt-block-border-rotate { 1722 to { --tnt-block-angle: 360deg; } 1723 } 1724 @keyframes tnt-block-border-fade { 1725 0% { opacity: 0; } 1726 12% { opacity: ${I8}; } 1727 78% { opacity: ${I8}; } 1728 100% { opacity: 0; } 1729 } 1730`,Tbe=({radius:e,onDone:t})=>c.jsxs(c.Fragment,{children:[c.jsx("style",{children:Ebe}),c.jsx("div",{"aria-hidden":!0,onAnimationEnd:n=>{n.animationName==="tnt-block-border-fade"&&t?.()},style:{position:"absolute",inset:0,borderRadius:e,padding:"2px",background:"conic-gradient(from var(--tnt-block-angle, 0deg), transparent 0deg, rgba(201,138,30,0.12) 40deg, #C98A1E 95deg, #E7B95C 120deg, rgba(201,138,30,0.12) 150deg, transparent 195deg)",WebkitMask:"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",WebkitMaskComposite:"xor",mask:"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",maskComposite:"exclude",animation:`tnt-block-border-rotate ${bB}ms linear ${xB}, tnt-block-border-fade ${kbe}ms ease-in-out 1 forwards`,opacity:0,pointerEvents:"none",zIndex:1}})]}),Abe={fontFamily:"var(--font-Arizona-serif)",fontSize:"1.0625rem",lineHeight:"var(--line-height-medium)",color:"var(--text-default-primary)",letterSpacing:"-0.012rem"},_be={fontFamily:"var(--font-Inter)",fontSize:"0.8125rem",lineHeight:"var(--line-height-small)",color:"var(--text-default-tertiary)"},SB={fontFamily:"var(--font-Inter)",fontWeight:"var(--weight-bold, 700)",fontSize:"0.8125rem",letterSpacing:"0.06em"},cf="#C98A1E",ay={header:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",minHeight:"3.5rem",padding:"0.75rem var(--spacing-large, 1.5rem)",width:"100%",boxSizing:"border-box",flexShrink:0,position:"relative",zIndex:100},centerSection:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",flex:"1 1 0",minWidth:0},rightSection:{display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"flex-start",justifyContent:"flex-end",gap:"var(--spacing-2x-small, 0.5rem)",flexShrink:0},closeSlot:{display:"flex",alignItems:"center",marginLeft:"var(--spacing-3x-small, 0.25rem)"}},Rbe={display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",overflowWrap:"break-word",wordBreak:"break-word"},B1=({children:e,right:t,onClose:n})=>c.jsxs("div",{style:ay.header,children:[c.jsx("div",{style:ay.centerSection,children:e}),c.jsxs("div",{style:ay.rightSection,children:[t,c.jsx("div",{style:ay.closeSlot,children:c.jsx(Hl,{size:"compact",onClose:n})})]})]}),wB=({label:e,color:t})=>c.jsx("span",{style:{...SB,color:t},children:e}),jbe=()=>c.jsx("img",{src:Ym,className:"tnt-block-chevron",alt:"","aria-hidden":"true",style:{width:"14px",height:"14px",display:"block"}}),Obe=({loading:e=!1})=>e?c.jsx("span",{className:"tnt-block-spinner","aria-label":"Loading"}):c.jsx(jbe,{});function Lbe(e,t,n,r){const s=c.jsx(wB,{label:e,color:t});return c.jsxs("span",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[s,c.jsx("span",{children:n})]})}function Dbe(e,t,n){return c.jsxs("span",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.5rem",width:"100%",textAlign:"left"},children:[c.jsx(wB,{label:e,color:t}),c.jsx("span",{style:{fontFamily:"var(--font-Arizona-serif)",fontSize:"1.6rem",lineHeight:1.15,fontWeight:"var(--weight-semibold, 600)",letterSpacing:"-0.015rem",color:"var(--text-default-primary)"},children:n})]})}const k8=(...e)=>e.filter(Boolean).join(" "),CB=` 1731 /* Quiet secondary island â no hairline. Reads as an elevated pocket on both 1732 light (soft gray on white chat) and dark (elevated +1). Chevron + lift keep 1733 the tap affordance; hover/active deepen the wash, not a border. */ 1734 .tnt-block-head { 1735 position: relative; 1736 display: flex; 1737 flex-direction: column; 1738 align-items: stretch; 1739 gap: 0.375rem; 1740 width: 100%; 1741 text-align: left; 1742 background: var(--surface-secondary-default); 1743 border: none; 1744 border-radius: 14px; 1745 padding: 1.05rem 1.2rem; 1746 cursor: pointer; 1747 transition: 1748 background 0.18s ease, 1749 transform 0.18s ease; 1750 } 1751 /* Title on the left (may wrap to several lines) + chevron in a right column. 1752 align-items:center tracks the vertical middle of the title block â on a 1753 3-line title the chevron lands on the middle line, never top-aligned with 1754 line 1 (unlike the multi-line split-panel Collapse control). */ 1755 .tnt-block-head__title-row { 1756 display: flex; 1757 align-items: center; 1758 gap: 1rem; 1759 width: 100%; 1760 min-width: 0; 1761 } 1762 .tnt-block-head:hover { 1763 background: var(--surface-secondary-hover); 1764 transform: translateY(-1px); 1765 } 1766 .tnt-block-head:active { 1767 transform: translateY(0); 1768 } 1769 /* The block currently shown in the split panel: a slightly stronger wash so 1770 the chat clearly points at what's open on the right â no double-border. */ 1771 .tnt-block-head.is-active { 1772 background: var(--surface-secondary-hover); 1773 } 1774 /* Inline dropdown head: it's the top row of the unified card, so it drops its 1775 own background/rounding (the card provides them) and its hover lift. 1776 We also pin the surface on hover/active: on mobile the base gray :hover tint 1777 otherwise sticks after a tap, leaving the head gray while the body stays 1778 quiet. Side padding matches the body below so title and questions share one 1779 left edge. */ 1780 .tnt-block-head.is-inline { 1781 background: transparent; 1782 border-radius: 0; 1783 padding: 1.125rem 0.75rem; 1784 } 1785 .tnt-block-head.is-inline:hover, 1786 .tnt-block-head.is-inline:active { 1787 transform: none; 1788 background: transparent; 1789 } 1790 /* Chevron rotation is driven off the head's open class (no JS state), with 1791 the same easing as the height slide so icon and expand read as one motion. 1792 The base asset points DOWN; we rotate it into the direction each path wants. */ 1793 .tnt-block-chevron { 1794 transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1); 1795 } 1796 /* Directional chevrons (desktop split panel + mobile overlay for later 1797 CUSTOMIZE blocks): RIGHT when collapsed, LEFT when open. Never a 1798 dropdown-style down/up chevron on this path. The is-desktop class
1798name 1799 is historical â it now means "directional overlay" and also applies on 1800 mobile when expandMode is overlay (not the first-in-chat inline dropdown). */ 1801 .tnt-block-head.is-desktop .tnt-block-chevron { 1802 transform: rotate(-90deg); 1803 } 1804 .tnt-block-head.is-desktop.is-active .tnt-block-chevron { 1805 transform: rotate(90deg); 1806 } 1807 /* Mobile first CUSTOMIZE only (inline dropdown): classic dropdown chevron â 1808 DOWN when collapsed, UP when open. Scoped to non-directional heads. */ 1809 .tnt-block-head:not(.is-desktop).is-inline-open .tnt-block-chevron, 1810 .tnt-block-head:not(.is-desktop).is-active .tnt-block-chevron { 1811 transform: rotate(180deg); 1812 } 1813 @keyframes tnt-takeover-in { 1814 from { opacity: 0; transform: translateY(0.6rem); } 1815 to { opacity: 1; transform: translateY(0); } 1816 } 1817 @keyframes tnt-block-body-in { 1818 from { opacity: 0; transform: translateY(0.25rem); } 1819 to { opacity: 1; transform: translateY(0); } 1820 } 1821 /* The mobile-only inline dropdown (turn 0). Open/close animates the body's 1822 HEIGHT by growing its single grid row from 0fr to 1fr (the grid-rows trick 1823 that works for auto-height content), with the clip child hiding the body 1824 mid-slide. The transition lives on .is-animatable, added only AFTER first 1825 paint, so a default-open block mounts straight into the open state with no 1826 jarring auto-expand and only later toggles animate. */ 1827 .tnt-block-inline { 1828 display: grid; 1829 grid-template-rows: 0fr; 1830 opacity: 0; 1831 } 1832 .tnt-block-inline.is-animatable { 1833 transition: 1834 grid-template-rows 0.26s cubic-bezier(0.22, 1, 0.36, 1), 1835 opacity 0.2s ease; 1836 } 1837 .tnt-block-inline.is-open { 1838 grid-template-rows: 1fr; 1839 opacity: 1; 1840 } 1841 .tnt-block-inline__clip { 1842 overflow: hidden; 1843 min-height: 0; 1844 } 1845 /* The unified inline card: ONE soft secondary surface wrapping the head row 1846 and the body. Same quiet island as the overlay head (no hairline), so 1847 turn-0 mobile matches later CUSTOMIZE chrome. Clips content so the 1848 transparent head and body inside read as a single seamless block. 1849 --tnt-block-surface lets chip-row edge fades match this wash. */ 1850 .tnt-block-inline-card { 1851 border: none; 1852 border-radius: 14px; 1853 background: var(--surface-secondary-default); 1854 --tnt-block-surface: var(--surface-secondary-default); 1855 overflow: hidden; 1856 } 1857 .tnt-block-inline__panel { 1858 min-width: 0; 1859 } 1860 @keyframes tnt-block-spin { to { transform: rotate(360deg); } } 1861 .tnt-block-spinner { 1862 width: 15px; 1863 height: 15px; 1864 border-radius: var(--radius-round); 1865 border: 2px solid var(--border-default); 1866 border-top-color: var(--text-default-tertiary); 1867 animation: tnt-block-spin 0.7s linear infinite; 1868 } 1869`,Fk=({title:e,contentMaxWidth:t,onClose:n,children:r,variant:i="fill",showHeader:s=!0})=>{const l=i==="inline",{isMobile:u}=We(),d=s&&!l&&!u,h={width:"100%",maxWidth:t,margin:"0 auto"},m={margin:0,width:"100%",minWidth:0,textAlign:"left"};return c.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:0,gap:d?"var(--spacing-small, 0.75rem)":void 0,...l?{}:{height:"100%"}},children:[d?c.jsx(B1,{onClose:n,children:c.jsx("h3",{style:m,children:e})}):s&&c.jsx("div",{style:{flexShrink:0},children:c.jsxs("div",{style:{...h,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",padding:"0.9rem 1.1rem 0.4rem",boxSizing:"border-box"},children:[c.jsx("span",{style:{flex:1,minWidth:0,textAlign:"left"},children:e}),c.jsx(Hl,{variant:"modal",onClose:n})]})}),c.jsx("div",{style:{...l?{}:{flex:1,minHeight:0,overflowY:"auto",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"}},className:l?void 0:"webkit-scrollbar-hidden",children:c.jsx("div",{style:{...h,padding:l?"0 0.75rem 1.125rem 0.75rem":d?"0 var(--spacing-large, 1.5rem) 1.4rem":"0.7rem 1.1rem 1.4rem",boxSizing:"border-box",animation:"tnt-block-body-in 0.22s ease"},children:r})})]})},Mbe=({title:e,contentMaxWidth:t,onClose:n,children:r})=>(k.useEffect(()=>{const i=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=i}},[]),c.jsxs(Aa,{children:[c.jsx("style",{children:CB}),c.jsx("div",{style:{position:"fixed",top:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",left:0,right:0,bottom:"var(--input-height, 6rem)",zIndex:1090,display:"flex",flexDirection:"column",background:"var(--surface-primary-default)",boxShadow:"0 -10px 30px -24px var(--color-shadow)",animation:"tnt-takeover-in 0.24s cubic-bezier(0.22, 1, 0.36, 1)"},children:c.jsx(Fk,{title:e,contentMaxWidth:t,onClose:n,children:r})})]})),Pbe=({blockId:e,title:t,takeoverTitle:n,subtitle:r,contentMaxWidth:i="46rem",expandMode:s="overlay",inlineTitle:l,children:u,loading:d=!1})=>{const{isMobile:h}=We(),m=kn(O=>O.activeBlockId===e),g=kn(O=>O.setExpanded),y=s==="inline"&&h,[b,S]=G.useState(!0),[I,w]=G.useState(!1);G.useEffect(()=>{if(!y)return;const O=requestAnimationFrame(()=>w(!0));return()=>cancelAnimationFrame(O)},[y]);const[C,E]=G.useState(!d),A=G.useRef(d);G.useEffect(()=>{A.current&&!d&&E(!0),A.current=d},[d]);const _=O=>{if(y){S(D=>!D);return}const F=O.target?.closest?.(".tnt-block-chevron");if(m){F&&(h?g(e,!1):lf());return}g(e,!0),h||Ja.getState().setOwner("block")},R=k8("tnt-block-head",!y&&"is-desktop",!y&&m&&"is-active",y&&"is-inline",y&&b&&"is-inline-open"),L=c.jsxs("button",{type:"button",className:R,onClick:_,children:[!y&&C&&c.jsx(Tbe,{radius:"14px",onDone:()=>E(!1)}),c.jsxs("div",{className:"tnt-block-head__title-row",children:[c.jsx("span",{style:{...Abe,flex:1,minWidth:0},children:y?l??t:t}),c.jsx("span",{style:{flexShrink:0,display:"inline-flex",alignItems:"center"},children:c.jsx(Obe,{loading:d})})]}),!(y&&b)&&(r??(d?c.jsx(Jy,{width:"62%"}):null))]}),j=c.jsxs("div",{className:"tnt-block-inline-card",children:[L,c.jsx("div",{className:k8("tnt-block-inline",b&&"is-open",I&&"is-animatable"),children:c.jsx("div",{className:"tnt-block-inline__clip",children:c.jsx("div",{className:"tnt-block-inline__panel",children:c.jsx(Fk,{title:n??t,contentMaxWidth:i,onClose:()=>S(!1),variant:"inline",showHeader:!1,children:u})})})})]});return c.jsxs("div",{style:{width:"100%"},children:[c.jsx("style",{children:CB}),y?j:c.jsxs(c.Fragment,{children:[L,m&&h?c.jsx(Mbe,{title:n??t,contentMaxWidth:i,onClose:()=>g(e,!1),children:u}):null]})]})},Gp="structured_question_send_button",Fbe=()=>ir.getState().tutorialsAlreadySeenByUser.has(Gp),Bbe=()=>{ir.getState().markTutorialComplete(Gp)},Nbe='[data-input-container="true"]',IB=()=>{const{trackStructuredQuestionSendButtonHintShown:e,trackStructuredQuestionSendButtonHintDismissed:t}
1869=Nt(),n=ir(l=>l.activePopupHintName===Gp),r=k.useCallback((l,u)=>{const{activePopupHintName:d,showPopupHint:h}=ir.getState();d===null&&ir.getState().hasLoadedTutorialProgress&&(Fbe()||(Bbe(),h(Gp,{messageId:l,componentId:u}),e(l,u)))},[e]),i=k.useCallback(()=>{const{popupHintContext:l,hidePopupHint:u}=ir.getState();u(),l?.messageId&&l?.componentId&&t(l.messageId,l.componentId)},[t]),s={visible:n,eyebrow:"Tip",ariaLabel:"Tip: tap Send to apply your answers",spotlightSelector:Nbe,onDismiss:i,body:c.jsxs(c.Fragment,{children:["After completing the questions, tap"," ",c.jsx("span",{style:{color:cf,fontWeight:600},children:"Send"})," to apply your answers."]})};return{maybeShowOnChipClick:r,overlayProps:s}},zbe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='13'%20height='13'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23C98A1E'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M2%2012s3.5-7%2010-7%2010%207%2010%207-3.5%207-10%207-10-7-10-7z'/%3e%3ccircle%20cx='12'%20cy='12'%20r='3'/%3e%3c/svg%3e",kB="Letâs get on the same page",Hbe="This helps us align on what youâre looking for. Answer the ones you can and hit the Send button.",EB=cf,TB=EB;function AB(e){return Dbe("CUSTOMIZE",TB,kB)}const Ube=({children:e})=>c.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.45rem"},children:e}),Wbe=()=>{const{isMobile:e}=We(),t=e?"sweep":"stripes";return c.jsxs("div",{"aria-hidden":"true",children:[c.jsx("div",{style:{margin:"0 0 1.4rem",maxWidth:"22rem"},children:c.jsx(Jy,{width:"100%",variant:t})}),c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[0,1,2].map(n=>c.jsxs("div",{children:[c.jsx("div",{style:{marginBottom:"0.75rem",maxWidth:"15rem"},children:c.jsx(Jy,{width:"100%",variant:t})}),c.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.45rem"},children:[0,1,2,3].map(r=>c.jsx(Jy,{width:`${4.5+(n+r)%3*1.6}rem`,height:"1.85rem",borderRadius:"var(--radius-round)",variant:t,style:{display:"inline-block",flexShrink:0}},r))})]},n))})]})},Vbe=({value:e,placeholder:t,onChange:n})=>{const r={margin:0,width:"100%",boxSizing:"border-box",fontFamily:"var(--font-Inter)",fontSize:"0.875rem",lineHeight:"var(--line-height-medium)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-medium)",padding:"0.55rem 0.75rem",whiteSpace:"pre-wrap",overflowWrap:"break-word",wordBreak:"break-word"};return c.jsxs("div",{style:{position:"relative",marginTop:"0.6rem"},children:[c.jsx("div",{"aria-hidden":"true",style:{...r,visibility:"hidden"},children:(e||t)+"â"}),c.jsx("textarea",{value:e,onChange:i=>n(i.target.value),placeholder:t,rows:1,style:{...r,position:"absolute",inset:0,height:"100%",resize:"none",overflow:"hidden",background:"var(--surface-primary-default)",color:"var(--text-default-primary)",outline:"none"}})]})},qbe=({onClick:e})=>{const[t,n]=G.useState(!1);return c.jsxs("button",{type:"button",onClick:e,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),"aria-label":"Show me what these options look like",style:{flexShrink:0,display:"inline-flex",alignItems:"center",verticalAlign:"middle",marginLeft:"0.5rem",gap:"0.3rem",padding:"0.28rem 0.6rem",borderRadius:"var(--radius-round)",border:`1px solid ${t?cf:"var(--border-default)"}`,background:t?"rgba(201, 138, 30, 0.08)":"transparent",color:cf,fontFamily:"var(--font-Inter)",fontSize:"0.75rem",fontWeight:"var(--weight-medium, 500)",lineHeight:1,cursor:"pointer",transition:"background 0.15s ease, border-color 0.15s ease",whiteSpace:"nowrap"},children:[c.jsx("img",{src:zbe,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",display:"block"}}),"Show me"]})},Gbe=({componentId:e,question:t,qi:n,selected:r,writeIn:i,onToggle:s,onSetWriteIn:l,onShowMe:u})=>c.jsxs("div",{style:{display:"flex",alignItems:"flex-start"},children:[c.jsxs("div",{style:{flexShrink:0,width:"1.6rem",fontFamily:"var(--font-Arizona-serif)",fontSize:"0.95rem",lineHeight:"var(--line-height-medium)",fontWeight:"var(--weight-medium)",color:EB},children:[n+1,"."]}),c.jsxs("div",{style:{flex:1,minWidth:0},children:[c.jsxs("div",{style:{marginBottom:"0.6rem",fontFamily:"var(--font-Arizona-serif)",fontSize:"0.95rem",lineHeight:"var(--line-height-medium)",color:"var(--text-default-primary)"},children:[t.q,t.note?c.jsx("span",{style:{marginLeft:"0.4rem",fontFamily:"var(--font-Inter)",fontSize:"0.75rem",color:"var(--text-default-tertiary)"},children:t.note}):null,u?c.jsx(qbe,{onClick:u}):null]}),t.options.length>0?c.jsx(Ube,{children:t.options.map((d,h)=>c.jsx(Pk,{option:d.label,isSelected:r.includes(d.label),isActive:!0,isDisabled:!1,restingSurface:"primary",onClick:()=>s(d.label)},`${e}-q-${n}-o-${h}`))}):null,t.writeInPlaceholder?c.jsx(Vbe,{value:i,placeholder:t.writeInPlaceholder,onChange:l}):null]})]}),_B=({message:e})=>{const t=kn(b=>b.answersByBlock[e.componentId]),n=kn(b=>b.writeInsByBlock[e.componentId]),r=kn(b=>b.toggleOption),i=kn(b=>b.setWriteIn),s=kn(b=>b.markWriteInFired),{trackStructuredQuestionChipClick:l,trackStructuredQuestionWriteIn:u}=Nt(),{maybeShowOnChipClick:d}=IB(),h=(b,S)=>{r(e.componentId,b,S),l(e.messageId,e.componentId),d(e.messageId,e.componentId)},m=(b,S)=>{i(e.componentId,b,S),S.trim().length>0&&s(e.componentId,b)&&u(e.messageId,e.componentId)},g=(b,S)=>{ui.getState().open({blockId:e.componentId,questionIndex:b,messageId:e.messageId,questionText:S.q,options:S.options.map(I=>({label:I.label,query:I.visualSearchQuery??""}))})},y=b=>!!b.visual&&b.options.some(S=>(S.visualSearchQuery??"").trim().length>0);return e.questions.length===0?c.jsx(Wbe,{}):c.jsxs(c.Fragment,{children:[c.jsx("p",{style:{fontFamily:"var(--font-Inter)",fontSize:"0.875rem",lineHeight:"var(--line-height-medium)",color:"var(--text-default-secondary)",margin:"0 0 1.25rem"},children:Hbe}),c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"1.4rem"},children:e.questions.map((b,S)=>c.jsx(Gbe,{componentId:e.componentId,question:b,qi:S,selected:t?.[S]??[],writeIn:n?.[S]??"",onToggle:I=>h(S,I),onSetWriteIn:I=>m(S,I),onShowMe:y(b)?()=>g(S,b):void 0},`${e.componentId}-q-${S}`))})]})},Ybe=({message:e,expandMode:t="overlay"})=>{const r=(e.phase??"complete")!=="complete",i=e.peek||e.questions.filter(
1869Boolean).map(u=>u.q).join(" · "),s=Lbe("CUSTOMIZE",TB,kB),l=r||!i?void 0:c.jsx("span",{style:{..._be,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:i});return c.jsx(Pbe,{blockId:e.componentId,title:s,subtitle:l,takeoverTitle:AB(),expandMode:t,loading:r,children:c.jsx(_B,{message:e})})},Kbe=` 1870 @keyframes lane-body-in { 1871 from { opacity: 0; transform: translateY(-0.25rem); } 1872 to { opacity: 1; transform: translateY(0); } 1873 } 1874`,un={card:{display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)"},cardIndented:{borderLeft:"2px solid var(--border-default-secondary, #E8E8EA)",paddingLeft:"var(--spacing-small, 0.75rem)"},titleRow:{display:"flex",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)",width:"100%",padding:"0.25rem 0"},titleRowCollapsed:{cursor:"pointer",background:"none",border:"none",margin:0,textAlign:"left",font:"inherit",color:"inherit"},titleLeading:{display:"flex",alignItems:"flex-start",gap:"var(--spacing-2x-small, 0.375rem)",flex:1,minWidth:0},glyph:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",width:"var(--size-2x-sm, 0.8125rem)",height:"var(--size-2x-sm, 0.8125rem)"},checkmark:{display:"block",width:"var(--size-2x-sm, 0.8125rem)",height:"var(--size-2x-sm, 0.8125rem)"},glyphTop:{display:"flex",alignItems:"center",height:"var(--line-height-small, 1.25rem)",flexShrink:0},titleCol:{display:"flex",flexDirection:"column",flex:1,minWidth:0,gap:"0.125rem"},label:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-medium, 500)",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00813rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},countsLine:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",minWidth:0,minHeight:"var(--line-height-x-small, 1.125rem)"},countsIcon:{width:"0.75rem",height:"0.75rem",flexShrink:0},countsText:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},headline:{width:"100%",minWidth:0,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00813rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"var(--text-default-secondary, #71717F)"},reasonedText:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-2x-sm, 0.8125rem)",fontWeight:"var(--weight-regular, 400)",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00813rem",color:"var(--text-default-secondary, #71717F)",whiteSpace:"nowrap"},chevron:{flexShrink:0,color:"var(--text-default-tertiary, #71717F)",transition:"transform 0.18s ease"},collapseBtn:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:"0.125rem",margin:0,cursor:"pointer",color:"var(--text-default-tertiary, #71717F)"},rightControls:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",flexShrink:0},thumbs:{display:"flex",alignItems:"center",flexShrink:0,paddingLeft:"0.125rem"},thumb:{position:"relative",width:"1.5rem",height:"1.875rem",borderRadius:"0.375rem",objectFit:"cover",backgroundColor:"var(--surface-utilities-image-bg, #F2F2F3)",border:"2px solid var(--surface-primary-default, #FFFFFF)",boxShadow:"0 1px 3px rgba(14, 14, 17, 0.18)"},body:{display:"flex",flexDirection:"column",gap:"var(--spacing-2x-small, 0.5rem)",marginTop:"0.5rem",paddingBottom:"var(--spacing-small, 0.75rem)",animation:"lane-body-in 0.2s ease"}},E8=({expanded:e})=>c.jsx("img",{src:Ym,alt:"","aria-hidden":"true",style:{...un.chevron,transform:e?"rotate(180deg)":"rotate(0deg)"}});function Xbe(e){return e.find(t=>t.role==="ASSISTANT"&&t.type==="carousel")}function Jbe(e,t=5){const n=[];for(const r of e.cards){const i=r.thumbnailImage?.image?.address?.imageUrl||r.images?.[0]?.image?.address?.imageUrl;if(i&&n.push(i),n.length>=t)break}return n}function Zbe(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.role==="ASSISTANT"&&n.type==="reasoning"){const r=n.title;if(r)return r}}for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.role==="ASSISTANT"&&n.type==="status_update"){const r=n.text;if(r)return r}}return null}function Qbe(e){const t=Math.round(e/1e3);if(t<=1)return"a moment";if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return r?`${n}m ${r}s`:`${n}m`}const $be=({laneIndexInTurn:e,turnIsMultiLane:t,parts:n,canShowThinking:r,renderBlockBody:i})=>{const[s,l]=k.useState(t&&e>
18740),[u,d]=k.useState(!1),h=Xbe(n),m=h?.stats?.productCount??h?.cards.length??0,g=U(le=>h?.laneId?le.codeBlockPhrases[h.laneId]:void 0),y=!!h&&m>0,b=r&&!y,S=k.useRef(null),[I,w]=k.useState(null);k.useEffect(()=>{b?(S.current==null&&(S.current=Date.now()),w(null)):S.current!=null&&(w(Date.now()-S.current),S.current=null)},[b]);const C=h?.title??"",E=b?Zbe(n):null,A=E!=null,_=b&&!!h&&!y&&!A,R=n.filter(le=>le.type==="reasoning"),L=n.filter(le=>!(le.type==="reasoning"||b&&le.type==="status_update")),j=!b&&R.length>0&&!1,O=!b&&R.length>0,F=I!=null?`Reasoned for ${Qbe(I)}`:"Reasoned for a moment",D=t&&e>0,H=!!h&&(D||y&&!b),V=H&&s,Y=V&&h?Jbe(h):[],K=y||R.length>0,z=A?c.jsx("span",{style:un.glyph,children:c.jsx(Cl,{size:.8125})}):!b&&K?c.jsx("span",{style:un.glyph,children:c.jsx("img",{src:AP,alt:"Done",style:un.checkmark})}):null,q=H&&(V?c.jsx("span",{style:un.collapseBtn,"aria-hidden":"true",children:c.jsx(E8,{expanded:!1})}):c.jsx("button",{type:"button",style:un.collapseBtn,"aria-expanded":!0,"aria-label":"Hide results",onClick:()=>l(!0),children:c.jsx(E8,{expanded:!0})})),$=!s&&!!h&&!h.componentId?.includes("recently-interacted-carousel"),ue=($||q)&&c.jsxs("span",{style:un.rightControls,children:[$&&c.jsx(Kv,{}),q]}),ge=V&&Y.length>0&&c.jsx("div",{style:un.thumbs,"aria-hidden":"true",children:Y.map((le,ae)=>c.jsx("img",{src:le,alt:"",style:{...un.thumb,marginLeft:ae===0?0:"-0.5rem",zIndex:Y.length-ae}},ae))}),M=C!==""||z!==null||A||_||O||H||$,Z=!A&&!_&&h?.stats&&h.stats.productCount>0?c.jsxs("div",{style:un.countsLine,"data-testid":"lane-header-counts",children:[c.jsx("img",{src:Rs,alt:"","aria-hidden":"true",style:un.countsIcon}),c.jsx("span",{style:un.countsText,children:BM(h.stats.brandCount,h.stats.sellerCount,h.stats.productCount)})]}):null,te=_?c.jsxs("div",{style:un.countsLine,"aria-busy":"true","data-testid":"lane-header-loading",children:[c.jsx("img",{src:Rs,alt:"","aria-hidden":"true",style:un.countsIcon}),c.jsx(Dk,{phrases:g,singleLine:!0})]}):null,B=A?c.jsx("span",{style:un.headline,children:E}):te||(O?c.jsx("span",{style:un.reasonedText,children:F}):null),N=c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:un.titleLeading,children:[z&&c.jsx("span",{style:un.glyphTop,children:z}),c.jsxs("div",{style:un.titleCol,children:[c.jsx("span",{id:`lane-title-${e}`,style:un.label,children:C}),Z,B]})]}),ge,ue]});return c.jsxs("div",{className:"lane-card",style:t?{...un.card,...un.cardIndented}:un.card,"data-lane":e,children:[c.jsx("style",{children:Kbe}),M&&(V?c.jsx("button",{type:"button",style:{...un.titleRow,...un.titleRowCollapsed},"aria-expanded":!1,"aria-label":"Show results","data-testid":"lane-title-row",onClick:()=>l(!1),children:N}):c.jsx("div",{style:un.titleRow,"data-testid":"lane-title-row",children:N})),!s&&j,!V&&c.jsx("div",{style:un.body,children:i(L,r)})]})},exe={statusLine:{display:"flex",alignItems:"center",width:"100%",minHeight:"1.5rem",padding:"0.25rem 0"}},txe=({path:e})=>{const t=U(n=>n.codeBlockPhrases[e[0]]);return c.jsx("div",{style:exe.statusLine,"data-live":"true",children:c.jsx(Dk,{phrases:t})})};function nxe(e){const t=[];return e.forEach((n,r)=>{if(n.role==="USER"){t.push({messages:[n],userMessageIndex:r});return}t.length===0&&t.push({messages:[],userMessageIndex:-1}),t[t.length-1].messages.push(n)}),t}const rxe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10%203.33333C6.31833%203.33333%203.33333%206.31833%203.33333%2010C3.33333%2013.6817%206.31833%2016.6667%2010%2016.6667C13.1083%2016.6667%2015.7083%2014.5417%2016.4417%2011.6667H14.7083C14.025%2013.6083%2012.175%2015%2010%2015C7.2375%2015%205%2012.7625%205%2010C5%207.2375%207.2375%205%2010%205C11.3833%205%2012.6167%205.575%2013.5167%206.48333L10.8333%209.16667H16.6667V3.33333L14.7083%205.29167C13.5%204.08333%2011.8417%203.33333%2010%203.33333Z'%20fill='%23A6A6B0'/%3e%3c/svg%3e",sy={button:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0.375rem",borderRadius:"var(--radius-medium, 0.5rem)",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"transform 0.15s ease, background-color 0.15s ease",flexShrink:0},buttonHover:{backgroundColor:"var(--dropdown-button-hover)"},buttonPressed:{transform:"scale(0.95)"},icon:{width:"1.25rem",height:"1.25rem",filter:"var(--icon-filter)",transition:"filter 0.3s ease"}},ixe=()=>{const e=Ji(u=>u.resendUserMessage),t=U(u=>u.chatErrorState),[n,r]=G.useState(!1),[i,s]=G.useState(!1),l=()=>{t.lastWirePayload&&e?.(t.lastWirePayload)};return t.hasError?c.jsx("button",{style:{...sy.button,...n?sy.buttonHover:{},...i?sy.buttonPressed:{}},onClick:l,onMouseEnter:()=>r(!0),onMouseLeave:()=>{r(!1),s(!1)},onMouseDown:()=>s(!0),onMouseUp:()=>s(!1),title:"Resend message",children:c.jsx("img",{src:rxe,alt:"Resend",style:sy.icon})}):null},axe=/https?:\/\/[^\s<>"{}|\\^`[\]]+/i,ma={getContainerStyle:e=>({display:"flex",flexDirection:"column",paddingLeft:"var(--spacing-x-large, 2rem)",paddingTop:e===0?"0":"var(--spacing-medium, 1rem)",alignItems:"flex-end",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch"}),message:{display:"flex",flexDirection:"column",padding:"0.625rem 0.875rem",alignItems:"flex-start",ga
1874p:"var(--spacing-small, 0.75rem)",borderRadius:"var(--radius-x-large, 1rem) var(--radius-x-large, 1rem) var(--radius-none, 0) var(--radius-x-large, 1rem)",background:"var(--surface-secondary-default)",maxWidth:"90%"},messageWithPreview:{display:"flex",flexDirection:"column",padding:"0.625rem 0.875rem",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)",borderRadius:"var(--radius-x-large, 1rem) var(--radius-x-large, 1rem) var(--radius-none, 0) var(--radius-x-large, 1rem)",background:"var(--surface-secondary-default)",maxWidth:"320px",width:"100%"},textContainer:{alignSelf:"stretch"},text:{alignSelf:"stretch",color:"var(--text-default-primary)",fontFeatureSettings:"'ss01' on",fontFamily:'var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial")',fontSize:"var(--size-medium, 1.25rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.0125rem",whiteSpace:"pre-wrap"},imagesContainer:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"var(--spacing-small, 0.75rem)",alignSelf:"stretch"},image:{maxWidth:"12.5rem",maxHeight:"12.5rem",borderRadius:"var(--radius-medium, 0.5rem)",objectFit:"cover",border:"1px solid var(--border-default-primary)"},mcqContainer:{display:"flex",flexDirection:"column",gap:"var(--spacing-small, 0.75rem)",marginBottom:"var(--spacing-small, 0.75rem)",padding:"var(--spacing-small, 0.75rem)",backgroundColor:"var(--surface-tertiary-default)",borderRadius:"var(--radius-medium, 0.5rem)",border:"1px solid var(--border-default-primary)"},mcqQuestion:{color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-3x-sm, 0.75rem)",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)",letterSpacing:"-0.0075rem",marginBottom:"var(--spacing-x-small, 0.5rem)"},mcqAnswersContainer:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"var(--spacing-3x-small, 0.25rem)",alignItems:"center",justifyContent:"flex-start",alignSelf:"stretch"},mcqAnswer:{display:"inline-flex",padding:"var(--spacing-3x-small, 0.25rem) var(--spacing-x-small, 0.5rem)",justifyContent:"center",alignItems:"center",borderRadius:"var(--radius-round, 62.4375rem)",backgroundColor:"var(--surface-tertiary-default)",color:"var(--text-default-secondary)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)",letterSpacing:"-0.0075rem",userSelect:"none",minHeight:"1.5rem"},errorContainer:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"var(--spacing-small, 0.75rem)",width:"100%"},errorWrapper:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-small, 0.75rem)",maxWidth:"90%"}},sxe=({message:e,index:t,showErrorState:n=!1})=>{const i=(e.text?axe.test(e.text):!1)?ma.messageWithPreview:ma.message;if(nP(e))return null;const s=c.jsxs("div",{"data-message-id":e.messageId,style:i,children:[e.selectedListingCards&&e.selectedListingCards.length>0&&c.jsx(mB,{listingCards:e.selectedListingCards,messageId:e.messageId,componentId:"user-selected-listings",fromUserMessage:!0}),e.imageDataUrls&&e.imageDataUrls.length>0&&c.jsx("div",{style:ma.imagesContainer,children:e.imageDataUrls.map((l,u)=>c.jsx("img",{src:l,alt:`User uploaded image ${u+1}`,style:ma.image},u))}),e.mcqAnswers&&e.mcqAnswers.length>0&&c.jsx("div",{style:ma.mcqContainer,children:e.mcqAnswers.map(({questionId:l,question:u,selectedOptions:d})=>c.jsxs("div",{children:[c.jsx("div",{style:ma.mcqQuestion,children:u}),c.jsx("div",{style:ma.mcqAnswersContainer,children:d.map((h,m)=>c.jsx("div",{style:ma.mcqAnswer,children:h},m))})]},l))}),e.text&&c.jsxs("div",{style:ma.textContainer,children:[c.jsx("style",{children:` 1875 .user-message-text .markdown { 1876 font-family: var(--font-Arizona-serif, "ABC Arizona Mix Unlicensed Trial"); 1877 font-size: var(--size-medium, 1.25rem); 1878 font-weight: 400; 1879 line-height: var(--line-height-large, 1.5rem); 1880 letter-spacing: -0.0125rem; 1881 font-feature-settings: 'ss01' on; 1882 } 1883 .user-message-text .markdown p { 1884 white-space: pre-wrap; 1885 } 1886 `}),c.jsx("div",{className:"user-message-text",children:c.jsx(Ak,{content:e.text,enableGfm:!1,enableLinkPreviews:!0})})]})]});return n?c.jsx("div",{style:ma.getContainerStyle(t),children:c.jsxs("div",{style:ma.errorWrapper,children:[c.jsx(ixe,{}),s]})}):c.jsx("div",{style:ma.getContainerStyle(t),children:s})},oxe=e=>({container:{display:"flex",alignItems:"center",gap:"var(--spacing-small, 0.75rem)",padding:"var(--spacing-medium, 1rem)",borderRadius:"var(--radius-medium, 0.5rem)",border:`1px solid ${e.border}`,backgroundColor:e.backgroundSecondary,flexWrap:"wrap"},text:{color:e.textMuted,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",lineHeight:"var(--line-height-small, 1.25rem)",fontStyle:"italic"},link:{color:e.info??e.text,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",lineHeight:"var(--line-height-small, 1.25rem)",fontWeight:600,textDecoration:"underline",whiteSpace:"nowrap"}}),lxe=({message:e="Something went wrong. Please try again.",actionUrl:t,actionLabel:n})=>{const{colors:r}=ze(),i=oxe(r),s=()=>
1886{if(!t||!n)return e;const l=e.indexOf(n);if(l===-1)return e;const u=l+n.length;return c.jsxs(c.Fragment,{children:[e.slice(0,l),c.jsx("a",{style:i.link,href:t,target:"_blank",rel:"noopener noreferrer",children:e.slice(l,u)}),e.slice(u)]})};return c.jsx("div",{style:i.container,children:c.jsx("span",{style:i.text,children:s()})})},T8="bottom var(--duration-composer-handoff, 480ms) var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1)), padding var(--duration-composer-handoff, 480ms) var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1)), padding-bottom var(--duration-composer-handoff, 480ms) var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))",cxe="transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), padding-bottom 0.35s cubic-bezier(0.25, 0.1, 0.25, 1)",A8="background-color 0.2s ease-in-out, border-color 0.2s ease-in-out",_8=(...e)=>e.filter(Boolean).join(", "),Q5=e=>e===void 0?"0px":`max(env(safe-area-inset-bottom, 0px), ${e})`,uxe=(e,t)=>`translateY(calc(${Q5(e)} - ${t}px))`,Xv=({hold:e="window",seatOffset:t,ground:n="page",ridesKeyboard:r=!0,publishHeight:i=!0,children:s})=>{const{isMobile:l}=We(),{colors:u}=ze(),{height:d,isClosing:h}=zm(),m=k.useRef(null),g=ir(b=>b.activePopupHintName===Gp);k.useLayoutEffect(()=>{if(!i)return;const b=m.current;if(!b)return;const S=document.documentElement,I=()=>S.style.setProperty("--input-height",`${b.offsetHeight}px`);I();const w=typeof ResizeObserver<"u"?new ResizeObserver(I):null;return w?.observe(b),()=>{w?.disconnect(),S.style.removeProperty("--input-height")}},[i]);const y=k.useMemo(()=>{const b=xt(),S={width:"100%",display:"flex",justifyContent:"center",alignItems:"flex-end",flex:"none"};if(e==="flow")return{...S,position:"relative",zIndex:"auto",background:"transparent",padding:"var(--composer-gutter, 0.75rem 1rem)"};const I={...S,position:"fixed",left:0,right:0,zIndex:1210,pointerEvents:b?"none":"auto"},w=b&&r&&d>0,C=b&&h&&!w?cxe:null,E=b&&r?{transform:w?uxe(t,d):"translateY(0px)",backfaceVisibility:"hidden"}:{};if(n==="none")return{...I,bottom:Q5(t),...E,background:"transparent",padding:"0 var(--composer-padding-inline, 1.25rem)",...w?{paddingBottom:"0.5rem"}:{},transition:iu()?"none":_8(T8,C,A8)};const A=b||l?`var(--composer-ground, ${u.background})`:`linear-gradient(to bottom, transparent 0%, var(--composer-ground, ${u.background}) 40%)`;return{...I,bottom:Q5(t),...E,background:A,padding:"0.75rem 1rem",paddingBottom:w?"0.5rem":b||l?"calc(0.75rem + env(safe-area-inset-bottom, 0px))":"1rem",transition:_8(l&&!iu()?T8:null,C,A8)}},[e,n,r,t,l,u.background,d,h]);return c.jsx("div",{ref:m,style:{...y,...g&&{zIndex:"var(--z-index-spotlight-hint-target)"}},"data-testid":"composer-slot","data-hold":e,"data-ground":n,children:s})},dxe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%3e%3crect%20x='0.5'%20y='0.5'%20width='13'%20height='13'%20rx='6.5'%20fill='%230E0E11'/%3e%3crect%20x='0.5'%20y='0.5'%20width='13'%20height='13'%20rx='6.5'%20stroke='white'/%3e%3cpath%20d='M8.98484%204.48487C9.13128%204.33842%209.36866%204.33842%209.51511%204.48487C9.66156%204.63131%209.66156%204.86869%209.51511%205.01514L7.53025%207L9.51511%208.98487C9.66156%209.13131%209.66156%209.36869%209.51511%209.51514C9.36866%209.66159%209.13128%209.66159%208.98484%209.51514L6.99997%207.53028L5.01511%209.51514C4.86866%209.66159%204.63128%209.66159%204.48483%209.51514C4.33839%209.36869%204.33839%209.13131%204.48483%208.98487L6.4697%207L4.48483%205.01514C4.33839%204.86869%204.33839%204.63131%204.48483%204.48487C4.63128%204.33842%204.86866%204.33842%205.01511%204.48487L6.99997%206.46973L8.98484%204.48487Z'%20fill='white'/%3e%3c/svg%3e",fxe={display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"0.5rem",padding:"0.5rem 0",width:"100%"},hxe={position:"relative",display:"inline-block",width:"2.5rem",height:"2.5rem",padding:"0.5rem",flexDirection:"column",alignItems:"flex-start",gap:"0.5rem",borderRadius:"var(--radius-medium, 0.5rem)",border:"1.2px solid var(--border-disabled-default, #F2F2F3)",background:"lightgray 50% / cover no-repeat"}
1886,pxe={width:"0.75rem",height:"0.75rem",aspectRatio:"1/1",position:"absolute",right:"-0.1875rem",top:"-0.1875rem",fill:"var(--surface-primary-inverted-default, #0E0E11)",strokeWidth:"1px",stroke:"#FFF",cursor:"pointer",border:"none",background:"transparent",zIndex:2},mxe=G.memo(({onRemoveImage:e,images:t})=>{const[n,r]=k.useState([]);k.useEffect(()=>{const s=t.map(l=>URL.createObjectURL(l));return r(s),()=>{s.forEach(l=>URL.revokeObjectURL(l))}},[t]);const i=k.useMemo(()=>t.map((s,l)=>{const u=n[l];return c.jsx("div",{style:{...hxe,background:u?`url(${u}) lightgray 50% / cover no-repeat`:"lightgray 50% / cover no-repeat"},children:c.jsx("button",{style:pxe,onClick:()=>e?.(l),"aria-label":`Remove ${s.name}`,children:c.jsx("img",{src:dxe,alt:"Remove",style:{width:"100%",height:"100%"}})})},`${s.name}-${l}`)}),[t,n,e]);return t.length===0?null:c.jsx("div",{style:fxe,children:i})});var $5;(function(e){e.Heavy="HEAVY",e.Medium="MEDIUM",e.Light="LIGHT"})($5||($5={}));var R8;(function(e){e.Success="SUCCESS",e.Warning="WARNING",e.Error="ERROR"})(R8||(R8={}));const gxe=ei("Haptics",{web:()=>Pn(()=>import("./web-HqK4Qkws.js"),[]).then(e=>new e.HapticsWeb)}),yxe=()=>{xt()&&gxe.impact({style:$5.Light}).catch(()=>{})},RB=e=>{if(typeof window>"u"||!window.matchMedia)return!1;try{return window.matchMedia(e).matches}catch{return!1}},vxe=()=>RB("(any-hover: hover) and (any-pointer: fine)"),S4e=()=>RB("(hover: hover) and (pointer: fine)"),pp=({style:e,children:t,enableHaptics:n=!1,disabled:r=!1,onClick:i,onPointerEnter:s,onPointerLeave:l,onPointerDown:u,onPointerUp:d,onPointerCancel:h,...m})=>{const[g,y]=k.useState(!1),[b,S]=k.useState(!1),I=k.useRef(!1),w={hovered:g&&!r,pressed:b&&!r,disabled:r};return c.jsx("button",{type:"button",disabled:r,...m,style:typeof e=="function"?e(w):e,onClick:C=>{n&&yxe(),i?.(C)},onPointerEnter:C=>{y(C.pointerType==="mouse"&&vxe()),I.current&&C.buttons&1?S(!0):I.current=!1,s?.(C)},onPointerLeave:C=>{y(!1),S(!1),l?.(C)},onPointerDown:C=>{I.current=!0,S(!0),u?.(C)},onPointerUp:C=>{I.current=!1,S(!1),d?.(C)},onPointerCancel:C=>{I.current=!1,S(!1),h?.(C)},children:typeof t=="function"?t(w):t})},jB=k.createContext("sheet"),OB=()=>k.useContext(jB),bxe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20.44'%20height='36.88'%20viewBox='-2%20-2%2020.44%2036.88'%20fill='none'%3e%3cpath%20d='M%2017.893%201.453%20C%2018.696%200.651%2018.696%20-0.651%2017.893%20-1.453%20C%2017.091%20-2.256%2015.79%20-2.256%2014.987%20-1.453%20L%2016.44%200%20L%2017.893%201.453%20Z%20M%200%2016.44%20L%20-1.453%2014.987%20C%20-2.256%2015.79%20-2.256%2017.091%20-1.453%2017.893%20L%200%2016.44%20Z%20M%2014.987%2034.333%20C%2015.79%2035.136%2017.091%2035.136%2017.893%2034.333%20C%2018.696%2033.531%2018.696%2032.23%2017.893%2031.427%20L%2016.44%2032.88%20L%2014.987%2034.333%20Z%20M%2016.44%200%20L%2014.987%20-1.453%20L%20-1.453%2014.987%20L%200%2016.44%20L%201.453%2017.893%20L%2017.893%201.453%20L%2016.44%200%20Z%20M%200%2016.44%20L%20-1.453%2017.893%20L%2014.987%2034.333%20L%2016.44%2032.88%20L%2017.893%2031.427%20L%201.453%2014.987%20L%200%2016.44%20Z'%20fill='currentColor'/%3e%3c/svg%3e",xxe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M11.75%204.75l3.5%203.5M3.5%2016.5l.85-3.4L13.3%204.15a1.5%201.5%200%20012.12%200l.43.43a1.5%201.5%200%20010%202.12L6.9%2015.65l-3.4.85z'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Sxe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10%203.5v13M3.5%2010h13'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",wxe={back:bxe,check:YP,checkBold:fB,close:ZI,down:Ym,dustbin:Lm,edit:xxe,plus:Sxe},Bk=({name:e,size:t})=>{const n=e==="chevron",r=`url("${wxe[n?"back":e]}") center / contain no-repeat`;return c.jsx("span",{style:{display:"block",flexShrink:0,width:t,height:t,background:"currentColor",mask:r,WebkitMask:r,transform:n?"rotate(180deg)":void 0},"aria-hidden":!0})},LB="data-tm-input",Cxe={"data-tm-focus":""},Ixe=` 1887 html[${LB}='keyboard'] [data-tm-focus] button:focus-visible { 1888 outline: 2px solid ${Ze.ink} !important; 1889 outline-offset: 2px; 1890 } 1891`;let j8=!1;const kxe=()=>k.useEffect(()=>{if(j8)return;j8=!0;const e=t=>()=>document.documentElement.setAttribute(LB,t);document.addEventListener("keydown",e("keyboard"),!0),document.addEventListener("pointerdown",e("pointer"),
1891!0)},[]),O8=["linear-gradient(0deg, #fcda2e 0%, #fe6767 173.99%)","linear-gradient(0deg, #fcda2e -27.51%, #42f098 100%)","linear-gradient(-45deg, #42f098 -27.83%, #0471c4 123.34%)"],Exe=24,w4e=28,Txe=480,Axe="tm-input",_xe="tm-add-input",C4e=` 1892 .${Axe}::placeholder { color: ${Ze.ink4}; opacity: 1; } 1893 .${_xe}::placeholder { color: ${Ze.ink3}; opacity: 1; } 1894`,uf=(e,...t)=>t.map(n=>`${n} ${e}ms ${Rd}`).join(", "),Il={outline:"none",font:"inherit",color:"inherit",background:"none",border:"none",padding:0,margin:0,cursor:"pointer",textAlign:"inherit",WebkitTapHighlightColor:"transparent",touchAction:"manipulation"},I4e=(e,t=!1)=>({width:"100%",height:t?60:56,padding:"0 18px",border:"none",outline:"none",borderRadius:18,background:Ze.white,boxShadow:e?`inset 0 0 0 1.5px ${Ze.ink}`:`inset 0 0 0 1px ${Ze.gray3}`,font:`400 ${t?18:17}px/1 ${Nn.body}`,color:Ze.ink,WebkitAppearance:"none",appearance:"none",transition:uf(ou.fast,"box-shadow")}),Rxe=e=>e?`linear-gradient(90deg, transparent, ${Ze.gray1} 12%, ${Ze.gray1} 88%, transparent)`:"transparent",jxe={cornerShape:"squircle"},Oxe=`inset 0 0 0 2px ${Ze.ink3}`,k4e={display:"flex",flexWrap:"wrap",gap:8},E4e=({on:e=!1,earlier:t=!1,small:n=!1,removable:r=!1,hovered:i=!1})=>{const s=n?8:10;return{...Il,minHeight:n?40:44,maxWidth:"100%",padding:`${s}px ${r?6:16}px ${s}px 16px`,borderRadius:n?13:15,boxShadow:e?Oxe:t?"none":`inset 0 0 0 1px ${Ze.rule}`,display:"inline-flex",alignItems:"center",gap:8,font:`400 ${n?15:16}px/1.25 ${Nn.body}`,textAlign:"left",overflowWrap:"anywhere",background:e&&i?Ze.gray2:e||t||i?Ze.gray1:Ze.white,color:t?Ze.ink2:Ze.ink,cursor:r?"default":"pointer",transition:uf(ou.base,"background-color","box-shadow")}},Lxe=(e,t)=>({...Il,width:32,height:32,margin:"-4px 0",borderRadius:10,display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:t?Ze.ink:Ze.ink4,background:t?e==="earlier"?Ze.gray2:Ze.gray1:"transparent"}),T4e=` 1895 @keyframes tm-in { 1896 from { opacity: 0; transform: translateX(16px); } 1897 to { opacity: 1; transform: none; } 1898 } 1899 @keyframes tm-in-back { 1900 from { opacity: 0; transform: translateX(-16px); } 1901 to { opacity: 1; transform: none; } 1902 } 1903`,A4e=(e,t)=>t?"none":`${e?"tm-in-back":"tm-in"} ${ou.slow}ms ${Rd} both`,L8={fontSize:"clamp(30px, 10vw, 38px)",lineHeight:1.02},Dxe={name:{...L8,overflowWrap:"anywhere"},question:L8,card:{fontSize:26,lineHeight:1.08,letterSpacing:"-0.01em"}},_4e={column:{flex:"1 0 auto",width:"100%",maxWidth:Txe,margin:"0 auto",display:"flex",flexDirection:"column"},display:e=>({margin:0,outline:"none",fontFamily:Nn.display,fontWeight:300,letterSpacing:"-0.02em",textWrap:e==="question"||e==="card"?"pretty":"balance",...Dxe[e]}),lede:{margin:0,font:`400 16px/1.4 ${Nn.body}`,color:Ze.ink2,textWrap:"pretty"},note:{margin:0,font:`400 15px/1.4 ${Nn.body}`,color:Ze.ink3,textWrap:"pretty"},caption:{margin:0,font:`400 13px/1.4 ${Nn.body}`,color:Ze.ink3,textWrap:"pretty"},iconButton:e=>({...Il,width:44,height:44,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:14,color:Ze.ink,background:e?Ze.gray1:"transparent"}),footer:e=>({position:"sticky",bottom:0,zIndex:2,marginTop:"auto",padding:`${e?36:14}px ${Exe}px calc(26px + env(safe-area-inset-bottom, 0px))`,background:Ze.white,display:"flex",flexDirection:e?"column":"row",gap:10}),fact:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:16,padding:"13px 0",borderTop:`1px solid ${Ze.rule}`},factLabel:{flexShrink:0,maxWidth:"45%",font:`400 14px/1.3 ${Nn.body}`,color:Ze.ink3},factValue:{flex:1,margin:0,font:`400 15px/1.3 ${Nn.body}`,textAlign:"right",overflowWrap:"anywhere"},factRemove:e=>({...Lxe("earlier",e),margin:"-6px -6px -6px -8px"})},eC=240,tC=160,Mxe=80,DB=380,oy=8,kd=16,Pxe=(e,t)=>{const n=Math.min(DB,window.innerWidth-2*kd),r=Math.min(Math.max(e.left,kd),window.innerWidth-n-kd),i=window.innerHeight-e.bottom-oy-kd,s=e.top-oy-kd;return t<=i||i>=s?{left:r,top:e.bottom+oy,maxHeight:i,above:!1}:{left:r,bottom:window.innerHeight-e.top+oy,maxHeight:s,above:!0}},qr={scrim:(e,t)=>({position:"fixed",inset:0,zIndex:2e3,background:"rgba(14, 14, 17, 0.45)",opacity:e?1:0,transition:t?"none":`opacity ${eC}ms ${Rd}`,touchAction:"none"}),sheet:(e,t,n)=>({position:"fixed",left:0,right:0,bottom:0,zIndex:2100,maxWidth:480,maxHeight:"85dvh",margin:"0 auto",padding:"10px 24px calc(24px + env(safe-area-inset-bottom, 0px))",borderRadius:"28px 28px 0 0",background:Ze.white,color:Ze.ink,display:"flex",flexDirection:"column",outline:"none",transform:e?`translateY(${t}px)`:"translateY(100%)",transition:n||t?"none":`transform ${eC}ms ${Rd}`}),catcher:{position:"fixed",inset:0,zIndex:2e3},menu:(e,t,n)=>({position:"fixed",zIndex:2100,left:t?.left??0,top:t?.top,bottom:t?.bottom,width:`min(${DB}px, calc(100vw - ${2*kd}px))`,maxHeight:t?.maxHeight,padding:"16px 20px 12px",borderRadius:20,border:`1px solid ${Ze.rule}`,background:Ze.white,color:Ze.ink,boxShadow:"0 12px 32px rgba(14, 14, 17, 0.12), 0 2px 6px rgba(14, 14, 17, 0.06)",display:"flex",flexDirection:"column",outline:"none",visibility:t?"visible":"hidden",opacity:e?1:0,transform:e?"none":`translateY(${t?.above?4:-4}px) scale(0.98)`,transformOrigin:t?.above?"bottom left":"top left",transition:n?"none":`opacity ${tC}ms ${Rd}, transform ${tC}ms ${Rd}`}),menuTitle:{margin:0,font:`400 19px/1.3 ${Nn.heading}`,letterSpacing:"-0.01em"},menuSubtitle:{margin:0,padding:"2px 0 4px",font:`400 13px/1.45 ${Nn.body}
1903`,color:Ze.ink3,textWrap:"pretty"},top:{flexShrink:0,display:"flex",flexDirection:"column",touchAction:"none",cursor:"grab"},grabber:{width:36,height:4,borderRadius:999,background:Ze.rule,alignSelf:"center",marginBottom:16},title:{margin:0,font:`400 22px/1.25 ${Nn.heading}`,letterSpacing:"-0.01em"},subtitle:{margin:0,padding:"4px 0 8px",font:`400 14px/1.45 ${Nn.body}`,color:Ze.ink3,textWrap:"pretty"},body:{flex:"1 1 auto",minHeight:0,overflowY:"auto",overscrollBehavior:"contain",display:"flex",flexDirection:"column"},option:(e,t,{hovered:n,pressed:r})=>({...Il,width:"100%",display:"flex",alignItems:"center",gap:t?14:16,padding:t?`${e?12:10}px 0`:`${e?16:14}px 0`,borderBottom:`1px solid ${Ze.rule}`,background:Rxe(n),opacity:r?.7:1}),optionText:e=>({flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:e?4:2}),optionName:(e,t)=>({font:`300 ${t?19:22}px/1.05 ${Nn.display}`,letterSpacing:"-0.01em",color:e?Ze.ink3:Ze.ink,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),optionMeta:{font:`400 14px/1.4 ${Nn.body}`,color:Ze.ink3,textWrap:"pretty"},chevron:e=>({display:"flex",color:Ze.ink3,transform:e?"rotate(180deg)":"none",transition:uf(ou.base,"transform")})},jc=e=>e.stopPropagation(),Fxe={onClick:jc,onMouseDown:jc,onMouseUp:jc,onPointerDown:jc,onFocus:jc,onBlur:jc},Bxe=e=>{const t=document.activeElement;if(t?.getAttribute("role")!=="option")return!1;const n=Array.from(t.closest('[role="listbox"]')?.querySelectorAll('[role="option"]')??[]),r=n.indexOf(t),i=n.length-1,s={ArrowDown:Math.min(r+1,i),ArrowUp:Math.max(r-1,0),Home:0,End:i}[e.key];return r<0||s===void 0?!1:(e.preventDefault(),n[s].focus(),!0)},MB=({open:e,onClose:t,title:n,subtitle:r,anchor:i,children:s})=>{const l=k.useId(),u=k.useRef(null),[d]=k.useState(iu),{isMobile:h}=We(),m=i&&!h?"menu":"sheet",g=m==="menu",[y,b]=k.useState(null);kxe();const[S,I]=k.useState(e),[w,C]=k.useState(!1),[E,A]=k.useState(0),_=k.useRef(null),R=k.useRef(null);k.useEffect(()=>{if(e){R.current??=document.activeElement,I(!0),A(0);const H=requestAnimationFrame(()=>C(!0));return()=>cancelAnimationFrame(H)}C(!1);const D=setTimeout(()=>I(!1),d?0:g?tC:eC);return()=>clearTimeout(D)},[e,d,g]),k.useLayoutEffect(()=>{if(!g||!S){b(null);return}const D=u.current,H=i?.current;if(!D||!H)return;D.style.maxHeight="none";const V=D.offsetHeight;D.style.maxHeight="";const Y=()=>b(Pxe(H.getBoundingClientRect(),V));return Y(),window.addEventListener("resize",Y),window.addEventListener("scroll",Y,!0),()=>{window.removeEventListener("resize",Y),window.removeEventListener("scroll",Y,!0)}},[g,S,i]),k.useEffect(()=>{if(!w)return;const D=u.current;(D?.querySelector('[aria-selected="true"]')??D?.querySelector("button")??D)?.focus({preventScroll:!0})},[w]),k.useEffect(()=>{e||!R.current||(R.current.focus({preventScroll:!0}),R.current=null)},[e]);const L=k.useRef(t);if(L.current=t,k.useEffect(()=>{if(!e)return;const D=H=>{H.key==="Escape"&&L.current()};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[e]),!S)return null;const j=D=>{if(D.key!=="Escape"&&D.stopPropagation(),Bxe(D)||D.key!=="Tab")return;const H=Array.from(u.current?.querySelectorAll("button")??[]);if(!H.length)return;const Y=(H.indexOf(document.activeElement)+(D.shiftKey?-1:1)+H.length)%H.length;D.preventDefault(),H[Y].focus()},O={onPointerDown:D=>{jc(D),_.current=D.clientY,D.currentTarget.setPointerCapture?.(D.pointerId)},onPointerMove:D=>{_.current!==null&&A(Math.max(0,D.clientY-_.current))},onPointerUp:()=>{_.current!==null&&(_.current=null,E>Mxe?t():A(0))},onPointerCancel:()=>{_.current=null,A(0)}},F=c.jsxs(c.Fragment,{children:[c.jsx("h2",{id:l,style:g?qr.menuTitle:qr.title,children:n}),r&&c.jsx("p",{style:g?qr.menuSubtitle:qr.subtitle,children:r})]});return c.jsx(Aa,{children:c.jsxs("div",{...Fxe,onKeyDown:j,children:[c.jsx("style",{children:Ixe}),c.jsx("div",{style:g?qr.catcher:qr.scrim(w,d),onClick:t,"data-testid":"picker-sheet-scrim"}),c.jsxs("div",{ref:u,role:"dialog","aria-modal":"true","aria-labelledby":l,tabIndex:-1,style:g?qr.menu(w&&!!y,y,d):qr.sheet(w,E,d),...Cxe,children:[g?F:c.jsxs("div",{style:qr.top,...O,children:[c.jsx("div",{style:qr.grabber,"aria-hidden":!0}),F]}),c.jsx(jB.Provider,{value:m,children:c.jsx("div",{style:qr.body,children:s})})]})]})})},Zy=({name:e,meta:t,leading:n,selected:r,muted:i=!1,spacious:s=!1,onSelect:l})=>{const u=OB()==="menu";return c.jsxs(pp,{style:d=>qr.option(s,u,d),role:r===void 0?void 0:"option","aria-selected":r,onClick:l,children:[n,c.jsxs("span",{style:qr.optionText(s),children:[c.jsx("span",{style:qr.optionName(i,u),children:e}),t&&c.jsx("span",{style:qr.optionMeta,children:t})]}),r&&c.jsx(Bk,{name:"check",size:u?16:18})]})},PB=({open:e})=>
1903c.jsx("span",{style:qr.chevron(e),"aria-hidden":!0,children:c.jsx(Bk,{name:"down",size:12})}),bs={row:{display:"flex",alignItems:"center",gap:8,alignSelf:"flex-start",maxWidth:"100%",minHeight:22,margin:"-4px 0 -2px"},pill:(e,t)=>({...Il,minWidth:0,display:"flex",alignItems:"center",gap:4,marginLeft:-6,padding:"2px 6px",borderRadius:8,whiteSpace:"nowrap",background:e||t?Ze.gray1:"transparent",transition:uf(ou.fast,"background-color")}),label:{font:`400 13px/1.4 ${Nn.body}`,color:Ze.ink3},name:e=>({maxWidth:"14ch",overflow:"hidden",textOverflow:"ellipsis",font:e?`italic 400 13px/1.4 ${Nn.body}`:`500 13px/1.4 ${Nn.body}`,color:e?Ze.ink4:Ze.ink}),chip:e=>({...Il,flexShrink:0,height:22,padding:"0 9px",borderRadius:8,font:`500 12px/1 ${Nn.body}`,color:c2e,background:hB,filter:e?"brightness(0.96)":"none",transition:uf(ou.fast,"filter","background-color")}),chipCaption:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",font:`400 13px/1.4 ${Nn.body}`,color:Ze.ink3},tile:(e,t)=>({...jxe,width:t?40:48,height:t?40:48,borderRadius:t?12:14,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:e,font:`500 ${t?16:18}px/1 ${Nn.body}`,color:"#0e0e11"}),emptyTile:{color:Ze.ink3},manage:e=>({...Il,alignSelf:"flex-end",marginTop:16,font:`500 15px/1.4 ${Nn.body}`,color:Ze.ink,textDecoration:e?"underline":"none"})},fw=({fill:e,empty:t=!1,children:n})=>{const r=OB()==="menu";return c.jsx("span",{style:{...bs.tile(e,r),...t&&bs.emptyTile},"aria-hidden":!0,children:n})},Nxe="Tonita remembers styles, sizes and preferences.",zxe=()=>{const e=Bt(),t=be($c),n=ws(w=>w.form),r=ws(w=>w.status),i=ws(w=>w.profiles),s=ws(VM),l=ws(w=>w.chooseProfile),{trackMemoryAction:u}=Nt(),[d,h]=k.useState(!1),m=k.useRef(null),g=t&&n?i:[],y=g.length>0,b=!t||r==="loaded"||r==="failed",S=w=>{h(!1),u("visit_memory_dashboard_from_input_box"),e("/personalize",{state:P5({add:w,chooseOnSave:!0})})},I=w=>{w!==(s?.id??null)&&u("change_active_memory_profile"),l(w),h(!1)};return y?c.jsxs("div",{style:bs.row,children:[c.jsxs(pp,{ref:m,style:({hovered:w})=>bs.pill(d,w),"aria-haspopup":"dialog","aria-expanded":d,onClick:()=>{u("touch_input_box_memory_picker"),h(!0)},children:[c.jsx("span",{style:bs.label,children:"Shopping for"}),c.jsx("span",{style:bs.name(!s),children:s?s.name:"No Profile"}),c.jsx(PB,{open:d})]}),c.jsxs(MB,{open:d,onClose:()=>h(!1),anchor:m,title:"Who are you shopping for?",subtitle:Nxe,children:[c.jsxs("div",{role:"listbox","aria-label":"Profiles",children:[ole(g).map((w,C)=>c.jsx(Zy,{name:w.name,meta:mle(w,fle(n,w)),leading:c.jsx(fw,{fill:O8[C%O8.length],children:hle(w)}),selected:s?.id===w.id,onSelect:()=>I(w.id)},w.id)),c.jsx(Zy,{name:"No Profile",meta:"Tonita wonât use memory",leading:c.jsx(fw,{fill:Ze.gray1}),selected:!s,onSelect:()=>I(null)})]}),c.jsx(Zy,{name:"Add someone you shop for",muted:!0,leading:c.jsx(fw,{fill:Ze.gray1,empty:!0,children:c.jsx(Bk,{name:"plus",size:20})}),onSelect:()=>S({forSelf:!1})}),c.jsx(pp,{style:({hovered:w})=>bs.manage(w),onClick:()=>{h(!1),u("visit_memory_dashboard_from_input_box"),e("/personalize",{state:P5()})},children:"Manage memory"})]})]}):c.jsx("div",{style:bs.row,children:b&&c.jsxs(c.Fragment,{children:[c.jsx(pp,{style:({hovered:w})=>bs.chip(w),onClick:()=>S(),children:"Create profile"}),c.jsx("span",{style:bs.chipCaption,children:"for more tailored results"})]})})},Hd={container:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"var(--spacing-3x-small, 0.25rem)",alignItems:"center",width:"100%",marginBottom:"var(--spacing-x-small, 0.5rem)"},chip:{display:"flex",padding:"var(--spacing-3x-small, 0.25rem) var(--spacing-x-small, 0.5rem)",justifyContent:"center",alignItems:"center",gap:"0.25rem",borderRadius:"var(--radius-round, 62.4375rem)",border:"none",backgroundColor:"var(--primary-default, #0E0E11)",color:"var(--text-default-inverted, #FFFFFF)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)",letterSpacing:"-0.0075rem",userSelect:"none",minHeight:"1.5rem"},removeButton:{display:"flex",alignItems:"center",justifyContent:"center",width:"1rem",he
1903ight:"1rem",borderRadius:"50%",backgroundColor:"rgba(255, 255, 255, 0.2)",color:"var(--text-default-inverted, #FFFFFF)",cursor:"pointer",fontSize:"0.625rem",lineHeight:"1",marginLeft:"0.25rem",transition:"background-color 0.15s ease"},removeButtonHover:{backgroundColor:"rgba(255, 255, 255, 0.3)"},label:{color:"var(--text-default-secondary, #3F3F4A)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,marginRight:"var(--spacing-x-small, 0.5rem)"},moreButton:{display:"flex",padding:"var(--spacing-3x-small, 0.25rem) var(--spacing-x-small, 0.5rem)",justifyContent:"center",alignItems:"center",borderRadius:"var(--radius-round, 62.4375rem)",border:"1px solid var(--border-default, #E5E5E5)",backgroundColor:"transparent",color:"var(--text-default-secondary, #3F3F4A)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)",letterSpacing:"-0.0075rem",userSelect:"none",minHeight:"1.5rem",cursor:"pointer"}},D8=12,Hxe=G.memo(()=>{const{isMobile:e}=We(),t=U(S=>S.multipleChoiceAnswers),n=U(S=>S.toggleMultipleChoiceAnswer),r=kn(S=>S.answersByBlock),i=kn(S=>S.writeInsByBlock),s=kn(S=>S.toggleOption),l=kn(S=>S.setWriteIn),[u,d]=G.useState(!1),h=()=>{e||vB()},m=[];
1903if(Object.entries(t).forEach(([S,I])=>{I.forEach(w=>{m.push({key:`mcq-${S}-${w}`,label:w,onRemove:()=>{n(S,w),h()}})})}),Object.entries(r).forEach(([S,I])=>{Object.entries(I).forEach(([w,C])=>{const E=Number(w);C.forEach(A=>{m.push({key:`sqb-${S}-${E}-${A}`,label:A,onRemove:()=>{s(S,E,A),h()}})})})}),Object.entries(i).forEach(([S,I])=>{Object.entries(I).forEach(([w,C])=>{const E=(C||"").trim();if(!E)return;const A=Number(w);m.push({key:`sqb-writein-${S}-${A}`,label:E,onRemove:()=>{l(S,A,""),h()}})})}),m.length===0)return null;const g=m.length>D8,y=u||!g?m:m.slice(0,D8),b=m.length-y.length;return c.jsxs("div",{style:Hd.container,children:[c.jsx("span",{style:Hd.label,children:"Selected:"}),y.map(S=>c.jsx(Uxe,{label:S.label,onRemove:S.onRemove},S.key)),g&&c.jsx("button",{type:"button",style:Hd.moreButton,onClick:()=>{d(S=>!S),h()},"aria-expanded":u,children:u?"Show less":`+${b} more`})]})}),Uxe=G.memo(({label:e,onRemove:t})=>{const[n,r]=G.useState(!1);return c.jsxs("div",{style:Hd.chip,children:[c.jsx("span",{children:e}),c.jsx("div",{style:{...Hd.removeButton,...n?Hd.removeButtonHover:{}},onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),role:"button",tabIndex:0,"aria-label":`Remove ${e}`,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),t())},children:"Ã"})]})}),ya={container:{display:"flex",flexDirection:"column",gap:"var(--spacing-x-small, 0.5rem)",width:"100%"},label:{color:"var(--text-default-secondary, #3F3F4A)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,margin:"0"},cardsContainer:{display:"flex",flexDirection:"row",gap:"var(--spacing-x-small, 0.5rem)",flexWrap:"wrap",width:"100%"},card:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",padding:"var(--spacing-3x-small, 0.25rem)",borderRadius:"var(--radius-medium, 0.5rem)",borderWidth:"1px",borderStyle:"solid",borderColor:"var(--border-default, #E5E5E9)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",maxWidth:"200px",cursor:"pointer",transition:"all 0.15s ease"},cardHover:{backgroundColor:"var(--surface-primary-hover, #F5F5F7)",borderColor:"var(--border-default-secondary, #C1C1C7)"},thumbnail:{width:"2rem",height:"2rem",borderRadius:"var(--radius-small, 0.25rem)",objectFit:"cover",flexShrink:0,backgroundColor:"var(--surface-secondary-default, #F9F9FB)"},cardContent:{display:"flex",flexDirection:"column",gap:"0.125rem",flex:"1 1 0",minWidth:"0",overflow:"hidden"},cardTitle:{color:"var(--text-default-primary, #0E0E11)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)",letterSpacing:"-0.0075rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",margin:"0"},cardPrice:{color:"var(--text-default-secondary, #71717F)",fontSize:"var(--size-4x-sm, 0.6875rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:400,lineHeight:"var(--line-height-3x-small, 0.875rem)",letterSpacing:"-0.00688rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",margin:"0"},removeButton:{display:"flex",alignItems:"center",justifyContent:"center",width:"1rem",he
1903ight:"1rem",borderRadius:"50%",backgroundColor:"var(--surface-secondary-default, #F9F9FB)",color:"var(--text-default-secondary, #71717F)",cursor:"pointer",fontSize:"0.625rem",lineHeight:"1",transition:"all 0.15s ease",flexShrink:0},removeButtonHover:{backgroundColor:"var(--surface-secondary-hover, #F2F2F3)",color:"var(--text-default-primary, #0E0E11)"},moreIndicator:{display:"flex",alignItems:"center",justifyContent:"center",padding:"var(--spacing-3x-small, 0.25rem) var(--spacing-x-small, 0.5rem)",borderRadius:"var(--radius-medium, 0.5rem)",borderWidth:"1px",borderStyle:"solid",borderColor:"var(--border-default, #E5E5E9)",backgroundColor:"var(--surface-secondary-default, #F9F9FB)",color:"var(--text-default-secondary, #71717F)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)",letterSpacing:"-0.0075rem",whiteSpace:"nowrap"}},Wxe=G.memo(()=>{const e=Qr(d=>d.selectedCards),t=Qr(d=>d.toggleCardSelection),n=Array.from(e.values());if(n.length===0)return null;const r=d=>{t(d)},i=4,s=n.slice(0,i),l=n.length-i,u=l>0;return c.jsxs("div",{style:ya.container,children:[c.jsxs("div",{style:ya.label,children:["Selected products (",n.length,"):"]}),c.jsxs("div",{style:ya.cardsContainer,children:[s.map(d=>c.jsx(Vxe,{cardData:d,onRemove:r},d.listingId)),u&&c.jsxs("div",{style:ya.moreIndicator,children:["+",l," more"]})]})]})}),Vxe=({cardData:e,onRemove:t})=>{const[n,r]=G.useState(!1),i=e.thumbnailImage?.image?.address?.imageUrl||e.images?.[0]?.image?.address?.imageUrl||_a,s=e.title||"Untitled",l=e.currentPrice||e.originalPrice||"";return c.jsxs("div",{style:{...ya.card,...n?ya.cardHover:{}},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[c.jsx("img",{src:i,alt:s,style:ya.thumbnail,onError:u=>{u.currentTarget.src=_a}}),c.jsxs("div",{style:ya.cardContent,children:[c.jsx("div",{style:ya.cardTitle,title:s,children:s}),l&&c.jsx("div",{style:ya.cardPrice,title:l,children:l})]}),c.jsx("div",{style:{...ya.removeButton,...n?ya.removeButtonHover:{}},onClick:u=>{u.stopPropagation(),t(e)},role:"button",tabIndex:0,"aria-label":`Remove ${s}`,title:`Remove ${s}`,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),t(e))},children:"Ã"})]})},Ha={container:{display:"flex",flexDirection:"column",gap:"var(--spacing-x-small, 0.5rem)",width:"100%"},label:{color:"var(--text-default-secondary, #3F3F4A)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,margin:"0"},cardsContainer:{display:"flex",flexDirection:"row",gap:"var(--spacing-x-small, 0.5rem)",flexWrap:"wrap",width:"100%"},card:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",padding:"var(--spacing-x-small, 0.5rem)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",borderWidth:"1px",borderStyle:"solid",borderColor:"var(--border-default, #E5E5E9)",borderRadius:"var(--border-radius-small, 0.5rem)",transition:"all 0.15s ease",cursor:"pointer",maxWidth:"12rem",minWidth:"8rem"},cardHover:{backgroundColor:"var(--surface-primary-hover, #F9F9FB)",borderColor:"var(--border-default-secondary, #C1C1C7)"},thumbnail:{width:"2rem",height:"2rem",borderRadius:"var(--border-radius-x-small, 0.25rem)",objectFit:"cover",flexShrink:0},cardContent:{display:"flex",flexDirection:"column",gap:"0.125rem",flex:1,minWidth:0},cardTitle:{color:"var(--text-default-primary, #0E0E11)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",margin:"0"},cardPrice:{color:"var(--text-default-secondary, #3F3F4A)",fontSize:"var(--size-4x-sm, 0.6875rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",margin:"0"},removeButton:{display:"flex",alignItems:"center",justifyContent:"center",width:"1rem",he
1903ight:"1rem",borderRadius:"50%",backgroundColor:"var(--surface-secondary-default, #F9F9FB)",color:"var(--text-default-secondary, #71717F)",cursor:"pointer",fontSize:"0.625rem",lineHeight:"1",transition:"all 0.15s ease",flexShrink:0},removeButtonHover:{backgroundColor:"var(--surface-secondary-hover, #F2F2F3)",color:"var(--text-default-primary, #0E0E11)"}},qxe=G.memo(()=>{const e=Vc(r=>r.focusedProduct),t=Vc(r=>r.clearInFocus);if(!e)return null;const n=()=>{t()};return c.jsxs("div",{style:Ha.container,children:[c.jsx("div",{style:Ha.label,children:c.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.375rem"},children:["In focus",c.jsx("span",{style:{width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:"#22C55E",display:"inline-block"}})]})}),c.jsx("div",{style:Ha.cardsContainer,children:c.jsx(Gxe,{cardData:e,onRemove:n})})]})}),Gxe=({cardData:e,onRemove:t})=>{const[n,r]=G.useState(!1),i=e.thumbnailImage?.image?.address?.imageUrl||e.images?.[0]?.image?.address?.imageUrl||_a,s=e.title||"Untitled",l=e.currentPrice||e.originalPrice||"";return c.jsxs("div",{style:{...Ha.card,...n?Ha.cardHover:{}},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[c.jsx("img",{src:i,alt:s,style:Ha.thumbnail,onError:u=>{u.currentTarget.src=_a}}),c.jsxs("div",{style:Ha.cardContent,children:[c.jsx("div",{style:Ha.cardTitle,title:s,children:s}),l&&c.jsx("div",{style:Ha.cardPrice,title:l,children:l})]}),c.jsx("div",{style:{...Ha.removeButton,...n?Ha.removeButtonHover:{}},onClick:u=>{u.stopPropagation(),t()},role:"button",tabIndex:0,"aria-label":`Close ${s}`,title:`Close ${s}`,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),t())},children:"Ã"})]})},nC=1200,FB=3,Yxe=nC*FB,Kxe=({radius:e,loop:t=!1,onDone:n})=>c.jsx("div",{"aria-hidden":!0,"data-testid":"attention-hint","data-loop":t?"true":void 0,onAnimationEnd:r=>{t||r.animationName==="tonita-input-border-fade"&&n?.()},style:{position:"absolute",inset:"-1px",borderRadius:e,padding:"1.6px",background:"conic-gradient(from var(--tonita-input-angle, 0deg), transparent 0deg, #FCDA2E 28deg, #FDB341 64deg, #FE6966 104deg, transparent 150deg)",WebkitMask:"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",WebkitMaskComposite:"xor",mask:"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",maskComposite:"exclude",animation:t?`tonita-input-border-rotate ${nC}ms linear infinite`:`tonita-input-border-rotate ${nC}ms linear ${FB}, tonita-input-border-fade ${Yxe}ms ease-in-out 1 forwards`,opacity:t?1:0,pointerEvents:"none",zIndex:3}}),Xxe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M12.4804%202.01952C13.3917%202.02312%2014.2191%202.55299%2014.6025%203.37908L14.8983%203.98083L16.6582%203.98864C17.9519%203.99368%2018.998%205.04361%2018.998%206.33616L19%2014.6525C19%2015.9496%2017.9467%2017.0014%2016.6485%2017L3.35445%2016.9854C2.05828%2016.984%201.00806%2015.9338%201.00781%2014.6388L1%206.34884C1%205.05275%202.05238%204.00145%203.34957%204.00131H5.05781L5.38384%203.32544C5.77738%202.51199%206.60365%201.9966%207.50792%202.00002L12.4804%202.01952ZM7.50206%203.49806C7.17505%203.4969%206.87616%203.68372%206.73384%203.97791L5.99783%205.49936H3.34957C2.88045%205.4995%202.49935%205.8801%202.49935%206.34884L2.50716%2014.6388C2.50741%2015.1071%202.88767%2015.4868%203.3564%2015.4873L16.6504%2015.502C17.1198%2015.5023%2017.5006%2015.1215%2017.5007%2014.6525L17.4987%206.33616C17.4986%205.86868%2017.1203%205.48851%2016.6524%205.48668L13.9387%205.47596L13.7386%205.0439L13.2476%203.98766C13.1089%203.68906%2012.804%203.51889%2012.4745%203.51757L7.50206%203.49806ZM9.99805%206.44832C10.386%206.44851%2010.7054%206.74377%2010.7438%207.12127L10.7477%207.19734V9.26594H12.8181C13.2318%209.2662%2013.5676%209.60157%2013.5678%2010.015C13.5678%2010.4286%2013.2312%2010.764%2012.8171%2010.764H10.7477V12.8199C10.7477%2013.2335%2010.4119%2013.5697%209.99805%2013.5699C9.58418%2013.5699%209.24864%2013.2343%209.24837%2012.8209V10.764H7.1897L7.11356%2010.7601C6.73563%2010.7216%206.44002%2010.4027%206.44002%2010.015C6.44015%209.62715%206.73644%209.30805%207.11453%209.26984L7.19067%209.26594H9.24837V7.19832L9.25228%207.12225C9.29053%206.74441%209.60979%206.44832%209.99805%206.44832Z'%20fill='currentColor'/%3e%3c/svg%3e",Jxe=(e,t,n)=>{const r=n?"1.125rem":"1.25rem",i=n?"0.3125rem":"0.4375rem",s=n?"0.25rem":"0.375rem";return{touchTarget:{display:"flex",justifyContent:"center",alignItems:"center",padding:i,margin:`-${i}`,cursor:"pointer"},spanStyle:{display:"flex",justifyContent:"center",alignItems:"center",padding:s,cursor:"pointer",position:"relative",borderRadius:"50%",backgroundColor:e?"var(--dropdown-button-hover)":"transparent",transition:"background-color 0.1s ease, transform 0.1s ease",transform:t?"scale(0.9)":"scale(1)"},iconStyle:{width:r,height:r,aspectRatio:"1/1",cursor:"pointer",position:"relative",zIndex:2,filter:"var(--icon-filter)",transition:"filter 0.2s ease"},fileInputStyle:{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0,cursor:"pointer",zIndex:3},touchTargetDisabled:{display:"flex",justifyContent:"center",alignItems:"center",padding:i,margin:`-${i}`,cursor:"not-allowed"},spanDisabledStyle:{display:"flex",justifyContent:"center",alignItems:"center",padding:s,position:"relative",borderRadius:"50%",opacity:.4,cursor:"not-allowed"},iconDisabledStyle:{width:r,height:r,aspectRatio:"1/1",cursor:"not-allowed",position:"relative",zIndex:2,filter:"var(--icon-filter)"}}},BB=({onUploadedImagesChange:e,disabled:t=!1})=>{const n=k.useRef(null),[r,i]=G.useState(!1),[s,l]=G.useState(!1),u=k.useRef(!1),d=U(E=>E.assistantInProgress),{isMobile:h}=We(),m=t||d,g=Jxe(r,s,h),y=()=>{m||n.current?.click()},b=E=>{if(u.current){u.current=!1;return}E.preventDefault(),E.stopPropagation(),y()},S=()=>{u.current=!0,m||l(!0)},I=E=>{l(!1),m||(E.preventDefault(),y())},w=E=>{if(m){E.target.value="";return}const A=E.target.files;A&&A.length>0&&(e?.(Array.from(A)),E.target.value="")},C=E=>{E.stopPropagation()};return c.jsx("div",{style:m?g.touchTargetDisabled:g.touchTarget,onClick:b,onMouseEnter:()=>i(!0),onMouseLeave:()=>{i(!1),l(!1)},onMouseDown:()=>!m&&l(!0),onMouseUp:()=>l(!1),onTouchStart:S,onTouchEnd:I,onTouchCancel:()=>l(!1),children:c.jsxs("span",{style:m?g.spanDisabledStyle:g.spanStyle,children:[c.jsx("img",{src:Xxe,alt:m?"Upload images (disabled
1903while assistant is thinking)":"Upload images",style:m?g.iconDisabledStyle:g.iconStyle}),c.jsx("input",{ref:n,type:"file",multiple:!0,accept:qI.join(","),style:g.fileInputStyle,onChange:w,onClick:C,"aria-label":"Select images to upload","aria-disabled":m,tabIndex:m?-1:void 0,disabled:m})]})})},Zxe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M11.1016%203.6195C10.8089%203.3268%2010.3343%203.32676%2010.0416%203.6195C9.74898%203.91225%209.74893%204.38684%2010.0416%204.67956L14.5981%209.2362L3.49957%209.19373L3.42246%209.19764C3.04466%209.23623%202.74994%209.55539%202.74994%209.94339C2.74999%2010.3573%203.08562%2010.693%203.49957%2010.693L14.5981%2010.7355L10.0416%2015.2922L9.99082%2015.3488C9.75041%2015.6432%209.76707%2016.0776%2010.0416%2016.3522C10.3161%2016.6268%2010.7506%2016.6434%2011.045%2016.403L11.1016%2016.3522L16.9378%2010.5159C17.2305%2010.2231%2017.2305%209.74859%2016.9378%209.45583L11.1016%203.6195Z'%20fill='%23A6A6B0'/%3e%3c/svg%3e",NB="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M11.1016%203.61955C10.8089%203.32685%2010.3343%203.32681%2010.0416%203.61955C9.74898%203.9123%209.74893%204.38689%2010.0416%204.67961L14.5981%209.23625L3.49957%209.19378L3.42246%209.19769C3.04466%209.23628%202.74994%209.55544%202.74994%209.94344C2.74999%2010.3574%203.08562%2010.6931%203.49957%2010.6931L14.5981%2010.7356L10.0416%2015.2922L9.99082%2015.3488C9.75041%2015.6433%209.76707%2016.0777%2010.0416%2016.3523C10.3161%2016.6268%2010.7506%2016.6434%2011.045%2016.403L11.1016%2016.3523L16.9378%2010.5159C17.2305%2010.2232%2017.2305%209.74864%2016.9378%209.45588L11.1016%203.61955Z'%20fill='%2327272F'/%3e%3c/svg%3e",Qxe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M4%205.5C4%204.67157%204.67157%204%205.5%204H14.5C15.3284%204%2016%204.67157%2016%205.5V14.5C16%2015.3284%2015.3284%2016%2014.5%2016H5.5C4.67157%2016%204%2015.3284%204%2014.5V5.5Z'%20fill='black'/%3e%3c/svg%3e",$xe=e=>{const t=e?"1.125rem":"1.25rem",n=e?"0.3125rem":"0.4375rem",r=e?"0.25rem":"0.375rem",i=e?"0.625rem":"0.75rem";return{touchTarget:{display:"flex",justifyContent:"center",alignItems:"center",padding:n,margin:`-${n}`,cursor:"pointer"},plainShellRound:{padding:r,background:"var(--dropdown-button-hover)",transition:"transform 0.1s ease, background-color 0.1s ease",cursor:"pointer"},goldShellRound:{padding:r,transition:"transform 0.1s ease",cursor:"pointer"},goldShellPill:{padding:`${r} ${i}`,transition:"transform 0.1s ease, padding 0.18s ease, border-radius 0.18s ease",cursor:"pointer"},label:{fontFamily:"var(--font-Inter, Inter)",fontSize:e?"0.8125rem":"0.875rem",fontWeight:600,letterSpacing:"-0.00875rem",color:"#27272F",lineHeight:1,whiteSpace:"nowrap",userSelect:"none"},icon:{width:t,height:t,minWidth:t,minHeight:t,filter:"var(--icon-filter)",transition:"filter 0.2s ease"},iconTyping:{width:t,height:t,minWidth:t,minHeight:t,filter:"none"}}},M8=({isTyping:e=!1,onClick:t,useSpinner:n=!1})=>{const r=U(O=>O.assistantInProgress),i=U(O=>O.multipleChoiceAnswers),s=kn(O=>O.answersByBlock),l=kn(O=>O.writeInsByBlock),u=G.useMemo(()=>{let O=Object.values(i).reduce((F,D)=>F+D.size,0);return Object.values(s).forEach(F=>Object.values(F).forEach(D=>{O+=D.length})),Object.values(l).forEach(F=>Object.values(F).forEach(D=>{(D||"").trim()&&(O+=1)})),O},[i,s,l]),{trackSendButton:d}=Nt(),{isMobile:h}=We(),[m,g]=G.useState(!1),y=G.useRef(!1),b=G.useRef(null);G.useEffect(()=>()=>{b.current!==null&&clearTimeout(b.current)},[]);const S=u>0&&!r,I=$xe(h),w=()=>{r&&n||r&&!n||(d(),t&&t())},C=O=>{if(y.current){y.current=!1;return}w()},E=()=>r?n?gl:Qxe:e||S?NB:Zxe,A=()=>r?n?"Processing":"Stop":"Send",_=r&&n,R=(e||S)&&!r,L=()=>e||r||S?I.iconTyping:I.icon,j=()=>S?I.goldShellPill:e||r?I.goldShellRound:I.plainShellRound;return c.jsx("div",{style:I.touchTarget,onClick:C,role:"button",tabIndex:r?-1:0,"aria-label":S?`Send ${u} picks`:A(),onMouseDown:()=>!r&&g(!0),onMouseUp:()=>g(!1),onMouseLeave:()=>g(!1),onTouchStart:O=>{y.current=!0,r||g(!0)},onTouchEnd:O=>{g(!1),r||(O.preventDefault(),w())},onTouchCancel:()=>g(!1),onKeyDown:O=>
1903{r||(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),g(!0),w(),b.current!==null&&clearTimeout(b.current),b.current=setTimeout(()=>{b.current=null,g(!1)},150))},children:c.jsxs(Lk,{as:"span",shape:S?"pill":"round",shimmer:R,sheenWidth:"65%",pressed:m,pressedScale:.9,style:j(),contentStyle:{gap:"0.25rem"},children:[S&&c.jsxs("span",{style:I.label,className:"send-pill-open",children:["Send (",c.jsx("span",{className:"mcq-send-count-pop",children:u},u),")"]}),c.jsx("img",{src:E(),alt:A(),style:L(),className:_?"spinner-rotate":void 0})]})})},Nk=e=>{const t=e?"1.125rem":"1.25rem",n=e?"0.3125rem":"0.4375rem",r=e?"1.625rem":"2rem",i=e?"1.0625rem":"1.25rem",s=e?"1rem":"1.125rem",l=e?"0.625rem":"0.6875rem",u={display:"inline-flex",justifyContent:"center",alignItems:"center",width:r,height:r,boxSizing:"border-box",padding:0,borderRadius:"var(--radius-full, 999px)",flexShrink:0,transition:"transform 0.1s ease, background-color 0.1s ease"};return{voiceGroup:{display:"inline-flex",alignItems:"center",gap:e?"0.375rem":"0.5rem",flexShrink:0},touchTarget:{display:"flex",justifyContent:"center",alignItems:"center",width:r,height:r,padding:n,margin:`-${n}`,boxSizing:"content-box",cursor:"pointer",background:"none",border:"none",flexShrink:0,touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},cancelTouchTarget:{display:"flex",justifyContent:"center",alignItems:"center",width:r,height:r,padding:n,margin:`-${n}`,boxSizing:"content-box",cursor:"pointer",background:"none",border:"none",flexShrink:0,touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},micShell:{...u,background:"var(--dropdown-button-hover)",color:"var(--text-default-secondary, #3F3F4A)"},stopShell:{...u,background:"var(--dropdown-button-hover)",color:"var(--text-default-secondary, #3F3F4A)"},processingShell:{...u,background:"var(--dropdown-button-hover)",color:"var(--text-default-secondary, #3F3F4A)",cursor:"wait"},cancelShell:{...u,width:s,height:s,background:"transparent",color:"var(--text-default-secondary, #3F3F4A)"},cancelIcon:{width:l,height:l,display:"block",filter:"var(--icon-filter)",opacity:.65},micIcon:{width:t,height:t,display:"block",filter:"var(--icon-filter)"},stopIcon:{width:i,height:i,display:"block",filter:"var(--icon-filter)"}}},eSe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M12%2015a3%203%200%200%200%203-3V6a3%203%200%201%200-6%200v6a3%203%200%200%200%203%203Z'%20fill='%233F3F4A'/%3e%3cpath%20d='M18%2012a1%201%200%201%200-2%200%204%204%200%200%201-8%200%201%201%200%201%200-2%200%206%206%200%200%200%205%205.917V20H8.5a1%201%200%201%200%200%202h7a1%201%200%201%200%200-2H13v-2.083A6%206%200%200%200%2018%2012Z'%20fill='%233F3F4A'/%3e%3c/svg%3e",zB="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3crect%20x='4.5'%20y='4.5'%20width='15'%20height='15'%20rx='3.5'%20fill='%230E0E11'/%3e%3c/svg%3e";function zk(e){if(e)switch(e){case"not-allowed":return"Microphone blocked â enable it in Settings â Microphone";case"audio-capture":return"No microphone found";case"unsupported":return"Voice input isn't supported in this browser";case"recorder-error":return"Couldn't start recording â try again";case"transcribe-failed":return"Couldn't convert speech to text â try again";case"mic-error":return"Couldn't access the microphone â try again";default:return"Voice input failed â try again"}}const rC=({onCancel:e})=>{const{isMobile:t}=We(),n=Nk(t),r=G.useRef(!1),i=G.useRef(null);G.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const s=G.useCallback(()=>{r.current=!0,i.current!==null&&clearTimeout(i.current),i.current=setTimeout(()=>{r.current=!1,i.current=null},700)},[]),l=G.useCallback(()=>{r.current=!1,i.current!==null&&(clearTimeout(i.current),i.current=null)},[]);return c.jsx("button",{type:"button",style:{...n.cancelTouchTarget},onClick:u=>{if(r.current){r.current=!1;return}u.preventDefault(),u.stopPropagation(),e()},onTouchEnd:u=>{u.preventDefault(),u.stopPropagation(),e(),s()},onTouchCancel:l,"aria-label":"Cancel dictation",title:"Cancel dictation",children:c.jsx("span",{style:n.cancelShell,children:c.jsx("img",{src:ZI,alt:"",style:n.cancelIcon,"aria-hidden":!0})})})},HB=({isTyping:e=!1,onClickSend:t,useSpinner:n=!1,hasText:r=!1,voice:i})=>{const{isMobile:s}=We(),{trackVoiceDictationUsed:l,trackVoiceDictationCancelled:u}=Nt(),d=Nk(s),h=!!i?.isSupported,m=zk(i?.error),g=G.useRef(!1),y=G.useRef(null);G.useEffect(()=>()=>{y.current!==null&&clearTimeout(y.current)},[]);const b=G.useCallback(()=>{g.current=!0,y.current!==null&&clearTimeout(y.current),y.current=setTimeout(()=>{g.current=!1,y.current=null},700)},[]),S=G.useCallback(()=>{g.current=!1,y.current!==null&&(clearTimeout(y.current),y.current=null)},[]),I=G.useCallback(()=>{i?.start()},[i]),w=G.useCallback(()=>
1903{l(),i?.stop()},[l,i]),C=G.useCallback(()=>{u(),i?.cancel()},[u,i]),E=c.jsx("button",{type:"button",style:{...d.touchTarget},onClick:L=>{if(g.current){g.current=!1;return}L.preventDefault(),L.stopPropagation(),w()},onTouchEnd:L=>{L.preventDefault(),L.stopPropagation(),w(),b()},onTouchCancel:S,"aria-label":"Stop dictation",title:"Stop dictation",children:c.jsx("span",{style:d.stopShell,children:c.jsx("img",{src:zB,alt:"",style:d.stopIcon,"aria-hidden":!0})})}),A=c.jsx("button",{type:"button",style:{...d.touchTarget,cursor:"wait"},disabled:!0,"aria-busy":"true","aria-label":"Transcribing voice input",title:"Transcribingâ¦",children:c.jsx("span",{style:d.processingShell,children:c.jsx(Cl,{size:s?1.125:1.25})})}),_=c.jsx(M8,{isTyping:e,onClick:t,useSpinner:n}),R=c.jsx(M8,{isTyping:!0,onClick:()=>i?.stopAndSend(),useSpinner:n});return i?.state==="listening"?c.jsxs("span",{style:d.voiceGroup,children:[!s&&c.jsx(rC,{onCancel:C}),E,s&&R]}):i?.state==="processing"?c.jsxs("span",{style:d.voiceGroup,children:[!s&&c.jsx(rC,{onCancel:C}),A,s&&R]}):r||e||!h?_:c.jsx("button",{type:"button",style:{...d.touchTarget},onClick:L=>{if(g.current){g.current=!1;return}L.preventDefault(),L.stopPropagation(),I()},onTouchEnd:L=>{L.preventDefault(),L.stopPropagation(),I(),b()},onTouchCancel:S,"aria-label":m?`Start voice input â ${m}`:"Start voice input",title:m||"Start voice input",children:c.jsx("span",{style:d.micShell,children:c.jsx("img",{src:eSe,alt:"",style:d.micIcon,"aria-hidden":!0})})})};function tSe(e,t,n){const r=u=>[1,3,5].map(d=>parseInt(u.slice(d,d+2),16)),i=r(e),s=r(t),l=Math.max(0,Math.min(1,n));return`#${i.map((u,d)=>Math.round(u+(s[d]-u)*l).toString(16).padStart(2,"0")).join("")}`}function iC(e,t){for(let n=1;n<e.length;n+=1){const[r,i]=e[n];if(t<=r){const[s,l]=e[n-1],u=r-s||1;return tSe(l,i,(t-s)/u)}}return e[e.length-1][1]}const lu=[[0,"#c98474"],[.2,"#e39c82"],[.42,"#f3b490"],[.62,"#fac99f"],[.8,"#fddcb8"],[.92,"#ffebd3"],[1,"#fff8ec"]],UB="#f0a888",nSe="#94c1b4",WB="#cabfae",rSe=` 1904@keyframes tonita-voice-spin { 1905 from { transform: rotate(0deg); } 1906 to { transform: rotate(360deg); } 1907} 1908`,iSe=lu[1][1],aSe=lu[lu.length-2][1];function sSe({size:e}){const t=Math.max(3,Math.round(4.32)),n=(48-t)/2,r=2*Math.PI*n,i={animationName:"tonita-voice-spin",animationDuration:"900ms",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"50% 50%"};return c.jsxs(c.Fragment,{children:[c.jsx("style",{children:rSe}),c.jsxs("svg",{width:e,height:e,viewBox:"0 0 48 48","aria-hidden":"true",focusable:"false","data-voice-connecting":"true",children:[c.jsx("circle",{cx:"24",cy:"24",r:n,fill:"none",stroke:aSe,strokeWidth:t}),c.jsx("circle",{cx:"24",cy:"24",r:n,fill:"none",stroke:iSe,strokeWidth:t,strokeLinecap:"round",strokeDasharray:`${r*.26} ${r}`,style:i})]})]})}const aC="tonita:voice-after-sign-in",oSe=600*1e3;function VB(){try{return window.sessionStorage}catch{return null}}function lSe(e=Date.now()){try{VB()?.setItem(aC,String(e))}catch{}}function cSe(e=Date.now()){const t=VB();if(!t)return!1;let n=!1;try{const r=t.getItem(aC);if(r!==null){t.removeItem(aC);const i=Number(r);n=Number.isFinite(i)&&e-i<=oSe}}catch{n=!1}return n}function uSe(e){let t;try{t=JSON.parse(e)}catch{return null}switch(t.type){case"voice_sideband_attached":return{kind:"attached"};case"voice_stream_ready":return{kind:"streamReady"};case"status_update":{const n=t.component?.statusUpdate?.text?.trim();return n?{kind:"statusUpdate",text:n}:null}case"search_error":return{kind:"searchError",message:t.error_message||t.error||"the search failed"};case"carousel_partial_start":{const n=hw(t);return n?{kind:"carouselPartialStart",...n,carouselTitle:t.component?.carousel?.title||null}:null}case"carousel_partial_update":{const n=hw(t);return n?{kind:"carouselPartialUpdate",...n,carouselTitle:t.component?.carousel?.title||null,cards:dSe(t.component?.carousel?.cards),stats:{numUniqueStores:t.component?.carousel?.numUniqueStores,numUniqueBrands:t.component?.carousel?.numUniqueBrands,numProducts:t.component?.carousel?.numProducts}}:null}case"carousel_partial_complete":{const n=hw(t);return n?{kind:"carouselPartialComplete",...n}:null}case"voice_tool_unanswered":return{kind:"toolUnanswered",tool:t.error_message||t.error||null,toolCallId:t.emission_group_id_path?.[0]||null};default:return null}}function hw(e){const t=e.message_id,n=e.component?.componentId;return!t||!n?null:{messageId:t,componentId:n,groupPath:e.emission_group_id_path}}function dSe(e){return Array.isArray(e)?e.filter(t=>typeof t=="object"&&t!==null&&!Array.isArray(t)):[]}const qB="https://prod-tonita-voice-server-axo2an4bfa-uc.a.run.app";function fSe(){return!!qB}function Jv(){return qB}
1908class Ed extends Error{constructor(t,n=null){super(t),this.name="VoiceServerError",this.status=n}}async function hSe(e,t,n){if(!t||!t.trim())throw new Ed("A chat is required before starting a voice conversation.",400);let r;try{r=await Ht(!0)}catch{throw new Ed("Please sign in before starting a voice conversation.",401)}let i;try{i=await fetch(`${Jv()}/realtime/create-call`,{method:"POST",headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json"},body:JSON.stringify({chat_id:t.trim(),sdp:e}),signal:n})}catch(l){throw l?.name==="AbortError"?l:new Ed("Could not reach the voice service. Check your connection and try again.")}if(!i.ok){const l=await GB(i);throw new Ed(l,i.status)}const s=await i.json();if(!s.call_id||!s.sdp)throw new Ed("The voice service returned an unexpected response.");return{voiceCallId:s.call_id,answerSdp:s.sdp,model:s.model??"",maxSessionDurationSeconds:s.max_session_duration_seconds??3600}}const pSe=1500,mSe=5;async function gSe({voiceCallId:e,onEmission:t,onOpen:n,signal:r}){let i;try{i=await Ht()}catch{return"notSignedIn"}class s extends Error{}let l="unreachable",u=mSe;try{await iP(`${Jv()}/realtime/emissions`,{method:"POST",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"},body:JSON.stringify({call_id:e}),signal:r,openWhenHidden:!0,onopen:async d=>{if(d.status===401||d.status===403)throw l="forbidden",new s;if(d.status===404||d.status===503)throw l="notWatched",new Error(`voice feed: no call to watch (${d.status})`);const h=d.headers.get("content-type");if(!d.ok||!h?.startsWith(zp))throw l="unreachable",new Error(`voice feed: not a stream (${d.status})`);n?.()},onmessage:d=>{const h=uSe(d.data);if(h){t(h);return}},onclose:()=>{throw l="ended",new s},onerror:d=>{if(d instanceof s)throw d;if(u-=1,u<=0)throw new s;return pSe}})}catch(d){if(!(d instanceof s))throw d}return l}async function P8(e){let t;try{t=await Ht()}catch{return!1}const n={call_id:e.voiceCallId,action:e.action};e.listingId&&(n.listing_id=e.listingId),e.componentId&&(n.component_id=e.componentId),e.title&&(n.title=e.title);try{return(await fetch(`${Jv()}/realtime/browser-actions`,{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify(n)})).ok}catch{return!1}}async function GB(e){try{const t=await e.json();if(t?.error)return t.error}catch{}return e.status===401||e.status===403?"You do not have access to voice mode with this account.":"Voice mode is unavailable right now. Please try again."}async function ySe(e){let t;try{t=await Ht()}catch{return{ok:!1,error:"Sign in again to upload a photo."}}let n;try{n=await fetch(`${Jv()}/realtime/upload-photo`,{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify({call_id:e.voiceCallId,image_base64:e.imageBase64})})}catch{return{ok:!1,error:"Your photo could not be sent. Try again."}}if(!n.ok)return{ok:!1,error:await GB(n)};try{return{ok:!0,imageId:(await n.json()).image_id??""}}catch{return{ok:!0,imageId:""}}}function vSe(e,t){switch(e){case"ended":return t?F8:null;case"forbidden":return"This voice call was started on another account. Tap to start a new one.";case"notSignedIn":return"We could not check that you are signed in. Tap to try again.";case"notWatched":case"unreachable":return F8}}const F8="The connection to Tonita dropped. Tap to start a new call.";function Hk(){return fSe()}const bSe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3crect%20x='3'%20y='9'%20width='2'%20height='6'%20rx='1'%20fill='%233F3F4A'/%3e%3crect%20x='7'%20y='6'%20width='2'%20height='12'%20rx='1'%20fill='%233F3F4A'/%3e%3crect%20x='11'%20y='3'%20width='2'%20height='18'%20rx='1'%20fill='%233F3F4A'/%3e%3crect%20x='15'%20y='6'%20width='2'%20height='12'%20rx='1'%20fill='%233F3F4A'/%3e%3crect%20x='19'%20y='9'%20width='2'%20height='6'%20rx='1'%20fill='%233F3F4A'/%3e%3c/svg%3e",YB=({disabled:e=!1})=>{const{isMobile:t}=We(),n=Bt(),r=Nk(t),i=cr(C=>C.enter),s=cr(C=>C.phase==="requestingMic"||C.phase==="connecting"),{trackVoiceCallStarted:l}=Nt(),u=be(C=>C.userId),d=be(C=>C.isGuest),[h,m]=G.useState(!1),g=!!u&&!d,y=()=>g?!1:(m(!0),!0),b=G.useRef(!1),S=G.useRef(null);G.useEffect(()=>()=>{S.current!==null&&clearTimeout(S.current)},[]);const I=G.useCallback(()=>{b.current=!0,S.current!==null&&clearTimeout(S.current),S.current=setTimeout(()=>{b.current=!1,S.current=null},700)},[]),w=G.useCallback(()=>{b.current=!1,S.current!==null&&(clearTimeout(S.current),S.current=null)},[]);return Hk()?c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",disabled:e||s,style:{...r.touchTarget,...e?{cursor:"not-allowed",opacity:.4}:null,...s?{cursor:"default"}:null},onClick:C=>{if(b.current){b.current=!1;return}C.preventDefault(),C.stopPropagation(),!y()&&(l(),i())},onTouchEnd:C=>{e||s||(C.preventDefault(),C.stopPropagation(),I(),!y()&&(l(),i()))},onTouchCancel:w,"aria-label":s?"Connecting":"Talk to Tonita","aria-busy":s||void 0,title:s?"Connecting":"Talk to Tonita","data-voice-mode-button":"true",children:c.jsx("span",{style:r.micShell,children:s?c.jsx(sSe,{size:t?18:20}):c.jsx("img",{src:bSe,alt:"",style:r.micIcon,"aria-hidden":!0})})}),c.jsx(Ov,{isOpen:h,onClose:()=>m(!1),onConfirm:()=>{m(!1),lSe(),n("/sign-in")},title:"Sign in to start a call",message:"You need to be signed in to talk with Tonita. It only takes a moment, and we'll bring you straight back here.",confirmLabel:"Sign in",cancelLabel:"Not now"})]}):null},KB="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M12%2
1908015a3%203%200%200%200%203-3V6a3%203%200%201%200-6%200v6a3%203%200%200%200%203%203Z'%20fill='%230E0E11'/%3e%3cpath%20d='M18%2012a1%201%200%201%200-2%200%204%204%200%200%201-8%200%201%201%200%201%200-2%200%206%206%200%200%200%205%205.917V20H8.5a1%201%200%201%200%200%202h7a1%201%200%201%200%200-2H13v-2.083A6%206%200%200%200%2018%2012Z'%20fill='%230E0E11'/%3e%3c/svg%3e",ly="24px",xSe=` 1909 @keyframes voice-wave-bar { 1910 0%, 100% { transform: scaleY(0.35); opacity: 0.55; } 1911 50% { transform: scaleY(1); opacity: 1; } 1912 } 1913 @keyframes voice-pulse-ring { 1914 0% { transform: scale(0.85); opacity: 0.55; } 1915 70% { transform: scale(1.35); opacity: 0; } 1916 100% { transform: scale(1.35); opacity: 0; } 1917 } 1918`,SSe=[8,14,20,12,18,10,16,11],XB=({state:e})=>{const{isMobile:t}=We(),n=e==="listening";if(!n&&!(e==="processing"))return null;const i="#FDB341",s="var(--Gradients-lemon, linear-gradient(90deg, #FCDA2E 0%, #FDB341 100%))",l=t?"1.125rem":"1.25rem";return c.jsxs(c.Fragment,{children:[c.jsx("style",{children:xSe}),c.jsx("div",{role:"status","aria-live":"polite","aria-label":n?"Listening for speech":"Transcribing speech","data-testid":n?"voice-listening-surface":"voice-processing-surface",style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t?"0.5rem":"0.625rem",width:"100%",height:ly,boxSizing:"border-box",overflow:"visible"},children:n?c.jsxs(c.Fragment,{children:[c.jsxs("div",{"aria-hidden":!0,style:{position:"relative",width:l,height:l,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},children:[c.jsx("span",{style:{position:"absolute",inset:"-2px",borderRadius:"999px",border:`1.5px solid ${i}`,animation:"voice-pulse-ring 1.4s ease-out infinite"}}),c.jsx("span",{style:{position:"absolute",inset:"-2px",borderRadius:"999px",border:`1.5px solid ${i}`,animation:"voice-pulse-ring 1.4s ease-out 0.45s infinite"}}),c.jsx("span",{style:{width:"100%",height:"100%",borderRadius:"999px",background:s,display:"inline-flex",alignItems:"center",justifyContent:"center",zIndex:1},children:c.jsx("img",{src:KB,alt:"",width:10,height:10,"aria-hidden":!0,style:{display:"block",filter:"none"}})})]}),c.jsx("div",{"aria-hidden":!0,"data-testid":"voice-waveform",style:{display:"flex",alignItems:"center",gap:"2px",height:ly,flex:1,minWidth:0},children:SSe.map((u,d)=>c.jsx("span",{style:{width:"2.5px",height:`${u}px`,borderRadius:"999px",background:i,transformOrigin:"center",animation:`voice-wave-bar ${.7+d%4*.12}s ease-in-out ${d*.05}s infinite`}},d))}),c.jsx("span",{style:{flexShrink:0,fontFamily:"var(--font-Inter, Inter)",fontSize:t?"0.8125rem":"0.875rem",fontWeight:600,lineHeight:ly,color:"var(--text-default-primary, #0E0E11)",letterSpacing:"-0.01rem",userSelect:"none"},children:"Listeningâ¦"})]}):c.jsxs(c.Fragment,{children:[c.jsx(Cl,{size:t?1:1.125}),c.jsx("span",{style:{fontFamily:"var(--font-Inter, Inter)",fontSize:t?"0.8125rem":"0.875rem",fontWeight:600,lineHeight:ly,color:"var(--text-default-secondary, #3F3F4A)",letterSpacing:"-0.01rem",userSelect:"none"},children:"Transcribingâ¦"})]})})]})},pw={row:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:"0.5rem",width:"100%",marginTop:"0.125rem"},text:{flex:1,minWidth:0,fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:500,lineHeight:1.35,color:"var(--text-default-secondary, #3F3F4A)"},dismiss:{flexShrink:0,border:"none",background:"transparent",padding:"0 0.125rem",margin:0,cursor:"pointer",color:"var(--text-default-tertiary, #71717F)",fontSize:"0.875rem",lineHeight:1,fontFamily:"var(--font-Inter, Inter)"}},JB=({visible:e})=>{const[t,n]=k.useState(()=>pR());return k.useEffect(()=>{n(e?pR():!1)},[e]),!e||t?null:c.jsxs("div",{role:"status","data-testid":"mic-blocked-notice",style:pw.row,children:[c.jsx("span",{style:pw.text,children:"Microphone blocked â enable it in Settings â Microphone to use voice input."}),c.jsx("button",{type:"button",style:pw.dismiss,"aria-label":"Dismiss microphone notice",title:"Dismiss",onClick:()=>{Tde(!0),n(!0)},children:"Ã"})]})},B8="Ask a follow-up...",sC="Ask anything...",N8=["Search for products, styles, or brands...","What are you looking for?","Describe what you have in mind...",sC],xd=xt(),sl={position:"absolute",left:0,top:0,right:0,height:"24px",pointerEvents:"none",color:"var(--text-disabled-default, #A6A6B0)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",zIndex:1,display:"flex",alignItems:"center",overflow:"hidden",
1918whiteSpace:"nowrap"},wSe={display:"flex",width:"100%",flexDirection:"column",alignItems:"center",position:"relative"},z8={display:"flex",flexDirection:"row",alignItems:"flex-start",alignSelf:"stretch",width:"100%"},CSe=()=>({flex:"1 0 0",border:"none",outline:"none",background:"transparent",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:500,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",resize:"none",minHeight:"24px",overflowY:"auto",overscrollBehavior:"contain",caretColor:"var(--accent, #FE765F)",padding:"0"}),ZB=G.memo(({value:e,onChange:t,onTypingStart:n,onTypingStop:r,onSend:i,onPasteImages:s,inputRef:l,disabled:u=!1,autoFocus:d=!0,writingArea:h,placeholder:m,textOriginRef:g})=>{const{isMobile:y}=We(),b=m?.text,S=m?.visible??!0,I=iu(),w=U(Z=>Z.assistantInProgress),C=U(Z=>Z.messages),E=Fe(Z=>Z.isCarouselOpen),A=Xt(Z=>Z.isListingDetailsOpen),{trackSendButton:_}=Nt(),R=l||G.useRef(null),L=(E||A)&&!e.trim()&&!w,j=G.useMemo(()=>y?sC:N8[Math.floor(Math.random()*N8.length)],[y]),O=!e.trim()&&!w,F=b!==void 0&&O,D=!F&&O&&C.length===0&&!E&&!A,H=F?S?b:"":L?B8:sC,[V,Y]=G.useState(!1);G.useEffect(()=>{if(!h||I)return;const Z=requestAnimationFrame(()=>Y(!0));return()=>cancelAnimationFrame(Z)},[h,I]);const K=h?{...z8,alignItems:"flex-start",minHeight:e.length>0?h.grownHeight:h.restHeight,transition:V?"min-height var(--duration-composer-grow, 460ms) var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))":void 0}:z8,z={...sl,top:0,bottom:0,height:"auto",whiteSpace:"normal",alignItems:"flex-start",fontSize:`var(--composer-placeholder-font-size, ${sl.fontSize})`,lineHeight:`var(--composer-placeholder-line-height, ${sl.lineHeight})`,paddingTop:`calc((${sl.lineHeight} - var(--composer-placeholder-line-height, ${sl.lineHeight})) / 2)`,opacity:S?1:0,transition:"opacity var(--duration-placeholder-fade, 640ms) var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))"};G.useEffect(()=>{y||!d||!R.current||w||R.current.focus()},[w,y,d]);const q=G.useCallback(()=>{const Z=R.current;if(!Z)return;if(!Z.value){if(Z.style.height==="")return;Z.style.height="";return}Z.style.height="24px";const te=Z.scrollHeight;Z.style.height="",te>Z.clientHeight&&(Z.style.height=`${Math.min(te,96)}px`)},[]);G.useEffect(()=>{q()},[e,q]);const $=Z=>{const te=Z.target.value;t(te),te.length>0&&e.length===0?n?.():te.length===0&&e.length>0&&!w&&r?.()},ue=()=>{w||(i?.(e.trim()),t(""),y||setTimeout(()=>{R.current?.focus()},50))},ge=Z=>{if(u||w)return;const te=Z.clipboardData?.items;if(!te)return;const B=[];for(let N=0;N<te.length;N++){const le=te[N];if(le.kind==="file"&&cce(le.type)){const ae=le.getAsFile();ae&&B.push(ae)}}B.length!==0&&(Z.preventDefault(),s?.(B),R.current?.focus())},M=Z=>{if(Z.key==="Enter"&&!Z.shiftKey){if(y)return;Z.preventDefault(),_(),ue()}};return c.jsx("div",{style:wSe,children:c.jsxs("div",{style:K,ref:g,children:[c.jsx("textarea",{ref:R,name:"chat-input-textarea",rows:1,style:{...CSe(),alignSelf:h?"stretch":void 0,color:e.length>0?"var(--text-default-primary, #0E0E11)":"var(--text-disabled-default, #A6A6B0)",opacity:u?.6:1,cursor:u?"not-allowed":"text",caretColor:"var(--accent, #FE765F)"},placeholder:"","aria-label":xd?"Message":void 0,"aria-placeholder":xd&&H?H:void 0,value:e,onChange:$,onKeyPress:M,onPaste:ge,maxLength:1e4,disabled:u}),F&&!xd&&c.jsx("div",{style:z,"aria-hidden":"true","data-testid":"supplied-placeholder",children:b}),!F&&L&&!xd&&c.jsx("div",{style:sl,"aria-hidden":"true",children:B8}),D&&!xd&&c.jsx("div",{style:sl,"aria-hidden":"true",children:j}),xd&&O&&H&&c.jsx("div",{style:F?z:sl,"aria-hidden":"true","data-testid":"native-placeholder",children:H})]})})}),H8=[{value:"quick",name:"Quick",meta:"Faster results for most searches."},{value:"deep",name:"Deep",meta:"Takes a little longer but reasons carefully for more thoughtful results."}],ISe=(e,t)=>({...Il,height:28,padding:"0 8px",borderRadius:10,display:"flex",alignItems:"center",gap:4,font:`500 13px/1 ${Nn.body}`,color:Ze.ink2,whiteSpace:"nowrap",background:e||t?Ze.gray1:"transparent",transition:uf(ou.fast,"background-color")}),QB=()=>{const e=Bt(),t=U(b=>b.agenticChatV2),n=U(b=>b.toggleAgenticChatV2),r=be($c),[i,s]=k.useState(!1),l=k.useRef(null),[u,d]=k.useState(!1),h=r&&t?"deep":"quick",m=H8.find(b=>b.value===h),g=b=>{if(s(!1),b!==h){if(b==="deep"&&!r){d(!0);return}n()}},y=()=>{Cle(),d(!1),e("/sign-in")};return c.jsxs(c.Fragment,{children:[c.jsxs(pp,{ref:l,style:({hovered:b})=>ISe(i,b),"aria-haspopup":"dialog","aria-expanded":i,"aria-label":`Answer mode: ${m.name}`,onClick:()=>s(!0),children:[m.name,c.jsx(PB,{open:i})]}),c.jsx(MB,{open:i,onClose:()=>s(!1),anchor:l,title:"How should Tonita answer?",children:c.jsx("div",{role:"listbox","aria-label":"Answer mode",children:H8.map(b=>c.jsx(Zy,{name:b.name,meta:b.meta,spacious:!0,selected:b.value===h,onSelect:()=>g(b.value)},b.value))})}),c.jsx(Ov,{isOpen:u,onClose:()=>d(!1),onConfirm:y,title:"Sign in to use Thinking",message:"Thinking Mode may take longer as Tonita reasons more carefully for better results. Please sign in to enable Thinking Mode.",confirmLabel:"Continue",cancelLabel:"Not now"})]})},kSe=()=>(E1(e=>e.showBlocks),E1(e=>e.toggleShowBlocks),null),U8=!1,ESe={display:"flex",flexDirection:"column",width:"100%",gap:"0.625rem"},TSe={display:"flex",flexDirection:"row",width:"100%",minWidth:0,position:"relative"},ASe={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",gap:"0.5rem"},_Se={display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem"},RSe={display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"0.375rem",flexShrink:0}
1918,jSe=G.memo(({value:e,onChange:t,onTypingStart:n,onTypingStop:r,onSendMessage:i,onClickSend:s,onImagesSelected:l,onPasteImages:u,isTyping:d=!1,isThinking:h=!1,disabled:m=!1,voice:g,autoFocus:y=!0,writingArea:b,placeholder:S,textOriginRef:I,showVoiceModeButton:w=!0})=>{const[C,E]=k.useState(!1),{trackVoiceDictationCancelled:A}=Nt(),_=g?.state==="listening"||g?.state==="processing",R=()=>{A(),g?.cancel()};return c.jsxs("div",{style:ESe,children:[c.jsxs("div",{style:TSe,children:[c.jsx("div",{"aria-hidden":_||void 0,style:{width:"100%",minWidth:0,..._?{visibility:"hidden",pointerEvents:"none"}:null},children:c.jsx(ZB,{value:e,onChange:t,onTypingStart:n,onTypingStop:r,onSend:i,onPasteImages:u,disabled:m||_,autoFocus:y,writingArea:b,placeholder:S,textOriginRef:I})}),_&&g&&c.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center"},children:c.jsx(XB,{state:g.state})})]}),U8,c.jsxs("div",{style:ASe,children:[c.jsxs("div",{style:_Se,children:[_?c.jsx(rC,{onCancel:R}):c.jsx(BB,{onUploadedImagesChange:l,disabled:m}),c.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",visibility:_?"hidden":"visible",pointerEvents:_?"none":"auto"},"aria-hidden":_||void 0,children:[U8,c.jsx(QB,{})]})]}),c.jsxs("div",{style:RSe,children:[c.jsx(HB,{isTyping:d,onClickSend:s,useSpinner:!0,hasText:e.trim().length>0,voice:g}),w&&!_&&c.jsx(YB,{disabled:m})]})]}),g?.micBlocked?c.jsx(JB,{visible:!0}):null,g?.state==="error"&&g.error&&g.error!=="not-allowed"?c.jsx("div",{role:"alert",style:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:500,lineHeight:1.35,color:"var(--text-default-secondary, #3F3F4A)"},children:zk(g.error)}):null]})}),OSe={display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem"},LSe={display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem"},DSe={display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",flexShrink:0},MSe=({onImagesSelected:e,isTyping:t=!1,onClickSend:n,disabled:r=!1,hasText:i=!1,voice:s,showVoiceModeButton:l=!0})=>{const u=s?.state==="listening"||s?.state==="processing";return c.jsxs("div",{style:OSe,children:[c.jsxs("div",{style:LSe,children:[!u&&c.jsx(BB,{onUploadedImagesChange:e,disabled:r}),c.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",visibility:u?"hidden":"visible",pointerEvents:u?"none":"auto"},"aria-hidden":u||void 0,children:[c.jsx(QB,{}),c.jsx(kSe,{})]})]}),c.jsxs("div",{style:DSe,children:[c.jsx(HB,{isTyping:t,onClickSend:n,useSpinner:!0,hasText:i,voice:s}),l&&!u&&c.jsx(YB,{disabled:r})]})]})},PSe={position:"relative",width:"100%"},FSe=G.memo(({value:e,onChange:t,onTypingStart:n,onTypingStop:r,onSendMessage:i,onClickSend:s,onImagesSelected:l,onPasteImages:u,isTyping:d=!1,isThinking:h=!1,inputRef:m,disabled:g=!1,voice:y,autoFocus:b=!0,writingArea:S,placeholder:I,textOriginRef:w,showVoiceModeButton:C=!0})=>{const E=y?.state==="listening"||y?.state==="processing";return c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:PSe,children:[c.jsx("div",{"aria-hidden":E||void 0,style:E?{visibility:"hidden",pointerEvents:"none"}:void 0,children:c.jsx(ZB,{value:e,onChange:t,onTypingStart:n,onTypingStop:r,onSend:i,onPasteImages:u,inputRef:m,disabled:g||E,autoFocus:b,writingArea:S,placeholder:I,textOriginRef:w})}),E&&y&&c.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center"},children:c.jsx(XB,{state:y.state})})]}),c.jsx(MSe,{isTyping:d,onImagesSelected:l||(()=>{}),onClickSend:s,disabled:g||E,hasText:e.trim().length>0,voice:y,showVoiceModeButton:C}),y?.micBlocked?c.jsx(JB,{visible:!0}):null,y?.state==="error"&&y.error&&y.error!=="not-allowed"?c.jsx("div",{role:"alert",style:{fontFamily:"var(--font-Inter, Inter)",fontSize:"0.75rem",fontWeight:500,lineHeight:1.35,color:"var(--text-default-secondary, #3F3F4A)"},children:zk(y.error)}):null]})});function BSe(e){const t=(e||"").toLowerCase();return t.includes("webm")?"webm":t.includes("ogg")?"ogg":t.includes("wav")?"wav":t.includes("aac")||t.includes("m4a")?"m4a":t.includes("mp4")?"mp4":t.includes("mpeg")||t.includes("mp3")?"mp3":"audio"}async function NSe(e,t){const n="https://api.tonita.co",r=be.getState().userId;if(!r)throw new Error("User not authenticated");const i=await Ht(),s=new FormData;s.append("json",new Blob([JSON.stringify({user_id:r})],{type:"application/json"})),s.append("audio",e,`dictation.${BSe(e.type)}`);const l={Authorization:`Bearer ${i}`,"user-uuid":r,...Sn()};return((await Tn.post(`${n}/chat/transcribe`,s,{headers:l,signal:t})).data.text||"").trim()}const mw=()=>typeof navigator<"u"&&!!navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function"&&typeof window<"u"&&typeof window.MediaRecorder<"u";function zSe(e=typeof navigator<"u"&&navigator.userAgent||"",t=typeof navigator<"u"&&navigator.platform||"",n=typeof navigator<"u"&&navigator.maxTouchPoints||0){return!!(/iPhone|iPod/.test(e)||/iPad/.test(e)||t==="MacIntel"&&n>1||/Safari/.test(e)&&!/Chrome|Chromium|CriOS|Edg|OPR|Firefox|FxiOS/.test(e))}function HSe(e=n=>
1918typeof MediaRecorder<"u"&&typeof MediaRecorder.isTypeSupported=="function"&&MediaRecorder.isTypeSupported(n),t=zSe()){const n=["audio/mp4","audio/mp4;codecs=mp4a.40.2","audio/aac","audio/m4a"],r=["audio/webm;codecs=opus","audio/webm","audio/ogg;codecs=opus"],i=t?[...n,...r]:[...r,...n];for(const s of i)try{if(e(s))return s}catch{}}function USe(e,t,n){const r=[e,t,n];for(const i of r){const s=(i||"").trim();if(s)return s}return""}const WSe=250,cy=e=>{const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"?"not-allowed":t==="NotFoundError"||t==="DevicesNotFoundError"?"audio-capture":"mic-error"};function VSe(){const e=k.useMemo(()=>mw(),[]),[t,n]=k.useState(()=>D5()),[r,i]=k.useState(()=>jP()),[s,l]=k.useState("idle"),[u,d]=k.useState(""),[h,m]=k.useState(null),[g,y]=k.useState(!1),b=e&&r&&!t;k.useEffect(()=>{const D=H=>{const V=OP(H);i(V.enabled),n(V.denied),V.denied||(m(Y=>Y==="not-allowed"?null:Y),l(Y=>Y==="error"?"idle":Y))};return window.addEventListener(Hp,D),DP().then(H=>{H==="denied"?ks(!0):H==="granted"&&ks(!1)}),()=>{window.removeEventListener(Hp,D)}},[]);const S=k.useRef(null),I=k.useRef(null),w=k.useRef(!1),C=k.useRef(0),E=k.useRef(0),A=k.useRef(null),_=k.useCallback(()=>{ks(!0),n(!0),m("not-allowed"),l("idle"),y(!1)},[]),R=k.useCallback(()=>{const D=S.current;D&&(D.getTracks().forEach(H=>{try{H.stop()}catch{}}),S.current=null)},[]),L=k.useCallback(()=>{const D=I.current;if(I.current=null,D&&D.state!=="inactive")try{D.onstop=null,D.ondataavailable=null,D.onerror=null,D.stop()}catch{}R(),y(!1)},[R]),j=k.useCallback(()=>{if(!mw()||!Ede()){mw()?D5()?_():l("idle"):(m("unsupported"),l("error"));return}if(I.current?.state==="recording"||w.current)return;(S.current||I.current)&&L();const D=++E.current;w.current=!0,C.current=Date.now()+450,m(null),d(""),y(!1);let H;try{H=navigator.mediaDevices.getUserMedia({audio:!0})}catch(V){w.current=!1,cy(V)==="not-allowed"?_():(m(cy(V)),l("error"));return}l("listening"),(async()=>{let V;try{V=await H}catch(q){if(D!==E.current)return;w.current=!1,y(!1),cy(q)==="not-allowed"?_():(m(cy(q)),l("error"));return}if(D!==E.current){V.getTracks().forEach(q=>q.stop()),w.current=!1;return}S.current=V,ks(!1),n(!1);const Y=HSe();let K;try{K=Y?new MediaRecorder(V,{mimeType:Y}):new MediaRecorder(V)}catch{if(D!==E.current)return;L(),w.current=!1,m("recorder-error"),l("error");return}if(D!==E.current){L(),w.current=!1;return}I.current=K;const z=[];K.ondataavailable=q=>{q.data&&q.data.size>0&&z.push(q.data)},K.onerror=()=>{m("recorder-error"),l("error"),L(),w.current=!1},K.onstop=()=>{const q=USe(K.mimeType,Y,z[0]?.type),$=q?new Blob(z,{type:q}):new Blob(z);if(L(),w.current=!1,$.size===0){D===E.current&&l("idle");return}l("processing");const ue=new AbortController;A.current=ue,NSe($,ue.signal).then(ge=>{D===E.current&&(A.current=null,d(ge),l("idle"))}).catch(()=>{D===E.current&&(A.current=null,m("transcribe-failed"),l("error"))})};try{K.start(WSe)}catch{if(D!==E.current)return;L(),w.current=!1,m("recorder-error"),l("error");return}if(D!==E.current){L(),w.current=!1;return}y(!0),w.current=!1})()},[L,_]),O=k.useCallback(()=>{const D=I.current;if(D&&D.state!=="inactive"){try{typeof D.requestData=="function"&&D.requestData()}catch{}try{D.stop()}catch{}return}w.current||Date.now()<C.current||A.current||(E.current++,w.current=!1,L(),l(H=>H==="listening"||H==="error"?"idle":H))},[L]),F=k.useCallback(()=>{if(E.current++,w.current=!1,A.current){try{A.current.abort()}catch{}A.current=null}L(),d(""),m(null),l("idle")},[L]);return k.useEffect(()=>()=>{if(E.current++,w.current=!1,A.current){try{A.current.abort()}catch{}A.current=null}L()},[L]),{state:s,dictatedText:u,start:j,stop:O,cancel:F,error:h,isSupported:b,micBlocked:t,isRecording:g}}const $B=xt(),eN=e=>e?"var(--radius-3x-large, 1.5rem)":"var(--radius-4x-large, 1.75rem)",qSe=(e,t)=>{const n=`var(--composer-elevation, ${e.composerShadow})`,r=`var(--composer-elevation-focused, ${e.composerShadowFocused})`,i={display:"flex",width:"100%",maxWidth:"var(--composer-max-width, 44rem)",padding:$B?"1.125rem 1.25rem":t?"1rem":"1.375rem",flexDirection:"column",alignItems:"flex-start",ga
1918p:"var(--composer-row-gap, 0.75rem)",borderRadius:eN(t),border:"none",backgroundColor:e.cardBackground,transition:"box-shadow var(--duration-state, 320ms) var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))",pointerEvents:"auto",WebkitTapHighlightColor:"transparent",position:"relative"},s=l=>({...i,boxShadow:l});return{containerStyle:s(n),containerHoverStyle:s(n),containerPressedStyle:s(n),containerFocusedStyle:s(r),containerTypingStyle:s(`${e.composerShadowTyping}, ${r}`),containerListeningStyle:s(`${e.composerShadowDictating}, ${r}`),containerProcessingStyle:s(r),containerDisabledStyle:{...s(n),backgroundColor:e.backgroundTertiary,opacity:.5,pointerEvents:"none",cursor:"not-allowed"}}},GSe=(e,t)=>{for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.role==="ASSISTANT"&&r.type==="multiple_choice_question"&&r.isSingleChoicePrompt)return r.componentId in t&&r.answerOptions?.find(s=>s.voicePrompt)?.voicePrompt||null}return null},Zv=({autoFocus:e=!0,showInFocusPreview:t=!0,writingArea:n,hintDelayMs:r=0,hintWhile:i,hintRespectsReducedMotion:s=!1,showVoiceModeButton:l=!0,placeholder:u,cardRef:d,textOriginRef:h})=>{const m=k.useMemo(()=>u===void 0?void 0:{text:u.text,visible:u.visible},[u?.text,u?.visible]),g=k.useMemo(()=>n===void 0?void 0:{restHeight:n.restHeight,grownHeight:n.grownHeight},[n?.restHeight,n?.grownHeight]),{isMobile:y}=We(),{colors:b}=ze(),[S,I]=k.useState(!1),[w,C]=k.useState(!1),[E,A]=k.useState(!1),[_,R]=k.useState(!1),[L,j]=k.useState(""),{state:O,dictatedText:F,start:D,stop:H,cancel:V,isSupported:Y,error:K,isRecording:z,micBlocked:q}=VSe(),$=O==="listening"||O==="processing",ue=Fie(),ge=Nie(),M=k.useRef(!1),Z=k.useRef(""),te=Mc(De=>De.images),B=Mc(De=>De.addImages),N=Mc(De=>De.removeImage);Mc(De=>De.clearImages);const le=U(De=>De.assistantInProgress),ae=Pt(),de=U(De=>De.messages),oe=Fe(De=>De.isCarouselOpen),we=Fe(De=>De.currentComponentId),je=ae.pathname==="/recent",xe=we?.includes("recently-interacted-carousel")||!1,Se=je||xe,qe=Xt(De=>De.isListingDetailsOpen),Ke=Ji(De=>De.sendUserMessage),dt=nr(De=>De.setNudge),at=nr(De=>De.clearNudge),nt=nr(De=>De.setStartVoice),Ae=nr(De=>De.setCancelVoice),ot=nr(De=>De.setStopVoice),en=nr(De=>De.setStopAndSendVoice),ln=nr(De=>De.setVoiceState),pr=nr(De=>De.setVoiceError),Xn=k.useRef(!1),Cn=k.useRef(null),Tr=U(De=>De.multipleChoiceAnswers),fe=Object.values(Tr).some(De=>De.size>0),Ce=Qr(De=>De.getSelectedCardCount()>0),Xe=kn(De=>De.answersByBlock),Je=kn(De=>De.writeInsByBlock),wt=j5(Xe,Je),Rn=_||te.length>0||fe||wt||Ce||le,[ri,mr]=k.useState(0),[Ar,gr]=k.useState(!1),gn=i!==void 0,Hr=Rn||L.length>0||Se,Oe=k.useRef(Hr);Oe.current=Hr;const ve=eN(y),St=s&&iu(),lt=k.useCallback(()=>{Oe.current||(mr(De=>De+1),gr(!0))},[]);k.useEffect(()=>{Hr&&gr(!1)},[Hr]);const Rt=k.useRef(!1);k.useEffect(()=>{oe&&!Rt.current&<(),Rt.current=oe},[oe,lt]);const zn=k.useRef(!1);k.useEffect(()=>{qe&&!zn.current&<(),zn.current=qe},[qe,lt]);const Ct=ae.pathname.startsWith("/p/"),Hn=k.useRef(!1);k.useEffect(()=>{Ct&&!Hn.current&<(),Hn.current=Ct},[Ct,lt]);const ea=k.useRef(null);k.useEffect(()=>{if(gn)return;if(!(de.length===0)){ea.current=!1;return}if(ea.current===!0)return;if(r<=0){ea.current=!0,lt();return}const ra=setTimeout(()=>{ea.current=!0,lt()},r);return()=>clearTimeout(ra)},[de.length,lt,r,gn]);const Gl=!Hr&&!St&&(gn?i===!0:Ar),yi=k.useCallback(()=>{!w&&!E&&!_&&I(!0)},[w,E,_]),Un=k.useCallback(()=>{I(!1)},[]),vi=k.useCallback(()=>{_||(C(!0),I(!1))},[_]),ii=k.useCallback(()=>{C(!1)},[]),i2=k.useCallback(()=>{if(A(!0),I(!1),C(!1),y){const De=ir.getState();De.tutorialsAlreadySeenByUser.has("initial_search")||De.markTutorialComplete("initial_search"),(oe||qe)&&!De.tutorialsAlreadySeenByUser.has("refine_search")&&De.markTutorialComplete("refine_search")}},[y,oe,qe]),a2=k.useCallback(()=>{A(!1)},[]),Zm=k.useCallback(()=>{R(!0),I(!1),C(!1),A(!1)},[]),Ds=k.useCallback(()=>{R(!1)},[]);k.useEffect(()=>{!le&&L.length===0&&te.length===0&&!Ce&&Ds()},[le,L.length,te.length,Ce,Ds]),k.useEffect(()=>{const De=ir.getState();De.tutorialsAlreadySeenByUser.has("initial_search")&&De.tutorialsAlreadySeenByUser.has("refine_search")||(L.length>0||te.length>0)&&(De.markTutorialComplete("initial_search"),(oe||qe)&&De.markTutorialComplete("refine_search"))},[L,te.length,oe,qe]);const Yl=k.useCallback(De=>{if($){H();return}j(De)},[$,H]),Ms=k.useCallback(()=>
1918{if(!nr.getState().nudgeText){const De=GSe(de,U.getState().multipleChoiceAnswers);De&&dt(De)}Xn.current=!0,D()},[D,de,dt]),ta=k.useCallback(()=>{M.current=!1,H()},[H]),Ps=k.useCallback(()=>{M.current=!0,H()},[H]),ts=k.useCallback(()=>{M.current=!1,V()},[V]),Kl=k.useCallback(async De=>{const ra=await GI(De);B(ra)},[B]),s2=k.useCallback(De=>{N(De)},[N]),Fs=k.useCallback(async De=>{if(Ke&&!ue){j("");try{await Ke(De)}catch{}}},[Ke,ue]);k.useEffect(()=>{if(!F){Z.current="";return}if(Z.current===F)return;Z.current=F;const De=F.trim(),ra=M.current;if(M.current=!1,ra){De&&Fs(De);return}j(F),De.length>0&&R(!0)},[F,Fs]);const wu=k.useRef(!1);k.useEffect(()=>{wu.current&&!$&&Xn.current&&(Xn.current=!1,at()),wu.current=$},[$,at]),k.useEffect(()=>{L.length>0&&nr.getState().nudgeText&&at()},[L,at]),k.useEffect(()=>(nt(Ms),()=>nt(null)),[Ms,nt]),k.useEffect(()=>(Ae(ts),()=>Ae(null)),[ts,Ae]),k.useEffect(()=>(ot(ta),()=>ot(null)),[ta,ot]),k.useEffect(()=>(en(Ps),()=>en(null)),[Ps,en]),k.useEffect(()=>{ln(O)},[O,ln]),k.useEffect(()=>{pr(K)},[K,pr]);const To=k.useMemo(()=>({state:O,isSupported:Y,isRecording:z,micBlocked:q,start:Ms,stop:ta,stopAndSend:Ps,cancel:ts,error:K}),[O,Y,z,q,Ms,ta,Ps,ts,K]),Qm=k.useCallback(()=>{if(le){U.getState().setAssistantInProgress(!1);return}const De=U.getState().multipleChoiceAnswers,ra=Object.values(De).some(tg=>tg.size>0),Cu=kn.getState(),eg=j5(Cu.answersByBlock,Cu.writeInsByBlock);(L.trim()||te.length>0||Ce||ra||eg)&&(Fs(L.trim()),$B?Wp.hide():y&&document.activeElement?.blur())},[Fs,L,te.length,Ce,le,y]),na=k.useMemo(()=>qSe(b,y),[b,y]),$m=k.useMemo(()=>Se||ge?na.containerDisabledStyle:O==="listening"?na.containerListeningStyle:O==="processing"?na.containerProcessingStyle:_?na.containerTypingStyle:E?na.containerFocusedStyle:w?na.containerPressedStyle:S?na.containerHoverStyle:na.containerStyle,[na,Se,ge,_,E,w,S,O]);return c.jsxs("div",{ref:d,style:$m,onMouseEnter:yi,onMouseLeave:Un,onMouseDown:vi,onMouseUp:ii,onFocus:i2,onBlur:a2,tabIndex:0,"data-testid":"input-box","data-input-container":"true","data-tutorial-id":"input-box",children:[Gl&&c.jsx(Kxe,{radius:ve,loop:gn,onDone:gn?void 0:()=>gr(!1)},gn?"hint-while":ri),c.jsx(zxe,{}),c.jsx(mxe,{images:te,onRemoveImage:s2}),c.jsx(Hxe,{}),!y&&t&&c.jsx(qxe,{}),c.jsx(Wxe,{}),y?c.jsx(jSe,{value:L,onChange:Yl,onTypingStart:Zm,onTypingStop:Ds,onSendMessage:Fs,onClickSend:Qm,onImagesSelected:Kl,onPasteImages:Kl,isTyping:Rn,isThinking:le,disabled:Se||ge,voice:ge?void 0:To,autoFocus:e,writingArea:g,placeholder:m,showVoiceModeButton:l,textOriginRef:h}):c.jsx(FSe,{value:L,onChange:Yl,onTypingStart:Zm,onTypingStop:Ds,onSendMessage:Fs,onClickSend:Qm,onImagesSelected:Kl,onPasteImages:Kl,isTyping:Rn,isThinking:le,inputRef:Cn,disabled:Se||ge,voice:ge?void 0:To,autoFocus:e,writingArea:g,placeholder:m,showVoiceModeButton:l,textOriginRef:h})]})},Uk={restHeight:"1.5rem",grownHeight:"3rem"},YSe={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"var(--spacing-large, 1.5rem)",gap:"var(--spacing-small, 0.75rem)",color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)"},KSe=({message:e})=>c.jsxs("div",{style:YSe,children:[c.jsx(Zi,{size:2}),c.jsx("span",{children:e})]}),XSe="__LANDING_PAGE_DATA__",JSe=e=>({container:{alignSelf:"stretch",width:"100%",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:e.background,color:e.text,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)"},text:{alignSelf:"stretch",color:e.text,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",margin:0}}),ZSe=()=>{const e=U(i=>i.landingPageInfo?.seoHeading),{colors:t}=ze(),n=k.useMemo(()=>{let i=e;if(typeof window<"u"&&Sv().startsWith("/pages/"))try{const s=document.getElementById(XSe);if(s?.textContent){const l=JSON.parse(s.textContent);i||(i=l.landingPageInfo?.seoHeading||null)}}catch{}return i},[e]);if(!n)return null;const r=JSe(t);return c.jsx("div",{style:r.container,"data-testid":"landing-page-panel",children:c.jsx("h1",{style:r.text,children:n})})},QSe=e=>({container:{alignSelf:"stretch",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"flex-start",ga
1918p:"var(--spacing-small, 0.75rem)",padding:"var(--spacing-small, 0.75rem)",borderRadius:"var(--radius-medium, 0.75rem)",backgroundColor:e.backgroundTertiary,border:"none"},textColumn:{flex:1,display:"flex",flexDirection:"column",gap:"var(--spacing-small, 0.75rem)"},text:{margin:0,color:e.text,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 0.9375rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.4rem)",letterSpacing:"-0.01rem"},dismissButton:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",width:"1.5rem",height:"1.5rem",padding:0,border:"none",background:"transparent",color:e.textMuted,cursor:"pointer",lineHeight:1,fontSize:"1.25rem",borderRadius:"var(--radius-small, 0.375rem)"}}),$Se=()=>{const e=U(i=>i.showChatGptWelcome),t=U(i=>i.setShowChatGptWelcome),{colors:n}=ze();if(!e)return null;const r=QSe(n);return c.jsxs("div",{style:r.container,"data-testid":"chatgpt-welcome-banner",children:[c.jsxs("div",{style:r.textColumn,children:[c.jsx("p",{style:r.text,children:"ð Welcome, ChatGPT user!"}),c.jsx("p",{style:r.text,children:"Tonita is like ChatGPT, but we offer a huge collection of actual products to search, discover, and browse from."}),c.jsx("p",{style:r.text,children:"Since ChatGPT doesn't share your full chat context, could you pick one of the options below to bring me up to speed?"})]}),c.jsx("button",{type:"button",style:r.dismissButton,onClick:()=>t(!1),"aria-label":"Dismiss welcome message",children:"Ã"})]})},ewe=e=>e.length===0?"/":`/pages/${e.join("/")}/`,mp={container:{display:"flex",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)",flexWrap:"wrap",width:"100%",boxSizing:"border-box"},breadcrumbItem:{display:"flex",alignItems:"center",gap:"var(--spacing-3x-small, 0.25rem)"},link:{color:"var(--text-default-tertiary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-3x-sm, 0.75rem)",fontWeight:400,lineHeight:"var(--line-height-small, 1.25rem)",textDecoration:"none",padding:"var(--spacing-4x-small, 0.125rem) var(--spacing-3x-small, 0.25rem)",borderRadius:"var(--radius-small, 0.25rem)",transition:"color 0.15s ease, background-color 0.15s ease",whiteSpace:"nowrap"},linkHover:{color:"var(--text-default-primary)",backgroundColor:"var(--hover-bg-subtle)"},currentPage:{color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-3x-sm, 0.75rem)",fontWeight:500,lineHeight:"var(--line-height-small, 1.25rem)",padding:"var(--spacing-4x-small, 0.125rem) var(--spacing-3x-small, 0.25rem)",whiteSpace:"nowrap"}},twe=({label:e,url:t})=>{const[n,r]=k.useState(!1);return c.jsx("a",{href:t,style:{...mp.link,...n?mp.linkHover:{}},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:e})},nwe=()=>c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{opacity:.5,flexShrink:0},"aria-hidden":"true",focusable:"false",children:c.jsx("path",{d:"M4.5 2.5L7.5 6L4.5 9.5",stroke:"var(--text-default-tertiary)",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),rwe=()=>{const e=U(n=>n.landingPageInfo?.breadcrumbPath),t=U(n=>n.landingPageInfo?.slugifiedBreadcrumbPath);return!e||!t||e.length===0?null:e.length!==t.length?(console.warn(`LandingPageBreadcrumb: breadcrumbPath length (${e.length}) does not match slugifiedBreadcrumbPath length (${t.length}). Hiding breadcrumb to avoid incorrect URLs.`),null):c.jsx("nav",{"aria-label":"Breadcrumb",style:mp.container,"data-testid":"landing-page-breadcrumb",children:e.map((n,r)=>{const i=r===e.length-1,s=t.slice(0,r+1),l=ewe(s);return c.jsxs("div",{style:mp.breadcrumbItem,children:[r>0&&c.jsx(nwe,{}),i?c.jsx("span",{style:mp.currentPage,"aria-current":"page",children:n}):c.jsx(twe,{label:n,url:l})]},`breadcrumb-${r}`)})})},iwe="60vh",awe={fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',fontSize:"0.8125rem",lineHeight:1.45,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0,padding:"var(--spacing-x-small, 0.5rem) var(--spacing-small, 0.75rem)",backgroundColor:"var(--surface-secondary-default, #f8f8f9)",color:"var(--text-default-primary, #0e0e11)",borderRadius:"var(--radius-small, 0.25rem)"},W8={color:"var(--text-default-tertiary, #71717f)",fontStyle:"italic"},swe={color:"#c0392b",whiteSpace:"pre-wrap"};function owe(e,t,n){return t!==void 0?t.length===0?c.jsx("span",{style:W8,children:n}):t.map((r,i)=>r.stream==="stderr"?c.jsx("span",{style:swe,children:r.text},i):c.jsx("span",{children:r.text},i)):e||c.jsx("span",{style:W8,children:n})}const V8=({text:e,chunks:t,emptyPlaceholder:n="(empty)",viewState:r,defaultHeight:i="12rem",reserveHeight:s=!1,tailing:l=!1})=>{const u=k.useRef(null),d=k.useRef(!0);k.useLayoutEffect(()=>{const y=u.current;y&&l&&d.current&&r!=="suppressed"&&(y.scrollTop=y.scrollHeight)});const h=()=>{const y=u.current;if(!y)return;const b=y.scrollHeight-y.scrollTop-y.clientHeight;d.current=b<24};if(r==="suppressed")return null;const g={...awe,...r==="default"?s?{height:i}:{maxHeight:i}:{maxHeight:iwe},overflowY:"auto",overflowX:"hidden",scrollbarGutter:"stable",overscrollBehavior:"contain"};return c.jsx("div",{ref:u,style:g,onScroll:h,children:owe(e,t,n)})};function lwe(e,t,n){return e==="streaming_code"?{dotColor:"#9ca3af",label:"typing"}
1918:e==="executing"?{dotColor:"#eab308",label:"running"}:n?{dotColor:"#dc2626",label:"timed out"}:(t??0)===0?{dotColor:"#16a34a",label:"ok"}:{dotColor:"#dc2626",label:`exit ${t}`}}function q8(e){return e===void 0||e<0?"":e<10?`${e.toFixed(1)}s`:`${Math.round(e)}s`}const cwe={border:"1px solid var(--border-default, #e5e5e7)",borderRadius:"var(--radius-medium, 0.5rem)",backgroundColor:"var(--surface-primary-default, #ffffff)",overflow:"hidden",display:"flex",flexDirection:"column"},tN={display:"flex",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",padding:"var(--spacing-x-small, 0.5rem) var(--spacing-small, 0.75rem)",fontSize:"0.8125rem",color:"var(--text-default-secondary, #4a4a52)",backgroundColor:"var(--surface-secondary-default, #f8f8f9)"},uwe={...tN,borderBottom:"1px solid var(--border-default, #e5e5e7)"},dwe=e=>({width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:e,flexShrink:0}),fwe={fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',color:"var(--text-default-primary, #0e0e11)",fontWeight:500},gw={color:"var(--text-default-tertiary, #71717f)",fontSize:"0.75rem"},hwe={flex:1},oC={appearance:"none",background:"transparent",border:"1px solid transparent",color:"var(--text-default-secondary, #4a4a52)",width:"1.5rem",height:"1.5rem",borderRadius:"var(--radius-small, 0.25rem)",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",padding:0},G8={...oC,cursor:"default",opacity:.3},pwe={display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)",padding:"var(--spacing-x-small, 0.5rem)"},Y8={fontSize:"0.6875rem",textTransform:"uppercase",letterSpacing:"0.04em",color:"var(--text-default-tertiary, #71717f)",fontWeight:600,padding:"0 var(--spacing-3x-small, 0.25rem)"},Ol=14,K8=()=>c.jsx("svg",{width:Ol,height:Ol,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round","aria-hidden":"true",children:c.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})}),mwe=()=>c.jsxs("svg",{width:Ol,height:Ol,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round","aria-hidden":"true",children:[c.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),c.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),X8=()=>c.jsxs("svg",{width:Ol,height:Ol,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("polyline",{points:"15 4 20 4 20 9"}),c.jsx("polyline",{points:"9 20 4 20 4 15"}),c.jsx("line",{x1:"20",y1:"4",x2:"14",y2:"10"}),c.jsx("line",{x1:"4",y1:"20",x2:"10",y2:"14"})]}),gwe=()=>c.jsxs("svg",{width:Ol,height:Ol,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("polyline",{points:"14 4 14 10 20 10"}),c.jsx("polyline",{points:"4 14 10 14 10 20"}),c.jsx("line",{x1:"20",y1:"4",x2:"14",y2:"10"}),c.jsx("line",{x1:"4",y1:"20",x2:"10",y2:"14"})]});function ywe(e){return e==="suppressed"?{icon:c.jsx(mwe,{}),target:"default",title:"Show contents",ariaLabel:"Show contents"}:e==="default"?{icon:c.jsx(K8,{}),target:"suppressed",title:"Hide contents",ariaLabel:"Hide contents"}:{icon:c.jsx(K8,{}),target:null,title:"Hide contents (collapse first)",ariaLabel:"Hide contents (collapse first)"}}function vwe(e){return e==="expanded"?{icon:c.jsx(gwe,{}),target:"default",title:"Collapse to default height",ariaLabel:"Collapse to default height"}:e==="default"?{icon:c.jsx(X8,{}),target:"expanded",title:"Expand",ariaLabel:"Expand"}:{icon:c.jsx(X8,{}),target:null,title:"Expand (show contents first)",ariaLabel:"Expand (show contents first)"}}const bwe=({code:e,output:t,phase:n,exitCode:r,timedOut:i,codingDurationS:s,executionDurationS:l,viewState:u,onViewStateChange:d})=>{const h=ywe(u),m=vwe(u),g=k.useCallback(()=>{h.target&&d(h.target)},[h.target,d]),y=k.useCallback(()=>{m.target&&d(m.target)},[m.target,d]),b=lwe(n,r,i),S=u!=="suppressed",I=n==="streaming_code"?"(typing...)":"(no code)",w=n==="done"?"(no output)":"(no output yet)";return c.jsxs("div",{style:cwe,"data-testid":"code-block",children:[c.jsxs("div",{style:S?uwe:tN,children:[c.jsx("span",{style:dwe(b.dotColor),"aria-hidden":"true"}),c.jsx("span",{style:fwe,children:"run_code"}),c.jsxs("span",{style:gw,children:["· ",b.label]}),s!==void 0&&c.jsxs("span",{style:gw,children:["· coding ",q8(s)]}),l!==void 0&&n==="done"&&c.jsxs("span",{style:gw,children:["· executing ",q8(l)]}),c.jsx("span",{style:hwe}),c.jsx("button",{type:"button",onClick:g,disabled:h.target===null,"aria-label":h.ariaLabel,title:h.title,style:h.target===null?G8:oC,children:h.icon}),c.jsx("button",{type:"button",onClick:y,disabled:m.target===null,"aria-label":m.ariaLabel,title:m.title,style:m.target===null?G8:oC,children:m.icon})]}),S&&c.jsxs("div",{style:pwe,children:[c.jsx("div",{style:Y8,children:"code"}),c.jsx(V8,{text:e,emptyPlaceholder:I,viewState:u,defaultHeight:"14rem",reserveHeight:!0,tailing:n==="streaming_code"}),c.jsx("div",{style:Y8,children:"output"}),c.jsx(V8,{chunks:t,emptyPlaceholder:w,viewState:u,defaultHeight:"10rem",reserveHeight:!0,tailing:n==="executing"})]})]})};G.memo(bwe);const xwe="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%2013l5%205%205-5'%20stroke='currentColor'%20stroke-width='2'%20fill='none'%20/%3e%3cpath%20d='M7%206l5%205%205-5'%20stroke='currentColor'%20stroke-width='2'%20fill='none'%20/%3e%3c/svg%3e",uy={wrapper:e=>({position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:`calc(var(--input-height, 6rem) + ${e}px + 0.75rem)`,zIndex:5,pointerEvents:"none"}),button:{width:"2.5rem",height:"2.5rem",borderRadius:"50%",backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease",opacity:0,transform:"translateY(0.625rem)",pointerEvents:"none"},buttonVisible:{opacity:1,transform:"translateY(0)",pointerEvents:"auto"},buttonHover:{backgroundColor:"var(--card-bg-elevated)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.25)"}}
1918,Swe=({scrollContainerRef:e,sentinelRef:t,observeKey:n,bottomOffsetPx:r=0})=>{const{colors:i}=ze(),[s,l]=k.useState(!1),[u,d]=k.useState(!1);k.useEffect(()=>{const g=e.current,y=t.current;if(!g||!y){l(!1);return}const b=I=>{const w=I.rootBounds;if(!w){l(!1);return}const C=I.boundingClientRect.top>w.bottom;l(C)};if(typeof IntersectionObserver>"u"){l(!1);return}const S=new IntersectionObserver(I=>{const w=I[0];w&&b(w)},{root:g,threshold:0});return S.observe(y),()=>{S.disconnect()}},[e,t,n]);const h=()=>{if(!s)return;const g=t.current;g&&g.scrollIntoView({behavior:"smooth",block:"end"})},m=()=>{let g={...uy.button};return s&&(g={...g,...uy.buttonVisible}),u&&s&&(g={...g,...uy.buttonHover}),g};return c.jsx("div",{style:uy.wrapper(r),children:c.jsx("button",{style:m(),onClick:h,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),"aria-label":"Scroll to latest","aria-hidden":!s,disabled:!s,type:"button",tabIndex:s?0:-1,children:c.jsx("img",{src:xwe,alt:"",style:Dt(i.iconFilter,"small")})})})},wwe=` 1919 @keyframes tnt-voice-prompt-in { 1920 from { opacity: 0; } 1921 to { opacity: 1; } 1922 } 1923 @keyframes tnt-voice-prompt-group-in { 1924 0% { opacity: 0; transform: translateY(10px) scale(0.98); } 1925 100% { opacity: 1; transform: translateY(0) scale(1); } 1926 } 1927 @keyframes tnt-voice-prompt-ring { 1928 0% { transform: scale(0.9); opacity: 0.5; } 1929 70% { transform: scale(1.4); opacity: 0; } 1930 100% { transform: scale(1.4); opacity: 0; } 1931 } 1932 @keyframes tnt-voice-prompt-cue { 1933 0%, 100% { opacity: 0.55; } 1934 50% { opacity: 1; } 1935 } 1936 @keyframes tnt-voice-prompt-wave { 1937 0%, 100% { transform: scaleY(0.3); opacity: 0.55; } 1938 50% { transform: scaleY(1); opacity: 1; } 1939 } 1940`,yw="#FDB341",vw="var(--Gradients-lemon, linear-gradient(90deg, #FCDA2E 0%, #FDB341 100%))",Cwe=[16,28,40,22,36,18,30,24,14],Iwe={"not-allowed":"Microphone access is blocked. Allow it in your browser or system settings, or type your answer instead.",unsupported:"Voice input isnât available on this device. You can type your answer instead.","recorder-error":"We couldnât reach your microphone. Try again, or type your answer instead.","transcribe-failed":"We couldnât make out what was said. Try again, or type your answer instead."},kwe="Something went wrong with voice input. Try again, or type your answer instead.",Ewe='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',J8=e=>e?Array.from(e.querySelectorAll(Ewe)).filter(t=>t.offsetParent!==null):[],Twe=()=>{const e=nr(t=>t.nudgeText);return e?c.jsx(Awe,{nudgeText:e}):null},Awe=({nudgeText:e})=>{const{isMobile:t}=We(),n=nr(j=>j.clearNudge),r=nr(j=>j.startVoice),i=nr(j=>j.cancelVoice),s=nr(j=>j.stopVoice),l=nr(j=>j.stopAndSendVoice),u=nr(j=>j.voiceState),d=nr(j=>j.voiceError),h=k.useRef(null),m=u==="listening",g=u==="processing",y=u==="error",b=!m&&!g&&!y,S=t?"4.75rem":"5.25rem",I=t?"1.75rem":"2rem",w=t?"2.875rem":"3.125rem",C=t?"1.25rem":"1.375rem",E=t?"7.5rem":"8.25rem",A=()=>{(m||g)&&i?.(),n()};k.useEffect(()=>{const j=document.activeElement,O=h.current;return(O?.querySelector("[data-voice-autofocus]")??J8(O)[0]??O??null)?.focus(),()=>{j&&document.contains(j)&&j.focus()}},[]);const _=j=>{if(j.key==="Escape"){j.stopPropagation(),A();return}if(j.key!=="Tab")return;const O=h.current;if(!O)return;const F=J8(O);if(F.length===0){j.preventDefault(),O.focus();return}const D=F[0],H=F[F.length-1],V=document.activeElement;j.shiftKey&&(V===D||!O.contains(V))?(j.preventDefault(),H.focus()):!j.shiftKey&&(V===H||!O.contains(V))&&(j.preventDefault(),D.focus())},R=t?"Tap to speak":"Click to speak",L=d&&Iwe[d]||kwe;return c.jsxs("div",{ref:h,role:"dialog","aria-modal":"true","aria-label":"Voice prompt","data-testid":"voice-prompt-overlay",tabIndex:-1,onClick:A,onKeyDown:_,style:{outline:"none",position:"absolute",top:0,left:0,right:0,bottom:"var(--input-height, 6rem)",zIndex:30,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"var(--spacing-large, 1.5rem)",boxSizing:"border-box",background:"color-mix(in srgb, var(--surface-primary-default, #FFFFFF) 55%, transparent)",backdropFilter:"blur(18px)",WebkitBackdropFilter:"blur(18px)",animation:"tnt-voice-prompt-in 220ms ease-out both"},children:[c.jsx("style",{children:wwe}),c.jsx("button",{type:"button",onClick:j=>{j.stopPropagation(),A()},"aria-label":"Dismiss voice prompt",title:"Dismiss",style:{position:"absolute",top:"var(--spacing-small, 0.75rem)",right:"var(--spacing-small, 0.75rem)",width:"2.25rem",height:"2.25rem",display:"inline-flex",alignItems:"center",justifyContent:"center",border:"none",borderRadius:"var(--radius-full, 999px)",background:"var(--surface-primary-default, #FFFFFF)",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.12)",color:"var(--text-default-secondary, #6B6B76)",cursor:"pointer",padding:0,lineHeight:0},children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,
1940children:c.jsx("path",{d:"M1 1L11 11M11 1L1 11",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}),c.jsxs("div",{onClick:j=>j.stopPropagation(),style:{display:"flex",flexDirection:"column",alignItems:"center",gap:t?"1.5rem":"1.75rem",maxWidth:"30rem",width:"100%",animation:"tnt-voice-prompt-group-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both"},children:[c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1.5rem"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[c.jsx(Mk,{size:1.5,animationType:"none"}),c.jsx("span",{style:{fontFamily:"var(--font-Inter, Inter)",fontSize:t?"1.375rem":"1.5rem",fontWeight:600,letterSpacing:"-0.015rem",color:"var(--text-default-primary, #0E0E11)"},children:"Speak to Tonita"})]}),c.jsx("p",{style:{margin:0,textAlign:"center",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",color:"var(--text-default-primary, #0E0E11)"},children:e})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:E},children:[b&&c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:[c.jsxs("button",{type:"button","data-voice-autofocus":!0,onClick:()=>r?.(),"aria-label":"Start voice input",title:R,style:{position:"relative",width:S,height:S,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,border:"none",cursor:"pointer",borderRadius:"var(--radius-full, 999px)",background:vw,boxShadow:"0 12px 32px rgba(253, 179, 65, 0.4), 0 4px 12px rgba(0, 0, 0, 0.12)",WebkitTapHighlightColor:"transparent"},children:[c.jsx("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,borderRadius:"999px",border:`2px solid ${yw}`,animation:"tnt-voice-prompt-ring 1.8s ease-out infinite"}}),c.jsx("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,borderRadius:"999px",border:`2px solid ${yw}`,animation:"tnt-voice-prompt-ring 1.8s ease-out 0.6s infinite"}}),c.jsx("img",{src:KB,alt:"","aria-hidden":!0,style:{width:I,height:I,display:"block",position:"relative",zIndex:1}})]}),c.jsx("span",{style:{fontFamily:"var(--font-Inter, Inter)",fontSize:t?"0.9375rem":"1rem",fontWeight:600,letterSpacing:"-0.005rem",color:"var(--text-default-primary, #0E0E11)",animation:"tnt-voice-prompt-cue 2s ease-in-out infinite"},children:R})]}),m&&c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem",width:"100%"},children:[c.jsx("div",{"aria-hidden":!0,"data-testid":"voice-prompt-waveform",role:"status","aria-label":"Listening",style:{display:"flex",alignItems:"center",gap:"5px",height:"3rem"},children:Cwe.map((j,O)=>c.jsx("span",{style:{width:"5px",height:`${j}px`,borderRadius:"999px",background:yw,transformOrigin:"center",animation:`tnt-voice-prompt-wave ${.8+O%4*.14}s ease-in-out ${O*.06}s infinite`}},O))}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.875rem",flexShrink:0},children:[c.jsx("button",{type:"button",onClick:()=>s?.(),"aria-label":"Stop and review",title:"Stop",style:{width:w,height:w,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,border:"none",cursor:"pointer",borderRadius:"var(--radius-full, 999px)",background:"var(--dropdown-button-hover)",WebkitTapHighlightColor:"transparent"},children:c.jsx("img",{src:zB,alt:"","aria-hidden":!0,style:{width:C,height:C,display:"block",filter:"var(--icon-filter)"}})}),c.jsx("button",{type:"button",onClick:()=>l?.(),"aria-label":"Send",title:"Send",style:{width:w,height:w,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,border:"none",cursor:"pointer",borderRadius:"var(--radius-full, 999px)",background:vw,boxShadow:"0 4px 14px rgba(253, 179, 65, 0.35)",WebkitTapHighlightColor:"transparent"},children:c.jsx("img",{src:NB,alt:"","aria-hidden":!0,style:{width:C,height:C,display:"block"}})})]})]}),g&&c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:[c.jsx(Cl,{size:t?2.25:2.5}),c.jsx("span",{role:"status","aria-live":"polite",style:{fontFamily:"var(--font-Inter, Inter)",fontSize:t?"0.9375rem":"1rem",fontWeight:600,letterSpacing:"-0.005rem",color:"var(--text-default-secondary, #3F3F4A)"},children:"Transcribingâ¦"})]}),y&&c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem",maxWidth:"24rem"},children:[c.jsx("p",{role:"alert",style:{margin:0,textAlign:"center",fontFamily:"var(--font-Inter, Inter)",fontSize:t?"0.9375rem":"1rem",fontWeight:500,lineHeight:1.5,letterSpacing:"-0.005rem",color:"var(--text-default-primary, #0E0E11)"},children:L}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[c.jsx("button",{type:"button","data-voice-autofocus":!0,onClick:()=>r?.(),style:{height:"2.5rem",padding:"0 1.25rem",border:"none",cursor:"pointer",borderRadius:"var(--radius-full, 999px)",background:vw,boxSh
1940adow:"0 4px 14px rgba(253, 179, 65, 0.35)",fontFamily:"var(--font-Inter, Inter)",fontSize:t?"0.9375rem":"1rem",fontWeight:600,color:"var(--text-default-primary, #0E0E11)",WebkitTapHighlightColor:"transparent"},children:"Try again"}),c.jsx("button",{type:"button",onClick:A,style:{height:"2.5rem",padding:"0 1.25rem",cursor:"pointer",borderRadius:"var(--radius-full, 999px)",border:"1px solid var(--border-default-primary, #E2E2E6)",background:"var(--surface-primary-default, #FFFFFF)",fontFamily:"var(--font-Inter, Inter)",fontSize:t?"0.9375rem":"1rem",fontWeight:600,color:"var(--text-default-secondary, #6B6B76)",WebkitTapHighlightColor:"transparent"},children:"Type instead"})]})]})]}),c.jsx("p",{style:{margin:0,textAlign:"center",maxWidth:"26rem",fontFamily:"var(--font-Inter, Inter)",fontSize:t?"0.8125rem":"0.875rem",fontWeight:400,lineHeight:1.5,color:"var(--text-default-secondary, #6B6B76)"},children:"No need to be perfect â just say whatever comes to mind. The more you share, the better Tonita can help. If you prefer to type, please use the chat box below."})]})]})};function bw(e){if(e.type!=="structured_question_block"&&!(e.type==="multiple_choice_question"&&e.isSingleChoicePrompt))return e.laneId}function _we(e){return e.find(n=>n.type==="carousel"||n.type==="structured_question_block")?.type==="structured_question_block"}const Rwe={display:"flex",flexDirection:"column",position:"relative",height:"100%",overflow:"hidden"},jwe=(e,t)=>({flex:1,overflowY:"auto",overflowX:"hidden",padding:"var(--spacing-medium, 1rem)",paddingBottom:e?t>0?`calc(var(--input-height, 6rem) + ${t}px)`:"var(--input-height, 6rem)":"var(--spacing-x-large, 2rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",justifyContent:"flex-start",alignItems:"stretch",minHeight:0,maxHeight:"100%",position:"relative",scrollbarWidth:"none",msOverflowStyle:"none",maxWidth:"44rem",margin:"0 auto",width:"100%",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"}),nN=()=>{const e=U(O=>O.messages),t=U(O=>O.isWaitingForFirstToken),n=U(O=>O.streamedTokenBlock),r=U(O=>O.assistantInProgress),i=U(O=>O.isLoadingTranscript),s=U(O=>O.chatId);U(O=>O.landingPageInfo?.seoHeading);const l=U(O=>O.chatErrorState);E1(O=>O.showBlocks);const u=be(O=>O.isFirstVisit),d=Pt(),h=Gn(O=>O.isLoading),{isMobile:m}=We(),{height:g}=zm(),y=d.pathname==="/favorites",b=i||y&&h,S=y?"Loading favorites...":"Loading chat...",I=k.useRef(null),w=k.useRef(null),C=k.useMemo(()=>nxe(e),[e]),E=k.useRef(null),A=C.length,_=k.useRef(0);k.useEffect(()=>{A>_.current&&!i&&s&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{const F=E.current;F&&document.contains(F)&&F.scrollIntoView({behavior:"smooth",block:"start"})})}),_.current=A},[A,i,s]);const R=(O,F="overlay")=>O.role!=="ASSISTANT"?null:O.type==="text"?c.jsx(h8,{textMessage:O},`${s}-${O.messageId}-${O.componentId}`):O.type==="carousel"?c.jsx(S2e,{message:O},`${s}-${O.messageId}-${O.componentId}`):O.type==="status_update"?c.jsx(w2e,{message:O},`${s}-${O.messageId}-${O.componentId}`):O.type==="multiple_choice_question"?O.isSingleChoicePrompt?c.jsx(U2e,{message:O},`${s}-${O.messageId}-${O.componentId}`):c.jsx(R2e,{message:O},`${s}-${O.messageId}-${O.componentId}`):O.type==="one_click_suggestion_panel"?c.jsx(W2e,{message:O},`${s}-${O.messageId}-${O.componentId}`):O.type==="category_carousel"?c.jsx(J2e,{message:O},`${s}-${O.messageId}-${O.componentId}`):O.type==="exploration_carousel"?c.jsx(gbe,{message:O},`${s}-${O.messageId}-${O.componentId}`):O.type==="structured_question_block"?c.jsx(Ybe,{message:O,expandMode:F},`${s}-${O.messageId}-${O.componentId}`):O.type==="code_block_status"?c.jsx(txe,{path:O.path},`${s}-${O.messageId}-${O.componentId}`):null,L=(O,F,D="overlay")=>{const H=[];let V=0;for(;V<O.length;){const Y=O[V];if(Y.role==="ASSISTANT"&&Y.type==="reasoning"){const K=Y.groupId,z=[];for(;V<O.length;){const ue=O[V];if(ue.role!=="ASSISTANT"||ue.type!=="reasoning"||ue.groupId!==K)break;z.push(ue),V++}const q=V>=O.length,$=F&&q?"thinking":"done";H.push(c.jsx(wbe,{blocks:z,status:$},`${s}-${z[0].messageId}-${z[0].componentId}-reasoning`))}else H.push(R(Y,D)),V++}return H},j=(O,F,D="overlay")=>{const H=F&&r,V=[],Y=new Set;if(O.forEach(M=>{const Z=bw(M);Z&&!Y.has(Z)&&(Y.add(Z),V.push(Z))}),V.length<1)return L(O,H,D);const K=new Set(V.filter(M=>O.some(Z=>bw(Z)===M&&Z.type!=="code_execution"))),z=K.size>=2,q=new Map;
1940V.forEach((M,Z)=>q.set(M,Z));const $=[],ue=new Map;O.forEach(M=>{const Z=bw(M);if(Z){let te=ue.get(Z);te||(te={kind:"lane",laneId:Z,parts:[]},ue.set(Z,te),$.push(te)),te.parts.push(M)}else{const te=$[$.length-1];te&&te.kind==="flat"?te.parts.push(M):$.push({kind:"flat",parts:[M]})}});const ge=$.length-1;return c.jsx(c.Fragment,{children:$.map((M,Z)=>{if(M.kind==="flat"){const te=H&&Z===ge;return c.jsx(G.Fragment,{children:L(M.parts,te,D)},`${s}-seg-${Z}-flat`)}return K.has(M.laneId)?c.jsx($be,{laneIndexInTurn:q.get(M.laneId),turnIsMultiLane:z,parts:M.parts,canShowThinking:H,renderBlockBody:L},`${s}-seg-${Z}-${M.laneId}-lane`):null})})};return c.jsxs("div",{style:Rwe,"data-testid":"chat-window",children:[c.jsxs("div",{ref:I,style:jwe(m,g),className:"webkit-scrollbar-hidden","data-scrollable":"messages",children:[c.jsx(rwe,{}),b&&c.jsx(KSe,{message:S}),!b&&C.map((O,F)=>{const D=F===C.length-1,H=O.messages.find(q=>q.role==="USER"),V=O.messages.filter(q=>q.role==="ASSISTANT"),Y={display:"flex",flexDirection:"column",gap:"var(--spacing-small, 0.5rem)",minHeight:D?"calc(100dvh - var(--header-height, 4rem))":"auto"},K={display:"flex",flexDirection:"column",gap:"var(--spacing-large, 1.25rem)"},z=D&&l.hasError;return c.jsxs("div",{ref:D?E:void 0,style:K,children:[H&&!nP(H)&&c.jsx("div",{children:c.jsx(sxe,{message:H,index:O.userMessageIndex,showErrorState:z},`${s}-${H.messageId}`)}),F===0&&c.jsx(ZSe,{}),F===0&&c.jsx($Se,{}),c.jsxs("div",{style:Y,children:[z&&c.jsx(lxe,{message:l.errorMessage,actionUrl:l.actionUrl,actionLabel:l.actionLabel}),!z&&j(V,D,_we(V)?"inline":"overlay"),D&&!l.hasError&&n&&c.jsx(h8,{textMessage:{messageId:"streaming",componentId:"streaming",role:"ASSISTANT",type:"text",text:n}},`${s}-streaming`),D&&!l.hasError&&t&&!n&&c.jsx(Zhe,{}),D&&c.jsx("div",{ref:w,"aria-hidden":"true",style:{height:0,width:"100%",overflow:"hidden",scrollMarginBottom:m?`calc(var(--input-height, 6rem) + ${g}px + 0.75rem)`:"calc(var(--input-height, 6rem) + 0.75rem)"}})]})]},`${s}-turn-${F}`)})]}),c.jsx(Twe,{}),!b&&A>0&&c.jsx(Swe,{scrollContainerRef:I,sentinelRef:w,observeKey:`${s}-${A}`,bottomOffsetPx:m?g:0}),!m&&c.jsx(Xv,{hold:u?"window":"flow",children:c.jsx(Zv,{writingArea:Uk})})]})},Owe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3crect%20width='20'%20height='20'%20rx='10'%20fill='%23ECFDF5'/%3e%3cpath%20d='M13.4919%206.76046C13.7638%206.44616%2014.2388%206.41137%2014.5531%206.68305C14.8674%206.95483%2014.9021%207.42988%2014.6305%207.74425L9.53179%2013.7203C9.38796%2013.8865%209.17835%2013.9811%208.95857%2013.98C8.73884%2013.9787%208.53028%2013.8821%208.38828%2013.7144L5.27792%209.95926L5.23089%209.89753C5.01517%209.58303%205.06878%209.14982%205.36611%208.89806C5.66348%208.64646%206.09886%208.66574%206.37342%208.9304L6.42633%208.98625L8.96934%2012.0702L13.4919%206.76046Z'%20fill='%2312A55C'/%3e%3c/svg%3e",Lwe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3crect%20width='20'%20height='20'%20rx='10'%20fill='%23FFF0F0'/%3e%3cpath%20d='M12.4754%206.45934C12.7681%206.16702%2013.2428%206.16689%2013.5355%206.45934C13.828%206.75198%2013.8278%207.22664%2013.5355%207.51939L11.0576%209.99722L13.5355%2012.475L13.5872%2012.5317C13.8271%2012.826%2013.8096%2013.2607%2013.5355%2013.5351C13.2611%2013.8095%2012.8265%2013.8268%2012.532%2013.5868L12.4754%2013.5351L9.99758%2011.0573L7.51976%2013.5351C7.22704%2013.8277%206.75244%2013.8277%206.45971%2013.5351C6.16717%2013.2424%206.16714%2012.7678%206.45971%2012.475L8.93754%209.99722L6.45971%207.51939C6.16713%207.22662%206.16702%206.75204%206.45971%206.45934C6.75243%206.1669%207.22708%206.16684%207.51976%206.45934L9.99758%208.93717L12.4754%206.45934Z'%20fill='%23F44848'/%3e%3c/svg%3e",V1=class V1{static async fetchReviewSummary(t,n=!1){try{if(!n){const g=this.cache.get(t);if(g)return{data:g}}const r=be.getState().userId;if(!r)return{data:null,statusCode:401};const i=await Ht(),s=U.getState().chatId??"",l={"Content-Type":"application/json",Authorization:`Bearer ${i}`,"user-uuid":r,...Sn()},d=(await Tn.post(`${this.API_BASE_URL}/listing/reviews_summary`,{chat_id:s,listing_id:t},{headers:l})).data;let h;try{h=d.reviewsSummary?JSON.parse(d.reviewsSummary):{}}catch{h={}}const m={summary:String(h.summary||""),pros:Array.isArray(h.pros)?h.pros:null,cons:Array.isArray(h.cons)?h.cons:null};return this.cache.set(t,m),{data:m}}catch(r){return pt({error:r,source:"ReviewSummaryService.fetchReviewSummary"},{showToast:!1}),{data:null,statusCode:PM(r)??500}}}static primeCache(t,n){this.cache.set(t,n)}static clearCacheForListing(t){this.cache.delete(t)}static clearCache(){this.cache.clear()}static getCacheStats(){return{size:this.cache.size,entries:Array.from(this.cache.keys())}}};V1.API_BASE_URL="https://api.tonita.co",V1.cache=new Map;let lC=V1;function Dwe(e){return e===404?"This listing is unavailable or no longer exists.":"Reviews are currently unavailable for this product."}const Mwe=(e,t=!0)=>{const[n,r]=k.useState(()=>({data:null,isLoading:!1,error:null})),i=k.useCallback(async(l=!1)=>
1940{if(!e)return;r(d=>({...d,isLoading:!0,error:null}));const u=await lC.fetchReviewSummary(e,l);if(u.data){r(d=>({...d,data:u.data,isLoading:!1,error:null}));return}r(d=>({...d,data:null,isLoading:!1,error:Dwe(u.statusCode??500)}))},[e]),s=k.useCallback(()=>{i(!0)},[i]);return k.useEffect(()=>{t&&e&&i(!1)},[e,t,i]),{...n,refresh:s}},xw={ratingText:{color:"var(--text-default-primary, #0E0E11)",textAlign:"right",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.9375rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-medium, 1.375rem)",letterSpacing:"-0.00938rem"}},er={container:{display:"flex",flexDirection:"column",gap:"var(--spacing-small, 0.75rem)",width:"100%"},header:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",marginBottom:"var(--spacing-x-small, 0.5rem)"},titleContainer:{display:"flex",flexDirection:"row",alignItems:"baseline",gap:"0.5rem",flex:"1 0 0"},titleText:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem"},textContent:{alignSelf:"stretch",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem"},reviewTags:{display:"flex",flexDirection:"row",padding:"var(--spacing-none, 0) 0",alignItems:"flex-start",alignContent:"flex-start",gap:"var(--spacing-medium, 1rem)",alignSelf:"stretch",flexWrap:"wrap"},reviewTagItem:{display:"flex",flexDirection:"row",padding:"var(--spacing-none, 0)",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",borderRadius:"var(--radius-round, 62.4375rem)"},reviewTagIcon:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",flexShrink:"0"},reviewTagText:{fontSize:"var(--size-x-small, 0.875rem)",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontWeight:"400",lineHeight:"1.4",flex:"1",wordWrap:"break-word",overflowWrap:"break-word",textTransform:"capitalize"}},rN=({parsedListingData:e})=>{const{listingId:t,rating:n,reviewCount:r}=e,i=Mwe(t),s=i.data,l=i.isLoading,u=i.error;if(l)return c.jsxs("div",{style:er.container,children:[c.jsxs("div",{style:er.header,children:[c.jsx("div",{style:er.titleContainer,children:c.jsx("span",{style:er.titleText,children:"Review summary"})}),n&&n>0?c.jsx(Yy,{rating:n,reviewCount:r||0,showReviewCount:!!r&&r>0,customStyles:xw}):null]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"var(--spacing-large, 1.5rem)",gap:"var(--spacing-small, 0.75rem)",color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)"},children:[c.jsx(Zi,{size:1.5}),c.jsx("span",{children:"Loading review summary..."})]})]});if(u||!s)return c.jsxs("div",{style:er.container,children:[c.jsxs("div",{style:er.header,children:[c.jsx("div",{style:er.titleContainer,children:c.jsx("span",{style:er.titleText,children:"Review summary"})}),n&&n>0?c.jsx(Yy,{rating:n,reviewCount:r||0,showReviewCount:!!r&&r>0,customStyles:xw}):null]}),c.jsx("div",{style:{color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",padding:"var(--spacing-medium, 1rem) 0"},children:u})]});const{summary:d,pros:h,cons:m}=s;return c.jsxs("div",{style:er.container,children:[c.jsxs("div",{style:er.header,children:[c.jsx("div",{style:er.titleContainer,children:c.jsx("span",{style:er.titleText,children:"Review summary"})}),n&&n>0?c.jsx(Yy,{rating:n,reviewCount:r||0,showReviewCount:!!r&&r>0,customStyles:xw}):null]}),d&&c.jsx("div",{style:er.textContent,children:c.jsx(Ak,{content:d,enableLinkPreviews:!1,stripLinks:!0})}),(h&&h.length>0||m&&m.length>0)&&c.jsxs("div",{style:er.reviewTags,children:[h&&h.map((g,y)=>c.jsxs("div",{style:er.reviewTagItem,children:[c.jsx("div",{style:er.reviewTagIcon,children:c.jsx("img",{src:Owe,alt:"Pro",style:{width:"1.25rem",height:"1.25rem",aspectRatio:"1/1"}})}),c.jsx("div",{style:er.reviewTagText,children:g})]},`pro-${y}`)),m&&m.map((g,y)=>c.jsxs("div",{style:er.reviewTagItem,children:[c.jsx("div",{style:er.reviewTagIcon,children:c.jsx("img",{src:Lwe,alt:"Con",style:{width:"1.25rem",height:"1.25rem",aspectRatio:"1/1"}})}),c.jsx("div",{style:er.reviewTagText,children:g})]},`con-${y}`))]})]})},Uh={container:{display:"flex",flexDirection:"column",gap:"var(--spacing-x-small, 0.5rem)",width:"100%"},label:{color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",textTransform:"capitalize",margin:0},chipsContainer:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"var(--spacing-3x-small, 0.25rem)",alignItems:"center",width:"100%"}
1940,chip:{display:"flex",padding:"var(--spacing-3x-small, 0.25rem) var(--spacing-x-small, 0.5rem)",justifyContent:"center",alignItems:"center",gap:"0.25rem",borderRadius:"var(--radius-round, 62.4375rem)",border:"1px solid var(--border-default, #E5E5E9)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",color:"var(--text-default-primary, #0E0E11)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)",letterSpacing:"-0.0075rem",userSelect:"none",minHeight:"1.5rem",cursor:"default",textTransform:"capitalize"},colorDot:{width:"0.75rem",height:"0.75rem",borderRadius:"50%",border:"1px solid var(--border-default-secondary, #C1C1C7)",flexShrink:0}},iN=({availableColors:e})=>{const t=Object.entries(e);return t.length===0?null:c.jsxs("div",{style:Uh.container,children:[c.jsx("div",{style:Uh.label,children:"Available colors"}),c.jsx("div",{style:Uh.chipsContainer,children:t.map(([n,r])=>c.jsxs("div",{style:Uh.chip,children:[c.jsx("div",{style:{...Uh.colorDot,backgroundColor:r}}),n.toLowerCase()]},n))})]})},Pwe=({curPage:e,maxPage:t,activeDotColor:n="var(--text-default-primary, #0E0E11)",inactiveDotColor:r="var(--border-disabled-default, #F2F2F3)",sizeRatio:i=1,onDotClick:s})=>{const l=8*i,u=3*i,d=5,h=k.useMemo(()=>{if(t<=d)return Array.from({length:t},(E,A)=>A);let w=Math.max(0,e-Math.floor(d/2));const C=Math.min(t-1,w+d-1);return C-w<d-1&&(w=Math.max(0,C-d+1)),Array.from({length:C-w+1},(E,A)=>w+A)},[e,t,d]),m=k.useMemo(()=>{const w=Math.min(t,d);return l*w+u*2*w},[t,d,l,u]),g=k.useMemo(()=>t<=d?0:-h[0]*(l+u*2),[h,t,d,l,u]),y={display:"flex",justifyContent:"center",alignItems:"center"},b={display:"flex",alignItems:"center",overflow:"hidden",width:m,height:l},S={display:"flex",alignItems:"center",transform:`translateX(${g}px)`,transition:"transform 0.3s ease"},I=w=>({width:l,height:l,margin:`0 ${u}px`,borderRadius:"50%",backgroundColor:w===e?n:r,border:"none",cursor:"pointer",transition:"background-color 0.2s ease",flexShrink:0});return c.jsx("div",{style:y,children:c.jsx("div",{style:b,children:c.jsx("div",{style:S,children:Array.from({length:t},(w,C)=>c.jsx("div",{style:I(C),onClick:()=>s?.(C)},C))})})})},Fwe="Try it on â¨",Wh={container:{position:"absolute",bottom:"var(--spacing-2x-small, 0.5rem)",left:"var(--spacing-2x-small, 0.5rem)",zIndex:3,pointerEvents:"auto"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"0.5rem 0.9375rem",border:"1.5px solid rgba(255, 255, 255, 0.85)",borderRadius:"999px",background:"linear-gradient(90deg, var(--gradients-peach-100, #fcda2e) 0.09%, var(--gradients-peach-400, #fe6966) 99.91%)",cursor:"pointer",transition:"transform 0.18s ease, box-shadow 0.22s ease, filter 0.22s ease",transform:"none",boxShadow:"0 4px 14px rgba(14, 14, 17, 0.22), 0 0 0 1px rgba(14, 14, 17, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.40)",filter:"none"},buttonPressed:{transform:"scale(0.96)",boxShadow:"0 1px 4px rgba(14, 14, 17, 0.20), inset 0 0 0 1px rgba(255, 255, 255, 0.45)",filter:"none"},buttonHovered:{transform:"scale(1.04)",boxShadow:"0 6px 18px rgba(14, 14, 17, 0.28), 0 0 0 1px rgba(14, 14, 17, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.45)",filter:"brightness(1.03)"},label:{color:"#0E0E11",fontFamily:"var(--font-Inter, Inter)",fontSize:"0.8125rem",fontWeight:600,lineHeight:1.2,letterSpacing:"0.005em",whiteSpace:"nowrap"}},aN=({page:e})=>{const t=lB(e),[n,r]=k.useState(!1),[i,s]=k.useState(!1),l=Xt(m=>m.selectedListing),u=Xi(m=>{if(!l)return!0;const g=m.groups.get(l.groupId);return g?g.selectedListingId!==l.listingId:!1});if(!l||u)return null;const d=m=>{m.stopPropagation(),t(l)},h=()=>{const m=Wh.button;return n?{...m,...Wh.buttonPressed}:i?{...m,...Wh.buttonHovered}:m};return c.jsx("div",{style:Wh.container,children:c.jsx("button",{type:"button","aria-label":"Try it on â virtual try-on",style:h(),onClick:d,onMouseEnter:()=>s(!0),onMouseLeave:()=>{s(!1),r(!1)},onMouseDown:()=>r(!0),onMouseUp:()=>r(!1),onTouchStart:()=>r(!0),onTouchEnd:()=>r(!1),onTouchCancel:()=>r(!1),children:c.jsx("span",{style:Wh.label,children:Fwe})})})},Sd={container:{width:"100%",position:"relative",height:"24rem",display:"flex",flexDirection:"column"},imageArea:{position:"relative",width:"100%",flex:1,minHeight:0},scrollContainer:{display:"flex",width:"100%",height:"100%",overflowX:"auto",scrollSnapType:"x mandatory",gap:"0",scrollbarWidth:"none",msOverflowStyle:"none"},imageContainer:{flexShrink:0,width:"100%",height:"100%",scrollSnapAlign:"center",display:"flex",justifyContent:"center"},image:{width:"100%",height:"100%",objectFit:"contain",aspectRatio:"1/1",borderRadius:"var(--radius-large, 0.75rem)"},dotsContainer:{display:"flex",justifyContent:"center",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",marginTop:"var(--spacing-medium, 1rem)"}},Bwe=({images:e,productName:t,thumbnailImage:n=null,groupId:r,listingId:i,sourceMessageId:s})=>{const{colors:l}=ze(),{trackImageGalleryInteraction:u}=Nt(),d=eM(e,n),[h,m]=k.useState(0),g=k.useRef(null),y=k.useRef(!1),b=I=>{const w=I.currentTarget,C=w.scrollLeft,E=w.offsetWidth,A=Math.round(C/E);A!==h&&(y.current||(y.current=!0,u(i,s)),m(A))},S=I=>{y.current||(y.current=!0,u(i,s));const w=g.current;if(w){const C=w.offsetWidth;w.scrollTo({left:I*C,behavior:"smooth"})}m(I)};return c.jsxs("div",{style:Sd.container,children:[c.jsxs("div",{style:Sd.imageArea,children:[c.jsx("div",{ref:g,style:Sd.scrollContainer,onScroll:b,className:"hide-scrollbar",children:d.map((I,w)=>c.jsx("div",{style:Sd.imageContainer,children:c.jsx(qp,{groupId:r,src:I.image?.address?.imageUrl,alt:`${t} view ${w+1}`,style:Sd.image,fallbackSrc:_a,loading:"lazy"})},I.imageId))}),c.jsx(aN,{page:"productPage"})]}),d.length>1&&c.jsx("div",{style:Sd.dotsContainer,children:c.jsx(Pwe,{curPage:h,maxPage:d.length,activeDotColor:l.text,inactiveDotColor:l.borderLight,onDotClick:S})})]})},Nwe=e=>({mainPageContainer:{display:"flex",width:"100%",minHeight:"100%",flexDirection:"column",position:"relative",backgroundColor:e.background,transition:"background-color 0.3s ease"},mainContentWrapper:{display:"flex",flexDirection:"column",width:"100%",padding:"0 var(--spacing-medium, 1rem) var(--spacing-large, 1.5rem)",gap:"var(--spacing-large, 1.5rem)",flex:1},topNavigationBar:{position:"fixed",top:0,left:0,right:0,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",boxSizing:"border-box",backgroundColor:e.background,paddingTop:"env(safe-area-inset-top, 0px)",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",zIndex:1110,transition:"background-color 0.3s ease",touchAction:"manipulation",borderRadius:"0 0 var(--radius-medium, 0.5rem) var(--radius-medium, 0.5rem)"},headerRightButtons:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)"},listingTitleAndPricingContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1940p:"var(--spacing-medium, 1rem)",width:"100%"},listingTitleRowContainer:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"0.5rem",alignSelf:"stretch"},listingTitleText:{flex:"1 0 0",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-2x-large, 2rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-3x-large, 2.5rem)",letterSpacing:"-0.04rem",textTransform:"capitalize"},pricingStoreAndActionsSection:{display:"flex",flexDirection:"row",height:"3rem",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",alignSelf:"stretch",justifyContent:"space-between"},pricingAndStoreInfoContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-4x-small, 0.125rem)",flex:"1 0 0"},priceDisplayRowContainer:{display:"flex",flexDirection:"row",alignItems:"baseline",gap:"0.5rem"},sizeAndColorSelectorsContainer:{display:"flex",flexDirection:"column",gap:"var(--spacing-large, 1.5rem)",width:"100%"},currentPrice:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem"},originalPrice:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-tertiary, #71717F)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00875rem",textDecorationLine:"line-through"},storeName:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-tertiary, #71717F)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.9375rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00938rem"},actionsContainer:{display:"flex",flexDirection:"row",gap:"var(--spacing-small, 0.75rem)",alignItems:"center"},tonitaHighlightsSection:{display:"flex",width:"100%",padding:"var(--spacing-none, 0)",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-large, 1.5rem)",borderRadius:"var(--radius-none, 0)"},sectionHeader:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",alignSelf:"stretch"},sectionIconContainer:{display:"flex",flexDirection:"row",width:"1.5rem",height:"1.5rem",padding:"0.15rem 0.0655rem 0.15rem 0.075rem",justifyContent:"center",alignItems:"center",aspectRatio:"1/1"},sectionIcon:{width:"1.3595rem",height:"1.2rem",flexShrink:"0"},sectionTitle:{flex:"1 0 0",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",textTransform:"capitalize"},sectionContent:{alignSelf:"stretch",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",display:"flex",flexDirection:"column",gap:"0.5rem",textTransform:"capitalize"},sectionContentParagraph:{alignSelf:"stretch",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",textTransform:"capitalize"},keyFeaturesContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)",alignSelf:"stretch"},reviewSummaryContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)",alignSelf:"stretch"},reviewSummaryHeadlineContainer:{display:"flex",padding:"var(--spacing-none, 0) 0",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},createVisitButtonCustomStyles:t=>({button:{height:"3rem",padding:"0.75rem 1rem",borderRadius:"var(--radius-medium, 0.5rem)",background:WI(),transition:"none"},text:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontWeight:"500",lineHeight:"var(--button-line-height-1, 1.5rem)",letterSpacing:"-0.01rem",color:"#0E0E11"},icon:{width:"1.25rem",height:"1.25rem",filter:"none"}})}),zwe=[],Hwe=()=>{const{colors:e}=ze(),{height:t}=zm(),n=Nwe(e),r=()=>{const h="var(--spacing-large, 1.5rem)";return t>0?`calc(var(--input-height, 6rem) + ${t}px + ${h})`:`calc(var(--input-height, 6rem) + ${h})`},i=Xt(h=>h.selectedListing),s=Xt(h=>h.closeListingDetails),{trackCloseProductDetails:l}=Nt(),u=Xi(h=>i?FI(h,i):zwe);if(!i)return null;const d=Ok(i.storeName,i.brandName);return c.jsxs("div",{style:n.mainPageContainer,"data-testid":"listing-detail-panel",children:[c.jsx(Aa,{children:c.jsxs("div",{style:n.topNavigationBar,children:[c.jsx(Hl,{onClose:()=>{i&&l(i.listingId,i.sourceMessageId),s()}}),c.jsxs("div",{style:n.headerRightButtons,children:[c.jsx(Gv,{url:Yv(i.listingId),iconFilter:e.iconFilter,ariaLabel:"Share this product"}),c.jsx(Nm,{listing:i,iconFilter:e.iconFilter,page:"productPage"}),c.jsx(Rk,{parsedListingData:i,hideViewDetails:!0,iconFilter:e.iconFilter,page:"productPage"})]})]})}),c.jsxs("div",{style:{...n.mainContentWrapper,paddingBottom:r()},children:[c.jsx(Bwe,{images:i.images,productName:i.listingName||"Product",thumbnailImage:i.thumbnailImage,groupId:i.groupId,listingId:i.listingId,sourceMessageId:i.sourceMessageId},i.listingId),c.jsxs("div",{style:n.listingTitleAndPricingContainer,children:[i.title&&c.jsx("div",{style:n.listingTitleRowContainer,children:c.jsx("h1",{style:n.listingTitleText,children:i.title})}),c.jsxs("div",{style:n.pricingStoreAndActionsSection,children:[c.jsxs("div",{style:n.pricingAndStoreInfoContainer,children:[c.jsxs("div",{style:n.priceDisplayRowContainer,children:[i.currentPrice&&c.jsx("span",{style:af(i.currentPrice,i.originalPrice)?{...n.currentPrice,color:e.error}:n.currentPrice,children:_l(i.currentPrice)}),af(i.currentPrice,i.originalPrice)&&c.jsx("span",{style:n.originalPrice,children:_l(i.originalPrice)})]}),i.storeName&&c.jsxs("span",{style:n.storeName,children:[i.storeName,d&&` | ${d}`]})]}),c.jsx("div",{style:n.actionsContainer,children:i.url&&c.jsx(Vm,{listings:[i],tagManagerPage:"productPage",customStyle:n.createVisitButtonCustomStyles()})})]})]}),u.length>1&&c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1940p:"var(--spacing-x-small, 0.5rem)",width:"100%"},children:[c.jsx("h3",{style:n.sectionTitle,children:"Colors"}),c.jsx(jk,{colorSwatches:u,size:"medium",groupId:i.groupId})]}),i.availableColorsDict&&Object.keys(i.availableColorsDict).length>0&&c.jsx("div",{style:n.sizeAndColorSelectorsContainer,children:c.jsx(iN,{availableColors:i.availableColorsDict})}),c.jsxs("div",{style:n.tonitaHighlightsSection,children:[c.jsxs("div",{style:n.keyFeaturesContainer,children:[c.jsx("div",{children:c.jsx("h3",{style:n.sectionTitle,children:"Key features"})}),c.jsx("div",{style:n.sectionContent,children:c.jsx("ul",{style:{margin:0,paddingLeft:"var(--spacing-x-large, 2rem)",listStyleType:"disc",color:"var(--text-default-secondary, #71717F)"},children:i.features.map((h,m)=>c.jsx("li",{style:{...n.sectionContentParagraph,marginBottom:"var(--spacing-x-small, 0.5rem)"},children:h},m))})})]}),c.jsx("div",{style:n.reviewSummaryContainer,children:c.jsx("div",{style:n.reviewSummaryHeadlineContainer,children:c.jsx(rN,{parsedListingData:i})})})]})]})]})},Uwe=e=>({container:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-large, 1.5rem)",height:"100%",minHeight:0},primaryImageContainer:{position:"relative",lineHeight:0,width:"100%",flex:1,minHeight:0,overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",borderRadius:"var(--radius-large, 0.75rem)",overflow:"hidden"},backgroundImageContainer:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",filter:"blur(50px)",transform:"scale(1.1)",zIndex:0,opacity:1,transition:"opacity 0.3s"},primaryImageDesktop:{width:"100%",height:"100%",aspectRatio:"1/1",display:"block",objectFit:"contain",borderRadius:"var(--radius-large, 0.75rem)",minWidth:"100%",position:"relative",zIndex:1},imageNavigation:{position:"absolute",bottom:"var(--spacing-medium, 1rem)",right:"var(--spacing-medium, 1rem)",display:"flex",gap:"var(--spacing-3x-small, 0.25rem)",zIndex:2},navButton:{backgroundColor:"var(--card-bg-elevated)",border:"1px solid var(--card-border)",fontSize:"1rem",cursor:"pointer",color:e.text,padding:"var(--spacing-3x-small, 0.25rem)",borderRadius:"var(--radius-medium, 0.5rem)",transition:"all 0.2s ease",backdropFilter:"blur(5px)",width:"2rem",height:"2rem",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},navButtonDisabled:{backgroundColor:"var(--card-bg-elevated)",border:"1px solid var(--card-border)",fontSize:"1rem",cursor:"not-allowed",color:e.textMuted,padding:"var(--spacing-3x-small, 0.25rem)",borderRadius:"var(--radius-medium, 0.5rem)",transition:"all 0.2s ease",backdropFilter:"blur(5px)",width:"2rem",height:"2rem",display:"flex",alignItems:"center",justifyContent:"center",opacity:.5,boxShadow:"0 1px 4px rgba(0, 0, 0, 0.05)"},secondaryGallery:{display:"flex",alignItems:"center",gap:"0.5rem",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",width:"100%",paddingBottom:"0.5rem",flexWrap:"nowrap",padding:"0 0.5rem"},secondaryImage:{display:"flex",width:"4rem",height:"4rem",flexShrink:0,justifyContent:"center",alignItems:"center",aspectRatio:"1/1",borderRadius:"0.73519rem",border:`0.49px solid ${e.border}`,background:e.backgroundSecondary,mixBlendMode:"multiply",cursor:"pointer",overflow:"hidden",transition:"border-color 0.2s ease"},secondaryImageSelected:{border:`2.941px solid ${e.text}`},secondaryImageContent:{width:"4rem",height:"4rem",flexShrink:0,aspectRatio:"1/1",objectFit:"contain"},scrollbarHidden:{WebkitScrollbarWidth:"none",scrollbarWidth:"none",msOverflowStyle:"none"}}),Wwe=({images:e,productName:t="Product",thumbnailImage:n=null,groupId:r,listingId:i,sourceMessageId:s})=>{const{colors:l}=ze(),{trackImageGalleryInteraction:u}=Nt(),d=Uwe(l),h=eM(e,n),[m,g]=k.useState(0),y=k.useRef(0),b=k.useRef(!1),S=()=>{b.current||(b.current=!0,u(i,s))},I=()=>{S(),g(E=>E===0?h.length-1:E-1)},w=()=>{S(),g(E=>E===h.length-1?0:E+1)},C=E=>{if(Math.abs(E.deltaX)>Math.abs(E.deltaY)){E.cancelable&&E.preventDefault(),y.current+=E.deltaX;const A=100;y.current>A?(S(),w(),y.current=0):y.current<-A&&(S(),I(),y.current=0)}};return c.jsxs("div",{style:d.container,children:[c.jsxs("div",{style:{...d.primaryImageContainer,...d.scrollbarHidden},onWheel:C,children:[c.jsx("div",{style:{...d.backgroundImageContainer,backgroundImage:`url(${h[m]?.image.address.imageUrl})`}}),c.jsx(qp,{groupId:r,src:h[m]?.image.address.imageUrl,alt:t,style:d.primaryImageDesktop,fallbackSrc:_a,loading:"eager"}),c.jsx(aN,{page:"productPage"}),h.length>1&&c.jsxs("div",{style:d.imageNavigation,children:[c.jsx("button",{style:m===0?d.navButtonDisabled:d.navButton,onClick:I,disabled:m===0,"aria-label":"Previous image",children:"â¹"}),c.jsx("button",{style:m===h.length-1?d.navButtonDisabled:d.navButton,onClick:w,disabled:m===h.length-1,"aria-label":"Next image",children:"âº"})]})]}),h.length>1&&c.jsx("div",{style:{...d.secondaryGallery,...d.scrollbarHidden},children:h.map((E,A)=>c.jsx("div",{style:{...d.secondaryImage,...A===m&&d.secondaryImageSelected},onClick:()=>{S(),g(A)},children:c.jsx(qp,{src:E.image?.address?.imageUrl,alt:`${t} view ${A+1}`,style:d.secondaryImageContent,fallbackSrc:_a,loading:"lazy"})},E.imageId))})]})},Vwe=[],qwe=e=>({mainContainer:{display:"flex",width:"100%",height:"100%",flexDirection:"column",gap:"var(--spacing-small, 0.75rem)",overflow:"hidden",position:"relative",backgroundColor:e.background,transition:"background-color 0.3s ease"},headerSection:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:"3.5rem",padding:"0.75rem var(--spacing-large, 1.5rem)",boxSizing:"border-box",zIndex:110,position:"relative"},headerRightButtons:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)"},scrollableContentWrapper:{display:"flex",flexDirection:"row",width:"100%",flex:1,zIndex:12,position:"relative",overflow:"auto",padding:"0 1.5rem 2rem 1.5rem"},mainContentSection:{display:"flex",flexDirection:"row",width:"100%",gap:"var(--spacing-x-large, 2rem)",minHeight:"100%",alignItems:"flex-start"},topNavigationBar:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",height:"3.5rem",alignSelf:"stretch"},leftSectionImageAndActions:{flex:"1 1 calc(50% - 1rem)",display:"flex",flexDirection:"column",gap:"var(--spacing-medium, 1rem)",height:"fit-content",overflow:"hidden",minWidth:0,scrollbarWidth:"none",msOverflowStyle:"none"},rightSectionListingInfo:{display:"flex",flexDirection:"column",flex:"1 1 calc(50% - 1rem)",gap:"var(--spacing-large, 1.5rem)",height:"fit-content",overflow:"hidden",minWidth:0,scrollbarWidth:"none",msOverflowStyle:"none",paddingBottom:"var(--spacing-x-large, 2rem)"},listingTitleAndPricingSectionContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1940p:"var(--spacing-medium, 1rem)",width:"100%"},listingTitleRowWithIcon:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"0.5rem",alignSelf:"stretch"},listingTitleText:{flex:"1 0 0",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-2x-large, 2rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-3x-large, 2.5rem)",letterSpacing:"-0.04rem",textTransform:"capitalize"},pricingStoreAndActionsSection:{display:"flex",flexDirection:"row",height:"3rem",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",alignSelf:"stretch",justifyContent:"space-between"},pricingAndStoreInfoContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-4x-small, 0.125rem)",flex:"1 0 0"},priceDisplayRowContainer:{display:"flex",flexDirection:"row",alignItems:"baseline",gap:"0.5rem"},currentPriceText:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-primary, #0E0E11)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem"},originalPriceStrikethroughText:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-tertiary, #71717F)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00875rem",textDecorationLine:"line-through"},storeNameText:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",color:"var(--text-default-tertiary, #71717F)",textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.9375rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-small, 1.25rem)",letterSpacing:"-0.00938rem"},actionButtonsRowSection:{display:"flex",flexDirection:"row",gap:"var(--spacing-small, 0.75rem)",alignItems:"center"},sizeAndColorSelectorsContainer:{display:"flex",flexDirection:"column",gap:"var(--spacing-large, 1.5rem)",width:"100%"},tonitaHighlightsFeaturesSection:{display:"flex",width:"100%",padding:"var(--spacing-none, 0)",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-large, 1.5rem)",borderRadius:"var(--radius-none, 0)"},sectionHeaderRowWithIcon:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-2x-small, 0.375rem)",alignSelf:"stretch"},sectionIconContainer:{display:"flex",flexDirection:"row",width:"1.5rem",height:"1.5rem",padding:"0.15rem 0.0655rem 0.15rem 0.075rem",justifyContent:"center",alignItems:"center",aspectRatio:"1/1"},sectionIcon:{width:"1.3595rem",height:"1.2rem",flexShrink:"0"},sectionTitleContainer:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"0.5rem"},sectionTitle:{flex:"1 0 0",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.02rem",textTransform:"capitalize"},sectionContent:{alignSelf:"stretch",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",display:"flex",flexDirection:"column",gap:"0.5rem",textTransform:"capitalize"},sectionContentParagraph:{alignSelf:"stretch",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"400",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",textTransform:"capitalize"},keyFeaturesContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-small, 0.75rem)",alignSelf:"stretch"},reviewSummaryContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",ga
1940p:"var(--spacing-small, 0.75rem)",alignSelf:"stretch"},reviewSummaryHeadlineContainer:{display:"flex",padding:"var(--spacing-none, 0) 0",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},createVisitButtonCustomStyles:t=>({button:{height:"3rem",padding:"0.75rem 1rem",borderRadius:"var(--radius-medium, 0.5rem)",background:WI(),transition:"none"},text:{fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-medium, 1rem)",fontWeight:"500",lineHeight:"var(--button-line-height-1, 1.5rem)",letterSpacing:"-0.01rem",color:"#0E0E11"},icon:{width:"1.25rem",height:"1.25rem",filter:"none"}})}),Gwe=()=>{const{colors:e}=ze(),t=qwe(e),n=Xt(u=>u.selectedListing),r=Xt(u=>u.closeListingDetails),{trackCloseProductDetails:i}=Nt(),s=Xi(u=>n?FI(u,n):Vwe);if(!n)return null;const l=Ok(n.storeName,n.brandName);return c.jsxs(c.Fragment,{children:[c.jsx("style",{children:` 1941 .listing-details-left-section::-webkit-scrollbar, 1942 .listing-details-right-section::-webkit-scrollbar { 1943 display: none; 1944 } 1945 `}),c.jsxs("div",{style:t.mainContainer,"data-testid":"listing-detail-panel",children:[c.jsxs("div",{style:t.headerSection,children:[c.jsx(sk,{onClick:()=>{n&&i(n.listingId,n.sourceMessageId),r()}}),c.jsxs("div",{style:t.headerRightButtons,children:[c.jsx(Gv,{url:Yv(n.listingId),iconFilter:e.iconFilter,ariaLabel:"Share this product"}),c.jsx(Nm,{listing:n,iconFilter:e.iconFilter,page:"productPage"}),c.jsx(Rk,{parsedListingData:n,hideViewDetails:!0,hideVisitSite:!0,iconFilter:e.iconFilter,page:"productPage"})]})]}),c.jsx("div",{style:t.scrollableContentWrapper,children:c.jsxs("div",{style:t.mainContentSection,children:[c.jsx("div",{style:t.leftSectionImageAndActions,className:"listing-details-left-section",children:c.jsx(Wwe,{images:n.images,productName:n.listingName||"Product",thumbnailImage:n.thumbnailImage,groupId:n.groupId,listingId:n.listingId,sourceMessageId:n.sourceMessageId})}),c.jsxs("div",{style:t.rightSectionListingInfo,className:"listing-details-right-section",children:[c.jsxs("div",{style:t.listingTitleAndPricingSectionContainer,children:[n.title&&c.jsx("div",{style:t.listingTitleRowWithIcon,children:c.jsx("h1",{style:t.listingTitleText,children:n.title})}),c.jsxs("div",{style:t.pricingStoreAndActionsSection,children:[c.jsxs("div",{style:t.pricingAndStoreInfoContainer,children:[c.jsxs("div",{style:t.priceDisplayRowContainer,children:[n.currentPrice&&c.jsx("span",{style:af(n.currentPrice,n.originalPrice)?{...t.currentPriceText,color:e.error}:t.currentPriceText,children:_l(n.currentPrice)}),af(n.currentPrice,n.originalPrice)&&c.jsx("span",{style:t.originalPriceStrikethroughText,children:_l(n.originalPrice)})]}),n.storeName&&c.jsxs("span",{style:t.storeNameText,children:[n.storeName,l&&` | ${l}`]})]}),c.jsx("div",{style:t.actionButtonsRowSection,children:n.url&&c.jsx(Vm,{listings:[n],tagManagerPage:"productPage",customStyle:t.createVisitButtonCustomStyles()})})]})]}),s.length>1&&c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--spacing-x-small, 0.5rem)",width:"100%"},children:[c.jsx("h3",{style:t.sectionTitle,children:"Colors"}),c.jsx(jk,{colorSwatches:s,size:"medium",groupId:n.groupId})]}),n.availableColorsDict&&Object.keys(n.availableColorsDict).length>0&&c.jsx("div",{style:t.sizeAndColorSelectorsContainer,children:c.jsx(iN,{availableColors:n.availableColorsDict})}),c.jsxs("div",{style:t.tonitaHighlightsFeaturesSection,children:[c.jsxs("div",{style:t.keyFeaturesContainer,children:[c.jsx("div",{style:t.sectionTitleContainer,children:c.jsx("h3",{style:t.sectionTitle,children:"Key features"})}),c.jsx("div",{style:t.sectionContent,children:c.jsx("ul",{style:{margin:0,paddingLeft:"var(--spacing-x-large, 2rem)",listStyleType:"disc",color:"var(--text-default-secondary, #71717F)"},children:n.features.map((u,d)=>c.jsx("li",{style:{...t.sectionContentParagraph,marginBottom:"var(--spacing-x-small, 0.5rem)"},children:u},d))})})]}),c.jsx("div",{style:t.reviewSummaryContainer,children:c.jsx("div",{style:t.reviewSummaryHeadlineContainer,children:c.jsx(rN,{parsedListingData:n})})})]})]})]})})]})]})},Wk=()=>{const{isMobile:e}=We();return Xt(n=>n.selectedListing)?e?c.jsx(Hwe,{}):c.jsx(Gwe,{}):null},Ywe=Object.freeze(Object.defineProperty({__proto__:null,default:Wk},Symbol.toStringTag,{value:"Module"})),Qv=0,Wl=1,Of=2,sN=4;function Z8(e){return()=>e}function Kwe(e){e()}function oN(e,t){return n=>e(t(n))}function Q8(e,t){return()=>e(t)}function Xwe(e,t){return n=>e(t,n)}function Vk(e){return e!==void 0}function Jwe(...e){return()=>{e.map(Kwe)}}function Lf(){}function $v(e,t){return t(e),e}function Zwe(e,t){return t(e)}function _n(...e){return e}function Kt(e,t){return e(Wl,t)}function ct(e,t){e(Qv,t)}function qk(e){e(Of)}function On(e){return e(sN)}function Ge(e,t){return Kt(e,Xwe(t,Qv))}function Ka(e,t){const n=e(Wl,r=>{n(),t(r)});return n}function $8(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function lN(e,t){return e===t}function En(e=lN){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function tt(e){return t=>n=>{e(n)&&t(n)}}function Ne(e){return t=>oN(t,e)}function xs(e){return t=>()=>{t(e)}}function ye(e,...t){const n=Qwe(...t);return((r,i)=>{switch(r){case Of:qk(e);return;case Wl:return Kt(e,n(i))}})}function Es(e,t){return n=>r=>{n(t=e(t,r))}}function cu(e){return t=>n=>{e>0?e--:t(n)}}function uo(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function yt(...e){const t=Array.from({length:e.length});let n=0,r=null;const i=2**e.length-1;return e.forEach((s,l)=>{const u=2**l;Kt(s,d=>{const h=n;n|=u,t[l]=d,h!==i&&n===i&&r&&(r(),r=null)})}),s=>l=>{const u=()=>{s([l].concat(t))};n===i?u():r=u}}function Qwe(...e){return t=>e.reduceRight(Zwe,t)}function $we(e){let t,n;const r=()=>t?.();return function(i,s){switch(i){case Wl:return s?n===s?void 0:(r(),n=s,t=Kt(e,s),t):(r(),Lf);case Of:r(),n=null;return}}}function Te(e){let t=e;const n=_t();return((r,i)=>{switch(r){case Qv:t=i;break;case Wl:{i(t);break}case sN:return t}return n(r,i)})}function Jr(e,t){return $v(Te(t),n=>Ge(e,n))}function _t(){const e=[];return((t,n)=>
1945{switch(t){case Qv:e.slice().forEach(r=>{r(n)});return;case Of:e.splice(0);return;case Wl:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}})}function Yi(e){return $v(_t(),t=>Ge(e,t))}const e5e={singleton:!0};function Gt(e,t=[],n=e5e){const{singleton:r}=n;return{constructor:e,dependencies:t,id:t5e(),singleton:r}}const t5e=()=>Symbol("id");function n5e(e){const t=new Map,n=({constructor:r,dependencies:i,id:s,singleton:l})=>{if(l&&t.has(s))return t.get(s);const u=r(i.map(d=>n(d)));return l&&t.set(s,u),u};return n(e)}function Yn(...e){const t=_t(),n=Array.from({length:e.length});let r=0;const i=2**e.length-1;return e.forEach((s,l)=>{const u=2**l;Kt(s,d=>{n[l]=d,r|=u,r===i&&ct(t,n)})}),function(s,l){switch(s){case Of:{qk(t);return}case Wl:return r===i&&l(n),Kt(t,l)}}}function et(e,t=lN){return ye(e,En(t))}function cC(...e){return function(t,n){switch(t){case Of:return;case Wl:return Jwe(...e.map(r=>Kt(r,n)))}}}const ur={DEBUG:0,INFO:1,WARN:2,ERROR:3},r5e={[ur.DEBUG]:"debug",[ur.ERROR]:"error",[ur.INFO]:"log",[ur.WARN]:"warn"},i5e=()=>typeof globalThis>"u"?window:globalThis,Vl=Gt(()=>{const e=Te(ur.ERROR);return{log:Te((t,n,r=ur.INFO)=>{const i=i5e().VIRTUOSO_LOG_LEVEL??On(e);r>=i&&console[r5e[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function a5e(e){return"self"in e?e.document.documentElement:e}function cN(e){const t=a5e(e);return t.ownerDocument.defaultView.getComputedStyle(t).direction==="rtl"}function Pc(e,t){return cN(e)?-t:t}function e9(e,t){return cN(e)?-t:t}function bu(e,t,n){return Gk(e,t,n).callbackRef}function Gk(e,t,n){const r=G.useRef(null);let i=l=>{};const s=G.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(l=>{const u=()=>{const d=l[0].target;d.offsetParent!==null&&e(d)};n?u():requestAnimationFrame(u)}):null,[e,n]);return i=l=>{l&&t?(s?.observe(l),r.current=l):(r.current&&s?.unobserve(r.current),r.current=null)},{callbackRef:i,ref:r}}function s5e(e,t,n,r,i,s,l,u,d){const h=G.useCallback(m=>{const g=o5e(m.children,t,u?"offsetWidth":"offsetHeight",i);let y=m.parentElement;for(;y.dataset.virtuosoScroller===void 0;)y=y.parentElement;const b=y.lastElementChild?.dataset.viewportType==="window";let S;b&&(S=y.ownerDocument.defaultView);const I=l?u?l.scrollWidth:l.scrollHeight:b?u?S.document.documentElement.scrollWidth:S.document.documentElement.scrollHeight:u?y.scrollWidth:y.scrollHeight,w=l?u?l.offsetWidth:l.offsetHeight:b?u?S.innerWidth:S.innerHeight:u?y.offsetWidth:y.offsetHeight,C=l?u?Pc(l,l.scrollLeft):l.scrollTop:b?u?Pc(S,S.scrollX||S.document.documentElement.scrollLeft):S.scrollY||S.document.documentElement.scrollTop:u?Pc(y,y.scrollLeft):y.scrollTop;r({scrollHeight:I,scrollTop:Math.max(C,0),viewportHeight:w}),s?.(u?t9("column-gap",getComputedStyle(m).columnGap,i):t9("row-gap",getComputedStyle(m).rowGap,i)),g!==null&&e(g)},[e,t,i,s,l,r,u]);return Gk(h,n,d)}function o5e(e,t,n,r){const i=e.length;if(i===0)return null;const s=[];for(let l=0;l<i;l++){const u=e.item(l);if(u.dataset.index===void 0)continue;const d=parseInt(u.dataset.index,10),h=parseFloat(u.dataset.knownSize),m=t(u,n);if(m===0&&r("Zero-sized element, this should not happen",{child:u},ur.ERROR),m===h)continue;const g=s[s.length-1];s.length===0||g.size!==m||g.endIndex!==d-1?s.push({endIndex:d,size:m,startIndex:d}):s[s.length-1].endIndex++}return s}function t9(e,t,n){return t!=="normal"&&t?.endsWith("px")!==!0&&n(`${e} was not resolved to pixel value correctly`,t,ur.WARN),t==="normal"?0:parseInt(t??"0",10)}const Yk=typeof document>"u"?G.useEffect:G.useLayoutEffect;function uN(e,t,n){const r=G.useRef(null),i=G.useCallback(d=>{if(!d?.offsetParent)return;const h=d.getBoundingClientRect(),m=h.width;let g,y;if(t){const b=t.getBoundingClientRect(),S=h.top-b.top;y=b.height-Math.max(0,S),g=S+t.scrollTop}else{const b=l.current.ownerDocument.defaultView;y=b.innerHeight-Math.max(0,h.top),g=h.top+b.scrollY}r.current={listHeight:h.height,offsetTop:g,visibleHeight:y,visibleWidth:m},e(r.current)},[e,t]),{callbackRef:s,ref:l}=Gk(i,!0,n),u=G.useCallback(()=>{i(l.current)},[i,l]);return G.useEffect(()=>{if(t){t.addEventListener("scroll",u);const h=new ResizeObserver(()=>{requestAnimationFrame(u)});return h.observe(t),()=>{t.removeEventListener("scroll",u),h.unobserve(t)}}const d=l.current?.ownerDocument.defaultView;return d?.addEventListener("scroll",u),d?.addEventListener("resize",u),()=>{d?.removeEventListener("scroll",u),d?.removeEventListener("resize",u)}},[u,t,l]),s}const gi=Gt(()=>{const e=_t(),t=_t(),n=Te(0),r=_t(),i=_t(),s=Te(0),l=_t(),u=_t(),d=Te(0),h=Te(0),m=Te(0),g=Te(0),y=_t(),b=_t(),S=Te(!1),I=Te(!1),w=Te(!1);return Ge(ye(e,Ne(({scrollTop:C})=>C)),t),Ge(ye(e,Ne(({scrollHeight:C})=>C)),u),Ge(t,s),{deviation:n,deviationCommitted:r,fixedFooterHeight:m,fixedHeaderHeight:h,footerHeight:g,headerHeight:d,horizontalDirection:I,scrollBy:b,scrollC
1945ontainerState:e,scrollHeight:u,scrollingInProgress:S,scrollTo:y,scrollTop:t,skipAnimationFrameInResizeObserver:w,smoothScrollTargetReached:i,statefulScrollTop:s,viewportHeight:l}},[],{singleton:!0}),Yp={lvl:0};function dN(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const s=[];for(let l=1;l<n;l++){const{index:u,value:d}=t(e[l]);s.push({end:u-1,start:r,value:i}),r=u,i=d}return s.push({end:1/0,start:r,value:i}),s}function on(e){return e===Yp}function Kp(e,t){if(!on(e))return t===e.k?e.v:t<e.k?Kp(e.l,t):Kp(e.r,t)}function Za(e,t,n="k"){if(on(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=Za(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return Za(e.l,t,n)}function Vi(e,t,n){return on(e)?pN(t,n,1):t===e.k?lr(e,{k:t,v:n}):t<e.k?n9(lr(e,{l:Vi(e.l,t,n)})):n9(lr(e,{r:Vi(e.r,t,n)}))}function Ud(){return Yp}function Wd(e,t,n){if(on(e))return[];const r=Za(e,t)[0];return l5e(dC(e,r,n))}function uC(e,t){if(on(e))return Yp;const{k:n,l:r,r:i}=e;if(t===n){if(on(r))return i;if(on(i))return r;const[s,l]=hN(r);return Qy(lr(e,{k:s,l:fN(r),v:l}))}return t<n?Qy(lr(e,{l:uC(r,t)})):Qy(lr(e,{r:uC(i,t)}))}function Fc(e){return on(e)?[]:[...Fc(e.l),{k:e.k,v:e.v},...Fc(e.r)]}function dC(e,t,n){if(on(e))return[];const{k:r,l:i,r:s,v:l}=e;let u=[];return r>t&&(u=u.concat(dC(i,t,n))),r>=t&&r<=n&&u.push({k:r,v:l}),r<=n&&(u=u.concat(dC(s,t,n))),u}function Qy(e){const{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(Sw(t))return mN(lr(e,{lvl:n-1}));if(!on(t)&&!on(t.r))return lr(t.r,{l:lr(t,{r:t.r.l}),lvl:n,r:lr(e,{l:t.r.r,lvl:n-1})});throw new Error("Unexpected empty nodes")}if(Sw(e))return fC(lr(e,{lvl:n-1}));if(!on(r)&&!on(r.l)){const i=r.l,s=Sw(i)?r.lvl-1:r.lvl;return lr(i,{l:lr(e,{lvl:n-1,r:i.l}),lvl:i.lvl+1,r:fC(lr(r,{l:i.r,lvl:s}))})}throw new Error("Unexpected empty nodes")}function lr(e,t){return pN(t.k===void 0?e.k:t.k,t.v===void 0?e.v:t.v,t.lvl===void 0?e.lvl:t.lvl,t.l===void 0?e.l:t.l,t.r===void 0?e.r:t.r)}function fN(e){return on(e.r)?e.l:Qy(lr(e,{r:fN(e.r)}))}function Sw(e){return on(e)||e.lvl>e.r.lvl}function hN(e){return on(e.r)?[e.k,e.v]:hN(e.r)}function pN(e,t,n,r=Yp,i=Yp){return{k:e,l:r,lvl:n,r:i,v:t}}function n9(e){return fC(mN(e))}function mN(e){const{l:t}=e;return!on(t)&&t.lvl===e.lvl?lr(t,{r:lr(e,{l:t.r})}):e}function fC(e){const{lvl:t,r:n}=e;return!on(n)&&!on(n.r)&&n.lvl===t&&n.r.lvl===t?lr(n,{l:lr(e,{r:n.l}),lvl:t+1}):e}function l5e(e){return dN(e,({k:t,v:n})=>({index:t,value:n}))}function gN(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function Xp(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}const Kk=Gt(()=>({recalcInProgress:Te(!1)}),[],{singleton:!0});function yN(e,t,n){return e[N1(e,t,n)]}function N1(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const s=Math.floor((r+i)/2),l=e[s],u=n(l,t);if(u===0)return s;if(u===-1){if(i-r<2)return s-1;i=s-1}else{if(i===r)return s;r=s+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function c5e(e,t,n,r){const i=N1(e,t,r),s=N1(e,n,r,i);return e.slice(i,s+1)}function Ll(e,t){return Math.round(e.getBoundingClientRect()[t])}function e2(e){return!on(e.groupOffsetTree)}function Xk({index:e},t){return t===e?0:t<e?-1:1}function u5e(){return{groupIndices:[],groupOffsetTree:Ud(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:Ud()}}function d5e(e,t){let n=on(e)?0:1/0;for(const r of t){const{endIndex:i,size:s,startIndex:l}=r;if(n=Math.min(n,l),on(e)){e=Vi(e,0,s);continue}const u=Wd(e,l-1,i+1);if(u.some(v5e(r)))continue;let d=!1,h=!1;for(const{end:m,start:g,value:y}of u)d?(i>=g||s===y)&&(e=uC(e,g)):(h=y!==s,d=!0),m>i&&i>=g&&y!==s&&(e=Vi(e,i+1,y));h&&(e=Vi(e,l,s))}return[e,n]}function f5e(e){return e.groupIndex!==void 0}function h5e({offset:e},t){return t===e?0:t<e?-1:1}function Jp(e,t,n){if(t.length===0)return 0;const{index:r,offset:i,size:s}=yN(t,e,Xk),l=e-r,u=s*l+(l-1)*n+i;return u>0?u+n:u}function vN(e,t){if(!e2(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function bN(e,t,n){if(f5e(e))return t.groupIndices[e.groupIndex]+1;const r=e.index==="LAST"?n:e.index;let i=vN(r,t);return i=Math.max(0,Math.min(n,i)),i}function p5e(e,t,n,r=0){return r>0&&(t=Math.max(t,yN(e,r,Xk).offset)),dN(c5e(e,t,n,h5e),y5e)}function m5e(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,ur.DEBUG);const s=e.sizeTree;let l=s,u=0;if(n.length>0&&on(s)&&t.length===2){const y=t[0].size,b=t[1].size;l=n.reduce((S,I)=>Vi(Vi(S,I,y),I+1,b),l)}else[l,u]=d5e(l,t);if(l===s)return e;const{lastIndex:d,lastOffset:h,lastSize:m,offsetTree:g}=hC(e.offsetTree,u,l,i);return{groupIndices:n,groupOffsetTree:n.reduce((y,b)=>Vi(y,b,Jp(b,g,i)),Ud()),lastIndex:d,lastOffset:h,lastSize:m,offsetTree:g,sizeTree:l}}function g5e(e){return Fc(e).map(({k:t,v:n},r,i)=>{const s=i[r+1];return{endIndex:s===void 0?1/0:s.k-1,size:n,startIndex:t}})}function r9(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function hC(e,t,n,r){let i=e,s=0,l=0,u=0,d=0;if(t===0)i=[];else{d=N1(i,t-1,Xk),u=i[d].offset;const h=Za(n,t-1);s=h[0],l=h[1],i.length&&i[d].size===Za(n,t)[1]&&(d-=1),i=i.slice(0,d+1)}for(const{start:h,value:m}of Wd(n,t,1/0)){const g=h-s,y=g*l+u+g*r;i.push({index:h,offset:y,size:m}),s=h,u=y,l=m}return{lastIndex:s,lastOffset:u,lastSize:l,offsetTree:i}}function y5e(e){return{index:e.index,value:e}}function v5e(e){const{endIndex:t,size:n,startIndex:r}=e;return i=>i.start===r&&(i.end===t||i.end===1/0)&&i.value===n}const b5e={offsetHeight:"height",offsetWidth:"width"},Ls=Gt(([{log:e},{recalcInProgress:t}])=>{const n=_t(),r=_t(),i=Jr(r,0),s=_t(),l=_t(),u=Te(0),d=Te([]),h=Te(void 0),m=Te(void 0),g=Te(void 0),y=Te(void 0),b=Te((j,O)=>Ll(j,b5e[O])),S=Te(void 0),I=Te(0),w=u5e(),C=Jr(ye(n,yt(d,e,I),Es(m5e,w),En()),w),E=Jr(ye(d,En(),Es((j,O)=>({current:O,prev:j.current}),{current:[],prev:[]}),Ne(({prev:j})=>j)),[]);Ge(ye(d,tt(j=>j.length>0),yt(C,I),Ne(([j,O,F])=>{const D=j.reduce((H,V,Y)=>Vi(H,V,Jp(V,O.offsetTree,F)||Y),Ud());return{...O,groupIndices:j,groupOffsetTree:D}})),C),Ge(ye(r,yt(C),tt(([j,{lastIndex:O}])=>j<O),Ne(([j,{lastIndex:O,lastSize:F}])=>[{endIndex:O,size:F,startIndex:j}])),n),Ge(h,m);const A=Jr(ye(h,Ne(j=>j===void 0)),!0);Ge(ye(m,tt(j=>j!==void 0&&on(On(C).sizeTree)),Ne(j=>{const O=On(g),F=On(d).length>0;return O!==void 0&&O!==0?F?[{endIndex:0,size:O,startIndex:0},{endIndex:1,size:j,startIndex:1}]:[]:[{endIndex:0,size:j,startIndex:0}]})),n),Ge(ye(y,tt(j=>j!==void 0&&j.length>0&&on(On(C).sizeTree)),Ne(j=>{const O=[];let F=j[0],D=0;for(let H=1;H<j.length;H++){const V=j[H];V!==F&&(O.push({endIndex:H-1,size:F,startIndex:D}),F=V,D=H)}
1945return O.push({endIndex:j.length-1,size:F,startIndex:D}),O})),n),Ge(ye(d,yt(g,m),tt(([,j,O])=>j!==void 0&&O!==void 0),Ne(([j,O,F])=>{const D=[];for(let H=0;H<j.length;H++){const V=j[H],Y=j[H+1];D.push({startIndex:V,endIndex:V,size:O}),Y!==void 0&&D.push({startIndex:V+1,endIndex:Y-1,size:F})}return D})),n);const _=Yi(ye(n,yt(C),Es(({sizes:j},[O,F])=>({changed:F!==j,sizes:F}),{changed:!1,sizes:w}),Ne(j=>j.changed)));Kt(ye(u,Es((j,O)=>({diff:j.prev-O,prev:O}),{diff:0,prev:0}),Ne(j=>j.diff)),j=>{const{groupIndices:O}=On(C);if(j>0)ct(t,!0),ct(s,j+r9(j,O));else if(j<0){const F=On(E);F.length>0&&(j-=r9(-j,F)),ct(l,j)}}),Kt(ye(u,yt(e)),([j,O])=>{j<0&&O("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:u},ur.ERROR)});const R=Yi(s);Ge(ye(s,yt(C),Ne(([j,O])=>{const F=O.groupIndices.length>0,D=[],H=O.lastSize;if(F){const V=Kp(O.sizeTree,0);let Y=0,K=0;for(;Y<j;){const q=O.groupIndices[K],$=O.groupIndices.length===K+1?1/0:O.groupIndices[K+1]-q-1;D.push({endIndex:q,size:V,startIndex:q}),D.push({endIndex:q+1+$-1,size:H,startIndex:q+1}),K++,Y+=$+1}const z=Fc(O.sizeTree);return Y!==j&&z.shift(),z.reduce((q,{k:$,v:ue})=>{let ge=q.ranges;return q.prevSize!==0&&(ge=[...q.ranges,{endIndex:$+j-1,size:q.prevSize,startIndex:q.prevIndex}]),{prevIndex:$+j,prevSize:ue,ranges:ge}},{prevIndex:j,prevSize:0,ranges:D}).ranges}return Fc(O.sizeTree).reduce((V,{k:Y,v:K})=>({prevIndex:Y+j,prevSize:K,ranges:[...V.ranges,{endIndex:Y+j-1,size:V.prevSize,startIndex:V.prevIndex}]}),{prevIndex:0,prevSize:H,ranges:[]}).ranges})),n);const L=Yi(ye(l,yt(C,I),Ne(([j,{offsetTree:O},F])=>{const D=-j;return Jp(D,O,F)})));return Ge(ye(l,yt(C,I),Ne(([j,O,F])=>{if(O.groupIndices.length>0){if(on(O.sizeTree))return O;let H=Ud();const V=On(E);let Y=0,K=0,z=0;for(;Y<-j;){z=V[K];const q=V[K+1]-z-1;K++,Y+=q+1}if(H=Fc(O.sizeTree).reduce((q,{k:$,v:ue})=>Vi(q,Math.max(0,$+j),ue),H),Y!==-j){const q=Kp(O.sizeTree,z);H=Vi(H,0,q);const $=Za(O.sizeTree,-j+1)[1];H=Vi(H,1,$)}return{...O,sizeTree:H,...hC(O.offsetTree,0,H,F)}}const D=Fc(O.sizeTree).reduce((H,{k:V,v:Y})=>Vi(H,Math.max(0,V+j),Y),Ud());return{...O,sizeTree:D,...hC(O.offsetTree,0,D,F)}})),C),{beforeUnshiftWith:R,data:S,defaultItemSize:m,firstItemIndex:u,fixedItemSize:h,fixedGroupSize:g,gap:I,groupIndices:d,heightEstimates:y,itemSize:b,listRefresh:_,shiftWith:l,shiftWithOffset:L,sizeRanges:n,sizes:C,statefulTotalCount:i,totalCount:r,trackItemSizes:A,unshiftWith:s}},_n(Vl,Kk),{singleton:!0});function x5e(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{groupIndices:[],totalCount:0})}const xN=Gt(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:i}])=>{const s=_t(),l=_t(),u=Yi(ye(s,Ne(x5e)));return Ge(ye(u,Ne(d=>d.totalCount)),n),Ge(ye(u,Ne(d=>d.groupIndices)),e),Ge(ye(Yn(i,t,r),tt(([d,h])=>e2(h)),Ne(([d,h,m])=>Za(h.groupOffsetTree,Math.max(d-m,0),"v")[0]),En(),Ne(d=>[d])),l),{groupCounts:s,topItemsIndexes:l}},_n(Ls,gi)),ql=Gt(([{log:e}])=>{const t=Te(!1),n=Yi(ye(t,tt(r=>r),En()));return Kt(t,r=>{r&&On(e)("props updated",{},ur.DEBUG)}),{didMount:n,propsReady:t}},_n(Vl),{singleton:!0}),S5e=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function SN(e){const t=typeof e=="number"?{index:e}:{...e};return t.align||(t.align="start"),(!t.behavior||!S5e)&&(t.behavior="auto"),t.offset===void 0&&(t.offset=0),t}const Km=Gt(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:i,fixedHeaderHeight:s,footerHeight:l,headerHeight:u,scrollingInProgress:d,scrollTo:h,smoothScrollTargetReached:m,viewportHeight:g},{log:y}])=>{const b=_t(),S=_t(),I=Te(0);let w=null,C=null,E=null;function A(){w!==null&&(w(),w=null),E!==null&&(E(),E=null),C&&(clearTimeout(C),C=null),ct(d,!1)}return Ge(ye(b,yt(n,g,r,I,u,l,y),yt(e,s,i),Ne(([[_,R,L,j,O,F,D,H],V,Y,K])=>{const z=SN(_),{align:q,behavior:$,offset:ue}=z,ge=j-1,M=bN(z,R,ge);let Z=Jp(M,R.offsetTree,V)+F;q==="end"?(Z+=Y+Za(R.sizeTree,M)[1]-L+K,M===ge&&(Z+=D)):q==="center"?Z+=(Y+Za(R.sizeTree,M)[1]-L+K)/2:Z-=O,ue!==void 0&&ue!==0&&(Z+=ue);const te=B=>{A(),B?(H("retrying to scroll to",{location:_}
1945,ur.DEBUG),ct(b,_)):(ct(S,!0),H("list did not change, scroll successful",{},ur.DEBUG))};if(A(),$==="smooth"){let B=!1;E=Kt(t,N=>{B=B||N}),w=Ka(m,()=>{te(B)})}else w=Ka(ye(t,w5e(150)),te);return C=setTimeout(()=>{A()},1200),ct(d,!0),H("scrolling from index to",{behavior:$,index:M,top:Z},ur.DEBUG),{behavior:$,top:Z}})),h),{scrollTargetReached:S,scrollToIndex:b,topListHeight:I}},_n(Ls,gi,Vl),{singleton:!0});function w5e(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}function Jk(e,t){e===0?t():requestAnimationFrame(()=>{Jk(e-1,t)})}function Zk(e,t){if(e===void 0)return 0;const n=t-1,r=typeof e=="number"?e:e.index==="LAST"?n:e.index;return Math.max(0,Math.min(r,n))}function pC(e){return e===void 0?!0:typeof e=="number"?e===0:e.index===0&&(e.align===void 0||e.align==="start")&&(e.offset===void 0||e.offset===0)}const Xm=Gt(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:i,scrollToIndex:s},{didMount:l}])=>{const u=Te(!0),d=Te(0),h=Te(!0);return Ge(ye(l,yt(d),tt(([m,g])=>!pC(g)),xs(!1)),u),Ge(ye(l,yt(d),tt(([m,g])=>!pC(g)),xs(!1)),h),Kt(ye(Yn(t,l),yt(u,n,e,h),tt(([[,m],g,{sizeTree:y},b,S])=>m&&(!on(y)||Vk(b))&&!g&&!S),yt(d)),([,m])=>{if(m===void 0){ct(u,!0),ct(h,!0);return}Ka(i,()=>{ct(h,!0)}),Jk(4,()=>{Ka(r,()=>{ct(u,!0)}),ct(s,m)})}),{initialItemFinalLocationReached:h,initialTopMostItemIndex:d,scrolledToInitialItem:u}},_n(Ls,gi,Km,ql),{singleton:!0});function wN(e,t){return Math.abs(e-t)<1.01}const Zp="up",gp="down",C5e="none",I5e={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},k5e=0,Jm=Gt(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:i,viewportHeight:s}])=>{const l=Te(!1),u=Te(!0),d=_t(),h=_t(),m=Te(4),g=Te(k5e),y=Jr(ye(cC(ye(et(i),cu(1),xs(!0)),ye(et(i),cu(1),xs(!1),$8(100))),En()),!1),b=Jr(ye(cC(ye(n,xs(!0)),ye(n,xs(!1),$8(200))),En()),!1);Ge(ye(Yn(et(i),et(g)),Ne(([E,A])=>E<=A),En()),u),Ge(ye(u,uo(50)),h);const S=Yi(ye(Yn(r,et(s),et(t),et(e),et(m)),Es((E,[{scrollHeight:A,scrollTop:_},R,L,j,O])=>{const F=_+R-A>-O,D={scrollHeight:A,scrollTop:_,viewportHeight:R};if(F){let V,Y;return _>E.state.scrollTop?(V="SCROLLED_DOWN",Y=E.state.scrollTop-_):(V="SIZE_DECREASED",Y=E.state.scrollTop-_||E.scrollTopDelta),{atBottom:!0,atBottomBecause:V,scrollTopDelta:Y,state:D}}let H;return D.scrollHeight>E.state.scrollHeight?H="SIZE_INCREASED":R<E.state.viewportHeight?H="VIEWPORT_HEIGHT_DECREASING":_<E.state.scrollTop?H="SCROLLING_UPWARDS":H="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:H,state:D}},I5e),En((E,A)=>E!==void 0&&E.atBottom===A.atBottom))),I=Jr(ye(r,Es((E,{scrollHeight:A,scrollTop:_,viewportHeight:R})=>{if(!wN(E.scrollHeight,A)){const L=A-(_+R)<1;return E.scrollTop!==_&&L?{changed:!0,jump:E.scrollTop-_,scrollHeight:A,scrollTop:_}:{changed:!0,jump:0,scrollHeight:A,scrollTop:_}}return{changed:!1,jump:0,scrollHeight:A,scrollTop:_}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),tt(E=>E.changed),Ne(E=>E.jump)),0);Ge(ye(S,Ne(E=>E.atBottom)),l),Ge(ye(l,uo(50)),d);const w=Te(gp);Ge(ye(r,Ne(({scrollTop:E})=>E),En(),Es((E,A)=>On(b)?{direction:E.direction,prevScrollTop:A}:{direction:A<E.prevScrollTop?Zp:gp,prevScrollTop:A},{direction:gp,prevScrollTop:0}),Ne(E=>E.direction)),w),Ge(ye(r,uo(50),xs(C5e)),w);const C=Te(0);return Ge(ye(y,tt(E=>!E),xs(0)),C),Ge(ye(i,uo(100),yt(y),tt(([E,A])=>A),Es(([E,A],[_])=>[A,_],[0,0]),Ne(([E,A])=>A-E)),C),{atBottomState:S,atBottomStateChange:d,atBottomThreshold:m,atTopStateChange:h,atTopThreshold:g,isAtBottom:l,isAtTop:u,isScrolling:y,lastJumpDueToItemResize:I,scrollDirection:w,scrollVelocity:C}},_n(gi)),Qp="top",$p="bottom",i9="none";function a9(e,t,n){return typeof e=="number"?n===Zp&&t===Qp||n===gp&&t===$p?e:0:n===Zp?t===Qp?e.main:e.reverse:t===$p?e.main:e.reverse}function s9(e,t){return typeof e=="number"?e:e[t]??0}const Qk=Gt(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:i}])=>{const s=_t(),l=Te(0),u=Te(0),d=Te(0),h=Jr(ye(Yn(et(r),et(i),et(n),et(s,Xp),et(d),et(l),et(t),et(e),et(u)),Ne(([m,g,y,[b,S],I,w,C,E,A])=>
1945{const _=m-E,R=w+C,L=Math.max(y-_,0);let j=i9;const O=s9(A,Qp),F=s9(A,$p);return b-=E,b+=y+C,S+=y+C,S-=E,b>m+R-O&&(j=Zp),S<m-L+g+F&&(j=gp),j!==i9?[Math.max(_-y-a9(I,Qp,j)-O,0),_-L-C+g+a9(I,$p,j)+F]:null}),tt(m=>m!==null),En(Xp)),[0,0]);return{increaseViewportBy:u,listBoundary:s,overscan:d,topListHeight:l,visibleRange:h}},_n(gi),{singleton:!0});function E5e(e,t,n){if(e2(t)){const r=vN(e,t);return[{index:Za(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n?.[0],index:r,offset:0,size:0}]}return[{data:n?.[0],index:e,offset:0,size:0}]}const ww={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function $y(e,t,n,r,i,s){const{lastIndex:l,lastOffset:u,lastSize:d}=i;let h=0,m=0;if(e.length>0){h=e[0].offset;const I=e[e.length-1];m=I.offset+I.size}const g=n-l,y=u+g*d+(g-1)*r,b=h,S=y-m;return{bottom:m,firstItemIndex:s,items:o9(e,i,s),offsetBottom:S,offsetTop:h,top:b,topItems:o9(t,i,s),topListHeight:t.reduce((I,w)=>w.size+I,0),totalCount:n}}function CN(e,t,n,r,i,s){let l=0;if(n.groupIndices.length>0)for(const b of n.groupIndices){if(b-l>=e)break;l++}const u=e+l,d=s!==void 0,h=s?.length??0,m=Zk(t,d?h:u),g=d?Math.max(0,Math.min(u,h-m)):u,y=Array.from({length:g}).map((b,S)=>({data:s?.[S+m],index:S+m,offset:0,size:0}));return $y(y,[],g,i,n,r)}function o9(e,t,n){if(e.length===0)return[];if(!e2(t))return e.map(h=>({...h,index:h.index+n,originalIndex:h.index}));const r=e[0].index,i=e[e.length-1].index,s=[],l=Wd(t.groupOffsetTree,r,i);let u,d=0;for(const h of e){(!u||u.end<h.index)&&(u=l.shift(),d=t.groupIndices.indexOf(u.start));let m;h.index===u.start?m={index:d,type:"group"}:m={groupIndex:d,index:h.index-(d+1)+n},s.push({...m,data:h.data,offset:h.offset,originalIndex:h.index,size:h.size})}return s}function l9(e,t){return e===void 0?0:typeof e=="number"?e:e[t]??0}const xu=Gt(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:i},s,{listBoundary:l,topListHeight:u,visibleRange:d},{initialTopMostItemIndex:h,scrolledToInitialItem:m},{topListHeight:g},y,{didMount:b},{recalcInProgress:S}])=>{const I=Te([]),w=Te(0),C=_t(),E=Te(0);Ge(s.topItemsIndexes,I);const A=Jr(ye(Yn(b,S,et(d,Xp),et(i),et(r),et(h),m,et(I),et(t),et(n),et(E),e,et(w)),tt(([j,O,,F,,,,,,,,D])=>{const H=D!==void 0&&D.length!==F;return j&&!O&&!H}),Ne(([,,[j,O],F,D,H,V,Y,K,z,q,$,ue])=>{const ge=D,{offsetTree:M,sizeTree:Z}=ge;if(F===0)return{...ww,totalCount:F};if(j===0&&O===0)return ue===0?{...ww,totalCount:F}:CN(ue,H,D,K,z,$);if(on(Z))return ue>0?null:$y(E5e(Zk(H,F),ge,$),[],F,z,ge,K);const te=[];if(Y.length>0){const we=Y[0],je=Y[Y.length-1];let xe=0;for(const Se of Wd(Z,we,je)){const qe=Se.value,Ke=Math.max(Se.start,we),dt=Math.min(Se.end,je);for(let at=Ke;at<=dt;at++)te.push({data:$?.[at],index:at,offset:xe,size:qe}),xe+=qe}}if(!V)return $y([],te,F,z,ge,K);const B=Y.length>0?Y[Y.length-1]+1:0,N=p5e(M,j,O,B);if(N.length===0)return null;const le=F-1,ae=$v([],we=>{for(const je of N){const xe=je.value;let Se=xe.offset,qe=je.start;const Ke=xe.size;if(xe.offset<j){qe+=Math.floor((j-xe.offset+z)/(Ke+z));const at=qe-je.start;Se+=at*Ke+at*z}qe<B&&(Se+=(B-qe)*Ke,qe=B);const dt=Math.min(je.end,le);for(let at=qe;at<=dt&&!(Se>=O);at++)we.push({data:$?.[at],index:at,offset:Se,size:Ke}),Se+=Ke+z}}),de=l9(q,Qp),oe=l9(q,$p);if(ae.length>0&&(de>0||oe>0)){const we=ae[0],je=ae[ae.length-1];if(de>0&&we.index>B){const xe=Math.min(de,we.index-B),Se=[];let qe=we.offset;for(let Ke=we.index-1;Ke>=we.index-xe;Ke--){const dt=Wd(Z,Ke,Ke)[0]?.value??we.size;qe-=dt+z,Se.unshift({data:$?.[Ke],index:Ke,offset:qe,size:dt})}ae.unshift(...Se)}if(oe>0&&je.index<le){const xe=Math.min(oe,le-je.index);let Se=je.offset+je.size+z;for(let qe=je.index+1;qe<=je.index+xe;qe++){const Ke=Wd(Z,qe,qe)[0]?.value??je.size;ae.push({data:$?.[qe],index:qe,offset:Se,size:Ke}),Se+=Ke+z}}}return $y(ae,te,F,z,ge,K)}),tt(j=>j!==null),En()),ww);Ge(ye(e,tt(Vk),Ne(j=>j?.length)),i),Ge(ye(A,Ne(j=>j.topListHeight)),g),Ge(g,u),Ge(ye(A,Ne(j=>[j.top,j.bottom])),l),Ge(ye(A,Ne(j=>j.items)),C);const _=Yi(ye(A,tt(({items:j})=>j.length>0),yt(i,e),tt(([{items:j},O])=>j[j.length-1].originalIndex===O-1),Ne(([,j,O])=>[j-1,O]),En(Xp),Ne(([j])=>j))),R=Yi(ye(A,uo(200),tt(({items:j,topItems:O})=>j.length>0&&j[0].originalIndex===O.length),Ne(({items:j})=>j[0].index),En())),L=Yi(ye(A,tt(({items:j})=>j.length>0),Ne(({items:j})=>{let O=0,F=j.length-1;for(;j[O].type==="group"&&O<F;)O++;for(;j[F].type==="group"&&F>O;)F--;return{endIndex:j[F].index,startIndex:j[O].index}}),En(gN)));return{endReached:_,initialItemCount:w,itemsRendered:C,listState:A,minOverscanItemCount:E,rangeChanged:L,startReached:R,topItemsIndexes:I,...y}},_n(Ls,xN,Qk,Xm,Km,Jm,ql,Kk),{singleton:!0}),IN=Gt(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:i}])=>{const s=_t(),l=Jr(ye(Yn(n,e,r,t,i),Ne(([u,d,h,m,g])=>
vendor: 4,125 bytes, line 1945
1945u+d+h+m+g.offsetBottom+g.bottom)),0);return Ge(et(l),s),{totalListHeight:l,totalListHeightChanged:s}},_n(gi,xu),{singleton:!0}),T5e=Gt(([{viewportHeight:e},{totalListHeight:t}])=>{const n=Te(!1),r=Jr(ye(Yn(n,e,t),tt(([i])=>i),Ne(([,i,s])=>Math.max(0,i-s)),uo(0),En()),0);return{alignToBottom:n,paddingTopAddition:r}},_n(gi,IN),{singleton:!0}),kN=Gt(()=>({context:Te(null)})),A5e=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...i},viewportBottom:s,viewportTop:l})=>t<l?{...i,align:n??"start",...r===void 0?{}:{behavior:r}}:e>s?{...i,align:n??"end",...r===void 0?{}:{behavior:r}}:null,EN=Gt(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,headerHeight:s,scrollingInProgress:l,scrollTop:u,viewportHeight:d},{scrollToIndex:h}])=>{const m=_t();return Ge(ye(m,yt(t,d,n,s,i,r,u),yt(e),Ne(([[g,y,b,S,I,w,C,E],A])=>{const{calculateViewLocation:_=A5e,done:R,...L}=g,j=bN(g,y,S-1),O=Jp(j,y.offsetTree,A)+I+w,F=O+Za(y.sizeTree,j)[1],D=E+w,H=E+b-C,V=_({itemBottom:F,itemTop:O,locationParams:L,viewportBottom:H,viewportTop:D});return V===null?R?.():R&&Ka(ye(l,tt(Y=>!Y),cu(On(l)?1:2)),R),V}),tt(g=>g!==null)),h),{scrollIntoView:m}},_n(Ls,gi,Km,xu,Vl),{singleton:!0});function c9(e){return e===!1?!1:e==="smooth"?"smooth":"auto"}const _5e=(e,t)=>typeof e=="function"?c9(e(t)):t&&c9(e),R5e=Gt(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:i,isAtBottom:s},{scrollToIndex:l},{scrolledToInitialItem:u},{didMount:d,propsReady:h},{log:m},{scrollingInProgress:g},{context:y},{scrollIntoView:b}])=>{const S=Te(!1),I=_t();let w=null;function C(R){ct(l,{align:"end",behavior:R,index:"LAST"})}Kt(ye(Yn(ye(et(t),cu(1)),d),yt(et(S),s,u,g),Ne(([[R,L],j,O,F,D])=>{let H=L&&F,V="auto";return H&&(V=_5e(j,O||D),H=H&&V!==!1),{followOutputBehavior:V,shouldFollow:H,totalCount:R}}),tt(({shouldFollow:R})=>R)),({followOutputBehavior:R,totalCount:L})=>{w!==null&&(w(),w=null),On(n)===void 0?w=Ka(e,()=>{On(m)("following output to ",{totalCount:L},ur.DEBUG),C(R),w=null}):requestAnimationFrame(()=>{On(m)("following output to ",{totalCount:L},ur.DEBUG),C(R)})});function E(R){const L=Ka(i,j=>{R&&!j.atBottom&&j.notAtBottomBecause==="SIZE_INCREASED"&&w===null&&(On(m)("scrolling to bottom due to increased size",{},ur.DEBUG),C("auto"))});setTimeout(L,100)}Kt(ye(Yn(et(S),t,h),tt(([R,,L])=>R!==!1&&L),Es(({value:R},[,L])=>({refreshed:R===L,value:L}),{refreshed:!1,value:0}),tt(({refreshed:R})=>R),yt(S,t)),([,R])=>{On(u)&&E(R!==!1)}),Kt(I,()=>{E(On(S)!==!1)}),Kt(Yn(et(S),i),([R,L])=>{R!==!1&&!L.atBottom&&L.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&C("auto")});const A=Te(null),_=_t();return Ge(cC(ye(et(r),Ne(R=>R?.length??0)),ye(et(t))),_),Kt(ye(Yn(ye(_,cu(1)),d),yt(et(A),u,g,y),Ne(([[R,L],j,O,F,D])=>L&&O&&j?.({context:D,totalCount:R,scrollingInProgress:F})),tt(R=>!!R),uo(0)),R=>{w!==null&&(w(),w=null),On(n)===void 0?w=Ka(e,()=>{On(m)("scrolling into view",{}),ct(b,R),w=null}):requestAnimationFrame(()=>{On(m)("scrolling into view",{}),ct(b,R)})}),{autoscrollToBottom:I,followOutput:S,scrollIntoViewOnChange:A}},_n(Ls,Jm,Km,Xm,ql,Vl,gi,kN,EN)),j5e=Gt(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:i},{initialItemCount:s,listState:l},{didMount:u}])=>(Ge(ye(u,yt(s),tt(([,d])=>d!==0),yt(i,r,t,n,e),Ne(([[,d],h,m,g,y,b])=>CN(d,h,m,g,y,b))),l),{}),_n(Ls,Xm,xu,ql),{singleton:!0}),O5e=Gt(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=Te(0);return Kt(ye(e,yt(r),tt(([,i])=>i!==0),Ne(([,i])=>({top:i}))),i=>{Ka(ye(n,cu(1),tt(s=>s.items.length>1)),()=>{requestAnimationFrame(()=>{ct(t,i)})})}),{initialScrollTop:r}},_n(ql,gi,xu),{singleton:!0}),TN=Gt(([{scrollVelocity:e}])=>{const t=Te(!1),n=_t(),r=Te(!1);return Ge(ye(e,yt(r,t,n),tt(([i,s])=>s!==!1&&s!==void 0),Ne(([i,s,l,u])=>{const{enter:d,exit:h}=s;if(l){if(h(i,u))return!1}else if(d(i,u))return!0;return l}),En()),t),Kt(ye(Yn(t,e,n),yt(r)),([[i,s,l],u])=>{i&&u!==!1&&u!==void 0&&u.change&&u.change(s,l)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},_n(Jm),{singleton:!0}),$k=Gt(([{scrollContainerState:e,scrollTo:t}])=>{const n=_t(),r=_t(),i=_t(),s=Te(!1),l=Te(void 0);
1945return Ge(ye(Yn(n,r),Ne(([{scrollTop:u,viewportHeight:d},{offsetTop:h,listHeight:m}])=>({scrollHeight:m,scrollTop:Math.max(0,u-h),viewportHeight:d}))),e),Ge(ye(t,yt(r),Ne(([u,{offsetTop:d}])=>({...u,top:u.top+d}))),i),{customScrollParent:l,useWindowScroll:s,windowScrollContainerState:n,windowScrollTo:i,windowViewportRect:r}},_n(gi)),L5e=Gt(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:i},{didMount:s},{useWindowScroll:l,windowScrollContainerState:u,windowViewportRect:d}])=>{const h=_t(),m=Te(void 0),g=Te(null),y=Te(null);return Ge(u,g),Ge(d,y),Kt(ye(h,yt(t,r,l,g,y,n)),([b,S,I,w,C,E,A])=>{const _=g5e(S.sizeTree);w&&C!==null&&E!==null&&(I=C.scrollTop-E.offsetTop),I-=A,b({ranges:_,scrollTop:I})}),Ge(ye(m,tt(Vk),Ne(D5e)),i),Ge(ye(s,yt(m),tt(([,b])=>b!==void 0),En(),Ne(([,b])=>b.ranges)),e),{getState:h,restoreStateFrom:m}},_n(Ls,gi,Xm,ql,$k));function D5e(e){return{align:"start",index:0,offset:e.scrollTop}}const M5e=Gt(([{topItemsIndexes:e}])=>{const t=Te(0);return Ge(ye(t,tt(n=>n>=0),Ne(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},_n(xu));function AN(e){let t=!1,n;return(()=>(t||(t=!0,n=e()),n))}const P5e=AN(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),F5e=Gt(([{deviation:e,deviationCommitted:t,scrollBy:n,scrollingInProgress:r,scrollTop:i},{isAtBottom:s,isScrolling:l,lastJumpDueToItemResize:u,scrollDirection:d},{listState:h},{beforeUnshiftWith:m,gap:g,shiftWithOffset:y,sizes:b},{log:S},{recalcInProgress:I}])=>{const w=Yi(ye(h,yt(u),Es(([,_,R,L],[{bottom:j,items:O,offsetBottom:F,totalCount:D},H])=>{const V=j+F;let Y=0;return R===D&&_.length>0&&O.length>0&&(O[0].originalIndex===0&&_[0].originalIndex===0||(Y=V-L,Y!==0&&(Y+=H))),[Y,O,D,V]},[0,[],0,0]),tt(([_])=>_!==0),yt(i,d,r,s,S,I),tt(([,_,R,L,,,j])=>
1945!j&&!L&&_!==0&&R===Zp),Ne(([[_],,,,,R])=>(R("Upward scrolling compensation",{amount:_},ur.DEBUG),_))));function C(_){_>0?(ct(n,{behavior:"auto",top:-_}),ct(e,0)):(ct(e,0),ct(n,{behavior:"auto",top:-_}))}Kt(ye(w,yt(e,l)),([_,R,L])=>{L&&P5e()?ct(e,R-_):C(-_)}),Kt(ye(Yn(Jr(l,!1),e,I),tt(([_,R,L])=>!_&&!L&&R!==0),Ne(([_,R])=>R),uo(1)),C),Ge(ye(y,Ne(_=>({top:-_}))),n);let E=null;function A(){if(E===null)return;const{offset:_}=E;E=null,ct(n,{top:_}),requestAnimationFrame(()=>{ct(e,0),ct(I,!1)})}return Kt(t,_=>{E===null||!E.acknowledgeable||_===E.offset&&A()}),Kt(ye(m,yt(b,g),Ne(([_,{groupIndices:R,lastSize:L,sizeTree:j},O])=>{function F(K){return K*(L+O)}if(R.length===0)return F(_);let D=0;const H=Kp(j,0);let V=0,Y=0;for(;V<_;){V++,D+=H;let K=R.length===Y+1?1/0:R[Y+1]-R[Y]-1;V+K>_&&(D-=H,K=_-V+1),V+=K,D+=F(K),Y++}return D})),_=>{E={acknowledgeable:On(e)!==_,offset:_},ct(e,_),requestAnimationFrame(A)}),{deviation:e}},_n(gi,Jm,xu,Ls,Vl,Kk)),B5e=Gt(([e,t,n,r,i,s,l,u,d,h,m])=>({...e,...t,...n,...r,...i,...s,...l,...u,...d,...h,...m}),_n(Qk,j5e,ql,TN,IN,O5e,T5e,$k,EN,Vl,kN)),_N=Gt(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:i,gap:s,groupIndices:l,heightEstimates:u,itemSize:d,sizeRanges:h,sizes:m,statefulTotalCount:g,totalCount:y,trackItemSizes:b},{initialItemFinalLocationReached:S,initialTopMostItemIndex:I,scrolledToInitialItem:w},C,E,A,_,{scrollToIndex:R},L,{topItemCount:j},{groupCounts:O},F])=>{const{listState:D,minOverscanItemCount:H,topItemsIndexes:V,rangeChanged:Y,...K}=_;return Ge(Y,F.scrollSeekRangeChanged),Ge(ye(Yn(F.windowViewportRect,C.headerHeight,C.fixedHeaderHeight),Ne(([z,q,$])=>Math.max(q+$+1,z.visibleHeight))),C.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:i,gap:s,groupCounts:O,heightEstimates:u,initialItemFinalLocationReached:S,initialTopMostItemIndex:I,scrolledToInitialItem:w,sizeRanges:h,topItemCount:j,topItemsIndexes:V,totalCount:y,...A,groupIndices:l,itemSize:d,listState:D,minOverscanItemCount:H,scrollToIndex:R,statefulTotalCount:g,trackItemSizes:b,rangeChanged:Y,...K,...F,...C,sizes:m,...E}},_n(Ls,Xm,gi,L5e,R5e,xu,Km,F5e,M5e,xN,B5e));function N5e(e,t){const n={},r={};let i=0;const s=e.length;for(;i<s;)r[e[i]]=1,i+=1;for(const l in t)Object.hasOwn(r,l)||(n[l]=t[l]);return n}const dy=typeof document>"u"?G.useEffect:G.useLayoutEffect;function RN(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),l=Object.keys(t.events||{}),u=G.createContext({});function d(w,C){w.propsReady!==void 0&&ct(w.propsReady,!1);for(const E of r){const A=w[t.required[E]];ct(A,C[E])}for(const E of i)if(E in C){const A=w[t.optional[E]];ct(A,C[E])}w.propsReady!==void 0&&ct(w.propsReady,!0)}function h(w){return s.reduce((C,E)=>(C[E]=A=>{const _=w[t.methods[E]];ct(_,A)},C),{})}function m(w){return l.reduce((C,E)=>(C[E]=$we(w[t.events[E]]),C),{})}const g=G.forwardRef(function(w,C){const{children:E,...A}=w,[_]=G.useState(()=>$v(n5e(e),j=>{d(j,A)})),[R]=G.useState(Q8(m,_));dy(()=>{for(const j of l)j in A&&Kt(R[j],A[j]);return()=>{Object.values(R).map(qk)}},[A,R,_]),dy(()=>{d(_,A)}),G.useImperativeHandle(C,Z8(h(_)));const L=n;return c.jsx(u.Provider,{value:_,children:n===void 0?E:c.jsx(L,{...N5e([...r,...i,...l],A),children:E})})}),y=w=>{const C=G.useContext(u);return G.useCallback(E=>{ct(C[w],E)},[C,w])},b=w=>{const C=G.useContext(u)[w],E=G.useCallback(A=>Kt(C,A),[C]);return G.useSyncExternalStore(E,()=>On(C),()=>On(C))},S=w=>{const C=G.useContext(u)[w],[E,A]=G.useState(Q8(On,C));return dy(()=>Kt(C,_=>{_!==E&&A(Z8(_))}),[C,E]),E},I=parseInt(G.version,10)>=18?b:S;return{Component:g,useEmitter:(w,C)=>{const E=G.useContext(u)[w];dy(()=>Kt(E,C),[C,E])},useEmitterValue:I,usePublisher:y}}const jN=G.createContext(void 0),ON=G.createContext(void 0),Cw="-webkit-sticky",u9="sticky",eE=AN(()=>{if(typeof document>"u")return u9;const e=document.createElement("div");return e.style.position=Cw,e.style.position===Cw?Cw:u9});function Iw(e){return"self"in e}function z5e(e){return"body"in e}function LN(e,t,n,r=Lf,i,s){const l=G.useRef(null),u=G.useRef(null),d=G.useRef(null),h=G.useCallback(g=>{let y,b,S;const I=g.target;if(z5e(I)||Iw(I)){const C=Iw(I)?I:I.defaultView;S=s===!0?Pc(C,C.scrollX):C.scrollY,y=s===!0?C.document.documentElement.scrollWidth:C.document.documentElement.scrollHeight,b=s===!0?C.innerWidth:C.innerHeight}else S=s===!0?Pc(I,I.scrollLeft):I.scrollTop,y=s===!0?I.scrollWidth:I.scrollHeight,b=s===!0?I.offsetWidth:I.offsetHeight;const w=()=>
1945{e({scrollHeight:y,scrollTop:Math.max(S,0),viewportHeight:b})};g.suppressFlushSync===!0?w():Pj.flushSync(w),u.current!==null&&(S===u.current||S<=0||S===y-b)&&(u.current=null,t(!0),d.current&&(clearTimeout(d.current),d.current=null))},[e,t,s]);G.useEffect(()=>{const g=i??l.current;return r(i??l.current),h({suppressFlushSync:!0,target:g}),g.addEventListener("scroll",h,{passive:!0}),()=>{r(null),g.removeEventListener("scroll",h)}},[l,h,n,r,i]);function m(g){const y=l.current;if(!y||(s===!0?"offsetWidth"in y&&y.offsetWidth===0:"offsetHeight"in y&&y.offsetHeight===0))return;const b=g.behavior==="smooth";let S,I,w;Iw(y)?(I=Math.max(Ll(y.document.documentElement,s===!0?"width":"height"),s===!0?y.document.documentElement.scrollWidth:y.document.documentElement.scrollHeight),S=s===!0?y.innerWidth:y.innerHeight,w=s===!0?Pc(y,y.scrollX):y.scrollY):(I=y[s===!0?"scrollWidth":"scrollHeight"],S=Ll(y,s===!0?"width":"height"),w=s===!0?Pc(y,y.scrollLeft):y.scrollTop);const C=I-S;if(g.top===void 0){y.scrollTo(g);return}const E=Math.ceil(Math.max(Math.min(C,g.top),0));if(g.top=E,wN(S,I)||E===w){e({scrollHeight:I,scrollTop:w,viewportHeight:S}),b&&t(!0);return}b?(u.current=E,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{d.current=null,u.current=null,t(!0)},1e3)):u.current=null,s===!0&&(g={...g.behavior===void 0?{}:{behavior:g.behavior},left:e9(y,E)}),y.scrollTo(g)}return{scrollByCallback:G.useCallback(g=>{s===!0&&(g={...g.behavior===void 0?{}:{behavior:g.behavior},...g.top===void 0?{}:{left:e9(l.current,g.top)}}),l.current.scrollBy(g)},[s]),scrollerRef:l,scrollToCallback:m}}function tE(e){return e}const H5e=Gt(()=>{const e=Te(u=>`Item ${u}`),t=Te(u=>`Group ${u}`),n=Te({}),r=Te(tE),i=Te("div"),s=Te(Lf),l=(u,d=null)=>Jr(ye(n,Ne(h=>h[u]),En()),d);return{components:n,computeItemKey:r,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:t,HeaderComponent:l("Header"),HeaderFooterTag:i,ItemComponent:l("Item","div"),itemContent:e,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}}),U5e=Gt(([e,t])=>({...e,...t}),_n(_N,H5e)),W5e=({height:e})=>c.jsx("div",{style:{height:e}}),V5e={overflowAnchor:"none",position:eE(),zIndex:1},DN={overflowAnchor:"none"},q5e={...DN,display:"inline-block",height:"100%"},d9=G.memo(function({showTopList:e=!1}){const t=it("listState"),n=qi("sizeRanges"),r=it("useWindowScroll"),i=it("customScrollParent"),s=qi("windowScrollContainerState"),l=qi("scrollContainerState"),u=i||r?s:l,d=it("itemContent"),h=it("context"),m=it("groupContent"),g=it("trackItemSizes"),y=it("itemSize"),b=it("log"),S=qi("gap"),I=it("horizontalDirection"),{callbackRef:w}=s5e(n,y,g,e?Lf:u,b,S,i,I,it("skipAnimationFrameInResizeObserver")),[C,E]=G.useState(0);rE("deviation",z=>{C!==z&&E(z)});const A=qi("deviationCommitted");Yk(()=>{A(C)},[C,A]);const _=it("EmptyPlaceholder"),R=it("ScrollSeekPlaceholder")??W5e,L=it("ListComponent"),j=it("ItemComponent"),O=it("GroupComponent"),F=it("computeItemKey"),D=it("isSeeking"),H=it("groupIndices").length>0,V=it("alignToBottom"),Y=it("initialItemFinalLocationReached"),K=e?{}:{boxSizing:"border-box",...I?{display:"inline-block",height:"100%",marginInlineStart:C===0?V?"auto":0:C,paddingInlineEnd:t.offsetBottom,paddingInlineStart:t.offsetTop,whiteSpace:"nowrap"}:{marginTop:C===0?V?"auto":0:C,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...Y?{}:{visibility:"hidden"}};return!e&&t.totalCount===0&&_!==null&&_!==void 0?c.jsx(_,{...Yr(_,h)}):c.jsx(L,{...Yr(L,h),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:w,style:K,children:(e?t.topItems:t.items).map(z=>{const q=z.originalIndex,$=F(q+t.firstItemIndex,z.data,h);return D?k.createElement(R,{...Yr(R,h),height:z.size,index:z.index,key:$,type:z.type||"item",...z.type==="group"?{}:{groupIndex:z.groupIndex}}):z.type==="group"?k.createElement(O,{...Yr(O,h),"data-index":q,"data-item-index":z.index,"data-known-size":z.size,key:$,style:V5e},m(z.index,h)):k.createElement(j,{...Yr(j,h),...X5e(j,z.data),"data-index":q,"data-item-group-index":z.groupIndex,"data-item-index":z.index,"data-known-size":z.size,key:$,style:I?q5e:DN},H?d(z.index,z.groupIndex,z.data,h):d(z.index,z.data,h))})})}),G5e={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Y5e={outline:"none",overflowX:"auto",position:"relative"},nE=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),MN=(e,t,n=0)=>({...nE(e),position:t?"relative":"absolute",top:t?-n:0}),K5e={position:eE(),top:0,width:"100%",zIndex:1};function Yr(e,t){if(typeof e!="string")return{context:t}}function X5e(e,t){return{item:typeof e=="string"?void 0:t}}const J5e=G.memo(function(){const e=it("HeaderComponent"),t=qi("headerHeight"),n=it("HeaderFooterTag"),r=bu(G.useMemo(()=>s=>{t(Ll(s,"height"))},[t]),!0,it("skipAnimationFrameInResizeObserver")),i=it("context");return e!=null?c.jsx(n,{ref:r,children:c.jsx(e,{...Yr(e,i)})}):null}),Z5e=G.memo(function(){const e=it("FooterComponent"),t=qi("footerHeight"),n=it("HeaderFooterTag"),r=bu(G.useMemo(()=>s=>{t(Ll(s,"height"))},[t]),!0,it("skipAnimationFrameInResizeObserver")),i=it("context");return e!=null?c.jsx(n,{ref:r,children:c.jsx(e,{...Yr(e,i)})}):null});function PN({useEmitter:e,useEmitterValue:t,usePublisher:n}){return G.memo(function({children:r,style:i,context:s,...l}){const u=n("scrollContainerState"),d=t("ScrollerComponent"),h=n("smoothScrollTargetReached"),m=t("scrollerRef"),g=t("horizontalDirection")||!1,{scrollByCallback:y,scrollerRef:b,scrollToCallback:S}=LN(u,h,d,m,void 0,g);return e("scrollTo",S),e("scrollBy",y),c.jsx(d,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:b,style:{...g?Y5e:G5e,...i},tabIndex:0,...l,...Yr(d,s),children:r})})}function FN({useEmitter:e,useEmitterValue:t,usePublisher:n}){return G.memo(function({children:r,style:i,context:s,...l}){const u=n("windowScrollContainerState"),d=t("ScrollerComponent"),h=n("smoothScrollTargetReached"),m=t("totalListHeight"),g=t("deviation"),y=t("customScrollParent"),b=G.useRef(null),S=t("scrollerRef"),{scrollByCallback:I,scrollerRef:w,scrollToCallback:C}=LN(u,h,d,S,y);return Yk(()=>(w.current=y??b.current?.ownerDocument.defaultView,()=>{w.current=null}),[w,y]),e("windowScrollTo",C),e("scrollBy",I),c.jsx(d,{ref:b,"data-virtuoso-scroller":!0,style:{position:"relative",...i,...m===0?void 0:{height:m+g}},...l,...Yr(d,s),children:r})})}const Q5e=({children:e})=>
1945{const t=G.useContext(jN),n=qi("viewportHeight"),r=qi("fixedItemHeight"),i=it("alignToBottom"),s=it("horizontalDirection"),l=G.useMemo(()=>oN(n,d=>Ll(d,s?"width":"height")),[n,s]),u=bu(l,!0,it("skipAnimationFrameInResizeObserver"));return G.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),c.jsx("div",{"data-viewport-type":"element",ref:u,style:nE(i),children:e})},$5e=({children:e})=>{const t=G.useContext(jN),n=qi("windowViewportRect"),r=qi("fixedItemHeight"),i=it("customScrollParent"),s=it("useWindowScroll"),l=it("topListHeight"),u=uN(n,i,it("skipAnimationFrameInResizeObserver")),d=it("alignToBottom");return G.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),c.jsx("div",{"data-viewport-type":"window",ref:u,style:MN(d,s,l),children:e})},eCe=({children:e})=>{const t=it("TopItemListComponent")??"div",n=it("headerHeight"),r={...K5e,marginTop:`${n}px`},i=it("context");return c.jsx(t,{style:r,...Yr(t,i),children:e})},tCe=G.memo(function(e){const t=it("useWindowScroll"),n=it("topItemsIndexes").length>0,r=it("customScrollParent"),i=it("context");return c.jsxs(r||t?iCe:rCe,{...e,context:i,children:[n&&c.jsx(eCe,{children:c.jsx(d9,{showTopList:!0})}),c.jsxs(r||t?$5e:Q5e,{children:[c.jsx(J5e,{}),c.jsx(d9,{}),c.jsx(Z5e,{})]})]})}),{Component:nCe,useEmitter:rE,useEmitterValue:it,usePublisher:qi}=RN(U5e,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},tCe),rCe=PN({useEmitter:rE,useEmitterValue:it,usePublisher:qi}),iCe=FN({useEmitter:rE,useEmitterValue:it,usePublisher:qi}),aCe=nCe,sCe=Gt(()=>{const e=Te(h=>c.jsxs("td",{children:["Item $",h]})),t=Te(null),n=Te(h=>c.jsxs("td",{colSpan:1e3,children:["Group ",h]})),r=Te(null),i=Te(null),s=Te({}),l=Te(tE),u=Te(Lf),d=(h,m=null)=>Jr(ye(s,Ne(g=>g[h]),En()),m);return{components:s,computeItemKey:l,context:t,EmptyPlaceholder:d("EmptyPlaceholder"),FillerRow:d("FillerRow"),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:d("Scroller","div"),scrollerRef:u,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder"),TableBodyComponent:d("TableBody","tbody"),TableComponent:d("Table","table"),TableFooterComponent:d("TableFoot","tfoot"),TableHeadComponent:d("TableHead","thead"),TableRowComponent:d("TableRow","tr"),GroupComponent:d("Group","tr")}});_n(_N,sCe);eE();const f9={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},oCe={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:h9,floor:z1,max:yp,min:kw,round:p9}=Math;function m9(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>({data:n===null?null:n[i+e],index:i+e}))}function lCe(e){return{...oCe,items:e}}function fy(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function cCe(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}const uCe=Gt(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r}
1945,{footerHeight:i,headerHeight:s,scrollBy:l,scrollContainerState:u,scrollTo:d,scrollTop:h,smoothScrollTargetReached:m,viewportHeight:g},y,b,{didMount:S,propsReady:I},{customScrollParent:w,useWindowScroll:C,windowScrollContainerState:E,windowScrollTo:A,windowViewportRect:_},R])=>{const L=Te(0),j=Te(0),O=Te(f9),F=Te({height:0,width:0}),D=Te({height:0,width:0}),H=_t(),V=_t(),Y=Te(0),K=Te(null),z=Te({column:0,row:0}),q=_t(),$=_t(),ue=Te(!1),ge=Te(0),M=Te(!0),Z=Te(!1),te=Te(!1);Kt(ye(S,yt(ge),tt(([oe,we])=>!pC(we))),()=>{ct(M,!1)}),Kt(ye(Yn(S,M,D,F,ge,Z),tt(([oe,we,je,xe,,Se])=>oe&&!we&&je.height!==0&&xe.height!==0&&!Se)),([,,,,oe])=>{if(oe===void 0){ct(M,!0);return}ct(Z,!0),Jk(1,()=>{ct(H,oe)}),Ka(ye(h),()=>{ct(t,[0,0]),ct(M,!0)})}),Ge(ye($,tt(oe=>oe!=null&&oe.scrollTop>0),xs(0)),j),Kt(ye(S,yt($),tt(([,oe])=>oe!=null)),([,oe])=>{oe&&(ct(F,oe.viewport),ct(D,oe.item),ct(z,oe.gap),oe.scrollTop>0&&(ct(ue,!0),Ka(ye(h,cu(1)),we=>{ct(ue,!1)}),ct(d,{top:oe.scrollTop})))}),Ge(ye(F,Ne(({height:oe})=>oe)),g),Ge(ye(Yn(et(F,fy),et(D,fy),et(z,(oe,we)=>oe!==void 0&&oe.column===we.column&&oe.row===we.row),et(h)),Ne(([oe,we,je,xe])=>({gap:je,item:we,scrollTop:xe,viewport:oe}))),q),Ge(ye(Yn(et(L),r,et(z,cCe),et(D,fy),et(F,fy),et(K),et(j),et(ue),et(M),et(ge)),tt(([,,,,,,,oe])=>!oe),Ne(([oe,[we,je],xe,Se,qe,Ke,dt,,at,nt])=>{const{column:Ae,row:ot}=xe,{height:en,width:ln}=Se,{width:pr}=qe;if(dt===0&&(oe===0||pr===0))return f9;if(ln===0){const Rn=Zk(nt,oe),ri=Rn+Math.max(dt-1,0);return lCe(m9(Rn,ri,Ke))}const Xn=BN(pr,ln,Ae);let Cn,Tr;at?we===0&&je===0&&dt>0?(Cn=0,Tr=dt-1):(Cn=Xn*z1((we+ot)/(en+ot)),Tr=Xn*h9((je+ot)/(en+ot))-1,Tr=kw(oe-1,yp(Tr,Xn-1)),Cn=kw(Tr,yp(0,Cn))):(Cn=0,Tr=-1);const fe=m9(Cn,Tr,Ke),{bottom:Ce,top:Xe}=g9(qe,xe,Se,fe),Je=h9(oe/Xn),wt=Je*en+(Je-1)*ot-Ce;return{bottom:Ce,itemHeight:en,items:fe,itemWidth:ln,offsetBottom:wt,offsetTop:Xe,top:Xe}})),O),Ge(ye(K,tt(oe=>oe!==null),Ne(oe=>oe.length)),L),Ge(ye(Yn(F,D,O,z),tt(([oe,we,{items:je}])=>je.length>0&&we.height!==0&&oe.height!==0),Ne(([oe,we,{items:je},xe])=>{const{bottom:Se,top:qe}=g9(oe,xe,we,je);return[qe,Se]}),En(Xp)),t);const B=Te(!1);Ge(ye(h,yt(B),Ne(([oe,we])=>we||oe!==0)),B);const N=Yi(ye(Yn(O,L),tt(([{items:oe}])=>oe.length>0),yt(B),tt(([[oe,we],je])=>{const xe=oe.items[oe.items.length-1].index===we-1;return(je||oe.bottom>0&&oe.itemHeight>0&&oe.offsetBottom===0&&oe.items.length===we)&&xe}),Ne(([[,oe]])=>oe-1),En())),le=Yi(ye(et(O),tt(({items:oe})=>oe.length>0&&oe[0].index===0),xs(0),En())),ae=Yi(ye(et(O),yt(ue),tt(([{items:oe},we])=>oe.length>0&&!we),Ne(([{items:oe}])=>({endIndex:oe[oe.length-1].index,startIndex:oe[0].index})),En(gN),uo(0)));Ge(ae,b.scrollSeekRangeChanged),Ge(ye(H,yt(F,D,L,z),Ne(([oe,we,je,xe,Se])=>{const qe=SN(oe),{align:Ke,behavior:dt,offset:at}=qe;let nt=qe.index;nt==="LAST"&&(nt=xe-1),nt=yp(0,nt,kw(xe-1,nt));let Ae=mC(we,Se,je,nt);return Ke==="end"?Ae=p9(Ae-we.height+je.height):Ke==="center"&&(Ae=p9(Ae-we.height/2+je.height/2)),at!==void 0&&at!==0&&(Ae+=at),{behavior:dt,top:Ae}})),d);const de=Jr(ye(O,Ne(oe=>oe.offsetBottom+oe.bottom)),0);return Ge(ye(_,Ne(oe=>({height:oe.visibleHeight,width:oe.visibleWidth}))),F),{customScrollParent:w,data:K,deviation:Y,footerHeight:i,gap:z,headerHeight:s,increaseViewportBy:e,initialItemCount:j,itemDimensions:D,overscan:n,restoreStateFrom:$,scrollBy:l,scrollContainerState:u,scrollHeight:V,scrollTo:d,scrollToIndex:H,scrollTop:h,smoothScrollTargetReached:m,totalCount:L,useWindowScroll:C,viewportDimensions:F,windowScrollContainerState:E,windowScrollTo:A,windowViewportRect:_,...b,gridState:O,horizontalDirection:te,initialTopMostItemIndex:ge,totalListHeight:de,...y,endReached:N,propsReady:I,rangeChanged:ae,startReached:le,stateChanged:q,stateRestoreInProgress:ue,...R}},_n(Qk,gi,Jm,TN,ql,$k,Vl));function BN(e,t,n){return yp(1,z1((e+n)/(z1(t)+n)))}function g9(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{bottom:0,top:0};const s=mC(e,t,n,r[0].index);return{bottom:mC(e,t,n,r[r.length-1].index)+i,top:s}}function mC(e,t,n,r){const i=BN(e.width,n.width,t.column),s=z1(r/i),l=s*n.height+yp(0,s-1)*t.row;return l>0?l+t.row:l}const dCe=Gt(()=>{const e=Te(g=>`Item ${g}`),t=Te({}
1945),n=Te(null),r=Te("virtuoso-grid-item"),i=Te("virtuoso-grid-list"),s=Te(tE),l=Te("div"),u=Te(Lf),d=(g,y=null)=>Jr(ye(t,Ne(b=>b[g]),En()),y),h=Te(!1),m=Te(!1);return Ge(et(m),h),{components:t,computeItemKey:s,context:n,FooterComponent:d("Footer"),HeaderComponent:d("Header"),headerFooterTag:l,itemClassName:r,ItemComponent:d("Item","div"),itemContent:e,listClassName:i,ListComponent:d("List","div"),readyStateChanged:h,reportReadyState:m,ScrollerComponent:d("Scroller","div"),scrollerRef:u,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder","div")}}),fCe=Gt(([e,t])=>({...e,...t}),_n(uCe,dCe)),hCe=G.memo(function(){const e=In("gridState"),t=In("listClassName"),n=In("itemClassName"),r=In("itemContent"),i=In("computeItemKey"),s=In("isSeeking"),l=xa("scrollHeight"),u=In("ItemComponent"),d=In("ListComponent"),h=In("ScrollSeekPlaceholder"),m=In("context"),g=xa("itemDimensions"),y=xa("gap"),b=In("log"),S=In("stateRestoreInProgress"),I=xa("reportReadyState"),w=bu(G.useMemo(()=>C=>{const E=C.parentElement.parentElement.scrollHeight;l(E);const A=C.firstChild;if(A!==null){const{height:_,width:R}=A.getBoundingClientRect();g({height:_,width:R})}y({column:y9("column-gap",getComputedStyle(C).columnGap,b),row:y9("row-gap",getComputedStyle(C).rowGap,b)})},[l,g,y,b]),!0,!1);return Yk(()=>{e.itemHeight>0&&e.itemWidth>0&&I(!0)},[e]),S?null:c.jsx(d,{className:t,ref:w,...Yr(d,m),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(C=>{const E=i(C.index,C.data,m);return s?c.jsx(h,{...Yr(h,m),height:e.itemHeight,index:C.index,width:e.itemWidth},E):k.createElement(u,{...Yr(u,m),className:n,"data-index":C.index,key:E},r(C.index,C.data,m))})})}),pCe=G.memo(function(){const e=In("HeaderComponent"),t=xa("headerHeight"),n=In("headerFooterTag"),r=bu(G.useMemo(()=>s=>{t(Ll(s,"height"))},[t]),!0,!1),i=In("context");return e!=null?c.jsx(n,{ref:r,children:c.jsx(e,{...Yr(e,i)})}):null}),mCe=G.memo(function(){const e=In("FooterComponent"),t=xa("footerHeight"),n=In("headerFooterTag"),r=bu(G.useMemo(()=>s=>{t(Ll(s,"height"))},[t]),!0,!1),i=In("context");return e!=null?c.jsx(n,{ref:r,children:c.jsx(e,{...Yr(e,i)})}):null}),gCe=({children:e})=>{const t=G.useContext(ON),n=xa("itemDimensions"),r=xa("viewportDimensions"),i=bu(G.useMemo(()=>s=>{r(s.getBoundingClientRect())},[r]),!0,!1);return G.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),c.jsx("div",{ref:i,style:nE(!1),children:e})},yCe=({children:e})=>{const t=G.useContext(ON),n=xa("windowViewportRect"),r=xa("itemDimensions"),i=In("customScrollParent"),s=In("useWindowScroll"),l=uN(n,i,!1);return G.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),c.jsx("div",{ref:l,style:MN(!1,s),children:e})},vCe=G.memo(function({...e}){const t=In("useWindowScroll"),n=In("customScrollParent"),r=n||t?xCe:bCe,i=n||t?yCe:gCe,s=In("context");return c.jsx(r,{...e,...Yr(r,s),children:c.jsxs(i,{children:[c.jsx(pCe,{}),c.jsx(hCe,{}),c.jsx(mCe,{})]})})}),{useEmitter:NN,useEmitterValue:In,usePublisher:xa}=RN(fCe,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},vCe),bCe=PN({useEmitter:NN,useEmitterValue:In,usePublisher:xa}),xCe=FN({useEmitter:NN,useEmitterValue:In,usePublisher:xa});function y9(e,t,n){return t!=="normal"&&t?.endsWith("px")!==!0&&n(`${e} was not resolved to pixel value correctly`,t,ur.WARN),t==="normal"?0:parseInt(t??"0",10)}const t2=()=>{const t=[...U(i=>i.messages)].reverse().find(i=>i.role==="ASSISTANT"&&i.type==="status_update"),n=t?.text.toLowerCase()||"";return!!(t&&(n.startsWith("searching for products")||n.startsWith("finding the best options")))};function n2(e,t,n){return n?!1:e||t}const SCe=e=>({container:{display:"flex",flexDirection:"column",justifyContent:"center",gap:"0",width:"100%",minHeight:"var(--header-height, 4rem)",padding:"0 var(--spacing-medium, 1rem)",boxSizing:"border-box",flexShrink:0,zIndex:10,backgroundColor:e.background},titleRow:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",position:"relative",width:"100%",minHeight:"2rem",gap:"var(--spacing-small, 0.75rem)"},sideSlot:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 0",minWidth:0,gap:"var(--spacing-2x-small, 0.5rem)"},leftSlot:{justifyContent:"flex-start"},rightSlot:{justifyContent:"flex-end"},titleOverlay:{position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",padding:"0 6.75rem",pointerEvents:"none",minWidth:0,overflow:"hidden"},statusText:{color:e.text,fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--size-x-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-x-small, 1.125rem)",letterSpacing:"-0.00875rem",margin:0,padding:0,textAlign:"center",minWidth:0,width:"100%",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}),gC=({title:e,rerankStatus:t})=>{const{colors:n}=ze(),r=Fe(y=>y.currentSearchRequestJson),i=Fe(y=>y.currentComponentId),s=t2(),l=U(y=>y.assistantInProgress),u=Fe(y=>y.hasCarouselBeenUpdatedOnceForTurn),d=n2(s,l,u),h=i?.includes("recently-interacted-carousel"),m=SCe(n),g=!d&&!!r&&!1;return c.jsx("div",{style:m.container,"data-testid":"mobile-carou
1945sel-header",children:c.jsxs("div",{style:m.titleRow,children:[c.jsxs("div",{style:{...m.sideSlot,...m.leftSlot},children:[c.jsx(Hl,{onClose:lf}),g,g]}),c.jsx("div",{style:m.titleOverlay,"data-testid":"mobile-carousel-header-title",children:c.jsx("span",{style:m.statusText,children:d?"Searching for products...":e||""})}),c.jsx("div",{style:{...m.sideSlot,...m.rightSlot},children:!h&&c.jsx(Kv,{})})]})})},wCe=400,CCe=120,Oc={root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"inherit"},scroller:{flex:1,overflow:"auto",width:"100%",scrollbarWidth:"none",msOverflowStyle:"none",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},columns:{display:"flex",flexDirection:"row",gap:"var(--spacing-2x-small, 0.5rem)",width:"100%",alignItems:"flex-start",padding:"0 var(--spacing-medium, 1rem)",boxSizing:"border-box"},column:{flex:"1 1 0",minWidth:0,maxWidth:"calc((100% - var(--spacing-2x-small, 0.5rem)) / 2)"},cardWrapper:{paddingBottom:"var(--spacing-2x-small, 0.5rem)"},hideScrollbarCss:` 1946 .mobile-carousel-scroller::-webkit-scrollbar {
1947 display: none; 1948 } 1949 `},yC=k.memo(({cards:e,scrollParent:t,chatId:n,messageId:r,componentId:i,maskStaleCards:s,initialTopMostItemIndex:l})=>{const u=Math.max(0,Math.min(l,Math.max(e.length-1,0)));return c.jsx(aCe,{customScrollParent:t,data:e,overscan:CCe,defaultItemHeight:wCe,initialTopMostItemIndex:{index:u,align:"start"},itemContent:(d,h)=>c.jsx("div",{style:Oc.cardWrapper,children:s||h.isSkeleton?c.jsx(su,{previewMode:!1,enableSelection:!1}):c.jsx(qm,{parsedListingData:h,enableSelection:!0})},`${n}-${r}-${i}-${h.listingId}`)})});yC.displayName="OverlayVirtuosoColumn";const ICe=e=>c.jsx(kCe,{...e},_v(e.messageId,e.componentId)),kCe=({listingCards:e,messageId:t,componentId:n,chatId:r,title:i})=>{const{colors:s}=ze(),[l,u]=k.useState(null),[d]=k.useState(()=>{const C=Fe.getState().previewVisibleListingId;if(!C)return 0;const E=e.findIndex(A=>A.listingId===C);return E<0?0:Math.floor(E/2)}),h=t2(),m=Fe(C=>C.carouselStartedThisTurn),g=Fe(C=>C.hasCarouselBeenUpdatedOnceForTurn),y=n2(h,m,g),b=U(C=>C.messages),S=k.useMemo(()=>b.find(E=>E.role==="ASSISTANT"&&E.type==="carousel"&&E.messageId===t&&E.componentId===n)?.rerankStatus,[b,t,n]),{leftCards:I,rightCards:w}=k.useMemo(()=>{const C=[],E=[];return e.forEach((A,_)=>{_%2===0?C.push(A):E.push(A)}),{leftCards:C,rightCards:E}},[e]);return c.jsxs("div",{style:{...Oc.root,backgroundColor:s.background},"data-testid":"mobile-carousel-overlay",children:[c.jsx("style",{children:Oc.hideScrollbarCss}),c.jsx(gC,{title:i,rerankStatus:S}),c.jsx("div",{ref:u,className:"mobile-carousel-scroller","data-testid":"mobile-carousel-scroller",style:Oc.scroller,children:l?c.jsxs("div",{style:Oc.columns,"data-testid":"mobile-carousel-grid",children:[c.jsx("div",{style:Oc.column,children:c.jsx(yC,{cards:I,scrollParent:l,chatId:r,messageId:t,componentId:n,maskStaleCards:y,initialTopMostItemIndex:d})}),c.jsx("div",{style:Oc.column,children:c.jsx(yC,{cards:w,scrollParent:l,chatId:r,messageId:t,componentId:n,maskStaleCards:y,initialTopMostItemIndex:d})})]}):null})]})},ECe=k.memo(ICe);function TCe(e){return typeof e=="object"?e.key:e}function ACe(e,t){const n=e.length;return new Proxy(e,{get(r,i,s){if(typeof i=="string"){const l=i.charCodeAt(0);if(l>=48&&l<=57){const u=+i;if(Number.isInteger(u)&&u>=0&&u<n){let d=r[u];if(typeof d!="object"){const h=t[u*2];d=r[u]={index:u,key:d,start:h,size:t[u*2+1],end:h+t[u*2+1],lane:0}}return d}}if(i==="length")return n}return Reflect.get(r,i,s)}})}function wd(e,t,n){let r=n.initialDeps??[],i,s=!0;function l(){const u=e();return(u.length!==r.length||u.some((h,m)=>r[m]!==h))&&(r=u,i=t(...u),n?.onChange&&!(s&&n.skipInitialOnChange)&&n.onChange(i),s=!1),i}return l.updateDeps=u=>{r=u},l}function v9(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const b9=(e,t)=>Math.abs(e-t)<1.01,_Ce=(e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})};let Vh;const Ew=()=>{if(Vh!==void 0)return Vh;if(typeof navigator>"u")return Vh=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Vh=!0;const e=navigator.maxTouchPoints;return Vh=navigator.platform==="MacIntel"&&e!==void 0&&e>0},x9=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},RCe=e=>e,jCe=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,i=new Array(r);for(let s=0;s<r;s++)i[s]=t+s;return i},OCe=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=l=>{const{width:u,height:d}=l;t({width:Math.round(u),height:Math.round(d)})};if(i(x9(n)),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(l=>{const u=()=>{const d=l[0];if(d?.borderBoxSize){const h=d.borderBoxSize[0];if(h){i({width:h.inlineSize,height:h.blockSize});return}}i(x9(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},H1={passive:!0},LCe=typeof window>"u"?!0:"onscrollend"in window,DCe=(e,t,n)=>{const r=e.scrollElement;if(!r)return;const i=e.targetWindow;if(!i)return;const s=e.options.useScrollendEvent&&LCe;let l=0;const u=s?null:_Ce(i,()=>t(n(r),!1),e.options.isScrollingResetDelay),d=g=>()=>{l=n(r),u?.(),t(l,g)},h=d(!0),m=d(!1);return r.addEventListener("scroll",h,H1),s&&r.addEventListener("scrollend",m,H1),()=>{r.removeEventListener("scroll",h),s&&r.removeEventListener("scrollend",m),u?.cancel()}},MCe=(e,t)=>DCe(e,t,n=>{const{horizontal:r,isRtl:i}=e.options;return r?n.scrollLeft*(i&&-1||1):n.scrollTop}),PCe=(e,t,n)=>{if(n.options.useCachedMeasurements){const r=n.indexFromElement(e),i=n.options.getItemKey(r);return n.itemSizeCache.get(i)??n.options.estimateSize(r)}if(t?.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const r=n.indexFromElement(e),i=n.options.getItemKey(r),s=n.itemSizeCache.get(i);if(s!==void 0)return s}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]}
1949,FCe=(e,{adjustments:t=0,behavior:n},r)=>{var i,s;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})},BCe=FCe;function NCe(e,t,n,r){if(t===0)return!1;const i=r(0),s=new Set;let l=0;for(;l<e;){const d=n(l);if(d===i)break;s.add(d),l++}const u=e-l;if(u===0||u>=t)return!1;for(let d=0;d<u;d++)if(r(d)!==n(l+d))return!1;for(let d=u;d<t;d++)if(s.has(r(d)))return!1;return!0}class zCe{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var n,r,i;return((i=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:i.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{const l=()=>{const u=s.target,d=this.indexFromElement(u);if(!u.isConnected){this.observer.unobserve(u);for(const[h,m]of this.elementsCache)if(m===u){this.elementsCache.delete(h);break}return}this.isIndexInRange(d)&&this.shouldMeasureDuringScroll(d)&&this.resizeItem(d,this.options.measureElement(u,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{var r;const i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:RCe,rangeExtractor:jCe,onChange:()=>{},measureElement:PCe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const g in n){const y=n[g];y!==void 0&&(i[g]=y)}const s=this.options;let l=null,u=null,d=!1;if(s!==void 0&&s.enabled&&i.enabled&&i.anchorTo==="end"&&this.scrollElement!==null){const g=s.count,y=i.count,b=this.getMeasurements(),S=((r=this._singleLaneMeasurements)==null?void 0:r.items)??b,I=_=>TCe(S[_]),w=g>0?I(0):null,C=g>0?I(g-1):null;if(y!==g||g>0&&y>0&&(i.getItemKey(0)!==w||i.getItemKey(y-1)!==C)){d=!0;const _=g>0?this.getVirtualItemForOffset(this.getScrollOffset())??b[0]:null;_&&(l=[_.key,this.getScrollOffset()-_.start]);const R=i.followOnAppend===!0?"auto":i.followOnAppend||null;R&&y>0&&this.isAtEnd(s.scrollEndThreshold)&&(g===0||i.getItemKey(y-1)!==C)&&(y>g||NCe(g,y,I,i.getItemKey))&&(u=R)}}this.options=i,d&&(this.pendingMin=0,this.itemSizeCacheVersion++);let h=!1,m=0;if(l&&this.scrollOffset!==null){const[g,y]=l,b=this.getMeasurements(),{count:S,getItemKey:I}=this.options;let w=0;for(;w<S&&I(w)!==g;)w++;if(w<S){const C=b[w];if(C){const E=Math.max(0,C.start+y);!u&&E!==this.scrollOffset&&(m=E-this.scrollOffset,this.scrollOffset=E,h=!0)}}}(h||u)&&(this.pendingScrollAnchor=[h?l[0]:null,h?l[1]:0,u,m])},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=wd(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
1949{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n,r;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}if(this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,u)=>{if(u&&this._intendedScrollOffset===null&&l===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(l-this._intendedScrollOffset)<1.5&&(l=this._intendedScrollOffset),this._intendedScrollOffset=null,this._clampedAdjustment!==null&&Math.abs(l-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const d=this.getScrollOffset();this.scrollDirection=u?d===l?this.scrollDirection:d<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=u,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const l=this.scrollElement,u=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},d=()=>{this._iosTouching=!1,!(!Ew()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};l.addEventListener("touchstart",u,H1),l.addEventListener("touchend",d,H1),this.unsubs.push(()=>{l.removeEventListener("touchstart",u),l.removeEventListener("touchend",d),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const s=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,s&&this.scrollElement&&this.options.enabled){const[l,u,d,h]=s;l!==null&&!d&&(Ew()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?h!==0&&(this._iosDeferredAdjustment+=h):((r=this.scrollState)==null?void 0:r.behavior)==="smooth"&&!b9(this.getScrollOffset()-h,this.scrollState.lastTargetOffset)||this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),d&&this.scrollToEnd({behavior:d})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled)return;const{target:n,maxAtWrite:r}=this._clampedAdjustment,i=this.getMaxScrollOffset();i>r+.5&&(this._clampedAdjustment=n>i+.5?{target:n,maxAtWrite:i}:null,this._scrollToOffset(n,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const n=this.getScrollOffset(),r=this.getMaxScrollOffset();if(n<0||n>r)return;if(this._iosDeferredAdjustment<0&&n>=r-1){this._iosDeferredAdjustment=0;return}const i=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(n,{adjustments:this.scrollAdjustments+=i,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=wd(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(n,r,i,s,l,u,d,h)=>(this.prevLanes!==void 0&&this.prevLanes!==u&&(this.lanesChangedFlag=!0),this.prevLanes=u,this.pendingMin=null,{count:n,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:l,lanes:u,laneAssignmentMode:d,gap:h}),{key:!1}),this.isIndexInRange=n=>n>=0&&n<this.options.count,this.getMeasurements=wd(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:n,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:l,lanes:u,laneAssignmentMode:d,gap:h},m)=>{var g;const y=this.itemSizeCache;if(!l)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const E of this.laneAssignments.keys())E>=n&&this.laneAssignments.delete(E);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(E=>{this.itemSizeCache.set(E.key,E.size)}));const b=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1),u===1){const E=n*2;let A=(g=this._singleLaneMeasurements)==null?void 0:g.flat;if(!A||A.length<E){const j=new Float64Array(E);A&&b>0&&j.set(A.subarray(0,b*2)),A=j}const _=b===0?new Array(n):this._singleLaneMeasurements.items.slice();let R;if(b===0)R=r+i;else{const j=b-1;R=A[j*2]+A[j*2+1]+h}for(let j=b;j<n;j++){const O=s(j);_[j]=O;const F=y.get(O),D=typeof F=="number"?F:this.options.estimateSize(j);A[j*2]=R,A[j*2+1]=D,R+=D+h}this._singleLaneMeasurements={flat:A,items:_};const L=ACe(_,A);return this.measurementsCache=L,L}const S=this.measurementsCache.slice(0,b),I=new Array(u).fill(void 0),w=new Float64Array(u);let C=0;for(let E=0;E<b;E++){const A=S[E];A&&(I[A.lane]===void 0&&C++,I[A.lane]=E,w[A.lane]=A.end)}for(let E=b;E<n;E++){const A=s(E),_=this.laneAssignments.get(E);let R,L;const j=d==="estimate"||y.has(A);if(_!==void 0&&this.options.lanes>1){R=_;const H=I[R],V=H!==void 0?S[H]:void 0;L=V?V.end+h:r+i}else if(C===u){let H=0,V=w[0],Y=I[0];for(let K=1;K<u;K++){const z=w[K];(z<V||z===V&&I[K]<Y)&&(H=K,V=z,Y=I[K])}R=H,L=V+h,j&&this.laneAssignments.set(E,R)}else R=E%this.options.lanes,L=r+i,j&&this.laneAssignments.set(E,R);const O=y.get(A),F=typeof O=="number"?O:this.options.estimateSize(E),D=L+F;S[E]={index:E,start:L,size:F,end:D,key:A,lane:R},I[R]===void 0&&C++,I[R]=E,w[R]=D}return this.measurementsCache=S,S},{key:!1,debug:()=>this.options.debug}),this.calculateRange=wd(()=>
1949[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,s)=>n.length===0||r===0?(this.range=null,null):(this.range=UCe(n,r,i,s,s===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=wd(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,s,l)=>s===null||l===null?[]:n({startIndex:s,endIndex:l,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(i!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,i-s),u=Math.min(this.options.count-1,i+s);return n>=l&&n<=u}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((l,u)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(u))});return}const r=this.indexFromElement(n);if(!this.isIndexInRange(r))return;const i=this.options.getItemKey(r),s=this.elementsCache.get(i);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(i,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var i,s,l;if(!this.isIndexInRange(n))return;let u,d,h;const m=(i=this._singleLaneMeasurements)==null?void 0:i.flat;if(this.options.lanes===1&&m!=null)h=this.options.getItemKey(n),d=m[n*2],u=m[n*2+1];else{const b=this.measurementsCache[n];if(!b)return;h=b.key,d=b.start,u=b.size}const g=this.itemSizeCache.get(h)??u,y=r-g;if(y!==0){const b=this.options.anchorTo==="end"&&((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,S=b?this.getTotalSize():0,I=this.getScrollOffset()+this.scrollAdjustments,C=!this.itemSizeCache.has(h)?d<I:d+g<=I&&this.scrollDirection!=="backward",E=((l=this.scrollState)==null?void 0:l.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[n]??{index:n,key:h,start:d,size:u,end:d+u,lane:0},y,this):C);(this.pendingMin===null||n<this.pendingMin)&&(this.pendingMin=n),this.itemSizeCache.set(h,r),this.itemSizeCacheVersion++;let A=!1;b?A=this.applyScrollAdjustment(this.getTotalSize()-S):E&&(A=this.applyScrollAdjustment(y)),this.notify(A),this._retryClampedAdjustment()}},this.getVirtualItems=wd(()=>
1949[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let s=0,l=n.length;s<l;s++){const u=n[s],d=r[u];i.push(d)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{var r;const i=this.getMeasurements();if(i.length===0)return;const s=(r=this._singleLaneMeasurements)==null?void 0:r.flat,l=this.options.lanes===1&&s!=null,u=zN(0,i.length-1,l?d=>s[d*2]:d=>v9(i[d]).start,n);return v9(i[u])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(n=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=n,this.getOffsetForAlignment=(n,r,i=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),l=this.getScrollOffset();r==="auto"&&(r=n>=l+s?"end":"start"),r==="center"?n+=(i-s)/2:r==="end"&&(n-=s);const u=this.getMaxScrollOffset();return Math.max(Math.min(u,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.getSize(),s=this.getScrollOffset(),l=this.measurementsCache[n];if(!l)return;if(r==="auto")if(l.end>=s+i-this.options.scrollPaddingEnd)r="end";else if(l.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const u=r==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,r,l.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0;const s=this.getOffsetForAlignment(n,r),l=this.now();this.scrollState={index:null,align:r,behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0,n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getOffsetForIndex(n,r);if(!s)return;const[l,u]=s,d=this.now();
1949this.scrollState={index:n,align:u,behavior:i,startedAt:d,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const i=this.getScrollOffset()+n,s=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:n="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:n});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:n})},this.getTotalSize=()=>{var n,r;const i=this.getMeasurements();let s;if(i.length===0)s=this.options.paddingStart;else if(this.options.lanes===1){const l=i.length-1,u=(n=this._singleLaneMeasurements)==null?void 0:n.flat;u!=null?s=u[l*2]+u[l*2+1]:s=((r=i[l])==null?void 0:r.end)??0}else{const l=Array(this.options.lanes).fill(null);let u=i.length-1;for(;u>=0&&l.some(d=>d===null);){const d=i[u];l[d.lane]===null&&(l[d.lane]=d.end),u--}s=Math.max(...l.filter(d=>d!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const n=[];if(this.itemSizeCache.size===0)return n;const r=this.getMeasurements();for(const i of r)i&&this.itemSizeCache.has(i.key)&&n.push({index:i.index,key:i.key,start:i.start,size:i.size,end:i.end,lane:i.lane});return n},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this._intendedScrollOffset=n+(r??0),this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(t)}applyScrollAdjustment(t,n){if(t===0)return!1;if(Ew()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=t,!1;{const r=this.getScrollOffset()+this.scrollAdjustments+t,i=this.scrollElement,s=i!==null&&("scrollHeight"in i||"document"in i)?this.getMaxScrollOffset():null;return this._clampedAdjustment=s!==null&&r>s+.5?{target:r,maxAtWrite:s}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=t,behavior:n}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,i=r?r[0]:this.scrollState.lastTargetOffset,s=1,l=i!==this.scrollState.lastTargetOffset;if(!l&&b9(i,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=s){this.getScrollOffset()!==i&&this._scrollToOffset(i,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,l){const u=this.getSize()||600,d=Math.abs(i-this.getScrollOffset()),h=this.scrollState.behavior==="smooth"&&d>u;this.scrollState.lastTargetOffset=i,h||(this.scrollState.behavior="auto"),this._scrollToOffset(i,{adjustments:void 0,behavior:h?"smooth":"auto"})}this.scheduleScrollReconcile()}}const zN=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,s=n(i);if(s<r)e=i+1;else if(s>r)t=i-1;else return i}return e>0?e-1:0};function HCe(e,t,n){let r=0;for(;r<=t;){const i=(r+t)/2|0,s=e[i*2];if(s<n)r=i+1;else if(s>n)t=i-1;else return i}return r>0?r-1:0}function UCe(e,t,n,r,i){const s=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:s};if(r===1&&i!==null){const h=HCe(i,s,n);let m=h;const g=n+t;for(;m<s&&i[m*2]+i[m*2+1]<g;)m++;return{startIndex:h,endIndex:m}}let u=zN(0,s,h=>e[h].start,n),d=u;if(r===1)for(;d<s&&e[d].end<n+t;)d++;else if(r>1){const h=Array(r).fill(0);for(;d<s&&h.some(g=>g<n+t);){const g=e[d];h[g.lane]=g.end,d++}const m=Array(r).fill(n+t);for(;u>=0&&m.some(g=>g>=n);){const g=e[u];m[g.lane]=g.start,u--}u=Math.max(0,u-u%r),d=Math.min(s,d+(r-1-d%r))}return{startIndex:u,endIndex:d}}const Tw=typeof document<"u"?k.useLayoutEffect:k.useEffect;function WCe({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){const i=k.useReducer(g=>g+1,0)[1],s=k.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=t,s.current.mode=n;const l=k.useRef(!1),u=g=>{const y=s.current;if(!y.enabled||!y.container)return;const b=g.getTotalSize();if(b!==y.lastSize){y.lastSize=b;const S=g.options.horizontal?"width":"height";y.container.style[S]=`${b}px`}},d=g=>{const y=s.current;if(!y.enabled||!y.container)return;u(g);const b=!!g.options.horizontal,S=y.mode==="transform",I=b?"left":"top",w=g.options.scrollMargin,C=g.getVirtualItems();for(const E of C){const A=E.start-w,_=g.elementsCache.get(E.key);_&&y.lastPositions.get(_)!==A&&(y.lastPositions.set(_,A),S?_.style.transform=b?`translate3d(${A}px, 0, 0)`:`translate3d(0, ${A}px, 0)`:_.style[I]=`${A}px`)}}
1949,h={...r,onChange:(g,y)=>{var b;const S=s.current;let I=!0;if(S.enabled){d(g);const w=g.range,C=S.prevRange;I=!C||C.isScrolling!==g.isScrolling||C.startIndex!==w?.startIndex||C.endIndex!==w?.endIndex,I&&(S.prevRange=w?{startIndex:w.startIndex,endIndex:w.endIndex,isScrolling:g.isScrolling}:null)}I&&(e&&y&&!l.current?J1.flushSync(i):i()),(b=r.onChange)==null||b.call(r,g,y)}},[m]=k.useState(()=>{const g=new zCe(h),y=g.measureElement;return g.measureElement=b=>{l.current=!0;try{y(b)}finally{l.current=!1}},Object.assign(g,{containerRef:b=>{const S=s.current;if(S.container=b,S.lastSize=null,b&&S.enabled){const I=g.getTotalSize();S.lastSize=I;const w=g.options.horizontal?"width":"height";b.style[w]=`${I}px`}}})});return m.setOptions(h),Tw(()=>m._didMount(),[]),Tw(()=>(u(m),m._willUpdate())),Tw(()=>{d(m)}),m}function HN(e){return WCe({observeElementRect:OCe,observeElementOffset:MCe,scrollToFn:BCe,...e})}const vC=8,VCe=400,vl={getColumnStyle:e=>({flex:"1 1 0",minWidth:0,maxWidth:e>1?`calc((100% - ${(e-1)*vC}px) / ${e})`:"100%",position:"relative",display:"block"}),cardWrapper:{width:"100%"},skeletonCardWrapper:{width:"100%",paddingBottom:"var(--spacing-2x-small, 0.5rem)"},getVirtualItemStyle:e=>({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${e}px)`,paddingBottom:"var(--spacing-2x-small, 0.5rem)"}),scroller:{flex:1,minHeight:0,overflow:"auto",width:"100%",position:"relative"},columnsContainer:{display:"flex",flexDirection:"row",gap:`${vC}px`,width:"100%",alignItems:"flex-start"}},qCe=(e,t,n)=>{const[r,i]=k.useState(t?2:3);return k.useEffect(()=>{const s=()=>
1949{if(!e.current)return;if(t){i(Math.min(2,n));return}const u=e.current.offsetWidth,d=240;let h=1;for(let m=1;m<=n&&(u-(m-1)*vC)/m>=d;m++)h=m;i(Math.max(1,h))};if(s(),t)return;const l=new ResizeObserver(()=>requestAnimationFrame(s));return e.current&&l.observe(e.current),()=>l.disconnect()},[e,t,n]),r},UN=k.memo(({listings:e,columnCount:t,scrollContainerRef:n})=>{const[r,i]=k.useState(null);k.useEffect(()=>{n.current&&i(n.current)},[n]);const s=HN({count:e.length,getScrollElement:()=>r,estimateSize:()=>VCe,overscan:5,enabled:!!r}),l=s.getTotalSize(),u=r&&l>0,d=h=>c.jsx(qm,{parsedListingData:h,enableSelection:!1});return u?c.jsx("div",{style:{...vl.getColumnStyle(t),height:l},children:s.getVirtualItems().map(h=>c.jsx("div",{"data-index":h.index,ref:s.measureElement,style:vl.getVirtualItemStyle(h.start),children:d(e[h.index])},h.key))}):c.jsx("div",{style:vl.getColumnStyle(t),children:e.slice(0,3).map(h=>c.jsx("div",{style:vl.cardWrapper,children:d(h)},h.listingId))})});UN.displayName="DomainSearchVirtualizedColumn";const GCe=({listings:e,loading:t=!1,maxColumns:n=4,skeletonCardsPerColumn:r=3})=>{const{isMobile:i}=We(),s=k.useRef(null),l=k.useRef(null),u=qCe(l,i,n),d=e.length>0?Math.max(1,Math.min(u,e.length)):Math.max(1,u),h=k.useMemo(()=>{const g=Array.from({length:d},()=>[]);return e.forEach((y,b)=>{g[b%d].push(y)}),g},[e,d]);if(e.length===0&&!t)return null;const m=e.length===0;return c.jsx("div",{ref:s,style:vl.scroller,children:c.jsx("div",{ref:l,style:vl.columnsContainer,children:m?Array.from({length:d},(g,y)=>c.jsx("div",{style:vl.getColumnStyle(d),children:Array.from({length:r},(b,S)=>c.jsx("div",{style:vl.skeletonCardWrapper,children:c.jsx(su,{previewMode:!1,enableSelection:!1})},`domain-search-skeleton-${y}-${S}`))},`domain-search-skeleton-column-${y}`)):h.map((g,y)=>c.jsx(UN,{listings:g,scrollContainerRef:s,columnCount:d},`domain-search-column-${y}`))})})},YCe=5,ci={root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",minHeight:0,overflow:"hidden"},desktopTitle:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.35rem",minWidth:0,width:"100%"},questionText:{fontFamily:"var(--font-Arizona-serif)",fontSize:"1.25rem",lineHeight:"var(--line-height-medium)",color:"var(--text-default-primary)",letterSpacing:"-0.012rem",margin:0,overflowWrap:"break-word",wordBreak:"break-word"},mobileHeader:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"var(--spacing-small, 0.75rem)",minHeight:"var(--header-height, 4rem)",padding:"0 var(--spacing-medium, 1rem)",boxSizing:"border-box",flexShrink:0,zIndex:10},mobileHeaderText:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"0.15rem"},mobileQuestionText:{fontFamily:"var(--font-Arizona-serif)",fontSize:"1.0625rem",lineHeight:"var(--line-height-small)",color:"var(--text-default-primary)",margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},eyebrow:{...SB,color:cf},eyebrowRow:{display:"inline-flex",alignItems:"center",gap:"0.4rem"},tabRow:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"0.45rem",padding:"0.25rem var(--spacing-large, 1.5rem) 0.85rem",boxSizing:"border-box",flexShrink:0},stack:{flex:1,minHeight:0,position:"relative"},panelPadding:{padding:"0 var(--spacing-large, 1.5rem) var(--spacing-large, 1.5rem)",boxSizing:"border-box"},stateWrap:{flex:1,minHeight:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"2rem"},stateText:{fontFamily:"var(--font-Inter)",fontSize:"0.875rem",lineHeight:"var(--line-height-medium)",color:"var(--text-default-tertiary)",maxWidth:"20rem",margin:0}},KCe=({query:e,status:t,listings:n})=>{if(t==="error")return c.jsx("div",{style:ci.stateWrap,children:c.jsx("p",{style:ci.stateText,children:"We couldnât load a preview right now. Please try again in a moment."})});if(t==="empty")return c.jsx("div",{style:ci.stateWrap,children:c.jsxs("p",{style:ci.stateText,children:["Nothing to show for â",e,"â just yet."]})});const r=!!n&&n.length>0;return c.jsx(GCe,{listings:n??[],loading:!r})},WN=()=>{const{isMobile:e}=We(),{colors:t}=ze(),{trackStructuredQuestionVisualOptionViewed:n}=Nt(),r=ui(R=>R.blockId),i=ui(R=>R.questionIndex),s=ui(R=>R.title),l=ui(R=>R.options),u=ui(R=>R.activeIndex),d=ui(R=>R.resultsByQuery),h=ui(R=>R.statusByQuery),m=ui(R=>
1949R.setActiveIndex),g=ui(R=>R.close),[y,b]=k.useState(!1),S=l.map(R=>R.query).join("\0");k.useEffect(()=>{const R=l.map(L=>L.query);if(R.length!==0)for(const L of R)Mle(L)},[S]);const I=k.useRef({key:"",count:0});k.useEffect(()=>{if(!r||l.length===0)return;const R=`${r}:${i}`;if(I.current.key!==R&&(I.current={key:R,count:0}),I.current.count>=YCe)return;const L=l[u]?.label??"";L&&(I.current.count+=1,n(r,i,L))},[r,i,u,l,n]);const w=R=>{R!==u&&m(R)};if(l.length===0)return null;l[Math.min(u,l.length-1)]?.query;const C=c.jsxs("span",{style:ci.eyebrowRow,children:[c.jsx("span",{style:ci.eyebrow,children:"SHOW ME"}),null]}),E=null,A=c.jsx("div",{style:ci.tabRow,children:l.map((R,L)=>c.jsx(Pk,{option:R.label,isSelected:L===u,isActive:!0,isDisabled:!1,restingSurface:"primary",onClick:()=>w(L)},`${R.label}-${L}`))}),_=e?c.jsxs("div",{style:{...ci.mobileHeader,backgroundColor:t.background},children:[c.jsxs("div",{style:ci.mobileHeaderText,children:[C,c.jsx("p",{style:ci.mobileQuestionText,children:s})]}),c.jsx(Hl,{onClose:g})]}):c.jsx(B1,{onClose:g,children:c.jsxs("div",{style:ci.desktopTitle,children:[C,c.jsx("h3",{style:ci.questionText,children:s})]})});return c.jsxs("div",{style:{...ci.root,backgroundColor:t.background},"data-testid":"structured-question-visual-preview",children:[_,A,E,c.jsx("div",{style:ci.stack,children:l.map((R,L)=>{const j=L===u;return c.jsx("div",{"aria-hidden":!j,style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",visibility:j?"visible":"hidden",zIndex:j?1:0,...ci.panelPadding},children:c.jsx(KCe,{query:R.query,status:h[R.query],listings:d[R.query]})},`${R.query}-${L}`)})})]})},XCe="var(--surface-primary-default, #ffffff)",JCe="var(--text-default-primary, #0e0e11)",ZCe="var(--border-default-secondary, #e8e8ea)";function VN(){return c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24","aria-hidden":"true",children:[c.jsx("path",{d:`M9 4.5 7.6 6.5H5a2 2 0 0 0-2 2V18a2 2 0 0 0 2 2h14a2 2 0 0 0 1950 2-2V8.5a2 2 0 0 0-2-2h-2.6L15 4.5H9Z`,fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinejoin:"round"}),c.jsx("circle",{cx:"12",cy:"13",r:"3.4",fill:"none",stroke:"currentColor",strokeWidth:"1.7"})]})}function qN({children:e,onPhoto:t,disabled:n=!1,showHint:r=!1,onOpen:i,onCancel:s}){const l=k.useRef(null);k.useEffect(()=>{const g=l.current;if(!(!g||!s))return g.addEventListener("cancel",s),()=>g.removeEventListener("cancel",s)},[s]);const u=()=>{n||(l.current?.click(),i?.())},d=g=>{const y=g.target.files?.[0]??null;g.target.value="",y&&t(y)},h={appearance:"none",position:"relative",display:"inline-flex",padding:0,border:"none",background:"transparent",borderRadius:"50%",cursor:n?"default":"pointer",WebkitTapHighlightColor:"transparent"},m={position:"absolute",right:"24%",bottom:"24%",width:28,height:28,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",background:XCe,color:JCe,border:`1px solid ${ZCe}`,boxShadow:"0 2px 8px rgba(14, 14, 17, 0.14)",pointerEvents:"none"};return c.jsxs("button",{type:"button",onClick:u,disabled:n,"aria-label":"Upload a photo for Tonita","data-voice-photo-picker":"true",style:h,children:[e,r&&!n&&c.jsx("span",{"aria-hidden":"true",style:m,"data-voice-photo-hint":"true",children:c.jsx(VN,{})}),c.jsx("input",{ref:l,type:"file",accept:qI.join(","),onChange:d,onClick:g=>g.stopPropagation(),"data-testid":"voice-photo-input",style:{display:"none"},tabIndex:-1})]})}const e1=73,bC=64,QCe=["M36.2517 6.5938","C55.2523 -4.37691 58.2562 -2.64258 58.2553 19.2974","C77.2579 30.2661 77.2579 33.7324 58.257 44.7017","C58.2547 66.6426 55.2519 68.3768 36.2517 57.4062","C17.2521 68.3768 14.2492 66.6426 14.25 44.7027","C-4.75024 33.7324 -4.75024 30.2661 14.2507 19.2969","C14.2477 -2.64258 17.2516 -4.37691 36.2517 6.5938Z"].join(""),$Ce=["M36.2517 6.5938V57.4062","M36.2517 31.9997L14.2507 19.2969","M36.2517 31.9997L58.2553 19.2974","M36.2517 31.9997L14.25 44.7027","M36.2517 31.9997L58.2539 44.7026","M14.2507 44.7017C33.2516 55.6708 39.256 55.6708 58.257 44.7017"];function eIe(e,t,n){return e==="error"?"error":e==="ended"?"ended":e==="idle"?"idle":n?"muted":e==="speaking"?"speaking":t?"searching":e==="requestingMic"||e==="connecting"?"connecting":"listening"}const S9=800,w9=["listening","speaking","searching"];function xC(e,t){return{phase:e,sinceMs:t}}function tIe(e,t,n){if(t===e.phase)return{hold:e,recheckInMs:0};if(!(w9.includes(e.phase)&&w9.includes(t)))return{hold:xC(t,n),recheckInMs:0};const i=n-e.sinceMs;return i>=S9?{hold:xC(t,n),recheckInMs:0}:{hold:e,recheckInMs:S9-i}}const GN=2400,nIe=560;function C9(){return{ripples:[],lastAtMs:0,nextId:1}}function rIe(e,t){const n=e.ripples.filter(r=>t-r.atMs<GN);return n.length===e.ripples.length?e:{...e,ripples:n}}function I9(e,t,n){if(t.spaced&&n-e.lastAtMs<nIe)return e;const r=rIe(e,n),i={id:r.nextId,colour:t.colour,inward:t.inward??!1,atMs:n};return{ripples:[...r.ripples,i].slice(-6),lastAtMs:n,nextId:r.nextId+1}}function iIe(e,t){return e==="searching"?WB:t==="agent"?UB:nSe}const aIe=7;function sIe(e){return Math.floor(e/aIe)}const YN="var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))",SC="var(--duration-state, 320ms)",oIe=.4,lIe=1.06,cIe=1.35,uIe=.34,dIe=17e3,fIe=.3,hIe=.1;
1950function jd(e,t,{repeat:n=!1,fill:r,ease:i=YN}={}){return{animationName:e,animationDuration:`${t}ms`,animationTimingFunction:i,animationIterationCount:n?"infinite":void 0,animationFillMode:r}}function pIe({width:e,stroke:t,weight:n,creases:r,creaseStroke:i}){const s=e1/e;return c.jsxs("svg",{width:e,height:e*bC/e1,viewBox:`0 0 ${e1} ${bC}`,fill:"none",style:{display:"block",overflow:"visible"},"aria-hidden":"true",children:[c.jsx("path",{d:QCe,stroke:t,strokeWidth:n*s,strokeLinejoin:"round",strokeLinecap:"round"}),r&&$Ce.map(l=>c.jsx("path",{d:l,stroke:i??t,strokeWidth:n*.78*s,strokeLinejoin:"round",strokeLinecap:"round",opacity:.72},l))]})}function mIe({width:e,creases:t}){const n=[{at:.52,weight:e*.08,blur:e*.09,opacity:.24,emberMs:7400},{at:.36,weight:e*.026,blur:e*.03,opacity:.42,emberMs:5200},{at:.14,weight:Math.max(1.1,e*.0115),blur:0,opacity:1,emberMs:0}];return c.jsx("div",{style:{width:e,height:e*bC/e1,position:"relative"},children:n.map((r,i)=>c.jsx("div",{style:{position:"absolute",left:0,top:0,...r.emberMs?jd("tonita-voice-ember",r.emberMs,{repeat:!0}):void 0},children:c.jsx("div",{style:{opacity:r.opacity,filter:r.blur?`blur(${r.blur}px)`:void 0},children:c.jsx(pIe,{width:e,stroke:iC(lu,r.at),weight:r.weight,creases:t&&i===n.length-1,creaseStroke:iC(lu,.5)})})},r.at))})}function gIe({markWidth:e,strength:t,broken:n}){const r=e*cIe,i=`blur(${r*uIe}px)`;return c.jsx("span",{"data-voice-aura":"true",style:{position:"absolute",width:r,height:r,borderRadius:"50%",background:iC(lu,.5),opacity:t,filter:n?`${i} saturate(0.3)`:i,transition:`opacity 900ms linear, filter ${SC} linear`,...jd("tonita-voice-drift",dIe,{repeat:!0,ease:"linear"})}})}function yIe(e){return e==="listening"?1.02:e==="ended"?.82:e==="muted"?.92:1}function KN({phase:e,ripples:t,pulse:n,size:r,showCreases:i=!0}){const s=r*oIe,l=s*lIe,u=e==="muted"||e==="ended",d=e==="error",h={width:r,height:r,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,pointerEvents:"none"};return c.jsxs("div",{style:h,"aria-hidden":"true",children:[c.jsx(gIe,{markWidth:s,strength:u?hIe:fIe,broken:d}),t.map(m=>c.jsx("span",{"data-voice-ring":"true",style:{position:"absolute",width:l,height:l,borderRadius:"50%",border:`${Math.max(1.5,r/110)}px solid ${m.colour}`,boxSizing:"border-box",filter:`blur(${Math.max(.8,r/200)}px)`,...jd(m.inward?"tonita-voice-ring-in":"tonita-voice-ring-out",GN,{fill:"forwards"})}},m.id)),c.jsx("div",{style:{position:"relative",transform:`scale(${yIe(e)})`,opacity:u?.45:1,filter:d?"saturate(0.3)":void 0,transition:`transform 520ms ${YN}, opacity ${SC} linear, filter ${SC} linear`},children:c.jsx("div",{style:{position:"relative",...jd("tonita-voice-breathe",5400,{repeat:!0})},children:c.jsx("div",{style:{position:"relative",...e==="speaking"?jd("tonita-voice-swell",520,{fill:"both"}):void 0},children:c.jsx("div",{style:{position:"relative",...e==="searching"?jd("tonita-voice-away",2800,{repeat:!0}):void 0},children:c.jsx(mIe,{width:s,creases:i})})},`${e}-${e==="speaking"?n:0}`)})})]})}const XN="var(--text-default-primary)",vIe="var(--surface-primary-default)",qh="var(--font-Inter, Inter, system-ui, sans-serif)",iE="tonita-voice-mode",bIe=420,JN=156,za={panel:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",minHeight:0,padding:"calc(env(safe-area-inset-top, 0px) + var(--spacing-medium, 1rem)) var(--spacing-medium, 1rem) calc(env(safe-area-inset-bottom, 0px) + var(--spacing-large, 1.5rem))",background:vIe,fontFamily:qh,color:XN,boxSizing:"border-box"},statusLineText:{fontFamily:qh,fontSize:"0.9375rem",fontWeight:450,lineHeight:"1.25rem",letterSpacing:"-0.01em",color:"#9a8f86",textAlign:"center",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},statusLineError:{fontFamily:qh,fontSize:"0.9375rem",fontWeight:500,lineHeight:"1.25rem",letterSpacing:"-0.01em",color:"var(--voice-error-text, #8c2f22)",textAlign:"center",maxWidth:"100%"},photoBanner:{position:"absolute",left:"50%",bottom:"6%",transform:"translateX(-50%)",display:"inline-flex",alignItems:"center",gap:"0.625rem",maxWidth:"calc(100% - 2rem)",padding:"0.625rem 1rem 0.625rem 0.875rem",borderRadius:"var(--radius-full, 999px)",background:"var(--surface-primary-default, #ffffff)",border:"1px solid var(--border-default-secondary, #e8e8ea)",boxShadow:"0 6px 20px rgba(14, 14, 17, 0.16)",color:"var(--text-default-primary, #0e0e11)",pointerEvents:"none"},photoBannerTitle:{fontFamily:qh,fontSize:"1rem",fontWeight:500,lineHeight:"1.25rem",letterSpacing:"-0.01em",whiteSpace:"nowrap"},srOnly:{position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},stage:{position:"relative",width:"100%",minHeight:JN,flex:"1 1 auto",display:"flex",alignItems:"center",justifyContent:"center"},primaryButton:{appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",minWidth:"7.5rem",padding:"0.625rem 1.25rem",borderRadius:"var(--radius-full, 999px)",border:"none",fontFamily:qh,fontSize:"var(--size-x-small, 0.875rem)",fontWeight:500,letterSpacing:"-0.01em",curs
1950or:"pointer",WebkitTapHighlightColor:"transparent",transition:"background 200ms ease, color 200ms ease"},statusUpdate:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:"100%",minHeight:"1.75rem",padding:"0 var(--spacing-medium, 1rem)",boxSizing:"border-box",pointerEvents:"none"},controlRow:{display:"flex",alignItems:"center",gap:"var(--spacing-small, 0.75rem)",flexShrink:0,paddingTop:"var(--spacing-medium, 1rem)"}};function xIe(){return{...za.primaryButton,background:XN,color:"var(--text-default-inverted)"}}const ZN=` 1951@keyframes tonita-voice-ring-out { 1952 0% { transform: scale(0.94); opacity: 0; } 1953 14% { opacity: 0.7; } 1954 100% { transform: scale(2.3); opacity: 0; } 1955} 1956@keyframes tonita-voice-ring-in { 1957 0% { transform: scale(2.3); opacity: 0; } 1958 22% { opacity: 0.62; } 1959 100% { transform: scale(0.96); opacity: 0; } 1960} 1961@keyframes tonita-voice-breathe { 1962 0%, 100% { transform: scale(1); } 1963 50% { transform: scale(1.02); } 1964} 1965@keyframes tonita-voice-swell { 1966 0% { transform: scale(1); } 1967 38% { transform: scale(1.016); } 1968 100% { transform: scale(1); } 1969} 1970@keyframes tonita-voice-away { 1971 0%, 100% { opacity: 1; } 1972 50% { opacity: 0.72; } 1973} 1974@keyframes tonita-voice-floor { 1975 0%, 100% { transform: scaleY(0.3); } 1976 50% { transform: scaleY(1); } 1977} 1978@keyframes tonita-voice-chip-in { 1979 from { opacity: 0; transform: translateY(-4px); } 1980 to { opacity: 1; transform: none; } 1981} 1982/* 1983 * The shape's own sign of life: the warm light in it rising and falling, with 1984 * nothing moving and nothing resizing. See MarkBody, which runs this at two 1985 * mismatched speeds at once so the glow never reads as a loop. 1986 */ 1987@keyframes tonita-voice-ember { 1988 0%, 100% { opacity: 0.72; } 1989 50% { opacity: 1; } 1990} 1991/* 1992 * The light behind the shape wandering, for the stretches when nobody is 1993 * talking. See the resting aura in VoicePresence. 1994 * 1995 * The distances are small and the clock is long, so this is well under a pixel 1996 * a second. Nothing here brightens or grows: the same amount of light simply 1997 * ends up in a slightly different place, which is why there is no moment in it 1998 * for the corner of somebody's eye to catch. What it replaced was a ring going 1999 * out every couple of seconds, and a ring is an event â it kept pulling at 2000 * shoppers who were trying to read the products beside it. 2001 */ 2002@keyframes tonita-voice-drift { 2003 0% { transform: translate(-10%, -6%); } 2004 25% { transform: translate(6%, -10%); } 2005 50% { transform: translate(10%, 6%); } 2006 75% { transform: translate(-6%, 10%); } 2007 100% { transform: translate(-10%, -6%); } 2008} 2009/* 2010 * The warm light travelling through the search line. 2011 * 2012 * There was a companion to this â a fade-and-rise as the line arrived â and it 2013 * is gone on purpose. The line arrives out of nothing once per call and is 2014 * written into every time after that, so in practice the entrance only ever ran 2015 * because something had replaced the element underneath it, and what a shopper 2016 * saw was the words wiping out and typing themselves back in. See 2017 * VoiceStatusLine. 2018 */ 2019/* 2020 * DO NOT widen this sweep past 100% or below 0%. It is the whole bug. 2021 * 2022 * The search line has no text colour: it is transparent letters with a gradient 2023 * painted through them, so wherever the gradient does not reach, those letters 2024 * are not faint, they are invisible. A percentage background position lines the 2025 * image's X% point up with the container's X% point, which means that with an 2026 * image four times the width of the line, 0% puts the image's left edge on the 2027 * line's left edge and 100% puts its right edge on the line's right edge. Those 2028 * two are the ends of the range that still covers every letter. Anything 2029 * outside 2030 * it slides the image clear of one end and takes the words there with it. 2031 * 2032 * This sweep used to run 130% to -30%, which spent a third of every cycle with 2033 * part of the sentence simply erased â the letters vanished from one edge and 2034 * came back one at a time from the other, which reads exactly like a line 2035 * clearing itself and retyping. Two rounds of fixes went into how the *words* 2036 * were chosen before anyone noticed the words had been right all along. 2037 */ 2038@keyframes tonita-voice-note-sheen { 2039 from { background-position: 100% 0; } 2040 to { background-position: 0% 0; } 2041} 2042@media (prefers-reduced-motion: reduce) { 2043 .${iE} * { animation: none !important; } 2044} 2045`,Cd="#9a8f86",SIe=lu[0][1],wIe="var(--font-Inter, Inter, system-ui, sans-serif)",CIe=2600,IIe=400;function kIe(e){return{backgroundImage:`linear-gradient(100deg, ${e?`${Cd} 0%, ${Cd} 40%, ${SIe} 50%, ${Cd} 60%, ${Cd} 100%`:`${Cd} 0%, ${Cd} 100%`})`,backgroundSize:`${IIe}
2045% 100%`,backgroundRepeat:"no-repeat",WebkitBackgroundClip:"text",backgroundClip:"text",color:"transparent"}}const k9={fontFamily:wIe,fontSize:"0.9375rem",fontWeight:450,lineHeight:"1.25rem",letterSpacing:"-0.01em",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},E9={animationName:"tonita-voice-note-sheen",animationDuration:`${CIe}ms`,animationTimingFunction:"linear",animationIterationCount:"infinite"};function QN({text:e,live:t,placement:n}){const r=kIe(t);return n==="dock"?c.jsx("span",{"data-voice-search-note":"dock",role:"status","aria-live":"polite",style:{...k9,...r,flex:"1 1 auto",minWidth:0,fontSize:"0.8125rem",fontWeight:500,...E9},children:e}):c.jsx("span",{"data-voice-search-note":"stage",style:{...k9,...r,display:"block",maxWidth:"100%",textAlign:"center",...E9},children:e})}function EIe(e,t){return e.find(r=>r.role==="ASSISTANT"&&r.messageId===t.messageId&&r.componentId===t.componentId)??null}function TIe(e,t){const n=[];for(const r of t){const i=EIe(e,r);i&&n.push(i)}return n}const T9="Tonita products";function AIe(e){return e.type==="carousel"&&e.title?.trim()||T9}function _Ie(e,t){return!t.messageId||!t.componentId?-1:e.findIndex(n=>n.messageId===t.messageId&&n.componentId===t.componentId)}const A9="18px";function _9(e,t){if(!e&&!t)return;const n=e?`transparent 0, black ${A9}`:"black 0",r=t?`black calc(100% - ${A9}), transparent 100%`:"black 100%";return`linear-gradient(to right, ${n}, ${r})`}const Aw="var(--text-default-primary)",RIe="var(--text-default-secondary)",$N="var(--border-default-secondary)",wC="var(--surface-primary-default)",jIe="var(--font-Inter, Inter, system-ui, sans-serif)",OIe=12,LIe={display:"flex",gap:7,alignItems:"center",minWidth:0,overflowX:"auto",overscrollBehavior:"contain",scrollbarWidth:"none"},DIe={position:"sticky",bottom:0,height:0,zIndex:3,pointerEvents:"none"},MIe={position:"absolute",bottom:OIe,left:0,right:0,margin:"0 auto",width:"fit-content",maxWidth:"100%",boxSizing:"border-box",padding:"8px 10px",borderRadius:16,border:`1px solid ${$N}`,background:wC,boxShadow:"0 10px 30px rgba(14, 14, 17, 0.12)",pointerEvents:"auto"},PIe=UB;function _w(e){return`${e.messageId}:${e.componentId}`}function FIe(e,t){return{appearance:"none",display:"inline-flex",alignItems:"center",flexShrink:0,height:30,padding:"0 12px",borderRadius:999,border:`1px solid ${e?Aw:t?PIe:$N}`,background:e?Aw:wC,color:e?wC:t?Aw:RIe,fontFamily:jIe,fontSize:"0.75rem",fontWeight:500,letterSpacing:"-0.01em",whiteSpace:"nowrap",cursor:e?"default":"pointer",WebkitTapHighlightColor:"transparent",animationName:"tonita-voice-chip-in",animationDuration:"var(--duration-state, 320ms)",animationTimingFunction:"var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))"}}const hy=12;function BIe(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function NIe(e,t,n,r){const i=k.useRef(!1),s=k.useRef(t);k.useEffect(()=>{const l=n.current,u=new Set(s.current),d=t.map((C,E)=>u.has(C)?-1:E).filter(C=>C>=0);s.current=t;const h=d.length?d[d.length-1]:e,m=h>=0?r.current[h]:null;if(!l||!m)return;const g=l.getBoundingClientRect(),y=m.getBoundingClientRect();let b=0;y.left<g.left+hy?b=y.left-g.left-hy:y.right>g.right-hy&&(b=y.right-g.right+hy);const S=l.scrollWidth-l.clientWidth;b=Math.max(-l.scrollLeft,Math.min(b,S-l.scrollLeft));const I=i.current;if(i.current=!0,Math.abs(b)<1)return;const w=I&&!BIe()?"smooth":"auto";typeof l.scrollBy=="function"?l.scrollBy({left:b,behavior:w}):l.scrollLeft+=b},[e,t,n,r])}function zIe(e,t){const[n,r]=k.useState({before:!1,after:!1});return k.useEffect(()=>{const i=e.current;if(!i)return;const s=()=>{const u=Math.round(i.scrollLeft),d=Math.round(i.scrollWidth-i.clientWidth);r({before:u>1,after:u<d-1})};s(),i.addEventListener("scroll",s,{passive:!0});const l=typeof ResizeObserver>"u"?null:new ResizeObserver(s);return l?.observe(i),()=>{i.removeEventListener("scroll",s),l?.disconnect()}},[e,t]),n}const ez=({components:e,currentIndex:t,onPick:n,variant:r})=>{const i=k.useRef(null),s=k.useRef([]),l=k.useMemo(()=>e.map(_w),[e]);NIe(t,l,i,s);const u=zIe(i,e.length),d=cr(y=>y.seenCanvasKeys),h=e[t],m=h?_w(h):null;if(k.useEffect(()=>{m&&cr.getState().markCanvasSeen(m)},[m]),e.length<2)return null;const g=c.jsx("div",{ref:i,style:{...LIe,maskImage:_9(u.before,u.after),WebkitMaskImage:_9(u.before,u.after)},role:"tablist","aria-label":"Carousels found on this call","data-testid":"voice-canvas-chips",children:e.map((y,b)=>{const S=_w(y),I=b===t,w=!d.has(S)&&S!==m,C=AIe(y);return c.jsx("button",{ref:E=>{s.current[b]=E},type:"button",role:"tab","aria-selected":I,"aria-current":I?"true":void 0,"aria-label":w?`${C}, new`:void 0,"data-voice-chip-unseen":w?"true":void 0,style:FIe(I,w),onClick:()=>{I||n(y)},"data-testid":`voice-canvas-chip-${b}`,children:C},S)})});return r==="dock"?g:c.jsx("div",{style:DIe,"data-testid":"voice-canvas-chips-overlay",children:c.jsx("div",{style:MIe,children:g})})},R9="var(--voice-button-shell)",HIe="var(--voice-button-ink)",UIe="var(--voice-button-outline)",WIe="var(--voice-button-rim-light)",VIe="var(--voice-stop-shell)",py="var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))",my=140,aE={dock:{size:38,glyph:15},stage:{size:46,glyph:18}};function qIe(e,t){return e?"0 1px 3px rgba(14, 14, 17, 0.22), 0 0 0 0 rgba(14, 14, 17, 0)":t?`0 8px 20px rgba(14, 14, 17, 0.16), 0 2px 4px rgba(14, 14, 17, 0.20), inset 0 1px 0 ${WIe}`:"0 2px 6px rgba(14, 14, 17, 0.08)"}function tz({onClick:e,label:t,size:n,filled:r,fill:i=R9,glyph:s,extraProps:l}){const[u,d]=k.useState(!1),h=aE[n],m=()=>d(!1),g={appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:h.size,height:h.size,padding:0,border:r?"none":`1px solid ${UIe}`,borderRadius:"var(--radius-full, 999px)",background:r?i:"transparent",color:r?HIe:R9,cursor:"pointer",WebkitTapHighlightColor:"transparent",boxShadow:qIe(u,r),transform:u?"scale(0.965)":"scale(1)",transition:`transform ${my}ms ${py}, box-shadow ${my}ms ${py}, background ${my}ms ${py}, color ${my}ms ${py}`};return c.jsx("button",{type:"button",onClick:e,onPointerDown:()=>d(!0),onPointerUp:m,onPointerLeave:m,onPointerCancel:m,"aria-label":t,style:g,...l,children:s})}function nz({onStop:e,size:t="dock"}){const{trackVoiceCallStopped:n}=Nt();return c.jsx(tz,{onClick:()=>{n(),e()},label:"Stop talking and go back to the chat",size:t,filled:!0,fill:VIe,extraProps:{"data-voice-stop":"true"},glyph:c.jsx(GIe,{size:aE[t].glyph})})}function GIe({size:e}){return c.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:c.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",fill:"
2045currentColor"})})}function rz({muted:e=!1,size:t=15}){return c.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:[c.jsx("path",{d:"M12 19v3"}),e?c.jsxs(c.Fragment,{children:[c.jsx("path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33"}),c.jsx("path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2"}),c.jsx("path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2"}),c.jsx("path",{d:"m2 2 20 20"}),c.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12"})]}):c.jsxs(c.Fragment,{children:[c.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),c.jsx("rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"})]})]})}function iz({muted:e,onToggleMute:t,size:n="dock"}){return c.jsx(tz,{onClick:t,label:e?"Turn the microphone back on":"Turn the microphone off",size:n,filled:e,extraProps:{"data-voice-mute":"true","aria-pressed":e},glyph:c.jsx(rz,{muted:e,size:aE[n].glyph})})}const YIe="var(--border-default-secondary)",KIe="var(--surface-primary-default)",XIe=44,Rw=10,JIe=8,CC="--tonita-voice-dock-height";function ZIe(e){k.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{const i=t.getBoundingClientRect().top,s=Math.ceil(window.innerHeight-i)+JIe;document.documentElement.style.setProperty(CC,`${Math.max(0,s)}px`)};n();let r=null;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(n),r.observe(t)),window.addEventListener("resize",n),()=>{r?.disconnect(),window.removeEventListener("resize",n),document.documentElement.style.removeProperty(CC)}},[e])}function QIe({phase:e,ripples:t,pulse:n,carousels:r,currentCarousel:i,statusText:s,statusLive:l,statusIsError:u,onPickCarousel:d,onEnd:h,onUploadPhoto:m,isUploadingPhoto:g,onPhotoPickerOpened:y,onPhotoPickerCancelled:b,isMuted:S,onToggleMute:I}){const w=k.useRef(null);return ZIe(w),c.jsxs("div",{ref:w,className:iE,style:{position:"absolute",left:Rw,right:Rw,bottom:`calc(env(safe-area-inset-bottom, 0px) + ${Rw}px)`,display:"flex",flexDirection:"column",gap:12,padding:14,boxSizing:"border-box",borderRadius:20,border:`1px solid ${YIe}`,background:KIe,boxShadow:"0 10px 30px rgba(14, 14, 17, 0.12)",pointerEvents:"auto"},"data-voice-dock":"true",children:[c.jsx("style",{children:ZN}),c.jsx(ez,{components:r,currentIndex:i,onPick:d,variant:"dock"}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[c.jsx(qN,{onPhoto:m,onOpen:y,onCancel:b,disabled:g,children:c.jsx(KN,{phase:e,ripples:t,pulse:n,size:XIe,showCreases:!1})}),s&&u?c.jsx("span",{style:{...za.statusLineError,flex:"1 1 auto",minWidth:0},children:s}):s?c.jsx(QN,{text:s,live:l,placement:"dock"}):c.jsx("span",{style:{flex:"1 1 auto"}}),c.jsx(nz,{onStop:h,size:"dock"}),c.jsx(iz,{muted:S,onToggleMute:I,size:"dock"})]})]})}const $Ie=()=>{const{colors:e}=ze(),t=An(Y=>Y.isOpen),n=An(Y=>Y.close),r=Xt(Y=>Y.isListingDetailsOpen),i=Xt(Y=>Y.closeListingDetails),s=Fe(Y=>Y.isCarouselOpen),l=Fe(Y=>Y.currentMessageId),u=Fe(Y=>Y.currentComponentId),{cards:d,title:h}=Gm(u),m=U(Y=>Y.chatId),g=U(Y=>Y.referrerChatId),y=m??g,b=s&&!!l&&!!u&&!!y,S=ui(Y=>Y.isOpen),I=()=>{t&&n()},[w,C]=k.useState(!1),[E,A]=k.useState("exited");k.useEffect(()=>{if(r)C(!0),A("entering"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{A("entered")})});else if(w){A("exiting");const Y=setTimeout(()=>{C(!1),A("exited")},200);return()=>clearTimeout(Y)}},[r,w]);const _=k.useRef(null),R=k.useRef(0),L=k.useRef(0),j=k.useCallback(Y=>{R.current=Y.touches[0].clientY,L.current=0},[]),O=k.useCallback(Y=>{const K=_.current?.scrollTop??0,q=Y.touches[0].clientY-R.current;K<=0&&q>0&&(L.current=q)},[]),F=k.useCallback(()=>{L.current>100&&i(),L.current=0},[i]),D=E==="exiting",H=E==="entered",V={app:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"100dvw",height:"100dvh",overflow:"hidden",backgroundColor:e.background},header:{flexShrink:0,zIndex:"var(--z-index-app-header)",backgroundColor:e.background,paddingTop:"env(safe-area-inset-top, 0px)",transition:"background-color 0.3s ease"},chatContainer:{flex:1,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"stretch",maxWidth:"100%",overflow:"hidden",minHeight:0,position:"relative"},chatWindow:{width:"100%",height:"100%",flexShrink:0,maxWidth:"60rem",overflow:"hidden"},listingDetailsOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:e.background,zIndex:"var(--z-index-listing-details-dialog)",display:"flex",flexDirection:"column",transformOrigin:"center center",opacity:H?1:0,transform:H?"scale(1)":"scale(0.85)",transition:D?"opacity 0.2s cubic-bezier(0.4, 0, 1, 1), transform 0.2s cubic-bezier(0.4, 0, 1, 1)":"opacity 0.3s cubic-bezier(0.0, 0, 0.2, 1), transform 0.3s cubic-bezier(0.0, 0, 0.2, 1)",overflowY:"auto",overflowX:"hidden",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},carouselOverlay:{position:"fixed",top:0,left:0,right:0,bottom:0,paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:`max(env(safe-area-inset-bottom, 0px), var(${CC}, 0px))`,backgroundColor:e.background,zIndex:"var(--z-index-carousel-header-mobile)",display:"flex",flexDirection:"column",overflow:"hidden"}};return c.jsxs("div",{style:V.app,children:[c.jsx("div",{style:V.header,children:c.jsx(es,{})}),c.jsxs("div",{style:V.chatContainer,onClick:I,children:[c.jsx("div",{style:V.chatWindow,children:c.jsx(nN,{})}),b&&c.jsx("div",{style:V.carouselOverlay,children:c.jsx(ECe,{listingCards:d,messageId:l,componentId:u,chatId:y,title:h})}),S&&c.jsx("div",{style:V.carouselOverlay,children:c.jsx(WN,{})}),w&&c.jsx("div",{ref:_,style:V.listingDetailsOverlay,onTouchStart:j,onTouchMove:O,onTouchEnd:F,children:c.jsx(Wk,{})})]})]})},eke="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3c!--%20Base%20horizontal%20line%20--%3e%3cline%20x1='4'%20y1='20'%20x2='20'%20y2='20'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c!--%20Central%20vertical%20pole%20--%3e%3cline%20x1='12'%20y1='20'%20x2='12'%20y2='6'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c!--%20Horizontal%20beam%20--%3e%3cline%20x1='6'%20y1='6'%20x2='18'%20y2='6'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c!--%20Left%20scale%20pan%20--%3e%3cpath%20d='M6%206%20L4%2010%20L8%2010%20L6%206Z'%20fill='none'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cline%20x1='4'%20y1='10'%20x2='8'%20y2='10'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c!--%20Right%20scale%20pan%20--%3e%3cpath%20d='M18%206%20L16%2010%20L20%2010%20L18%206Z'%20fill='none'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cline%20x1='16'%20y1='10'%20x2='20'%20y2='10'%20stroke='currentColor'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c!--%20Center%20pivot%20point%20--%3e%3ccircle%20cx='12'%20cy='6'%20r='1.5'%20fill='currentColor'/%3e%3c/svg%3e",gy={button:{display:"flex",flex:1,flexDirection:"row",height:"3rem",padding:"0.75rem",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",alignSelf:"stretch",borderRadius:"var(--radius-medium, 0.5rem)",background:"transparent",curs
2045or:"pointer",transition:"background-color 0.2s ease, transform 0.15s ease",border:"none",outline:"none"},buttonPressed:{transform:"scale(0.98)"},buttonDisabled:{opacity:.5,cursor:"not-allowed"},createTextStyle:e=>({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,flex:"1 0 0",overflow:"hidden",color:e,textOverflow:"ellipsis",fontFamily:"var(--font-Inter, Inter)",fontSize:"var(--button-size-small, 0.875rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--button-line-height-2, 1.25rem)",letterSpacing:"-0.00875rem",textAlign:"left"})},tke=({listings:e,onClose:t})=>{const n=U(g=>g.assistantInProgress),[r,i]=G.useState(!1),s=Ji(g=>g.sendUserMessage),l=e.length<2||n,u=async g=>{if(g.stopPropagation(),!l){try{await s?.("Compare these products",e)}catch(y){console.error("[CompareButton] Error sending compare message:",y)}t&&t()}},d=g=>{l||(g.currentTarget.style.background="var(--surface-primary-hovered, #F2F2F3)")},h=g=>{g.currentTarget.style.background="transparent",i(!1)},m=()=>{const g=gy.button;return l?{...g,...gy.buttonDisabled}:r?{...g,...gy.buttonPressed}:g};return c.jsxs("button",{style:m(),onClick:u,disabled:l,onMouseEnter:d,onMouseLeave:h,onMouseDown:()=>!l&&i(!0),onMouseUp:()=>i(!1),onTouchStart:()=>!l&&i(!0),onTouchEnd:()=>i(!1),onTouchCancel:()=>i(!1),children:[c.jsx("img",{src:eke,alt:"Compare",style:Dt("var(--icon-filter)")}),c.jsx("span",{style:gy.createTextStyle("var(--text-default-primary)"),children:"Compare"})]})},nke=e=>({container:{position:"relative"},button:{display:"flex",padding:"0.375rem",alignItems:"center",justifyContent:"center",gap:"var(--spacing-2x-small, 0.375rem)",borderRadius:"var(--radius-small, 0.25rem)",border:"none",background:"transparent",cursor:"pointer",transition:"transform 0.15s ease, background-color 0.15s ease",outline:"none",color:"var(--text-default-secondary)",fontSize:"var(--size-3x-sm, 0.75rem)",fontFamily:"var(--font-Inter, Inter)",fontWeight:500,lineHeight:"var(--line-height-2x-small, 1rem)",minHeight:"2rem",minWidth:"2rem",boxSizing:"border-box",flexShrink:0},buttonPressed:{transform:"scale(0.95)"},createDropdown:()=>({position:"absolute",top:"calc(100% + 0.5rem)",right:0,minWidth:"12rem",backgroundColor:"var(--dropdown-bg)",borderRadius:"var(--radius-medium, 0.5rem)",boxShadow:"var(--dropdown-shadow)",padding:"var(--spacing-x-small, 0.5rem)",zIndex:1e3,display:"flex",flexDirection:"column",gap:"var(--spacing-3x-small, 0.25rem)",border:"1px solid var(--dropdown-border)",transition:"background-color 0.3s ease, border-color 0.3s ease"})}),rke=()=>{const{colors:e}=ze(),t=nke(),[n,r]=k.useState(!1),[i,s]=k.useState(!1),[l,u]=k.useState(!1),d=Pt(),h=Qr(A=>A.selectedCards),m=Array.from(h.values()),g=Fe(A=>A.currentComponentId),y=d.pathname==="/recent",b=g?.includes("recently-interacted-carousel")||!1,S=y||b,I=A=>{A.stopPropagation(),r(!n)},w=()=>{r(!1)},C=()=>{r(!1)};G.useEffect(()=>{if(n)return document.addEventListener("click",w),()=>{document.removeEventListener("click",w)}},[n]);const E=()=>{const A={...t.button};return i?{...A,...t.buttonPressed,backgroundColor:e.carouselHeaderButtonHover}:l?{...A,backgroundColor:e.carouselHeaderButtonHover}:{...A,background:"transparent",backgroundColor:"transparent"}};return c.jsxs("div",{style:t.container,children:[c.jsx("button",{style:E(),onClick:I,"aria-label":"More options",onMouseEnter:()=>u(!0),onMouseLeave:()=>{u(!1),s(!1)},onMouseDown:()=>s(!0),onMouseUp:()=>s(!1),onTouchStart:()=>s(!0),onTouchEnd:()=>s(!1),onTouchCancel:()=>s(!1),children:c.jsx(_k,{size:"0.875rem"})}),n&&c.jsxs("div",{style:t.createDropdown(),onClick:A=>A.stopPropagation(),children:[c.jsx(Vm,{listings:m,onClose:C}),!S&&c.jsx(tke,{listings:m,onClose:C})]})]})},ike=e=>({container:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",minWidth:0},titleRow:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"var(--spacing-2x-small, 0.5rem)",width:"100%"},title:{fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-small, 1rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",color:e.textSecondary,margin:"0",flex:"0 1 auto",minWidth:0,...Rbe},statsRow:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",width:"100%"},countsText:{fontFamily:"var(--font-Arizona-sans)",fontSize:"var(--size-2x-sm, 0.875rem)",fontStyle:"normal",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",color:e.textSecondary}}),j9=({title:e,stats:t,showRotatingStats:n=!1,showTitle:r=!0,rerankStatus:i})=>{const{colors:s}=ze(),l=Fe(y=>y.currentSearchRequestJson),u=t2(),d=Fe(y=>y.carouselStartedThisTurn),h=Fe(y=>y.hasCarouselBeenUpdatedOnceForTurn),m=n2(u,d,h),g=ike(s);return c.jsxs("div",{style:g.container,children:[r&&c.jsxs("div",{style:g.titleRow,children:[c.jsx("h3",{style:g.title,children:m?"Searching for products...":e||""}),!m&&i&&!1,l&&!1]}),!m&&t&&c.jsx("div",{style:g.statsRow,children:c.jsx(gB,{stats:t,style:g.countsText,showRotatingStats:n})})]})},Od={getColumnStyle:e=>({flex:"1 1 0",minWidth:0,maxWidth:e>1?`calc((100% - ${(e-1)*8}px) / ${e})`:"100%",display:"flex",flexDirection:"column",gap:"var(--spacing-2x-small, 0.5rem)"}),getVirtualizedColumnStyle:(e,t)=>
2045({flex:"1 1 0",minWidth:0,maxWidth:e>1?`calc((100% - ${(e-1)*8}px) / ${e})`:"100%",position:"relative",height:`${t}px`,display:"block"}),cardWrapper:{width:"100%"},getVirtualItemStyle:e=>({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${e}px)`,paddingBottom:"var(--spacing-2x-small, 0.5rem)"})},ake=k.memo(({cards:e,scrollContainerRef:t,columnCount:n,maskStaleCards:r,chatId:i,messageId:s,componentId:l})=>{const[u,d]=k.useState(null);k.useEffect(()=>{t.current&&d(t.current)},[t]);const h=HN({count:e.length,getScrollElement:()=>u,estimateSize:()=>400,overscan:5,enabled:!!u}),m=h.getTotalSize(),g=h.getVirtualItems(),y=u&&m>0,b=S=>r?c.jsx(su,{previewMode:!1,enableSelection:!1}):S.isSkeleton?c.jsx(su,{previewMode:!1,enableSelection:!0}):c.jsx(qm,{parsedListingData:S,enableSelection:!0});if(!y){const S=e.slice(0,3);return c.jsx("div",{style:Od.getColumnStyle(n),children:S.map(I=>c.jsx("div",{style:Od.cardWrapper,children:b(I)},`${i}-${s}-${l}-${I.listingId}`))})}return c.jsx("div",{style:Od.getVirtualizedColumnStyle(n,m),children:g.map(S=>{const I=e[S.index];return c.jsx("div",{"data-index":S.index,ref:h.measureElement,style:Od.getVirtualItemStyle(S.start),children:b(I)},S.key)})})}),ske=(e,t)=>{const[n,r]=k.useState(t?2:3);return k.useEffect(()=>{const i=()=>{if(!e.current)return;const l=e.current.offsetWidth,u=8;if(t)r(2);else{let m=1;for(let y=1;y<=4;y++){const b=(y-1)*u;if((l-b)/y>=240)m=y;else break}const g=Math.max(1,m);r(g)}};if(i(),t)return;const s=new ResizeObserver(()=>{requestAnimationFrame(i)});return e.current&&s.observe(e.current),()=>{s.disconnect()}},[e,t]),n},ol={getContainerStyle:e=>({display:"flex",width:"100%",height:"100%",padding:e?0:void 0,flexDirection:"column",alignItems:"flex-start",gap:0,overflow:"hidden",position:"relative",backgroundColor:"inherit"}),getProductCardContainerStyle:e=>({flex:1,overflow:"auto",padding:e?void 0:"0 1.5rem",width:"100%",scrollbarWidth:"none",msOverflowStyle:"none",zIndex:2,position:"relative"}),columnsContainer:{display:"flex",flexDirection:"row",gap:"var(--spacing-2x-small, 0.5rem)",width:"100%",alignItems:"flex-start"},hideScrollbarCss:` 2046 .carousel-container::-webkit-scrollbar {
2047 display: none; 2048 } 2049 `},oke=({listingCards:e,messageId:t,componentId:n,chatId:r,title:i})=>{const{isMobile:s}=We(),l=k.useRef(null),u=k.useRef(null),d=ske(u,s),h=i,m=e?.length??0,g=Math.min(d,m),y=t2(),b=Fe(_=>_.carouselStartedThisTurn),S=Fe(_=>_.hasCarouselBeenUpdatedOnceForTurn),I=n2(y,b,S),w=U(_=>_.messages),C=k.useMemo(()=>w.find(R=>R.role==="ASSISTANT"&&R.type==="carousel"&&R.messageId===t&&R.componentId===n)?.stats??null,[w,t,n]),E=k.useMemo(()=>w.find(R=>R.role==="ASSISTANT"&&R.type==="carousel"&&R.messageId===t&&R.componentId===n)?.rerankStatus,[w,t,n]),A=k.useMemo(()=>{if(g===0||!e)return[];const _=Array.from({length:g},()=>[]);return e.forEach((R,L)=>{_[L%g].push(R)}),_},[e,g]);if(m===0){if(!I)return null;const _=Math.max(d,2),R=3;return c.jsxs("div",{style:ol.getContainerStyle(s),children:[c.jsx("style",{children:ol.hideScrollbarCss}),s?c.jsx(gC,{title:h,rerankStatus:E}):c.jsx(B1,{onClose:lf,children:c.jsx(j9,{title:h,stats:C,showRotatingStats:E==="reranking_requested",showTitle:!0,rerankStatus:E})}),c.jsx("div",{ref:l,className:"carousel-container",style:ol.getProductCardContainerStyle(s),children:c.jsx("div",{style:ol.columnsContainer,"data-testid":"carousel-searching-preloaders",children:Array.from({length:_},(L,j)=>c.jsx("div",{style:Od.getColumnStyle(_),children:Array.from({length:R},(O,F)=>c.jsx("div",{style:Od.cardWrapper,children:c.jsx(su,{previewMode:!1,enableSelection:!1})},`searching-preloader-${j}-${F}`))},`searching-col-${j}`))})})]})}return c.jsxs("div",{style:ol.getContainerStyle(s),children:[c.jsx("style",{children:ol.hideScrollbarCss}),s?c.jsx(gC,{title:h,rerankStatus:E}):c.jsx(B1,{onClose:lf,right:!n?.includes("recently-interacted-carousel")&&c.jsxs(c.Fragment,{children:[c.jsx(Kv,{}),c.jsx(rke,{})]}),children:c.jsx(j9,{title:h,stats:C,showRotatingStats:E==="reranking_requested",showTitle:!0,rerankStatus:E})}),c.jsx("div",{ref:l,className:"carousel-container",style:ol.getProductCardContainerStyle(s),children:c.jsx("div",{ref:u,style:ol.columnsContainer,"data-testid":"carousel",children:A.map((_,R)=>c.jsx(ake,{cards:_,scrollContainerRef:l,columnCount:g,maskStaleCards:I,chatId:r,messageId:t,componentId:n},`${r}-${t}-${n}-column-${R}`))})})]})},O9=e=>Symbol.iterator in e,L9=e=>"entries"in e,D9=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[i,s]of n)if(!r.has(i)||!Object.is(s,r.get(i)))return!1;return!0},lke=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let i=n.next(),s=r.next();for(;!i.done&&!s.done;){if(!Object.is(i.value,s.value))return!1;i=n.next(),s=r.next()}return!!i.done&&!!s.done};function cke(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:O9(e)&&O9(t)?L9(e)&&L9(t)?D9(e,t):lke(e,t):D9({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function uke(e){const t=G.useRef(void 0);return n=>{const r=e(n);return cke(t.current,r)?t.current:t.current=r}}function az(e){const t=U(uke(l=>TIe(l.messages,e))),n=Fe(l=>l.currentMessageId),r=Fe(l=>l.currentComponentId),i=_Ie(t,{messageId:n,componentId:r}),s=k.useCallback(l=>{U.getState().showVoiceCarousel({messageId:l.messageId,componentId:l.componentId})},[]);return{components:t,currentIndex:i,pick:s}}const dke=()=>{const e=cr(i=>i.canvasComponents),{components:t,currentIndex:n,pick:r}=az(e);
2049return c.jsx(ez,{components:t,currentIndex:n,onPick:r,variant:"panel"})};function fke(){const e=kn(n=>n.activeBlockId),t=U(n=>e?n.messages.find(r=>r.role==="ASSISTANT"&&r.componentId===e):void 0);return t&&t.type==="structured_question_block"?t:null}const hke=({message:e})=>{const t=()=>lf();return c.jsx("div",{style:{height:"100%",minHeight:0,display:"flex",flexDirection:"column"},children:c.jsx(Fk,{title:AB(),contentMaxWidth:"100%",onClose:t,children:c.jsx(_B,{message:e})})})},pke=` 2050@keyframes tonita-chat-layout-in { 2051 from { opacity: 0; } 2052 to { opacity: 1; } 2053} 2054@media (prefers-reduced-motion: reduce) { 2055 [data-chat-layout-entrance] { animation: none !important; } 2056} 2057`,mke=()=>{const{colors:e}=ze(),t=Xt(F=>F.selectedListing),n=Xt(F=>F.isListingDetailsOpen),r=Fe(F=>F.isCarouselOpen),i=Fe(F=>F.currentMessageId),s=Fe(F=>F.currentComponentId),{cards:l,title:u}=Gm(s),d=U(F=>F.chatId),h=U(F=>F.referrerChatId),m=An(F=>F.isOpen),g=An(F=>F.close),y=k.useRef(null),b=k.useRef(null),S=fke(),I=S!=null,w=ui(F=>F.isOpen),C=r||n||I||w,E=Ja(F=>F.owner),A=Ele({owner:E,isCarouselOpen:r,isBlockOpen:I}),[_]=k.useState(()=>cr.getState().isOpen),R=!!(i&&s&&(d??h));k.useEffect(()=>{const{setChatColumn:F}=cr.getState();return F(y.current),()=>F(null)},[]);const L=()=>{m&&g()},j=k.useCallback(F=>{if(!C&&y.current&&F.deltaY!==0){if(Math.abs(F.deltaX)>Math.abs(F.deltaY)*2)return;const D=y.current.querySelector('[data-scrollable="messages"]');D&&(D.scrollBy({top:F.deltaY,behavior:"auto"}),F.preventDefault())}},[C]);k.useEffect(()=>{const F=b.current;if(F)return F.addEventListener("wheel",j,{passive:!1}),()=>{F.removeEventListener("wheel",j)}},[j]);const O={app:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"100dvw",height:"100dvh",backgroundColor:e.background,overflowX:"hidden",overflowY:"hidden",overscrollBehavior:"none"},header:{position:"fixed",top:0,left:0,right:0,zIndex:1100,backgroundColor:e.background,padding:"0 var(--spacing-small, 0.75rem)",transition:"background-color 0.3s ease"},mainContainer:{flex:1,display:"flex",justifyContent:C?"flex-start":"center",alignItems:"stretch",paddingTop:"var(--header-height)",paddingLeft:"var(--spacing-medium, 1rem)",paddingRight:"var(--spacing-medium, 1rem)",overflowX:"hidden",overflowY:"hidden",maxWidth:"100%"},chatWindow:{width:C?"35%":"100%",height:"100%",flexShrink:0,maxWidth:"60rem",position:"relative"},carouselSection:{flex:1,display:"flex",flexDirection:"column",height:"100%",padding:"0 var(--spacing-medium, 1rem)",overflow:"auto",minWidth:"24rem",position:"relative"},listingDetailsOverlay:{position:"absolute",top:0,left:"var(--spacing-medium, 1rem)",right:"var(--spacing-medium, 1rem)",bottom:0,backgroundColor:e.background,zIndex:105,overflow:"hidden"},visualPreviewOverlay:{position:"absolute",top:0,left:"var(--spacing-medium, 1rem)",right:"var(--spacing-medium, 1rem)",bottom:0,backgroundColor:e.background,zIndex:104,overflow:"hidden"}};return c.jsxs("div",{"data-chat-layout-entrance":_?"true":void 0,style:_?{...O.app,animation:"tonita-chat-layout-in 320ms ease-out both"}:O.app,children:[_&&c.jsx("style",{children:pke}),c.jsx("div",{style:O.header,children:c.jsx(es,{})}),c.jsxs("div",{ref:b,style:O.mainContainer,onClick:L,children:[c.jsx("div",{ref:y,style:O.chatWindow,children:c.jsx(nN,{})}),C&&c.jsxs("div",{style:O.carouselSection,children:[A==="block"&&S?c.jsx(hke,{message:S}):A==="carousel"&&R?c.jsx(oke,{listingCards:l,messageId:i,componentId:s,chatId:d??h,title:u}):null,w&&c.jsx("div",{style:O.visualPreviewOverlay,children:c.jsx(WN,{})}),n&&t&&c.jsx("div",{style:O.listingDetailsOverlay,children:c.jsx(Wk,{})}),Hk()&&c.jsx(dke,{})]})]})]})};function Df(){const{isMobile:e}=We();return vhe(),bhe(),whe(),ZP(),c.jsxs(c.Fragment,{children:[c.jsx(Ihe,{}),e?c.jsx($Ie,{}):c.jsx(mke,{}),c.jsx(nF,{}),c.jsx(jhe,{})]})}const gke=()=>{const e=Ji(n=>n.sendUserMessage),{isLoading:t}=ti();return k.useEffect(()=>{if(t)return;const n=km(),r=n.get("q")||n.get("query");if(!r)return;(async()=>{try{await e?.(r)}catch(s){console.error("Failed to send query message:",s)}})()},[t,e]),c.jsx(Df,{})},pl={container:{position:"fixed",top:"calc(1.5rem + env(safe-area-inset-top, 0px))",left:"50%",transform:"translateX(-50%)",zIndex:2300,display:"flex",flexDirection:"column",gap:"0.75rem",width:"auto",maxWidth:"calc(100vw - 2rem)",pointerEvents:"none"},iconBase:{width:"1.25rem",height:"1.25rem",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:"0.75rem",color:"white"},iconError:{background:"linear-gradient(90deg, #EF4444 0%, #DC2626 100%)"},iconSuccess:{background:"linear-gradient(90deg, #22C55E 0%, #16A34A 100%)"}
2057,iconWarning:{background:"linear-gradient(90deg, #FCDA2E 0%, #F59E0B 100%)"},iconInfo:{background:"linear-gradient(90deg, #3B82F6 0%, #2563EB 100%)"},message:{flex:1,fontSize:"0.875rem",fontWeight:500,color:"var(--text-default-primary)",fontFamily:"var(--font-Inter, Inter)",lineHeight:"1.5",margin:0},closeButton:{background:"none",border:"none",color:"var(--text-default-tertiary)",cursor:"pointer",padding:"0.25rem",fontSize:"1.125rem",lineHeight:"1",flexShrink:0,transition:"color 0.2s ease"}},yke={position:"relative",background:"var(--toast-bg)",borderRadius:"0.75rem",padding:"1rem 1.25rem",display:"flex",flexDirection:"row",alignItems:"center",gap:"0.75rem",boxShadow:"var(--toast-shadow)",backdropFilter:"blur(8px)",animation:"toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"auto",minWidth:"20rem",maxWidth:"100%"},vke=e=>({...yke,...{error:{border:"1px solid rgba(239, 68, 68, var(--toast-border-opacity))"},success:{border:"1px solid rgba(34, 197, 94, var(--toast-border-opacity))"},warning:{border:"1px solid rgba(252, 218, 46, var(--toast-border-opacity))"},info:{border:"1px solid rgba(59, 130, 246, var(--toast-border-opacity))"}}[e]}),bke=e=>{const t={error:pl.iconError,success:pl.iconSuccess,warning:pl.iconWarning,info:pl.iconInfo};return{...pl.iconBase,...t[e]}},xke=e=>({error:"â",success:"â",warning:"â ",info:"â¹"})[e],Ske=()=>{const e=mo(n=>n.toasts),t=mo(n=>n.removeToast);return e.length===0?null:c.jsxs(c.Fragment,{children:[c.jsx("style",{children:` 2058 @keyframes toastSlideIn { 2059 from { 2060 opacity: 0; 2061 transform: translateY(-2rem); 2062 } 2063 to { 2064 opacity: 1; 2065 transform: translateY(0); 2066 } 2067 } 2068 2069 .toast-close-button:hover { 2070 color: var(--text-default-primary); 2071 opacity: 0.8; 2072 } 2073 `}),c.jsx("div",{style:pl.container,children:e.map(n=>c.jsxs("div",{style:vke(n.type),children:[c.jsx("div",{style:bke(n.type),children:xke(n.type)}),c.jsx("p",{style:pl.message,children:n.message}),c.jsx("button",{style:pl.closeButton,className:"toast-close-button",onClick:()=>t(n.id),"aria-label":"Close notification",children:"Ã"})]},n.id))})]})},wke=` 2074 @keyframes tnt-spotlight-hint-scrim-in { 2075 from { opacity: 0; } 2076 to { opacity: 1; } 2077 } 2078 @keyframes tnt-spotlight-hint-card-in { 2079 0% { opacity: 0; transform: translateY(8px) scale(0.94); } 2080 100% { opacity: 1; transform: translateY(0) scale(1); } 2081 } 2082`,Cke="tnt-spotlight-hint-card-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both",Ike=({visible:e,eyebrow:t,ariaLabel:n,body:r,onDismiss:i,spotlightSelector:s})=>{const l=G.useRef(i);return l.current=i,G.useEffect(()=>{if(!e)return;const u=d=>{d.key==="Escape"&&l.current()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e]),G.useEffect(()=>{if(!e||!s)return;const u=d=>{const h=document.querySelector(s),m=d.target;h&&m&&h.contains(m)&&l.current()};return document.addEventListener("pointerdown",u,!0),()=>document.removeEventListener("pointerdown",u,!0)},[e,s]),e?c.jsxs(c.Fragment,{children:[c.jsx("style",{children:wke}),c.jsx("div",{onClick:()=>l.current(),style:{position:"fixed",inset:0,zIndex:"var(--z-index-spotlight-hint-scrim)",background:"rgba(8, 8, 12, 0.42)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",animation:"tnt-spotlight-hint-scrim-in 220ms ease-out both"}}),c.jsx("div",{style:{position:"fixed",inset:0,zIndex:"var(--z-index-spotlight-hint-card)",display:"flex",alignItems:"center",justifyContent:"center",padding:"24px",pointerEvents:"none"},children:c.jsxs("div",{role:"dialog","aria-modal":"true",tabIndex:-1,"aria-label":n,onClick:u=>u.stopPropagation(),style:{position:"relative",boxSizing:"border-box",pointerEvents:"auto",width:"max-content",maxWidth:"min(360px, calc(100vw - 48px))",background:"var(--text-default-primary)",color:"var(--surface-primary-default)",borderRadius:"var(--radius-x-large, 1rem)",boxShadow:"0 24px 60px rgba(0, 0, 0, 0.32), 0 6px 18px rgba(0, 0, 0, 0.24)",padding:"1.1rem 1.25rem",animation:Cke},children:[c.jsx("button",{type:"button",onClick:()=>l.current(),"aria-label":"Dismiss tip",style:{position:"absolute",top:"0.6rem",right:"0.6rem",width:"1.6rem",he
2082ight:"1.6rem",display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:"transparent",color:"var(--surface-primary-default)",opacity:.6,cursor:"pointer",borderRadius:"var(--radius-round, 999px)",padding:0,lineHeight:0},children:c.jsx("svg",{width:"13",height:"13",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:c.jsx("path",{d:"M1 1L11 11M11 1L1 11",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}),t&&c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.4rem",paddingRight:"1.4rem"},children:[c.jsx(Mk,{size:.95,animationType:"none"}),c.jsx("span",{style:{fontFamily:"var(--font-Inter)",fontWeight:"var(--weight-bold, 700)",fontSize:"0.72rem",letterSpacing:"0.07em",textTransform:"uppercase",color:cf},children:t})]}),c.jsx("div",{style:{fontFamily:"var(--font-Arizona-serif)",fontSize:"1.12rem",lineHeight:"1.4",paddingRight:"0.5rem"},children:r})]})})]}):null},sz=[{slug:"microservices-deployment-stack",component:HP},{slug:"deployment-workflow",component:UP},{slug:"tonita-mcp",component:qP}];sz.map(e=>e.slug);const kke=()=>{const{slug:e=""}=nm(),[t]=fq(),{isMobile:n}=We(),r=t.get("expanded")==="1",i=sz.find(s=>s.slug===e);if(!i||!zP(e))return c.jsx(Oj,{to:"/blog",replace:!0});if(n||r){const s=i.component;return c.jsx(s,{asNavButton:!1})}return c.jsx(zv,{})},Eke="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.56%2012.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26%201.37-1.04%202.53-2.21%203.31v2.77h3.57c2.08-1.92%203.28-4.74%203.28-8.09z'%20fill='%234285F4'/%3e%3cpath%20d='M12%2023c2.97%200%205.46-.98%207.28-2.66l-3.57-2.77c-.98.66-2.23%201.06-3.71%201.06-2.86%200-5.29-1.93-6.16-4.53H2.18v2.84C3.99%2020.53%207.7%2023%2012%2023z'%20fill='%2334A853'/%3e%3cpath%20d='M5.84%2014.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43%208.55%201%2010.22%201%2012s.43%203.45%201.18%204.93l2.85-2.22.81-.62z'%20fill='%23FBBC05'/%3e%3cpath%20d='M12%205.38c1.62%200%203.06.56%204.21%201.64l3.15-3.15C17.45%202.09%2014.97%201%2012%201%207.7%201%203.99%203.47%202.18%207.07l3.66%202.84c.87-2.6%203.3-4.53%206.16-4.53z'%20fill='%23EA4335'/%3e%3c/svg%3e",Tke="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='%23000000'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.05%2020.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24%200-1.44.62-2.2.44-3.06-.35C2.79%2015.25%203.51%207.59%209.05%207.31c1.35.07%202.29.74%203.08.8%201.18-.24%202.31-.93%203.57-.84%201.51.12%202.65.72%203.4%201.8-3.12%201.87-2.38%205.98.48%207.13-.57%201.5-1.31%202.99-2.54%204.09l.01-.01zM12.03%207.25c-.15-2.23%201.66-4.07%203.74-4.25.29%202.58-2.34%204.5-3.74%204.25z'/%3e%3c/svg%3e",Ake=e=>({container:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--spacing-2x-large, 2.5rem)",width:"100%"},buttonsContainer:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--spacing-small, 0.75rem)",width:"100%"},signInButton:{display:"flex",padding:"0.875rem 2rem",justifyContent:"center",alignItems:"center",gap:"0.5rem",borderRadius:"var(--radius-medium, 0.5rem)",background:"#FFFFFF",border:"1px solid #DADCE0",cursor:"pointer",color:"#3C4043",fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-medium, 1.125rem)",fontStyle:"normal",fontWeight:"500",lineHeight:"var(--line-height-large, 1.5rem)",letterSpacing:"-0.01rem",width:"20rem",transition:"transform 0.1s ease, box-shadow 0.1s ease"},footer:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--spacing-2x-small, 0.25rem)",textAlign:"center"},footerText:{color:e.textMuted,fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 0.875rem)",fontWeight:400,lineHeight:"var(--line-height-medium, 1.25rem)",transition:"color 0.3s ease"},footerLinks:{display:"flex",flexDirection:"row",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)"},footerLink:{color:e.textMuted,fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 0.875rem)",fontWeight:400,textDecoration:"underline",transition:"color 0.3s ease"},footerSeparator:{color:e.textMuted,fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-small, 0.875rem)",transition:"color 0.3s ease"}}),M9={onMouseDown:e=>{e.currentTarget.style.transform="scale(0.98)"},onMouseUp:e=>{e.currentTarget.style.transform="scale(1)"},onMouseLeave:e=>{e.currentTarget.style.transform="scale(1)"}},_ke=({onGoogle:e,onApple:t,disabled:n=!1,fill:r=!1})=>{const{colors:i}
2082=ze(),s=Ake(i),l=r?{...s.signInButton,width:"100%"}:s.signInButton;return c.jsxs("div",{style:s.container,children:[c.jsxs("div",{style:s.buttonsContainer,children:[c.jsxs("button",{onClick:e,disabled:n,style:l,...M9,children:[c.jsx("img",{src:Eke,alt:"",width:20,height:20}),"Continue with Google"]}),c.jsxs("button",{onClick:t,disabled:n,style:l,...M9,children:[c.jsx("img",{src:Tke,alt:"",width:20,height:20}),"Continue with Apple"]})]}),c.jsxs("div",{style:s.footer,children:[c.jsx("span",{style:s.footerText,children:"By signing in, you agree to our"}),c.jsxs("div",{style:s.footerLinks,children:[c.jsx(qd,{to:"/terms-of-service",style:s.footerLink,children:"Terms of Service"}),c.jsx("span",{style:s.footerSeparator,children:"·"}),c.jsx(qd,{to:"/privacy-policy",style:s.footerLink,children:"Privacy Policy"})]})]})]})},oz=e=>({container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",width:"100%",padding:"var(--spacing-large, 2rem)",backgroundColor:e.background,transition:"background-color 0.3s ease"},content:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--spacing-2x-large, 2.5rem)",maxWidth:"24rem",width:"100%"},logoContainer:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--spacing-medium, 1rem)"},logoRow:{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem"},logoIcon:{width:"2rem",height:"2rem",flexShrink:0},logoText:{width:"5.5rem",height:"1.5rem",flexShrink:0,filter:e.iconFilter,transition:"filter 0.3s ease"},tagline:{color:e.textSecondary,fontFamily:'var(--font-Arizona-sans, "ABC Arizona Sans Unlicensed Trial")',fontSize:"var(--size-medium, 1.125rem)",fontWeight:400,lineHeight:"var(--line-height-large, 1.5rem)",textAlign:"center",transition:"color 0.3s ease"}}),Rke=()=>{const{colors:e,isDark:t}=ze(),n=oz(e);return c.jsx("div",{style:n.container,children:c.jsxs("div",{style:n.content,children:[c.jsx("div",{style:n.logoContainer,children:c.jsxs("div",{style:n.logoRow,children:[c.jsx("img",{src:t?Pm:Mm,alt:"Tonita logo",style:n.logoIcon}),c.jsx("img",{src:Fv,alt:"Tonita",style:n.logoText})]})}),c.jsxs("div",{role:"status","aria-live":"polite","data-testid":"sign-in-settling",style:jke,children:[c.jsx(Cl,{size:1.25}),c.jsx("span",{style:n.tagline,children:"Signing you inâ¦"})]})]})})},jke={display:"flex",alignItems:"center",gap:"0.75rem",marginTop:"1.5rem"},Oke=()=>{const e=Bt(),{colors:t,isDark:n}=ze(),r=oz(t),{isGuest:i,userId:s,handleGoogleSignIn:l,handleAppleSignIn:u}=ek(),{isLoading:d}=ti(),[h,m]=k.useState(!1);k.useEffect(()=>{s&&!i&&e("/",{replace:!0})},[s,i,e]);const g=d||h||!!(s&&!i),y=async b=>{m(!0);try{await b()}finally{m(!1)}};return g?c.jsx(Rke,{}):c.jsx("div",{style:r.container,children:c.jsxs("div",{style:r.content,children:[c.jsxs("div",{style:r.logoContainer,children:[c.jsxs("div",{style:r.logoRow,children:[c.jsx("img",{src:n?Pm:Mm,alt:"Tonita logo",style:r.logoIcon}),c.jsx("img",{src:Fv,alt:"Tonita",style:r.logoText})]}),c.jsx("span",{style:r.tagline,children:"Your personal shopper for apparel"})]}),c.jsx(_ke,{onGoogle:()=>y(l),onApple:()=>y(u)})]})})},Lke=[{id:"women-matching-summer-sets-oversized-retro-001",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0293/9277/files/ST5530_Green_combo_JR_V2.jpg?v=1779990408&width=1000&height=1500&crop=center",placeholder:"womenâs matching sets with big retro florals - colorful, summery, and not too fussy",alt:"Retro floral sets"},{id:"women-scarf-tops-bold-silky-prints-002",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0352/1144/4364/files/niliii_Audrey-Silk-Cami-Black_Ivory-Paisley-Scarf-1.jpg?v=1747768275",placeholder:"silky printed scarf tops for women, something drapey for dinner or drinks",alt:"Scarf tops"},{id:"women-fringe-dress-lots-movement-003",category:"womens",imageUrl:"https://www.lulus.com/images/product/xlarge/11291681_2329131.jpg",placeholder:"womenâs fringe dresses with lots of movement, fun for a party but still easy to wear",alt:"Fringe dresses"},{id:"women-poplin-midi-skirts-subtle-fish-004",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0680/4619/2892/files/21wspr_t0748_ivo.jpg?v=1728689069",placeholder:"womenâs poplin midi skirts with little fish, shells, or other seaside prints - charming, not cheesy",alt:"Maritime midi skirts"},{id:"women-tropical-print-dress-005",category:"womens",imageUrl:"https://mauricesprodatg.scene7.com/is/image/mauricesProdATG/239485_C5487",placeholder:"a bold tropical-print dress for women that feels summery without going full vacation costume",alt:"Tropical print dresses"},{id:"women-beaded-mini-bags-bold-color-006",category:"others",imageUrl:"https://images.urb
2082ndata.com/is/image/Anthropologie/111395554_379_b",placeholder:"fun beaded mini bags for women - bright colors, great texture, and honestly a little impractical",alt:"Beaded mini bags"},{id:"women-dresses-intense-electric-blue-everyone-007",category:"womens",imageUrl:"https://is4.revolveassets.com/images/p4/n/uv/ELLI-WD629_V1.jpg",placeholder:"womenâs dresses in a really vivid electric blue, with a clean simple shape",alt:"Electric blue dresses"},{id:"women-dress-matching-set-big-graphic-008",category:"womens",imageUrl:"https://img.perniaspopupshop.com/catalog/product/s/w/SWSI1023121_1.JPG",placeholder:"womenâs dresses or matching sets with big graphic polka dots - playful, but grown-up",alt:"Oversized polka dots"},{id:"girls-summer-dresses-bright-fruit-prints-009",category:"kids",imageUrl:"https://cdn.shopify.com/s/files/1/0357/5769/files/D_49920242-7985-4989-b40e-22e4ba92ae41.jpg?v=1762200868",placeholder:"girlsâ summer dresses with cheerful fruit prints and cute sleeves, minus the glitter explosion",alt:"Fruit-print dresses"},{id:"women-crochet-tops-light-beachy-010",category:"womens",imageUrl:"https://images.urbndata.com/is/image/FreePeople/107215550_054_g",placeholder:"light crochet tops for women that work over a tank or swimsuit",alt:"Crochet tops"},{id:"women-summer-dresses-chartreuse-sharp-yellow-011",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0253/4801/4128/files/T1782403-Lime_Texture-4.jpg?v=1706835009",placeholder:"a womenâs summer dress in chartreuse or a sharp yellow-green - let the color do the work",alt:"Chartreuse dresses"},{id:"women-bubble-hem-dresses-playful-architectural-012",category:"womens",imageUrl:"https://images.urbndata.com/is/image/Anthropologie/105380976_060_m",placeholder:"cute bubble-hem dresses for women with a good shape, but nothing costume-y",alt:"Bubble-hem dresses"},{id:"women-drop-waist-dresses-relaxed-current-013",category:"womens",imageUrl:"https://s7d2.scene7.com/is/image/nu/109421321_041_b",placeholder:"easy womenâs drop-waist dresses, ideally in a great bright summer color",alt:"Drop-waist dresses"},{id:"women-tassel-earrings-color-movement-014",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0266/8855/3034/products/petal-and-pup-usa-accessories-eloise-tassel-earrings-gold-orange-one-size-33210088194225.jpg?v=1676011212",placeholder:"colorful tassel earrings for women, something with enough movement to stand out",alt:"Tassel earrings"},{id:"women-raffia-tote-bags-relaxed-vacation-015",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0565/1234/8333/files/Raffia-Isla-Bag_1.jpg?v=1762183818",placeholder:"a roomy raffia tote for women with a relaxed vacation feel - enough space for a book, sunscreen, and the rest",alt:"Raffia totes"},{id:"women-matching-linen-sets-put-together-016",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415637287_RLLZ_1.jpg?v=1776507058",placeholder:"womenâs matching linen sets that make getting dressed feel basically effortless",alt:"Linen matching sets"},{id:"men-soccer-jerseys-vintage-throwback-017",category:"mens",imageUrl:"https://images.puma.com/image/upload/f_auto,q_auto,b_rgb:fafafa,w_2000,h_2000/global/784731/01/mod01/fnd/PNA/fmt/png/AC-Milan-KING-Retro-Men's-Soccer-Jersey",placeholder:"menâs vintage-style soccer jerseys that look cool as regular streetwear",alt:"Vintage soccer jerseys"},{id:"men-terry-cloth-shirt-short-sets-018",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/0167/1180/files/MAVERICK-GREEN-BAY-GRID-1-633B-995C-8638.jpg?v=1780591899",placeholder:"menâs terry shirt-and-short sets with a relaxed resort vibe, maybe in a rich unexpected color",alt:"Terry cloth sets"},{id:"girls-lightweight-crochet-cardigans-vests-019",category:"kids",imageUrl:"https://cdn.shopify.com/s/files/1/0371/9636/5963/files/13_136e881b-85a4-4633-8913-7b8dbc671258.jpg?v=1758616094",placeholder:"girlsâ crochet cardigans or vests in fun colors, light enough for summer",alt:"Crochet layers"},{id:"boys-retro-style-soccer-shirts-shorts-020",category:"kids",imageUrl:"https://assets.adidas.com/images/w_500,f_auto,q_auto/4d56d4e730b34d0684da383b31e96841_9366/Manchester_United_Stone_Roses_Jersey_Kids_Multicolor_KB4389_41_detail.jpg",placeholder:"boysâ retro soccer kits that look cool even when nobodyâs headed to practice",alt:"Retro soccer kits"},{id:"women-swimsuits-cheerful-colors-prints-021",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0966/8617/8583/files/900050203_Eden_Bailey1Pc_EDN_F.jpg?v=1772470321",placeholder:"womenâs swimsuits in bright colors or fun prints, flattering and not overdesigned",alt:"Colorful swimsuits"},{id:"girls-sporty-matching-sets-soft-pastel-022",category:"kids",imageUrl:"https://cdn.shopify.com/s/files/1/0444/9505/files/4x3-79_85bdb3c4-4829-4353-8978-576ea8030853.jpg?v=1777576625",placeholder:"girlsâ pastel sporty sets that are comfortable for playing but still cute enough to wear out",alt:"Pastel sport sets"},{id:"men-camp-collar-shirts-interesting-prints-023",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/0359/8357/files/SU25-FAHERTY-Mens-MWF2511-AKI-SSResortShirt-CedarLakeIkat-X_OM_FRONT_CROP_
20821.jpg?v=1754067216",placeholder:"menâs camp-collar shirts with interesting prints or texture - good for weekends and summer dinners",alt:"Camp-collar shirts"},{id:"boys-camp-collar-shirts-playful-summer-024",category:"kids",imageUrl:"https://img.perniaspopupshop.com/catalog/product/m/i/MIKO042411_1.jpg",placeholder:"boysâ camp shirts with fun summer prints that donât look too little-kid",alt:"Printed camp shirts"},{id:"girls-metallic-sandals-fun-special-sturdy-025",category:"kids",imageUrl:"https://cdn.shopify.com/s/files/1/0028/1945/7082/files/116257__copy_1.jpg?v=1782941258",placeholder:"girlsâ metallic sandals that feel special but can still survive a real day of walking",alt:"Metallic sandals"},{id:"boys-chunky-sneakers-bold-summer-colors-026",category:"kids",imageUrl:"https://images.puma.com/image/upload/f_auto,q_auto,b_rgb:fafafa,w_2000,h_2000/global/406011/01/mod01/fnd/PNA/fmt/png/PUMA-x-JURASSIC-WORLD-Inverse-Big-Kids'-Sneakers",placeholder:"bold chunky sneakers for boys - bright summer colors and comfortable enough to run around in",alt:"Bright chunky sneakers"},{id:"women-silk-bandanas-vivid-prints-027",category:"others",imageUrl:"https://images.urbndata.com/is/image/FreePeople/111325585_030_c",placeholder:"womenâs silk bandanas in vivid prints, for the neck, hair, wrist, or wherever",alt:"Silk bandanas"},{id:"women-spiral-earrings-bracelets-sculptural-028",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0603/2094/0289/files/B1772517092608_e4ebdb58-80e2-4282-87e2-caf8fb5e0e75.jpg?v=1773809231",placeholder:"sculptural spiral earrings or bracelets for women that can wake up a plain outfit",alt:"Spiral jewelry"},{id:"women-balloon-leg-trousers-lightweight-fabric-029",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0272/1615/0621/files/IMG_0441.jpg?v=1753222156",placeholder:"womenâs balloon-leg pants in a light fabric, roomy with a cool shape but not costume-y",alt:"Balloon trousers"},{id:"women-peplum-tops-clean-modern-shape-030",category:"womens",imageUrl:"https://dimg.dillards.com/is/image/DillardsZoom/main/donna-karan-structured-city-double-knit-crew-neck-short-sleeve-peplum-blouse/00000000_zi_101c678b-5f0c-44ae-8e0b-da9a14585c3a.jpg",placeholder:"womenâs peplum tops with a clean modern shape - definitely not the fussy 2015 version",alt:"Modern peplum tops"},{id:"women-puff-skirts-playful-shape-031",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta-Yellow-Polka-Dot-Bubble-Hem-Mini-Skirt_20260209_NL_1.webp?v=1776207195",placeholder:"fun puff skirts for women that look great with a plain tank and flat sandals",alt:"Puff skirts"},{id:"women-striped-boxer-short-sets-matching-032",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0536/7955/4723/files/DSC_9340_aff4653c-09eb-4d87-9ba9-4d829ddff48c.jpg?v=1779118523",placeholder:"womenâs striped boxer-short sets with a matching shirt - breezy and a little pajama-ish, in a good way",alt:"Boxer short sets"},{id:"women-sheer-dresses-skirts-designed-layering-033",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0875/9364/8425/files/826A3F53-A0C4-40EC-AF4C-35527999A5BC__63963.1695732623.1280.1280.jpg?v=1767800774",placeholder:"sheer summer dresses or skirts for women that are meant to be layered",alt:"Sheer summer layers"},{id:"women-tasseled-beaded-belts-make-plain-034",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0467/4148/7783/files/acc2833_mix_06-07-2610.jpg?v=1784121041",placeholder:"a tasseled or beaded belt for women that makes a basic linen dress more interesting",alt:"Tassel belts"},{id:"women-woven-sandals-summery-interesting-comfortable-035",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_09_SHOE_NATASHA-Natural_3-01-2025_2697.jpg?v=1740680302",placeholder:"woven summer sandals for women that look special and are still comfortable for walking",alt:"Woven summer sandals"},{id:"men-open-knit-crochet-shirts-airy-036",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/1479/8488/files/PERCIVAL_MENSWEAR1_15a6aaca-2337-4331-854d-13688a05c719.jpg?v=1775647037",placeholder:"menâs open-knit or crochet shirts - airy, textured, and easy over a tank",alt:"Open-knit shirts"},{id:"women-dress-summer-wedding-037",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_07_DRESS_DI7881VC-RUST_7-12-2025_1222.jpg?v=1752174618",placeholder:"a womenâs summer-wedding dress that looks festive and wonât be miserable at an outdoor ceremony",alt:"Summer wedding dresses"},{id:"women-sundresses-cheerful-easy-038",category:"womens",imageUrl:"https://www.lulus.com/images/product/xlarge/13564386_2624931.jpg",placeholder:"easy womenâs sundresses for picnics, outdoor lunches, or a lazy summer weekend",alt:"Picnic sundresses"},{id:"women-sleeveless-jumpsuits-comfortable-summer-sharp-039",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0549/4895/4134/files/DAT-BI-20251120_SPANX_SP26_22387R-VeryBlack_Editorial_007_cropped.jpg?v=1770250967",placeholder:"womenâs sleeveless jumpsuits that stay comfortable in the heat and still work for dinner",alt:"Sleeveless jumpsuits"},{id:"women-straw-hat-coverage-long-afternoons-040",category:"others",imageUrl:"https://www2.assets-gap.com/webcontent/0061/811/576/cn61811576.jpg",placeholder:"a womenâs straw hat with real sun coverage that still looks good",alt:"Straw sun hats"},{id:"women-beach-cover-up-breezy-041",category:"others",imageUrl:"https://www.monsoonlondon.com/dw/image/v2/BDLV_PRD/on/demandware.static/-/Sites-monsoon-master-catalog/default/dw769af20c/images/large/21_24005460006_6.jpg?sw=663&sh=848&sm=cut",placeholder:"a breezy womenâs beach cover-up that packs easily and isnât completely see-through",alt:"Lightweight cover-ups"},{id:"women-tankinis-sleek-modern-cut-042",category:"womens",imageUrl:"https://cdn-review.cupshe.com/cmc-admin/product/20250806/d132ca88115fea04da79ce52a84514ae.jpg",placeholder:"modern tankinis for women with a clean, flattering cut",alt:"Modern tankinis"},{id:"women-wedge-flip-flops-90s-walkable-043",category:"others",imageUrl:"https://images.asos-media.com/products/crocs-getaway-platform-flip-flops-in-quartz/210158969-1-quartz",placeholder:"womenâs wedge flip-flops with a little â90s energy, as long as theyâre actually walkable",alt:"Wedge flip-flops"},{id:"boys-lightweight-color-block-windbreakers-throwback-044",category:"kids",imageUrl:"https://cdn.shopify.com/s/files/1/0515/0205/products/antora_led_yellow_2_led_yellow.jpg?v=1677262754",placeholder:"boysâ color-block windbreakers with a fun throwback look for breezy or rainy summer days",alt:"Color-block windbreakers"},{id:"boys-terry-cloth-matching-sets-045",category:"kids",imageUrl:"https://cdn.shopify.com/s/files/1/0268/0854/9559/files/1
2082709063370546016_001.jpg?v=1778901181",placeholder:"boysâ terry matching sets - soft, beachy, and nice enough for a family outing",alt:"Terry cloth outfits"},{id:"men-striped-rugby-shirts-old-school-046",category:"mens",imageUrl:"https://brooksbrothers.bynder.com/match/WebName/MP01667_GREEN-MULTI/COTTON_CLASSIC_STRIPED_RUGBY_SHIRT_GREEN_MULTI?preset=lg",placeholder:"menâs striped rugby shirts with a roomy old-school look, colorful without feeling country-club",alt:"Striped rugby shirts"},{id:"women-espadrilles-classic-summer-047",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0761/8763/1916/files/W01ODSEEB08_Womens_Espadrilles_The_Original_Seersucker_Classic_Blue_2.png?v=1775025727",placeholder:"womenâs espadrilles with that classic summer look, comfortable enough to wear for a few hours",alt:"Summer espadrilles"},{id:"women-floral-summer-dresses-048",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0559/0604/2027/files/208399_ORGFL_7.jpg?v=1748145327",placeholder:"light, cheerful floral dresses for women - easy for sunny weekends",alt:"Floral summer dresses"},{id:"women-linen-button-down-shirts-049",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/2030/0075/files/71-JAMESON-CMTL-EILEEN-WHL-Milan-Dixon-24SP_6968_sRGB_3435cbc7-258f-4304-95a3-909f4592b95c.jpg?v=1744654609",placeholder:"relaxed womenâs linen button-downs for hot afternoons",alt:"Linen button-down shirts"},{id:"women-light-denim-jackets-050",category:"womens",imageUrl:"https://s7d2.scene7.com/is/image/aeo/0381_3769_915_l1?$pdp-md-opt$&fmt=jpeg",placeholder:"a light denim jacket for women to throw over dresses or tees when summer nights cool off",alt:"Light denim jackets"},{id:"women-pastel-sneakers-051",category:"others",imageUrl:"https://images.asos-media.com/products/puma-suede-xl-sneakers-in-light-pink-and-white/206060370-1-lightpink?$n_1920w$&wid=1926&fit=constrain",placeholder:"womenâs everyday sneakers in soft pastel colors",alt:"Pastel sneakers"},{id:"women-summer-midi-skirts-052",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0061/8627/0804/files/6-modelinfo-india-us4_836a3c0b-470b-4ab1-aa12-068dfb2d8113.jpg?v=1756207618",placeholder:"light womenâs midi skirts that move nicely and donât feel heavy in summer",alt:"Summer midi skirts"},{id:"women-lightweight-cardigans-053",category:"womens",imageUrl:"https://yalnewyork.com/image/cache/catalog/SPRING26/K5347-Blue/K5347-Blue-2-460x644.webp",placeholder:"womenâs light cardigans for c
2082ool evenings and freezing air-conditioned rooms",alt:"Lightweight cardigans"},{id:"women-crisp-white-blouses-054",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0359/8357/files/SP25-FAHERTY-WOMENS-WTU2521-WHT-PalmaLinenAveryTop-White_OM_FRONT_CROP_1.jpg?v=1750357997",placeholder:"crisp white blouses for women that still feel breathable in summer",alt:"Crisp white blouses"},{id:"women-summer-garden-party-dresses-055",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/1132/5272/files/Madeline2_7c6b73c7-87f7-4b76-8cba-84c6652ddfd6.jpg?v=1756384934",placeholder:"womenâs dresses for a summer garden party or outdoor brunch - pretty, easy, and not too formal",alt:"Garden-party dresses"},{id:"women-canvas-tote-bags-056",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0169/5130/files/tradlandspgpvacationlandcanvaszippertote01.jpg?v=1753641975",placeholder:"roomy womenâs canvas totes for farmers markets, errands, or a beach day",alt:"Canvas tote bags"},{id:"women-relaxed-linen-pants-057",category:"womens",imageUrl:"https://cottonon.com/dw/image/v2/BBDS_PRD/on/demandware.static/-/Sites-catalog-master-women/default/dw389cc2b4/2056694/2056694-47-2.jpg?sw=1200&sh=1800&sm=fit",placeholder:"breezy womenâs linen pants for seriously hot days",alt:"Relaxed linen pants"},{id:"women-light-summer-sweaters-058",category:"womens",imageUrl:"https://images.urbndata.com/is/image/FreePeople/103759296_040_a/?$a15-pdp-detail-shot$&fit=constrain&qlt=80&wid=1314",placeholder:"light womenâs sweaters for coastal evenings or cold indoor spaces",alt:"Light summer sweaters"},{id:"women-straw-sun-hats-059",category:"others",imageUrl:"https://media.cupshe.com/cdn-review.cupshe.com/cmc-admin/product/20260107/0e17c2bee4ca0839344e967d9bb16e42.jpg?speedsize=mxw_900",placeholder:"stylish straw hats for women with enough shade for a long sunny day",alt:"Straw sun hats"},{id:"women-floral-maxi-dresses-060",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0065/7650/4896/files/Spring_129_Front_011_2_249c0a08-c135-4c91-a464-e86629535a43.jpg?v=1752252290",placeholder:"flowy floral maxi dresses for women, easy and comfortable for summer",alt:"Floral maxi dresses"},{id:"women-cropped-lightweight-jackets-061",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0268/9027/2823/files/PROD_12-12-25_LM_59494_227022_218730.png?v=1767629549",placeholder:"cropped lightweight jackets for women that add some shape on cooler summer nights",alt:"Cropped lightweight jackets"},{id:"women-cotton-poplin-shirts-062",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0295/5521/files/WS086-3716-WHITE-GREEN-WJ145-3304-VINTAGE-KHAKI-54558.jpg?v=1768602064",placeholder:"crisp womenâs cotton poplin shirts that are easy to wear in the heat",alt:"Cotton poplin shirts"},{id:"women-summer-workout-sets-063",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0087/8759/1268/files/BraandShortsRibbedSeamlessActivewearSet_14.jpg?v=1704356686",placeholder:"womenâs workout sets in fresh bright colors, made for hot-weather exercise",alt:"Summer workout sets"},{id:"women-lightweight-summer-scarves-064",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0816/2240/1321/files/edit-00819.jpg?v=1715326806",placeholder:"light summer scarves for women that add color without adding much warmth",alt:"Lightweight summer scarves"},{id:"women-platform-sneakers-065",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0634/6335/8721/products/2o8IRWrbJtcuJtGZ2iVEcScrWoiEAVki-24.jpg?v=1682834780",placeholder:"womenâs platform sneakers that feel fun with casual summer outfits",alt:"Platform sneakers"},{id:"women-weekend-sundresses-066",category:"womens",imageUrl:"https://media.cupshe.com/cdn-review.cupshe.com/cmc-admin/product/20260205/569b5db449272bab8232bb202c0d7a16.jpg?speedsize=mxw_900",placeholder:"easy womenâs sundresses for warm weekends",alt:"Weekend sundresses"},{id:"women-summer-rain-boots-067",category:"others",imageUrl:"https://xcdn.next.co.uk/common/items/default/default/itemimages/3_4Ratio/product/lge/V29370s5.jpg?im=Resize,width=750",placeholder:"cute womenâs rain boots for puddles and sudden summer storms",alt:"Summer rain boots"},{id:"women-lightweight-lounge-sets-068",category:"womens",imageUrl:"https://mediahub.nastygal.com/hzz43942_taupe_xl?qlt=70&
2082w=549&ssz=true&dpr=1",placeholder:"lightweight lounge sets for women that are comfortable without looking like pajamas",alt:"Lightweight lounge sets"},{id:"women-pleated-tennis-skirts-069",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0832/9927/0955/files/core-rally-skort-pannacottaskort-4041374.jpg?v=1755044058",placeholder:"womenâs pleated tennis skirts - sporty, breezy, and fun for summer",alt:"Pleated tennis skirts"},{id:"women-breezy-wrap-dresses-070",category:"womens",imageUrl:"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415543141_RLLZ_1.jpg?v=1770234442",placeholder:"light wrap dresses for women that work for brunch, dinner, or a date",alt:"Breezy wrap dresses"},{id:"women-casual-linen-blazers-071",category:"womens",imageUrl:"https://cdn.media.amplience.net/i/rb/RA0T26S4MTA-988-A/Chappell-Plaid-Linen-Blazer-988?$small$&fmt=auto",placeholder:"womenâs linen blazers that look polished without feeling stiff or heavy",alt:"Casual linen blazers"},{id:"men-lightweight-oxford-shirts-072",category:"mens",imageUrl:"https://calvinklein.scene7.com/is/image/CalvinKlein/4RF188G_PEZ_main",placeholder:"light menâs Oxford shirts that stay crisp without being too warm",alt:"Lightweight Oxford shirts"},{id:"men-lightweight-bomber-jackets-073",category:"mens",imageUrl:"https://cdn.media.amplience.net/i/rb/RV7926S0MNY-036-A/Manston-Bomber-Jacket-036?$small$&fmt=auto",placeholder:"menâs lightweight bomber jackets for breezy mornings and cooler evenings",alt:"Lightweight bomber jackets"},{id:"men-casual-summer-sneakers-074",category:"others",imageUrl:"https://cdn.shopify.com/s/files/1/0857/5906/6410/files/Mainimage_09_f9664af4-88cc-4e48-a5bc-262ac5c6b8ee.webp?v=1758744380",placeholder:"clean everyday sneakers for men that work all summer",alt:"Casual summer sneakers"},{id:"men-linen-short-sleeve-shirts-075",category:"mens",imageUrl:"https://www.jcrew.com/s7-img-facade/CH600_NA6445_m?hei=1950&crop=0,0,1560,0",placeholder:"menâs short-sleeve linen shirts for when itâs properly hot outside",alt:"Linen short-sleeve shirts"},{id:"men-summer-chinos-076",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/0123/5065/2473/files/LOOK_6_Japanese-Twill_Belted-Back_Chore_Jacket-BM14128.1070NAT-JAN_01079_R2_2.jpg?v=1768755281&format=webp&width=1800&height=1800",placeholder:"lightweight menâs chinos that look sharp but still feel easy on summer weekends",alt:"Summer chinos"},{id:"men-cotton-crewneck-sweaters-077",category:"mens",imageUrl:"https://cdn.media.amplience.net/i/rb/RH1825H6MCO-105-A/Tristan-Cricket-Sweater-105?$small$&fmt=auto",placeholder:"menâs cotton crewneck sweaters for cool coastal nights or over-air-conditioned places",alt:"Cotton crewneck sweaters"},{id:"men-weekend-polo-shirts-078",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/0359/8357/files/FA25-Faherty-Mens-MKF2527-DUI-Ls_Movement_Pique_Polo-Dusty_Iron_Heather_OM_FRONT_CROP_1_Web.jpg?v=1765216326",placeholder:"breathable menâs polos that are comfortable but still look put together",alt:"Weekend polo shirts"},{id:"men-lightweight-windbreakers-079",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/0218/9988/products/m_meridian_jacket_nn_01.jpg?v=1661885209&width=2560&height=3328&crop=center",placeholder:"menâs packable windbreakers for breezy days and summer travel",alt:"Lightweight windbreakers"},{id:"men-canvas-slip-on-shoes-080",category:"others",imageUrl:"https://xcdn.next.co.uk/common/items/default/default/itemimages/3_4Ratio/product/lge/W37915s6.jpg?im=Resize,width=750",placeholder:"easy menâs canvas slip-ons for warm-weather everyday wear",alt:"Canvas slip-on shoes"},{id:"men-casual-overshirts-081",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/0253/4801/4128/files/T2241304-Barley-1.jpg?v=1752521485",placeholder:"light menâs overshirts to throw over a tee after the sun goes down",alt:"Casual overshirts"},{id:"men-lightweight-joggers-082",category:"mens",imageUrl:"https://s7d2.scene7.com/is/image/aeo/2123_4925_256_of?$pdp-md-opt$&fmt=jpeg",placeholder:"menâs lightweight joggers for flights, errands, or a laid-back summer day",alt:"Lightweight joggers"},{id:"men-seersucker-shirts-083",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/0620/3700/0291/files/23A042504_OCR_OM-F.jpg?v=1764585293",placeholder:"classic menâs seersucker shirts that actually make sense in hot weather",alt:"Seersucker shirts"},{id:"men-knit-polos-084",category:"mens",imageUrl:"https://cdn.shopify.com/s/files/1/2185/2813/files/M3310R_01_b1_s1_a2_m198.jpg?v=1762934262",placeholder:"menâs lightweight knit polos - a little nicer than a regular polo, still relaxed",alt:"Knit polos"},{id:"kids-summer-rain-jackets-085",category:"kids",imageUrl:"https://assets.adidas.com/images/h_840,f_auto,q_auto,fl_lossy,c_fill,g_auto/430095f6e977485ea10c307901791fb6_9366/adidas_Minecraft_Terrex_2_Layer_Climaproof_Rain_Jacket_Green_JY2438_20_01_model.jpg",placeholder:"kidsâ colorful lightweight rain jackets for sudden summer downpours",alt:"Kidsâ summer rain jackets"},{id:"kids-rain-boots-086",category:"kids",imageUrl:"https://xcdn.next.co.uk/common/items/default/default/itemimages/3_4Ratio/product/lge/V27762s5.jpg?im=Resize,width=750",placeholder:"kidsâ rain boots for warm-weather puddle jumping",alt:"Kidsâ rain boots"},{id:"kids-summer-dresses-087",category:"kids",imageUrl:"https://cdn11.bigcommerce.com/s-wn2v0pw28v/images/stencil/1280x1280/products/29692/3418719/wxct09gajtjoyx5iz3ng__54005.1737775164.jpg?c=1",placeholder:"kidsâ summer dresses with bright prints and breathable fabric",alt:"Kidsâ summer dresses"},{id:"kids-denim-jackets-088",category:"kids",imageUrl:"https://oldnavy.gap.com/webcontent/0059/429/231/cn59429231.jpg",placeholder:"kidsâ denim jackets for cooler evenings over a T-shirt",alt:"Kidsâ denim jackets"},{id:"kids-graphic-hoodies-089",category:"kids",imageUrl:"https://cdn.shopify.com/s/files/1/0293/9277/files/11-19-25_S2_9_GH250002_HeatherGrey_ZSR_AF_AA_11-15-38_16407_SKS.jpg?v=1763758302&width=1200&height=1800&crop=center",placeholder:"kidsâ lightweight graphic hoodies for camp, travel, or breezy nights",alt:"Kidsâ graphic hoodies"},{id:"kids-canvas-sneakers-090",category:"kids",imageUrl:"https://xcdn.next.co.uk/common/items/default/default/itemimages/3_4Ratio/product/lge/B70338s5.jpg?im=Resize,width=750",placeholder:"kidsâ canvas sneakers they can run around in all summer",alt:"Kidsâ canvas sneakers"},{id:"kids-baseball-caps-091",category:"kids",imageUrl:"https://slimages.macysassets.com/is/image/MCY/products/6/optimized/32540446_fpx.tif",placeholder:"kidsâ baseball caps for camp, playground days, and family outings",alt:"Kidsâ baseball caps"},{id:"kids-striped-tees-092",category:"kids",imageUrl:"https://cdn.shopify.com/s/files/1/0630/4999/0366/products/RtVkIciBxxbXot9KaAUdOPXijxUmIPBt-1.jpg?v=1710439768",placeholder:"cheerful striped T-shirts for kids - simple, classic, easy",alt:"Kidsâ striped tees"},{id:"kids-sporty-shorts-093",category:"kids",imageUrl:"https://oldnavy.gap.com/webcontent/0061/782/211/cn61782211.jpg",placeholder:"kidsâ athletic shorts for running around outside in hot weather",alt:"Kidsâ sporty shorts"},{id:"kids-lightweight-cardigans-094",category:"kids",imageUrl:"https://jcpenney.scene7.com/is/image/JCPenney/DP0716202511124107M?hei=550&wid=550&op_usm=.4%2C.8%2C0%2C0&resmode=sharp2&op_sharpen=1",placeholder:"light kidsâ cardigans for c
2082ool mornings or freezing indoor spaces",alt:"Kidsâ lightweight cardigans"},{id:"kids-colorful-leggings-095",category:"kids",imageUrl:"https://content.gapinc.com/b/0061/865/787/cn61865787.png?width=258",placeholder:"bright lightweight leggings for kids, good for play, travel, or cooler days",alt:"Kidsâ colorful leggings"},{id:"kids-summer-sandals-096",category:"kids",imageUrl:"https://m.media-amazon.com/images/I/71WJ+Lk9j+L._AC_SR1840,1472_.jpg",placeholder:"sturdy kidsâ sandals for playgrounds and long summer days",alt:"Kidsâ summer sandals"}],Dke={"women-matching-summer-sets-oversized-retro-001":{brand:"FARM RIO ACTIVE",productTitle:"Multicolor Beaches Path Drawstring Shorts",price:"$148"},"women-scarf-tops-bold-silky-prints-002":{brand:"Nili Lotan",productTitle:"Audrey Silk Cami Black/Ivory Paisley Scarf",price:"$450"},"women-fringe-dress-lots-movement-003":{brand:"BB Exclusive",productTitle:"Jordy Button Halter Neck Mini Dress",price:"$89.99"},"women-poplin-midi-skirts-subtle-fish-004":{brand:"Boden",productTitle:"Livia Full Skirt-Ivory Nautical Voyage",price:"$108"},"women-tropical-print-dress-005":{brand:"maurices",productTitle:"Plus Size Bare Tropical Print Notch Neck Dress",price:"$17.98",rating:5,reviewCount:3},"women-beaded-mini-bags-bold-color-006":{brand:"BEAU MONDE",productTitle:"Green Faux Leather & Satin Potli",price:"$104"},"women-dresses-intense-electric-blue-everyone-007":{brand:"ELLIATT",productTitle:"Picturesque Dress",price:"$300",rating:3.4,reviewCount:13},"women-dress-matching-set-big-graphic-008":{brand:"Swatee Singh",productTitle:"Black & White Georgette Polka Dress",price:"$184"},"girls-summer-dresses-bright-fruit-prints-009":{brand:"Cheeky Plum",productTitle:"Stella Dress - Lemon Twist",price:"$19.99"},"women-crochet-tops-light-beachy-010":{brand:"Free People",productTitle:"Take Me To The Beach Top",price:"$60"},"women-summer-dresses-chartreuse-sharp-yellow-011":{brand:"Toad&Co",productTitle:"Dandelion Midi Dress",price:"$98"},"women-bubble-hem-dresses-playful-architectural-012":{brand:"Anthropologie",productTitle:"Fastpack Bubble-Hem Midi Dress",price:"$24.95",rating:4,reviewCount:1},"women-drop-waist-dresses-relaxed-current-013":{brand:"Nuuly",productTitle:"Eyelet Drop Waist Midi Dress",price:"$380"},"women-tassel-earrings-color-movement-014":{brand:"Petal & Pup",productTitle:"Eloise Tassel Earrings - Gold/Orange",price:"$19"},"women-raffia-tote-bags-relaxed-vacation-015":{brand:"Jenni Kayne",productTitle:"Raffia Isla Bag",price:"$245"},"women-matching-linen-sets-put-together-016":{brand:"Enjoy Petra",productTitle:"Enjoy Petra 2Pc Top & Short Set",price:"$83.99"},"men-soccer-jerseys-vintage-throwback-017":{brand:"PUMA",productTitle:"AC Milan Men's Soccer Warmup Jersey",price:"$65"},"men-terry-cloth-shirt-short-sets-018":{brand:"RAILS",productTitle:"MAVERICK SHIRT - GREEN BAY GRID",price:"$168"},"girls-lightweight-crochet-cardigans-vests-019":{brand:"The Cottagecore",productTitle:"Hand Crocheted Wool Cardigan",price:"$69.99"},"boys-retro-style-soccer-shirts-shorts-020":{brand:"adidas",productTitle:"Manchester United Stone Roses Jersey",price:"$90"},"women-swimsuits-cheerful-colors-prints-021":{brand:"Mimi Flamingo",productTitle:"Bailey One Piece - Eden",price:"$129"},"girls-sporty-matching-sets-soft-pastel-022":{brand:"SweetHoney",productTitle:"Ribbed Motion Set - Cotton Candy Splash",price:"$40"},"men-camp-collar-shirts-interesting-prints-023":{brand:"Faherty",productTitle:"Short-Sleeve Resort Shirt",price:"$51.80"},"boys-camp-collar-shirts-playful-summer-024":{brand:"Miko Lolo",productTitle:"Blue Organic Cotton Printed Shirt",price:"$42"},"girls-metallic-sandals-fun-special-sturdy-025":{brand:"Rocket Dog®",productTitle:"Aloha Natural Multi Flip Flops",price:"$44.95"},"boys-chunky-sneakers-bold-summer-colors-026":{brand:"Coolway",productTitle:"Nilo Motion Flux",price:"$100"},"women-silk-bandanas-vivid-prints-027":{brand:"Free People",productTitle:"FP x Matthew Williamson So Silk Bandana",price:"$48"},"women-spiral-earrings-bracelets-sculptural-028":{brand:"COMMENSE",productTitle:"Spiral Spring Coil Cuff Bracelet",price:"$12"}
2082,"women-balloon-leg-trousers-lightweight-fabric-029":{brand:"Meo Meli",productTitle:"Barrel Linen Pants",price:"$99"},"women-peplum-tops-clean-modern-shape-030":{brand:"Ramy Brook",productTitle:"Ramy Brook Amiel Sweater",price:"$58.99"},"women-puff-skirts-playful-shape-031":{brand:"BB Exclusive",productTitle:"Henrietta Yellow Polka Dot Bubble Hem Mini Skirt",price:"$69.99"},"women-striped-boxer-short-sets-matching-032":{brand:"Betsey's Boutique Shop",productTitle:"Mixed Stripe Button Set",price:"$88"},"women-sheer-dresses-skirts-designed-layering-033":{brand:"Velvi",productTitle:"Georgia Maxi Dress - Smoky Blue - Ruffle Tulle Dress With Sheer Detail",price:"$89"},"women-tasseled-beaded-belts-make-plain-034":{brand:"Edikted",productTitle:"Mixed Bead Cord Belt",price:"$24"},"women-woven-sandals-summery-interesting-comfortable-035":{brand:"VICI",productTitle:"Selenah Woven Raffia Flat Sandals",price:"$64"},"men-open-knit-crochet-shirts-airy-036":{brand:"Percival",productTitle:"Freddie Crochet Boxy Shirt",price:"£150"},"women-dress-summer-wedding-037":{brand:"VICI",productTitle:"Citrus Serenade Fringe Mini Dress",price:"$84"},"women-sundresses-cheerful-easy-038":{brand:"Cupshe",productTitle:"Out All Night Striped Mini Dress",price:"$27"},"women-sleeveless-jumpsuits-comfortable-summer-sharp-039":{brand:"Kimberly C",productTitle:"Out And About Black Active Onesie",price:"$58"},"women-straw-hat-coverage-long-afternoons-040":{brand:"Old Navy",productTitle:"Fit & Flare Smocked-Waist Midi Dress",price:"$49.99"},"women-beach-cover-up-breezy-041":{brand:"Monsoon",productTitle:"Yasmin Floral Print Mini Kaftan",price:"$66"},"women-tankinis-sleek-modern-cut-042":{brand:"Kenny Flowers",productTitle:"The Nantucket - High Waist Bikini Bottom",price:"$72"},"women-wedge-flip-flops-90s-walkable-043":{brand:"Crocs",productTitle:"Getaway platform flip flops in quartz",price:"$78",rating:3.5,reviewCount:83},"boys-lightweight-color-block-windbreakers-throwback-044":{brand:"North Face",productTitle:"Kids Rain Jacket Antora LED Yellow",price:"$104"},"boys-terry-cloth-matching-sets-045":{brand:"Rainbow Shops",productTitle:"Terry Cloth Checkered Top and Shorts",price:"$17.99"},"men-striped-rugby-shirts-old-school-046":{brand:"Levi Strauss & Co.",productTitle:"555⢠Relaxed Straight Men's Jeans",price:"$98"},"women-espadrilles-classic-summer-047":{brand:"Soludos",productTitle:"Women's Original Espadrille",price:"$65"},"women-floral-summer-dresses-048":{brand:"ModCloth",productTitle:"Twists Tendrils Overall Midi Dress",price:"$59.99"},"women-linen-button-down-shirts-049":{brand:"Frank & Eileen",productTitle:"EILEEN White, Italian Classic Linen",price:"$258"},"women-light-denim-jackets-050":{brand:"AE",productTitle:"Swing Denim Jacket",price:"$84.95"},"women-pastel-sneakers-051":{brand:"Puma",productTitle:"Suede XL sneakers in light pink and white",price:"$46.75"},"women-summer-midi-skirts-052":{brand:"Princess Polly",productTitle:"Aspyn Embroidered Midi Skirt Sage Green",price:"$69"},"women-lightweight-cardigans-053":{brand:"YAL New York",productTitle:"Light Blue V-Neck Floral Knit Cardigan",price:"$34.50"},"women-crisp-white-blouses-054":{brand:"Faherty",productTitle:"Palma Linen Avery Top - White",price:"$48.30"},"women-summer-garden-party-dresses-055":{brand:"Christy Dawn",productTitle:"The Madeline Dress | Pearl",price:"$368"},"women-canvas-tote-bags-056":{brand:"Tradlands",productTitle:"Vacationland Canvas Zipper Tote",price:"$56"},"women-relaxed-linen-pants-057":{brand:"Cotton On",productTitle:"Haven Wide Leg Pant",price:"$20"},"women-light-summer-sweaters-058":{brand:"FP Movement",productTitle:"Solid Twilight Cashmere Turtleneck Sweater",price:"$39.95"},"women-straw-sun-hats-059":{brand:"Cupshe",productTitle:"Cannes Getaway Straw Hat",price:"$15"},"women-floral-maxi-dresses-060":{brand:"Hermoza",productTitle:"Olivia Maxi Dress in Graceful Garlands",price:"$248"},"women-cropped-lightweight-jackets-061":{brand:"Pink Lily",productTitle:"Oakley Crop Canvas Barn Jacket",price:"$68"},"women-cotton-poplin-shirts-062":{brand:"Alex Mill",productTitle:"Jo Striped Shirt In Cotton Po
2082plin",price:"$165"},"women-summer-workout-sets-063":{brand:"Cosmolle",productTitle:"Bra and Shorts Ribbed Seamless Activewear Set",price:"$49"},"women-lightweight-summer-scarves-064":{brand:"Manto",productTitle:"Mastoor (Hidden Beauty) Scarf",price:"$33"},"women-platform-sneakers-065":{brand:"Steve Madden",productTitle:"Prism Paisley Bobbi Platform Sneakers",price:"$70"},"women-weekend-sundresses-066":{brand:"Cupshe",productTitle:"Honey Sun Striped Maxi Dress",price:"$18.50"},"women-summer-rain-boots-067":{brand:"Igor",productTitle:"Black Trak Leo Ankle Wellies",price:"$110"},"women-lightweight-lounge-sets-068":{brand:"Nasty Gal",productTitle:"Chunky Knit Collar Detail Oversized Knitted Jumper and Wide Leg Trouser Co-Ord",price:"$37.50"},"women-pleated-tennis-skirts-069":{brand:"Athletifreak",productTitle:"Rally Skort - Pannacotta",price:"$66"},"women-breezy-wrap-dresses-070":{brand:"Draper James",productTitle:"Daphne Wrap Dress",price:"$69.99"},"women-casual-linen-blazers-071":{brand:"Rag & Bone",productTitle:"Chappell Plaid Linen Blazer",price:"$405"},"men-lightweight-oxford-shirts-072":{brand:"Calvin Klein",productTitle:"Double Stripe Classic Oxford Button-Down Shirt",price:"$87.50"},"men-lightweight-bomber-jackets-073":{brand:"Rag & Bone",productTitle:"Manston Bomber Jacket",price:"$420"},"men-casual-summer-sneakers-074":{brand:"Parker & Finch",productTitle:"Tivano Leather Sneakers",price:"$69.99"},"men-linen-short-sleeve-shirts-075":{brand:"J.Crew",productTitle:"Short-sleeve washed linen shirt",price:"$98.99",rating:4.8,reviewCount:85},"men-summer-chinos-076":{brand:"Buck Mason",productTitle:"Natural Japanese Twill Larsen Pant",price:"$198"},"men-cotton-crewneck-sweaters-077":{brand:"Rag & Bone",productTitle:"Tristan Cricket Sweater",price:"$130"},"men-weekend-polo-shirts-078":{brand:"Faherty",productTitle:"Long-Sleeve Movement⢠Pique Polo - Dusty Iron Heather",price:"$76.30"},"men-lightweight-windbreakers-079":{brand:"AETHER",productTitle:"Meridian Jacket - Nordic Navy",price:"$595"},"men-canvas-slip-on-shoes-080":{brand:"Pavers",productTitle:"Grey Slip-On Wide-Fit Trainers",price:"$80"},"men-casual-overshirts-081":{brand:"Toad&Co",productTitle:"Mojac III Shirt Jacket",price:"$158"},"men-lightweight-joggers-082":{brand:"AE",productTitle:"24/7 Tech Jogger",price:"$39"},"men-seersucker-shirts-083":{brand:"RVCA",productTitle:"Exotica Seersucker Short Sleeve Shirt",price:"$29.99"},"men-knit-polos-084":{brand:"Alo Yoga",productTitle:"Textured Knit Long Sleeve Polo - Black",price:"$148"},"kids-summer-rain-jackets-085":{brand:"adidas",productTitle:"Minecraft Terrex 2 Layer Climaproof Rain Jacket",price:"$75",rating:5,reviewCount:6},"kids-rain-boots-086":{brand:"Hatley",productTitle:"Blue Matte Rain Wellies",price:"$66"},"kids-summer-dresses-087":{brand:"Francesca's",productTitle:"Hello Franki Short Sleeve Smocked Tiered Dress for girls Multi",price:"$24.98"},"kids-denim-jackets-088":{brand:"Old Navy",productTitle:"Disney Mickey Mouse Logo-Graphic Jean Trucker Jacket for Kids",price:"$24.99",rating:5,reviewCount:44},"kids-graphic-hoodies-089":{brand:"Fashion Nova",productTitle:"Mini Always Smile Front/Back Fleece Hoodie - Heather Grey",price:"$16.99",rating:4,reviewCount:3},"kids-canvas-sneakers-090":{brand:"Igor",productTitle:"Light Blue Lona Canvas Plimsolls Shoes",price:"$60"},"kids-baseball-caps-091":{brand:"Polo Ralph Lauren",productTitle:"Little Boys Classic Sport Cap",price:"$35",rating:4.5,reviewCount:43},"kids-striped-tees-092":{brand:"Oso & Me",productTitle:"Navy Stripe Willie T-Shirt",price:"$34"},"kids-sporty-shorts-093":{brand:"Old Navy",productTitle:"Knee Length Mesh Basketball Shorts for Boys",price:"$15",rating:4.8,reviewCount:1714},"kids-lightweight-cardigans-094":{brand:"Thereabouts",productTitle:"Little & Big Kid Boys Mock Neck Long Sleeve Zipper Cardigan",price:"$13.29",rating:5,reviewCount:1},"kids-colorful-leggings-095":{brand:"Tea Collection",productTitle:"Printed Leggings",price:"$20.99"},"kids-summer-sandals-096":{brand:"Teva",productTitle:"Hurricane XLT 2 (Little Kid/Big Kid)",price:"$39.42",rating:5,reviewCount:362}},R4e=Lke.map(e=>({...Dke[e.id],...e}
2082)),lz="var(--welcome-desktop-column-pad-inline, var(--spacing-x-large, 2rem))",sE="var(--welcome-masthead-font-size-desktop, clamp(3.25rem, 4.75vw, 4rem))",cz="clamp(2rem, 9vw, 2.5rem)",uz="clamp(2.375rem, 5.75vw, 3.25rem)",dz="1.05",Mke=.1,Pke="4.165rem",fz=`${II} - ${Pke}`,hz=`calc(${fz})`,Fke="8.75rem",Bke="10.25rem",Nke=300/430,zke=390/560,Hke="88vw",Uke="env(safe-area-inset-top, 0px)";function pz(e,t){const n=`${fz} - ${e} - `+Uke;return{height:`calc(${n})`,width:`min(calc((${n}) * ${t}), ${Hke})`}}const P9="10.25rem",Wke={heroHeight:hz,smear:{left:"-46px",top:"-54px",width:"106px",height:"152px",blurPx:22,scale:5.5},figure:{right:"-40px",bottom:"-8px",...pz(Fke,Nke),focalPoint:"50% 16%"},bottomWashHeight:"200px",topScrimStops:[[.5,"0%"],[.28,"7%"],[.08,"14%"],[0,"20%"]],radialScrimShape:"86% 34% at 0% 2%"},Vke={heroHeight:hz,smear:{left:"-104px",top:"-134px",width:"140px",height:"142px",blurPx:20,scale:8.4},figure:{right:"0px",bottom:"0px",...pz(Bke,zke),focalPoint:"50% 16%"},bottomWashHeight:"220px",topScrimStops:[[.48,"0%"],[.26,"7%"],[.07,"14%"],[0,"20%"]],radialScrimShape:"78% 32% at 0% 2%"},qke="600px",Gke="2.5rem",Yke=Number(dz)+Mke,Kke=`${sE} * `+Yke.toFixed(4),Xke=`calc(${Gke} + ${Kke})`,Jke=`min(${qke}, calc(100dvh - ${Xke}))`,mz="clamp(390px, 33vw, 470px)",gz="110px",Zke="2rem",Qke=`min(45rem, max(24rem, calc(100vw - (${mz}) - ${gz} - ${lz} - ${Zke})))`,$ke={heroHeight:Jke,smear:{left:"-164px",top:"-206px",width:"180px",height:"132px",blurPx:18,scale:11.3},figure:{right:gz,bottom:"0px",width:mz,height:"100%",focalPoint:"50% 16%"},bottomWashHeight:"240px",topScrimStops:[[.5,"0%"],[.3,"6%"],[.1,"12%"],[0,"18%"]],radialScrimShape:"62% 46% at 0% 0%"},F9="1rem",eEe={mobile:{band:"mobile",geometry:Wke,type:{headlineFontSize:cz,headlineLineHeight:"1.05",subFontSize:"1.375rem",subLineHeight:"1.875rem",subMarginTop:"var(--spacing-large, 1.25rem)",subReservedLines:2},copyPaddingInline:"var(--spacing-large, 1.25rem)",copyPaddingTop:"var(--spacing-2x-large, 2rem)",composerSeatWidth:"100%",composerSeatMarginTop:"var(--spacing-x-large, 1.5rem)",composerSeatAnchor:"bottom",composerSeatBottomGap:F9,contentOffsetTop:"0",composerPlaceholderFontSize:"0.75rem",composerPlaceholderLineHeight:"1rem",composerMinTextHeight:"3.25rem",composerTypingTextHeight:"4.5rem",composerRowGap:"var(--spacing-small, 0.75rem)",credit:{gap:"0.875rem",composerHeightFallback:P9,textInsetFallback:"1rem",brandFontSize:"0.75rem",titleFontSize:"0.8125rem",factsFontSize:"0.6875rem"}},tablet:{band:"tablet",geometry:Vke,type:{headlineFontSize:uz,headlineLineHeight:"1.05",subFontSize:"1.25rem",subLineHeight:"1.875rem",subMarginTop:"var(--spacing-medium, 1rem)",subReservedLines:2},copyPaddingInline:"var(--spacing-x-large, 1.5rem)",copyPaddingTop:"var(--spacing-3x-large, 2.5rem)",composerSeatWidth:"min(100%, 34rem)",composerSeatAnchor:"bottom",composerSeatBottomGap:F9,contentOffsetTop:"0",composerSeatMarginTop:"var(--spacing-x-large, 1.5rem)",composerPlaceholderFontSize:"1rem",composerPlaceholderLineHeight:"1.5rem",composerMinTextHeight:"3.25rem",composerTypingTextHeight:"4.5rem",composerRowGap:"var(--spacing-medium, 1rem)",credit:{gap:"1rem",composerHeightFallback:P9,textInsetFallback:"1rem",brandFontSize:"0.75rem",titleFontSize:"0.8125rem",factsFontSize:"0.6875rem"}},desktop:{band:"desktop",geometry:$ke,type:{headlineFontSize:sE,headlineLineHeight:dz,subFontSize:"1.0625rem",subLineHeight:"1.75rem",subMarginTop:"var(--spacing-medium, 1rem)",subReservedLines:1},copyPaddingInline:lz,copyPaddingTop:"5.5rem",composerSeatWidth:Qke,composerSeatAnchor:"flow",composerSeatBottomGap:"0",contentOffsetTop:"0",composerSeatMarginTop:"var(--spacing-3x-large, 3rem)",composerPlaceholderFontSize:"1rem",composerPlaceholderLineHeight:"1.5rem",composerMinTextHeight:"3.75rem",composerTypingTextHeight:"4.875rem",composerRowGap:"var(--spacing-large, 1.25rem)",credit:{gap:"0.5rem",textInsetFallback:"1.375rem",brandFontSize:"0.75rem",titleFontSize:"0.8125rem",factsFontSize:"0.6875rem"}}},ao=wn(e=>({placeholderText:"",placeholderVisible:!0,composerGlowing:!1,visitorEngaged:!1,composerSeat:"opening",setPlaceholder:(t,n)=>e({placeholderText:t,placeholderVisible:n}),setComposerGlowing:t=>e({composerGlowing:t}),setVisitorEngaged:t=>e({visitorEngaged:t}),setComposerSeat:t=>e({composerSeat:t}),clear:()=>
2082e({placeholderText:"",placeholderVisible:!0,composerGlowing:!1,composerSeat:"opening"})})),tEe=4e3,nEe=["textarea","button","a","input","label","select",'[role="button"]','[role="radio"]','[role="radiogroup"]','[role="switch"]','[role="checkbox"]'].join(", ");function rEe(e){const t=k.useRef(null),{trackHomePageClickInputBox:n}=Nt(),r=k.useRef(!1),i=k.useCallback(()=>{t.current&&clearTimeout(t.current),t.current=null},[]);k.useCallback(()=>{i(),ao.getState().setVisitorEngaged(!0),r.current||(r.current=!0,n())},[i,n]);const s=k.useCallback(()=>{i(),t.current=setTimeout(()=>{t.current=null,ao.getState().setVisitorEngaged(!1)},tEe)},[i]);return k.useEffect(()=>{i(),ao.getState().setVisitorEngaged(!1),r.current=!1},[e,i]),k.useEffect(()=>()=>{i(),ao.getState().setVisitorEngaged(!1)},[i]),k.useCallback(l=>{const u=l.target;!(u instanceof Element)||u.closest(nEe)||l.currentTarget.querySelector("textarea")?.focus()},[]),k.useCallback(l=>{(l.currentTarget.querySelector("textarea")?.value??"").trim().length>0||s()},[s]),{}}function iEe(e,t,{active:n}){k.useLayoutEffect(()=>{},[e,n]),k.useLayoutEffect(()=>{},[e,t,n])}const yz=[],aEe={typed:"",voice:"off",attachment:null,press:null,asked:[],block:null,answers:yz,customizePicks:0,reply:null,carousel:null,cards:0,scrollStep:0,overlay:"none",product:null,sheetStep:0,tryOn:null,favorited:null},B9=58,N9=220,vz=4,sEe=84,oEe="#fff4e8";function jw(e){return`color-mix(in srgb, ${e} ${sEe}%, ${oEe})`}const yy={lemon:jw("var(--gradients-peach-100, #fcda2e)"),amber:jw("var(--gradients-peach-200, #fdb341)"),coral:jw("var(--gradients-peach-400, #fe6966)")};function lEe(e){const t=e<=.5,n=t?yy.lemon:yy.amber,r=t?yy.amber:yy.coral,i=t?e:e-.5,s=Math.round((1-i*2)*100);return s>=100?n:s<=0?r:`color-mix(in srgb, ${n} ${s}%, ${r})`}function z9(e,t){return`color-mix(in srgb, ${e} ${t}%, #ffffff)`}const H9=58,cEe=46,U9=34,uEe=24;function dEe(e){const t=lEe(e);return{accent:t,gradientFrom:z9(t,Math.round(H9+(cEe-H9)*e)),gradientTo:z9(t,Math.round(U9+(uEe-U9)*e))}}const bz=9,fEe=316,hEe=620,IC=fEe+bz*2,pEe=hEe+bz*2,mEe=.58,gEe=2,yEe=26,vEe=6,xz=1.25,bEe=.75,xEe="env(safe-area-inset-top, 0px)",SEe=2.5*.92*1.05,wEe=xz+SEe,CEe=.5;`${Number((wEe+CEe).toFixed(4))}`;const IEe=76,kEe=Math.ceil(IC*mEe)+gEe,EEe=40,TEe=vEe+yEe,AEe=36,_Ee=Math.round((xz+bEe)*16),REe=EEe+TEe+IEe+AEe+_Ee;`${kEe}${II}${REe}${xEe}${(IC/pEe).toFixed(4)}${IC}`;const jEe="how-it-works-demo-customize",OEe="how-it-works-demo-user",oE="how-it-works-demo-assistant",Sz="how-it-works-demo-carousel",LEe="data:image/jpeg;base64,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",DEe=[{id:"ask",title:"Ask like youâd ask a friend",body:"In your own words. No wrong way to ask.",verb:"Search",icon:"chat",dwellMs:6500,stillAtMs:4200,script:[{do:"type",message:0,after:500},{do:"press",target:"send",after:500},{do:"send",message:0,opensChat:!0,after:400},{do:"say",message:1,after:900}]},{id:"customize",title:"Narrow it down together",body:"Help Tonita get on the same page.",verb:"Customize",icon:"sliders",dwellMs:10750,stillAtMs:9200,script:[{do:"questions",block:2,answers:4,after:800},{do:"scroll",chat:1,after:600},{do:"press",target:"chip",after:700},{do:"picks",chosen:1,after:400},{do:"press",target:"chip",after:600},{do:"picks",chosen:2,after:400},{do:"press",target:"chip",after:600},{do:"picks",chosen:3,after:400},{do:"press",target:"send",after:800},{do:"send",message:4,after:400},{do:"results",reply:5,carousel:6,after:900},{do:"cards",arrive:4,after:800},{do:"scroll",chat:1,after:900},{do:"cards",showing:6,after:1400}]},{id:"voice",title:"Why type when you can talk?",body:"Tell Tonita exactly what you have in mind.",verb:"Speak",icon:"microphone",dwellMs:10500,stillAtMs:9400,script:[{do:"press",target:"mic",after:700},{do:"dictate",state:"listening",after:500},{do:"dictate",state:"processing",after:1500},{do:"transcribe",message:8,after:900},{do:"press",target:"send",after:700},{do:"send",message:8,after:500},{do:"results",reply:9,carousel:10,after:900},{do:"cards",arrive:4,after:800},{do:"scroll",chat:1,after:900},{do:"cards",showing:6,after:1200}]},{id:"image",title:"A picture is worth a thousand words",body:"Inspo or reference photos help a lot.",verb:"Show",icon:"camera",dwellMs:11250,stillAtMs:10200,script:[{do:"press",target:"attach",after:700},{do:"attach",file:"demo-attach.jpg",after:500},{do:"type",message:17,after:700},{do:"press",target:"send",after:700},{do:"send",message:17,after:500},{do:"results",reply:18,carousel:19,after:900},{do:"cards",arrive:4,after:800},{do:"scroll",chat:1,after:900},{do:"cards",showing:6,after:1200}]},{id:"details",title:"Explore products you like",body:"You never lose your place in the chat.",verb:"Zoom",icon:"eye",dwellMs:12e3,stillAtMs:6800,script:[{do:"press",target:"card",after:900},{do:"open",invented:"polkaDotSkirt",after:500},{do:"scroll",product:1,after:1600},{do:"scroll",product:2,after:3200},{do:"press",target:"close",after:4300},{do:"close",after:500}]},{id:"tryon",title:"Try it on first",body:"On your body, not a modelâs.",verb:"Try on",icon:"mirror",dwellMs:13e3,stillAtMs:1e4,script:[{do:"press",target:"card",after:900},{do:"open",invented:"polkaDotSkirt",after:500},{do:"press",target:"tryOn",after:1200},{do:"tryOn",phase:"upload",photo:"yourPhoto",result:"tryOnResult",after:500},{do:"tryOn",phase:"uploaded",photo:"yourPhoto",result:"tryOnResult",after:1300},{do:"tryOn",phase:"generating",photo:"yourPhoto",result:"tryOnResult",after:1600},{do:"tryOn",phase:"result",photo:"yourPhoto",result:"tryOnResult",after:3e3}]},{id:"favorite",title:"Favorite the products you love",body:"Still there when you come back.",verb:"Shortlist",icon:"heart",dwellMs:6e3,stillAtMs:4200,script:[{do:"press",target:"close",after:900},{do:"open",invented:"polkaDotSkirt",after:500},{do:"press",target:"heart",after:1200},{do:"favorite",invented:"polkaDotSkirt",after:500}]}],MEe={steps:DEe},PEe="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABoqADAAQAAAABAAACMAAAAAD/4QqPaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7v
2082yIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6SXB0YzR4bXBFeHQ9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBFeHQvMjAwOC0wMi0yOS8iIHBob3Rvc2hvcDpDcmVkaXQ9Ik1hZGUgd2l0aCBHb29nbGUgQUkiIElwdGM0eG1wRXh0OkRpZ2l0YWxTb3VyY2VUeXBlPSJodHRwOi8vY3YuaXB0Yy5vcmcvbmV3c2NvZGVzL2RpZ2l0YWxzb3VyY2V0eXBlL3RyYWluZWRBbGdvcml0aG1pY01lZGlhIiBJcHRjNHhtcEV4dDpEaWdpdGFsU291cmNlRmlsZVR5cGU9Imh0dHA6Ly9jdi5pcHRjLm9yZy9uZXdzY29kZXMvZGlnaXRhbHNvdXJjZXR5cGUvdHJhaW5lZEFsZ29yaXRobWljTWVkaWEiLz4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+AP/tAGBQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAJxwBWgADGyVHHAIAAAIAA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",FEe="data:image/jpeg;base64,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",BEe=JSON.parse(`[{"messageId":"ca0b1c61-89b5-4117-a8ed-ac268b4c6060","role":"USER","text":"fun looking puff skirts"},{"messageId":"04613ee2fc4e42c3a2c52026f2f23019","role":"ASSISTANT","components":[{"text":{"text":"Fun puff skirts can go a few directions â balletcore, party mini, dramatic volume, or playful everyday."},"componentId":"4bb7f7b41f45482ab44aae77216c8153"}]},{"messageId":"asst-call_s9c24UUEtIOQeMEjQaGfzJtp","role":"ASSISTANT","components":[{"componentId":"structured_question_block:call_s9c24UUEtIOQeMEjQaGfzJtp","structuredQuestionBlock":{"kicker":"Customize your puff skirt search","hint":"Answer any that matter â or skip and Iâll browse broadly.","questions":[{"q":"Who's it for?","options":[{"label":"Women"},{"label":"Girls"},{"label":"Plus size"}],"writeInPlaceholder":"e.g. petite, maternity, teen","writeInChip":true},{"q":"Occasion?","options":[{"label":"Party"},{"label":"Everyday fun"},{"label":"Vacation"},{"label":"Festival"},{"label":"Date night"}],"writeInPlaceholder":"e.g. birthday dinner, concert","writeInChip":true},{"q":"Vibe?","options":[{"label":"Balletcore"},{"label":"Coquette"},{"label":"Dramatic volume"},{"label":"Preppy"},{"label":"Avant-garde"}],"writeInPlaceholder":"e.g. whimsical but not costumey","writeInChip":true},{"q":"Length?","options":[{"label":"Mini"},{"label":"Above knee"},{"label":"Midi"},{"label":"Maxi"}]},{"q":"Fabric feel?","options":[{"label":"Tulle"},{"label":"Cotton poplin"},{"label":"Satin"},{"label":"Organza"},{"label":"Quilted"}]}
2082,{"q":"Color direction?","options":[{"label":"White"},{"label":"Black"},{"label":"Pastels"},{"label":"Bright colors"},{"label":"Prints"}],"writeInPlaceholder":"e.g. cherry red, baby blue","writeInChip":true},{"q":"Waist style?","options":[{"label":"High waist"},{"label":"Elastic waist"},{"label":"Drop waist"},{"label":"Smocked waist"}]},{"q":"Anything to avoid?","options":[{"label":"Too sheer"},{"label":"Too short"},{"label":"Costumey"},{"label":"Scratchy tulle"}],"writeInPlaceholder":"e.g. no bows, no neon","writeInChip":true},{"q":"Brands you like?","options":[{"label":"Sandy Liang"},{"label":"Simone Rocha"},{"label":"Free People"},{"label":"Anthropologie"}],"writeInPlaceholder":"Any brand or store","writeInChip":true}]}}]},{"messageId":"08357d55dd6945e38194e333f9a400d9","role":"ASSISTANT"},{"messageId":"2169b388-dfe7-42c3-bf84-174e0a297ec7","role":"USER","mcqAnswers":[{"questionId":"structured_question_block:call_s9c24UUEtIOQeMEjQaGfzJtp:0","question":"Who's it for?","selectedOptions":["Women"]},{"questionId":"structured_question_block:call_s9c24UUEtIOQeMEjQaGfzJtp:1","question":"Occasion?","selectedOptions":["Everyday fun","Vacation"]},{"questionId":"structured_question_block:call_s9c24UUEtIOQeMEjQaGfzJtp:3","question":"Length?","selectedOptions":["Mini"]}]},{"messageId":"5d503584de1743d0a55a73b993a34b62","role":"ASSISTANT","components":[{"text":{"text":"Great â Iâll look for womenâs mini puff skirts with a playful everyday/vacation feel."},"componentId":"fd66aca19a7b4eaf820f1de3cd7d3afd"}]},{"messageId":"c718e22e37144c4ea9a1387e196e5bf7","role":"ASSISTANT","components":[{"carousel":{"cards":[{"listingId":"anthropologie.com!40d75d64d611c025","listing":{"listingId":"anthropologie.com!40d75d64d611c025","score":0.92012197,"metadataJson":"{\\"listing_id\\": \\"anthropologie.com!40d75d64d611c025\\", \\"listing_title\\": \\"Maeve Bubble-Hem Mini Skirt\\", \\"name\\": \\"Maeve Bubble-Hem Mini Skirt\\", \\"url\\": \\"https://www.anthropologie.com/shop/maeve-bubble-hem-mini-skirt\\", \\"price\\": 118.0, \\"domain\\": \\"anthropologie.com\\", \\"domain_display_name\\": \\"Anthropologie\\", \\"brand\\": \\"Maeve\\", \\"aggregateRating\\": {\\"ratingValue\\": 5.0, \\"reviewCount\\": 1, \\"bestRating\\": 5}, \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"anthropologie.com!40d75d64d611c025","jsonString":"{\\n \\"title\\": \\"Maeve Bubble-Hem Mini Skirt\\",\\n \\"brand\\": \\"Maeve\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Tan\\",\\n \\"hex_code\\": \\"D2B48C\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n },\\n {\\n \\"name\\": \\"Blue (check)\\",\\n \\"hex_code\\": \\"3B6EA0\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 118,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": null,\\n \\"is_available\\": null,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": null,\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble-Hem Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Tan checked bubble-hem mini skirt with a gathered, voluminous silhouette and back zipper closure.\\",\\n \\"visual_description\\": \\"A tan-and-white checked mini skirt with subtle blue check accents, featuring a high gathered waistband, puffed bubble hem creating a voluminous silhouette, and a back zipper; lightweight cotton with visible lining and soft pleating for texture.\\",\\n \\"highlight_phrases\\": [\\n \\"Bubble hem\\",\\n \\"Checked print\\",\\n \\"Cotton-blend fabric\\",\\n \\"Back zipper closure\\",\\n \\"Lightweight lined mini\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"bubble hem mini skirt\\",\\n \\"checked mini skirt tan\\",\\n \\"Maeve skirt Anthropologie\\",\\n \\"cotton bubble hem skirt\\",\\n \\"puffed mini skirt with zipper\\",\\n \\"summer mini skirt checked pattern\\",\\n \\"tan and white check skirt\\",\\n \\"voluminous hem mini skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Fabric: 98% cotton, 2% elastane with 100% cotton lining for comfort.\\",\\n \\"Care: machine washable; imported.\\",\\n \\"Length: standard approx. 15\\\\\\" L (as listed).\\",\\n \\"Design details include soft pleating and a gathered waistband for a flirty shape.\\",\\n \\"Pairs well with cropped tops or lightweight blouses.\\"\\n ]\\n}"}},"imageGallery":{"images":[{"imageId":"98c1baacf79a40e4","image":{"imageId":"98c1baacf79a40e4","address":{"imageUrl":"https://images.urb
2082ndata.com/is/image/Anthropologie/4120972460059_224_b14"},"details":{"base64Length":89188,"width":267,"height":400}}},{"imageId":"1ff41e0968b0d18b","image":{"imageId":"1ff41e0968b0d18b","address":{"imageUrl":"https://images.urbndata.com/is/image/Anthropologie/4120972460059_224_b4"},"details":{"base64Length":79724,"width":267,"height":400}}},{"imageId":"53b18957e511035b","image":{"imageId":"53b18957e511035b","address":{"imageUrl":"https://images.urbndata.com/is/image/Anthropologie/4120972460059_224_b3"},"details":{"base64Length":78552,"width":267,"height":400}}},{"imageId":"610686bc0d91c9b5","image":{"imageId":"610686bc0d91c9b5","address":{"imageUrl":"https://images.urbndata.com/is/image/Anthropologie/4120972460059_224_b"},"details":{"base64Length":44552,"width":267,"height":400}}},{"imageId":"9af1374fa402870e","image":{"imageId":"9af1374fa402870e","address":{"imageUrl":"https://images.urbndata.com/is/image/Anthropologie/4120972460059_224_b2"},"details":{"base64Length":120832,"width":267,"height":400}}}],"thumbnailImage":{"imageId":"98c1baacf79a40e4","image":{"imageId":"98c1baacf79a40e4","address":{"imageUrl":"https://images.urbndata.com/is/image/Anthropologie/4120972460059_224_b14"},"details":{"base64Length":89188,"width":267,"height":400}}}}},{"listingId":"asos.com!8f31b3e10263f489","listing":{"listingId":"asos.com!8f31b3e10263f489","score":0.94779897,"metadataJson":"{\\"listing_id\\": \\"asos.com!8f31b3e10263f489\\", \\"listing_title\\": \\"ASOS DESIGN linen blend bubble mini skirt in black\\", \\"name\\": \\"ASOS DESIGN linen blend bubble mini skirt in black\\", \\"url\\": \\"https://www.asos.com/us/asos-design/asos-design-linen-blend-bubble-mini-skirt-in-black/prd/210080196\\", \\"price\\": 47.99, \\"domain\\": \\"asos.com\\", \\"domain_display_name\\": \\"ASOS\\", \\"brand\\": \\"ASOS DESIGN\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"asos.com!8f31b3e10263f489","jsonString":"{\\n \\"title\\": \\"ASOS DESIGN linen blend bubble mini skirt in black\\",\\n \\"brand\\": \\"ASOS DESIGN\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Black\\",\\n \\"hex_code\\": \\"000000\\"\\n },\\n \\"secondary_colors\\": [],\\n \\"current_price\\": {\\n \\"value\\": 47.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": null,\\n \\"is_available\\": null,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": null,\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble Skirts\\"\\n ],\\n \\"one_line_description\\": \\"High-rise black linen-blend mini skirt with a drawstring waist and voluminous bubble hem for a relaxed, flirty look.\\",\\n \\"visual_description\\": \\"Black mini skirt in a plain-woven linen-viscose blend with a high, elasticised drawstring waist and a gathered, puffed (bubble) hem creating a voluminous silhouette; regular fit through the hips, above-knee length, lightweight textured fabric with subtle drape.\\",\\n \\"highlight_phrases\\": [\\n \\"Linen-blend fabric (80% viscose, 20% flax)\\",\\n \\"High-rise with drawstring waist\\",\\n \\"Bubble / gathered hem\\",\\n \\"Mini length\\",\\n \\"Plain woven, lightweight\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"black linen mini skirt\\",\\n \\"bubble hem skirt\\",\\n \\"ASOS black mini skirt\\",\\n \\"high waist drawstring skirt\\",\\n \\"linen blend mini skirt women\\",\\n \\"voluminous mini skirt\\",\\n \\"summer linen skirt black\\",\\n \\"gathered hem skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Plain design with textured, breathable linen-viscose blend.\\",\\n \\"Elasticated waistband with tie for an adjustable fit.\\",\\n \\"Casual, relaxed silhouette suitable for warm weather.\\",\\n \\"Pairs well with cropped tops and sandals.\\",\\n \\"Model styling and background in product images may be AI-generated.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"US 2\\":true,\\"US 4\\":true,\\"US 6\\":true,\\"US 8\\":true,\\"US 10\\":true,\\"US 12\\":true,\\"US 14\\":true}}"},"imageGallery":{"images":[{"imageId":"4a9c3295ca02f3d0","image":{"imageId":"4a9c3295ca02f3d0","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-linen-blend-bubble-mini-skirt-in-black/210080196-1-black"},"details":{"base64Length":10168,"width":313,"height":400}}},{"imageId":"3a8ac1e5322ab08f","image":{"imageId":"3a8ac1e5322ab08f","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-linen-blend-bubble-mini-skirt-in-black/210080196-5"},"details":{"base64Length":10480,"width":313,"height":400}}},{"imageId":"74a6b8bc417a032d","image":{"imageId":"74a6b8bc417a032d","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-linen-blend-bubble-mini-skirt-in-black/210080196-3"},"details":{"base64Length":12076,"width":313,"height":400}}},{"imageId":"bbe3d8a36631734d","image":{"imageId":"bbe3d8a36631734d","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-linen-blend-bubble-mini-skirt-in-black/210080196-4"},"details":{"base64Length":11676,"width":313,"height":400}}},{"imageId":"d658e8bd0d27a3f5","image":{"imageId":"d658e8bd0d27a3f5","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-linen-blend-bubble-mini-skirt-in-black/210080196-2"},"details":{"base64Length":9480,"width":313,"height":400}}}],"thumbnailImage":{"imageId":"4a9c3295ca02f3d0","image":{"imageId":"4a9c3295ca02f3d0","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-linen-blend-bubble-mini-skirt-in-black/210080196-1-black"},"details":{"base64Length":10168,"width":313,"height":400}}}}},{"listingId":"loft.com!3526027848dab0b7","listing":{"listingId":"loft.com!3526027848dab0b7","score":0.94257873,"metadataJson":"{\\"listing_id\\": \\"loft.com!3526027848dab0b7\\", \\"listing_title\\": \\"Poplin Ruched Bubble Mini Skirt\\", \\"name\\": \\"Poplin Ruched Bubble Mini Skirt\\", \\"url\\": \\"https://www.loft.com/clothing/skirts/catl000017/poplin-ruched-bubble-mini-skirt/759161.html\\", \\"price\\": 18.44, \\"regular_price\\": 69.95, \\"domain\\": \\"loft.com\\", \\"domain_display_name\\": \\"Loft\\", \\"brand\\": \\"Loft\\", \\"aggregateRating\\": {\\"ratingValue\\": 4.7, \\"reviewCount\\": 25, \\"bestRating\\": 5}, \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"loft.com!3526027848dab0b7","jsonString":"{\\n \\"title\\": \\"Poplin Ruched Bubble Mini Skirt\\",\\n \\"brand\\": \\"LOFT\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Black\\",\\n \\"hex_code\\": \\"000000\\"\\n },\\n \\"secondary_colors\\": null,\\n \\"current_price\\": {\\n \\"value\\": 13.5,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 44.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": {\\n \\"rating_value\\": null,\\n \\"review_count\\": 24,\\n \\"best_rating\\": null\\n },\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"XXS\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XS\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"S\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"M\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"L\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XL\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XXL\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Black poplin bubble mini skirt with ruched waist and voluminous hem for a flouncy, structured silhouette.\\",\\n \\"visual_description\\": \\"A short black poplin skirt featuring a gathered, ruched waistband and a voluminous bubble hem that creates a rounded, puffed silhouette; smooth cotton shell with an internal lining, sits at the natural waist and falls to a mini length.\\",\\n \\"highlight_phrases\\": [\\n \\"Poplin cotton shell\\",\\n \\"Ruched elastic waist\\",\\n \\"Bubble/voluminous hem\\",\\n \\"Fully lined\\",\\n \\"Online exclusive color\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"black bubble mini skirt\\",\\n \\"poplin ruched skirt\\",\\n \\"ruched waist mini skirt\\",\\n \\"voluminous bubble hem skirt\\",\\n \\"LOFT black mini skirt\\",\\n \\"lined cotton mini skirt\\",\\n \\"summer party mini skirt\\",\\n \\"fit and flare mini skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Shell: 100% cotton; Lining: 100% cotton.\\",\\n \\"Available in sizes XXSâXXL (online listing).\\",\\n \\"Discounted from regular price; current sale price listed in USD.\\",\\n \\"Structured poplin gives shape and subtle sheen.\\",\\n \\"Styling pairs well with fitted to
2082ps and flats or heels.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XXS\\":false,\\"XS\\":false,\\"S\\":false,\\"M\\":false,\\"L\\":false,\\"XL\\":true,\\"XXL\\":false}}"},"imageGallery":{"images":[{"imageId":"6475861cf6246442","image":{"imageId":"6475861cf6246442","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdp/v1775810632/LO/759161_2222_D1"},"details":{"base64Length":98004,"width":1158,"height":1333}}},{"imageId":"24c8ee1e8b6eb6ce","image":{"imageId":"24c8ee1e8b6eb6ce","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdpthumb/v1775810456/LO/759161_2222_B1"},"details":{"base64Length":15220,"width":214,"height":246}}},{"imageId":"3952d890249afead","image":{"imageId":"3952d890249afead","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdp/v1775810456/LO/759161_2222_B1"},"details":{"base64Length":82084,"width":1158,"height":1333}}},{"imageId":"67cf37904f0d5a39","image":{"imageId":"67cf37904f0d5a39","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdpthumb/v1775810632/LO/759161_2222_D1"},"details":{"base64Length":14596,"width":214,"height":246}}},{"imageId":"be839a9aa1c6999f","image":{"imageId":"be839a9aa1c6999f","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdpthumb/v1775810470/LO/759161_2222"},"details":{"base64Length":13524,"width":214,"height":246}}},{"imageId":"e692c7275bb54c92","image":{"imageId":"e692c7275bb54c92","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdp/v1775810470/LO/759161_2222"},"details":{"base64Length":49768,"width":1158,"height":1333}}}],"thumbnailImage":{"imageId":"6475861cf6246442","image":{"imageId":"6475861cf6246442","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdp/v1775810632/LO/759161_2222_D1"},"details":{"base64Length":98004,"width":1158,"height":1333}}}}},{"listingId":"loveshackfancy.com!8ffca708baea7311","listing":{"listingId":"loveshackfancy.com!8ffca708baea7311","score":0.9392858,"metadataJson":"{\\"listing_id\\": \\"loveshackfancy.com!8ffca708baea7311\\", \\"listing_title\\": \\"Georgeanne Cotton Mini Bubble Skirt\\", \\"name\\": \\"Georgeanne Cotton Mini Bubble Skirt\\", \\"url\\": \\"https://loveshackfancy.com/products/georgeanne-skirt-ls994-3123?variant=46262454419641\\", \\"price\\": 259.0, \\"regular_price\\": 345.0, \\"domain\\": \\"loveshackfancy.com\\", \\"domain_display_name\\": \\"LoveShackFancy\\", \\"brand\\": \\"LSF\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"loveshackfancy.com!8ffca708baea7311","jsonString":"{\\n \\"title\\": \\"Georgeanne Cotton Mini Bubble Skirt\\",\\n \\"brand\\": \\"LSF\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Blue\\",\\n \\"hex_code\\": \\"C7D7E6\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 345.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 345.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"00\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"0\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"2\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"4\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"6\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"8\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"10\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"12\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"14\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Playful cotton mini skirt with a flirty bubble hem, soft blue-and-white str
2082ipe and floral print, and a zipper closure.\\",\\n \\"visual_description\\": \\"A short, voluminous bubble-style skirt in lightweight cotton poplin featuring vertical soft-blue stripes mixed with subtle floral motifs on a white base; the skirt has a gathered, rounded hem that creates a poufed silhouette and an elasticized or cinched waistband with a back/side zipper for closure. The print is delicate and spring-forward, and the overall look pairs as a coordinated set with a lace-up bustier.\\",\\n \\"highlight_phrases\\": [\\n \\"Bubble hem mini silhouette\\",\\n \\"Cotton poplin fabric\\",\\n \\"Blue-and-white stripe & floral print\\",\\n \\"Zipper closure\\",\\n \\"Pairs with matching bustier\\",\\n \\"Runs large â size down\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"blue mini bubble skirt\\",\\n \\"cotton bubble skirt\\",\\n \\"striped floral mini skirt\\",\\n \\"mini skirt with pouf hem\\",\\n \\"skylark cotton poplin skirt\\",\\n \\"matching bustier skirt set\\",\\n \\"summer mini skirt women\\",\\n \\"LSF Georgeanne skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Designed to be worn as a playful, voluminous mini with a cinched waist and rounded bubble hem.\\",\\n \\"Lightweight woven cotton â ideal for spring and summer styling.\\",\\n \\"Recommended to size down one size as the fit runs large.\\",\\n \\"Shown styled with the Bensen Cotton Lace-Up Bustier (sold separately).\\",\\n \\"Multiple numeric sizes available (00â14); some sizes may be limited.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"00\\":true,\\"0\\":true,\\"2\\":true,\\"4\\":true,\\"6\\":true,\\"8\\":false,\\"10\\":true,\\"12\\":true,\\"14\\":true}}"},"imageGallery":{"images":[{"imageId":"41a543d245b649d3","image":{"imageId":"41a543d245b649d3","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0181/8457/files/BENSENBUSTIER-CINCHEDBLUE-T1496-3123GEORGEANNESKIRT-CINCHEDBLUE-LS994-3123_003.jpg?v=1771350474"},"details":{"base64Length":303196,"width":1440,"height":2160}}},{"imageId":"00339c77baab4bf2","image":{"imageId":"00339c77baab4bf2","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0181/8457/files/BENSENBUSTIER-CINCHEDBLUE-T1496-3123GEORGEANNESKIRT-CINCHEDBLUE-LS994-3123_005.jpg?v=1771350474"},"details":{"base64Length":351216,"width":1440,"height":2160}}},{"imageId":"0ea9a02945ac2ec6","image":{"imageId":"0ea9a02945ac2ec6","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0181/8457/files/BENSENBUSTIER-CINCHEDBLUE-T1496-3123GEORGEANNESKIRT-CINCHEDBLUE-LS994-3123_049.jpg?v=1771346309"},"details":{"base64Length":296844,"width":1440,"height":2160}}},{"imageId":"993c04680eb3ee68","image":{"imageId":"993c04680eb3ee68","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0181/8457/files/BENSENBUSTIER-CINCHEDBLUE-T1496-3123GEORGEANNESKIRT-CINCHEDBLUE-LS994-3123_035.jpg?v=1771350474"},"details":{"base64Length":249104,"width":1440,"height":2160}}},{"imageId":"ceaee37daa5d6dd5","image":{"imageId":"ceaee37daa5d6dd5","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0181/8457/files/GEORGEANNESKIRTCINCHED_BLUE.jpg?v=1771346309"},"details":{"base64Length":209556,"width":1440,"height":2160}}}],"thumbnailImage":{"imageId":"41a543d245b649d3","image":{"imageId":"41a543d245b649d3","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0181/8457/files/BENSENBUSTIER-CINCHEDBLUE-T1496-3123GEORGEANNESKIRT-CINCHEDBLUE-LS994-3123_003.jpg?v=1771350474"},"details":{"base64Length":303196,"width":1440,"height":2160}}}}},{"listingId":"stories.com!0af2732aada3a254","listing":{"listingId":"stories.com!0af2732aada3a254","score":0.9524893,"metadataJson":"{\\"listing_id\\": \\"stories.com!0af2732aada3a254\\", \\"listing_title\\": \\"Bubble Mini Skirt\\", \\"name\\": \\"Bubble Mini Skirt\\", \\"url\\": \\"https://www.stories.com/en-us/product/bubble-mini-skirt-pink-print-1264190002\\", \\"price\\": 29.0, \\"regular_price\\": 89.0, \\"domain\\": \\"stories.com\\", \\"domain_display_name\\": \\"& Other Stories\\", \\"brand\\": \\"& Other Stories\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"stories.com!0af2732aada3a254","jsonString":"{\\n \\"title\\": \\"Bubble Mini Skirt\\",\\n \\"brand\\": \\"logo\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Pink\\",\\n \\"hex_code\\": \\"D783A6\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n },\\n {\\n \\"name\\": \\"Black\\",\\n \\"hex_code\\": \\"000000\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 39.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 39.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": null,\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini skirts\\"\\n ],\\n \\"one_line_description\\": \\"A lightweight poplin bubble mini skirt in pink floral print with an elastic waist and invisible side pockets.\\",\\n \\"visual_description\\": \\"Short bubble-shaped skirt in a pink floral/patterned print made from lightweight poplin; gathered at the waist and hem to create a puffed silhouette, with an elastic waistband and hidden side seam pockets; hem sits above the knee and has a voluminous, rounded shape.\\",\\n \\"highlight_phrases\\": [\\n \\"Puffed bubble silhouette\\",\\n \\"Lightweight poplin fabric\\",\\n \\"Elastic waist - easy slip-on\\",\\n \\"Invisible side seam pockets\\",\\n \\"Mini length (â41.5 cm / 16.4\\\\\\")\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"pink bubble mini skirt\\",\\n \\"puff mini skirt poplin\\",\\n \\"floral bubble skirt with pockets\\",\\n \\"elastic waist mini skirt\\",\\n \\"short puffed skirt womens\\",\\n \\"bubble hem skirt\\",\\n \\"lightweight summer mini skirt\\",\\n \\"mini skirt with hidden pockets\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Regular fit with a regular waist; length approx. 41.5 cm / 16.4\\\\\\" (EU 38 / UK 10 / US 6).\\",\\n \\"Designed with gathers at waist and hem to achieve a rounded bubble shape.\\",\\n \\"Invisible side seam pockets add function without altering silhouette.\\",\\n \\"Made from lightweight poplinâsuitable for warm-weather wear.\\",\\n \\"Brand listed as 'logo' per product data.\\"\\n ]\\n}"}},"imageGallery":{"images":[{"imageId":"f12ab4594211c079","image":{"imageId":"f12ab4594211c079","address":{"imageUrl":"https://media.stories.com/assets/005/a8/3b/a83b3a1b5dec1abdca3dcbd07301ccf96ce02b41_xxl-1.jpg?imwidth=2560"},"details":{"base64Length":364108,"width":2560,"height":3584}}}],"thumbnailImage":{"imageId":"f12ab4594211c079","image":{"imageId":"f12ab4594211c079","address":{"imageUrl":"https://media.stories.com/assets/005/a8/3b/a83b3a1b5dec1abdca3dcbd07301ccf96ce02b41_xxl-1.jpg?imwidth=2560"},"details":{"base64Length":364108,"width":2560,"height":3584}}}}},{"listingId":"adidas.com!adfbd416ca4f66bc","listing":{"listingId":"adidas.com!adfbd416ca4f66bc","score":0.94227445,"metadataJson":"{\\"listing_id\\": \\"adidas.com!adfbd416ca4f66bc\\", \\"listing_title\\": \\"Seasonal Essentials Woven Bubble Skirt\\", \\"name\\": \\"Seasonal Essentials Woven Bubble Skirt\\", \\"url\\": \\"https://www.adidas.com/us/seasonal-essentials-woven-bubble-skirt/JZ0291.html\\", \\"price\\": 25.0, \\"regular_price\\": 35.
20820, \\"domain\\": \\"adidas.com\\", \\"domain_display_name\\": \\"Adidas\\", \\"brand\\": \\"adidas\\", \\"aggregateRating\\": {\\"ratingValue\\": 4.5, \\"reviewCount\\": 22, \\"bestRating\\": 5}, \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"adidas.com!adfbd416ca4f66bc","jsonString":"{\\n \\"title\\": \\"Seasonal Essentials Woven Bubble Skirt\\",\\n \\"brand\\": \\"Homepage\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Magic Lilac\\",\\n \\"hex_code\\": \\"D8B7F0\\"\\n },\\n \\"secondary_colors\\": null,\\n \\"current_price\\": {\\n \\"value\\": 35.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 35.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": {\\n \\"rating_value\\": 5.0,\\n \\"review_count\\": 1,\\n \\"best_rating\\": 5\\n },\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"S\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Women\\",\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Lilac woven mini skirt with a voluminous bubble hem for a playful, sporty look.\\",\\n \\"visual_description\\": \\"A short, woven skirt in a soft Magic Lilac shade featuring a gathered, bubble-style hem that creates a voluminous silhouette; sits at the upper thigh with a smooth waistband and a slightly structured fabric that holds
2082shape.\\",\\n \\"highlight_phrases\\": [\\n \\"Magic Lilac color\\",\\n \\"Woven fabric\\",\\n \\"Bubble hem silhouette\\",\\n \\"Mini length\\",\\n \\"Sporty-casual style\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"lilac bubble skirt\\",\\n \\"woven mini skirt women\\",\\n \\"playful bubble hem skirt\\",\\n \\"adidas purple skirt\\",\\n \\"short athletic skirt\\",\\n \\"women's mini skirt lilac\\",\\n \\"seasonal essentials skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Model shown wearing size S; fit sits at the upper thigh.\\",\\n \\"Structured woven fabric keeps the bubble shape.\\",\\n \\"Pairs well with sweatshirts and sneakers for a sporty look.\\",\\n \\"Also available in black (alternate color variant).\\"\\n ]\\n}"}},"imageGallery":{"images":[{"imageId":"4a1b96c7e8b353d7","image":{"imageId":"4a1b96c7e8b353d7","address":{"imageUrl":"https://assets.adidas.com/images/w_600,f_auto,q_auto/c6a15bdcb3164efc9f667be7c6b7f714_9366/Seasonal_Essentials_Woven_Bubble_Skirt_Purple_JZ0291_01_laydown.jpg"},"details":{"base64Length":8072,"width":600,"height":600}}},{"imageId":"8010aa54daa38516","image":{"imageId":"8010aa54daa38516","address":{"imageUrl":"https://assets.adidas.com/images/w_600,f_auto,q_auto/92be923800ac45f0983d881dcf13ed30_9366/Seasonal_Essentials_Woven_Bubble_Skirt_Purple_JZ0291_41_detail.jpg"},"details":{"base64Length":13640,"width":600,"height":600}}},{"imageId":"a482d190ec488e7e","image":{"imageId":"a482d190ec488e7e","address":{"imageUrl":"https://assets.adidas.com/images/w_600,f_auto,q_auto/3542863599ed49a380ca1aacaedec558_9366/Seasonal_Essentials_Woven_Bubble_Skirt_Purple_JZ0291_42_detail.jpg"},"details":{"base64Length":10440,"width":600,"height":600}}}],"thumbnailImage":{"imageId":"4a1b96c7e8b353d7","image":{"imageId":"4a1b96c7e8b353d7","address":{"imageUrl":"https://assets.adidas.com/images/w_600,f_auto,q_auto/c6a15bdcb3164efc9f667be7c6b7f714_9366/Seasonal_Essentials_Woven_Bubble_Skirt_Purple_JZ0291_01_laydown.jpg"},"details":{"base64Length":8072,"width":600,"height":600}}}}}],"title":"Playful Mini Puff Skirts","isReranked":true,"numUniqueStores":53,"numUniqueBrands":105,"numProducts":219},"componentId":"carousel:af36d5800d4245f28663eac90ba7a9b3"}]},{"messageId":"53e28220d6e841ab9c7d1b0fca7c9963","role":"ASSISTANT","components":[{"text":{"text":"I found a broad mix of womenâs mini puff/bubble skirts â from casual cotton-poplin styles to more voluminous tulle/organza and vacation-ready playful options. If you like any card, select/favorite it and I can find more in that exact direction."},"componentId":"092ff741060643079c5c51f9e87b6993"}]},{"messageId":"ba2c4ecc-e3fa-4b51-817d-0dcdeb2faa8e","role":"USER","text":"something I can wear with a tank top and sandals"},{"messageId":"a416899aa0944cb2b50f033a2dcd5c28","role":"ASSISTANT","components":[{"text":{"text":"Totally â Iâll narrow this toward easy warm-weather mini puff skirts that feel casual with a tank and sandals, not too formal or costume-y."},"componentId":"52d602318b844c3d94029e23f89f2c8d"}]},{"messageId":"c915bdea0f0a419abe2424348306270c","role":"ASSISTANT","components":[{"carousel":{"cards":[{"listingId":"bluefly.com!a0bcec0d82c32f5a","listing":{"listingId":"bluefly.com!a0bcec0d82c32f5a","score":0.94137037,"metadataJson":"{\\"listing_id\\": \\"bluefly.com!a0bcec0d82c32f5a\\", \\"listing_title\\": \\"Serenette Bubble Skirt\\", \\"name\\": \\"Serenette Bubble Skirt\\", \\"url\\": \\"https://bluefly.com/products/10007_1415289668?variant=51243976425604\\", \\"price\\": 30.99, \\"regular_price\\": 140.0, \\"domain\\": \\"bluefly.com\\", \\"domain_display_name\\": \\"Bluefly\\", \\"brand\\": \\"SERENETTE\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"bluefly.com!a0bcec0d82c32f5a","jsonString":"{\\n \\"title\\": \\"Serenette Bubble Skirt\\",\\n \\"brand\\": \\"SERENETTE\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n },\\n \\"secondary_colors\\": [],\\n \\"current_price\\": {\\n \\"value\\": 30.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 140.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"Regular 0 (XS)\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"Regular 4 (S)\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"Regular 8 (M)\\",\\n \\"is_available\\": false\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"A-line Skirts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Short white bubble mini skirt in 100% cotton with an elasticized waistband and gathered, voluminous hem.\\",\\n \\"visual_description\\": \\"A white, aboveâknee bubble mini skirt made from 100% cotton with a gathered, voluminous silhouette; features an elasticized waistband and a rounded, puffy hem that creates a playful, skirtâinside effect. Smooth front and fuller back panels, plain white fabric with
2082no visible prints or trims.\\",\\n \\"highlight_phrases\\": [\\n \\"100% cotton\\",\\n \\"Elasticized waistband\\",\\n \\"Bubble/voluminous hem\\",\\n \\"Mini length (~15 in from waist)\\",\\n \\"Machine/hand wash care (hand wash recommended)\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"white bubble skirt\\",\\n \\"cotton mini skirt with elastic waist\\",\\n \\"voluminous mini skirt women\\",\\n \\"bubble hem skirt\\",\\n \\"short white a-line skirt\\",\\n \\"playful white summer skirt\\",\\n \\"Serenette skirt white\\",\\n \\"mini skirt with gathered hem\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Approx. 15 inches from waist to hem (length may vary by size).\\",\\n \\"Imported garment with a simple, clean silhouette suitable for casual looks.\\",\\n \\"Available in standard US sizes (shown: XS, S, M).\\",\\n \\"Compare-at price indicates original MSRP; current price reflects discount.\\",\\n \\"Model is 5'10.5\\\\\\" wearing a size Small (for fit reference).\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"Regular 0 (XS)\\":true,\\"Regular 4 (S)\\":true,\\"Regular 8 (M)\\":false}}"},"imageGallery":{"images":[{"imageId":"dce7a5c25a317627","image":{"imageId":"dce7a5c25a317627","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415289668_RLLZ_1.jpg?v=1761965058"},"details":{"base64Length":35640,"width":864,"height":1080}}},{"imageId":"5a4acc3fb72c9dae","image":{"imageId":"5a4acc3fb72c9dae","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415289668_RLLZ_2.jpg?v=1761965058"},"details":{"base64Length":36960,"width":864,"height":1080}}}],"thumbnailImage":{"imageId":"dce7a5c25a317627","image":{"imageId":"dce7a5c25a317627","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415289668_RLLZ_1.jpg?v=1761965058"},"details":{"base64Length":35640,"width":864,"height":1080}}}}},{"listingId":"loft.com!3526027848dab0b7","listing":{"listingId":"loft.com!3526027848dab0b7","score":0.9509284,"metadataJson":"{\\"listing_id\\": \\"loft.com!3526027848dab0b7\\", \\"listing_title\\": \\"Poplin Ruched Bubble Mini Skirt\\", \\"name\\": \\"Poplin Ruched Bubble Mini Skirt\\", \\"url\\": \\"https://www.loft.com/clothing/skirts/catl000017/poplin-ruched-bubble-mini-skirt/759161.html\\", \\"price\\": 18.44, \\"regular_price\\": 69.95, \\"domain\\": \\"loft.com\\", \\"domain_display_name\\": \\"Loft\\", \\"brand\\": \\"Loft\\", \\"aggregateRating\\": {\\"ratingValue\\": 4.7, \\"reviewCount\\": 25, \\"bestRating\\": 5}, \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"loft.com!3526027848dab0b7","jsonString":"{\\n \\"title\\": \\"Poplin Ruched Bubble Mini Skirt\\",\\n \\"brand\\": \\"LOFT\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Black\\",\\n \\"hex_code\\": \\"000000\\"\\n },\\n \\"secondary_colors\\": null,\\n \\"current_price\\": {\\n \\"value\\": 13.5,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 44.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": {\\n \\"rating_value\\": null,\\n \\"review_count\\": 24,\\n \\"best_rating\\": null\\n },\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"XXS\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XS\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"S\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"M\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"L\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XL\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XXL\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Black poplin bubble mini skirt with ruched waist and voluminous hem for a flouncy, structured silhouette.\\",\\n \\"visual_description\\": \\"A short black poplin skirt featuring a gathered, ruched waistband and a voluminous bubble hem that creates a rounded, puffed silhouette; smooth cotton shell with an internal lining, sits at the natural waist and falls to a mini length.\\",\\n \\"highlight_phrases\\": [\\n \\"Poplin cotton shell\\",\\n \\"Ruched elastic waist\\",\\n \\"Bubble/voluminous hem\\",\\n \\"Fully lined\\",\\n \\"Online exclusive color\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"black bubble mini skirt\\",\\n \\"poplin ruched skirt\\",\\n \\"ruched waist mini skirt\\",\\n \\"voluminous bubble hem skirt\\",\\n \\"LOFT black mini skirt\\",\\n \\"lined cotton mini skirt\\",\\n \\"summer party mini skirt\\",\\n \\"fit and flare mini skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Shell: 100% cotton; Lining: 100% cotton.\\",\\n \\"Available in sizes XXSâXXL (online listing).\\",\\n \\"Discounted from regular price; current sale price listed in USD.\\",\\n \\"Structured poplin gives shape and subtle sheen.\\",\\n \\"Styling pairs well with fitted to
2082ps and flats or heels.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XXS\\":false,\\"XS\\":false,\\"S\\":false,\\"M\\":false,\\"L\\":false,\\"XL\\":true,\\"XXL\\":false}}"},"imageGallery":{"images":[{"imageId":"6475861cf6246442","image":{"imageId":"6475861cf6246442","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdp/v1775810632/LO/759161_2222_D1"},"details":{"base64Length":98004,"width":1158,"height":1333}}},{"imageId":"24c8ee1e8b6eb6ce","image":{"imageId":"24c8ee1e8b6eb6ce","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdpthumb/v1775810456/LO/759161_2222_B1"},"details":{"base64Length":15220,"width":214,"height":246}}},{"imageId":"3952d890249afead","image":{"imageId":"3952d890249afead","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdp/v1775810456/LO/759161_2222_B1"},"details":{"base64Length":82084,"width":1158,"height":1333}}},{"imageId":"67cf37904f0d5a39","image":{"imageId":"67cf37904f0d5a39","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdpthumb/v1775810632/LO/759161_2222_D1"},"details":{"base64Length":14596,"width":214,"height":246}}},{"imageId":"be839a9aa1c6999f","image":{"imageId":"be839a9aa1c6999f","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdpthumb/v1775810470/LO/759161_2222"},"details":{"base64Length":13524,"width":214,"height":246}}},{"imageId":"e692c7275bb54c92","image":{"imageId":"e692c7275bb54c92","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdp/v1775810470/LO/759161_2222"},"details":{"base64Length":49768,"width":1158,"height":1333}}}],"thumbnailImage":{"imageId":"6475861cf6246442","image":{"imageId":"6475861cf6246442","address":{"imageUrl":"https://assets.loft.com/image/upload/t_fullpdp/v1775810632/LO/759161_2222_D1"},"details":{"base64Length":98004,"width":1158,"height":1333}}}}},{"listingId":"asos.com!6937b5ace29e2303","listing":{"listingId":"asos.com!6937b5ace29e2303","score":0.94999623,"metadataJson":"{\\"listing_id\\": \\"asos.com!6937b5ace29e2303\\", \\"listing_title\\": \\"ASOS DESIGN jersey bubble mini skirt in gray\\", \\"name\\": \\"ASOS DESIGN jersey bubble mini skirt in gray\\", \\"url\\": \\"https://www.asos.com/us/asos-design/asos-design-jersey-bubble-mini-skirt-in-gray/prd/210654721\\", \\"price\\": 37.99, \\"regular_price\\": 37.99, \\"domain\\": \\"asos.com\\", \\"domain_display_name\\": \\"ASOS\\", \\"brand\\": \\"ASOS DESIGN\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"asos.com!6937b5ace29e2303","jsonString":"{\\n \\"title\\": \\"ASOS DESIGN jersey bubble mini skirt in gray\\",\\n \\"brand\\": \\"ASOS home\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Gray\\",\\n \\"hex_code\\": \\"909090\\"\\n },\\n \\"secondary_colors\\": [],\\n \\"current_price\\": {\\n \\"value\\": 37.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 37.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"XS - US 0-2\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"S - US 4-6\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"M - US 8-10\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"L - US 12-14\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Gray jersey bubble mini skirt with an elasticized mid-rise waistband and gathered bubble hem.\\",\\n \\"visual_description\\": \\"Soft gray jersey fabric formed into a short mini silhouette with a gathered, voluminous bubble hem; mid-rise with an elasticized waistband and regular fit through the hips. The knit has a smooth, slightly heathered appearance and the skirt creates a rounded, puffed shape at the hem.\\",\\n \\"highlight_phrases\\": [\\n \\"Jersey knit (100% polyester)\\",\\n \\"Bubble hem\\",\\n \\"Mid rise\\",\\n \\"Elasticized waistband\\",\\n \\"Regular fit\\",\\n \\"Machine washable\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"gray bubble mini skirt\\",\\n \\"jersey mini skirt\\",\\n \\"ASOS bubble skirt\\",\\n \\"elastic waistband mini skirt\\",\\n \\"short puff skirt\\",\\n \\"heather gray mini skirt\\",\\n \\"casual summer mini skirt\\",\\n \\"bubble hem skirt womens\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Made from soft, stretchy jersey fabric (main: 100% polyester).\\",\\n \\"Designed by ASOS DESIGN and available in standard size ranges including XSâL.\\",\\n \\"Care: machine wash per care label instructions.\\",\\n \\"Creates a voluminous, rounded silhouette due to gathered construction at the hem.\\",\\n \\"Styled here with a fitted to
2082p to balance the skirt's puffed shape.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XS - US 0-2\\":true,\\"S - US 4-6\\":true,\\"M - US 8-10\\":true,\\"L - US 12-14\\":true}}"},"imageGallery":{"images":[{"imageId":"4deb5da274a9c2c9","image":{"imageId":"4deb5da274a9c2c9","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-jersey-bubble-mini-skirt-in-gray/210654721-1-grey"},"details":{"base64Length":10624,"width":313,"height":400}}},{"imageId":"6d1aa2f4ac81822b","image":{"imageId":"6d1aa2f4ac81822b","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-jersey-bubble-mini-skirt-in-gray/210654721-5"},"details":{"base64Length":10176,"width":313,"height":400}}},{"imageId":"6d2a14c081c219a5","image":{"imageId":"6d2a14c081c219a5","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-jersey-bubble-mini-skirt-in-gray/210654721-4"},"details":{"base64Length":19344,"width":313,"height":400}}},{"imageId":"e04919b1920d68cf","image":{"imageId":"e04919b1920d68cf","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-jersey-bubble-mini-skirt-in-gray/210654721-2"},"details":{"base64Length":11812,"width":313,"height":400}}},{"imageId":"f46fb326c37fc640","image":{"imageId":"f46fb326c37fc640","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-jersey-bubble-mini-skirt-in-gray/210654721-3"},"details":{"base64Length":14516,"width":313,"height":400}}}],"thumbnailImage":{"imageId":"4deb5da274a9c2c9","image":{"imageId":"4deb5da274a9c2c9","address":{"imageUrl":"https://images.asos-media.com/products/asos-design-jersey-bubble-mini-skirt-in-gray/210654721-1-grey"},"details":{"base64Length":10624,"width":313,"height":400}}}}},{"listingId":"stories.com!0af2732aada3a254","listing":{"listingId":"stories.com!0af2732aada3a254","score":0.95512605,"metadataJson":"{\\"listing_id\\": \\"stories.com!0af2732aada3a254\\", \\"listing_title\\": \\"Bubble Mini Skirt\\", \\"name\\": \\"Bubble Mini Skirt\\", \\"url\\": \\"https://www.stories.com/en-us/product/bubble-mini-skirt-pink-print-1264190002\\", \\"price\\": 29.0, \\"regular_price\\": 89.0, \\"domain\\": \\"stories.com\\", \\"domain_display_name\\": \\"& Other Stories\\", \\"brand\\": \\"& Other Stories\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"stories.com!0af2732aada3a254","jsonString":"{\\n \\"title\\": \\"Bubble Mini Skirt\\",\\n \\"brand\\": \\"logo\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Pink\\",\\n \\"hex_code\\": \\"D783A6\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n },\\n {\\n \\"name\\": \\"Black\\",\\n \\"hex_code\\": \\"000000\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 39.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 39.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": null,\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini skirts\\"\\n ],\\n \\"one_line_description\\": \\"A lightweight poplin bubble mini skirt in pink floral print with an elastic waist and invisible side pockets.\\",\\n \\"visual_description\\": \\"Short bubble-shaped skirt in a pink floral/patterned print made from lightweight poplin; gathered at the waist and hem to create a puffed silhouette, with an elastic waistband and hidden side seam pockets; hem sits above the knee and has a voluminous, rounded shape.\\",\\n \\"highlight_phrases\\": [\\n \\"Puffed bubble silhouette\\",\\n \\"Lightweight poplin fabric\\",\\n \\"Elastic waist - easy slip-on\\",\\n \\"Invisible side seam pockets\\",\\n \\"Mini length (â41.5 cm / 16.4\\\\\\")\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"pink bubble mini skirt\\",\\n \\"puff mini skirt poplin\\",\\n \\"floral bubble skirt with pockets\\",\\n \\"elastic waist mini skirt\\",\\n \\"short puffed skirt womens\\",\\n \\"bubble hem skirt\\",\\n \\"lightweight summer mini skirt\\",\\n \\"mini skirt with hidden pockets\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Regular fit with a regular waist; length approx. 41.5 cm / 16.4\\\\\\" (EU 38 / UK 10 / US 6).\\",\\n \\"Designed with gathers at waist and hem to achieve a rounded bubble shape.\\",\\n \\"Invisible side seam pockets add function without altering silhouette.\\",\\n \\"Made from lightweight poplinâsuitable for warm-weather wear.\\",\\n \\"Brand listed as 'logo' per product data.\\"\\n ]\\n}"}},"imageGallery":{"images":[{"imageId":"f12ab4594211c079","image":{"imageId":"f12ab4594211c079","address":{"imageUrl":"https://media.stories.com/assets/005/a8/3b/a83b3a1b5dec1abdca3dcbd07301ccf96ce02b41_xxl-1.jpg?imwidth=2560"},"details":{"base64Length":364108,"width":2560,"height":3584}}}],"thumbnailImage":{"imageId":"f12ab4594211c079","image":{"imageId":"f12ab4594211c079","address":{"imageUrl":"https://media.stories.com/assets/005/a8/3b/a83b3a1b5dec1abdca3dcbd07301ccf96ce02b41_xxl-1.jpg?imwidth=2560"},"details":{"base64Length":364108,"width":2560,"height":3584}}}}},{"listingId":"nastygal.com!afc565f5b9b71ff2","listing":{"listingId":"nastygal.com!afc565f5b9b71ff2","score":0.9573454,"metadataJson":"{\\"listing_id\\": \\"nastygal.com!afc565f5b9b71ff2\\", \\"listing_title\\": \\"Textured Puffball Mini Skirt\\", \\"name\\": \\"Textured Puffball Mini Skirt\\", \\"url\\": \\"https://www.nastygal.com/product/boohoo-textured-puffball-mini-skirt_hzz31214\\", \\"price\\": 15.6, \\"regular_price\\": 52.0, \\"domain\\": \\"nastygal.com\\", \\"domain_display_name\\": \\"Nasty Gal\\", \\"brand\\": \\"boohoo\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"nastygal.com!afc565f5b9b71ff2","jsonString":"{\\n \\"title\\": \\"Textured Puffball Mini Skirt\\",\\n \\"brand\\": \\"boohoo\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Blue\\",\\n \\"hex_code\\": \\"ADD8E6\\"\\n },\\n \\"secondary_colors\\": null,\\n \\"current_price\\": {\\n \\"value\\": 22.4,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 56.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"2\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"4\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"6\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"8\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"10\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"12\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Casual Skirts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Lightweight textured cotton mini skirt with an elasticated drawstring waist and voluminous bubble (puffball) hem.\\",\\n \\"visual_description\\": \\"A light blue textured woven cotton mini skirt with a gathered, voluminous bubble (puffball) hem and an elasticated waistband with visible drawstring; the skirt has a short, flirty mini length and a soft, slightly ruffled surface for added dimension.\\",\\n \\"highlight_phrases\\": [\\n \\"Bubble / puffball hem\\",\\n \\"Textured woven cotton\\",\\n \\"Elasticated waistband with drawstring\\",\\n \\"Lightweight & breathable\\",\\n \\"Mini length\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"blue puffball mini skirt\\",\\n \\"bubble hem mini skirt\\",\\n \\"textured cotton mini skirt\\",\\n \\"boohoo mini skirt blue\\",\\n \\"summer festival skirt puffball\\",\\n \\"elastic waist drawstring skirt\\",\\n \\"voluminous mini skirt\\",\\n \\"casual daytime mini skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Playful gathered silhouette adds volume and dimension.\\",\\n \\"Designed for warmer weather â breathable cotton fabric.\\",\\n \\"Pairs well with fitted to
2082ps or relaxed tees for versatile styling.\\",\\n \\"Adjustable drawstring at the waist for a customised fit.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"2\\":true,\\"4\\":true,\\"6\\":true,\\"8\\":true,\\"10\\":true,\\"12\\":true}}"},"imageGallery":{"images":[{"imageId":"9ba90e0377f5cc92","image":{"imageId":"9ba90e0377f5cc92","address":{"imageUrl":"https://mediahub.nastygal.com/hzz31214_blue_xl"},"details":{"base64Length":223476,"width":2000,"height":3000}}},{"imageId":"1da1295b0a5b58f8","image":{"imageId":"1da1295b0a5b58f8","address":{"imageUrl":"https://mediahub.nastygal.com/hzz31214_blue_xl_1"},"details":{"base64Length":232736,"width":2000,"height":3000}}},{"imageId":"c4811f6e428ea528","image":{"imageId":"c4811f6e428ea528","address":{"imageUrl":"https://mediahub.nastygal.com/hzz31214_blue_xl_3"},"details":{"base64Length":196548,"width":2000,"height":3000}}},{"imageId":"ddf7f89003a36a35","image":{"imageId":"ddf7f89003a36a35","address":{"imageUrl":"https://mediahub.nastygal.com/hzz31214_blue_xl_2"},"details":{"base64Length":131288,"width":2000,"height":3000}}}],"thumbnailImage":{"imageId":"9ba90e0377f5cc92","image":{"imageId":"9ba90e0377f5cc92","address":{"imageUrl":"https://mediahub.nastygal.com/hzz31214_blue_xl"},"details":{"base64Length":223476,"width":2000,"height":3000}}}}},{"listingId":"shop.mango.com!25c48cb09129a06a","listing":{"listingId":"shop.mango.com!25c48cb09129a06a","score":0.9533931,"metadataJson":"{\\"listing_id\\": \\"shop.mango.com!25c48cb09129a06a\\", \\"listing_title\\": \\"Mini balloon skirt\\", \\"name\\": \\"Mini balloon skirt\\", \\"url\\": \\"https://shop.mango.com/us/en/p/women/skirts/short/mini-balloon-skirt/87068650/02/00\\", \\"price\\": 41.99, \\"regular_price\\": 69.99, \\"domain\\": \\"shop.mango.com\\", \\"domain_display_name\\": \\"Mango\\", \\"brand\\": \\"Mango\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"shop.mango.com!25c48cb09129a06a","jsonString":"{\\n \\"title\\": \\"Mini balloon skirt\\",\\n \\"brand\\": \\"Mango\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Off White\\",\\n \\"hex_code\\": \\"F5F5EC\\"\\n },\\n \\"secondary_colors\\": null,\\n \\"current_price\\": {\\n \\"value\\": 41.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 69.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": null,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": null,\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Balloon / Bubble Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Off-white short balloon mini skirt in cotton with a bubble hem, mid-rise waist and hidden side zipper with inner lining.\\",\\n \\"visual_description\\": \\"A short, off-white mini skirt made from structured 100% cotton featuring a rounded bubble hem that creates a voluminous silhouette; sits at a mid-rise waist with a narrow waistband and a hidden side zipper closure, includes a removable-seeming inner lining (light-colored) and clean, seam-finished panels for a slightly flared shape.\\",\\n \\"highlight_phrases\\": [\\n \\"100% cotton\\",\\n \\"Bubble (balloon) hem\\",\\n \\"Mini / short length\\",\\n \\"Mid-rise waistband\\",\\n \\"Hidden side zipper\\",\\n \\"Inner lining (50% polyester / 50% cotton)\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"off white mini balloon skirt\\",\\n \\"cotton bubble hem skirt\\",\\n \\"short balloon skirt Mango\\",\\n \\"mid rise mini skirt with lining\\",\\n \\"women's off white mini skirt side zipper\\",\\n \\"voluminous bubble hem mini skirt\\",\\n \\"cream mini skirt cotton\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Composition: Shell 100% cotton; lining 50% polyester, 50% cotton.\\",\\n \\"Structured panels create a flared silhouette with a rounded hemline.\\",\\n \\"Concealed side zip for a smooth waist finish.\\",\\n \\"Styling works well with tucked tops and statement belts.\\",\\n \\"Color appears as a warm off-white / cream in product images.\\"\\n ]\\n}"}},"imageGallery":{"images":[{"imageId":"b19cddd81475790b","image":{"imageId":"b19cddd81475790b","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-002"},"details":{"base64Length":24320,"width":733,"height":1024}}},{"imageId":"192680e17b93e1d4","image":{"imageId":"192680e17b93e1d4","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-001"},"details":{"base64Length":30100,"width":733,"height":1024}}},{"imageId":"4035c2bb8ce0372f","image":{"imageId":"4035c2bb8ce0372f","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-900"},"details":{"base64Length":4444,"width":733,"height":1024}}},{"imageId":"5b11bbe1222f2e72","image":{"imageId":"5b11bbe1222f2e72","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-010"},"details":{"base64Length":32376,"width":733,"height":1024}}},{"imageId":"8aa312ecb9fa2c86","image":{"imageId":"8aa312ecb9fa2c86","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-030"},"details":{"base64Length":18708,"width":733,"height":1024}}},{"imageId":"b9f3d5c3a7fb0fbf","image":{"imageId":"b9f3d5c3a7fb0fbf","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-004"},"details":{"base64Length":23144,"width":733,"height":1024}}},{"imageId":"ed3121e22e27717e","image":{"imageId":"ed3121e22e27717e","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-003"},"details":{"base64Length":23376,"width":733,"height":1024}}},{"imageId":"f2029d9d3ba8f643","image":{"imageId":"f2029d9d3ba8f643","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-007"},"details":{"base64Length":43024,"width":733,"height":1024}}},{"imageId":"f6a346dee1da4c0d","image":{"imageId":"f6a346dee1da4c0d","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-023"},"details":{"base64Length":9664,"width":733,"height":1024}}}],"thumbnailImage":{"imageId":"b19cddd81475790b","image":{"imageId":"b19cddd81475790b","address":{"imageUrl":"https://media.mango.com/is/image/punto/87068650-02-002"},"details":{"base64Length":24320,"width":733,"height":1024}}}}}],"title":"Tank-and-Sandals Puff Mini Skirts","isReranked":true,"numUniqueStores":65,"numUniqueBrands":118,"numProducts":216},"componentId":"carousel:377f1699f1614895922fb830225c404a"}]},{"messageId":"0d57db2eb44247118a3810d1ae971dc0","role":"ASSISTANT","components":[{"text":{"text":"I narrowed it to softer, summery puff/bubble minis â the kind that should work with a simple tank, flat sandals, slides, or espadrilles. I weighted cotton/poplin/linen-like styles higher and tried to avoid the dressier tulle-party-skirt end."},"componentId":"fcfebc46937a44dbb7cae8a541cd0b35"}]},{"messageId":"a0b16ab7-bb5b-4c42-9b64-ace3c39ef045","role":"USER","text":"More like this","selectedListingCardIds":[{"messageId":"c915bdea0f0a419abe2424348306270c","listingId":"tnuck.com!00ee6c76bab1eaf2"}]},{"messageId":"2e60c270912d42d2b2b7c4c4f143b1d4","role":"ASSISTANT","components":[{"text":{"text":"Iâll use that skirt as the reference and look for similar easy, polished mini styles."},"componentId":"c747a057f0994e43bf2e5b5fa3384b8f"}]},{"messageId":"25110ce466394332b3815f891f4a2964","role":"ASSISTANT","components":[{"text":{"text":"Nice pick â that one is a navy-and-ivory polka dot bubble mini with a clean elastic waist and casual-preppy vacation feel. Here are more in that lane."},"componentId":"fba9c38aa75940eea55b37dd4e6b25aa"}]},{"messageId":"1f8b1d3bf90b4ea8a481ce32306586fc","role":"ASSISTANT","components":[{"carousel":{"cards":[{"listingId":"tnuck.com!00ee6c76bab1eaf2","listing":{"listingId":"tnuck.com!00ee6c76bab1eaf2","score":1,"metadataJson":"{\\"listing_id\\": \\"tnuck.com!00ee6c76bab1eaf2\\", \\"listing_title\\": \\"Navy & Ivory Polka Dot Zoe Bubble Mini Skirt\\", \\"name\\": \\"Navy & Ivory Polka Dot Zoe Bubble Mini Skirt\\", \\"url\\": \\"https://tnuck.com/products/navy-ivory-polka-dot-zoe-bubble-mini-skirt?variant=47990025879774\\", \\"price\\": 128.0, \\"regular_price\\": 128.0, \\"domain\\": \\"tnuck.com\\", \\"domain_display_name\\": \\"Tuckernuck\\", \\"brand\\": \\"English Factory\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"tnuck.com!00ee6c76bab1eaf2","jsonString":"{\\n \\"title\\": \\"Navy & Ivory Polka Dot Zoe Bubble Mini Skirt\\",\\n \\"brand\\": \\"English Factory\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Navy\\",\\n \\"hex_code\\": \\"000080\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"Ivory\\",\\n \\"hex_code\\": \\"FFFFF0\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 128.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 128.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"XS\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"S\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"M\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"L\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XL\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble Hem Skirts\\"\\n ],\\n \\"one_line_description\\": \\"A navy-and-ivory polka-dot mini skirt with a fitted elastic waist and playful bubble hem, fully lined for c
2082omfortable wear.\\",\\n \\"visual_description\\": \\"Navy mini skirt patterned with large ivory polka dots; fitted elasticized waist at the front and gathered, bubble-style silhouette creating volume through the hem; fully lined with a smooth interior; length falls to the upper thigh; clean waistband and concealed seams with a flouncy, rounded shape when worn.\\",\\n \\"highlight_phrases\\": [\\n \\"Bubble hem\\",\\n \\"Navy with ivory polka dots\\",\\n \\"Elasticized fitted waist\\",\\n \\"Fully lined\\",\\n \\"Mini length\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"navy polka dot mini skirt\\",\\n \\"bubble hem skirt\\",\\n \\"lined polka dot skirt\\",\\n \\"elastic waist mini skirt\\",\\n \\"summer navy mini skirt\\",\\n \\"English Factory Zoe skirt\\",\\n \\"playful polka dot skirt\\",\\n \\"casual weekend mini skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Fabric: 50% polyester, 50% nylon outer; 100% cotton lining.\\",\\n \\"Care: machine wash cold, lay flat to dry.\\",\\n \\"Styled here with a tucked white tee and sandals for an elevated casual look.\\",\\n \\"Available in sizes XSâXL.\\",\\n \\"Price shown is the retail price.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XS\\":true,\\"S\\":true,\\"M\\":true,\\"L\\":true,\\"XL\\":true}}"},"imageGallery":{"images":[{"imageId":"daf909331897a185","image":{"imageId":"daf909331897a185","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1705287_01.jpg?v=1783001883"},"details":{"base64Length":931324,"width":2500,"height":3748}}},{"imageId":"43616e70d72d436e","image":{"imageId":"43616e70d72d436e","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1705287_04.jpg?v=1783001882"},"details":{"base64Length":812884,"width":2500,"height":3750}}},{"imageId":"565ae2e2969d1350","image":{"imageId":"565ae2e2969d1350","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1705287_03.jpg?v=1783001883"},"details":{"base64Length":925056,"width":2500,"height":3750}}},{"imageId":"6177581191e6b409","image":{"imageId":"6177581191e6b409","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1705287_06.jpg?v=1783001882"},"details":{"base64Length":948944,"width":2500,"height":3749}}},{"imageId":"b627af5c89a0fb72","image":{"imageId":"b627af5c89a0fb72","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1705287_05.jpg?v=1783001883"},"details":{"base64Length":1000000,"width":2500,"height":3750}}},{"imageId":"d9e83d42e3239211","image":{"imageId":"d9e83d42e3239211","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1705287_02.jpg?v=1783001883"},"details":{"base64Length":944208,"width":2500,"height":3750}}}],"thumbnailImage":{"imageId":"daf909331897a185","image":{"imageId":"daf909331897a185","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1705287_01.jpg?v=1783001883"},"details":{"base64Length":931324,"width":2500,"height":3748}}}}},{"listingId":"asos.com!72485099805d7ba8","listing":{"listingId":"asos.com!72485099805d7ba8","score":1,"metadataJson":"{\\"listing_id\\": \\"asos.com!72485099805d7ba8\\", \\"listing_title\\": \\"JDY bubble hem mini skirt in navy\\", \\"name\\": \\"JDY bubble hem mini skirt in navy\\", \\"url\\": \\"https://www.asos.com/us/jdy/jdy-bubble-hem-mini-skirt-in-navy/prd/207717822\\", \\"price\\": 23.5, \\"regular_price\\": 47.0, \\"domain\\": \\"asos.com\\", \\"domain_display_name\\": \\"ASOS\\", \\"brand\\": \\"JDY\\", \\"aggregateRating\\": {\\"ratingValue\\": 5.0, \\"reviewCount\\": 1, \\"bestRating\\": 5}, \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"asos.com!72485099805d7ba8","jsonString":"{\\n \\"title\\": \\"JDY bubble hem mini skirt in navy\\",\\n \\"brand\\": \\"ASOS\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Navy\\",\\n \\"hex_code\\": \\"000080\\"\\n },\\n \\"secondary_colors\\": [],\\n \\"current_price\\": {\\n \\"value\\": 23.5,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 47.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"XS - US 2\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"S - US 4\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"M - US 6\\",\\n \\"is_available\\": true\\n }
2082,\\n {\\n \\"name\\": \\"L - US 8\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XL - US 10\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"2XL - US 12\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"3XL - US 14\\",\\n \\"is_available\\": false\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble Hem Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Navy mid-rise pleated mini skirt with a voluminous bubble hem and regular fit.\\",\\n \\"visual_description\\": \\"A navy plain-woven mini skirt with a fitted mid-rise waistband, front pleated panels and a gathered bubble hem creating a voluminous, rounded silhouette; knee-above length in a smooth cotton-blend fabric with subtle structure and clean finish.\\",\\n \\"highlight_phrases\\": [\\n \\"Bubble hem\\",\\n \\"Mid rise\\",\\n \\"Pleated detailing\\",\\n \\"Cotton-blend (72% cotton)\\",\\n \\"Machine washable\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"navy bubble hem mini skirt\\",\\n \\"pleated mini skirt women\\",\\n \\"JDY mini skirt navy\\",\\n \\"cotton blend bubble skirt\\",\\n \\"mid rise mini skirt\\",\\n \\"voluminous bubble hem skirt\\",\\n \\"ASOS navy skirt\\",\\n \\"summer navy mini skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Fabric composition: 72% cotton, 24% polyester, 4% elastane.\\",\\n \\"Regular fit with structured pleats for added volume.\\",\\n \\"Care: machine wash according to care label.\\",\\n \\"Available in sizes XSâ3XL with some larger sizes out of stock.\\",\\n \\"Styled as a casual, playful silhouette suitable for daywear.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XS - US 2\\":true,\\"S - US 4\\":false,\\"M - US 6\\":false,\\"L - US 8\\":false,\\"XL - US 10\\":false,\\"2XL - US 12\\":false,\\"3XL - US 14\\":false}}"},"imageGallery":{"images":[{"imageId":"5386c2f5db8f0862","image":{"imageId":"5386c2f5db8f0862","address":{"imageUrl":"https://images.asos-media.com/products/jdy-bubble-hem-mini-skirt-in-navy/207717822-1-navy"},"details":{"base64Length":9952,"width":313,"height":400}}}
2082,{"imageId":"0242b5f21062e4f8","image":{"imageId":"0242b5f21062e4f8","address":{"imageUrl":"https://images.asos-media.com/products/jdy-bubble-hem-mini-skirt-in-navy/207717822-4"},"details":{"base64Length":9648,"width":313,"height":400}}},{"imageId":"7351b26674d8c470","image":{"imageId":"7351b26674d8c470","address":{"imageUrl":"https://images.asos-media.com/products/jdy-bubble-hem-mini-skirt-in-navy/207717822-2"},"details":{"base64Length":13116,"width":313,"height":400}}},{"imageId":"bd2b90d524c47bd4","image":{"imageId":"bd2b90d524c47bd4","address":{"imageUrl":"https://images.asos-media.com/products/jdy-bubble-hem-mini-skirt-in-navy/207717822-5"},"details":{"base64Length":8784,"width":313,"height":400}}},{"imageId":"eaeb2eb215db3301","image":{"imageId":"eaeb2eb215db3301","address":{"imageUrl":"https://images.asos-media.com/products/jdy-bubble-hem-mini-skirt-in-navy/207717822-3"},"details":{"base64Length":11284,"width":313,"height":400}}}],"thumbnailImage":{"imageId":"5386c2f5db8f0862","image":{"imageId":"5386c2f5db8f0862","address":{"imageUrl":"https://images.asos-media.com/products/jdy-bubble-hem-mini-skirt-in-navy/207717822-1-navy"},"details":{"base64Length":9952,"width":313,"height":400}}}}},{"listingId":"bloomingdales.com!bd67d8a5da71a6bb","listing":{"listingId":"bloomingdales.com!bd67d8a5da71a6bb","score":1,"metadataJson":"{\\"listing_id\\": \\"bloomingdales.com!bd67d8a5da71a6bb\\", \\"listing_title\\": \\"Bandana Bubble Skirt - Exclusive\\", \\"name\\": \\"Bandana Bubble Skirt - Exclusive\\", \\"url\\": \\"https://www.bloomingdales.com/shop/product/aqua-bandana-bubble-skirt-exclusive?ID=6049930\\", \\"price\\": 78.0, \\"domain\\": \\"bloomingdales.com\\", \\"domain_display_name\\": \\"Bloomingdale's\\", \\"brand\\": \\"AQUA\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"bloomingdales.com!bd67d8a5da71a6bb","jsonString":"{\\n \\"title\\": \\"Bandana Bubble Skirt - Exclusive\\",\\n \\"brand\\": \\"AQUA\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Navy\\",\\n \\"hex_code\\": \\"000080\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 78.0,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": null,\\n \\"is_available\\": null,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": null,\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Bubble Skirts\\"\\n ],\\n \\"one_line_description\\": \\"A navy-and-white bandana-print mini skirt with a gathered fit-and-flare shape and playful bubble hem.\\",\\n \\"visual_description\\": \\"Navy mini skirt printed with small white bandana motifs and a denser bandana border along the hem; gathered waistband creates voluminous fit-and-flare silhouette with a rounded bubble hem and on-seam hip pockets; lightweight, slightly textured fabric with a smooth polyester lining, finished with an invisible back zip.\\",\\n \\"highlight_phrases\\": [\\n \\"Bandana print\\",\\n \\"Bubble hem\\",\\n \\"Fit-and-flare silhouette\\",\\n \\"On-seam hip pockets\\",\\n \\"Back zip closure\\",\\n \\"Mini length (~14.5\\\\\\" for size S)\\",\\n \\"Bloomingdale's exclusive\\",\\n \\"Hand wash; imported\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"navy bandana print skirt\\",\\n \\"bubble hem mini skirt\\",\\n \\"AQUA bandana skirt\\",\\n \\"fit and flare mini skirt with pockets\\",\\n \\"bandana print mini skirt Bloomingdale's\\",\\n \\"summer navy mini skirt\\",\\n \\"bandana border hem skirt\\",\\n \\"cute flared mini skirt with zip\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Fabric: 90% polyester, 10% cotton; lining 100% polyester.\\",\\n \\"Designed for a mini length â approx. 14.5\\\\\\" based on a size small; fits true to size.\\",\\n \\"Features functional on-seam pockets and an invisible back zipper for closure.\\",\\n \\"Styled with a fuller, gathered waist that creates volume and movement.\\",\\n \\"Hand wash only; imported.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XS\\":true,\\"S\\":true,\\"M\\":true,\\"L\\":true,\\"XL\\":true,\\"XXL\\":true,\\"XXS\\":true}}"},"imageGallery":{"images":[{"imageId":"372fa0723ad13279","image":{"imageId":"372fa0723ad13279","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/5/optimized/16116705_fpx.tif"},"details":{"base64Length":15612,"width":320,"height":400}}},{"imageId":"4eea0f61df39582c","image":{"imageId":"4eea0f61df39582c","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/9/optimized/16116709_fpx.tif"},"details":{"base64Length":31736,"width":320,"height":400}}},{"imageId":"7ee395eb7059fb68","image":{"imageId":"7ee395eb7059fb68","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/7/optimized/16116707_fpx.tif"},"details":{"base64Length":15240,"width":320,"height":400}}},{"imageId":"9fcd6fc20beaf0f9","image":{"imageId":"9fcd6fc20beaf0f9","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/8/optimized/16127788_fpx.tif"},"details":{"base64Length":13716,"width":320,"height":400}}},{"imageId":"ae3ea4a4a149643a","image":{"imageId":"ae3ea4a4a149643a","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/8/optimized/16116708_fpx.tif"},"details":{"base64Length":11724,"width":320,"height":400}}},{"imageId":"bcd8e091e3fafd5e","image":{"imageId":"bcd8e091e3fafd5e","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/7/optimized/16127787_fpx.tif"},"details":{"base64Length":14988,"width":320,"height":400}}}],"thumbnailImage":{"imageId":"372fa0723ad13279","image":{"imageId":"372fa0723ad13279","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/5/optimized/16116705_fpx.tif"},"details":{"base64Length":15612,"width":320,"height":400}}}}},{"listingId":"bloomingdales.com!297ec22321210711","listing":{"listingId":"bloomingdales.com!297ec22321210711","score":1,"metadataJson":"{\\"listing_id\\": \\"bloomingdales.com!297ec22321210711\\", \\"listing_title\\": \\"Striped Cotton Mini Skirt\\", \\"name\\": \\"Striped Cotton Mini Skirt\\", \\"url\\": \\"https://www.bloomingdales.com/shop/product/ganni-striped-cotton-mini-skirt?ID=6089361\\", \\"price\\": 335.0, \\"domain\\": \\"bloomingdales.com\\", \\"domain_display_name\\": \\"Bloomingdale's\\", \\"brand\\": \\"GANNI\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"bloomingdales.com!297ec22321210711","jsonString":"{\\n \\"title\\": \\"Striped Cotton Mini Skirt\\",\\n \\"brand\\": \\"GANNI\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Nouvean Navy\\",\\n \\"hex_code\\": \\"000080\\"\\n },\\n \\"secondary_colors\\": null,\\n \\"current_price\\": {\\n \\"value\\": 335,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": null,\\n \\"is_available\\": null,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": null,\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Blue-and-white str
2082iped cotton mini skirt with a gathered bubble hem and concealed zipper for a voluminous, playful silhouette.\\",\\n \\"visual_description\\": \\"A short A-line mini skirt in navy-and-white vertical stripes made from 100% cotton with a matching cotton lining; features seamed panels that create a puffed bubble hem, a concealed side or back zipper closure, and a fitted waistband that falls to mid-thigh. The skirt has a lightweight, structured look and pairs with casual tops and sneakers in the images.\\",\\n \\"highlight_phrases\\": [\\n \\"100% cotton with cotton lining\\",\\n \\"Bubble/puffed hem\\",\\n \\"Striped navy-and-white pattern\\",\\n \\"Zipper closure\\",\\n \\"Machine washable\\",\\n \\"Made in India\\",\\n \\"B Corp certified brand\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"blue striped mini skirt\\",\\n \\"bubble hem skirt\\",\\n \\"cotton mini skirt women\\",\\n \\"GANNI striped skirt\\",\\n \\"playful puff hem skirt\\",\\n \\"summer mini skirt with lining\\",\\n \\"designer mini skirt navy stripes\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Fits true to size; model wears EU size 36.\\",\\n \\"Lined for opacity and structure.\\",\\n \\"Casual styling shown with sneakers and a button-up shirt.\\",\\n \\"Care: machine wash according to label instructions.\\",\\n \\"Sustainable credential: product from a B Corp certified brand.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"32 EU / 0 US\\":true,\\"34 EU / 2 US\\":true,\\"36 EU / 4 US\\":true,\\"38 EU / 6 US\\":true,\\"40 EU / 8-10 US\\":true,\\"42 EU / 10-12 US\\":true,\\"44 EU / 14 US\\":false}}"},"imageGallery":{"images":[{"imageId":"7a8087045b43ec26","image":{"imageId":"7a8087045b43ec26","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/6/optimized/16056926_fpx.tif"},"details":{"base64Length":16188,"width":320,"height":400}}},{"imageId":"30d91228cfdf1b59","image":{"imageId":"30d91228cfdf1b59","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/8/optimized/16056928_fpx.tif"},"details":{"base64Length":19208,"width":320,"height":400}}},{"imageId":"3ea145858a77616d","image":{"imageId":"3ea145858a77616d","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/7/optimized/16056927_fpx.tif"},"details":{"base64Length":12872,"width":320,"height":400}}}],"thumbnailImage":{"imageId":"7a8087045b43ec26","image":{"imageId":"7a8087045b43ec26","address":{"imageUrl":"https://images.bloomingdalesassets.com/is/image/BLM/products/6/optimized/16056926_fpx.tif"},"details":{"base64Length":16188,"width":320,"height":400}}}}},{"listingId":"bluefly.com!15ab69352aeea4c7","listing":{"listingId":"bluefly.com!15ab69352aeea4c7","score":1,"metadataJson":"{\\"listing_id\\": \\"bluefly.com!15ab69352aeea4c7\\", \\"listing_title\\": \\"Line & Dot Perla Mini Skirt\\", \\"name\\": \\"Line & Dot Perla Mini Skirt\\", \\"url\\": \\"https://bluefly.com/products/10007_1415713085?variant=52254203543684\\", \\"price\\": 39.99, \\"regular_price\\": 95.0, \\"domain\\": \\"bluefly.com\\", \\"domain_display_name\\": \\"Bluefly\\", \\"brand\\": \\"Line & Dot\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"bluefly.com!15ab69352aeea4c7","jsonString":"{\\n \\"title\\": \\"Line & Dot Perla Mini Skirt\\",\\n \\"brand\\": \\"Line & Dot\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Navy\\",\\n \\"hex_code\\": \\"000080\\"\\n },\\n \\"secondary_colors\\": [],\\n \\"current_price\\": {\\n \\"value\\": 39.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 95.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"Regular 0 (XS)\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"Regular 4 (S)\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"Regular 8 (M)\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"A-Line\\"\\n ],\\n \\"one_line_description\\": \\"Navy bubble-hem mini skirt with ruffle trim, side pockets and hidden zipper, lined for shape.\\",\\n \\"visual_description\\": \\"A structured navy mini skirt with a pronounced bubble hem and ruffle trim that creates volume; fitted at the high waist with a smooth waistband, side pockets, and a short polyester lining visible beneath the hem. The skirt has a slightly glossy cotton-blend finish and a concealed zipper closure, shown falling above mid-thigh.\\",\\n \\"highlight_phrases\\": [\\n \\"Bubble hem\\",\\n \\"Ruffle trim\\",\\n \\"Side pockets\\",\\n \\"Concealed zipper\\",\\n \\"Lined for shape\\",\\n \\"High-waist mini\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"navy mini skirt bubble hem\\",\\n \\"ruffle hem mini skirt with pockets\\",\\n \\"Line & Dot Perla skirt\\",\\n \\"high waisted bubble mini skirt\\",\\n \\"party mini skirt navy\\",\\n \\"lined a-line mini skirt\\",\\n \\"cotton blend mini skirt women\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Self: 97% cotton, 3% spandex; lining: 100% polyester.\\",\\n \\"Dry clean only; imported.\\",\\n \\"Structured silhouette with volume at hem for a playful, flared look.\\",\\n \\"Shown in a deep navy (listed as Blue/Navy).\\",\\n \\"Compare-at price indicates this style is marked down from original retail.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"Regular 0 (XS)\\":true,\\"Regular 4 (S)\\":true,\\"Regular 8 (M)\\":false}}"},"imageGallery":{"images":[{"imageId":"45622324f4e81d1c","image":{"imageId":"45622324f4e81d1c","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415713085_RLLZ_1.jpg?v=1781111780"},"details":{"base64Length":46664,"width":864,"height":1080}}},{"imageId":"3a12802fbde1f3f7","image":{"imageId":"3a12802fbde1f3f7","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415713085_RLLZ_3.jpg?v=1781111780"},"details":{"base64Length":45724,"width":864,"height":1080}}},{"imageId":"96126192446a75b3","image":{"imageId":"96126192446a75b3","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415713085_RLLZ_2.jpg?v=1781111780"},"details":{"base64Length":44912,"width":864,"height":1080}}},{"imageId":"fec76136250c62fc","image":{"imageId":"fec76136250c62fc","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/linedot_women_apparel0522_8b0de5b9-f914-4da4-9088-788f3d745294.png?v=1781111780"}
2082,"details":{"base64Length":4164,"width":286,"height":196}}}],"thumbnailImage":{"imageId":"45622324f4e81d1c","image":{"imageId":"45622324f4e81d1c","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0248/3473/6191/files/1415713085_RLLZ_1.jpg?v=1781111780"},"details":{"base64Length":46664,"width":864,"height":1080}}}}},{"listingId":"vicicollection.com!d408b0c8a630fe41","listing":{"listingId":"vicicollection.com!d408b0c8a630fe41","score":1,"metadataJson":"{\\"listing_id\\": \\"vicicollection.com!d408b0c8a630fe41\\", \\"listing_title\\": \\"Shellie Gingham Bubble Hem Mini Skirt\\", \\"name\\": \\"Shellie Gingham Bubble Hem Mini Skirt\\", \\"url\\": \\"https://vicicollection.com/products/shellie-gingham-bubble-hem-mini-skirt?variant=41786184335422\\", \\"price\\": 30.99, \\"regular_price\\": 48.0, \\"domain\\": \\"vicicollection.com\\", \\"domain_display_name\\": \\"VICI\\", \\"brand\\": \\"LUSH-001\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"vicicollection.com!d408b0c8a630fe41","jsonString":"{\\n \\"title\\": \\"Shellie Gingham Bubble Hem Mini Skirt\\",\\n \\"brand\\": \\"LUSH-001\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Navy\\",\\n \\"hex_code\\": \\"000080\\"\\n },\\n \\"secondary_colors\\": null,\\n \\"current_price\\": {\\n \\"value\\": 30.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 48.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"XS\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"S\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"M\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"L\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XL\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Bottoms\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"A lightweight seersucker gingham mini skirt with a lined peplum bubble hem and hidden back zipper for a flirty, picnic-ready look.\\",\\n \\"visual_description\\": \\"Navy-and-white seersucker gingham mini skirt with a fitted high waistband and a gathered peplum/bubble hem that creates soft volume and movement; visible back zipper closure (hidden zip style) and full lining; hem hits high on the thigh for a flirty silhouette.\\",\\n \\"highlight_phrases\\": [\\n \\"Seersucker gingham print\\",\\n \\"Peplum bubble hem\\",\\n \\"Hidden back zipper\\",\\n \\"Fully lined\\",\\n \\"Lightweight summer fabric\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"navy gingham mini skirt\\",\\n \\"bubble hem mini skirt\\",\\n \\"peplum gingham skirt\\",\\n \\"seersucker skirt womens\\",\\n \\"summer picnic skirt\\",\\n \\"high waisted mini skirt\\",\\n \\"lined gingham skirt\\",\\n \\"short ruffle hem skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Fabric content: 90% polyester, 10% cotton\\",\\n \\"Sold with reduced price (compare at $48.00)\\",\\n \\"Available in sizes XSâXL (some sizes currently out of stock)\\",\\n \\"Styled high-waist with playful volume at the hem\\",\\n \\"Care and exact measurements not provided\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XS\\":false,\\"S\\":false,\\"M\\":true,\\"L\\":true,\\"XL\\":false}}"},"imageGallery":{"images":[{"imageId":"64771295213197af","image":{"imageId":"64771295213197af","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_15_LS31967-069-NAVYGINGHAM_6-05-2025_0881.jpg?v=1748983822"},"details":{"base64Length":486160,"width":1024,"height":1280}}},{"imageId":"01ead329fa36a95e","image":{"imageId":"01ead329fa36a95e","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_15_LS31967-069-NAVYGINGHAM_6-05-2025_0884.jpg?v=1748983822"},"details":{"base64Length":479764,"width":1024,"height":1280}}},{"imageId":"15aa6021ad726b14","image":{"imageId":"15aa6021ad726b14","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_15_LS31967-069-NAVYGINGHAM_6-05-2025_0847.jpg?v=1748983822"},"details":{"base64Length":200728,"width":1024,"height":1280}}},{"imageId":"1a48a5a0866061fd","image":{"imageId":"1a48a5a0866061fd","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_15_LS31967-069-NAVYGINGHAM_6-05-2025_0869.jpg?v=1748983822"},"details":{"base64Length":339640,"width":1024,"height":1280}}},{"imageId":"94252c625b759a9e","image":{"imageId":"94252c625b759a9e","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_15_LS31967-069-NAVYGINGHAM_6-05-2025_0887.jpg?v=1748983822"},"details":{"base64Length":535776,"width":1024,"height":1280}}},{"imageId":"ea26b95515265f78","image":{"imageId":"ea26b95515265f78","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_15_LS31967-069-NAVYGINGHAM_6-05-2025_0898.jpg?v=1748983822"},"details":{"base64Length":549872,"width":1024,"height":1280}}}],"thumbnailImage":{"imageId":"64771295213197af","image":{"imageId":"64771295213197af","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0204/7208/files/FINAL_15_LS31967-069-NAVYGINGHAM_6-05-2025_0881.jpg?v=1748983822"},"details":{"base64Length":486160,"width":1024,"height":1280}}}}}],"title":"More Like the Polka Dot Bubble Mini","isReranked":true,"numUniqueStores":95,"numUniqueBrands":179,"numProducts":255},"componentId":"carousel:eaefd46b892843df9ab741fd8c1ff3cd"}]},{"messageId":"9257f79422ce4ecc9eafbed3a391642e","role":"ASSISTANT","components":[{"text":{"text":"I found more skirts with that same playful/preppy mini-skirt energy â especially navy/white, polka dots or small prints, and bubble/voluminous hems that still feel easy with a tank and sandals. The exact Tuckernuck one may appear again as the visual anchor."},"componentId":"a70cf400e35a43118dacf52f6037dc8b"}]},{"messageId":"68eb94ac-96e0-47be-8fdd-d45e3e5cf49e","role":"USER","text":"something with a yellowish base color?"},{"messageId":"f2ad8343f145403a8f2fe242a741e3b4","role":"ASSISTANT","components":[{"text":{"text":"Yes â Iâll shift the same casual bubble-mini direction toward yellow, butter, cream, and warm ivory base colors."},"componentId":"d516f123cbca46e79a2a1c1c57eef87d"}]},{"messageId":"918dfa73ba7e4378ba2ceb287ccad104","role":"ASSISTANT","components":[{"carousel":{"cards":[{"listingId":"beginningboutique.com!1cbb526b368e7cfd","listing":{"listingId":"beginningboutique.com!1cbb526b368e7cfd","score":0.80572504,"metadataJson":"{\\"listing_id\\": \\"beginningboutique.com!1cbb526b368e7cfd\\", \\"listing_title\\": \\"Henrietta Yellow Polka Dot Bubble Hem Mini Skirt\\", \\"name\\": \\"Henrietta Yellow Polka Dot Bubble Hem Mini Skirt\\", \\"url\\": \\"https://beginningboutique.com/products/henrietta-yellow-polka-dot-bubble-hem-mini-skirt?variant=45411290021945\\", \\"price\\": 48.99, \\"regular_price\\": 69.99, \\"domain\\": \\"beginningboutique.com\\", \\"domain_display_name\\": \\"Beginning Boutique\\", \\"brand\\": \\"BB Exclusive\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"beginningboutique.com!1cbb526b368e7cfd","jsonString":"{\\n \\"title\\": \\"Henrietta Yellow Polka Dot Bubble Hem Mini Skirt\\",\\n \\"brand\\": \\"BB Exclusive\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Yellow\\",\\n \\"hex_code\\": \\"FFD800\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"Black\\",\\n \\"hex_code\\": \\"000000\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 69.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 69.99,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"US 0\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 2\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 4\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 6\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 8\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 10\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 12\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 14\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 16\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"US 18\\",\\n \\"is_available\\": false\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Bottoms\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Playful yellow mini skirt with large black polka dots, a gathered tie waist and a bubble hem for a voluminous, flirty silhouette.\\",\\n \\"visual_description\\": \\"A bright lemon-yellow mini skirt patterned with oversized black polka dots; features a gathered elastic waistband with a tie, fully lined interior, and a bubble (puffed) hem that creates a short, voluminous silhouette. The fabric has light structure and slight sheen; the print placement shows evenly spaced large dots. Shown styled casually with crop tops and sandals.\\",\\n \\"highlight_phrases\\": [\\n \\"Bubble hem\\",\\n \\"Tie-waist\\",\\n \\"Bold polka dot print\\",\\n \\"Fully lined\\",\\n \\"Voluminous mini silhouette\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"yellow polka dot skirt\\",\\n \\"bubble hem mini skirt\\",\\n \\"polka dot mini skirt women\\",\\n \\"tie waist yellow skirt\\",\\n \\"summer party skirt\\",\\n \\"cute festival skirt\\",\\n \\"BB Exclusive Henrietta skirt\\",\\n \\"voluminous mini skirt polka dots\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Elastic waistband with front tie for adju
2082stable fit\\",\\n \\"Fully lined for comfortable wear\\",\\n \\"Styled for casual summer looks or party wear\\",\\n \\"Available in a wide range of US sizes (0â18) though some larger sizes may be out of stock\\",\\n \\"Price listed is the current and regular price\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"US 0\\":true,\\"US 2\\":true,\\"US 4\\":true,\\"US 6\\":true,\\"US 8\\":true,\\"US 10\\":true,\\"US 12\\":true,\\"US 14\\":true,\\"US 16\\":false,\\"US 18\\":false}}"},"imageGallery":{"images":[{"imageId":"30c97de963df8ca3","image":{"imageId":"30c97de963df8ca3","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta-Yellow-Polka-Dot-Bubble-Hem-Mini-Skirt_20260209_NL_1.webp?v=1776207195"},"details":{"base64Length":97236,"width":750,"height":1164}}},{"imageId":"047f10b8760bc839","image":{"imageId":"047f10b8760bc839","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/HenriettaYellowPolkaDotBubbleHemMiniSkirt_20260209_004.webp?v=1776587600"},"details":{"base64Length":86504,"width":750,"height":1164}}},{"imageId":"12bd4c34c63ec080","image":{"imageId":"12bd4c34c63ec080","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta_Yellow_Polka_Dot_Bubble_Hem_Mini_Skirt_5_20260422.jpg?v=1776822199"},"details":{"base64Length":266784,"width":750,"height":1125}}},{"imageId":"245144c4b6d18873","image":{"imageId":"245144c4b6d18873","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/HenriettaYellowPolkaDotBubbleHemMiniSkirt_20260209_001_805fe561-a3bb-43e3-ada2-1506e2c9c3c6.webp?v=1776587600"},"details":{"base64Length":59240,"width":750,"height":1164}}},{"imageId":"39af6b15eeead9c1","image":{"imageId":"39af6b15eeead9c1","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta-Yellow-Polka-Dot-Bubble-Hem-Mini-Skirt_20260209_NL_1_4aaecea6-85ae-4b32-b363-aeac19afd850.webp?v=1776587600"},"details":{"base64Length":97236,"width":750,"height":1164}}},{"imageId":"461d5317fad1dfa7","image":{"imageId":"461d5317fad1dfa7","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/smart-crop-750x1164_29.webp?v=1779438206"},"details":{"base64Length":239632,"width":750,"height":1164}}},{"imageId":"4ed9f319067e9637","image":{"imageId":"4ed9f319067e9637","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/HenriettaYellowPolkaDotBubbleHemMiniSkirt_26_05_08.webp?v=1778660919"},"details":{"base64Length":194904,"width":750,"height":1164}}},{"imageId":"68782a386a747121","image":{"imageId":"68782a386a747121","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/HenriettaYellowPolkaDotBubbleHemMiniSkirt_20260209_001.webp?v=1776207195"},"details":{"base64Length":59240,"width":750,"height":1164}}},{"imageId":"733992d2cb0c3c85","image":{"imageId":"733992d2cb0c3c85","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta_Yellow_Polka_Dot_Bubble_Hem_Mini_Skirt_1_20260422.jpg?v=1776822198"},"details":{"base64Length":259168,"width":750,"height":1125}}},{"imageId":"8ad8b613b1e72ccb","image":{"imageId":"8ad8b613b1e72ccb","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/HenriettaYellowPolkaDotBubbleHemMiniSkirt_20260209_003.webp?v=1776587600"},"details":{"base64Length":38984,"width":750,"height":1164}}},{"imageId":"8ed7253da6e32133","image":{"imageId":"8ed7253da6e32133","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/HenriettaYellowPolkaDotBubbleHemMiniSkirt_20260209_000.webp?v=1776587600"},"details":{"base64Length":43048,"width":750,"height":1164}}},{"imageId":"943c13abdceb85ab","image":{"imageId":"943c13abdceb85ab","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta_Yellow_Polka_Dot_Bubble_Hem_Mini_Skirt_4_20260422.jpg?v=1776822196"},"details":{"base64Length":263436,"width":750,"height":1125}}},{"imageId":"aa73d57b2b0d09da","image":{"imageId":"aa73d57b2b0d09da","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta-Yellow-Polka-Dot-Bubble-Hem-Mini-Skirt_20260209_NL_3.webp?v=1776587600"},"details":{"base64Length":80888,"width":750,"height":1164}}},{"imageId":"b7569844bcd1aeb7","image":{"imageId":"b7569844bcd1aeb7","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/HenriettaYellowPolkaDotBubbleHemMiniSkirt_20260209_002.webp?v=1776587600"},"details":{"base64Length":32720,"width":750,"height":1164}}},{"imageId":"c2d8ea5c5df24df5","image":{"imageId":"c2d8ea5c5df24df5","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta_Yellow_Polka_Dot_Bubble_Hem_Mini_Skirt_2_2060422.jpg?v=1776822205"},"details":{"base64Length":266780,"width":750,"height":1125}}},{"imageId":"d72399c210fffb0d","image":{"imageId":"d72399c210fffb0d","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/smart-crop-750x1164_28.webp?v=1779438207"},"details":{"base64Length":233160,"width":750,"height":1164}}},{"imageId":"f1a785bb9cd586d2","image":{"imageId":"f1a785bb9cd586d2","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta-Yellow-Polka-Dot-Bubble-Hem-Mini-Skirt_20260209_NL_2.webp?v=1776587600"},"details":{"base64Length":171792,"width":750,"height":1164}}},{"imageId":"f23c9acea6d676c3","image":{"imageId":"f23c9acea6d676c3","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/smart-crop-750x1164_26.webp?v=1779438206"},"details":{"base64Length":254784,"width":750,"height":1164}}},{"imageId":"f3300fdfb30f9bac","image":{"imageId":"f3300fdfb30f9bac","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta_Yellow_Polka_Dot_Bubble_Hem_Mini_Skirt_3_20260422.webp?v=1776822201"},"details":{"base64Length":219784,"width":750,"height":1125}}},{"imageId":"f8f0b4a6cb408705","image":{"imageId":"f8f0b4a6cb408705","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/smart-crop-750x1164_27.webp?v=1779438206"},"details":{"base64Length":191664,"width":750,"height":1164}}}],"thumbnailImage":{"imageId":"30c97de963df8ca3","image":{"imageId":"30c97de963df8ca3","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0077/9327/9033/files/Henrietta-Yellow-Polka-Dot-Bubble-Hem-Mini-Skirt_20260209_NL_1.webp?v=1776207195"},"details":{"base64Length":97236,"width":750,"height":1164}}}}},{"listingId":"tnuck.com!205fc0b291b2bc35","listing":{"listingId":"tnuck.com!205fc0b291b2bc35","score":0.96081644,"metadataJson":"{\\"listing_id\\": \\"tnuck.com!205fc0b291b2bc35\\", \\"listing_title\\": \\"Honey Gingham Embroidered Sanibel Skirt\\", \\"name\\": \\"Honey Gingham Embroidered Sanibel Skirt\\", \\"url\\": \\"https://tnuck.com/products/honey-gingham-embroidered-sanibel-skirt?variant=47933860217054\\", \\"price\\": 96.0, \\"regular_price\\": 128.0, \\"domain\\": \\"tnuck.com\\", \\"domain_display_name\\": \\"Tuckernuck\\", \\"brand\\": \\"Tnuck Beach\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"tnuck.com!205fc0b291b2bc35","jsonString":"{\\n \\"title\\": \\"Honey Gingham Embroidered Sanibel Skirt\\",\\n \\"brand\\": \\"Tnuck Beach\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Yellow\\",\\n \\"hex_code\\": \\"FFD97A\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 128.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 128.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"XS\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"S\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"M\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"L\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XL\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XXL\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"XXXL\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\",\\n \\"Tiered Skirts\\"\\n ],\\n \\"one_line_description\\": \\"A yellow and white honey-gingham embroidered pull-on tiered mini skirt with ruffle seams, elastic ruffle waistband, and pleated detail.\\",\\n \\"visual_description\\": \\"A short, pull-on mini skirt in a pale honey-yellow gingham with white embroidered floral motifs; features an elastic ruffle waistband, tiered construction with pleated panels, ruffle seams and a ruffled hem for added volume and movement. Lightweight 100% cotton with a textured, slightly crinkled finish; shown styled casually with sandals and a simple top.\\",\\n \\"highlight_phrases\\": [\\n \\"Honey gingham print\\",\\n \\"Embroidered floral details\\",\\n \\"Elastic ruffle waistband\\",\\n \\"Tiered ruffle hem\\",\\n \\"100% cotton\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"yellow gingham skirt\\",\\n \\"embroidered mini skirt\\",\\n \\"tiered ruffle skirt\\",\\n \\"beach cover up skirt\\",\\n \\"pull on mini skirt\\",\\n \\"cotton summer skirt\\",\\n \\"cute summer skirts for women\\",\\n \\"Tnuck Beach skirt\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Machine wash cold, hang to dry\\",\\n \\"Designed for easy slip-on wear â no zipper or buttons\\",\\n \\"Pairs as a set with the matching Honey Gingham top/caftan\\",\\n \\"Styled for beach-to-bar looks and casual vacation outfits\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XS\\":true,\\"S\\":true,\\"M\\":true,\\"L\\":true,\\"XL\\":true,\\"XXL\\":true,\\"XXXL\\":true}}"},"imageGallery":{"images":[{"imageId":"ab680eeb75f0c57d","image":{"imageId":"ab680eeb75f0c57d","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1673742_01.jpg?v=1773239917"},"details":{"base64Length":1174096,"width":2500,"height":3750}}}
2082,{"imageId":"1fb9bc243c3edef8","image":{"imageId":"1fb9bc243c3edef8","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1673742_03.jpg?v=1773239916"},"details":{"base64Length":1122032,"width":2500,"height":3750}}},{"imageId":"425f6343ff475907","image":{"imageId":"425f6343ff475907","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1673742_06.jpg?v=1773239916"},"details":{"base64Length":1138072,"width":2500,"height":3750}}},{"imageId":"7833d3be61fa4e96","image":{"imageId":"7833d3be61fa4e96","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1673742_04.jpg?v=1773239917"},"details":{"base64Length":1771104,"width":2500,"height":3750}}},{"imageId":"830f4660cec0399e","image":{"imageId":"830f4660cec0399e","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1673742_02.jpg?v=1773239916"},"details":{"base64Length":1096624,"width":2500,"height":3749}}},{"imageId":"963a8aeaa82ecb28","image":{"imageId":"963a8aeaa82ecb28","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1673742_05.jpg?v=1773239916"},"details":{"base64Length":1155108,"width":2500,"height":3747}}},{"imageId":"a79c2345cc15e817","image":{"imageId":"a79c2345cc15e817","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1673742_08.jpg?v=1773239916"},"details":{"base64Length":1011792,"width":2500,"height":3750}}}],"thumbnailImage":{"imageId":"ab680eeb75f0c57d","image":{"imageId":"ab680eeb75f0c57d","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0630/4999/0366/files/1673742_01.jpg?v=1773239917"},"details":{"base64Length":1174096,"width":2500,"height":3750}}}}},{"listingId":"shopdressup.com!3df9193aeab76fbb","listing":{"listingId":"shopdressup.com!3df9193aeab76fbb","score":0.9644478,"metadataJson":"{\\"listing_id\\": \\"shopdressup.com!3df9193aeab76fbb\\", \\"listing_title\\": \\"Happiness Ahead Stripe Mini Skirt - DU Deal\\", \\"name\\": \\"Happiness Ahead Stripe Mini Skirt - DU Deal\\", \\"url\\": \\"https://shopdressup.com/products/happiness-ahead-stripe-mini-skirt-du-deal?variant=43434869194819\\", \\"price\\": 15.0, \\"regular_price\\": 26.0, \\"domain\\": \\"shopdressup.com\\", \\"domain_display_name\\": \\"Dress Up\\", \\"brand\\": \\"DZ26C076-BOT\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"shopdressup.com!3df9193aeab76fbb","jsonString":"{\\n \\"title\\": \\"Happiness Ahead Stripe Mini Skirt - DU Deal\\",\\n \\"brand\\": \\"DZ26C076-BOT\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Yellow\\",\\n \\"hex_code\\": \\"FFD966\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 26,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 26,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"Small\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"Medium\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"Large\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Women\\",\\n \\"Clothing\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"High-waisted, flowy striped cotton mini skirt with an elastic pull-on waistband and side pockets for a breezy, coastal look.\\",\\n \\"visual_description\\": \\"A lightweight 100% cotton mini skirt in yellow and white vertical stripes with a gathered, flowy silhouette; elastic high waistband that pulls on, side pockets, and a slightly flared hem; falls to a short length (approx. 15â16.5 inches depending on size).\\",\\n \\"highlight_phrases\\": [\\n \\"100% cotton\\",\\n \\"Elastic pull-on waistband\\",\\n \\"High-waisted\\",\\n \\"Side pockets\\",\\n \\"Flowy, flared silhouette\\",\\n \\"Striped pattern\\",\\n \\"Machine/hand wash cold (hand wash recommended)\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"yellow striped mini skirt\\",\\n \\"high waisted cotton mini skirt\\",\\n \\"flowy summer skirt with pockets\\",\\n \\"elastic waist striped skirt\\",\\n \\"vacation resort mini skirt\\",\\n \\"women's yellow mini skirt\\",\\n \\"matching striped skirt set\\",\\n \\"lightweight cotton skirt for summer\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Lightweight woven cotton fabrication with a coastal-inspired striped print.\\",\\n \\"Runs short â garment lengths: Small 15\\\\\\", Medium 16\\\\\\", Large 16.5\\\\\\".\\",\\n \\"Waist is elastic and stretches widely (listed stretch measurements in product details).\\",\\n \\"Care: hand wash cold and dry flat to preserve fabric and shape.\\",\\n \\"Offered in two colorways and styled in photos with a matching top.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"Small\\":true,\\"Medium\\":true,\\"Large\\":true}}"},"imageGallery":{"images":[{"imageId":"3132500528cc8de1","image":{"imageId":"3132500528cc8de1","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0339/0901/files/shopdressup_yellow_striped_mini_skirt-5.jpg?v=1782229409"},"details":{"base64Length":911660,"width":2859,"height":4288}}},{"imageId":"068743d34de52cc3","image":{"imageId":"068743d34de52cc3","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0339/0901/files/shopdressup_yellow_striped_mini_skirt-7.jpg?v=1782229408"},"details":{"base64Length":842496,"width":2859,"height":4288}}},{"imageId":"308895fa2ca148eb","image":{"imageId":"308895fa2ca148eb","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0339/0901/files/shopdressup_yellow_striped_mini_skirt-4.jpg?v=1782229408"},"details":{"base64Length":1241168,"width":2859,"height":4288}}},{"imageId":"37d634b7ec85c22a","image":{"imageId":"37d634b7ec85c22a","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0339/0901/files/shopdressup_yellow_striped_mini_skirt-2.jpg?v=1782229408"},"details":{"base64Length":1323468,"width":2859,"height":4288}}},{"imageId":"498b837ba3ecab12","image":{"imageId":"498b837ba3ecab12","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0339/0901/files/shopdressup_yellow_striped_mini_skirt.jpg?v=1782229412"},"details":{"base64Length":1200340,"width":2859,"height":4288}}},{"imageId":"7147c8fe23a3d9c8","image":{"imageId":"7147c8fe23a3d9c8","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0339/0901/files/shopdressup_yellow_striped_mini_skirt-6.jpg?v=1782229408"},"details":{"base64Length":831796,"width":2859,"height":4288}}},{"imageId":"998f25545eca6038","image":{"imageId":"998f25545eca6038","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0339/0901/files/shopdressup_yellow_striped_mini_skirt-3.jpg?v=1782229408"},"details":{"base64Length":873528,"width":2859,"height":4288}}}],"thumbnailImage":{"imageId":"3132500528cc8de1","image":{"imageId":"3132500528cc8de1","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0339/0901/files/shopdressup_yellow_striped_mini_skirt-5.jpg?v=1782229409"},"details":{"base64Length":911660,"width":2859,"height":4288}}}}},{"listingId":"pinklily.com!39c15cf02dc7d9ab","listing":{"listingId":"pinklily.com!39c15cf02dc7d9ab","score":0.9701464,"metadataJson":"{\\"listing_id\\": \\"pinklily.com!39c15cf02dc7d9ab\\", \\"listing_title\\": \\"Soft Waves Tiered Yellow Mini Skort\\", \\"name\\": \\"Soft Waves Tiered Yellow Mini Skort\\", \\"url\\": \\"https://pinklily.com/products/new-tiered-mini-skirt-yellow?variant=42209972387895\\", \\"price\\": 44.0, \\"regular_price\\": 44.0, \\"domain\\": \\"pinklily.com\\", \\"domain_display_name\\": \\"Pink Lily\\", \\"brand\\": \\"Very j\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"pinklily.com!39c15cf02dc7d9ab","jsonString":"{\\n \\"title\\": \\"Soft Waves Tiered Yellow Mini Skort\\",\\n \\"brand\\": \\"Very j\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Yellow\\",\\n \\"hex_code\\": \\"F7D66B\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"Cream (lining)\\",\\n \\"hex_code\\": \\"F5EAD7\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 44,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 44,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"S\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"M\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"L\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Bottoms\\",\\n \\"Skirts & Skorts\\",\\n \\"Skorts\\",\\n \\"Mini Skorts\\"\\n ],\\n \\"one_line_description\\": \\"Lightweight tiered yellow mini skort with a ruffled, layered silhouette and built-in shorts for easy summer wear.\\",\\n \\"visual_description\\": \\"A soft butter-yellow mini skort featuring three cascading tiered ruffles with picot-trimmed edges, an elasticized waist, and a concealed short lining; lightweight woven fabric gives a flowy, breezy drape and subtle texture.\\",\\n \\"highlight_phrases\\": [\\n \\"Tiered ruffle silhouette\\",\\n \\"Elastic waist\\",\\n \\"Built-in shorts lining\\",\\n \\"Lightweight woven fabric\\",\\n \\"Picot trim detail\\",\\n \\"Golden Hour Collection\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"yellow tiered mini skort\\",\\n \\"ruffle mini skirt with shorts\\",\\n \\"summer skort elastic waist\\",\\n \\"lightweight yellow skort\\",\\n \\"tiered ruffle skort\\",\\n \\"vacation skirts and skorts\\",\\n \\"cute casual summer bottoms\\",\\n \\"golden hour collection skort\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Fabric: Self
2082100% polyester, contrast 100% cotton, lining 100% polyester â machine wash cold, line dry.\\",\\n \\"Small measurements: 25\\\\\\" waist, 15\\\\\\" length (approx.).\\",\\n \\"Styled for casual daytime looksâpairs well with fitted tanks, lightweight knits, or breezy blouses.\\",\\n \\"Decorative picot edge along each tier for a feminine finish.\\",\\n \\"Part of the brand's Golden Hour Collection inspired by warm-day looks.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"S\\":true,\\"M\\":true,\\"L\\":true}}"},"imageGallery":{"images":[{"imageId":"4dbad09896da4a75","image":{"imageId":"4dbad09896da4a75","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0268/9027/2823/files/7-7_BG-HB_07-07-26_23866_221106_220844.png?v=1783545902"},"details":{"base64Length":127056,"width":650,"height":975}}},{"imageId":"5b2e28cf119bb429","image":{"imageId":"5b2e28cf119bb429","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0268/9027/2823/files/7-7_BG-HB_07-07-26_23853_221106_220844.png?v=1783546187"},"details":{"base64Length":165012,"width":650,"height":975}}},{"imageId":"781883f0860e9a20","image":{"imageId":"781883f0860e9a20","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0268/9027/2823/files/7-7_BG-HB_07-07-26_23871_221106_220844.png?v=1783545899"},"details":{"base64Length":127496,"width":650,"height":975}}},{"imageId":"c7e35137a6e66dec","image":{"imageId":"c7e35137a6e66dec","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0268/9027/2823/files/7-7_BG-HB_07-07-26_23869_221106_220844.png?v=1783545903"},"details":{"base64Length":109980,"width":650,"height":975}}},{"imageId":"d45f5a5726ec21d2","image":{"imageId":"d45f5a5726ec21d2","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0268/9027/2823/files/7-7_BG-HB_07-07-26_23859_221106_220844.png?v=1783546144"},"details":{"base64Length":127672,"width":650,"height":975}}},{"imageId":"f2d4d7c3383d4aa4","image":{"imageId":"f2d4d7c3383d4aa4","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0268/9027/2823/files/7-7_BG-HB_07-07-26_23870_221106_220844.png?v=1783545902"},"details":{"base64Length":100348,"width":650,"height":975}}}],"thumbnailImage":{"imageId":"4dbad09896da4a75","image":{"imageId":"4dbad09896da4a75","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0268/9027/2823/files/7-7_BG-HB_07-07-26_23866_221106_220844.png?v=1783545902"},"details":{"base64Length":127056,"width":650,"height":975}}}}},{"listingId":"blueandcream.com!44d79a6aec1ad8c5","listing":{"listingId":"blueandcream.com!44d79a6aec1ad8c5","score":0.96392,"metadataJson":"{\\"listing_id\\": \\"blueandcream.com!44d79a6aec1ad8c5\\", \\"listing_title\\": \\"Gemma Poplin Mini Skirt Yellow/White Stripe\\", \\"name\\": \\"Gemma Poplin Mini Skirt Yellow/White Stripe\\", \\"url\\": \\"https://blueandcream.com/products/the-tile-club-gemma-poplin-mini-skirt-yellow-white-stripe?variant=44366993752204\\", \\"price\\": 225.0, \\"regular_price\\": 225.0, \\"domain\\": \\"blueandcream.com\\", \\"domain_display_name\\": \\"Blue & Cream\\", \\"brand\\": \\"The Tile Club\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"blueandcream.com!44d79a6aec1ad8c5","jsonString":"{\\n \\"title\\": \\"Gemma Poplin Mini Skirt Yellow/White Stripe\\",\\n \\"brand\\": \\"The Tile Club\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Yellow\\",\\n \\"hex_code\\": \\"FFD966\\"\\n },\\n \\"secondary_colors\\": [\\n {\\n \\"name\\": \\"White\\",\\n \\"hex_code\\": \\"FFFFFF\\"\\n },\\n {\\n \\"name\\": \\"Blue (waistband trim)\\",\\n \\"hex_code\\": \\"A3C1FF\\"\\n }\\n ],\\n \\"current_price\\": {\\n \\"value\\": 225.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 225.00,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"XS\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"S\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"M\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Bottoms\\",\\n \\"Skirts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"A yellow-and-white str
2082iped cotton poplin mini skirt with button-front detail and elastic striped waistband.\\",\\n \\"visual_description\\": \\"Mini skirt in yellow and white vertical stripe poplin with a center front button placket, slightly curved hem, and a sporty elastic waistband featuring white and blue trim; lightweight 100% cotton with a relaxed, slightly flared silhouette that hits mid-thigh.\\",\\n \\"highlight_phrases\\": [\\n \\"100% cotton poplin\\",\\n \\"Button-front detail\\",\\n \\"Elastic striped waistband\\",\\n \\"Mini length\\",\\n \\"Made in NY\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"yellow striped mini skirt\\",\\n \\"poplin mini skirt\\",\\n \\"button front skirt women\\",\\n \\"elastic waistband skirt\\",\\n \\"The Tile Club skirt\\",\\n \\"yellow white stripe skirt\\",\\n \\"summer cotton mini skirt\\",\\n \\"mini skirt matching bustier set\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Pair with the matching Gemma bustier for a coordinated set.\\",\\n \\"Sporty elastic waistband adds comfort and easy on/off.\\",\\n \\"Slightly curved front hem for a relaxed, casual look.\\",\\n \\"Style number BCTC2582B.\\",\\n \\"Available in sizes XSâM.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"XS\\":true,\\"S\\":true,\\"M\\":true}}"},"imageGallery":{"images":[{"imageId":"6b48fa85f000ecb0","image":{"imageId":"6b48fa85f000ecb0","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0352/1144/4364/files/GemmaPoplinMiniSkirtYellow_WhiteStripe_7909e90b-8ecd-4a30-a177-ec74bdd18986.jpg?v=1759332307"},"details":{"base64Length":124624,"width":1268,"height":1900}}},{"imageId":"620ad5a6d826d1a5","image":{"imageId":"620ad5a6d826d1a5","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0352/1144/4364/files/GemmaPoplinMiniSkirtYellow_WhiteStripe_96eea7e0-203b-4aed-acd0-5b847e44f427.jpg?v=1759332307"},"details":{"base64Length":157424,"width":1268,"height":1900}}},{"imageId":"6668c980ee16fe5e","image":{"imageId":"6668c980ee16fe5e","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0352/1144/4364/files/GemmaPoplinMiniSkirtYellow_WhiteStripeside_1.jpg?v=1759332307"},"details":{"base64Length":113496,"width":1268,"height":1900}}},{"imageId":"715373e711c4837d","image":{"imageId":"715373e711c4837d","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0352/1144/4364/files/GemmaPoplinMiniSkirtYellow_WhiteStripeside_7e180080-f2da-4a1e-bb2c-ee06582e7e86.jpg?v=1759332307"},"details":{"base64Length":97632,"width":1268,"height":1900}}},{"imageId":"ecb3f4f4a5ef5fa7","image":{"imageId":"ecb3f4f4a5ef5fa7","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0352/1144/4364/files/gemmayellowback.jpg?v=1759332307"},"details":{"base64Length":93180,"width":1268,"height":1900}}}],"thumbnailImage":{"imageId":"6b48fa85f000ecb0","image":{"imageId":"6b48fa85f000ecb0","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0352/1144/4364/files/GemmaPoplinMiniSkirtYellow_WhiteStripe_7909e90b-8ecd-4a30-a177-ec74bdd18986.jpg?v=1759332307"},"details":{"base64Length":124624,"width":1268,"height":1900}}}}},{"listingId":"us.peppermayo.com!5ef0adc4e80a7b3f","listing":{"listingId":"us.peppermayo.com!5ef0adc4e80a7b3f","score":0.96600986,"metadataJson":"{\\"listing_id\\": \\"us.peppermayo.com!5ef0adc4e80a7b3f\\", \\"listing_title\\": \\"Aberley Skort - Yellow\\", \\"name\\": \\"Aberley Skort - Yellow\\", \\"url\\": \\"https://us.peppermayo.com/products/aberley-skort-yellow?variant=53864229732724\\", \\"price\\": 68.0, \\"regular_price\\": 68.0, \\"domain\\": \\"us.peppermayo.com\\", \\"domain_display_name\\": \\"Peppermayo\\", \\"brand\\": \\"Peppermayo Exclusive\\", \\"availability\\": \\"InStock\\"}","tagBag":{"listingId":"us.peppermayo.com!5ef0adc4e80a7b3f","jsonString":"{\\n \\"title\\": \\"Aberley Skort - Yellow\\",\\n \\"brand\\": \\"Peppermayo Exclusive\\",\\n \\"gender\\": \\"Womens\\",\\n \\"primary_color\\": {\\n \\"name\\": \\"Yellow\\",\\n \\"hex_code\\": \\"FFD97A\\"\\n },\\n \\"secondary_colors\\": [],\\n \\"current_price\\": {\\n \\"value\\": 68,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"regular_price\\": {\\n \\"value\\": 68,\\n \\"currency\\": \\"USD\\"\\n },\\n \\"is_available\\": true,\\n \\"aggregate_rating\\": null,\\n \\"sizes\\": [\\n {\\n \\"name\\": \\"US 0\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"US 2\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"US 4\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"US 6\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 8\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"US 10\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"US 12\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"US 14\\",\\n \\"is_available\\": false\\n },\\n {\\n \\"name\\": \\"US 16\\",\\n \\"is_available\\": true\\n },\\n {\\n \\"name\\": \\"US 18\\",\\n \\"is_available\\": true\\n }\\n ],\\n \\"category_hierarchy\\": [\\n \\"Clothing\\",\\n \\"Bottoms\\",\\n \\"Skirts\\",\\n \\"Skorts\\",\\n \\"Mini Skirts\\"\\n ],\\n \\"one_line_description\\": \\"Low-rise mini skort in soft broderie cotton with concealed shorts and a frill hem in sunny yellow.\\",\\n \\"visual_description\\": \\"A pastel yellow, low-rise mini skort made from broderie cotton featuring an elasticated waistband, concealed inner shorts, and a scalloped frill hem; the silhouette is short and slightly flared with embroidered eyelet detailing along the hem.\\",\\n \\"highlight_phrases\\": [\\n \\"Low-rise mini fit\\",\\n \\"Broderie (embroidered eyelet) fabric\\",\\n \\"Concealed shorts\\",\\n \\"Elasticated waist\\",\\n \\"Scalloped frill hem\\"\\n ],\\n \\"common_search_queries\\": [\\n \\"yellow skort\\",\\n \\"mini skort with shorts\\",\\n \\"broderie eyelet skort\\",\\n \\"low rise yellow skirt\\",\\n \\"frill hem skort\\",\\n \\"summer skort cotton\\",\\n \\"mini skirt with shorts concealed\\",\\n \\"festival yellow skort\\"\\n ],\\n \\"detailed_notes\\": [\\n \\"Made from 100% cotton with broderie/eyelet detailing.\\",\\n \\"Mini length designed for warm-weather and festival wear.\\",\\n \\"Elasticated waist for comfortable fit and easy pull-on styling.\\",\\n \\"Includes inner shorts for coverage and movement.\\",\\n \\"Pair with coordinated tops or cropped corset styles from the same collection.\\"\\n ]\\n}"},"sizeAvailabilityJson":"{\\"is_product_out_of_stock\\":false,\\"size_availabilities\\":{\\"US 0\\":false,\\"US 2\\":true,\\"US 4\\":true,\\"US 6\\":true,\\"US 8\\":true,\\"US 10\\":true,\\"US 12\\":true,\\"US 14\\":false,\\"US 16\\":true,\\"US 18\\":true}}"},"imageGallery":{"images":[{"imageId":"606fd79e7a0d353e","image":{"imageId":"606fd79e7a0d353e","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0506/5886/9443/files/AberlySkortYellow4.jpg?v=1769746421"},"details":{"base64Length":250296,"width":2000,"height":2756}}},{"imageId":"05b5fefb473a6aa4","image":{"imageId":"05b5fefb473a6aa4","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0506/5886/9443/files/AberlySkortYellow6.jpg?v=1769746421"},"details":{"base64Length":296528,"width":2000,"height":2756}}},{"imageId":"143aa986a358541e","image":{"imageId":"143aa986a358541e","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0506/5886/9443/files/AberlySkortYellow3.jpg?v=1769746421"},"details":{"base64Length":263640,"width":2000,"height":2756}}},{"imageId":"17f1bf1d7183bef1","image":{"imageId":"17f1bf1d7183bef1","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0506/5886/9443/files/AberlySkortYellow1.jpg?v=1769746421"},"details":{"base64Length":186480,"width":2000,"height":2756}}},{"imageId":"8e5ec16af13b4ed2","image":{"imageId":"8e5ec16af13b4ed2","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0506/5886/9443/files/AberlySkortYellow2.jpg?v=1769746421"},"details":{"base64Length":168632,"width":2000,"height":2756}}},{"imageId":"aeb00c6d05666437","image":{"imageId":"aeb00c6d05666437","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0506/5886/9443/files/AberlySkortYellow5.jpg?v=1769746421"},"details":{"base64Length":389696,"width":2000,"height":2756}}}],"thumbnailImage":{"imageId":"606fd79e7a0d353e","image":{"imageId":"606fd79e7a0d353e","address":{"imageUrl":"https://cdn.shopify.com/s/files/1/0506/5886/9443/files/AberlySkortYellow4.jpg?v=1769746421"},"details":{"base64Length":250296,"width":2000,"height":2756}}}}}],"title":"Yellow-Base Bubble Mini Skirts","isReranked":true,"numUniqueStores":62,"numUniqueBrands":136,"numProducts":228},"componentId":"carousel:ca21ea2a152248bb9993b7e22057bd82"}]},{"messageId":"d38416dcff014136af3be11aab2fed73","role":"ASSISTANT","components":[{"text":{"text":"I pulled o
2082ptions with a yellow-ish base â butter yellow, pale yellow, warm cream, and sunny prints â while keeping the mini, casual, tank-and-sandals vibe. A few may be less âbubbleâ and more gathered/flowy if they match the color and vacation feel well."},"componentId":"62cbc2b20903459d930173ca2e7396da"}]}]`),NEe={messages:BEe},Co=NEe;function Su(e,t){const n=e.messages?.[t];if(!n)throw new Error(`how-it-works transcript has no message at index ${t}`);return n}function wz(e,t){const n=Su(e,t);if(n.role!=="USER"||!n.text)throw new Error(`how-it-works transcript message ${t} is not a USER turn with text (role ${n.role})`);return n.text}function zEe(e,t){for(const n of Su(e,t).components??[]){const r=n.text?.text;if(typeof r=="string"&&r.length>0)return r}throw new Error(`how-it-works transcript message ${t} has no reply text`)}function HEe(e,t){for(const n of Su(e,t).components??[])if(n.carousel)return n.carousel;throw new Error(`how-it-works transcript message ${t} has no carousel`)}function UEe(e){return e.title??""}function WEe(e){return{productCount:e.numProducts??0,brandCount:e.numUniqueBrands??0,sellerCount:e.numUniqueStores??0}}function Cz(e,t){const n=Su(e,t);for(const r of n.components??[])if(r.carousel){const i=r.componentId??`how-it-works-carousel-${t}`;return(r.carousel.cards??[]).map((u,d)=>{try{return Ia(u,n.messageId,i)}catch(h){throw new Error(`how-it-works transcript message ${t}, carousel card ${d} could not be parsed: ${String(h)}`)}})}throw new Error(`how-it-works transcript message ${t} has no carousel`)}function VEe(e,t){const n=Su(e,t);for(const r of n.components??[])if(r.structuredQuestionBlock)return KI(r,n.messageId);throw new Error(`how-it-works transcript message ${t} has no structured question block`)}function qEe(e,t){return(Su(e,t).mcqAnswers??[]).map((n,r)=>{const i=(n.questionId??"").split(":").pop(),s=Number.parseInt(i??"",10);return{questionId:n.questionId??`m${t}-answer-${r}`,questionIndex:Number.isNaN(s)?-1:s,question:n.question,selectedOptions:n.selectedOptions??[]}})}function W9(e,t,n,r){return{role:"USER",messageId:`${OEe}-${e}`,text:t,selectedListingCards:[],images:[],...n?{imageDataUrls:[n]}:null,...r?.length?{mcqAnswers:r}:null}}function GEe(e,t){const n=Iz(e);return n.length>0?W9(`m${e}`,Su(Co,e).text??"",t,n.map(({questionId:r,question:i,selectedOptions:s})=>({questionId:r,question:i,selectedOptions:s}))):W9(`m${e}`,wz(Co,e),t)}function V9(e){return{role:"ASSISTANT",type:"text",messageId:`${oE}-m${e}`,componentId:`${Sz}-m${e}`,text:zEe(Co,e)}}function YEe(e,t,n,r){return{role:"ASSISTANT",type:"carousel",messageId:`${oE}-${e}`,componentId:`${Sz}-${e}`,cards:r,title:t,searchRequestJson:null,stats:n}}function KEe(e){const t=HEe(Co,e);return YEe(`m${e}`,UEe(t),WEe(t),Cz(Co,e))}function XEe(e){const t=VEe(Co,e);return{...t,messageId:`${oE}-customize`,componentId:jEe,kicker:"CUSTOMIZE",peek:"",phase:"complete",questions:t.questions.slice(0,vz)}}function Iz(e){return qEe(Co,e).filter(t=>t.questionIndex>=0&&t.questionIndex<vz&&t.selectedOptions.length>0).sort((t,n)=>t.questionIndex-n.questionIndex).map(t=>({...t,selectedOptions:[t.selectedOptions[0]]}))}function JEe(e){return Iz(e).map(t=>[t.questionIndex,t.selectedOptions[0]])}const ZEe=19,q9={polkaDotSkirt:{...Cz(Co,ZEe)[0],availableSizes:["US 0","US 2","US 4","US 6","US 8","US 10","US 12","US 14"],rating:4.6,reviewCount:38,reviewSummary:"Reviewers keep coming back to the shape: the hem puffs out on its own, with nothing worn underneath to hold it, and it stays that way through a wash. The tie at the waist is the other thing they mention â it gathers in as far as you need, so the same skirt sits right across a couple of sizes. Most wear it the way the store shows it, with a plain crop top and flat sandals, and several note the lining means the yellow stays opaque in bright sun.",reviewPros:["Holds its shape","Fully lined","Adjustable tie waist"],reviewCons:["Runs short if you are tall"]}},G9={yourPhoto:FEe,tryOnResult:PEe};function kz(e,t){const n=t.verb==="press"?e:{...e,press:null};switch(t.verb){case"type":return{...n,typed:t.text,voice:"off"};case"dictate":return{...n,voice:t.state};case"attach":return{...n,attachment:t.photo};case"press":return{...n,press:t.target};case"send":return{...n,typed:"",attachment:null,voice:"off",asked:[{message:t.message,opensTheChat:t.opensTheChat}],block:null,answers:yz,customizePicks:0,reply:null,carousel:null,cards:0,scrollStep:0};case"say":return{...n,reply:t.reply,carousel:null,cards:0};case"results":return{...n,reply:t.reply,carousel:t.carousel,cards:0};case"questions":return{...n,block:t.block,answers:t.answers};case"reveal":return t.what==="cards"?{...n,cards:t.count}:{...n,customizePicks:t.count};case"scroll":return t.of==="chat"?{...n,scrollStep:t.to}:{...n,sheetStep:t.to};case"product":return{...n,overlay:t.open?"details":"none",product:t.open,sheetStep:0,tryOn:null};case"favorite":return{...n,favorited:t.product};case"tryOn":return{...n,overlay:"tryOn",tryOn:{phase:t.phase,photoUrl:t.photoUrl,resultUrl:t.resultUrl}}}}const Ez={"demo-attach.jpg":LEe},Y9=new Map;function QEe(e){const t=Y9.get(e);if(t)return t;const n=Ez[e];if(!n)throw new Error(`howItWorks attach named unknown file: ${e}`);const r=/^data:([^;,]+)/.exec(n)?.[1]??"application/octet-stream",i=new File([Uint8Array.from(atob(n.slice(n.indexOf(",")+1)),s=>s.charCodeAt(0))],e,{type:r});return Y9.set(e,i),i}function K9(e){return wz(Co,e.message)}function $Ee(e){const t=[];let n=0,r=null;const i=(s,l)=>t.push({...l,at:s});for(const s of e){const l=n+s.after;switch(n=l,s.do){case"type":{const u=K9(s);for(let d=1;d<=u.length;d++)i(l+d*B9,{verb:"type",text:u.slice(0,d)});n=l+u.length*B9;break}case"transcribe":i(l,{verb:"type",text:K9(s)});break;case"dictate":i(l,{verb:"dictate",state:s.state});break;case"attach":r=QEe(s.file),i(l,{verb:"attach",photo:r});break;case"press":i(l,{verb:"press",target:s.target});break;case"send":{const u=r?Ez[r.name]:null,d=GEe(s.message,u??null);r=null,i(l,{verb:"send",message:d,opensTheChat:s.opensChat??!1});break}case"say":i(l,{verb:"say",reply:V9(s.message)});break;case"results":i(l,{verb:"results",reply:V9(s.reply),carousel:KEe(s.carousel)});break;case"questions":i(l,{verb:"questions",block:XEe(s.block),answers:JEe(s.answers)});break;case"cards":if("arrive"in s){for(let u=1;u<=s.arrive;u++)i(l+(u-1)*N9,{verb:"reveal",what:"cards",count:u});n=l+(s.arrive-1)*N9}else i(l,{verb:"reveal",what:"cards",count:s.showing});break;case"picks":i(l,{verb:"reveal",what:"picks",count:s.chosen});break;case"scroll":i(l,"chat"in s?{verb:"scroll",of:"chat",to:s.chat}:{verb:"scroll",of:"product",to:s.product});break;case"open":i(l,{verb:"product",open:q9[s.invented]});break;
2082case"close":i(l,{verb:"product",open:null});break;case"favorite":i(l,{verb:"favorite",product:q9[s.invented]});break;case"tryOn":i(l,{verb:"tryOn",phase:s.phase,photoUrl:G9[s.photo],resultUrl:G9[s.result]});break}}return t}const X9=MEe.steps,df=X9.map((e,t)=>({...e,...dEe(t/(X9.length-1)),beats:$Ee(e.script)}));new Map(df.map((e,t)=>[e.id,t]));df.reduce((e,t)=>e+t.dwellMs,0);const J9=(()=>{const e=[];let t=aEe;for(const n of df){e.push(t);for(const r of n.beats)t=kz(t,r)}return e})();function eTe(e,t){const n=df[e]??df[0];let r=J9[e]??J9[0];for(const i of n.beats){if(i.at>t)break;r=kz(r,i)}return r}df.map((e,t)=>eTe(t,e.stillAtMs));const tTe=()=>{const{isMobile:e}=We();return c.jsx("div",{style:{position:"sticky",top:0,zIndex:2,flexShrink:0,backgroundColor:"var(--surface-primary-default, #FFFFFF)",paddingTop:"env(safe-area-inset-top, 0px)",paddingInline:e?0:"var(--spacing-small, 0.75rem)"},children:c.jsx(es,{showNewChat:!1,showAccountControl:!0})})},nTe="Find it.",rTe="Wear it.",vy=2024;function iTe(e){if(e<=vy)return`© ${vy} Tonita. All rights reserved.`;const n=Math.floor(e/100)===Math.floor(vy/100)?String(e%100).padStart(2,"0"):String(e);return`© ${vy}â${n} Tonita. All rights reserved.`}const aTe=[{label:"Terms of Service",to:"/terms-of-service",testId:"welcome-footer-link-terms"},{label:"Privacy Policy",to:"/privacy-policy",testId:"welcome-footer-link-privacy"},{label:"Contact Support",to:"/help",testId:"welcome-footer-link-support"}],sTe="https://www.instagram.com/shop.tonita/",Z9="2.5rem",by={appStore:{ariaLabel:"Download Tonita on the App Store",testId:"welcome-footer-link-app-store"},instagram:{ariaLabel:"Follow Tonita on Instagram",testId:"welcome-footer-link-instagram"}},Gc={coral:"var(--gradients-peach-400, #fe6966)",amber:"var(--gradients-peach-200, #fdb341)",lemon:"var(--gradients-peach-100, #fcda2e)"},Tz=`linear-gradient(90deg, ${Gc.coral} 0%, ${Gc.amber} 50%, ${Gc.lemon} 100%)`,U1="var(--ease-brand, cubic-bezier(0.22, 0.61, 0.36, 1))",oTe='"Instrument Serif", Georgia, serif',lTe={mobile:{band:"mobile",sectionPaddingTop:"4.5rem",sectionPaddingBottom:"2.5rem",paddingInline:"var(--spacing-medium, 1rem)",mastheadFontSize:`calc(${cz} * 0.92)`,mastheadLineHeight:"1.05",mastheadMarginBottom:"2.25rem",spectrumHeight:"4.5rem",logoHeight:"1.5rem",contentMaxWidth:"none"},tablet:{band:"tablet",sectionPaddingTop:"4.5rem",sectionPaddingBottom:"3rem",paddingInline:"var(--spacing-x-large, 1.5rem)",mastheadFontSize:`calc(${uz} * 0.92)`,mastheadLineHeight:"1.05",mastheadMarginBottom:"2.75rem",spectrumHeight:"5.5rem",logoHeight:"1.625rem",contentMaxWidth:"none"},desktop:{band:"desktop",sectionPaddingTop:"6.5rem",sectionPaddingBottom:"3.5rem",paddingInline:"var(--spacing-x-large, 2rem)",mastheadFontSize:sE,mastheadLineHeight:"0.98",mastheadMarginBottom:"3.5rem",spectrumHeight:"7rem",logoHeight:"1.75rem",contentMaxWidth:"80rem"}},cTe=` 2083.tnt-welcome-footer-link { 2084 -webkit-tap-highlight-color: transparent; 2085 text-decoration: none; 2086 position: relative; 2087} 2088.tnt-welcome-footer-link::after { 2089 content: ''; 2090 position: absolute; 2091 left: 0; 2092 right: 0; 2093 bottom: -0.2em; 2094 height: 1.5px; 2095 background: ${Tz}; 2096 transform: scaleX(0); 2097 transform-origin: left center; 2098 transition: transform var(--duration-state, 320ms) ${U1}; 2099 pointer-events: none; 2100 border-radius: 1px; 2101} 2102.tnt-welcome-footer-link:hover::after, 2103.tnt-welcome-footer-link:focus-visible::after { 2104 transform: scaleX(1); 2105} 2106.tnt-welcome-footer-link:focus-visible { 2107 outline: 2px solid ${Gc.coral}; 2108 outline-offset: 3px; 2109 border-radius: var(--radius-x-small, 0.125rem); 2110} 2111@media (prefers-reduced-motion: reduce) { 2112 .tnt-welcome-footer-link::after { 2113 transition: none; 2114 opacity: 0; 2115 } 2116 .tnt-welcome-footer-link:hover::after, 2117 .tnt-welcome-footer-link:focus-visible::after { 2118 opacity: 1; 2119 } 2120} 2121`;function uTe(e,t,n){const r=t.band!=="desktop";return{section:{position:"relative",width:"100%",boxSizing:"border-box",paddingTop:t.sectionPaddingTop,paddingBottom:`calc(${t.sectionPaddingBottom} + env(safe-area-inset-bottom, 0px))`,paddingLeft:t.paddingInline,paddingRight:t.paddingInline,backgroundColor:e.background,overflow:"hidden",scrollSnapAlign:"none"},spectrum:{position:"absolute",top:0,left:0,right:0,height:t.spectrumHeight,background:Tz,opacity:n?.42:.55,WebkitMaskImage:"linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 42%, transparent 100%)",maskImage:"linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 42%, transparent 100%)",pointerEvents:"none"},atmosphere:{position:"absolute",top:0,left:0,right:0,height:r?"70%":"55%",background:`radial-gradient(ellipse 70% 55% at 18% 0%, color-mix(in srgb, ${Gc.coral} ${n?"18%":"14%"}, transparent) 0%, transparent 70%), radial-gradient(ellipse 55% 50% at 82% 8%, color-mix(in srgb, ${Gc.amber} ${n?"16%":"12%"}, transparent) 0%, transparent 68%), radial-gradient(ellipse 50% 40% at 50% 0%, color-mix(in srgb, ${Gc.lemon} ${n?"12%":"10%"}, transparent) 0%, transparent 65%)`,filter:"blur(28px)",pointerEvents:"none"},column:{position:"relative",zIndex:1,width:"100%",maxWidth:r?"none":t.contentMaxWidth,marginLeft:"auto",marginRight:"auto",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:r?"center":"stretch",textAlign:r?"center":"left"},masthead:{display:"block",margin:0,marginBottom:t.mastheadMarginBottom,fontFamily:"var(--font-Arizona-serif, Georgia, serif)",fontWeight:"var(--weight-light, 300)",fontSize:t.mastheadFontSize,lineHeight:t.mastheadLineHeight,letterSpacing:"-0.032em",color:e.text,whiteSpace:"nowrap",textAlign:r?"center":"left"},mastheadAccent:{fontFamily:oTe,fontStyle:"italic",fontWeight:400,fontSize:"1.06em",letterSpacing:"-0.02em"},legalRow:{display:"flex",flexDirection:r?"column":"row",alignItems:"center",justifyContent:r?"center":"space-between",gap:r?"1.25rem":"2rem",width:"100%"},logoLockup:{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"0.375rem",he
2121ight:t.logoHeight,textDecoration:"none",color:"inherit",borderRadius:"var(--radius-medium, 0.5rem)"},logoMark:{height:"100%",width:"auto",flexShrink:0,display:"block"},logoWordmark:{height:"60%",width:"auto",flexShrink:0,display:"block",filter:"var(--logo-text-filter)"},links:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:r?"center":"flex-end",gap:r?"0.65rem 1.25rem":"0.5rem 1.75rem",listStyle:"none",margin:0,padding:0},link:{fontFamily:"var(--font-Inter, Inter, system-ui, sans-serif)",fontWeight:"var(--weight-regular, 400)",fontSize:r?"0.875rem":"0.9375rem",lineHeight:"1.4",letterSpacing:"-0.01em",color:e.textSecondary,transition:`color var(--duration-state, 320ms) ${U1}`},presenceRow:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",justifyContent:r?"center":"flex-start",gap:"0.75rem",width:"100%",margin:0,marginBottom:r?"2rem":"2.5rem",padding:0,listStyle:"none"},presenceItem:{display:"block",margin:0,padding:0,lineHeight:0},appStoreBadge:{display:"block",height:Z9,width:"auto"},instagramButton:{display:"flex",alignItems:"center",boxSizing:"border-box",height:Z9,padding:"0.28rem 0.7rem 0.28rem 0.5rem",borderRadius:"0.5rem",background:n?"rgba(255,255,255,0.12)":"#ececec",lineHeight:0,textDecoration:"none"},instagramBadge:{display:"block",height:"1.85rem",width:"auto"},copyright:{margin:0,marginTop:r?"1.75rem":"2.25rem",fontFamily:"var(--font-Inter, Inter, system-ui, sans-serif)",fontWeight:"var(--weight-regular, 400)",fontSize:r?"0.75rem":"0.8125rem",lineHeight:"1.4",letterSpacing:"0.01em",color:e.textMuted,textAlign:r?"center":"left"}}}const xy={masthead:0,presence:110,legal:220,copyright:330};function Sy(e,t,n=0){return e?{opacity:1,transform:"none"}:{opacity:t?1:0,transform:t?"none":"translateY(14px)",transition:`opacity 680ms ${U1} ${n}ms, transform 680ms ${U1} ${n}ms`}}function Q9(){return typeof IntersectionObserver<"u"}function dTe(e,t){const[n,r]=k.useState(()=>t||!Q9());return k.useEffect(()=>{if(n)return;const i=e.current;if(!i||!Q9()){r(!0);return}const s=new IntersectionObserver(l=>{l.some(u=>u.isIntersecting)&&r(!0)},{threshold:0,rootMargin:"0px 0px -15% 0px"});return s.observe(i),()=>s.disconnect()},[n,e]),n}const fTe=()=>{const{band:e}=We(),{colors:t,isDark:n}=ze(),r=k.useRef(null),i=k.useMemo(()=>iu(),[]),s=dTe(r,i),l=k.useMemo(()=>iTe(new Date().getFullYear()),[]),u="https://apps.apple.com/app/tonita/id6759357836",d=lTe[e],h=uTe(t,d,n);return c.jsxs("footer",{ref:r,style:h.section,"data-testid":"welcome-footer","data-band":d.band,"aria-labelledby":"welcome-footer-heading",children:[c.jsx("style",{children:cTe}),c.jsx("div",{style:h.atmosphere,"aria-hidden":!0,"data-testid":"welcome-footer-atmosphere"}),c.jsx("div",{style:h.spectrum,"aria-hidden":!0,"data-testid":"welcome-footer-spectrum"}),c.jsxs("div",{style:h.column,"data-testid":"welcome-footer-column",children:[c.jsxs("h2",{id:"welcome-footer-heading",style:{...h.masthead,...Sy(i,s,xy.masthead)},"data-testid":"welcome-footer-masthead",children:[nTe," ",c.jsx("span",{style:h.mastheadAccent,children:rTe})]}),c.jsxs("ul",{style:{...h.presenceRow,...Sy(i,s,xy.presence)},"data-testid":"welcome-footer-presence",children:[c.jsx("li",{style:h.presenceItem,children:c.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer","aria-label":by.appStore.ariaLabel,"data-testid":by.appStore.testId,style:{display:"block",lineHeight:0},children:c.jsx("img",{src:n?"/app-store-badge-white.svg":"/app-store-badge-black.svg",alt:"",style:h.appStoreBadge,"data-testid":"welcome-footer-app-store-badge"})})}),c.jsx("li",{style:h.presenceItem,children:c.jsx("a",{href:sTe,target:"_blank",rel:"noopener noreferrer","aria-label":by.instagram.ariaLabel,"data-testid":by.instagram.testId,style:h.instagramButton,children:c.jsx("img",{src:n?"/instagram-follow-badge-on-dark.png":"/instagram-follow-badge-on-light.png",alt:"",style:h.instagramBadge,"data-testid":"welcome-footer-instagram-badge"})})})]}),c.jsxs("div",{style:{...h.legalRow,...Sy(i,s,xy.legal)},"data-testid":"welcome-footer-legal",children:[c.jsxs(qd,{to:"/",style:h.logoLockup,"aria-label":"Tonita","data-testid":"welcome-footer-logo",children:[c.jsx("img",{src:n?Pm:Mm,alt:"",style:h.logoMark,"aria-hidden":!0}),c.jsx("img",{src:Fv,alt:"",style:h.logoWordmark,"aria-hidden":!0})]}),c.jsx("ul",{style:h.links,children:aTe.map(m=>c.jsx("li",{children:c.jsx(qd,{to:m.to,className:"tnt-welcome-footer-link",style:h.link,"data-testid":m.testId,children:m.label})},m.to))})]}),c.jsx("p",{style:{...h.copyright,...Sy(i,s,xy.copyright)},"data-testid":"welcome-footer-copyright",children:l})]})]})},hTe="44rem",pTe="var(--spacing-medium, 1rem)",mTe="var(--gradients-peach-400, #fe6966)",gTe={restHeight:"3.25rem",grownHeight:"4.5rem"},yTe={position:"fixed",inset:0,overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",paddingLeft:"env(safe-area-inset-left, 0px)",paddingRight:"env(safe-area-inset-right, 0px)",backgroundColor:"var(--surface-primary-default, #FFFFFF)",color:"var(--text-default-primary, #0E0E11)",fontFamily:"var(--font-Inter, Inter)"},vTe={margin:0,fontFamily:"var(--font-Arizona-serif, serif)",fontWeight:400,fontSize:"clamp(1.5rem, 6.9vw, 1.875rem)",lineHeight:1.05,letterSpacing:"-0.028em",textWrap:"balance"},bTe="opened-from-home",xTe=()=>{const[e,t]=k.useState(!1),[n,r]=k.useState(!1);return{pressed:e,hovered:n,handlers:{onPointerEnter:s=>r(s.pointerType==="mouse"),onPointerLeave:()=>{r(!1),t(!1)},onPointerDown:()=>t(!0),onPointerUp:()=>t(!1),onPointerCancel:()=>t(!1)}}}
2121,STe=(e,t,n)=>{const[r,i]=k.useState(null),s=k.useRef(null),l=k.useRef(!1),u=k.useRef(0),d=k.useRef(0),h=k.useRef(!1),m=S=>{s.current=S,i(S)};k.useEffect(()=>{const S=e.current,I=t.current;if(!n||!S||!I||typeof ResizeObserver>"u")return;const w=new ResizeObserver(()=>{const C=s.current;if(C!==null&&S.clientHeight<C){if(!l.current)return;const E=I.getBoundingClientRect().bottom-S.getBoundingClientRect().bottom;E>0&&(S.scrollTop+=E,h.current=!0);return}u.current=S.clientHeight,h.current&&(S.scrollTop=d.current,h.current=!1),l.current||m(null)});return w.observe(S),w.observe(I),()=>w.disconnect()},[n,e,t]);const g=S=>{const I=e.current;!n||!I||!(S.target instanceof HTMLTextAreaElement)||(l.current=!0,h.current||(d.current=I.scrollTop),m(Math.max(u.current,I.clientHeight)))},y=S=>{const I=e.current;if(!n||!I||!(S.target instanceof HTMLTextAreaElement))return;l.current=!1;const w=s.current;(w===null||I.clientHeight>=w)&&m(null)};return{frameMinHeight:r!==null?`${r}px`:"100%",onFocus:g,onBlur:y}},wTe=[{to:"/learn",destination:"learn",label:"Learn how to use Tonita like a pro"},{to:"/browse",destination:"browse",label:"Browse what's trending"},{to:"/personalize",destination:"personalize",label:"Personalize your shopping assistant"}],$9="1px solid var(--border-default-primary, #DDDDDF)",CTe=()=>{const[e,t]=k.useState(0);return k.useEffect(()=>{const n=window.visualViewport;if(!n)return;const r=()=>{const i=document.activeElement;if(i instanceof HTMLTextAreaElement||i instanceof HTMLInputElement)return;const s=window.innerHeight-n.height-n.offsetTop;t(s>8?Math.round(s):0)};return r(),n.addEventListener("resize",r),n.addEventListener("scroll",r),()=>{n.removeEventListener("resize",r),n.removeEventListener("scroll",r)}},[]),e},Br={frame:{display:"flex",flexDirection:"column"},column:{flexGrow:1,width:"100%",maxWidth:hTe,margin:"0 auto",display:"flex",flexDirection:"column",paddingBottom:"calc(env(safe-area-inset-bottom, 0px) + var(--spacing-small, 0.75rem))"},padded:{paddingInline:pTe},breath:{flexGrow:1,minHeight:"var(--spacing-medium, 1rem)"},tail:{flexGrow:1.4,minHeight:"var(--spacing-small, 0.75rem)"},intro:{display:"flex",flexDirection:"column",gap:"var(--spacing-large, 1.25rem)"},headlineAccent:{fontFamily:'"Instrument Serif", Georgia, serif',fontStyle:"italic",fontSize:"1.06em",color:mTe},bodyText:{margin:0,fontSize:"1rem",lineHeight:1.5,letterSpacing:"-0.01rem"},lead:{margin:0,padding:"0.75rem 0.125rem",fontSize:"1rem",lineHeight:1.5,letterSpacing:"-0.01rem",borderBottom:$9},row:{display:"flex",alignItems:"center",gap:"var(--spacing-x-small, 0.5rem)",width:"100%",padding:"1rem 0.125rem",border:"none",borderBottom:$9,backgroundColor:"transparent",color:"inherit",font:"inherit",fontSize:"0.9375rem",fontWeight:500,lineHeight:1.3,letterSpacing:"-0.00875rem",textAlign:"left",cursor:"pointer",userSelect:"none",WebkitTapHighlightColor:"transparent",transition:"background-color 0.15s ease"},rowActive:{backgroundColor:"var(--surface-secondary-default, #F2F2F3)"},rowIcon:{width:"1.125rem",height:"1.125rem",flexShrink:0}
2121,rowChevron:{width:"1rem",height:"1rem",flexShrink:0,marginLeft:"auto",transform:"rotate(-90deg)",filter:"var(--inactive-icon-filter)"},composerSeat:e=>({"--composer-elevation":e?"inset 0 0 0 1.5px rgba(253, 179, 65, 0.55), 0 0 0 4px rgba(253, 179, 65, 0.10), 0 14px 36px rgba(0, 0, 0, 0.5)":"inset 0 0 0 1.5px rgba(253, 179, 65, 0.65), 0 0 0 4px rgba(253, 179, 65, 0.12), 0 14px 36px rgba(14, 14, 17, 0.12)"})},ITe=({label:e,onClick:t})=>{const{pressed:n,hovered:r,handlers:i}=xTe();return c.jsxs("button",{type:"button",style:{...Br.row,...n||r?Br.rowActive:{}},onClick:t,...i,children:[c.jsx("img",{src:Rs,alt:"",style:Br.rowIcon}),e,c.jsx("img",{src:Ym,alt:"",style:Br.rowChevron})]})},kTe=()=>{const{isDark:e}=ze(),t=Bt(),{trackHomePageNextStepClick:n}=Nt(),r=CTe(),i=k.useRef(null),s=k.useRef(null),l=xt(),u=STe(i,s,!l),{height:d}=zm(),h=l?d:0;return k.useEffect(()=>{const m=i.current,g=s.current;if(!h||!m||!g)return;const y=()=>{const S=g.getBoundingClientRect().bottom-(window.innerHeight-h);S>0&&m.scrollBy({top:S,behavior:"smooth"})};if(typeof ResizeObserver>"u"){y();return}const b=new ResizeObserver(y);return b.observe(g),()=>b.disconnect()},[h]),k.useEffect(()=>()=>be.getState().markVisitComplete(),[]),c.jsxs("div",{ref:i,style:yTe,"data-testid":"new-home",children:[c.jsxs("div",{style:{...Br.frame,minHeight:l?II:u.frameMinHeight},children:[c.jsx(tTe,{}),c.jsxs("div",{style:Br.column,children:[c.jsx("div",{style:Br.breath}),c.jsxs("section",{style:{...Br.intro,...Br.padded},children:[c.jsxs("h1",{style:vTe,children:["What are you ",c.jsx("span",{style:Br.headlineAccent,children:"shopping"})," ","for?"]}),c.jsx("p",{style:Br.bodyText,children:"Hi, Iâm Tonita, your shopping assistant. Iâm here to help you find the right product from 10M+ options across thousands of stores and brands."})]}),c.jsx("div",{style:Br.breath}),c.jsx("div",{ref:s,style:Br.composerSeat(e),onFocus:u.onFocus,onBlur:u.onBlur,children:c.jsx(Xv,{hold:"flow",publishHeight:!1,children:c.jsx(Zv,{autoFocus:!1,showInFocusPreview:!1,writingArea:gTe,placeholder:{text:"Get started by typing anything...",visible:!0}})})}),c.jsx("div",{style:Br.breath}),c.jsxs("nav",{style:Br.padded,"aria-label":"Ways to get started",children:[c.jsx("p",{style:Br.lead,children:"Or get started with one of these options:"}),wTe.map(m=>c.jsx(ITe,{label:m.label,onClick:()=>{n(m.destination),t(m.to,{state:bTe})}},m.to))]}),c.jsx("div",{style:Br.tail})]})]}),c.jsx(fTe,{}),c.jsx("div",{"aria-hidden":!0,style:{height:r+h}})]})},ej=!0;function ETe(e){return!!(e==="/home"||e==="/"||e==="/favorites"||e==="/recent"||e.startsWith("/c/")||e.startsWith("/share/")||e.startsWith("/pages/"))}const TTe=()=>{const{isMobile:e,band:t}=We(),{colors:n}=ze(),{pathname:r}=Pt(),{isLoading:i}=ti(),s=be(j=>j.isFirstVisit),l=U(j=>j.messages),u=U(j=>j.isLoadingTranscript);ao(j=>j.placeholderText),ao(j=>
2121j.placeholderVisible);const d=ao(j=>j.composerGlowing);ao(j=>j.visitorEngaged),ao(j=>j.composerSeat);const h=zie(),m=r==="/"?km():null,g=m?oP({isFirstVisit:s===!0,messagesLength:l.length,search:m.toString()?`?${m.toString()}`:"",authLoading:i,isLoadingTranscript:u}):null,y=r==="/home"||g==="welcome",b=e&&ETe(r)&&g!=="pending"&&!(y&&ej)&&!h,S=y&&!ej,I=eEe[t],{height:w}=zm(),C=w>0,E=cp(j=>j.keyboardInset>0),A=k.useRef(null),_=k.useRef(null);iEe(A,_,{active:S});const R=rEe(S),L=k.useMemo(()=>{},[S,I,n,d,C,E]);return b?c.jsx("div",{style:L,"data-testid":"mobile-shell-input","data-composer-seat":void 0,"data-hero-seat":void 0,"data-composer-glowing":void 0,...R,children:c.jsx(Xv,{seatOffset:void 0,ground:"page",publishHeight:!S,children:c.jsx(Zv,{writingArea:Uk,autoFocus:!1,showInFocusPreview:!S,hintWhile:void 0,hintRespectsReducedMotion:S,placeholder:void 0,cardRef:A,textOriginRef:_})})}):null},kC={marginTop:"var(--spacing-small, 0.75rem)",padding:"0.5rem 1rem",borderRadius:"0.5rem",border:"none",backgroundColor:"var(--button-primary-bg, #6366F1)",color:"white",cursor:"pointer"},ATe={...kC,backgroundColor:"transparent",color:"var(--button-primary-bg, #6366F1)",border:"1px solid var(--button-primary-bg, #6366F1)"},_Te=({reason:e,onRetry:t})=>{const{colors:n}=ze(),r=Bt(),i=e==="revoked"?{title:"This shared chat is no longer available",description:lue}:e==="error"?{title:"Couldn't load this shared chat",description:"Something went wrong while loading the link. Check your connection and try again."}:{title:"Shared chat not found",description:"This link may be invalid or the share may have been removed."};return c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",gap:"var(--spacing-small, 0.75rem)",color:n.textSecondary,fontFamily:"var(--font-Inter, Inter)",backgroundColor:n.background,padding:"var(--spacing-medium, 1rem)",textAlign:"center"},children:[c.jsx("h2",{style:{margin:0},children:i.title}),c.jsx("span",{children:i.description}),c.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",gap:"var(--spacing-small, 0.75rem)"},children:[e==="error"&&t?c.jsx("button",{type:"button",onClick:t,style:kC,children:"Try again"}):null,c.jsx("button",{type:"button",onClick:()=>r("/",{replace:!0}),style:e==="error"&&t?ATe:kC,children:"Go to Tonita"})]})]})},RTe=()=>{const{shareId:e}=nm(),t=Bt(),{isLoading:n}=ti(),[r,i]=k.useState(null),[s,l]=k.useState(0),u=e?aP(e):null,d=U(h=>h.referrerChatId);return G.useEffect(()=>{if(n)return;if(!e||!u){t("/",{replace:!0});return}if(d===u)return;let h=!1;return(async()=>{i(null);try{$a(),U.getState().setLoadingTranscript(!0);const g=await jv.fetchSharedSnapshot(e);if(h)return;if(g.status==="ok"){U.getState().setMessages(g.messages),U.getState().setReferrerChatId(g.snapshotChatId),U.getState().disableTranscriptFetch(),be.getState().markVisitComplete();return}g.status==="revoked"?i("revoked"):g.status==="error"?i("error"):i("not_found")}catch(g){if(h)return;console.error("Failed to load share snapshot",g),i("error")}finally{h||U.getState().setLoadingTranscript(!1)}})(),()=>{h=!0,U.getState().setLoadingTranscript(!1)}},[e,u,n,t,d,s]),r?c.jsx(_Te,{reason:r,onRetry:r==="error"?()=>l(h=>h+1):void 0}):c.jsx(Df,{})},Az="show_product_carousel",jTe="shown",OTe="unknown_carousel",_z="show_product_details_card",LTe="opened",DTe="unknown_listing",MTe=[Az,_z];function PTe(e){return!!e&&MTe.includes(e)}function FTe(e){let t;try{t=JSON.parse(e)}catch{return null}switch(t.type){case"session.created":case"session.updated":return{kind:"sessionReady"};case"input_audio_buffer.speech_started":return{kind:"userSpeechStarted",itemId:t.item_id??null};case"input_audio_buffer.speech_stopped":return{kind:"userSpeechStopped"};case"response.created":case"output_audio_buffer.started":return{kind:"agentTurnStarted"};case"response.done":case"output_audio_buffer.stopped":return{kind:"agentTurnFinished"};case"response.output_audio_transcript.delta":return tj("agent",t);case"response.output_audio_transcript.done":return nj("agent",t);case"conversation.item.input_audio_transcription.delta":return tj("user",t);case"conversation.item.input_audio_transcription.completed":return nj("user",t);case"response.output_item.added":return rj(t,{argumentsAreFinished:!1});case"response.output_item.done":return rj(t,{argumentsAreFinished:!0});case"error":return{kind:"error",message:t.error?.message||"The voice service reported an error.",eventId:t.error?.event_id??null};default:return null}}function tj(e,t){return!t.item_id||!t.delta?null:{kind:"transcriptDelta",speaker:e,id:t.item_id,text:t.delta}}function nj(e,t){return t.item_id?{kind:"transcriptDone",speaker:e,id:t.item_id,text:t.transcript??""}:null}function rj(e,{argumentsAreFinished:t}){const n=e.item;if(n?.type!=="function_call")return null;if(PTe(n.name)){if(!t)return null;switch(n.name){case Az:return{kind:"showCarouselRequested",toolCallId:n.call_id??null,componentId:wy(n.arguments,"component_id")};case _z:return{kind:"showProductCardRequested",toolCallId:n.call_id??null,messageId:wy(n.arguments,"message_id"),componentId:wy(n.arguments,"component_id"),listingId:wy(n.arguments,"listing_id")};default:return null}}return null}function wy(e,t){if(!e)return null;try{const r=JSON.parse(e)?.[t];return typeof r=="string"&&r?r:null}catch{return null}}const Rz="tonita_browser_";function BTe(e){return`${Rz}${e}_${$t()}`}function NTe(e){return!!e&&e.startsWith(Rz)}const ij=2e3;class zTe{constructor(t){this.unsubscribes=[],this.sentAtMs=new Map,this.held=new Map,this.cancelHold=new Map,this.voiceCallId=t.voiceCallId,this.post=t.post,this.now=t.now??(()=>Date.now()),this.schedule=t.schedule??((n,r)=>{const i=window.setTimeout(n,r);return()=>window.clearTimeout(i)})}start(){this.unsubscribes.length>0||(this.unsubscribes=[Fe.subscribe((t,n)=>{const r=t.currentComponentId,i=n.currentComponentId;!r||!i||r===i||this.report({action:"carousel_switched",componentId:r,title:t.currentCarouselTitle??void 0})}),Xt.subscribe((t,n)=>{const r=n.isListingDetailsOpen?n.selectedListing?.listingId:void 0;if(!t.isListingDetailsOpen){r&&this.report({action:"product_details_page_closed"});return}const i=t.selectedListing?.listingId;!i||i===r||this.report({action:"product_details_page_opened",listingId:i,componentId:Fe.getState().currentComponentId?String(Fe.getState().currentComponentId):void 0})}),Gn.subscribe((t,n)=>{for(const r of t.favoriteListings.keys())n.favoriteListings.has(r)||this.report({action:"favorited",listingId:r})})])}
2121stop(){this.unsubscribes.forEach(t=>t()),this.unsubscribes=[],this.cancelHold.forEach(t=>t()),this.cancelHold.clear(),this.held.clear(),this.sentAtMs.clear()}report(t){const n=this.voiceCallId();if(!n)return;const r={...t,voiceCallId:n},i=this.now()-(this.sentAtMs.get(r.action)??-1/0);if(i>=ij){this.send(r);return}this.held.set(r.action,r),!this.cancelHold.has(r.action)&&this.cancelHold.set(r.action,this.schedule(()=>{this.cancelHold.delete(r.action);const s=this.held.get(r.action);this.held.delete(r.action),s&&this.send(s)},ij-i))}send(t){this.sentAtMs.set(t.action,this.now()),this.post(t).catch(()=>{})}}function HTe(e){const t=[];for(const n of e.cards)try{t.push(Ia(n,e.messageId,e.componentId))}catch{}return t.length===0?0:(U.getState().appendCarouselPartialUpdate({component:{componentId:e.componentId,carousel:{...e.stats,title:e.carouselTitle??void 0,cards:t}},message_id:e.messageId,laneId:e.groupPath?.[0],groupPath:e.groupPath,mayTakeTheScreen:!1}),t.length)}function UTe(e,t,n){return e.some(r=>r.componentId===t)?[...e]:[...e,{componentId:t,title:n,status:null}]}function WTe(e,t){return e.filter(n=>n.componentId!==t)}function VTe(e,t){return e.length===0?[...e]:e.map((n,r)=>r===e.length-1?{...n,status:t}:n)}function qTe(e){if(e.length===0)return{isSearching:!1,text:null};const t=e[e.length-1];return{isSearching:!0,text:t.status??t.title}}function GTe(e,t,n){const r=U.getState().messages.find(u=>u.role==="ASSISTANT"&&u.type==="carousel"&&u.messageId===e&&u.componentId===t);if(!r)return null;const i=r.cards.find(u=>u.listingId===n);if(!i)return null;const l=Fe.getState().currentComponentId!==t;return l&&U.getState().showVoiceCarousel({messageId:e,componentId:t}),Xi.getState().initializeGroup(i),Xt.getState().openListingDetails(i),{componentId:t,switchedCarousel:l}}const YTe="Showing Tonita your photoâ¦",KTe="That took too long. Try the photo again.",XTe="Start a voice call first, then upload a photo.",aj="That photo could not be read. Try a JPEG or PNG.";function jz({state:e,error:t,statusText:n,agentHasSpoken:r,photo:i}){return t?{kind:"error",text:t}:i.uploading?{kind:"photo",text:YTe}:i.error?{kind:"error",text:i.error}:n?{kind:"server",text:n}:!r&&(e==="listening"||e==="speaking")?{kind:"listening",text:"I'm listening"}:null}const em=new Map;function Oz(e,t){return`${e}|${t}`}function Lz(e,t,n,r){U.getState().addVoiceTranscriptTurn({voiceCallId:e,itemId:n,speaker:t,text:r})}function JTe(e,t){U.getState().openVoiceTranscriptTurn({voiceCallId:e,itemId:t})}function ZTe(e,t,n,r){const i=Oz(e,n),s=(em.get(i)??"")+r;em.set(i,s),Lz(e,t,n,s)}function QTe(e,t,n,r){const i=Oz(e,n),s=r.trim()?r:em.get(i)??"";em.delete(i),Lz(e,t,n,s)}function sj(){em.clear()}const $Te={audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}},e3e=1e4,t3e=6e3,n3e="oai-events",r3e=2e4;function i3e(){return U.getState().chatId??$t()}function a3e(e){const t=U.getState();t.chatId!==e&&(t.setChatId(e),t.disableTranscriptFetch())}function s3e(){const[e,t]=k.useState("idle"),[n,r]=k.useState(null),[i,s]=k.useState(0),[l,u]=k.useState(null),d=k.useRef(new Map),[h,m]=k.useState(!1),[g,y]=k.useState(0),[b,S]=k.useState(!1),[I,w]=k.useState(null),[C,E]=k.useState(null),[A,_]=k.useState([]),R=k.useRef([]),L=k.useCallback((Oe,ve)=>{R.current.some(lt=>lt.messageId===Oe&<.componentId===ve)||(R.current=[...R.current,{messageId:Oe,componentId:ve}],_(R.current))},[]),j=k.useCallback(()=>{R.current=[],_([])},[]),O=k.useRef(null),F=k.useRef(null),D=k.useRef(null),H=k.useRef(null),V=k.useRef(null),Y=k.useRef(3600),K=k.useRef(0),z=k.useRef(null),q=k.useRef(null),$=k.useRef("idle"),ue=k.useCallback(Oe=>{$.current=Oe,t(Oe),Oe==="speaking"&&S(!0),Oe==="requestingMic"&&S(!1),(Oe==="listening"||Oe==="speaking")&&z.current&&a3e(z.current)},[]),ge=k.useRef(!1),M=k.useRef(!1),Z=k.useRef(new Set),te=k.useCallback(Oe=>{const ve=D.current;if(!ve||ve.readyState!=="open")return!1;const St=String(Oe.type??"event").replace(/[^a-z]+/gi,"");try{return ve.send(JSON.stringify({...Oe,event_id:BTe(St)})),!0}catch{return!1}},[]),B=k.useRef(null),N=k.useCallback(()=>
2121(B.current===null&&(B.current=new zTe({voiceCallId:()=>q.current,post:P8})),B.current),[te]),le=k.useRef([]),[ae,de]=k.useState(!1),oe=k.useCallback(()=>{const Oe=qTe(le.current);de(Oe.isSearching),w(Oe.text)},[]),we=k.useCallback((Oe,ve)=>{le.current=UTe(le.current,Oe,ve),oe()},[oe]),je=k.useCallback(Oe=>{le.current=WTe(le.current,Oe),oe()},[oe]),xe=k.useCallback(Oe=>{le.current=VTe(le.current,Oe),le.current.length===0?w(Oe):oe()},[oe]),Se=k.useCallback(()=>{le.current=[],de(!1)},[]),qe=k.useCallback((Oe,ve)=>{switch(ve.kind){case"attached":break;case"streamReady":break;case"statusUpdate":xe(ve.text);break;case"carouselPartialStart":{we(ve.componentId,ve.carouselTitle),L(ve.messageId,ve.componentId);break}case"carouselPartialUpdate":HTe(ve);break;case"carouselPartialComplete":{je(ve.componentId),U.getState().completeCarouselPartial({message_id:ve.messageId,component_id:ve.componentId});break}}},[N,L,je,we,xe]),Ke=k.useCallback(()=>{K.current+=1,q.current=null,E(null),sj(),B.current?.stop(),M.current=!1,ge.current=!1,Z.current.clear(),j(),w(null),Se(),V.current?.abort(),V.current=null,D.current?.close(),D.current=null,F.current?.close(),F.current=null,H.current?.getTracks().forEach(Oe=>Oe.stop()),H.current=null,O.current&&(O.current.srcObject=null),m(!1)},[j,Se]),dt=k.useCallback((Oe,ve)=>{ve&&pt({error:ve.error,source:ve.source,metadata:{voiceCallId:q.current,phase:$.current,...ve.metadata}},{showToast:!1}),Ke(),r(Oe),ue("error")},[ue,Ke]),at=k.useCallback(()=>{kI($.current)&&(Ke(),ue("ended"))},[ue,Ke]),nt=k.useCallback(async(Oe,ve,St)=>{try{const lt=await gSe({voiceCallId:Oe,signal:ve,onEmission:Hn=>{St()||qe(Oe,Hn)}});if(St())return;const Rt=$.current,Ct=vSe(lt,Rt!=="ended"&&Rt!=="error");
2121if(Ct===null)return;pt({error:`Voice call lost: ${lt}`,source:"useVoiceSession.followServerEvents",metadata:{outcome:lt,voiceCallId:Oe,state:Rt}},{showToast:!1}),Ke(),r(Ct),ue("ended")}catch{}},[qe,ue,Ke]),Ae=k.useCallback((Oe,ve,St,{isFinal:lt})=>{const Rt=d.current.get(ve),zn=lt?(St||"").length||(Rt??0):(Rt??0)+St.length;d.current.set(ve,zn),s(Ct=>Ct+zn-(Rt??0)),Rt===void 0&&u(Oe)},[]),ot=k.useCallback((Oe,ve,St,{isFinal:lt})=>{const Rt=q.current;Rt&&(lt?QTe(Rt,Oe,ve,St):ZTe(Rt,Oe,ve,St))},[]),en=k.useCallback((Oe,ve)=>{if(!Oe||Z.current.has(Oe))return;Z.current.add(Oe);const St=q.current,lt=R.current.find(zn=>zn.componentId===ve),Rt=St!==null&<!==void 0&&U.getState().showVoiceCarousel({messageId:lt.messageId,componentId:lt.componentId});Rt&&(M.current=!0),te({type:"conversation.item.create",item:{type:"function_call_output",call_id:Oe,output:JSON.stringify(Rt?{status:jTe,component_id:ve}:{status:OTe,component_id:ve,message:"That carousel is not on this screen, so nothing has changed. Do not say it is up."})}})},[te]),ln=k.useCallback((Oe,ve,St,lt)=>{if(!Oe||Z.current.has(Oe))return;Z.current.add(Oe);const Rt=ve!==null&&St!==null&<!==null?GTe(ve,St,lt):null;Rt?.switchedCarousel&&(M.current=!0),te({type:"conversation.item.create",item:{type:"function_call_output",call_id:Oe,output:JSON.stringify(Rt?{status:LTe,listing_id:lt,component_id:Rt.componentId,switched_carousel:Rt.switchedCarousel}:{status:DTe,listing_id:lt,message:"That product is not on this screen, so nothing has changed. Do not say it is o
2121pen."})}})},[te]),pr=k.useCallback(Oe=>{const ve=FTe(Oe);if(ve)switch(ve.kind){case"sessionReady":$.current==="connecting"&&ue("listening");break;case"userSpeechStarted":ge.current=!0,ue("listening"),ve.itemId&&q.current&&JTe(q.current,ve.itemId);break;case"agentTurnStarted":ue("speaking");break;case"userSpeechStopped":case"agentTurnFinished":ge.current=!1,$.current!=="ended"&&$.current!=="error"&&ue("listening");break;case"showCarouselRequested":en(ve.toolCallId,ve.componentId);break;case"showProductCardRequested":ln(ve.toolCallId,ve.messageId,ve.componentId,ve.listingId);break;case"transcriptDelta":Ae(ve.speaker,ve.id,ve.text,{isFinal:!1}),ot(ve.speaker,ve.id,ve.text,{isFinal:!1});break;case"transcriptDone":Ae(ve.speaker,ve.id,ve.text,{isFinal:!0}),ot(ve.speaker,ve.id,ve.text,{isFinal:!0});break;case"error":if(NTe(ve.eventId))break;dt(ve.message,{error:`OpenAI reported an error: ${ve.message}`,source:"useVoiceSession.handleEvent",metadata:{step:"data-channel",eventId:ve.eventId}});break}},[en,Ae,dt,N,ot,ue]),Xn=k.useCallback(async(Oe,ve)=>{const St=new AbortController;V.current=St;const lt=()=>K.current!==Oe;let Rt;try{Rt=await ve}catch(Ct){if(lt())return;const Hn=Ct?.name;Hn==="NotAllowedError"||Hn==="SecurityError"?(ks(!0),dt(M5(MP()))):Hn==="NotFoundError"?dt("No microphone found on this device."):dt("Could not open the microphone. Please try again.",{error:Ct,source:"useVoiceSession.connect",metadata:{step:"microphone"}});return}if(lt()){Rt.getTracks().forEach(Ct=>Ct.stop());return}H.current=Rt,ks(!1),ue("connecting");let zn="webrtc-offer";try{const Ct=new RTCPeerConnection;F.current=Ct,Ct.ontrack=Un=>{const vi=O.current;vi&&(vi.srcObject=Un.streams[0],vi.play().catch(()=>{}))},Ct.onconnectionstatechange=()=>{lt()||Ct.connectionState==="failed"&&dt("The voice connection dropped. Please try again.",{error:"WebRTC connection failed",source:"useVoiceSession.connect",metadata:{step:"webrtc"}})},Rt.getTracks().forEach(Un=>Ct.addTrack(Un,Rt));const Hn=Ct.createDataChannel(n3e);D.current=Hn,Hn.onmessage=Un=>{lt()||pr(Un.data)},Hn.onopen=()=>{lt()||$.current==="connecting"&&ue("listening")};const ea=await Ct.createOffer();await Ct.setLocalDescription(ea);const Gl=setTimeout(()=>St.abort(),r3e);zn="create-call";let yi;try{yi=await hSe(ea.sdp??"",z.current,St.signal)}finally{clearTimeout(Gl)}if(lt())return;Y.current=yi.maxSessionDurationSeconds,q.current=yi.voiceCallId,E(yi.voiceCallId),zn="webrtc-answer",await Ct.setRemoteDescription({type:"answer",sdp:yi.answerSdp}),nt(yi.voiceCallId,St.signal,lt)}catch(Ct){if(lt())return;if(Ct?.name==="AbortError"){dt("Connecting took too long. Please try again.",{error:Ct,source:"useVoiceSession.connect",metadata:{step:zn,timedOut:!0}});return}if(Ct instanceof Ed){dt(Ct.message,{error:Ct,source:"useVoiceSession.connect",metadata:{step:zn,status:Ct.status}});return}dt("Could not start the voice conversation. Please try again.",{error:Ct,source:"useVoiceSession.connect",metadata:{step:zn}})}},[dt,nt,pr,ue]),Cn=k.useCallback(()=>{if($.current!=="idle"&&$.current!=="ended"&&$.current!=="error")return;if(!navigator.mediaDevices?.getUserMedia){r("This browser cannot record audio."),ue("error");return}let Oe;try{Oe=navigator.mediaDevices.getUserMedia($Te)}catch(St){dt("Could not open the microphone. Please try again.",{error:St,source:"useVoiceSession.start",metadata:{step:"microphone"}});return}const ve=++K.current;z.current=i3e(),q.current=null,sj(),B.current?.stop(),M.current=!1,ge.current=!1,Z.current.clear(),j(),w(null),r(null),s(0),u(null),d.current.clear(),y(0),Se(),ue("requestingMic"),Xn(ve,Oe)},[Xn,dt,j,Se,ue]);k.useEffect(()=>U.subscribe((Oe,ve)=>{Oe.chatId!==ve.chatId&&Oe.chatId!==z.current&&at()}),[at]);const Tr=k.useCallback(()=>{const Oe=H.current;if(!Oe)return;const ve=!h;Oe.getAudioTracks().forEach(St=>{St.enabled=!ve}),m(ve)},[h]),fe=k.useRef(!1),[Ce,Xe]=k.useState(!1),Je=k.useCallback(Oe=>{const ve=q.current;ve&&P8({voiceCallId:ve,action:Oe})},[]),wt=k.useCallback(()=>Je("photo_picker_opened"),[Je]),Rn=k.useCallback(()=>Je("photo_picker_cancelled"),[Je]),[ri,mr]=k.useState(null),Ar=k.useRef(null),gr=k.useCallback(()=>{Ar.current!==null&&(window.clearTimeout(Ar.current),Ar.current=null)},[]);k.useEffect(()=>gr,[gr]);const gn=k.useCallback(async Oe=>{if(fe.current)return;fe.current=!0,Xe(!0),gr(),mr(null);const ve=new Promise(Hn=>window.setTimeout(()=>Hn({ok:!1,error:KTe}),e3e)),St=q.current,lt=$t();let Rt=!1;const zn=async()=>
2121{if(!St)return{ok:!1,error:XTe};let Hn;try{const[Gl]=await GI([Oe]);[Hn]=await Rv([Gl])}catch{return{ok:!1,error:aj}}const[ea]=hce([Hn]);return ea?(U.getState().addVoicePhotoTurn({voiceCallId:St,photoId:lt,imageDataUrl:Hn}),Rt=!0,ySe({voiceCallId:St,imageBase64:ea})):{ok:!1,error:aj}},Ct=await Promise.race([zn(),ve]);!Ct.ok&&Rt&&St&&U.getState().removeVoicePhotoTurn({voiceCallId:St,photoId:lt}),fe.current=!1,Xe(!1),Ct.ok||(mr(Ct.error),Ar.current=window.setTimeout(()=>{Ar.current=null,mr(null)},t3e))},[gr]),Hr=e==="requestingMic"||e==="connecting"||e==="listening"||e==="speaking";return k.useEffect(()=>{if(e!=="listening"&&e!=="speaking")return;const Oe=Date.now()-g*1e3,ve=setInterval(()=>{const St=Math.floor((Date.now()-Oe)/1e3);y(St),St>=Y.current-5&&(Ke(),r("Voice calls are limited to an hour. Tap to start a new one."),ue("ended"))},1e3);return()=>clearInterval(ve)},[e,ue,Ke]),k.useEffect(()=>{if(e!=="listening"&&e!=="speaking")return;const Oe=N();return Oe.start(),()=>Oe.stop()},[N,e]),k.useEffect(()=>Ke,[Ke]),{state:e,error:n,spokenChars:i,lastSpeaker:l,isSearching:ae,agentHasSpoken:b,statusText:I,voiceCallId:C,canvasComponents:A,isMuted:h,elapsedSeconds:g,isActive:Hr,audioRef:O,start:Cn,stop:at,toggleMute:Tr,uploadPhoto:gn,isUploadingPhoto:Ce,photoError:ri,photoPickerOpened:wt,photoPickerCancelled:Rn}}function o3e(e,{min:t,max:n}){const[r,i]=k.useState(0);return k.useEffect(()=>{const s=e.current;if(!s)return;const l=()=>{const{width:d,height:h}=s.getBoundingClientRect(),m=Math.floor(Math.min(d,h));i(Math.max(t,Math.min(n,m)))};if(l(),typeof ResizeObserver>"u")return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l);const u=new ResizeObserver(l);return u.observe(s),()=>u.disconnect()},[e,t,n]),r}const l3e=1150,c3e=760;function Dz(e){const{state:t,spokenChars:n,lastSpeaker:r,isSearching:i,isMuted:s}=e,l=eIe(t,i,s),[u,d]=k.useState(()=>xC(l,Date.now()));k.useEffect(()=>{const I=tIe(u,l,Date.now());if(I.hold!==u){d(I.hold);return}if(I.recheckInMs<=0)return;const w=window.setTimeout(()=>d(C=>({...C})),I.recheckInMs);return()=>window.clearTimeout(w)},[l,u]);const h=u.phase,m=k.useMemo(()=>iu(),[]),[g,y]=k.useState(C9),b=sIe(n),S=k.useRef(n);return k.useEffect(()=>{const I=n>S.current;S.current=n,!(m||!I||r===null)&&(h==="muted"||h==="ended"||h==="error"||y(w=>I9(w,{colour:iIe(h,r),spaced:!0},Date.now())))},[n,r,h,m]),k.useEffect(()=>{if(m||h!=="searching"&&h!=="connecting")return;const I=h==="searching"?l3e:c3e,w=()=>{y(E=>I9(E,{colour:WB},Date.now()))};w();const C=window.setInterval(w,I);return()=>window.clearInterval(C)},[h,m]),k.useEffect(()=>{(h==="idle"||h==="ended"||h==="error")&&y(C9())},[h]),{phase:h,ripples:g.ripples,pulse:b}}function Mz({session:e,onExit:t}){const{state:n,error:r,isSearching:i,statusText:s,agentHasSpoken:l,isActive:u,start:d}=e,h=Dz(e),m=k.useRef(null),g=o3e(m,{min:JN,max:bIe}),y=jz({state:n,error:r,statusText:s,agentHasSpoken:l,photo:{uploading:e.isUploadingPhoto,error:e.photoError}});return c.jsxs("div",{className:iE,style:za.panel,children:[c.jsx("style",{children:ZN}),c.jsxs("div",{style:za.stage,ref:m,children:[g>0&&c.jsx(qN,{onPhoto:e.uploadPhoto,onOpen:e.photoPickerOpened,onCancel:e.photoPickerCancelled,disabled:!u||e.isUploadingPhoto,showHint:u,children:c.jsx(KN,{phase:h.phase,ripples:h.ripples,pulse:h.pulse,size:g})}),e.isUploadingPhoto&&c.jsxs("div",{style:za.photoBanner,"data-voice-photo-banner":"true","aria-hidden":"true",children:[c.jsx(VN,{}),c.jsx("span",{style:za.photoBannerTitle,children:"Showing Tonita your photo"})]})]}),c.jsxs("div",{style:za.statusUpdate,"data-voice-search-strip":"true",role:"status","aria-live":"polite",children:[y?.kind==="server"&&c.jsx(QN,{text:y.text,live:i,placement:"stage"}),y?.kind==="listening"&&c.jsx("span",{style:za.statusLineText,children:y.text}),y?.kind==="photo"&&c.jsx("span",{style:za.srOnly,children:y.text}),y?.kind==="error"&&c.jsx("span",{style:za.statusLineError,children:y.text})]}),c.jsx("div",{style:za.controlRow,children:u?c.jsxs(c.Fragment,{children:[c.jsx(nz,{onStop:t,size:"stage"}),c.jsx(iz,{muted:e.isMuted,onToggleMute:e.toggleMute,size:"stage"})]}):c.jsxs("button",{type:"button",onClick:d,style:xIe(),"aria-label":"Start talking",children:[c.jsx(rz,{size:17}),c.jsx("span",{children:"Talk"})]})})]})}const Pz=2300,u3e=1250,oj=4,d3e="rgba(0, 0, 0, 0.18)",Fz=` 2122@keyframes tonita-voice-glass-in { 2123 from { opacity: 0; } 2124 to { opacity: 1; } 2125} 2126@keyframes tonita-voice-card-in { 2127 from { opacity: 0; transform: translateY(6px) scale(0.985); } 2128 to { opacity: 1; transform: none; } 2129} 2130@media (prefers-reduced-motion: reduce) { 2131 [data-voice-stage] { animation: none !important; } 2132 [data-voice-stage] > * { animation: none !important; } 2133} 2134`,lj={glass:{position:"absolute",inset:0,zIndex:u3e,display:"flex",alignItems:"center",justifyContent:"center",padding:"var(--spacing-small, 0.75rem)",boxSizing:"border-box",backdropFilter:`blur(${oj}px)`,WebkitBackdropFilter:`blur(${oj}px)`,backgroundColor:d3e,animation:"tonita-voice-glass-in 260ms ease-out both"}
2134,card:{width:"100%",maxWidth:"26rem",height:"100%",maxHeight:"44rem",borderRadius:"var(--radius-3x-large, 1.5rem)",overflow:"hidden",background:"var(--surface-primary-default)",boxShadow:"0 24px 64px rgba(14, 14, 17, 0.22)",animation:"tonita-voice-card-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both"}},f3e=1500;function h3e(e,t,n){const r=!e&&!t&&n,[i,s]=k.useState(!1);return k.useEffect(()=>{if(!r||i)return;const l=window.setTimeout(()=>s(!0),f3e);return()=>window.clearTimeout(l)},[r,i]),{waiting:r&&!i,gaveUp:i}}const p3e=({column:e,session:t,onExit:n})=>(k.useEffect(()=>{const r=i=>{i.key==="Escape"&&n()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[n]),c.jsxs(Aa,{container:e,children:[c.jsx("style",{children:Fz}),c.jsx("div",{style:lj.glass,role:"dialog","aria-label":"Voice mode","data-voice-stage":"chat-column",children:c.jsx("div",{style:lj.card,children:c.jsx(Mz,{session:t,onExit:n})})})]})),m3e=({session:e,onExit:t})=>{const n=Dz(e),{components:r,currentIndex:i,pick:s}=az(e.canvasComponents),l=e.statusText,u=jz({state:e.state,error:e.error,statusText:l,agentHasSpoken:e.agentHasSpoken,photo:{uploading:e.isUploadingPhoto,error:e.photoError}});return c.jsxs(Aa,{children:[c.jsx("style",{children:Fz}),c.jsx("div",{style:{position:"fixed",inset:0,zIndex:Pz,pointerEvents:"none"},"data-voice-stage":"mobile-dock",children:c.jsx(QIe,{phase:n.phase,ripples:n.ripples,pulse:n.pulse,carousels:r,currentCarousel:i,statusText:u?.text??null,statusLive:e.isSearching&&u?.kind==="server",statusIsError:u?.kind==="error",onPickCarousel:s,onEnd:t,onUploadPhoto:e.uploadPhoto,isUploadingPhoto:e.isUploadingPhoto,onPhotoPickerOpened:e.photoPickerOpened,onPhotoPickerCancelled:e.photoPickerCancelled,isMuted:e.isMuted,onToggleMute:e.toggleMute})})]})},g3e=({session:e,onExit:t})=>{const{isMobile:n}=We(),r=cr(m=>m.chatColumn),i=Fe(m=>m.isCarouselOpen),s=U(m=>m.chatId!==null),{waiting:l,gaveUp:u}=h3e(n,r!==null,s);if(!n&&r&&!u)return c.jsx(p3e,{column:r,session:e,onExit:t});if(n&&i)return c.jsx(m3e,{session:e,onExit:t});if(l)return null;const d=n?{position:"absolute",inset:0,paddingTop:"env(safe-area-inset-top, 0px)",background:"var(--surface-primary-default)"}:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",padding:"var(--spacing-medium, 1rem)",boxSizing:"border-box",pointerEvents:"none"},h=n?{width:"100%",height:"100%"}:{pointerEvents:"auto",width:"min(30rem, 92vw)",height:"min(42rem, 86vh)",borderRadius:"var(--radius-3x-large, 1.5rem)",overflow:"hidden",background:"var(--surface-primary-default)",boxShadow:"0 24px 64px rgba(14, 14, 17, 0.22)"};return c.jsx(yu,{isOpen:!0,onClose:t,closeOnOverlayClick:!1,closeOnEscape:!0,freezeBackground:!0,blurIntensity:n?0:8,overlayOpacity:n?0:.32,overlayZIndex:Pz,children:c.jsx("div",{style:d,role:"dialog","aria-modal":"true","aria-label":"Voice mode",children:c.jsx("div",{style:h,children:c.jsx(Mz,{session:e,onExit:t})})})})};function y3e(){const e=s3e(),t=cr(y=>y.isOpen),n=cr(y=>y.exit),{start:r,stop:i,state:s,audioRef:l,canvasComponents:u}=e,d=JD(s);k.useEffect(()=>{const{registerCallHandles:y}=cr.getState();return y({start:r,stop:i}),()=>y(null)},[r,i]);const h=be(y=>y.userId),m=be(y=>y.isGuest),g=!!h&&!m;return k.useEffect(()=>{g&&cSe()&&cr.getState().open()},[g]),k.useEffect(()=>{cr.getState().setPhase(s)},[s]),k.useEffect(()=>{cr.getState().setCanvasComponents(u)},[u]),k.useEffect(()=>()=>{cr.setState(m5())},[]),c.jsxs(c.Fragment,{children:[t&&!d&&c.jsx(g3e,{session:e,onExit:n}),c.jsx("audio",{ref:l,autoPlay:!0,playsInline:!0})]})}const v3e=G.lazy(()=>Pn(()=>import("./privacyPolicyPage-CD8ndZgw.js"),[])),b3e=G.lazy(()=>Pn(()=>import("./termsOfServicePage-B94PoQBL.js"),[])),x3e=G.lazy(()=>Pn(()=>Promise.resolve().then(()=>Ywe),void 0));G.lazy(()=>Pn(()=>import("./domainSearchPage-9RkRImyn.js"),[]));const S3e=!1,w3e=G.lazy(()=>Pn(()=>import("./LearnScreen-Bb4DKMNX.js"),[])),C3e=G.lazy(()=>Pn(()=>import("./BrowseScreen-C7Ef4Haq.js"),[])),I3e=G.lazy(()=>Pn(()=>import("./PersonalizeRoute-DwypXpyd.js"),[])),ga=({children:e})=>{const{isLoading:t}=ti(),n=be(s=>s.userId),r=be(s=>s.isGuest);return xt()?t?c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",gap:"var(--spacing-small, 0.75rem)",color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)"},children:[c.jsx(Zi,{size:2}),c.jsx("span",{children:"Loading..."})]}):!n||r?c.jsx(XI,{to:"/sign-in",replace:!0}):c.jsx(c.Fragment,{children:e}):c.jsx(c.Fragment,{children:e})},k3e=()=>{const{isLoading:e}=ti(),{colors:t}=ze(),n=be(d=>d.isFirstVisit),r=U(d=>d.messages),i=U(d=>d.isLoadingTranscript),s=km(),l=s.toString()?`?${s.toString()}`:"",u=oP({isFirstVisit:n===!0,messagesLength:r.length,search:l,authLoading:e,isLoadingTranscript:i});return u==="welcome"?c.jsx(XI,{to:{pathname:"/home",search:l},replace:!0}):u==="pending"?c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",gap:"var(--spacing-small, 0.75rem)",color:t.textSecondary,fontFamily:"var(--font-Inter, Inter)",backgroundColor:t.background,transition:"background-color 0.3s ease, color 0.3s ease"},children:[c.jsx(Zi,{size:2}),c.jsx("span",{children:"Loading..."})]}):c.jsx(gke,{})},E3e=()=>{const{isMobile:e}=We();Wle(e);const t=be(y=>y.userId),n=be(y=>y.email),r=be(y=>y.displayName),i=be(y=>y.photoURL),s=be(y=>y.isGuest),l=An(y=>y.isOpen),u=An(y=>y.close);Xle(),Jle(),Qle(),Zle(),$le(),ece(),tce(),nce(),ice();const[d,h]=k.useState([]);k.useEffect(()=>{Pn(()=>import("./galleryPageTranscriptSlugs-DbQRHKBF.js"),[]).then(y=>{h(y.GALLERY_PAGE_TRANSCRIPT_SLUGS)})},[]);const m=k.useMemo(()=>t?{userId:t,email:n||void 0,displayName:r||void 0,photoURL:i||void 0,isGuest:s}:null,[t,n,r,i,s]),{overlayProps:g}=IB();return c.jsxs(oue,{user:m,children:[c.jsx(TTe,{}),c.jsxs(MV,{children:[c.jsx(Vn,{path:"/",element:c.jsx(ga,{children:c.jsx(k3e,{})})}),c.jsx(Vn,{path:"/home",element:c.jsx(ga,{children:c.jsx(kTe,{})})}),c.jsxs(c.Fragment,{children:[c.jsx(Vn,{path:"/learn",element:c.jsx(ga,{children:c.jsx(k.Suspense,{fallback:null,children:c.jsx(w3e,{})})})}),c.jsx(Vn,{path:"/browse",element:c.jsx(ga,{children:c.jsx(k.Suspense,{fallback:null,children:c.jsx(C3e,{})})})})]}),c.jsx(Vn,{path:"/favorites",element:c.jsx(ga,{children:c.jsx(T3e,{})})}),c.jsx(Vn,{path:"/recent",element:c.jsx(ga,{children:c.jsx(A3e,{})})}),c.jsx(Vn,{path:"/c/:chatId",element:c.jsx(ga,{children:c.jsx(_3e,{})})}),c.jsx(Vn,{path:"/help",element:c.jsx(ga,{children:c.jsx(KP,{})})}),c.jsx(Vn,{path:"/whats-new",element:c.jsx(ga,{children:c.jsx(XP,{})})}
2134),c.jsx(Vn,{path:"/personalize",element:c.jsx(ga,{children:c.jsx(k.Suspense,{fallback:null,children:c.jsx(I3e,{})})})}),c.jsx(Vn,{path:"/blog",element:c.jsx(zv,{})}),c.jsx(Vn,{path:"/blog/:slug",element:c.jsx(kke,{})}),c.jsx(Vn,{path:"/about",element:c.jsx(ga,{children:c.jsx(ak,{})})}),c.jsx(Vn,{path:"/privacy-policy",element:c.jsx(k.Suspense,{fallback:null,children:c.jsx(v3e,{})})}),c.jsx(Vn,{path:"/terms-of-service",element:c.jsx(k.Suspense,{fallback:null,children:c.jsx(b3e,{})})}),d.map(y=>c.jsx(Vn,{path:`/pages/${y}`,element:c.jsx(j3e,{slug:y})},y)),c.jsx(Vn,{path:"/share/:shareId",element:c.jsx(RTe,{})}),c.jsx(Vn,{path:"/p/:listingId",element:c.jsx(ga,{children:c.jsx(L3e,{})})}),c.jsx(Vn,{path:"/sign-in",element:c.jsx(Oke,{})}),S3e,c.jsx(Vn,{path:"*",element:c.jsx(D3e,{slugsLoaded:d.length>0})})]}),c.jsx(yu,{isOpen:l,onClose:u,closeOnOverlayClick:!0,closeOnEscape:!0,freezeBackground:e,blurIntensity:0,overlayOpacity:0,allowPointerEvents:!e,keepMounted:!0,children:c.jsx(yhe,{})}),Hk()&&c.jsx(y3e,{}),c.jsx(Ske,{}),c.jsx(Ike,{...g})]})},T3e=()=>{const e=Bt(),t=be(r=>r.userId),{isLoading:n}=ti();return G.useEffect(()=>{if(be.getState().markVisitComplete(),n)return;if(!t){e("/",{replace:!0});return}$a(),U.getState().setReferrerChatId(rP),(async()=>{try{if(U.getState().setLoadingTranscript(!0),!await jv.fetchFavoritesViewTranscript()){e("/",{replace:!0});return}U.getState().disableTranscriptFetch()}catch{e("/",{replace:!0})}finally{U.getState().setLoadingTranscript(!1)}})()},[t,e,n]),c.jsx(Df,{})},A3e=()=>{const e=Bt(),t=be(r=>r.userId),{isLoading:n}=ti();return G.useEffect(()=>{if(n)return;(async()=>{try{U.getState().setLoadingTranscript(!0),$a();const i=$t();if(U.getState().setChatId(i),!await jv.fetchRecentlyInteractedTranscript(i)){e("/",{replace:!0});return}U.getState().disableTranscriptFetch()}catch{e("/",{replace:!0})}finally{U.getState().setLoadingTranscript(!1)}})()},[t,e,n]),c.jsx(Df,{})},_3e=()=>{const{chatId:e}=nm(),t=Bt(),n=be(s=>s.userId),{isLoading:r}=ti(),[,i]=G.useState(null);return G.useEffect(()=>{if(r)return;if(!n){t("/",{replace:!0});return}if(!e){t("/",{replace:!0});return}const s=U.getState(),l=s.chatId;if(s.shouldSkipTranscriptFetch&&l===e)return;U.getState().enableTranscriptFetch(),(async()=>{try{if(U.getState().setLoadingTranscript(!0),i(null),U.getState().clearMessages(),U.getState().clearChatError(),KM(),!await jv.fetchTranscript(e)){t("/",{replace:!0});return}l!==e&&ws.getState().takeChoiceFromChat(Pce(U.getState().messages))}catch{i("Failed to load chat"),t("/",{replace:!0})}finally{U.getState().setLoadingTranscript(!1)}})()},[e,n,t,r]),r?c.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",gap:"var(--spacing-small, 0.75rem)",color:"var(--text-default-secondary, #71717F)",fontFamily:"var(--font-Inter, Inter)"},children:[c.jsx(Zi,{size:2}),c.jsx("span",{children:"Authenticating..."})]}):c.jsx(Df,{})},R3e="__LANDING_PAGE_DATA__",j3e=({slug:e})=>{const{isLoading:t}=ti(),n=U(r=>r.messages.length);return G.useEffect(()=>{if(t||n>0)return;(()=>{U.getState().setLoadingTranscript(!0);const i=document.getElementById(R3e);if(!i?.textContent){console.error(`No embedded data found for ${e}`),U.getState().setLoadingTranscript(!1);return}try{const s=JSON.parse(i.textContent),l=ep(s.messages);U.getState().setReferrerChatId(s.chatId),U.getState().setMessages(l),s.landingPageInfo&&U.getState().setLandingPageInfo(s.landingPageInfo)}catch(s){console.error(`Failed to parse transcript for ${e}`,s)}finally{U.getState().setLoadingTranscript(!1)}})(),be.getState().markVisitComplete()},[t,n,e]),c.jsx(Df,{})},O3e=(e,t)=>({loadingContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",gap:"var(--spacing-small, 0.75rem)",color:e.textSecondary,fontFamily:"var(--font-Inter, Inter)",backgroundColor:e.background,transition:"background-color 0.3s ease, color 0.3s ease"},errorContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",gap:"var(--spacing-medium, 1rem)",color:e.textSecondary,fontFamily:"var(--font-Inter, Inter)",backgroundColor:e.background,transition:"background-color 0.3s ease, color 0.3s ease"},goHomeButton:{padding:"0.5rem 1rem",borderRadius:"0.5rem",border:"none",backgroundColor:"var(--button-primary-bg, #6366F1)",color:"white",cursor:"pointer"},pageContainer:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"100dvw",height:"100dvh",overflow:"hidden",backgroundColor:e.background,transition:"background-color 0.3s ease"},header:{position:"fixed",top:0,left:0,right:0,zIndex:"var(--z-index-app-header)",backgroundColor:e.background,paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:0,paddingLeft:t?0:"var(--spacing-small, 0.75rem)",paddingRight:t?0:"var(--spacing-small, 0.75rem)",transition:"background-color 0.3s ease"},contentContainer:{flex:1,display:"flex",justifyContent:"center",overflow:"auto",paddingTop:"calc(var(--header-height, 4rem) + env(safe-area-inset-top, 0px))",paddingBottom:t?0:"var(--input-height, 6rem)"},listingDetailsWrapper:{width:"100%",maxWidth:"60rem",height:"100%"}}),L3e=()=>{const{listingId:e}=nm(),t=Bt(),{isLoading:n}=ti(),{colors:r}=ze(),{isMobile:i}=We(),[s,l]=k.useState(!0),[u,d]=k.useState(null),h=Xt(g=>g.selectedListing),m=O3e({background:r.background,textSecondary:r.textSecondary},i);return G.useEffect(()=>{if(n)return;if(!e){t("/home",{replace:!0});return}(async()=>{try{l(!0),d(null);const y=await Eoe([e]);if(y.length===0){d("Product not found");return}Xi.getState().initializeGroup(y[0]),Xt.getState().openListingDetails(y[0])}catch{d("Failed to load product")}finally{l(!1)}})()},[e,t,n]),G.useEffect(()=>{!s&&!u&&h===null&&t("/home",{replace:!0})},[h,s,u,t]),G.useEffect(()=>()=>{Xt.getState().closeListingDetails()},[]),n||s?c.jsxs("div",{style:m.loadingContainer,children:[c.jsx(Zi,{size:2}),c.jsx("span",{children:n?"Authenticating...":"Loading product..."})]}):u?c.jsxs("div",{style:m.errorContainer,children:[c.jsx("span",{children:u}),c.jsx("button",{onClick:()=>t("/home",{replace:!0}),style:m.goHomeButton,children:"Go Home"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:m.pageContainer,children:[c.jsx("div",{style:m.header,children:c.jsx(es,{})}),c.jsx("div",{style:m.contentContainer,children:c.jsx("div",{style:m.listingDetailsWrapper,children:c.jsx(G.Suspense,{fallback:null,children:c.jsx(x3e,{})})})})]}),c.jsx(Xv,{children:c.jsx(Zv,{showInFocusPreview:!1,writingArea:Uk})}),c.jsx(nF,{})]})},D3e=({slugsLoaded:e})=>{const t=Pt();return t.pathname.startsWith("/pages/")&&!e?null:c.jsx(XI,{to:{pathname:"/",search:t.search},replace:!0})},Gh={container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:"2rem",textAlign:"center",fontFamily:"Inter, system-ui, sans-serif",backgroundColor:"var(--background, #FFFCF8)",color:"var(--text-default-primary, #1a1a1a)"},icon:{fontSize:"3rem",marginBottom:"1rem"},heading:{fontSize:"1.5rem",fontWeight:600,marginBottom:"0.5rem",margin:0},message:{fontSize:"1rem",color:"var(--text-default-secondary, #666)",marginBottom:"1.5rem",maxWidth:"400px"},button:{padding:"0.75rem 1.5rem",fontSize:"1rem",fontWeight:500,color:"#1a1a1a",backgroundColor:"#FCDA2E",border:"none",borderRadius:"0.5rem",cursor:"pointer",transition:"transform 0.1s ease, box-shadow 0.1s ease"}};function M3e(){const e=()=>{window.location.reload()};return c.jsxs("div",{style:Gh.container,children:[c.jsx("div",{style:Gh.icon,children:"â ï¸"}),c.jsx("h2",{style:Gh.heading,children:"Something went wrong"}),c.jsx("p",{style:Gh.message,children:"We encountered an unexpected error. Please refresh the page to try again."}),c.jsx("button",{style:Gh.button,onClick:e,onMouseOver:t=>{t.currentTarget.style.transform="scale(1.02)",t.currentTarget.style.boxShadow="0 4px 12px rgba(252, 218, 46, 0.4)"},onMouseOut:t=>{t.currentTarget.style.transform="scale(1)",t.currentTarget.style.boxShadow="none"},children:"Refresh Page"})]})}function P3e({children:e}){return c.jsx(qre,{fallback:c.jsx(M3e,{}),children:e})}const F3e=["luckyorange.com","google-analytics.com","googletagmanager.com","facebook.net","pinterest.com","doubleclick.net","googlesyndication.com"],B3e=e=>{const t=e.exception?.values?.[0]?.stacktrace?.frames;return!t||t.length===0?!1:t.some(n=>{const r=n.filename||"";return F3e.some(i=>r.includes(i))})},N3e=e=>{const t=e.exception?.values?.[0]?.value||"";
2134return/feature named `.*` was not found/.test(t)};function z3e(e){return B3e(e)||N3e(e)?null:e}const cj=2e3,H3e=()=>{const e=()=>{Pn(async()=>{const{addSessionReplay:t}=await import("./sentryReplay-CQ7ftn1h.js");return{addSessionReplay:t}},[]).then(({addSessionReplay:t})=>t()).catch(()=>{})};typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e,{timeout:cj}):window.setTimeout(e,cj)},U3e={initialize:()=>{Nre({dsn:"https://38ade656a114d033a38834f2b14595f9@o4510977481637888.ingest.us.sentry.io/4510977491992576",environment:"prod",release:"main-20261002-f87f82c1c",sendDefaultPii:!1,integrations:[Lre()],tracesSampleRate:.1,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSend:z3e}),H3e()}},W3e=["fbclid","gclid","gbraid","wbraid","ttclid","msclkid","twclid","li_fat_id","epik","oppref"],V3e=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_id"],q3e=[...W3e,...V3e],Bz="tonita_attribution";function G3e(e){const t={};for(const n of q3e){const r=e.get(n);r&&(t[n]=r)}return t}function Y3e(e){return Object.keys(e).length>0}function r2(){try{const e=localStorage.getItem(Bz);return e?JSON.parse(e):null}catch{return null}}function K3e(e){try{localStorage.setItem(Bz,JSON.stringify(e))}catch{}}function Nz(e,t){const n=G3e(e),r={params:n,landingPath:t.landingPath,referrer:t.referrer,timestamp:t.now};return n.fbclid&&(r.fbc=`fb.1.${t.now}.${n.fbclid}`),r}function zz(e,t){return e?Y3e(t.params)?{firstTouch:e.firstTouch,lastTouch:t}:null:{firstTouch:t,lastTouch:t}}function Hz(e){const t=Nz(e,{landingPath:typeof window<"u"?Sv():"",referrer:typeof document<"u"?document.referrer:"",now:Date.now()}),n=r2(),r=zz(n,t);return r?(K3e(r),r):n}function X3e(){return r2()}function J3e(){const e=r2();if(!e)return{};const{params:t,fbc:n}=e.lastTouch;return n?{...t,fbc:n}:{...t}}const uj="_fbc",Z3e=2160*60*60*1e3;function Q3e(){const e=window.location.hostname;return e==="tonita.co"||e.endsWith(".tonita.co")?"; domain=.tonita.co":""}function $3e(e,t,n){const r=new Date(Date.now()+n).toUTCString(),i=window.location.protocol==="https:"?"; Secure":"";document.cookie=`${e}=${t}; expires=${r}; path=/${Q3e()}; SameSite=Lax${i}`}function eAe(e){const t=document.cookie.match(new RegExp("(?:^|;\\s*)"+e+"=([^;]*)"));return t?t[1]:null}function Uz(){if(typeof window>"u"||typeof document>"u")return;const e=r2()?.lastTouch.fbc;e&&(eAe(uj)||$3e(uj,e,Z3e))}const tAe=Object.freeze(Object.defineProperty({__proto__:null,buildSnapshot:Nz,captureAttribution:Hz,getAttributionForTracking:J3e,getStoredAttribution:X3e,mergeAttribution:zz,syncFbcCookie:Uz},Symbol.toStringTag,{value:"Module"}));var EC;(function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"})(EC||(EC={}));var dj;(function(e){e.None="NONE",e.Slide="SLIDE",e.Fade="FADE"})(dj||(dj={}));const nAe=ei("StatusBar"),rAe=ei("SplashScreen",{web:()=>Pn(()=>import("./web-DfQ_jW4p.js"),[]).then(e=>new e.SplashScreenWeb)}),iAe=gu()?oq:sq;$re();eie();const aAe=async()=>{await Wp.setAccessoryBarVisible({isVisible:!0}),await Wp.setAccessoryBarVisible({isVisible:!1})},sAe=async()=>{xt()&&(document.documentElement.classList.add("native-app"),document.body.classList.add("native-app"),await nAe.setStyle({style:EC.Light}),await aAe(),await rAe.hide())},oAe=()=>{U3e.initialize(),Gle(),_5.initialize(),_5.adTrackingAllowed()&&(Hz(km()),Uz()),sce(),Lt.initialize(),JP.initialize(),sAe()};oAe();const Wz=document.getElementById("root");if(!Wz)throw new Error("#root not found");const lAe=PW.createRoot(Wz);lAe.render(c.jsx(G.StrictMode,{children:c.jsx(P3e,{children:c.jsx(iAe,{children:c.jsx(Ple,{children:c.jsx(E3e,{})})})})}));export{Nn as $,Lhe as A,R4e as B,mTe as C,jle as D,yP as E,zm as F,Ji as G,es as H,Nt as I,$a as J,yTe as K,tTe as L,pTe as M,vTe as N,bTe as O,Xv as P,Zv as Q,G as R,Uk as S,xTe as T,NB as U,Rs as V,WI as W,pp as X,Ze as Y,c2e as Z,Pn as _,We as a,h1 as a$,Il as a0,uf as a1,ou as a2,hB as a3,xt as a4,Hle as a5,_4e as a6,kxe as a7,Cxe as a8,Bk as a9,nle as aA,c4e as aB,d4e as aC,ile as aD,S4e as aE,ule as aF,s4e as aG,u4e as aH,a4e as aI,l4e as aJ,h4e as aK,p4e as aL,m4e as aM,zI as aN,g4e as aO,Aa as aP,Rd as aQ,k1 as aR,dle as aS,cle as aT,be as aU,$c as aV,ek as aW,ws as aX,v4e as aY,f4e as aZ,pt as a_,A4e as aa,T4e as ab,C4e as ac,Ixe as ad,_ke as ae,ole as af,Exe as ag,jxe as ah,O8 as ai,w4e as aj,Rxe as ak,hle as al,mle as am,fle as an,E4e as ao,k4e as ap,_xe as aq,Oxe as ar,x4e as as,yxe as at,Axe as au,I4e as av,Lxe as aw,o4e as ax,$oe as ay,rle as az,Bt as b,jAe as b$,uI as b0,mv as b1,zL as b2,Et as b3,Tp as b4,fu as b5,Mt as b6,$i as b7,Kr as b8,Wt as b9,zr as bA,lv as bB,tne as bC,Td as bD,nne as bE,FAe as bF,ho as bG,pv as bH,Qc as bI,H$ as bJ,MAe as bK,XC as bL,DX as bM,mAe as bN,gAe as bO,pAe as bP,AAe as bQ,SAe as bR,XK as bS,ip as bT,bAe as bU,__ as bV,du as bW,dl as bX,fl as bY,Ss as bZ,_Ae as b_,Cs as ba,PAe as bb,qt as bc,Sf as bd,Vte as be,SI as bf,DAe as bg,tf as bh,vI as bi,yI as bj,kD as bk,bQ as bl,to as bm,Ee as bn,Nr as bo,KQ as bp,YQ as bq,Gi as br,wa as bs,$d as bt,oQ as bu,Oi as bv,mu as bw,EZ as bx,jL as by,BAe as bz,_5 as c,hl as c0,pY as c1,TAe as c2,wAe as c3,hAe as c4,vAe as c5,A_ as c6,EAe as c7,sK as c8,fAe as c9,Dl as cA,mn as cB,WG as cC,Vj as cD,Gd as cE,_q as cF,Oq as cG,Lq as cH,uAe as cI,cAe as cJ,Z7 as cK,J7 as cL,$5 as cM,R8 as cN,Ywe as cO,yAe as ca,xAe as cb,RAe as cc,dAe as cd,IAe as ce,kAe as cf,o_ as cg,NY as ch,CAe as ci,m_ as cj,p_ as ck,LAe as cl,OAe as cm,lK as cn,bo as co,l_ as cp,e_ as cq,DO as cr,_O as cs,TO as ct,Ld as cu,vp as cv,Yd as cw,Yj as cx,im as cy,oG as cz,Pt as d,An as e,hn as f,Dt as g,jl as h,ti as i,c as j,Xt as k,y4e as l,Ole as m,GCe as n,hTe as o,Ia as p,ZI as q,k as r,gR as s,fB as t,ze as u,$t as v,iu as w,dB as x,bSe as y,eSe as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.